/* VelvaPod workspace (index.html at "/"): the tool itself on a cinematic slideshow. Deep ink with an ember undertone,
   glass panels on 1px gradient hairlines (lit from the top left, warm at the bottom right), warm white type, and one
   hot accent (coral to orange to gold, like low sun through a lens) kept for the main action, active states, focus
   rings and the hero's light. Radii: 8 / 12 / 16 / 20 / 24 / pill.
   Type: Playfair Display (a high-contrast display serif, its italic for the one accent phrase of a headline) over Geist
   (the text and UI face, tabular figures for every number). Both OFL, self-hosted in static/fonts (OFL.txt), each in
   Latin, Latin Extended and Vietnamese subsets; code alone uses the system monospace. */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-display-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-display-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-display-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-display-italic-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-display-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-display-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-vietnamese.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/geist-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  /* a deep blue-black ground and cool ink. --accent is the cool highlight (hovers, rings, selections, links); the warm
     gradient (--warm, --a1..--a3, --grad) is rare: the main CTA, the active tab's mark, cost and points figures, focus */
  --bg: #010204; --bg-2: #04060a; --panel: rgb(8 10 16 / .74); --panel-solid: #06080d; --panel-2: #0e121a; --well: #000103;
  --glass: rgb(3 5 9 / .6);
  --bg-rgb: 1 2 4; --ink-rgb: 220 230 250; --accent-rgb: 150 178 240; --warm-rgb: 255 140 62;
  --line: rgb(var(--ink-rgb) / .08); --line-2: rgb(var(--ink-rgb) / .15);
  --ink: #edf1f9; --ink-2: #c0c9da; --muted: #8a94a8; --accent: #a9bdf0; --warm: #ffb36e; --accent-ink: #1c0d04; --cool-ink: #0a1124;
  --a1: #ff4d3d; --a2: #ff8a2b; --a3: #ffc94d; --grad: linear-gradient(115deg, var(--a1) 0%, var(--a2) 52%, var(--a3) 100%);
  --cool: linear-gradient(115deg, #7091ff 0%, #a9c0ff 52%, #e9f0ff 100%);
  --action: #ff9a4a; --action-hi: #ffb877; --tint: rgb(var(--accent-rgb) / .1); --tint-2: rgb(var(--accent-rgb) / .2);
  --warn: #f2d47e; --bad: #ff8f8f; --good: #9fdcae;
  --r: 20px; --r-sm: 12px; --r-btn: 14px;
  /* the 1px hairline every panel wears: lit at the top left, a cool blue at the bottom right */
  --hair: linear-gradient(155deg, rgb(var(--ink-rgb) / .22), rgb(var(--ink-rgb) / .06) 32%, rgb(var(--ink-rgb) / .04) 64%, rgb(var(--accent-rgb) / .26));
  --glow: 0 14px 44px -16px rgb(var(--accent-rgb) / .45), 0 0 0 1px rgb(214 226 255 / .12);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  /* the type scale (px): 11.5 / 12.5 / 13.5 / 15 / 17 / 20 / 24 / 28-40 / 36-60 / 40-92 */
  --t-xs: 11.5px; --t-sm: 12.5px; --t-ui: 13.5px; --t-base: 15px; --t-md: 17px; --t-lg: 20px; --t-xl: 24px;
  --t-2xl: clamp(28px, 3vw, 40px); --t-3xl: clamp(36px, 4.6vw, 60px); --t-hero: clamp(40px, 6.1vw, 92px);
  /* buttons, one system. Lit = the accent under a top gloss and a bottom shade; glass = a smoked fill. Both wear a rim
     that catches light (an inset ring and a brighter top edge), a soft shadow, a light sweep on hover, a sink on press */
  --b-h: 44px; --b-h-sm: 36px; --b-h-lg: 52px; --b-r: 14px;
  --b-lit: linear-gradient(180deg, rgb(255 255 255 / .3), rgb(255 255 255 / .05) 46%, rgb(255 255 255 / 0) 54%, rgb(110 26 0 / .2)), var(--grad);
  --b-lit-sh: inset 0 1px 0 rgb(255 255 255 / .62), inset 0 -1px 0 rgb(110 26 0 / .38), inset 0 0 0 1px rgb(255 224 190 / .3), 0 1px 1px rgb(40 8 0 / .45), 0 2px 8px -2px rgb(255 110 50 / .45), 0 12px 30px -12px rgb(255 96 40 / .8);
  --b-lit-sh-hi: inset 0 1px 0 rgb(255 255 255 / .7), inset 0 -1px 0 rgb(110 26 0 / .38), inset 0 0 0 1px rgb(255 232 205 / .45), 0 1px 1px rgb(40 8 0 / .45), 0 4px 14px -2px rgb(255 120 55 / .55), 0 18px 44px -12px rgb(255 96 40 / .95);
  --b-lit-sh-down: inset 0 1px 2px rgb(110 26 0 / .35), inset 0 -1px 0 rgb(255 255 255 / .2), inset 0 0 0 1px rgb(255 224 190 / .22), 0 1px 1px rgb(40 8 0 / .45), 0 4px 12px -6px rgb(255 96 40 / .7);
  --b-glass: linear-gradient(180deg, rgb(var(--ink-rgb) / .12), rgb(var(--ink-rgb) / .035) 60%, rgb(var(--ink-rgb) / .05));
  --b-glass-sh: inset 0 1px 0 rgb(220 232 255 / .16), inset 0 -1px 0 rgb(0 0 0 / .28), inset 0 0 0 1px rgb(var(--ink-rgb) / .13), 0 1px 1px rgb(0 0 0 / .4), 0 8px 22px -14px rgb(0 0 0 / .9);
  --b-glass-sh-hi: inset 0 1px 0 rgb(220 232 255 / .26), inset 0 -1px 0 rgb(0 0 0 / .28), inset 0 0 0 1px rgb(var(--accent-rgb) / .62), 0 1px 1px rgb(0 0 0 / .4), 0 0 18px -6px rgb(var(--accent-rgb) / .55), 0 12px 30px -12px rgb(var(--accent-rgb) / .6);
  --b-glass-sh-down: inset 0 1px 3px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(var(--accent-rgb) / .4), 0 1px 0 rgb(220 232 255 / .06);
  --b-on: linear-gradient(180deg, rgb(200 216 255 / .22), rgb(140 170 240 / .09) 55%, rgb(140 170 240 / .14));
  --b-on-sh: inset 0 1px 0 rgb(232 240 255 / .34), inset 0 -1px 0 rgb(0 8 30 / .35), inset 0 0 0 1px rgb(var(--accent-rgb) / .5), 0 1px 1px rgb(0 0 0 / .4), 0 6px 20px -8px rgb(var(--accent-rgb) / .45);
  /* a cool lit fill (a pearl, not the accent): a switch that is on, the account initial, a download */
  --b-cool: linear-gradient(180deg, rgb(255 255 255 / .34), rgb(255 255 255 / .06) 46%, rgb(255 255 255 / 0) 54%, rgb(0 10 40 / .16)), var(--cool);
  --b-cool-sh: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -1px 0 rgb(10 24 70 / .35), inset 0 0 0 1px rgb(220 232 255 / .35), 0 1px 1px rgb(0 4 20 / .5), 0 10px 26px -12px rgb(110 150 255 / .6);
  --sweep: linear-gradient(105deg, transparent 30%, rgb(240 246 255 / .16) 40%, rgb(240 246 255 / .55) 47%, rgb(240 246 255 / .16) 54%, transparent 64%);
  --bar: 64px; --wrap: 1600px; --pad: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (max-width: 1099px) { :root { --bar: 108px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 12px); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 400 var(--t-base)/1.5 var(--font); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, video, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; font-variant-numeric: lining-nums; letter-spacing: -0.012em; line-height: 1.12; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: var(--t-lg); letter-spacing: -0.006em; }
/* the one accent phrase of a display headline: italic, lit with the accent and a slow light running through it */
:is(h1, h2) em { font-style: italic; font-weight: 500; padding: 0 .08em 0 .02em; margin-right: -.06em; background: linear-gradient(100deg, #f3f6ff 0%, #b5c7f4 26%, #ffd7a6 50%, #b5c7f4 74%, #f3f6ff 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; animation: em-light 9s linear infinite; }
@keyframes em-light { to { background-position: -200% 0; } }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { padding: 1px 6px; border-radius: 6px; background: rgb(var(--ink-rgb) / .07); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--a3); outline-offset: 3px; }
::selection { background: rgb(var(--accent-rgb) / .38); color: #fff; }
svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { flex: none; width: 18px; height: 18px; }
div.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
main { outline: none; }

/* the ground: flat near-black, no effects (owner, 03/12) */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--bg); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------------------------------------------------------------- admin.html shell (admin.html and admin.css sit on this file) */
:root { --top: 56px; --tabs: calc(64px + env(safe-area-inset-bottom)); }
.ap { min-height: 100dvh; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.025em; text-decoration: none; }
.logo__mark { flex: none; display: block; width: 26px; height: 26px; border-radius: 8px; background: url("/static/favicon.svg?v=20261203i") center / contain no-repeat; }
svg.logo__mark { background: none; transition: transform .35s var(--ease); }
.logo:hover svg.logo__mark { transform: translateY(-1px) scale(1.05); }
.side { display: none; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: rgb(var(--bg-rgb) / .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__plan { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 99px; background: rgb(var(--ink-rgb) / .06); border: 1px solid var(--line); font-size: 13px; text-decoration: none; white-space: nowrap; max-width: 62vw; overflow: hidden; text-overflow: ellipsis; }
.top__plan i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.top__plan.is-on i { background: var(--accent); box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / .6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgb(var(--accent-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0); } }
.main { width: 100%; padding: 20px 16px calc(var(--tabs) + 28px); max-width: 1360px; margin: 0 auto; outline: none; }
.tabs-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--tabs); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: rgb(var(--bg-rgb) / .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabs-bar a { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
.tabs-bar a svg { width: 22px; height: 22px; transition: transform .25s var(--ease); }
.tabs-bar a.is-on { color: var(--accent); }
.tabs-bar a.is-on svg { transform: translateY(-2px); }
.ap[data-auth="out"] :is(.tabs-bar, .top__plan, .side__nav, .plan-box) { display: none; }
.ap[data-auth="out"] .main { padding-bottom: 32px; }
@media (min-width: 960px) {
  .ap { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .top, .tabs-bar { display: none; }
  .side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100dvh; padding: 24px 14px; border-right: 1px solid var(--line); background: rgb(var(--bg-rgb) / .6); backdrop-filter: blur(12px); }
  .side .logo { padding: 0 10px; }
  .side__nav { display: grid; gap: 2px; }
  .side__nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
  .side__nav a svg { width: 20px; height: 20px; }
  .side__nav a:hover { background: rgb(var(--ink-rgb) / .05); color: var(--ink); }
  .side__nav a.is-on { background: var(--tint); color: var(--ink); }
  .side__nav a.is-on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
  .side__nav a.is-on svg { color: var(--accent); }
  .plan-box { margin-top: auto; display: grid; gap: 2px; padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); text-decoration: none; transition: border-color .2s; }
  .plan-box:hover { border-color: var(--line-2); }
  .plan-box__label { font-size: 12px; color: var(--muted); }
  .plan-box [data-plan-left] { font: 500 13px var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .plan-box.is-off [data-plan-left] { font-family: var(--font); color: var(--warn); }
  .main { padding: 40px 48px 64px; }
  .ap[data-auth="out"] { grid-template-columns: minmax(0, 1fr); }
  .ap[data-auth="out"] .side { display: none; }
}
.ap[data-auth="loading"] .main > .view { display: none; }

/* views enter with a short rise */
.view { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.view__head { display: grid; gap: 6px; margin-bottom: 20px; }
.view__head p { max-width: 68ch; }
@media (max-width: 959px) { .ap ~ .toasts { bottom: calc(var(--tabs) + 16px); } }

/* ---------------------------------------------------------------- the bar: logo, tools, balance */
:is(.bar, .foot) .logo { font-weight: 650; letter-spacing: -0.03em; }
:is(.bar, .foot) .logo__mark { width: 24px; height: 24px; }
.bar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; height: var(--bar); padding: 0 max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))); background: rgb(var(--bg-rgb) / .72); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-bottom: 1px solid var(--line); }
/* the tool tabs: icons in a recessed track; the tab in use is lit and its word grows out of it (Clone keeps its word:
   the icon alone is not clear). Each tab's word is also its aria-label and its tooltip */
.tools { position: relative; justify-self: center; display: flex; gap: 2px; padding: 4px; border-radius: 17px; background: linear-gradient(180deg, rgb(0 0 0 / .34), rgb(0 0 0 / .16)); box-shadow: inset 0 1px 2px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(var(--ink-rgb) / .07), 0 1px 0 rgb(220 232 255 / .06); }
.tools a { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 10px; border-radius: 13px; color: var(--ink-2); font: 500 14px/1 var(--font); letter-spacing: .002em; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: background-color .2s, color .2s, box-shadow .25s var(--ease), transform .18s var(--ease); }
.tools__l { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.tools a:is(.is-on, .is-word) .tools__l { max-width: 7.5em; margin-left: 8px; opacity: 1; }
.tools a svg { width: 17px; height: 17px; transition: transform .3s var(--ease), color .2s, filter .25s; }
.tools a:hover { color: var(--ink); background-color: rgb(var(--ink-rgb) / .06); }
.tools a:hover svg { transform: translateY(-1px) scale(1.06); }
.tools a:active { transform: translateY(1px); }
.tools a.is-on { background: var(--b-on); color: #fff; font-weight: 600; box-shadow: var(--b-on-sh); }
.tools a.is-on svg { color: var(--a3); filter: drop-shadow(0 0 6px rgb(var(--warm-rgb) / .7)); }
.tools a.is-on::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -5px; height: 2px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 10px 1px rgb(var(--warm-rgb) / .7); }
.tools__price { display: none !important; }
.bar__end { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.bar__end .btn--sm { height: 38px; }
.bar__link { color: var(--ink-2); font-size: 14px; font-weight: 500; letter-spacing: .002em; text-decoration: none; padding: 0 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease), color .2s; }
.bar__link:hover, .bar__link.is-on { color: var(--ink); background-size: 100% 1px; }
body[data-auth="out"] .only-in, body[data-auth="in"] .only-out, body[data-auth="loading"] :is(.only-in, .only-out) { display: none !important; }
@media (max-width: 1099px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 56px 48px; row-gap: 0; padding: 0; }
  .bar .logo { padding-left: var(--pad); }
  .bar__end { padding-right: var(--pad); }
  .bar__link { display: none; }
  .tools { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; padding: 0 var(--pad) 8px; gap: 6px; border-radius: 0; background: none; box-shadow: none; }
  .tools a { height: 38px; padding: 0 10.5px; border-radius: 99px; background: var(--b-glass); box-shadow: var(--b-glass-sh); }
  .tools a.is-on { background: var(--b-on); box-shadow: var(--b-on-sh); }
  .tools a.is-on::after { display: none; }
  .tools__price { display: inline-flex !important; }
}
/* a phone: every tab on screen at once, 44px tall; the idle ones share the row, the active one takes its word's width */
@media (max-width: 719px) {
  :root { --bar: 110px; }
  .bar { grid-template-rows: 56px 54px; }
  .tools { display: flex; gap: 6px; padding: 2px var(--pad) 8px; }
  .tools a { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 4px; border-radius: 14px; font-size: 13.5px; }
  .tools a.is-on { flex: 0 0 auto; padding: 0 13px; }
  .tools a:not(.is-on) .tools__l { max-width: 0; margin-left: 0; opacity: 0; }
  .tools a svg { width: 20px; height: 20px; }
}
@media (max-width: 420px) { .bar__end .btn--ghost.only-out { display: none; } .logo__word { font-size: 17px; } }

/* the balance pill; the cost of a request rises off it */
.pts { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 13px; border-radius: 99px; border: 0; background: linear-gradient(180deg, rgb(var(--warm-rgb) / .15), rgb(var(--warm-rgb) / .05)); color: var(--warm); font: 600 14px/1 var(--font); letter-spacing: -0.005em; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; box-shadow: inset 0 1px 0 rgb(255 226 196 / .2), inset 0 0 0 1px rgb(var(--warm-rgb) / .38), 0 1px 1px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(var(--warm-rgb) / .6); transition: background .2s, transform .18s var(--ease), box-shadow .25s var(--ease); }
.pts i { width: 8px; height: 8px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 0 rgb(var(--warm-rgb) / .6); animation: ping-warm 2.4s infinite; }
@keyframes ping-warm { 70% { box-shadow: 0 0 0 8px rgb(var(--warm-rgb) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--warm-rgb) / 0); } }
.pts:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 226 196 / .3), inset 0 0 0 1px rgb(var(--warm-rgb) / .65), 0 1px 1px rgb(0 0 0 / .4), 0 10px 30px -10px rgb(var(--warm-rgb) / .8); }
.pts:active { transform: translateY(1px); }
.pts.is-off { color: var(--warn); background: linear-gradient(180deg, rgb(242 212 126 / .1), rgb(242 212 126 / .04)); box-shadow: inset 0 1px 0 rgb(255 240 200 / .14), inset 0 0 0 1px rgb(242 212 126 / .35); }
.pts.is-off i { background: var(--warn); animation: none; }
.pts.is-charged::after { content: attr(data-delta); position: absolute; right: 12px; top: -4px; color: var(--warm); font-size: 13px; pointer-events: none; animation: pts-rise 1.4s var(--ease) both; }
@keyframes pts-rise { from { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-18px); } }
.acct { position: relative; }
.acct__btn { display: block; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 0; background: var(--panel-2); cursor: pointer; box-shadow: 0 0 0 1.5px rgb(var(--ink-rgb) / .2), 0 6px 18px -8px rgb(0 0 0 / .8); transition: transform .18s var(--ease), box-shadow .25s var(--ease); }
.acct__btn:hover, .acct__btn[aria-expanded="true"] { box-shadow: 0 0 0 1.5px rgb(var(--accent-rgb) / .75), 0 0 0 5px rgb(var(--accent-rgb) / .14); }
.acct__btn:active { transform: translateY(1px) scale(.97); }
/* an avatar (js/avatar.js draws it from the account's seed); a click on one with a pen opens the picker */
.ava { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ava-edit { position: relative; flex: none; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%; background: var(--panel-2); cursor: pointer; box-shadow: 0 0 0 1.5px rgb(var(--ink-rgb) / .18), 0 18px 40px -18px rgb(0 0 0 / .9); transition: box-shadow .25s var(--ease), transform .2s var(--ease); }
.ava-edit:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px rgb(var(--accent-rgb) / .8), 0 0 30px -6px rgb(var(--accent-rgb) / .6); }
.ava-edit__pen { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--panel-2); color: var(--ink); box-shadow: 0 0 0 2px var(--bg), inset 0 0 0 1px rgb(var(--ink-rgb) / .14); }
.ava-edit__pen .ic { width: 13px; height: 13px; }
.ava-edit--sm { width: 44px; height: 44px; }
.ava-edit--sm .ava-edit__pen { width: 20px; height: 20px; right: -3px; bottom: -3px; box-shadow: 0 0 0 2px var(--panel-solid), inset 0 0 0 1px rgb(var(--ink-rgb) / .14); }
.ava-edit--sm .ava-edit__pen .ic { width: 11px; height: 11px; }
.page__head--me { display: flex; align-items: center; gap: 20px; }
.page__head--me > div { display: grid; gap: 6px; min-width: 0; }
.avapick { display: grid; gap: 18px; width: min(78vw, 420px); }
.avapick__head { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding-right: 48px; }
.avapick__head h2 { font-size: var(--t-xl); }
.avas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 3vw, 16px); }
.avas button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--panel-2); cursor: pointer; box-shadow: 0 0 0 1.5px rgb(var(--ink-rgb) / .1); transition: transform .22s var(--ease), box-shadow .22s var(--ease), opacity .2s; animation: rise .35s var(--ease) both; }
.avas button img { width: 100%; height: 100%; border-radius: 50%; }
.avas button:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 0 0 2px rgb(var(--accent-rgb) / .85), 0 14px 30px -12px rgb(var(--accent-rgb) / .7); }
.avas button.is-on { box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px rgb(var(--accent-rgb) / .3); }
.avas button.is-busy { opacity: .5; pointer-events: none; }
.acct__menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 280px; display: grid; padding: 8px; border-radius: 18px; border: 1px solid transparent; background: var(--panel-solid); box-shadow: 0 30px 70px -20px rgb(0 0 0 / .85), 0 0 50px -30px rgb(var(--accent-rgb) / .6); animation: rise .2s var(--ease); }
.acct__who { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.acct__who > div { display: grid; gap: 2px; min-width: 0; }
.acct__menu .acct__who .ava-edit { height: 44px; padding: 0; border-radius: 50%; background: var(--panel-2); }
.acct__who b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__who span { font-size: 13px; color: var(--muted); }
.acct__menu :is(a, button) { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: none; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.acct__menu :is(a, button) .ic { color: var(--muted); transition: color .15s, transform .2s var(--ease); }
.acct__menu :is(a, button):hover { background: rgb(var(--ink-rgb) / .06); }
.acct__menu a:hover .ic { color: var(--accent); transform: translateX(1px); }
.acct__menu [data-logout] .ic { color: currentColor; }
.acct__menu [data-logout] { color: var(--bad); }

/* ---------------------------------------------------------------- parts */
.card { position: relative; background: var(--panel); border: 1px solid transparent; border-radius: var(--r); padding: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 60px -36px rgb(0 0 0 / .9); }
/* the hairline: a 1px gradient ring drawn over the panel's own (transparent) border */
:is(.card, .plan, .acct__menu, .dlg__box, .viewer__box, .auth, .chat)::after { content: ""; position: absolute; inset: -1px; z-index: 3; border-radius: inherit; padding: 1px; background: var(--hair); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; transition: opacity .25s; }
:is(.viewer__box, .auth, .chat)::after { inset: 0; } /* these clip their content: the ring sits just inside */
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--b-h); padding: 0 18px; border-radius: var(--b-r); border: 0; background: var(--b-glass); color: var(--ink); box-shadow: var(--b-glass-sh); font: 600 var(--t-base)/1 var(--font); letter-spacing: -0.008em; text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .18s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, filter .2s, opacity .2s; }
/* the light sweep: a soft diagonal band that crosses once on hover and keeps crossing while busy */
:is(.btn, .go)::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--sweep) 160% 0 / 260% 100% no-repeat; opacity: 0; pointer-events: none; }
:is(.btn, .go):hover:not(:disabled)::before { opacity: 1; background-position: -60% 0; transition: background-position .9s var(--ease), opacity .15s; }
:is(.btn, .go).is-busy::before { opacity: 1; animation: sweep 1.3s linear infinite; }
@keyframes sweep { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.btn svg { width: 18px; height: 18px; margin-left: -2px; } /* an icon reads as part of the label: tuck it toward the edge */
.btn--sm svg { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { transform: translateY(-1px); background-color: rgb(var(--accent-rgb) / .1); box-shadow: var(--b-glass-sh-hi); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: var(--b-glass-sh-down); transition-duration: .06s; }
.btn:disabled { opacity: .45; filter: saturate(.35); cursor: not-allowed; transform: none; box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .1); }
.btn--primary { background: var(--b-lit); color: var(--accent-ink); font-weight: 650; letter-spacing: -0.004em; text-shadow: 0 1px 0 rgb(255 236 214 / .35); box-shadow: var(--b-lit-sh); }
.btn--primary:hover:not(:disabled) { filter: brightness(1.08) saturate(1.08); box-shadow: var(--b-lit-sh-hi); }
.btn--primary:active:not(:disabled) { filter: brightness(.97); box-shadow: var(--b-lit-sh-down); }
.btn--primary:disabled { box-shadow: inset 0 1px 0 rgb(255 255 255 / .3); }
.btn--ghost { backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.btn--danger { background: linear-gradient(180deg, rgb(255 255 255 / .22), transparent 50%), var(--bad); color: #2a0707; box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 0 0 1px rgb(255 200 200 / .3), 0 10px 26px -12px rgb(255 100 100 / .7); }
.btn--sm { height: var(--b-h-sm); padding: 0 14px; font-size: 14px; }
.btn--lg { height: var(--b-h-lg); padding: 0 26px; font-size: 16px; }
.btn--wide { width: 100%; }
.btn--icon { width: var(--b-h); padding: 0; }
.btn--sm.btn--icon { width: var(--b-h-sm); }
.btn--lg.btn--icon { width: var(--b-h-lg); }
.btn--icon svg { margin: 0; }

/* the tooltip of an icon-only control: data-tip holds its word (as its aria-label does); on hover after a beat, and on
   keyboard focus. Only where there is a mouse: a phone has no hover (and the bubbles then add nothing to the layout) */
:where([data-tip]) { position: relative; }
@media (hover: hover) {
  :where([data-tip]:not(.tools a, .is-busy))::after, .tools a::before { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 10px); z-index: 60; padding: 7px 10px; border-radius: 9px; background: linear-gradient(180deg, rgb(32 40 58 / .97), rgb(14 18 28 / .97)); box-shadow: inset 0 1px 0 rgb(220 232 255 / .14), 0 0 0 1px rgb(var(--ink-rgb) / .12), 0 12px 28px -10px rgb(0 0 0 / .85); color: var(--ink); font: 500 12px/1 var(--font); letter-spacing: .01em; white-space: nowrap; text-shadow: none; text-transform: none; pointer-events: none; opacity: 0; translate: -50% -4px; scale: .96; transition: opacity .15s, translate .22s var(--ease), scale .22s var(--ease); }
  :where([data-tip]:not(.tools a, .is-busy, [aria-expanded="true"])):is(:hover, :focus-visible, :has(> input:focus-visible))::after,
  .tools a:not(.is-on):is(:hover, :focus-visible)::before { opacity: 1; translate: -50% 0; scale: 1; transition-delay: .18s; }
  .tools a::before { top: calc(100% + 12px); }
  .reel-btn::after { top: auto; bottom: calc(100% + 10px); translate: -50% 4px; }
}
.btn__n, [data-signup-points] { font-variant-numeric: tabular-nums; }
.btn.is-busy { color: transparent !important; text-shadow: none; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; left: calc(50% - 9px); top: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 90deg, transparent 10%, var(--accent-ink)); -webkit-mask: radial-gradient(circle, transparent 6.5px, #000 7px); mask: radial-gradient(circle, transparent 6.5px, #000 7px); animation: spin .8s linear infinite; }
.btn--ghost.is-busy::after { background: conic-gradient(from 90deg, transparent 10%, var(--accent)); }
.spin { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--accent); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease); }
.link:hover { background-size: 100% 1px; }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.field input, textarea, .field select, .voices__filter :is(input, select) { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgb(0 0 0 / .35); color: var(--ink); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, textarea:focus, .field select:focus, .voices__filter :is(input, select):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .14), 0 0 24px -8px rgb(var(--accent-rgb) / .6); }
textarea { resize: vertical; line-height: 1.4; }
.form__err { color: var(--bad); font-size: 14px; }
.form__err:empty { display: none; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; border-radius: 16px; background: linear-gradient(180deg, rgb(0 0 0 / .42), rgb(0 0 0 / .26)); box-shadow: inset 0 1px 2px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(var(--ink-rgb) / .07), 0 1px 0 rgb(220 232 255 / .06); }
.seg button { min-height: 38px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-weight: 500; cursor: pointer; transition: background .2s, color .2s, box-shadow .25s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--b-on); color: #fff; font-weight: 600; box-shadow: var(--b-on-sh); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.seg button:disabled:hover { color: var(--muted); }
.seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg--3 button { line-height: 1.1; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; border: 0; background: var(--b-glass); color: var(--ink-2); box-shadow: var(--b-glass-sh); font: 500 var(--t-ui)/1 var(--font); letter-spacing: .004em; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: background-color .2s, color .2s, transform .18s var(--ease), box-shadow .25s var(--ease); }
.chip:hover { color: var(--ink); background-color: rgb(var(--accent-rgb) / .1); transform: translateY(-1px); box-shadow: var(--b-glass-sh-hi); }
.chip:active { transform: translateY(1px); box-shadow: var(--b-glass-sh-down); transition-duration: .06s; }
.chip.is-on { background: var(--b-on); color: #fff; font-weight: 600; box-shadow: var(--b-on-sh); text-shadow: 0 0 12px rgb(var(--accent-rgb) / .6); }
.chip .ar { opacity: .75; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.chip:hover .ar { opacity: 1; }
.chip.is-on .ar { opacity: 1; border-color: #eef3ff; box-shadow: 0 0 8px rgb(var(--accent-rgb) / .8), inset 0 0 4px rgb(var(--accent-rgb) / .5); }
.chips--sm { gap: 8px; }
.chips--sm .chip { height: 32px; padding: 0 12px; font-size: var(--t-sm); gap: 6px; }
.chip--ic { aspect-ratio: 1; justify-content: center; padding: 0 !important; }
.chip--ic .ic { width: 16px; height: 16px; }
/* how many per create: four digits in one recessed track */
.chips--n { flex-wrap: nowrap; gap: 2px; padding: 2px; border-radius: 99px; background: rgb(0 0 0 / .28); box-shadow: inset 0 1px 2px rgb(0 0 0 / .45), inset 0 0 0 1px rgb(var(--ink-rgb) / .08); }
.chips--n .chip { width: 30px; height: 28px; padding: 0; justify-content: center; }
@media (max-width: 719px) { .chips--n { gap: 8px; padding: 3px; } .chips--n .chip { width: 38px; height: 36px; } } /* a thumb's worth apart */
.cmp__opts .chips--n .chip:not(.is-on, :hover) { background: none; box-shadow: none; }
.ar { display: inline-block; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); border: 1.5px solid currentColor; border-radius: 3px; }

.copy { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--b-glass); box-shadow: var(--b-glass-sh); color: var(--ink-2); cursor: pointer; transition: box-shadow .25s var(--ease), color .2s, transform .18s var(--ease); }
.copy:active { transform: translateY(1px); box-shadow: var(--b-glass-sh-down); }
.copy::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E") center / contain no-repeat; }
.copy:hover { color: var(--accent); box-shadow: var(--b-glass-sh-hi); }
.copy.is-done { color: var(--accent); box-shadow: var(--b-on-sh); }
.copy.is-done::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }

