/* Brain · design system. Soft canvas, white cards, pills, one warm accent, a glass orb for the AI.
   Mobile first; the desktop layout starts at 960px. */
@font-face { font-family: "Geist"; src: url("/ui/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/ui/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #F1F0EC; --card: #FFFFFF; --tile: #F6F5F1; --ink: #121314; --ink2: #47484A; --mute: #6B6B66; --lead: #888781; --faint: #B9B8B2;
  --line: rgba(18,19,20,.08); --line2: rgba(18,19,20,.14);
  --accent: #F5A70A; --accent-deep: #A86400; --accent-soft: #FFF2D2; --accent-ink: #5B3A00;
  --ok: #147A4A; --ok-fill: #1F9D62; --ok-soft: #E2F5EA; --bad: #B83222; --bad-soft: #FCE9E6; --info: #2C4FD6; --info-soft: #E8EDFF;
  --on-ink: #FFFFFF; --glass: rgba(255,255,255,.62); --glass-line: rgba(255,255,255,.7);
  --r-xl: 32px; --r-lg: 26px; --r-md: 20px; --r-sm: 14px;
  --sh-1: 0 1px 2px rgba(18,19,20,.04), 0 10px 28px -14px rgba(18,19,20,.14);
  --sh-2: 0 2px 6px rgba(18,19,20,.05), 0 28px 56px -24px rgba(18,19,20,.28);
  --sh-nav: 0 2px 8px rgba(18,19,20,.06), 0 18px 40px -12px rgba(18,19,20,.30);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E0F10; --card: #18191B; --tile: #202124; --ink: #F4F3EF; --ink2: #C6C5C0; --mute: #9A9A95; --lead: #7C7C78; --faint: #5E5E5B;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.16);
  --accent-deep: #F5B93A; --accent-soft: #3A2C0C; --accent-ink: #FFD98A; --ok: #4CC98A; --ok-soft: #12301F; --bad: #FF8A7A; --bad-soft: #3A1714; --info: #9DB2FF; --info-soft: #1A2247;
  --on-ink: #121314; --glass: rgba(28,29,31,.6); --glass-line: rgba(255,255,255,.1);
  --sh-1: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.6);
  --sh-2: 0 2px 6px rgba(0,0,0,.4), 0 28px 56px -24px rgba(0,0,0,.8);
  --sh-nav: 0 2px 8px rgba(0,0,0,.4), 0 18px 40px -12px rgba(0,0,0,.8);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.45 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: #121314; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--mute); }

/* ---------- boot ---------- */
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot-orb, .orb { animation: float 5s ease-in-out infinite; filter: drop-shadow(0 18px 28px rgba(245,167,10,.28)); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(4deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.07); opacity: .86; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- frame ---------- */
.app { min-height: 100dvh; }
.main { min-width: 0; }
.wrap { max-width: 720px; margin: 0 auto; padding: calc(var(--safe-t) + 14px) 16px calc(var(--safe-b) + 118px); }
.rail { display: none; }
.view { animation: rise .35s var(--ease) both; }

/* top bar (phone) */
.top { display: flex; align-items: center; gap: 12px; min-height: 52px; margin-bottom: 14px; }
.top .grow { flex: 1; min-width: 0; }
.hello small { display: block; color: var(--mute); font-size: 13px; font-weight: 500; line-height: 1.2; }
.hello b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 17px; color: #121314; background: linear-gradient(135deg, #FFD36B, #FF9F5A 60%, #D9B8FF); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), var(--sh-1); }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; }
.ibtn { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--card); box-shadow: var(--sh-1); color: var(--ink); transition: transform .15s var(--ease), background .15s; position: relative; }
.ibtn:active { transform: scale(.94); }
.ibtn.flat { background: var(--tile); box-shadow: none; }
.ibtn.ink { background: var(--ink); color: var(--on-ink); }
.ibtn.sm { width: 38px; height: 38px; }
.ibtn .dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--card); }
.title-row { display: flex; align-items: flex-end; gap: 12px; margin: 6px 0 16px; }
.title-row .display { flex: 1; }

