/* Inter и Manrope, OFL, @fontsource-variable 5.3.0. unicode-range скопирован из wght.css того же пакета. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  --acid: #38bdf8;
  --hot: #8b5cf6;
  --yellow: #c4b5fd;
  --ink: #050705;
  --panel: #0b0e0b;
  --line: #293126;
  --muted: #76806f;
  --content-primary: var(--ink);
  --content-secondary: var(--muted);
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@layer base {
  * { box-sizing: border-box; }
  html, body, #root { width: 100%; height: 100%; overflow: hidden; }
  body { margin: 0; background: var(--ink); color: #f1f3ed; font-family: 'DM Mono', monospace; }
  button, input, textarea { font: inherit; }
  button { cursor: pointer; color: inherit; }
}

@keyframes pulseGlow { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes softReveal { from { opacity: 0; transform: translateY(10px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes statusPulse { 0%, 100% { opacity: .65; box-shadow: 0 0 4px var(--acid); } 50% { opacity: 1; box-shadow: 0 0 12px var(--acid); } }
@keyframes glassSheen { 0%, 65% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes borderFlow { to { --border-angle: 360deg; } }
@keyframes typeWelcome {
  0%, 8% { width: 0; }
  32%, 100% { width: 9ch; }
}
@keyframes typeBack {
  0%, 34% { width: 0; }
  52%, 100% { width: 6ch; }
}
@keyframes cursorFirst { 0%, 8%, 17%, 26%, 34%, 100% { border-color: transparent; } 9%, 16%, 18%, 25%, 27%, 33% { border-color: var(--acid); } }
@keyframes cursorSecond { 0%, 34%, 43%, 52%, 61%, 70%, 79%, 89%, 100% { border-color: transparent; } 35%, 42%, 44%, 51%, 53%, 60%, 62%, 69%, 71%, 78%, 80%, 88% { border-color: var(--acid); } }
@keyframes panelAppear { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes panelFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes signalDraw { 0%, 100% { stroke-dashoffset: 30; opacity: .45; } 45%, 65% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes timeCore { 0%, 100% { opacity: .45; transform: scale(.7); transform-origin: center; } 50% { opacity: 1; transform: scale(1.15); transform-origin: center; } }
@keyframes glassFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes glassCloudDrift {
  0% {
    background-position: 0 0, 100% 24%, 42% 100%;
    transform: translate3d(-8%, -6%, 0) scale(.96);
  }
  36% {
    background-position: 58% 8%, 76% 100%, 0 46%;
    transform: translate3d(6%, -2%, 0) scale(1.1);
  }
  70% {
    background-position: 100% 58%, 8% 82%, 68% 0;
    transform: translate3d(-4%, 8%, 0) scale(1);
  }
  100% {
    background-position: 72% 100%, 0 18%, 100% 52%;
    transform: translate3d(9%, 5%, 0) scale(1.08);
  }
}
@keyframes progressFlow { 0% { stroke-dashoffset: 42; } 50% { stroke-dashoffset: 10; } 100% { stroke-dashoffset: -8; } }
@keyframes technoTelemetryDrift {
  0% {
    background-position: -180px 18%, 68% -150px, calc(100% + 140px) 76%, 15% 32%, 84% 68%, 46% 88%;
    opacity: var(--telemetry-opacity-low, .3);
  }
  46% { opacity: var(--telemetry-opacity-high, .5); }
  100% {
    background-position: calc(100% + 180px) 18%, 68% calc(100% + 150px), -140px 76%, 24% 40%, 76% 61%, 54% 82%;
    opacity: var(--telemetry-opacity-low, .3);
  }
}
@keyframes technoVerticalBus {
  from { background-position: 0 -140px; }
  to { background-position: 0 calc(100% + 140px); }
}
@keyframes technoHorizontalBus {
  from { background-position: -180px 100%; }
  to { background-position: calc(100% + 180px) 100%; }
}
@keyframes technoMenuSignal {
  from { background-position: -56px 100%; }
  to { background-position: calc(100% + 56px) 100%; }
}
@keyframes technoRailHandshake {
  0%, 12%, 100% { opacity: .2; transform: scaleX(.22); }
  18% { opacity: .68; transform: scaleX(.82); }
  24% { opacity: .34; transform: scaleX(.52); }
  30% { opacity: .54; transform: scaleX(.68); }
  38% { opacity: .2; transform: scaleX(.22); }
}

.noise { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }
.theme-root { width: 100%; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 28.5px 'Space Grotesk', sans-serif; letter-spacing: -1px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; overflow: hidden; color: #fff; background: transparent; }
.grid-icon { position: relative; display: block; width: 100%; height: 100%; }
.grid-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grid-icon-placeholder { display: none; }
.grid-icon-minimal-light,
.grid-icon-minimal-dark,
.grid-icon-retro-light,
.grid-icon-retro-dark,
.grid-icon-glass-light,
.grid-icon-glass-dark,
.grid-icon-bento-light,
.grid-icon-bento-dark,
.grid-icon-techno-light,
.grid-icon-techno-dark { display: none; }
.grid-icon-dark { display: none; }
.theme-dark .grid-icon-light { display: none; }
.theme-dark .grid-icon-dark { display: block; }
.brand-mark { transition: transform .35s ease, box-shadow .35s ease; }
.brand:hover .brand-mark { transform: rotate(8deg); box-shadow: 0 0 18px #8b5cf638; }

/* Temporary theme marks — replace with final theme logos when supplied. */
.style-minimal .grid-icon img{ display: none; }
.style-minimal .grid-icon-placeholder{ position: absolute; inset: 0; display: grid; }