.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid rgb(242 212 126 / .4); background: rgb(242 212 126 / .08); color: var(--warn); font-size: 14px; }
.banner { width: calc(100% - 2 * var(--pad)); max-width: calc(var(--wrap) - 2 * var(--pad)); margin: 12px auto; padding: 12px 16px; }
.banner .btn { height: 34px; }

.toasts { position: fixed; z-index: 90; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; background: #111726; border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px rgb(0 0 0 / .75); font-size: 14px; animation: toast .35s var(--ease) both; }
.toast--bad { background: #2a131b; border-color: rgb(255 143 143 / .4); }
.toast--good { background: #12203a; border-color: rgb(var(--accent-rgb) / .5); box-shadow: 0 16px 40px -12px rgb(0 0 0 / .75), 0 0 30px -12px rgb(var(--accent-rgb) / .7); }
.toast.is-out { animation: toast-out .3s ease both; }
@keyframes toast { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

.dlg { padding: 0; border: 0; background: none; color: var(--ink); max-width: min(92vw, 480px); width: 100%; }
.dlg::backdrop, .viewer::backdrop { background: rgb(0 0 0 / .76); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg[open], .viewer[open] { animation: rise .3s var(--ease); }
.dlg__box { position: relative; display: grid; gap: 10px; padding: 26px; border-radius: 22px; border: 1px solid transparent; background: var(--panel-solid); box-shadow: 0 40px 100px -30px rgb(0 0 0 / .9), 0 0 60px -36px rgb(var(--accent-rgb) / .7); }
.dlg__box h2 { font-size: 22px; }
.dlg__acts { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.dlg__x { position: absolute; top: 12px; right: 12px; z-index: 4; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--b-glass), rgb(var(--bg-rgb) / .75); box-shadow: var(--b-glass-sh); color: var(--ink-2); cursor: pointer; transition: box-shadow .25s var(--ease), color .2s, transform .3s var(--ease); }
.dlg__x .ic { width: 18px; height: 18px; }
.dlg__x:hover { color: var(--ink); box-shadow: var(--b-glass-sh-hi); }
.dlg__x:active { transform: scale(.94); }
:is(.dlg__x, .ref__x, .lightbox__x) .ic { transition: transform .3s var(--ease); }
:is(.dlg__x, .ref__x, .lightbox__x):hover .ic { transform: rotate(90deg); }
.keybox { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-sm); background: var(--well); border: 1px solid var(--accent); box-shadow: 0 0 24px -10px rgb(var(--accent-rgb) / .7); }
.keybox code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; color: var(--accent); background: none; padding: 0; }
.warn { padding: 12px 14px; border-radius: var(--r-sm); background: rgb(242 212 126 / .08); border: 1px solid rgb(242 212 126 / .35); color: var(--warn); font-size: 14px; }

/* ---------------------------------------------------------------- the stage: a slideshow of demo stills behind the composer */
.stage { position: relative; display: grid; align-items: center; min-height: 100svh; margin-top: calc(-1 * var(--bar)); overflow: hidden; isolation: isolate; }
.banner:not([hidden]) + .stage { margin-top: 0; }
.stage__reel { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--well); -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
/* each still fades in over the last one and drifts (Ken Burns); js/app.js Reel adds the next one every 6 s */
.stage__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; transform-origin: var(--ko, 55% 45%); animation: kenburns 9s linear both; }
.stage__slide img { width: 100%; height: 100%; object-fit: cover; }
.stage__slide.is-on { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(var(--kx, -1.5%), var(--ky, 1%)); } }
/* the stills of the image, video and clone tools show clean: nothing lies over them (owner, 03/12). Only chat and voice, where long text sits on the picture, dim it */
.stage__shade { position: absolute; inset: 0; transition: background .4s; }
body:is([data-view="chat"], [data-view="giong-noi"]) .stage__shade { background: linear-gradient(180deg, rgb(var(--bg-rgb) / .86), rgb(var(--bg-rgb) / .9) 60%, var(--bg)); }
body:not([data-view="chat"], [data-view="giong-noi"]) .stage__in > .mo-cs__light { display: none; }
.stage.is-still .stage__slide { animation-play-state: paused; }
.reel-btn { position: absolute; right: max(var(--pad), calc((100% - 1180px) / 2)); /* on the edge of .stage__in */ bottom: 26px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 99px; border: 0; background: var(--b-glass), rgb(var(--bg-rgb) / .5); box-shadow: var(--b-glass-sh); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); color: var(--ink-2); font: 500 var(--t-sm)/1 var(--font); letter-spacing: .01em; cursor: pointer; transition: box-shadow .25s var(--ease), color .2s, transform .18s var(--ease); }
.reel-btn .ic { width: 15px; height: 15px; }
.reel-btn[aria-pressed="true"] .reel-btn__pause, .reel-btn[aria-pressed="false"] .reel-btn__play { display: none; }
.reel-btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: var(--b-glass-sh-hi); }
.reel-btn:active { transform: translateY(1px); box-shadow: var(--b-glass-sh-down); }
body:is([data-view="chat"], [data-view="giong-noi"]) .reel-btn { display: none; }