/* two-tone display type */
.display { font-size: clamp(30px, 8.4vw, 40px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; color: var(--ink); text-wrap: balance; }
.display .m { color: var(--lead); font-weight: 500; }
.display.sm { font-size: clamp(24px, 6.4vw, 30px); }
.sec { margin-top: 26px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 12px; }
.sec-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.sec-head h2 span { color: var(--mute); font-weight: 500; margin-left: 6px; }
.sec-head button, .sec-head a { color: var(--mute); font-size: 13.5px; font-weight: 500; padding: 6px 2px; }

/* ---------- buttons, pills, chips ---------- */
.pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; background: var(--card); color: var(--ink); box-shadow: var(--sh-1); white-space: nowrap; transition: transform .15s var(--ease), opacity .15s, background .15s; }
.pbtn:active { transform: scale(.97); }
.pbtn.ink { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.pbtn.accent { background: var(--accent); color: #121314; box-shadow: 0 10px 24px -10px rgba(245,167,10,.7); }
.pbtn.soft { background: var(--tile); box-shadow: none; }
.pbtn.ghost { background: transparent; box-shadow: none; color: var(--ink2); }
.pbtn.danger { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.pbtn.sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
.pbtn.wide { width: 100%; }
.pbtn[disabled] { opacity: .45; pointer-events: none; }
.pbtn .spin, .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 550; font-size: 14px; color: var(--ink2); white-space: nowrap; transition: background .2s, color .2s; }
.seg button.on { background: var(--ink); color: var(--on-ink); }
.seg button span { opacity: .72; margin-left: 5px; font-weight: 500; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrapd { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); font-size: 14px; font-weight: 550; white-space: nowrap; flex: none; color: var(--ink); transition: background .2s, color .2s, transform .15s; }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--ink); color: var(--on-ink); }
.chip .n { color: var(--mute); font-weight: 500; }
.chip.on .n { color: inherit; opacity: .6; }
.chip.dash { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line2); color: var(--ink2); }
.chip.sm { height: 28px; padding: 0 10px; font-size: 12.5px; gap: 6px; box-shadow: none; background: var(--tile); }
.cdot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--c, var(--mute)); }
.c-stone { --c: #8C8C87; } .c-blue { --c: #3B62F6; } .c-amber { --c: #F5A70A; } .c-rose { --c: #E5527A; } .c-moss { --c: #5E9B4C; } .c-violet { --c: #8B5CF6; }
.c-clay { --c: #C2643C; } .c-sky { --c: #2AA6DE; } .c-mint { --c: #22B8A0; } .c-coral { --c: #F26B4E; } .c-honey { --c: #E0B100; } .c-plum { --c: #A0468F; }
.tagpill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 8px; border-radius: 999px; background: var(--tile); font-size: 12px; font-weight: 550; color: var(--ink2); white-space: nowrap; }
.state { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--tile); color: var(--ink2); }
.state.reading { background: var(--accent-soft); color: var(--accent-ink); }
.state.reading i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.1s ease-in-out infinite; }
.state.due { background: var(--bad-soft); color: var(--bad); }
.state.when { background: var(--info-soft); color: var(--info); }
.state.ok { background: var(--ok-soft); color: var(--ok); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; background: var(--tile); color: var(--ink2); flex: none; }
.badge.admin { background: var(--accent-soft); color: var(--accent-ink); } .badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.wait { background: var(--info-soft); color: var(--info); } .badge.off { background: var(--bad-soft); color: var(--bad); }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: 22px 20px 18px; background: #FBD9A4 url("/art/sky.webp") center top / cover; color: #121314; box-shadow: var(--sh-1); isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.55) 100%); }
:root[data-theme="dark"] .hero { background: #1b1410 url("/art/ember.webp") center bottom / cover; color: #F4F3EF; }
:root[data-theme="dark"] .hero::after { background: linear-gradient(180deg, rgba(14,15,16,.2), rgba(14,15,16,.1)); }
.hero .display { color: inherit; max-width: 11.5em; }
.hero .display .m { color: rgba(18,19,20,.55); }
:root[data-theme="dark"] .hero .display .m { color: rgba(244,243,239,.62); }
.hero-orb { position: absolute; right: -14px; top: -10px; width: 132px; height: 132px; z-index: -1; }
.hero p { margin-top: 10px; font-size: 14.5px; color: rgba(18,19,20,.66); max-width: 22em; }
:root[data-theme="dark"] .hero p { color: rgba(244,243,239,.7); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.stat { text-align: left; padding: 12px 12px 11px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--glass-line); color: inherit; transition: transform .15s var(--ease); }
.stat:active { transform: scale(.97); }
.stat .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.75); color: #121314; margin-bottom: 10px; }
:root[data-theme="dark"] .stat .ic { background: rgba(255,255,255,.12); color: #F4F3EF; }
.stat b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; font-size: 12px; font-weight: 500; opacity: .62; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* capture bar */
.cap { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 7px 0 18px; margin-top: 12px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); color: var(--mute); width: 100%; text-align: left; font-size: 15.5px; }
.cap .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap .go { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; flex: none; }
.cap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; color: var(--ink); }
.cap input::placeholder { color: var(--mute); }

