/* Nocture Console · console.nocture.vn
   Night canvas from the Nocture family, one accent: an electric lime, the colour of a console's "ready" LED.
   Display type: Bricolage Grotesque (variable, opsz + wght), © 2022 The Bricolage Grotesque Project Authors,
   SIL Open Font License 1.1 (see /assets/type/OFL.txt). Body: Inter. Numbers and labels: JetBrains Mono.

   Contract for every page (keep these names):
   variables  --bg --bg-2 --panel --panel-2 --line --line-2 --fg --fg-2 --muted --accent --accent-fg --accent-soft
              --ok --ok-soft --bad --bad-soft --warn --warn-soft --radius --radius-lg --shadow --font-sans --font-display --font-mono --maxw
              (+ --lime / --lime-fg: the brand lime in both themes, used by .btn-primary)
   components .frame .sec .kick .h1 .h2 .h3 .lede .btn .btn-primary .btn-ghost .btn-sm .btn-lg .card .field .row .grid2 .grid3
              .chip(.on) .badge(.ok/.bad/.warn) .tbl .seg(button.on) .muted .mono .price .art .toast */

/* ------------------------------------------------------------------ fonts */
/* latin-ext ranges leave out the code points the vietnamese files already carry (ă đ ĩ ũ ơ ư ỳ ₫...), so a Vietnamese page
   loads latin + vietnamese only, not the 30-83 KB latin-ext files as well */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/type/bricolage-grotesque-vietnamese-opsz-normal.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: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/type/bricolage-grotesque-latin-ext-opsz-normal.woff2) format('woff2');
  unicode-range: U+0100-0101, U+0104-010F, U+0112-0127, U+012A-0167, U+016A-019F, U+01A2-01AE, U+01B1-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+1EFA-1EFF, U+2020, U+20A0-20AA, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/type/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/Inter-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: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-0101, U+0104-010F, U+0112-0127, U+012A-0167, U+016A-019F, U+01A2-01AE, U+01B1-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+1EFA-1EFF, U+2020, U+20A0-20AA, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/Inter-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: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/JetBrainsMono-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: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/JetBrainsMono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-0101, U+0104-010F, U+0112-0127, U+012A-0167, U+016A-019F, U+01A2-01AE, U+01B1-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+1EFA-1EFF, U+2020, U+20A0-20AA, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/JetBrainsMono-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; }

/* metric-matched fallbacks: while the web fonts load (font-display: swap), the system font is scaled to the
   same width and line metrics, so headlines don't re-wrap or jump when the real face arrives (CLS ~ 0) */
@font-face { font-family: 'Bricolage Fallback'; font-weight: 200 599; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Roboto'), local('Roboto Regular'), local('Helvetica Neue'); size-adjust: 99.5%; ascent-override: 93.5%; descent-override: 27.1%; line-gap-override: 0%; }
@font-face { font-family: 'Bricolage Fallback'; font-weight: 600 800; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Roboto Bold'), local('Roboto-Bold'), local('Helvetica Neue Bold'); size-adjust: 94.4%; ascent-override: 98.5%; descent-override: 28.6%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Roboto'), local('Roboto Regular'), local('Helvetica Neue'); size-adjust: 105.1%; ascent-override: 92.3%; descent-override: 22.8%; line-gap-override: 0%; }

/* ------------------------------------------------------------------ tokens */
:root {
  --font-sans: "Inter", "Inter Fallback", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --maxw: 1200px; --hdr: 64px; --radius: 14px; --radius-lg: 24px; --ease: cubic-bezier(.2,.7,.2,1);
  --lime: #c6f135; --lime-fg: #0d1203;

  /* light: warm paper, ink-green accent for text, lime kept for buttons and the moon */
  --bg: #f5f4ef; --bg-2: #eeede6; --panel: #ffffff; --panel-2: #f1f0ea;
  --line: rgba(17,19,30,.09); --line-2: rgba(17,19,30,.17);
  --fg: #11131b; --fg-2: #464a57; --muted: #62666f;
  --accent: #467207; --accent-fg: #ffffff; --accent-soft: rgba(110,170,10,.13);
  --ok: #13743a; --ok-soft: rgba(21,128,61,.1); --bad: #c62828; --bad-soft: rgba(198,40,40,.09); --warn: #92580a; --warn-soft: rgba(161,98,7,.11);
  --shadow: 0 1px 2px rgba(17,19,30,.05), 0 18px 44px -22px rgba(17,19,30,.22);
  --hdr-bg: rgba(245,244,239,.82); --focus: #11131b;
  --stage: #e9e8e0; --stage-floor: rgba(17,19,30,.07);
  /* device art */
  --dv-w: #ffffff; --dv-w2: #e4e6ec; --dv-wo: rgba(17,19,30,.28); --dv-k: #1c1f28; --dv-k2: #2a2e3a; --dv-ko: rgba(17,19,30,.35);
  --dv-btn: #3a3f4d; --dv-btnw: #d9dce4; --dv-gly: #8a90a0; --dv-cap: #2b2f3b; --dv-well: #0f1117; --dv-pad: #262a35; --dv-bz: #111318;
  --dv-scr: #121a3d; --dv-hill1: #1f2a5e; --dv-hill2: #2a3878; --dv-moon: #c6f135; --dv-star: #e6eaff; --dv-led: #9fd51c; --dv-shadow: rgba(17,19,30,.16);
  color-scheme: light;
}
:root[data-theme="dark"], :root:not([data-theme="light"]) {
  --bg: #0a0b10; --bg-2: #0e1016; --panel: #12141c; --panel-2: #181b25;
  --line: rgba(226,232,255,.08); --line-2: rgba(226,232,255,.15);
  --fg: #f3f4f7; --fg-2: #a9adbb; --muted: #858a9b;
  --accent: #c6f135; --accent-fg: #0d1203; --accent-soft: rgba(198,241,53,.12);
  --ok: #4ade80; --ok-soft: rgba(74,222,128,.12); --bad: #ff7a7a; --bad-soft: rgba(255,122,122,.12); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.12);
  --shadow: 0 0 0 1px rgba(255,255,255,.02), 0 28px 60px -30px rgba(0,0,0,.9);
  --hdr-bg: rgba(10,11,16,.78); --focus: #c6f135;
  --stage: #11131b; --stage-floor: rgba(0,0,0,.45);
  --dv-w: #eceef3; --dv-w2: #d2d6df; --dv-wo: rgba(0,0,0,.25); --dv-k: #1d2029; --dv-k2: #2a2e3a; --dv-ko: rgba(226,232,255,.16);
  --dv-btn: #525869; --dv-btnw: #cfd3dc; --dv-gly: #7d8394; --dv-cap: #30343f; --dv-well: #0c0e13; --dv-pad: #282c37; --dv-bz: #0d0f14;
  --dv-scr: #0f1534; --dv-hill1: #1b2553; --dv-hill2: #26326c; --dv-moon: #c6f135; --dv-star: #e6eaff; --dv-led: #c6f135; --dv-shadow: rgba(0,0,0,.55);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .lede a, dd a, .prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
::selection { background: var(--lime); color: var(--lime-fg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .92em; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--lime); color: var(--lime-fg); font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); } .fg2 { color: var(--fg-2); } .ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }

/* ------------------------------------------------------------------ layout */
.frame { width: calc(100% - 40px); max-width: var(--maxw); margin: 0 auto; }
.sec { padding: 104px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.sec-hd .lede { justify-self: start; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sec { padding: 80px 0; } .sec-hd { grid-template-columns: 1fr; margin-bottom: 36px; } }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } .sec { padding: 64px 0; } .frame { width: calc(100% - 32px); } }

/* ------------------------------------------------------------------ type */
.kick { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.kick::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.kick.plain::before { display: none; }
.h1, .h2, .h3, .display { font-family: var(--font-display); color: var(--fg); text-wrap: balance; }
.display { font-size: clamp(44px, 7.4vw, 92px); line-height: .95; font-weight: 700; letter-spacing: -.035em; }
.h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; }
.h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.04; font-weight: 700; letter-spacing: -.028em; }
.h3 { font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; }
.lede { font-size: 18px; line-height: 1.6; color: var(--fg-2); max-width: 560px; text-wrap: pretty; }
.small { font-size: 13px; }
.price { font: 650 28px/1.1 var(--font-display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--fg); }
.price small, .price .u { font: 400 13px var(--font-sans); letter-spacing: 0; color: var(--muted); margin-left: 4px; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); font-size: 15px; font-weight: 550; letter-spacing: -.005em; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), background .15s, border-color .15s, color .15s, box-shadow .2s; }
.btn:hover { border-color: var(--fg-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--lime); color: var(--lime-fg); border-color: transparent; box-shadow: inset 0 -2px 0 rgba(0,0,0,.14); }
.btn-primary:hover { background: #d4f85c; border-color: transparent; box-shadow: inset 0 -2px 0 rgba(0,0,0,.14), 0 0 0 4px var(--accent-soft); }
:root[data-theme="light"] .btn-primary { box-shadow: inset 0 0 0 1px rgba(60,90,0,.25), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn-ghost:hover { color: var(--fg); background: var(--panel-2); border-color: transparent; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--fg-2); transition: color .15s, border-color .15s; }
.icon-btn:hover { color: var(--fg); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
a.card { display: block; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
a.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.note { padding: 14px 16px; border-radius: var(--radius); background: var(--panel-2); color: var(--fg-2); font-size: 14px; border: 1px solid var(--line); }
.note.ok { background: var(--ok-soft); color: var(--fg); border-color: transparent; }
.note.bad { background: var(--bad-soft); color: var(--fg); border-color: transparent; }
.note.warn { background: var(--warn-soft); color: var(--fg); border-color: transparent; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.hr { height: 1px; background: var(--line); border: 0; margin: 24px 0; }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field > label, .label { font-size: 14px; font-weight: 550; color: var(--fg); }
.field small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.field input:not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea, .input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); outline: none; font-size: 16px;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.field select, select.input { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.field textarea, textarea.input { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input[type=date] { min-height: 46px; }
.field.err input, .field.err select, .field.err textarea { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.field.err small, .field .err-msg { color: var(--bad); }
.check { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.form { display: grid; gap: 18px; }

/* ------------------------------------------------------------------ chips, badges, segmented */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--fg-2); background: transparent; cursor: pointer; transition: color .15s, background .15s, border-color .15s; white-space: nowrap; }
.chip:hover { color: var(--fg); border-color: var(--fg-2); }
.chip.on, .chip[aria-pressed="true"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.chip b { font: 500 12px var(--font-mono); color: var(--muted); }
.chip.on b, .chip[aria-pressed="true"] b { color: inherit; opacity: .7; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font: 500 11.5px/1 var(--font-mono); letter-spacing: .02em; background: var(--panel-2); color: var(--fg-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 13px; background: var(--panel-2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--fg-2); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s, box-shadow .15s; }
.seg button:hover { color: var(--fg); }
.seg button.on, .seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--panel); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px var(--line); }

/* ------------------------------------------------------------------ table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { font: 500 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); white-space: nowrap; }
.tbl tbody th { font: 550 15px var(--font-sans); text-transform: none; letter-spacing: 0; color: var(--fg); background: transparent; white-space: normal; }
.tbl tr:last-child td, .tbl tr:last-child th { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--panel-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th.num { text-align: right; }

/* ------------------------------------------------------------------ toast */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 18px; border-radius: 12px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); animation: toast-in .3s var(--ease); max-width: 100%; transition: opacity .3s, transform .3s; }
.toast.ok { background: var(--lime); color: var(--lime-fg); }
.toast.bad { background: var(--bad); color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------------ device art */
.art { position: relative; display: grid; place-items: center; }
.art > svg { width: 100%; height: auto; max-height: 100%; }
.dv { overflow: visible; }
.dv .v-w { fill: var(--dv-w); }
.dv .v-w2 { fill: var(--dv-w2); }
.dv .v-wo, .dv .v-ko { fill: none; stroke-width: .9; vector-effect: non-scaling-stroke; }
.dv .v-wo { stroke: var(--dv-wo); }
.dv .v-ko { stroke: var(--dv-ko); }
.dv .v-k { fill: var(--dv-k); }
.dv .v-k2 { fill: var(--dv-k2); }
.dv .v-bz { fill: var(--dv-bz); }
.dv .v-btn { fill: var(--dv-btn); }
.dv .v-btnw { fill: var(--dv-btnw); }
.dv .v-btnk { fill: var(--dv-k); }
.dv .v-gly { fill: none; stroke: var(--dv-gly); stroke-width: .9; stroke-linejoin: round; stroke-linecap: round; }
.dv .v-well { fill: var(--dv-well); }
.dv .v-cap { fill: var(--dv-cap); }
.dv .v-capi { fill: none; stroke: rgba(255,255,255,.07); stroke-width: .8; }
.dv .v-pad { fill: var(--dv-pad); }
.dv .v-ring { fill: none; stroke: var(--dv-led); stroke-width: 1.4; opacity: .9; }
.dv .v-scr, .dv .v-scr-cut { fill: var(--dv-scr); }
.dv .v-hill1 { fill: var(--dv-hill1); }
.dv .v-hill2 { fill: var(--dv-hill2); }
.dv .v-moon { fill: var(--dv-moon); }
.dv .v-star { fill: var(--dv-star); opacity: .8; }
.dv .v-glare { fill: #fff; opacity: .045; }
.dv .v-led { fill: none; stroke: var(--dv-led); stroke-width: 1.6; stroke-linecap: round; }
.dv .v-led2 { fill: var(--dv-led); }
.dv .v-seam { fill: none; stroke: var(--dv-wo); stroke-width: .8; vector-effect: non-scaling-stroke; }
.dv .v-slot { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 2; stroke-linecap: round; }
.dv .v-slot2 { fill: rgba(255,255,255,.22); }
.dv .v-cut { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; }
.dv .v-pm { fill: none; stroke: var(--dv-btnw); stroke-width: 1.6; stroke-linecap: round; }
.dv .v-pm2 { fill: none; stroke: var(--dv-btn); stroke-width: 1.6; stroke-linecap: round; }
.dv .v-jl { fill: #39b7e8; }
.dv .v-jr { fill: #ff5f5f; }
.dv .v-shadow { fill: var(--dv-shadow); }

/* ------------------------------------------------------------------ header */
#hdr { height: var(--hdr); }
.hdr { position: sticky; top: 0; z-index: 60; height: var(--hdr); background: var(--hdr-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-row { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand .mark { width: 30px; height: 30px; }
.brand-n { font: 700 19px/1 var(--font-display); letter-spacing: -.03em; }
.brand-p { font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--lime-fg); background: var(--lime); padding: 4px 6px 3px; border-radius: 6px; }
.mk-tile { fill: #0b0f2b; } .mk-line { stroke: #c3cdff; stroke-opacity: .75; } .mk-star { fill: #e6eaff; } .mk-bright { fill: var(--lime); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--fg-2); font-size: 15px; font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover { color: var(--fg); background: var(--panel-2); }
.nav a[aria-current] { color: var(--fg); }
.nav a[aria-current]::after { content: ""; display: block; height: 2px; margin: 3px auto -5px; width: 16px; border-radius: 2px; background: var(--accent); }
.hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-cta[aria-current] { box-shadow: 0 0 0 3px var(--accent-soft); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .hdr-row { gap: 12px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr)); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 32px; background: var(--bg); border-top: 1px solid var(--line); overflow-y: auto; }
  .nav.open { display: flex; animation: nav-in .25s var(--ease); }
  .nav a { padding: 18px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font: 650 26px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--fg); }
  .nav a:hover { background: transparent; color: var(--accent); }
  .nav a[aria-current]::after { display: none; }
  .nav a[aria-current] { color: var(--accent); }
  .menu-btn { display: inline-grid; }
  body.nav-open { overflow: hidden; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 380px) { .brand-p { display: none; } }
.nav-theme { display: none; }
/* narrow phones: the theme switch moves from the header into the menu */
@media (max-width: 420px) {
  .hdr-theme { display: none; }
  .nav-theme { display: flex; align-items: center; gap: 12px; min-height: 56px; margin-top: 12px; padding: 0 4px; border: 0; background: none; color: var(--fg-2); font-size: 16px; cursor: pointer; text-align: left; }
  .nav-theme svg { width: 20px; height: 20px; }
}
/* touch: every control at least 44px tall */
@media (max-width: 640px), (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .hdr-tools .btn-sm { height: 44px; }
  .chip { height: 44px; }
  .seg button { height: 44px; }
  .btn { height: 44px; }
  .btn-sm { height: 44px; }
  .btn-lg { height: 52px; }
  .brand { min-height: 44px; }
}

/* ------------------------------------------------------------------ announcement bar under the header (promotions)
   pre-rendered by tools/build_pages.py (console/server/promos.py bar_html), kept up to date by growth.js; styled here,
   not in growth.css, so it has its final size at first paint (no layout shift) */
.ann { position: relative; z-index: 59; background: var(--accent-soft); border-bottom: 1px solid var(--line); color: var(--fg); }
.ann-in { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 7px 0; }
.ann-t { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.45; text-align: center; text-wrap: balance; }
.ann-t b { font-weight: 600; }
.ann-go { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--accent); font-weight: 600; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ann-go svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.ann-go:hover svg { transform: translateX(2px); }
.ann-x { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--fg-2); cursor: pointer; }
.ann-x:hover { color: var(--fg); background: var(--accent-soft); }
.ann-x svg { width: 16px; height: 16px; }
@media (max-width: 640px), (pointer: coarse) {
  .ann-in { gap: 6px; }
  .ann-t { font-size: 13.5px; text-align: left; }
  .ann-x { width: 44px; height: 44px; margin-right: -10px; }
}
@media print { .ann { display: none !important; } }

/* ------------------------------------------------------------------ footer */
.ftr { border-top: 1px solid var(--line); margin-top: 0; background: var(--bg-2); }
.ftr-in { padding: 56px 0 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 40px; }
.ftr-brand p { color: var(--fg-2); font-size: 15px; max-width: 320px; margin-top: 16px; }
.ftr h2 { font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ftr-col > a { display: block; color: var(--fg-2); font-size: 15px; padding: 4px 0; width: fit-content; }
.ftr-col > a:hover { color: var(--fg); }
.contact { display: grid; gap: 10px; }
.contact dt { font-size: 12px; color: var(--muted); }
.contact dd { font-size: 15px; color: var(--fg); overflow-wrap: anywhere; }
.contact dd a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact dd a:hover { border-color: var(--accent); }
.ftr-base { padding: 20px 0 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.ftr-base a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.ftr-base a:hover { color: var(--fg); }
/* five columns only where they fit; below that the brand gets its own row, then links two by two (no 800px single column on phones) */
@media (max-width: 1100px) { .ftr-in { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; } .ftr-brand { grid-column: 1 / -1; } .ftr-brand p { max-width: 460px; } }
@media (max-width: 760px) { .ftr-in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 44px; } .ftr-contact { grid-column: 1 / -1; } }
@media (max-width: 640px), (pointer: coarse) { .ftr-col > a { padding: 11px 0; } .ftr h2 { margin-bottom: 4px; } .ftr-base a { display: inline-block; padding: 12px 0; margin: -12px 0; } }

/* ================================================================== home */
/* ---------- hero */
.hero { position: relative; padding: 56px 0 0; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 32px; align-items: center; min-height: min(680px, calc(100svh - var(--hdr) - 120px)); }
.hero-copy { position: relative; z-index: 2; padding: 24px 0 40px; }
.hero .display em { font-style: normal; color: var(--accent); }
.hero .display .ln { display: block; }
.hero .lede { margin-top: 26px; font-size: 19px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.from { margin-top: 22px; display: inline-flex; align-items: baseline; gap: 8px; color: var(--fg-2); font-size: 15px; }
.from b { font: 650 18px var(--font-display); color: var(--fg); letter-spacing: -.02em; }
#from[hidden] { display: inline-flex !important; visibility: hidden; }
.from-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); align-self: center; }
@media (max-width: 560px) { .from { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; } .from-sep { display: none; } }

.stage { position: relative; aspect-ratio: 1 / .96; width: 100%; max-width: 640px; justify-self: end; --mx: 0; --my: 0; --sy: 0; }
.stage .moon, .stage .orbit { will-change: transform; }
.stage .moon { position: absolute; left: 30%; top: 2%; width: 66%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -6px + var(--sy) * 40px), 0); }
.stage .moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.35), transparent 42%), radial-gradient(circle at 70% 76%, rgba(0,0,0,.12), transparent 50%); }
.stage .crater { position: absolute; border-radius: 50%; background: rgba(13,18,3,.07); }
.stage .orbit { position: absolute; left: 22%; top: -4%; width: 82%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--line-2); transform: translate3d(calc(var(--mx) * -3px), calc(var(--my) * -3px + var(--sy) * 20px), 0); }
.stage .sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--fg); opacity: .5; }
.stage .dev { position: absolute; transform: translate3d(calc(var(--mx) * var(--d) * 1px), calc(var(--my) * var(--d) * 1px + var(--sy) * var(--d) * -6px), 0) rotate(var(--r, 0deg)); transition: transform .5s var(--ease); will-change: transform; }
.stage .v-shadow, .end-art .v-shadow, .nf .v-shadow { display: none; }
.stage .dev svg { width: 100%; height: auto; filter: drop-shadow(0 24px 22px var(--dv-shadow)); }
.stage .d-ps5 { left: 22%; top: 6%; width: 26%; --d: 6; z-index: 2; }
.stage .d-ps5d { left: 50%; top: 16%; width: 23%; --d: 11; --r: 4deg; z-index: 3; }
.stage .d-pad { left: 31%; top: 68%; width: 30%; --d: 20; --r: -12deg; z-index: 5; }
.stage .tag-note { position: absolute; z-index: 6; font: 500 12px/1.2 var(--font-mono); color: var(--fg-2); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.stage .tag-note::before { content: ""; width: 24px; height: 1px; background: var(--fg-2); opacity: .6; }
.stage .tn-1 { left: 72%; top: 34%; color: var(--lime-fg); }
.stage .tn-1::before { background: var(--lime-fg); }
.stage .tn-1 b { font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
  .stage .dev { animation: drop .9s var(--ease) both; animation-delay: calc(200ms + var(--i, 0) * 90ms); }
  .stage .moon { animation: moon 1.2s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes drop { from { opacity: 0; translate: 0 -24px; } }
@keyframes moon { from { opacity: 0; scale: .86; } }

/* fact strip under the hero */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 32px; }
.fact { padding: 22px 24px 26px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 650 22px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--fg); }
.fact span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero-copy { padding-bottom: 8px; }
  .stage { justify-self: center; max-width: 560px; }
}
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .hero { padding-top: 32px; }
  .fact { padding: 18px 16px 20px; }
  .hero .lede { font-size: 17px; }
  .stage .tag-note { display: none; }
}