.stage__in { width: 100%; max-width: 1180px; margin: 0 auto; padding: calc(var(--bar) + clamp(28px, 6vh, 96px)) var(--pad) clamp(56px, 8vh, 88px); display: grid; justify-items: center; gap: clamp(18px, 2.6vh, 28px); }
.stage__head { width: 100%; display: grid; justify-items: center; gap: clamp(12px, 1.6vh, 20px); text-align: center; }
.stage__h { max-width: 15ch; font: 600 var(--t-hero)/1.06 var(--display); letter-spacing: -0.022em; text-wrap: balance; text-shadow: 0 1px 2px rgb(0 0 0 / .5), 0 2px 18px rgb(0 0 0 / .55), 0 4px 60px rgb(0 0 0 / .45); }
.stage__h em { filter: drop-shadow(0 1px 2px rgb(0 0 0 / .55)) drop-shadow(0 2px 16px rgb(0 0 0 / .5)); } /* its fill is a clipped gradient: text-shadow would paint over it */
.stage__sub { max-width: 92ch; color: var(--ink-2); font-size: clamp(14px, 1.15vw, 16.5px); font-weight: 450; line-height: 1.45; letter-spacing: .004em; font-variant-numeric: tabular-nums; text-wrap: balance; text-shadow: 0 1px 12px rgb(0 0 0 / .6); }
body:is([data-view="chat"], [data-view="giong-noi"]) .stage__in { padding-top: calc(var(--bar) + 28px); padding-bottom: 40px; }
body:is([data-view="chat"], [data-view="giong-noi"]) .stage__h { font-size: clamp(30px, 3.4vw, 50px); max-width: none; }

