/* Smooth — "Cheerful Aurora Glass": bright sky, soft aurora light, glossy 3D art (rendered in design/render). */
:root {
  --bg: #F5FAFF; --bg-2: #EAF2FD; --surface: #FFFFFF; --raised: #F7FAFF; --glass: rgba(255,255,255,.66);
  --line: #E1E9F6; --line-2: #CCD8EC;
  --ink: #101638; --soft: #536180; --faint: #8A95B0;
  --primary-fill: linear-gradient(180deg, #4A93FF 0%, #287CFA 55%, #1C68E3 100%); --primary-ink: #FFFFFF; --primary-edge: inset 0 1px 0 rgba(255,255,255,.35);
  --signal: #287CFA; --signal-glow: rgba(40,124,250,.14);
  --amber: #C26A00; --amber-wash: #FFF3E3; --danger: #E5484D; --ok: #12A76E;
  --aurora: linear-gradient(100deg, #42B7FF 0%, #B89BFF 38%, #FF91C8 72%, #FFB989 100%);
  --sky: radial-gradient(60% 50% at 8% 0%, rgba(66,183,255,.20), transparent 70%), radial-gradient(50% 45% at 96% 4%, rgba(184,155,255,.22), transparent 70%), radial-gradient(60% 50% at 60% 100%, rgba(255,185,137,.16), transparent 70%);
  --shadow-1: 0 1px 2px rgba(30,50,110,.05), 0 0 0 1px var(--line);
  --shadow-2: 0 22px 46px -24px rgba(40,70,160,.38), 0 0 0 1px var(--line);
  --r-s: 12px; --r: 16px; --r-l: 24px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --serif: var(--font);
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0F2C; --bg-2: #121A42; --surface: #131B45; --raised: #19224F; --glass: rgba(24,32,78,.62);
    --line: rgba(170,190,255,.14); --line-2: rgba(170,190,255,.26);
    --ink: #F2F5FF; --soft: #A6B1D8; --faint: #6F7AA6;
    --signal: #6FB2FF; --signal-glow: rgba(111,178,255,.18);
    --amber: #FFB86B; --amber-wash: rgba(255,184,107,.1); --danger: #FF7A80; --ok: #5FE0B0;
    --sky: radial-gradient(60% 50% at 8% 0%, rgba(66,183,255,.16), transparent 70%), radial-gradient(50% 45% at 96% 4%, rgba(184,155,255,.18), transparent 70%), radial-gradient(60% 50% at 60% 100%, rgba(255,145,200,.10), transparent 70%);
    --shadow-1: 0 0 0 1px var(--line);
    --shadow-2: 0 24px 60px -24px rgba(0,0,0,.6), 0 0 0 1px var(--line);
    color-scheme: dark;
  }
}
/* the landing page and sign-in always use the bright daylight look */
.landing, .auth-sheet {
  --bg: #F5FAFF; --bg-2: #EAF2FD; --surface: #FFFFFF; --raised: #F7FAFF; --glass: rgba(255,255,255,.66);
  --line: #E1E9F6; --line-2: #CCD8EC; --ink: #101638; --soft: #536180; --faint: #8A95B0;
  --signal: #287CFA; --signal-glow: rgba(40,124,250,.14); --amber: #C26A00; --amber-wash: #FFF3E3; --danger: #E5484D; --ok: #12A76E;
  --shadow-1: 0 1px 2px rgba(30,50,110,.05), 0 0 0 1px var(--line); --shadow-2: 0 22px 46px -24px rgba(40,70,160,.38), 0 0 0 1px var(--line);
  color-scheme: light; color: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--sky), var(--bg); background-attachment: fixed; color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }

/* ---------- buttons & fields */
.btn {
  display: inline-flex; border-radius: 999px; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-weight: 650; font-size: 14.5px; letter-spacing: -.005em;
  background: var(--primary-fill); color: var(--primary-ink); box-shadow: var(--primary-edge), 0 1px 2px rgba(0,0,0,.18);
  transition: transform .12s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--primary-edge), 0 12px 26px -12px rgba(40,124,250,.7); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn svg { width: 17px; height: 17px; }