/* ---------- cards & rows ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.list { display: grid; gap: 10px; }
.lk { display: flex; gap: 14px; padding: 12px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); width: 100%; text-align: left; align-items: stretch; transition: transform .2s var(--ease); position: relative; }
.lk:active { transform: scale(.985); }
.thumb { width: 76px; height: 76px; border-radius: 18px; flex: none; overflow: hidden; background: var(--tile); display: grid; place-items: center; color: var(--mute); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.k-video { background: #FFE9E3; color: #E0492E; } .thumb.k-post { background: #E8EDFF; color: #3B62F6; } .thumb.k-article, .thumb.k-page { background: #FFF2D2; color: #B87400; }
.thumb.k-pdf { background: #FCE9E6; color: #C7392B; } .thumb.k-code { background: #E6F4EC; color: #1F7D50; } .thumb.k-audio { background: #F0E9FF; color: #7A4BE0; } .thumb.k-image { background: #E2F3FA; color: #1782B0; }
:root[data-theme="dark"] .thumb[class*="k-"] { background: var(--tile); }
.thumb .play { position: absolute; inset: auto 6px 6px auto; width: 24px; height: 24px; border-radius: 50%; background: rgba(18,19,20,.72); color: #fff; display: grid; place-items: center; }
.lk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 2px 4px 2px 0; }
.lk-title { font-weight: 600; font-size: 15.5px; letter-spacing: -.015em; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lk-brief { color: var(--ink2); font-size: 13.5px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lk-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; color: var(--mute); font-size: 12.5px; font-weight: 500; }
.lk-meta .site { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12em; }
.lk-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.lk.done .lk-title { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--faint); }
.sortc { padding: 14px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); }
.sortc .lk { padding: 0; box-shadow: none; background: transparent; }
.sortc .acts { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 12px; }
.sortc .acts .pbtn { height: 44px; padding: 0 12px; font-size: 14px; }
.check { width: 30px; height: 30px; border-radius: 50%; flex: none; align-self: center; box-shadow: inset 0 0 0 2px var(--line2); display: grid; place-items: center; color: transparent; transition: background .2s, box-shadow .2s; margin-left: 4px; }
.check.on { background: var(--ok-fill); box-shadow: none; color: #fff; animation: pop .35s var(--ease); }
.td { display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 10px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); }
.td .lk { padding: 0; box-shadow: none; background: transparent; flex: 1; min-width: 0; }
.td .thumb { width: 56px; height: 56px; border-radius: 15px; }
.grid2 { display: grid; gap: 10px; }
.tilecard { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); overflow: hidden; text-align: left; transition: transform .2s var(--ease); }
.tilecard:active { transform: scale(.985); }
.tilecard .cover { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--mute); position: relative; overflow: hidden; }
.tilecard .cover img { width: 100%; height: 100%; object-fit: cover; }
.tilecard .cover.none { aspect-ratio: auto; height: 92px; justify-items: start; padding-left: 16px; }
.tilecard .cover .kb { width: 52px; height: 52px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: var(--sh-1); }
.tilecard .in { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 14px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: 0 0 min(84%, 340px); scroll-snap-align: center; }
.empty { text-align: center; padding: 34px 20px 38px; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--sh-1); }
.empty img { width: 120px; height: 120px; margin: 0 auto 8px; filter: drop-shadow(0 16px 22px rgba(245,167,10,.25)); animation: float 6s ease-in-out infinite; }
.empty h3 { font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
.empty p { color: var(--mute); margin: 6px auto 0; max-width: 26em; font-size: 14.5px; }
.empty .pbtn { margin-top: 16px; }
.skel { border-radius: 14px; background: linear-gradient(90deg, var(--tile) 25%, var(--line) 37%, var(--tile) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }

/* search field */
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); color: var(--mute); margin-bottom: 12px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); height: 100%; }
.search input::placeholder { color: var(--mute); }
.search button { color: var(--mute); display: grid; place-items: center; width: 30px; height: 30px; }

