
@font-face {
  font-family: "Enough Inter";
  src: url("/static/fonts/EnoughInter-Variable.woff2?v=20260810-1") format("woff2-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Enough Motion Display";
  src: url("/static/fonts/TsvikSP-Demo.woff2?v=20260813-1") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: dark;
  --bg: #020204;
  --surface: #06070b;
  --surface-2: #0a0c12;
  --surface-3: #0f1219;
  --line: rgba(205, 238, 255, 0.11);
  --line-strong: rgba(205, 238, 255, 0.24);
  --text: #edf8ff;
  --muted: #94a7b5;
  --faint: #71838f;
  --copy-secondary: #8fa2ae;
  --copy-tertiary: #71838f;
  --type-helper: 14px;
  --type-caption: 13px;
  --type-meta: 10px;
  --line-helper: 1.58;
  --font-ui: "Enough Inter", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-signal: var(--font-ui);
  --font-display: var(--font-ui);
  --font-route-display: var(--font-ui);
  --font-subheading: var(--font-ui);
  --accent: #ff2b61;
  --accent-hot: #ff5b82;
  --accent-rgb: 255, 43, 97;
  --accent-hot-rgb: 255, 91, 130;
  --accent-soft: rgba(var(--accent-rgb), 0.13);
  --accent-ink: #fff8fb;
  --ice: #ccecff;
  --ice-strong: #f5fbff;
  --ice-soft: rgba(204, 236, 255, 0.1);
  --danger: #ff3b68;
  --radius: 18px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
  --red-glow: 0 0 8px rgba(var(--accent-rgb),.78), 0 0 24px rgba(var(--accent-rgb),.32), 0 0 52px rgba(var(--accent-rgb),.13);
  --ice-glow: 0 0 9px rgba(204,236,255,.54), 0 0 28px rgba(204,236,255,.14);
  --chat-content-width: 820px;
  font-family: var(--font-ui);
}

:root[data-accent="violet"] { --accent: #9754ff; --accent-hot: #b883ff; --accent-rgb: 151, 84, 255; --accent-hot-rgb: 184, 131, 255; --accent-ink: #fbf7ff; }
:root[data-accent="blue"] { --accent: #2e77ff; --accent-hot: #67a2ff; --accent-rgb: 46, 119, 255; --accent-hot-rgb: 103, 162, 255; --accent-ink: #f5f9ff; }
:root[data-accent="cyan"] { --accent: #00b8d9; --accent-hot: #4ee3ff; --accent-rgb: 0, 184, 217; --accent-hot-rgb: 78, 227, 255; --accent-ink: #f3fdff; }
:root[data-accent="green"] { --accent: #1bc277; --accent-hot: #60e7a4; --accent-rgb: 27, 194, 119; --accent-hot-rgb: 96, 231, 164; --accent-ink: #f3fff9; }
:root[data-accent="amber"] { --accent: #ff9d2e; --accent-hot: #ffc15c; --accent-rgb: 255, 157, 46; --accent-hot-rgb: 255, 193, 92; --accent-ink: #fffaf2; }
:root[data-accent="obsidian"] { --accent: #111318; --accent-hot: #aeb7c2; --accent-rgb: 86, 94, 105; --accent-hot-rgb: 174, 183, 194; --accent-ink: #f7f9fb; }

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body {
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 16% 16%, rgba(var(--accent-rgb),.075), transparent 34%),
    radial-gradient(ellipse at 84% 72%, rgba(180,228,255,.055), transparent 36%),
    linear-gradient(145deg, #020204 0%, #040408 52%, #010103 100%);
  color: var(--text);
  font-weight: 450;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(204,236,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,236,255,.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 72%);
}
.app-boot-view { display: none; }
:root[data-initial-surface="app"]:not(.initial-surface-resolved) #landing-view,
:root[data-initial-surface="app"]:not(.initial-surface-resolved) #app-view {
  display: none !important;
}
:root[data-initial-surface="app"]:not(.initial-surface-resolved) .app-boot-view {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  min-width: 320px;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 44%, rgba(var(--accent-rgb),.11), transparent 25%),
    #020306;
}
.app-boot-view > div { display: grid; justify-items: center; gap: 9px; text-align: center; }
.app-boot-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border: 1px solid rgba(var(--accent-hot-rgb),.42);
  border-radius: 14px;
  background: rgba(var(--accent-rgb),.07);
  color: var(--accent-hot);
  font: italic 700 28px/1 Quantico, sans-serif;
  text-shadow: var(--red-glow);
  box-shadow: inset 0 0 22px rgba(var(--accent-rgb),.08), 0 0 28px rgba(var(--accent-rgb),.13);
  animation: app-boot-pulse 1.2s ease-in-out infinite alternate;
}
.app-boot-view strong { color: var(--ice-strong); font: 500 17px/1.25 var(--font-signal); }
.app-boot-view small { color: var(--faint); font: 500 9px/1.3 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
@keyframes app-boot-pulse { to { transform: translateY(-2px); filter: brightness(1.18); } }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.landing { position: relative; isolation: isolate; overflow: clip; }
.landing::before { content: ""; position: absolute; z-index: -1; top: 450px; left: 50%; width: 1px; height: 58%; background: linear-gradient(transparent, rgba(var(--accent-rgb),.25) 12%, rgba(204,236,255,.08) 58%, transparent); box-shadow: 0 0 24px rgba(var(--accent-rgb),.12); }
.landing-smoke-stage {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  width: 100%;
  height: max(920px, 112svh);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 68%,
    rgba(0, 0, 0, .94) 76%,
    rgba(0, 0, 0, .58) 89%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 68%,
    rgba(0, 0, 0, .94) 76%,
    rgba(0, 0, 0, .58) 89%,
    transparent 100%
  );
}
.landing-smoke-stage[hidden] { display: none; }
.landing-smoke-stage canvas { display: block; width: 100%; height: 100%; opacity: .98; }
.landing-nav, .hero, .manifesto-ticker { position: relative; z-index: 1; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(130px); pointer-events: none; }
.ambient-one { width: 520px; height: 520px; background: var(--accent); top: -330px; right: -80px; opacity: .15; }
.ambient-two { width: 460px; height: 460px; background: var(--ice); bottom: -340px; left: -220px; opacity: .08; }

.brand { display: inline-flex; align-items: center; color: var(--accent-hot); text-decoration: none; line-height: 1; }
.brand-mark { display: inline-grid; place-items: center; width: 35px; height: 35px; color: transparent; font-size: 0; }
.brand-mark::before, .preview-logo::before, .mini-mark::before, .empty-mark::before, .message-mark::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url("/static/enough-e.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px var(--accent)) drop-shadow(0 0 8px rgba(var(--accent-rgb),.78)) drop-shadow(0 0 17px rgba(var(--accent-rgb),.34));
}
.version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 17px;
  padding: 3px 6px 2px;
  border: 1px solid rgba(var(--accent-hot-rgb),.25);
  border-radius: 999px;
  color: rgba(204,236,255,.58);
  background: rgba(var(--accent-rgb),.055);
  font: 600 8px/1 "Quantico", ui-monospace, monospace;
  letter-spacing: .08em;
  white-space: nowrap;
  box-shadow: inset 0 0 10px rgba(var(--accent-rgb),.025), 0 0 12px rgba(var(--accent-rgb),.06);
  text-shadow: 0 0 9px rgba(var(--accent-rgb),.2);
}
.landing-nav > .brand { position: relative; }
.landing-nav > .brand .version-badge {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
}
.brand:is(:hover, :focus-visible) .version-badge {
  border-color: rgba(var(--accent-hot-rgb),.5);
  color: var(--ice);
  background: rgba(var(--accent-rgb),.11);
}
.landing-nav { position: relative; z-index: 4; height: 90px; display: flex; align-items: center; justify-content: space-between; }
.nav-actions { display: flex; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; padding: 11px 17px; cursor: pointer; color: inherit; font-family: var(--font-ui); font-size: 13px; font-weight: 500; letter-spacing: 0; text-decoration: none; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button-primary { border-color: rgba(var(--accent-hot-rgb),.8); background: linear-gradient(135deg, rgba(var(--accent-rgb),.24), rgba(var(--accent-rgb),.1)); color: var(--ice-strong); text-shadow: 0 0 9px rgba(255,255,255,.38); box-shadow: inset 0 0 18px rgba(var(--accent-rgb),.08), 0 0 12px rgba(var(--accent-rgb),.42), 0 0 32px rgba(var(--accent-rgb),.12); }
.button-primary:hover { border-color: var(--accent-hot); background: rgba(var(--accent-rgb),.3); box-shadow: inset 0 0 20px rgba(var(--accent-rgb),.15), var(--red-glow); }
.button-ghost { background: transparent; color: var(--muted); }
.button-ghost:hover { color: var(--ice-strong); background: var(--ice-soft); text-shadow: var(--ice-glow); }
.button-text { color: var(--muted); background: transparent; }
.button-text:hover { color: var(--ice); text-shadow: var(--ice-glow); }
.button-large { padding: 14px 21px; border-radius: 13px; font-size: 14px; }
.button-large span { margin-left: 20px; font-size: 18px; }
.button-full { width: 100%; padding-block: 14px; }
.button-outline { background: transparent; border: 1px solid var(--line-strong); color: var(--ice); }
.button-outline:hover { border-color: rgba(204,236,255,.5); background: var(--ice-soft); box-shadow: 0 0 20px rgba(204,236,255,.09); }
.button-danger { background: rgba(255,43,97,.07); border: 1px solid rgba(255,43,97,.28); color: #ff809f; }
.button-light { width: 100%; border-color: rgba(204,236,255,.48); background: rgba(204,236,255,.08); color: var(--ice-strong); padding: 10px; box-shadow: 0 0 22px rgba(204,236,255,.08); }

.hero { position: relative; isolation: isolate; min-height: auto; display: grid; grid-template-columns: minmax(320px, .68fr) minmax(0, 1.24fr); align-items: center; gap: clamp(28px, 4vw, 52px); padding: 42px 0 0; }
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  left: 50%;
  width: 100vw;
  height: calc(100% + 270px);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero::before {
  background:
    radial-gradient(ellipse 30% 38% at -3% 25%, rgba(var(--accent-rgb),.22), transparent 72%),
    radial-gradient(ellipse 25% 27% at 8% 76%, rgba(130,18,50,.2), transparent 74%),
    radial-gradient(ellipse 29% 35% at 103% 38%, rgba(var(--accent-rgb),.16), transparent 72%),
    radial-gradient(ellipse 24% 25% at 92% 82%, rgba(121,15,45,.17), transparent 75%);
  filter: blur(48px) saturate(118%);
  opacity: .72;
  animation: hero-fog-breathe 20s ease-in-out infinite alternate;
}
.hero::after {
  top: -70px;
  height: calc(100% + 190px);
  background:
    radial-gradient(ellipse 17% 25% at 3% 58%, rgba(var(--accent-hot-rgb),.2), transparent 76%),
    radial-gradient(ellipse 15% 22% at 97% 24%, rgba(var(--accent-rgb),.14), transparent 78%);
  filter: blur(86px);
  opacity: .34;
  animation: hero-fog-drift 26s ease-in-out infinite alternate;
}
.landing.smoke-enabled .hero::before,
.landing.smoke-enabled .hero::after { opacity: 0; animation: none; }
@keyframes hero-fog-breathe {
  from { opacity: .58; transform: translateX(-50%) scale(1); }
  to { opacity: .82; transform: translateX(-50%) scale(1.07, 1.04); }
}
@keyframes hero-fog-drift {
  from { transform: translateX(-52%) scale(1.02); }
  to { transform: translateX(-48%) scale(1.1, 1.04); }
}
.hero-copy { position: relative; z-index: 1; animation: manifesto-enter .75s ease both; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ice); font-family: var(--font-signal); font-size: 11px; font-weight: 300; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 27px; text-shadow: var(--ice-glow); }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 5px #fff, var(--red-glow); display: inline-block; }
.hero h1 { margin: 0; max-width: 750px; color: var(--ice-strong); font-family: var(--font-signal); font-size: clamp(58px, 6vw, 86px); line-height: .94; letter-spacing: -.03em; font-weight: 300; text-shadow: 0 0 18px rgba(204,236,255,.09); }
.hero h1 > span, .hero h1 em { display: block; }
.hero h1 > span:first-child { font-size: .68em; line-height: 1.04; letter-spacing: -.045em; }
.hero h1 em { color: #fff3f6; font-style: normal; text-shadow: 0 0 4px #fff, 0 0 12px var(--accent), 0 0 32px rgba(var(--accent-rgb),.62), 0 0 66px rgba(var(--accent-rgb),.24); }
.hero h1 .hero-title-tail { max-width: 680px; margin-top: 15px; color: #cbd9e2; font-size: .43em; line-height: 1.13; letter-spacing: -.035em; }
.hero-thesis { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 29px 0 0; color: var(--faint); font-family: var(--font-signal); font-size: clamp(16px, 1.7vw, 22px); letter-spacing: .01em; }
.hero-wordmark { display: inline-block; flex: 0 0 auto; margin-right: .72em; color: rgba(var(--accent-rgb),.02); font-family: "Quantico", sans-serif; font-size: .88em; font-style: normal; font-weight: 700; line-height: 1; letter-spacing: .075em; text-rendering: geometricPrecision; -webkit-text-stroke: .85px var(--accent-hot); paint-order: stroke fill; text-shadow: 0 0 3px rgba(var(--accent-hot-rgb),.36), 0 0 9px rgba(var(--accent-rgb),.11); }
.hero-thesis strong { color: var(--ice-strong); font-weight: 400; letter-spacing: .005em; text-shadow: var(--ice-glow); }
.hero-lead { max-width: 620px; color: var(--muted); font-size: 15px; font-weight: 300; line-height: 1.72; margin: 20px 0 29px; }
.hero-actions { display: flex; align-items: center; gap: 10px; }
.hero-fireflies { position: absolute; z-index: 0; top: -82px; left: 50%; width: min(100vw, 1440px); height: calc(100% + 205px); overflow: hidden; pointer-events: none; transform: translateX(-50%); -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 48%, #000 8%, rgba(0,0,0,.92) 52%, transparent 100%); mask-image: radial-gradient(ellipse 58% 54% at 50% 48%, #000 8%, rgba(0,0,0,.92) 52%, transparent 100%); }
.hero-fireflies::before { content: ""; position: absolute; inset: 12% 24% 4%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(var(--accent-rgb),.075), rgba(var(--accent-rgb),.018) 44%, transparent 72%); filter: blur(28px); animation: hero-aura-pulse 8s ease-in-out infinite alternate; }
.hero-fireflies i { --size: 3px; --drift-x: 14px; --drift-y: -20px; position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); border-radius: 50%; background: #fff8fb; opacity: 0; box-shadow: 0 0 6px #fff, 0 0 14px rgba(var(--accent-hot-rgb),1), 0 0 34px rgba(var(--accent-rgb),.68); animation: hero-firefly var(--duration, 6.8s) var(--delay, 0s) ease-in-out infinite; }
.hero-fireflies i:nth-child(1) { --x: 29%; --y: 18%; --size: 2px; --duration: 7.1s; --delay: -1.3s; --drift-x: 19px; }
.hero-fireflies i:nth-child(2) { --x: 67%; --y: 13%; --size: 3px; --duration: 8.3s; --delay: -5.1s; --drift-x: -17px; }
.hero-fireflies i:nth-child(3) { --x: 22%; --y: 39%; --size: 2px; --duration: 6.2s; --delay: -3.8s; --drift-y: -14px; }
.hero-fireflies i:nth-child(4) { --x: 76%; --y: 34%; --size: 2px; --duration: 7.7s; --delay: -2.2s; --drift-x: -24px; }
.hero-fireflies i:nth-child(5) { --x: 34%; --y: 54%; --size: 4px; --duration: 8.9s; --delay: -6.4s; --drift-y: -28px; }
.hero-fireflies i:nth-child(6) { --x: 63%; --y: 48%; --size: 2px; --duration: 6.5s; --delay: -4.4s; --drift-x: 22px; }
.hero-fireflies i:nth-child(7) { --x: 17%; --y: 66%; --size: 3px; --duration: 9.2s; --delay: -7.2s; --drift-x: 26px; }
.hero-fireflies i:nth-child(8) { --x: 82%; --y: 64%; --size: 3px; --duration: 7.4s; --delay: -1.8s; --drift-x: -20px; }
.hero-fireflies i:nth-child(9) { --x: 26%; --y: 82%; --size: 2px; --duration: 8.1s; --delay: -5.7s; --drift-y: -24px; }
.hero-fireflies i:nth-child(10) { --x: 72%; --y: 80%; --size: 2px; --duration: 6.9s; --delay: -3.1s; --drift-x: -15px; }
.hero-fireflies i:nth-child(11) { --x: 42%; --y: 28%; --size: 2px; --duration: 9.4s; --delay: -8.1s; --drift-x: 11px; }
.hero-fireflies i:nth-child(12) { --x: 57%; --y: 69%; --size: 3px; --duration: 7.9s; --delay: -4.9s; --drift-x: -12px; }
.hero-fireflies i:nth-child(13) { --x: 12%; --y: 49%; --size: 2px; --duration: 8.6s; --delay: -2.7s; --drift-x: 18px; }
.hero-fireflies i:nth-child(14) { --x: 88%; --y: 46%; --size: 2px; --duration: 7.2s; --delay: -6.1s; --drift-x: -21px; }
.hero-fireflies i:nth-child(15) { --x: 39%; --y: 8%; --size: 3px; --duration: 7.6s; --delay: -3.6s; --drift-x: -15px; }
.hero-fireflies i:nth-child(16) { --x: 55%; --y: 19%; --size: 4px; --duration: 8.8s; --delay: -6.8s; --drift-y: -23px; }
.hero-fireflies i:nth-child(17) { --x: 8%; --y: 29%; --size: 3px; --duration: 7.9s; --delay: -2.4s; --drift-x: 24px; }
.hero-fireflies i:nth-child(18) { --x: 93%; --y: 24%; --size: 3px; --duration: 9.1s; --delay: -7.2s; --drift-x: -20px; }
.hero-fireflies i:nth-child(19) { --x: 47%; --y: 43%; --size: 3px; --duration: 6.7s; --delay: -4.1s; --drift-y: -18px; }
.hero-fireflies i:nth-child(20) { --x: 29%; --y: 70%; --size: 4px; --duration: 8.4s; --delay: -5.3s; --drift-x: 18px; }
.hero-fireflies i:nth-child(21) { --x: 69%; --y: 58%; --size: 3px; --duration: 7.3s; --delay: -1.9s; --drift-y: -26px; }
.hero-fireflies i:nth-child(22) { --x: 5%; --y: 87%; --size: 3px; --duration: 9.3s; --delay: -8.2s; --drift-x: 19px; }
.hero-fireflies i:nth-child(23) { --x: 95%; --y: 78%; --size: 4px; --duration: 8s; --delay: -4.7s; --drift-x: -24px; }
.hero-fireflies i:nth-child(24) { --x: 52%; --y: 92%; --size: 3px; --duration: 7.5s; --delay: -2.9s; --drift-y: -21px; }
.hero-fireflies i:nth-child(4n) { background: #e9f8ff; box-shadow: 0 0 4px #fff, 0 0 11px rgba(204,236,255,.92), 0 0 26px rgba(148,215,255,.38); }
@keyframes hero-firefly { 0%, 100% { opacity: .14; transform: translate3d(0, 9px, 0) scale(.7); } 28% { opacity: 1; } 54% { opacity: .46; transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1.3); } 76% { opacity: .9; } }
@keyframes hero-aura-pulse { from { opacity: .58; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
.hero-entry { position: relative; z-index: 1; width: min(100%, 760px); margin: 0; padding: 25px 30px 24px; overflow: hidden; border: 1px solid rgba(var(--accent-hot-rgb),.15); background: radial-gradient(ellipse at 50% 0%, rgba(var(--accent-rgb),.055), transparent 54%), linear-gradient(145deg, rgba(var(--accent-rgb),.026), rgba(3,4,8,.09) 58%, rgba(204,236,255,.012)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); text-align: center; box-shadow: inset 0 0 72px rgba(var(--accent-rgb),.022), 0 24px 74px rgba(0,0,0,.24), 0 0 58px rgba(var(--accent-rgb),.035); }
.hero-entry::before, .hero-entry::after { content: ""; position: absolute; width: 72px; height: 72px; pointer-events: none; }
.hero-entry::before { top: -1px; left: -1px; border-top: 1px solid var(--accent-hot); border-left: 1px solid var(--accent-hot); box-shadow: -4px -4px 20px rgba(var(--accent-rgb),.15); }
.hero-entry::after { right: -1px; bottom: -1px; border-right: 1px solid rgba(204,236,255,.46); border-bottom: 1px solid rgba(204,236,255,.46); box-shadow: 4px 4px 20px rgba(204,236,255,.06); }
.hero-entry > * { position: relative; z-index: 1; }
.hero-promise { max-width: 600px; margin: 0 auto 22px; font-family: var(--font-signal); text-wrap: balance; }
.hero-promise-kicker { display: block; margin-bottom: 10px; color: #ff7899; font-family: ui-monospace, monospace; font-size: 9px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; text-shadow: 0 0 16px rgba(var(--accent-rgb),.52); }
.hero-promise strong { display: block; color: #fffafb; font-size: clamp(29px, 3.1vw, 40px); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; text-shadow: 0 0 5px rgba(255,255,255,.42), 0 0 23px rgba(var(--accent-rgb),.23); }
.hero-promise-copy { display: block; max-width: 570px; margin: 12px auto 0; color: #d9e6ee; font-size: clamp(15px, 1.45vw, 18px); font-weight: 300; line-height: 1.48; }
.hero-promise-copy b { color: #fff5f8; font-weight: 500; text-shadow: 0 0 14px rgba(var(--accent-hot-rgb),.34); }
.hero-promise-proof { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; color: #aebfca; font-size: 12px; line-height: 1.3; }
.hero-promise-proof i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 5px #fff, 0 0 13px rgba(var(--accent-rgb),.9); }
.hero-entry .hero-actions { justify-content: center; }
.guest-lab { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 68px; align-items: start; padding: 94px 0 82px; border-top: 1px solid var(--line); }
.guest-lab-copy { position: sticky; top: 30px; }
.guest-lab-copy h2 { margin: 16px 0 16px; color: var(--ice-strong); font-family: var(--font-signal); font-size: clamp(34px, 4.5vw, 54px); font-weight: 300; line-height: 1.03; letter-spacing: -.04em; text-shadow: 0 0 18px rgba(204,236,255,.1); }
.guest-fast-badge { display: inline-flex; align-items: center; min-height: 26px; margin: 0 0 14px; padding: 0 10px; border: 1px solid rgba(var(--accent-hot-rgb),.5); border-radius: 999px; background: rgba(var(--accent-rgb),.09); color: var(--accent-hot); font: 600 9px/1 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; box-shadow: 0 0 20px rgba(var(--accent-rgb),.08); }
.guest-lab-copy > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.guest-trial-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.guest-trial-badges > span { display: flex; align-items: center; gap: 9px; min-height: 56px; padding: 10px 12px; border: 1px solid rgba(var(--accent-hot-rgb),.24); border-radius: 10px; background: rgba(var(--accent-rgb),.05); color: var(--copy-secondary); font-size: 13px; line-height: 1.35; }
.guest-trial-badges strong { color: var(--accent-hot); font: 500 25px/1 var(--font-signal); text-shadow: 0 0 14px rgba(var(--accent-rgb),.36); }
.guest-lab-copy .guest-once-note { margin-top: 13px; color: var(--copy-tertiary); font-size: 13px; line-height: 1.55; }
.guest-quality-compare { display: grid; gap: 8px; max-width: 430px; margin-top: 18px; }
.guest-quality-compare article { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(204,236,255,.018); }
.guest-quality-compare article:first-child { border-color: rgba(var(--accent-hot-rgb),.3); background: rgba(var(--accent-rgb),.045); }
.guest-quality-compare article:last-child { border-color: rgba(204,236,255,.19); background: linear-gradient(110deg, rgba(204,236,255,.035), rgba(var(--accent-rgb),.025)); }
.guest-quality-compare article > span { color: var(--accent-hot); font: 600 8px/1.2 ui-monospace, monospace; letter-spacing: .1em; }
.guest-quality-compare article:last-child > span { color: var(--ice); }
.guest-quality-compare strong { color: var(--ice-strong); font: 500 13px/1.35 var(--font-signal); }
.guest-quality-compare small { color: var(--copy-tertiary); font-size: 11px; line-height: 1.45; }
.guest-console { min-width: 0; padding: 22px; border: 1px solid rgba(var(--accent-hot-rgb),.28); border-radius: 18px; background: radial-gradient(circle at 80% 0%, rgba(var(--accent-rgb),.09), transparent 35%), linear-gradient(150deg, rgba(10,11,17,.98), rgba(3,4,8,.98)); box-shadow: 0 34px 90px rgba(0,0,0,.56), 0 0 50px rgba(var(--accent-rgb),.06); }
.guest-console.is-exhausted { border-color: rgba(var(--accent-hot-rgb),.46); background: radial-gradient(circle at 78% 0%, rgba(var(--accent-rgb),.15), transparent 42%), linear-gradient(150deg, rgba(13,8,13,.98), rgba(3,4,8,.98)); }
#guest-preview-form > label { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; color: var(--ice); font-family: var(--font-signal); font-size: 13px; }
#guest-preview-form > label small { color: var(--faint); font: 9px/1 ui-monospace, monospace; letter-spacing: .08em; }
#guest-preview-input { display: block; width: 100%; min-height: 138px; resize: vertical; padding: 17px 18px; border: 1px solid rgba(204,236,255,.16); border-radius: 13px; outline: none; background: rgba(1,2,5,.72); color: var(--text); font-size: 14px; line-height: 1.6; box-shadow: inset 0 0 30px rgba(204,236,255,.02); transition: border-color .18s ease, box-shadow .18s ease; }
#guest-preview-input:focus { border-color: rgba(var(--accent-hot-rgb),.62); box-shadow: inset 0 0 30px rgba(var(--accent-rgb),.025), 0 0 0 3px rgba(var(--accent-rgb),.07), 0 0 26px rgba(var(--accent-rgb),.08); }
#guest-preview-input::placeholder { color: #53616d; }
.guest-examples { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.guest-examples button, .guest-inline-register { border: 1px solid var(--line); border-radius: 999px; background: rgba(204,236,255,.025); color: var(--muted); padding: 7px 11px; font-size: 10px; cursor: pointer; }
.guest-examples button:hover, .guest-inline-register:hover { border-color: rgba(var(--accent-hot-rgb),.45); color: var(--ice); background: rgba(var(--accent-rgb),.06); }
.guest-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.guest-submit-row > span { color: var(--faint); font: 9px/1 ui-monospace, monospace; }
#guest-preview-error { margin: 13px 0 0; }
.guest-inline-register { padding: 3px 8px; border-color: rgba(var(--accent-hot-rgb),.38); color: var(--accent-hot); }
.guest-result { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.guest-result-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.guest-result-mode { padding: 4px 7px; border: 1px solid rgba(var(--accent-hot-rgb),.42); border-radius: 999px; background: rgba(var(--accent-rgb),.07); color: var(--accent-hot); font: 600 7px/1 ui-monospace, monospace; letter-spacing: .1em; }
.guest-result-head strong { color: var(--ice); font-family: var(--font-signal); font-size: 12px; font-weight: 500; }
.guest-result-head small { margin-left: auto; color: var(--faint); }
.guest-result-prompt { width: fit-content; max-width: 82%; margin: 18px 0 18px auto; padding: 11px 14px; border: 1px solid rgba(204,236,255,.13); border-radius: 12px 12px 3px 12px; background: rgba(204,236,255,.045); color: #d9e8f0; font-size: 12px; line-height: 1.5; }
.guest-result-answer { color: #d5dce2; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.guest-result-answer > :first-child { margin-top: 0; }.guest-result-answer > :last-child { margin-bottom: 0; }
.guest-result-image { display: grid; gap: 9px; width: min(100%, 760px); margin: 0 auto; }
.guest-result-image img { display: block; width: 100%; max-height: 720px; object-fit: contain; border: 1px solid rgba(var(--accent-hot-rgb),.28); border-radius: 13px; background: #020305; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.guest-result-image figcaption { color: var(--faint); font-size: 10px; text-align: right; }
.image-best-effort-warning { margin: 0; border: 1px solid rgba(255, 184, 82, .34); border-radius: 10px; padding: 10px 12px; background: rgba(255, 150, 40, .075); color: #f2c58c; font-family: var(--font-ui); font-size: var(--type-helper); font-weight: 400; line-height: var(--line-helper); }
.guest-image-job-status { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 18px; border: 1px solid rgba(var(--accent-hot-rgb),.24); border-radius: 12px; background: linear-gradient(110deg, rgba(var(--accent-rgb),.08), rgba(204,236,255,.018)); }
.guest-image-job-status span { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hot); box-shadow: 0 0 16px rgba(var(--accent-hot-rgb),.85); animation: pulse 1.5s ease-in-out infinite; }
.guest-image-job-status p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.guest-coach-intro { color: #d8e3e9; }
.guest-coach-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.guest-coach-options article { grid-column: span 2; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(204,236,255,.018); }
.guest-coach-options article:nth-last-child(-n+2) { grid-column: span 3; }
.guest-coach-options article.guest-coach-option-enough { border-color: rgba(var(--accent-hot-rgb),.48); background: radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb),.15), transparent 48%), rgba(var(--accent-rgb),.045); box-shadow: inset 0 0 32px rgba(var(--accent-rgb),.045); }
.guest-coach-options article > div { display: grid; gap: 5px; }
.guest-coach-options strong { color: var(--ice); font-size: 11px; }
.guest-coach-options span { color: var(--accent-hot); font-size: 8px; line-height: 1.35; }
.guest-coach-options .coach-signature { width: fit-content; padding: 3px 5px; border: 1px solid rgba(var(--accent-hot-rgb),.42); border-radius: 4px; color: var(--accent-hot); font: 600 6px/1 ui-monospace, monospace; letter-spacing: .12em; }
.guest-coach-options p { display: -webkit-box; margin: 12px 0 0; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.guest-coach-choose { width: 100%; margin-top: 13px; padding: 9px 10px; border: 1px solid rgba(var(--accent-hot-rgb),.28); border-radius: 8px; background: rgba(var(--accent-rgb),.06); color: var(--ice); font: 9px/1.3 var(--font-signal); cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.guest-coach-choose:hover:not(:disabled) { border-color: rgba(var(--accent-hot-rgb),.62); background: rgba(var(--accent-rgb),.12); box-shadow: 0 0 20px rgba(var(--accent-rgb),.1); }
.guest-coach-choose:disabled { cursor: wait; opacity: .6; }
.guest-result-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; margin-top: 20px; padding: 16px; border: 1px solid rgba(var(--accent-hot-rgb),.26); border-radius: 12px; background: linear-gradient(110deg, rgba(var(--accent-rgb),.09), rgba(204,236,255,.02)); }
.guest-result-actions p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.guest-result-actions p strong { color: var(--ice); font-weight: 500; }
.guest-exhausted-offer { display: grid; justify-items: start; padding: 10px 8px 7px; }
.guest-exhausted-offer h3 { margin: 14px 0 9px; color: var(--ice-strong); font: 400 clamp(26px, 3.5vw, 39px)/1.08 var(--font-signal); letter-spacing: -.035em; }
.guest-exhausted-offer > p { max-width: 610px; margin: 0; color: var(--copy-secondary); font-size: 14px; line-height: 1.65; }
.guest-exhausted-offer > div { display: flex; align-items: baseline; gap: 12px; margin: 25px 0 18px; }
.guest-exhausted-offer > div strong { color: #fff5f8; font: 500 34px/1 var(--font-signal); text-shadow: 0 0 18px rgba(var(--accent-rgb),.35); }
.guest-exhausted-offer > div small { color: var(--copy-tertiary); font-size: 13px; }
@media (max-width: 700px) {
  .guest-trial-badges { grid-template-columns: 1fr; }
  .guest-exhausted-offer > .button { width: 100%; }
}
.capabilities-showcase { padding: 0 0 112px; }
.capabilities-showcase > header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); column-gap: 40px; align-items: end; margin-bottom: 37px; }
.capabilities-showcase > header .section-kicker { grid-column: 1 / -1; margin-bottom: 14px; }
.capabilities-showcase > header h2 { margin: 0; color: var(--ice-strong); font: 300 clamp(34px, 4vw, 50px)/1.06 var(--font-signal); letter-spacing: -.04em; }
.capabilities-showcase > header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.capabilities-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capabilities-grid article { min-height: 230px; padding: 25px 23px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(var(--accent-rgb),.025), rgba(204,236,255,.01)); }
.capabilities-grid article:hover { background: linear-gradient(145deg, rgba(var(--accent-rgb),.065), rgba(204,236,255,.018)); }
.capabilities-grid span { color: var(--accent-hot); font: 600 8px/1 ui-monospace, monospace; letter-spacing: .13em; }
.capabilities-grid h3 { margin: 29px 0 11px; color: var(--ice-strong); font: 400 18px/1.2 var(--font-signal); }
.capabilities-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.hero-signal { position: relative; z-index: 1; width: min(100%, 440px); aspect-ratio: .78; padding: 21px; border: 1px solid rgba(var(--accent-hot-rgb),.17); background: linear-gradient(150deg, rgba(var(--accent-rgb),.035), rgba(3,4,8,.15) 46%, rgba(204,236,255,.02)); box-shadow: inset 0 0 70px rgba(var(--accent-rgb),.035), 0 0 80px rgba(var(--accent-rgb),.045); animation: manifesto-enter .8s .12s ease both; }
.hero-signal::before, .hero-signal::after { content: ""; position: absolute; width: 62px; height: 62px; pointer-events: none; }
.hero-signal::before { top: -1px; left: -1px; border-top: 1px solid var(--accent-hot); border-left: 1px solid var(--accent-hot); box-shadow: -4px -4px 20px rgba(var(--accent-rgb),.16); }
.hero-signal::after { right: -1px; bottom: -1px; border-right: 1px solid rgba(204,236,255,.55); border-bottom: 1px solid rgba(204,236,255,.55); box-shadow: 4px 4px 20px rgba(204,236,255,.08); }
.hero-signal-meta { display: flex; justify-content: space-between; gap: 18px; color: var(--faint); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .12em; }
.hero-signal-meta span:last-child { color: rgba(var(--accent-hot-rgb),.62); text-align: right; }
.hero-signal-mark { position: absolute; inset: 15% 15% 18%; }
.hero-signal-mark::before { content: ""; display: block; width: 100%; height: 100%; background: url("/static/enough-e.svg") center / contain no-repeat; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px var(--accent)) drop-shadow(0 0 18px rgba(var(--accent-rgb),.68)) drop-shadow(0 0 52px rgba(var(--accent-rgb),.18)); }
.hero-signal-line { position: absolute; left: 21px; right: 21px; bottom: 62px; height: 1px; background: linear-gradient(90deg, var(--accent-hot), rgba(var(--accent-hot-rgb),.08) 48%, rgba(204,236,255,.38)); box-shadow: 0 0 10px rgba(var(--accent-rgb),.2); }
.hero-signal-words { position: absolute; left: 21px; right: 21px; bottom: 26px; display: flex; justify-content: space-between; color: var(--muted); font-family: var(--font-signal); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
@keyframes manifesto-enter { from { opacity: 0; transform: translateY(18px); } }

.manifesto-ticker { margin-top: 52px; overflow: hidden; border-top: 1px solid rgba(var(--accent-hot-rgb),.22); border-bottom: 1px solid rgba(204,236,255,.1); background: rgba(var(--accent-rgb),.025); }
.manifesto-ticker > div { min-width: max-content; display: flex; align-items: center; justify-content: center; gap: clamp(22px, 4vw, 62px); min-height: 54px; padding: 0 28px; color: #b7c6d0; font-family: var(--font-signal); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.manifesto-ticker i { color: var(--accent-hot); font-style: normal; text-shadow: var(--red-glow); }
.manifesto-ticker.hero-manifesto-ticker { margin: 22px auto 0; }
.hero-manifesto-ticker > div { width: 100%; min-width: 0; justify-content: center; gap: clamp(10px, 3vw, 62px); padding-inline: clamp(8px, 2vw, 28px); font-size: clamp(7px, 1vw, 10px); white-space: nowrap; }

.manifesto { padding: 44px 0 118px; }
.manifesto-header { width: 100%; max-width: none; margin: 0 auto 58px; text-align: center; }
.manifesto-header h2, .product-story h2 { margin: 17px 0 18px; color: var(--ice-strong); font-family: var(--font-signal); font-size: clamp(38px, 4.6vw, 61px); font-weight: 300; line-height: .98; letter-spacing: -.045em; text-shadow: 0 0 18px rgba(204,236,255,.1); }
.manifesto-header p { width:100%; max-width:none; margin:0 auto; color:var(--muted); font-size:14px; line-height:1.7; text-align:center; }
.manifesto-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto-list article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; min-height: 310px; padding: 36px 30px 40px; }
.manifesto-list article + article { border-left: 1px solid var(--line); }
.manifesto-number { padding-top: 4px; color: var(--accent-hot); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .15em; text-shadow: 0 0 12px rgba(var(--accent-rgb),.65); }
.manifesto-copy { min-width: 0; }
.manifesto-label { color: var(--faint); font-family: var(--font-signal); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.manifesto-copy blockquote { max-width: 720px; margin: 16px 0 18px; color: #eff8fd; font-family: var(--font-signal); font-size: clamp(24px, 2.25vw, 31px); font-weight: 300; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.manifesto-list article:nth-child(2) blockquote { color: #fff4f7; text-shadow: 0 0 4px rgba(255,255,255,.45), 0 0 20px rgba(var(--accent-rgb),.2); }
.manifesto-copy p { max-width: 610px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.landing-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }
.landing-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 24px; }
.landing-footer a { color: var(--muted); text-decoration: none; transition: color .18s ease, text-shadow .18s ease; }
.landing-footer a:hover { color: var(--ice-strong); text-shadow: var(--ice-glow); }

.product-story { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: clamp(48px, 8vw, 110px); padding: 104px 0 118px; border-top: 1px solid var(--line); }
.product-story-copy p { max-width: 390px; margin: 0 0 27px; color: var(--muted); font-size: 14px; line-height: 1.72; }
.product-story-copy .button span { margin-left: 18px; }

.legal-card a:not(.button) { color: var(--muted); text-decoration: none; transition: color .2s ease, text-shadow .2s ease; }
.legal-card a:not(.button):hover { color: var(--ice); text-shadow: var(--ice-glow); }

.legal-page { display: flex; flex-direction: column; min-height: 100vh; }
.legal-nav { width: min(920px, calc(100% - 48px)); margin-inline: auto; }
.legal-shell { display: grid; place-items: center; width: min(920px, calc(100% - 48px)); min-height: calc(100vh - 90px); margin-inline: auto; padding: 54px 0 90px; }
.legal-card { width: min(720px, 100%); padding: clamp(28px, 5vw, 56px); border: 1px solid rgba(var(--accent-hot-rgb),.3); border-radius: 18px; background: linear-gradient(145deg, rgba(10,12,18,.96), rgba(3,4,8,.98)); box-shadow: var(--shadow), 0 0 42px rgba(var(--accent-rgb),.08); }
.legal-card h1 { margin: 0; color: var(--ice-strong); font-family: var(--font-signal); font-size: clamp(38px, 7vw, 58px); font-weight: 300; letter-spacing: -.035em; text-shadow: 0 0 18px rgba(204,236,255,.12); }
.legal-intro { margin: 17px 0 34px; color: var(--muted); line-height: 1.65; }
.legal-meta { margin: -20px 0 34px; color: var(--faint); font-size: 11px; }
.legal-document { color: var(--muted); font-size: 14px; line-height: 1.72; }
.legal-document h2 { margin: 34px 0 12px; color: var(--ice-strong); font-family: var(--font-signal); font-size: 22px; font-weight: 400; }
.legal-document h3 { margin: 24px 0 10px; color: #d7e9f3; font-size: 14px; font-weight: 500; }
.legal-document p { margin: 10px 0; }
.legal-document ul, .legal-document ol { margin: 10px 0; padding-left: 22px; }
.legal-document li + li { margin-top: 7px; }
.legal-details { margin: 28px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(204,236,255,.025); }
.legal-details p { margin: 4px 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 13px 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.support-contact { display: grid; gap: 7px; margin-bottom: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(204,236,255,.025); }
.support-contact > span { color: var(--faint); font-size: 11px; }
.support-contact > a { width: fit-content; color: var(--ice-strong) !important; font-family: var(--font-signal); font-size: clamp(19px, 4vw, 25px); overflow-wrap: anywhere; }
.support-contact > small { color: var(--muted); line-height: 1.5; }
.legal-back { display: inline-block; margin-top: 32px; text-decoration: none; }

.product-preview { position: relative; min-width: 0; background: linear-gradient(150deg, rgba(12,14,21,.97), rgba(3,4,8,.99)); border: 1px solid rgba(var(--accent-hot-rgb),.42); border-radius: 16px; overflow: hidden; box-shadow: 0 35px 100px rgba(0,0,0,.7), 0 0 0 1px rgba(204,236,255,.05), 0 0 36px rgba(var(--accent-rgb),.12), -12px 12px 54px rgba(204,236,255,.045); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.product-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(var(--accent-rgb),.05), transparent 32%, transparent 68%, rgba(204,236,255,.035)); }
.product-preview.demo-focus { animation: preview-focus 1.15s ease; }
@keyframes preview-focus {
  45% { border-color: var(--accent-hot); box-shadow: 0 35px 100px rgba(0,0,0,.65), 0 0 0 4px rgba(var(--accent-rgb),.09), var(--red-glow); }
}
.preview-topbar { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.window-dots { display: flex; gap: 5px; }
.window-dots span { width: 7px; height: 7px; background: #303541; border-radius: 50%; }.window-dots span:first-child { background: var(--accent); box-shadow: 0 0 8px rgba(var(--accent-rgb),.75); }.window-dots span:last-child { background: var(--ice); box-shadow: 0 0 8px rgba(204,236,255,.45); }
.preview-plan { justify-self: end; color: var(--accent-hot); font-weight: 500; font-size: 9px; letter-spacing: .15em; text-shadow: 0 0 10px rgba(var(--accent-rgb),.7); }
.preview-body { min-height: 430px; display: grid; grid-template-columns: 58px 1fr; }
.preview-sidebar { border-right: 1px solid var(--line); padding: 14px 11px; display: flex; flex-direction: column; align-items: center; gap: 17px; }
.preview-logo, .mini-mark { display: grid; place-items: center; color: transparent; font-size: 0; }
.preview-logo { width: 30px; height: 30px; }
.preview-sidebar i { width: 17px; height: 4px; border-radius: 4px; background: #2c313b; }
.preview-chat { padding: 52px 32px 22px; position: relative; display: flex; flex-direction: column; gap: 20px; }
.preview-date { color: var(--faint); font-size: 8px; text-align: center; letter-spacing: .15em; }
.preview-message { font-size: 11px; line-height: 1.55; }
.preview-user { align-self: flex-end; width: 74%; border: 1px solid rgba(204,236,255,.13); background: rgba(204,236,255,.055); padding: 12px 14px; border-radius: 12px 12px 3px 12px; color: #dceef8; }
.preview-ai { display: flex; gap: 11px; width: 88%; color: #aeb4be; }
.preview-ai strong { color: #e7e9ec; font-size: 12px; }
.preview-ai p { margin: 5px 0 12px; }
.mini-mark { flex: 0 0 27px; width: 27px; height: 27px; }
.preview-lines { display: grid; gap: 5px; }
.preview-lines i { height: 4px; background: #292e37; border-radius: 4px; }
.preview-lines i:nth-child(2) { width: 88%; }.preview-lines i:nth-child(3) { width: 63%; }
.preview-composer { margin-top: auto; height: 45px; border: 1px solid rgba(204,236,255,.2); border-radius: 10px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px 0 14px; color: var(--faint); font-size: 10px; box-shadow: inset 0 0 22px rgba(204,236,255,.025); }
.preview-composer b { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--accent-hot); border-radius: 7px; background: rgba(var(--accent-rgb),.14); color: white; font-size: 15px; box-shadow: 0 0 13px rgba(var(--accent-rgb),.35); }

.features { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-bottom: 112px; }
.features article { padding: 42px 36px 0 0; }
.features article + article { border-left: 1px solid var(--line); padding-left: 36px; }
.features span { color: var(--accent-hot); font-family: var(--font-signal); font-size: 10px; letter-spacing: .18em; text-shadow: 0 0 11px rgba(var(--accent-rgb),.72); }
.features h2 { color: var(--ice-strong); font-family: var(--font-signal); font-size: 22px; font-weight: 300; letter-spacing: -.015em; margin: 18px 0 10px; text-shadow: 0 0 14px rgba(204,236,255,.12); }.features p { color: var(--muted); line-height: 1.65; font-size: 14px; max-width: 310px; }

.ecosystem { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; padding: 94px 0 112px; border-top: 1px solid var(--line); }
.section-kicker { color: var(--accent-hot); font-family: var(--font-signal); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 0 11px rgba(var(--accent-rgb),.72); }
.ecosystem h2 { margin: 16px 0 12px; color: var(--ice-strong); font-family: var(--font-signal); font-size: clamp(28px, 4vw, 42px); font-weight: 300; letter-spacing: -.035em; text-shadow: 0 0 16px rgba(204,236,255,.1); }
.ecosystem-copy p { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.ecosystem-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ecosystem-links a, .ecosystem-pack-card { min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(var(--accent-rgb),.045), rgba(204,236,255,.018)); color: var(--text); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ecosystem-links a:hover { transform: translateY(-2px); border-color: rgba(var(--accent-hot-rgb),.44); box-shadow: 0 0 28px rgba(var(--accent-rgb),.07); }
.ecosystem-links span { color: var(--faint); font-size: 11px; }
.ecosystem-links strong { color: var(--ice-strong); font-family: var(--font-signal); font-size: 17px; font-weight: 400; text-shadow: 0 0 11px rgba(204,236,255,.12); }

html:has(#app-view:not(.hidden)),
body:has(#app-view:not(.hidden)) {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
.app-shell { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 270px 1fr; background: #020306; }
.app-sidebar { display: flex; flex-direction: column; padding: 22px 16px 16px; background: linear-gradient(180deg, #07080c, #030407); border-right: 1px solid rgba(var(--accent-rgb),.18); min-width: 0; box-shadow: 12px 0 55px rgba(var(--accent-rgb),.025); }
.sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 0 5px 20px; }
.sidebar-brand-stack { display: grid; gap: 6px; min-width: 0; }
.sidebar-brand-cluster { display: inline-flex; align-items: center; min-width: 0; }
.sidebar-brand-cluster > .version-badge { position: relative; top: -5px; margin-left: 8px; }
.brand-compact { gap: 6px; }
.brand-compact .brand-mark { width: 31px; height: 31px; }
.brand-demo-hint {
  position: relative;
  top: -5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px 3px 5px;
  border: 1px solid rgba(var(--accent-hot-rgb),.22);
  border-radius: 999px;
  background: rgba(var(--accent-rgb),.055);
  color: rgba(204,236,255,.55);
  font: 500 8px/1 var(--font-signal);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 0 10px rgba(var(--accent-rgb),.025), 0 0 12px rgba(var(--accent-rgb),.06);
  text-shadow: 0 0 10px rgba(var(--accent-rgb),.16);
  animation: sidebar-logo-hint 3.4s ease-in-out infinite;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, text-shadow .2s ease;
}
.brand-demo-hint::before {
  content: "←";
  color: var(--accent-hot);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(var(--accent-rgb),.46);
}
.brand-compact:is(:hover, :focus-visible) .brand-demo-hint {
  border-color: rgba(var(--accent-hot-rgb),.52);
  background: rgba(var(--accent-rgb),.12);
  color: var(--ice);
  box-shadow: inset 0 0 12px rgba(var(--accent-rgb),.06), 0 0 14px rgba(var(--accent-rgb),.14);
  text-shadow: 0 0 8px rgba(204,236,255,.28);
}
@keyframes sidebar-logo-hint {
  0%, 100% { opacity: .42; }
  50% { opacity: .82; }
}
.visual-gallery-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  padding: 3px 7px 3px 0;
  border-radius: 7px;
  color: var(--copy-tertiary);
  text-decoration: none;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.visual-gallery-brand-mark {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 23px;
  flex: 0 0 31px;
  color: #f6fbff;
  font: 700 11px/1 "Quantico", ui-monospace, monospace;
  letter-spacing: -.04em;
  text-shadow: 0 0 5px #fff, 0 0 9px rgba(var(--accent-rgb),.72);
}
.visual-gallery-brand-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(var(--accent-hot-rgb),.58);
  border-radius: 5px 7px 5px 7px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(var(--accent-hot-rgb),.11) 50%, transparent 51%),
    linear-gradient(0deg, transparent 48%, rgba(var(--accent-hot-rgb),.09) 49%, transparent 51%),
    rgba(var(--accent-rgb),.075);
  box-shadow: inset 0 0 9px rgba(var(--accent-rgb),.09), 0 0 9px rgba(var(--accent-rgb),.14);
  transform: skewX(-5deg);
}
.visual-gallery-brand-mark::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 6px rgba(var(--accent-rgb),.85);
}
.visual-gallery-brand-copy {
  overflow: hidden;
  color: inherit;
  font: 500 var(--type-caption)/1.15 var(--font-signal);
  letter-spacing: .035em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.visual-gallery-brand-link:is(:hover, :focus-visible) {
  color: var(--ice-strong);
  background: rgba(var(--accent-rgb),.075);
  box-shadow: 0 0 16px rgba(var(--accent-rgb),.08);
}
.visual-gallery-brand-link:is(:hover, :focus-visible) .visual-gallery-brand-mark::before {
  border-color: rgba(var(--accent-hot-rgb),.9);
  background:
    linear-gradient(90deg, transparent 49%, rgba(var(--accent-hot-rgb),.17) 50%, transparent 51%),
    linear-gradient(0deg, transparent 48%, rgba(var(--accent-hot-rgb),.14) 49%, transparent 51%),
    rgba(var(--accent-rgb),.14);
  box-shadow: inset 0 0 11px rgba(var(--accent-rgb),.15), 0 0 13px rgba(var(--accent-rgb),.28);
}
.new-chat-button { border: 1px solid rgba(204,236,255,.18); background: rgba(204,236,255,.035); border-radius: 9px; padding: 11px 13px; text-align: left; font-family: var(--font-ui); font-size: 13px; font-weight: 500; cursor: pointer; }
.new-chat-button:hover { border-color: rgba(var(--accent-hot-rgb),.5); background: rgba(var(--accent-rgb),.07); box-shadow: 0 0 20px rgba(var(--accent-rgb),.08); }.new-chat-button span { margin-right: 9px; color: var(--accent-hot); text-shadow: 0 0 10px rgba(var(--accent-rgb),.7); }
.new-chat-button.at-limit { border-color: rgba(204,236,255,.1); color: var(--muted); }
.workspace-switch { display: grid; gap: 5px; margin-bottom: 12px; padding: 4px; border: 1px solid rgba(204,236,255,.1); border-radius: 11px; background: rgba(0,0,0,.24); }
.workspace-switch :is(button,a) { display: grid; grid-template-columns: 16px minmax(0,1fr) auto; align-items: center; column-gap: 9px; width: 100%; border: 1px solid transparent; border-radius: 8px; padding: 10px 11px; background: transparent; color: #74818b; text-align: left; text-decoration: none; font: 500 11px/1.2 var(--font-ui); cursor: pointer; }
.workspace-switch :is(button,a) > span:first-child { display: grid; place-items: center; width: 16px; height: 25px; color: #68737d; line-height: 1; text-align: center; }
.workspace-switch :is(button,a) > i { align-self: center; justify-self: start; margin: 0; }
.workspace-switch :is(button,a):is(:hover,.active) { border-color: rgba(var(--accent-hot-rgb),.25); background: linear-gradient(110deg, rgba(var(--accent-rgb),.11), rgba(204,236,255,.025)); color: var(--ice-strong); box-shadow: inset 0 0 18px rgba(var(--accent-rgb),.04); }
.workspace-switch :is(button,a).active > span:first-child { color: var(--accent-hot); text-shadow: 0 0 10px rgba(var(--accent-rgb),.6); }
.workspace-switch button:disabled { cursor: not-allowed; opacity: .66; }
.workspace-switch button:disabled:is(:hover,.active) { border-color: transparent; background: transparent; color: #74818b; box-shadow: none; }
.workspace-switch button:disabled .workspace-motion-label { width: 130px; }
.workspace-unavailable { justify-self: end; width: 72px; color: var(--accent-hot); font: 700 8px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .035em; text-align: right; white-space: normal; }
.workspace-dialogs-label { display: block; width: 92px; height: 25px; flex: 0 0 auto; color: inherit; background: currentColor; font-size: 0; -webkit-mask: url("/static/fonts/brand/dialogs-catacombs-outline.svg?v=20260809-2") left center / contain no-repeat; mask: url("/static/fonts/brand/dialogs-catacombs-outline.svg?v=20260809-2") left center / contain no-repeat; }
.workspace-visual-label { display: block; width: 92px; height: 25px; background: currentColor; -webkit-mask: url("/static/fonts/brand/visual-lab-outhouse-alternate-outline.svg?v=20260813-1") 1px center / contain no-repeat; mask: url("/static/fonts/brand/visual-lab-outhouse-alternate-outline.svg?v=20260813-1") 1px center / contain no-repeat; }
.workspace-motion-label { display: flex; align-items: center; box-sizing: border-box; width: 92px; height: 25px; padding-left: 2px; color: inherit; font: 400 27px/.78 "Enough Motion Display", var(--font-signal); font-style: normal; letter-spacing: .035em; text-transform: uppercase; text-shadow: 0 0 8px rgba(var(--accent-rgb),.28); transform: scaleX(1.42); transform-origin: left center; }
.workspace-control-label { display: flex; align-items: center; width: 92px; height: 25px; color: inherit; font: 700 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.visual-project-nav { display: none; min-height: 0; }
.visual-project-list-block { display: grid; gap: 3px; min-height: 0; margin-top: 18px; }
.app-shell.visual-lab-mode .visual-project-nav { display: grid; }
.app-shell.visual-lab-mode.personal-gallery-mode .visual-project-nav { display: none; }
.app-shell.visual-lab-mode #new-chat, .app-shell.visual-lab-mode .app-nav { display: none; }
.app-nav { display: grid; gap: 3px; margin-top: 18px; min-height: 0; }
.conversation-list-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 8px; color: var(--faint); font: 700 8px/1.2 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.conversation-list-head small { font: inherit; letter-spacing: .05em; }
.conversation-list { display: grid; gap: 4px; max-height: min(38vh, 340px); overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #353b47 transparent; }
.conversation-item { display: grid; grid-template-columns: minmax(0, 1fr) 23px 23px; align-items: center; gap: 2px; border: 1px solid transparent; border-radius: 9px; background: transparent; }
.conversation-item.active { border-color: rgba(var(--accent-hot-rgb),.22); background: rgba(var(--accent-rgb),.055); }
.conversation-select { min-width: 0; border: 0; background: transparent; padding: 10px 4px 10px 11px; color: var(--muted); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-ui); font-size: 12px; font-weight: 500; }
.conversation-item.active .conversation-select, .conversation-select:hover { color: var(--text); }
.conversation-action { width: 23px; height: 27px; border: 0; border-radius: 6px; background: transparent; color: transparent; cursor: pointer; font-size: 14px; padding: 0; }
.conversation-item:hover .conversation-action, .conversation-item:focus-within .conversation-action { color: var(--faint); }
.conversation-rename:hover { color: var(--ice) !important; background: rgba(204,236,255,.07); }
.conversation-delete:hover { color: var(--accent-hot) !important; background: rgba(var(--accent-rgb),.08); }
.conversation-title-input { min-width: 0; width: auto; margin: 4px 2px 4px 6px; padding: 6px 6px; border: 1px solid rgba(var(--accent-hot-rgb),.5); border-radius: 6px; outline: none; color: var(--text); background: #08090e; font: inherit; font-size: 12px; box-shadow: 0 0 13px rgba(var(--accent-rgb),.09); }
.conversation-item.renaming .conversation-action { visibility: hidden; }
@media (hover: none) { .conversation-action { color: var(--faint); } }
.nav-item { display: block; width: 100%; border: 0; background: transparent; color: var(--muted); padding: 10px 12px; text-align: left; border-radius: 9px; cursor: pointer; text-decoration: none; font-size: 13px; }
.nav-item span { display: inline-block; width: 25px; color: var(--faint); }.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.05); color: var(--text); }
.sidebar-spacer { flex: 1; }
.plan-card { background: linear-gradient(145deg, rgba(var(--accent-rgb),.1), rgba(204,236,255,.025)); border: 1px solid rgba(var(--accent-hot-rgb),.28); border-radius: 12px; padding: 15px; margin: 14px 0; box-shadow: inset 0 0 28px rgba(var(--accent-rgb),.025), 0 0 26px rgba(var(--accent-rgb),.045); }
.plan-card-head { display: flex; gap: 8px; align-items: center; font-family: var(--font-signal); font-size: 13px; }.spark { color: var(--accent); }
.plan-card p { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 9px 0 13px; }
.plan-card-actions { display: grid; gap: 7px; }
.plan-card-actions .button { width: 100%; }
.personal-gallery-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 9px; }
.personal-gallery-nav button { display: grid; align-content: center; justify-items: start; gap: 9px; min-width: 0; min-height: 72px; border: 1px solid rgba(204,236,255,.16); border-radius: 11px; padding: 13px 14px; background: rgba(204,236,255,.035); color: #a8bac5; text-align: left; cursor: pointer; }
.personal-gallery-nav button span { color: var(--accent-hot); font-size: 18px; line-height: 1; text-shadow: 0 0 11px rgba(var(--accent-rgb),.62); }
.personal-gallery-nav button strong { overflow: hidden; max-width: 100%; font: 550 12px/1.25 var(--font-signal); text-overflow: ellipsis; white-space: nowrap; }
.personal-gallery-nav button:is(:hover,.active) { border-color: rgba(var(--accent-hot-rgb),.42); background: linear-gradient(110deg, rgba(var(--accent-rgb),.12), rgba(204,236,255,.025)); color: var(--ice-strong); box-shadow: inset 0 0 16px rgba(var(--accent-rgb),.04); }
.user-card { display: flex; align-items: center; width: 100%; border: 0; background: transparent; padding: 10px 7px; border-radius: 10px; cursor: pointer; text-align: left; }
.user-card:hover { background: rgba(255,255,255,.04); }
.user-notification-badge { display: grid; place-items: center; min-width: 20px; height: 20px; margin-right: 8px; padding: 0 5px; border: 1px solid rgba(var(--accent-hot-rgb),.55); border-radius: 999px; background: rgba(var(--accent-rgb),.16); color: var(--ice-strong); font: 700 8px/1 ui-monospace, monospace; box-shadow: 0 0 15px rgba(var(--accent-rgb),.2); }
.avatar { position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; overflow: hidden; border: 1px solid rgba(204,236,255,.3); border-radius: 50%; background: rgba(204,236,255,.06); color: var(--ice); font-weight: 500; text-transform: uppercase; box-shadow: 0 0 14px rgba(204,236,255,.08); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.has-photo { border-color: rgba(var(--accent-hot-rgb),.48); box-shadow: 0 0 18px rgba(var(--accent-rgb),.16); }
.user-card-copy { display: grid; gap: 2px; margin: 0 auto 0 9px; min-width: 0; }.user-card-copy strong { font-family: var(--font-ui); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.user-card-copy small { color: var(--faint); font-size: 10px; }

.chat-panel { --composer-safe-space: 180px; min-width: 0; min-height: 0; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; height: 100%; background: radial-gradient(circle at 72% 18%, rgba(var(--accent-rgb),.035), transparent 30%), radial-gradient(circle at 25% 78%, rgba(204,236,255,.025), transparent 32%), #06070b; }
.visual-lab-panel { position: relative; z-index: 1; isolation: isolate; min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: radial-gradient(circle at 18% 12%, rgba(var(--accent-rgb),.075), transparent 28%), radial-gradient(circle at 85% 82%, rgba(204,236,255,.035), transparent 34%), #040509; }
.lab-atmosphere { display: none; position: fixed; inset: 0; z-index: 0; overflow: visible; pointer-events: none; }
.app-shell.visual-prompt-mode > .lab-atmosphere { display: block; }
.lab-atmosphere::before { content: ""; position: absolute; inset: 0; opacity: .055; background-image: linear-gradient(rgba(204,236,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(204,236,255,.035) 1px, transparent 1px); background-size: 54px 54px; -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); }
.lab-atmosphere > i { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .08; background: var(--accent-hot); }
.lab-atmosphere > i:nth-child(1) { left: -190px; top: -180px; }.lab-atmosphere > i:nth-child(2) { right: -210px; bottom: -180px; opacity: .04; background: #bdeaff; }.lab-atmosphere > i:nth-child(3) { left: 48%; top: 40%; width: 240px; height: 240px; opacity: .025; }
.lab-starfield { position: absolute; z-index: 1; inset: 0; overflow: visible; pointer-events: none; }
.lab-starfield span { --size: 3px; --drift-x: 12px; --drift-y: -16px; position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); border-radius: 50%; background: #fff8fb; opacity: .48; mix-blend-mode: screen; box-shadow: 0 0 6px #fff, 0 0 14px rgba(var(--accent-hot-rgb),1), 0 0 34px rgba(var(--accent-rgb),.68); animation: lab-star-twinkle var(--duration, 8s) var(--delay, 0s) ease-in-out infinite; }
.lab-starfield span:nth-child(1) { --x: 7%; --y: 17%; --size: 3px; --duration: 7.4s; --delay: -1.8s; --drift-x: 19px; }
.lab-starfield span:nth-child(2) { --x: 22%; --y: 8%; --size: 4px; --duration: 8.7s; --delay: -5.2s; --drift-y: -24px; }
.lab-starfield span:nth-child(3) { --x: 41%; --y: 21%; --size: 3px; --duration: 6.8s; --delay: -3.1s; --drift-x: -17px; }
.lab-starfield span:nth-child(4) { --x: 63%; --y: 10%; --size: 3px; --duration: 9.1s; --delay: -6.4s; --drift-y: -18px; }
.lab-starfield span:nth-child(5) { --x: 86%; --y: 19%; --size: 4px; --duration: 8.2s; --delay: -2.5s; --drift-x: -21px; }
.lab-starfield span:nth-child(6) { --x: 96%; --y: 35%; --size: 3px; --duration: 7.8s; --delay: -4.7s; --drift-y: -22px; }
.lab-starfield span:nth-child(7) { --x: 13%; --y: 39%; --size: 3px; --duration: 9.3s; --delay: -7.2s; --drift-x: 23px; }
.lab-starfield span:nth-child(8) { --x: 31%; --y: 34%; --size: 4px; --duration: 7.1s; --delay: -2.2s; --drift-y: -17px; }
.lab-starfield span:nth-child(9) { --x: 52%; --y: 43%; --size: 3px; --duration: 8.9s; --delay: -5.9s; --drift-x: 16px; }
.lab-starfield span:nth-child(10) { --x: 76%; --y: 38%; --size: 3px; --duration: 7.6s; --delay: -3.7s; --drift-y: -25px; }
.lab-starfield span:nth-child(11) { --x: 4%; --y: 59%; --size: 4px; --duration: 8.4s; --delay: -6.8s; --drift-x: 20px; }
.lab-starfield span:nth-child(12) { --x: 24%; --y: 66%; --size: 3px; --duration: 7.3s; --delay: -1.5s; --drift-y: -19px; }
.lab-starfield span:nth-child(13) { --x: 46%; --y: 58%; --size: 4px; --duration: 9.4s; --delay: -4.3s; --drift-x: -18px; }
.lab-starfield span:nth-child(14) { --x: 68%; --y: 69%; --size: 3px; --duration: 7.9s; --delay: -7.1s; --drift-y: -20px; }
.lab-starfield span:nth-child(15) { --x: 90%; --y: 61%; --size: 3px; --duration: 8.6s; --delay: -2.9s; --drift-x: -22px; }
.lab-starfield span:nth-child(16) { --x: 15%; --y: 88%; --size: 3px; --duration: 7.2s; --delay: -5.4s; --drift-y: -16px; }
.lab-starfield span:nth-child(17) { --x: 57%; --y: 89%; --size: 4px; --duration: 9.2s; --delay: -3.4s; --drift-x: 18px; }
.lab-starfield span:nth-child(18) { --x: 83%; --y: 91%; --size: 3px; --duration: 8.1s; --delay: -6.1s; }
.lab-starfield span:nth-child(19) { --x: 17%; --y: 27%; --size: 3px; --duration: 8.4s; --delay: -2.3s; }
.lab-starfield span:nth-child(20) { --x: 36%; --y: 5%; --size: 4px; --duration: 7.3s; --delay: -5.6s; }
.lab-starfield span:nth-child(21) { --x: 72%; --y: 15%; --size: 3px; --duration: 9.1s; --delay: -3.2s; }
.lab-starfield span:nth-child(22) { --x: 94%; --y: 48%; --size: 4px; --duration: 8.7s; --delay: -6.4s; }
.lab-starfield span:nth-child(23) { --x: 60%; --y: 30%; --size: 3px; --duration: 7.6s; --delay: -1.7s; }
.lab-starfield span:nth-child(24) { --x: 2%; --y: 78%; --size: 3px; --duration: 9.3s; --delay: -4.5s; }
.lab-starfield span:nth-child(25) { --x: 39%; --y: 76%; --size: 4px; --duration: 8.2s; --delay: -7.1s; }
.lab-starfield span:nth-child(26) { --x: 74%; --y: 82%; --size: 3px; --duration: 7.8s; --delay: -2.8s; }
.lab-starfield span:nth-child(27) { --x: 7%; --y: 96%; --size: 4px; --duration: 8.8s; --delay: -5.3s; }
.lab-starfield span:nth-child(28) { --x: 98%; --y: 5%; --size: 3px; --duration: 7.5s; --delay: -3.8s; }
@keyframes lab-star-twinkle { 0%, 100% { opacity: .42; transform: translate3d(0, 0, 0) scale(.86); } 36% { opacity: 1; transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1.28); } 68% { opacity: .58; transform: translate3d(0, var(--drift-y), 0) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .lab-starfield span { animation: lab-star-twinkle var(--duration, 8s) var(--delay, 0s) ease-in-out infinite !important; animation-duration: var(--duration, 8s) !important; } }
.lab-header { position: relative; z-index: 1; min-height: 160px; display: grid; grid-template-columns: minmax(44px,1fr) auto minmax(44px,1fr); align-items: center; gap: 20px; padding: 22px 34px; border-bottom: 1px solid rgba(204,236,255,.1); background: linear-gradient(90deg, rgba(var(--accent-rgb),.035), rgba(4,5,9,.78)); }
.lab-header > div { grid-column: 2; display: grid; min-width: 0; justify-items: center; text-align: center; }.lab-header > .menu-button { grid-column: 1; grid-row: 1; justify-self: start; }.lab-header h1 { margin: 5px 0 3px; color: var(--ice-strong); font: 400 25px/1.08 var(--font-signal); letter-spacing: -.02em; }.lab-header p { max-width: 820px; margin: 0; color: #73828d; font-size: 11px; }
.personal-gallery-wordmark { color: var(--ice-strong); font: 500 clamp(22px,3vw,31px)/1 var(--font-signal); letter-spacing: -.025em; text-shadow: 0 0 16px rgba(204,236,255,.14); }
.motion-lab-wordmark { color: var(--accent-hot); font: 400 clamp(82px,8vw,110px)/.82 "Enough Motion Display", var(--font-signal); letter-spacing: .025em; text-transform: uppercase; background: linear-gradient(105deg, var(--ice-strong) 5%, var(--accent-hot) 34%, rgb(var(--accent-rgb)) 58%, var(--ice) 80%, var(--accent-hot) 96%); background-size: 230% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: .3px rgba(255,255,255,.32); filter: drop-shadow(0 0 7px rgba(var(--accent-hot-rgb),.64)) drop-shadow(0 0 22px rgba(var(--accent-rgb),.2)); animation: motion-wordmark-flow 7s ease-in-out infinite alternate; }
@keyframes motion-wordmark-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lab-kicker, .lab-results-head span { color: var(--accent-hot); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .17em; text-transform: uppercase; text-shadow: 0 0 11px rgba(var(--accent-rgb),.52); }
.lab-runtime-status { grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; justify-self: end; gap: 8px; padding: 8px 11px; border: 1px solid rgba(104,255,186,.16); border-radius: 999px; background: rgba(49,151,111,.055); color: #88af9d; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.lab-runtime-status i { width: 6px; height: 6px; border-radius: 50%; background: #62f0ad; box-shadow: 0 0 10px #62f0ad; }
.lab-workspace { display: grid; grid-template-columns: minmax(460px, 520px) minmax(0, 1fr); height: calc(100vh - 160px); }
.lab-workspace.gallery-mode { grid-template-columns: minmax(0, 1fr); }
.lab-controls { min-width: 0; overflow-y: auto; padding: 24px; border-right: 1px solid rgba(204,236,255,.1); background: rgba(4,5,9,.7); scrollbar-width: thin; scrollbar-color: #353b47 transparent; }
.lab-segmented button { border: 1px solid transparent; border-radius: 8px; padding: 10px 8px; background: transparent; color: #75848e; font: 500 10px/1 var(--font-ui); cursor: pointer; }
.lab-segmented button.active { border-color: rgba(var(--accent-hot-rgb),.35); background: rgba(var(--accent-rgb),.12); color: var(--ice-strong); box-shadow: inset 0 0 18px rgba(var(--accent-rgb),.06), 0 0 16px rgba(var(--accent-rgb),.04); }
#visual-lab-form { display: grid; gap: 20px; margin-top: 22px; }
.lab-workflow-note { margin: 0; border-left: 2px solid rgba(var(--accent-hot-rgb),.6); padding: 9px 11px; background: linear-gradient(90deg, rgba(var(--accent-rgb),.09), transparent); color: #7f909a; font-size: 9px; line-height: 1.55; }.lab-workflow-note strong { color: #cfe0e8; font-weight: 600; }
.lab-video-development-note { display: grid; gap: 6px; margin: -7px 0 0; border: 1px solid rgba(var(--accent-hot-rgb),.28); border-radius: 10px; padding: 11px 12px; background: linear-gradient(110deg, rgba(var(--accent-rgb),.12), rgba(204,236,255,.025)); color: #81939e; font-size: 9px; line-height: 1.5; }.lab-video-development-note strong { color: #ffd7e1; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .12em; }.lab-video-development-note span { display: block; }
.lab-control-group { display: grid; gap: 9px; }.lab-control-label { display: block; color: #788690; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.lab-control-group small { color: #606d77; font-size: 9px; line-height: 1.4; }
.lab-segmented { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 3px; border: 1px solid rgba(204,236,255,.1); border-radius: 10px; background: rgba(0,0,0,.22); }
.lab-quality-segmented { grid-template-columns: repeat(2,1fr); }
.lab-quality-segmented.standard-model { grid-template-columns: minmax(0,1.35fr) minmax(140px,.65fr); }
.lab-ultra-upgrade { min-height: 48px !important; display: grid; align-content: center; gap: 3px; border-style: dashed !important; border-color: rgba(var(--accent-hot-rgb),.3) !important; color: #9caab3 !important; background: linear-gradient(115deg,rgba(var(--accent-rgb),.04),rgba(204,236,255,.015)) !important; opacity: .78; }
.lab-ultra-upgrade:hover { opacity: 1; border-style: solid !important; border-color: rgba(var(--accent-hot-rgb),.58) !important; color: var(--ice-strong) !important; background: rgba(var(--accent-rgb),.08) !important; }
.lab-ultra-upgrade span { font-weight: 600; }
.lab-ultra-upgrade small { color: #687780; font-size: 7px; line-height: 1.15; }
.lab-resolution-segmented { grid-template-columns: repeat(4,1fr); }
.lab-duration-segmented { grid-template-columns: repeat(4,1fr); }
.lab-prompt-field { display: grid; gap: 8px; }.lab-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.lab-prompt-head > label { color: #c7dae5; font: 500 11px/1 var(--font-ui); }.lab-prompt-field i { color: #5e6c75; font: 8px/1 ui-monospace, monospace; font-style: normal; }
.lab-prompt-build-step { display: grid; gap: 7px; }.lab-prompt-build-step small { color: #66757f; font-size: 8px; line-height: 1.45; }
.lab-prompt-build-status { border-left: 2px solid rgba(204,236,255,.18); padding-left: 8px; transition: color .18s ease, border-color .18s ease; }.lab-prompt-build-status[data-state="ready"] { border-color: rgba(99,239,173,.55); color: #87bba2; }.lab-prompt-build-status[data-state="stale"] { border-color: var(--accent-hot); color: #f2a8ba; }
.lab-prompt-build { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; border: 1px solid rgba(var(--accent-hot-rgb),.58); border-radius: 9px; padding: 0 13px; background: linear-gradient(105deg, rgba(var(--accent-rgb),.21), rgba(var(--accent-rgb),.055)); color: #ffe8ee; font: 600 10px/1 var(--font-signal); cursor: pointer; box-shadow: inset 0 0 18px rgba(var(--accent-rgb),.045), 0 0 20px rgba(var(--accent-rgb),.11); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }.lab-prompt-build i { color: var(--accent-hot); font-size: 11px; text-shadow: 0 0 11px rgba(var(--accent-rgb),.78); }.lab-prompt-build:hover { border-color: var(--accent-hot); background: linear-gradient(105deg, rgba(var(--accent-rgb),.28), rgba(var(--accent-rgb),.08)); box-shadow: inset 0 0 22px rgba(var(--accent-rgb),.065), 0 0 27px rgba(var(--accent-rgb),.18); transform: translateY(-1px); }.lab-prompt-build:disabled { opacity: .55; cursor: wait; transform: none; }
#lab-prompt { width: 100%; min-height: 142px; resize: vertical; border: 1px solid rgba(204,236,255,.14); border-radius: 11px; outline: 0; padding: 13px 14px; background: rgba(2,3,6,.72); color: #d7e5ed; font: 400 12px/1.55 var(--font-ui); box-shadow: inset 0 0 30px rgba(204,236,255,.015); }
#lab-prompt:focus { border-color: rgba(var(--accent-hot-rgb),.48); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.04), inset 0 0 30px rgba(var(--accent-rgb),.025); }
.lab-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.lab-control-grid label { display: grid; gap: 8px; }
.lab-control-grid select { width: 100%; height: 40px; border: 1px solid rgba(204,236,255,.13); border-radius: 9px; outline: 0; padding: 0 10px; background: #07090d; color: #b8cbd6; color-scheme: dark; font-size: 10px; cursor: pointer; }
.lab-scene-builder { display: grid; gap: 19px; min-width: 0; }
.lab-builder-intro { padding: 3px 0 2px; }
.lab-builder-intro > span { color: var(--accent-hot); font: 700 7px/1 ui-monospace, monospace; letter-spacing: .16em; text-shadow: 0 0 10px rgba(var(--accent-rgb),.52); }
.lab-builder-intro h2 { margin: 10px 0 8px; color: var(--ice-strong); font: 420 35px/.92 var(--font-ui); letter-spacing: -.055em; }
.lab-builder-intro h2 em { color: #77858e; font-style: normal; font-weight: 310; }
.lab-builder-intro p { margin: 0; color: #687780; font-size: 10px; line-height: 1.5; }
.lab-builder-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lab-builder-field { display: grid; gap: 8px; min-width: 0; }
.lab-builder-field-primary, .lab-builder-field:last-child { grid-column: 1 / -1; }
.lab-builder-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #bdcbd3; }
.lab-builder-field > span b { font-size: 9px; font-weight: 530; }
.lab-builder-field > span i { color: #53606a; font: 700 6px/1 ui-monospace, monospace; font-style: normal; letter-spacing: .07em; text-transform: uppercase; }
.lab-builder-field :is(input,textarea) { width: 100%; border: 1px solid rgba(204,236,255,.12); border-radius: 9px; outline: 0; background: rgba(2,3,6,.72); color: #d7e5ed; font: 450 10px/1.45 var(--font-ui); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.lab-builder-field input { height: 43px; padding: 0 11px; }
.lab-builder-field textarea { min-height: 64px; padding: 11px; resize: vertical; }
.lab-builder-field-primary input { height: 49px; border-color: rgba(var(--accent-hot-rgb),.24); background: linear-gradient(100deg, rgba(var(--accent-rgb),.055), rgba(2,3,6,.72)); font-size: 11px; }
.lab-builder-field-primary textarea { min-height: 112px; border-color: rgba(var(--accent-hot-rgb),.24); background: linear-gradient(100deg, rgba(var(--accent-rgb),.055), rgba(2,3,6,.72)); font-size: 11px; }
.lab-builder-field :is(input,textarea)::placeholder { color: #3f4a52; }
.lab-builder-field :is(input,textarea):focus, .lab-builder-select-grid select:focus { border-color: rgba(var(--accent-hot-rgb),.55); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.055); background: rgba(4,5,9,.94); }
.lab-builder-choice-group { min-width: 0; margin: 0; border: 0; padding: 0; }
.lab-builder-choice-group legend, .lab-builder-select-grid label > span { margin-bottom: 9px; color: #74838c; font: 700 7px/1 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.lab-builder-frame-row, .lab-builder-style-row, .lab-builder-aspect-row { display: grid; gap: 6px; }
.lab-builder-frame-row { grid-template-columns: repeat(5,minmax(0,1fr)); }
.lab-builder-frame-row button { display: grid; justify-items: center; gap: 7px; min-width: 0; min-height: 59px; border: 1px solid rgba(204,236,255,.1); border-radius: 9px; padding: 10px 4px 8px; background: rgba(204,236,255,.018); color: #6e7c85; font-size: 7px; cursor: pointer; transition: .18s ease; }
.lab-builder-frame-row button i { position: relative; display: block; width: 23px; height: 15px; border: 1px solid currentColor; border-radius: 3px; font-style: normal; opacity: .75; }
.lab-builder-frame-row button i::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 1px; }
.lab-builder-frame-row button:nth-child(1) i::after { inset: 4px 7px; border-style: dashed; }
.lab-builder-frame-row button:nth-child(2) i::after { inset: 2px 4px; }
.lab-builder-frame-row button:nth-child(3) i::after { inset: 4px 6px; }
.lab-builder-frame-row button:nth-child(4) i::after { inset: 5px 3px; }
.lab-builder-frame-row button:nth-child(5) i::after { inset: 4px 8px; border-radius: 50%; }
.lab-builder-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lab-builder-select-grid label { display: grid; min-width: 0; }
.lab-builder-select-grid select { width: 100%; height: 40px; border: 1px solid rgba(204,236,255,.12); border-radius: 9px; outline: 0; padding: 0 10px; background: #07090d; color: #a8b8c1; color-scheme: dark; font-size: 9px; cursor: pointer; }
.lab-builder-style-row { grid-template-columns: repeat(5,minmax(0,1fr)); }
.lab-builder-motion-style-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
.lab-builder-style-row button { display: flex; align-items: flex-start; gap: 6px; min-width: 0; min-height: 67px; border: 1px solid rgba(204,236,255,.1); border-radius: 9px; padding: 10px 7px; background: rgba(204,236,255,.018); color: #73818a; text-align: left; cursor: pointer; transition: .18s ease; }
.lab-builder-style-row button > i { color: #4e5b63; font: 700 6px/1 ui-monospace, monospace; font-style: normal; }
.lab-builder-style-row button > span { display: grid; gap: 5px; min-width: 0; }
.lab-builder-style-row button b { color: #b4c1c8; font-size: 8px; font-weight: 570; }
.lab-builder-style-row button small { color: #536069; font-size: 7px !important; line-height: 1.35; }
.lab-builder-style-row button.enough { border-color: rgba(var(--accent-hot-rgb),.23); }
.lab-builder-aspect-row { grid-template-columns: repeat(5,minmax(0,1fr)); }
.lab-builder-aspect-row button { min-height: 32px; border: 1px solid rgba(204,236,255,.1); border-radius: 8px; background: rgba(204,236,255,.018); color: #687680; font: 700 7px/1 ui-monospace, monospace; cursor: pointer; }
.lab-builder-aspect-row button:disabled { opacity: .42; cursor: not-allowed; }
.lab-builder-aspect-note { display: block; margin-top: 9px; color: #586771; font-size: 8px; line-height: 1.45; }
.lab-builder-motion-settings { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 22px; }
.lab-builder-frame-row button:hover, .lab-builder-style-row button:hover, .lab-builder-aspect-row button:hover { border-color: rgba(var(--accent-hot-rgb),.34); color: #becbd2; background: rgba(var(--accent-rgb),.04); }
.lab-builder-frame-row button.active, .lab-builder-style-row button.active, .lab-builder-aspect-row button.active { border-color: rgba(var(--accent-hot-rgb),.58); background: linear-gradient(135deg, rgba(var(--accent-rgb),.15), rgba(var(--accent-rgb),.035)); color: #fff; box-shadow: inset 0 0 18px rgba(var(--accent-rgb),.035), 0 0 20px rgba(var(--accent-rgb),.065); }
.lab-builder-style-row button.active > i, .lab-builder-style-row button.enough > i { color: var(--accent-hot); }
.lab-builder-style-row button.active b { color: #fff; }
.lab-builder-shadow { overflow: hidden; border: 1px solid rgba(204,236,255,.11); border-radius: 12px; background: linear-gradient(145deg, rgba(13,16,22,.9), rgba(3,4,7,.76)); }
.lab-builder-shadow > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px; border-bottom: 1px solid rgba(204,236,255,.09); }
.lab-builder-shadow > header > div { display: grid; gap: 5px; }
.lab-builder-shadow > header span { color: var(--accent-hot); font: 700 6px/1 ui-monospace, monospace; letter-spacing: .12em; }
.lab-builder-shadow > header strong { color: #becbd2; font-size: 9px; font-weight: 540; }
.lab-builder-shadow > header > i { border: 1px solid rgba(99,239,173,.23); border-radius: 999px; padding: 5px 7px; background: rgba(99,239,173,.045); color: #83b29b; font: 700 6px/1 ui-monospace, monospace; font-style: normal; text-transform: uppercase; }
.lab-builder-layers { display: grid; padding: 0 13px; }
.lab-builder-layers > span { position: relative; display: grid; grid-template-columns: 23px auto 1fr; align-items: center; gap: 8px; min-width: 0; padding: 10px 0; border-bottom: 1px solid rgba(204,236,255,.075); }
.lab-builder-layers > span:last-child { border-bottom: 0; }
.lab-builder-layers > span > i { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid rgba(204,236,255,.11); border-radius: 6px; color: #58656d; font: 700 6px/1 ui-monospace, monospace; font-style: normal; }
.lab-builder-layers > span:first-child > i { border-color: rgba(var(--accent-hot-rgb),.4); color: var(--accent-hot); background: rgba(var(--accent-rgb),.07); }
.lab-builder-layers b { color: #9fadB5; font-size: 8px; font-weight: 540; }
.lab-builder-layers small { min-width: 0; overflow: hidden; color: #526068; font-size: 7px !important; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.lab-builder-layers em { position: absolute; right: 0; color: #3f4a51; font: 700 6px/1 ui-monospace, monospace; font-style: normal; letter-spacing: .08em; }
.lab-builder-layers > span:last-child small { padding-right: 50px; }
.lab-builder-prompt-preview { border-top: 1px solid rgba(204,236,255,.1); }
.lab-builder-prompt-preview summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #7c8991; font-size: 8px; cursor: pointer; list-style: none; }
.lab-builder-prompt-preview summary::-webkit-details-marker { display: none; }
.lab-builder-prompt-preview summary i { color: #4a555c; font: 7px/1 ui-monospace, monospace; font-style: normal; }
.lab-builder-prompt-preview[open] summary i { color: var(--accent-hot); }
.lab-builder-prompt-preview > div { margin-top: 12px; overflow: hidden; border: 1px solid rgba(204,236,255,.1); border-radius: 9px; background: rgba(1,2,4,.58); }
.lab-builder-prompt-preview > div > header { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid rgba(204,236,255,.09); color: #59666e; font: 700 6px/1 ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.lab-builder-prompt-preview header button { border: 0; padding: 0; background: transparent; color: #77858d; font-size: 7px; cursor: pointer; }
.lab-builder-prompt-preview pre { max-height: 240px; margin: 0; overflow: auto; padding: 11px; color: #93a4ad; font: 8px/1.6 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.lab-builder-manual-toggle, .lab-builder-return { width: fit-content; border: 0; padding: 0; background: transparent; color: #728089; font-size: 8px; cursor: pointer; text-decoration: underline; text-decoration-color: #3f494f; text-underline-offset: 4px; }
.lab-builder-manual-toggle:hover, .lab-builder-return:hover { color: var(--ice-strong); }
.lab-builder-return { justify-self: end; }
.lab-source-card { display: grid; gap: 10px; padding: 14px; border: 1px dashed rgba(204,236,255,.17); border-radius: 12px; background: linear-gradient(135deg, rgba(204,236,255,.018), rgba(var(--accent-rgb),.025)); }
.lab-source-empty { display: grid; gap: 5px; }.lab-source-empty span, .lab-source-selected span { color: var(--accent-hot); font: 700 7px/1 ui-monospace, monospace; letter-spacing: .14em; }.lab-source-empty strong { color: #b9cbd5; font: 500 12px/1.2 var(--font-signal); }.lab-source-empty p { margin: 0; color: #64727c; font-size: 9px; line-height: 1.45; }
.lab-source-upload { width: 100%; border: 1px solid rgba(204,236,255,.16); border-radius: 8px; padding: 9px 10px; background: rgba(204,236,255,.035); color: #9fb4c0; font-size: 10px; cursor: pointer; }.lab-source-upload:hover { border-color: rgba(var(--accent-hot-rgb),.42); color: var(--ice); }
.lab-source-selected { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }.lab-source-selected img { width: 72px; height: 72px; object-fit: cover; border: 1px solid rgba(var(--accent-hot-rgb),.25); border-radius: 9px; background: #020204; }.lab-source-selected > div { display: grid; gap: 6px; min-width: 0; }.lab-source-selected strong { overflow: hidden; color: #c4d7e1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.lab-source-selected p { margin: 0; color: #64727c; font-size: 8px; line-height: 1.45; }.lab-source-selected button { width: fit-content; border: 0; padding: 0; background: transparent; color: #778691; font-size: 9px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lab-source-keep { display: flex; align-items: center; gap: 7px; width: fit-content; color: #8fa0aa; cursor: pointer; }.lab-source-keep input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent-hot); }.lab-source-keep b { font-size: 8px; font-weight: 500; line-height: 1.35; }
.lab-boundary-note { margin: -4px 0 0; color: #5e6b75; font-size: 8px; line-height: 1.5; }
.lab-generate-button { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border: 1px solid var(--accent-hot); border-radius: 10px; padding: 0 16px; background: linear-gradient(100deg, rgba(var(--accent-rgb),.22), rgba(var(--accent-rgb),.08)); color: white; font: 500 12px/1 var(--font-signal); cursor: pointer; box-shadow: 0 0 25px rgba(var(--accent-rgb),.13), inset 0 0 22px rgba(var(--accent-rgb),.06); }.lab-generate-button:hover { background: rgba(var(--accent-rgb),.27); box-shadow: 0 0 30px rgba(var(--accent-rgb),.21); }.lab-generate-button:disabled { opacity: .42; cursor: wait; }.lab-generate-button i { color: var(--accent-hot); font-size: 17px; font-style: normal; }
.lab-response-notice { margin: -5px 0 0; border: 1px solid rgba(var(--accent-hot-rgb),.28); border-radius: 10px; padding: 12px 13px; background: linear-gradient(100deg, rgba(var(--accent-rgb),.11), rgba(204,236,255,.025)); color: var(--copy-secondary); font-size: var(--type-helper); line-height: var(--line-helper); white-space: pre-wrap; }.lab-response-notice[data-state="error"] { border-color: rgba(255,105,135,.42); background: rgba(121,19,48,.1); color: #f2b6c4; }
.lab-results { min-width: 0; overflow-y: auto; padding: 29px 34px 44px; scrollbar-width: thin; scrollbar-color: #353b47 transparent; }
.lab-results-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(204,236,255,.1); }.lab-results-head > div { min-width: 0; }.lab-results-head h2 { margin: 7px 0 0; color: #cde0ea; font: 400 18px/1.1 var(--font-signal); }.lab-results-head button { flex: 0 0 auto; border: 1px solid rgba(204,236,255,.12); border-radius: 8px; padding: 8px 11px; background: rgba(204,236,255,.025); color: #81919c; font-size: 9px; cursor: pointer; }
.lab-results-actions { display: flex; align-items: center; gap: 7px; }
#lab-clear-versions { border-color: rgba(255,116,142,.24); color: #c994a1; }
.lab-gallery-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.lab-gallery-filters button { border: 1px solid rgba(204,236,255,.13); border-radius: 999px; padding: 8px 13px; background: rgba(204,236,255,.025); color: #75848e; font-size: 9px; cursor: pointer; }
.lab-gallery-filters button.active { border-color: rgba(var(--accent-hot-rgb),.42); background: rgba(var(--accent-rgb),.1); color: var(--ice-strong); }
.lab-results-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 14px; padding: 4px; border: 1px solid rgba(204,236,255,.1); border-radius: 10px; background: rgba(0,0,0,.24); }.lab-results-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #75848e; font: 600 9px/1 var(--font-signal); cursor: pointer; }.lab-results-tabs button.active { border-color: rgba(var(--accent-hot-rgb),.38); background: linear-gradient(100deg, rgba(var(--accent-rgb),.18), rgba(var(--accent-rgb),.06)); color: #f4fbff; box-shadow: inset 0 0 18px rgba(var(--accent-rgb),.045), 0 0 17px rgba(var(--accent-rgb),.07); }.lab-results-tabs i { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid rgba(var(--accent-hot-rgb),.3); border-radius: 999px; color: var(--accent-hot); font: 700 8px/1 ui-monospace, monospace; font-style: normal; }
.lab-source-banner { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 9px 11px; border: 1px solid rgba(var(--accent-hot-rgb),.2); border-radius: 9px; background: rgba(var(--accent-rgb),.05); }.lab-source-banner span { color: #7c8b95; font-size: 8px; }.lab-source-banner strong { min-width: 0; overflow: hidden; color: #becfd8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.lab-source-banner button { margin-left: auto; border: 0; background: transparent; color: #74818a; cursor: pointer; }
.lab-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 18px; }
.lab-result-card { min-width: 0; overflow: hidden; border: 1px solid rgba(204,236,255,.11); border-radius: 13px; background: rgba(6,8,12,.78); box-shadow: 0 16px 50px rgba(0,0,0,.22); }.lab-result-card.is-source { border-color: rgba(var(--accent-hot-rgb),.48); box-shadow: 0 0 28px rgba(var(--accent-rgb),.11); }.lab-result-card.is-error { border-color: rgba(255,105,135,.42); box-shadow: 0 0 24px rgba(121,19,48,.13); }.lab-result-card.is-error .lab-result-status { color: #f2b6c4; }
.lab-result-card.text-response { grid-column: 1 / -1; border-color: rgba(var(--accent-hot-rgb),.25); background: linear-gradient(115deg, rgba(var(--accent-rgb),.085), rgba(6,8,12,.82)); }.lab-result-card.text-response .lab-result-body { border-top: 0; padding: 17px; }.lab-result-card.text-response .lab-result-body p { display: block; overflow: visible; color: var(--copy-secondary); font-size: var(--type-helper); line-height: var(--line-helper); white-space: pre-wrap; -webkit-line-clamp: unset; }
.lab-result-media { position: relative; display: grid; place-items: center; aspect-ratio: 1/1; overflow: hidden; background: radial-gradient(circle, rgba(204,236,255,.035), transparent 60%), #020306; }.lab-result-card.video .lab-result-media { aspect-ratio: 16/9; }.lab-result-media img, .lab-result-media video { display: block; width: 100%; height: 100%; object-fit: contain; background: #020204; }.lab-result-media video { object-fit: cover; }.lab-result-media.with-progress-poster > img { filter: brightness(.48) saturate(.78); }.lab-result-media.with-progress-poster .lab-result-status { position: absolute; inset: 0; z-index: 1; align-content: center; width: 100%; min-height: 100%; background: radial-gradient(circle, rgba(2,3,6,.12), rgba(2,3,6,.62)); text-shadow: 0 1px 10px #000; }.lab-result-card.is-client-pending { border-color: rgba(var(--accent-hot-rgb),.5); box-shadow: 0 0 34px rgba(var(--accent-rgb),.1); }.lab-result-status { display: grid; place-items: center; gap: 10px; padding: 28px; color: #a2b7c3; text-align: center; font-size: 11px; line-height: 1.5; }.lab-result-status small { max-width: 320px; color: #60717c; font-size: 8px; line-height: 1.45; }.lab-result-media.with-progress-poster .lab-result-status small { color: #c1d2db; }.lab-result-status i { width: 24px; height: 24px; border: 1px solid rgba(var(--accent-hot-rgb),.4); border-top-color: var(--accent-hot); border-radius: 50%; animation: lab-spin 1s linear infinite; }.lab-result-job-context { width: fit-content; max-width: 100%; overflow: hidden; border: 1px solid rgba(var(--accent-hot-rgb),.28); border-radius: 999px; padding: 6px 9px; background: rgba(var(--accent-rgb),.075); color: #d4e5ed; font-size: var(--type-caption); font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }.lab-result-job-context.current { border-color: rgba(var(--accent-hot-rgb),.55); background: linear-gradient(100deg, rgba(var(--accent-rgb),.2), rgba(var(--accent-rgb),.07)); color: #fff; box-shadow: 0 0 18px rgba(var(--accent-rgb),.11); }.lab-result-status .lab-result-job-context { justify-self: center; white-space: normal; }
@keyframes lab-spin { to { transform: rotate(360deg); } }
.lab-result-body { display: grid; gap: 11px; padding: 13px; border-top: 1px solid rgba(204,236,255,.08); }.lab-result-meta { display: flex; justify-content: space-between; gap: 10px; color: #606d76; font: 7px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }.lab-result-meta .lab-result-style { color: var(--ice-strong); }.lab-result-project { overflow: hidden; color: #758b97; font: 700 8px/1.2 ui-monospace, monospace; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }.lab-result-body p { display: -webkit-box; overflow: hidden; margin: 0; color: #9aadb8; font-size: 9px; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }.lab-result-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 2px; }.lab-result-actions button, .lab-result-actions a { border: 1px solid rgba(204,236,255,.2); border-radius: 8px; padding: 8px 11px; background: rgba(204,236,255,.045); color: #c2d5df; font-size: 9px; font-weight: 600; text-decoration: none; cursor: pointer; }.lab-result-actions .lab-result-action-primary { border-color: rgba(var(--accent-hot-rgb),.72); background: linear-gradient(100deg, rgba(var(--accent-rgb),.28), rgba(var(--accent-rgb),.1)); color: #fff; box-shadow: 0 0 20px rgba(var(--accent-rgb),.14); }.lab-result-actions .lab-result-action-secondary { border-color: rgba(var(--accent-hot-rgb),.34); color: var(--ice-strong); }.lab-result-actions .lab-result-action-gallery { border-color: rgba(var(--accent-hot-rgb),.42); background: rgba(var(--accent-rgb),.075); color: #ffd4df; }.lab-result-actions .lab-result-action-gallery.active { border-color: rgba(99,239,173,.5); background: rgba(58,157,112,.09); color: #9be8c2; }.lab-result-actions .lab-result-action-download { border-color: rgba(99,239,173,.42); color: #9be8c2; }.lab-result-actions .lab-result-action-open { margin-left: auto; }.lab-result-actions button:hover, .lab-result-actions a:hover { border-color: var(--accent-hot); color: #fff; box-shadow: 0 0 18px rgba(var(--accent-rgb),.16); }.lab-result-actions button:disabled { opacity: .48; cursor: wait; }
.lab-result-description { min-height: 2.9em; flex: 0 0 2.9em; -webkit-line-clamp: 2 !important; }
.lab-result-body .image-best-effort-warning { display: -webkit-box; min-height: 2.9em; flex: 0 0 2.9em; overflow: hidden; color: #f2c58c; font-size: var(--type-helper); line-height: 1.45; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.lab-result-body.has-warning .lab-result-description { min-height: 1.45em; flex-basis: 1.45em; -webkit-line-clamp: 1 !important; }
.lab-result-actions .lab-result-action-bank { border-color: rgba(204,236,255,.34); background: rgba(204,236,255,.055); color: var(--ice-strong); }.lab-result-actions .lab-result-action-bank.active { border-color: rgba(99,239,173,.5); background: rgba(58,157,112,.09); color: #9be8c2; }
.lab-result-actions .lab-result-action-delete { border-color: rgba(255,116,142,.22); color: #c994a1; }
.lab-workspace:not(.gallery-mode) .lab-results-browser[open] { display: flex; flex-direction: column; max-height: min(76vh, 900px); min-height: 0; }
.lab-workspace:not(.gallery-mode) .lab-results-browser[open] > .lab-results-browser-body { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; }
.lab-workspace:not(.gallery-mode) #lab-project-results { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.lab-workspace:not(.gallery-mode) #lab-project-results > .lab-gallery { display: flex; flex: 0 1 auto; flex-direction: column; gap: 11px; max-height: min(54vh, 620px); min-height: 0; overflow: auto; padding: 2px 7px 2px 1px; overscroll-behavior: contain; scrollbar-color: rgba(var(--accent-hot-rgb),.28) transparent; scrollbar-width: thin; }
.lab-workspace:not(.gallery-mode) #lab-project-results .lab-result-card:not(.text-response) { display: grid; grid-template-columns: clamp(92px, 18%, 176px) minmax(0,1fr); grid-template-rows: minmax(160px, auto); flex: 0 0 auto; height: auto; min-height: 160px; }
.lab-workspace:not(.gallery-mode) #lab-project-results .lab-result-card:not(.text-response) .lab-result-media { min-height: 160px; aspect-ratio: auto; }
.lab-workspace:not(.gallery-mode) #lab-project-results .lab-result-card:not(.text-response) .lab-result-body { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: visible; padding: 14px; border-top: 0; border-left: 1px solid rgba(204,236,255,.08); }
.lab-workspace:not(.gallery-mode) #lab-project-results .lab-result-card:not(.text-response) .lab-result-description { display: -webkit-box; min-height: 0; flex: 0 1 auto; color: #d3e3eb; font: 500 14px/1.35 var(--font-signal); -webkit-line-clamp: 2; }
.lab-workspace:not(.gallery-mode) #lab-project-results .lab-result-card:not(.text-response) .lab-result-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 7px; margin-top: auto; }
.lab-workspace:not(.gallery-mode) #lab-project-results .lab-result-card:not(.text-response) .lab-result-actions button,
.lab-workspace:not(.gallery-mode) #lab-project-results .lab-result-card:not(.text-response) .lab-result-actions a { display: flex; align-items: center; justify-content: center; min-height: 38px; margin-left: 0; padding: 8px 10px; text-align: center; }
.lab-workspace:not(.gallery-mode) #lab-project-results .lab-result-card:not(.text-response) .lab-result-actions .lab-result-action-open { margin-left: 0; }
.lab-workspace:not(.gallery-mode) #lab-project-results .lab-result-card.text-response { flex: 0 0 auto; }
.lab-empty { display: grid; justify-items: center; max-width: 480px; margin: 14vh auto 0; text-align: center; }.lab-empty-orbit { position: relative; display: grid; place-items: center; width: 88px; height: 88px; }.lab-empty-orbit span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(var(--accent-hot-rgb),.46); border-radius: 14px; color: var(--ice-strong); font: italic 700 26px/1 Quantico, sans-serif; box-shadow: 0 0 28px rgba(var(--accent-rgb),.14); }.lab-empty-orbit i { position: absolute; inset: 4px; border: 1px solid rgba(204,236,255,.08); border-radius: 50%; }.lab-empty-orbit i:last-child { inset: -12px; border-color: rgba(var(--accent-hot-rgb),.08); }.lab-empty h2 { margin: 20px 0 8px; color: #becfd8; font: 400 22px/1.1 var(--font-signal); }.lab-empty p { margin: 0; color: #6b7881; font-size: 11px; line-height: 1.6; }
.lab-empty-orbit-gallery span { font-style: normal; font-weight: 400; }
.chat-atmosphere { position: absolute; z-index: 0; inset: 72px 0 0; overflow: hidden; pointer-events: none; opacity: .94; -webkit-mask-image: linear-gradient(180deg, transparent, #000 11%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent, #000 11%, #000 78%, transparent 100%); }
.chat-atmosphere::before, .chat-atmosphere::after { content: ""; position: absolute; border-radius: 50%; filter: blur(78px); animation: chat-flare-breathe 18s ease-in-out infinite alternate; }
.chat-atmosphere::before { top: 4%; right: 5%; width: min(44vw, 640px); height: min(44vw, 640px); background: radial-gradient(circle, rgba(var(--accent-rgb),.09), rgba(var(--accent-rgb),.025) 42%, transparent 72%); }
.chat-atmosphere::after { left: 3%; bottom: 6%; width: min(35vw, 510px); height: min(35vw, 510px); background: radial-gradient(circle, rgba(204,236,255,.055), rgba(var(--accent-rgb),.016) 48%, transparent 72%); animation-delay: -9s; }
.chat-atmosphere i { --size: 3px; --drift-x: 14px; --drift-y: -18px; position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); border-radius: 50%; background: #fff9fb; opacity: 0; mix-blend-mode: screen; box-shadow: 0 0 6px #fff, 0 0 15px rgba(var(--accent-hot-rgb),1), 0 0 36px rgba(var(--accent-rgb),.62); animation: chat-firefly var(--duration, 9s) var(--delay, 0s) ease-in-out infinite; }
.chat-atmosphere i:nth-child(1) { --x: 12%; --y: 18%; --duration: 9.6s; --delay: -3.1s; --drift-x: 18px; }
.chat-atmosphere i:nth-child(2) { --x: 31%; --y: 12%; --size: 3px; --duration: 11.4s; --delay: -7.8s; --drift-y: -24px; }
.chat-atmosphere i:nth-child(3) { --x: 82%; --y: 20%; --duration: 8.8s; --delay: -5.6s; --drift-x: -19px; }
.chat-atmosphere i:nth-child(4) { --x: 68%; --y: 39%; --size: 3px; --duration: 12.2s; --delay: -1.7s; --drift-x: -24px; }
.chat-atmosphere i:nth-child(5) { --x: 18%; --y: 48%; --duration: 10.7s; --delay: -8.3s; --drift-y: -15px; }
.chat-atmosphere i:nth-child(6) { --x: 89%; --y: 54%; --size: 2px; --duration: 9.3s; --delay: -4.5s; --drift-x: -14px; }
.chat-atmosphere i:nth-child(7) { --x: 42%; --y: 63%; --size: 3px; --duration: 12.8s; --delay: -9.4s; --drift-x: 21px; }
.chat-atmosphere i:nth-child(8) { --x: 73%; --y: 72%; --duration: 10.1s; --delay: -2.4s; --drift-y: -26px; }
.chat-atmosphere i:nth-child(9) { --x: 9%; --y: 79%; --duration: 11.8s; --delay: -6.2s; --drift-x: 17px; }
.chat-atmosphere i:nth-child(10) { --x: 55%; --y: 84%; --size: 2px; --duration: 9.9s; --delay: -7.1s; --drift-x: -16px; }
.chat-atmosphere i:nth-child(11) { --x: 46%; --y: 8%; --size: 3px; --duration: 10.4s; --delay: -4.2s; --drift-x: 15px; }
.chat-atmosphere i:nth-child(12) { --x: 58%; --y: 25%; --size: 4px; --duration: 9.1s; --delay: -6.7s; --drift-y: -22px; }
.chat-atmosphere i:nth-child(13) { --x: 25%; --y: 34%; --size: 3px; --duration: 11.2s; --delay: -2.8s; --drift-x: 23px; }
.chat-atmosphere i:nth-child(14) { --x: 94%; --y: 34%; --size: 3px; --duration: 10.6s; --delay: -8.1s; --drift-x: -18px; }
.chat-atmosphere i:nth-child(15) { --x: 55%; --y: 51%; --size: 3px; --duration: 9.5s; --delay: -3.7s; --drift-y: -19px; }
.chat-atmosphere i:nth-child(16) { --x: 32%; --y: 73%; --size: 4px; --duration: 12.1s; --delay: -9.3s; --drift-x: 17px; }
.chat-atmosphere i:nth-child(17) { --x: 80%; --y: 88%; --size: 3px; --duration: 10.2s; --delay: -5.5s; --drift-y: -24px; }
.chat-atmosphere i:nth-child(18) { --x: 3%; --y: 60%; --size: 3px; --duration: 11.7s; --delay: -1.9s; --drift-x: 20px; }
.chat-atmosphere i:nth-child(3n) { background: #eaf8ff; box-shadow: 0 0 4px #fff, 0 0 12px rgba(204,236,255,.78), 0 0 28px rgba(148,215,255,.25); }
@keyframes chat-firefly { 0%, 100% { opacity: .14; transform: translate3d(0, 7px, 0) scale(.7); } 26% { opacity: .92; } 52% { opacity: .42; transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1.28); } 77% { opacity: .82; } }
@keyframes chat-flare-breathe { from { opacity: .56; transform: translate3d(-1.5%, 1%, 0) scale(.94); } to { opacity: .92; transform: translate3d(2%, -1.5%, 0) scale(1.07); } }
.chat-header { position: relative; z-index: 1; height: 72px; flex: 0 0 72px; gap: 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 24px; }
.chat-header > div:first-of-type { display: grid; min-width: 100px; max-width: 220px; gap: 3px; }.chat-header > div:first-of-type strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.chat-header strong { font-family: var(--font-ui); font-size: 13px; }.chat-header small { color: var(--faint); font-size: 10px; display: flex; align-items: center; gap: 6px; }.chat-header small .status-dot { width: 5px; height: 5px; flex-basis: 5px; }
.accent-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; margin-left: auto; border: 1px solid rgba(var(--accent-hot-rgb),.28); border-radius: 20px; padding: 6px 10px; color: #d8e8f1; background: rgba(var(--accent-rgb),.055); font-family: var(--font-ui); font-size: 10px; font-weight: 500; cursor: pointer; transition: .2s ease; }
.accent-chip:hover { border-color: rgba(var(--accent-hot-rgb),.58); color: var(--ice-strong); background: rgba(var(--accent-rgb),.1); box-shadow: 0 0 18px rgba(var(--accent-rgb),.08); }
.accent-chip-dot { width: 9px; height: 9px; flex: 0 0 9px; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px rgba(var(--accent-rgb),.75),0 0 17px rgba(var(--accent-rgb),.2); }
.usage-chip { display: block; color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line); padding: 6px 9px; border-radius: 8px; font-size: 9px; font-family: ui-monospace, monospace; font-weight: 500; white-space: nowrap; }
.icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }.menu-button, .mobile-only { display: none; }
.messages { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; overflow-anchor: none; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding: 58px max(24px, calc((100% - var(--chat-content-width)) / 2)) var(--composer-safe-space); scroll-padding-bottom: var(--composer-safe-space); scrollbar-width: thin; scrollbar-color: #353b47 transparent; }
.empty-state { max-width: 720px; margin: min(5vh, 55px) auto 0; text-align: center; }
.empty-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: auto; color: transparent; font-size: 0; }
.empty-state h1 { color: var(--ice-strong); font-family: var(--font-signal); font-weight: 300; font-size: clamp(29px, 3vw, 40px); letter-spacing: -.025em; margin: 24px 0 10px; text-shadow: 0 0 18px rgba(204,236,255,.1); }.empty-state > p { color: var(--muted); max-width: 530px; margin: auto; line-height: 1.6; font-size: 14px; }
.message-row { display: flex; gap: 13px; margin: 0 auto 26px; max-width: var(--chat-content-width); animation: message-in .22s ease both; }
@keyframes message-in { from { opacity: 0; transform: translateY(7px); } }
.message-row.user { justify-content: flex-end; }.message-row.user .message-bubble { max-width: 78%; border: 1px solid rgba(204,236,255,.11); background: rgba(204,236,255,.055); padding: 12px 15px; border-radius: 14px 14px 4px 14px; }
.message-row.assistant .message-bubble { flex: 1; color: #d5d8de; line-height: 1.68; font-size: 14px; overflow-wrap: anywhere; }
.message-bubble > :first-child { margin-top: 0; }.message-bubble > :last-child { margin-bottom: 0; }
.response-feedback-button { display: block; width: fit-content; margin-top: 11px; padding: 4px 0; border: 0; border-bottom: 1px dashed rgba(204,236,255,.13); background: transparent; color: var(--faint); font: 9px/1.35 var(--font-signal); cursor: pointer; transition: color .16s ease, border-color .16s ease; }
.response-feedback-button:hover { border-color: rgba(var(--accent-hot-rgb),.5); color: var(--accent-hot); }
.response-feedback-button.sent, .response-feedback-button:disabled { border-color: transparent; color: rgba(101,255,183,.58); cursor: default; }
.message-paragraph { margin: 0 0 12px; white-space: pre-wrap; }
.message-heading { margin: 16px 0 7px; color: var(--ice-strong); font-family: var(--font-ui); font-weight: 550; line-height: 1.3; }
.message-heading.level-1 { font-size: 19px; }.message-heading.level-2 { font-size: 17px; }.message-heading.level-3 { font-size: 15px; }
.message-list { margin: 4px 0 13px; padding-left: 22px; }.message-list li { margin: 3px 0; padding-left: 2px; }
.message-quote { margin: 6px 0 13px; padding: 7px 11px; border-left: 2px solid rgba(var(--accent-hot-rgb),.55); color: #aebbc5; background: rgba(var(--accent-rgb),.035); }
.message-inline-code { padding: 2px 5px; border: 1px solid rgba(204,236,255,.12); border-radius: 5px; background: rgba(204,236,255,.06); color: #e4f5ff; font: .9em/1.45 ui-monospace, "Cascadia Code", Consolas, monospace; }
.message-code-block { width: 100%; min-width: 0; margin: 9px 0 14px; overflow: hidden; border: 1px solid rgba(204,236,255,.14); border-radius: 10px; background: #05070b; box-shadow: inset 0 0 24px rgba(204,236,255,.018), 0 12px 30px rgba(0,0,0,.18); }
.message-code-head { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 6px 8px 6px 12px; border-bottom: 1px solid rgba(204,236,255,.1); background: rgba(204,236,255,.025); }
.message-code-language { color: #8193a2; font: 700 8px/1 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .11em; text-transform: uppercase; }
.message-code-copy { border: 1px solid rgba(204,236,255,.13); border-radius: 6px; background: rgba(204,236,255,.035); color: #b9ceda; padding: 5px 8px; cursor: pointer; font-size: 9px; }
.message-code-copy:hover { border-color: rgba(var(--accent-hot-rgb),.46); color: #fff; }
.message-code-block pre { max-width: 100%; margin: 0; overflow: auto; padding: 14px; color: #d8e7ef; tab-size: 4; white-space: pre; }
.message-code-block code { font: 12px/1.62 ui-monospace, "Cascadia Code", Consolas, monospace; }
.syntax-comment { color: #70808d; font-style: italic; }.syntax-string { color: #a8ffd7; }.syntax-number { color: #ffd181; }.syntax-keyword { color: #ff7899; }.syntax-tag { color: #ff7899; }.syntax-constant { color: #9ccffc; }
.message-link { color: var(--ice-strong); text-decoration: underline; text-decoration-color: rgba(204,236,255,.32); text-underline-offset: 3px; }
.message-link:hover { color: #fff; text-shadow: var(--ice-glow); }
.message-mark { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; color: transparent; font-size: 0; }
.message-row.pending .message-bubble::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 5px; animation: pulse 1s infinite; }
.pending-upgrade-hint {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(var(--accent-hot-rgb),.16);
  border-radius: 7px;
  background: rgba(var(--accent-rgb),.025);
  color: rgba(190,210,222,.58);
  font: 500 9px/1.35 var(--font-signal);
  text-align: left;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.pending-upgrade-hint:hover {
  border-color: rgba(var(--accent-hot-rgb),.35);
  background: rgba(var(--accent-rgb),.05);
  color: #d7eaff;
}
.prompt-coach-row .message-bubble { min-width: 0; }
.prompt-coach-card {
  padding: 16px;
  border: 1px solid rgba(var(--accent-hot-rgb),.24);
  border-radius: 13px;
  background:
    radial-gradient(circle at 0 0, rgba(var(--accent-rgb),.09), transparent 38%),
    rgba(9,11,16,.76);
  box-shadow: 0 18px 45px rgba(0,0,0,.2), 0 0 28px rgba(var(--accent-rgb),.035);
}
.prompt-coach-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(var(--accent-hot-rgb),.3);
  border-radius: 999px;
  background: rgba(var(--accent-rgb),.055);
  color: #ffd2de;
  font: 700 8px/1 ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.prompt-coach-message {
  max-width: 800px;
  margin: 0 0 14px;
  color: #d7dde3;
  line-height: 1.62;
}
.prompt-coach-source-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--accent-rgb),.18);
  border-radius: 9px;
  background: rgba(var(--accent-rgb),.045);
  color: #9fb5c2;
  font-size: 10px;
  line-height: 1.55;
}
.prompt-coach-source-action {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(var(--accent-hot-rgb),.3);
  border-radius: 8px;
  background: rgba(var(--accent-rgb),.055);
  color: #d9eaf2;
  font: 500 9px/1.35 var(--font-signal);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.prompt-coach-source-action:hover {
  border-color: rgba(var(--accent-hot-rgb),.58);
  background: rgba(var(--accent-rgb),.1);
  color: #fff;
}
.prompt-coach-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.prompt-coach-option {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(204,236,255,.11);
  border-radius: 10px;
  background: rgba(204,236,255,.025);
  color: #c9d7df;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.prompt-coach-option:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-hot-rgb),.44);
  background: rgba(var(--accent-rgb),.055);
}
.prompt-coach-option.is-selected {
  border-color: rgba(var(--accent-hot-rgb),.78);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb),.2), transparent 56%),
    rgba(var(--accent-rgb),.085);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-hot-rgb),.12), 0 0 24px rgba(var(--accent-rgb),.11);
}
.prompt-coach-option-enough {
  border-color: rgba(var(--accent-hot-rgb),.48);
  background: radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb),.16), transparent 52%), rgba(var(--accent-rgb),.045);
  box-shadow: inset 0 0 34px rgba(var(--accent-rgb),.04);
}
.prompt-coach-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ice-strong);
}
.prompt-coach-option-head strong {
  font-family: var(--font-signal);
  font-size: 12px;
  font-weight: 600;
}
.prompt-coach-option-head i {
  margin-left: auto;
  color: var(--accent-hot);
  font-style: normal;
}
.prompt-coach-option-head .coach-signature {
  padding: 3px 5px;
  border: 1px solid rgba(var(--accent-hot-rgb),.42);
  border-radius: 4px;
  color: var(--accent-hot);
  font: 600 6px/1 ui-monospace, monospace;
  letter-spacing: .1em;
}
.prompt-coach-selection {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid rgba(var(--accent-hot-rgb),.55);
  border-radius: 999px;
  background: rgba(var(--accent-rgb),.11);
  color: #ffd8e3;
  font: 700 6px/1 ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prompt-coach-option-description {
  display: block;
  margin-top: 5px;
  color: #80909c;
  font-size: 9px;
  line-height: 1.45;
}
.prompt-coach-option-preview {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: #aab8c1;
  font-size: 10px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.prompt-coach-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(204,236,255,.09);
}
.prompt-coach-actions > span {
  color: #6f7d87;
  font-size: 9px;
}
.prompt-coach-as-is {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(var(--accent-hot-rgb),.22);
  border-radius: 8px;
  background: rgba(var(--accent-rgb),.025);
  color: #b9cad4;
  font-size: 9px;
  cursor: pointer;
}
.prompt-coach-as-is:hover {
  border-color: rgba(var(--accent-hot-rgb),.48);
  color: #fff;
}
.prompt-coach-as-is.is-selected {
  border-color: rgba(var(--accent-hot-rgb),.7);
  background: rgba(var(--accent-rgb),.085);
  color: #fff;
  box-shadow: 0 0 18px rgba(var(--accent-rgb),.09);
}
.prompt-coach-as-is .prompt-coach-selection { margin-left: 7px; }
.prompt-coach-locked {
  border-color: rgba(var(--accent-hot-rgb),.34);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb),.075), transparent 48%),
    rgba(9,11,16,.84);
}
.prompt-coach-improvements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.prompt-coach-improvement {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(204,236,255,.09);
  border-radius: 10px;
  background: rgba(204,236,255,.018);
}
.prompt-coach-improvement strong,
.prompt-coach-improvement span {
  display: block;
}
.prompt-coach-improvement strong {
  color: var(--ice-strong);
  font-family: var(--font-signal);
  font-size: 11px;
  font-weight: 600;
}
.prompt-coach-improvement span {
  margin-top: 5px;
  color: #7f8f9a;
  font-size: 9px;
  line-height: 1.45;
}
.prompt-coach-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prompt-coach-unlock {
  min-height: 30px;
  padding: 7px 11px;
  font-size: 9px;
}
@media (max-width: 820px) {
  .prompt-coach-options { grid-template-columns: 1fr; }
  .prompt-coach-improvements { grid-template-columns: 1fr; }
  .prompt-coach-option-preview { -webkit-line-clamp: 2; }
  .prompt-coach-source-hint { align-items: flex-start; flex-direction: column; }
  .prompt-coach-source-action { width: 100%; }
  .prompt-coach-actions { align-items: flex-start; flex-direction: column; }
  .prompt-coach-action-buttons { width: 100%; flex-direction: column-reverse; align-items: stretch; }
  .prompt-coach-action-buttons button { width: 100%; }
}
.image-message .image-card { width: min(620px, calc(100% - 44px)); overflow: hidden; border: 1px solid rgba(var(--accent-hot-rgb),.28); border-radius: 14px; background: radial-gradient(circle at 25% 0%, rgba(var(--accent-rgb),.08), transparent 42%), rgba(9,11,16,.88); box-shadow: 0 16px 48px rgba(0,0,0,.26), 0 0 26px rgba(var(--accent-rgb),.045); }
.image-card-status { min-height: 48px; display: flex; align-items: center; padding: 13px 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.image-message:not(.image-error):not(.image-ready) .image-card-status::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; margin-right: 9px; border-radius: 50%; background: var(--accent-hot); box-shadow: 0 0 10px rgba(var(--accent-rgb),.7); animation: pulse 1.25s infinite; }
.image-card-media { position: relative; display: grid; width: 100%; max-height: 640px; aspect-ratio: var(--image-card-aspect-ratio, 1 / 1); place-items: center; overflow: hidden; border-top: 1px solid var(--line); background: #020204; }
.image-card-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 25%, rgba(var(--accent-rgb),.035) 45%, rgba(255,255,255,.035) 50%, transparent 70%); background-size: 220% 100%; animation: image-card-reserve 2.1s ease-in-out infinite; }
.image-card-media.is-loaded::before { display: none; }
.image-card-media img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; background: #020204; }
.image-message.image-error .image-card-media { display: none; }
@keyframes image-card-reserve { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.image-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); }
.image-card-actions .response-feedback-button, .video-card-actions .response-feedback-button { margin-top: 0; flex: 0 1 auto; text-align: left; }
.image-card-actions a { color: var(--ice); font-size: 11px; text-decoration: none; text-shadow: var(--ice-glow); }
.image-message.image-error .image-card { border-color: rgba(255,59,104,.38); }
.image-message.image-error .image-card-status { color: #ff91aa; }
.video-message .video-card { width: min(720px, calc(100% - 44px)); overflow: hidden; border: 1px solid rgba(var(--accent-hot-rgb),.28); border-radius: 14px; background: radial-gradient(circle at 25% 0%, rgba(var(--accent-rgb),.08), transparent 42%), rgba(9,11,16,.88); box-shadow: 0 16px 48px rgba(0,0,0,.26), 0 0 26px rgba(var(--accent-rgb),.045); }
.video-card-status { min-height: 48px; display: flex; align-items: center; padding: 13px 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.video-message:not(.video-error):not(.video-ready) .video-card-status::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; margin-right: 9px; border-radius: 50%; background: var(--accent-hot); box-shadow: 0 0 10px rgba(var(--accent-rgb),.7); animation: pulse 1.25s infinite; }
.video-card .video-poster { display: block; width: 100%; max-height: 640px; object-fit: contain; background: #020204; border-top: 1px solid var(--line); }
.video-card video { display: block; width: 100%; max-height: 640px; background: #020204; border-top: 1px solid var(--line); }
.video-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; padding: 10px 14px; border-top: 1px solid var(--line); }
.video-card-actions .response-feedback-button { margin-right: auto; }
.video-card-actions a { color: var(--ice); font-size: 11px; text-decoration: none; text-shadow: var(--ice-glow); }
.video-message.video-error .video-card { border-color: rgba(255,59,104,.38); }
.video-message.video-error .video-card-status { color: #ff91aa; }
@keyframes pulse { 50% { opacity: .2; } }
.composer-wrap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px max(24px, calc((100% - var(--chat-content-width)) / 2)) 12px; background: linear-gradient(0deg, #06070b 68%, rgba(6,7,11,0)); }
.composer-main-row { display: block; }
.development-note { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; padding: 6px 10px; border: 1px solid rgba(255,91,130,.38); border-radius: 9px; background: rgba(12,8,12,.96); color: #ffafc0; box-shadow: 0 0 10px rgba(255,45,96,.09), inset 0 0 8px rgba(255,45,96,.025); backdrop-filter: blur(9px); }
.development-note p { margin: 0; color: #ffafc0; font-size: var(--type-helper) !important; line-height: var(--line-helper); text-shadow: 0 0 6px rgba(255,91,130,.14); }
.image-quality-row { display: flex; align-items: center; gap: 10px; margin: 7px -2px 0; padding: 7px 2px 0; border-top: 1px solid rgba(101,255,183,.1); }
.image-quality-title { color: var(--faint); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.image-quality-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid rgba(var(--accent-hot-rgb),.18); border-radius: 7px; background: rgba(2,4,8,.65); }
.image-quality-switch button { min-height: 24px; cursor: pointer; border: 0; border-radius: 5px; padding: 4px 9px; background: transparent; color: #71808b; font: 600 8px/1 var(--font-signal); letter-spacing: .04em; }
.image-quality-switch button:hover { color: #dcecf5; background: rgba(255,255,255,.035); }
.image-quality-switch button.active { background: rgba(var(--accent-rgb),.13); color: #ffd7e1; box-shadow: inset 0 0 0 1px rgba(var(--accent-hot-rgb),.28), 0 0 12px rgba(var(--accent-rgb),.08); }
.image-quality-switch button.locked { color: #59626b; }
.image-quality-estimate { margin-left: auto; color: #82919c; line-height: 1.35; text-align: right; }
.public-service-notice { margin: 0 0 8px; padding: 9px 11px; border: 1px solid rgba(var(--accent-hot-rgb),.25); border-radius: 9px; background: rgba(20,6,10,.9); color: #ffb4c5; font-size: 10px; line-height: 1.45; }
.code-assist-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; padding: 9px 10px 9px 12px; border: 1px solid rgba(var(--accent-hot-rgb),.25); border-radius: 10px; background: linear-gradient(110deg, rgba(30,8,17,.92), rgba(7,10,15,.94)); box-shadow: 0 10px 28px rgba(0,0,0,.2), inset 0 0 24px rgba(var(--accent-rgb),.025); backdrop-filter: blur(9px); }
.code-assist-note > div:first-child { min-width: 0; }.code-assist-note strong { color: #ffc0cf; font-family: var(--font-signal); font-size: 11px; font-weight: 600; }.code-assist-note p { margin: 2px 0 0; color: #93a2ad; font-size: 9px; line-height: 1.45; }
.code-assist-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }.code-assist-actions button { cursor: pointer; }
.code-format-action, .code-upgrade-action { border: 1px solid rgba(var(--accent-hot-rgb),.28); border-radius: 7px; padding: 7px 9px; background: rgba(var(--accent-rgb),.075); color: #ffd5df; font-size: 9px; }.code-format-action:hover, .code-upgrade-action:hover { border-color: rgba(var(--accent-hot-rgb),.58); background: rgba(var(--accent-rgb),.14); }
.code-note-close { width: 27px; height: 27px; border: 0; background: transparent; color: #6e7a84; font-size: 17px; }.code-note-close:hover { color: #fff; }
.chat-panel.code-mode .messages { padding-bottom: var(--composer-safe-space); }
.composer-entry { min-width: 0; flex: 1; }
.attachment-drafts { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.attachment-draft { display: grid; grid-template-columns: 42px minmax(0, 1fr) 27px; align-items: center; gap: 9px; width: min(310px, 100%); min-height: 50px; padding: 5px 6px; border: 1px solid rgba(var(--accent-hot-rgb),.24); border-radius: 10px; background: rgba(11,9,14,.94); box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.attachment-draft img { width: 42px; height: 42px; object-fit: cover; border-radius: 7px; background: #020204; }
.attachment-file-icon { display: grid; place-items: center; min-height: 86px; background: linear-gradient(145deg, rgba(var(--accent-rgb),.12), rgba(204,236,255,.035)); color: #ff9db4; font: 700 20px/1 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .05em; }
.attachment-file-icon.compact { width: 42px; min-height: 42px; border-radius: 7px; font-size: 9px; }
.attachment-draft-copy { min-width: 0; display: grid; gap: 3px; }
.attachment-draft-copy strong { overflow: hidden; color: #dceaf2; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.attachment-draft-copy span { color: var(--faint); font-size: 8px; }
.attachment-draft button { width: 27px; height: 27px; border: 0; background: transparent; color: #7d8992; cursor: pointer; font-size: 17px; }
.attachment-draft button:hover { color: #ff91aa; }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 16px; background: rgba(12,14,20,.94); border: 1px solid var(--line-strong); border-radius: 13px; box-shadow: 0 16px 50px rgba(0,0,0,.48), inset 0 0 26px rgba(204,236,255,.018); }
.composer:focus-within { border-color: rgba(var(--accent-hot-rgb),.62); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.045), 0 0 28px rgba(var(--accent-rgb),.1); }
.composer textarea { flex: 1; resize: none; max-height: 160px; border: 0; outline: 0; background: transparent; color: var(--text); line-height: 1.5; padding: 8px 0 6px; font-size: 14px; }
.composer textarea::placeholder { color: #637381; }
.code-button, .attachment-button { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid rgba(204,236,255,.14); border-radius: 9px; background: rgba(204,236,255,.03); color: #8da0ad; cursor: pointer; }
.code-button { font: 700 10px/1 ui-monospace, "Cascadia Code", Consolas, monospace; }
.attachment-icon { position: relative; width: 10px; height: 19px; border: 1.7px solid currentColor; border-radius: 7px; transform: rotate(38deg); }
.attachment-icon::after { content: ""; position: absolute; left: 2px; top: 3px; width: 4px; height: 11px; border: 1.5px solid currentColor; border-radius: 5px; border-top-color: transparent; }
.code-button:hover, .code-button.active, .attachment-button:hover, .attachment-button.uploading { border-color: rgba(var(--accent-hot-rgb),.5); background: rgba(var(--accent-rgb),.08); color: #ffd5df; box-shadow: 0 0 16px rgba(var(--accent-rgb),.08); }
.attachment-button.uploading .attachment-icon { animation: pulse 1s infinite; }
.workspace-drop-overlay { position: fixed; z-index: 1200; inset: 14px; display: grid; place-items: center; pointer-events: none; border: 1px solid rgba(var(--accent-hot-rgb),.88); border-radius: 18px; background: rgba(3,5,9,.82); box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), inset 0 0 90px rgba(var(--accent-rgb),.15), 0 0 48px rgba(var(--accent-rgb),.24); backdrop-filter: blur(16px); }
.workspace-drop-overlay.hidden { display: none; }
.workspace-drop-overlay > div { min-width: min(440px, calc(100vw - 64px)); padding: 38px 34px; border: 1px solid rgba(var(--accent-hot-rgb),.45); border-radius: 14px; background: linear-gradient(145deg, rgba(30,7,16,.94), rgba(4,8,13,.96)); text-align: center; box-shadow: 0 28px 80px rgba(0,0,0,.48), 0 0 34px rgba(var(--accent-rgb),.16); }
.workspace-drop-overlay span { display: block; margin-bottom: 12px; color: var(--accent-hot); font: 700 9px/1 ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: .18em; }
.workspace-drop-overlay strong { display: block; color: #f5fbff; font-family: var(--font-signal); font-size: 30px; font-weight: 600; }
.workspace-drop-overlay p { margin: 9px 0 0; color: #9eb0bc; font-size: 14px; }
.input-counter { flex: 0 0 auto; align-self: center; color: #56636e; font: 8px/1 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: nowrap; }.input-counter.near-limit { color: #ffd181; }.input-counter.over-limit { color: #ff7899; }
.send-button { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid var(--accent-hot); border-radius: 9px; background: rgba(var(--accent-rgb),.18); color: white; font-size: 20px; cursor: pointer; box-shadow: 0 0 16px rgba(var(--accent-rgb),.3); }.send-button:hover { background: rgba(var(--accent-rgb),.3); box-shadow: var(--red-glow); }.send-button:disabled { opacity: .38; cursor: wait; }
.composer-disclaimer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 9px; text-align: center; color: #5d6470; font-size: 9px; margin: 8px 0 0; }
.composer-disclaimer button { border: 0; padding: 0; background: transparent; color: #8295a3; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(204,236,255,.2); text-underline-offset: 3px; }
.composer-disclaimer button:hover { color: #ccecff; text-decoration-color: rgba(var(--accent-hot-rgb),.55); }
.message-attachments { display: grid; gap: 7px; margin-bottom: 9px; }
.message-attachment { display: block; width: min(320px, 100%); overflow: hidden; border: 1px solid rgba(204,236,255,.14); border-radius: 10px; background: #030407; color: inherit; text-decoration: none; }
.message-attachment img { display: block; width: 100%; max-height: 260px; object-fit: contain; background: #020204; }
.message-attachment-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; color: #8da0ad; font-size: 9px; }
.message-attachment-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-attachment:hover { border-color: rgba(var(--accent-hot-rgb),.4); }
.message-row.user .message-attachments { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.message-row.user .message-attachment { width: min(190px, 48vw); }
.message-row.user .message-attachment img { height: 145px; object-fit: contain; }

@media (max-width: 620px) {
  .workspace-drop-overlay { inset: 8px; border-radius: 14px; }
  .workspace-drop-overlay > div { min-width: calc(100vw - 40px); padding: 30px 20px; }
  .workspace-drop-overlay strong { font-size: 24px; }
  .workspace-drop-overlay p { font-size: 13px; }
}

@media (min-width: 1600px) and (min-height: 820px) {
  :root { --chat-content-width: 1040px; }
  .app-shell { grid-template-columns: 310px 1fr; }
  .app-sidebar { padding: 27px 20px 19px; }
  .brand-compact .brand-mark { width: 38px; height: 38px; }
  .new-chat-button { padding: 15px 16px; border-radius: 11px; font-size: 15px; }
  .conversation-list-head { padding-inline: 12px; font-size: 9px; }
  .conversation-select { padding: 12px 5px 12px 13px; font-size: 14px; }
  .nav-item { padding: 12px 14px; font-size: 15px; }
  .avatar { width: 39px; height: 39px; flex-basis: 39px; }
  .user-card-copy strong { font-size: 14px; }
  .user-card-copy small { font-size: 11px; }
  .chat-header { height: 82px; flex-basis: 82px; padding-inline: 30px; }
  .chat-header > div:first-of-type { max-width: 310px; }
  .chat-header strong { font-size: 16px; }
  .chat-header small { font-size: 11px; }
  .usage-chip { font-size: 10px; }
  .messages { padding-top: 68px; padding-bottom: var(--composer-safe-space); }
  .empty-state { max-width: 900px; }
  .empty-mark { width: 68px; height: 68px; }
  .empty-state h1 { font-size: 46px; }
  .empty-state > p { max-width: 680px; font-size: 16px; }
  .message-row { gap: 16px; margin-bottom: 32px; }
  .message-row.user .message-bubble { padding: 14px 18px; font-size: 16px; }
  .message-row.assistant .message-bubble { font-size: 16px; }
  .message-mark { width: 37px; height: 37px; flex-basis: 37px; }
  .image-message .image-card { width: min(760px, calc(100% - 53px)); }
  .image-card-status { min-height: 54px; padding: 15px 18px; font-size: 14px; }
  .image-card-actions a { font-size: 13px; }
  .video-message .video-card { width: min(820px, calc(100% - 53px)); }
  .video-card-status { min-height: 54px; padding: 15px 18px; font-size: 14px; }
  .video-card-actions a { font-size: 13px; }
  .composer { padding: 12px 12px 12px 18px; }
  .composer textarea { font-size: 16px; }
  .code-button, .attachment-button, .send-button { width: 44px; height: 44px; flex-basis: 44px; }
  .image-quality-title { font-size: 9px; }
  .image-quality-switch button { min-height: 28px; padding-inline: 12px; font-size: 9px; }
  .composer-disclaimer { font-size: 10px; }
}

.modal { width: min(440px, calc(100% - 30px)); color: var(--text); background: radial-gradient(circle at 50% -10%, rgba(var(--accent-rgb),.08), transparent 42%), rgba(8,10,15,.98); border: 1px solid rgba(var(--accent-hot-rgb),.34); border-radius: 16px; padding: 30px; box-shadow: var(--shadow), 0 0 36px rgba(var(--accent-rgb),.1), 0 0 1px rgba(204,236,255,.8); }
.modal::backdrop { background: rgba(2,4,8,.76); backdrop-filter: blur(7px); }.modal-close { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); font-size: 23px; cursor: pointer; }
.modal h2 { font-family: var(--font-signal); font-size: 28px; font-weight: 300; letter-spacing: -.025em; margin: 12px 0 7px; text-shadow: 0 0 16px rgba(204,236,255,.1); }.modal > p { color: var(--muted); font-size: 13px; line-height: 1.5; }.modal-brand { display: flex; justify-content: center; }.auth-modal { text-align: center; }.auth-modal .brand-mark { width: 45px; height: 45px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; background: #040509; border-radius: 9px; margin: 24px 0 18px; }.auth-tabs button { border: 0; background: transparent; color: var(--muted); padding: 9px; border-radius: 7px; cursor: pointer; font-size: 12px; }.auth-tabs button.active { background: rgba(var(--accent-rgb),.11); color: var(--ice-strong); box-shadow: inset 0 0 14px rgba(var(--accent-rgb),.06); }
.modal form { display: grid; gap: 13px; text-align: left; }.modal label { display: grid; gap: 7px; color: #b9ceda; font-size: 11px; }.modal input { width: 100%; border: 1px solid var(--line); background: #040509; color: var(--text); border-radius: 9px; padding: 12px 13px; outline: 0; }.modal input:focus { border-color: rgba(var(--accent-hot-rgb),.58); box-shadow: 0 0 18px rgba(var(--accent-rgb),.08); }
.feedback-modal { width: min(560px, calc(100% - 30px)); }
.feedback-modal select, .feedback-modal textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #040509; color: var(--text); font: inherit; }
.feedback-modal select { height: 43px; padding: 0 12px; color-scheme: dark; cursor: pointer; }
.feedback-modal textarea { min-height: 140px; padding: 12px 13px; resize: vertical; line-height: 1.55; }
.feedback-modal select:focus, .feedback-modal textarea:focus { border-color: rgba(var(--accent-hot-rgb),.58); box-shadow: 0 0 18px rgba(var(--accent-rgb),.08); }
.feedback-counter { justify-self: end; color: var(--faint); font: 8px/1 ui-monospace, monospace; }
.feedback-privacy { margin: -2px 0 0; color: var(--faint); font-size: 9px; line-height: 1.5; }
.registration-consents { display: grid; gap: 10px; padding: 4px 0; }
.modal .consent-row { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 9px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.modal .consent-row input { width: 16px; height: 16px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.modal .consent-row a { color: var(--ice); text-decoration: underline; text-decoration-color: rgba(204,236,255,.35); text-underline-offset: 2px; }
.form-error { border: 1px solid rgba(255,43,97,.3); background: rgba(255,43,97,.075); color: #ff87a4 !important; padding: 9px 11px; border-radius: 9px; font-size: 11px !important; margin: 0 !important; }
.form-success { border: 1px solid rgba(116,255,190,.24); background: rgba(58,204,137,.07); color: #adf5d2 !important; padding: 10px 11px; border-radius: 9px; font-size: 11px !important; line-height: 1.5; margin: 0 !important; }
.auth-recovery-link { justify-self: center; border: 0; padding: 3px 6px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(204,236,255,.25); text-underline-offset: 3px; }
.auth-recovery-link:hover { color: var(--ice); text-decoration-color: rgba(204,236,255,.65); }
.password-reset-modal section > p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.password-reset-modal > .auth-recovery-link { margin-top: 17px; }
.modal-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: 9px; font-weight: 750; }.account-modal { max-height: min(860px, calc(100vh - 30px)); overflow-y: auto; }.account-profile { display: flex; align-items: center; gap: 15px; margin: 24px 0 0; padding: 16px; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 13px; }.avatar-large { width: 64px; height: 64px; flex-basis: 64px; }.account-profile-copy { display: grid; min-width: 0; gap: 4px; }.account-profile-copy > strong, .account-profile-copy > small { overflow: hidden; text-overflow: ellipsis; }.account-profile-copy > strong { font-family: var(--font-signal); }.account-profile small { color: var(--muted); }.account-avatar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 7px; }.account-avatar-actions .button { min-height: 31px; padding: 7px 11px; font-size: 9px; }.account-avatar-remove { padding: 4px 0; border: 0; background: transparent; color: var(--accent-hot); font: inherit; font-size: 9px; cursor: pointer; }.account-avatar-remove:disabled { opacity: .45; cursor: wait; }.account-avatar-hint { margin-top: 2px; font-size: 8px; line-height: 1.4; }.password-change-hint { display: block; margin: -2px 0 13px; color: var(--faint); font-size: 9px; }.password-change-modal form { margin-top: 20px; }
.account-notifications { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(204,236,255,.018); }
.account-notifications > header, .account-notification > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.account-notifications > header strong { color: var(--ice-strong); font-size: 13px; }
.account-notifications > header small, .account-notification time { color: var(--faint); font-size: 8px; }
.account-notification-list { display: grid; gap: 8px; margin-top: 11px; }
.account-notification { padding: 11px; border: 1px solid rgba(204,236,255,.08); border-radius: 10px; background: rgba(3,4,8,.55); }
.account-notification.unread { border-color: rgba(var(--accent-hot-rgb),.33); background: rgba(var(--accent-rgb),.055); box-shadow: inset 0 0 18px rgba(var(--accent-rgb),.025); }
.account-notification header strong { color: var(--ice); font-size: 11px; font-weight: 500; }
.account-notification p { margin: 8px 0 0; color: #bdccd5; font-size: 10px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.account-notification-read { margin-top: 9px; padding: 0; border: 0; background: transparent; color: var(--accent-hot); font: inherit; font-size: 9px; cursor: pointer; }
.account-notification-read:disabled { opacity: .45; cursor: wait; }
.account-notification-empty { margin: 0; color: var(--faint); font-size: 10px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); }.setting-row strong { font-size: 13px; }.setting-row p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.accent-setting { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px 0 18px; border-top: 0; border-bottom: 1px solid var(--line); }
.accent-picker { display: flex; flex-wrap: wrap; gap: 9px; }
.accent-modal { width: min(520px, calc(100% - 30px)); }
.accent-dialog-copy { max-width: 390px; margin: 8px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.accent-dialog-note { display: block; margin-top: 18px; color: var(--faint); font-size: 9px; line-height: 1.5; }
.accent-modal .accent-picker { gap: 12px; }
.accent-modal .accent-swatch { width: 42px; height: 42px; border-radius: 11px; }
.accent-swatch { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid rgba(204,236,255,.2); border-radius: 9px; background: var(--swatch-color); color: white; font: 700 13px/1 var(--font-ui); text-shadow: 0 1px 4px rgba(0,0,0,.65); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 7px 18px rgba(0,0,0,.22); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.accent-swatch[data-accent-option="obsidian"] { border-color: rgba(190,199,210,.54); background: radial-gradient(circle at 34% 28%,#30353d 0,#111318 46%,#050609 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12),0 0 16px rgba(154,164,176,.14),0 7px 18px rgba(0,0,0,.38); }
.accent-swatch:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 9px 24px color-mix(in srgb, var(--swatch-color) 34%, transparent); }
.accent-swatch.active { outline: 2px solid var(--ice-strong); outline-offset: 2px; box-shadow: 0 0 18px color-mix(in srgb, var(--swatch-color) 48%, transparent); }
.accent-swatch:disabled { opacity: .38; cursor: not-allowed; }
.accent-swatch.active:disabled { opacity: 1; }
.customer-channel-access { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 4px; padding: 16px; border: 1px solid rgba(var(--accent-hot-rgb),.32); border-radius: 13px; background: linear-gradient(135deg, rgba(var(--accent-rgb),.09), rgba(204,236,255,.025)); box-shadow: inset 0 0 24px rgba(var(--accent-rgb),.025); }
.customer-channel-access strong { color: var(--ice-strong); font-family: var(--font-signal); font-weight: 500; }
.customer-channel-access p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.setting-actions { display: flex; gap: 8px; }
.setting-actions .button { padding: 9px 12px; font-size: 11px; }
.account-modal > .button-full { margin-top: 18px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 26px; transform: translateX(-50%); background: #242a33; border: 1px solid var(--line-strong); padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 12px; animation: toast-in .2s ease; } @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.mobile-backdrop { position: fixed; inset: 0; z-index: 8; background: rgba(0,0,0,.6); }

@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; align-items: center; padding-top: 36px; }.hero::before { opacity: .48; }.hero::after { opacity: .2; }.hero-signal { width: min(440px, 88%); max-height: 570px; }.hero-entry { margin-top: 21px; }.manifesto { padding: 76px 0 96px; }.manifesto-header { position: static; }.manifesto-header p { max-width: 560px; }.manifesto-list { grid-template-columns: 1fr; }.manifesto-list article { min-height: 0; }.manifesto-list article + article { border-top: 1px solid var(--line); border-left: 0; }.product-story { grid-template-columns: 1fr; gap: 54px; padding: 86px 0 98px; }.product-story-copy p { max-width: 560px; }.product-preview { width: min(680px, 100%); margin: auto; transform: none; }.features { grid-template-columns: 1fr; }.features article, .features article + article { border-left: 0; border-top: 1px solid var(--line); padding: 31px 0; }.features article:first-child { border-top: 0; }.ecosystem { grid-template-columns: 1fr; gap: 34px; }.app-shell { grid-template-columns: 1fr; }.app-sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 280px; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); }.app-sidebar.open { transform: translateX(0); }.menu-button, .mobile-only { display: block; }.chat-header { gap: 13px; }
  }

@media (max-width: 900px) {
  .manifesto { padding-top: 36px; }
}

  @media (max-width: 560px) {
    .legal-nav, .legal-shell { width: min(100% - 30px, 920px); }
  }

@media (max-width: 600px) {
 .shell { width: min(calc(100% - 28px), 1180px); }.landing-nav { height: 72px; }.landing-nav .button-ghost { display: none; }.landing-nav .button-primary { padding: 10px 14px; }.hero { min-height: auto; padding: 28px 0 0; }.hero::before, .hero::after { display: none; }.hero-fireflies { top: -52px; width: 125vw; height: calc(100% + 135px); }.hero-fireflies i:nth-child(1), .hero-fireflies i:nth-child(3), .hero-fireflies i:nth-child(8), .hero-fireflies i:nth-child(11), .hero-fireflies i:nth-child(13) { display: none; }.hero-entry { width: 100%; margin-top: 14px; padding: 20px 14px 18px; }.hero-promise { margin-bottom: 19px; }.hero-promise-kicker { margin-bottom: 9px; font-size: 8px; letter-spacing: .14em; }.hero-promise strong { font-size: clamp(28px, 9vw, 36px); }.hero-promise-copy { font-size: 15px; line-height: 1.45; }.hero-promise-proof { max-width: 260px; justify-content: center; font-size: 11px; }.hero-actions { align-items: stretch; flex-direction: column; }.hero-actions .button { width: 100%; }.hero-note { line-height: 1.5; text-align: center; overflow-wrap: anywhere; }.hero-signal { width: 50%; padding: 10px; }.hero-signal-meta { font-size: 5px; }.hero-signal-line { left: 10px; right: 10px; bottom: 35px; }.hero-signal-words { left: 10px; right: 10px; bottom: 13px; font-size: 5px; }.manifesto-ticker { margin-top: 38px; }.manifesto-ticker > div { justify-content: flex-start; min-height: 46px; gap: 26px; font-size: 8px; }.manifesto { padding: 64px 0 76px; }.manifesto-header { margin-bottom: 42px; }.manifesto-header h2, .product-story h2 { font-size: 40px; }.manifesto-list article { grid-template-columns: 35px 1fr; gap: 10px; padding: 35px 0 39px; }.manifesto-copy blockquote { margin-top: 12px; font-size: 27px; line-height: 1.1; }.product-story { gap: 43px; padding: 72px 0 76px; }.product-story-copy .button { width: 100%; }.preview-body { min-height: 340px; grid-template-columns: 45px 1fr; }.preview-chat { padding: 36px 17px 16px; }.preview-sidebar { padding-inline: 8px; }.features { padding-bottom: 54px; }.ecosystem { padding: 62px 0 72px; }.ecosystem-links { grid-template-columns: 1fr; }.ecosystem-links a, .ecosystem-pack-card { min-height: 112px; }.messages { padding: 54px 15px var(--composer-safe-space); }.chat-panel.code-mode .messages { padding-bottom: var(--composer-safe-space); }.composer-wrap { padding-inline: 12px; }.public-load-row { flex-wrap: wrap; gap: 5px 12px; }.public-load-title { width: 100%; }.image-quality-row { align-items: flex-start; flex-wrap: wrap; gap: 6px 8px; }.image-quality-title { width: 100%; }.image-quality-estimate { margin-left: auto; align-self: center; }.code-assist-note { align-items: flex-start; flex-direction: column; gap: 8px; }.code-assist-actions { width: 100%; }.code-note-close { margin-left: auto; }.composer { gap: 7px; padding-left: 9px; }.code-button { flex-basis: 34px; width: 34px; }.input-counter { display: none; }.empty-state { margin-top: 8vh; }.message-row.user .message-bubble { max-width: 88%; }.message-code-block code { font-size: 11px; }.modal { padding: 25px 20px; }.setting-row { align-items: flex-start; }.setting-actions { flex-direction: column; }.customer-channel-access { align-items: stretch; flex-direction: column; }.customer-channel-access .button { width: 100%; }.usage-chip { padding-inline: 7px; font-size: 9px; }.chat-header { gap: 7px; padding-inline: 15px; }.chat-header > div:first-of-type small { display: none; }
}

.app-shell.visual-prompt-mode #visual-lab-panel.simple-prompt-mode .lab-builder-field:not(.lab-builder-field-primary),
.app-shell.visual-prompt-mode #visual-lab-panel.simple-prompt-mode #lab-builder-frame-group,
.app-shell.visual-prompt-mode #visual-lab-panel.simple-prompt-mode .lab-builder-select-grid > label[for="lab-builder-angle"],
.app-shell.visual-prompt-mode #visual-lab-panel.simple-prompt-mode .lab-builder-select-grid > label[for="lab-builder-mood"],
.app-shell.visual-prompt-mode #visual-lab-panel.simple-prompt-mode .lab-builder-manual-toggle {
  display: none;
}
.app-shell.visual-prompt-mode #visual-lab-panel:is(.simple-prompt-mode, .trim-shadow-scaffold) .lab-builder-shadow {
  display: contents;
}
.app-shell.visual-prompt-mode #visual-lab-panel:is(.simple-prompt-mode, .trim-shadow-scaffold) .lab-builder-shadow > header,
.app-shell.visual-prompt-mode #visual-lab-panel:is(.simple-prompt-mode, .trim-shadow-scaffold) .lab-builder-layers,
.app-shell.visual-prompt-mode #visual-lab-panel:is(.simple-prompt-mode, .trim-shadow-scaffold) .lab-prompt-build-step,
.app-shell.visual-prompt-mode #visual-lab-panel:is(.simple-prompt-mode, .trim-shadow-scaffold) .lab-builder-prompt-preview {
  display: none;
}
.app-shell.visual-prompt-mode #visual-lab-panel:is(.simple-prompt-mode, .trim-shadow-scaffold) .lab-generate-button {
  grid-column: 1;
  justify-self: center;
  width: min(100%, 360px);
  min-height: 54px;
  margin: 0 auto;
  justify-content: center;
  gap: 11px;
}

@media (max-width: 1000px) {
  .guest-lab { grid-template-columns: 1fr; gap: 34px; }
  .guest-lab-copy { position: static; }
  .guest-lab-copy > p { max-width: 650px; }
  .capabilities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .guest-lab { gap: 25px; padding: 66px 0 58px; }
  .guest-lab-copy h2 { font-size: 39px; }
  .guest-console { padding: 15px; border-radius: 14px; }
  #guest-preview-input { min-height: 155px; padding: 14px; font-size: 13px; }
  .guest-submit-row { align-items: stretch; flex-direction: column-reverse; }
  .guest-submit-row .button { width: 100%; }
  .guest-submit-row > span { text-align: right; }
  .guest-result-head small { display: none; }
  .guest-result-prompt { max-width: 92%; }
  .guest-coach-options { grid-template-columns: 1fr; }
  .guest-coach-options article,
  .guest-coach-options article:nth-last-child(-n+2) { grid-column: auto; }
  .guest-coach-options p { -webkit-line-clamp: 4; }
  .guest-result-actions { grid-template-columns: 1fr; }
  .guest-result-actions .button { width: 100%; }
  .capabilities-showcase { padding-bottom: 76px; }
  .capabilities-showcase > header { grid-template-columns: 1fr; gap: 17px; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .capabilities-grid article { min-height: 0; }
  .image-card-actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 600px) { .manifesto-copy p { font-size: 12px; } }

@media (max-width: 600px) {
  .chat-panel { --composer-safe-space: 250px; }
  .chat-atmosphere { opacity: .62; }
  .chat-atmosphere::before { top: 7%; right: -30%; width: 95vw; height: 95vw; }
  .chat-atmosphere::after { left: -36%; width: 82vw; height: 82vw; }
  .chat-atmosphere i:nth-child(1), .chat-atmosphere i:nth-child(4), .chat-atmosphere i:nth-child(6), .chat-atmosphere i:nth-child(9) { display: none; }
  .messages { padding-bottom: var(--composer-safe-space); }
  .development-note { align-items: flex-start; flex-direction: column; gap: 5px; }
  .composer { gap: 5px; }
  .attachment-button, .code-button { flex-basis: 32px; width: 32px; height: 36px; }
}



@media (max-width: 520px) {
  .account-profile { align-items: flex-start; padding: 14px; }
  .account-profile .avatar-large { width: 56px; height: 56px; flex-basis: 56px; }
  .account-avatar-actions { gap: 10px; }
  .account-avatar-actions .button { min-height: 34px; }
}

/*
 * Platform readability contract.
 *
 * Explanatory copy is ordinary product text, not decoration. Keep it at the
 * helper size with a regular weight and readable contrast. Compact captions
 * may use the caption size; 10px is reserved for real technical metadata.
 * These rules intentionally cover every main Enough surface, not Visual Lab
 * alone. Wide-screen profiles below may scale the type further.
 */
#landing-view small,
#app-view small,
.modal small {
  color: var(--copy-tertiary);
  font-size: var(--type-caption) !important;
  font-weight: 450;
  line-height: 1.5;
}

:is(#app-view, .modal) :is(
  .lab-workflow-note,
  .lab-video-development-note,
  .lab-header p,
  .lab-control-group small,
  .lab-prompt-build-step small,
  .lab-source-empty p,
  .lab-source-selected p,
  .lab-boundary-note,
  .lab-result-status small,
  .lab-result-body p,
  .lab-empty p,
  .guest-image-job-status p,
  .guest-coach-options p,
  .guest-result-actions p,
  .plan-card p,
  .code-assist-note p,
  .feedback-privacy,
  .account-notification p,
  .account-notification-empty,
  .setting-row p,
  .customer-channel-access p
),
.modal p {
  color: var(--copy-secondary);
  font-family: var(--font-ui);
  font-size: var(--type-helper) !important;
  font-weight: 450;
  line-height: var(--line-helper);
}

:is(#app-view, .modal) :is(
  .lab-control-label,
  .lab-prompt-head > label,
  .lab-prompt-build,
  .lab-control-grid select,
  .lab-source-keep b,
  .lab-source-selected button,
  .lab-source-upload,
  .lab-source-selected strong,
  .lab-source-banner span,
  .lab-source-banner strong,
  .lab-result-actions button,
  .lab-result-actions a,
  .lab-results-head button,
  .guest-examples button,
  .guest-inline-register,
  .guest-result-image figcaption,
  .guest-coach-options span,
  .composer-disclaimer,
  .attachment-draft-copy span,
  .message-attachment-meta,
  .account-notification-read
),
.modal :is(label, button, select, input, textarea) {
  font-size: var(--type-caption) !important;
  font-weight: 500;
}

#app-view :is(.lab-result-meta, .lab-result-project, .lab-source-empty span, .lab-source-selected span),
#landing-view .section-kicker {
  font-size: var(--type-meta) !important;
}

/*
 * Wide desktop profile.
 *
 * At 100% browser scale a 1920–2560px display used to keep the same compact
 * 1180/440/1040px surfaces as a laptop.  This profile gives those screens the
 * physical scale that previously appeared only after zooming the browser to
 * 150%.  At 150% the CSS viewport drops below 1900px, so the profile does not
 * stack with browser zoom.
 */
@media (min-width: 1900px) and (min-height: 800px) {
  :root {
    --chat-content-width: 1230px;
    --type-helper: 15px;
    --type-caption: 13px;
    --type-meta: 11px;
  }

  #landing-view small,
  #app-view small,
  .modal small { font-size: 15px !important; }

  .shell { width: min(1770px, calc(100% - 96px)); }
  .landing-nav { height: 120px; }
  .brand-mark { width: 52px; height: 52px; }
  .version-badge { min-height: 23px; padding: 5px 8px 4px; font-size: 11px; }
  .nav-actions { gap: 15px; }
  .button { padding: 16px 24px; border-radius: 13px; font-size: 16px; }
  .personal-gallery-nav { gap: 11px; margin: 6px 0 13px; }
  .personal-gallery-nav button { min-height: 92px; gap: 12px; padding: 17px 18px; border-radius: 15px; }
  .personal-gallery-nav button span { font-size: 24px; }
  .personal-gallery-nav button strong { font-size: 15px; line-height: 1.25; }
  .button-large { padding: 22px 33px; border-radius: 18px; font-size: 22px; }
  .button-large span { margin-left: 30px; font-size: 27px; }

  .hero { gap: clamp(42px, 5vw, 96px); padding-top: 63px; }
  .hero-signal { width: min(100%, 660px); padding: 31px; }
  .hero-signal-meta { font-size: 12px; }
  .hero-signal-line { left: 31px; right: 31px; bottom: 93px; }
  .hero-signal-words { left: 31px; right: 31px; bottom: 39px; font-size: 13px; }
  .hero-entry { width: min(100%, 990px); max-width: 990px; padding: 38px 45px 36px; }
  .hero-promise { max-width: 900px; margin-bottom: 33px; }
  .hero-promise-kicker { margin-bottom: 15px; font-size: 14px; }
  .hero-promise strong { font-size: 60px; }
  .hero-promise-copy { max-width: 855px; margin-top: 18px; font-size: 27px; }
  .hero-promise-proof { gap: 12px; margin-top: 20px; font-size: 18px; }
  .hero-promise-proof i { width: 7px; height: 7px; flex-basis: 7px; }
  .hero-note { margin-top: 25px; font-size: 18px; }

  .app-shell { grid-template-columns: 405px 1fr; }
  .app-sidebar { padding: 33px 24px 24px; }
  .sidebar-head { padding: 0 8px 30px; }
  .brand-compact .brand-mark { width: 47px; height: 47px; }
  .brand-demo-hint { top: -7px; padding: 5px 9px 5px 7px; font-size: 11px; }
  .sidebar-brand-cluster > .version-badge { top: -7px; margin-left: 11px; }
  .sidebar-brand-stack { gap: 8px; }
  .visual-gallery-brand-link { gap: 10px; padding: 4px 10px 4px 0; border-radius: 9px; }
  .visual-gallery-brand-mark { width: 47px; height: 32px; flex-basis: 47px; font-size: 14px; }
  .visual-gallery-brand-copy { font-size: 15px; }
  .new-chat-button { padding: 18px 20px; border-radius: 14px; font-size: 18px; }
  .conversation-list-head { padding: 6px 15px 12px; font-size: 12px; }
  .conversation-list { gap: 6px; max-height: min(38vh, 510px); }
  .conversation-select { padding: 15px 7px 15px 17px; font-size: 18px; }
  .nav-item { padding: 15px 18px; border-radius: 13px; font-size: 19px; }
  .plan-card { padding: 22px; border-radius: 18px; }
  .plan-card-head { font-size: 18px; }
  .plan-card p { font-size: 15px; }
  .sidebar-usage > span { font-size: 11px; }
  .avatar { width: 51px; height: 51px; flex-basis: 51px; }
  .user-card-copy strong { font-size: 18px; }
  .user-card-copy small { font-size: 14px; }

  .chat-panel { --composer-safe-space: 270px; }
  .chat-header { height: 108px; flex-basis: 108px; padding-inline: 36px; }
  .chat-header > div:first-of-type { max-width: 390px; }
  .chat-header strong { font-size: 20px; }
  .chat-header small { font-size: 15px; }
  .usage-chip { padding: 9px 13px; font-size: 13px; }
  .messages { padding-top: 86px; }
  .empty-state { max-width: 1080px; margin-top: min(5vh, 82px); }
  .empty-mark { width: 87px; height: 87px; }
  .empty-state h1 { margin: 36px 0 15px; font-size: 60px; }
  .empty-state > p { max-width: 795px; font-size: 21px; }
  .message-row { gap: 20px; margin-bottom: 39px; }
  .message-row.user .message-bubble { padding: 18px 23px; font-size: 20px; }
  .message-row.assistant .message-bubble { font-size: 20px; }
  .message-mark { width: 51px; height: 51px; flex-basis: 51px; }
  .composer-wrap { padding-bottom: 18px; }
  .composer { gap: 15px; padding: 15px 15px 15px 24px; border-radius: 19px; }
  .composer textarea { font-size: 21px; }
  .code-button, .attachment-button, .send-button { width: 54px; height: 54px; flex-basis: 54px; }
  .composer-disclaimer { font-size: 13px; }

  .modal { width: min(660px, calc(100% - 46px)); padding: 45px; border-radius: 24px; }
  .modal-close { top: 18px; right: 21px; width: 48px; height: 48px; font-size: 31px; }
  .modal h2 { margin: 18px 0 11px; font-size: 42px; }
  .modal > p { font-size: 19px; }
  .auth-modal .brand-mark { width: 68px; height: 68px; }
  .auth-tabs { gap: 5px; margin: 36px 0 27px; padding: 6px; border-radius: 13px; }
  .auth-tabs button { padding: 14px; border-radius: 10px; font-size: 17px; }
  .modal form { gap: 19px; }
  .modal label { gap: 10px; font-size: 16px; }
  .modal input { padding: 18px 19px; border-radius: 13px; font-size: 17px; }
  .auth-recovery-link { padding: 5px 9px; font-size: 16px; }

}

@media (max-width: 1100px) {
  .lab-workspace { grid-template-columns: minmax(400px, 440px) minmax(0,1fr); }
  .lab-controls { padding: 20px; }
  .lab-results { padding-inline: 24px; }
  .lab-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .visual-lab-panel { height: 100dvh; overflow-y: auto; }
  .lab-header { min-height: 150px; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 10px; padding: 16px 18px; }
  .lab-header h1 { font-size: 21px; }
  .lab-header p { max-width: 520px; }
  .lab-runtime-status { display: none; }
  .lab-workspace { display: block; height: auto; }
  .lab-controls, .lab-results { overflow: visible; padding: 20px 18px 28px; border-right: 0; }
  .lab-controls { border-bottom: 1px solid rgba(204,236,255,.1); }
  .lab-results { min-height: 54vh; }
  .lab-empty { margin-top: 10vh; }
}

@media (max-width: 600px) {
  .lab-header { min-height: 144px; grid-template-columns: 36px minmax(0,1fr) 36px; padding: 15px 14px; }
  .lab-header h1 { margin-top: 7px; font-size: 19px; }
  .lab-header p { font-size: 9px; line-height: 1.45; }
  .lab-controls, .lab-results { padding-inline: 13px; }
  .lab-control-grid { grid-template-columns: 1fr; }
  .lab-builder-fields, .lab-builder-select-grid { grid-template-columns: 1fr; }
  .lab-builder-field-primary, .lab-builder-field:last-child { grid-column: auto; }
  .lab-builder-frame-row { grid-template-columns: repeat(5,minmax(66px,1fr)); overflow-x: auto; padding-bottom: 3px; }
  .lab-builder-style-row { grid-template-columns: 1fr 1fr; }
  .lab-builder-style-row button:last-child { grid-column: 1 / -1; }
  .lab-builder-intro h2 { font-size: 34px; }
  .lab-prompt-head { align-items: flex-start; }
  .lab-result-actions .lab-result-action-open { margin-left: 0; }
  .lab-gallery { grid-template-columns: 1fr; gap: 12px; }
  .lab-results-head { align-items: center; }
  .lab-results-head h2 { font-size: 16px; }
  .lab-results-tabs { margin-top: 12px; }
  .lab-results-tabs button { min-height: 42px; font-size: 10px; }
  .lab-empty { margin-top: 8vh; }
  .lab-empty h2 { font-size: 19px; }
}

@media (min-width: 1900px) and (min-height: 800px) {
  .workspace-switch { gap: 7px; margin-bottom: 18px; padding: 6px; border-radius: 16px; }
  .workspace-switch :is(button,a) { grid-template-columns: 23px minmax(0,1fr) auto; column-gap: 13px; padding: 15px 17px; border-radius: 12px; font-size: 16px; }
  .workspace-switch :is(button,a) > span:first-child { width: 23px; height: 38px; }
  .workspace-dialogs-label { width: 142px; height: 38px; }
  .workspace-visual-label { width: 142px; height: 38px; -webkit-mask-position: 2px center; mask-position: 2px center; }
  .workspace-motion-label { width: 142px; height: 38px; padding-left: 3px; font-size: 40px; }
  .workspace-control-label { width: 142px; height: 38px; font-size: 10px; }
  .lab-header { min-height: 190px; gap: 32px; padding: 32px 54px; }
  .lab-header h1 { margin-top: 9px; font-size: 42px; }
  .lab-header p { font-size: 18px; }
  .lab-kicker, .lab-results-head span { font-size: 13px; }
  .lab-runtime-status { padding: 14px 19px; font-size: 13px; }
  .lab-workspace { grid-template-columns: minmax(650px, 720px) minmax(0,1fr); height: calc(100vh - 190px); }
  .lab-controls { padding: 39px; }
  .lab-segmented button { padding: 16px 13px; font-size: 17px; }
  #visual-lab-form { gap: 31px; margin-top: 33px; }
  .lab-control-label { font-size: 13px; }
  .lab-video-development-note { gap: 10px; padding: 17px 18px; font-size: 15px; }.lab-video-development-note strong { font-size: 13px; }
  .lab-control-group small { font-size: 15px; }
  .lab-prompt-head > label { font-size: 18px; }
  .lab-prompt-field i { font-size: 13px; }
  .lab-prompt-build { min-height: 56px; border-radius: 13px; padding-inline: 18px; font-size: 16px; }
  .lab-prompt-build i { font-size: 17px; }
  .lab-prompt-build-step small { font-size: 13px; }
  #lab-prompt { min-height: 214px; padding: 20px 21px; border-radius: 16px; font-size: 19px; }
  .lab-control-grid { gap: 14px; }
  .lab-control-grid select { height: 62px; padding-inline: 16px; border-radius: 13px; font-size: 17px; }
  .lab-scene-builder { gap: 27px; }
  .lab-builder-intro > span, .lab-builder-choice-group legend, .lab-builder-select-grid label > span { font-size: 11px; }
  .lab-builder-intro h2 { margin-block: 14px 11px; font-size: 52px; }
  .lab-builder-intro p { font-size: 16px; }
  .lab-builder-fields { gap: 17px; }
  .lab-builder-field > span b { font-size: 15px; }
  .lab-builder-field > span i { font-size: 10px; }
  .lab-builder-field input { height: 61px; padding-inline: 16px; font-size: 16px; }
  .lab-builder-field-primary input { height: 69px; font-size: 18px; }
  .lab-builder-field textarea { min-height: 90px; padding: 16px; font-size: 16px; }
  .lab-builder-frame-row button { min-height: 84px; border-radius: 13px; font-size: 12px; }
  .lab-builder-select-grid { gap: 14px; }
  .lab-builder-select-grid select { height: 59px; padding-inline: 15px; border-radius: 13px; font-size: 15px; }
  .lab-builder-style-row button { min-height: 95px; padding: 15px 10px; border-radius: 13px; }
  .lab-builder-style-row button > i { font-size: 10px; }
  .lab-builder-style-row button b { font-size: 14px; }
  .lab-builder-style-row button small { font-size: 11px !important; }
  .lab-builder-aspect-row button { min-height: 46px; border-radius: 11px; font-size: 12px; }
  .lab-builder-shadow > header { padding: 18px; }
  .lab-builder-shadow > header span { font-size: 10px; }
  .lab-builder-shadow > header strong { font-size: 15px; }
  .lab-builder-layers { padding-inline: 18px; }
  .lab-builder-layers > span { grid-template-columns: 34px auto 1fr; gap: 12px; padding-block: 14px; }
  .lab-builder-layers > span > i { width: 34px; height: 34px; font-size: 10px; }
  .lab-builder-layers b { font-size: 13px; }
  .lab-builder-layers small { font-size: 12px !important; }
  .lab-source-card { gap: 14px; padding: 19px; border-radius: 16px; }
  .lab-source-empty span, .lab-source-selected span { font-size: 12px; }
  .lab-source-empty strong { font-size: 19px; }
  .lab-source-empty p, .lab-source-selected strong, .lab-source-upload { font-size: 16px; }
  .lab-source-selected p, .lab-source-keep b { font-size: 13px; }
  .lab-source-keep input { width: 20px; height: 20px; }
  .lab-source-upload { padding: 13px 14px; }
  .lab-boundary-note { font-size: 13px; }
  .lab-generate-button { min-height: 72px; padding-inline: 25px; border-radius: 15px; font-size: 19px; }
  .lab-results { padding: 46px 54px 68px; }
  .lab-results-head h2 { margin-top: 11px; font-size: 30px; }
  .lab-results-head button { padding: 14px 19px; font-size: 15px; }
  .lab-results-tabs { gap: 8px; margin-top: 22px; padding: 6px; border-radius: 14px; }
  .lab-results-tabs button { min-height: 55px; border-radius: 10px; font-size: 16px; }
  .lab-results-tabs i { min-width: 28px; height: 28px; font-size: 12px; }
  .lab-gallery { gap: 21px; margin-top: 25px; }
  .lab-result-body { gap: 15px; padding: 18px; }
  .lab-result-meta { font-size: 12px; }
  .lab-result-project { font-size: 13px; }
  .lab-result-body p { font-size: 16px; }
  .lab-result-card.text-response .lab-result-body p { font-size: 16px; }
  .lab-result-status { gap: 14px; font-size: 17px; }
  .lab-result-status small { font-size: 13px; }
  .lab-result-status i { width: 32px; height: 32px; }
  .lab-result-job-context { padding: 9px 13px; font-size: 15px; }
  .lab-result-actions { gap: 10px; }
  .lab-result-actions button, .lab-result-actions a { padding: 13px 17px; font-size: 15px; }
  .lab-empty h2 { font-size: 30px; }
  .lab-empty p { font-size: 15px; }
}

.lab-workspace.gallery-mode { grid-template-columns: minmax(0, 1fr); }
.lab-workspace.gallery-mode .lab-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (max-width: 1250px) { .lab-workspace.gallery-mode .lab-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { .lab-workspace.gallery-mode .lab-gallery { grid-template-columns: 1fr; } .lab-results-actions { flex-wrap: wrap; justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }.hero-fireflies i { animation: none !important; opacity: .3; }.hero-fireflies::before { animation: none !important; opacity: .72; }.chat-atmosphere::before, .chat-atmosphere::after, .chat-atmosphere i { animation: none !important; }.chat-atmosphere i { opacity: .2; } }

@media (max-width: 600px) {
  .hero-fireflies i:nth-child(1),
  .hero-fireflies i:nth-child(3),
  .hero-fireflies i:nth-child(8),
  .hero-fireflies i:nth-child(11),
  .hero-fireflies i:nth-child(13) { display: block; }
  .landing-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .landing-footer nav { justify-content: flex-start; gap: 10px 20px; }
}

/*
 * Selected owner typography.
 *
 * Inter is the shared readable product voice for UI, explanatory copy and
 * every public heading. Unquiet Spirit and Catacombs remain fixed outlined
 * identities rather than loadable application fonts.
 */
:is(
  .hero-promise strong,
  .guest-lab-copy h2,
  .capabilities-showcase > header h2,
  .manifesto-header h2,
  .product-story h2,
  .ecosystem h2
) {
  font-family: var(--font-route-display);
  font-weight: 550;
  line-height: .96;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

:is(
  .hero-promise-copy,
  .guest-lab-copy > p,
  .capabilities-showcase > header > p,
  .manifesto-header > p,
  .ecosystem-copy > p
) {
  font-family: var(--font-subheading);
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: .01em;
}

.visual-lab-wordmark {
  width: clamp(300px, 34vw, 460px);
  height: 80px;
  margin: 3px 0 5px !important;
}
.visual-lab-wordmark-art {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #fff 4%, var(--accent-hot) 48%, #a7b6bf 100%);
  -webkit-mask: url("/static/fonts/brand/visual-lab-outhouse-alternate-outline.svg?v=20260813-1") center / contain no-repeat;
  mask: url("/static/fonts/brand/visual-lab-outhouse-alternate-outline.svg?v=20260813-1") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(var(--accent-hot-rgb), .52));
}
.visual-lab-route-brand {
  display: block;
  width: clamp(280px, 32vw, 430px);
  height: 100px;
}
.motion-lab-route-brand {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  color: #ffe8ee;
  font: 400 clamp(76px, 9vw, 118px)/.82 "Enough Motion Display", var(--font-signal);
  letter-spacing: .025em;
  text-transform: uppercase;
  -webkit-text-stroke: .35px rgba(255, 255, 255, .58);
  text-shadow: 0 0 10px rgba(var(--accent-hot-rgb), .78), 0 0 34px rgba(var(--accent-rgb), .34);
}

#app-view p.lab-workflow-note,
#lab-prompt {
  font-family: var(--font-ui);
  font-size: var(--type-helper) !important;
  font-weight: 450;
  letter-spacing: .01em;
}
#app-view p.lab-workflow-note { line-height: 1.5; }
#app-view p.lab-workflow-note strong { font-family: inherit; font-weight: 550; letter-spacing: .01em; }
#lab-prompt { line-height: 1.55; }

@media (max-width: 600px) {
  .visual-lab-wordmark { width: min(100%, 280px); height: 64px; }
  .visual-lab-route-brand { width: min(100%, 300px); height: 78px; }
  .motion-lab-wordmark { font-size: clamp(64px, 18vw, 82px); }
  .motion-lab-route-brand { font-size: clamp(62px, 19vw, 82px); }
  .guest-lab-copy h2 { font-size: 39px; }
  :is(
    .hero-promise-copy,
    .guest-lab-copy > p,
    .capabilities-showcase > header > p,
    .manifesto-header > p,
    .ecosystem-copy > p
  ) { font-size: 17px; }
}

@media (min-width: 1900px) and (min-height: 800px) {
  .visual-lab-wordmark { width: 560px; height: 112px; }
  .visual-lab-route-brand { width: 500px; height: 120px; }
  .motion-lab-wordmark { font-size: 150px; }
  .motion-lab-route-brand { font-size: 146px; }
  .guest-lab-copy h2 { font-size: 62px; }
  :is(
    .hero-promise-copy,
    .guest-lab-copy > p,
    .capabilities-showcase > header > p,
    .manifesto-header > p,
    .ecosystem-copy > p
  ) { font-size: 23px; }
  .guest-lab .guest-lab-copy > p { font-size: 20px; }
}

/* Visual Lab 2.0 — полноэкранный конструктор кадра */
.lab-header > .lab-builder-hero { display: none; }
.lab-builder-panel,
.lab-live-preview,
.lab-results-browser {
  overflow: hidden;
  border: 1px solid rgba(208,229,240,.11);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(15,18,25,.91), rgba(7,9,13,.9));
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.lab-builder-panel { padding: 25px; }
.lab-builder-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.lab-builder-panel-head > div { display: flex; align-items: center; gap: 11px; }
.lab-builder-panel-head > div > span { color: var(--accent-hot); font: 700 8px/1 ui-monospace, monospace; }
.lab-builder-panel-head h2 { margin: 0; color: var(--ice-strong); font: 560 15px/1.1 var(--font-signal); letter-spacing: -.01em; }
.lab-builder-panel-head small { color: #596873; font-size: 9px; }
.lab-settings-summary { list-style: none; margin: 0; cursor: pointer; }
.lab-settings-summary::-webkit-details-marker { display: none; }
.lab-settings-summary > i { width: 9px; height: 9px; margin-left: 2px; border-right: 1px solid var(--accent-hot); border-bottom: 1px solid var(--accent-hot); transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.lab-settings-disclosure[open] > .lab-settings-summary { margin-bottom: 23px; }
.lab-settings-disclosure[open] > .lab-settings-summary > i { transform: rotate(225deg) translate(-2px,-1px); }
.lab-settings-body { display: grid; gap: 20px; }
.lab-settings-appearance { display: grid; gap: 20px; min-width: 0; }
.lab-builder-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.lab-builder-reset { border: 0; padding: 0; background: transparent; color: #7d8b94; font-size: 8px; cursor: pointer; text-decoration: underline; text-decoration-color: #424b51; text-underline-offset: 4px; }
.lab-builder-reset:hover { color: var(--ice-strong); }
.lab-live-preview > header,
.lab-results-browser > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  color: #687780;
  font: 700 7px/1 ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lab-live-preview > header { border-bottom: 1px solid rgba(208,229,240,.11); }
.lab-preview-header-actions { display: flex; align-items: center; gap: 10px; }
.lab-preview-header-actions i { color: var(--accent-hot); font-style: normal; }
.lab-preview-header-actions button { border: 1px solid rgba(255,116,142,.28); border-radius: 7px; padding: 7px 9px; background: rgba(121,19,48,.08); color: #d8a4b0; font: 700 7px/1 var(--font-signal); cursor: pointer; }
.lab-preview-header-actions button:hover { border-color: rgba(255,116,142,.58); color: #fff; }
.lab-preview-canvas {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 390px;
  overflow: hidden;
  background: #07090d;
}
.lab-motion-promo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.lab-preview-canvas[data-ratio="1:1"],
.lab-preview-canvas[data-ratio="auto"] { aspect-ratio: 1 / 1; }
.lab-preview-canvas[data-ratio="4:5"] { aspect-ratio: 4 / 5; }
.lab-preview-canvas[data-ratio="16:9"] { aspect-ratio: 16 / 9; min-height: 300px; }
.lab-preview-canvas[data-ratio="9:16"] { aspect-ratio: 9 / 16; }
.lab-preview-grid { position: absolute; inset: 0; z-index: -2; opacity: .22; background: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 16.666% 16.666%; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%); mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.lab-preview-glow { position: absolute; inset: 0; z-index: -1; transition: background .25s ease; }
.lab-preview-canvas[data-light="auto"] .lab-preview-glow { background: radial-gradient(circle at 68% 43%, rgba(var(--accent-rgb),.15), transparent 33%), linear-gradient(145deg, rgba(184,218,235,.04), transparent 55%); }
.lab-preview-canvas[data-light="daylight"] .lab-preview-glow { background: radial-gradient(circle at 67% 27%, rgba(218,239,249,.29), transparent 35%), linear-gradient(145deg, rgba(157,196,216,.09), transparent 60%); }
.lab-preview-canvas[data-light="soft"] .lab-preview-glow { background: radial-gradient(ellipse at 50% 35%, rgba(223,239,247,.24), transparent 43%); }
.lab-preview-canvas[data-light="golden"] .lab-preview-glow { background: radial-gradient(circle at 76% 33%, rgba(255,174,88,.29), transparent 38%), linear-gradient(155deg, rgba(176,72,35,.11), transparent 60%); }
.lab-preview-canvas[data-light="neon"] .lab-preview-glow { background: radial-gradient(circle at 25% 47%, rgba(255,39,98,.24), transparent 32%), radial-gradient(circle at 76% 35%, rgba(55,119,255,.2), transparent 36%); }
.lab-preview-canvas[data-light="dramatic"] .lab-preview-glow { background: linear-gradient(118deg, transparent 35%, rgba(236,246,250,.18) 49%, transparent 60%), radial-gradient(circle at 76% 23%, rgba(var(--accent-rgb),.18), transparent 32%); }
.lab-preview-canvas[data-style="cinema"] { background-color: #08090d; }
.lab-preview-canvas[data-style="enough_style"] { box-shadow: inset 0 0 90px rgba(var(--accent-rgb),.07); }
.lab-preview-canvas[data-style="anime"] { background: linear-gradient(145deg, #0c1017, #07080c); }
.lab-preview-canvas[data-style="sketch"] { background: linear-gradient(145deg, #101116, #08090d); }
.lab-preview-output { position: absolute; inset: 0; z-index: 3; display: grid; place-items: stretch; overflow: hidden; background: #020306; }
.lab-preview-output > img,
.lab-preview-output > video { display: block; width: 100%; height: 100%; object-fit: contain; background: #020306; }
.lab-preview-output > video { object-fit: contain; }
.lab-preview-output > .lab-result-status { min-height: 100%; align-content: center; }
.lab-preview-output.with-progress-poster > img { filter: brightness(.46) saturate(.76); }
.lab-preview-output.with-progress-poster > .lab-result-status { position: absolute; inset: 0; z-index: 1; width: 100%; min-height: 100%; align-content: center; background: radial-gradient(circle, rgba(2,3,6,.12), rgba(2,3,6,.66)); text-shadow: 0 1px 10px #000; }
.lab-preview-output.is-error { background: radial-gradient(circle, rgba(121,19,48,.12), transparent 60%), #020306; }
.lab-preview-output-footer { position: absolute; z-index: 4; inset: auto 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 48px 18px 16px; background: linear-gradient(transparent, rgba(2,3,5,.94)); }
.lab-preview-output-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; min-width: 0; pointer-events: none; }
.lab-preview-output-meta > span { color: #7f909b; font: 700 7px/1.25 ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.lab-preview-output-meta > span:first-child { color: var(--ice-strong); }
.lab-preview-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.lab-preview-actions button,
.lab-preview-actions a { min-height: 34px; border: 1px solid rgba(204,236,255,.22); border-radius: 8px; padding: 8px 11px; background: rgba(7,9,13,.82); color: #d0dce2; font: 650 8px/1 var(--font-signal); text-decoration: none; cursor: pointer; backdrop-filter: blur(10px); }
.lab-preview-actions .lab-preview-action-gallery { border-color: rgba(var(--accent-hot-rgb),.48); color: #ffd5df; }
.lab-preview-actions .lab-preview-action-gallery.active,
.lab-preview-actions .lab-preview-action-download { border-color: rgba(99,239,173,.48); color: #9be8c2; }
.lab-preview-actions button:hover,
.lab-preview-actions a:hover { border-color: var(--accent-hot); color: #fff; box-shadow: 0 0 18px rgba(var(--accent-rgb),.15); }
.lab-preview-actions button:disabled { opacity: .48; cursor: wait; }
.lab-preview-copy { padding: 30px 27px 21px; background: linear-gradient(transparent, rgba(2,3,5,.92) 62%); }
.lab-preview-copy > span { color: var(--accent-hot); font: 700 7px/1 ui-monospace, monospace; letter-spacing: .13em; }
.lab-preview-copy h2 { max-width: 420px; margin: 11px 0 7px; color: var(--ice-strong); font: 430 clamp(18px,1.7vw,24px)/1.1 var(--font-signal); letter-spacing: -.025em; word-break: normal; overflow-wrap: break-word; }
.lab-preview-copy p { max-width: 420px; margin: 0; color: #798891; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.lab-preview-meta { display: flex; justify-content: space-between; gap: 10px; padding: 0 27px 17px; background: rgba(2,3,5,.92); color: #4e5a62; font: 700 6px/1 ui-monospace, monospace; letter-spacing: .1em; }
.lab-results-browser { min-width: 0; container-type: inline-size; }
.lab-results-browser > summary { cursor: pointer; list-style: none; }
.lab-results-browser > summary { min-height: 66px; padding: 18px 22px; font-size: 12px; }
.lab-results-browser > summary::-webkit-details-marker { display: none; }
.lab-results-browser > summary i { color: #4d5961; font-size: 10px; font-style: normal; }
.lab-results-browser[open] > summary { border-bottom: 1px solid rgba(208,229,240,.11); }
.lab-results-browser[open] > summary i { color: var(--accent-hot); }
.lab-results-browser-body { padding: 20px; }
.lab-workspace.gallery-mode .lab-live-preview,
.lab-workspace.gallery-mode .lab-builder-shadow,
.lab-workspace.gallery-mode .lab-results-browser > summary { display: none; }
.lab-workspace.gallery-mode .lab-results-browser { display: block; }
.lab-workspace.gallery-mode .lab-results-browser-body { display: block; }

.app-shell.visual-prompt-mode { grid-template-columns: minmax(0,1fr); }
.app-shell.visual-prompt-mode > .app-sidebar {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  width: 280px;
  transform: translateX(-102%);
  transition: transform .2s ease;
  box-shadow: var(--shadow);
}
.app-shell.visual-prompt-mode > .app-sidebar.open { transform: translateX(0); }
.app-shell.visual-prompt-mode > .app-sidebar .mobile-only,
.app-shell.visual-prompt-mode #open-lab-sidebar { display: block; }
.app-shell.visual-prompt-mode .visual-lab-panel {
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}
.app-shell.visual-prompt-mode .lab-atmosphere::before { opacity: .035; }
.app-shell.visual-prompt-mode .lab-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: min(1760px, calc(100% - 56px));
  min-height: 0;
  margin: 0 auto;
  padding: 54px 0 50px;
  border: 0;
  background: transparent;
}
.app-shell.visual-prompt-mode .lab-header > .menu-button {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(208,229,240,.14);
  border-radius: 50%;
  background: rgba(9,11,16,.88);
  color: #7b8992;
  font-size: 0;
  box-shadow: 0 12px 36px rgba(0,0,0,.32);
  backdrop-filter: blur(12px);
}
.app-shell.visual-prompt-mode .lab-header > .menu-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 11px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(currentColor,currentColor) 0 0 / 16px 1px no-repeat,
    linear-gradient(currentColor,currentColor) 0 5px / 11px 1px no-repeat,
    linear-gradient(currentColor,currentColor) 0 10px / 16px 1px no-repeat;
  opacity: .78;
}
.app-shell.visual-prompt-mode .lab-header > .menu-button:hover { color: var(--ice-strong); }
@media (min-width: 821px) {
  .app-shell.visual-prompt-mode > .app-sidebar { width: 380px; }
  .app-shell.visual-prompt-mode > .app-sidebar #close-sidebar { display: none; }
  .app-shell.visual-prompt-mode .lab-header > .menu-button {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 9;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    color: #91a1aa;
  }
  .app-shell.visual-prompt-mode .lab-header > .menu-button:hover {
    border-color: rgba(var(--accent-hot-rgb),.38);
    background: rgba(var(--accent-rgb),.12);
  }
  .app-shell.visual-prompt-mode .lab-header > .menu-button > span { display: none; }
  .app-shell.visual-prompt-mode .lab-header > .menu-button::before { display: block; flex: 0 0 16px; }
}
.app-shell.visual-prompt-mode .lab-header > .lab-legacy-heading { display: none; }
.app-shell.visual-prompt-mode .lab-builder-hero {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(300px,450px);
  column-gap: 80px;
  align-items: end;
  justify-items: stretch;
  min-width: 0;
  text-align: left;
}
.app-shell.visual-prompt-mode .lab-builder-hero > span { grid-column: 1 / -1; margin-bottom: 16px; color: var(--accent-hot); font: 700 8px/1 ui-monospace, monospace; letter-spacing: .16em; }
.app-shell.visual-prompt-mode .lab-builder-hero h1 {
  width: min(100%, 680px);
  height: 148px;
  margin: -3px 0 0;
}
.app-shell.visual-prompt-mode .lab-builder-hero h1 .visual-lab-wordmark-art {
  background: linear-gradient(155deg, #fff 4%, var(--accent-hot) 48%, #a7b6bf 100%);
  -webkit-mask-position: left center;
  mask-position: left center;
  filter: drop-shadow(0 0 6px rgba(var(--accent-hot-rgb), .48));
}
.app-shell.visual-prompt-mode .lab-builder-hero h1 .motion-lab-wordmark {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  font-size: clamp(82px,7.2vw,122px);
  line-height: .78;
  white-space: nowrap;
}

.app-shell.visual-prompt-mode #visual-lab-panel[data-lab-media="video"] .lab-builder-hero h1 {
  width: min(100%, 820px);
  height: 180px;
}
.app-shell.visual-prompt-mode #visual-lab-panel[data-lab-media="video"] .lab-builder-hero h1 .motion-lab-wordmark {
  width: 80%;
  font-size: clamp(124px,10.5vw,168px);
  letter-spacing: .045em;
  transform: scaleX(1.24);
  transform-origin: left center;
}
.app-shell.visual-prompt-mode #visual-lab-panel[data-lab-media="video"] .lab-builder-hero > p {
  transform: translateY(18px);
}
.app-shell.visual-prompt-mode #visual-lab-panel[data-lab-media="video"] .lab-builder-proof {
  margin-top: 52px;
}
.app-shell.visual-prompt-mode .lab-builder-hero > p { max-width: 430px; margin: 0 0 3px; color: #9aabb5; font-size: 14px; line-height: 1.65; }
.lab-builder-proof { grid-column: 1 / -1; display: flex; align-items: center; gap: 17px; margin-top: 34px; color: #75848d; font-size: 9px; }
.lab-builder-proof span { display: flex; align-items: center; gap: 8px; }
.lab-builder-proof b { color: var(--accent-hot); font: 700 8px/1 ui-monospace, monospace; }
.lab-builder-proof em { color: inherit; font-style: normal; }
.lab-builder-proof i { color: #39434a; font-style: normal; }
.app-shell.visual-prompt-mode .lab-runtime-status { position: absolute; top: 24px; right: 0; grid-column: auto; }
.app-shell.visual-prompt-mode .lab-workspace {
  display: grid;
  grid-template-columns: minmax(0,1.34fr) minmax(360px,.66fr);
  align-items: start;
  gap: 18px;
  width: min(1760px, calc(100% - 56px));
  height: auto;
  margin: 0 auto;
  padding-bottom: 70px;
}
.app-shell.visual-prompt-mode .lab-controls,
.app-shell.visual-prompt-mode .lab-results { min-width: 0; overflow: visible; border: 0; background: transparent; }
.app-shell.visual-prompt-mode .lab-controls { grid-column: 1; grid-row: 1; align-self: start; height: max-content !important; min-height: 0 !important; padding: 0; }
.app-shell.visual-prompt-mode .lab-results { display: contents; padding: 0; }
.app-shell.visual-prompt-mode .lab-builder-sidecar {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  display: grid;
  align-content: start;
  min-width: 0;
}
.app-shell.visual-prompt-mode .lab-builder-sidecar-sticky {
  display: grid;
  min-width: 0;
  gap: 18px;
  margin-top: 56px;
}
.app-shell.visual-prompt-mode .lab-live-preview {
  position: static;
  margin-top: 0;
}
.app-shell.visual-prompt-mode .lab-results-browser {
  grid-column: auto;
  grid-row: auto;
  margin-top: 18px;
}
.app-shell.visual-prompt-mode .lab-results-browser .lab-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-shell.visual-prompt-mode #visual-lab-form { align-content: start; height: max-content !important; min-height: 0 !important; gap: 18px; margin: 0; }
.app-shell.visual-prompt-mode .lab-workflow-note { display: none; }
.app-shell.visual-prompt-mode .lab-video-development-note { display: none; }
.app-shell.visual-prompt-mode #lab-image-operation-group { padding: 0 0 2px; }
.app-shell.visual-prompt-mode #lab-image-operation-group > .lab-control-label { margin-bottom: 1px; }
.app-shell.visual-prompt-mode .lab-scene-builder { gap: 18px; }
.app-shell.visual-prompt-mode #visual-lab-panel[data-lab-media="video"] .lab-scene-builder { align-content: start; }
.app-shell.visual-prompt-mode #visual-lab-panel[data-lab-media="video"] .lab-scene-builder,
.app-shell.visual-prompt-mode #visual-lab-panel[data-lab-media="video"] .lab-builder-panel { align-self: start; height: max-content !important; min-height: 0 !important; }
.app-shell.visual-prompt-mode .lab-builder-fields { gap: 12px; }
.app-shell.visual-prompt-mode .lab-builder-field { margin: 0; }
.app-shell.visual-prompt-mode .lab-builder-field:last-child { margin-top: 1px; }
.app-shell.visual-prompt-mode .lab-builder-choice-group + .lab-builder-select-grid,
.app-shell.visual-prompt-mode .lab-builder-select-grid + .lab-builder-choice-group { margin-top: 22px; }
.app-shell.visual-prompt-mode .lab-builder-aspect-group { margin-top: 22px; }
.app-shell.visual-prompt-mode .lab-builder-manual-toggle { margin-top: 0; }
.app-shell.visual-prompt-mode .lab-control-group:not(#lab-image-operation-group),
.app-shell.visual-prompt-mode .lab-prompt-field,
.app-shell.visual-prompt-mode .lab-control-grid,
.app-shell.visual-prompt-mode .lab-source-card {
  border: 1px solid rgba(208,229,240,.1);
  border-radius: 12px;
  padding: 15px;
  background: rgba(9,11,16,.72);
}
#visual-lab-panel.app-shell.visual-prompt-mode .lab-settings-body > .lab-control-group { border: 0; border-radius: 0; padding: 0; background: transparent; }
.app-shell.visual-prompt-mode #visual-lab-panel[data-lab-media="video"] .lab-control-grid { grid-template-columns: 1fr; }
.app-shell.visual-prompt-mode .lab-builder-shadow { gap: 0; padding: 21px; border-radius: 16px; background: linear-gradient(145deg, rgba(15,18,25,.91), rgba(7,9,13,.92)); box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.app-shell.visual-prompt-mode .lab-builder-shadow > header { padding: 0 0 18px; }
.app-shell.visual-prompt-mode .lab-builder-layers { padding: 0; border-top: 1px solid rgba(208,229,240,.11); }
.app-shell.visual-prompt-mode .lab-builder-layers > span { grid-template-columns: 26px minmax(92px,.62fr) minmax(0,1fr); padding: 12px 0; }
.app-shell.visual-prompt-mode .lab-prompt-build-step { margin-top: 18px; }
.app-shell.visual-prompt-mode .lab-prompt-build { min-height: 48px; }
.app-shell.visual-prompt-mode .lab-generate-button { margin-top: 11px; min-height: 51px; }
.app-shell.visual-prompt-mode .lab-response-notice { margin: 12px 0 0; }
.app-shell.visual-prompt-mode .lab-builder-prompt-preview { margin-top: 17px; padding-top: 14px; }
.app-shell.visual-prompt-mode .lab-results-head { padding-bottom: 16px; }
.app-shell.visual-prompt-mode .lab-results-browser .lab-empty { min-height: 260px; }
.app-shell.visual-prompt-mode .lab-workspace.gallery-mode { grid-template-columns: minmax(0,1fr); }
.app-shell.visual-prompt-mode .lab-workspace.gallery-mode .lab-builder-sidecar { display: contents; }
.app-shell.visual-prompt-mode .lab-workspace.gallery-mode .lab-builder-sidecar-sticky,
.app-shell.visual-prompt-mode .lab-workspace.gallery-mode .lab-results-browser > summary { display: none; }
.app-shell.visual-prompt-mode .lab-workspace.gallery-mode .lab-results-browser { grid-column: 1 / -1; grid-row: 1; }
.app-shell.visual-prompt-mode .lab-workspace.gallery-mode .lab-results-browser { display: block; }
.app-shell.visual-prompt-mode .lab-workspace.gallery-mode .lab-results-browser-body { display: block; }

@media (max-width: 1040px) {
  .app-shell.visual-prompt-mode .lab-builder-hero { grid-template-columns: minmax(0,1fr) minmax(260px,380px); column-gap: 48px; }
  .app-shell.visual-prompt-mode #visual-lab-panel[data-lab-media="video"] .lab-builder-hero h1 { width: min(100%, 700px); height: 158px; }
  .app-shell.visual-prompt-mode .lab-workspace { grid-template-columns: minmax(0,1.18fr) minmax(330px,.82fr); }
}

@media (max-width: 820px) {
  .app-shell.visual-prompt-mode .lab-header,
  .app-shell.visual-prompt-mode .lab-workspace { width: min(100% - 34px, 720px); }
  .app-shell.visual-prompt-mode .lab-header { padding: 62px 0 34px; }
  .app-shell.visual-prompt-mode .lab-header > .menu-button { top: 14px; left: 14px; }
  .app-shell.visual-prompt-mode .lab-builder-hero { grid-template-columns: 1fr; }
  .app-shell.visual-prompt-mode .lab-builder-hero > span,
  .app-shell.visual-prompt-mode .lab-builder-hero h1,
  .app-shell.visual-prompt-mode .lab-builder-hero > p { grid-column: 1; }
  .app-shell.visual-prompt-mode .lab-builder-hero > p { margin-top: 23px; }
  .app-shell.visual-prompt-mode #visual-lab-panel[data-lab-media="video"] .lab-builder-hero > p { transform: none; }
  .app-shell.visual-prompt-mode .lab-builder-proof { flex-wrap: wrap; margin-top: 25px; }
  .app-shell.visual-prompt-mode .lab-runtime-status { display: none; }
  .app-shell.visual-prompt-mode .lab-workspace { grid-template-columns: 1fr; }
  .app-shell.visual-prompt-mode .lab-controls,
  .app-shell.visual-prompt-mode .lab-builder-sidecar,
  .app-shell.visual-prompt-mode .lab-results-browser { grid-column: 1; grid-row: auto; }
  .app-shell.visual-prompt-mode .lab-builder-sidecar-sticky { margin-top: 0; }
  .app-shell.visual-prompt-mode .lab-results-browser .lab-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (min-width: 821px) {
  .lab-gallery { align-items: start; }
  .lab-result-card:not(.text-response) {
    display: grid;
    grid-template-rows: 320px minmax(0,1fr);
    height: 680px;
  }
  .lab-result-card:not(.text-response) .lab-result-media {
    min-height: 0;
    aspect-ratio: auto;
  }
  .lab-result-card:not(.text-response) .lab-result-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .lab-result-card:not(.text-response) .lab-result-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    margin-top: auto;
  }
  .lab-result-card:not(.text-response) .lab-result-actions button,
  .lab-result-card:not(.text-response) .lab-result-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    margin-left: 0;
    padding: 9px 10px;
    text-align: center;
  }
}

@media (min-width: 1600px) {
  .lab-results-browser > summary { min-height: 76px; padding: 21px 24px; font-size: 14px; }
  .lab-results-browser > summary i { font-size: 12px; }
}

@media (max-width: 600px) {
  .app-shell.visual-prompt-mode .lab-header,
  .app-shell.visual-prompt-mode .lab-workspace { width: min(100% - 26px, 560px); }
  .app-shell.visual-prompt-mode .lab-builder-hero h1 { width: min(100%, 420px); height: 96px; }
  .app-shell.visual-prompt-mode .lab-builder-hero > p { font-size: 13px; }
  .lab-builder-proof { gap: 9px 12px; font-size: 8px; }
  .lab-builder-proof i { display: none; }
  .lab-builder-panel { padding: 18px; }
  .lab-builder-panel-head { align-items: flex-start; margin-bottom: 19px; }
  .lab-settings-disclosure:not([open]) > .lab-settings-summary { margin-bottom: 0; }
  .lab-settings-disclosure[open] > .lab-settings-summary { margin-bottom: 19px; }
  .lab-builder-panel-head small { max-width: 110px; text-align: right; line-height: 1.4; }
  .app-shell.visual-prompt-mode .lab-builder-fields,
  .app-shell.visual-prompt-mode .lab-builder-select-grid { grid-template-columns: 1fr; }
  .app-shell.visual-prompt-mode .lab-builder-field-primary,
  .app-shell.visual-prompt-mode .lab-builder-field:last-child { grid-column: auto; }
  .app-shell.visual-prompt-mode .lab-builder-frame-row { grid-template-columns: repeat(5,minmax(66px,1fr)); overflow-x: auto; padding-bottom: 3px; }
  .app-shell.visual-prompt-mode .lab-builder-style-row { grid-template-columns: 1fr 1fr; }
  .app-shell.visual-prompt-mode .lab-builder-style-row button:last-child { grid-column: 1 / -1; }
  .app-shell.visual-prompt-mode .lab-builder-motion-settings { grid-template-columns: 1fr; }
  .app-shell.visual-prompt-mode #visual-lab-panel[data-lab-media="video"] .lab-builder-hero h1 { width: min(100%, 470px); height: 110px; }
  .app-shell.visual-prompt-mode .lab-builder-hero h1 .motion-lab-wordmark { font-size: clamp(70px,19vw,102px); }
  .lab-preview-canvas { min-height: 350px; }
  .app-shell.visual-prompt-mode .lab-builder-layers > span { grid-template-columns: 26px minmax(86px,.6fr) minmax(0,1fr); }
  .app-shell.visual-prompt-mode .lab-results-browser .lab-gallery { grid-template-columns: 1fr; }
  .lab-results-browser-body { padding: 14px; }
  .lab-preview-output-footer { align-items: stretch; flex-direction: column; gap: 10px; padding: 54px 13px 13px; }
  .lab-preview-output-meta { justify-content: space-between; }
  .lab-preview-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .lab-preview-actions button, .lab-preview-actions a { display: flex; align-items: center; justify-content: center; }
  .lab-result-description { min-height: 4.35em; flex-basis: 4.35em; -webkit-line-clamp: 3 !important; }
  .accent-chip { width: 31px; min-width: 31px; justify-content: center; padding: 6px; }
  .accent-chip > span:last-child { display: none; }
  .lab-quality-segmented.standard-model { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .lab-results-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .lab-results-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .lab-results-actions button { white-space: nowrap; }
}

@container (max-width: 640px) {
  .lab-results-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .lab-results-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .lab-results-actions button { white-space: nowrap; }
}