/* ---------- devices */
.dev-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.devs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dcard { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, box-shadow .3s, transform .3s var(--ease); color: var(--fg); }
.dcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.dcard-stage { position: relative; flex: none; height: 230px; padding: 46px 30px 22px; background: var(--stage); display: grid; place-items: center; overflow: hidden; }
.led-st { position: absolute; z-index: 2; left: 18px; top: 16px; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); color: var(--fg-2); }
.led-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.led-st.on::before { background: var(--lime); box-shadow: 0 0 0 3px var(--accent-soft); }
.led-st.warn::before { background: var(--warn); }
.led-st.bad::before { background: var(--bad); }
.dcard-stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 40%; background: radial-gradient(ellipse at 50% 100%, var(--stage-floor), transparent 70%); pointer-events: none; }
.dcard-stage .art { position: relative; width: 100%; height: 100%; }
.dcard-stage .art svg { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; transition: transform .5s var(--ease); filter: drop-shadow(0 16px 16px var(--dv-shadow)); }
.dcard:hover .dcard-stage .art svg { transform: translateY(-4px) rotate(-1.5deg); }
.dcard-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.dcard-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); min-height: 22px; }
.dcard h3 { font: 650 23px/1.12 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.dcard .sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.dcard .prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dcard .prices .price { font-size: 26px; }
.dcard .prices .wk { font-size: 14px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.inbox { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.inbox li { list-style: none; }
.inbox li:not(:last-child)::after { content: "·"; margin: 0 .5em; color: var(--line-2); }
.dcard-go { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15px; color: var(--fg); }
.dcard-go .ar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); transition: background .2s, color .2s; }
.dcard-go svg { width: 16px; height: 16px; }
.dcard:hover .dcard-go .ar { background: var(--lime); color: var(--lime-fg); }
.dcard.out { opacity: .78; }
.dcard.wide { grid-column: span 2; flex-direction: row; }
.dcard.wide .dcard-stage { flex: 1.1; height: auto; min-height: 330px; }
.dcard.wide .dcard-stage { padding: 56px 40px 36px; }
.dcard.wide .dcard-body { flex: 1; padding: 30px 30px 28px; }
.dcard.wide h3 { font-size: 30px; }
.dall { background: transparent; border-style: dashed; border-color: var(--line-2); }
.dall:hover { border-style: solid; }
.dall-arts { height: 230px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 26px 26px 0; align-content: center; }
.dall-arts .art svg { max-height: 74px; width: auto; max-width: 100%; opacity: .92; }
.dall h3 { font: 650 23px/1.12 var(--font-display); letter-spacing: -.02em; }
.skel { border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); height: 420px; position: relative; overflow: hidden; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--panel-2), transparent); transform: translateX(-100%); }
@media (prefers-reduced-motion: no-preference) { .skel::after { animation: shimmer 1.4s infinite; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@media (max-width: 980px) { .devs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .dcard.wide { grid-column: auto; flex-direction: column; }
  .dcard.wide .dcard-stage { flex: none; min-height: 0; height: 240px; }
  .dcard.wide h3 { font-size: 23px; }
  .dcard.wide .dcard-body { padding: 22px 24px 24px; }
}
@media (max-width: 640px) { .devs { grid-template-columns: 1fr; } .dcard-stage { height: 210px; } }

/* ---------- steps */
.steps { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: st; position: relative; }
.step { position: relative; padding: 0 28px 0 0; }
.step-n { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.step-n b { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 22px/1 var(--font-display); background: var(--panel); border: 1px solid var(--line-2); color: var(--fg); }
.step:first-child .step-n b { background: var(--lime); color: var(--lime-fg); border-color: transparent; }
.step-n i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.step:last-child .step-n i { display: none; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--fg-2); font-size: 15px; max-width: 280px; }
.step .step-art { margin-top: 16px; font: 500 12px var(--font-mono); color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 44px 0; }
  .step:nth-child(2) .step-n i { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; padding: 0 0 30px; }
  .step-n { grid-row: span 3; flex-direction: column; margin: 0; align-items: center; gap: 0; height: 100%; }
  .step-n i, .step:nth-child(2) .step-n i { display: block; flex: 1; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); margin-top: 8px; margin-bottom: -26px; }
  .step:last-child .step-n i { display: none; }
  .step h3 { margin-top: 12px; }
}

