@font-face { font-family: "Geist"; src: url("/static/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Montserrat HUD"; src: url("/static/fonts/montserrat-black.woff2") format("woff2"); font-weight: 900; font-display: block; }   /* the game's HUD numbers (subset: digits, K/M/B, "Level", "Power") */
@font-face { font-family: "Onest"; src: url("/static/fonts/onest.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* brand: MONOTONE (2026-11-21): warm near-black page, white type, no accent colour; every page follows the landing. Logo text Onest 700, everything else Geist. See BRAND.md */
  --sky: #0F0E0D; --sky2: #0F0E0D; --sky-grad: #0F0E0D;
  --bg: #0F0E0D; --s1: #161514; --s2: #1D1C1A; --s3: #252321;
  --line: #262422; --line2: #34312E;
  --fg: #F2F1EF; --muted: #A9A59F; --dim: #8E8A84;
  --accent: #F2F1EF; --accent-fg: #F2F1EF; --hi: #F2F1EF; --ok: #F2F1EF; --bad: #F2F1EF; --bad-line: rgba(255,255,255,.28);   /* monotone (2026-11-25): no green/red; the words carry the meaning */
  --ink: #0F0E0D;   /* text on white buttons */
  --display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --logo: "Onest", "Geist", ui-sans-serif, system-ui, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--sans); /* no monospace anywhere, user rule 2026-11-20 */
  --r: 10px; --max: 1200px; --gut: 24px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body.page { min-height: 100vh; display: flex; flex-direction: column; }
body.page > main { flex: 1; width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line2); }
a:hover { text-decoration-color: currentColor; }
p a, li a, .msg a { color: var(--fg); text-decoration-line: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 0; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--s2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
kbd { font-size: 11px; color: var(--muted); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.label { font: 500 12px/1.4 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(255,255,255,.22); }

/* header / footer */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15,14,13,.88); color: #fff; border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.top :focus-visible { outline-color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 5px; font: 700 26px/1 var(--logo); letter-spacing: -.025em; text-transform: lowercase; text-decoration: none; flex: none; }
.logo img { width: 30px; height: 30px; }  /* the prompt mark (static/logo.svg, 2026-11-21: option A from eval/design/logo/marks-onest) */
.nav { display: flex; align-items: center; gap: 2px; font-size: 14px; min-width: 0; }
.nav > span { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { text-decoration: none; color: rgba(255,255,255,.85); padding: 6px 10px; border-radius: 6px; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: #fff; }
.top .btn.primary { background: #fff; border-color: #fff; color: var(--ink); }
.top .btn.primary:hover { background: #E6E4E1; border-color: #E6E4E1; }
.top .btn:not(.primary) { background: transparent; color: #fff; border-color: var(--line2); }
.top .btn:not(.primary):hover { background: rgba(255,255,255,.08); }
.nav .btn { margin-left: 8px; }
.nav .sep { width: 1px; height: 18px; background: var(--line2); margin: 0 8px; }
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding: 28px 0 36px; color: var(--dim); font-size: 13px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* buttons + inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 550 14px/1 var(--sans); padding: 0 14px; height: 38px; border-radius: 8px;
  background: var(--s3); color: var(--fg); border: 1px solid var(--line2); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--s2); border-color: var(--line2); }
.btn.primary { background: #fff; border-color: #fff; color: var(--ink); }
.btn.primary:hover { background: #E6E4E1; border-color: #E6E4E1; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--s2); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad-line); }
.btn.danger:hover { background: #2A1515; }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 6px; }
.btn.big { height: 46px; padding: 0 20px; font-size: 15px; }
.btn.icon { width: 30px; padding: 0; }
.btn:disabled { opacity: .4; cursor: default; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn kbd { color: inherit; border-color: currentColor; opacity: .55; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin: 16px 0 6px; }
input[type=email], input[type=password], input[type=text], textarea {
  width: 100%; background: var(--s1); border: 1px solid var(--line2); color: var(--fg); border-radius: 8px;
  padding: 10px 12px; font: 15px/1.4 var(--sans); }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus { outline: none; border-color: #6E6A64; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.5; margin: 18px 0 0; }
.check input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: #fff; flex: none; }
.msg { min-height: 20px; font-size: 13px; margin: 10px 0 0; }
.msg:empty { display: none; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid var(--line2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* code blocks */

/* ---------- landing ---------- */
body.home .top.bare { position: absolute; z-index: 20; background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }   /* the frame lines run up through it */
.top.bare { position: absolute; left: 0; right: 0; background: transparent; }  /* landing: no header bar, the nav sits in the sky */
.top.bare .wrap { display: flex; justify-content: space-between; height: 84px; position: relative; }
.top.bare + main .sky-band { padding-top: 84px; }
/* nav in the grid's language (2026-11-21): one hairline box split by hairlines, square corners, no glass */
.pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 0; padding: 0; border-radius: 0; background: #0F0E0D; border: 1px solid rgba(255,255,255,.14); }
.pill a { position: relative; z-index: 1; color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; font-weight: 500; padding: 11px 20px; border-radius: 0;
  transition: color .25s ease, transform .2s cubic-bezier(.2,.8,.2,1); }
.pill a:hover { color: #fff; } .pill a + a { border-left: 1px solid rgba(255,255,255,.14); }
.pill a:active { transform: scale(.95); }
.pill .glow { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0; background: rgba(255,255,255,.07);
  opacity: 0; pointer-events: none;
  transition: transform .45s cubic-bezier(.2,.9,.25,1), width .45s cubic-bezier(.2,.9,.25,1), opacity .3s ease; }
.pill.lit .glow { opacity: 1; }
.top .cta { height: 42px; padding: 0 20px; border-radius: 0; font-size: 14px; font-weight: 500; }
.top-end { display: flex; align-items: center; gap: 8px; }
/* phones: the pill is hidden, so a menu button opens its links in a panel under the header */
.menu-btn { display: none; width: 42px; height: 42px; place-items: center; padding: 0; border-radius: 0; border: 1px solid rgba(255,255,255,.14); background: #0F0E0D;
  color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.menu-btn path { transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s; transform-origin: 12px 12px; }
.menu-open .menu-btn .m1 { transform: rotate(45deg) translateY(5px); } .menu-open .menu-btn .m3 { transform: rotate(-45deg) translateY(-5px); } .menu-open .menu-btn .m2 { opacity: 0; }
.mnav { position: absolute; top: 100%; left: 16px; right: 16px; display: flex; flex-direction: column; padding: 0; border-radius: 0;
  background: #0F0E0D; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(0,0,0,.5); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.mnav[hidden] { display: none; }
.mnav a { padding: 10px 18px; border-radius: 0; color: #fff; text-decoration: none; font-size: 15px; line-height: 24px; font-weight: 500; }
.mnav a:active, .mnav a:hover { background: rgba(255,255,255,.08); } .mnav a + a { border-top: 1px solid rgba(255,255,255,.1); }
.mnav .mnav-cta { display: none; }
/* medium (ForgeGUI's pattern): logo | Start for free centred in the space between | menu button. Small: logo | menu, the CTA moves into the menu */
/* up to 1000px: logo | Start for free (centred on the page) | menu button; normal-sized buttons. Under 360px the CTA moves into the menu. */
@media (max-width: 1000px) {
  .pill { display: none; }
  body.home .top.bare .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; padding: 0 16px; max-width: none; }
  body.home .top.bare .logo { padding-left: 18px; } body.home .menu-btn { margin-right: 18px; }   /* inset from the frame lines, which sit at 16px */
  body.home .top-end { display: contents; }
  body.home .top .cta { grid-column: 2; }
  body.home .menu-btn { display: grid; grid-column: 3; justify-self: end; }
}
@media (max-width: 359px) {
  body.home .top .top-end > .cta { display: none; }
  .mnav .mnav-cta { display: flex; justify-content: center; align-items: center; height: 52px; margin: 0; border-radius: 0; background: #fff; color: #0F0E0D; font-weight: 600; }
}
/* motion: everything you touch eases instead of snapping; the header drifts in on load */
html { scroll-behavior: smooth; }
a, button, .btn, input, textarea { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease,
  opacity .25s ease, transform .2s cubic-bezier(.2,.8,.2,1); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
/* "Start for free" keeps its solid white; from the nav pill it takes the shape, the rim and the soft shadow */
.top .btn.primary.cta { background: #fff; border: 1px solid #fff; color: var(--ink); }
body.home .top .btn.primary.cta { color: #0F0E0D; }
.top .btn.primary.cta:hover { background: #E6E4E1; border-color: #E6E4E1; transform: none; }
/* (no entrance animation on the header: the page loads still, user 2026-11-22) */
@keyframes drift-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes drift-in-center { from { opacity: 0; transform: translate(-50%, calc(-50% - 10px)); } }
.sky-band .hero h1 { font-weight: 800; letter-spacing: -.04em; }
.sky-band .hero .lede, .sky-band .try-note { color: rgba(255,255,255,.92); }
.sky-band .hero .lede b { color: #fff; }
/* liquid glass on the sky: frosted, see-through, big soft curves, a light rim instead of lines */
.sky-band .btn.ghost, .sky-band .session { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.12), 0 20px 50px rgba(14,34,54,.16); }
.sky-band .btn.ghost { color: #fff; border-radius: 999px; padding: 0 24px; }
.sky-band .btn.ghost:hover { background: rgba(255,255,255,.26); }
.sky-band .session { border-radius: 28px; color: #fff; }
.sky-band .session .head { border-bottom: 0; padding: 16px 20px 4px; }
.sky-band .session .body { padding: 14px 20px 22px; }
.sky-band .session .conn, .sky-band .session .label { color: rgba(255,255,255,.85); }
.sky-band .session .call { color: rgba(255,255,255,.78); }
.sky-band .session .m.user { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); border-radius: 18px 18px 6px 18px; color: #fff; }
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-top: 64px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.045em; line-height: 1; margin: 14px 0 18px; }
.hero .lede { font-size: 17px; color: var(--muted); margin: 0 0 28px; max-width: 470px; }
.hero .lede b { color: var(--fg); font-weight: 500; }
.try { display: flex; gap: 8px; max-width: 480px; }
.try input { height: 46px; font-size: 15px; }
.try .btn { flex: none; }
.try-note { font-size: 13px; color: var(--dim); margin: 12px 0 0; }
.viewer { min-width: 0; }
.viewer .main { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--s1); aspect-ratio: 16/9; }
.viewer .main img { width: 100%; height: 100%; object-fit: cover; }
.viewer .cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 2px 0; font: 13px var(--mono); }
.viewer .cap span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompt-mark { color: var(--accent-fg); margin-right: 8px; }
.tag { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line2);
  border-radius: 4px; padding: 4px 6px; flex: none; white-space: nowrap; }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.strip button { padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--s1);
  aspect-ratio: 16/9; opacity: .55; transition: opacity .12s; }
.strip button:hover { opacity: .85; }
.strip button[aria-pressed=true] { opacity: 1; border-color: var(--accent); }
.strip img { width: 100%; height: 100%; object-fit: cover; }

.section { padding-top: 112px; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 10px; }
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }

.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-bottom: 20px; }
.styles button { text-align: left; background: none; border: 0; border-top: 2px solid transparent; margin-top: -1px; color: var(--muted);
  padding: 16px 20px 18px 0; cursor: pointer; font: inherit; font-size: 14px; }
.styles button b { display: flex; align-items: baseline; gap: 8px; color: var(--fg); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.styles button b span { font: 12px var(--mono); color: var(--dim); font-weight: 400; }
.styles button:hover b { color: var(--accent); }
.styles button[aria-pressed=true] { border-top-color: var(--accent); }
.styles .for { display: block; font: 12px/1.5 var(--mono); color: var(--dim); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery:not(.filtered) .tile:first-child { grid-column: span 2; grid-row: span 2; }
.tile { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.tile .img { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--s1); flex: 1; min-height: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.tile figcaption { font: 12px var(--mono); color: var(--muted); padding: 8px 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cheat { border-top: 1px solid var(--line); }
.cheat .row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cheat .in { font: 14px/1.5 var(--mono); color: var(--fg); overflow-wrap: anywhere; }
.cheat .in em { font-style: normal; color: var(--accent-fg); }
.cheat .out { color: var(--muted); }
.cheat .out b { color: var(--fg); font-weight: 500; }
.limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin: 40px 0 0; }
.limits div { background: var(--s1); padding: 18px 20px; }
.limits dt { margin-bottom: 6px; }
.limits dd { margin: 0; font-size: 14px; color: var(--muted); }
.limits dd b { display: block; color: var(--fg); font-size: 18px; font-weight: 700; font-family: var(--display); letter-spacing: -.01em; margin-bottom: 2px; }

.api { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pipe li { background: var(--s1); padding: 22px 20px 24px; color: var(--muted); font-size: 14px; }
.pipe li .label { display: block; color: var(--hi); margin-bottom: 14px; }
.pipe li b { display: block; color: var(--fg); font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
@media (max-width: 900px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pipe { grid-template-columns: minmax(0, 1fr); } }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 36px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--line2);
  font: 12px/20px var(--mono); text-align: center; color: var(--fg); }
.steps li b { color: var(--fg); font-weight: 500; }
.errs { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.errs td { border-top: 1px solid var(--line); padding: 9px 12px 9px 0; vertical-align: top; color: var(--muted); }
.errs td:first-child { font-family: var(--mono); color: var(--fg); width: 52px; }

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.faq h2 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 10px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; font-weight: 500; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 18px/1 var(--mono); color: var(--dim); padding-top: 3px; }
.qa details[open] summary::after { content: "−"; }
.qa details p { color: var(--muted); margin: -4px 0 18px; max-width: 620px; }
.closer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border: 1px solid var(--line);
  border-radius: 12px; padding: 28px 32px; background: var(--s1); }
.closer h2 { font-size: 24px; }
.closer p { margin: 4px 0 0; color: var(--muted); }

/* ---------- auth ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 72px; align-items: center; padding-top: 64px; }
.auth h1 { font-size: 30px; letter-spacing: -.03em; margin: 0 0 6px; }
.auth > p, .auth form > p.muted { margin: 0; }
.auth .btn.primary, .auth .google { width: 100%; margin-top: 20px; }
.auth .google { margin-top: 0; }
.auth .alt { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.auth .alt a { color: var(--fg); }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--dim); font: 12px var(--mono); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-side figure { margin: 0; }
.auth-side .img { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.auth-side img { width: 100%; height: auto; aspect-ratio: 16 / 9; }   /* the width/height attributes kept the height at 540 while the width shrank: squashed */
.auth-side figcaption { font: 13px var(--mono); color: var(--muted); margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }

/* ---------- app ---------- */
.tool { padding-top: 32px; }
.tool-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tool-head h1 { font-size: 24px; }
.tool-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.quota { font: 13px var(--mono); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.quota .meter { width: 90px; }
.meter { height: 6px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.composer { background: var(--s1); border: 1px solid var(--line2); border-radius: 12px; transition: border-color .12s; }
.composer:focus-within { border-color: #6E6A64; }
.composer.drag { border-color: var(--accent); border-style: dashed; }
.composer textarea { display: block; background: none; border: 0; box-shadow: none; min-height: 84px; resize: none; padding: 16px 16px 8px; font-size: 16px; line-height: 1.5; }
.composer textarea:focus { box-shadow: none; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-top: 1px solid var(--line); }
.composer-bar .left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hint { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pics { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px 0; }
#pics:empty { display: none; }
.pics-note { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13px; }
.pic { position: relative; }
.pic img { width: 96px; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; border: 1px solid var(--line2); }
.pic button { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); cursor: pointer;
  background: var(--s3); color: var(--fg); font-size: 14px; line-height: 1; padding: 0; }
.pic button:hover { background: var(--bad); color: #fff; }
.status { margin: 12px 2px 0; color: var(--muted); min-height: 22px; font-size: 14px; }
.status.err { color: var(--bad); }
.hist-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 40px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hist-head h2 { font-size: 16px; letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px 16px; }
.thumb { min-width: 0; }
.thumb .shot { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--s1); aspect-ratio: 16/9; }
.thumb .shot img { width: 100%; height: 100%; object-fit: cover; }
.thumb .shot:hover { border-color: var(--line2); }
.thumb .meta { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 2px 0; }
.thumb .p { font-size: 13px; line-height: 1.45; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.thumb .sub { font: 11.5px var(--mono); color: var(--dim); margin-top: 3px; text-transform: lowercase; }
.thumb .acts { display: flex; gap: 4px; flex: none; }
.thumb .acts .btn { color: var(--muted); }
.thumb .acts .btn:hover { color: var(--fg); }
.thumb .acts .del:hover { color: var(--bad); border-color: var(--bad-line); }
.thumb.pending .shot { position: relative; display: grid; place-items: center; font: 13px var(--mono); color: var(--muted);
  background: linear-gradient(100deg, var(--s1) 30%, var(--s2) 50%, var(--s1) 70%) 0 0 / 300% 100%; animation: sheen 1.6s linear infinite; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.empty { border: 1px dashed var(--line2); border-radius: 12px; padding: 36px 24px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--fg); font-size: 16px; margin-bottom: 6px; }
.empty p { margin: 0 0 16px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips button { font: 13px var(--mono); color: var(--fg); background: var(--s1); border: 1px solid var(--line2); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.chips button:hover { border-color: var(--muted); }

/* ---------- account ---------- */
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; padding-top: 40px; align-items: start; }
.settings-head { grid-column: 1 / -1; }
.settings-head h1 { font-size: 28px; }
.settings-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.side a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 6px; }
.side a:hover { color: var(--fg); background: var(--s1); }
.setting { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); margin: 0; }
.setting:first-child { border-top: 0; padding-top: 0; }
.setting h2 { font-size: 16px; letter-spacing: -.01em; margin-bottom: 6px; }
.setting > div:first-child p { margin: 0; color: var(--muted); font-size: 14px; }
.setting .ctl { min-width: 0; }
.setting .ctl > label:first-child { margin-top: 0; }
.setting .ctl > .btn { margin-top: 16px; }
.setting .ctl > .btn:first-child { margin-top: 0; }
.setting.danger h2 { color: var(--bad); }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.usage { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; margin-bottom: 10px; }
.usage b { font-size: 22px; font-weight: 700; font-family: var(--display); letter-spacing: -.02em; }
.setting .code { margin-top: 14px; }

/* ---------- build (chat with Studio) ---------- */
.build { max-width: 880px; padding-top: 20px; display: flex; flex-direction: column; }
body.page > main.build { min-height: calc(100vh - 57px); }
.build-bar { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.conn { display: inline-flex; align-items: center; gap: 8px; font: 13px var(--mono); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px rgba(255,255,255,.08); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px #4ccf8a22; }
.credits { display: inline-flex; align-items: center; gap: 10px; font: 13px var(--mono); color: var(--muted); }
.credits .meter { width: 110px; }
.log { flex: 1; padding: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.log > p.muted, .log .intro p { margin: 0; font-size: 14px; }
.log .intro { border: 1px dashed var(--line2); border-radius: 12px; padding: 22px 24px; }
.log .intro h3 { font-size: 16px; margin-bottom: 6px; }
.log .intro .chips { justify-content: flex-start; margin-top: 14px; }
.m { white-space: pre-wrap; line-height: 1.6; overflow-wrap: anywhere; font-size: 15px; }
.m.user { align-self: flex-end; max-width: 80%; background: var(--s3); border: 1px solid var(--line2); padding: 10px 14px; border-radius: 12px 12px 4px 12px; }
.m.notice { color: var(--muted); font-size: 14px; border-left: 2px solid var(--accent); padding-left: 12px; }
.call { font: 12px/1.5 var(--mono); color: var(--dim); padding-left: 2px; overflow-wrap: anywhere; }
.call.err { color: var(--bad); }
.call details summary { cursor: pointer; list-style: none; }
.call details summary::-webkit-details-marker { display: none; }
.call details summary:hover { color: var(--muted); }
.call pre { white-space: pre-wrap; max-height: 240px; overflow: auto; margin: 6px 0 4px; padding: 10px 12px; background: var(--s1); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); }
.chatbox { position: sticky; bottom: 0; padding: 8px 0 16px; background: var(--bg); }
.chatbox::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.working { font: 12px var(--mono); color: var(--muted); min-height: 20px; }
.chatbox textarea { min-height: 64px; max-height: 240px; }
.chatbox .msg:empty { display: none; }

/* example session on the landing page */
.session { border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); overflow: hidden; min-width: 0; }
.session .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.session .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.session .m { font-size: 14px; }

/* connect */
.pair { font: 600 32px/1 var(--mono); letter-spacing: .1em; padding: 20px; margin: 18px 0 8px; text-align: center; border: 1px solid var(--line2); border-radius: 10px; background: var(--s1); }

/* ---------- legal / 404 ---------- */
.legal-wrap { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; padding-top: 48px; }
.toc { position: sticky; top: 80px; align-self: start; font-size: 13px; display: flex; flex-direction: column; gap: 1px; max-height: calc(100vh - 100px); overflow: auto; }
.toc .label { margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.toc a:hover { color: var(--fg); }
.legal h1 { font-weight: 500; font-size: 34px; letter-spacing: -.03em; margin: 0 0 6px; }
.legal h2 { font-weight: 500; font-size: 18px; letter-spacing: -.015em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin-bottom: 6px; }
.legal > p.muted { color: var(--muted); }
.legal .note { background: var(--s1); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 8px; padding: 14px 16px; font-size: 14px; color: var(--muted); }
.nf { padding-top: 120px; max-width: 560px; }
.nf h1 { font: 500 14px var(--mono); color: var(--accent-fg); }
.nf h2 { font-weight: 500; font-size: 40px; letter-spacing: -.035em; margin: 10px 0 10px; }
.nf p { color: var(--muted); margin: 0 0 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero, .section-head, .api, .faq, .auth-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding-top: 40px; }
  .auth-side { display: none; }
  .auth-wrap { max-width: 440px; align-content: start; padding-top: 40px; }
  .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .settings { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .side { display: none; }
}
@media (max-width: 720px) {
  :root { --gut: 16px; }
  .nav .hide-sm { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cheat .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setting { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .section { padding-top: 80px; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .closer { padding: 24px 20px; }
  .hint { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .try { flex-direction: column; }
  .try .btn { width: 100%; }
  .styles button { padding-right: 12px; }
  .limits { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.btn) { padding: 6px 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* reduced motion still keeps loading spinners turning (slowly), or a busy button looks hung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner, .pv-load, dialog.acct-pop .pop-spin, .shot:not(.loaded):not(.craft)::after { animation: spin 1.6s linear infinite !important; }
  .btn[aria-busy="true"]::after { animation: btn-spin 1.6s linear infinite !important; }
  .m-dots i { animation: dot-bob 1.2s ease-in-out infinite alternate !important; }
  .m-dots i:nth-child(2) { animation-delay: .4s !important; }
  .m-dots i:nth-child(3) { animation-delay: .8s !important; }
}
/* skip link (signed-in pages): hidden until focused */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--ink); border-radius: 8px; font: 500 14px var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.plans > div { background: var(--s1); padding: 24px; display: flex; flex-direction: column; }
.plans > div.hot { background: var(--s1, var(--bg)); box-shadow: inset 0 2px 0 var(--accent); }
.plans .price { font-size: 34px; font-weight: 700; font-family: var(--display); letter-spacing: -.02em; margin: 10px 0 0; }
.plans .per { margin: 0; color: var(--dim); font: 13px var(--mono); }
.plans ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; font-size: 14px; color: var(--muted); line-height: 1.9; }
.plans ul b { color: var(--fg); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ================= landing v4 (2026-11-20): "sky world" ==================
   Hero is a Roblox world: sky, the Studio baseplate running to the horizon, the cube and real thumbnails standing on it.
   Everything under it sits on a white sheet with dark text. Baseplate colours sampled from the Studio Baseplate template. */
/* 2026-11-21: the landing went DARK (user: "make the general theme dark theme"): near-black page, white type, the game in a window */
body.home { --gl: rgba(255,255,255,.09); background: #0F0E0D; color: #fff; }   /* monotone brand (2026-11-21): near-black page, white type, no accent colour */
.home h1, .home h2 { font: 800 clamp(34px, 4.7vw, 68px)/.98 var(--display); letter-spacing: -.045em; margin: 0; }
.home h1 { font-size: clamp(46px, 6vw, 78px); font-weight: 650; line-height: 1.02; letter-spacing: -.045em; }
/* motto, unslopped (2026-11-20): no tilt, no glow, no shadow, no bounce. Muted words with a thin straight strike; "real." on a flat highlight */
.home h1 s { color: rgba(255,255,255,.5); text-decoration: line-through .055em rgba(255,255,255,.92); }
.home h1 mark { display: inline-block; padding: 0 .15em .05em; border-radius: .1em; background: #fff; color: #0F0E0D; animation: rise .5s .15s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(.12em); } }
/* thumbnails devable made (simulator games only): one flat row under the motto; bleeds off both edges on narrow screens */
.made { display: flex; justify-content: center; gap: 16px; margin: clamp(40px, 7vh, 72px) -16px 0; }
.made img { flex: none; width: clamp(210px, 18vw, 250px); height: auto; border-radius: 12px; }
/* full-page popup (pricing): a page with an X in the top right */
dialog.pop { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; text-align: center; overflow-y: auto;
  background: #0F0E0D; }
dialog.pop[open] { display: grid; align-items: center; animation: pop-in .22s ease-out; }
dialog.pop .wrap { width: 100%; padding-top: 84px; padding-bottom: 64px; }
dialog.pop h2 { font: 450 clamp(34px, 5vw, 64px)/1.02 var(--display); letter-spacing: -.035em; color: #fff; text-wrap: balance; }   /* same weight as the landing's section headings */
dialog.pop h2 em { color: rgba(255,255,255,.66); }
dialog.pop .x { position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 0; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; cursor: pointer; }
dialog.pop .x:hover { background: rgba(255,255,255,.16); }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px); } }
.home h2 em { font-style: normal; color: var(--accent); }
.home .line { font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; color: var(--muted); margin: 20px 0 0; }

body.home main { position: relative; z-index: 1; }
.stage { position: relative; z-index: 6; overflow-x: clip; padding: 84px 16px 0; text-align: center; color: #fff; }
/* header on the grid (wide screens): the same three columns as the first screen, so its lines continue straight up.
   Logo in the left cell, the nav fills the middle cell as equal hairline cells, Start for free in the right cell. */
@media (min-width: 1001px) {
  body.home .top.bare .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px) minmax(0, 1fr); max-width: 1532px; padding: 0 16px; height: 84px; }
  body.home .top.bare .logo { padding-left: clamp(14px, 1.6vw, 24px); }
  body.home .pill { position: static; transform: none; height: 100%; border: 0; border-left: 1px solid var(--gl); border-right: 1px solid var(--gl); background: none; }
  body.home .pill a { flex: 1; display: grid; place-items: center; padding: 0 8px; font-size: 15px; }
  body.home .pill a + a { border-left-color: var(--gl); }
  body.home .top-end { justify-content: flex-end; padding-right: clamp(14px, 1.6vw, 24px); }
}
/* the first screen: a band ruled top and bottom; colour ribbons (static/ribbons.js, a canvas over the whole band) split around an opening with the motto.
   .opening only sizes the text: 4:3, 90% of the band's height, never under 760px wide (so the text keeps its size on phones). */
.hero-grid { position: relative; max-width: 1500px; margin: 0 auto; min-height: calc(100svh - 84px); display: flex; align-items: center; justify-content: center;
  border-top: 1px solid var(--gl); border-bottom: 1px solid var(--gl); }
.opening { position: relative; flex: none; width: clamp(760px, min(100%, (100svh - 84px) * .9 * 4 / 3), 1200px); aspect-ratio: 4 / 3; container-type: inline-size; }
.ribbons { position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; height: 100%; pointer-events: none; }   /* full bleed: the ribbons come in from the screen edges */
.opening .copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 30cqw; }
.home .opening h1 { font-size: 6.2cqw; }
.opening .pitch { font-size: 2.1cqw; margin-top: 2cqw; }
.scroll-cue { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255,255,255,.55); font-size: 12px; font-weight: 500; letter-spacing: .02em; text-decoration: none; transition: opacity .3s, color .2s; }
.scroll-cue:hover { color: #fff; }
.scroll-cue svg { animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(4px); } }
body.scrolled .scroll-cue { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }
@media (max-width: 1000px) { .scroll-cue { display: none; } }
/* the comparison in a Roblox Studio window, rebuilt from a screenshot of Studio (2026 UI): colours sampled from it (chrome #191A1F, panel headers
   #212227, active tab #333439, viewport bar #121116, dividers #373741). Icons are simple line drawings, not Studio's artwork. */
/* the line above the Studio window */
.home .win-title { margin: clamp(64px, 10vh, 110px) auto 0; font: 650 clamp(30px, 4vw, 52px)/1.05 var(--display); letter-spacing: -.035em; color: #fff; text-align: center; }
.home .win-title + .win { margin-top: clamp(24px, 3.5vh, 36px); }
.win { width: min(900px, 100% - 2 * clamp(24px, 8vw, 120px));   /* always clear of the page edges; phones keep the 16px page gutter */ margin: clamp(56px, 9vh, 96px) auto 0; border-radius: 12px; overflow: hidden; text-align: left; color: #E4E4E8; font: 13px/1 var(--sans);
  background: #191A1F; border: 1px solid #2C2D33; box-shadow: 0 40px 110px rgba(0,0,0,.6), 0 12px 30px rgba(0,0,0,.35); user-select: none; -webkit-user-select: none; }
.win svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.win .sw-chev { width: 14px; height: 14px; opacity: .8; }
.sw-top { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 10px; border-bottom: 1px solid #2A2B31; }
.sw-mode { display: inline-flex; align-items: center; gap: 18px; height: 26px; padding: 0 8px 0 10px; border-radius: 6px; background: #26272C; }
.sw-run { display: flex; gap: 10px; } .sw-run svg { width: 16px; height: 16px; stroke: none; }
.sw-run .play { fill: #4D6BF0; } .sw-run .pause { fill: #8C8D94; } .sw-run .stop { fill: #8E2D2D; }
.sw-tabs { flex: 1; min-width: 0; display: flex; justify-content: safe center; gap: 4px; overflow: hidden; white-space: nowrap; }   /* safe: when the tabs don't fit they start at the left instead of sliding under the play buttons */
.sw-tabs > * { padding: 7px 18px; border-radius: 6px; font-weight: 500; color: #B9BAC0; } .sw-tabs > .on { background: #333439; color: #F2F2F4; }
.sw-me { display: flex; align-items: center; gap: 14px; color: #C9CACF; } .sw-me svg { width: 18px; height: 18px; }
.sw-av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(#C98A4B 0 45%, #F1D2A8 45%); }
.sw-ribbon { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 6px; height: 60px; padding: 4px 8px 0; border-bottom: 1px solid #2A2B31; overflow: hidden; white-space: nowrap; }   /* tools that don't fit wrap onto a hidden second row: never half a tool */
.sw-tool { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 50px; padding: 6px 8px 5px; border-radius: 6px; font-size: 11.5px; color: #CFD0D5; }
.sw-tool svg { width: 24px; height: 24px; color: #ADB3C9; }
.sw-tool, .sw-tabs > *, .sw-pill, .sw-mode, .sw-run svg, .sw-me svg { cursor: pointer; transition: background .12s ease, color .12s ease; }
.sw-tool:hover { background: #222329; } .sw-tool.on { background: #2B2C32; } .sw-tool.press { background: #33343A; }
.sw-tabs > :hover { background: #26272C; color: #E9E9EC; } .sw-pill:hover, .sw-mode:hover { background: #2E2F35; }
.sw-sep { flex: none; width: 1px; height: 38px; margin: 0 8px; background: #33343A; }
.sw-doc { height: 26px; display: flex; align-items: flex-end; padding: 0 8px; }
.sw-doc span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; color: #C9CACF; border-bottom: 1px solid #191A1F; }
.sw-doc svg { width: 14px; height: 14px; }
.sw-body { border-top: 1px solid #2A2B31; }
.sw-vbar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; background: #121116; }
.sw-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 999px; background: #26262C; color: #E8E8EC; font-size: 13.5px; }
.sw-pill svg { width: 16px; height: 16px; } .sw-pill.r { margin-left: auto; }
/* Studio's command bar along the bottom (Studio sets it in a monospace face; here it's the sans: no monospace anywhere, user rule) */
.sw-cmd { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 8px; border-top: 1px solid #2A2B31; }
.sw-cmd i { width: 3px; height: 14px; flex: none; background: radial-gradient(circle, #6E6F75 1px, transparent 1.2px) 0 0 / 3px 5px; }
.sw-cmd span { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; padding: 0 10px; border-radius: 4px; background: #1F2025; color: #6E6F75; font-size: 14px; white-space: nowrap; overflow: hidden; }
@media (max-width: 900px) { .sw-me { display: none; } .sw-tabs > :nth-child(n+4) { display: none; } }
@media (max-width: 720px) { .sw-tabs > :not(.on) { display: none; } .sw-tabs { justify-content: flex-start; } .sw-pill.r ~ .sw-pill { display: none; } }
.game-view { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: size;   /* a real game viewport: 16:9, never narrower than 12:9 (phones) */
  background: linear-gradient(180deg, #1657C9 0%, #2B7BE3 40%, #63B1F7 75%, #C3E2FA 100%) top / 100% 40% no-repeat; }
/* the floor is a render of the Baseplate template (checker of 4-stud tiles, 1-stud grid, viewed square-on), made by eval/design/v4/baseplate.py */
.game-view .ground { position: absolute; left: 0; right: 0; top: 40%; bottom: 0; background: #74879C url(/static/baseplate.webp?v=3) 50% 0 / cover no-repeat; }
/* the UI over the scene, with a compare slider: .real shows left of --split, .slop right of it */
.hud { --split: 50%; --hu: min(100cqw / 1548, 100cqh / 1080);   /* one capture pixel: the UI scales to whichever side is tighter */ position: absolute; inset: 0; z-index: 2; }
.hud .layer { position: absolute; inset: 0; }
.hud .real { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.hud .slop { clip-path: inset(0 0 0 var(--split)); }
.hud .layer > img, .hud .piece { position: absolute; height: auto; max-width: none; }
.hud .slop { pointer-events: none; }
/* each piece where it is in its capture: the columns by their share of the height, top / bottom pieces by their distance from that edge, x from the centre */
.real .l { left: calc(var(--hu) * 16); top: 24.72%; }  .real .r { right: calc(var(--hu) * 7); top: 5.74%; }
.real .t { left: calc(50% + var(--hu) * 2.5); top: calc(var(--hu) * 13); transform: translateX(-50%); }
.real .b { left: calc(50% + var(--hu) * 50); bottom: max(8px, calc(var(--hu) * 2)); transform: translateX(-50%); }
.slop .l { left: calc(var(--hu) * 16); top: 1.48%; }  .slop .r { right: calc(var(--hu) * 4); top: 14.44%; }
.slop .t { left: calc(50% + var(--hu) * 1); top: calc(var(--hu) * 142); transform: translateX(-50%); }
.slop .b { left: calc(50% + var(--hu) * 110); bottom: calc(var(--hu) * 20); transform: translateX(-50%); }
/* the real HUD: every element is its own image (positions in % of its piece), so it can hover, press and wobble like the game */
.hud .el { position: absolute; display: block; margin: 0; padding: 0; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
.hud .el img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; transition: transform 50ms cubic-bezier(.25,.46,.45,.94); }   /* the picture moves, the button (hit area) stays */
.hud .real .hb { cursor: pointer; }   /* HUD buttons are .hb, not .btn: the site-wide .btn rule (inline-flex, padding, min height) bent them */
.hud .real { cursor: pointer; user-select: none; -webkit-user-select: none; }
.hud .lvl .fill { position: absolute; inset: 0; transition: clip-path .2s cubic-bezier(.39,.58,.57,1); }
.hud .num { position: absolute; display: flex; align-items: center; font-family: "Montserrat HUD"; font-weight: 900; line-height: 1; color: #fff; white-space: nowrap; pointer-events: none;
  -webkit-text-stroke: calc(var(--hu) * 5.5) #101014; paint-order: stroke fill; letter-spacing: -.01em; }
.hud .power { justify-content: center; } .hud .xp { justify-content: flex-end; }
.hud .pop, .hud .chip { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 5; }
.hud .pop { width: calc(var(--hu) * 168.5); height: calc(var(--hu) * 76.7); }
.hud .pop img { position: absolute; left: 5%; top: 0; width: 45.3%; height: 100%; }
.hud .pop .num { left: 55%; top: 5%; height: 90%; font-size: calc(var(--hu) * 57); -webkit-text-stroke-width: calc(var(--hu) * 7); }
.hud .chip { width: calc(var(--hu) * 205); height: calc(var(--hu) * 64); }
.hud .chip img { position: absolute; left: 0; top: -2%; height: 104%; width: auto; }
.hud .chip .num { left: 37.4%; top: 6%; height: 82%; font-size: calc(var(--hu) * 42.9); -webkit-text-stroke-width: calc(var(--hu) * 7); }
.real .l { width: calc(var(--hu) * 249); } .real .t { width: calc(var(--hu) * 307); } .real .r { width: calc(var(--hu) * 255); } .real .b { width: calc(var(--hu) * 800); }
.slop .l { width: calc(var(--hu) * 264); } .slop .t { width: calc(var(--hu) * 598); } .slop .r { width: calc(var(--hu) * 320); } .slop .b { width: calc(var(--hu) * 816); }
.hud .bar { position: absolute; z-index: 6; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(14,34,54,.35); cursor: ew-resize; touch-action: none; }
.hud .bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: -21px; width: 44px; }   /* a finger-wide grab strip */
.hud .bar::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; box-shadow: 0 8px 22px rgba(14,34,54,.4);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12' fill='none' stroke='%230F0E0D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 1L1 6l5 5M16 1l5 5-5 5'/%3E%3C/svg%3E") center no-repeat; }
.hud .cmp-label { position: absolute; top: 50%; transform: translateY(-50%); padding: .55em .95em; border-radius: 999px; background: #fff; color: #0F0E0D; font: 600 14px/1 var(--sans); white-space: nowrap; box-shadow: 0 6px 16px rgba(14,34,54,.28); pointer-events: none; }
.hud .cmp-label.a { right: calc(100% - var(--split) + 34px); } .hud .cmp-label.z { left: calc(var(--split) + 34px); }
.hud input { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }   /* keyboard only: drag the handle with a pointer */
.hud input::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 100%; } .hud input::-moz-range-thumb { width: 2px; border: 0; }
.hud:has(input:focus-visible) .bar::after { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 720px) { .win { width: 100%; } .sw-sep { display: none; }
  .hud .cmp-label { top: 8px; transform: none; font-size: 11px; padding: .45em .7em; z-index: 3; } .hud .cmp-label.a { right: auto; left: 8px; } .hud .cmp-label.z { left: auto; right: 8px; }   /* phones: fixed corners, not beside the split */ .game-view { aspect-ratio: 12 / 9; } }
/* the pitch under the motto: set as a statement, not body copy. The product name is a white chip (cube + wordmark); the rest runs in bold white. */
.pitch { margin: 26px auto 0; max-width: 26em; font: 650 clamp(19px, 2.1vw, 28px)/1.32 var(--display); letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.pitch .mcp { display: inline-flex; align-items: center; gap: .19em; vertical-align: baseline; margin-right: .12em; padding: .22em .62em .22em .5em; border-radius: 999px; background: #fff; color: #0F0E0D;
  font: 700 .9em/1 var(--logo); letter-spacing: -.02em; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.pitch .mcp svg { width: 1.15em; height: 1.15em; flex: none; }   /* header ratio: 30px mark : 26px word */
.world .line { color: rgba(255,255,255,.94); }
/* the prompt: glass, never a white box. The whole bar is the sign-up link */
@keyframes blink { 50% { opacity: 0; } }

/* the baseplate: a real floor (rotateX 90deg under a camera at the horizon), grey-blue with 4x4 tiles, hazing out with distance */
.ground { position: absolute; inset: auto 0 0 0; height: var(--gh); perspective: 600px; perspective-origin: 50% 0; overflow: hidden; background: linear-gradient(#A9B0BE, #7C8394 70%); }
.plate { position: absolute; left: -150vw; bottom: 0; width: 400vw; height: 1760px; transform-origin: 50% 100%; transform: rotateX(90deg);
  background: linear-gradient(rgba(34,40,56,.5) 4px, transparent 4px) 0 0 / 160px 160px, linear-gradient(90deg, rgba(34,40,56,.5) 4px, transparent 4px) 0 0 / 160px 160px,
    linear-gradient(rgba(255,255,255,.17) 2px, transparent 2px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(255,255,255,.17) 2px, transparent 2px) 0 0 / 40px 40px, #727888; }
.ground::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#A9B0BE 3%, rgba(169,176,190,.7) 18%, rgba(151,157,171,0) 48%); }

/* what stands on it: thumbnails as billboards, the cube, two "done" bubbles. All sizes in --u so the scene scales with the window */
.scene { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; z-index: 3; }
.scene > * { position: absolute; }
.bb { margin: 0; border-radius: calc(18 * var(--u)); border: calc(6 * var(--u)) solid #fff; overflow: hidden; box-shadow: 0 30px 50px rgba(20,26,40,.45); }
.bb img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.l1 { width: calc(360 * var(--u)); left: calc(-690 * var(--u)); bottom: calc(150 * var(--u)); transform: perspective(900px) rotateY(24deg) rotate(-2deg); }
.l2 { width: calc(280 * var(--u)); left: calc(-400 * var(--u)); bottom: calc(60 * var(--u)); transform: perspective(900px) rotateY(16deg) rotate(1.5deg); z-index: 2; }
.r1 { width: calc(360 * var(--u)); left: calc(330 * var(--u)); bottom: calc(150 * var(--u)); transform: perspective(900px) rotateY(-24deg) rotate(2deg); }
.r2 { width: calc(280 * var(--u)); left: calc(120 * var(--u)); bottom: calc(60 * var(--u)); transform: perspective(900px) rotateY(-16deg) rotate(-1.5deg); z-index: 2; }
.cube { left: calc(-95 * var(--u)); bottom: calc(96 * var(--u)); width: calc(190 * var(--u)); max-width: none; z-index: 4; image-rendering: pixelated; filter: drop-shadow(0 22px 18px rgba(20,26,40,.45)); animation: bob 5s ease-in-out infinite alternate; }
.shade { left: calc(-105 * var(--u)); bottom: calc(72 * var(--u)); width: calc(210 * var(--u)); height: calc(38 * var(--u)); border-radius: 50%; background: rgba(20,26,40,.4); filter: blur(12px); z-index: 3; }
@keyframes bob { to { translate: 0 -10px; } }
.bub { z-index: 5; background: #fff; color: var(--fg); font: 600 14px/1 var(--sans); padding: 11px 15px; border-radius: 14px; box-shadow: 0 12px 26px rgba(20,26,40,.3); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.tick { flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--ok); color: #fff; font: 700 11px/18px var(--sans); text-align: center; }
.b1 { left: calc(70 * var(--u)); bottom: calc(300 * var(--u)); }
.b2 { left: calc(-300 * var(--u)); bottom: calc(262 * var(--u)); }

/* the page under the sky */
.sheet { position: relative; z-index: 7; background: #fff; border-radius: 44px 44px 0 0; margin-top: -44px; }
.feat { padding: 110px 0; }
.feat.center { text-align: center; }
.feat.tint { background: var(--bg); overflow: hidden; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 72px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split.rev .txt { order: 2; }
.k { font: 600 13px/1 var(--mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 18px; }
.go { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 26px; margin-top: 30px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font: 700 17px var(--sans); text-decoration: none; box-shadow: 0 12px 26px rgba(47,127,218,.35); }
.go i { font-style: normal; font-size: 22px; line-height: 1; transition: transform .25s ease; }
.go:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(47,127,218,.42); }
.go:hover i { transform: translateX(3px); }
.go.white { background: #fff; color: #0F3E86; box-shadow: 0 12px 30px rgba(9,45,110,.3); }

.vis { border-radius: 28px; overflow: hidden; text-align: left; }
.vis p { margin: 0; }
.studio { background: linear-gradient(180deg, #2B7BE3, #8CC7FF); padding: 44px 44px 0; }
.chat { background: #fff; border-radius: 22px 22px 0 0; padding: 26px 26px 40px; font-size: 16.5px; font-weight: 500; box-shadow: 0 30px 60px rgba(9,45,110,.35); }
.chat .u { background: var(--accent); color: var(--ink); padding: 12px 16px; border-radius: 16px 16px 4px 16px; margin: 0 0 18px 18%; }
.chat .t { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.chat .t .tick { width: 24px; height: 24px; border-radius: 8px; font-size: 14px; line-height: 24px; }
.chat .a { background: var(--s2); padding: 12px 16px; border-radius: 16px 16px 16px 4px; margin-top: 14px; display: inline-block; }
.console { background: #0E2236; padding: 36px; display: grid; gap: 12px; font: 500 15px/1.3 var(--mono); color: #C9D6E6; }
.console p { background: rgba(255,255,255,.06); border-radius: 12px; padding: 16px 18px; }
.console b { display: inline-block; width: 24px; color: #7CC4FF; }
.console .bad, .console .bad b { color: #FF8A8A; }
.console .ok { color: #5BE39A; background: rgba(37,194,110,.14); } .console .ok b { color: #5BE39A; }

/* thumbnails carousel */
.car { position: relative; height: clamp(260px, 34vw, 460px); margin-top: 56px; perspective: 1600px; }
.card { position: absolute; left: 50%; top: 10px; width: min(760px, 62vw); margin: 0; border-radius: 20px; overflow: hidden; cursor: pointer;
  box-shadow: 0 30px 60px -24px rgba(14,34,54,.55); transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s ease; }
.card > img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.card figcaption { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 14px; font-size: 15px; color: #fff;
  background: rgba(10,18,30,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s ease; }
.card.on figcaption { opacity: 1; }
.card figcaption img { width: 20px; height: 20px; image-rendering: pixelated; }
.card figcaption a { margin-left: 6px; padding: 7px 12px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.car-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: #fff; color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; }
.car-nav button:hover { border-color: var(--accent); color: var(--accent); }
#dots { display: flex; gap: 6px; }
#dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line2); transition: width .3s ease, background .3s ease; }
#dots i.on { width: 22px; background: var(--accent); }

/* pricing */
/* pricing (2026-11-22): the landing's grid: hairline cells, square corners, white buttons; Pro lifted a shade with a white top line */
.seg { display: inline-flex; padding: 3px; margin-top: 34px; border: 1px solid var(--gl); }
.seg button { height: 38px; padding: 0 18px; border: 0; border-radius: 0; background: transparent; font: 500 14px var(--sans); color: rgba(255,255,255,.7); cursor: pointer; }
.seg button:hover { color: #fff; }
.seg button small { font-size: 12px; font-weight: 500; margin-left: 6px; color: rgba(255,255,255,.5); }
.seg button[aria-pressed="true"] { background: #fff; color: #0F0E0D; }
.seg button[aria-pressed="true"] small { color: rgba(15,14,13,.6); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; max-width: 1080px; margin: 44px auto 0; background: var(--gl); border: 1px solid var(--gl); text-align: left; }
.tier { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); background: #0F0E0D; color: #fff; }
.tier h3 { margin: 0; font: 500 15px var(--sans); color: rgba(255,255,255,.7); }
.tier .price { margin: 16px 0 0; font: 450 clamp(42px, 4vw, 54px)/1 var(--display); letter-spacing: -.04em; }
.tier .price small { font: 400 15px var(--sans); letter-spacing: 0; color: rgba(255,255,255,.55); margin-left: 4px; }
.tier ul { list-style: none; padding: 24px 0 0; margin: 28px 0 32px; flex: 1; display: grid; gap: 12px; border-top: 1px solid var(--gl); font-size: 15px; color: rgba(255,255,255,.62); }
.tier li b { color: #fff; font-weight: 600; }
.tier .btn { height: 48px; border-radius: 0; font-size: 15px; font-weight: 500; background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.tier .btn:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.5); }
.tier.hot { background: #171615; box-shadow: inset 0 2px 0 #fff; }
.tier.hot .btn.primary { background: #fff; border-color: #fff; color: #0F0E0D; }
.tier.hot .btn.primary:hover { background: #E6E4E1; border-color: #E6E4E1; }

/* faq */
.qgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; text-align: left; }
.qgrid > div { padding: 24px; border-radius: 22px; background: var(--bg); }
.qgrid h3 { margin: 0; font: 700 17px/1.3 var(--display); letter-spacing: -.01em; }
.qgrid p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* the closing panel goes back outside: sky, baseplate, one white button */
.end { --gh: 150px; position: relative; overflow: hidden; border-radius: 36px; padding: 90px 24px calc(var(--gh) + 60px); text-align: center; color: #fff;
  background: linear-gradient(180deg, #1657C9, #63B1F7 80%, #C3E2FA) top / 100% calc(100% - var(--gh)) no-repeat, #A9B0BE; }
.end h2, .end .go { position: relative; z-index: 2; }
.home .foot { margin-top: 70px; }
.logo.small { font-size: 20px; color: var(--fg); }
.logo.small img { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .txt { order: 0; }
  .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat { padding: 80px 0; }
  .card { width: 80vw; }
  .studio { padding: 24px 24px 0; }
  .console { padding: 20px; font-size: 13px; }
}
@media (max-width: 720px) {
  .world { --u: calc(100vw / 780); --gh: 300px; height: 660px; }
  .world .copy { padding-top: 100px; }
  .l1, .r1, .b1 { display: none; }
  .l2 { left: calc(-378 * var(--u)); } .r2 { left: calc(98 * var(--u)); }
  .l2, .r2 { bottom: calc(110 * var(--u)); } .cube { bottom: calc(150 * var(--u)); } .shade { bottom: calc(126 * var(--u)); }
  .b2 { left: calc(-360 * var(--u)); bottom: calc(330 * var(--u)); font-size: 13px; }
  .sheet { border-radius: 28px 28px 0 0; margin-top: -28px; }
  .card figcaption { font-size: 13px; white-space: nowrap; bottom: 10px; } .card figcaption img { display: none; }
  .end { border-radius: 26px; padding-top: 60px; }
}
@media (max-width: 520px) { .qgrid { grid-template-columns: 1fr; } }

/* ---------- form pieces (static/ui.js, 2026-11-23) ---------- */
/* password: a Show / Hide word inside the field's right edge */
.pwf { position: relative; }
.pwf input { padding-right: 64px; }
.pwf-show { position: absolute; right: 1px; top: 1px; bottom: 1px; padding: 0 14px; border: 0; border-left: 1px solid rgba(255,255,255,.1); border-radius: 0;
  background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; }
.pwf-show:hover, .pwf-show[aria-pressed="true"] { color: #fff; }
.pwf-show:focus-visible { outline: 1px solid #fff; outline-offset: -3px; }
/* strength: four square steps that fill white, a word and a tip; opens once you type */
.pwf-meter { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .25s ease, opacity .25s ease; }
.pwf-meter.on { grid-template-rows: 1fr; opacity: 1; }
.pwf-meter > * { min-height: 0; overflow: hidden; }
.pwf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding-top: 10px; }
.pwf-steps i { height: 2px; background: rgba(255,255,255,.12); transition: background-color .25s ease; }
.pwf-steps i.on { background: #fff; }
.pwf-meter[data-s="1"] .pwf-steps i.on { background: var(--bad); }
.pwf-say { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; font-size: 12.5px; color: var(--dim); }
.pwf-say b { font-weight: 500; color: var(--fg); }
.pwf-meter[data-s="1"] .pwf-say b { color: var(--bad); }
/* delete: the bin's lid lifts on hover; a click swaps the bin for an inline Delete / Cancel pair */
.del .lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .2s ease; }
.del:hover .lid { transform: rotate(-18deg); }
.cfd { display: inline-flex; animation: cfd-in .18s ease-out; }
.cfd button { height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 0; background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; }
.cfd button + button { border-left: 0; }
.cfd .cfd-yes { background: var(--bad); border-color: var(--bad); color: #fff; }
.cfd .cfd-yes:hover { background: #ff8585; border-color: #ff8585; }
.cfd .cfd-no:hover { color: #fff; background: rgba(255,255,255,.06); }
@keyframes cfd-in { from { opacity: 0; transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .pwf-meter, .pwf-steps i, .del .lid, .cfd { transition: none; animation: none; } }


/* narrow header: the wordmark hides when it would touch Start for free (script adds .tight) */
body.tight .logo-word { display: none; }
/* Start for free under the pitch, wide screens only (the header has one on smaller screens) */
.stage .hero-cta { align-self: center; margin-top: 28px; height: 48px; padding: 0 26px; border-radius: 0; font-size: 15px; background: #fff; border-color: #fff; color: #0F0E0D; }
@media (max-width: 1000px) { .stage .hero-cta { display: none; } }
/* the section after the comparison, on the same grid: lines run to the frame, cells split by hairlines, small squares where lines cross */
.more { max-width: 1500px; margin: clamp(80px, 12vh, 140px) auto 0; border-top: 1px solid var(--gl); border-bottom: 1px solid var(--gl); text-align: left; }
.more-head { position: relative; padding: clamp(40px, 6vh, 64px) clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--gl); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 32px; }
.more-head .k1 { left: -4px; top: -4px; } .more-head .k2 { right: -4px; top: -4px; }
.more-head .k { position: absolute; width: 7px; height: 7px; background: #0F0E0D; border: 1px solid rgba(255,255,255,.28); }
.home .more h2 { grid-column: 1; margin: 0; font: 650 clamp(32px, 4vw, 54px)/1.02 var(--display); letter-spacing: -.035em; color: #fff; }
.more-head p { grid-column: 1; margin: 0; color: rgba(255,255,255,.62); font-size: 17px; }
.more-head .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; height: 46px; padding: 0 22px; border-radius: 0; background: #fff; border-color: #fff; color: #0F0E0D; }
.more-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--gl); }
.mcell { margin: 0; padding: clamp(14px, 1.6vw, 22px); background: #0F0E0D; }
.mcell img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); }
.mcell figcaption { margin-top: 12px; color: rgba(255,255,255,.55); font-size: 13.5px; line-height: 1.4; }
@media (max-width: 1000px) { .more-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } .more-head .k { display: none; } }
@media (max-width: 600px) { .more-cells { grid-template-columns: minmax(0, 1fr); } .more-head { grid-template-columns: 1fr; } .more-head .btn { grid-column: 1; grid-row: auto; justify-self: start; } }
.stage { padding-bottom: clamp(80px, 12vh, 140px); }

/* ElevenLabs-style section heads (2026-11-22): heading left in a lighter weight, a plain explanation right, button under the heading */
.split-head { width: min(900px, 100% - 2 * clamp(24px, 8vw, 120px)); margin: clamp(80px, 12vh, 140px) auto 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 48px; align-items: end; text-align: left; }
.home .split-head .win-title { margin: 0; text-align: left; font-weight: 450; letter-spacing: -.035em; white-space: nowrap; }
@media (max-width: 720px) { .home .split-head .win-title { white-space: normal; } }
.split-head p { margin: 0; color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.55; max-width: 46ch; }
.home .split-head + .win { margin-top: clamp(28px, 4vh, 40px); }
.more-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px 48px; }
.more-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.home .more h2 { font-weight: 450; }
.more-head p { grid-column: 2; line-height: 1.55; font-size: 15px; text-wrap: pretty; }
.more-head .btn { grid-column: auto; grid-row: auto; align-self: flex-start; }
/* feature row: four hairline cells with a small icon tile */
.feat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--gl); border-bottom: 1px solid var(--gl); }
.feat-cell { padding: clamp(20px, 2vw, 28px); background: #0F0E0D; }
.feat-cell .ico { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.16); color: #fff; }
.feat-cell .ico svg { width: 18px; height: 18px; }
.feat-cell h3 { margin: 40px 0 6px; font: 500 15px/1.3 var(--sans); letter-spacing: -.01em; color: #fff; }
.feat-cell p { margin: 0; color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.5; }
@media (max-width: 1000px) { .feat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .split-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .split-head, .more-head { grid-template-columns: minmax(0, 1fr); }
  .split-head { width: auto; }
  .more-head p { grid-column: 1; }
}
@media (max-width: 480px) { .feat-row { grid-template-columns: minmax(0, 1fr); } }

/* FAQ (2026-11-22): hairline rows on the grid, question left, a plus that turns into a cross when open */
.faq-list { display: grid; }
.faq-q + .faq-q { border-top: 1px solid var(--gl); }
.faq-q summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px clamp(20px, 3vw, 40px); cursor: pointer; list-style: none;
  font: 500 clamp(16px, 1.3vw, 18px)/1.35 var(--sans); letter-spacing: -.01em; color: #fff; }
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary:hover { background: rgba(255,255,255,.03); }
.faq-q summary svg { width: 18px; height: 18px; flex: none; fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1.6; stroke-linecap: round; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.faq-q[open] summary svg { transform: rotate(45deg); }
.faq-q p { margin: 0; padding: 0 clamp(20px, 3vw, 40px) 24px; max-width: 70ch; color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .faq-q summary svg { transition: none; } }
/* the close: a big line and two buttons, centred, before the footer */
.last { max-width: 1500px; margin: 0 auto; padding: clamp(80px, 12vh, 140px) 16px 0; text-align: center; }   /* .stage's own bottom padding spaces it from the footer */
.home .last h2 { margin: 0; font: 450 clamp(34px, 5vw, 64px)/1.02 var(--display); letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.last-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.last-btns .btn { height: 48px; padding: 0 26px; border-radius: 0; font-size: 15px; }
.last-btns .btn.ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.home .foot { margin-top: 0; border-top-color: var(--gl); }
.home .foot .wrap { max-width: 1500px; }

/* grid refinement (2026-11-22): every box on the landing is a closed frame (side lines too), squares on all four corners, and one inset
   (--in) for every row, so the heading, the feature text, the thumbnails and the questions start on the same line */
.home { --in: clamp(20px, 2.4vw, 32px); }
.more { position: relative; border-left: 1px solid var(--gl); border-right: 1px solid var(--gl); }
.more::before, .more::after { content: ""; position: absolute; bottom: -4px; width: 7px; height: 7px; background: #0F0E0D; border: 1px solid rgba(255,255,255,.28); z-index: 1; }
.more::before { left: -4px; } .more::after { right: -4px; }
.more-head { padding-left: var(--in); padding-right: var(--in); column-gap: 12px; }   /* 12px = the feature cells' gap, so the right column starts on a cell's edge */
@media (min-width: 721px) { body.home .more-head p { padding: 0 var(--in); } }   /* ...and the paragraph on that cell's text line */
.feat-cell, .mcell { padding: var(--in); }
.faq-q summary { padding-left: var(--in); padding-right: var(--in); }
.faq-q p { padding-left: var(--in); padding-right: var(--in); }
@media (max-width: 1000px) { .more::before, .more::after { display: none; } }

/* login / signup (2026-11-22): the landing's ribbons part around a framed card on the hairline grid; square corners, white button */
body.auth-page { --gl: rgba(255,255,255,.09); background: #0F0E0D; }
.auth-page .top { border-bottom-color: var(--gl); }
.auth-stage { position: relative; overflow-x: clip; display: grid; place-items: center; min-height: calc(100svh - 57px); padding: clamp(110px, 16vh, 170px) 16px; }
.auth-page .auth { position: relative; z-index: 1; width: min(440px, 100%); padding: clamp(28px, 4vw, 40px); background: #0F0E0D; border: 1px solid var(--gl); }
.auth-page .auth .k { position: absolute; width: 7px; height: 7px; margin: 0; background: #0F0E0D; border: 1px solid rgba(255,255,255,.28); }
.auth-page .auth .k1 { left: -4px; top: -4px; } .auth-page .auth .k2 { right: -4px; top: -4px; }
.auth-page .auth .k3 { left: -4px; bottom: -4px; } .auth-page .auth .k4 { right: -4px; bottom: -4px; }
.auth-page .auth h1 { margin: 0 0 8px; font: 450 clamp(30px, 3vw, 36px)/1.05 var(--display); letter-spacing: -.035em; color: #fff; }
.auth-page .auth > p.muted { color: rgba(255,255,255,.62); font-size: 15px; line-height: 1.5; }
.auth-page label { color: rgba(255,255,255,.7); }
.auth-page input[type=email], .auth-page input[type=password], .auth-page input[type=text] { height: 40px; }
.auth-page input:focus { border-color: rgba(255,255,255,.55); box-shadow: none; }
.auth-page .auth .google { background: transparent; border-color: rgba(255,255,255,.28); color: #fff; }
.auth-page .auth .google:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.5); }
.auth-page .or { margin: 22px 0 4px; font: 400 13px var(--sans); color: rgba(255,255,255,.6); }
.auth-page .or::before, .auth-page .or::after { background: var(--gl); }
/* the switch line is the card's last row: a hairline across the whole card, like the landing's cells */
.auth-page .auth .alt { margin: 16px calc(-1 * clamp(28px, 4vw, 40px)) calc(-1 * clamp(28px, 4vw, 40px)); padding: 18px clamp(28px, 4vw, 40px); border-top: 1px solid var(--gl); font-size: 14px; color: rgba(255,255,255,.55); }
.auth-page .foot { margin-top: 0; border-top-color: var(--gl); }
@media (max-width: 600px) { .auth-stage { padding-top: 96px; padding-bottom: 96px; } }

/* pricing popup (2026-11-22): content centred top to bottom (auto margins: still scrolls from the top when it's taller than the screen),
   with the "braid" ribbons on a canvas fixed behind it */
dialog.pop[open] { display: flex; flex-direction: column; }
dialog.pop .wrap { position: relative; z-index: 1; margin-block: auto; padding-top: 72px; padding-bottom: 72px; }
dialog.pop .ribbons { position: fixed; left: 0; top: 0; width: 100vw; height: 100dvh; }
.tiers { background: #252423; border-color: #252423; }   /* solid hairlines (the same tone as --gl on the page colour), so the ribbons behind never show through the gaps */

/* landing (2026-11-22): one ribbon canvas fixed behind the whole page (static/ribbons.js wraps it around the part in the middle of the screen).
   The grid boxes and the footer are opaque so the ribbons pass behind them, and the hairlines are solid so they never show through. */
.page-ribbons { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 0; }
body.home { --gl: #252423; }
.home .more { background: #0F0E0D; }
.home .foot { position: relative; z-index: 1; background: #0F0E0D; }
/* three plans side by side only while a card fits its price and its longest line ("1,500 Build credits a month"); else one column */
dialog.pop .wrap, .plans-pick { container-type: inline-size; }
@container (max-width: 819px) { .tiers { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }

/* account (2026-11-23): the landing's grid language. One column, max 1080: a header line, the overview as three hairline cells
   (plan, thumbnails, build credits), the plans when there's no plan, then the settings as rows in one framed box. Square corners throughout. */
body.acct { --gl: #252423; }
.acct-main { max-width: 1080px; padding-top: clamp(40px, 7vh, 72px); }
.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 28px; }
.acct-head h1 { font: 450 clamp(34px, 4vw, 48px)/1.02 var(--display); letter-spacing: -.035em; }
.acct-head p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.acct .btn { height: 44px; padding: 0 18px; border-radius: 0; font-size: 14px; font-weight: 500; background: transparent; border-color: rgba(255,255,255,.22); color: #fff; }
.acct .btn:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.45); transform: none; }
.acct .btn.primary { background: #fff; border-color: #fff; color: var(--ink); }
.acct .btn.primary:hover { background: #E6E4E1; border-color: #E6E4E1; }
.acct .btn.danger { color: var(--bad); border-color: var(--bad-line); }
.acct .btn.danger:hover { background: #2A1515; border-color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--gl); border: 1px solid var(--gl); }
.stat { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 36px); background: var(--bg); min-height: 220px; }
.stat h2 { font: 500 14px var(--sans); letter-spacing: 0; color: var(--muted); }
.stat .big { margin: 14px 0 0; font: 450 clamp(38px, 4vw, 52px)/1 var(--display); letter-spacing: -.04em; color: #fff; }
.stat .big small { font: 400 17px var(--sans); letter-spacing: 0; color: var(--dim); }
.stat .sub { margin: auto 0 0; padding-top: 14px; font-size: 14px; color: var(--muted); }
.stat .btn { margin-top: 18px; }
.stat .bar { width: 100%; height: 2px; margin-top: 22px; background: rgba(255,255,255,.1); }
.stat .bar i { display: block; height: 100%; background: #fff; transition: width .4s ease; }
.acct-main > .msg:empty { min-height: 0; margin: 0; }
.plans-pick { margin-top: 72px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.row-head h2, .acct .group { font: 450 clamp(26px, 2.6vw, 32px)/1.1 var(--display); letter-spacing: -.03em; }
.plans-pick .seg { margin: 0; }
.plans-pick .tiers { max-width: none; margin-top: 24px; }
.plans-pick .tier .btn { height: 48px; font-size: 15px; }
.fine { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--dim); max-width: 720px; }
.acct .group { margin: 88px 0 24px; }
.rows { border: 1px solid var(--gl); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px; padding: clamp(24px, 3vw, 32px); margin: 0; border-top: 1px solid var(--gl); }
.row:first-child { border-top: 0; }
.row h3 { font: 500 16px/1.3 var(--sans); letter-spacing: -.01em; }
.row > div:first-child p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 46ch; }
.row .ctl { min-width: 0; }
.row > .ctl { align-self: center; }   /* a control shorter than its row's text sits in the middle, not at the top */
.row .ctl.btnrow { align-content: start; justify-content: flex-start; }
.row .ctl label:first-child, .row .ctl > div:first-child label { margin-top: 0; }
.row .ctl:not(.btnrow) > .btn { margin-top: 16px; }   /* stacked buttons only: a .btnrow lines them up side by side */
.row .ctl > .btn:first-child { margin-top: 0; }
.row.danger h3 { color: #fff; }
.acct input[type=email], .acct input[type=password], .acct input[type=text] { height: 40px; border-radius: 10px; background: transparent; border-color: rgba(255,255,255,.16); }
.acct input:focus { border-color: rgba(255,255,255,.55); box-shadow: none; }
.acct .foot { border-top-color: var(--gl); }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; }
  .row { grid-template-columns: 1fr; gap: 18px; }
}

/* thumbnails app (2026-11-23): same language as the account page (body.acct): big light heading, square framed composer, hairline grid */
.acct .btn.small { height: 32px; padding: 0 10px; font-size: 13px; }
.acct .btn.icon { width: 32px; padding: 0; }
.acct .btn.ghost { border-color: transparent; }
.acct .btn.ghost:hover { border-color: rgba(255,255,255,.22); }
.acct .tool-head { align-items: flex-end; margin-bottom: 28px; }
.acct .tool-head h1 { font: 450 clamp(34px, 4vw, 48px)/1.02 var(--display); letter-spacing: -.035em; }
.acct .tool-head p { margin: 10px 0 0; font-size: 15px; }
.acct .quota { flex-direction: column; align-items: flex-end; gap: 8px; font: 14px var(--sans); }
.acct .quota .meter { width: 180px; height: 2px; border-radius: 0; background: rgba(255,255,255,.1); }
.acct .quota .meter i { border-radius: 0; background: #fff; }
.acct .composer { border-radius: 0; background: var(--bg); border-color: var(--gl); }
.acct .composer:focus-within { border-color: rgba(255,255,255,.4); }
.acct .composer textarea { min-height: 110px; padding: 22px 22px 10px; font-size: 17px; }
.acct .composer-bar { padding: 12px; border-top-color: var(--gl); }
.acct .hist-head { margin: 80px 0 24px; padding: 0; border: 0; }
.acct .hist-head h2 { font: 450 clamp(26px, 2.6vw, 32px)/1.1 var(--display); letter-spacing: -.03em; }
.acct .hist-head .label { font: 14px var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); }
.acct .grid { gap: 28px 20px; }
.acct .thumb .shot { border-radius: 0; border-color: var(--gl); }
.acct .thumb .shot:hover { border-color: rgba(255,255,255,.35); }
.acct .thumb .sub { font: 12.5px var(--sans); }
.acct .empty { border: 1px solid var(--gl); border-radius: 0; padding: clamp(40px, 7vw, 72px) 24px; }
.acct .empty h3 { font: 450 24px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.acct .empty p { font-size: 15px; margin-bottom: 22px; }
.acct .chips button { border-radius: 0; font: 14px var(--sans); padding: 9px 14px; background: transparent; border-color: rgba(255,255,255,.16); }
.acct .chips button:hover { border-color: rgba(255,255,255,.45); }
@media (max-width: 700px) { .acct .quota { align-items: flex-start; } }

/* landing header: Log in beside Get started (signed in, both become one "Open devable"); on narrow screens Log in lives in the menu */
.top .btn.login { height: 42px; padding: 0 20px; font-size: 14px; font-weight: 500; border-radius: 0; background: transparent; border-color: rgba(255,255,255,.22); color: #fff; }
.top .btn.login:hover { background: rgba(255,255,255,.08); }
@media (max-width: 1000px) { .top .btn.login { display: none; } }
@media (min-width: 1001px) { #mlogin { display: none; } }

/* signed-in pages (2026-11-23): a sidebar instead of the header, in the pages' language (hairlines, square, the current item marked with a white
   left edge like the hot pricing tier's top line). Top to bottom: logo + collapse button, Build / Thumbnails, Resources, then pinned to the bottom
   the usage box (or a notice when something ran out), the Studio line, Log out + legal links, and the account card.
   Collapsing to the 70px rail moves nothing: every icon sits 26px from the left in both states, text keeps its width (so nothing reflows or
   changes height) and just fades, and the rail clips it. Only the collapse button rides the right edge. */
body.shell { padding-left: 248px; }
body.shell > .foot { display: none; }
.sb { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 248px; display: flex; flex-direction: column; padding: 20px 14px 0;
  border-right: 1px solid var(--gl); background: var(--bg); overflow: hidden auto; }
.sb-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sb .sb-top .logo { flex: 0 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; color: #fff; font-size: 23px; }
.sb .sb-top .logo img { width: 27px; height: 27px; flex: none; }
.sb-toggle { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px 0 0; border: 0; border-radius: 0; background: none; color: var(--muted); cursor: pointer; }
.sb-toggle:hover { color: #fff; background: rgba(255,255,255,.05); }
.sb-toggle svg { width: 17px; height: 17px; flex: none; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-nav a { display: flex; align-items: center; gap: 12px; width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: 0; background: none;
  color: var(--muted); font: 500 14.5px var(--sans); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.sb-nav a svg { width: 17px; height: 17px; flex: none; }
.sb-nav a:hover, .sb-me:hover { color: #fff; background: rgba(255,255,255,.05); }
.sb-nav a[aria-current], .sb-me[aria-current] { color: #fff; background: rgba(255,255,255,.08); }
.sb-res { margin-top: 22px; }
.sb-res .sb-label { display: flex; align-items: center; height: 30px; margin: 0; padding: 0 12px; color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.sb-res .sb-nav a { font-size: 14px; }
.sb-fill { flex: 1; min-height: 24px; }
.sb-me { flex: none; display: flex; align-items: center; gap: 12px; margin: 0 -14px; padding: 12px 14px 14px 20px; border-top: 1px solid var(--gl); color: var(--muted); text-decoration: none; }
.sb-me .av { flex: none; width: 29px; height: 29px; display: grid; place-items: center; background: #fff; color: var(--ink); font: 600 13px var(--sans); }
.sb-me .who { width: 150px; display: grid; line-height: 1.3; white-space: nowrap; }
.sb-me .who b { overflow: hidden; text-overflow: ellipsis; color: #fff; font-size: 13.5px; font-weight: 500; }
.sb-me .who small { color: var(--muted); font-size: 12px; }
.sb-me > svg { flex: none; width: 14px; height: 14px; }
/* the rail */
.sb .logo, .sb-nav span, .sb-res .sb-label, .sb-me .who, .sb-me > svg { transition: opacity .15s ease; }
.sb-ready.shell { transition: padding-left .2s ease; } .sb-ready .sb { transition: width .2s ease; }   /* only after load, so a saved rail doesn't animate shut on every page */
body.shell.sb-mini { padding-left: 70px; }
.sb-mini .sb { width: 70px; }
.sb-mini .sb .logo, .sb-mini .sb-nav span, .sb-mini .sb-res .sb-label,
  .sb-mini .sb-me .who, .sb-mini .sb-me > svg { opacity: 0; pointer-events: none; }
.sb-mini .sb .sb-top .logo { flex-basis: 0; padding: 0; }   /* so the button sits in line with the icons */
@media (prefers-reduced-motion: reduce) { .sb-ready.shell, .sb-ready .sb, .sb * { transition: none !important; } }
/* phones: a top bar with the mark, Build / Thumbnails and the account avatar; the footer comes back for the legal links */
@media (max-width: 860px) {
  body.shell, body.shell.sb-mini { padding-left: 0; }
  body.shell > .foot { display: block; }
  .sb, .sb-mini .sb { position: sticky; top: 0; bottom: auto; width: auto; height: 56px; flex-direction: row; align-items: center; gap: 4px; padding: 0 var(--gut); overflow: visible;
    border-right: 0; border-bottom: 1px solid var(--gl); }
  .sb-top { margin: 0; flex: 1; }
  .sb .sb-top .logo, .sb-mini .sb .sb-top .logo { font-size: 0; gap: 0; padding: 0 4px; opacity: 1; flex: none; }
  .sb-toggle, .sb-res, .sb-fill, .sb-me .who, .sb-me > svg { display: none !important; }
  .sb-nav { flex-direction: row; }
  .sb-nav a { width: auto; height: 36px; padding: 0 8px; font-size: 14px; }
  .sb-nav a svg { display: none; }
  .sb-mini .sb-nav span { opacity: 1; pointer-events: auto; }
  .sb-nav a[aria-current] { box-shadow: inset 0 -2px 0 #fff; }
  .sb-me { margin: 0 0 0 6px; padding: 0; border: 0; }
  .sb-me[aria-current] { background: none; box-shadow: none; }
}

/* Build page (2026-11-23): no prompt box, you chat in Studio. Status cells, the setup as numbered rows, then the activity log */
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat .big.conn { display: flex; align-items: center; gap: 14px; }
.stat .big.conn .dot { width: 11px; height: 11px; }
.stat .sub .spinner { margin-right: 8px; vertical-align: -2px; }
.acct .steps.rows { list-style: none; margin: 0; padding: 0; }
.acct .steps.rows li.row { padding: clamp(24px, 3vw, 32px); padding-left: calc(clamp(24px, 3vw, 32px) + 44px); color: var(--muted); }
.acct .steps.rows li.row::before { left: clamp(24px, 3vw, 32px); top: calc(clamp(24px, 3vw, 32px) - 1px); width: 26px; height: 26px; line-height: 24px; border-radius: 0; border-color: rgba(255,255,255,.22); color: #fff; }
.acct .log { padding: 0; gap: 14px; }
.acct .log .intro { border: 1px solid var(--gl); border-radius: 0; padding: clamp(40px, 7vw, 64px) 24px; text-align: center; }
.acct .log .intro h3 { font: 450 24px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 8px; color: #fff; }
.acct .log .intro p { max-width: 56ch; margin: 0 auto; color: var(--muted); font-size: 15px; }
.acct .m.user { border-radius: 0; background: rgba(255,255,255,.06); border-color: var(--gl); }
.acct .m.notice { border-left-color: #fff; }
.acct .call pre { border-radius: 0; border-color: var(--gl); background: transparent; }
body.shell > main { container: main / inline-size; }
@container main (max-width: 639px) { .stats.two { grid-template-columns: minmax(0, 1fr); } }
.stats.two .stat { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.stats.two .stat .sub { margin-top: 0; }
.stat .bar.blank { visibility: hidden; }

@media (max-width: 600px) { .acct-head { flex-direction: column; align-items: flex-start; } }

/* dashboard (2026-11-23): two tool cards (what's left, Studio, one button each), then the four newest thumbnails */
.dash .stat .sub.conn { display: flex; align-items: center; gap: 10px; font: 14px var(--sans); }
.dash .stat .sub.conn .dot { box-shadow: none; }
.dash-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dash-h a { color: var(--muted); font-size: 14px; text-decoration: none; }
.dash-h a:hover { color: #fff; }
.dash-acts { display: flex; align-items: center; gap: 10px; }
.dash-h.users-h { align-items: center; margin: 40px 0 14px; } .dash-h.users-h h2 { margin: 0; }   /* the admin Users row: heading, buttons and search on one centre line */
.dash-h.users-h input { height: 36px; border-radius: 12px; }
@media (max-width: 600px) { .dash-h.users-h { flex-wrap: wrap; } .users-h .dash-acts { flex: 1 1 100%; flex-wrap: wrap; } .dash-h.users-h input { flex: 1; width: auto; min-width: 160px; } }
.dash .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dash .thumb { display: block; color: inherit; text-decoration: none; }
.dash .thumb .p { margin-top: 10px; color: var(--muted); }
.dash .thumb:hover .p { color: #fff; }
.dash-none { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .dash .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* style C (2026-11-23, picked from three mockups): the signed-in pages sit in one big rounded panel beside a borderless sidebar.
   Filled cards instead of hairline grids, 10px buttons, rounded thumbnails and inputs, calmer type. Overrides the square rules above;
   the landing stays square. */
body.shell { --panel: #151413; --card: #1C1B19; --edge: #232120; --fill: #2A2826; --fill2: #34312E; }
body.shell .sb { border-right: 0; }
/* the bottom: only the account, as a glass tile whose avatar sits on the icon column and whose text sits on the text column (so nothing
   moves when the rail collapses). Log out is in the account settings; Terms and Privacy are under Resources. */
body.shell .sb-me { gap: 8px; margin: 12px 0; padding: 7px 10px 7px 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
body.shell .sb-me .av { width: 32px; height: 32px; border-radius: 50%; font-size: 13px; }
body.shell .sb-me .who { width: 146px; }
body.shell .sb-me:hover, body.shell .sb-me[aria-current] { background: rgba(255,255,255,.08); }
body.shell.sb-mini .sb-me, body.shell.sb-mini .sb-me:hover { background: none; border-color: transparent; box-shadow: none; }
body.shell > main { width: auto; max-width: none; min-height: calc(100vh - 20px); margin: 10px 10px 10px 0;
  padding: clamp(32px, 6vh, 52px) max(40px, calc((100% - 1080px) / 2)) 64px; background: var(--panel); border: 1px solid var(--edge); border-radius: 22px; }
body.shell .acct-head h1, body.shell .tool-head h1 { font: 500 30px/1.1 var(--display); letter-spacing: -.025em; }
body.shell .acct-head p, body.shell .tool-head p { font-size: 14.5px; }
body.shell .group, body.shell .hist-head h2 { font: 500 18px/1.3 var(--sans); letter-spacing: -.01em; }
body.shell .group, body.shell .hist-head { margin: 44px 0 16px; }
body.shell .acct-head, body.shell .tool-head { padding-bottom: 0; margin-bottom: 24px; }
/* cards */
body.shell .stats { gap: 12px; background: none; border: 0; }
body.shell .stat { background: var(--card); border-radius: 16px; padding: 24px 26px; min-height: 0; }
body.shell .stat .big { font: 500 40px/1 var(--display); }
body.shell .stat .bar, body.shell .quota .meter { height: 4px; border-radius: 99px; background: #2C2A27; }
body.shell .stat .bar i, body.shell .quota .meter i { border-radius: 99px; }
body.shell .rows, body.shell .empty, body.shell .log .intro { border: 0; background: var(--card); border-radius: 16px; }
body.shell .row { border-top-color: #282624; }
body.shell .composer { background: var(--card); border-color: transparent; border-radius: 16px; }
body.shell .composer:focus-within { border-color: #3A3734; }
body.shell .composer-bar { border-top-color: #282624; }
body.shell .thumb .shot { border-radius: 12px; border-color: transparent; }
body.shell .thumb .shot:hover { border-color: rgba(255,255,255,.3); }
body.shell .m.user { border-radius: 12px; }
body.shell .call pre { border-radius: 10px; }
body.shell .steps.rows li.row::before { border-radius: 50%; }
/* controls */
body.shell main .btn { height: 38px; padding: 0 16px; border-radius: 10px; }
body.shell main .btn:not(.primary):not(.danger):not(.ghost) { background: var(--fill); border-color: transparent; }
body.shell main .btn:not(.primary):not(.danger):not(.ghost):hover { background: var(--fill2); }
body.shell main .btn.ghost { border-radius: 8px; }
body.shell .chips button { border-radius: 10px; background: var(--fill); border-color: transparent; }
body.shell .chips button:hover { background: var(--fill2); }
body.shell main input[type=email], body.shell main input[type=password], body.shell main input[type=text] { border-radius: 10px; background: var(--panel); border-color: #2E2C29; }
body.shell .pwf-show { border-radius: 0 9px 9px 0; }
@media (max-width: 860px) {
  body.shell > main { min-height: 0; margin: 0; padding: 32px var(--gut) 56px; border: 0; border-radius: 0; }
  body.shell .sb-me, body.shell .sb-me:hover, body.shell .sb-me[aria-current] { margin: 0 0 0 6px; padding: 0; background: none; border-color: transparent; box-shadow: none; }
  body.shell .sb-nav a[aria-current] { box-shadow: none; }
}

/* a thumbnail being made (common.js craft()): the shot sketches itself stage by stage, white lines on the card colour */
.thumb.pending .shot.craft { display: block; position: relative; overflow: hidden; animation: none; background: #1A1917; }
.craft svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.6); stroke-width: .55; stroke-linecap: round; stroke-linejoin: round; }
.craft .k1 path { stroke: rgba(255,255,255,.07); stroke-dasharray: 1.5 1.5; }
.craft .k1 { opacity: 0; transition: opacity 1.2s ease; }
.craft.s1 .k1 { opacity: 1; }
.craft [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.6, 0, .2, 1), fill .8s ease; }
.craft.s2 .k2 [pathLength], .craft.s3 .k3 [pathLength], .craft.s4 .k4 [pathLength], .craft.s5 .k5 [pathLength] { stroke-dashoffset: 0; }
.craft .k2, .craft .k3, .craft .k4, .craft .k5 { opacity: 0; transition: opacity .3s ease; }   /* round caps would leave dots before a line draws */
.craft.s2 .k2, .craft.s3 .k3, .craft.s4 .k4, .craft.s5 .k5 { opacity: 1; }
.craft .k3 rect:nth-child(2) { transition-delay: .15s; } .craft .k3 rect:nth-child(3), .craft .k3 rect:nth-child(4) { transition-delay: .35s; }
.craft .k3 rect:nth-child(5), .craft .k3 rect:nth-child(6) { transition-delay: .55s; }
.craft .k2 rect { transition-delay: .5s; }
.craft .k4 path { opacity: 0; transition: opacity 1s ease .6s; }
.craft.s4 .k4 path { opacity: 1; animation: rays 2.4s ease-in-out infinite; }
.craft.s4 .k4 circle { fill: rgba(255,255,255,.08); }
.craft.s5 rect { fill: rgba(255,255,255,.06); }
.craft.s3 .bob { animation: craft-bob 2.6s ease-in-out 1.4s infinite; }
.craft .spark { fill: #fff; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; }
.craft.s6 .spark { animation: twinkle 1.8s ease-in-out infinite; }
.craft .scan { position: absolute; left: 0; right: 0; top: -40%; height: 40%; opacity: 0; background: linear-gradient(transparent, rgba(255,255,255,.07) 70%, rgba(255,255,255,.22) 100%); }
.craft.s5 .scan { opacity: 1; animation: scan 2.2s linear infinite; }
.craft::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.04) 50%, transparent 65%) 0 0 / 300% 100%; animation: sheen 2.4s linear infinite; pointer-events: none; }
.craft-say { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 8px; font: 13px var(--sans); color: var(--muted); white-space: nowrap; }
.craft-say b { color: #fff; font-weight: 500; }
.craft-say span { margin-left: auto; color: var(--dim); }
.craft-say .pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s ease-in-out infinite; }
.craft-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.06); }
.craft-bar i { display: block; height: 100%; background: #fff; transition: width .5s linear; }
.dash .craft-say span { display: none; }
@keyframes craft-bob { 50% { transform: translateY(-1.5px); } }
@keyframes rays { 50% { opacity: .35; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes scan { to { top: 100%; } }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .craft *, .craft::after { animation: none !important; transition: none !important; } }

/* style C on the landing (2026-11-23): the app's look. The glass pill nav is back (a highlight glides under the link you point at),
   the framed hairline boxes become rounded filled cards, buttons get soft corners. Overrides the square grid rules above. */
body.home, dialog.pop { --card: #1C1B19; --card2: #232220; --fill: #2A2826; --fill2: #34312E; --sep: #2A2826; }
@media (min-width: 1001px) {
  body.home .top.bare .wrap { display: flex; justify-content: space-between; align-items: center; max-width: 1500px; padding: 0 32px; }
  body.home .top.bare .logo { padding-left: 0; }
  body.home .top-end { padding-right: 0; }
}
body.home .pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: auto; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
body.home .pill a { flex: none; display: block; padding: 8px 18px; border-radius: 999px; font-size: 15px; color: rgba(255,255,255,.9); }
body.home .pill a + a { border-left: 0; }
body.home .pill .glow { top: 5px; bottom: 5px; border-radius: 999px; background: rgba(255,255,255,.12); }
body.home .top .cta, body.home .top .btn.login { border-radius: 999px; }
body.home .top .btn.login { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
body.home .top .btn.login:hover { background: rgba(255,255,255,.14); }
body.home .menu-btn { border-radius: 999px; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
body.home .mnav { border-radius: 18px; overflow: hidden; background: rgba(28,27,25,.92); }
/* first screen: no ruled band */
body.home .hero-grid { border-top: 0; border-bottom: 0; }
/* thumbnails and questions: rounded filled cards instead of closed hairline frames */
/* glass islands (2026-11-23): the ribbons run behind, blurred through frosted cards; the panes inside are clear glass with a lit top edge */
body.home .more { width: calc(100% - 32px); border-radius: 24px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); overflow: hidden; }
body.home .more::before, body.home .more::after, body.home .more-head .k { display: none; }
body.home .more-head { border-bottom: 0; }
body.home .feat-row { gap: 12px; padding: 0 var(--in); background: none; border-bottom: 0; }
body.home .feat-cell { border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
body.home .feat-cell .ico { border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); }
body.home .more-cells { gap: 12px; padding: var(--in); background: none; }
body.home .mcell { padding: 0; background: none; }
body.home .mcell img { border-radius: 14px; border: 0; }
body.home .faq-list { padding: 0 var(--in) var(--in); gap: 6px; }
body.home .faq-q { border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); overflow: hidden; }
body.home .faq-q + .faq-q { border-top: 0; }
body.home .faq-q summary:hover { background: rgba(255,255,255,.03); }
/* buttons */
body.home .stage .hero-cta, body.home .more-head .btn, body.home .last-btns .btn { border-radius: 12px; }
body.home .last-btns .btn.ghost { background: var(--fill); border-color: transparent; }
body.home .last-btns .btn.ghost:hover { background: var(--fill2); }
/* pricing (the landing popup and the account page's plans): rounded cards, a soft toggle */
.seg { border-radius: 12px; border-color: #2A2826; }
.seg button { border-radius: 9px; }
.tiers { gap: 12px; background: none; border: 0; }
.tier { border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
.tier ul { border-top-color: #2C2A27; }
.tier .btn { border-radius: 12px; background: #2A2826; border-color: transparent; }
.tier .btn:hover { background: #34312E; border-color: transparent; }
.tier.hot { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }   /* no white top line */
dialog.pop .x { border-radius: 999px; }
@media (max-width: 1000px) { body.home .more { width: calc(100% - 32px); } }

/* a thumbnail opened big (common.js): a popup over the page, the image with its prompt and a download button under it */
dialog.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
dialog.viewer:not([open]) { display: none; }
dialog.viewer::backdrop { background: rgba(8,8,7,.9); }
dialog.viewer figure { margin: 0; width: min(1200px, calc(100vw - 48px), (100dvh - 150px) * 16 / 9); animation: pop-in .2s ease-out; }
dialog.viewer img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #1C1B19; }
dialog.viewer figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
dialog.viewer figcaption span { min-width: 0; color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.viewer .btn { flex: none; height: 40px; padding: 0 18px; border-radius: 10px; background: #fff; border-color: #fff; color: var(--ink); font-size: 14px; font-weight: 500; }
dialog.viewer .viewer-x { position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
dialog.viewer .viewer-x:hover { background: rgba(255,255,255,.16); }
@media (max-width: 600px) {   /* phones: the image fits the width, the prompt wraps, Download is a full-width button under it */
  dialog.viewer { padding: 16px; }
  dialog.viewer figure { width: calc(100vw - 32px); }
  dialog.viewer figcaption { flex-direction: column; align-items: stretch; gap: 12px; }
  dialog.viewer figcaption span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  dialog.viewer figcaption .btn { width: 100%; justify-content: center; height: 44px; }
}

/* the landing's footer as a glass island too (2026-11-23): the ribbons pass under it, blurred, instead of being cut off by a solid bar */
body.home .foot { margin: 0 16px 16px; padding: 22px 0; border-radius: 24px; border: 1px solid rgba(255,255,255,.08); background: rgba(15,14,13,.62); color: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4); }
body.home .foot nav a { color: rgba(255,255,255,.78); } body.home .foot nav a:hover { color: #fff; }

/* Account as a popup (2026-11-23): the sidebar's account card opens /account framed in a dialog; framed, the page drops its sidebar and panel */
dialog.acct-pop { width: min(940px, 100vw - 32px); height: min(860px, 100dvh - 32px); max-width: none; max-height: none; padding: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: #151413; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
dialog.acct-pop[open] { animation: pop-in .2s ease-out; }
dialog.acct-pop::backdrop { background: rgba(8,8,7,.72); }
dialog.acct-pop iframe { display: block; width: 100%; height: 100%; border: 0; background: #151413; }
dialog.acct-pop .pop-x { position: absolute; top: 16px; right: 16px; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
dialog.acct-pop .pop-x:hover { background: rgba(255,255,255,.14); }
@media (max-width: 600px) { dialog.acct-pop { width: 100vw; height: 100dvh; border: 0; border-radius: 0; } }
body.embed .sb { display: none !important; }
body.embed.shell, body.embed.shell.sb-mini { padding-left: 0; background: #151413; }
body.embed.shell > main { min-height: 0; margin: 0; padding: 28px 40px 48px; border: 0; border-radius: 0; background: none; }
body.embed > .foot { display: none !important; }
@media (max-width: 600px) { body.embed.shell > main { padding: 24px 16px 40px; } }

/* the site is dark: tell the browser, so scrollbars and built-in controls are drawn dark too (the account popup showed a white scrollbar) */
:root { color-scheme: dark; }
html:has(body.embed) { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }

/* account (2026-11-23): settings in three groups (plan and billing, security, account); lists of devices and invoices; password and delete as popups */
.acct .plans-pick[hidden] + .group { margin-top: 8px; }   /* the first group sits close under the header, unless the plans are shown above it */
.row .list { display: grid; gap: 6px; }
.row .list + .btn { margin-top: 14px; }
.row .list .none { margin: 0; color: var(--muted); font-size: 14px; }
.row .item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px 8px 12px; border-radius: 12px; background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06); color: inherit; text-decoration: none; }
a.item:hover { background: rgba(255,255,255,.07); }
.item-ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--muted); }
.item-ico svg { width: 16px; height: 16px; }
.item-main { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.item-main b { font-weight: 500; font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-main small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-amt { flex: none; font-size: 14px; color: #fff; font-variant-numeric: tabular-nums; }
.item .tag { flex: none; padding: 3px 9px; border: 0; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); font: 500 12px var(--sans); text-transform: none; letter-spacing: 0; }
.item .tag.warn { background: rgba(255,255,255,.1); color: var(--bad); }
body.shell main .item .btn.small { height: 30px; padding: 0 12px; font-size: 13px; }
dialog.mini { width: min(440px, 100vw - 32px); padding: 28px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: #1C1B19; color: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.55); }
dialog.mini[open] { animation: pop-in .2s ease-out; }
dialog.mini::backdrop { background: rgba(8,8,7,.7); }
dialog.mini h3 { margin: 0; font: 500 19px/1.3 var(--sans); letter-spacing: -.01em; }
dialog.mini h3 + p { margin: 8px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
dialog.mini label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
dialog.mini input { width: 100%; height: 40px; border-radius: 10px; background: #151413; border: 1px solid #2E2C29; color: #fff; padding: 0 14px; font: 15px var(--sans); }
dialog.mini input:focus { outline: 0; border-color: rgba(255,255,255,.4); }
dialog.mini .pwf-show { border-radius: 0 9px 9px 0; }
dialog.mini .msg:empty { display: none; }
dialog.mini .msg { margin: 12px 0 0; }
.mini-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
dialog.mini .btn { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; }
dialog.mini .btn:not(.primary):not(.danger) { background: #2A2826; border-color: transparent; color: #fff; }
dialog.mini .btn.primary { background: #fff; border-color: #fff; color: var(--ink); }
dialog.mini .btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #1A0707; }
@media (max-width: 600px) { dialog.mini { padding: 22px; } }
/* the three plans stay side by side down to 720px (the account popup is ~940px wide); tighter cards in between */
@media (max-width: 1100px) { .tier { padding: 24px; } .tier .price { font-size: 38px; } .tier ul { margin: 20px 0 24px; padding-top: 18px; } .plans-pick .tier .btn, .tier .btn { height: 44px; } }

/* Build setup: a photo of each install step beside its text (static/steps/) */
.steps .step-shot { display: block; width: 100%; max-width: 340px; height: auto; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }
.steps .step-shot.icon { width: 64px; border-radius: 10px; }
.steps .row > div:first-child .btn { margin-top: 14px; }

/* admin (2026-11-23): four number cards, a users table, the latest thumbnails */
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stats.four { grid-template-columns: 1fr; } }
.admin .stat .big { font-size: 34px; }
.dash-h.users-h { align-items: center; }
.dash-h.users-h input { width: min(280px, 50%); height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid #2E2C29; background: var(--panel); color: #fff; font: 14px var(--sans); }
.dash-h.users-h input:focus { outline: 0; border-color: rgba(255,255,255,.4); }
.atable-wrap { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; font-size: 14px; }
.atable th { padding: 14px 16px; text-align: left; font-weight: 500; font-size: 12.5px; color: var(--dim); border-bottom: 1px solid #282624; white-space: nowrap; }
.atable td { padding: 12px 16px; border-bottom: 1px solid #232120; color: var(--muted); white-space: nowrap; }
.atable tr:last-child td { border-bottom: 0; }
.atable td b { color: #fff; font-weight: 500; }
.atable td small { color: var(--dim); }
.atable td.none { color: var(--muted); text-align: center; padding: 28px; }
.atable .tag { display: inline-block; padding: 3px 9px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 500 12px/1.4 var(--sans); text-transform: none; letter-spacing: 0; }
.atable .tag.off { background: rgba(255,255,255,.04); color: var(--dim); }
.atable a.ext { color: var(--muted); text-decoration: none; }
.atable a.ext:hover { color: #fff; }
.agrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.agrid .ameta { padding-top: 8px; display: grid; gap: 2px; }
.agrid .ameta .p { margin: 0; font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agrid .ameta small { font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* style C on every page outside the app (2026-11-23): login / signup / reset / connect / legal / 404 lose the last square corners.
   Frosted glass cards, 12px inputs, pill buttons on the auth pages, rounded everything else; no corner squares, no white edge lines. */
body.page:not(.shell) .top .btn, body.page:not(.shell) .top .cta { border-radius: 999px; }
body.page:not(.shell) input[type=email], body.page:not(.shell) input[type=password], body.page:not(.shell) input[type=text], body.page:not(.shell) input[type=url] {
  border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
body.page:not(.shell) input:focus { border-color: rgba(255,255,255,.4); box-shadow: none; }
body.page:not(.shell) .pwf-show { border-radius: 0 9px 9px 0; }
/* the sign-in card (and reset / connect): frosted glass the ribbons glow through */
.auth-page .auth, .auth-wrap .auth { border-radius: 24px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); overflow: hidden; }
.auth-wrap .auth { padding: clamp(28px, 4vw, 40px); }
.auth-page .auth .k { display: none; }
.auth-page .auth .google { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.auth-page .auth .google:hover { background: rgba(255,255,255,.1); }
.auth-page .auth .alt { border-top-color: rgba(255,255,255,.08); }
.auth-side .img, .session { border-radius: 18px; border-color: rgba(255,255,255,.09); }
.session .m.user { border-radius: 14px; }
.pair { border-radius: 16px; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); font-family: var(--sans); }
/* setup steps: round numbers; legal notes without the white edge */
.steps li::before { border-radius: 50%; }
.legal .note { border-left: 1px solid var(--line); border-radius: 14px; }
.cfd button { border-radius: 10px; }

/* admin, part 2: clickable users, the user popup, the budget editor */
.atable tr.click { cursor: pointer; }
.atable tr.click:hover td { background: rgba(255,255,255,.03); color: #fff; }
.atable tr.click:focus-visible { outline: 1px solid rgba(255,255,255,.4); outline-offset: -1px; }
.stat h2 .linkish { margin-left: 8px; padding: 0; border: 0; background: none; color: var(--dim); font: 500 12.5px var(--sans); cursor: pointer; }
.stat h2 .linkish:hover { color: #fff; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.inline-form label { width: 100%; font-size: 12.5px; color: var(--muted); }
.inline-form input, .inline-form select { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid #2E2C29; background: #151413; color: #fff; font: 14px var(--sans); }
.inline-form input[type=number] { width: 110px; }
.inline-form input[type=email] { flex: 1; min-width: 200px; }
.inline-form .unit { font-size: 13px; color: var(--muted); }
body.shell main .btn.small, dialog.mini .btn.small { height: 36px; padding: 0 14px; font-size: 13px; }
dialog.mini.wide { width: min(680px, 100vw - 32px); max-height: min(860px, 100dvh - 32px); overflow-y: auto; }
dialog.mini .pop-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
dialog.mini #uMeta { margin: 6px 0 4px; color: var(--muted); font-size: 13.5px; }
dialog.mini #uMeta a { color: var(--muted); text-decoration: none; }
dialog.mini #uMeta a:hover { color: #fff; }
.usec { margin-top: 18px; padding-top: 16px; border-top: 1px solid #2A2826; }
.usec h4 { margin: 0 0 4px; font: 500 14px var(--sans); color: #fff; }
.usec > p { margin: 0; color: var(--muted); font-size: 13.5px; }
.usec > .btn { margin-top: 10px; }
.usec.danger h4 { color: var(--bad); }
.ulist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ulist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.035); font-size: 13px; color: #fff; }
.ulist li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ulist li small { flex: none; color: var(--dim); }
.uchats { display: grid; gap: 6px; margin-top: 10px; }
.uchat { border-radius: 10px; background: rgba(255,255,255,.035); }
.uchat summary { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; cursor: pointer; list-style: none; font-size: 13px; color: #fff; }
.uchat summary::-webkit-details-marker { display: none; }
.uchat summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uchat summary small { flex: none; color: var(--dim); }
.uchat[open] summary span { white-space: normal; }
.ulog { display: grid; gap: 6px; padding: 4px 12px 12px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.ulog .um { font-size: 13px; line-height: 1.5; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.ulog .um.user { justify-self: end; max-width: 85%; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; }
.ulog .um.step { font-size: 12px; color: var(--dim); }
.ulog .um.bad { color: #f87171; }
.ulist li.none, .usec p.none { color: var(--muted); background: none; padding: 0; }
.ugrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ugrid .thumb .shot { border-radius: 8px; }

/* the Build page code box: big and white like the connect page (the step text rules were shrinking it) */
#code.pair { font: 600 34px/1 var(--sans); letter-spacing: .12em; color: #fff; max-width: 340px; }

/* Build (2026-11-23): the Connect Studio guide is a popup; past chats are a list under the current chat */
dialog.mini.guide { width: min(760px, 100vw - 32px); }
.guide .steps.rows { background: none; margin-top: 6px; }
.guide .steps.rows li.row { display: block; padding: 18px 0 18px 44px; border-top: 1px solid rgba(255,255,255,.07); }
.guide .steps.rows li.row::before { left: 0; top: 17px; }
.guide .steps.rows li.row h3 { font-size: 15.5px; margin: 0 0 4px; color: #fff; }
.guide .steps.rows li.row p { margin: 0; font-size: 14px; }
.guide .row .ctl { margin-top: 12px; }
.guide #code.pair { margin: 14px 0 6px; }
.guide .fine, .guide details { margin-top: 12px; font-size: 13px; color: var(--muted); }
.chats { display: grid; overflow: hidden; }
.chats .none { margin: 0; padding: 22px 24px; color: var(--muted); font-size: 14px; }
.chat-row { display: grid; gap: 3px; width: 100%; padding: 16px 22px; text-align: left; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.06); color: inherit; font: inherit; cursor: pointer; }
.chat-row:first-child { border-top: 0; }
.chat-row:hover { background: rgba(255,255,255,.04); }
.chat-row b { color: #fff; font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row small { color: var(--dim); font-size: 12.5px; }
dialog.chatview #chatMeta { margin: 6px 0 14px; color: var(--muted); font-size: 13px; }
dialog.chatview h3 { padding-right: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.chatview .log { gap: 10px; }
.chat-row > span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-row .tag { flex: none; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 11.5px; }
.chats .intro { padding: clamp(32px, 6vw, 56px) 24px; text-align: center; }
.chats .intro h3 { margin: 0 0 8px; font: 450 20px/1.2 var(--display); color: #fff; }
.chats .intro p { max-width: 54ch; margin: 0 auto; color: var(--muted); font-size: 14.5px; }
.chat-top { display: flex; align-items: center; gap: 16px; margin: 28px 0 18px; min-width: 0; }
.chat-top .btn { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.chat-title { min-width: 0; }
.chat-title h2 { margin: 0; font: 500 18px/1.3 var(--sans); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-title small { color: var(--dim); font-size: 12.5px; }
.chat-row > span b { min-width: 0; }

/* Build chats (2026-11-23, v2): like the Studio panel. Big readable text, cards with depth, steps folded into one line. No monospace. */
.build-page #view { max-width: 820px; }
.build-page #log { gap: 12px; padding-bottom: 40px; }
.build-page #log .m { align-self: flex-start; font-size: 15px; line-height: 1.55; color: var(--fg); padding: 16px 20px; border-radius: 18px; background: var(--s1);
  border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px -12px rgba(0,0,0,.7); white-space: pre-wrap; max-width: 100%; }
.build-page #log .m.user { align-self: flex-end; max-width: 82%; background: var(--line); border-color: var(--line2); border-radius: 18px; }
.build-page #log .m.notice { color: var(--muted); background: none; box-shadow: none; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; }   /* like the other notices: a plain outlined box */
.steps-g { border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 10px 30px -14px rgba(0,0,0,.7); }
.steps-g summary { display: flex; align-items: center; gap: 12px; padding: 13px 18px; cursor: pointer; list-style: none; font-size: 16px; }
.steps-g summary::-webkit-details-marker { display: none; }
.steps-g summary b { color: var(--fg); font-weight: 500; }
.steps-g summary small { color: var(--dim); font-size: 15px; }
.steps-g summary .chev { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.steps-g[open] summary .chev { transform: rotate(90deg); }
.steps-g summary:hover b { color: #fff; }
.steps-g ol { list-style: none; margin: 0; padding: 2px 18px 14px; display: grid; gap: 10px; }
.steps-g li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; min-width: 0; }
.steps-g li b { color: var(--fg); font-weight: 500; white-space: nowrap; }
.steps-g li small { color: var(--dim); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.si { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.si svg { width: 22px; height: 22px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.si.ok { background: rgba(255,255,255,.12); } .si.ok svg { stroke: #fff; }
.si.bad { background: rgba(255,255,255,.06); } .si.bad svg { stroke: rgba(255,255,255,.55); }
.si.run { background: rgba(255,255,255,.1); } .si.run i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: si-pulse 1.1s ease-in-out infinite; }
@keyframes si-pulse { 50% { opacity: .3; transform: scale(.8); } }
.build-page #log > * { animation: chat-in .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .build-page #log > *, .si.run i { animation: none; } }
/* the chat list: bigger, quieter rows with a lift on hover */
.chats { box-shadow: 0 14px 40px -20px rgba(0,0,0,.8); }
.chat-row { padding: 18px 24px; gap: 5px; transition: background .2s; }
.chat-row b { font-size: 16.5px; }
.chat-row small { font-size: 14px; }
.chat-title h2 { font-size: 20px; }
.chat-title small { font-size: 14px; }
/* the Connect Studio popup: readable sizes */
.guide h3#setupH { font-size: 22px; }
.guide > p { font-size: 15.5px; }
.guide .steps.rows li.row h3 { font-size: 17px; }
.guide .steps.rows li.row p { font-size: 15.5px; line-height: 1.55; }
.guide .fine, .guide details { font-size: 14.5px; }
.guide.linked h3#setupH { color: #fff; }

/* the guide's step 3: Studio's tab strip, then the devable button */
.guide .step-shot.tabs { width: min(408px, 100%); height: auto; border-radius: 10px; margin-bottom: 10px; }

/* Build chats list (v3): a readable column, grouped by day, quiet rows with an icon and the time on the right */
.build-page #view { max-width: 780px; }
.build-page .chats { display: grid; gap: 2px; background: none; box-shadow: none; border: 0; overflow: visible; }
.chat-day { margin: 18px 0 6px; padding-left: 14px; font: 500 13px/1.2 var(--sans); color: var(--dim); letter-spacing: .02em; }
.chat-day:first-child { margin-top: 4px; }
.build-page .chat-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border: 0; border-radius: 14px;
  background: none; color: inherit; text-align: left; cursor: pointer; transition: background .18s; }
.build-page .chat-row + .chat-row { border-top: 0; }
.build-page .chat-row:hover { background: rgba(255,255,255,.05); }
.chat-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--line); }
.chat-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; }
.chat-txt { display: grid; gap: 3px; min-width: 0; }
.chat-txt b { font-size: 16px; font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-txt small { font-size: 13.5px; color: var(--dim); }
.chat-when { font-size: 13.5px; color: var(--dim); white-space: nowrap; }
.chat-row.live .chat-ic { border-color: rgba(255,255,255,.4); }
.chat-row.live .chat-txt small { color: #fff; }
.build-page .chats .intro { border-radius: 16px; background: var(--card); }
.build-page .chat-row > span.chat-txt { display: grid; gap: 3px; }
.build-page .chat-row > span.chat-ic { display: grid; place-items: center; }
.build-page .chats { padding: 8px; border-radius: 20px; background: var(--s1); border: 1px solid var(--line); }
.build-page .chat-day { margin: 14px 0 4px; padding-left: 14px; }
.build-page .chat-day:first-child { margin-top: 8px; }
/* an open chat scrolls inside its own box; the page holds still */
html.chat-open:not(.chat-free), html.chat-open:not(.chat-free) body { overflow: hidden; }
html.chat-open .build-page .stats { display: none; }
.build-page #log { overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 24px 2px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.build-page #log::-webkit-scrollbar { width: 8px; }
.build-page #log::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; }


/* Build: the plugin-out-of-date line on the Studio card */
.build-page #working .warn { color: var(--muted); }
.build-page #working b { color: var(--fg); font-weight: 500; }

/* Connect Studio: just the code */
dialog.mini.code-pop { width: min(440px, 100vw - 32px); }
dialog.code-pop h3 { font-size: 22px; }
dialog.code-pop .pair { margin: 0 0 14px; padding: 22px 0; font: 600 44px/1 var(--sans); letter-spacing: .16em; color: #fff; border-radius: 16px; }
dialog.code-pop .fine { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
dialog.code-pop .code-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
dialog.code-pop.linked h3 { color: #fff; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: #E4E4E7; }
.linkish:disabled { opacity: .5; cursor: default; }
dialog.code-pop .code-btns { display: flex; gap: 8px; margin: 0 0 12px; }


/* /compare: devable Build vs a plain prompt, real Studio screenshots in pairs */
.cmp-page { padding-top: 56px; padding-bottom: 72px; }
.cmp-page h1 { margin: 0 0 12px; font: 500 clamp(32px, 4.4vw, 52px)/1.05 var(--display); letter-spacing: -.035em; color: #fff; }
.cmp-lede { max-width: 720px; margin: 0 0 48px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.cmp-pair { margin-bottom: 56px; }
.cmp-pair h2 { max-width: 860px; margin: 0 0 18px; font: 500 18px/1.45 var(--sans); color: var(--fg); }
.cmp-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cmp-shots figure { margin: 0; }
.cmp-shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line2); border-radius: 14px; background: #1A1917; }
.cmp-shots figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.cmp-shots figure:first-child figcaption { color: #fff; font-weight: 500; }
.cmp-note { max-width: 720px; margin: 0 0 24px; color: var(--dim); font-size: 14px; line-height: 1.6; }
@media (max-width: 720px) { .cmp-shots { grid-template-columns: 1fr; } }

/* the Studio link code (dashboard, Build): the code shown like the card's big number, Copy and How to install under it */
.stat .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stat .btns .btn { margin-top: 0; }
.stat .btns[hidden], .stat .big[hidden], .stat .btn[hidden] { display: none; }

/* toasts (common.js toast): messages and errors pop in at the top centre instead of a line of coloured text */
.toast { position: fixed; z-index: 200; top: 20px; left: 50%; display: flex; align-items: center; gap: 12px; max-width: min(520px, calc(100vw - 32px)); padding: 12px 12px 12px 16px;
  border: 1px solid var(--line2); border-radius: 10px; background: #1C1B19; color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.45);
  transform: translate(-50%, -12px); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.toast.ok i { background: var(--ok); }
.toast p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.toast .btn { flex: none; margin: 0; }
.toast button { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; }
.toast button:hover { color: #fff; background: rgba(255,255,255,.06); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* Flat app shell (2026-11-25, after ElevenLabs): no rounded inset panel. The sidebar is split off by a hairline, the page is one flat
   surface, and cards, the composer and lists are outlined tiles rather than filled blobs. Secondary buttons are outlined too. Dark, monotone. */
body.shell .sb { border-right: 1px solid rgba(255,255,255,.08); }
body.shell > main { min-height: 100vh; margin: 0; border: 0; border-radius: 0; background: var(--bg);
  padding: 40px max(40px, calc((100% - 1080px) / 2)) 64px; }
body.shell .sb-nav a, body.shell .sb-toggle { border-radius: 10px; }
body.shell .sb-me { border-radius: 10px; }
body.shell .acct-head h1, body.shell .tool-head h1 { font: 500 26px/1.15 var(--display); letter-spacing: -.02em; }
body.shell .acct-head p, body.shell .tool-head p { margin-top: 6px; font-size: 14px; }
body.shell .group, body.shell .hist-head h2 { font: 500 16px/1.3 var(--sans); letter-spacing: 0; }
body.shell .group, body.shell .hist-head { margin: 40px 0 14px; }
body.shell .stat, body.shell .rows, body.shell .empty, body.shell .log .intro, body.shell .composer {
  background: none; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; }
body.shell .stat { padding: 22px 24px; }
body.shell .stat .big { font: 500 34px/1 var(--display); }
body.shell .composer:focus-within { border-color: rgba(255,255,255,.22); }
body.shell .composer-bar, body.shell .row { border-top-color: rgba(255,255,255,.07); }
body.shell main .btn { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
body.shell main .btn:not(.primary):not(.danger):not(.ghost) { background: none; border: 1px solid rgba(255,255,255,.12); }
body.shell main .btn:not(.primary):not(.danger):not(.ghost):hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); }
body.shell .chips button { border-radius: 10px; background: none; border: 1px solid rgba(255,255,255,.12); }
body.shell .chips button:hover { background: rgba(255,255,255,.05); }
body.shell main input[type=email], body.shell main input[type=password], body.shell main input[type=text] { background: none; border-color: rgba(255,255,255,.12); }
body.shell .thumb .shot { border-radius: 10px; }
@media (max-width: 860px) { body.shell > main { min-height: 0; padding: 28px var(--gut) 56px; } }
/* the thumbnail page's monthly count: a small outlined pill level with the title, not a bar floating by the subtitle */
body.shell .tool-head { align-items: flex-start; }
body.shell .acct .quota, body.shell .quota { flex-direction: row; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; font: 14px var(--sans); color: var(--muted); }
body.shell .quota .meter, body.shell .acct .quota .meter { width: 56px; height: 4px; border-radius: 99px; }
body.shell .quota[hidden] { display: none; }
/* the prompt box: one surface, no rule across the middle; a slim toolbar inside it; a quiet disabled Generate; no dead gap under it */
body.shell .acct .composer textarea { min-height: 96px; padding: 18px 18px 6px; font-size: 15.5px; }
body.shell .acct .composer-bar, body.shell .composer-bar { padding: 10px 12px 12px; border-top: 0; }
body.shell .composer-bar .btn.ghost { height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; font-size: 13.5px; }
body.shell .composer-bar .btn.ghost:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); }
body.shell .composer-bar .btn.primary { height: 32px; padding: 0 16px; border-radius: 8px; font-size: 13.5px; }
body.shell .composer-bar .btn.primary:disabled { opacity: 1; background: rgba(255,255,255,.1); border-color: transparent; color: rgba(255,255,255,.35); }
body.shell .status { min-height: 0; margin: 10px 2px 0; }
body.shell .status:empty { margin: 0; }

/* audit fixes (2026-11-25) */
/* Build chats: one outlined box, not a filled card inside a card */
.build-page .chats:has(.intro) { padding: 0; border: 0; background: none; }
/* one empty state everywhere: an outlined box, 48px padding, an 18px heading */
body.shell .empty, .build-page .chats .intro, body.shell .dash-none { padding: 48px 24px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: none; text-align: center; }
body.shell .empty h3, .build-page .chats .intro h3 { font: 500 18px/1.3 var(--sans); letter-spacing: 0; margin: 0 0 6px; }
/* public pages: secondary buttons outlined, like the app */
body.page:not(.shell):not(.home) .btn:not(.primary):not(.danger) { background: none; border-color: rgba(255,255,255,.12); }
body.page:not(.shell):not(.home) .btn:not(.primary):not(.danger):hover { background: rgba(255,255,255,.05); }
/* the same inner padding in every box */
body.shell .row { padding: 24px; }
/* one button height per column */
body.shell main .item .btn.small { height: 32px; }
body.shell .empty .chips button, body.shell .acct .chips button { height: 36px; padding: 0 14px; border-radius: 10px; }
/* example prompts: two neat columns, one on phones */
body.shell .empty .chips { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; }
@media (max-width: 600px) { body.shell .empty .chips { grid-template-columns: minmax(0, 1fr); } }
/* plain, calm labels */
.toc .label { text-transform: none; letter-spacing: 0; font: 500 13px var(--sans); color: var(--muted); }
/* no single words left on a line */
body.shell .acct-head p, body.shell .tool-head p { text-wrap: pretty; }
.cmp-pair h2 { text-wrap: balance; }
/* landing on phones: the boxed sections use the full content width (the stage already has its 16px gutter) */
@media (max-width: 720px) { body.home .more { width: 100%; } }
/* popups' step lists are not outlined boxes (the flat-shell outline is for page lists only): steps divided by hairlines, numbers inside */
dialog .steps.rows, body.shell dialog .rows { border: 0; border-radius: 0; background: none; }
.guide .steps.rows li.row:first-child { border-top: 0; }
/* popups, like the app: 16px corners, a plain X (no ring) clear of the corner, outlined secondary buttons */
dialog.mini { border-radius: 16px; }
dialog.mini .pop-x, dialog.acct-pop .pop-x { top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); }
dialog.acct-pop { background: #151413; }
/* the Account popup's X: a small solid round button floating over the page's top-right corner (no bar, no extra page padding) */
dialog.acct-pop .pop-x { top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: rgba(40,39,37,.92); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 6px 18px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.acct-pop .pop-x:hover { background: #3A3936; }
dialog.mini .pop-x:hover { background: rgba(255,255,255,.07); color: #fff; }
dialog.mini h3 { padding-right: 36px; }
dialog.mini .btn:not(.primary):not(.danger) { background: none; border: 1px solid rgba(255,255,255,.12); }
dialog.mini .btn:not(.primary):not(.danger):hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); }
dialog.acct-pop { border-radius: 16px; }
dialog:focus { outline: none; }
/* account rows: a control that's just a button or two sits level with the row's middle; lists (devices, invoices) stay top-aligned */
/* a card label with a small link at its right ("Buy credits") */
.stat .stat-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; }
.stat .stat-h a { color: var(--muted); font-size: 13.5px; text-decoration: none; }
.stat .stat-h a:hover { color: #fff; }
/* credit packs: a short stacked list, credits on the left, the price on the right */
.row .ctl.packs .btn { justify-content: space-between; gap: 24px; }
.row .ctl.packs .btn b { font-weight: 500; color: #fff; }
.row .ctl.packs .btn span { color: var(--muted); }
/* dashboard: Build activity, a calendar of the last 30 weeks (columns are weeks, Sunday on top), shaded by credits used */
.uchart { margin-top: 12px; padding: 22px 24px 18px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; }
.uchart-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.uchart-h h2 { font: 500 14px var(--sans); letter-spacing: 0; color: var(--muted); }
.uchart-h p { margin: 0; color: #fff; font-size: 14px; }
.cal-box { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; margin-top: 14px; }
.cal-months { grid-column: 2; position: relative; height: 18px; overflow: hidden; color: var(--dim); font-size: 12px; }
.cal-months span { position: absolute; top: 0; white-space: nowrap; }
.cal-days { grid-column: 1; grid-row: 2; display: grid; grid-template-rows: repeat(7, var(--cell, 12px)); row-gap: 3px; color: var(--dim); font-size: 12px; line-height: 1; }
.cal-days span { display: flex; align-items: center; }
.cal-days span:nth-child(1) { grid-row: 2; } .cal-days span:nth-child(2) { grid-row: 4; } .cal-days span:nth-child(3) { grid-row: 6; }
.cal { grid-column: 2; grid-row: 2; display: grid; grid-template-rows: repeat(7, var(--cell, 12px)); grid-auto-flow: column; grid-auto-columns: var(--cell, 12px); gap: 3px; justify-content: start; min-width: 0; }
.cal i { border-radius: 2px; background: rgba(255,255,255,.07); cursor: default; }
.cal i:not(.later):hover { outline: 1px solid rgba(255,255,255,.6); outline-offset: 0; }
.cal-key i { width: 11px; height: 11px; border-radius: 2px; background: rgba(255,255,255,.07); }
.cal-tip { position: absolute; z-index: 2; padding: 6px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #1C1B19; color: var(--muted); font-size: 12.5px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.cal-tip b { color: #fff; font-weight: 500; }
.cal-tip[hidden] { display: none; }
.cal i.later { background: none; }
.cal i.v1, .cal-key i.v1 { background: rgba(255,255,255,.22); }
.cal i.v2, .cal-key i.v2 { background: rgba(255,255,255,.42); }
.cal i.v3, .cal-key i.v3 { background: rgba(255,255,255,.68); }
.cal i.v4, .cal-key i.v4 { background: #fff; }
.uchart-x { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--dim); font-size: 12.5px; }
.cal-key { display: flex; align-items: center; gap: 3px; }
.cal-key i:first-child { margin-left: 4px; } .cal-key i:last-child { margin-right: 4px; }
/* two-step sign-in popup: the QR on white (scanners need contrast), the key, backup codes in two columns */
dialog.mini .qr { width: 168px; margin: 4px 0 12px; padding: 12px; border-radius: 12px; background: #fff; }
dialog.mini .qr svg { display: block; width: 100%; height: auto; }
dialog.mini .qr-key { margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.5; word-break: break-word; }
dialog.mini .backup { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
dialog.mini .backup li { padding: 9px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #fff; font-size: 14.5px; letter-spacing: .06em; text-align: center; }
/* a row's buttons stacked as an even column (two-step sign-in) */
.row .ctl.stack, .row .ctl.packs, .row .ctl.studio-btns { display: grid; grid-template-columns: max-content; align-content: start; gap: 8px; }
.row .ctl[hidden] { display: none; }
.row .ctl.stack .btn, .row .ctl.packs .btn, .row .ctl.studio-btns .btn { margin: 0; }
/* design-review fixes (2026-11-25) */
.toast[popover] { inset: auto; top: 20px; left: 50%; margin: 0; }
.toast .btn { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.dash .dot, .build-page .dot, .stat .dot { background: rgba(255,255,255,.3); }   /* monotone: not linked = dim, linked = white */
.dash .dot.on, .build-page .dot.on, .stat .dot.on { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.16); }   /* connected: white (monotone) */
body.shell .plans-pick { margin-top: 8px; }
body.shell .row-head h2 { font: 500 16px/1.3 var(--sans); letter-spacing: 0; }
body.shell .tier { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; }
body.shell .tier.hot { border-color: rgba(255,255,255,.3); }
body.shell .tier .btn { height: 40px; }
dialog.mini .qr-key b { display: block; margin-top: 2px; color: #fff; white-space: nowrap; letter-spacing: .04em; }
dialog.mini .backup { gap: 0 16px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; }
dialog.mini .backup li { padding: 6px 0; border: 0; border-radius: 0; text-align: left; }
body.shell .dash-none, body.shell .stat .sub { text-wrap: pretty; }
.auth-page .auth > p.muted { text-wrap: pretty; }
/* out of Build credits: one outlined banner above the cards (dashboard, Build), text left, actions right */
.out { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 12px; padding: 20px 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; }
.out[hidden] { display: none; }
.out h2 { font: 500 16px/1.3 var(--sans); letter-spacing: 0; color: #fff; }
.out p { margin: 4px 0 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.out-btns .btn[hidden] { display: none; }
.out-btns { display: flex; gap: 8px; flex: none; }
body.shell main .out .btn { margin: 0; }
/* the Studio link code in a box, with a copy icon on its right (Build card big, dashboard status line small) */
.codebox { display: inline-flex; align-items: center; gap: 6px; padding: 3px 3px 3px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.04); vertical-align: middle; }
.codebox b { min-width: 4.6em; color: #fff; font-weight: 500; letter-spacing: .06em; }
.codebox.big { margin-top: 14px; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 12px; }
.codebox.big b { font: 500 30px/1 var(--display); letter-spacing: .06em; }
.codebox[hidden] { display: none; }
.copy-ic { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.codebox.big .copy-ic { width: 36px; height: 36px; border-radius: 8px; }
@media (hover: hover) { .copy-ic:hover { color: #fff; background: rgba(255,255,255,.08); } }
.codebox.big .copy-ic svg { width: 20px; height: 20px; }
.copy-ic .ic-done, .copy-ic.done .ic-copy { display: none; }
.copy-ic.done .ic-done { display: block; color: #fff; }

/* launch fixes (2026-11-25, pre-launch review) */
/* colour only in the hero: cards the ribbons pass behind are opaque, no frosted glass */
.auth-page .auth, .auth-wrap .auth { background: var(--s1); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.home .more { background: #141312; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.home .feat-cell, body.home .faq-q { background: #191817; }
body.home .foot { background: #141312; -webkit-backdrop-filter: none; backdrop-filter: none; }
dialog.pop .tier { background: var(--s1); -webkit-backdrop-filter: none; backdrop-filter: none; }
dialog.pop .tier.hot { background: var(--s2); }
dialog.pop .x { z-index: 3; background: #0F0E0D; }   /* stays above the plans while the popup scrolls */
.tiers-fine { margin: 20px 0 0; color: var(--muted); font-size: 13.5px; }
/* one plan-button style: the landing's pricing popup and the Account popup */
.tier .btn, body.shell .tier .btn, .plans-pick .tier .btn { height: 36px; border-radius: 10px; font-size: 14px; font-weight: 500; }
/* sentence case everywhere: no uppercase tracked labels */
.label, .tag, .k { text-transform: none; letter-spacing: 0; }
/* danger actions: monotone, the warning is in the words */
.btn.danger, .acct .btn.danger, body.shell main .btn.danger { background: none; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn.danger:hover, .acct .btn.danger:hover, body.shell main .btn.danger:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.5); }
dialog.mini .btn.danger.solid { background: #fff; border-color: #fff; color: var(--ink); }
dialog.mini .btn.danger.solid:hover { background: #E6E4E1; border-color: #E6E4E1; }
/* the one exception to monotone: deleting an account is red, so it can't be mistaken for anything else */
#delopen, .acct #delopen, body.shell main #delopen { color: #FF6369; border-color: rgba(229,72,77,.55); }
#delopen:hover, .acct #delopen:hover, body.shell main #delopen:hover { background: rgba(229,72,77,.12); border-color: #E5484D; }
.btn.danger.solid, dialog.mini .btn.danger.solid { background: #CE3A3F; border-color: #CE3A3F; color: #fff; }
.btn.danger.solid:hover, dialog.mini .btn.danger.solid:hover { background: #DC4449; border-color: #DC4449; }
.cfd button { height: 36px; padding: 0 14px; font-size: 14px; }
.cfd .cfd-yes { background: #fff; border-color: #fff; color: var(--ink); }
.cfd .cfd-yes:hover { background: #E6E4E1; border-color: #E6E4E1; }
.item .tag.warn { background: rgba(255,255,255,.08); color: #fff; }
/* Account popup: every button 36px, 14px text; two-step buttons side by side at their own width */
body.shell main .item .btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.packs-note { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
/* inline form messages (auth cards, account dialogs): a small line under the form, not a toast */
.msg[data-inline] { margin: 14px 0 0; color: rgba(255,255,255,.82); font-size: 13.5px; line-height: 1.45; }
.msg[data-inline].ok { color: var(--muted); }
.toast { width: max-content; max-width: min(420px, calc(100vw - 32px)); }
/* sign-up: birth year select, underlined policy links */
.auth-page select { width: 100%; height: 40px; padding: 0 40px 0 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #fff; font: 15px var(--sans); cursor: pointer;
  -webkit-appearance: none; appearance: none; background: rgba(255,255,255,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23A9A59F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") right 16px center / 12px no-repeat; }
.auth-page select:focus { outline: none; border-color: rgba(255,255,255,.55); }
.auth-page select option { background: #161514; color: #fff; }
.check a { text-decoration-line: underline; }
.auth .switch-acct { display: block; margin-top: 10px; }
.auth-page .auth .young { margin: 20px 0 0; color: #fff; font-size: 15px; }
/* /app: the Generate button stays on one line beside the count */
/* install guide: step pictures open bigger */
.steps .step-shot { cursor: zoom-in; }
dialog.viewer.shot-view figure { width: auto; max-width: min(1000px, 100%); }
dialog.viewer.shot-view img { width: auto; max-width: 100%; max-height: 80dvh; aspect-ratio: auto; object-fit: contain; margin: 0 auto; border-radius: 12px; }
/* phones: the landing's hero has its own Get started, less empty sky, and the comparison drops Studio's chrome */
@media (max-width: 720px) {
  .hero-grid { min-height: 0; padding: 40px 0 24px; }
  .opening { width: 100%; aspect-ratio: auto; container-type: normal; padding: 48px 0; }
  .opening .copy { position: static; padding: 0 8px; }
  .home .opening h1 { font-size: 46px; }
  .opening .pitch { font-size: 19px; margin-top: 16px; }
  .stage .hero-cta { margin-top: 24px; }
  .sw-top, .sw-ribbon, .sw-doc, .sw-cmd, .sw-vbar { display: none; }
}
.tiers-fine { position: relative; z-index: 1; }
dialog.pop .tiers-fine { margin: 14px 0 0; }
dialog.pop .tiers-fine + .tiers { margin-top: 28px; }
.tier .btn:not(.primary) { background: none; border: 1px solid rgba(255,255,255,.12); color: #fff; }
.tier .btn:not(.primary):hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.2); }
dialog.pop h2 em { font-style: normal; }
/* round 2 (2026-11-25): monotone states */
.pic button:hover { background: #fff; color: var(--ink); }
.thumb .acts .del:hover { color: #fff; border-color: rgba(255,255,255,.28); }
.tick { background: #fff; color: var(--ink); }
.dot { box-shadow: none; } .dot.on { box-shadow: 0 0 0 3px rgba(255,255,255,.16); }
.pwf-meter[data-s="1"] .pwf-steps i.on { background: rgba(255,255,255,.45); }
.pwf-meter[data-s="1"] .pwf-say b { color: var(--fg); }
.si.ok { background: rgba(255,255,255,.1); }
.si.bad { background: rgba(255,255,255,.06); } .si.bad svg { stroke: var(--muted); }
.chat-row.live .chat-ic { border-color: rgba(255,255,255,.35); }
.msg.err, .status.err, .call.err { color: #fff; }
.msg.ok { color: var(--muted); }

/* ONE public header (landing, /compare, /login, /reset, legal, 404): logo | section pill | Log in + Get started. body.home: over the hero;
   body.pub: a solid sticky bar. Phones: logo | Get started + menu button, right-aligned; Log in moves into the menu. */
body.pub { --gl: rgba(255,255,255,.09); }
body:is(.home, .pub) .top.bare { left: 0; right: 0; z-index: 20; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.pub .top.bare { position: sticky; top: 0; background: #0F0E0D; border-bottom: 1px solid var(--line); }
body:is(.home, .pub) .top.bare .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 1500px; height: 72px; padding: 0 32px; }
body.home .top.bare .wrap { height: 84px; }
body:is(.home, .pub) .top.bare .logo { padding-left: 0; }
body:is(.home, .pub) .pill { display: flex; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: auto; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
body:is(.home, .pub) .pill a { flex: none; display: block; padding: 6px 16px; border-radius: 999px; font-size: 14.5px; color: rgba(255,255,255,.9); }
body:is(.home, .pub) .pill a + a { border-left: 0; }
body:is(.home, .pub) .pill .glow { top: 4px; bottom: 4px; border-radius: 999px; background: rgba(255,255,255,.12); }
body:is(.home, .pub) .top-end { display: flex; align-items: center; gap: 8px; padding: 0; }
body.page:is(.home, .pub) .top .cta, body.page:is(.home, .pub) .top .btn.login { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; }
body:is(.home, .pub) .top .btn.login { background: none; border: 1px solid rgba(255,255,255,.16); color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
body:is(.home, .pub) .top .btn.login:hover { background: rgba(255,255,255,.07); }
body:is(.home, .pub) .menu-btn { display: none; width: 36px; height: 36px; margin: 0; border-radius: 10px; background: none; border: 1px solid rgba(255,255,255,.16); }
body:is(.home, .pub) .mnav { left: 16px; right: 16px; border-radius: 12px; overflow: hidden; background: #1C1B19; }
@media (max-width: 1000px) {
  body:is(.home, .pub) .pill, body:is(.home, .pub) .top-end > .btn.login { display: none; }
  body:is(.home, .pub) .menu-btn { display: grid; }
  body:is(.home, .pub) .top.bare .wrap { padding: 0 16px; }
}
@media (max-width: 359px) { body.pub .top .top-end > .cta { display: none; } }
/* ONE footer: the not-affiliated line, then Terms, Privacy, Contact */
body:is(.home, .pub) .foot { margin: 0 16px 16px; padding: 22px 0; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); background: #141312; color: rgba(255,255,255,.62); box-shadow: none; }
body.pub .foot { margin-top: 64px; }
body.auth-page.pub .foot { margin-top: 0; }
body:is(.home, .pub) .foot nav a { color: rgba(255,255,255,.78); } body:is(.home, .pub) .foot nav a:hover { color: #fff; }
.auth-stage { min-height: calc(100svh - 73px); }

/* buttons: regular 36px / 10px radius; the big calls to action (auth submit, Google, hero, closing, section) 40px / 10px */
.btn { height: 36px; border-radius: 10px; font-size: 14px; font-weight: 500; }
body.page:is(.pub, .home) .btn:not(.primary):not(.danger):not(.login) { background: none; border-color: rgba(255,255,255,.12); }
body.page:is(.pub, .home) .btn:not(.primary):not(.danger):not(.login):hover { background: rgba(255,255,255,.05); }
body.home .stage .hero-cta, body.home .last-btns .btn, body.home .more-head .btn, .auth-page .auth .btn.primary, .auth-page .auth .google, .auth-wrap .auth .btn
  { height: 40px; padding: 0 20px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.auth-page .auth .btn.primary { margin-top: 20px; }
body.home .stage .hero-cta { display: inline-flex; }
body.shell .composer-bar .btn.ghost, body.shell .composer-bar .btn.primary { height: 36px; border-radius: 10px; font-size: 14px; }
#send[data-wait] { visibility: hidden; }   /* /app: Generate / Pick a plan shows once we know which */
dialog.viewer .btn { height: 36px; border-radius: 10px; }
.tour-btns .btn { border-radius: 10px; }
dialog.pop .x { width: 36px; height: 36px; border-radius: 10px; }
/* one segmented control: the pricing popup and the Account popup */
.seg, body.shell .seg { padding: 1px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: none; }   /* 36px outside */
.seg button, body.shell .seg button { height: 32px; padding: 0 14px; border-radius: 8px; font: 500 14px var(--sans); }

/* phones: no ribbon behind the comparison's heading and paragraph */
@media (max-width: 720px) { body.home .split-head { position: relative; z-index: 1; width: auto; margin-left: -16px; margin-right: -16px; padding: 28px 16px; background: linear-gradient(rgba(15,14,13,0), #0F0E0D 28px, #0F0E0D calc(100% - 28px), rgba(15,14,13,0)); } }
/* Account popup on phones: a solid strip for the close button; "member since" on its own line */
@media (max-width: 600px) {
  .acct-head .since-sep { display: none; } .acct-head .since { display: block; }
}
/* /app on phones: the count pill goes under the title */
@media (max-width: 600px) { body.shell .tool-head { flex-direction: column; align-items: flex-start; gap: 12px; } }
/* password strength line: no reserved space until it shows */
.pwf-meter:not(.on) { display: none; }
/* login: the Password label with "Forgot it?" beside it (the link outside the label) */
.auth-page .forgot { display: inline-block; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.7); }   /* after the field, so Tab goes Email, Password, then this */
#send { transition: none; }
.auth .young a, .msg[data-inline] a { color: #fff; text-decoration-line: underline; }
/* dashboard cards (2026-11-26): both cards share the same rows (number, bar, one status line, one row of 36px controls), so they line up at any width */
.stats.two .stat .sub { min-height: 20px; line-height: 20px; }
.stats.two .stat .btns { margin-top: 14px; align-items: center; }
.stats.two .stat .btns .btn { height: 36px; border-radius: 10px; }
.stats.two .stat .btns .codebox { box-sizing: border-box; height: 36px; padding: 0 4px 0 12px; }
.stats.two .stat .btns .codebox .copy-ic { width: 28px; height: 28px; }
.dash .stat .sub.conn .dot { flex: none; }
.dash .stat .sub.conn { align-items: flex-start; }
.dash .stat .sub.conn .dot { margin-top: 6px; }
/* dashboard review fixes (2026-11-26): one rhythm below the cards too */
body.shell .dash-none { margin-top: 0; font-size: 14px; }
.uchart { padding: 22px 24px; }
.stat .stat-h a, .uchart-h p { font: 400 14px var(--sans); color: var(--muted); }
.stat h2, .uchart-h { min-height: 20px; line-height: 20px; }
.acct-head p { text-wrap: pretty; }
.acct-head > div:first-child { min-width: 0; flex: 1; align-self: stretch; }   /* the email and "member since" get the whole width, also when the head stacks */
/* 2026-11-26 review: sign-up page has no "Get started" of its own; no single words left on a line */
body.on-signup .top .cta, body.on-signup .mnav-cta { display: none !important; }
dialog.mini h3 + p, .row > div:first-child p, .foot .wrap > span, .nf p, .out p, .auth .alt { text-wrap: pretty; }
.stats.two .stat .btns:empty { display: none; }
/* round 3 review fixes (2026-11-26) */
.tier .price { font-size: clamp(38px, 3.4vw, 46px); }   /* "US$899.90/yr" fits the card at every width */
.plans-pick .tiers { max-width: 420px; }   /* one column in Account: the same 420px cards as the pricing popup, not stretched */
.steps-g summary { font-size: 15px; } .steps-g summary small, .steps-g li small { font-size: 14px; } .steps-g li { font-size: 15px; }
.steps-g, .build-page #log .m, .build-page #log .m.user, .build-page #log .m.notice { border-radius: 14px; }   /* one radius in the chat column */
.build-page #back { font-size: 14px; }
figcaption, .feat-cell p, .faq-q summary, .faq-q p, .row p { text-wrap: pretty; }
.compare-page h1, h1 { text-wrap: balance; }
select#year:has(option[value=""]:checked) { color: rgb(117, 113, 107); }
dialog.acct-pop.dim { background: linear-gradient(#0c0c0b, #0c0c0b) padding-box, linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04)) border-box !important; }   /* an inner dialog is open: the strip dims like the page under it */
dialog.acct-pop.dim iframe { border-top-color: rgba(255,255,255,.03); }
/* the chats list scrolls inside its card; each day's label sticks to the top while its chats pass under it */
.build-page .chats { overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; align-content: start; }
.build-page .chats .chat-day { position: sticky; top: -8px; z-index: 1; margin: 0; padding: 14px 14px 6px; background: var(--bg); }
.build-page .chats .chat-day:first-child { padding-top: 8px; }


/* loading: quiet placeholders that pulse softly (data-skel text and numbers, .sk rows and tiles), then the content fades in */
[data-skel] { color: transparent !important; border-radius: 4px; background: linear-gradient(rgba(255,255,255,.06), rgba(255,255,255,.06)) left center / 100% .7em no-repeat; background-clip: content-box; animation: sk 1.8s ease-in-out infinite; }
[data-skel] > * { visibility: hidden; }
span[data-skel], b[data-skel], small[data-skel] { display: inline-block; min-width: 4em; vertical-align: middle; }
p[data-skel] { width: min(15em, 100%); }
.big[data-skel] { width: 2.6em; white-space: nowrap; background-size: 100% .62em; }
.big.conn span[data-skel] { min-width: 4.5em; }
.codebox b[data-skel] { min-width: 4.6em; }
.btn.btn[data-skel], .btn.primary[data-skel] { background: rgba(255,255,255,.06); background-clip: border-box; border-color: transparent; }
.sk { background: rgba(255,255,255,.06); animation: sk 1.8s ease-in-out infinite; }
.sk-row { height: 52px; border-radius: 10px; }
.sk-row + .sk-row { margin-top: 8px; }
.sk-tile { aspect-ratio: 16 / 9; border-radius: 12px; }
.rows .sk-row { position: relative; height: 60px; background: none; }
.rows .sk-row::before { content: ""; position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 38%; height: 10px; border-radius: 4px; background: rgba(255,255,255,.06); }
.sb-me .av:empty { background: rgba(255,255,255,.06); animation: sk 1.8s ease-in-out infinite; }
@keyframes sk { 50% { opacity: .5; } }
.sk-in { animation: sk-in .3s ease-out; }
@keyframes sk-in { from { opacity: 0; } }
/* a button waiting on its request: a small spinner in place of its label */
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
.btn[aria-busy="true"] > * { visibility: hidden; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: btn-spin .7s linear infinite; }
.btn.primary[aria-busy="true"]::after { border-color: rgba(0,0,0,.18); border-top-color: #000; }

/* Dashboard tour (dashboard.html tour()): a ring travels to each part of the page with a small card beside it; the page isn't dimmed */
.tour-spot { position: fixed; z-index: 90; box-shadow: 0 0 0 9999px rgba(8,8,7,.6), 0 0 0 1px rgba(255,255,255,.25); pointer-events: none; animation: tour-in .25s ease-out;
  transition: left .35s cubic-bezier(.4,0,.2,1), top .35s cubic-bezier(.4,0,.2,1), width .35s cubic-bezier(.4,0,.2,1), height .35s cubic-bezier(.4,0,.2,1); }
.tour-card { position: fixed; z-index: 91; width: min(280px, 100vw - 24px); padding: 14px 16px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: #1C1B19; color: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.35); outline: none; transition: left .35s cubic-bezier(.4,0,.2,1), top .35s cubic-bezier(.4,0,.2,1); animation: pop-in .2s ease-out; }
.tour-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tour-card h3 { margin: 0; font: 500 15px/1.3 var(--sans); }
.tour-card .tour-n { font-size: 12px; color: var(--dim); }
.tour-card > p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.tour-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.tour-nav span { display: flex; gap: 6px; }
.tour-nav .linkish { font-size: 13px; color: var(--dim); text-decoration: none; }
.tour-nav .linkish:hover { color: #fff; }
.tour-nav .btn { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.tour-card.away { left: auto !important; top: auto !important; right: 20px; bottom: 24px; width: min(260px, 100vw - 24px); }
@keyframes tour-in { from { opacity: 0; } }
.tour-card.wide { width: min(380px, 100vw - 24px); }
.tour-img { display: block; width: 100%; aspect-ratio: 840 / 864; height: auto; margin: 0 0 14px; border-radius: 10px; object-fit: cover; }
.tour-dim { position: fixed; inset: 0; z-index: 89; background: rgba(8,8,7,.6); animation: tour-in .25s ease-out; }
@media (prefers-reduced-motion: reduce) { [data-skel], .sk, .sk-in, .tour-spot, .tour-card { animation: none; } .tour-spot, .tour-card { transition: none; } }

/* "Buy credits" in a stat card's header: a small outlined button */
.stat .stat-h a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #fff; font: 500 13px var(--sans); text-decoration: none; transition: background .15s, border-color .15s; }
.stat .stat-h a:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); }
.stat .stat-h { align-items: center; }
/* Build page: the link code is the big version (this is where you link), lined up with its buttons */
.build-page .stat .btns { align-items: center; flex-wrap: nowrap; }
.build-page .stat .btns .codebox.big { margin-top: 0; height: 48px; padding: 0 6px 0 16px; gap: 8px; }
.build-page .stat .btns .codebox.big b { min-width: 0; font-size: 24px; letter-spacing: .04em; }
.build-page .stat .btns .codebox.big .copy-ic { width: 34px; height: 34px; }
.build-page .stat .btns > .btn.btn { height: 48px; padding: 0 18px; }

/* Build chat: reference images sent with a message */
.m-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.m.user:empty .m-imgs, .m-imgs:first-child { margin-top: 0; }
.m-imgs img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); }

/* signed up on a phone: "Set up devable on a computer" */
dialog.phone-pop { width: min(380px, 100vw - 32px); }
dialog.phone-pop .phone-img { display: block; width: 100%; height: auto; aspect-ratio: 840 / 864; margin: 0 0 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }
dialog.mini.phone-pop .pop-x { top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: rgba(40,39,37,.92); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 6px 18px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.mini.phone-pop .pop-x:hover { background: #3A3936; }
dialog.phone-pop .phone-btns { display: grid; gap: 8px; }
dialog.phone-pop .phone-btns .btn { width: 100%; height: 44px; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
dialog.phone-pop .msg { text-align: center; color: var(--muted); overflow-wrap: anywhere; }
dialog.phone-pop h3 { padding-right: 44px; text-wrap: balance; }   /* clear of the X */
dialog.phone-pop .phone-btns .btn.done:disabled { opacity: 1; cursor: default; }
dialog.phone-pop .msg.err { color: var(--bad); }

/* the plan picker for a subscriber (adaptPlans in common.js): their plan's button is a quiet "Current plan"; on the other billing period
   the buttons fade back and a line takes the fine print's place (both share one slot, so switching tabs never moves the plans) */
.tier .btn.cur, .tier .btn.off { pointer-events: none; }
.tier .btn.cur { background: none; border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.55); }
.tier .btn.off { opacity: .4; }
.fine-slot { display: grid; justify-items: center; }
.fine-slot > * { grid-area: 1 / 1; }
.fine-slot > [data-off] { visibility: hidden; }
dialog.pop .fine-slot > * { margin: 14px 0 0; }
dialog.pop .fine-slot + .tiers { margin-top: 28px; }
.tiers-note { max-width: 520px; color: rgba(255,255,255,.82); font-size: 13.5px; line-height: 1.5; text-wrap: balance; }
.tiers-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
/* the plans' fine print, second line: the free start (signed out only, see adaptPlans) and the one-time packs */
.tiers-free { display: block; margin-top: 4px; color: rgba(255,255,255,.78); text-wrap: balance; }
.tiers-free a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* the plan picker always fits the screen, never scrolls (2026-11-26): three columns while the popup is 640px wide or more (compact below
   820), slim rows on phones (name and price beside the button, the allowances on one line without the repeated "a month"), three compact
   columns on a phone held sideways, and short windows shrink the heading (one line there; the space before its <br> keeps the words apart) */
@container (max-width: 819px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 10px; }
  .tier { padding: 18px; }
  .tier .price { margin-top: 10px; font-size: 28px; }
  .tier .price small { font-size: 13px; }
  .tier ul { margin: 14px 0 16px; padding-top: 12px; gap: 8px; font-size: 13.5px; }
}
@container (max-width: 639px) {
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 440px; gap: 8px; }
  .tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name btn" "price btn" "billed btn" "list list"; column-gap: 12px; padding: 14px 16px; }
  .tier .billed { grid-area: billed; }
  .tier h3 { grid-area: name; font-size: 13.5px; }
  .tier .price { grid-area: price; margin: 2px 0 0; font-size: 28px; }
  .tier ul { grid-area: list; display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 10px 0 0; padding: 10px 0 0; font-size: 13px; }
  .tier .am { display: none; }
  .tier .btn { grid-area: btn; align-self: center; width: auto; padding: 0 14px; }
}
@media (max-width: 687px) { dialog.pop .wrap { padding-top: 60px; padding-bottom: 16px; } dialog.pop .seg { margin-top: 16px; } dialog.pop .fine-slot > * { margin-top: 10px; } dialog.pop .fine-slot + .tiers, dialog.pop .tiers-fine + .tiers { margin-top: 16px; } .tiers-note { font-size: 13px; } }
@media (max-height: 600px) and (max-width: 687px) { dialog.pop .wrap { padding-top: 52px; } dialog.pop h2 { font-size: 24px; } dialog.pop .seg { margin-top: 12px; } .tier { padding: 11px 14px; } .tier .price { font-size: 25px; } .tier ul { margin-top: 8px; padding-top: 8px; } }
@media (max-height: 820px) and (min-width: 688px) { dialog.pop .wrap { padding-top: 48px; padding-bottom: 32px; } dialog.pop h2 { font-size: clamp(32px, 4vw, 52px); } dialog.pop .seg { margin-top: 22px; } }
@media (max-height: 680px) and (min-width: 688px) {
  dialog.pop .wrap { padding-top: 24px; padding-bottom: 16px; } dialog.pop h2 { font-size: 30px; } dialog.pop h2 br { display: none; }
  dialog.pop .seg { margin-top: 14px; } dialog.pop .fine-slot > * { margin-top: 8px; } dialog.pop .fine-slot + .tiers, dialog.pop .tiers-fine + .tiers { margin-top: 16px; }
  .tier { padding: 18px; } .tier .price { margin-top: 8px; font-size: 30px; } .tier ul { margin: 12px 0 14px; padding-top: 10px; gap: 6px; }
}
/* a phone held sideways: short, not narrow, so three compact columns (the slim rows would be too tall), with a one-line heading */
@media (max-height: 500px) and (min-width: 560px) {
  dialog.pop .wrap { padding-top: 14px; padding-bottom: 10px; } dialog.pop h2 { font-size: 22px; } dialog.pop h2 br { display: none; }
  dialog.pop .seg { margin-top: 10px; } dialog.pop .fine-slot > *, dialog.pop .tiers-fine { margin-top: 6px; } dialog.pop .fine-slot + .tiers, dialog.pop .tiers-fine + .tiers { margin-top: 10px; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 10px; }
  .tier { display: flex; flex-direction: column; padding: 12px 14px; }
  .tier .price { margin-top: 6px; font-size: 24px; }
  .tier ul { display: grid; margin: 8px 0 10px; padding-top: 8px; gap: 4px; font-size: 12.5px; }
  .tier .am { display: none; }
  .tier .btn { width: 100%; }
}

/* Upgrade, all over the app (common.js shows [data-upgrade] while there's a bigger plan): a white button above the account card in the
   sidebar (an arrow alone in the rail, a small pill in the phone top bar), a link beside "Buy credits" in the credit cards, an outline
   button beside "Make a thumbnail", and a link under the thumbnail quota */
.sb-up { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; border-radius: 10px; background: #fff; color: var(--ink); font: 500 13.5px var(--sans); text-decoration: none; white-space: nowrap; overflow: hidden; }
/* depth and texture: a lit white button, shaded top to bottom, a bright top edge and a darker bottom lip, a soft drop shadow under it,
   and a fine grain over the face; it presses in when clicked */
.sb-up { position: relative; border: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1EFEC 55%, #E2DFDA 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1.5px 0 rgba(0,0,0,.14), 0 2px 3px rgba(0,0,0,.35), 0 10px 22px -8px rgba(0,0,0,.7);
  text-shadow: 0 1px 0 rgba(255,255,255,.7); transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.sb-up svg { filter: drop-shadow(0 1px 0 rgba(255,255,255,.7)); }
@media (prefers-reduced-motion: reduce) { .sb-up { transition: none; } }
.sb-up[hidden] { display: none; }
.sb-up svg { flex: none; width: 15px; height: 15px; }
body.shell .sb-up + .sb-me { margin-top: 10px; }
.sb-mini .sb-up { width: 40px; margin-inline: auto; }
.sb-mini .sb-up span { display: none; }
.sb-up i { font-style: normal; }
@media (max-width: 860px) { .sb-up { height: 32px; padding: 0 12px; margin-left: 6px; font-size: 13px; } .sb-up svg, .sb-up i { display: none; } .sb-mini .sb-up { width: auto; } .sb-mini .sb-up span { display: inline; } }
@media (max-width: 520px) { .sb-up { display: none; } }   /* phones: no room in the top bar; the cards on every page have their own Upgrade */
.stat-links { display: inline-flex; gap: 8px; }
.stat-links[hidden], .stat-links a[hidden] { display: none; }
.quota-up { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.quota-up:hover { color: #fff; }
.quota-up[hidden] { display: none; }
.stat > h2, .stat .stat-h { min-height: 30px; }   /* a card title with buttons beside it and one without sit on the same line */
.stat > h2 { display: flex; align-items: center; }
.stat .stat-h h2 { margin: 0; }
.quota.roomy .quota-up { display: none; }
@media (max-width: 860px) { body.shell .sb-up + .sb-me { margin-top: 0; } }   /* top bar: the avatar in line with the links (the sidebar's 10px gap above it pushed it ~5px low) */
body.shell .stat .big { margin-top: 22px; }   /* room under a card's title row (its buttons made 14px feel cramped); every card the same, so they stay level */

/* texture on every button (2026-11-27, like Higgsfield's): a fine grain and a soft sheen over the face (lighter at the top, a touch
   darker at the bottom), a lit top edge and a small drop shadow. Drawn in ::before, under the label (::after is the busy spinner), so it
   sits on top of whatever fill each button already has. The sidebar Upgrade plan has its own (above). */
.btn, .stat .stat-h a { position: relative; isolation: isolate; }
.btn::before, .stat .stat-h a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 55%, rgba(0,0,0,.1)); }
.btn.primary::before { background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0) 45%, rgba(0,0,0,.1)); }
.btn.danger.solid::before { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 50%, rgba(0,0,0,.12)); }
.btn, .stat .stat-h a { box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.35); }
.btn.primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.4), 0 6px 14px -6px rgba(0,0,0,.6); }
.tier .btn.cur, .tier .btn.off { box-shadow: none; }
.tier .btn.cur::before, .tier .btn.off::before { display: none; }
.tier .billed { margin: 4px 0 0; color: var(--muted); font-size: 13px; }   /* "US$99.90 billed yearly" under a yearly plan's monthly price */
@media (max-width: 687px) {   /* phones: the "billed" line under each price costs ~16px a card, so the cards and header give it back */
  .tier .billed { margin-top: 1px; font-size: 12px; }
  .tier { padding: 11px 14px; }
  .tier ul { margin-top: 8px; padding-top: 8px; }
  dialog.pop .wrap { padding-top: 54px; } dialog.pop .seg { margin-top: 12px; } dialog.pop .fine-slot + .tiers, dialog.pop .tiers-fine + .tiers { margin-top: 12px; }
}
@media (max-height: 600px) and (max-width: 687px) { dialog.pop .wrap { padding-top: 50px; } .tier { padding: 8px 12px; } .tier .price { font-size: 23px; } .tier ul { margin-top: 6px; padding-top: 6px; } dialog.pop h2 { font-size: 22px; } }
.btn[data-skel] { box-shadow: none; }   /* a button still loading is a flat placeholder, not a glossy one */
.btn[data-skel]::before { display: none; }
@container (max-width: 639px) { .tier .am { display: inline; font-size: 0; } .tier .am::after { content: "/mo"; font-size: 13px; } }   /* "20 thumbnails/mo": short, and never read as a year */
.sb-me { min-width: 0; } .sb-me .who { min-width: 0; }   /* a narrow phone: the account chip shrinks instead of pushing the page sideways */
@container (max-width: 300px) { .tier ul { column-gap: 10px; font-size: 12px; } }   /* 320px phones: "1,500 Build credits/mo" stays on one line, so the popup never scrolls */
@media (max-width: 359px) { .sb, .sb-mini .sb { padding: 0 12px; } .sb-nav a { padding: 0 5px; } }   /* 320px phones: the top bar fits without pushing the page sideways */
.dot:not(.on) { background: rgba(255,255,255,.28); }   /* not connected: a grey dot (white when connected), so the two never look alike */
.auth #sub { overflow-wrap: anywhere; }   /* a long email address wraps instead of running off the card */
.auth .alt .linkish { color: var(--fg); text-decoration-color: var(--line2); } .auth .alt .linkish:hover:not(:disabled) { text-decoration-color: currentColor; }   /* "Send a new code" matches the link beside it */
.stats.two .stat .sub.wide { grid-row: span 2; align-self: start; max-width: 46ch; line-height: 1.5; }   /* the Studio card's status: under the title, where the credits card has its meter */

/* Build: the chat box (send from the website, with reference images) and the 3D view of the place beside the chat (2026-11-27) */
.build-page .cslot { max-width: 780px; container: cbox / inline-size; }
#cslotList { margin: 12px 0 8px; }
.bcomp textarea { min-height: 0 !important; max-height: 220px; padding: 16px 18px 6px !important; font-size: 15.5px; overflow-y: auto; }
.bcomp .composer-bar { gap: 12px; }
.cattach { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.cattach:hover { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.05); }
.cattach svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.cattach:focus-visible, .csend:focus-visible, .scene-btn:focus-visible, .cimg-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cimgs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 18px 6px; }
.cimgs[hidden] { display: none; }
.cimg { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #1a1b1e; }
.cimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cimg-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(13,13,15,.85); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cimg-x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bcomp.drag { border-color: rgba(255,255,255,.45); border-style: dashed; }
.csend { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #0d0d0f; display: grid; place-items: center; cursor: pointer; transition: opacity .15s, transform .15s; }
.csend:hover:not(:disabled) { transform: scale(1.05); }
.csend:disabled { opacity: .35; cursor: default; }
.csend svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.csend .sq { display: none; fill: currentColor; stroke: none; }
.bcomp.busy .csend .up { display: none; } .bcomp.busy .csend .sq { display: block; }
.chint { margin: 8px 4px 0; min-height: 0; font-size: 13.5px; color: var(--muted); }
.chint:empty { display: none; }
.m-h { font-weight: 600; color: #fff; }
.build-page #log .m b { font-weight: 600; color: #fff; }
.build-page #log > .intro { margin: auto 0; padding: 32px 8px; text-align: center; }
.build-page #log > .intro h3 { margin: 0 0 8px; font: 450 20px/1.2 var(--display); color: #fff; }
.build-page #log > .intro p { max-width: 48ch; margin: 0 auto; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
html.chat-open .build-page #view { max-width: 1400px; }
.chat-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
.chat-col { display: flex; flex-direction: column; min-width: 0; }
.chat-col .cslot { padding-top: 12px; }
.placeview { position: relative; display: flex; flex-direction: column; min-width: 0; height: 480px; border-radius: 16px; overflow: hidden; background: #111214; border: 1px solid rgba(255,255,255,.07); }
.scene-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.scene-h b { font: 500 15px var(--sans); color: #fff; }
.scene-h small { color: var(--dim); font-size: 13px; margin-right: auto; }
.scene-btn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.scene-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.scene-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.placeview canvas { flex: 1; width: 100%; min-height: 0; display: block; touch-action: none; cursor: grab; }
.placeview canvas:active { cursor: grabbing; }
.scene-empty { position: absolute; inset: 57px 0 0; display: grid; place-items: center; padding: 24px; background: #111214; text-align: center; }
.scene-empty[hidden] { display: none; }
.scene-empty p { max-width: 32ch; color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0; }
.scene-tip { margin: 0; padding: 8px 18px 10px; font-size: 12.5px; color: var(--dim); border-top: 1px solid rgba(255,255,255,.06); }
@container main (max-width: 999px) { .chat-split { grid-template-columns: minmax(0, 1fr); } .placeview { height: 260px !important; } .placeview:has(.scene-empty:not([hidden])) { display: none; } }   /* narrow: the chat first; the view under it, only when there is a place to show */
@media (pointer: coarse) { input[type=email], input[type=password], input[type=text], textarea, .auth-page select { font-size: 16px; } }   /* iOS zooms in on smaller fields and stays zoomed */
.auth #sub .sub-mail { display: block; color: #fff; overflow-wrap: anywhere; }
.build-page #cslotList { max-width: 760px; margin-inline: auto; }   /* the list's chat box: a comfortable width, centred under the cards (like the Studio panel's box) */
.chat-col .log { flex: none; }   /* the height fitLog sets holds, and a long chat scrolls inside its box */
@media (min-width: 861px) { html.chat-open body.shell > main { padding-bottom: 24px; } }   /* (phones keep the room for the bottom bar) */
.stats.two .stat .btns { flex-wrap: wrap; }

/* the Build chat box, drawn like the Studio panel's prompt box (devable-plugin.lua: composer, pillGlass, whiteGloss): dark glass with a soft
   top-to-bottom sheen, a rim that catches the light at its top and bottom edges (brighter while you type), a glass + pill, a glossy white send */
body.shell .composer.bcomp { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 12px 18px; border-radius: 24px; border: 1px solid transparent;
  background: linear-gradient(180deg, #1D1E22, #121316 50%, #131417) padding-box, linear-gradient(180deg, #45474C, #202125 50%, #404145) border-box;
  box-shadow: 0 18px 50px -24px rgba(0,0,0,.9); transition: background .15s; }
body.shell .composer.bcomp:focus-within { border-color: transparent; background: linear-gradient(180deg, #1D1E22, #121316 50%, #131417) padding-box, linear-gradient(180deg, #5A5C62, #2A2B30 50%, #54555B) border-box; }
body.shell .composer.bcomp.drag { background: linear-gradient(180deg, #1D1E22, #121316 50%, #131417) padding-box, linear-gradient(180deg, #8A8C92, #4A4B50 50%, #84858B) border-box; }
body.shell .composer.bcomp textarea { padding: 0 6px 0 0 !important; min-height: 26px !important; font-size: 17px; line-height: 1.45; color: #F4F4F5; }
body.shell .composer.bcomp textarea::placeholder { color: #7C7C86; }
body.shell .composer.bcomp .composer-bar { padding: 0 !important; height: 38px; }
.bcomp .cattach { width: 34px; height: 34px; border: 1px solid transparent; color: #F4F4F5;
  background: linear-gradient(180deg, #3C3D42, #26272B 50%, #1E1F23) padding-box, linear-gradient(180deg, #5E5F66, #2C2D32 50%, #232428) border-box; transition: transform .2s, filter .15s; }
.bcomp .cattach:hover { color: #fff; filter: brightness(1.18); transform: scale(1.04); border-color: transparent; }
.bcomp .cattach svg { width: 16px; height: 16px; stroke-width: 2; }
.bcomp .csend { width: 38px; height: 38px; background: linear-gradient(180deg, #FFFFFF, #F0F0F2 50%, #CFCFD4); color: #0d0d0f; }
.bcomp .csend:disabled { opacity: 1; background: #2E2F34; color: #7C7C86; }
.bcomp .cimgs { padding: 0; gap: 8px; }
.bcomp .cimg { width: 56px; height: 56px; border-radius: 10px; background: #2A2B30; border: 1px solid rgba(255,255,255,.15); }
.bcomp .cimg-x { top: 3px; right: 3px; background: #1C1B1F; }
.bcomp .cimg-x:hover { background: #2E2D33; }
.bcomp .cimg-x svg { width: 10px; height: 10px; }
.tip-touch { display: none; } @media (pointer: coarse) { .tip-mouse { display: none; } .tip-touch { display: inline; } .cimg-x { width: 26px; height: 26px; } }

/* the model and effort pills and their menus, like the Studio panel's (pillGlass, popGlass) */
.bcomp .composer-bar { position: static; }
body.shell .composer.bcomp { position: relative; }
.bcomp .cleft { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bcomp .cpill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px 0 14px; border-radius: 999px; border: 1px solid transparent; color: #F4F4F5; cursor: pointer;
  font: 600 14px var(--sans); white-space: nowrap; min-width: 0; transition: filter .15s;
  background: linear-gradient(180deg, #3C3D42, #26272B 50%, #1E1F23) padding-box, linear-gradient(180deg, #5E5F66, #2C2D32 50%, #232428) border-box; }
.bcomp .cpill:hover, .bcomp .cpill.open { filter: brightness(1.18); }
.bcomp .cpill:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bcomp .cpill > span:not(.bars) { overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.bcomp .cpill .chev { width: 14px; height: 14px; flex: none; fill: none; stroke: #B4B4BC; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bcomp .bars { display: inline-flex; align-items: flex-end; gap: 1px; height: 14px; margin-right: 2px; }
.bcomp .bars i { width: 2px; border-radius: 1px; background: #4A4B50; }
.bcomp .bars i:nth-child(1) { height: 6px; } .bcomp .bars i:nth-child(2) { height: 8px; } .bcomp .bars i:nth-child(3) { height: 10px; } .bcomp .bars i:nth-child(4) { height: 12px; } .bcomp .bars i:nth-child(5) { height: 14px; }
.bcomp .bars i.on { background: #F4F4F5; }
.cmenu { position: absolute; bottom: calc(100% + 8px); z-index: 30; width: 300px; max-width: calc(100vw - 32px); padding: 6px; border-radius: 14px; border: 1px solid transparent;
  background: linear-gradient(180deg, #1D1E22, #121316 50%, #131417) padding-box, linear-gradient(180deg, #5A5C62, #2A2B30 50%, #54555B) border-box;
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.9); }
.cmenu[hidden] { display: none; }
.cm-search { display: block; width: 100%; height: 34px; margin: 0 0 6px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: #17181B; color: #F4F4F5; font: 14px var(--sans); }
.cm-search:focus { outline: none; border-color: rgba(255,255,255,.3); box-shadow: none; }
.cm-list { max-height: 280px; overflow-y: auto; }
.cm-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: #F4F4F5; font: 500 15px var(--sans); text-align: left; cursor: pointer; }
.cm-row:hover:not(:disabled) { background: #2A2B30; }
.cm-row:focus-visible { background: #2A2B30; outline: 2px solid #fff; outline-offset: -2px; }   /* the keyboard's row: a white ring (the hover grey alone is too faint) */
.cm-row.off { color: #55555C; }   /* locked: still clickable, it says what unlocks it */
.cm-sub { display: block; color: #8A8A92; font-size: 12.5px; font-weight: 400; line-height: 1.3; white-space: normal; }
.cm-row:has(.cm-sub) { padding-block: 6px; }
.cm-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-right { margin-left: auto; color: #B4B4BC; font-size: 13px; white-space: nowrap; }
.cm-row.off .cm-right { color: #8A8A92; }   /* what unlocks it: readable even though the row is dimmed */
.cm-row .ck { width: 15px; height: 15px; flex: none; margin-left: 6px; fill: none; stroke: #F4F4F5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cm-row:not(:has(.cm-right)) .ck, .cmenu.effort .cm-row .ck { margin-left: auto; }
.cmenu.effort .cm-badge + .ck { margin-left: 6px; }
.cm-badge { padding: 2px 7px; border-radius: 6px; background: #2C2D32; color: #B4B4BC; font: 500 12px var(--sans); }
.cm-note { margin: 6px 10px 8px; color: #7C7C86; font-size: 13.5px; line-height: 1.4; }
.cm-empty { margin: 8px 10px; color: #7C7C86; font-size: 13.5px; }
@container cbox (max-width: 520px) { .bcomp #cbars { display: none; } .bcomp .cpill > span:not(.bars) { max-width: 110px; } }   /* narrow: the effort keeps its word (bars alone read as a signal icon) */
@container cbox (max-width: 380px) { .bcomp #cmodel .chev, .bcomp #ceffort .chev { display: none; } .bcomp .cpill { padding: 0 10px; } }
@media (max-width: 720px) { .hero-grid { min-height: min(600px, calc(100svh - 84px)); padding: 8px 0 96px; } }   /* phones: the motto sits a little high, with room under it for the one wide ribbon */

/* Build (2026-11-27, v3): the box alone in the middle. A slim bar on top: the chats menu on the left, Studio and credits as small chips on the right */
.build-page .b-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 20; }
.b-chats { position: relative; min-width: 0; }
.b-sel { display: inline-flex; align-items: center; gap: 8px; height: 36px; max-width: min(420px, 100%); padding: 0 12px 0 12px; border-radius: 999px; border: 1px solid transparent; color: #F4F4F5;
  font: 600 14px var(--sans); cursor: pointer; background: linear-gradient(180deg, #3C3D42, #26272B 50%, #1E1F23) padding-box, linear-gradient(180deg, #5E5F66, #2C2D32 50%, #232428) border-box; }
.b-sel:hover, .b-sel[aria-expanded="true"] { filter: brightness(1.18); }
.b-sel:focus-visible, .b-new:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.b-sel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-sel .b-ic { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.b-sel .chev { width: 14px; height: 14px; flex: none; fill: none; stroke: #B4B4BC; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b-menu { position: absolute; top: calc(100% + 8px); left: 0; width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; border-radius: 16px; border: 1px solid transparent;
  background: linear-gradient(180deg, #1D1E22, #121316 50%, #131417) padding-box, linear-gradient(180deg, #5A5C62, #2A2B30 50%, #54555B) border-box; box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); }
.b-menu[hidden] { display: none; }
.b-new { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: #fff; font: 600 14.5px var(--sans); cursor: pointer; text-align: left; }
.b-new:hover { background: #2A2B30; }
.b-new svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.build-page .b-menu .chats { max-height: none !important; overflow: visible !important; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.build-page .b-menu .chats .chat-day { position: static; background: none; margin: 10px 0 4px; padding: 0 0 0 12px; font-size: 12px; }
.b-menu .chat-row { grid-template-columns: 30px 1fr auto; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.b-menu .chat-row:hover { background: #2A2B30; }
.b-menu .chat-ic { width: 30px; height: 30px; }
.b-menu .chat-row b { font-size: 14.5px; } .b-menu .chat-row small { font-size: 12.5px; } .b-menu .chat-when { font-size: 12px; }
.b-empty { margin: 8px 12px 10px; color: #7C7C86; font-size: 13.5px; }
.b-status { display: flex; align-items: center; gap: 8px; flex: none; }
.b-status .stat-links:not(:has(> :not([hidden]))) { display: none; }
.b-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  color: #D9D9DE; font: 500 13px var(--sans); white-space: nowrap; text-decoration: none; }
a.b-chip:hover { border-color: rgba(255,255,255,.22); color: #fff; }
.b-chip .dot { width: 7px; height: 7px; }
.b-chip b { color: #fff; font-weight: 600; } .b-chip small { color: #8A8A93; font-size: 12.5px; margin-left: -4px; }
.b-meter { width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.b-meter i { display: block; height: 100%; background: #fff; border-radius: 2px; }
.build-page #stop { display: none !important; }   /* the box's send button turns into Stop */
.b-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 190px); max-width: 760px; margin: 0 auto; padding: 24px 0 64px; }
.b-center[hidden] { display: none; }
.b-title { margin: 0 0 22px; font: 500 clamp(28px, 3.4vw, 40px)/1.15 var(--display); letter-spacing: -.03em; color: #fff; text-align: center; }
.b-center .cslot { width: 100%; }
.build-page .b-center #cslotList { margin: 0; max-width: none; }
.b-connect { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 18px; }
.b-connect:not(:has(> :not([hidden]))) { display: none; }
.b-connect .codebox { margin: 0; }
.b-link { border: 0; background: none; padding: 0; color: #B4B4BC; font: 500 13.5px var(--sans); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; cursor: pointer; }
.b-link:hover { color: #fff; text-decoration-color: currentColor; }
.b-note { margin: 12px 0 0; max-width: 52ch; color: #8A8A93; font-size: 13.5px; line-height: 1.5; text-align: center; text-wrap: balance; }
.b-note:empty { display: none; }
.b-reset { display: none; }
@media (max-width: 640px) {
  #connText { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }   /* phones: just the dot (still read out) */
  .b-center { min-height: calc(100svh - 176px); }
}
.build-page .chat-top { display: none; }   /* the chats menu (top left) already shows which chat is open and has New chat */
.build-page #view { margin-top: 20px; }
#view.noplace .placeview { display: none; }
#view.noplace .chat-split { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
@media (min-width: 861px) { .build-page .b-top { margin-top: -20px; } }   /* level with the sidebar's logo row */
@media (max-width: 860px) {   /* phones: the page links as icons only, no words (the top bar stays quiet) */
  .sb-nav a { width: 38px; padding: 0; justify-content: center; }
  .sb-nav a span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 1 !important; }   /* hidden, still read out */
  .sb-nav a { position: relative; }
  .sb-nav a svg { display: block !important; width: 18px; height: 18px; }
  .sb-nav a[aria-current] { box-shadow: none; background: rgba(255,255,255,.08); color: #fff; }
}
/* the top chips: glass pills like the Studio panel's, the credits as its round gauge (no bar) */
.b-chip { border: 1px solid transparent; color: #F4F4F5; background: linear-gradient(180deg, #3C3D42, #26272B 50%, #1E1F23) padding-box, linear-gradient(180deg, #5E5F66, #2C2D32 50%, #232428) border-box; }
a.b-chip:hover { border-color: transparent; filter: brightness(1.15); color: #fff; }
.b-ring { width: 16px; height: 16px; transform: rotate(-90deg); flex: none; }
.b-ring circle { fill: none; stroke-width: 2; }
.b-ring .t { stroke: #3A3B40; }
.b-ring .f { stroke: #F4F4F5; stroke-linecap: round; transition: stroke-dashoffset .4s; }
@media (max-width: 860px) {   /* phones: no top bar. The whole sidebar becomes one floating glass bar at the bottom: the page links and your avatar (the Studio panel's look) */
  .sb, .sb-mini .sb { position: fixed; top: auto; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: auto; height: auto;
    padding: 6px; gap: 4px; border-radius: 999px; border: 1px solid transparent; box-shadow: 0 18px 44px -12px rgba(0,0,0,.85);
    background: linear-gradient(180deg, #1D1E22, #121316 50%, #131417) padding-box, linear-gradient(180deg, #5A5C62, #2A2B30 50%, #54555B) border-box; }
  .sb .sb-top, .sb-mini .sb .sb-top, .sb .sb-up { display: none !important; }
  .sb > .sb-nav { gap: 4px; }
  body.shell .sb > .sb-nav a { width: 56px; height: 44px; border-radius: 999px; color: #B4B4BC; }   /* (body.shell: beats the desktop sidebar's 10px corners) concentric with the bar: 29px curve - 7px inset = a 22px, full-pill button */
  .sb > .sb-nav a svg { width: 20px; height: 20px; }
  .sb > .sb-nav a[aria-current] { color: #fff; background: linear-gradient(180deg, #3C3D42, #26272B 50%, #1E1F23); box-shadow: inset 0 0 0 1px #45474C; }
  .sb > .sb-nav a:hover:not([aria-current]) { color: #fff; background: rgba(255,255,255,.06); }
  body.shell .sb .sb-me { margin: 0 0 0 2px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; }
  .sb .sb-me .av { width: 32px; height: 32px; }
  body.shell > main { padding-top: 20px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.shell:not(.embed):has(> .foot) > main { padding-bottom: 20px; }   /* a page with a footer: the room for the tab bar goes under the footer, so its links aren't covered */
  body.shell > .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
/* Build: the landing's ribbons behind the box, inside the page panel (hidden while a chat is open) */
body.shell > main.build-page { position: relative; overflow: hidden; }
.build-page > .ribbons { left: 0; width: 100%; height: 100%; z-index: 0; }
.build-page > :not(.ribbons) { position: relative; z-index: 1; }
.build-page > .b-top { z-index: 20; }
html.chat-open .build-page > .ribbons { display: none; }
.b-center { padding: 0; }
@media (min-width: 861px) { html:not(.chat-open) body.shell > main.build-page { padding-bottom: 10px; } }   /* the empty Build page fits the window exactly (the box is centred in it); phones keep the room for the bottom bar */
/* an open chat uses the width: the chat on the left at a reading width, the place (its 3D view and UI) takes the rest */
html.chat-open body.shell > main.build-page { padding-left: clamp(20px, 2.2vw, 36px); padding-right: clamp(20px, 2.2vw, 36px); }
html.chat-open .build-page #view { max-width: none; }
.chat-split { grid-template-columns: minmax(340px, 560px) minmax(0, 1fr); }
@container main (max-width: 999px) { .chat-split { grid-template-columns: minmax(0, 1fr); } }
/* Thumbnails: Generate eases from dark to light when there's something to make, with one light sweep across it */
.sb-ready #send { transition: background-color .5s ease, color .5s ease, box-shadow .5s ease, border-color .5s ease; }
#send { position: relative; overflow: hidden; }
#send::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.sb-ready #send:not(:disabled)::after { animation: send-sweep .9s ease-out .12s 1; }
@keyframes send-sweep { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .sb-ready #send { transition: none; } .sb-ready #send:not(:disabled)::after { animation: none; } }
/* the place view: Studio's viewport shape (set from the plugin's data), the 3D canvas, and the game's UI over it */
.pv-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; }
.pv-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.ui-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ui-root { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ui-el { position: absolute; box-sizing: border-box; }
.ui-text { position: absolute; inset: 0; display: flex; padding: 0 2px; line-height: 1.05; overflow: hidden; overflow-wrap: anywhere; }
.ui-img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ui-btn { pointer-events: auto; cursor: pointer; transition: filter .15s, scale .12s; }
.ui-btn:hover { filter: brightness(1.12); }
.ui-btn:active { scale: .95; }
/* the place view as a sidebar: it runs the full height beside the chat; the 3D view keeps Studio's shape, centred in it; it can be hidden */
@container main (min-width: 1000px) { .chat-split { align-items: stretch; } .placeview { height: auto !important; } }
.pv-box { flex: 1; min-height: 0; display: grid; place-items: center; container-type: size; background: #0B0B0D; }
.pv-stage { width: min(100cqw, calc(100cqh * var(--ar, 1.7778))); aspect-ratio: var(--ar, 16 / 9); }
@container main (max-width: 999px) { .placeview { height: 320px !important; } }
#view.pv-closed .placeview { display: none; }
#view.pv-closed .chat-split { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.b-pv { cursor: pointer; font: 500 13px var(--sans); }
.b-pv svg, .scene-btn svg rect { fill: none; }
.b-pv svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.4; }
.b-pv:hover { filter: brightness(1.15); }
.b-pv[hidden] { display: none; }

/* ===== 2026-11-27 round: one glass language everywhere (the Studio panel's), rainbow Upgrade, no header line ===== */
:root { --glass: linear-gradient(180deg, #1D1E22, #121316 50%, #131417); --rim: linear-gradient(180deg, #45474C, #202125 50%, #404145);
  --rainbow: linear-gradient(90deg, #FFBE50, #FF8040, #FF5470, #F748B8, #A060FF, #7896FF, #FFBE50); }

/* never a line under the header, on any page */
.top, .top.bare, .auth-page .top, body.home .top.bare { border-bottom: 0 !important; box-shadow: none; }

/* Build chat: devable's replies are dark glass cards, yours a step brighter on the right (devable-plugin.lua bubble: cardGlass / mineGlass);
   each slides up and fades in */
.build-page #log .m { padding: 11px 15px; border-radius: 16px; border: 1px solid transparent; font-size: 15.5px; line-height: 1.5;
  background: linear-gradient(180deg, #1B1C20, #111215 50%, #101114) padding-box, linear-gradient(180deg, #4C4E54, #232428 50%, #2E2F34) border-box;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.85); animation: m-in .4s cubic-bezier(.2,.8,.2,1) both; }
.build-page #log .m.user { max-width: 85%; background: linear-gradient(180deg, #2C2D32, #1F2024 50%, #1A1B1F) padding-box, linear-gradient(180deg, #55565C, #2A2B30 50%, #2E2F34) border-box; }
.build-page #log .m.notice { background: none; border: 1px solid rgba(255,255,255,.12); box-shadow: none; }
.build-page #log .steps-g { animation: m-in .4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes m-in { from { opacity: 0; transform: translateY(12px); } }
/* the working dots: three, bobbing in turn (setWorking in the plugin: 7px, 13px apart, 0.42s, staggered 0.14s) */
.build-page #log .m-cost { margin: 0 0 0 4px; font-size: 12.5px; color: var(--dim); }
.m-dots { display: flex; gap: 6px; align-items: center; height: 28px; padding: 0 0 0 4px; flex: none; }
.m-dots i { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .3; animation: dot-bob .42s ease-in-out infinite alternate; }
.m-dots i:nth-child(2) { animation-delay: .14s; }
.m-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes dot-bob { to { transform: translateY(-5px); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .build-page #log .m, .build-page #log .steps-g { animation: none; } }

/* the Studio view: no tip line, a loader (not words) while the place comes in */
.scene-tip { display: none; }
.pv-load { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.14); border-top-color: #fff; animation: spin .8s linear infinite; }
.pv-load[hidden], #sceneWhy[hidden] { display: none; }
.placeview { border: 1px solid transparent; border-radius: 20px; background: var(--glass) padding-box, var(--rim) border-box; box-shadow: 0 18px 50px -24px rgba(0,0,0,.9); }
.scene-h { border-bottom: 0; padding: 10px 10px 10px 18px; }
.pv-box, .scene-empty { background: #0B0B0D; }
.scene-empty { inset: 52px 0 0; }
/* wide: chat | handle | view. The handle sets the view's width (--pvw, remembered); hiding the view slides it out */
@container main (min-width: 1000px) {
  .chat-split { grid-template-columns: minmax(340px, 1fr) 14px min(var(--pvw, min(62%, calc(100% - 574px))), calc(100% - 354px)); gap: 0;
    transition: grid-template-columns .45s cubic-bezier(.2,.8,.2,1); }
  .chat-split.resizing { transition: none; user-select: none; cursor: col-resize; }
  .chat-col > * { width: 100%; max-width: 760px; margin-inline: auto; }
  .placeview { transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
  #view.pv-closed .chat-split, #view.noplace .chat-split { grid-template-columns: minmax(340px, 1fr) 0px 0px; max-width: none; margin: 0; }
  #view.pv-closed .placeview { display: flex; opacity: 0; transform: translateX(48px); pointer-events: none; visibility: hidden; transition: opacity .3s ease, transform .45s cubic-bezier(.2,.8,.2,1), visibility 0s .45s; }
  #view.noplace .placeview { display: none; }
  .pv-grip { position: relative; cursor: col-resize; touch-action: none; outline: 0; }
  .pv-grip::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 44px; margin: -22px 0 0 -2px; border-radius: 4px; background: rgba(255,255,255,.14); transition: background .15s, height .15s, margin .15s; }
  .pv-grip:hover::after, .pv-grip:focus-visible::after, .chat-split.resizing .pv-grip::after { background: rgba(255,255,255,.55); height: 64px; margin-top: -32px; }
  #view.pv-closed .pv-grip, #view.noplace .pv-grip { visibility: hidden; }
}
@container main (max-width: 999px) { .pv-grip { display: none; } }
@media (prefers-reduced-motion: reduce) { .chat-split, .placeview { transition: none !important; } }

/* Upgrade, everywhere: the site's dark textured button with a soft rainbow glow drifting under it (no coloured rim) */
.sb-up { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 11px; border: 1px solid rgba(255,255,255,.08) !important; color: #fff !important; font: 500 13.5px var(--sans); text-decoration: none !important; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 55%, rgba(0,0,0,.1)), #2A2826 !important;
  text-shadow: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.35); filter: none; }
.sb-up::before { content: ""; position: absolute; inset: 6px 10% -4px; z-index: -1; border-radius: inherit;
  background: var(--rainbow); background-size: 300% 100%; animation: up-flow 6s linear infinite; filter: blur(12px); opacity: .32; transition: opacity .2s; }
.sb-up::after { content: none !important; }
.sb-up:hover::before { opacity: .6; }
.sb-up:active { transform: translateY(1px); }
.sb-up svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: none; }
a.sb-up { width: 100%; height: 38px; }
a[data-upgrade][hidden], .sb-up[hidden], #outUp[hidden], .acct #up[hidden] { display: none !important; }
@keyframes up-flow { to { background-position: 0 0, 300% 0; } }
.sb-up::before { animation-name: up-glow; }
@keyframes up-glow { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .sb-up, .sb-up::before { animation: none; } }
.b-status .stat-links { display: inline-flex; }

/* popups: the same dark glass as the prompt box, a lit rim, rounder */
dialog.mini, dialog.acct-pop { border: 1px solid transparent !important; border-radius: 24px; background: var(--glass) padding-box, var(--rim) border-box !important;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.04); }
dialog.mini::backdrop, dialog.acct-pop::backdrop { background: rgba(6,6,8,.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.mini input, dialog.mini select { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.09); border-radius: 12px; }
dialog.mini .btn:not(.primary):not(.danger) { background: linear-gradient(180deg, #3C3D42, #26272B 50%, #1E1F23) padding-box, linear-gradient(180deg, #5E5F66, #2C2D32 50%, #232428) border-box; border: 1px solid transparent; }
/* Connect Studio: the code in an inset well, no rule above the footer line */
dialog.code-pop .pair { background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.07); box-shadow: inset 0 2px 10px rgba(0,0,0,.45); }
dialog.code-pop .code-foot { border-top: 0; margin-top: 10px; padding-top: 0; }
/* Install / update guides: steps as spaced blocks (no rules between), numbers in glass pills, pictures framed softly */
.guide .steps.rows li.row { border-top: 0 !important; padding: 14px 0 14px 46px; }
.guide .steps.rows li.row::before { width: 30px; height: 30px; border: 1px solid transparent; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #3C3D42, #26272B 50%, #1E1F23) padding-box, linear-gradient(180deg, #5E5F66, #2C2D32 50%, #232428) border-box; color: #fff; font-size: 13px; }
.guide > p { color: var(--muted); }
.guide .step-shot { border-radius: 14px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 14px 34px -18px rgba(0,0,0,.9); }
/* Account popup: a spinner until the page inside has its data; the page itself sits on the popup's glass */
dialog.acct-pop .pop-spin { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.14); border-top-color: #fff; animation: spin .8s linear infinite; opacity: 0; pointer-events: none; transition: opacity .2s; }
dialog.acct-pop.loading .pop-spin { opacity: 1; }
dialog.acct-pop iframe { background: transparent !important; transition: opacity .25s; }
dialog.acct-pop.loading iframe { opacity: 0; }
html:has(body.embed), body.embed, body.embed.shell, body.embed.shell.sb-mini { background: transparent !important; }
body.embed .rows { border: 1px solid transparent !important; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)) padding-box, linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.04) 50%, rgba(255,255,255,.08)) border-box !important; }
body.embed .row { border-top-color: rgba(255,255,255,.05) !important; }
body.embed .acct-head #who:empty, body.embed .acct-head #who[data-skel] { visibility: hidden; }

/* Log in / sign up: the card is the same glass; no rule above "New to devable?" */
.auth-page .auth { border: 1px solid transparent !important; border-radius: 26px !important; background: var(--glass) padding-box, var(--rim) border-box !important; box-shadow: 0 40px 100px -40px rgba(0,0,0,.95); }
.auth-page .auth .k { display: none; }
.auth-page .auth .alt { border-top: 0 !important; margin: 20px 0 0 !important; padding: 0 !important; }
.auth-page .auth input, .auth-page .auth select { background-color: rgba(0,0,0,.28); border-color: rgba(255,255,255,.09); border-radius: 12px; }

/* thumbnails load behind a spinner, then fade in whole */
.thumb .shot, .dash-thumbs .shot { position: relative; }
.shot img { transition: opacity .3s; }
.shot:not(.loaded):not(.craft) img { opacity: 0; }
.shot.failed img { visibility: hidden; }
.shot:not(.loaded):not(.craft)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; border: 2px solid rgba(255,255,255,.14); border-top-color: #fff; animation: spin .8s linear infinite; }

/* Thumbnails page: what devable makes, then the box (the Build box's glass) in the middle */
body.shell .thumbs-page .tool-head { flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 22px; }
.thumbs-page .tool-head > div:first-child { display: flex; flex-direction: column; align-items: center; }
.t-ex { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 760px; margin: 4px auto 22px; }
.t-ex .ex { position: relative; padding: 0; font: inherit; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; background: #111214; cursor: pointer; aspect-ratio: 16 / 9;
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.9); transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s; }
.t-ex .ex img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-ex .ex span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12.5px; line-height: 1.3; color: #fff; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.8)); opacity: 0; transition: opacity .2s; }
.t-ex .ex:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.t-ex .ex:hover span, .t-ex .ex:focus-visible span { opacity: 1; }
body.shell .composer.tcomp { max-width: 760px; margin: 0 auto; padding: 14px 12px 12px 18px; }
body.shell .composer.tcomp textarea { min-height: 52px !important; padding: 0 !important; resize: none; }
body.shell .composer.tcomp .composer-bar { height: auto; border-top: 0; }
.tcomp #add { height: 34px; border-radius: 999px; border: 1px solid transparent; color: #F4F4F5;
  background: linear-gradient(180deg, #3C3D42, #26272B 50%, #1E1F23) padding-box, linear-gradient(180deg, #5E5F66, #2C2D32 50%, #232428) border-box; }
.tcomp #add::before { content: none; }
.tcomp #send { height: 38px; border-radius: 999px; padding: 0 18px; }
.thumbs-page #status { max-width: 760px; margin-inline: auto; text-align: center; }
.thumbs-page .hist-head { border-bottom: 0; }
@media (max-width: 700px) { .t-ex { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .t-ex .ex span { font-size: 11.5px; } }

/* the public header, signed in: your avatar beside Open devable */
.top-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: #fff; font: 600 15px var(--sans);
  border: 1px solid transparent; background: linear-gradient(180deg, #3C3D42, #26272B 50%, #1E1F23) padding-box, linear-gradient(180deg, #5E5F66, #2C2D32 50%, #232428) border-box; }
.top-av:hover { filter: brightness(1.15); }

/* audit fixes (2026-11-27) */
.build-page #cslotView { max-width: 760px; padding-inline: 2px 8px; }
.build-page #log .steps-g { border: 1px solid transparent; border-radius: 16px;
  background: linear-gradient(180deg, #1B1C20, #111215 50%, #101114) padding-box, linear-gradient(180deg, #4C4E54, #232428 50%, #2E2F34) border-box; box-shadow: 0 12px 30px -16px rgba(0,0,0,.85); }
.build-page #log .steps-g summary { padding: 11px 15px; }
.build-page #log .steps-g ol { padding: 2px 15px 12px; }
.b-sel { height: 32px; }
.b-menu { min-width: 100%; }
dialog.mini .btn:not(.primary):not(.danger), body.shell main dialog.mini .btn:not(.primary):not(.danger):not(.ghost) { border: 1px solid transparent;
  background: linear-gradient(180deg, #3C3D42, #26272B 50%, #1E1F23) padding-box, linear-gradient(180deg, #5E5F66, #2C2D32 50%, #232428) border-box; }
dialog.mini input, dialog.mini select, body.shell main dialog.mini input[type] { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.09); border-radius: 12px; }
dialog.mini .pwf-show { border-left: 0; }
.guide .steps.rows li.row::before { top: 10px; }
@media (max-width: 600px) { dialog.acct-pop { border: 0 !important; border-radius: 0; } }
/* the Upgrade glow stays inside the button (2026-11-27) */
.sb-up { overflow: hidden; }
.sb-up::before { inset: 20% 8% -30%; opacity: .45; }
.sb-up::before { animation: none; background-size: 100% 100%; }   /* the glow holds still: its colours don't shift */
.sb-up:hover, .sb-up:active, .sb-up:focus { box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 2px rgba(0,0,0,.35) !important; filter: brightness(1.08); }   /* no bright top line when hovered, pressed or selected */
/* hovered, the glow's colours flow (still otherwise) */
.sb-up:hover::before { background-size: 300% 100%; animation: up-glow 2.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .sb-up:hover::before { animation: none; } }

.quota .quota-up.btn { text-decoration: none; color: var(--fg); margin-left: 4px; }   /* "Upgrade for more": a normal small button */.b-up { text-decoration: none; cursor: pointer; } .b-up svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; } .b-up:hover { filter: brightness(1.15); }

/* buttons: the Studio panel's glass (like the Reference pill), no grain. Dark ones: a top-lit gradient and a rim that catches the light;
   white ones: glossy white. The sheen layer (::before) is off; the sidebar Upgrade keeps its colour glow there. */
.btn:not(.primary):not(.danger):not(.ghost), .stat .stat-h a, .sb-up {
  border: 1px solid transparent !important; color: #F4F4F5;
  background: linear-gradient(180deg, #3C3D42, #26272B 50%, #1E1F23) padding-box, linear-gradient(180deg, #5E5F66, #2C2D32 50%, #232428) border-box !important;
  box-shadow: 0 6px 16px -10px rgba(0,0,0,.8) !important; }
.btn.primary:not(:disabled):not(#send) { border: 1px solid transparent !important; color: #0d0d0f;
  background: linear-gradient(180deg, #FFFFFF, #F0F0F2 50%, #CFCFD4) padding-box, linear-gradient(180deg, #FFFFFF, #D9D9DE 50%, #B9B9C0) border-box !important;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.7) !important; }
#send:not(:disabled) { background-color: #F0F0F2; border-color: #F0F0F2; box-shadow: inset 0 -10px 16px -8px rgba(0,0,0,.2), 0 6px 16px -8px rgba(0,0,0,.7); }
.btn::before, .stat .stat-h a:not(.sb-up)::before { display: none; }
.btn:not(:disabled):hover, .stat .stat-h a:hover { filter: brightness(1.1); }
/* every button has rounded corners (older rules squared some: the landing, plan cards, the public header) */
.btn:not(.icon):not(#send):not(#add), .stat .stat-h a, .menu-btn { border-radius: 12px !important; }
/* Generate with nothing to make: a quiet flat pill, no lit rim */
body.shell .composer.tcomp #send:disabled { background: rgba(255,255,255,.06) !important; border: 1px solid transparent !important; color: rgba(255,255,255,.32) !important; box-shadow: none !important; }
body.shell .composer.tcomp #send:disabled::after { display: none; }
/* the next step under devable's plan when Studio isn't connected */
.m-next { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 12px 12px 16px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: var(--muted); font-size: 14.5px; animation: m-in .4s cubic-bezier(.2,.8,.2,1) both; }
.m-next .btn { flex: none; }
/* log in / sign up: the card sits in the middle of the window under the header (the old 16vh padding pushed it below centre) */
.auth-stage { padding-block: 32px; min-height: calc(100svh - 72px); }
/* the code step: six boxes (one real input on top, see login.html); a backup code turns it into a plain field */
.otp { position: relative; margin: 22px 0 4px; }
.otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; z-index: 1; cursor: text; font-size: 16px; }
.otp-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.otp-slots i { display: grid; place-items: center; height: 60px; border-radius: 14px; font: 600 28px/1 var(--sans); font-style: normal; color: #fff;
  border: 1px solid transparent; background: linear-gradient(#0E0F11, #0E0F11) padding-box, linear-gradient(180deg, #34353A, #1C1D20) border-box;
  transition: background .15s, transform .15s; }
.otp-slots i.full { background: linear-gradient(180deg, #1E1F23, #16171A) padding-box, linear-gradient(180deg, #4A4B51, #26272B) border-box; }
.otp-slots i.on { background: linear-gradient(180deg, #1E1F23, #16171A) padding-box, linear-gradient(180deg, #FFFFFF, #8A8B90) border-box; }
.otp-slots i.on:empty::after { content: ""; width: 2px; height: 26px; background: #fff; animation: otp-caret 1s steps(1) infinite; }
@keyframes otp-caret { 50% { opacity: 0; } }
.otp.free input { position: static; opacity: 1; height: 52px; padding: 0 16px; border-radius: 14px; font: 600 20px var(--sans); letter-spacing: .12em; }
.otp.free .otp-slots { display: none; }
.otp.bad .otp-slots { animation: otp-shake .35s ease; }
@keyframes otp-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
#cf #cgo { margin-top: 18px; }
@media (max-width: 420px) { .otp-slots { gap: 7px; } .otp-slots i { height: 52px; font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .otp.bad .otp-slots, .otp-slots i.on:empty::after { animation: none; } }
/* Connect Studio popup: the code and its two actions (copy, new code) in one well */
dialog.code-pop .pair-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 14px; padding: 10px 10px 10px 22px; border-radius: 16px;
  background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.07); box-shadow: inset 0 2px 10px rgba(0,0,0,.45); }
dialog.code-pop .pair-box .pair { margin: 0; padding: 12px 0; background: none; border: 0; box-shadow: none; font-size: 38px; letter-spacing: .12em; white-space: nowrap; }
dialog.code-pop .pair-acts { display: flex; flex-direction: column; gap: 4px; }
dialog.code-pop .pair-acts .copy-ic { width: 38px; height: 38px; border-radius: 10px; color: var(--muted); }
dialog.code-pop .pair-acts .copy-ic:hover { color: #fff; background: rgba(255,255,255,.08); }
dialog.code-pop .pair-acts .copy-ic:disabled { opacity: .4; }
@media (max-width: 420px) { dialog.code-pop .pair-box .pair { font-size: 28px; } }
/* the install guide's step 2: the live code in the same well as the Connect popup, and a drawing of Studio's Allow prompt */
.guide .pair-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; width: 100%; box-sizing: border-box; padding: 6px 8px 6px 18px; border-radius: 14px;
  background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.07); box-shadow: inset 0 2px 10px rgba(0,0,0,.45); max-width: 340px; }
.guide .steps.rows li.row .pair-box p.pair { margin: 0; padding: 8px 0; background: none; border: 0; box-shadow: none; font-size: 26px; line-height: 1; color: #fff; letter-spacing: .12em; white-space: nowrap; }
.guide .pair-acts .copy-ic { width: 36px; height: 36px; border-radius: 10px; color: var(--muted); }
.guide .pair-acts .copy-ic:hover { color: #fff; background: rgba(255,255,255,.08); }
.allow-mock { width: 100%; max-width: 340px; padding: 16px 16px 14px; border-radius: 14px; background: #2b2b2e; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.9); font: 500 13.5px/1.4 var(--sans); color: #e8e8ea; }
.guide .steps.rows li.row p.fine { margin-top: 12px; font-size: 14.5px; line-height: 1.5; }   /* a step's other way to do it (the Toolbox route) */
.guide .ctl.stack { display: flex; flex-direction: column; gap: 12px; }   /* step 3: the code, then where it goes */
/* step 3's drawing of devable's Connect card in Studio (the plugin's own look: dark glass card, code box, white button) */
.connect-mock { display: flex; flex-direction: column; width: 100%; max-width: 340px; padding: 18px 18px 16px; border-radius: 14px; background: #16171a; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.9); }
.guide .steps.rows li.row .connect-mock p { margin: 0; color: #fff; }
.guide .steps.rows li.row .connect-mock .cm-t { font: 600 15px/1.3 var(--sans); }
.guide .steps.rows li.row .connect-mock .cm-s { margin-top: 4px; font-size: 12px; line-height: 1.4; color: #9a9792; }
.connect-mock .cm-in { margin-top: 14px; padding: 12px; border-radius: 10px; background: #0c0c0e; border: 1px solid rgba(255,255,255,.08); text-align: center; font: 600 18px/1 var(--sans); letter-spacing: .1em; color: #55534f; }
.connect-mock .cm-b { margin-top: 10px; padding: 10px; border-radius: 999px; background: #fff; color: #0F0E0D; text-align: center; font: 600 13.5px/1 var(--sans); }
@media (max-width: 600px) { dialog.guide .steps.rows li.row > div:first-child { padding-right: 24px; } }   /* the pinned X never covers step text */
.guide .steps.rows li.row .allow-mock p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.4; color: #e8e8ea; }
.allow-mock span { display: flex; justify-content: flex-end; gap: 8px; }
.allow-mock i, .allow-mock b { font-style: normal; font-weight: 500; padding: 6px 14px; border-radius: 7px; background: #45454a; }
.allow-mock b { background: #3b6cf6; color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
/* the tour: its cards are the same dark glass as the prompt box and popups (lit rim, soft depth); the ring around each stop glows a little */
.tour-card { padding: 16px 18px 14px; border: 1px solid transparent; border-radius: 20px;
  background: linear-gradient(180deg, #1D1E22, #121316 50%, #131417) padding-box, linear-gradient(180deg, #55575C, #232428 50%, #3C3D42) border-box;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.95), 0 2px 8px rgba(0,0,0,.4); }
.tour-card h3 { font: 600 15.5px/1.3 var(--sans); letter-spacing: -.01em; }
.tour-card .tour-n { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tour-card > p { margin-top: 6px; }
.tour-nav { margin-top: 14px; }
.tour-nav .btn { height: 32px; border-radius: 10px !important; }
.tour-img { border-radius: 12px; border: 1px solid rgba(255,255,255,.08); }
.tour-spot { box-shadow: 0 0 0 9999px rgba(6,6,8,.62), 0 0 0 1px rgba(255,255,255,.55), 0 0 22px 2px rgba(255,255,255,.12); }
.tour-dim { background: rgba(6,6,8,.62); }

/* phones: thumbnails work there, Studio doesn't, so Thumbnails comes first (for accounts with a plan) */
@container main (max-width: 639px) { .stats.two.paid .st-build { order: 2; } }

/* review fixes 2026-11-28 */
/* one close button everywhere: the Account popup's dark circle */
dialog.mini .pop-x, dialog.pop .x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(40,39,37,.92); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 6px 18px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.mini .pop-x:hover, dialog.pop .x:hover { background: #3A3936; color: #fff; }
/* the install guide: as wide as its steps, the Plugins-tab shot at its real size, and its X stays put while the steps scroll */
dialog.mini.guide { width: min(600px, 100vw - 32px); }
.guide .steps .step-shot.tabs { max-width: none; }
dialog.mini.guide .pop-x { position: sticky; top: 0; margin: 0 0 -34px auto; z-index: 2; }
@media (max-width: 600px) { dialog.mini.guide .pop-x { margin-right: -14px; } }
/* sign-up: the birth year looks like the other fields */
body.page:not(.shell) .auth-page .auth select, .auth-page .auth select { background-color: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); border-radius: 10px; }
/* the plans' Get buttons line up */
.tier .btn { min-width: 92px; }
/* phones: the landing feature cards don't need the desktop row's gap; Build's chat lines up with its top bar; the connection chip keeps its word */
@media (max-width: 640px) { .feat-cell h3 { margin-top: 16px; } #connText { position: static; width: auto; height: auto; overflow: visible; clip-path: none; } }
@media (max-width: 520px) { .build-page #log, .build-page #cslotView { padding-inline: 0; } }
#sub { text-wrap: balance; }
/* Account: "Member since" always on its own line (it was a lowercase tail after the email on desktop) */
.acct-head .since-sep { display: none; } .acct-head .since { display: block; }

/* the unsubscribe page: one centred message */
body.unsub main { max-width: 460px; margin: 18vh auto 0; padding: 0 20px; text-align: center; }
body.unsub h1 { font: 600 28px/1.25 var(--sans); }
body.unsub p { margin: 12px 0 24px; color: var(--muted); }
#mdlg select, #mdlg input, #mdlg textarea { width: 100%; box-sizing: border-box; }
#mdlg select { height: 44px; padding: 0 40px 0 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; color: #fff; font: 15px var(--sans); cursor: pointer; -webkit-appearance: none; appearance: none;
  background: rgba(0,0,0,.28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23A9A59F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 14px center; }
#mdlg select:focus { outline: none; border-color: #6E6A64; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
#mdlg select option { background: #161514; color: #fff; }
#mdlg textarea { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.09); border-radius: 12px; }
#mdlg textarea { resize: vertical; min-height: 140px; }
#mdlg .m-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
/* sign-up: a required field left empty says so in red under itself */
.auth .req { margin: 6px 0 0; color: var(--fg); font-weight: 500; font-size: 13px; line-height: 1.4; }
.auth-page select[aria-invalid="true"] { border-color: rgba(255,255,255,.6); }
#more .btn.primary { margin-top: 22px; }   /* sign-up step 2's Continue */
/* sign-up and the welcome step: the card keeps its top edge (only the bottom moves as content changes), the errors line up */
body.on-signup .auth-stage { place-items: start center; padding-top: clamp(96px, 14vh, 150px); min-height: 100svh; }   /* a full screen tall: the footer stays below the fold on the shorter step 2 too */
#more > label:first-child { margin-top: 24px; }
#accept[aria-invalid="true"] { outline: 1px solid rgba(255,255,255,.6); outline-offset: 1px; }
.welcome-page .top-av { display: none; }
[title="Tap to try again"] { cursor: pointer; }   /* a Studio code that didn't load (common.js liveCode) */   /* /account would only send them back here */
#acceptReq { padding-left: 26px; }
.welcome-page #out { display: flex; justify-content: center; gap: 22px; margin-top: 20px; }
.welcome-page #out .linkish { color: rgba(255,255,255,.55); text-decoration: none; }
.welcome-page #out .linkish:hover { color: #fff; }
/* the install guide's drawings of Studio say so, so nobody tries to click them on the website */
.connect-mock, .allow-mock { cursor: default; user-select: none; }
.connect-mock::before, .allow-mock::before { content: "In Roblox Studio"; display: block; margin-bottom: 10px; font: 500 11.5px/1 var(--sans); color: rgba(255,255,255,.45); }
.m.notice .m-act { display: block; margin-top: 10px; }   /* a notice's one action, e.g. How to install */
.m.notice .m-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }   /* out of credits: Upgrade and Buy credits */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button.b-chip { cursor: pointer; } button.b-chip:hover { filter: brightness(1.15); color: #fff; }
button.b-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* phones: the chats pill keeps its icon and word, the status chips sit beside it (Upgrade is in the credits chip's Account popup), and the
   narrowest phones put the chips on a second row instead of over the pill */
@media (max-width: 640px) {
  .build-page .b-top { flex-wrap: wrap; row-gap: 8px; }
  .build-page .b-chats { flex: none; }
  .build-page .b-status { flex: 0 1 auto; min-width: 0; }
  .build-page .b-status .stat-links { display: none !important; }
}
/* dashboard setup checklist (a new account's first thing): the install guide's four steps in a card, ticking off as they're done */
.setup-card { margin: 0 0 12px; padding: 24px 26px; border-radius: 16px; background: var(--card); }
.setup-top { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.setup-top h2 { margin: 0; font: 500 22px/1.25 var(--sans); letter-spacing: -.01em; color: #fff; }
.setup-top p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; text-wrap: pretty; }
.setup-top .setup-st { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); color: var(--muted); font-size: 14px; white-space: nowrap; }
.setup-st .dot { animation: pulse 1.6s ease-in-out infinite; }
.setup-card.done.on .setup-st { color: #fff; }
.setup-card.done.on .setup-st .dot { animation: none; width: 16px; height: 16px; box-shadow: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230F0E0D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.setup-card .steps.rows { margin-top: 12px; border: 0; border-radius: 0; }
.setup-card .steps.rows li.row { padding-block: 20px; }
.setup-card .steps.rows li.row + li.row { border-top: 1px solid rgba(255,255,255,.06) !important; }
.setup-card .steps.rows li.row::before { top: 18px; }
.setup-card .connect-mock { display: none; }   /* the step's text says where the code goes; the popup keeps the drawing */
.setup-card .step-shot { width: 240px; }
@media (min-width: 960px) {
  .setup-card .steps.rows li.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px; align-items: start; }
  .setup-card .row > div:first-child { max-width: 54ch; }
  .setup-card .row .ctl { margin-top: 0; }
}
.setup-card .steps.rows li.row.done::before { content: ''; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230F0E0D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.setup-card.done .steps.rows { display: none; }
.setup-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.setup-card.done .setup-foot { margin-top: 20px; padding-top: 0; border-top: 0; }
.setup-foot .linkish { color: var(--muted); font-size: 15px; text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); text-underline-offset: 3px; }
.setup-foot .linkish:hover { color: #fff; text-decoration-color: currentColor; }
@media (max-width: 600px) {
  .setup-card { padding: 22px 18px 18px; }
  .setup-top { gap: 12px; }
  .setup-top .setup-st { order: -1; padding: 6px 12px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .setup-st .dot { animation: none; } }