/* ---------- bottom nav (phone) ---------- */
.nav { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 16px); transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 4px; padding: 7px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-nav); }
.nav button { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); position: relative; transition: background .25s var(--ease), color .2s, transform .15s; }
.nav button:active { transform: scale(.92); }
.nav button.on { background: var(--ink); color: var(--on-ink); }
.nav button.add { background: var(--accent); color: #121314; width: 56px; height: 56px; margin: 0 4px; box-shadow: 0 10px 22px -8px rgba(245,167,10,.8); }
.nav button .n { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #121314; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); }
.nav button.on .n { box-shadow: 0 0 0 2px var(--ink); }
.nav .orbi { width: 30px; height: 30px; animation: none; filter: none; }

/* ---------- ask ---------- */
.ask-hero { text-align: center; padding: 18px 8px 8px; }
.ask-hero .orb { width: 150px; height: 150px; margin: 0 auto 10px; }
.ask-hero .display { margin: 0 auto; max-width: 9.5em; }
.ask-hero p { color: var(--mute); margin: 10px auto 18px; max-width: 24em; }
.ask-hero .chips.wrapd { justify-content: center; }
.thread { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 86px; }
.bub-q { justify-self: end; max-width: 86%; padding: 12px 16px; border-radius: 22px 22px 6px 22px; background: var(--ink); color: var(--on-ink); font-weight: 500; animation: rise .3s var(--ease) both; }
.bub-a { padding: 16px 18px; border-radius: 6px 24px 24px 24px; background: var(--card); box-shadow: var(--sh-1); animation: rise .35s var(--ease) both; }
.bub-a .who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--mute); margin-bottom: 8px; }
.bub-a .who img { width: 22px; height: 22px; animation: none; filter: none; }
.bub-a.thinking .who img { animation: pulse 1.1s ease-in-out infinite; }
.srcs { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.src { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--tile); text-align: left; font-size: 13.5px; font-weight: 550; }
.src i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; flex: none; }
.src span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 700; vertical-align: 2px; margin: 0 1px; }
.composer { position: fixed; left: 0; right: 0; bottom: calc(var(--safe-b) + 92px); z-index: 30; padding: 0 16px; pointer-events: none; }
.composer form { pointer-events: auto; max-width: 688px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 7px 0 20px; border-radius: 999px; background: var(--card); box-shadow: var(--sh-nav); }
.composer input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; }
.composer input::placeholder { color: var(--mute); }
.composer button { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; flex: none; }
.composer button[disabled] { opacity: .35; }