/* ---------- prices */
.price-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tbl .dev-cell { display: flex; align-items: center; gap: 14px; font-weight: 550; min-height: 44px; }
.tbl .dev-cell .art { width: 58px; height: 38px; flex: none; }
.tbl .dev-cell .art svg { max-height: 38px; width: auto; }
.tbl .save { display: block; font: 400 12px var(--font-sans); color: var(--accent); margin-top: 2px; }
.calc { position: sticky; top: calc(var(--hdr) + 20px); padding: 26px; display: grid; gap: 18px; }
.calc h3 { font-size: 22px; }
.calc .days-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc .days-out { font: 650 17px var(--font-display); color: var(--fg); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: -8px 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 10%), var(--line-2) var(--p, 10%)); border: 0; }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line-2); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--lime); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px rgba(0,0,0,.3); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--lime); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2); }
.calc-out { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; font-size: 14px; color: var(--fg-2); }
.calc-out .ln { display: flex; justify-content: space-between; gap: 12px; }
.calc-out .ln span:last-child { color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-out .tot { margin-top: 6px; align-items: baseline; color: var(--fg); font-weight: 550; }
.calc-out .tot .price { font-size: 30px; }
.calc-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } .calc { position: static; } }
@media (max-width: 640px) {
  .tbl-prices th, .tbl-prices td { padding: 12px 8px; }
  .tbl-prices th:first-child { padding-left: 14px; }
  .tbl-prices th[scope="row"] { min-width: 86px; }
  .tbl-prices td.num { white-space: nowrap; }
  .tbl-prices .save { display: none; }
  .tbl-prices .dev-cell .art { display: none; }
  .tbl-prices .col-dep { display: none; }
  .tbl-prices { font-size: 13px; }
}