.style-minimal .brand-mark { overflow: visible; background: transparent; }
.style-minimal .grid-icon-placeholder { grid-template-columns: repeat(2, 7px); grid-auto-rows: 7px; place-content: center; gap: 3px; border-radius: 8px; background: #2563eb; box-shadow: 0 5px 14px #2563eb30; }
.style-minimal .grid-icon-placeholder i { border-radius: 2px; background: #fff; }
.theme-dark.style-minimal .grid-icon-placeholder { background: #f4f4f5; box-shadow: none; }
.theme-dark.style-minimal .grid-icon-placeholder i { background: #2563eb; }

.eyebrow { color: var(--acid); font-size: 15px; letter-spacing: .18em; }

/* AUTH */
.auth-shell { width: 100%; height: 100vh; height: 100dvh; display: grid; grid-template-rows: calc(76px + env(safe-area-inset-top, 0px)) minmax(0, 1fr) calc(48px + env(safe-area-inset-bottom, 0px)); overflow: hidden; background: #000; }
.auth-nav, .auth-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 4.2vw; border-bottom: 1px solid var(--line); }
.auth-nav { z-index: 30; }
.auth-nav { padding-top: env(safe-area-inset-top, 0px); }
.auth-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
.nav-status { display: flex; gap: 9px; align-items: center; color: #8c9386; font-size: 13.5px; letter-spacing: .14em; }
.nav-status span, .header-status i, .online { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); animation: statusPulse 2.4s ease-in-out infinite; }
.auth-stage { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.auth-stage-open { grid-template-columns: minmax(0, 1fr); }
.auth-stage:not(.auth-stage-open) .auth-art { padding-inline: 8vw; }
.auth-stage:not(.auth-stage-open) .preview-chat, .auth-stage:not(.auth-stage-open) .access-note { width: min(980px, 100%); align-self: center; }
.auth-art { position: relative; display: flex; flex-direction: column; padding: clamp(42px, 6vh, 70px) 6vw 34px; overflow: hidden; border-right: 1px solid #20231f; background: #000; }
.auth-art::after { content: none; }
.auth-art h1, .empty-state h1 { position: relative; z-index: 1; margin: 12px 0 0; font: 600 clamp(108px, 12.9vw, 213px)/.78 'Space Grotesk', sans-serif; letter-spacing: -.085em; }
.auth-art h1 span { color: transparent; -webkit-text-stroke: 1px var(--acid); text-shadow: 0 0 28px #8b5cf633; }
.access-lead { position: relative; z-index: 1; width: min(600px, 90%); margin: 22px 0 26px; color: #8495a5; font: 400 19.5px/1.7 'Space Grotesk'; }
.hud-corner { position: absolute; color: #65705e; font-size: 10.5px; letter-spacing: .16em; }.hud-corner::before { content: ''; display: inline-block; width: 24px; height: 1px; margin-right: 8px; vertical-align: middle; background: var(--acid); }
.hud-corner-top { top: 22px; right: 25px; }.hud-corner-bottom { right: 25px; bottom: 22px; }
.access-card { position: relative; z-index: 2; width: min(500px, 92%); padding: 2px; color: #e3e9df; background: linear-gradient(135deg, var(--acid), #26331a 28%, #26331a 73%, var(--hot)); box-shadow: 12px 12px 0 #8b5cf614, 0 0 35px #38bdf80d; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.access-card::before { content: ''; position: absolute; inset: 2px; z-index: -1; background: linear-gradient(145deg, #0b111b, #070a11); clip-path: inherit; }
.access-card-head { height: 37px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid #1d3444; color: #69899b; font-size: 10.5px; letter-spacing: .15em; }.access-card-head b { color: var(--hot); }
.access-user { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-bottom: 1px solid #152b39; }
.access-avatar { position: relative; width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid var(--acid); color: var(--acid); background: #38bdf80a; clip-path: polygon(0 0, 80% 0, 100% 20%, 100% 100%, 0 100%); }.access-avatar svg { width: 25px; }.access-avatar i { position: absolute; right: 4px; bottom: 4px; width: 6px; height: 6px; background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.access-user > div:nth-child(2) { display: grid; gap: 4px; }.access-user small { color: #557184; font-size: 9px; letter-spacing: .15em; }.access-user strong { font: 600 25.5px 'Space Grotesk'; letter-spacing: .05em; }.access-user span { color: var(--acid); font-size: 10.5px; }
.access-code { margin-left: auto; color: #294454; font: 600 42px 'Space Grotesk'; }
.access-progress { padding: 15px 16px 12px; }.access-progress > div:first-child { display: flex; justify-content: space-between; color: #647e8e; font-size: 10.5px; }.access-progress b { color: var(--yellow); }
.progress-track { height: 4px; margin-top: 8px; background: #20291a; }.progress-track i { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--acid), var(--hot)); box-shadow: 0 0 10px #38bdf877; }
.access-features { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 16px 16px; color: #8195a1; font-size: 9px; letter-spacing: .04em; }.access-features span { display: flex; align-items: center; gap: 5px; }.access-features i { width: 4px; height: 4px; background: var(--acid); }.access-features .locked { color: #4a5963; }
.access-note { position: relative; z-index: 2; width: min(650px, 100%); display: flex; align-items: center; gap: 10px; margin-top: 15px; color: var(--acid); font-size: 10.5px; letter-spacing: .1em; }.access-note svg { width: 13px; }.access-note b { margin-left: auto; color: #66705f; font-weight: 400; }
.preview-chat { position: relative; z-index: 2; width: min(680px, 100%); min-height: 0; flex: 1; display: grid; grid-template-rows: 50px minmax(0, 1fr); margin-top: 24px; overflow: hidden; border: 1px solid #252825; background: #000; box-shadow: none; clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%); animation: softReveal .65s cubic-bezier(.22, .8, .3, 1) both; }
.preview-chat::after { content: ''; position: absolute; inset: 0; z-index: 4; padding: 1px; pointer-events: none; background: conic-gradient(from var(--border-angle), #252825 0 68%, var(--acid) 76%, #d8ccff 78%, var(--hot) 82%, #252825 90% 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: borderFlow 5s linear infinite; }
.preview-chat-head { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #252825; color: #77816f; background: #000; font-size: 12px; letter-spacing: .12em; }
.preview-chat-head > div { display: flex; align-items: center; gap: 8px; color: #b9c4ae; }.preview-status { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); animation: statusPulse 2.4s ease-in-out infinite; }
.preview-chat-scroll { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; }
.preview-chat-body { min-height: 0; align-content: start; display: grid; gap: 20px; padding: 28px 30px; overflow: auto; scrollbar-color: #9ca3af transparent; }
.preview-message small { color: #677060; font-size: 10.5px; letter-spacing: .1em; }.preview-message p { margin: 8px 0 0; color: #dbe1d6; font: 400 21px/1.6 'Space Grotesk'; }
.preview-ai-status { display: inline-flex; align-items: center; gap: .55em; }
.preview-ai-status i { font-style: normal; }
.preview-user { width: 75%; margin-left: auto; padding: 16px 18px; border-right: 2px solid var(--acid); background: #111410; }
.preview-ai { display: grid; grid-template-columns: 38px 1fr; gap: 14px; }.preview-ai-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #38bdf86e; color: var(--acid); background: #8b5cf60b; }.preview-ai-mark svg { width: 20px; }
.preview-user { animation: softReveal .5s ease-out .28s both; }
.preview-ai { animation: softReveal .5s ease-out .5s both; }
.preview-composer { height: 62px; display: flex; align-items: center; justify-content: space-between; margin: 0 15px 15px; padding-left: 18px; border: 1px solid #242923; color: #586052; background: #030403; font-size: 12px; letter-spacing: .08em; }
.preview-composer input { min-width: 0; flex: 1; outline: 0; border: 0; color: #242a20; background: transparent; font-size: 13.5px; letter-spacing: .06em; }
.preview-composer input::placeholder { color: #818a7c; }
.preview-composer input:disabled { cursor: not-allowed; opacity: .65; }
.preview-composer button { align-self: stretch; width: 58px; display: grid; place-items: center; border: 0; color: #fff; background: linear-gradient(135deg, var(--acid), var(--hot)); transition: filter .2s ease, transform .2s ease; }.preview-composer button:hover { filter: brightness(1.08); transform: translateX(-2px); }.preview-composer button svg { width: 20px; transition: transform .2s ease; }.preview-composer button:hover svg { transform: translate(2px, -2px); }
.trial-counter { display: flex; align-items: center; gap: 7px; }.trial-counter b { color: var(--hot); font-weight: 600; }
.sticker { position: absolute; z-index: 2; padding: 8px 11px; font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--ink); background: var(--acid); transform: rotate(-7deg); box-shadow: 4px 4px 0 #f4f4ed; }
.sticker-one { top: 8%; right: 7%; }.sticker-two { left: 7%; bottom: 18%; transform: rotate(4deg); background: #f1f3ed; box-shadow: 4px 4px 0 var(--acid); }
.art-caption { position: absolute; left: 6vw; bottom: 6%; font-size: 15px; line-height: 1.6; letter-spacing: .1em; color: #84897e; }
.auth-panel-wrap { position: absolute; z-index: 8; top: 24px; right: 30px; bottom: 24px; width: min(480px, calc(100% - 60px)); min-height: 0; display: grid; place-items: center; padding: 28px 42px; overflow: hidden; border: 1px solid #ffffff9c; border-radius: 18px; background: linear-gradient(145deg, #ffffff12 0%, #ffffff08 42%, #8b5cf608 100%); box-shadow: inset 1px 1px 0 #ffffff16, inset 18px 0 50px #ffffff05, 0 28px 70px #525b6a2e; backdrop-filter: blur(34px) saturate(85%); -webkit-backdrop-filter: blur(34px) saturate(85%); animation: panelAppear .45s cubic-bezier(.22, .8, .3, 1) both; }
.auth-panel-wrap::after { content: ''; position: absolute; inset: 14px; pointer-events: none; border: 1px solid #ffffff08; background: linear-gradient(115deg, #ffffff06, transparent 28%); }
.auth-panel-wrap::before { content: 'AUTH_GATE // 7F'; position: absolute; top: 13px; right: auto; left: 18px; color: #263b4d; font-size: 10.5px; letter-spacing: .12em; }
.auth-close { position: absolute; z-index: 3; top: 18px; right: 20px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #ffffffa3; color: #42483f; background: #ffffff6b; font-size: 31.5px; line-height: 1; transition: transform .2s ease, background .2s ease; }
.auth-close:hover { transform: rotate(6deg); background: #fff; }
.auth-panel { position: relative; z-index: 1; width: min(100%, 430px); max-height: 100%; animation: panelFloat 5s ease-in-out .5s infinite; }
.panel-index { position: absolute; right: 56px; top: 5px; color: #5d6359; font-size: 13.5px; }
.auth-heading h2 { margin: 9px 0 32px; font: 600 70.5px/.9 'Space Grotesk', sans-serif; letter-spacing: -.06em; }
.auth-heading h2 i { color: transparent; font-style: normal; -webkit-text-stroke: 1px var(--acid); text-shadow: 0 0 20px #8b5cf626; }
.typing-heading { min-height: 1.8em; white-space: nowrap; }
.typing-line { display: block; width: 0; overflow: hidden; border-right: 2px solid transparent; white-space: nowrap; }
.typing-welcome { animation: typeWelcome 3.8s steps(7, end) 1 both, cursorFirst 3.8s step-end 1 both; }
.typing-back { animation: typeBack 3.8s steps(4, end) 1 both, cursorSecond 3.8s step-end 1 both; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 7px; color: #898f83; font-size: 12px; letter-spacing: .16em; }
.field > div { height: 50px; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid #33382f; background: #0b0e0b; transition: .2s; }
.field > div:focus-within { border-color: var(--acid); box-shadow: 0 0 0 1px #38bdf840, 0 0 18px #8b5cf61a; }
.field svg { width: 15px; color: var(--acid); }.field .at { color: var(--acid); font-weight: 600; }
.field input { width: 100%; outline: none; border: 0; color: #fff; background: transparent; font-size: 16.5px; letter-spacing: .05em; }
.field input::placeholder { color: #555b51; }.icon-button { padding: 3px; border: 0; background: none; }
.icon-button svg { color: #696f65; }
.form-meta { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 21px; font-size: 12px; letter-spacing: .08em; color: #7d8379; }
.form-meta label { display: flex; align-items: center; gap: 7px; }.form-meta input { accent-color: var(--acid); }
.form-meta button { border: 0; color: #b1b6ac; background: none; font-size: inherit; }
.acid-button { width: 100%; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 0; color: #fff; background: linear-gradient(105deg, var(--acid), var(--hot)); font-size: 16.5px; font-weight: 600; letter-spacing: .08em; box-shadow: 5px 5px 0 #49358b; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%); transition: .2s; }
.acid-button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #49358b; }.acid-button svg { width: 20px; }
.separator { height: 50px; display: flex; align-items: center; color: #646a60; font-size: 12px; }
.separator::before, .separator::after { content: ''; height: 1px; flex: 1; background: var(--line); }.separator span { padding: 0 13px; }
.social-button { width: 100%; height: 48px; display: flex; justify-content: center; align-items: center; gap: 11px; border: 1px solid #373c34; color: #dfe1dc; background: transparent; font-size: 15px; letter-spacing: .08em; }
.social-button:hover { border-color: #7f857b; }.social-button svg { width: 17px; }
.switch-auth { margin: 23px 0 0; text-align: center; color: #72786e; font-size: 12px; letter-spacing: .09em; }
.switch-auth button { margin-left: 8px; border: 0; color: var(--acid); background: transparent; }.switch-auth svg { width: 11px; display: inline; vertical-align: middle; }
.switch-auth a { color: inherit; text-decoration: none; }
.auth-footer { border-top: 1px solid var(--line); border-bottom: 0; color: #666c62; font-size: 12px; letter-spacing: .1em; }
.auth-footer span:last-child { display: flex; align-items: center; gap: 4px; }.auth-footer svg { width: 12px; }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.auth-trigger { height: 38px; display: flex; align-items: center; gap: 18px; padding: 0 14px 0 17px; border: 0; color: #fff; background: linear-gradient(105deg, var(--acid), var(--hot)); box-shadow: 4px 4px 0 #49358b; font-size: 13.5px; font-weight: 600; letter-spacing: .08em; transition: transform .2s ease, box-shadow .2s ease; }
.auth-trigger:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #49358b; }
.auth-trigger svg { width: 16px; }
.theme-picker { position: relative; z-index: 25; }
.theme-toggle { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #ffffffa3; color: #4f574c; background: #ffffff61; box-shadow: inset 0 1px 0 #fff; font-size: 10.5px; letter-spacing: .1em; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.theme-toggle:hover { transform: translateY(-1px); border-color: #8991a0; background: #ffffffa8; }
.theme-toggle svg { width: 14px; }
.theme-toggle .theme-chevron { width: 10px; margin-left: 3px; }
.theme-picker-scrim { position: fixed; inset: -100vh -100vw; z-index: 39; border: 0; background: #0002; }
.theme-menu { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; width: min(390px, calc(100vw - 24px)); padding: 12px; border: 1px solid #ffffffc7; color: #20251e; background: #f1f3f0e8; box-shadow: inset 0 1px 0 #fff, 0 24px 65px #4d55642e; backdrop-filter: blur(28px); animation: softReveal .2s ease-out both; }
.theme-menu-head { display: flex; justify-content: space-between; padding: 3px 3px 11px; color: #747d70; font-size: 10.5px; letter-spacing: .12em; }.theme-menu-head b { color: var(--hot); font-weight: 600; }
.theme-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.theme-options > button { position: relative; min-height: 66px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 9px; padding: 7px; border: 1px solid #d1d6ce; text-align: left; color: #31382e; background: #ffffff8c; font-size: 12px; }
.theme-options > button:hover, .theme-options > button.selected { border-color: var(--hot); background: #fff; }
.theme-options > button > i { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border: 1px solid #ffffffb5; background: #ddd; }
.theme-options > button > i span { width: 21px; height: 21px; border: 2px solid currentColor; }
.theme-options > button > b { position: absolute; right: 6px; bottom: 5px; color: var(--hot); font-size: 7.5px; letter-spacing: .08em; }
.theme-option-cyber-light > i { color: #7259dc; background: linear-gradient(135deg, #eef0f3, #b9c6e3); }
.theme-option-cyber-dark > i { color: #c7ff1a; background: #050705; }
.theme-option-minimal-light > i { color: #222; background: #fff; }
.theme-option-minimal-dark > i { color: #eee; background: #151515; }
.theme-option-retro-light > i { color: #b84c28; background: #f1dfba; }
.theme-option-retro-dark > i { color: #f2a65a; background: #2e211b; }
.theme-option-glass-light > i { color: #7658e8; background: linear-gradient(135deg, #fff8, #b9d9ff9c), #e7e9f6; }.theme-option-glass-light > i span, .theme-option-glass-dark > i span { border-radius: 7px; box-shadow: inset 0 1px #fff8; }
.theme-option-glass-dark > i { color: #9be7ff; background: radial-gradient(circle at 25% 20%, #5b4e9a, #101624 72%); }
.theme-option-bento-light > i { color: #ff5c35; background: #f4f3ef; }.theme-option-bento-light > i span, .theme-option-bento-dark > i span { border-radius: 6px 2px 6px 2px; }
.theme-option-bento-dark > i { color: #ff8b6d; background: #151719; }
.theme-option-techno-light > i { color: #087f8c; background: repeating-linear-gradient(90deg, #edf3f3 0 7px, #d7e2e2 7px 8px); }
.theme-option-techno-dark > i { color: #32e6ff; background: repeating-linear-gradient(90deg, #071014 0 7px, #132228 7px 8px); }

/* CHAT */
.chat-shell { height: 100vh; height: 100dvh; display: grid; grid-template-columns: 270px 1fr; overflow: hidden; background: #000; }
.sidebar { position: relative; z-index: 5; display: flex; flex-direction: column; min-height: 0; padding: calc(24px + env(safe-area-inset-top, 0px)) 17px calc(18px + env(safe-area-inset-bottom, 0px)); border-right: 1px solid #20241f; background: #080a08; box-shadow: none; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 5px 25px; }
.mobile-close { display: none; border: 0; color: white; background: none; font-size: 37.5px; }
.new-chat { position: relative; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #394131; color: var(--acid); background: #38bdf80b; font-size: 13.5px; letter-spacing: .06em; }
.new-chat:hover { color: var(--ink); background: var(--acid); }.new-chat svg { width: 17px; }.new-chat span { margin-left: auto; font-size: 12px; opacity: .65; }
.side-nav { display: grid; gap: 3px; margin-top: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.side-nav button { display: flex; align-items: center; gap: 12px; width: 100%; height: 38px; padding: 0 11px; border: 0; color: #6e756a; background: transparent; font-size: 13.5px; letter-spacing: .08em; }
.side-nav button.active { color: #eff2eb; background: #171a16; }.side-nav svg { width: 16px; }.side-nav span { margin-left: auto; color: var(--acid); }
.history { flex: 1; min-height: 0; padding-top: 21px; overflow: hidden; }
.history > p { margin: 0 0 9px 11px; color: #4f554c; font-size: 12px; letter-spacing: .14em; }
.history button { width: 100%; display: grid; gap: 5px; padding: 11px; border: 0; border-left: 2px solid transparent; text-align: left; color: #747b70; background: transparent; font-size: 15px; }
.history button.selected { border-left-color: var(--acid); color: #e8ebe4; background: linear-gradient(90deg, #38bdf812, #8b5cf60b, transparent); }
.history small { color: #454a43; font-size: 10.5px; }
.sidebar-bottom { padding-top: 12px; border-top: 1px solid var(--line); }
.sidebar-bottom > button { width: 100%; height: 33px; display: flex; align-items: center; gap: 11px; padding: 0 10px; border: 0; color: #6f756b; background: none; font-size: 12px; letter-spacing: .1em; }
.sidebar-bottom > button:hover, .sidebar-bottom > button.active { color: var(--acid); background: #ffffff08; }.sidebar-bottom svg { width: 15px; }
.profile { display: flex; align-items: center; gap: 10px; margin-top: 11px; padding: 11px 9px 0; border-top: 1px solid #20231f; }
.avatar, .header-avatar { position: relative; display: grid; place-items: center; width: 35px; height: 35px; flex: none; overflow: hidden; border: 2px solid transparent; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--acid), var(--hot)) padding-box, linear-gradient(145deg, #fff, var(--hot)) border-box; box-shadow: 0 4px 14px #59627324; }
.avatar::after, .header-avatar::after { content: ''; position: absolute; width: 11px; height: 11px; top: 3px; right: 2px; border-radius: 50%; background: #ffffff33; filter: blur(2px); }
.avatar svg, .header-avatar svg { position: relative; z-index: 1; width: 18px; }
.profile > div:nth-child(2) { display: grid; gap: 4px; }.profile b { font: 500 15px 'Space Grotesk'; }.profile span { color: #555b52; font-size: 10.5px; }.profile .online { margin-left: auto; width: 5px; height: 5px; }
.chat-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: calc(65px + env(safe-area-inset-top, 0px)) minmax(0, 1fr) auto; background: #000; }
.chat-header { position: relative; z-index: 30; display: flex; align-items: center; padding: env(safe-area-inset-top, 0px) 30px 0; border-bottom: 1px solid var(--line); }
.menu-button { display: none; border: 0; color: #fff; background: none; }.menu-button svg { width: 20px; }
.theme-light .menu-button { color: #38414b; border-color: #ffffffd1; background: linear-gradient(145deg, #ffffffd9, #e7eaf0b8); box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #aeb5c029, 0 9px 24px #59627326; }
.theme-light .menu-button svg { width: 20px; stroke-width: 2.1; }
.menu-button:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }
.model-name { display: flex; align-items: center; gap: 10px; }.model-name > span { color: #555b51; font-size: 10.5px; }
.model-name button, .model-name select { display: flex; align-items: center; gap: 6px; max-width: min(240px, 42vw); padding: 0; border: 0; color: #e8ebe4; background: transparent; font-size: 15px; letter-spacing: 0; cursor: pointer; }.model-name svg { width: 12px; color: var(--acid); }
.preview-chat-head select { max-width: min(220px, 46vw); border: 0; color: inherit; background: transparent; font: inherit; letter-spacing: 0; cursor: pointer; }
.preview-message p, .user-message p, .ai-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-thinking { display: inline-flex; align-items: center; gap: 5px; min-height: 1.2em; }
.ai-thinking i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: gridThink 1s ease-in-out infinite; }
.ai-thinking i:nth-child(2) { animation-delay: .15s; }
.ai-thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes gridThink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.composer > button:disabled, .preview-composer button:disabled { cursor: wait; filter: grayscale(.25); }
.header-status { display: flex; align-items: center; gap: 9px; margin-left: auto; color: #60675c; font-size: 10.5px; letter-spacing: .11em; }.header-status i { width: 5px; height: 5px; }.header-status span { color: #363b35; }
.chat-header > .theme-picker { margin-left: 16px; }
.header-avatar { display: none; margin-left: 15px; border-color: #59604f; }
.conversation { min-height: 0; overflow: auto; background: #000; scrollbar-color: #3b4137 transparent; }
.empty-state { width: min(930px, calc(100% - 70px)); min-height: 100%; display: flex; flex-direction: column; justify-content: center; margin: auto; padding: 42px 0 25px; animation: rise .6s ease-out; }
.hero-symbol { position: relative; width: 53px; height: 53px; display: grid; place-items: center; margin-bottom: 19px; border: 1px solid var(--acid); color: var(--acid); transform: rotate(45deg); box-shadow: 0 0 30px #8b5cf612; }
.hero-symbol svg { width: 26px; transform: rotate(-45deg); }.hero-symbol > .live-tag { position: absolute; right: -29px; top: -15px; width: auto; height: auto; padding: 4px 6px; color: var(--ink); background: var(--acid); font-size: 9px; transform: rotate(-45deg); }
.hero-symbol svg path { stroke-dasharray: 30; animation: signalDraw 2.4s ease-in-out infinite; }
.hero-symbol .time-mark-icon circle { fill: currentColor; stroke: none; animation: timeCore 2.4s ease-in-out infinite; }
.hero-icon-light, .hero-icon-dark { width: 26px; height: 26px; display: grid; place-items: center; }
.hero-icon-dark { display: none; }
.theme-dark .hero-icon-light { display: none; }
.theme-dark .hero-icon-dark { display: grid; }
.hero-symbol .circular-progress-icon { width: 27px; overflow: visible; }
.circular-progress-icon .progress-ring-track { stroke: currentColor; stroke-width: 1.2; opacity: .2; }
.circular-progress-icon .progress-ring-value { stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-dasharray: 50.3; transform: rotate(-90deg); transform-origin: center; animation: progressFlow 2.8s ease-in-out infinite; }
.circular-progress-icon .progress-ring-core { fill: currentColor; stroke: none; animation: timeCore 2.2s ease-in-out infinite; }
.empty-state h1 { margin: 8px 0 18px; font-size: clamp(81px, 9.75vw, 142.5px); line-height: .87; }.empty-state h1 i { color: transparent; font-style: normal; -webkit-text-stroke: 1px var(--acid); text-shadow: 0 0 20px #8b5cf620; }
.countdown { width: min(760px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0 20px; }
.countdown-title { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; color: #697365; font-size: 12px; letter-spacing: .14em; }
.countdown-title > span { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); animation: statusPulse 2.4s ease-in-out infinite; }
.countdown-title, .countdown-grid, .countdown-meta { grid-column: 1 / -1; }
.countdown-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #ffffffad; background: #ffffff5c; box-shadow: inset 0 1px 0 #fff, 0 14px 38px #59627312; backdrop-filter: blur(18px); }
.countdown-time { display: contents; }
.countdown-date { display: none; }
.countdown-grid::after { content: ''; position: absolute; inset: -2px; z-index: 2; pointer-events: none; background: linear-gradient(var(--acid), var(--acid)) left top / 42px 2px no-repeat, linear-gradient(var(--acid), var(--acid)) left top / 2px 18px no-repeat, linear-gradient(var(--hot), var(--hot)) right top / 42px 2px no-repeat, linear-gradient(var(--hot), var(--hot)) right top / 2px 18px no-repeat, linear-gradient(var(--hot), var(--hot)) left bottom / 42px 2px no-repeat, linear-gradient(var(--hot), var(--hot)) left bottom / 2px 18px no-repeat, linear-gradient(var(--acid), var(--acid)) right bottom / 42px 2px no-repeat, linear-gradient(var(--acid), var(--acid)) right bottom / 2px 18px no-repeat; filter: drop-shadow(0 0 7px #8b5cf626); }
.countdown-unit { position: relative; display: grid; gap: 6px; padding: 15px 20px 13px; border-right: 1px solid #d5d9e0; }
.countdown-unit::before { content: ''; position: absolute; top: -1px; left: 24%; right: 24%; height: 2px; opacity: .6; background: linear-gradient(90deg, transparent, var(--acid), transparent); }
.countdown-unit:nth-child(even)::before { background: linear-gradient(90deg, transparent, var(--hot), transparent); }
.countdown-unit:last-child { border-right: 0; }
.countdown-unit strong { color: #171b15; font: 600 clamp(46.5px, 6vw, 81px)/1 'Manrope', sans-serif; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.countdown-unit > span { color: #7a8376; font-size: 10.5px; letter-spacing: .14em; }
.countdown > p { margin: 8px 1px 0; color: #818a7d; font-size: 10.5px; letter-spacing: .1em; }
.countdown > p i { margin: 0 6px; color: var(--hot); font-style: normal; }
.countdown-extend {
  min-height: 38px;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  grid-column: 4;
  justify-self: center;
  margin: 12px 0 0;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--acid) 52%, var(--line));
  color: var(--acid);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .1em;
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.countdown-extend svg { width: 14px; }
.countdown-extend svg:last-child { margin-left: 2px; }
.countdown-extend:hover {
  border-color: var(--acid);
  color: var(--ink);
  background: var(--acid);
  box-shadow: 0 0 18px color-mix(in srgb, var(--acid) 18%, transparent);
  transform: translateY(-2px);
}
.style-minimal .countdown-extend { border-radius: 9px; }

.intro { margin: 0; color: #7a8076; font-size: 16.5px; line-height: 1.6; }
.feature-view { width: min(930px, calc(100% - 70px)); min-height: 100%; margin: auto; padding: 50px 0 38px; animation: softReveal .45s ease-out both; }
.feature-heading h1 { margin: 8px 0 15px; color: #f1f3ed; font: 600 clamp(72px, 8.25vw, 114px)/.88 'Space Grotesk', sans-serif; letter-spacing: -.07em; }
.feature-heading h1 i { color: transparent; font-style: normal; -webkit-text-stroke: 1px var(--acid); }
.feature-heading > p:last-child { margin: 0; color: #737b70; font-size: 15px; }
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 34px; }
.explore-grid > button { position: relative; min-height: 160px; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px solid #30352e; text-align: left; color: #dfe2da; background: #0d100d; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.explore-grid > button:hover { transform: translateY(-3px); border-color: var(--acid); box-shadow: 4px 4px 0 #536c0c; }
.explore-grid > button > span { position: absolute; top: 13px; right: 14px; color: #565c52; font-size: 10.5px; }
.explore-grid > button svg { width: 21px; margin: 9px 0 19px; color: var(--acid); }
.explore-grid b { font: 600 16.5px 'Space Grotesk'; letter-spacing: .05em; }
.explore-grid p { margin: 8px 0 0; color: #62685f; font-size: 12px; line-height: 1.55; }
.settings-view { width: min(760px, calc(100% - 70px)); }
.settings-list { display: grid; gap: 8px; margin-top: 36px; }
.settings-list > button { min-height: 72px; display: flex; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid #30352e; text-align: left; color: #dfe2da; background: #0d100d; }
.settings-list > button > div { display: grid; gap: 6px; }.settings-list b { font-size: 13.5px; letter-spacing: .08em; }.settings-list button > div span { color: #62685f; font-size: 12px; }
.settings-list button > i { position: relative; width: 38px; height: 20px; margin-left: auto; border: 1px solid #454b42; background: #161a15; }
.settings-list button > i span { position: absolute; width: 12px; height: 12px; left: 3px; top: 3px; background: #687064; transition: transform .2s ease, background .2s ease; }
.settings-list button > i.toggle-on { border-color: var(--acid); }.settings-list button > i.toggle-on span { transform: translateX(18px); background: var(--acid); }
.setting-value { display: flex; align-items: center; gap: 9px; margin-left: auto; color: var(--acid); font-size: 12px; }.setting-value svg { width: 15px; }
.trade-view { width: min(900px, calc(100% - 70px)); }
.back-link { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 0; border: 0; color: #737b70; background: transparent; font-size: 12px; letter-spacing: .1em; }
.back-link svg { width: 14px; transform: rotate(180deg); }
.trade-mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 34px; }
.trade-mode-grid > button { position: relative; min-height: 270px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; overflow: hidden; border: 1px solid #30352e; text-align: left; color: #e5e8e1; background: #0d100d; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.trade-mode-grid > button:hover { transform: translateY(-4px); border-color: var(--acid); box-shadow: 5px 5px 0 #536c0c; }
.trade-mode-grid > button > svg:not(.trade-mode-arrow) { width: 29px; margin: 36px 0 20px; color: var(--acid); }
.trade-mode-grid b { font: 600 36px/.95 'Space Grotesk', sans-serif; letter-spacing: -.03em; }
.trade-mode-grid p { width: 85%; margin: 13px 0 20px; color: #6c7469; font-size: 13.5px; line-height: 1.6; }
.trade-mode-grid small { margin-top: auto; color: #6d7569; font-size: 10.5px; letter-spacing: .1em; }
.trade-mode-index { position: absolute; top: 18px; right: 18px; color: #596056; font-size: 10.5px; letter-spacing: .09em; }
.trade-mode-arrow { position: absolute; right: 22px; bottom: 20px; width: 18px; color: var(--acid); }
.trade-skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trade-skill-grid > .trade-skill-card { min-height: 270px; padding-right: 22%; }
.trade-skill-card > p { width: 100%; }
.skill-card-visual { position: absolute; right: 20px; top: 76px; width: 74px; height: 74px; pointer-events: none; color: var(--acid); opacity: .72; }
.time-machine-orbits {
  width: 82px;
  height: 82px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--acid) 42%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--acid) 16%, transparent), transparent 58%);
}
.time-machine-orbits::before,
.time-machine-orbits::after,
.time-machine-orbits i {
  content: '';
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--acid) 34%, transparent);
  border-radius: 50%;
}
.time-machine-orbits::before { inset: 10px; }
.time-machine-orbits::after { inset: 22px; }
.time-machine-orbits i:nth-child(1) { width: 7px; height: 7px; border: 0; background: currentColor; box-shadow: 0 0 18px color-mix(in srgb, var(--acid) 55%, transparent); }
.time-machine-orbits i:nth-child(2) { inset: 31px; border-color: color-mix(in srgb, var(--acid) 64%, transparent); }
.time-machine-orbits i:nth-child(3) {
  width: 5px;
  height: 5px;
  top: 8px;
  left: 50%;
  border: 0;
  background: currentColor;
  box-shadow: 0 61px 0 color-mix(in srgb, var(--acid) 52%, transparent);
  transform: translateX(-50%);
}
.chart-scanner-visual {
  border-left: 1px solid color-mix(in srgb, var(--acid) 36%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--acid) 36%, transparent);
  background:
    linear-gradient(135deg, transparent 0 19%, currentColor 20% 22%, transparent 23% 38%, currentColor 39% 42%, transparent 43% 58%, currentColor 59% 62%, transparent 63%) center / 100% 72% no-repeat,
    repeating-linear-gradient(0deg, transparent 0 17px, color-mix(in srgb, var(--acid) 13%, transparent) 17px 18px);
}
.chart-scanner-visual i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.chart-scanner-visual i:nth-child(1) { left: 13px; bottom: 20px; }
.chart-scanner-visual i:nth-child(2) { left: 35px; bottom: 42px; }
.chart-scanner-visual i:nth-child(3) { right: 4px; top: 9px; }
.news-visual { display: grid; gap: 8px; align-content: center; }
.news-visual::before,
.news-visual::after,
.news-visual i { content: ''; display: block; height: 1px; background: color-mix(in srgb, var(--acid) 44%, transparent); }
.news-visual::before { width: 100%; box-shadow: 0 -9px 0 color-mix(in srgb, var(--acid) 18%, transparent); }
.news-visual::after { width: 62%; }
.news-visual i:nth-child(1) { width: 82%; }
.news-visual i:nth-child(2) { width: 48%; }
.news-visual i:nth-child(3) { position: absolute; right: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 14px currentColor; }
.entry-timer-visual { border: 1px solid color-mix(in srgb, var(--acid) 38%, transparent); border-radius: 50%; }
.entry-timer-visual::before { content: ''; position: absolute; inset: 9px; border: 1px dashed color-mix(in srgb, var(--acid) 38%, transparent); border-radius: 50%; }
.entry-timer-visual::after { content: ''; position: absolute; left: 50%; top: 13px; width: 1px; height: 24px; background: currentColor; transform-origin: bottom; transform: rotate(38deg); }
.entry-timer-visual i:nth-child(1) { position: absolute; inset: 28px; border-radius: 50%; background: currentColor; box-shadow: 0 0 16px currentColor; }
.entry-timer-visual i:nth-child(2) { position: absolute; left: 50%; top: -5px; width: 1px; height: 9px; background: currentColor; }
.entry-timer-visual i:nth-child(3) { position: absolute; right: 7px; bottom: 8px; width: 13px; height: 1px; background: currentColor; transform: rotate(-45deg); }
.matrix-skill-visual { border: 1px solid color-mix(in srgb, var(--acid) 34%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--acid) 9%, transparent), transparent); }
.matrix-skill-visual::before,
.matrix-skill-visual::after,
.matrix-skill-visual i { content: ''; position: absolute; display: block; background: currentColor; }
.matrix-skill-visual::before { left: 12px; right: 12px; top: 24px; height: 1px; opacity: .45; box-shadow: 0 23px 0 color-mix(in srgb, var(--acid) 45%, transparent); }
.matrix-skill-visual::after { left: 24px; top: 12px; bottom: 12px; width: 1px; opacity: .2; box-shadow: 23px 0 0 color-mix(in srgb, var(--acid) 35%, transparent); }
.matrix-skill-visual i { width: 7px; height: 7px; box-shadow: 0 0 12px currentColor; }
.matrix-skill-visual i:nth-child(1) { left: 14px; top: 17px; }
.matrix-skill-visual i:nth-child(2) { left: 37px; top: 41px; }
.matrix-skill-visual i:nth-child(3) { right: 10px; bottom: 10px; }
.risk-visual { border-radius: 50%; transform: rotate(45deg); }
.risk-visual i { border-radius: 50%; }
.budget-visual { border-style: dashed; }
.budget-visual i:nth-child(1) { width: 22px; height: 7px; }
.budget-visual i:nth-child(2) { width: 14px; height: 7px; }
.executor-visual { clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%); }
.executor-visual i:nth-child(2) { width: 22px; height: 3px; transform: rotate(-35deg); }
.alerts-visual { border-radius: 50%; }
.alerts-visual::before { top: 36px; box-shadow: none; }
.alerts-visual::after { left: 36px; top: 12px; bottom: 12px; box-shadow: none; }
.alerts-visual i { border-radius: 50%; }
.reports-visual i { width: 24px; height: 2px; box-shadow: 0 8px 0 currentColor, 0 16px 0 currentColor; }
.reports-visual i:nth-child(2),
.reports-visual i:nth-child(3) { display: none; }
.pelosi-visual { border-radius: 50% 50% 4px 4px; }
.pelosi-visual i:nth-child(1) { left: 50%; top: 12px; border-radius: 50%; transform: translateX(-50%); }
.pelosi-visual i:nth-child(2) { left: 24px; top: 32px; width: 26px; height: 1px; transform: rotate(28deg); }
.pelosi-visual i:nth-child(3) { right: 12px; bottom: 13px; border-radius: 50%; }
.partner-section { margin-top: 34px; }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.partner-card {
  min-width: 0;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  color: var(--content-primary);
  background: var(--panel);
}
.partner-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.partner-card-head small { color: var(--content-secondary); font-size: 10.5px; letter-spacing: .12em; }
.partner-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--acid);
  color: var(--acid);
  font: 650 15px var(--theme-font-display);
  letter-spacing: .08em;
}
.partner-card-copy { margin: 34px 0 26px; }
.partner-card-copy > span { color: var(--acid); font-size: 10.5px; font-weight: 650; letter-spacing: .12em; }
.partner-card-copy h2 { margin: 8px 0 7px; font: 650 30px/1 var(--theme-font-display); letter-spacing: -.035em; }
.partner-card-copy p { margin: 0; color: var(--content-secondary); font-size: 12px; letter-spacing: .08em; }
.partner-card-actions { display: grid; gap: 8px; margin-top: auto; }
.partner-card-actions :is(button, a.partner-register) {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--content-primary);
  background: transparent;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .07em;
  text-align: left;
}
.partner-card-actions :is(button, a.partner-register) svg { width: 14px; flex: none; }
.partner-card-actions button.partner-register { color: var(--content-secondary); cursor: not-allowed; opacity: .72; }
.partner-card-actions a.partner-register { color: var(--content-primary); cursor: pointer; opacity: 1; text-decoration: none; }
.partner-card-actions .partner-connect { border-color: color-mix(in srgb, var(--acid) 55%, var(--line)); color: var(--acid); }
.partner-card-actions .partner-connect:hover { color: var(--ink); border-color: var(--acid); background: var(--acid); }
.partner-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 2px 0;
  color: var(--content-secondary);
  font-size: 10.5px;
  line-height: 1.5;
}
.partner-note svg { width: 14px; flex: none; color: var(--acid); }
.style-minimal :is(.partner-card, .partner-card-actions button, .partner-card-actions a.partner-register) { border-radius: 10px; }

.platform-list { display: grid; gap: 9px; margin-top: 34px; }
.platform-row { min-height: 76px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #30352e; color: #e5e8e1; background: #0d100d; }
.platform-logo { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border: 1px solid var(--acid); color: var(--acid); font: 600 21px 'Space Grotesk'; }
.platform-row > div:nth-child(2) { display: grid; gap: 5px; min-width: 150px; }.platform-row b { font-size: 15px; }.platform-row > div span { color: #646c61; font-size: 10.5px; }
.platform-status { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #687064; font-size: 10.5px; }.platform-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); }
.platform-row > button { min-width: 116px; height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border: 1px solid #42493e; color: var(--acid); background: transparent; font-size: 12px; }
.platform-row > button.connected { color: var(--ink); border-color: var(--acid); background: var(--acid); }.platform-row > button svg { width: 14px; }
.platform-note { display: flex; align-items: center; gap: 9px; margin: 10px 2px 0; color: #697165; font-size: 10.5px; line-height: 1.5; }.platform-note svg { width: 14px; flex: none; }
.suggestion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 37px; }
.suggestion-grid > button { position: relative; min-height: 142px; padding: 19px; border: 1px solid #252a23; text-align: left; color: #dfe2da; background: #0c0f0c; box-shadow: none; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); transition: .2s; }
.new-chat::after, .suggestion-grid > button::after, .composer::after { content: ''; position: absolute; inset: 0; z-index: 3; padding: 1px; pointer-events: none; background: conic-gradient(from var(--border-angle), #252a23 0 70%, var(--acid) 78%, #d8ccff 81%, var(--hot) 85%, #252a23 93% 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: borderFlow 6s linear infinite; }
.suggestion-grid > button:nth-child(2)::after { animation-delay: -2s; }
.suggestion-grid > button:nth-child(3)::after { animation-delay: -4s; }
.composer::after { animation-duration: 7s; animation-delay: -1s; }
.new-chat::after { animation-duration: 5s; animation-delay: -3s; }
.new-chat::after { content: ''; background: conic-gradient(from var(--border-angle), #aeb4bd 0 72%, #68707b 80%, #f0f2f4 83%, #68707b 86%, #aeb4bd 94% 100%); }
.suggestion-grid > button:hover { border-color: var(--acid); transform: translateY(-3px); box-shadow: 4px 4px 0 #58439a; }
.suggestion-grid > button:nth-child(1) { animation: softReveal .45s ease-out .12s both; }
.suggestion-grid > button:nth-child(2) { animation: softReveal .45s ease-out .2s both; }
.suggestion-grid > button:nth-child(3) { animation: softReveal .45s ease-out .28s both; }
.suggestion-grid > button > svg:not(.corner-arrow) { width: 22px; margin: 15px 0 12px; color: var(--acid); }.suggestion-grid b { display: block; font: 600 18px 'Space Grotesk'; letter-spacing: .05em; }
.suggestion-grid p { width: 80%; margin: 6px 0 0; color: #62685f; font-size: 12px; line-height: 1.5; }.suggestion-id { position: absolute; right: 14px; top: 12px; color: #4a5048; font-size: 10.5px; }
.suggestion-grid .corner-arrow { position: absolute; width: 15px; right: 15px; bottom: 15px; color: #565c52; }
.message-list { width: min(800px, calc(100% - 70px)); margin: auto; padding: 45px 0; }
.conversation-back { display: flex; align-items: center; gap: 8px; margin: 0 0 28px; padding: 0; border: 0; color: #727a6f; background: transparent; font-size: 12px; letter-spacing: .1em; transition: color .2s ease, transform .2s ease; }
.conversation-back:hover { color: var(--acid); transform: translateX(-2px); }.conversation-back svg { width: 14px; transform: rotate(180deg); }
.message-group { margin-bottom: 35px; animation: rise .35s ease-out; }.user-message { margin-left: 14%; padding: 17px 20px; border-right: 2px solid var(--acid); background: #131612; }
.user-message span { color: #62685f; font-size: 10.5px; }.user-message p, .ai-message p { margin: 8px 0 0; font: 400 21px/1.7 'Space Grotesk'; }
.ai-message { position: relative; margin-top: 22px; padding-left: 42px; }.ai-tag { position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 29px; height: 29px; overflow: hidden; color: var(--acid); font-size: 0; border: 1px solid #48523a; }
.ai-tag svg { width: 16px; }.ai-message p { color: #bbc0b6; }
.ai-message a, .preview-message a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ai-message button { margin-top: 12px; padding: 0; border: 0; color: #62685e; background: none; }.ai-message button svg { width: 14px; }
.composer-wrap { width: min(930px, calc(100% - 70px)); margin: 0 auto; padding: 10px 0 calc(17px + env(safe-area-inset-bottom, 0px)); }
.composer { position: relative; min-height: 58px; display: flex; align-items: center; gap: 14px; padding: 8px 9px 8px 18px; border: 1px solid #2d332a; background: #090b09; box-shadow: 0 -15px 50px #000; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%); }
.composer:focus-within { border-color: var(--acid); }.composer-plus { color: var(--acid); font-size: 30px; }
.composer textarea { flex: 1; resize: none; outline: none; border: 0; color: #e9ece5; background: transparent; font-size: 15px; line-height: 1.5; }.composer textarea::placeholder { color: #535950; letter-spacing: .08em; }
.char-count { color: #41463f; font-size: 10.5px; }.composer > button { width: 41px; height: 41px; display: grid; place-items: center; border: 0; color: #fff; background: linear-gradient(135deg, var(--acid), var(--hot)); }
.composer > button:hover { filter: brightness(1.12); }.composer > button svg { width: 18px; }
.composer-wrap > p { display: flex; justify-content: space-between; margin: 8px 1px 0; color: #454a43; font-size: 9px; letter-spacing: .08em; }
.sidebar-scrim { display: none; }

/* LIGHT COLOR SCHEME */
:root {
  --acid: #38bdf8;
  --hot: #8b5cf6;
  --yellow: #c4b5fd;
  --ink: #11150f;
  --panel: #f7f9f3;
  --line: #d6dbd0;
  --muted: #727b6d;
}

.theme-light,
.theme-light * { font-family: 'Inter', sans-serif; }
.theme-light .brand,
.theme-light .auth-art h1,
.theme-light .auth-heading h2,
.theme-light .empty-state h1,
.theme-light .preview-message p,
.theme-light .user-message p,
.theme-light .ai-message p,
.theme-light .profile b,
.theme-light .access-user strong {
  font-family: 'Manrope', sans-serif;
}

@layer base {
  body { background: #e5e7eb; color: #171b15; }
}

.noise { opacity: .018; mix-blend-mode: multiply; }
.auth-shell {
  background:
    radial-gradient(circle at 12% 18%, #ffffff 0, transparent 28%),
    radial-gradient(circle at 78% 82%, #b9c6e35c 0, transparent 34%),
    radial-gradient(circle at 92% 12%, #d2c8e850 0, transparent 25%),
    linear-gradient(135deg, #f0f1f3 0%, #d9dce1 48%, #cfd3da 100%);
}
.auth-nav, .auth-footer {
  border-color: #ffffff8c;
  background: #f7f8fa8c;
  box-shadow: inset 0 -1px 0 #aeb3bc32;
  backdrop-filter: blur(20px) saturate(80%);
  -webkit-backdrop-filter: blur(20px) saturate(80%);
}
.brand-mark { color: #fff; }
.nav-status, .auth-footer { color: #737b6e; }
.auth-art {
  border-color: #ffffff8f;
  background:
    radial-gradient(circle at 15% 75%, #ffffffb8 0, transparent 32%),
    radial-gradient(circle at 88% 18%, #c8cddd8c 0, transparent 34%),
    linear-gradient(145deg, #eaecf0b8, #d3d6dcb8);
}
.hud-corner { color: #889182; }
.preview-chat {
  border-color: #ffffffa3;
  background: linear-gradient(145deg, #ffffffa8, #e7e9eeb0);
  box-shadow: inset 0 1px 0 #fff, 0 22px 55px #555b681c;
  backdrop-filter: blur(24px) saturate(82%);
  -webkit-backdrop-filter: blur(24px) saturate(82%);
}
.preview-chat::after { background: conic-gradient(from var(--border-angle), #cbd1c4 0 67%, var(--acid) 75%, #d8ccff 78%, var(--hot) 82%, #cbd1c4 90% 100%); }
.preview-chat-head { border-color: #ffffffa6; color: #717a6d; background: #ffffff52; }
.preview-chat-head > div { color: #343b30; }
.preview-message small { color: #7b8476; }
.preview-message p { color: #22271f; }
.preview-user { background: #ffffff82; box-shadow: inset 0 1px 0 #fff; }
.preview-ai-mark { border-color: #679cf5; background: linear-gradient(135deg, #38bdf814, #8b5cf618); }
.preview-composer { border-color: #ffffffb0; color: #7a8375; background: #f8f9fb8c; box-shadow: inset 0 1px 0 #fff; backdrop-filter: blur(16px); }
.access-note b { color: #7c8577; }

.auth-panel-wrap {
  border-color: #ffffffc7;
  background:
    radial-gradient(circle at 92% 8%, #ffffffc7 0, transparent 32%),
    linear-gradient(145deg, #ffffff8f 0%, #e8eaef9e 52%, #c9c4db70 100%);
  box-shadow: inset 1px 1px 0 #fff, inset 18px 0 50px #ffffff70, 0 28px 75px #525b6a3d;
  backdrop-filter: blur(32px) saturate(75%);
  -webkit-backdrop-filter: blur(32px) saturate(75%);
}
.auth-panel-wrap::before { color: #8f978a; }
.auth-panel-wrap::after { border-color: #ffffffb8; background: linear-gradient(115deg, #ffffff8c, transparent 30%); }
.panel-index { color: #838b7e; }
.auth-heading h2 { color: #181c16; }
.auth-heading h2 i { -webkit-text-stroke-color: #7552d7; text-shadow: none; }
.field > span, .form-meta { color: #6f786a; }
.field > div { border-color: #ffffffb0; background: #ffffff78; box-shadow: inset 0 1px 0 #fff; backdrop-filter: blur(12px); }
.field > div:focus-within { border-color: #668cf0; box-shadow: 0 0 0 1px #38bdf84d, 0 0 18px #8b5cf61c; }
.field input { color: #171b15; }
.field input::placeholder { color: #9ca497; }
.icon-button svg { color: #737c6e; }
.form-meta button { color: #4f574b; }
.separator { color: #7c8577; }
.separator::before, .separator::after { background: #d3d9cc; }
.social-button { border-color: #ffffffb5; color: #2b3127; background: #ffffff66; box-shadow: inset 0 1px 0 #fff; backdrop-filter: blur(12px); }
.social-button:hover { border-color: #8e9788; }
.switch-auth { color: #6f786a; }

.chat-shell {
  background:
    radial-gradient(circle at 18% 15%, #ffffff 0, transparent 28%),
    radial-gradient(circle at 76% 25%, #bdc9e05c 0, transparent 34%),
    radial-gradient(circle at 88% 88%, #d0c8e363 0, transparent 32%),
    linear-gradient(145deg, #eef0f3 0%, #d7dae0 55%, #c9cdd4 100%);
}
.chat-main, .conversation { background: transparent; }
.sidebar {
  border-color: #ffffff94;
  background: #f4f6f18c;
  box-shadow: inset -1px 0 #ffffffb0, 12px 0 40px #59627312;
  backdrop-filter: blur(26px) saturate(78%);
  -webkit-backdrop-filter: blur(26px) saturate(78%);
}
.new-chat { border-color: #aeb4bd; background: linear-gradient(90deg, #38bdf814, #8b5cf614); }
.new-chat:hover { color: #11150f; }
.new-chat::after, .suggestion-grid > button::after, .composer::after {
  background: conic-gradient(from var(--border-angle), #cbd1c4 0 70%, var(--acid) 78%, #d8ccff 81%, var(--hot) 85%, #cbd1c4 93% 100%);
}
.side-nav, .history button, .sidebar-bottom > button { color: #687264; }
.side-nav { border-color: #d7dcd1; }
.side-nav button.active { color: #1b2118; background: #ffffff78; box-shadow: inset 0 1px 0 #fff; }
.history > p, .history small { color: #8b9387; }
.history button.selected { color: #1d231a; background: linear-gradient(90deg, #38bdf81f, #8b5cf612, transparent); }
.sidebar-bottom { border-color: #d5dbcf; }
.profile { border-color: #d7dcd1; }
.profile b { color: #1c2119; }
.avatar, .header-avatar { color: #fff; background: linear-gradient(145deg, var(--acid), var(--hot)) padding-box, linear-gradient(145deg, #fff, #7161c8) border-box; }
.chat-header { border-color: #ffffffa3; background: #f7f8fa78; box-shadow: inset 0 -1px 0 #aeb4bf2b; backdrop-filter: blur(22px) saturate(80%); -webkit-backdrop-filter: blur(22px) saturate(80%); }
.model-name button, .model-name select { color: #242a20; }
.model-name > span, .header-status { color: #7d8678; }
.empty-state h1 { color: #161a14; }
.empty-state h1 i { -webkit-text-stroke-color: #7552d7; text-shadow: none; }
.hero-symbol { border: 1px solid transparent; color: var(--hot); background: linear-gradient(145deg, #f7f8fa, #e4e7ec) padding-box, linear-gradient(135deg, var(--acid), var(--hot)) border-box; box-shadow: 0 10px 28px #7161c81c; }
.hero-symbol > .live-tag { color: #fff; background: linear-gradient(135deg, var(--acid), var(--hot)); }
.intro { color: #697365; }
.feature-heading h1 { color: #161a14; font-family: 'Manrope', sans-serif; }
.feature-heading h1 i { -webkit-text-stroke-color: #7552d7; }
.feature-heading > p:last-child { color: #697365; }
.explore-grid > button, .settings-list > button { border-color: #ffffffad; color: #242a20; background: linear-gradient(145deg, #ffffff9c, #e5e8ed8f); box-shadow: inset 0 1px 0 #fff, 0 14px 35px #59627312; backdrop-filter: blur(18px); }
.explore-grid > button:hover { border-color: #7760df; box-shadow: 4px 4px 0 #c9c0f3; }
.explore-grid b { font-family: 'Manrope', sans-serif; }.explore-grid p, .settings-list button > div span { color: #727b6d; }
.settings-list button > i { border-color: #c6ccc2; background: #e5e8e1; }.settings-list button > i span { background: #9ba398; }
.back-link { color: #697365; }
.trade-mode-grid > button, .platform-row { border-color: #ffffffad; color: #242a20; background: linear-gradient(145deg, #ffffff9c, #e5e8ed8f); box-shadow: inset 0 1px 0 #fff, 0 14px 35px #59627312; backdrop-filter: blur(18px); }
.trade-mode-grid > button:hover { border-color: #7760df; box-shadow: 5px 5px 0 #c9c0f3; }
.trade-mode-grid b, .platform-logo { font-family: 'Manrope', sans-serif; }.trade-mode-grid p, .trade-mode-grid small, .platform-row > div span, .platform-note { color: #727b6d; }
.platform-logo { border-color: #7c65e4; color: #6756c9; background: #ffffff70; }
.platform-row > button { border-color: #bfc6ba; color: #6756c9; background: #ffffff5c; }.platform-row > button.connected { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--acid), var(--hot)); }
.suggestion-grid > button { border-color: #ffffffad; color: #242a20; background: linear-gradient(145deg, #ffffff9c, #e5e8ed8f); box-shadow: inset 0 1px 0 #fff, 0 14px 35px #59627312; backdrop-filter: blur(18px) saturate(80%); -webkit-backdrop-filter: blur(18px) saturate(80%); }
.suggestion-grid p { color: #727b6d; }
.suggestion-id, .suggestion-grid .corner-arrow { color: #8b9487; }
.suggestion-grid > button:hover { border-color: #7760df; box-shadow: 4px 4px 0 #c9c0f3; }
.user-message { background: #ffffff91; box-shadow: inset 0 1px 0 #fff; backdrop-filter: blur(16px); }
.conversation-back { color: #626b5f; }
.user-message p { color: #20261d; }
.ai-message p { color: #485144; }
.ai-tag { border-color: #b5c49f; background: #f8faF5; }
.composer { border-color: #ffffffb5; background: #f7f8fa9c; box-shadow: inset 0 1px 0 #fff, 0 16px 45px #5861721a; backdrop-filter: blur(22px) saturate(78%); -webkit-backdrop-filter: blur(22px) saturate(78%); }
.composer textarea { color: #20251d; }
.composer textarea::placeholder { color: #899284; }
.composer-wrap > p, .char-count { color: #7d8679; }
.sidebar-scrim { background: #111a; }

/* DARK THEME — BLACK + LIME */
.theme-dark {
  --acid: #c7ff1a;
  --hot: #9bd500;
  --yellow: #e4ff8f;
  --ink: #050705;
  --panel: #0b0e0b;
  --line: #293126;
  --muted: #76806f;
  --content-primary: #f1f3ed;
  --content-secondary: #aab5aa;
  color: #f1f3ed;
  background: #000;
}
.theme-dark .noise { display: none; }

.theme-dark .auth-shell { background: radial-gradient(circle at 22% 35%, #c7ff1a0a 0, transparent 30%), radial-gradient(circle at 82% 75%, #ffffff08 0, transparent 25%), #000; }
.theme-dark .auth-nav, .theme-dark .auth-footer { border-color: #292d27; color: #737a6f; background: #070907d9; box-shadow: none; }
.theme-dark .nav-status { color: #8c9386; }
.theme-dark .auth-art { border-color: #20231f; background: #000; }
.theme-dark .hud-corner { color: #65705e; }
.theme-dark .preview-chat { border-color: #ffffff38; background: linear-gradient(145deg, #ffffff16 0%, #ffffff06 42%, #ffffff0b 100%); box-shadow: inset 1px 1px 0 #ffffff24, inset -1px -1px 0 #0006, 0 38px 80px #000c, 0 10px 28px #0009; backdrop-filter: blur(16px) brightness(1.12); -webkit-backdrop-filter: blur(16px) brightness(1.12); animation: glassFloat 6.5s ease-in-out infinite; }
.theme-dark .preview-chat::after { background: conic-gradient(from var(--border-angle), #252825 0 68%, var(--acid) 76%, #efffb8 78%, var(--hot) 82%, #252825 90% 100%); }
.theme-dark .preview-chat-head { border-color: #ffffff1c; color: #9aa198; background: linear-gradient(90deg, #ffffff0d, #ffffff03); }
.theme-dark .preview-chat-head > div { color: #b9c4ae; }
.theme-dark .preview-message small { color: #677060; }
.theme-dark .preview-message p { color: #dbe1d6; }
.theme-dark .preview-user { background: linear-gradient(145deg, #ffffff18, #ffffff08); box-shadow: inset 1px 1px 0 #ffffff20, 0 12px 30px #0007; }
.theme-dark .preview-ai-mark { border-color: #c7ff1a6e; background: #c7ff1a0b; }
.theme-dark .preview-composer { border-color: #ffffff2b; color: #8a9188; background: linear-gradient(145deg, #ffffff12, #ffffff05); box-shadow: inset 1px 1px 0 #ffffff1c, 0 14px 32px #0008; backdrop-filter: blur(14px); }
.theme-dark .preview-composer input { color: #e7ebe3; }
.theme-dark .preview-composer input::placeholder { color: #586052; }
.theme-dark .trial-counter b { color: var(--acid); }
.theme-dark .access-note b { color: #66705f; }
.theme-dark .auth-panel-wrap { border-color: #ffffff3b; background: linear-gradient(145deg, #ffffff19 0%, #ffffff07 48%, #ffffff0c 100%); box-shadow: inset 1px 1px 0 #ffffff2b, inset -1px -1px 0 #0007, 0 42px 95px #000d, 0 12px 34px #000a; backdrop-filter: blur(18px) brightness(1.1); -webkit-backdrop-filter: blur(18px) brightness(1.1); }
.theme-dark .auth-panel-wrap::after { border-color: #ffffff10; background: transparent; }
.theme-dark .auth-panel-wrap::before, .theme-dark .panel-index { color: #555e51; }
.theme-dark .auth-close { border-color: #ffffff24; color: #e3e6e1; background: #ffffff0a; }
.theme-dark .auth-close:hover { background: #ffffff12; }
.theme-dark .auth-heading h2 { color: #f1f3ed; }
.theme-dark .auth-heading h2 i, .theme-dark .empty-state h1 i { -webkit-text-stroke-color: var(--acid); text-shadow: 0 0 20px #c7ff1a20; }
.theme-dark .field > span, .theme-dark .form-meta, .theme-dark .switch-auth { color: #7d8578; }
.theme-dark .field > div { border-color: #ffffff2b; background: linear-gradient(145deg, #ffffff12, #ffffff05); box-shadow: inset 1px 1px 0 #ffffff18, 0 10px 24px #0005; backdrop-filter: blur(10px); }
.theme-dark .field > div:focus-within { border-color: var(--acid); box-shadow: 0 0 0 1px #c7ff1a40, 0 0 18px #c7ff1a0b; }
.theme-dark .field input { color: #fff; }
.theme-dark .field input::placeholder { color: #555b51; }
.theme-dark .icon-button svg { color: #696f65; }
.theme-dark .form-meta button { color: #b1b6ac; }
.theme-dark .separator { color: #646a60; }
.theme-dark .separator::before, .theme-dark .separator::after { background: #292d27; }
.theme-dark .social-button { border-color: #ffffff2e; color: #e8ebe6; background: linear-gradient(145deg, #ffffff12, #ffffff05); box-shadow: inset 1px 1px 0 #ffffff18, 0 10px 24px #0005; }
.theme-dark .social-button:hover { border-color: #7f857b; }
.theme-dark .acid-button, .theme-dark .auth-trigger { color: #0a0c08; background: linear-gradient(105deg, var(--acid), var(--hot)); box-shadow: 5px 5px 0 #536c0c; }
.theme-dark .acid-button:hover, .theme-dark .auth-trigger:hover { box-shadow: 7px 7px 0 #536c0c; }
.theme-dark .theme-toggle {
  border-color: color-mix(in srgb, var(--theme-toggle-accent, var(--acid)) 42%, #34383d);
  color: #c9cfc5;
  background: color-mix(in srgb, var(--theme-toggle-accent, var(--acid)) 5%, #101214);
  box-shadow: inset 0 1px 0 #ffffff0a, 0 0 18px color-mix(in srgb, var(--theme-toggle-accent, var(--acid)) 11%, transparent);
}
.theme-dark .theme-toggle:hover {
  border-color: color-mix(in srgb, var(--theme-toggle-accent, var(--acid)) 68%, #697078);
  background: color-mix(in srgb, var(--theme-toggle-accent, var(--acid)) 9%, #17191c);
  box-shadow: inset 0 1px 0 #ffffff0f, 0 0 22px color-mix(in srgb, var(--theme-toggle-accent, var(--acid)) 18%, transparent);
}
.theme-dark .theme-menu { border-color: #ffffff26; color: #eef1eb; background: #0c0e11ed; box-shadow: inset 0 1px 0 #ffffff17, 0 28px 70px #000b; }
.theme-dark .theme-options > button { border-color: #ffffff1c; color: #dfe4dc; background: #ffffff08; }.theme-dark .theme-options > button:hover, .theme-dark .theme-options > button.selected { border-color: var(--acid); background: #ffffff10; }

.theme-dark .chat-shell { background: radial-gradient(circle at 72% 28%, #c7ff1a0a 0, transparent 28%), radial-gradient(circle at 35% 88%, #ffffff08 0, transparent 24%), #000; }
.theme-dark .chat-main, .theme-dark .conversation { background: transparent; }
.theme-dark .sidebar { border-color: #ffffff29; background: linear-gradient(155deg, #ffffff14, #ffffff05 42%, #ffffff09); box-shadow: inset -1px 0 #ffffff20, 18px 0 55px #0008; backdrop-filter: blur(18px) brightness(1.08); -webkit-backdrop-filter: blur(18px) brightness(1.08); }
.theme-dark .new-chat { border-color: #4b5049; background: #c7ff1a0b; }
.theme-dark .new-chat::after, .theme-dark .suggestion-grid > button::after, .theme-dark .composer::after { background: conic-gradient(from var(--border-angle), #252a23 0 70%, var(--acid) 78%, #efffb8 81%, var(--hot) 85%, #252a23 93% 100%); }
.theme-dark .new-chat::after { background: conic-gradient(from var(--border-angle), #4b5049 0 72%, #858b82 80%, #d4d8d2 83%, #858b82 86%, #4b5049 94% 100%); }
.theme-dark .side-nav, .theme-dark .history button, .theme-dark .sidebar-bottom > button { color: #6f756b; }
.theme-dark .side-nav, .theme-dark .sidebar-bottom, .theme-dark .profile { border-color: #252a23; }
.theme-dark .side-nav button.active { color: #eff2eb; background: linear-gradient(90deg, #ffffff0d, #ffffff05); box-shadow: inset 0 1px 0 #ffffff0a; }
.theme-dark .history > p, .theme-dark .history small { color: #4f554c; }
.theme-dark .history button.selected { color: #e8ebe4; background: linear-gradient(90deg, #c7ff1a12, transparent); }
.theme-dark .profile b { color: #f0f2ed; }
.theme-dark .avatar, .theme-dark .header-avatar { color: var(--acid); background: radial-gradient(circle at 30% 20%, #33450f, #0a0d08 68%) padding-box, linear-gradient(145deg, var(--acid), #4e6510) border-box; box-shadow: 0 0 16px #c7ff1a18; }
.theme-dark .chat-header { border-color: #ffffff25; background: linear-gradient(90deg, #ffffff10, #ffffff05); box-shadow: inset 0 1px 0 #ffffff17, 0 12px 35px #0006; backdrop-filter: blur(16px) brightness(1.08); -webkit-backdrop-filter: blur(16px) brightness(1.08); }
.theme-dark .model-name button, .theme-dark .model-name select { color: #e8ebe4; }
.theme-dark .model-name > span, .theme-dark .header-status { color: #60675c; }
.theme-dark .empty-state h1 { color: #f1f3ed; }
.theme-dark .hero-symbol { border: 1px solid transparent; color: var(--acid); background: linear-gradient(#090b08, #090b08) padding-box, linear-gradient(135deg, var(--acid), var(--hot)) border-box; box-shadow: 0 0 30px #c7ff1a12; }
.theme-dark .hero-symbol > .live-tag { color: #0a0c08; background: linear-gradient(135deg, var(--acid), var(--hot)); }
.theme-dark .countdown-title { color: #737c6e; }
.theme-dark .countdown-grid { position: relative; border-color: #ffffff35; background: linear-gradient(145deg, #ffffff17, #ffffff06 50%, #ffffff0b); box-shadow: inset 1px 1px 0 #ffffff26, 0 34px 70px #000b, 0 9px 24px #0008; backdrop-filter: blur(16px) brightness(1.1); animation: glassFloat 7.5s ease-in-out -2s infinite; }
.theme-dark .countdown-grid::after { filter: drop-shadow(0 0 8px #c7ff1a2e); }
.theme-dark .countdown-unit { border-color: #ffffff14; }
.theme-dark .countdown-unit strong { color: #f1f3ed; font-family: 'Space Grotesk', sans-serif; }
.theme-dark .countdown-unit > span, .theme-dark .countdown > p { color: #62685f; }
.theme-dark .intro { color: #7a8076; }
.theme-dark .feature-heading h1 { color: #f1f3ed; font-family: 'Space Grotesk', sans-serif; }
.theme-dark .feature-heading h1 i { -webkit-text-stroke-color: var(--acid); }
.theme-dark .explore-grid > button, .theme-dark .settings-list > button { border-color: #ffffff30; color: #e6e9e3; background: linear-gradient(145deg, #ffffff16, #ffffff06 52%, #ffffff0a); box-shadow: inset 1px 1px 0 #ffffff24, 0 22px 48px #0008; backdrop-filter: blur(15px); }
.theme-dark .explore-grid > button:hover { border-color: var(--acid); box-shadow: 4px 4px 0 #536c0c; }
.theme-dark .trade-mode-grid > button, .theme-dark .platform-row { border-color: #ffffff30; color: #e6e9e3; background: linear-gradient(145deg, #ffffff16, #ffffff06 52%, #ffffff0a); box-shadow: inset 1px 1px 0 #ffffff24, 0 22px 48px #0008; backdrop-filter: blur(15px); }
.theme-dark .trade-mode-grid > button:hover { border-color: var(--acid); box-shadow: 5px 5px 0 #536c0c; }
.theme-dark .trade-mode-grid b, .theme-dark .platform-logo { font-family: 'Space Grotesk', sans-serif; }
.theme-dark .platform-logo { border-color: var(--acid); color: var(--acid); background: #ffffff08; }
.theme-dark .platform-row > button { border-color: #ffffff28; color: var(--acid); background: #ffffff07; }
.theme-dark .platform-row > button.connected { color: #0a0c08; border-color: var(--acid); background: var(--acid); }
.theme-dark .suggestion-grid > button { border-color: #ffffff30; color: #e6e9e3; background: linear-gradient(145deg, #ffffff16, #ffffff06 52%, #ffffff0a); box-shadow: inset 1px 1px 0 #ffffff24, 0 26px 55px #0009, 0 7px 18px #0007; backdrop-filter: blur(15px) brightness(1.08); -webkit-backdrop-filter: blur(15px) brightness(1.08); }
.theme-dark .suggestion-grid p { color: #62685f; }
.theme-dark .suggestion-id, .theme-dark .suggestion-grid .corner-arrow { color: #565c52; }
.theme-dark .suggestion-grid > button:hover { border-color: var(--acid); box-shadow: 4px 4px 0 #536c0c; }
.theme-dark .user-message { background: linear-gradient(145deg, #ffffff17, #ffffff07); box-shadow: inset 1px 1px 0 #ffffff20, 0 16px 35px #0007; backdrop-filter: blur(12px); }
.theme-dark .conversation-back { color: #80877d; }.theme-dark .conversation-back:hover { color: var(--acid); }
.theme-dark .user-message p { color: #f0f2ed; }
.theme-dark .ai-message p { color: #bbc0b6; }
.theme-dark .ai-tag { border-color: #ffffff20; background: #ffffff08; box-shadow: inset 0 1px 0 #ffffff0a; }
.theme-dark .composer { border-color: #ffffff35; background: linear-gradient(145deg, #ffffff16, #ffffff06 52%, #ffffff0a); box-shadow: inset 1px 1px 0 #ffffff26, 0 32px 72px #000b, 0 8px 22px #0008; backdrop-filter: blur(16px) brightness(1.08); -webkit-backdrop-filter: blur(16px) brightness(1.08); transform: translateY(-4px); }
.theme-dark .composer textarea { color: #e9ece5; }
.theme-dark .composer textarea::placeholder { color: #535950; }
.theme-dark .composer-wrap > p, .theme-dark .char-count { color: #454a43; }

/* MINIMAL */
.theme-light.style-minimal { --acid: #2563eb; --hot: #111827; --yellow: #93c5fd; --ink: #111827; --panel: #fff; --line: #e5e7eb; --muted: #6b7280; }
.theme-dark.style-minimal { --acid: #f4f4f5; --hot: #a1a1aa; --yellow: #d4d4d8; --ink: #111214; --panel: #191a1d; --line: #2b2d31; --muted: #94979e; --theme-toggle-accent: #60a5fa; }
.style-minimal .noise { display: none; }
.style-minimal.theme-light .auth-shell, .style-minimal.theme-light .chat-shell { background: #f5f6f7; }
.style-minimal.theme-dark .auth-shell, .style-minimal.theme-dark .chat-shell { background: #111214; }
.style-minimal .chat-shell { column-gap: 12px; }
.style-minimal .auth-art, .style-minimal .auth-panel-wrap, .style-minimal .preview-chat, .style-minimal .sidebar, .style-minimal .chat-header, .style-minimal .countdown-grid, .style-minimal .suggestion-grid > button, .style-minimal .explore-grid > button, .style-minimal .settings-list > button, .style-minimal .trade-mode-grid > button, .style-minimal .platform-row, .style-minimal .composer {
  border-color: color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: none;
  backdrop-filter: none;
}
.style-minimal .preview-chat::after, .style-minimal .countdown-grid::after, .style-minimal .new-chat::after, .style-minimal .suggestion-grid > button::after, .style-minimal .composer::after { content: none; }
.style-minimal .acid-button, .style-minimal .auth-trigger { border-radius: 9px; box-shadow: none; clip-path: none; }
.style-minimal.theme-light .acid-button, .style-minimal.theme-light .auth-trigger, .style-minimal.theme-dark .acid-button, .style-minimal.theme-dark .auth-trigger { color: #fff; background: linear-gradient(105deg, #2563eb, #111827); }
.theme-dark.style-minimal .acid-button, .theme-dark.style-minimal .auth-trigger, .theme-dark.style-minimal .acid-button:hover, .theme-dark.style-minimal .auth-trigger:hover { box-shadow: 0 10px 24px #0003; }
.theme-light.style-minimal .acid-button, .theme-light.style-minimal .auth-trigger, .theme-light.style-minimal .acid-button:hover, .theme-light.style-minimal .auth-trigger:hover { box-shadow: 0 10px 24px #1e3a8a1f; }
.style-minimal .field > div, .style-minimal .preview-composer { border-radius: 8px; }
.theme-light.style-minimal .preview-ai-mark, .theme-light.style-minimal .ai-tag { border-color: #d8e0ec; color: #2563eb; background: #f4f7fb; box-shadow: none; }
.theme-dark.style-minimal .preview-ai-mark, .theme-dark.style-minimal .ai-tag { border-color: #3b4048; color: #e5e7eb; background: #1a1d21; box-shadow: none; }
.theme-dark.style-minimal .preview-composer input::placeholder, .theme-dark.style-minimal .composer textarea::placeholder { color: #7aa2d6; }
.style-minimal .preview-ai-mark svg, .style-minimal .ai-tag svg { filter: none; }

/* RETRO */

/* GLASSMORPHISM */

/* BENTO GRID */

/* STRICT TECHNO */

@media (max-width: 900px) {
  .auth-stage { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-stage:not(.auth-stage-open) .auth-art { display: flex; }
  .auth-stage-open .auth-art { display: flex; }
  .auth-panel-wrap { inset: 18px; width: auto; padding: 28px 34px; }
  .chat-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; }.sidebar-open { transform: translateX(0); }
  .mobile-close { position: fixed; z-index: 7; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #ffffff52; color: #fff; background: #11151ac7; box-shadow: inset 0 1px 0 #ffffff1c, 0 10px 28px #0007; backdrop-filter: blur(16px); }
  .theme-light .mobile-close { border-color: #ffffffc2; color: #3c433a; background: #f5f7f1c7; box-shadow: inset 0 1px 0 #fff, 0 10px 28px #59627326; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 4; display: block; border: 0; background: #000b; }
  .menu-button { width: 40px; height: 40px; display: grid; place-items: center; margin: 0; border: 1px solid #ffffff8c; background: #ffffff40; box-shadow: inset 0 1px 0 #fff, 0 8px 20px #59627326; backdrop-filter: blur(16px); }.header-avatar { display: grid; }
  .chat-header > .theme-picker { margin-left: auto; }
}

@media (max-width: 620px) {
  .auth-nav { padding: 0 20px; }.nav-actions { gap: 8px; }.nav-status { display: none; }.auth-footer { padding: 0 20px; }.auth-footer span:nth-child(2) { display: none; }
  .auth-nav .theme-picker { order: 3; }.auth-nav .theme-toggle { width: 34px; justify-content: center; padding: 0; }.auth-nav .theme-toggle > span, .auth-nav .theme-chevron { display: none; }
  .auth-trigger { order: 2; }
  .chat-header .header-avatar { order: 2; margin-left: auto; }
  .chat-header > .theme-picker { order: 3; margin-left: 15px; }.chat-header > .theme-picker .theme-toggle { width: 34px; justify-content: center; padding: 0; }
  .chat-header > .theme-picker .theme-toggle > span, .chat-header > .theme-picker .theme-chevron { display: none; }
  .auth-trigger { gap: 7px; padding: 0 9px; font-size: 9px; letter-spacing: .04em; }
  .auth-heading h2 { font-size: 61.5px; }.auth-panel-wrap { align-items: center; }
  .chat-header { padding: 0 17px; }.header-status { display: none; }.header-avatar { margin-left: auto; }
  .empty-state { width: calc(100% - 34px); justify-content: flex-start; padding-top: 50px; }.empty-state h1 { font-size: 72px; }
  .countdown { margin-top: 12px; }.countdown-unit { padding: 12px 7px 11px; }.countdown-unit strong { font-size: 39px; }.countdown-unit > span { font-size: 9px; letter-spacing: .06em; }
  .suggestion-grid { grid-template-columns: 1fr; margin-top: 30px; }.suggestion-grid > button { min-height: 100px; }.suggestion-grid > button > svg:not(.corner-arrow) { margin: 3px 0 8px; }
  .feature-view, .settings-view { width: calc(100% - 34px); padding-top: 38px; }.feature-heading h1 { font-size: 66px; }.explore-grid { grid-template-columns: 1fr; margin-top: 26px; }.explore-grid > button { min-height: 125px; }.settings-list > button { padding: 13px 14px; }
  .trade-view { width: calc(100% - 34px); }.trade-mode-grid, .partner-grid { grid-template-columns: 1fr; margin-top: 26px; }.partner-section { margin-top: 0; }.partner-card { min-height: 275px; }.trade-mode-grid > button { min-height: 225px; padding: 20px; }.trade-mode-grid > button > svg:not(.trade-mode-arrow) { margin: 30px 0 16px; }.platform-row { flex-wrap: wrap; padding: 14px; }.platform-row > div:nth-child(2) { min-width: 0; }.platform-status { order: 4; margin: 3px 0 0 56px; }.platform-row > button { margin-left: auto; }
  .composer-wrap { width: calc(100% - 24px); }.composer-wrap > p span { display: none; }.char-count { display: none; }.message-list { width: calc(100% - 34px); }
}

@media (max-height: 760px) {
  .auth-shell { grid-template-rows: calc(60px + env(safe-area-inset-top, 0px)) minmax(0, 1fr) calc(36px + env(safe-area-inset-bottom, 0px)); }
  .auth-art { padding-top: 34px; padding-bottom: 20px; }
  .preview-chat { margin-top: 15px; }
  .preview-chat-body { gap: 18px; padding-top: 18px; padding-bottom: 18px; }
  .auth-panel-wrap { padding-top: 14px; padding-bottom: 14px; }
  .auth-heading h2 { margin-bottom: 19px; font-size: 58.5px; }
  .field { margin-bottom: 11px; }
  .field > div { height: 43px; }
  .form-meta { margin-bottom: 14px; }
  .acid-button { height: 47px; }
  .separator { height: 38px; }
  .social-button { height: 42px; }
  .switch-auth { margin-top: 14px; }
}

@media (max-height: 620px) {
  .auth-shell { grid-template-rows: calc(52px + env(safe-area-inset-top, 0px)) minmax(0, 1fr) calc(30px + env(safe-area-inset-bottom, 0px)); }
  .auth-heading h2 { margin: 5px 0 12px; font-size: 48px; }
  .field { margin-bottom: 8px; }
  .field > span { margin-bottom: 4px; }
  .field > div { height: 38px; }
  .form-meta { margin-bottom: 9px; }
  .acid-button { height: 42px; }
  .separator { height: 29px; }
  .social-button { height: 36px; }
  .switch-auth { margin-top: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .typing-line { width: auto; border-right: 0; }
  
}

/* Thumb-friendly mobile controls */
@media (max-width: 620px) {
  .auth-shell {
    grid-template-rows: calc(126px + env(safe-area-inset-top, 0px)) minmax(0, 1fr) calc(36px + env(safe-area-inset-bottom, 0px));
  }
  .auth-nav {
    align-content: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: env(safe-area-inset-top, 0px) 18px 10px;
  }
  .auth-nav .brand { order: 1; }
  .auth-nav .nav-actions { display: contents; }
  .auth-nav .theme-picker {
    order: 2;
    margin-left: auto;
  }
  .auth-nav .theme-toggle {
    width: 40px;
    height: 40px;
  }
  .auth-trigger {
    order: 3;
    width: 100%;
    height: 46px;
    flex: 0 0 100%;
    justify-content: center;
    gap: 12px;
    padding: 0 14px;
    font-size: 12px;
    letter-spacing: .06em;
  }

  .chat-main {
    grid-template-rows: calc(72px + env(safe-area-inset-top, 0px)) minmax(0, 1fr) auto;
  }
  .chat-header {
    padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 16px;
  }
  .model-name { order: 1; }
  .chat-header .header-avatar {
    order: 2;
    width: 40px;
    height: 40px;
    margin-left: auto;
  }
  .chat-header > .theme-picker {
    order: 3;
    margin-left: 9px;
  }
  .chat-header > .theme-picker .theme-toggle { width: 40px; height: 40px; }
  .menu-button {
    position: static;
    order: 4;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin: 0 0 0 9px;
    border: 1px solid #ffffff8c;
    background: #ffffff40;
    box-shadow: inset 0 1px 0 #fff, 0 8px 20px #59627326;
    backdrop-filter: blur(16px);
  }
  .theme-dark .menu-button { border-color: #ffffff32; background: #ffffff0d; box-shadow: inset 0 1px 0 #ffffff1c, 0 8px 22px #0008; }

  .sidebar { width: min(86vw, 340px); padding-inline: 16px; }
  .new-chat { height: 50px; }
  .side-nav button { height: 48px; }
  .history button { min-height: 48px; }
  .sidebar-bottom > button { height: 44px; }
}

/* Closed Duo: reserve its right-side camera zone without affecting regular iPhones. */
@media (min-width: 450px) and (max-width: 620px) {
  .chat-header {
    padding-right: max(74px, calc(env(safe-area-inset-right, 0px) + 58px));
  }
  .auth-nav {
    padding-right: max(74px, calc(env(safe-area-inset-right, 0px) + 58px));
  }
}

/* MINIMAL — composition */
.style-minimal { font-family: 'Inter', sans-serif; }
.style-minimal .brand { font-family: 'Manrope', sans-serif; letter-spacing: -.04em; }
.style-minimal .brand-mark { border-radius: 8px; }
.style-minimal .eyebrow { color: var(--muted); letter-spacing: .1em; }
.style-minimal .hud-corner, .style-minimal .access-note, .style-minimal .hero-symbol, .style-minimal .panel-index, .style-minimal .nav-status, .style-minimal .auth-art > .eyebrow { display: none; }
.style-minimal .auth-nav, .style-minimal .auth-footer { border-color: color-mix(in srgb, currentColor 10%, transparent); background: transparent; box-shadow: none; backdrop-filter: none; }
.style-minimal .auth-art { align-items: center; padding: 34px clamp(28px, 7vw, 110px); border: 0; background: transparent; }
.style-minimal .auth-stage:not(.auth-stage-open) .preview-chat, .style-minimal .preview-chat { width: min(920px, 100%); margin-top: 0; border-radius: 18px; animation: softReveal .4s ease-out both; }
.style-minimal .preview-chat { border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.style-minimal .preview-chat-head { height: 56px; padding-inline: 0; border: 0; background: transparent; }
.style-minimal .preview-chat-scroll { display: block; overflow: auto; scrollbar-width: thin; }
.style-minimal .preview-chat-body { padding: 34px 0; gap: 24px; overflow: visible; }
.style-minimal .preview-user { padding-right: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.style-minimal .preview-ai { padding-left: 0; }
.style-minimal .preview-ai-mark { border-radius: 50%; }
.style-minimal .preview-composer { position: sticky; z-index: 5; bottom: 18px; margin: 0 0 18px; border-radius: 12px; }
.theme-light.style-minimal .preview-composer {
  border-color: #d7e0ee;
  background: #fff;
  box-shadow: 0 0 0 3px #2563eb0a, 0 12px 30px #1e3a8a16;
}
.theme-light.style-minimal .preview-composer:focus-within {
  border-color: #9bb8e6;
  box-shadow: 0 0 0 3px #2563eb16, 0 14px 34px #1e3a8a1f;
}
.style-minimal .preview-composer button { margin: 5px; align-self: stretch; width: 48px; border-radius: 9px; }

.style-minimal .auth-panel-wrap { top: clamp(14px, 5vh, 42px); right: clamp(22px, 5vw, 72px); bottom: auto; width: min(420px, calc(100% - 44px)); max-height: calc(100% - 28px); padding: 38px; overflow-y: auto; border-radius: 18px; transform: none; animation: softReveal .35s ease-out both; scrollbar-width: thin; }
.style-minimal .auth-panel { animation: none; }
.style-minimal .auth-panel-wrap::before, .style-minimal .auth-panel-wrap::after { content: none; }
.style-minimal .auth-close { top: 14px; right: 14px; border-radius: 50%; }
.style-minimal .auth-heading h2 { margin-bottom: 27px; font: 600 60px/1 'Manrope', sans-serif; letter-spacing: -.055em; }
.style-minimal .auth-heading .minimal-auth-title { max-width: 320px; margin-top: 11px; font-size: 57px; letter-spacing: -.045em; text-transform: none; }
.style-minimal .auth-heading h2 i { color: inherit; -webkit-text-stroke: 0; text-shadow: none; }
.style-minimal .typing-line { width: auto; border: 0; animation: none; }
.style-minimal .field > span { color: var(--muted); letter-spacing: .08em; }
.style-minimal .separator, .style-minimal .switch-auth { letter-spacing: .04em; }
.style-minimal .field > div, .style-minimal .social-button { height: 48px; }
.style-minimal .acid-button { height: 50px; }

.style-minimal .chat-shell { grid-template-columns: 238px 1fr; }
.style-minimal .sidebar { padding: 22px 15px 17px; border-right-width: 1px; background: color-mix(in srgb, var(--panel) 92%, transparent); }
.style-minimal .new-chat { height: 42px; border-radius: 9px; color: inherit; background: transparent; }
.style-minimal .side-nav { gap: 5px; border: 0; }
.style-minimal .side-nav button, .style-minimal .history button, .style-minimal .sidebar-bottom > button { border-radius: 8px; }
.style-minimal .side-nav button, .style-minimal .history button, .style-minimal .sidebar-bottom > button { color: var(--muted); }
.theme-light.style-minimal .side-nav button.active { color: #111827; background: #f3f4f6; }
.theme-dark.style-minimal .side-nav button.active { color: #fff; background: #24262a; }
.style-minimal .side-nav span { display: none; }
.style-minimal .history > p { color: var(--muted); }
.theme-light.style-minimal .avatar, .theme-light.style-minimal .header-avatar { color: #2563eb; background: #fff padding-box, linear-gradient(145deg, #d8e0ec, #b8c8df) border-box; box-shadow: 0 4px 12px #1e3a8a14; }
.theme-dark.style-minimal .avatar, .theme-dark.style-minimal .header-avatar { color: #fff; border-color: #ffffffc7; background: transparent; box-shadow: none; }
.style-minimal .avatar::after, .style-minimal .header-avatar::after { content: none; }
.style-minimal .chat-header { height: auto; padding-inline: 28px; border-color: color-mix(in srgb, currentColor 10%, transparent); background: transparent; box-shadow: none; backdrop-filter: none; }
.style-minimal .model-name > span, .style-minimal .header-status { display: none; }
.style-minimal .model-name button, .style-minimal .model-name select { font-size: 16.5px; }
.style-minimal .chat-header > .theme-picker { margin-left: auto; }
.style-minimal .theme-toggle { border-radius: 9px; }

.style-minimal .empty-state { width: min(820px, calc(100% - 64px)); padding-top: 52px; }
.style-minimal .countdown { width: 100%; margin-top: 20px; }
.style-minimal .countdown-title { margin-bottom: 13px; }
.style-minimal .countdown-title, .style-minimal .countdown-unit > span, .style-minimal .countdown > p { color: var(--muted); }
.style-minimal .countdown-title > span { width: 18px; height: 1px; border-radius: 0; box-shadow: none; animation: none; }
.style-minimal .countdown-grid { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.style-minimal .countdown-unit { padding: 14px 22px 12px 0; border-right: 1px solid var(--line); background: transparent; }
.style-minimal .countdown-unit + .countdown-unit { padding-left: 22px; }
.style-minimal .countdown-time .countdown-unit:first-child { padding-left: 22px; }
.style-minimal .countdown-unit:last-child { border-right: 0; }
.style-minimal .countdown-unit::before { content: none; }
.style-minimal .countdown-unit strong { font: 500 clamp(51px, 6vw, 78px)/1 'Manrope', sans-serif; letter-spacing: -.055em; }
.style-minimal .countdown-unit > span { margin-top: 2px; font-size: 10.5px; letter-spacing: .08em; }
.style-minimal .countdown > p { margin-top: 10px; }
.style-minimal .intro { margin-top: 3px; font-size: 18px; }
.style-minimal .suggestion-grid { grid-template-columns: 1fr; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.style-minimal .suggestion-grid > button { min-height: 72px; display: grid; grid-template-columns: 34px 120px minmax(0, 1fr) 18px; align-items: center; gap: 14px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; background: transparent; box-shadow: none; clip-path: none; backdrop-filter: none; animation: none; }
.style-minimal .suggestion-grid > button > svg:not(.corner-arrow) { width: 19px; margin: 0; color: var(--acid); }
.style-minimal .suggestion-grid b { font: 600 15px 'Manrope', sans-serif; letter-spacing: .03em; }
.style-minimal .suggestion-grid p { width: auto; margin: 0; color: var(--muted); font-size: 13.5px; }
.style-minimal .suggestion-grid .corner-arrow { position: static; width: 16px; justify-self: end; color: var(--muted); }
.style-minimal .suggestion-id { display: none; }
.style-minimal .suggestion-grid > button:hover { padding-inline: 12px; transform: none; border-color: var(--line); background: color-mix(in srgb, var(--panel) 72%, transparent); box-shadow: none; }

.style-minimal .feature-view { width: min(820px, calc(100% - 64px)); padding-top: 54px; }
.style-minimal .feature-heading h1 { font: 600 clamp(63px, 7.5vw, 96px)/.95 'Manrope', sans-serif; letter-spacing: -.055em; }
.style-minimal .feature-heading h1 i { color: inherit; -webkit-text-stroke: 0; }
.style-minimal .explore-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.style-minimal .explore-grid > button { min-height: 145px; border-radius: 12px; }
.style-minimal .settings-list > button { border-radius: 12px; }
.style-minimal .trade-view { width: min(760px, calc(100% - 64px)); }
.theme-dark.style-minimal .trade-view { --acid: #60a5fa; --hot: #2563eb; --yellow: #93c5fd; }
.style-minimal .trade-heading h1 { max-width: 620px; }
.theme-dark.style-minimal .trade-heading > p:last-child { color: #93c5fd; }
.style-minimal .back-link { margin-bottom: 26px; color: var(--muted); }
.style-minimal .trade-mode-grid { grid-template-columns: 1fr; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.style-minimal .trade-mode-grid > button { min-height: 142px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 20px; grid-template-rows: auto auto auto; column-gap: 18px; align-items: center; padding: 22px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: inherit; background: transparent; box-shadow: none; backdrop-filter: none; }
.style-minimal .trade-mode-grid > button:hover { padding-inline: 12px; transform: none; border-color: var(--line); background: color-mix(in srgb, var(--panel) 72%, transparent); box-shadow: none; }
.style-minimal .trade-mode-index { display: none; }
.style-minimal .trade-mode-grid > button > svg:not(.trade-mode-arrow) { grid-column: 1; grid-row: 1 / 4; width: 24px; height: 24px; margin: 0; padding: 12px; overflow: visible; border-radius: 50%; color: var(--acid); background: color-mix(in srgb, var(--acid) 9%, transparent); box-sizing: content-box; }
.style-minimal .trade-mode-grid b { grid-column: 2; grid-row: 1; font: 600 27px/1.1 'Manrope', sans-serif; letter-spacing: -.025em; }
.style-minimal .trade-mode-grid p { grid-column: 2; grid-row: 2; width: 100%; margin: 8px 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.style-minimal .trade-mode-grid small { grid-column: 2; grid-row: 3; margin: 0; color: var(--muted); letter-spacing: .06em; }
.style-minimal .trade-mode-arrow { position: static; grid-column: 3; grid-row: 1 / 4; width: 17px; color: var(--muted); }
.style-minimal .platform-list { gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.style-minimal .platform-row { min-height: 72px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: inherit; background: transparent; box-shadow: none; backdrop-filter: none; }
.style-minimal .platform-logo { width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--acid); background: color-mix(in srgb, var(--acid) 9%, transparent); font: 600 18px 'Manrope', sans-serif; }
.style-minimal .platform-status { color: var(--muted); }
.style-minimal .platform-status i { background: #22a06b; box-shadow: none; }
.style-minimal .platform-row > button { min-width: 106px; border-color: var(--line); border-radius: 9px; color: inherit; background: transparent; }
.style-minimal .platform-row > button.connected { color: #fff; border-color: transparent; background: linear-gradient(105deg, #2563eb, #111827); }
.style-minimal .platform-note { margin-top: 18px; padding: 13px 15px; border-radius: 10px; color: var(--muted); background: color-mix(in srgb, var(--panel) 75%, transparent); }
.theme-dark.style-minimal .platform-status i { background: #60a5fa; }
.theme-dark.style-minimal .trade-mode-grid > button > svg:not(.trade-mode-arrow), .theme-dark.style-minimal .trade-mode-arrow, .theme-dark.style-minimal .platform-logo, .theme-dark.style-minimal .platform-row > button:not(.connected) { color: #60a5fa; }
.theme-dark.style-minimal .explore-view .feature-heading > p:last-child { color: #93c5fd; }
.theme-dark.style-minimal .explore-grid > button svg, .theme-dark.style-minimal .explore-grid > button > span { color: #60a5fa; }
.theme-dark.style-minimal .explore-grid p { color: #7aa2d6; }
.theme-dark.style-minimal .explore-grid > button:hover { border-color: #60a5fa; box-shadow: 0 12px 28px #0005; }
.style-minimal .message-list { width: min(760px, calc(100% - 56px)); }
.style-minimal .user-message { margin-left: 10%; border: 0; border-radius: 12px; background: var(--panel); box-shadow: none; }
.style-minimal .ai-message { padding-left: 44px; }
.style-minimal .ai-message p { color: var(--muted); }
.style-minimal .composer-wrap { width: min(820px, calc(100% - 56px)); padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.style-minimal .composer { min-height: 66px; padding: 9px 10px 9px 20px; border: 0; border-radius: 18px; background: var(--panel); box-shadow: 0 12px 36px color-mix(in srgb, #111827 12%, transparent); clip-path: none; transform: none; }
.theme-light.style-minimal .composer {
  border: 1px solid #dbe3ee;
  box-shadow: 0 10px 28px #1e3a8a14;
}
.theme-light.style-minimal .composer:focus-within {
  border-color: #9bb8e6;
  box-shadow: 0 0 0 3px #2563eb12, 0 12px 32px #1e3a8a1c;
}
.style-minimal .composer-plus { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: color-mix(in srgb, var(--muted) 10%, transparent); font-size: 25.5px; }
.style-minimal .composer textarea { font-size: 18px; }
.style-minimal .composer > button { width: 46px; height: 46px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #2563eb, #111827); }
.style-minimal .composer-wrap > p { margin-top: 10px; color: var(--muted); }
.theme-dark.style-minimal .composer { box-shadow: 0 16px 42px #0007; }

@media (max-width: 900px) {
  .style-minimal .chat-shell { grid-template-columns: 1fr; }
  .style-minimal .sidebar { border-radius: 0 18px 18px 0; }
}

@media (max-width: 620px) {
  .style-minimal .auth-art { padding: 24px 18px; }
  .style-minimal .auth-art > .eyebrow { display: none; }
  .style-minimal .preview-chat { margin-top: 0; }
  .style-minimal .preview-chat-body { padding: 24px 0; }
  .style-minimal .auth-panel-wrap { inset: 12px 14px auto; width: auto; max-height: calc(100% - 24px); padding: 28px 22px; overflow-y: auto; transform: none; }
  .style-minimal .empty-state, .style-minimal .feature-view, .style-minimal .settings-view, .style-minimal .trade-view { width: calc(100% - 28px); }
  .style-minimal .explore-grid, .style-minimal .trade-mode-grid { grid-template-columns: 1fr; }
  .style-minimal .countdown-unit { padding-inline: 7px; }
  .style-minimal .countdown-unit + .countdown-unit { padding-left: 7px; }
  .style-minimal .countdown-time .countdown-unit:first-child { padding-left: 7px; }
  .style-minimal .suggestion-grid > button { grid-template-columns: 28px 84px minmax(0, 1fr) 16px; gap: 8px; }
  .style-minimal .suggestion-grid p { font-size: 12px; }
  .style-minimal .composer-wrap { width: calc(100% - 24px); }
  .style-minimal .trade-mode-grid > button { min-height: 132px; grid-template-columns: 44px minmax(0, 1fr) 16px; column-gap: 12px; padding-block: 18px; }
  .style-minimal .trade-mode-grid > button > svg:not(.trade-mode-arrow) { width: 20px; height: 20px; padding: 10px; }
  .style-minimal .trade-mode-grid b { font-size: 24px; }
  .style-minimal .platform-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 5px 12px; padding-block: 12px; }
  .style-minimal .platform-logo { grid-column: 1; grid-row: 1 / 3; }
  .style-minimal .platform-row > div:nth-child(2) { grid-column: 2; grid-row: 1; }
  .style-minimal .platform-status { grid-column: 2; grid-row: 2; order: initial; margin: 0; }
  .style-minimal .platform-row > button { grid-column: 3; grid-row: 1 / 3; margin: 0; }
}

/* RETRO — composition */

/* GLASSMORPHISM — composition */

.theme-light.style-minimal .ai-tag,
.theme-dark.style-minimal .ai-tag{
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* BENTO GRID — composition */

/* STRICT TECHNO — composition */

/* RETRO — neutral surfaces + orange/green action gradient */

/* RETRO — mechanical flip calendar */

@keyframes retroCalendarFlip {
  0% { opacity: .4; transform: perspective(500px) rotateX(-24deg); filter: brightness(1.28); }
  100% { opacity: 1; transform: perspective(500px) rotateX(0); filter: brightness(1); }
}

/* RETRO — quick-action console modules */

/* RETRO — unified split-flap board */

/* RETRO — hardware status badge */

@keyframes retroStatusLamp {
  0%, 72% { filter: brightness(1); opacity: 1; }
  73%, 100% { filter: brightness(.65); opacity: .72; }
}

/* RETRO — compact split-flap proportions */

/* RETRO — status badge matched to theme surfaces */

/* RETRO — gray digit cards and gradient labels */

/* RETRO — Explore catalog heading */

/* RETRO — Explore catalog cards */

/* RETRO — Trade control heading */

/* RETRO — connected radio control */
.platform-radio-control { display: none; }

/* MINIMAL — neutral inactive toggles */
.theme-light.style-minimal .settings-list button > i:not(.toggle-on) {
  border-color: #d1d5db;
  background: #e5e7eb;
  box-shadow: none;
}
.theme-light.style-minimal .settings-list button > i:not(.toggle-on) span { background: #9ca3af; }
.theme-dark.style-minimal .settings-list button > i:not(.toggle-on) {
  border-color: #3f3f46;
  background: #27272a;
  box-shadow: none;
}
.theme-dark.style-minimal .settings-list button > i:not(.toggle-on) span { background: #71717a; }

/* SETTINGS — full theme picker */
.settings-list > .settings-theme-row {
  position: relative;
  z-index: 28;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  color: inherit;
  background: var(--panel);
}
.settings-theme-row > div:first-child { display: grid; gap: 6px; }
.settings-theme-row > div:first-child b { font-size: 13.5px; letter-spacing: .08em; }
.settings-theme-row > div:first-child span { color: var(--muted); font-size: 12px; }
.settings-theme-picker { margin-left: auto; }
.settings-theme-picker .theme-toggle { min-width: 132px; justify-content: space-between; }
.settings-theme-picker .theme-menu { top: auto; bottom: calc(100% + 10px); }
.style-minimal .settings-theme-row { border-radius: 12px; }

@media (max-width: 620px) {
  .settings-list > .settings-theme-row { align-items: flex-start; flex-direction: column; gap: 12px; padding: 13px 14px; }
  .settings-theme-picker { width: 100%; margin-left: 0; }
  .settings-theme-picker .theme-toggle { width: 100%; }
  .settings-theme-picker .theme-menu { right: auto; left: 0; width: min(390px, calc(100vw - 52px)); }
}

/* Trading API credential verification */
.platform-entry { display: grid; gap: 8px; }
.platform-status { min-width: 118px; }
.platform-status:not(.is-ready) i { background: var(--muted); box-shadow: none; }
.platform-status.is-ready { color: var(--acid); }
.credential-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  color: inherit;
  background: var(--panel);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--line) 38%, transparent);
  animation: softReveal .22s ease-out both;
}
.credential-form-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.credential-form-head > div { display: grid; gap: 5px; }
.credential-form-head b { font-size: 13.5px; letter-spacing: .08em; }
.credential-form-head span { color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.credential-form-head > button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  color: inherit;
  background: transparent;
}
.credential-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10.5px; letter-spacing: .08em; }
.credential-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  outline: 0;
  border: 1px solid var(--line);
  color: inherit;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  font-size: 16.5px;
}
.credential-form input:focus { border-color: var(--acid); }
.credential-error {
  grid-column: 1 / -1;
  margin: 0;
  color: #dc6262;
  font-size: 12px;
  line-height: 1.5;
}
.credential-submit {
  grid-column: 1 / -1;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 1px solid var(--acid);
  color: var(--ink);
  background: linear-gradient(135deg, var(--acid), var(--hot));
  font-size: 12px;
  letter-spacing: .07em;
}
.credential-submit svg { width: 15px; }
.credential-submit:disabled { cursor: wait; opacity: .65; }
.style-minimal .credential-form { border-radius: 12px; box-shadow: none; }
.style-minimal .credential-form-head > button,
.style-minimal .credential-form input,
.style-minimal .credential-submit { border-radius: 9px; }

@media (max-width: 620px) {
  .platform-status { min-width: 0; }
  .credential-form { grid-template-columns: 1fr; padding: 14px; }
}

/* RETRO DARK — prevent Cyberpunk lime hover shadows */

.figma-custom-code-fragment {
  display: contents;
}

.figma-bypass-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2147483647;
  transform: translateY(-150%);
  border-radius: 6px;
  background: #111827;
  color: #fff;
  padding: 8px 12px;
  font: 600 21px/1.2 system-ui, sans-serif;
  text-decoration: none;
}

.figma-bypass-link:focus {
  transform: translateY(0);
}

/* RETRO — Trade mode control modules */

/* RETRO — larger, lighter split-flap digit boards */

/* RETRO DARK — lighter, less bulky countdown */

/* RETRO — explicit light and dark digit-board palettes */

/* Keep conversation navigation available while the message history scrolls. */
.conversation-back {
  position: sticky;
  top: 14px;
  z-index: 8;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, #000 12%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.style-minimal .conversation-back {
  border-radius: 10px;
}

/* MODERN SYSTEMS — shared functional coverage */

/* GLASS — every interactive surface */

/* BENTO — every interactive surface */

/* STRICT TECHNO — every interactive surface */

/* TECHNO — borderless dialogue, following the Minimal composition. */

@media (max-width: 620px) {
  .trade-skill-grid { grid-template-columns: 1fr; }
  .trade-skill-grid > .trade-skill-card {
    min-height: 250px;
    padding-right: 84px;
  }
  .trade-skill-card > p { width: 100%; }
  .skill-card-visual { right: 14px; top: 76px; opacity: .3; transform: scale(.78); transform-origin: top right; }
}

/* Shared legibility pass for every light interface style. */
.theme-light .auth-shell,
.theme-light .chat-shell,
.theme-light button,
.theme-light input,
.theme-light textarea {
  font-weight: 500;
}
.theme-light .eyebrow,
.theme-light .nav-status,
.theme-light .auth-footer,
.theme-light .model-name > span,
.theme-light .header-status,
.theme-light .trade-mode-index,
.theme-light .trade-mode-grid small,
.theme-light .suggestion-id,
.theme-light .composer-wrap > p {
  color: #4d5b50;
  font-size: 12px;
  font-weight: 650;
}
.theme-light .eyebrow {
  color: color-mix(in srgb, var(--acid) 76%, #10251c);
  font-size: 16.5px;
}
.theme-light .side-nav button {
  color: #536057;
  font-size: 15px;
  font-weight: 650;
}
.theme-light .side-nav button.active { color: #17221b; }
.theme-light .history > p {
  color: #667168;
  font-size: 13.5px;
  font-weight: 650;
}
.theme-light .history button {
  color: #505c53;
  font-size: 16.5px;
  font-weight: 600;
}
.theme-light .history small {
  color: #68736b;
  font-size: 12px;
  font-weight: 600;
}
.theme-light .profile b { font-size: 16.5px; font-weight: 700; }
.theme-light .profile span { color: #5c685f; font-size: 12px; font-weight: 600; }
.theme-light .feature-heading > p:last-child,
.theme-light .intro {
  color: #4f5c52;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.65;
}
.theme-light .feature-heading h1 { font-weight: 700; }
.theme-light .trade-mode-grid b {
  color: #1c2720;
  font-weight: 700;
}
.theme-light .trade-mode-grid p {
  color: #4f5c52;
  font-size: 15px;
  font-weight: 600;
}
.theme-light .trade-mode-grid small {
  color: #566259;
  letter-spacing: .08em;
}
.theme-light .trade-skill-grid > .trade-skill-card { min-height: 285px; }
.theme-light .explore-grid b,
.theme-light .settings-list b,
.theme-light .platform-row b {
  color: #202b24;
  font-size: 16.5px;
  font-weight: 700;
}
.theme-light .explore-grid p,
.theme-light .settings-list button > div span,
.theme-light .platform-row > div span,
.theme-light .platform-note {
  color: #526057;
  font-size: 13.5px;
  font-weight: 600;
}
.theme-light .suggestion-grid b {
  color: #202b24;
  font-size: 19.5px;
  font-weight: 700;
}
.theme-light .suggestion-grid p {
  color: #4f5d53;
  font-size: 13.5px;
  font-weight: 600;
}
.theme-light .composer textarea {
  color: #1f2a23;
  font-size: 16.5px;
  font-weight: 600;
}
.theme-light .composer textarea::placeholder,
.theme-light .preview-composer input::placeholder {
  color: #657169;
  opacity: 1;
}
.theme-light .user-message p,
.theme-light .ai-message p,
.theme-light .preview-message p {
  color: #2c3930;
  font-weight: 400;
}
.theme-light .field > span,
.theme-light .form-meta,
.theme-light .switch-auth {
  color: #536057;
  font-size: 13.5px;
  font-weight: 650;
}
.theme-light .field input {
  color: #1d2821;
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 620px) {
  .theme-light .trade-skill-grid > .trade-skill-card { min-height: 270px; }
  .theme-light .feature-heading > p:last-child,
  .theme-light .intro { font-size: 15px; }
}

/* Shared legibility pass for every dark interface style. */
.theme-dark .auth-shell,
.theme-dark .chat-shell,
.theme-dark button,
.theme-dark input,
.theme-dark textarea {
  font-weight: 500;
}
.theme-dark .eyebrow,
.theme-dark .nav-status,
.theme-dark .auth-footer,
.theme-dark .model-name > span,
.theme-dark .header-status,
.theme-dark .trade-mode-index,
.theme-dark .trade-mode-grid small,
.theme-dark .suggestion-id,
.theme-dark .composer-wrap > p {
  color: #aab5aa;
  font-size: 13.5px;
  font-weight: 600;
}
.theme-dark .eyebrow {
  color: color-mix(in srgb, var(--acid) 86%, #fff);
  font-size: 16.5px;
  font-weight: 650;
}
.theme-dark .side-nav button {
  color: #a7b0a6;
  font-size: 15px;
  font-weight: 650;
}
.theme-dark .side-nav button.active { color: #f5f7f3; }
.theme-dark .history > p {
  color: #929d92;
  font-size: 13.5px;
  font-weight: 650;
}
.theme-dark .history button {
  color: #b3bcb2;
  font-size: 16.5px;
  font-weight: 600;
}
.theme-dark .history small {
  color: #929c92;
  font-size: 13.5px;
  font-weight: 600;
}
.theme-dark .profile b { color: #f3f5f1; font-size: 16.5px; font-weight: 700; }
.theme-dark .profile span { color: #9aa59a; font-size: 13.5px; font-weight: 600; }
.theme-dark .feature-heading > p:last-child,
.theme-dark .intro {
  color: #b2bcb1;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.65;
}
.theme-dark .feature-heading h1 { font-weight: 700; }
.theme-dark .trade-mode-grid b {
  color: #f3f6f1;
  font-weight: 700;
}
.theme-dark .trade-mode-grid p {
  color: #b0bbb0;
  font-size: 15px;
  font-weight: 600;
}
.theme-dark .trade-mode-grid small {
  color: #a7b2a7;
  letter-spacing: .08em;
}
.theme-dark .trade-skill-grid > .trade-skill-card { min-height: 285px; }
.theme-dark .explore-grid b,
.theme-dark .settings-list b,
.theme-dark .platform-row b {
  color: #f1f4ef;
  font-size: 16.5px;
  font-weight: 700;
}
.theme-dark .explore-grid p,
.theme-dark .settings-list button > div span,
.theme-dark .platform-row > div span,
.theme-dark .platform-note {
  color: #adb8ad;
  font-size: 13.5px;
  font-weight: 600;
}
.theme-dark .suggestion-grid b {
  color: #f3f5f1;
  font-size: 19.5px;
  font-weight: 700;
}
.theme-dark .suggestion-grid p {
  color: #b1bbb0;
  font-size: 13.5px;
  font-weight: 600;
}
.theme-dark .composer textarea {
  color: #f1f4ef;
  font-size: 16.5px;
  font-weight: 600;
}
.theme-dark .composer textarea::placeholder,
.theme-dark .preview-composer input::placeholder {
  color: #9aa59a;
  opacity: 1;
}
.theme-dark .user-message p,
.theme-dark .ai-message p,
.theme-dark .preview-message p {
  color: #d9dfd7;
  font-size: 22.5px;
  font-weight: 400;
}
.theme-dark .field > span,
.theme-dark .form-meta,
.theme-dark .switch-auth {
  color: #aab4aa;
  font-size: 13.5px;
  font-weight: 650;
}
.theme-dark .field input {
  color: #f2f5f0;
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 620px) {
  .theme-dark .trade-skill-grid > .trade-skill-card { min-height: 270px; }
  .theme-dark .feature-heading > p:last-child,
  .theme-dark .intro { font-size: 15px; }
  .theme-dark .composer-wrap > p { font-size: 12px; }
}

/* Keep Trade on the same 1.5x typography standard as every other screen and theme. */
.trade-view .back-link {
  font-size: 13.5px;
  font-weight: 650;
}
.trade-view .trade-heading > .eyebrow { font-size: 16.5px; }
.trade-view .trade-heading > p:last-child {
  max-width: 720px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.65;
}
.trade-view .trade-mode-index {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .07em;
}
.trade-view .trade-mode-grid > button { min-height: 315px; }
.trade-view .trade-mode-grid b {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}
.trade-view .trade-mode-grid p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}
.trade-view .trade-mode-grid small {
  padding-right: 24px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
}
.trade-view .trade-skill-grid > .trade-skill-card { min-height: 335px; }
.trade-view .platform-row { min-height: 96px; }
.trade-view .platform-row b {
  font-size: 16.5px;
  font-weight: 700;
}
.trade-view .platform-row > div span,
.trade-view .platform-status,
.trade-view .platform-row > button,
.trade-view .platform-note {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.6;
}
.trade-view .platform-note { margin-top: 16px; }
.trade-view .credential-form-head b {
  font-size: 18px;
  font-weight: 700;
}
.trade-view .credential-form-head span,
.trade-view .credential-form label,
.trade-view .credential-error {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}
.trade-view .credential-form input {
  font-size: 18px;
  font-weight: 600;
}
.trade-view .credential-submit {
  font-size: 16.5px;
  font-weight: 700;
}
.theme-light .trade-view .back-link,
.theme-light .trade-view .trade-mode-index,
.theme-light .trade-view .trade-mode-grid small,
.theme-light .trade-view .platform-status,
.theme-light .trade-view .platform-note,
.theme-light .trade-view .credential-form-head span,
.theme-light .trade-view .credential-form label {
  color: #46544b;
}
.theme-dark .trade-view .back-link,
.theme-dark .trade-view .trade-mode-index,
.theme-dark .trade-view .trade-mode-grid small,
.theme-dark .trade-view .platform-status,
.theme-dark .trade-view .platform-note,
.theme-dark .trade-view .credential-form-head span,
.theme-dark .trade-view .credential-form label {
  color: #b4beb4;
}

@media (max-width: 620px) {
  .trade-view .trade-heading > p:last-child { font-size: 15px; }
  .trade-view .trade-mode-grid > button,
  .trade-view .trade-skill-grid > .trade-skill-card {
    min-height: 310px;
  }
  .trade-view .trade-mode-grid b { font-size: 31.5px; }
  .trade-view .trade-mode-grid p { font-size: 15px; }
}

/* Keep the 1.5x type scale fluid without changing its requested size. */
.empty-state {
  justify-content: flex-start;
}
.style-minimal .suggestion-grid > button {
  min-height: 96px;
  grid-template-columns: 34px minmax(190px, .8fr) minmax(0, 1.2fr) 18px;
}
.style-minimal .suggestion-grid b,
.style-minimal .suggestion-grid p {
  min-width: 0;
  overflow-wrap: anywhere;
}
.trade-view .platform-row > button {
  height: auto;
  min-height: 52px;
  white-space: normal;
}
.trade-view .credential-form input,
.trade-view .credential-submit {
  min-height: 56px;
}

@media (max-width: 620px) {
  .style-minimal .suggestion-grid > button {
    min-height: 0;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    grid-template-rows: auto auto;
    row-gap: 8px;
    padding-block: 18px;
  }
  .style-minimal .suggestion-grid > button > svg:not(.corner-arrow) {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .style-minimal .suggestion-grid b {
    grid-column: 2;
    grid-row: 1;
  }
  .style-minimal .suggestion-grid p {
    grid-column: 2;
    grid-row: 2;
  }
  .style-minimal .suggestion-grid .corner-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .trade-view .platform-row > button {
    min-height: 48px;
  }
}

/* Keep Glass copy readable as the animated cloud layer moves behind it. */

/* Use quiet, neutral typography inside Glass quick-action cards. */

/* Let the Glass intro sit directly on the ambient background. */

/* Give the Glass sidebar a clean UI voice instead of the base terminal mono. */

/* Match the Glass header typography to the softened sidebar UI. */

/* Keep the Glass countdown label directly on the ambient background. */

/* Give key Glass Light copy confident contrast without using pure black. */

/* Keep muted Glass Trade copy consistent with the Light theme typography. */

/* Referral program prototype */
.referral-view {
  width: min(980px, calc(100% - 70px));
  padding-bottom: 64px;
}
.referral-heading > p:last-child { max-width: 650px; }
.referral-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px;
  margin-top: 34px;
}
.referral-status,
.referral-link,
.referral-stage-grid article,
.referral-benefits article,
.referral-rules {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}
.referral-status {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 20px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--acid) 15%, transparent), transparent 65%),
    color-mix(in srgb, var(--panel) 92%, transparent);
}
.referral-status > span,
.referral-link > span,
.referral-section-head,
.referral-rules > div > span {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .12em;
}
.referral-status strong {
  margin: 19px 0 3px;
  color: var(--acid);
  font: 600 72px/.9 'Space Grotesk', sans-serif;
  letter-spacing: -.06em;
}
.referral-status p {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.referral-status p b { color: var(--content-primary); font-size: 19.5px; }
.referral-link {
  min-width: 0;
  padding: 20px;
}
.referral-link > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 17px 0 12px;
}
.referral-link code {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 15px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  color: var(--content-primary);
  background: color-mix(in srgb, var(--panel) 65%, transparent);
  font: 500 16.5px/1.4 'DM Mono', monospace;
}
.referral-link button {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--acid);
  color: var(--panel);
  background: var(--acid);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
}
.referral-link button svg { width: 15px; }
.referral-link small { color: var(--muted); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.referral-section { margin-top: 28px; }
.referral-section-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.referral-section-head b { color: var(--acid); font-weight: 600; }
.referral-stage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.referral-stage-grid article {
  position: relative;
  min-height: 194px;
  padding: 16px;
  overflow: hidden;
}
.referral-stage-grid article::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: color-mix(in srgb, var(--muted) 22%, transparent);
}
.referral-stage-grid article.is-current {
  border-color: var(--acid);
  background: color-mix(in srgb, var(--acid) 9%, var(--panel));
}
.referral-stage-grid article.is-current::after { background: var(--acid); }
.referral-stage-grid article > span {
  color: var(--acid);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .1em;
}
.referral-stage-grid article strong {
  display: block;
  margin: 23px 0 7px;
  color: var(--content-primary);
  font: 600 27px/1 'Space Grotesk', sans-serif;
  letter-spacing: -.02em;
}
.referral-stage-grid article p,
.referral-stage-grid article small {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}
.referral-stage-grid article small {
  display: block;
  margin-top: 12px;
  color: var(--hot);
  letter-spacing: .04em;
}
.referral-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.referral-benefits article {
  min-height: 150px;
  display: flex;
  gap: 14px;
  padding: 18px;
}
.referral-benefits svg { width: 21px; flex: none; color: var(--acid); }
.referral-benefits div { display: grid; align-content: start; gap: 8px; }
.referral-benefits b { color: var(--content-primary); font-size: 16.5px; letter-spacing: .08em; }
.referral-benefits span { color: var(--muted); font-size: 13.5px; font-weight: 600; line-height: 1.6; }
.referral-rules {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  margin-top: 10px;
  padding: 22px;
}
.referral-rules > div { display: grid; align-content: start; gap: 10px; }
.referral-rules > div > b { color: var(--content-primary); font-size: 18px; letter-spacing: .08em; }
.referral-rules ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.referral-rules li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.referral-rules li > span { color: var(--acid); font-size: 13.5px; letter-spacing: .08em; }

.style-minimal .referral-status,
.style-minimal .referral-link,
.style-minimal .referral-stage-grid article,
.style-minimal .referral-benefits article,
.style-minimal .referral-rules { border-radius: 12px; }

.theme-light .referral-status,
.theme-light .referral-link,
.theme-light .referral-stage-grid article,
.theme-light .referral-benefits article,
.theme-light .referral-rules {
  background-color: color-mix(in srgb, #fff 72%, var(--panel));
}
.theme-dark .referral-status p b,
.theme-dark .referral-link code,
.theme-dark .referral-stage-grid article strong,
.theme-dark .referral-benefits b,
.theme-dark .referral-rules > div > b {
  color: #f3f5f7;
}

@media (max-width: 820px) {
  .referral-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .referral-stage-grid article:last-child { grid-column: 1 / -1; }
  .referral-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .referral-view { width: calc(100% - 34px); padding-top: 38px; }
  .referral-hero,
  .referral-rules { grid-template-columns: 1fr; }
  .referral-status { min-height: 142px; }
  .referral-link > div { grid-template-columns: 1fr; }
  .referral-link code { min-height: 48px; }
  .referral-link button { justify-content: center; }
}

/* Give each interface family its own settings-toggle language. */
.settings-list button > i {
  flex: none;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.settings-list button > i span {
  transition: transform .22s ease, background .2s ease, border-radius .2s ease, box-shadow .2s ease;
}

/* Cyberpunk — clipped signal rail with a bright energy state. */

/* Minimal — quiet native pill with restrained motion. */
.style-minimal .settings-list button > i {
  width: 42px;
  height: 24px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #e5e7eb;
  box-shadow: none;
}
.style-minimal .settings-list button > i span {
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #11182729;
}
.theme-light.style-minimal .settings-list button > i:not(.toggle-on) span { background: #fff; }
.theme-light.style-minimal .settings-list button > i.toggle-on { border-color: #2563eb; background: #2563eb; }
.theme-dark.style-minimal .settings-list button > i { border-color: #3f3f46; background: #27272a; }
.theme-dark.style-minimal .settings-list button > i span { background: #a1a1aa; box-shadow: none; }
.theme-dark.style-minimal .settings-list button > i:not(.toggle-on) span { background: #a1a1aa; }
.theme-dark.style-minimal .settings-list button > i.toggle-on { border-color: #f4f4f5; background: #f4f4f5; }
.theme-dark.style-minimal .settings-list button > i.toggle-on span { background: #111214; }
.style-minimal .settings-list button > i.toggle-on span { transform: translateX(18px); }

/* Retro — tactile hardware switch with an offset print shadow. */

/* Glass — translucent capsule, soft highlight and floating orb. */

/* Bento — bold rounded module with a chunky colored tile. */

/* Strict Techno — squared instrument control with a scan-line track. */

/* Theme typography matrix — keep every visual language typographically distinct. */

.style-minimal {
  --theme-font-body: 'Inter', sans-serif;
  --theme-font-display: 'Manrope', sans-serif;
}

/* One authoritative type contract prevents component-level shorthands from changing a theme's voice. */
.theme-root:is(.style-cyber, .style-minimal, .style-retro, .style-glass, .style-bento, .style-techno),
.theme-root:is(.style-cyber, .style-minimal, .style-retro, .style-glass, .style-bento, .style-techno) :where(*) {
  font-family: var(--theme-font-body) !important;
}

.theme-root:is(.style-cyber, .style-minimal, .style-retro, .style-glass, .style-bento, .style-techno) :is(
  .brand,
  h1,
  h2,
  h3,
  .access-user strong,
  .access-code,
  .countdown-unit strong,
  .countdown-date strong,
  .suggestion-grid b,
  .explore-grid b,
  .trade-mode-grid b,
  .trade-skill-card b,
  .platform-logo,
  .platform-row b,
  .credential-form-head b,
  .profile b,
  .model-name button,
  .model-name select,
  .referral-status strong,
  .referral-stage-grid strong,
  .referral-benefits b,
  .referral-rules > div > b,
  .settings-list b,
  .client-app-grid article b,
  .client-bot-list article b,
  .client-bot-mark
),
.theme-root:is(.style-cyber, .style-minimal, .style-retro, .style-glass, .style-bento, .style-techno) :is(
  .brand,
  h1,
  h2,
  h3,
  .access-user strong,
  .access-code,
  .countdown-unit strong,
  .countdown-date strong,
  .suggestion-grid b,
  .explore-grid b,
  .trade-mode-grid b,
  .trade-skill-card b,
  .platform-logo,
  .platform-row b,
  .credential-form-head b,
  .profile b,
  .model-name button,
  .model-name select,
  .referral-status strong,
  .referral-stage-grid strong,
  .referral-benefits b,
  .referral-rules > div > b,
  .settings-list b,
  .client-app-grid article b,
  .client-bot-list article b,
  .client-bot-mark
) :where(*) {
  font-family: var(--theme-font-display) !important;
}

/* Keep the complete home dashboard inside common laptop-height viewports. */
@media (min-width: 621px) and (max-height: 900px) {
  .theme-root .empty-state {
    padding-top: 18px;
    padding-bottom: 12px;
  }
  .theme-root .countdown {
    margin-top: 6px;
    margin-bottom: 10px;
  }
  .theme-root .suggestion-grid {
    margin-top: 18px;
  }
  
  
  .theme-root.style-minimal .suggestion-grid > button {
    min-height: 64px;
    padding-block: 8px;
  }
}

/* Standalone referral entry in the sidebar. */
.referral-side-entry {
  position: relative;
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--acid) 38%, var(--line));
  text-align: left;
  color: inherit;
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--acid) 13%, transparent), color-mix(in srgb, var(--hot) 8%, transparent)),
    var(--panel);
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.referral-side-entry:hover {
  border-color: var(--acid);
  transform: translateY(-1px);
}
.referral-side-entry.active {
  border-color: var(--acid);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--acid) 23%, transparent), color-mix(in srgb, var(--hot) 14%, transparent)),
    var(--panel);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--acid) 14%, transparent);
}
.referral-side-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--acid);
  background: color-mix(in srgb, var(--acid) 13%, transparent);
}
.referral-side-icon svg { width: 17px; }
.referral-side-entry > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.referral-side-entry b { color: currentColor; font-size: 11px; letter-spacing: .1em; }
.referral-side-entry small { color: var(--muted); font-size: 8.5px; letter-spacing: .08em; }
.referral-side-entry > svg { width: 13px; color: var(--acid); }

.style-minimal .referral-side-entry { border-radius: 10px; box-shadow: none; }
.style-minimal .referral-side-icon { border-radius: 7px; }

/* Strict Techno Dark — keep primary referral labels clear on near-black panels. */

/* Referral typography follows each visual style, including elements with local font shorthands. */
.theme-root .referral-view,
.theme-root .referral-view :where(*) {
  font-family: var(--theme-font-body);
}

.theme-root .referral-view :is(
  .feature-heading h1,
  .referral-status strong,
  .referral-stage-grid article strong,
  .referral-benefits b,
  .referral-rules > div > b
) {
  font-family: var(--theme-font-display);
}

/* CLIENTS */
.clients-view { width: min(960px, calc(100% - 70px)); }
.clients-heading > p:last-child { max-width: 650px; line-height: 1.55; }
.client-section { margin-top: 34px; }
.client-section + .client-section { margin-top: 28px; }
.client-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 11px;
}
.client-section-head > div { display: grid; gap: 6px; }
.client-section-head span,
.client-section-head > b {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .12em;
}
.client-section-head > b { color: var(--acid); }
.client-section-head h2 {
  margin: 0;
  color: var(--content-primary);
  font-family: var(--theme-font-display);
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: .06em;
}
.client-app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.client-app-grid article {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--content-primary);
  background: var(--panel);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.client-app-grid article:hover { border-color: var(--acid); transform: translateY(-2px); }
.client-card-index {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .12em;
}
.client-app-grid article > div { display: grid; gap: 10px; }
.client-app-grid article b {
  font-family: var(--theme-font-display);
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: .04em;
}
.client-app-grid article p,
.client-bot-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.client-app-grid article small {
  position: absolute;
  left: 24px;
  bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
}
.client-app-grid em,
.client-bot-list em {
  position: absolute;
  right: 16px;
  bottom: 15px;
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--acid) 48%, var(--line));
  color: var(--acid);
  background: color-mix(in srgb, var(--acid) 7%, transparent);
  font-size: 12px;
  font-weight: 650;
  font-style: normal;
  letter-spacing: .12em;
}
.client-device-visual {
  position: relative;
  width: 86px;
  height: 68px;
  display: block;
  color: var(--acid);
}
.client-device-desktop { border: 1px solid currentColor; background: color-mix(in srgb, var(--acid) 7%, transparent); }
.client-device-desktop::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 24px;
  height: 12px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateX(-50%);
}
.client-device-desktop::after {
  content: '';
  position: absolute;
  left: 21px;
  right: 21px;
  bottom: -14px;
  height: 1px;
  background: currentColor;
}
.client-device-visual i { position: absolute; display: block; background: currentColor; }
.client-device-desktop i:first-child { left: 12px; right: 12px; top: 14px; height: 1px; box-shadow: 0 10px 0 color-mix(in srgb, var(--acid) 50%, transparent), 0 20px 0 color-mix(in srgb, var(--acid) 28%, transparent); }
.client-device-desktop i:last-child { left: 12px; bottom: 8px; width: 5px; height: 5px; box-shadow: 9px 0 0 color-mix(in srgb, var(--acid) 45%, transparent); }
.client-device-mobile {
  width: 52px;
  height: 86px;
  margin-left: 17px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: color-mix(in srgb, var(--acid) 7%, transparent);
}
.client-device-mobile::before { content: ''; position: absolute; top: 6px; left: 18px; width: 14px; height: 1px; background: currentColor; }
.client-device-mobile i:first-child { left: 9px; right: 9px; top: 22px; height: 1px; box-shadow: 0 10px 0 color-mix(in srgb, var(--acid) 50%, transparent), 0 20px 0 color-mix(in srgb, var(--acid) 28%, transparent); }
.client-device-mobile i:last-child { left: 23px; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; }
.client-bot-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--panel); }
.client-bot-list article {
  position: relative;
  min-height: 230px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 20px 18px 40px;
  border-right: 1px solid var(--line);
}
.client-bot-list article:last-child { border-right: 0; }
.client-bot-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--acid) 60%, var(--line));
  color: var(--acid);
  background: color-mix(in srgb, var(--acid) 9%, transparent);
  font-family: var(--theme-font-display);
  font-size: 19.5px;
  font-weight: 650;
  letter-spacing: .04em;
}
.client-bot-list article > div { min-width: 0; display: grid; gap: 5px; }
.client-bot-list article > div > span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.client-bot-list article b { color: var(--content-primary); font-family: var(--theme-font-display); font-size: 21px; line-height: 1.1; letter-spacing: .05em; }
.theme-dark .clients-view :is(.client-section-head h2, .client-app-grid article b, .client-bot-list article b) {
  color: #f1f3ed;
}
.client-prototype-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 1px 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
}
.client-prototype-note svg { width: 14px; flex: none; color: var(--acid); }

.style-minimal .client-app-grid article,
.style-minimal .client-bot-list,
.style-minimal .client-bot-mark { border-radius: 12px; }

.theme-root .clients-view,
.theme-root .clients-view :where(*) { font-family: var(--theme-font-body); }
.theme-root .clients-view :is(.feature-heading h1, h2, article b, .client-bot-mark) { font-family: var(--theme-font-display); }

/* CHAT LIBRARY */
.chat-library {
  width: min(980px, calc(100% - 70px));
  margin: 0 auto;
  padding: 54px 0 44px;
}
.chat-library-heading {
  position: relative;
  padding-right: 190px;
}
.chat-library-heading > p:last-child {
  max-width: 620px;
  line-height: 1.55;
}
.chat-library-new {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 156px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--acid);
  color: var(--content-primary);
  background: color-mix(in srgb, var(--acid) 12%, var(--panel));
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.chat-library-new svg { width: 15px; height: 15px; display: block; flex: none; color: var(--acid); }
.chat-library-new:hover {
  color: var(--panel);
  background: var(--acid);
  box-shadow: 0 0 22px color-mix(in srgb, var(--acid) 28%, transparent);
  transform: translateY(-1px);
}
.chat-library-new:hover svg { color: currentColor; }
.chat-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}
.chat-topic-group {
  min-width: 0;
  border: 1px solid var(--line);
  color: var(--content-primary);
  background: var(--panel);
  overflow: hidden;
}
.chat-topic-group > header {
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--acid) 5%, var(--panel));
}
.chat-topic-group > header > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--acid) 48%, var(--line));
  color: var(--acid);
  background: color-mix(in srgb, var(--acid) 8%, transparent);
}
.chat-topic-group > header svg { width: 17px; }
.chat-topic-group > header > div { min-width: 0; }
.chat-topic-group > header small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
}
.chat-topic-group h2 {
  margin: 0;
  font-family: var(--theme-font-display);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: .045em;
}
.chat-topic-group > header > b {
  align-self: start;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .1em;
}
.chat-topic-group > div { display: grid; }
.chat-topic-entry {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
  transition: background .18s ease, box-shadow .18s ease;
}
.chat-topic-entry:last-child { border-bottom: 0; }
.chat-topic-entry:hover {
  background: color-mix(in srgb, var(--acid) 8%, transparent);
  box-shadow: inset 3px 0 0 var(--acid);
}
.chat-topic-entry > span:first-child {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.chat-topic-entry h3 {
  margin: 0;
  font-family: var(--theme-font-display);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: .015em;
}
.chat-topic-entry small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}
.chat-topic-entry > span:last-child {
  display: grid;
  justify-items: end;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  white-space: nowrap;
}
.chat-topic-entry > span:last-child svg { width: 15px; color: var(--acid); }
.chat-topic-entry.selected { box-shadow: inset 3px 0 0 var(--acid); }
.chat-topic-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border-bottom: 1px solid var(--line); }
.chat-topic-row:last-child { border-bottom: 0; }
.chat-topic-row .chat-topic-entry { border-bottom: 0; }
.chat-topic-delete { width: 46px; border: 0; border-left: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 22px; line-height: 1; }
.chat-topic-delete:hover { color: var(--acid); background: color-mix(in srgb, var(--acid) 8%, transparent); }
.chat-library-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 1px 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}
.chat-library-note svg { width: 14px; flex: none; color: var(--acid); }
.theme-dark .chat-library-new,
.theme-dark .chat-topic-group {
  color: #f1f3ed;
}

.style-minimal :is(.chat-library-new, .chat-topic-group) { border-radius: 12px; }
.style-minimal .chat-topic-group > header > span { border-radius: 9px; }

.theme-root .chat-library,
.theme-root .chat-library :where(*) { font-family: var(--theme-font-body); }
.theme-root .chat-library :is(.feature-heading h1, h2, h3) { font-family: var(--theme-font-display); }

/* Minimal Dark — carry Explore's blue secondary-text hierarchy across core sections. */
.theme-dark.style-minimal :is(
  .chat-library-heading,
  .clients-heading,
  .referral-heading
) > p:last-child,
.theme-dark.style-minimal .empty-state .intro {
  color: #93c5fd;
}

.theme-dark.style-minimal :is(
  .chat-library,
  .clients-view,
  .referral-view,
  .empty-state
) .eyebrow,
.theme-dark.style-minimal :is(
  .countdown-title,
  .client-section-head > b,
  .client-app-grid em,
  .client-bot-list em,
  .referral-section-head b,
  .referral-stage-grid article > span
) {
  color: #60a5fa;
}

.theme-dark.style-minimal :is(
  .countdown-unit > span,
  .countdown > p,
  .suggestion-grid p,
  .chat-topic-group > header small,
  .chat-topic-group > header > b,
  .chat-topic-entry small,
  .chat-topic-entry > span:last-child,
  .chat-library-note,
  .client-section-head span,
  .client-card-index,
  .client-app-grid article p,
  .client-app-grid article small,
  .client-bot-list article > div > span,
  .client-bot-list p,
  .client-prototype-note,
  .referral-status > span,
  .referral-status p,
  .referral-link > span,
  .referral-link small,
  .referral-section-head,
  .referral-stage-grid article p,
  .referral-stage-grid article small,
  .referral-benefits span,
  .referral-rules > div > span,
  .referral-rules li
) {
  color: #7aa2d6;
}

.theme-dark.style-minimal .composer-wrap > p,
.theme-dark.style-minimal .char-count {
  color: #7aa2d6;
}

/* Supplied Minimal identity marks: black on light, white on blue for dark mode. */
.style-minimal .grid-icon-placeholder { display: none; }
.theme-light.style-minimal .grid-icon-minimal-light,
.theme-dark.style-minimal .grid-icon-minimal-dark { display: block; }

/* Supplied Retro identity marks: brighter grain for light, deeper grain for dark mode. */

/* Supplied Glass identity marks: light gradient for light mode, deep gradient for dark mode. */

/* Supplied Bento identity marks: white canvas for light mode, charcoal canvas for dark mode. */

/* Supplied Strict Techno identity marks: light canvas for light mode, dark canvas for dark mode. */

@media (max-width: 760px) {
  .chat-library { width: calc(100% - 34px); padding-top: 38px; }
  .chat-library-heading { padding-right: 0; padding-bottom: 61px; }
  .chat-library-new { top: auto; right: auto; bottom: 0; left: 0; }
  .chat-topic-grid { grid-template-columns: 1fr; margin-top: 26px; }
  .clients-view { width: calc(100% - 34px); padding-top: 38px; }
  .client-app-grid,
  .client-bot-list { grid-template-columns: 1fr; }
  .client-bot-list article { border-right: 0; border-bottom: 1px solid var(--line); }
  .client-bot-list article:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .countdown-extend {
    position: relative;
    left: 12px;
  }
}

/* Keep the mobile header controls clear of wide centered camera cutouts. */
@media (max-width: 430px) {
  .chat-main {
    grid-template-rows: calc(72px + env(safe-area-inset-top, 0px)) minmax(0, 1fr) auto;
  }
  .model-name {
    position: absolute;
    top: calc(28px + env(safe-area-inset-top, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    margin: 0;
    transform: translateY(-50%);
  }
  .chat-header > .theme-picker {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: max(61px, calc(env(safe-area-inset-right, 0px) + 49px));
    margin: 0;
  }
  .menu-button {
    position: absolute;
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    margin: 0;
  }
}

@media (max-width: 520px) {
  .chat-library-heading h1 { font-size: clamp(36px, 9.5vw, 44px); line-height: .92; }
  .explore-view,
  .clients-view { overflow-x: clip; }
  .explore-view .feature-heading h1,
  .clients-heading h1 {
    width: calc(100% - 6px);
    max-width: calc(100% - 6px);
    margin-left: 6px;
    box-sizing: border-box;
    font-size: clamp(42px, 11.5vw, 48px);
  }
  
  .chat-topic-group > header { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; padding-inline: 14px; }
  .chat-topic-group > header > span { width: 36px; height: 36px; }
  .chat-topic-entry { padding-inline: 14px; }
  .chat-topic-entry > span:last-child { align-self: start; padding-top: 2px; }
  .client-app-grid article { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 22px 18px; }
  .client-device-visual { transform: scale(.78); transform-origin: left center; }
  .client-device-mobile { margin-left: 10px; }
  .client-section-head { align-items: start; }
}

/* Visibility for the static layout. Minimal tokens above are unchanged. */
.theme-icon-slot,
.referral-copy-icon { display: contents; }
.is-off { display: none !important; }
.conversation > .screen:not(.is-active) { display: none !important; }
.trade-step:not(.is-active) { display: none !important; }
.credential-form:not(.is-active) { display: none !important; }
.theme-menu.is-off,
.theme-picker-scrim.is-off { display: none !important; }
.theme-options > button .theme-active { display: none; }
.theme-options > button.selected .theme-active { display: inline; }
.style-minimal .settings-updates {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: inherit;
}
.style-minimal .settings-updates b { font-size: 13.5px; letter-spacing: .08em; }
.style-minimal .settings-updates p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