.btn.quiet { background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn.quiet:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 24px -14px rgba(40,70,160,.45); }
.btn.small { padding: 7px 13px; font-size: 13.5px; }
.btn.big { padding: 15px 26px; font-size: 16px; border-radius: 999px; }
.btn.big svg { width: 18px; height: 18px; }
.btn.danger { color: var(--danger); }
.btn.round { width: 40px; height: 40px; padding: 0; border-radius: 11px; flex: none; }
.btn.round.stopping { background: var(--danger); color: #fff; box-shadow: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 9px; background: none; color: var(--soft); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn.on { color: var(--signal); background: var(--signal-glow); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--soft); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.field { width: 100%; border: 0; border-radius: 11px; background: var(--surface); padding: 11px 14px; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; transition: box-shadow .15s; }
.field:focus { box-shadow: inset 0 0 0 1.5px var(--signal), 0 0 0 4px var(--signal-glow); }
.field:disabled { opacity: .6; }
.field.area { resize: vertical; min-height: 70px; line-height: 1.5; }
select.field { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.error { color: var(--danger); font-size: 13.5px; min-height: 1.2em; margin: 0; }
.hint { color: var(--soft); font-size: 13px; margin: 0; }
.meta { color: var(--soft); font-size: 12.5px; }
.empty { color: var(--soft); margin: 0; font-size: 14px; }
.warn { color: var(--danger); font-size: 13px; margin: 6px 0 0; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.lang button { border: 0; background: none; padding: 3px 9px; border-radius: 6px; font: 600 11.5px var(--mono); cursor: pointer; color: var(--soft); }
.lang button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* live signal: the only place the accent appears in quantity */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--signal-glow); flex: none; }
.dot.idle { background: var(--faint); box-shadow: none; }
.dot.warn { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-wash); }
.dot.pulse { animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 6px transparent; } }
.hop { display: inline-flex; gap: 3px; align-items: center; height: 12px; margin-right: 8px; vertical-align: middle; }
.hop i { width: 5px; height: 5px; border-radius: 50%; background: var(--signal); animation: hop 1s ease-in-out infinite; }
.hop i:nth-child(2) { animation-delay: .15s; } .hop i:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 100% { opacity: .3; transform: none; } 45% { opacity: 1; transform: translateY(-3px); } }
.skeleton { border-radius: var(--r); background: linear-gradient(90deg, var(--bg-2) 25%, var(--raised) 50%, var(--bg-2) 75%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ================= LANDING ================= */
.landing { position: relative; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; background: radial-gradient(70% 55% at 12% 4%, #DDF1FF 0%, transparent 70%), radial-gradient(55% 45% at 88% 10%, #EFE6FF 0%, transparent 72%), radial-gradient(60% 40% at 50% 46%, #FFF1E8 0%, transparent 70%), var(--bg); }
.sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.deco { position: absolute; animation: drift 9s ease-in-out infinite; opacity: .9; }
.deco.d1 { left: 2%; top: 780px; width: 110px; height: auto; }
.deco.d2 { right: 5%; top: 120px; width: 80px; height: auto; animation-delay: -3s; }
.deco.d3 { left: 44%; top: 790px; width: 90px; height: auto; animation-delay: -6s; transform: rotate(-20deg); }
.deco.d4 { right: 2%; top: 1500px; width: 70px; height: auto; animation-delay: -4s; }
@keyframes drift { 50% { translate: 12px -18px; } }
.aurora-text { background: var(--aurora); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer-text 9s ease-in-out infinite; padding-right: .04em; }
@keyframes shimmer-text { 50% { background-position: 100% 50%; } }

.lnav { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 24px; max-width: 1240px; margin: 12px auto 0; padding: 9px 10px 9px 18px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 16px 36px -26px rgba(40,70,160,.5); transition: box-shadow .3s; }
.lnav.scrolled { box-shadow: 0 0 0 1px rgba(255,255,255,.95), 0 18px 40px -22px rgba(40,70,160,.55); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 21px; letter-spacing: -.035em; text-decoration: none; color: var(--ink); }
.wordmark img { width: 30px; height: 30px; }
.lnav nav { display: flex; gap: 24px; margin-left: 10px; }
.lnav nav a { color: #3A4566; text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color .15s; }
.lnav nav a:hover { color: var(--ink); }
.lnav .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px; padding: 44px clamp(18px, 4vw, 56px) 24px; max-width: 1320px; margin: 0 auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 8px 14px; border-radius: 999px; background: var(--glass); box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 10px 24px -18px rgba(40,70,160,.5); font-weight: 650; font-size: 14px; color: #3A4566; }
.badge img { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(42px, 4.7vw, 70px); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin: 0 0 22px; }
.hero h1 .ln, .final h2 .ln { display: block; white-space: nowrap; }
.hero .sub { font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.6; color: var(--soft); max-width: 48ch; margin: 0 0 30px; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cta .btn svg { width: 19px; height: 19px; }
.btn.soon { cursor: default; opacity: .75; }
.btn.soon:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--glass); }
.btn.soon em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--aurora); color: #fff; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; font-size: 13.5px; color: var(--soft); font-weight: 600; }
.hero-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px var(--line); }
.hero-chips .dot { background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

.stage { position: relative; height: 660px; display: grid; place-items: center; }
.phone { position: relative; z-index: 2; margin: 0; width: 300px; height: 612px; padding: 11px; border-radius: 50px; background: linear-gradient(145deg, #2A3266 0%, #101638 45%, #1C2452 100%); box-shadow: 0 60px 90px -44px rgba(16,22,56,.65), inset 0 0 0 1.5px rgba(255,255,255,.18); transform: perspective(1400px) rotateY(-12deg) rotateX(4deg); animation: phone-float 8s ease-in-out infinite; }
.phone::before { content: ""; position: absolute; left: 50%; top: 21px; width: 92px; height: 26px; margin-left: -46px; border-radius: 999px; background: #0A0F2A; z-index: 3; }
@keyframes phone-float { 50% { translate: 0 -10px; } }
.phone-screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: linear-gradient(180deg, #FFFFFF, #F4F8FF); display: flex; flex-direction: column; }
.phone-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.5) 50%, transparent 62%); pointer-events: none; }
.phone-head { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 60px 16px 12px; font-size: 17px; font-weight: 800; }
.phone-head img { width: 20px; height: 20px; }
.phone-hi { margin: 6px 14px 0; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: 0 0 0 1px #E8EEF9, 0 8px 18px -14px rgba(40,70,160,.5); display: grid; gap: 2px; }
.phone-hi b { font-size: 15px; } .phone-hi span { font-size: 13.5px; color: var(--soft); }
.phone-sugg { list-style: none; margin: 12px 14px 0; padding: 0; display: grid; gap: 8px; }
.phone-sugg li { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #E8EEF9; font-size: 13.5px; font-weight: 650; }
.phone-sugg img { width: 30px; height: 30px; flex: none; }
.phone-sugg span { flex: 1; } .phone-sugg i { color: #A6B0C8; font-style: normal; }
.phone-input { margin: auto 12px 16px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #E3EAF7; font-size: 13.5px; color: #8A94AE; }
.phone-input span:nth-child(2) { flex: 1; }
.phone-input .mic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-fill); color: #fff; }
.phone-input .mic svg { width: 15px; height: 15px; }
.phone figcaption { position: absolute; left: 0; right: 0; bottom: -30px; text-align: center; font-size: 12px; color: var(--faint); font-weight: 600; }
.stage .mascot { position: absolute; z-index: 3; left: 50%; top: -6px; margin-left: 84px; width: 140px; height: auto; filter: drop-shadow(0 22px 26px rgba(110,123,214,.35)); animation: mascot-float 6.5s ease-in-out infinite; }
@keyframes mascot-float { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -14px; rotate: 4deg; } }
.float { position: absolute; z-index: 4; width: 212px; display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px 12px 10px; border-radius: 20px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 20px 40px -24px rgba(40,70,160,.5); }
.float img { width: 44px; height: 44px; flex: none; }
.float b { display: block; font-size: 14.5px; font-weight: 800; } .float span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--soft); }
.float.f0 { left: -6%; top: 64px; rotate: -4deg; } .float.f1 { left: -4%; top: 440px; rotate: 3deg; }
.float.f2 { right: -6%; top: 236px; rotate: 4deg; } .float.f3 { right: -4%; top: 486px; rotate: -3deg; }

.feature-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1240px; margin: 30px auto 0; padding: 0 clamp(18px, 4vw, 56px); }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 24px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 18px 40px -28px rgba(40,70,160,.45); transition: transform .25s var(--ease), box-shadow .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255,255,255,.95), 0 26px 50px -26px rgba(40,70,160,.5); }
.feature img { width: 64px; height: 64px; flex: none; margin: -6px 0 -6px -6px; }
.feature h3 { margin: 4px 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--soft); }

.lsection { position: relative; padding: clamp(64px, 8vw, 110px) clamp(18px, 4vw, 56px) 0; max-width: 1240px; margin: 0 auto; }
.lsection > h2, .band-copy h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.04; font-weight: 800; margin: 0 0 14px; max-width: 20ch; }
.lsection > .lede { color: var(--soft); font-size: 17px; max-width: 58ch; margin: 0 0 36px; font-weight: 500; }

/* the landing demo: a Telegram chat with Smooth */
.demo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: center; }
.tgwin { margin: 0; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(40,70,160,.55); }
.tgwin-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tgwin-head img { width: 36px; height: 36px; flex: none; }
.tgwin-head b { display: block; font-size: 15.5px; font-weight: 800; }
.tgwin-head small { display: block; font-size: 12.5px; font-weight: 600; color: var(--signal); }
.tgwin-head .replay { margin-left: auto; }
.tgwin-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 22px; min-height: 470px;
  background: radial-gradient(60% 50% at 0% 0%, rgba(66,183,255,.16), transparent 70%), radial-gradient(60% 50% at 100% 100%, rgba(255,145,200,.14), transparent 70%), #EEF4FB; }