/* the composer: a glass panel with the prompt, its options and the create button */
.cmp { width: 100%; max-width: 940px; display: grid; gap: 14px; }
.cmp__box { position: relative; display: grid; gap: 10px; padding: 14px; border-radius: 24px; border: 1px solid rgb(var(--ink-rgb) / .1); background: var(--glass); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 40px 90px -40px rgb(0 0 0 / .9), 0 0 70px -40px rgb(var(--accent-rgb) / .4), inset 0 1px 0 rgb(220 232 255 / .07); transition: border-color .3s, box-shadow .35s; }
/* its rim: coral to gold at two corners, brighter while you write */
.cmp__box::before { content: ""; position: absolute; inset: -1px; z-index: 0; padding: 1px; border-radius: inherit; background: linear-gradient(120deg, rgb(200 216 255 / .7), transparent 30%, transparent 66%, rgb(120 150 240 / .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .6; pointer-events: none; transition: opacity .3s; }
.cmp__box > * { position: relative; }
.cmp__box:focus-within { border-color: rgb(var(--accent-rgb) / .3); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .07), 0 40px 90px -40px rgb(0 0 0 / .9), 0 0 80px -24px rgb(var(--accent-rgb) / .45), 0 18px 60px -30px rgb(var(--warm-rgb) / .35), inset 0 1px 0 rgb(220 232 255 / .08); }
.cmp__box:focus-within::before { opacity: 1; }
.cmp__write { display: flex; align-items: flex-start; gap: 12px; }
.cmp textarea { flex: 1; min-width: 0; min-height: 88px; padding: 10px 4px; border: 0; border-radius: 0; background: none; box-shadow: none !important; font-size: 15px; line-height: 1.5; resize: none; }
/* iOS zooms into a field under 16px on focus */
@media (pointer: coarse) { .cmp textarea { font-size: 16px; } }
.cmp textarea:focus-visible { box-shadow: inset 2px 0 0 var(--accent) !important; }
.cmp textarea::placeholder { color: rgb(var(--ink-rgb) / .44); }
.cmp textarea { caret-color: var(--accent); }
.cmp__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cmp__opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
.cmp__opts .chip:not(.is-on, :hover) { background-color: rgb(0 0 0 / .22); }
.cmp__hint { text-align: center; font-size: 12.5px; color: var(--muted); }
:is(.stage__sub, .cmp__hint, [data-auth-lede]):empty { display: none; }

/* the create button: the accent gradient, a sheen crossing on hover, its price in points beside the label */
.go { position: relative; isolation: isolate; flex: none; display: inline-flex; align-items: center; gap: 10px; height: var(--b-h-lg); padding: 0 6px 0 18px; border: 0; border-radius: 17px; background: var(--b-lit); color: var(--accent-ink); font: 650 16px/1 var(--font); letter-spacing: -0.01em; text-shadow: 0 1px 0 rgb(255 236 214 / .35); white-space: nowrap; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; box-shadow: var(--b-lit-sh), 0 0 46px -16px rgb(var(--warm-rgb) / .75); transition: transform .18s var(--ease), box-shadow .3s var(--ease), filter .2s; }
.go__ic { width: 18px; height: 18px; stroke-width: 2; transition: transform .5s var(--ease); }
.go:hover:not(:disabled) .go__ic { transform: rotate(90deg) scale(1.1); }
.go:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08) saturate(1.08); box-shadow: var(--b-lit-sh-hi), 0 0 64px -14px rgb(var(--warm-rgb) / .9); }
.go:active:not(:disabled) { transform: translateY(1px); filter: brightness(.97); box-shadow: var(--b-lit-sh-down); transition-duration: .06s; }
.go:disabled { cursor: not-allowed; opacity: .5; filter: saturate(.4); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3); }
/* its price: a recessed tag inside the button, the number in tabular figures, the unit quieter */
.go__cost { display: inline-flex; align-items: baseline; gap: 4px; height: 40px; padding: 0 12px; line-height: 40px; border-radius: 12px; background: linear-gradient(180deg, rgb(70 16 0 / .2), rgb(70 16 0 / .1)); box-shadow: inset 0 1px 2px rgb(70 16 0 / .28), inset 0 -1px 0 rgb(255 240 220 / .28); font-size: var(--t-sm); font-weight: 500; letter-spacing: .01em; text-shadow: none; }
.go__cost b { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.go__cost[data-cost-wrap] b { font-size: var(--t-sm); font-weight: 600; letter-spacing: 0; }
.go.is-busy { pointer-events: none; color: transparent; text-shadow: none; }
.go.is-busy .go__cost { opacity: 0; }
.go.is-busy::after { content: ""; position: absolute; left: calc(50% - 10px); top: calc(50% - 10px); width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(from 90deg, transparent 10%, var(--accent-ink)); -webkit-mask: radial-gradient(circle, transparent 7.5px, #000 8px); mask: radial-gradient(circle, transparent 7.5px, #000 8px); animation: spin .8s linear infinite; }
.go.is-reading { pointer-events: none; opacity: .9; padding-right: 22px; }
.go--icon { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 14px; }
.go--icon svg { width: 20px; height: 20px; stroke-width: 2.2; }

/* the file inputs fill their pickers */
.ref__pick input, .subj__pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; appearance: none; -webkit-appearance: none; border: 0; border-radius: inherit; background: none; color: transparent; cursor: pointer; }
:is(.ref__pick, .subj__pick) input::file-selector-button { display: none; }
.ref__pick input:focus-visible { outline: 2px solid var(--a3); outline-offset: 3px; }

/* reference image beside the prompt */
.cmp .ref { flex: none; display: flex; padding-top: 6px; }
.ref__pick { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--ink-2); cursor: pointer; transition: border-color .2s, color .2s, background .2s, box-shadow .2s, transform .15s; }
.ref__pick:hover { border-color: var(--accent); color: var(--accent); background: var(--tint); box-shadow: 0 0 20px -8px rgb(var(--accent-rgb) / .7); transform: translateY(-1px); }
.ref__pick svg { width: 20px; height: 20px; }
.ref.has-ref .ref__pick { display: none; }
.ref__preview { position: relative; }
.ref__preview img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); }
.ref__x { position: absolute; top: -8px; right: -8px; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; box-shadow: 0 4px 12px rgb(0 0 0 / .5); transition: transform .2s var(--ease), background .2s; }
.ref__x .ic { width: 14px; height: 14px; stroke-width: 2.25; }
.ref__x:hover { background: var(--accent); }