/* ---------- delivery */
.deliv { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.deliv-free { padding: 36px 36px 32px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.deliv-free .big { font: 700 clamp(34px, 4.4vw, 52px)/1 var(--font-display); letter-spacing: -.03em; }
.deliv-free .big em { font-style: normal; color: var(--accent); }
.districts { display: flex; flex-wrap: wrap; gap: 4px 22px; font: 650 clamp(22px, 2.6vw, 30px)/1.3 var(--font-display); letter-spacing: -.02em; }
.districts li { list-style: none; white-space: nowrap; }
.districts li { display: inline-flex; align-items: center; gap: 10px; }
.districts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.pickup { flex-wrap: wrap; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; color: var(--fg-2); font-size: 15px; }
.pickup b { color: var(--fg); font-weight: 600; }
.deliv-side { display: grid; gap: 14px; align-content: start; }
.fee-row { padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; }
.fee-row h3 { font-size: 18px; }
.fee-row p { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.fee-row .price { font-size: 22px; white-space: nowrap; }
.deliv-how { display: grid; gap: 12px; margin-top: 10px; }
.deliv-how li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; color: var(--fg-2); }
.deliv-how li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
@media (max-width: 900px) { .deliv { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .deliv-free { padding: 26px 22px 22px; } .fee-row { padding: 18px 20px; } }

/* ---------- in the box */
.box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.box-stage { background: var(--stage); display: grid; place-items: center; padding: 48px 40px; min-height: 420px; position: relative; }
.box-stage .art { width: 100%; max-width: 420px; height: 320px; }
.box-stage .art svg { max-height: 320px; width: auto; filter: drop-shadow(0 22px 20px var(--dv-shadow)); }
.box-stage .art.swap svg { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.box-info { padding: 32px 36px 36px; display: grid; gap: 26px; align-content: start; }
.box-tabs { margin-bottom: 18px; }
@media (min-width: 900px) { .box-tabs { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 899.98px) { .box-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 30px; } }
.box-list { display: grid; gap: 0; }
.box-list li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.box-list li:last-child { border-bottom: 0; }
.box-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
#boxName, .tbl .dev-cell { overflow-wrap: anywhere; }
.box h4 { font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.games { display: flex; flex-wrap: wrap; gap: 6px 4px; font: 650 19px/1.35 var(--font-display); letter-spacing: -.015em; }
.games li { list-style: none; }
.games li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--muted); font-weight: 400; }
.games-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .box { grid-template-columns: 1fr; } .box-stage { min-height: 0; padding: 32px; } .box-stage .art { height: 240px; } .box-stage .art svg { max-height: 240px; } .box-info { padding: 26px 22px 28px; } }

/* ---------- policies */
.pols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; counter-reset: pol; }
.pol { padding: 22px 0 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; }
.pol::before { counter-increment: pol; content: counter(pol, decimal-leading-zero); font: 500 13px/1.7 var(--font-mono); color: var(--accent); }
.pol h3 { font-size: 18px; margin-bottom: 6px; }
.pol p { font-size: 15px; color: var(--fg-2); }
@media (max-width: 760px) { .pols { grid-template-columns: 1fr; } }

/* ---------- service promises (home, under the hero) */
.perks-sec { padding: 8px 0 72px; }
.perks { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; counter-reset: perk; }
.perk { padding-top: 20px; border-top: 1px solid var(--line); }
.perk::before { counter-increment: perk; content: counter(perk, decimal-leading-zero); display: block; margin-bottom: 10px; font: 500 12px/1 var(--font-mono); color: var(--accent); }
.perk h3 { font-size: 18px; margin-bottom: 6px; }
.perk p { font-size: 15px; color: var(--fg-2); }
@media (max-width: 760px) { .perks { grid-template-columns: 1fr; gap: 20px; } .perks-sec { padding-bottom: 56px; } }

/* ---------- FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.faq-grid .sec-hd { display: block; margin: 0; position: sticky; top: calc(var(--hdr) + 32px); }
.faq-grid .sec-hd .lede { margin-top: 18px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font: 600 19px/1.3 var(--font-display); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(var(--fg), var(--fg)) center / 10px 1.5px no-repeat, linear-gradient(var(--fg), var(--fg)) center / 1.5px 10px no-repeat; transition: transform .25s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--lime); border-color: transparent; background-image: linear-gradient(var(--lime-fg), var(--lime-fg)), linear-gradient(var(--lime-fg), var(--lime-fg)); }
.faq summary:hover { color: var(--accent); }
.faq .ans { padding: 0 48px 24px 0; color: var(--fg-2); font-size: 16px; max-width: 680px; }
.faq .ans p + p { margin-top: 10px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } .faq-grid .sec-hd { position: static; } }
@media (max-width: 560px) { .faq summary { font-size: 17px; padding-right: 40px; } .faq .ans { padding-right: 0; } }

/* ---------- final CTA */
.end { padding: 0 0 104px; }
.end-in { position: relative; overflow: hidden; border-radius: 32px; background: var(--lime); color: var(--lime-fg); padding: 64px 56px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.end-in h2 { font: 700 clamp(36px, 5.4vw, 68px)/.98 var(--font-display); letter-spacing: -.035em; color: var(--lime-fg); }
.end-in p { margin-top: 18px; font-size: 18px; max-width: 460px; color: rgba(13,18,3,.78); }
.end-in .cta-row { margin-top: 30px; }
.end-in .btn-primary { background: var(--lime-fg); color: var(--lime); box-shadow: none; }
.end-in .btn-primary:hover { background: #000; box-shadow: 0 0 0 4px rgba(13,18,3,.15); }
.end-in .btn:not(.btn-primary) { background: transparent; color: var(--lime-fg); border-color: rgba(13,18,3,.3); }
.end-in .btn:not(.btn-primary):hover { border-color: var(--lime-fg); }
.end-in .btn:focus-visible { outline-color: var(--lime-fg); }
.end-art { position: relative; height: 100%; min-height: 260px; }
.end-art .art { position: absolute; }
.end-art .art svg { filter: drop-shadow(0 20px 18px rgba(13,18,3,.3)); }
.end-art .a1 { width: 72%; right: 4%; top: 6%; transform: rotate(-8deg); }
.end-art .a2 { width: 46%; left: 6%; bottom: 0; transform: rotate(10deg); }
@media (max-width: 860px) { .end-in { grid-template-columns: 1fr; padding: 44px 28px 32px; border-radius: 24px; } .end-art { min-height: 220px; } }
@media (max-width: 640px) { .end { padding-bottom: 64px; } }

/* ---------- 404 */
.nf { padding: 72px 0 120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.nf .code { font: 500 14px var(--font-mono); color: var(--muted); letter-spacing: .1em; margin-bottom: 16px; }
.nf .art { max-width: 460px; aspect-ratio: 164 / 121; transform: rotate(-6deg); }
.nf .art svg { filter: drop-shadow(0 22px 20px var(--dv-shadow)); }
@media (max-width: 760px) { .nf { grid-template-columns: 1fr; padding: 40px 0 80px; } .nf .art { max-width: 320px; } }

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

/* ================================================================== range picker */
/* rangepicker.js: hotel-style "Ngày nhận máy → Ngày trả máy" picker (popover on desktop, bottom sheet on phones),
   the date trigger on /dat-may/ (.rp-trigger) and the booking bar in the hero (.rp-bar). */
.rp { position: absolute; z-index: 120; display: flex; flex-direction: column; width: max-content; max-width: calc(100vw - 24px); background: var(--panel); color: var(--fg); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); font-size: 15px; line-height: 1.4; }
:root[data-theme="light"] .rp { box-shadow: 0 1px 2px rgba(17,19,30,.06), 0 24px 56px -24px rgba(17,19,30,.28); }
.rp-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(4,5,9,.6); }
:root[data-theme="light"] .rp-scrim { background: rgba(17,19,30,.32); }
html.rp-lock, html.rp-lock body { overflow: hidden; }

.rp-head { display: grid; gap: 14px; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); }
.rp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp-title { font: 600 15px/1.2 var(--font-display); letter-spacing: -.01em; }
.rp-close { width: 34px; height: 34px; margin: -4px -6px -4px 0; }
.rp-sel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(112px, auto); align-items: center; gap: 10px; }
.rp-f { display: grid; gap: 3px; min-width: 0; padding: 9px 13px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel-2); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.rp-f:hover { border-color: var(--fg-2); }
.rp-f.on { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); background: var(--panel); }
.rp-f-l { font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rp-f-v { font-weight: 600; font-size: 16px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rp-f.empty .rp-f-v { color: var(--muted); font-weight: 500; }
.rp-to { color: var(--muted); }
.rp-to svg { width: 18px; height: 18px; }
.rp-count { display: grid; justify-items: end; gap: 2px; min-height: 40px; align-content: center; text-align: right; }
.rp-count b { font: 650 20px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--fg); white-space: nowrap; }
.rp-count span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chips .chip { height: 34px; }

.rp-body { position: relative; padding: 14px 20px 4px; }
.rp-nav { position: absolute; top: 10px; width: 36px; height: 36px; }
.rp-nav.rp-prev { left: 14px; } .rp-nav.rp-next { right: 14px; }
.rp-nav:disabled { opacity: .3; cursor: default; }
.rp-months { display: flex; gap: 32px; align-items: flex-start; }
.rp-m { flex: none; width: 308px; }
.rp-mt { height: 28px; margin-bottom: 6px; font: 600 15px/28px var(--font-display); letter-spacing: -.01em; text-align: center; color: var(--fg); }
.rp-grid { width: 100%; border-collapse: separate; border-spacing: 0 3px; table-layout: fixed; }
.rp-grid th { height: 26px; padding: 0; font: 500 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--muted); text-align: center; }
.rp-grid td { position: relative; height: 44px; padding: 0; text-align: center; }
/* the in-between band: a soft tint behind the days, half-width behind the two ends */
.rp-grid td.in::before, .rp-grid td.band-s::before, .rp-grid td.band-e::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: var(--accent-soft); }
.rp-grid td.band-s::before { left: 50%; }
.rp-grid td.band-e::before { right: 50%; }
.rp-grid td.pv::before, .rp-grid td.band-e.pvend::before { opacity: .6; }
.rp-grid td.in:first-child::before { border-radius: 12px 0 0 12px; }
.rp-grid td.in:last-child::before { border-radius: 0 12px 12px 0; }
.rp-grid .rp-e + td.in::before { border-radius: 12px 0 0 12px; }
.rp-grid td.in:has(+ .rp-e)::before { border-radius: 0 12px 12px 0; }
.rp-grid td.band-e:first-child::before, .rp-grid td.band-s:last-child::before { display: none; }
.rp-day { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--fg); font: 500 15px/1 var(--font-sans); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .12s, color .12s, box-shadow .12s; }
@media (hover: hover) { .rp-day:hover { box-shadow: inset 0 0 0 1px var(--fg-2); } }
.rp-day:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.rp-x { display: none; font: 500 9px/1 var(--font-sans); letter-spacing: 0; color: var(--muted); }
.rp-day.is-today .rp-n { position: relative; }
.rp-day.is-today .rp-n::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.rp-day.is-today { font-weight: 650; }
.rp-day.is-past { color: var(--muted); opacity: .45; cursor: default; }
.rp-day.is-past:hover { box-shadow: none; }
.rp-day.is-out .rp-n { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.rp-day.is-out .rp-x { display: block; }
.rp-day.is-out.is-today .rp-n::after { display: none; }
.rp-day.is-blocked { color: var(--muted); opacity: .5; cursor: not-allowed; }
.rp-day.is-blocked:hover { box-shadow: none; }
.rp-day.is-pvend { box-shadow: inset 0 0 0 1.5px var(--fg); }
.rp-day.is-start, .rp-day.is-end, .rp-day.is-start:hover, .rp-day.is-end:hover { background: var(--lime); color: var(--lime-fg); font-weight: 650; opacity: 1; box-shadow: none; }
.rp-day.is-start .rp-n, .rp-day.is-end .rp-n { color: var(--lime-fg); }
.rp-day.is-start .rp-x { color: var(--lime-fg); opacity: .75; }
/* a sold-out day can still be the return day (it is not rented): no strike-through there */
.rp-day.is-end .rp-x, .rp-day.is-pvend .rp-x { display: none; }
.rp-day.is-end .rp-n, .rp-day.is-pvend .rp-n { text-decoration: none; color: inherit; }
.rp-day.is-start.is-today .rp-n::after, .rp-day.is-end.is-today .rp-n::after { background: var(--lime-fg); }
.rp-more { display: block; margin: 8px auto 4px; }

.rp-info { min-height: 38px; margin: 0; padding: 8px 20px 10px; font-size: 13.5px; color: var(--fg-2); max-width: 688px; }
.rp-info.bad { color: var(--bad); }
.rp-info.legend, .rp-legend { color: var(--muted); }
.rp-legend { white-space: nowrap; }
.rp-key { display: inline-block; margin-right: 4px; font: 500 12px var(--font-sans); font-style: normal; text-decoration: line-through; color: var(--muted); }
.rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px 14px; border-top: 1px solid var(--line); }
.rp-price { display: grid; gap: 1px; min-width: 0; }
.rp-p-l { font-size: 13px; color: var(--fg-2); }
.rp-p-v { font-size: 22px; }
.rp-p-s { font-size: 12.5px; color: var(--muted); }
.rp-act { display: flex; gap: 8px; flex: none; }
.rp-act .btn { min-width: 76px; }

