/* v1 additions: forms, auth, comments, menus */
.auth { flex: 1; overflow-y: auto; padding: 24px max(24px, env(safe-area-inset-left, 0px)) 32px; display: flex; flex-direction: column; gap: 20px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); text-align: left; }
.check a, .linkish { color: var(--accent); font-weight: 600; text-decoration: none; }
.err { color: var(--warn); font-size: 14px; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field select { appearance: auto; }
.empty-card { padding: 22px 18px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty-card .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.menu { position: absolute; right: 20px; z-index: 22; background: var(--surface); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); overflow: hidden; min-width: 180px; }
.menu button { display: block; width: 100%; text-align: left; padding: 14px 16px; font-weight: 500; }
.menu button + button { border-top: 1px solid var(--line); }
.menu .danger { color: #C2410C; }
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment + .comment { border-top: 1px solid var(--line); }
.comment .body { flex: 1; min-width: 0; }
.composer textarea { width: 100%; min-height: 84px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px 14px; resize: none; color: var(--ink); }
.pickitems { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-btn { color: #C2410C; }
.iconpick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.iconpick button { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.iconpick button.on { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.counts { display: flex; gap: 20px; color: var(--ink-2); font-size: 14px; }
.counts b { color: var(--ink); }
.post .media-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.post .media-row .tile { height: 88px; }
.loading { flex: 1; display: grid; place-items: center; color: var(--ink-3); }
.legal { max-width: 680px; margin: 0 auto; padding: 32px 20px 60px; line-height: 1.65; }
.legal h1 { font-size: 28px; margin-bottom: 8px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.res-badge { position: absolute; left: 8px; bottom: 8px; z-index: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-w { font-size: 12px; color: var(--ink-3); font-weight: 600; padding-bottom: 4px; }
.cal-d { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; font-size: 14px; }
.cal-d b { font-weight: 500; }
.cal-d.today { background: var(--btn); color: var(--on-btn); }
.cal-d i { position: absolute; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; }
.cal-d i.p { background: var(--accent); }
.cal-d i.f { background: var(--warn); }
.cal-d.today i { background: var(--on-btn); }
.auth { gap: 18px; }
.auth-head { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.auth-logo { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--lav), var(--peach)); margin-bottom: 6px; }
.auth-err { background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 500; }
.oauth-stack { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 999px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-family: "Google Sans", Roboto, var(--font); font-size: 14px; font-weight: 500; width: 100%; max-width: 400px; margin: 0 auto; }
.oauth-btn:hover { background: #f8f9fa; }
.oauth-btn:disabled { opacity: .6; }
.oauth-g { display: flex; justify-content: center; min-height: 40px; }
.auth-legal { margin: 0; text-align: center; font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.auth-legal a { color: var(--ink-2); text-decoration: underline; }
.sheet.welcome { padding-top: 0; }
.welcome-hero { margin: 0 -20px 18px; padding: 30px 20px 24px; text-align: center; border-radius: 28px 28px 0 0; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
/* hide scrollbars everywhere (phones never show them) */
html, body, .screen, .sheet, .auth, .hscroll, .card.list { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* profile / cover */
.me-cover { position: relative; height: 168px; margin: -16px -20px 0; background: linear-gradient(135deg, var(--lav), var(--peach)) center / cover no-repeat; }
.cover-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; }
.glass { background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #26232B; border-radius: 999px; }
.iconbtn.glass:hover { background: rgba(255, 255, 255, .9); }
.glass-pill { background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); padding: 6px 12px; border-radius: 999px; color: #26232B; font-size: 12px; }
.me-head { margin-top: -50px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; }
.avatar.xl { width: 100px; height: 100px; font-size: 38px; border: 4px solid var(--bg); box-shadow: var(--shadow); }
.avatar-edit { border-radius: 50%; }
.edit-cover { height: 120px; border-radius: 18px; background: linear-gradient(135deg, var(--lav), var(--peach)) center / cover no-repeat; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; }
.add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 170px; color: var(--accent); border: 1.5px dashed var(--lav); box-shadow: none; background: transparent; }
.post-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 16px; display: block; }
/* share sheet */
.share-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--ink-2); text-decoration: none; text-align: center; line-height: 1.2; }
.share-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); color: #5E5B66; word-break: break-all; text-align: center; }
/* ask page */
.ask-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 0 4px; }
.ask-in { flex: 1; min-height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; width: 100%; }
.invite-pill { margin: 14px auto 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; }
.avatar.lg { font-size: 32px; }
/* Google's button is an iframe with square white corners: clip it to the same pill as the Apple button */
.oauth-g { width: 100%; max-width: 400px; height: 40px; margin: 0 auto; border-radius: 999px; overflow: hidden; display: flex; justify-content: center; }
.oauth-g > div, .oauth-g iframe { border-radius: 999px !important; }
:root[data-theme="dark"] .oauth-btn { background: #131314; color: #E3E3E3; border-color: #8E918F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .oauth-btn { background: #131314; color: #E3E3E3; border-color: #8E918F; } }
.today-card { border-radius: var(--r-lg); padding: 16px; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 60%, rgba(250, 214, 92, .25)); box-shadow: var(--shadow); }
.ck-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 40px; font-size: 14px; }
.ck-row.done span:last-child { color: var(--ink-3); text-decoration: line-through; }
.nav-dot { position: absolute; top: 6px; right: 18px; width: 8px; height: 8px; border-radius: 50%; background: #E0785F; border: 2px solid var(--surface); }
.wcard[role="button"] { cursor: pointer; }
/* dark mode: give Google's pill the same thin outline as the Apple button */
:root[data-theme="dark"] .oauth-g { box-shadow: 0 0 0 1px #8E918F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .oauth-g { box-shadow: 0 0 0 1px #8E918F; } }
/* Google: our own button (identical to Apple's) with Google's real button invisibly on top to receive the tap */
.oauth-wrap { position: relative; width: 100%; max-width: 400px; height: 40px; margin: 0 auto; }
.oauth-wrap > .oauth-btn { position: absolute; inset: 0; pointer-events: none; }
.oauth-hit { position: absolute; inset: 0; opacity: .01; overflow: hidden; border-radius: 999px; }
.oauth-hit iframe { margin: 0 !important; }
.oauth-wrap:hover > .oauth-btn { background: #f8f9fa; }
:root[data-theme="dark"] .oauth-wrap:hover > .oauth-btn { background: #1d1d1f; }
.oauth-wrap.mini { width: auto; max-width: none; height: 40px; margin: 0; }
.oauth-wrap.mini > .btn { pointer-events: none; }
.oauth-wrap.mini > .oauth-hit { border-radius: 999px; }
.oauth-btn > span { line-height: 1; }

/* ---------- logo life: nodes pulse in turn every 12s ---------- */
.logo-m .ln, .logo-m .lc { transform-box: fill-box; transform-origin: center; }
.logo-m .ln { animation: lnPulse 12s ease-in-out infinite; animation-delay: calc(var(--d) * 120ms + 3s); }
.logo-m .lc { animation: lcPulse 12s ease-in-out infinite; animation-delay: 3.75s; }
.logo-m g:first-child { animation: lLines 12s ease-in-out infinite; animation-delay: 3s; }
@keyframes lnPulse { 0%, 6%, 100% { transform: scale(1); } 3% { transform: scale(1.4); } }
@keyframes lcPulse { 0%, 7%, 100% { transform: scale(1); } 3.5% { transform: scale(.82); } }
@keyframes lLines { 0%, 8%, 100% { opacity: 1; } 4% { opacity: .45; } }

/* ---------- find it ---------- */
.find-entry { width: 100%; text-align: left; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.find-orb { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; color: #241D2C; background: linear-gradient(135deg, var(--lav), var(--peach)); box-shadow: 0 10px 30px -12px rgba(101, 83, 166, .55); }
.find-orb.sm { width: 42px; height: 42px; box-shadow: none; }
.find-orb.spin::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, var(--accent), transparent 40%); -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); animation: orbSpin 1.1s linear infinite; }
.find-orb.spin svg { animation: orbTurn 2.4s ease-in-out infinite; }
.find-orb.spin .ln { animation: lnFast 1.2s ease-in-out infinite; animation-delay: calc(var(--d) * 150ms); }
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes orbTurn { 50% { transform: rotate(30deg) scale(1.06); } }
@keyframes lnFast { 0%, 100% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.5); opacity: .7; } }
.find-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.find-box:focus-within { border-color: var(--accent); }
.find-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); min-height: 40px; outline: none; }
.find-box .find-ic { color: var(--muted, #8a8592); display: grid; }
.find-box .btn { border-radius: 999px; min-height: 40px; padding: 0 18px; }
.find-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 12px 8px; }
.find-hero b { font-size: 18px; }
.find-work { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 26px 0 8px; }
.find-steps { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.fstep { display: flex; align-items: center; gap: 12px; transition: opacity .3s; }
.fstep.todo { opacity: .3; }
.fstep .fdot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--line); }
.fstep.now .fdot { border-color: var(--accent); border-top-color: transparent; animation: orbSpin .8s linear infinite; }
.fstep.done .fdot { background: var(--accent); border-color: var(--accent); color: var(--bg); animation: pop .3s ease-out; }
.fstep.done .fdot svg { width: 13px; height: 13px; stroke-width: 3; }
.fstep.now span:last-child { font-weight: 600; }
@keyframes pop { from { transform: scale(.4); } }
.find-summary { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); animation: up .4s ease-out both; }
.find-summary svg { color: var(--accent); flex: none; margin-top: 2px; }
.card.store { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: inherit; }
.find-list .card.store { animation: up .45s cubic-bezier(.2, .8, .2, 1) both; }
.store-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
.store .grow { flex: 1; min-width: 0; }
.store-go { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.wcard.fit { position: relative; box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.fit-tag { position: absolute; top: 16px; left: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--accent); color: var(--bg); }
.fit-why { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .logo-m .ln, .logo-m .lc, .logo-m g:first-child, .find-orb.spin::before, .find-orb.spin svg, .find-orb.spin .ln, .fstep.now .fdot, .find-list .card.store, .find-summary { animation: none !important; }
}

/* forgot-password link + confirm-email card */
.linkbtn { background: none; border: 0; padding: 6px 0 0; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: flex-start; min-height: 32px; }
.verify-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); }
.verify-card .nic { flex: none; }
.verify-card .grow { min-width: 0; }
.verify-card .small { overflow-wrap: anywhere; }