.bub { position: relative; max-width: 86%; padding: 9px 12px 20px; border-radius: 18px; font-size: 15px; line-height: 1.5; box-shadow: 0 1px 1.5px rgba(16,22,56,.1); }
.bub p { margin: 0; }
.bub time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: var(--faint); }
.bub.me { align-self: flex-end; background: linear-gradient(180deg, #E6F1FF, #D4E6FF); border-bottom-right-radius: 6px; }
.bub.me time { color: #4C7BD9; }
.bub.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.bub.steps { padding: 4px 12px; width: min(100%, 360px); }
.step { display: grid; grid-template-columns: 24px 1fr 18px; gap: 8px; align-items: center; padding: 7px 0; opacity: .32; transition: opacity .3s var(--ease); }
.step + .step { border-top: 1px solid var(--line); }
.step .ic { font-size: 16px; text-align: center; }
.step b { display: block; font-size: 14px; font-weight: 700; }
.step small { display: block; font-size: 12px; color: var(--soft); }
.step.on { opacity: 1; }
.step .tick { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); }
.step.on:not(.done) .tick { box-shadow: none; border: 2px solid var(--signal); border-right-color: transparent; animation: spin .8s linear infinite; }
.step.done .tick { box-shadow: none; background: #12A76E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.bub table { border-collapse: collapse; font-size: 13.5px; margin-top: 8px; width: 100%; }
.bub td { padding: 5px 10px 5px 0; border-top: 1px solid var(--line); }
.bub td:last-child { padding-right: 0; text-align: right; font-weight: 700; color: var(--signal); font-variant-numeric: tabular-nums; }
.tg-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; width: min(86%, 360px); }
.tg-kb span { text-align: center; padding: 9px 6px; border-radius: 12px; background: rgba(16,22,56,.07); font-size: 13.5px; font-weight: 700; color: var(--signal); }
.demo-card { opacity: 0; }
.demo-side { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.demo-side li { padding: 18px 20px; border-radius: 22px; background: rgba(255,255,255,.78); box-shadow: 0 0 0 1px var(--line); }
.demo-side b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.demo-side span { display: block; margin-top: 3px; color: var(--soft); font-size: 14.5px; }

.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cap { padding: 22px; border-radius: 26px; background: var(--glass); box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 18px 40px -30px rgba(40,70,160,.45); }
.cap img { width: 72px; height: 72px; margin: -8px 0 6px -8px; }
.cap h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.cap p { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.55; }
.skill-groups { columns: 3 300px; column-gap: 16px; }
.skill-group { break-inside: avoid; margin: 0 0 16px; padding: 20px; border-radius: 26px; background: rgba(255,255,255,.8); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -32px rgba(40,70,160,.45); }
.skill-group img { width: 56px; height: 56px; margin: -6px 0 4px -6px; }
.skill-group h3 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.skill-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.skill-group li { padding: 6px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.aurora-band { margin-top: clamp(64px, 8vw, 110px); padding: 48px clamp(22px, 4vw, 48px); border-radius: 40px; background: linear-gradient(110deg, #D9F0FF 0%, #E9E0FF 35%, #FFE1F0 68%, #FFE9D6 100%); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; max-width: 1240px; }
.band-copy img { width: 96px; height: 96px; margin: -10px 0 4px -10px; }
.band-copy h2 { margin: 0; }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promise { padding: 18px 20px; border-radius: 22px; background: rgba(255,255,255,.72); box-shadow: 0 0 0 1px rgba(255,255,255,.9); }
.promise h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; letter-spacing: -.015em; }
.promise p { margin: 0; color: #3A4566; font-size: 14px; line-height: 1.5; }

.lplans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.lplan { position: relative; padding: 28px; border-radius: 30px; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -30px rgba(40,70,160,.5); display: grid; gap: 10px; align-content: start; transition: transform .25s var(--ease); }
.lplan:hover { transform: translateY(-4px); }
.lplan.featured { background: #fff; box-shadow: 0 0 0 2px #B89BFF, 0 30px 60px -30px rgba(124,92,255,.45); }
.lplan .pop { position: absolute; top: 20px; right: 20px; padding: 5px 12px; border-radius: 999px; background: var(--aurora); color: #fff; font-size: 12.5px; font-weight: 750; }
.lplan h3 { margin: 0; font-size: 19px; font-weight: 800; }
.lplan .price { font-size: 50px; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 6px 0 2px; }
.lplan .price small { font-size: 14.5px; color: var(--soft); letter-spacing: 0; margin-left: 4px; font-weight: 500; }
.lplan ul { margin: 6px 0 14px; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14.5px; }
.lplan li { display: flex; gap: 10px; align-items: baseline; }
.lplan li::before { content: "✓"; color: var(--signal); font-weight: 800; }
.lplan .btn { justify-self: stretch; }

.faq { max-width: 860px; }
.faq > h2 { margin-bottom: 28px; }
.faq details { margin: 0 0 12px; border-radius: 22px; background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 22px; font-weight: 750; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #EEF4FF; color: var(--signal); font-size: 18px; transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--soft); font-size: 15.5px; line-height: 1.6; }

.final { position: relative; text-align: center; margin: clamp(70px, 9vw, 120px) auto 0; max-width: 1240px; padding: 72px 24px 64px; border-radius: 44px; background: radial-gradient(60% 80% at 20% 20%, #DDF1FF 0%, transparent 70%), radial-gradient(50% 70% at 85% 30%, #FFE1F0 0%, transparent 70%), radial-gradient(60% 70% at 50% 100%, #FFF1D6 0%, transparent 70%), #fff; box-shadow: 0 0 0 1px #EEF3FB; }
.final .final-mascot { width: 130px; height: auto; margin: -20px auto 8px; animation: mascot-float 6.5s ease-in-out infinite; }
.final h2 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.045em; font-weight: 800; margin: 0 auto 14px; line-height: 1.02; }
.final p { margin: 0 auto 26px; max-width: 46ch; color: var(--soft); font-size: 17.5px; }
.final .hero-cta { justify-content: center; }
.lfoot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; max-width: 1240px; margin: 40px auto 0; padding: 28px clamp(18px, 4vw, 56px) 36px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.lfoot .wordmark { font-size: 19px; }
.lfoot .right { margin-left: auto; display: flex; gap: 16px; align-items: center; }
.lfoot a { color: var(--soft); text-decoration: none; } .lfoot a:hover { color: var(--ink); }

/* ================= AUTH (dialog over the landing) ================= */
dialog.auth-sheet { width: min(440px, calc(100vw - 24px)); border: 0; padding: 0; border-radius: 28px; background: radial-gradient(80% 50% at 0% 0%, #E3F3FF, transparent 70%), radial-gradient(70% 50% at 100% 0%, #F3EAFF, transparent 70%), #fff; box-shadow: 0 40px 100px -30px rgba(40,60,140,.5), 0 0 0 1px var(--line); overflow: hidden; }
dialog.auth-sheet::backdrop { background: rgba(40,60,120,.25); backdrop-filter: blur(8px); }
.auth-card { padding: 30px 28px 26px; position: relative; }
.auth-card .x-close { position: absolute; top: 14px; right: 14px; }
.auth-card .auth-orb { width: 76px; height: 76px; margin: -6px 0 8px -6px; }
.auth-card h1 { font-size: 28px; letter-spacing: -.035em; margin: 0 0 4px; font-weight: 800; }
.auth-card .lede { color: var(--soft); margin: 0 0 22px; font-size: 14.5px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin: 0 0 18px; border-radius: 11px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.auth-tabs button { border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--soft); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.3), inset 0 0 0 1px var(--line); }
.auth-body { display: grid; gap: 12px; }
.auth-body form { display: grid; gap: 10px; }
.auth-h { font-size: 16px; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.auth-note { margin: -4px 0 2px; color: var(--soft); font-size: 13.5px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 580; font-size: 15px;
  background: #FFFFFF; color: #101638; box-shadow: 0 0 0 1px var(--line-2), 0 8px 20px -14px rgba(40,70,160,.5); transition: transform .12s var(--ease); }
.google-btn:hover { transform: translateY(-1px); }
.google-btn svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 2px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ================= APP SHELL ================= */
.shell { display: grid; grid-template-columns: 236px 1fr; height: 100vh; height: 100dvh; }
.rail { display: flex; flex-direction: column; gap: 3px; padding: 18px 12px; color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.035em; padding: 4px 10px 22px; }
.brand img { width: 30px; height: 30px; }
.nav-btn { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; color: var(--soft); font-weight: 650; font-size: 14.5px; position: relative; transition: background .15s, color .15s; }
.nav-btn:hover { color: var(--ink); background: var(--glass); }
.nav-btn[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 10px 22px -16px rgba(40,70,160,.5); }
.nav-btn[aria-current="page"] svg { color: var(--signal); }
.nav-btn svg { width: 19px; height: 19px; flex: none; }
.rail-foot { margin-top: auto; padding: 12px 8px 4px; display: grid; gap: 12px; justify-items: start; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 650; }
.who img, .who .mono { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.who .mono { display: grid; place-items: center; background: var(--aurora); font-weight: 800; color: #fff; font-family: var(--font); }
.who small { display: block; margin-top: 2px; }
.plan-chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font: 700 11px var(--font); text-transform: capitalize; background: var(--bg-2); color: var(--soft); }
.plan-chip.plan-pro { background: var(--signal-glow); color: var(--signal); }
.plan-chip.plan-scale { background: var(--amber-wash); color: var(--amber); }
.main { overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); border-radius: 28px; margin: 10px 10px 10px 0; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(40,70,160,.4); }

.page { overflow-y: auto; overflow-x: hidden; padding: 40px clamp(18px, 4vw, 56px) 64px; }
.page-head h1 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.04em; margin: 0 0 8px; font-weight: 800; line-height: 1.05; }
.page-head p { color: var(--soft); margin: 0 0 28px; font-size: 15.5px; max-width: 58ch; }
.section-title { font-size: 13.5px; font-weight: 600; margin: 0 0 12px; color: var(--soft); letter-spacing: -.005em; }
.lede-sm { color: var(--soft); font-size: 15px; margin: 0 0 20px; max-width: 62ch; }

/* ---------- home */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px 56px; max-width: 1180px; }
.home > *, .lower > *, .side > * { min-width: 0; }
.col-main { display: grid; gap: 36px; min-width: 0; }
.hero-home { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; }
.home-orb { width: 96px; height: 96px; grid-row: span 2; }
.home-orb img { width: 100%; height: 100%; filter: drop-shadow(0 14px 18px rgba(110,123,214,.35)); animation: mascot-float 6.5s ease-in-out infinite; }
@keyframes mascot-float { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -8px; rotate: 4deg; } }
.hero-home h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -.04em; margin: 0; font-weight: 800; }
.hero-home .date { margin: 0; color: var(--soft); font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.hero-home .date .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.home-ask { display: grid; gap: 12px; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; }
.idea { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); transition: transform .12s var(--ease), box-shadow .15s; }
.idea:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--line-2); }
.idea svg { width: 14px; height: 14px; color: var(--signal); flex: none; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.block-head .section-title { margin: 0; }
.lower { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.side { display: grid; gap: 30px; align-content: start; }
.side section { background: var(--surface); border-radius: var(--r-l); padding: 18px 18px 14px; box-shadow: var(--shadow-1); }

.cards { display: grid; gap: 8px; margin-top: 8px; }
.card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 12px 14px 14px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--signal-glow); color: var(--signal); }
.card-icon svg { width: 18px; height: 18px; }
.card.kind-task .card-icon { background: var(--amber-wash); color: var(--amber); }
.card.kind-billing .card-icon { background: rgba(110,231,183,.12); color: var(--ok); }
.card h3 { margin: 0; font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.card p { margin: 2px 0 0; font-size: 13.5px; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; align-items: center; gap: 2px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list button, .list .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 10px 2px; background: none; border: 0; text-align: left; cursor: pointer; }
.list .row { cursor: default; }
.list .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.list .t svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
.list button:hover .t { color: var(--signal); }
.list .meta { white-space: nowrap; font-family: var(--mono); font-size: 11.5px; }
.memlist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.memlist li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); flex: none; }
.memlist li span { flex: 1; min-width: 0; }
.memlist .x { border: 0; background: none; color: var(--faint); cursor: pointer; opacity: 0; width: 22px; height: 22px; border-radius: 6px; }
.memlist li:hover .x, .memlist .x:focus-visible { opacity: 1; }
@media (hover: none) { .memlist .x { opacity: .7; } }
.empty-art { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 18px 8px; }
.empty-art img { width: 84px; height: 84px; }

.meter { margin-bottom: 14px; }
.meter-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; color: var(--soft); }
.meter-head span:last-child { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.tank { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.tank.slim { height: 4px; margin-bottom: 14px; }
.water { height: 100%; border-radius: 999px; background: var(--aurora); transition: width .8s var(--ease); }
.water.high { background: linear-gradient(90deg, var(--signal), var(--amber)); }
.water.full { background: linear-gradient(90deg, var(--amber), var(--danger)); }
.meter-foot { margin-top: 6px; font: 11.5px var(--mono); color: var(--faint); }

/* ---------- composer */
.composer { display: flex; align-items: flex-end; gap: 6px; background: var(--surface); border-radius: 24px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow-2); transition: box-shadow .2s; }
.composer:focus-within { box-shadow: 0 0 0 1.5px var(--signal), 0 0 0 6px var(--signal-glow), 0 18px 40px -18px rgba(10,15,30,.3); }
.composer.big { padding: 12px 12px 12px 22px; border-radius: 28px; }
.composer.big textarea { font-size: 17px; min-height: 48px; }
.composer textarea { flex: 1; min-width: 0; border: 0; background: none; resize: none; outline: none; padding: 9px 0; max-height: 220px; line-height: 1.45; }
.composer .icon-btn { width: 40px; height: 40px; border-radius: 50%; }
.composer .mic.on { color: #fff; background: var(--danger); }
.attach-row { display: flex; flex-wrap: wrap; gap: 6px; }
.attach-row:empty { display: none; }
.chip-file { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: 9px; font: 12.5px var(--mono); background: var(--surface); box-shadow: var(--shadow-1); max-width: 260px; }
.chip-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-file img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.chip-file button { border: 0; background: none; color: var(--faint); cursor: pointer; width: 20px; height: 20px; border-radius: 5px; }
.chip-file.uploading { opacity: .6; }

/* ---------- chat */
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-head { padding: 16px clamp(16px, 4vw, 40px); display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.chat-head h1 { font-size: 15px; margin: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .icon-btn { margin-left: auto; }
.log { flex: 1; overflow-y: auto; padding: 28px clamp(16px, 4vw, 40px) 12px; }
.log-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.msg-user { align-self: flex-end; max-width: 78%; background: var(--primary-fill); color: var(--primary-ink); padding: 10px 16px; border-radius: 20px 20px 6px 20px; box-shadow: 0 10px 22px -14px rgba(40,124,250,.7); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.msg-user .att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg-user .att img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.msg-user .att a { font: 12px var(--mono); color: inherit; opacity: .85; }
.msg-ai { position: relative; padding-left: 42px; font-family: var(--font); font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.msg-ai::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 30px; background: url("/media/brand/mark-64.png") center / contain no-repeat; }
.msg-ai + .msg-ai::before, .msg-ai:empty::before { display: none; }
.msg-ai p { margin: 0 0 .65em; } .msg-ai p:last-child { margin-bottom: 0; }
.msg-ai strong { font-weight: 600; }
.msg-ai pre { font: 13px/1.55 var(--mono); background: var(--surface); padding: 12px 14px; border-radius: 12px; overflow-x: auto; box-shadow: var(--shadow-1); }
.msg-ai code { font: .82em var(--mono); background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
.msg-ai pre code { background: none; padding: 0; }
.msg-ai ul, .msg-ai ol { padding-left: 1.2em; margin: 0 0 .65em; }
.msg-ai a { color: var(--signal); }
.msg-ai.small { font-size: 15px; padding-left: 0; } .msg-ai.small::before { display: none; }
.typing:empty::after { content: ""; display: inline-block; width: 30px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--signal) 0 30%, transparent 30% 35%, var(--signal) 35% 65%, transparent 65% 70%, var(--signal) 70%); opacity: .55; animation: hop 1s ease-in-out infinite; }
.typing:not(:empty)::after { content: "▍"; color: var(--signal); animation: blink 1s steps(2) infinite; font-family: var(--mono); }
@keyframes blink { 50% { opacity: 0; } }
.note { font-size: 13px; color: var(--soft); margin: 0; }
.chip-note { align-self: flex-start; margin-left: 40px; display: inline-flex; gap: 8px; align-items: center; font: 12.5px var(--mono); background: var(--surface); padding: 5px 11px; border-radius: 8px; box-shadow: var(--shadow-1); }
.chip-note a { color: var(--signal); }
/* agent run log: each tool call becomes a line, the active one pulses */
.steplog { margin-left: 40px; display: grid; gap: 2px; font: 12.5px var(--mono); color: var(--soft); border-left: 1px solid var(--line-2); padding: 2px 0 2px 14px; }
.steplog .ln { display: flex; align-items: center; gap: 9px; }
.steplog .ln .dot { width: 6px; height: 6px; }
.steplog .ln.done .dot { background: var(--ok); box-shadow: none; animation: none; }
.steplog .ln b { color: var(--ink); font-weight: 500; }
.status-line { min-height: 22px; padding: 0 clamp(16px, 4vw, 40px); max-width: 840px; margin: 0 auto; width: 100%; font: 12.5px var(--mono); color: var(--soft); display: flex; align-items: center; }
.welcome { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 7vh 0 2vh; }
.welcome .home-orb { width: 132px; height: 132px; }
.welcome p { font-size: 16px; color: var(--soft); margin: 0; max-width: 46ch; }
.welcome .ideas { justify-content: center; }
.approval { margin-left: 40px; border-radius: var(--r); background: var(--surface); padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.approval strong { display: block; margin-bottom: 4px; font-weight: 600; }
.approval .url { font: 12.5px var(--mono); overflow-wrap: anywhere; color: var(--soft); }
.approval .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.approval.resolved { opacity: .6; }
.approval.money { box-shadow: inset 0 0 0 1.5px var(--amber), 0 10px 30px -15px var(--amber); }
.approval.handover { box-shadow: inset 0 0 0 1.5px var(--signal), 0 10px 30px -15px var(--signal); }
.review { background: var(--bg-2); border-radius: 12px; padding: 12px 14px; font-size: 14px; overflow-wrap: anywhere; margin-top: 8px; }
.review code { font: 12.5px var(--mono); }
.review .big { font-size: 22px; letter-spacing: -.02em; }
.ho-type { display: flex; gap: 6px; margin-top: 10px; }
.live, .handoff { margin: 0 0 0 40px; border-radius: var(--r); overflow: hidden; background: #070A14; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2); }
.live-bar { display: flex; align-items: center; gap: 9px; padding: 9px 12px; font: 12px var(--mono); color: #B8C4DD; background: #0D1324; border-bottom: 1px solid rgba(150,170,215,.12); }
.live-bar .dot { background: #FF6B6B; box-shadow: 0 0 0 3px rgba(255,107,107,.18); animation: beat 1.4s ease-in-out infinite; }
.live-bar .live-url { margin-left: 8px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(255,255,255,.05); padding: 3px 10px; border-radius: 6px; color: #DCE4F5; }
.live.ended .live-bar .dot { background: #6EE7B7; box-shadow: none; animation: none; }
.live img { width: 100%; min-height: 120px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #0A0F1E; }
.live figcaption, .handoff figcaption { padding: 8px 12px; font: 12px var(--mono); color: #93A0BC; background: #0D1324; overflow-wrap: anywhere; }
.live.control { box-shadow: 0 0 0 2px var(--signal), var(--shadow-2); }
.live.control img { cursor: crosshair; }
.term-card { margin: 0 0 0 40px; border-radius: var(--r); overflow: hidden; background: #070A14; box-shadow: 0 0 0 1px var(--line-2); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font: 12px var(--mono); color: #93A0BC; background: #0D1324; }
.term-bar .dot { background: var(--amber); }
.term-card.ended .term-bar .dot { background: #6EE7B7; box-shadow: none; }
.term-card pre { margin: 0; padding: 12px 14px; max-height: 280px; overflow: auto; color: #D7E2F2; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.term-card .prompt, .term .prompt { color: #59E3FF; }
.term-card .dim, .term .dim { color: #66708A; }
.composer-wrap { padding: 8px clamp(16px, 4vw, 40px) max(18px, env(safe-area-inset-bottom)); }
.composer-wrap > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.composer-wrap .attach-row { margin-bottom: 8px; }

/* ---------- panels */
.inline-form { display: flex; gap: 8px; margin: 0 0 22px; max-width: 620px; }
.inline-form.wide { max-width: 780px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.panel-grid.big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.panel-tile { background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.panel-tile header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--line); }
.panel-tile h3 { margin: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-tile iframe { width: 100%; height: 280px; border: 0; background: var(--surface); display: block; }
.panel-tile.big iframe { height: 440px; }
.panel-wait { height: 280px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--soft); font-size: 13.5px; padding: 16px; text-align: center; }
.panel-tile.big .panel-wait { height: 440px; }
dialog.sheet { width: min(900px, calc(100vw - 24px)); height: min(780px, calc(100dvh - 24px)); border: 0; padding: 0; border-radius: 22px; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; box-shadow: 0 40px 120px -30px rgba(0,0,0,.6), 0 0 0 1px var(--line-2); }
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: rgba(3,5,12,.55); backdrop-filter: blur(4px); }
dialog.sheet header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 12px 22px; border-bottom: 1px solid var(--line); }
dialog.sheet h2 { margin: 0; font-size: 16px; font-weight: 600; }
dialog.sheet iframe { flex: 1; width: 100%; border: 0; background: var(--surface); }
.redesign { display: flex; gap: 8px; padding: 12px 14px 16px; border-top: 1px solid var(--line); }

/* ---------- settings & workspace */
.tabs { display: flex; gap: 2px; flex-wrap: wrap; margin: 0 0 26px; padding: 4px; background: var(--bg-2); border-radius: 999px; width: fit-content; max-width: 100%; box-shadow: inset 0 0 0 1px var(--line); }
.tabs button { border: 0; background: none; padding: 7px 15px; border-radius: 999px; cursor: pointer; font-weight: 560; font-size: 13.5px; color: var(--soft); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 0 0 1px var(--line); }
.tab-body { max-width: 880px; }
.tab-body.wide { max-width: 1000px; }
.current-plan { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.current-plan .plan-chip { font-size: 13px; padding: 4px 12px; background: var(--bg-2); color: var(--ink); }
.usage-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 640px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 18px; align-items: start; }
.plan-card { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 18px; border-radius: var(--r-l); display: grid; gap: 8px; align-content: start; }
.plan-card.featured { box-shadow: 0 24px 48px -30px rgba(124,92,255,.55); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box; border: 2px solid transparent; }
.plan-card.current { box-shadow: inset 0 0 0 1.5px var(--signal); }
.plan-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-card h3 { margin: 0; font-size: 15px; font-weight: 700; }
.plan-card .pop { padding: 3px 10px; border-radius: 999px; background: var(--aurora); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.plan-card .pop.quiet { background: var(--signal-glow); color: var(--signal); }
.plan-card .price { margin: 2px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.plan-card .price small { font-size: 13px; font-weight: 500; color: var(--soft); margin-left: 4px; letter-spacing: 0; }
.plan-card .tagline { margin: 0; color: var(--soft); font-size: 13.5px; line-height: 1.45; }
.feats { margin: 6px 0 4px; display: grid; }
.feats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.feats dt { color: var(--soft); }
.feats dd { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.plan-card .btn { justify-self: stretch; margin-top: 6px; }
/* today: the one big number on the page */
.plan-today { background: var(--surface); border-radius: var(--r-l); box-shadow: inset 0 0 0 1px var(--line); padding: 18px; display: grid; gap: 10px; }
.plan-today p { margin: 0; }
.today-num { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.today-num strong { font-size: 52px; font-weight: 800; letter-spacing: -.05em; line-height: .95; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.today-num span { font-size: 15px; font-weight: 600; }
.tank.big { height: 12px; }
.today-slots { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--soft); }
.unlocks { border-top: 1px solid var(--line); padding-top: 10px; }
.unlocks h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.unlocks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--signal); font-weight: 600; cursor: pointer; text-align: left; }
.linkish:hover { text-decoration: underline; }
.linkish:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.pay-note { margin: 0 0 12px; }
.seg.months span { display: grid; gap: 1px; text-align: center; }
.seg.months b { font-weight: 700; font-size: 12.5px; color: var(--ink); }
.co-sum { margin: 0; font-weight: 650; }
.checkout, .invoice { background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r-l); padding: 20px 22px; display: grid; gap: 12px; max-width: 580px; }
.checkout h3 { margin: 0; font-size: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 13px; border-radius: 7px; cursor: pointer; font-size: 13.5px; font-weight: 560; color: var(--soft); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 0 0 1px var(--line); }
.seg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.invoice p { margin: 0; }
.invoice .amount { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.invoice .amount strong { font: 500 30px var(--mono); letter-spacing: -.03em; }
.invoice .addr, .export .addr { display: flex; align-items: center; gap: 6px; background: var(--bg-2); border-radius: 10px; padding: 8px 6px 8px 12px; }
.invoice code, .export code { font: 12.5px var(--mono); overflow-wrap: anywhere; flex: 1; }
.invoice .status { display: flex; align-items: center; font-weight: 560; }
.conn { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r-l); max-width: 580px; }
.conn-logo { width: 42px; height: 42px; display: grid; place-items: center; background: var(--bg-2); border-radius: 12px; }
.conn-logo svg { width: 22px; height: 22px; }
.conn-body { flex: 1; min-width: 0; }
.conn-body h3 { margin: 0; font-size: 15px; } .conn-body p { margin: 2px 0 0; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; max-width: 760px; align-items: end; }
.grid-form .area, .grid-form .seg, .grid-form .row-fields, .wide-field { grid-column: 1 / -1; }
.grid-form .btn { justify-self: start; }
.grid-form.tight { margin: 0; max-width: none; }
.row-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.mini { display: grid; gap: 5px; font-size: 12.5px; color: var(--soft); font-weight: 520; }
.mini[hidden] { display: none; }
.mini .field { color: var(--ink); font-weight: 400; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.specs { display: grid; gap: 10px; }
.spec { background: var(--surface); box-shadow: var(--shadow-1); border-radius: var(--r); padding: 14px 18px; }
.spec.paused { opacity: .6; }
.spec header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.spec h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 7px; font-weight: 600; }
.spec h3 svg { width: 16px; height: 16px; color: var(--amber); }
.spec p { margin: 6px 0; font-size: 14px; }
.spec pre { white-space: pre-wrap; font: 13px/1.55 var(--mono); margin: 8px 0 0; color: var(--soft); }
.spec .actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.spec details { font-size: 14px; margin-top: 6px; }
.spec summary { cursor: pointer; color: var(--signal); font-weight: 560; }

.files-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font: 500 13px var(--mono); }
.crumbs button { border: 0; background: none; padding: 3px 6px; cursor: pointer; color: var(--signal); border-radius: 6px; font: inherit; }
.crumbs span { color: var(--faint); }
.files-head .meta { margin-left: auto; font-family: var(--mono); }
.upload-btn { cursor: pointer; }
.list.files { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 4px 10px; }
.list.files .row { display: grid; grid-template-columns: 1fr auto auto auto auto; align-items: center; gap: 4px; padding: 6px 2px; }
.file-name { display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 4px 0; text-align: left; min-width: 0; font: 13.5px var(--mono); color: inherit; }
button.file-name { cursor: pointer; font-weight: 600; }
.file-name svg { width: 16px; height: 16px; flex: none; color: var(--faint); }
.term { background: #070A14; color: #D7E2F2; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 0 0 1px rgba(150,170,215,.16), var(--shadow-2); }
.term-out { margin: 0; padding: 18px 20px; height: min(56vh, 480px); overflow: auto; font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.term .err { color: #FF8A7A; }
.term-in { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; background: #0D1324; font-family: var(--mono); color: #59E3FF; border-top: 1px solid rgba(150,170,215,.12); }
.term-in input { flex: 1; min-width: 0; border: 0; background: none; color: #EEF2FA; font: 13.5px var(--mono); outline: none; }
.term-in:focus-within { box-shadow: inset 0 2px 0 #59E3FF; }
.wallet-card { background: radial-gradient(90% 120% at 0% 0%, #2B4BDB 0%, transparent 60%), radial-gradient(80% 120% at 100% 100%, #B04A9A 0%, transparent 60%), #1A1F5C; color: #EEF2FA; border-radius: var(--r-l); padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 0 0 1px rgba(150,170,215,.16), var(--shadow-2); }
.wallet-top { display: flex; align-items: center; gap: 14px; }
.wallet-icon { width: 50px; height: 50px; flex: none; background: url("/media/3d/icon-wallet.webp") center / contain no-repeat; }
.wallet-icon svg { display: none; }
.wallet-top > div:nth-child(2) { flex: 1; min-width: 0; }
.wallet-top .icon-btn { color: #B8C4DD; } .wallet-top .icon-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.wallet-top .meta { color: #93A0BC; }
.addr-big { font: 500 14px var(--mono); overflow-wrap: anywhere; }
.wallet-top p { margin: 3px 0 0; }
.nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 18px; }
.net { background: rgba(255,255,255,.035); border-radius: 12px; padding: 10px 12px; box-shadow: inset 0 0 0 1px rgba(150,170,215,.1); }
.net h4 { margin: 0 0 6px; font-size: 12px; color: #93A0BC; font-weight: 560; }
.asset { display: flex; justify-content: space-between; gap: 8px; font: 12.5px var(--mono); color: #66708A; }
.asset.has { color: #EEF2FA; }
.send-form { max-width: 660px; }
.export { margin-top: 28px; }
.export summary { cursor: pointer; color: var(--danger); font-weight: 560; font-size: 14px; }

/* ---------- toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); opacity: 0; pointer-events: none; z-index: 60; display: flex; align-items: center; gap: 10px;
  background: #101638; color: #F2F5FF; padding: 11px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(150,170,215,.18); max-width: calc(100vw - 32px); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aurora); flex: none; }

/* ---------- responsive */
@media (max-width: 1080px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .caps { grid-template-columns: 1fr 1fr; }
  .aurora-band { grid-template-columns: 1fr; }
  .home { grid-template-columns: minmax(0, 1fr); }
  .lower { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero h1 .ln, .final h2 .ln { white-space: normal; }
  .sky { display: none; }
  .stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 30px; }
  .phone { transform: none; }
  .stage .mascot { top: 0; margin-left: 70px; width: 130px; }
  .float { position: static; rotate: 0deg !important; width: min(100%, 420px); }
  .float.f0 { margin-top: 34px; }
  .demo { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
  .lplans, .plans { grid-template-columns: 1fr; }
  .usage-row { grid-template-columns: 1fr; }
  .lnav nav { display: none; }
  .lnav { margin: 10px 12px 0; }
}
@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .main { margin: 0; border-radius: 0 0 24px 24px; box-shadow: 0 0 0 1px var(--line); }
  .rail { grid-row: 2; flex-direction: row; justify-content: space-around; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); gap: 0; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .feature-row { grid-template-columns: 1fr; }
  .lfoot .right { margin-left: 0; }
  .brand, .rail-foot { display: none; }
  .nav-btn { flex-direction: column; gap: 3px; font-size: 10.5px; padding: 6px 8px; }
  .nav-btn[aria-current="page"] { box-shadow: none; background: var(--signal-glow); }
  .nav-btn span { max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
  .page { padding-top: 26px; }
  .hero-home { grid-template-columns: auto 1fr; gap: 4px 14px; }
  .home-orb { width: 64px; height: 64px; }
  .composer.big textarea { font-size: 16px; }
  .grid-form { grid-template-columns: 1fr; }
  .list.files .row { grid-template-columns: 1fr auto auto auto; }
  .list.files .row .meta { display: none; }
  .msg-ai { padding-left: 0; } .msg-ai::before { display: none; }
  .steplog, .approval, .live, .handoff, .term-card, .chip-note { margin-left: 0; }
  .promises { grid-template-columns: 1fr; }
  .phone { width: 280px; height: 570px; }
  .float.f1, .float.f3 { display: none; }
  .deco.d3, .deco.d4 { display: none; }
  .lnav .right .btn.quiet { display: none; }
  .toast { bottom: 82px; }
  .card { grid-template-columns: auto 1fr; }
  .card-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .phone, .mascot, .deco, .home-orb img, .final-mascot, .aurora-text { animation: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* late additions */
.google-btn.big { width: auto; padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.chip-file svg { width: 15px; height: 15px; color: var(--soft); flex: none; }
.orb-mark { display: block; }

.bn-logo { color: #F0B90B; background: rgba(240,185,11,.12); }
.bn-qr { grid-template-columns: auto 1fr; align-items: center; gap: 20px; margin-top: 12px; }
.bn-qr img { border-radius: 14px; background: #fff; padding: 8px; }
.bn-chat .bn-qr { display: grid; }
.bn-chat .bn-qr .status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bn-qr p { margin: 0 0 8px; }
.card.kind-alert .card-icon { background: var(--signal-glow); color: var(--signal); }
@media (max-width: 720px) { .bn-qr { grid-template-columns: 1fr; justify-items: start; } }

.sign-msg { max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-size: 12.5px; margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: var(--raised); }

.inv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; }
.timer.urgent { color: var(--amber); }

.lstats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 0; }
.lstats div { display: flex; flex-direction: column-reverse; }
.lstats dd { margin: 0; font: 800 26px/1.1 var(--font); letter-spacing: -.03em; color: var(--signal); }
.lstats dt { font-size: 12.5px; color: var(--soft); }

.svc-row { flex-wrap: wrap; gap: 6px 12px; }
.svc-row .t { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.svc-cmd { font-size: 12px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.svc-act { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.svc-log { max-height: 260px; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-word; margin: 8px 0 0; padding: 10px; border-radius: 10px; background: var(--raised); }
.svc-upsell { margin: 12px 0; }

/* tap-to-answer choices under an answer ("Options: a | b | c") */
.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.quick-replies .chip { font: 500 13.5px/1 var(--sans, inherit); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.quick-replies .chip:hover { border-color: var(--signal); background: var(--signal-glow); }
.quick-replies .chip:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ================= TELEGRAM MINI APP ================= */
.mshell { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.mtop { position: sticky; top: 0; z-index: 5; padding: 10px 14px 0; }
.mback { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--signal); font: 650 15px var(--font); cursor: pointer; padding: 6px 4px; }
.mback svg { width: 18px; height: 18px; }
.mmain { max-width: 640px; margin: 0 auto; }
.mpage { padding: 14px 16px 24px; display: grid; gap: 14px; }
.mpage .page-head h1 { font-size: 28px; }
.mpage .page-head p { margin: 0; font-size: 14.5px; }
.mtabs { position: fixed; z-index: 20; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 620px; margin: 0 auto; height: 64px; border-radius: 26px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 0 0 1px var(--line), 0 16px 34px -18px rgba(40,70,160,.55); }
.mtabs button { display: grid; justify-items: center; gap: 2px; border: 0; background: none; cursor: pointer; color: var(--faint); font: 700 10.5px var(--font); padding: 0; }
.mtabs .pill { display: grid; place-items: center; width: 48px; height: 28px; border-radius: 14px; transition: background .2s var(--ease); }
.mtabs svg { width: 21px; height: 21px; }
.mtabs [aria-current="page"] { color: var(--signal); }
.mtabs [aria-current="page"] .pill { background: var(--signal-glow); }
.mcard { border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-1), 0 14px 30px -26px rgba(40,70,160,.55); padding: 14px; display: grid; gap: 10px; min-width: 0; }
.mcard.aurora { background: linear-gradient(120deg, #E3F3FF, #F1E9FF 55%, #FFEAF4); color: #101638; }
.mcard.aurora .muted, .mcard.aurora .tiny { color: #536180; }
.mcard img { flex: none; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.muted { color: var(--soft); font-size: 13.5px; margin: 0; }
.tiny { color: var(--faint); font-size: 12px; font-weight: 600; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.mhello { display: flex; align-items: center; gap: 12px; }
.mhello img { width: 66px; height: 66px; filter: drop-shadow(0 10px 14px rgba(110,123,214,.35)); animation: mascot-float 6.5s ease-in-out infinite; }
.mhello h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.streak { color: #E8590C; }
.mask { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 6px 0 18px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 12px 26px -18px rgba(40,70,160,.6); }
.mask:focus-within { box-shadow: 0 0 0 1.5px var(--signal), 0 0 0 5px var(--signal-glow); }
.mask input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 500 15px var(--font); color: var(--ink); }
.mask .go { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--primary-fill); color: #fff; cursor: pointer; }
.mask .go svg { width: 17px; height: 17px; }
.mnote { margin: -8px 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 650 12.5px var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.mchip svg { width: 13px; height: 13px; color: var(--signal); flex: none; }
.mbar { height: 7px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.mbar i { display: block; height: 100%; border-radius: inherit; background: var(--aurora); }
.mlist > * + * { border-top: 1px solid var(--line); }
.mrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
div.mrow, article.mrow { cursor: default; }
details.mrow.learned { display: block; cursor: default; }
details.learned > summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; }
details.learned > summary::-webkit-details-marker { display: none; }
.learned-body { white-space: pre-wrap; font-size: 12px; line-height: 1.5; max-height: 320px; overflow: auto; padding: 10px; margin: 8px 0; border-radius: 10px; background: color-mix(in srgb, currentColor 6%, transparent); }
.mrow b { display: block; font-size: 14px; }
.mrow > svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.mrow .row { margin-top: 6px; }
.mstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mstats .mcard { gap: 2px; padding: 12px; }
.mstats .mcard b { font-size: 17px; margin-top: 4px; }
.mseg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.mseg button { border: 0; background: none; padding: 8px 0; border-radius: 999px; font: 750 13px var(--font); color: var(--soft); cursor: pointer; }
.mseg [aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(40,70,160,.35); }
.post .icon-btn.on { color: #FF4F8B; background: rgba(255,79,139,.1); }
.post .icon-btn[data-act="save"].on { color: var(--signal); background: var(--signal-glow); }
.msearch { border-radius: 999px; padding: 12px 18px; }
.mprofile h1 { margin: 0; font-size: 22px; font-weight: 800; }
.mavatar { width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 22px var(--font); color: #fff; background: var(--aurora); object-fit: cover; }
.mlink { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 600 11.5px var(--mono); color: #101638; }
.moutside { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.moutside img { width: 120px; height: 120px; }
.moutside h1 { margin: 0; font-size: 30px; font-weight: 800; }
.mshell .page { padding-top: 14px; }
.mshell .tab-body, .mshell .grid-form, .mshell .checkout, .mshell .invoice, .mshell .conn { max-width: none; }
.mshell .grid-form { grid-template-columns: 1fr; }
.mshell .plans { grid-template-columns: 1fr; }
.join { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 520px; margin: 0 auto; }
.join .field { flex: 1 1 240px; border-radius: 999px; padding: 15px 20px; }
.join-msg { margin: 12px auto 0; min-height: 1.4em; font-weight: 650; }
.join-msg.ok { color: var(--ok); } .join-msg.bad { color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .mhello img { animation: none; } }
.mcard > .smoothie { width: 56px; height: 56px; }

/* Mini App: wallet */
.wbody { display: grid; gap: 14px; }
.wtotal { border-radius: 26px; padding: 18px; color: #fff; display: grid; gap: 4px;
  background: radial-gradient(90% 120% at 0% 0%, #2B6BFF 0%, transparent 60%), radial-gradient(80% 120% at 100% 100%, #C2549F 0%, transparent 60%), radial-gradient(60% 80% at 100% 0%, #7C5CFF 0%, transparent 70%), #1A1F5C;
  box-shadow: 0 22px 44px -26px rgba(26,31,92,.8); }
.wtotal > .between > span { font-size: 13px; opacity: .82; font-weight: 600; }
.wtotal > b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.wtotal > p { margin: 0; font-size: 12.5px; opacity: .78; }
.waddr { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 5px 10px; background: rgba(255,255,255,.16); color: #fff; font: 600 12px var(--mono); cursor: pointer; }
.waddr svg { width: 13px; height: 13px; }
.wacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.wacts button { display: grid; justify-items: center; gap: 6px; border: 0; background: none; color: #fff; font: 700 11.5px var(--font); cursor: pointer; }
.wacts button span { width: 100%; height: 44px; border-radius: 15px; display: grid; place-items: center; font-size: 18px; background: rgba(255,255,255,.15); transition: background .15s; }
.wacts button:hover span { background: rgba(255,255,255,.24); }
.mseg.two { grid-template-columns: 1fr 1fr; }
.wamt { text-align: right; }
.wamt b { display: block; font-size: 14px; }
.wfull { display: block; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font: 600 12.5px var(--mono); overflow-wrap: anywhere; }
.mcard .mini { display: grid; gap: 5px; }
.mcard.export summary { cursor: pointer; font-weight: 700; color: var(--danger); }
/* Mini App: connections */
.ctiles { display: grid; gap: 10px; }
.ctile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-1); }
.ctile.on { box-shadow: inset 0 0 0 1.5px rgba(18,167,110,.45), var(--shadow-1); }
.clogo { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); }
.clogo svg, .clogo img { width: 26px; height: 26px; }
.bn-mark { color: #F0B90B; display: grid; place-items: center; }
.cdot { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(18,167,110,.12); color: var(--ok); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.bnflow { justify-items: start; }
.bnflow img { margin-top: 8px; border-radius: 12px; background: #fff; padding: 6px; }