/* one month when two do not fit beside the anchor */
.rp.rp-one .rp-sel { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.rp.rp-one .rp-count { grid-column: 1 / -1; justify-items: start; text-align: left; min-height: 0; }
.rp.rp-one .rp-info { max-width: 348px; }

/* phones: a full-height bottom sheet, months stacked and scrolled, the footer stays at the bottom */
.rp.rp-sheet { position: fixed; left: 0; right: 0; bottom: 0; top: max(10px, env(safe-area-inset-top)); width: auto; max-width: none; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; }
.rp-sheet .rp-head { padding: 10px 16px 12px; gap: 12px; }
.rp-sheet .rp-close { width: 44px; height: 44px; margin: -6px -10px -6px 0; }
.rp-sheet .rp-sel { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
.rp-sheet .rp-count { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; justify-content: flex-start; min-height: 22px; text-align: left; }
.rp-sheet .rp-count b { font-size: 17px; }
.rp-sheet .rp-f { min-height: 56px; padding: 8px 12px; }
.rp-sheet .rp-chips { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.rp-sheet .rp-chips::-webkit-scrollbar { display: none; }
.rp-sheet .rp-chips .chip { height: 44px; padding: 0 13px; flex: none; }
.rp-sheet .rp-chip-x { display: none; }
.rp-sheet .rp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 12px 8px; }
.rp-sheet .rp-nav { display: none; }
.rp-sheet .rp-months { flex-direction: column; gap: 18px; }
.rp-sheet .rp-m { width: 100%; }
.rp-sheet .rp-mt { position: sticky; top: 0; z-index: 2; height: 40px; margin: 0; line-height: 40px; text-align: left; padding-left: 6px; background: var(--panel); }
.rp-sheet .rp-grid td, .rp-sheet .rp-day { height: 48px; }
.rp-sheet .rp-day { font-size: 16px; }
.rp-sheet .rp-x { font-size: 10px; }
.rp-sheet .rp-info { min-height: 0; padding: 8px 16px; max-width: none; border-top: 1px solid var(--line); font-size: 13px; }
.rp-sheet .rp-info:not(:empty) + .rp-foot { border-top: 0; padding-top: 4px; }
.rp-sheet .rp-price.has-price .rp-p-s { display: none; }
.rp-sheet .rp-info:empty { display: none; }
.rp-sheet .rp-foot { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); gap: 12px; }
.rp-sheet .rp-act .btn { height: 48px; min-width: 0; }
.rp-sheet .rp-p-v { font-size: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .rp.rp-pop:not([hidden]) { animation: rp-in .14s ease-out both; }
  .rp.rp-sheet:not([hidden]) { animation: rp-up .24s var(--ease) both; }
  .rp-scrim:not([hidden]) { animation: rp-fade .2s ease-out both; }
}
@keyframes rp-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes rp-up { from { transform: translateY(24px); opacity: .4; } }
@keyframes rp-fade { from { opacity: 0; } }

/* trigger button that stands in for the two date inputs (/dat-may/) */
.rp-trigger { display: grid; grid-template-columns: minmax(0, max-content) auto minmax(0, max-content) minmax(0, 1fr); align-items: center; gap: 12px 20px; width: 100%; min-height: 64px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); color: var(--fg); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.rp-trigger:hover { border-color: var(--fg-2); }
.rp-trigger[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rp-t-part { display: grid; gap: 3px; min-width: min(9.5em, 100%); }
.rp-t-l { font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rp-t-v { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rp-trigger.rp-empty .rp-t-v { color: var(--muted); font-weight: 500; }
.rp-t-arrow { color: var(--muted); }
.rp-t-arrow svg { width: 18px; height: 18px; }
.rp-t-n { justify-self: end; min-width: 64px; padding: 5px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font: 500 13px/1.2 var(--font-mono); color: var(--fg); text-align: center; white-space: nowrap; }
.rp-t-n:empty { visibility: hidden; }
.field.err .rp-trigger { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
@media (max-width: 640px) {
  .rp-trigger { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px 10px; padding: 10px 14px; }
  .rp-t-n { grid-column: 1 / -1; justify-self: start; min-width: 0; padding: 3px 9px; }
  .rp-t-n:empty { display: none; }
}

/* booking bar: [Máy ▾] [Ngày nhận → Ngày trả] [Xem giá & đặt] */
.rp-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) auto; align-items: stretch; gap: 0; max-width: 620px; margin-top: 26px; padding: 6px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.rp-bar-seg { position: relative; display: grid; align-content: center; gap: 5px; min-width: 0; min-height: 58px; padding: 8px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--fg); text-align: left; cursor: pointer; transition: background .15s; }
.rp-bar-seg:hover, .rp-bar-seg:focus-within { background: var(--panel-2); }
.rp-bar-seg + .rp-bar-seg::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line-2); }
.rp-bar-seg:hover::before, .rp-bar-seg:focus-within::before, .rp-bar-seg:hover + .rp-bar-seg::before { opacity: 0; }
.rp-bar-l { display: flex; gap: 8px; align-items: baseline; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.rp-bar-l [data-rp-days] { color: var(--accent); letter-spacing: .02em; text-transform: none; }
.rp-bar-v { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rp-bar-dates.rp-empty .rp-bar-v { color: var(--muted); font-weight: 500; }
.rp-bar-v i { font-style: normal; color: var(--muted); padding: 0 2px; }
.rp-bar select { width: 100%; min-width: 0; height: auto; padding: 0 22px 0 0; border: 0; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0 center / 16px; color: var(--fg); font-weight: 600; font-size: 15px; line-height: 1.25; text-overflow: ellipsis; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; }
.rp-bar select option { background: var(--panel); color: var(--fg); }
.rp-bar-dev:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }
.rp-bar-dates:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.rp-bar .btn-primary { height: auto; min-height: 58px; margin-left: 6px; padding: 0 16px; border-radius: 12px; }
@media (max-width: 640px) {
  .rp-bar { grid-template-columns: minmax(0, 1fr); max-width: none; margin-top: 24px; padding: 4px; border-radius: 16px; }
  .rp-bar-seg { min-height: 60px; padding: 8px 12px; }
  .rp-bar select, .rp-bar-v { font-size: 16px; } /* 16px: no zoom on focus in iOS Safari */
  .rp-bar-seg + .rp-bar-seg::before { left: 12px; right: 12px; top: 0; bottom: auto; width: auto; height: 1px; }
  .rp-bar .btn-primary { min-height: 52px; margin: 4px 0 0; width: 100%; }
}

/* ------------------------------------------------------------------ home: "Thuê PS5 có sẵn GTA VI" (text only, no game art; tools/build_pages.py home_gta) */
.gta-sec { padding: 0 0 72px; }
.gta { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; padding: 34px 36px; }
.gta-copy .lede { margin-top: 12px; max-width: 560px; }
.gta-copy .cta-row { margin-top: 22px; }
.gta-more { margin-top: 16px; font-size: 14px; }
.gta-more a { color: var(--fg-2); text-underline-offset: 3px; }
.gta-more a:hover { color: var(--fg); }
.gta-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gta-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); }
.gta-ed { font-weight: 600; font-size: 17px; }
.gta-p { font: 600 16px/1.2 var(--font-display); color: var(--accent); white-space: nowrap; }
.gta-sub { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .gta { grid-template-columns: 1fr; padding: 26px 22px; } .gta-sec { padding-bottom: 56px; } }
/* home: the slim "Chơi từ xa" card under the GTA VI block (tools/build_pages.py remote_teaser; .season look) */
.rm-teaser-sec { margin-top: -48px; padding: 0 0 72px; }
.season.rm-teaser { display: grid; }                    /* a.card is display: block */
.rm-teaser .season-t b { color: var(--fg); font-weight: 600; }
@media (max-width: 900px) { .rm-teaser-sec { margin-top: -36px; padding-bottom: 56px; } }