/* clone video: the sample, the subject */
.clone { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; }
.drop { position: relative; display: grid; min-height: 176px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: rgb(0 0 0 / .26); transition: border-color .2s, background .2s; }
.drop.is-over, .drop:hover { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 40px -18px rgb(var(--accent-rgb) / .7); }
.drop.has-file { border-style: solid; border-color: var(--line-2); background: rgb(0 0 0 / .32); }
.drop__in { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop__in:focus-visible + .drop__empty { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.drop__empty { display: grid; place-items: center; align-content: center; gap: 6px; padding: 20px; text-align: center; cursor: pointer; }
.drop__empty svg { width: 36px; height: 36px; color: var(--accent); margin-bottom: 4px; filter: drop-shadow(0 0 10px rgb(var(--accent-rgb) / .5)); transition: transform .25s var(--ease); }
.drop:hover .drop__empty svg { transform: translateY(-3px); }
.drop__empty b { font-size: 16px; font-weight: 600; }
.drop__empty small { font-size: 12.5px; color: var(--muted); }
.drop__full { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px; }
.drop__full video { height: 154px; width: auto; max-width: 220px; border-radius: 10px; background: #000; object-fit: cover; }
.drop__meta { display: grid; gap: 4px; min-width: 0; }
.drop__meta b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__meta small { font: var(--t-sm) var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.drop__full .ref__x { top: 8px; right: 8px; }
.subj { position: relative; display: grid; min-height: 176px; border-radius: 18px; border: 1.5px dashed var(--line-2); background: rgb(0 0 0 / .26); transition: border-color .2s, background .2s; }
.subj:hover { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 40px -18px rgb(var(--accent-rgb) / .7); }
.subj__pick { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; padding: 16px; text-align: center; cursor: pointer; }
.subj__pick input:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 14px; }
.subj__pick svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 4px; }
.subj__pick b { font-weight: 600; }
.subj__pick small { font-size: 12.5px; color: var(--muted); }
.subj.has-ref { border-style: solid; }
.subj.has-ref .subj__pick { display: none; }
.subj .ref__preview { display: grid; padding: 10px; }
.subj .ref__preview img { width: 100%; height: 154px; border-radius: 10px; }
.subj .ref__preview .ref__x { top: 2px; right: 2px; }
[data-clone-form] textarea { min-height: 60px; }

/* voice: the script and its options beside the voice list */
.vstudio { width: 100%; display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .vstudio { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.vstudio .cmp { max-width: none; }
.tts-text { position: relative; }
.tts-text textarea { width: 100%; min-height: 230px; padding-bottom: 34px; }
.tts-count { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgb(var(--bg-rgb) / .9); font: 500 12px var(--font); color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.tts-count.is-over { color: var(--bad); }
.cmp--voice .cmp__opts { flex-wrap: wrap; gap: 12px 18px; }
.tts-voice { display: grid; gap: 1px; min-width: 0; }
.tts-voice b { font-weight: 500; }
.tts-voice small { font-size: 12px; color: var(--muted); }
.opt-label { font-size: 12px; color: var(--muted); }
.speed { display: grid; grid-template-columns: auto minmax(110px, 160px) auto; align-items: center; gap: 10px; }
.speed output { min-width: 44px; text-align: right; font: 600 13px var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, #6d8cff, #b9cdff) 0 / var(--fill, 60%) 100% no-repeat, var(--panel-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 99px; background: var(--panel-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 99px; background: linear-gradient(90deg, #6d8cff, #b9cdff); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .25); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .25); }

.voices { display: grid; gap: 12px; }
.voices__filter { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 10px; }
.voices__filter :is(input, select) { min-height: 42px; padding: 8px 12px; font-size: 15px; }
.voices__filter select { appearance: none; -webkit-appearance: none; padding-right: 34px; background: rgb(0 0 0 / .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23a8988a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 12px no-repeat; }
.voices__filter select option { background: var(--panel-solid); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; max-height: 330px; overflow-y: auto; padding: 2px; margin: -2px; scrollbar-width: thin; }
.vc { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 12px; background: rgb(var(--ink-rgb) / .03); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.vc:hover { border-color: var(--line-2); }
.vc.is-on { background: var(--tint); border-color: var(--accent); box-shadow: 0 0 22px -10px rgb(var(--accent-rgb) / .8); }
.vc__play { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--ink); cursor: pointer; transition: background .2s, transform .15s; }
.vc__play:hover:not(:disabled) { background: #222c42; }
.vc__play:active:not(:disabled) { transform: scale(.94); }
.vc__play:disabled { opacity: .35; cursor: not-allowed; }
.vc__play::before { content: ""; position: absolute; left: 14px; top: 11px; border-left: 11px solid currentColor; border-block: 7px solid transparent; }
.vc__play.is-playing { background: var(--cool); color: var(--cool-ink); box-shadow: 0 0 16px -4px rgb(var(--accent-rgb) / .8); }
.vc__play.is-playing::before { left: 12px; top: 12px; width: 12px; height: 12px; border: 0; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }
.vc__play.is-loading::before { left: 10px; top: 10px; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; background: none; animation: spin .7s linear infinite; }
.vc__pick { display: grid; gap: 1px; min-width: 0; padding: 2px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.vc__pick b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc__pick small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc.is-on .vc__pick small { color: var(--ink-2); }
.vc--ghost { height: 54px; background: linear-gradient(90deg, rgb(var(--ink-rgb) / .03), rgb(var(--ink-rgb) / .07), rgb(var(--ink-rgb) / .03)) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.vstate { grid-column: 1 / -1; display: grid; justify-items: start; gap: 8px; padding: 16px; border-radius: 12px; border: 1px dashed var(--line-2); }
.voices__more { justify-self: center; }
@media (max-width: 520px) { .voices__filter { grid-template-columns: minmax(0, 1fr); } .seg--3 button { font-size: 13px; padding: 4px 6px; } }

/* chat, inside the stage */
.chat { position: relative; width: 100%; display: grid; height: clamp(460px, calc(100svh - var(--bar) - 210px), 820px); border-radius: 24px; overflow: hidden; border: 0; background: var(--glass); backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25); box-shadow: 0 40px 90px -40px rgb(0 0 0 / .9), 0 0 70px -40px rgb(var(--accent-rgb) / .5); }
.chat__side { position: absolute; z-index: 5; inset: 0 auto 0 0; width: min(84%, 300px); display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 14px; background: var(--panel-solid); border-right: 1px solid var(--line); transform: translateX(-102%); transition: transform .3s var(--ease); }
.chat__side.is-open { transform: none; box-shadow: 30px 0 60px rgb(0 0 0 / .6); }
.chat__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; align-content: start; gap: 2px; }
.chat__list li { display: flex; align-items: center; border-radius: 12px; transition: background .15s; }
.chat__list li:hover { background: rgb(var(--ink-rgb) / .04); }
.chat__list li.is-on { background: var(--tint); box-shadow: inset 2px 0 0 var(--accent); }
.chat__list .chat__none { padding: 8px 12px; }
.chat__list button.open { flex: 1; min-width: 0; text-align: left; padding: 10px 12px; border: 0; background: none; color: var(--ink-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.chat__list li.is-on button.open { color: var(--ink); }
.chat__list button.del { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; opacity: .6; transition: opacity .15s, color .15s; }
.chat__list button.del .ic { width: 15px; height: 15px; }
.chat__list button.del:hover { opacity: 1; color: var(--bad); }
.chat__main { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.chat__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat__title { flex: 1; min-width: 0; text-align: center; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__thread { overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.chat__hello { margin: auto; display: grid; justify-items: center; gap: 14px; max-width: 620px; text-align: center; padding: 12px 0; }
.ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ideas--center { justify-content: center; }
.idea { max-width: 100%; padding: 10px 14px; border-radius: 14px; border: 0; background: var(--b-glass), rgb(0 0 0 / .2); box-shadow: var(--b-glass-sh); color: var(--ink-2); font-size: var(--t-ui); line-height: 1.35; text-align: left; cursor: pointer; transition: color .2s, transform .18s var(--ease), box-shadow .25s var(--ease); }
.idea:hover { color: var(--ink); transform: translateY(-1px); box-shadow: var(--b-glass-sh-hi); }
.idea:active { transform: translateY(1px); box-shadow: var(--b-glass-sh-down); }
.orb { width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f4f8ff, #b9cdff 22%, #6d8cff 46%, #2b3f9a 70%, #050916); box-shadow: 0 0 60px rgb(var(--accent-rgb) / .4); animation: orb 5s ease-in-out infinite; }
@keyframes orb { 50% { transform: scale(1.06) rotate(10deg); box-shadow: 0 0 90px rgb(var(--accent-rgb) / .45); } }
.msg { max-width: min(760px, 100%); animation: rise .3s var(--ease) both; }
.msg--me { align-self: flex-end; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: linear-gradient(180deg, #1c2436, var(--panel-2)); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; width: 100%; }
.msg--bot::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f4f8ff, #8fa9ff 42%, #3550b8); box-shadow: 0 0 16px -4px rgb(var(--accent-rgb) / .7); }
.msg--bot.is-live::before { animation: orb 1.6s ease-in-out infinite; }
.msg__err { color: var(--bad); font-size: 14px; }
.md { min-width: 0; overflow-wrap: anywhere; line-height: 1.48; }
.md > * + * { margin-top: .5em; }
.md h3, .md h4 { font-size: 17px; margin-top: .8em; }
.md ul, .md ol { padding-left: 1.4em; margin-block: .3em; }
.md li + li { margin-top: .15em; }
.md a { color: var(--accent); }
.md strong { color: #fff; font-weight: 600; }
.md blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.md .caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--accent); animation: blink .9s steps(2) infinite; }
.md-code { position: relative; margin: .8em 0; border-radius: 14px; border: 1px solid var(--line); background: var(--well); overflow: hidden; }
.md-code__bar { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
.md-code__bar button { height: 26px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--b-glass); box-shadow: var(--b-glass-sh); font: 500 12px/1 var(--font); cursor: pointer; }
.md-code__bar button:hover { box-shadow: var(--b-glass-sh-hi); }
.md-code code { display: block; padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.42; white-space: pre; }
.chat__compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: rgb(0 0 0 / .22); }
.chat__compose textarea { flex: 1; min-height: 46px; max-height: 200px; resize: none; border-radius: 14px; caret-color: var(--accent); }
@media (min-width: 960px) {
  .chat { grid-template-columns: 260px minmax(0, 1fr); }
  .chat__side { position: static; transform: none; width: auto; background: rgb(0 0 0 / .22); }
  .chat__hist, .chat__bar [data-chat-new] { display: none; }
  .chat__title { text-align: left; }
  .chat__thread { padding: 28px max(28px, calc(50% - 380px)); }
  .chat__compose { padding: 14px max(28px, calc(50% - 380px)) 18px; }
}

/* the stage enters once on load; a tool picked later rises in */
.m-enter .stage[data-enter] .stage__head { animation: enter .8s var(--ease) both; }
.m-enter .stage[data-enter] .stage__in > [data-mode] { animation: enter .8s .1s var(--ease) both; }
.m-enter .stage[data-enter] .stage__reel { animation: reel-in 1.4s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes reel-in { from { opacity: 0; } }

/* ---------------------------------------------------------------- your results, then the feed */
.mine { padding: 8px 0 40px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.016em; }
.gallery { columns: 2 150px; column-gap: 12px; }
@media (min-width: 720px) { .gallery { columns: 3 200px; column-gap: 14px; } }
@media (min-width: 1440px) { .gallery { columns: 4 220px; } }
.tile { position: relative; break-inside: avoid; margin: 0 0 12px; border-radius: 16px; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line); animation: pop .5s var(--ease) both; transition: border-color .2s, transform .25s var(--ease); }
.tile:hover { border-color: rgb(var(--accent-rgb) / .35); transform: translateY(-2px); box-shadow: 0 24px 50px -26px rgb(0 0 0 / .9), 0 0 36px -20px rgb(var(--accent-rgb) / .6); }
@media (min-width: 720px) { .tile { margin-bottom: 14px; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.tile__media { position: relative; aspect-ratio: var(--ar, 1); overflow: hidden; background: var(--well); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); cursor: zoom-in; }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile__media img.is-in { animation: develop 1.1s var(--ease) both; }
@keyframes develop { from { opacity: 0; filter: blur(18px) saturate(1.5); transform: scale(1.06); } }
.tile__body { display: grid; gap: 6px; padding: 9px 12px 11px; }
.tile__prompt { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__acts { display: flex; gap: 6px; flex-wrap: wrap; }
.tile__acts :is(a, button), .tts-item__acts :is(a, button) { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 10px; border: 0; background: var(--b-glass); box-shadow: var(--b-glass-sh); color: var(--ink-2); font: 500 12.5px/1 var(--font); text-decoration: none; cursor: pointer; transition: color .2s, box-shadow .25s var(--ease), transform .18s var(--ease), filter .2s; }
:is(.tile__acts, .tts-item__acts) :is(a, button):hover { color: var(--ink); transform: translateY(-1px); box-shadow: var(--b-glass-sh-hi); }
:is(.tile__acts, .tts-item__acts) :is(a, button):active { transform: translateY(1px); box-shadow: var(--b-glass-sh-down); }
:is(.tile__acts, .tts-item__acts) a[download] { background: var(--b-cool); color: var(--cool-ink); font-weight: 650; box-shadow: var(--b-cool-sh); }
:is(.tile__acts, .tts-item__acts) a[download]:hover { color: var(--cool-ink); filter: brightness(1.06); box-shadow: var(--b-cool-sh); }
.tile__meta { font: 12px var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.tile--failed .tile__media { display: grid; place-items: center; padding: 16px; background: rgb(240 154 138 / .06); text-align: center; color: var(--bad); font-size: 13px; }

/* the generating state: a slow cobalt and cyan light turning, the stage, the time, the shots and a bar */
.gen { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; padding: 16px; text-align: center; overflow: hidden; background: #070a13; }
.gen::before, .gen::after { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, #3c5cd6, #070b18, #8fa9ff, #050811, #2a3f9e, #3c5cd6); filter: blur(40px); opacity: .42; animation: aurora 7s linear infinite; }
.gen::after { inset: -20%; background: radial-gradient(circle at 30% 30%, rgb(var(--accent-rgb) / .45), transparent 45%), radial-gradient(circle at 70% 70%, rgb(36 60 160 / .6), transparent 50%); animation: aurora 10s linear infinite reverse; opacity: .7; }
@keyframes aurora { to { transform: rotate(360deg); } }
.gen > * { position: relative; z-index: 1; }
.gen__stage { font-weight: 600; font-size: 15px; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.gen__time { font: 600 12.5px var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.gen__bar { position: absolute !important; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(0 0 0 / .35); }
.gen__bar b { display: block; height: 100%; width: 0; background: var(--cool); box-shadow: 0 0 12px var(--accent); transition: width .6s linear; }
.gen__grain { position: absolute !important; inset: 0; opacity: .2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.gen--bad { position: absolute; padding: 16px; background: rgb(240 154 138 / .06); }
.gen--bad::before, .gen--bad::after { display: none; }
.shots { display: flex; gap: 4px; margin-top: 4px; }
.shots i { width: 22px; height: 4px; border-radius: 2px; background: rgb(var(--ink-rgb) / .22); }
.shots i.is-done { background: var(--accent); }
.shots i.is-on { background: linear-gradient(90deg, var(--accent), rgb(var(--ink-rgb) / .22)) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }

.vlist { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); align-items: start; }
.vcard { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: var(--panel-solid); border: 1px solid var(--line); animation: pop .5s var(--ease) both; transition: transform .25s var(--ease), border-color .2s; }
.vcard:hover { transform: translateY(-2px); border-color: rgb(var(--accent-rgb) / .35); box-shadow: 0 0 36px -20px rgb(var(--accent-rgb) / .6); }
.vcard__media { position: relative; aspect-ratio: var(--ar, 9 / 16); background: #000; overflow: hidden; }
.vcard__media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
/* "Xem lớn" in the corner of a finished image or clip */
.zoom { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgb(5 7 12 / .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s var(--ease), background .2s; }
.zoom .ic { width: 16px; height: 16px; }
:is(.tile, .vcard):is(:hover, :focus-within) .zoom { opacity: 1; }
.zoom:hover { transform: scale(1.06); background: rgb(5 7 12 / .78); }
@media (hover: none) { .zoom { opacity: 1; } }
.vcard__body { display: grid; gap: 6px; align-content: start; padding: 11px 14px 13px; }
.vcard__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: rgb(var(--ink-rgb) / .07); color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--run { color: var(--accent); background: var(--tint); }
.status--run::before { animation: blink 1s steps(2) infinite; }
.status--ok { color: var(--good); background: rgb(166 220 174 / .1); }
.status--bad { color: var(--bad); background: rgb(240 154 138 / .1); }
.status--warn { color: var(--warn); background: rgb(236 201 138 / .1); }
@keyframes blink { 50% { opacity: .2; } }

.tts-list { display: grid; gap: 10px; max-width: 900px; }
.tts-item { display: grid; gap: 8px; padding: 13px 16px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line); animation: pop .45s var(--ease) both; }
.tts-item:first-child { border-color: rgb(var(--accent-rgb) / .4); box-shadow: 0 0 30px -18px rgb(var(--accent-rgb) / .7); }
.tts-item__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tts-item__top b { font-weight: 500; }
.tts-item__meta { font: 12px var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.tts-item__text { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tts-item audio { width: 100%; height: 40px; color-scheme: dark; }
.tts-item__acts { display: flex; gap: 6px; flex-wrap: wrap; }
.tts-busy { display: flex; align-items: center; gap: 12px; height: 40px; color: var(--accent); }
.tts-busy .wave { display: flex; align-items: center; gap: 3px; height: 24px; flex: 1; }
.tts-busy .wave i { flex: 1; max-width: 4px; height: 30%; border-radius: 2px; background: currentColor; opacity: .7; animation: wave 1s ease-in-out infinite; }
.tts-busy .wave i:nth-child(3n) { animation-delay: -.3s; } .tts-busy .wave i:nth-child(4n+1) { animation-delay: -.6s; } .tts-busy .wave i:nth-child(5n+2) { animation-delay: -.8s; }
@keyframes wave { 50% { height: 100%; } }
.tts-busy b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.tts-busy span { font: 500 12px var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.tts-item--failed { border-color: rgb(240 154 138 / .35); }

/* the feed: real results made with VelvaPod (static/media/demo/manifest.json), dense, at their own ratio; clips play muted on screen */
.feed { padding: 40px 0 64px; }
.feed__end { display: flex; justify-content: center; padding-top: 32px; }
.feed [data-feed-filter] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.feed [data-feed-filter]::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .feed [data-feed-filter] { flex-wrap: wrap; overflow: visible; } } /* a wide screen shows every filter: they wrap, no hidden scroller */
.masonry, .masonry__col { display: flex; gap: 8px; align-items: flex-start; }
.masonry__col { flex: 1; min-width: 0; flex-direction: column; align-items: stretch; }
@media (min-width: 720px) { .masonry, .masonry__col { gap: 12px; } }
.fc { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / calc(var(--h, 1) * var(--k, 1)); background: var(--panel-solid); color: var(--ink); font: inherit; text-align: left; cursor: zoom-in; break-inside: avoid; transition: transform .25s var(--ease), box-shadow .25s; }
.fc img, .fc video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.fc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .08); pointer-events: none; transition: box-shadow .25s; }
.fc:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -24px rgb(0 0 0 / .9), 0 0 44px -22px rgb(var(--accent-rgb) / .7); }
.fc:hover :is(img, video) { transform: scale(1.03); }
.fc:hover::after { box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .6), inset 0 0 30px -10px rgb(var(--accent-rgb) / .35); }

/* the viewer: a demo result large, its prompt, "Dùng mẫu này" */
.viewer { width: min(1120px, 94vw); max-width: none; max-height: 92vh; padding: 0; border: 0; background: none; color: var(--ink); }
.viewer__box { position: relative; display: grid; border-radius: 24px; overflow: hidden; background: var(--panel-solid); box-shadow: 0 50px 120px -30px rgb(0 0 0 / .9), 0 0 90px -40px rgb(var(--accent-rgb) / .6); }
@media (min-width: 860px) { .viewer__box { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); } }
.viewer__media { --mh: min(80vh, 760px); display: grid; place-items: center; background: #000; min-height: 240px; }
/* the media's own shape (--w x --h, its pixel size), as wide as fits: the pane, the height cap, its own width */
.viewer__media :is(img, video) { display: block; width: min(calc(var(--w) * 1px), 100%, calc(var(--mh) * var(--w) / var(--h))); height: auto; aspect-ratio: var(--w) / var(--h); }
.viewer__side { position: relative; display: grid; align-content: start; gap: 10px; padding: 26px 24px 24px; }
.viewer__tag { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--t-xs)/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums; }
.viewer__tag .ic { width: 15px; height: 15px; }
.viewer__side h2 { padding-right: 40px; font-size: var(--t-xl); font-weight: 600; line-height: 1.18; }
.viewer__prompt { padding: 12px 14px; border-radius: 14px; background: var(--well); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.viewer__acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 859px) { .viewer__media { --mh: min(58vh, 560px); } .viewer__side { padding: 20px; } }

/* sign up / log in: real results beside the form */
.dlg--auth { max-width: min(94vw, 880px); }
.auth { position: relative; display: grid; border-radius: 24px; overflow: hidden; background: var(--panel-solid); box-shadow: 0 50px 120px -30px rgb(0 0 0 / .9), 0 0 90px -40px rgb(var(--accent-rgb) / .6); }
.auth__art { display: none; }
.auth__body { position: relative; display: grid; gap: 10px; padding: 30px 24px 24px; }
.auth__body h2 { padding-right: 40px; font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; line-height: 1.14; letter-spacing: -0.016em; }
@media (min-width: 760px) {
  .auth { grid-template-columns: .85fr 1fr; }
  .auth__art { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 8px; background: var(--well); }
  .auth__art img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; animation: kenburns 24s ease-in-out infinite alternate; }
  .auth__art img:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; animation-delay: -8s; }
  .auth__body { padding: 40px 34px 30px; }
}

/* ---------------------------------------------------------------- pages: Bảng giá, Tài khoản, Tài liệu API */
.page { padding: clamp(28px, 5vw, 56px) 0 72px; animation: rise .45s var(--ease) both; }
.page__head { display: grid; gap: 6px; margin-bottom: 22px; }
.page__head h1 { font-size: var(--t-3xl); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; }
.page__head p { max-width: 68ch; }

/* Bảng giá: the title, the balance and the way to pay; three packs with the middle one leading, each with its own buy
   button; then one line of starting prices, the full list folded under it */
.buy { display: grid; gap: clamp(30px, 4.5vh, 48px); }
.buy__head { display: grid; justify-items: center; gap: 14px; text-align: center; }
.buy__head h1 { font-size: var(--t-3xl); letter-spacing: -0.022em; line-height: 1.02; }
.buy__bal { color: var(--warm); font: 600 14px/1 var(--font); font-variant-numeric: tabular-nums; }
.buy__err:empty { display: none; }
.buy__err { text-align: center; }
.methods { display: inline-flex; gap: 4px; margin-top: 6px; padding: 4px; border-radius: 99px; background: linear-gradient(180deg, rgb(0 0 0 / .34), rgb(0 0 0 / .16)); box-shadow: inset 0 1px 2px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(var(--ink-rgb) / .07), 0 1px 0 rgb(220 232 255 / .06); }
.method { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 7px; border: 0; border-radius: 99px; background: none; color: var(--ink-2); font: 600 14px/1 var(--font); letter-spacing: .01em; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s, color .2s, box-shadow .25s var(--ease); }
.method:hover:not(:disabled) { color: var(--ink); background-color: rgb(var(--ink-rgb) / .06); }
.method.is-on { background: var(--b-on); color: #fff; box-shadow: var(--b-on-sh); }
.method:disabled { cursor: not-allowed; color: var(--muted); }
.method:disabled .method__mark { filter: grayscale(1); opacity: .55; }
.method__mark { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #0c1019; box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .1); }
.method__mark svg { width: 20px; height: 20px; }
.method__mark .method__badge { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: #0c1019; box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / .12); }
.method__soon { padding: 4px 8px; border-radius: 99px; background: rgb(var(--ink-rgb) / .07); color: var(--muted); font: 500 11.5px/1 var(--font); }

.plans { display: grid; gap: 16px; align-items: center; width: 100%; max-width: 1100px; margin: 0 auto; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.plan { position: relative; display: grid; gap: 12px; padding: 28px 26px 26px; border-radius: 24px; border: 1px solid transparent; background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 70px -40px rgb(0 0 0 / .9); transition: transform .3s var(--ease), box-shadow .3s; }
.plan:hover { transform: translateY(-3px); }
.plan.is-lead { padding-block: 40px 30px; background: linear-gradient(180deg, rgb(var(--accent-rgb) / .14), rgb(12 16 26 / .9) 48%); box-shadow: 0 50px 110px -40px rgb(0 0 0 / .95), 0 0 90px -34px rgb(var(--accent-rgb) / .6); }
.plan.is-lead::after { --hair: linear-gradient(160deg, rgb(var(--ink-rgb) / .7), rgb(var(--accent-rgb) / .3) 38%, rgb(var(--ink-rgb) / .06) 68%, rgb(var(--accent-rgb) / .55)); padding: 1.5px; }
@media (min-width: 860px) { .plan.is-lead { z-index: 1; transform: scale(1.06); } .plan.is-lead:hover { transform: scale(1.06) translateY(-3px); } }
@media (max-width: 859px) { .plan.is-lead { order: -1; margin-top: 12px; } }
.plan.is-on:not(.is-lead) { box-shadow: 0 0 0 1.5px rgb(var(--accent-rgb) / .7), 0 30px 70px -40px rgb(0 0 0 / .9); } /* the pack a link named */
.plan__flag { position: absolute; top: 0; left: 50%; translate: -50% -50%; padding: 8px 15px; border-radius: 99px; background: var(--ink); color: var(--cool-ink); font: 700 11.5px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 10px 26px -8px rgb(0 0 0 / .85), 0 0 26px -6px rgb(var(--accent-rgb) / .75); }
.plan__pts { color: var(--warm); font: 600 15px/1 var(--font); font-variant-numeric: tabular-nums; }
.plan__pts b { font-size: 19px; letter-spacing: -0.01em; }
.plan__price { display: grid; gap: 6px; }
.plan__price b { color: var(--ink); font: 600 clamp(38px, 3.9vw, 52px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.plan.is-lead .plan__price b { font-size: clamp(44px, 4.6vw, 62px); }
.plan__price span { color: var(--muted); font: 500 14px/1 var(--font); font-variant-numeric: tabular-nums; }
.plan__value { color: var(--accent); font: 500 14.5px/1.35 var(--font); font-variant-numeric: tabular-nums; }
.plan__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); }
.plan__chips li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border-radius: 99px; background: rgb(var(--ink-rgb) / .06); color: var(--ink-2); font: 500 13px/1 var(--font); font-variant-numeric: tabular-nums; }
.plan__chips .ic { width: 15px; height: 15px; color: var(--accent); }
.plan .btn { margin-top: 8px; }

.rates { display: grid; justify-items: center; gap: 10px; }
.rates__strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rates__strip li { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px; border-radius: 99px; background: var(--b-glass); box-shadow: var(--b-glass-sh); color: var(--muted); font: 500 13px/1 var(--font); }
.rates__strip .ic { width: 17px; height: 17px; margin-right: 2px; color: var(--accent); }
.rates__strip b { color: var(--ink); font: 650 15px/1 var(--font); font-variant-numeric: tabular-nums; }
.rates__strip small { margin-right: 3px; color: var(--muted); font: 500 12px/1 var(--font); }
.rates__more { width: 100%; max-width: 880px; }
.rates__more summary { display: flex; align-items: center; justify-content: center; gap: 6px; width: max-content; margin: 0 auto; padding: 8px 12px; border-radius: 99px; color: var(--ink-2); font: 500 14px/1 var(--font); list-style: none; cursor: pointer; transition: color .2s, background-color .2s; }
.rates__more summary::-webkit-details-marker { display: none; }
.rates__more summary:hover { color: var(--ink); background-color: rgb(var(--ink-rgb) / .06); }
.rates__more summary .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.rates__more[open] summary .ic { transform: rotate(180deg); }
.rates__more .rates__list { margin-top: 12px; padding: 22px; border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.rates__list { display: grid; gap: 14px; margin: 0; }
@media (min-width: 560px) { .rates__list { grid-template-columns: 1fr 1fr; gap: 16px 28px; } }
.rates__g dt { margin-bottom: 4px; font: 600 var(--t-xs) var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.rates__g dd { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rates__g dd span { color: var(--ink-2); }
.rates__g dd b { font: 600 14px var(--font); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }

.order { display: grid; gap: 16px; animation: rise .4s var(--ease) both; }
.order__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order__head h2 { font-size: 22px; }
.order__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .order__grid { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.qr { position: relative; display: grid; place-items: center; justify-self: center; width: min(100%, 300px); aspect-ratio: 1; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px -30px rgb(var(--accent-rgb) / .45); }
.qr svg, .qr img { width: 100%; height: 100%; }
.qr::after { content: ""; position: absolute; inset: -2px; border-radius: 22px; border: 2px solid var(--accent); opacity: 0; animation: scan 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 50% { opacity: .9; inset: -8px; border-radius: 26px; } }
.qr__badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #fff; }
.qr__badge svg { width: 34px; height: 34px; }
.pay-rows { display: grid; gap: 2px; margin: 0; }
.pay-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: 0; }
.pay-row dt { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.pay-row dd { margin: 0; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.pay-row dd.mono { font-family: var(--mono); font-weight: 400; font-size: 14px; }
.pay-amt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 18px; background: var(--tint); border: 1px solid rgb(var(--accent-rgb) / .35); box-shadow: 0 0 40px -22px rgb(var(--accent-rgb) / .8); }
.pay-amt__n { display: grid; gap: 2px; min-width: 0; }
.pay-amt__n span { font-size: 12px; color: var(--muted); }
.pay-amt__n b { font: 650 clamp(26px, 6vw, 36px)/1 var(--font); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: var(--warm); overflow-wrap: anywhere; }
.pay-amt__n b small { font: 500 16px var(--font); color: var(--ink); margin-left: 6px; }
.pay-amt .copy { width: 44px; height: 44px; }
.clock { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--well); border: 1px solid var(--line); }
.clock__ring { flex: none; width: 40px; height: 40px; }
.clock__ring circle { fill: none; stroke-width: 4; }
.clock__ring .bgc { stroke: rgb(var(--ink-rgb) / .12); }
.clock__ring .fgc { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 1s linear; }
.clock__t { display: grid; }
.clock__t b { font: 600 20px var(--font); font-variant-numeric: tabular-nums; }
.clock__t span { font-size: 13px; color: var(--muted); }
.done { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; text-align: center; }
.done__tick { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--cool); color: var(--cool-ink); box-shadow: 0 0 0 12px rgb(var(--accent-rgb) / .12), 0 0 80px rgb(var(--accent-rgb) / .45); animation: tick .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.done__tick svg { width: 44px; height: 44px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .35s ease forwards; }
@keyframes tick { from { transform: scale(.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-size: 28px; }
.confetti { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; pointer-events: none; }

.acc { display: grid; gap: 16px; }
@media (min-width: 900px) { .acc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acc__plan, .acc__orders { grid-column: 1 / -1; } }
.acc .card { display: grid; gap: 8px; align-content: start; }
.acc__plan { position: relative; overflow: hidden; }
.acc__plan::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgb(var(--accent-rgb) / .2), transparent 70%); pointer-events: none; }
.plan-now { display: grid; gap: 16px; margin: 0; }
@media (min-width: 720px) { .plan-now { grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; } }
.plan-now dt { font-size: 12px; color: var(--muted); }
.plan-now dd { margin: 2px 0 0; font-size: 18px; font-weight: 500; }
.plan-now .big { font: 600 28px/1.1 var(--display); letter-spacing: -0.012em; }
.keyline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-sm); background: var(--well); border: 1px solid var(--line); }
.keyline code { background: none; padding: 0; font-size: 15px; }
.olist { display: grid; }
.orow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.orow:last-child { border-bottom: 0; }
.orow b { font-weight: 500; }
.orow small { color: var(--muted); font-size: 12px; }
.orow__r { display: grid; justify-items: end; gap: 4px; }
.orow__amt { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .orow { grid-template-columns: 1fr 1fr auto auto; } .orow__r { display: contents; } }
.ledger { display: grid; max-height: 420px; overflow: auto; }
.lrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow small { color: var(--muted); }
.lrow__d { font: 600 15px var(--font); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.lrow__d.is-plus { color: var(--good); }

.docs { display: grid; gap: 16px; max-width: 980px; }
.facts { display: grid; gap: 9px; margin: 0 0 10px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; }
.facts dd:has(> .copy) { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.facts dd code { font-size: 14px; }
.doc { display: grid; gap: 8px; }
.tabs { display: flex; gap: 2px; padding: 4px; border-radius: 15px; background: linear-gradient(180deg, rgb(0 0 0 / .42), rgb(0 0 0 / .26)); box-shadow: inset 0 1px 2px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(var(--ink-rgb) / .07); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 11px; background: none; color: var(--muted); font-size: var(--t-ui); font-weight: 500; cursor: pointer; transition: color .2s, background .2s, box-shadow .25s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--b-on); color: #fff; font-weight: 600; box-shadow: var(--b-on-sh); }
pre.code { position: relative; margin: 0; padding: 16px; padding-right: 52px; border-radius: 16px; background: var(--well); border: 1px solid var(--line); overflow-x: auto; font: 13px/1.45 var(--mono); color: #dfe6f3; }
pre.code .copy { position: absolute; top: 10px; right: 10px; }
.errs { display: grid; gap: 10px; margin: 0; }
.errs div { display: grid; gap: 2px; }
.errs dt code { color: var(--warn); }
.errs dd { margin: 0; color: var(--ink-2); font-size: 14px; }

.foot { padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); background: linear-gradient(90deg, transparent, rgb(var(--ink-rgb) / .1) 20%, rgb(var(--accent-rgb) / .45) 50%, rgb(var(--ink-rgb) / .1) 80%, transparent) top / 100% 1px no-repeat var(--bg); } /* solid: the ground's light stays out from under the small print */
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot__links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.foot__links a { color: var(--ink-2); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ease), color .2s; }
.foot__links a:hover { color: var(--ink); background-size: 100% 1px; }

/* "Xem lớn": one finished image or clip over the page, whole, in its own shape, never past its own pixel size */
.lightbox { --pad: clamp(12px, 3vw, 28px); width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: var(--pad); border: 0; background: none; color: var(--ink); overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; animation: rise .25s var(--ease); }
.lightbox::backdrop { background: rgb(0 0 0 / .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox__media :is(img, video) { display: block; width: auto; height: auto; max-width: calc(100vw - 2 * var(--pad)); max-height: calc(100dvh - 2 * var(--pad)); border-radius: 14px; background: #000; box-shadow: 0 40px 120px rgb(0 0 0 / .7); }
.lightbox__x { position: absolute; z-index: 1; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--b-glass), rgb(var(--bg-rgb) / .75); box-shadow: var(--b-glass-sh); cursor: pointer; transition: box-shadow .25s var(--ease), transform .3s var(--ease); }
.lightbox__x .ic { width: 20px; height: 20px; }
.lightbox__x:hover { box-shadow: var(--b-glass-sh-hi); }

/* ---------------------------------------------------------------- phone */
@media (max-width: 719px) {
  .stage__reel { top: var(--bar); } /* a phone's two-row bar would hide the top of the picture */
  .stage__in { padding-top: calc(var(--bar) + 28px); padding-bottom: 64px; gap: 16px; }
  .stage__h { font-size: clamp(34px, 10.4vw, 46px); line-height: 1.08; }
  .cmp__box { padding: 12px; border-radius: 18px; }
  .cmp textarea { min-height: 76px; }
  .cmp__bar { flex-direction: column; align-items: stretch; }
  .go { justify-content: space-between; }
  .go--icon { justify-content: center; }
  .clone { grid-template-columns: minmax(0, 1fr); }
  .drop, .subj { min-height: 132px; }
  .drop__full video { height: 120px; }
  .reel-btn { bottom: 14px; }
  .chat { height: calc(100svh - var(--bar) - 170px); min-height: 420px; }
  /* the ways to pay: three equal tiles, the mark over its word */
  .methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 22px; }
  .method { flex-direction: column; justify-content: center; gap: 7px; height: auto; padding: 10px 4px 9px; border-radius: 18px; font-size: 13px; }
  .method:disabled .method__t { display: none; }
  .plan { padding: 24px 20px 20px; }
  .plan.is-lead { padding-block: 34px 24px; }
}

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

/* hidden tooltips (opacity 0, still laid out) near the right edge must not make the page scroll sideways */
main { overflow-x: clip; }