/* ---------- sheets ---------- */
.backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(18,19,20,.38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s both; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: calc(100dvh - var(--safe-t) - 24px); background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--sh-2); display: flex; flex-direction: column; animation: sheet-up .38s var(--ease) both; overflow: hidden; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 9px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; flex: none; }
.sheet-head h2 { flex: 1; font-size: 18px; font-weight: 600; letter-spacing: -.02em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-body { padding: 8px 16px calc(var(--safe-b) + 20px); overflow-y: auto; overscroll-behavior: contain; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet-foot { display: flex; gap: 8px; padding: 12px 16px calc(var(--safe-b) + 14px); flex: none; }
.sheet-foot .pbtn { flex: 1; }
.sheet.full { max-height: 100dvh; height: 100dvh; border-radius: 0; max-width: none; }
.sheet.full .grab { display: none; }
.sheet.full .sheet-head { padding-top: calc(var(--safe-t) + 12px); }
.step-q { font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin: 10px 2px 14px; }
.step-q .m { color: var(--lead); font-weight: 500; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { padding: 16px 14px 14px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); text-align: left; transition: transform .15s var(--ease), box-shadow .2s; position: relative; }
.opt:active { transform: scale(.97); }
.opt.on { box-shadow: inset 0 0 0 2px var(--ink), var(--sh-1); }
.opt img { width: 64px; height: 64px; margin: -4px 0 8px -4px; }
.opt b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.opt span { display: block; color: var(--mute); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.whens { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.when { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--sh-1); text-align: left; font-weight: 600; font-size: 14.5px; }
.when span { color: var(--mute); font-weight: 500; font-size: 12.5px; }
.when.on { box-shadow: inset 0 0 0 2px var(--ink), var(--sh-1); }
.when.span2 { grid-column: span 2; }
.preview { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--card); box-shadow: var(--sh-1); }
.preview .thumb { width: 56px; height: 56px; border-radius: 14px; }
.preview .t { flex: 1; min-width: 0; }
.preview b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview span { color: var(--mute); font-size: 12.5px; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--ink2); padding-left: 4px; }
.input, textarea.input { width: 100%; height: 52px; padding: 0 18px; border-radius: 18px; border: 0; outline: 0; background: var(--card); box-shadow: var(--sh-1), inset 0 0 0 1.5px transparent; color: var(--ink); transition: box-shadow .2s; }
textarea.input { height: auto; min-height: 110px; padding: 14px 18px; resize: vertical; line-height: 1.45; border-radius: 20px; }
.input:focus { box-shadow: var(--sh-1), inset 0 0 0 1.5px var(--ink); }
.input::placeholder { color: var(--mute); }
.hint { font-size: 12.5px; color: var(--mute); padding: 0 4px; line-height: 1.4; }
.err { font-size: 13px; color: var(--bad); padding: 0 4px; font-weight: 500; }
.rowf { display: flex; gap: 8px; align-items: center; }
.rowf .input { flex: 1; min-width: 0; }
.copybox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 18px; background: var(--tile); }
.copybox code { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: "Geist Mono", monospace; font-size: 12.5px; color: var(--ink2); }
.switch { width: 50px; height: 30px; border-radius: 15px; background: var(--line2); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch.on { background: var(--ok-fill); } .switch.on::after { transform: translateX(20px); }

/* ---------- note ---------- */
.note-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--tile); margin-bottom: 16px; box-shadow: var(--sh-1); }
.note-cover img { width: 100%; height: 100%; object-fit: cover; }
.note-title { font-size: 26px; line-height: 1.12; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.note-meta { display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; color: var(--mute); font-size: 13px; font-weight: 500; margin: 10px 0 14px; }
.note-meta a { color: var(--ink2); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.note-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.brief { padding: 16px 18px; border-radius: var(--r-lg); background: var(--accent-soft); color: var(--accent-ink); font-size: 15.5px; line-height: 1.45; font-weight: 500; margin-bottom: 14px; }
.brief small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; }
.reading { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); margin-bottom: 14px; }
.reading img { width: 54px; height: 54px; animation: pulse 1.2s ease-in-out infinite; filter: none; flex: none; }
.reading.still img { animation: none; }
.reading .t { flex: 1; min-width: 0; }
.reading b { display: block; font-weight: 600; } .reading span { color: var(--mute); font-size: 13.5px; }
.md { font-size: 15.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md h1 { display: none; }
.md h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin: 22px 0 8px; }
.md h3 { font-size: 15px; font-weight: 600; margin: 18px 0 6px; color: var(--ink2); }
.md p { margin: 0 0 10px; }
.md ul, .md ol { margin: 0 0 12px; padding-left: 20px; }
.md li { margin: 4px 0; padding-left: 2px; }
.md li::marker { color: var(--accent-deep); }
.md blockquote { margin: 0 0 12px; padding: 4px 0 4px 14px; border-left: 3px solid var(--accent); color: var(--ink2); }
.md a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.md code { font-family: "Geist Mono", monospace; font-size: .88em; background: var(--tile); padding: 1px 6px; border-radius: 6px; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.md .ts { font-family: "Geist Mono", monospace; font-size: .82em; color: var(--accent-deep); font-weight: 600; }
.md.box { padding: 18px 18px 8px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); }
.metalist { display: grid; gap: 0; border-radius: var(--r-md); background: var(--card); box-shadow: var(--sh-1); margin-bottom: 14px; overflow: hidden; }
.metalist > div { display: flex; gap: 12px; padding: 12px 16px; font-size: 13.5px; }
.metalist > div + div { border-top: 1px solid var(--line); }
.metalist .k { color: var(--mute); width: 92px; flex: none; }
.metalist .v { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------- settings & admin ---------- */
.group { border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); overflow: hidden; margin-bottom: 14px; }
.group > .gh { padding: 16px 18px 4px; }
.group > .gh h3 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.group > .gh p { color: var(--mute); font-size: 13.5px; margin-top: 3px; line-height: 1.4; }
.group > .gb { padding: 12px 18px 18px; }
.srow { display: flex; align-items: center; gap: 12px; padding: 13px 18px; min-height: 58px; width: 100%; text-align: left; }
.srow + .srow, .gh + .srow { border-top: 1px solid var(--line); }
.gh + .srow { margin-top: 10px; }
.srow .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--tile); display: grid; place-items: center; flex: none; color: var(--ink2); }
.srow .ic img { width: 30px; height: 30px; }
.srow .t { flex: 1; min-width: 0; }
.srow .t b { display: block; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.srow .t span { display: block; color: var(--mute); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.srow .chev { color: var(--faint); flex: none; }
.steps { counter-reset: s; display: grid; gap: 10px; margin: 4px 0 14px; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding-left: 36px; font-size: 14.5px; line-height: 1.4; min-height: 24px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tile { padding: 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh-1); }
.tile .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--tile); display: grid; place-items: center; margin-bottom: 14px; color: var(--ink2); }
.tile b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.tile span { display: block; color: var(--mute); font-size: 13px; font-weight: 500; margin-top: 5px; }
.meter { height: 10px; border-radius: 5px; background: var(--tile); overflow: hidden; margin: 10px 0 8px; }
.meter i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FFD36B, var(--accent) 60%, #F26B4E); min-width: 6px; transition: width .6s var(--ease); }
.person { display: flex; gap: 12px; align-items: center; padding: 14px 14px 14px 16px; }
.person + .person { border-top: 1px solid var(--line); }
.person .t { flex: 1; min-width: 0; }
.person .t b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.person .t b em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .t span { display: block; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logrow { display: flex; gap: 12px; padding: 11px 18px; font-size: 13.5px; align-items: baseline; }
.logrow + .logrow { border-top: 1px solid var(--line); }
.logrow time { color: var(--mute); width: 74px; flex: none; font-size: 12.5px; }
.logrow .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* menus & toasts */
.menu { position: fixed; z-index: 80; min-width: 220px; max-width: calc(100vw - 24px); padding: 7px; border-radius: 20px; background: var(--card); box-shadow: var(--sh-2); animation: rise .18s var(--ease) both; }
.menu .mi { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border-radius: 13px; font-weight: 550; font-size: 14.5px; }
.menu .mi:hover, .menu .mi:focus-visible { background: var(--tile); outline: 0; }
.menu .mi.danger { color: var(--bad); }
.menu .mi svg { color: var(--mute); flex: none; } .menu .mi.danger svg { color: inherit; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }
.menu .mh { padding: 8px 12px 6px; font-size: 12px; font-weight: 600; color: var(--mute); }
.menu a.mi img { width: 38px; height: 38px; border-radius: 12px; flex: none; }
.menu a.mi .t { flex: 1; min-width: 0; } .menu a.mi .t b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.2; } .menu a.mi .t span { display: block; color: var(--mute); font-size: 12.5px; font-weight: 500; }
.menu a.mi.cur { background: var(--tile); }
#toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--safe-b) + 96px); z-index: 90; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 100%; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 550; font-size: 14.5px; box-shadow: var(--sh-2); animation: rise .3s var(--ease) both; }
.toast button { color: var(--accent); font-weight: 700; padding: 4px 2px 4px 8px; }
.toast.bad { background: #B83222; color: #fff; }

/* ---------- labs switcher ---------- */
.labs { display: flex; align-items: center; gap: 11px; height: 64px; width: 100%; padding: 0 12px 0 10px; border-radius: 20px; background: var(--card); box-shadow: var(--sh-1); text-align: left; }
.labs .logo { width: 44px; height: 44px; border-radius: 13px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); flex: none; display: grid; place-items: center; }
.labs .logo img { width: 44px; height: 44px; object-fit: contain; transform: scale(1.28); }
.labs .t { flex: 1; min-width: 0; line-height: 1.2; }
.labs .t b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; }
.labs .t span { display: block; font-size: 12px; font-weight: 500; color: var(--mute); }
.labs svg { color: var(--mute); flex: none; }
.labs.chip { height: 52px; width: auto; max-width: 100%; border-radius: 999px; padding: 0 12px 0 5px; gap: 9px; }
.labs.chip .logo { width: 42px; height: 42px; border-radius: 50%; }
.labs.chip .logo img { width: 42px; height: 42px; }
.labs.chip .t span { font-size: 11.5px; } .labs.chip .t b { font-size: 15px; }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--safe-t) + 20px) 16px calc(var(--safe-b) + 20px); background: #FBD9A4 url("/art/sky.webp") center / cover fixed; position: relative; isolation: isolate; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(241,240,236,0) 0%, rgba(241,240,236,.7) 70%, var(--bg) 100%); }
:root[data-theme="dark"] .auth { background-image: url("/art/ember.webp"); background-color: #0E0F10; }
:root[data-theme="dark"] .auth::before { background: linear-gradient(180deg, rgba(14,15,16,.55), rgba(14,15,16,.2)); }
.auth-card { width: 100%; max-width: 420px; animation: rise .5s var(--ease) both; }
.auth-card .orb { width: 128px; height: 128px; margin: 0 auto 6px; }
.auth-card .brand { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; margin-bottom: 18px; }
.auth-card .brand img { width: 30px; height: 30px; border-radius: 9px; }
.auth-card .display { text-align: center; margin-bottom: 8px; }
.auth-card .lead { text-align: center; color: var(--ink2); margin: 0 auto 22px; max-width: 24em; font-size: 15px; }
.auth-card .pane { padding: 18px; border-radius: var(--r-xl); background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: inset 0 0 0 1px var(--glass-line), var(--sh-2); }
.auth-card .fine { text-align: center; color: var(--mute); font-size: 13px; margin-top: 16px; line-height: 1.45; }

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 284px minmax(0, 1fr); }
  .rail { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; padding: 18px 14px 16px 18px; overflow-y: auto; scrollbar-width: none; }
  .rail .brandrow { display: flex; align-items: center; gap: 11px; height: 64px; padding: 0 10px; }
  .rail .brandrow img { width: 40px; height: 40px; border-radius: 12px; }
  .rail .brandrow b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
  .rail .save { margin: 10px 0 8px; }
  .rn { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 15px; font-weight: 550; font-size: 15px; color: var(--ink2); width: 100%; transition: background .15s, color .15s; }
  .rn:hover { background: rgba(18,19,20,.04); }
  :root[data-theme="dark"] .rn:hover { background: rgba(255,255,255,.05); }
  .rn.on { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); font-weight: 600; }
  .rn .n { margin-left: auto; color: var(--mute); font-size: 13px; font-weight: 500; }
  .rn .n.hot { background: var(--accent); color: #121314; font-weight: 700; font-size: 11.5px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
  .rn img { width: 22px; height: 22px; animation: none; filter: none; }
  .rail h4 { margin: 18px 14px 6px; font-size: 12px; font-weight: 600; color: var(--mute); letter-spacing: .02em; display: flex; justify-content: space-between; align-items: center; }
  .rail h4 button { color: var(--mute); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; }
  .rail h4 button:hover { background: var(--line); color: var(--ink); }
  .rail .rn.cat { height: 38px; font-size: 14px; }
  .rail .foot { margin-top: auto; padding-top: 14px; }
  .rail .me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 18px; width: 100%; }
  .rail .me:hover { background: var(--card); box-shadow: var(--sh-1); }
  .rail .me .t { flex: 1; min-width: 0; line-height: 1.25; } .rail .me .t b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rail .me .t span { display: block; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav, .only-phone { display: none !important; }
  .wrap { max-width: 820px; padding: 30px 32px 80px; }
  .wrap.wide { max-width: 1040px; }
  .display { font-size: 44px; }
  .display.sm { font-size: 34px; }
  .hero { padding: 30px 30px 24px; }
  .hero-orb { width: 190px; height: 190px; right: 6px; top: -18px; }
  .stats { max-width: 520px; gap: 10px; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .hscroll { margin: 0; padding: 4px 0 14px; }
  .hscroll > * { flex: 0 0 320px; }
  .chips { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; }
  .backdrop { align-items: center; padding: 24px; }
  .sheet { border-radius: var(--r-xl); max-height: min(760px, calc(100dvh - 48px)); animation: rise .3s var(--ease) both; }
  .sheet .grab { display: none; }
  .sheet-head { padding-top: 18px; }
  .backdrop.side { justify-content: flex-end; padding: 12px; align-items: stretch; }
  .backdrop.side .sheet, .backdrop.side .sheet.full { max-width: 620px; width: 620px; height: auto; max-height: none; border-radius: var(--r-xl); animation: drawer-in .32s var(--ease) both; }
  .composer { left: 284px; bottom: 26px; }
  .thread { padding-bottom: 110px; }
  #toasts { bottom: 28px; left: 284px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .ask-hero .orb { width: 180px; height: 180px; }
}
@media (max-width: 959px) { .only-desk { display: none !important; } }
@media (min-width: 1280px) { .wrap { max-width: 880px; } }

/* ---------- welcome page (the public front door) ---------- */
.land { max-width: 1120px; margin: 0 auto; padding: calc(var(--safe-t) + 12px) 16px calc(var(--safe-b) + 28px); }
.l-top { display: flex; align-items: center; gap: 8px; height: 58px; margin-bottom: 12px; position: sticky; top: calc(var(--safe-t) + 8px); z-index: 20; padding: 0 9px 0 12px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--glass-line), var(--sh-1); }
.l-top .grow, .l-foot .grow { flex: 1; }
.l-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.l-brand img { border-radius: 10px; }
.l-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: 40px 20px 0; text-align: center; background: #FBD9A4 url("/art/sky.webp") center top / cover; color: #121314; isolation: isolate; box-shadow: var(--sh-1); }
.l-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.72) 100%); }
:root[data-theme="dark"] .l-hero { background: #1b1410 url("/art/ember.webp") center bottom / cover; color: #F4F3EF; }
:root[data-theme="dark"] .l-hero::after { background: linear-gradient(180deg, rgba(14,15,16,.35), rgba(14,15,16,.05)); }
.l-orb { width: 150px; height: 150px; margin: 0 auto 10px; }
.l-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .72; margin-bottom: 12px; }
.l-hero .display { font-size: clamp(38px, 10.6vw, 78px); color: inherit; }
.l-hero .display .m, .l-invite .display .m { color: rgba(18,19,20,.55); }
:root[data-theme="dark"] .l-hero .display .m { color: rgba(244,243,239,.62); }
.l-lead { max-width: 34em; margin: 16px auto 0; font-size: 16.5px; line-height: 1.5; opacity: .74; }
.l-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.l-phones { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 38px -20px 0; padding: 0 12px; overflow: hidden; }
.l-phone { margin: 0; flex: 0 1 auto; width: 44%; max-width: 250px; border-radius: 36px 36px 0 0; padding: 8px 8px 0; background: #121314; box-shadow: var(--sh-2); transform: translateY(30px); }
.l-phone img { border-radius: 28px 28px 0 0; width: 100%; height: auto; aspect-ratio: 390 / 690; object-fit: cover; object-position: top; background: var(--bg); }
.l-phone.mid { transform: none; width: 50%; max-width: 290px; z-index: 1; }
.l-sec { padding: 68px 2px 0; scroll-margin-top: 30px; }
.l-sec > h2 { text-align: center; margin: 0 auto 28px; max-width: 14em; }
.l-steps, .l-bento { display: grid; gap: 12px; }
.l-step { position: relative; padding: 22px 22px 26px; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--sh-1); }
.l-step img { margin: -6px 0 12px -8px; filter: drop-shadow(0 12px 18px rgba(245,167,10,.22)); }
.l-step .num { position: absolute; top: 20px; right: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--tile); display: grid; place-items: center; font-weight: 600; color: var(--mute); }
.l-step h3, .l-feat h3 { font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.l-step p, .l-feat p { color: var(--ink2); margin-top: 7px; font-size: 15px; line-height: 1.5; }
.l-feat { padding: 22px; border-radius: var(--r-xl); background: var(--card); box-shadow: var(--sh-1); }
.l-feat .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.l-feat.wide { background: #121314; color: #fff; }
.l-feat.wide p { color: inherit; opacity: .72; max-width: 32em; }
.l-feat.wide .ic { background: rgba(255,255,255,.12); color: var(--accent); }
:root[data-theme="dark"] .l-feat.wide { background: linear-gradient(135deg, #2B1F0A, #1B1A22); box-shadow: inset 0 0 0 1px rgba(245,167,10,.28), var(--sh-1); }
.l-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.l-chips .chip { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.l-chips .chip.on { background: var(--accent); color: #121314; }
.l-invite { margin-top: 68px; padding: 36px 20px 30px; border-radius: var(--r-xl); text-align: center; background: #FBD9A4 url("/art/sky-wide.webp") center / cover; color: #121314; box-shadow: var(--sh-1); scroll-margin-top: 30px; }
.l-invite > img { margin: 0 auto 8px; filter: drop-shadow(0 18px 28px rgba(245,120,10,.3)); animation: float 6s ease-in-out infinite; }
.l-invite .display { color: inherit; }
.l-form { display: grid; gap: 10px; max-width: 420px; margin: 22px auto 0; text-align: left; }
.l-form .input { background: #fff; color: #121314; }
.l-form .input::placeholder { color: #6B6B66; }
.l-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 28px 6px 0; color: var(--mute); font-size: 13.5px; }
.l-foot .l-brand { font-size: 15px; }
.l-foot button { color: var(--ink2); font-weight: 600; }
@media (max-width: 699px) { .l-phone:first-child { display: none; } .l-top .pbtn:not(.ink) { padding: 0 10px; } }
@media (min-width: 760px) {
  .l-steps, .l-bento { grid-template-columns: repeat(3, 1fr); }
  .l-feat.wide { grid-column: span 2; }
  .l-hero { padding-top: 64px; } .l-orb { width: 200px; height: 200px; }
  .l-phone { max-width: 270px; } .l-phone.mid { max-width: 310px; }
  .l-sec { padding-top: 104px; } .l-invite { margin-top: 104px; padding: 60px 24px 52px; }
  .l-lead { font-size: 18px; }
}