/* ------------------------------------------------------------------ showing the value: "Giá đã gồm", savings, tier nudges, combos, "Thuê trước, mua sau", Tết
   (tools/build_pages.py included_box, combos_html, season_banner, buy_later_section, tet_page; site.js CS.includedHTML; the home calculator) */
.incl { list-style: none; margin: 0; padding: 0; display: grid; }
.incl li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--fg); }
.incl li:last-child { border-bottom: 0; }
.incl svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.incl-hi > span { font-weight: 600; }
.incl-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 600 11px/1.6 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; white-space: nowrap; }
.incl-wrap { margin-top: 20px; }
.price-grid > .incl-wrap { margin-top: 0; }
@media (min-width: 981px) { .price-grid > .calc { grid-row: span 2; } .price-grid > .incl-wrap { grid-column: 1; } }
.incl-box { display: grid; gap: 12px; padding: 22px 24px; }
.incl-box .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.incl-box .incl li { border-bottom: 0; padding: 5px 0; }
.incl-box .incl .incl-hi { grid-column: 1 / -1; padding-bottom: 9px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.incl-h { margin: 0; font-size: 18px; }
.incl-note { margin: 0; font-size: 13px; line-height: 1.5; }
@media (max-width: 640px) { .incl-box { padding: 18px; } .incl-box .incl { grid-template-columns: 1fr; } }

.calc-save { margin: 0; font-size: 13px; color: var(--accent); text-align: right; }
.calc-nudge { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); font-size: 14px; line-height: 1.5; color: var(--fg); }
.calc-nudge[hidden] { display: none; }
.calc-nudge p { margin: 0; }
.calc-nudge .btn { justify-self: start; }

.season-wrap { padding-bottom: 8px; }
.season-wrap + .combo-sec { padding-top: 64px; border-top: 0; }
.season { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; padding: 16px 22px; color: var(--fg); text-decoration: none; transition: border-color .15s; }
.season:hover { border-color: var(--line-2); }
.season-k { font: 500 12px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.season-t { font-size: 15px; line-height: 1.45; color: var(--fg-2); }
.season-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.season-go svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .season { grid-template-columns: 1fr; padding: 16px 18px; } }

.combo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.combo-card { display: grid; grid-template-rows: auto auto auto auto 1fr auto auto; gap: 12px; padding: 24px; }
.combo-name { margin: 0; }
.combo-benefit { margin: 0; font: 600 18px/1.35 var(--font-display); color: var(--accent); }
.combo-inc li { padding: 7px 0; font-size: 14.5px; }
.combo-cond { margin: 0; font-size: 14px; line-height: 1.5; }
.combo-ex { align-self: end; display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.combo-save { font: 650 16px/1.3 var(--font-display); color: var(--fg); }
.combo-go { justify-self: start; }
.combo-go svg { width: 14px; height: 14px; margin-left: 4px; }
.combo-when { margin: 0; font-size: 12.5px; line-height: 1.45; }
@media (max-width: 640px) { .combo-card { padding: 20px; } }

.bl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; padding: 34px 36px; }
.bl-copy .lede { margin-top: 12px; }
.bl-ex { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.bl-list li { font-size: 14.5px; line-height: 1.5; }
@media (max-width: 900px) { .bl { grid-template-columns: 1fr; padding: 26px 22px; } }

.tet-avail { padding: 20px 22px; }
.tet-avail .tbl-wrap { border-radius: var(--radius); }
.tet-fallback { margin: 0; font-size: 14px; line-height: 1.5; }
.tet-asof { margin: 12px 0 0; font-size: 13px; line-height: 1.5; }
.tet-tbl thead .save { color: var(--muted); }
.tet-tbl tbody th .save { color: var(--muted); }
.tet-n { color: var(--ok); font-weight: 600; }
.tet-out { color: var(--muted); }
.tet-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.tet-card { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; padding: 22px; }
.tet-card .h3 { margin: 0; }
.tet-dates { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg-2); }
.tet-price { margin: 0; }
.tet-price .price { font-size: 26px; }
.tet-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tet-prices li { display: flex; justify-content: space-between; gap: 12px; }
.tet-prices .price { font-size: 18px; }
.tet-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; font-size: 13.5px; line-height: 1.45; color: var(--fg-2); }
.tet-notes li { position: relative; padding-left: 14px; }
.tet-notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 2px; border-radius: 2px; background: var(--accent); }
.tet-card .btn { justify-self: start; }
.tet-card .btn svg { width: 14px; height: 14px; margin-left: 4px; }
.lp-save-note { font-size: 13px; }
