@layer theme, base, legacy, components, utilities;
@layer legacy {
/* Cafora Host shop. Self-contained; the look is the official site's (caforahost.com brand/tokens.css
   + assets/site.css). Template and component states: docs/ui-template/. Home storyboard and its
   transition language: docs/storyboard/. Motion rules live in section 3 and the end of the file. */

/* ================================================================ 1. tokens (copied from the site) */
:root {
  color-scheme: light;
  --ink: #2A1E17; --ink-soft: #4A3B31; --muted: #6B5B50;
  --paper: #FAF7F2; --card: #FFFFFF; --oat: #EFE8DC; --line: #E6DDD0;
  --on-ink: #FAF7F2; --on-ink-soft: #E9E1D5; --on-ink-muted: #CFC5B8;
  --glass-strong: rgb(255 255 255 / .78); --glass-edge: rgb(255 255 255 / .85);
  --ok: #3F8A5A; --ok-bg: #E6F1E9; --warn: #9A6A12; --warn-bg: #F7EBD3;
  --bad: #A63A2B; --bad-bg: #F6E1DC; --info: #4A3B31; --info-bg: #EFE8DC;
  --step-1: clamp(19px, 0.4vw + 17px, 21px);
  --step-2: clamp(22px, 0.8vw + 18px, 26px);
  --step-3: clamp(26px, 1.4vw + 19px, 33px);
  --step-4: clamp(30px, 2.2vw + 19px, 41px);
  --step-5: clamp(34px, 3.4vw + 17px, 52px);
  --cjk: 1;
  --r-ctl: 10px; --r-sm: 8px; --r-lg: 10px; --r-xl: 14px;
  --font: 'Outfit', 'PingFang SC', 'PingFang TC', 'Microsoft YaHei', 'Microsoft JhengHei', 'Noto Sans SC', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --side: 264px; --wrapw: 1240px;
  /* aliases the React islands and older markup use */
  --bg: var(--paper); --surface: var(--card); --sunken: var(--oat); --line-strong: color-mix(in srgb, var(--ink) 22%, var(--line));
  --text: var(--ink); --text-2: var(--ink-soft); --primary: var(--accent); --on-primary: var(--on-accent);
  /* accent: solid buttons, the current choice, focus. Ink in light mode, gold in dark mode and
     on dark surfaces (owner's choice, 2026-11-25: dark background #111111, gold accent). */
  --accent: var(--ink); --on-accent: var(--paper);
  --hover: rgb(42 30 23 / .05); --serif: var(--font); --sans: var(--font);
  --shadow-pop: 0 20px 50px -20px rgb(42 30 23 / .3);

  /* ---- motion tokens ---- */
  --ease: cubic-bezier(.2, .7, .1, 1);            /* the site's */
  --ease-out: cubic-bezier(.16, 1, .3, 1);         /* reveals */
  --ease-in: cubic-bezier(.7, 0, .84, 0);          /* exits */
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.077, 1.121 24.4%, 1.127 26.2%, 1.104 29.4%, 1.04 35.6%, 1.002 40.6%, .983 45.3%, .978 49.3%, .991 61.1%, 1.002 74.7%, 1);
  --spring-soft: linear(0, .028 1.8%, .113 3.9%, .531 11.3%, .772 16.4%, .927 21.5%, 1.008 26.6%, 1.043 31.6%, 1.047 36.2%, 1.025 45.5%, 1.003 56.6%, .996 67.4%, 1);
  --t-fast: .18s; --t-std: .32s; --t-med: .48s; --t-slow: .75s;
}
:root:lang(zh) { --cjk: .92; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #FAF7F2; --ink-soft: #E9E1D5; --muted: #CFC5B8;
    --paper: #111111; --card: #1C1C1C; --oat: #262626; --line: rgb(255 255 255 / .1);
    --on-ink: #2A1E17; --on-ink-soft: #4A3B31; --on-ink-muted: #6B5B50;
    --glass-strong: rgb(28 28 28 / .8); --glass-edge: rgb(255 255 255 / .1);
    --ok: #7FC59A; --ok-bg: rgb(127 197 154 / .14); --warn: #E6B964; --warn-bg: rgb(230 185 100 / .14);
    --bad: #EE8E7E; --bad-bg: rgb(238 142 126 / .14); --info: #E9E1D5; --info-bg: #262626;
    --hover: rgb(255 255 255 / .06); --shadow-pop: 0 16px 48px -16px rgb(0 0 0 / .6);
    --accent: #C5A253; --on-accent: #111111;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #FAF7F2; --ink-soft: #E9E1D5; --muted: #CFC5B8;
  --paper: #111111; --card: #1C1C1C; --oat: #262626; --line: rgb(255 255 255 / .1);
  --on-ink: #2A1E17; --on-ink-soft: #4A3B31; --on-ink-muted: #6B5B50;
  --glass-strong: rgb(28 28 28 / .8); --glass-edge: rgb(255 255 255 / .1);
  --ok: #7FC59A; --ok-bg: rgb(127 197 154 / .14); --warn: #E6B964; --warn-bg: rgb(230 185 100 / .14);
  --bad: #EE8E7E; --bad-bg: rgb(238 142 126 / .14); --info: #E9E1D5; --info-bg: #262626;
  --hover: rgb(255 255 255 / .06); --shadow-pop: 0 16px 48px -16px rgb(0 0 0 / .6);
  --accent: #C5A253; --on-accent: #111111;
}

/* ================================================================ 2. base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; caret-color: var(--ink); interpolate-size: allow-keywords; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color var(--t-med), color var(--t-med); }
h1, h2, h3 { font-weight: 500; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: calc(var(--step-5) * var(--cjk)); line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: calc(var(--step-4) * var(--cjk)); line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: calc(var(--step-2) * var(--cjk)); line-height: 1.3; letter-spacing: -.01em; }
:lang(zh) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
/* Chinese headings break between words (Latin words and runs of Han characters stay whole) and
   only split a run when it cannot fit at all */
:lang(zh) :is(h1, h2) { word-break: keep-all; overflow-wrap: anywhere; }
h4 { font: 500 16px/1.4 var(--font); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 500; }
a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color var(--t-fast), opacity var(--t-fast); }
a:hover { text-decoration-color: currentColor; }
img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
code, kbd { font: 14px/1.5 var(--mono); background: var(--oat); border-radius: 6px; padding: 1px 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; transition: outline-offset var(--t-fast) var(--ease); }
::selection { background: color-mix(in srgb, var(--ink) 18%, transparent); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; transition: top var(--t-std) var(--spring); }
.skip:focus { top: 12px; }
.mark { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: var(--sw, 12); stroke-linejoin: round; stroke-linecap: round; overflow: visible; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* text helpers */
.eyebrow { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 300; }
.eyebrow a { color: inherit; }
.lede { font-size: var(--step-1); font-weight: 300; line-height: 1.6; color: var(--ink-soft); max-width: 40em; }
.fine, .hint { font-size: 14px; color: var(--muted); font-weight: 300; }
.hint { margin: 6px 0 0; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.price { font-variant-numeric: tabular-nums; }
.label { font: 500 14px/1.4 var(--font); color: var(--muted); margin: 0 0 12px; }
.danger { color: var(--bad); }
.where { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; margin: 0; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ================================================================ 3. motion: keyframes and page transitions */
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(5px); } }
@keyframes rise-card { from { opacity: 0; transform: translateY(22px) scale(.97); filter: blur(4px); } }
@keyframes rise-title { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(.35em); } to { clip-path: inset(0 0 -20% 0); } }
@keyframes slide-row { from { opacity: 0; transform: translateX(-10px); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(-4px) scale(.97); } }
@keyframes pop-up-in { from { opacity: 0; transform: translateY(6px) scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes bump { 35% { transform: scale(1.35); } 65% { transform: scale(.92); } }
@keyframes pulse-dot { 50% { opacity: .3; transform: scale(.7); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes steam { 0% { opacity: 0; stroke-dashoffset: 40; transform: translateY(6px); } 30% { opacity: .6; } 100% { opacity: 0; stroke-dashoffset: -40; transform: translateY(-10px); } }
@keyframes tick { 40% { transform: scale(1.12); } }
@keyframes check-draw { from { clip-path: inset(0 100% 0 0); } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); filter: blur(3px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* Elements the entrance script picks up: hidden only once the script has run (.js), and only
   until their turn comes (.in). A safety timer in shop.js releases anything left behind. */
.js .mv:not(.mv-in) { opacity: 0; }
.mv.mv-in { animation: rise var(--t-slow) var(--ease-out) both; animation-delay: var(--d, 0ms); }
.mv.mv-in[data-mv="card"] { animation-name: rise-card; }
.mv.mv-in[data-mv="title"] { animation: rise-title .9s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.mv.mv-in[data-mv="row"] { animation: slide-row var(--t-med) var(--ease-out) both; animation-delay: var(--d, 0ms); }
.mv.mv-in[data-mv="drop"] { animation: drop-in var(--t-med) var(--spring-soft) both; animation-delay: var(--d, 0ms); }
.mv.mv-in[data-mv="err"] { animation: drop-in var(--t-std) var(--ease-out) both, shake .45s .25s; }

/* Cross-document page transitions: the nav pill and the sidebar stay put, the page cross-fades,
   the content then arrives through the entrance script. Shared elements morph (plan name,
   segmented-control pill). */
@view-transition { navigation: auto; }
.site-head { view-transition-name: site-nav; }
.side { view-transition-name: side; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-in) both; }
::view-transition-new(root) { animation: fade-in .3s .06s var(--ease-out) both; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease-out); }
::view-transition-group(site-nav), ::view-transition-group(side) { animation-duration: .35s; }
.seg-row .seg:nth-of-type(1) [aria-current] { view-transition-name: seg-pill-a; }
.seg-row .seg:nth-of-type(2) [aria-current] { view-transition-name: seg-pill-b; }
.seg-row .seg:nth-of-type(3) [aria-current] { view-transition-name: seg-pill-c; }
::view-transition-group(seg-pill-a), ::view-transition-group(seg-pill-b), ::view-transition-group(seg-pill-c) { animation-timing-function: var(--spring); animation-duration: .6s; }
/* theme switch: a circle grows from the toggle (shop.js drives the clip-path) */
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-new(root) { z-index: 2; }
html.theme-vt body { transition: none; }

/* ================================================================ 4. buttons and controls */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 30px; border-radius: 999px; border: 1px solid transparent;
  font: 500 17px/1.1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: translate var(--t-std) var(--ease), scale .5s var(--spring), background-color var(--t-std), color var(--t-std), border-color var(--t-std), box-shadow var(--t-std) var(--ease); }
.btn:hover { translate: 0 -2px; }
.btn:active { scale: .96; transition-duration: .08s, .08s, var(--t-std), var(--t-std), var(--t-std), var(--t-std); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-danger { background: transparent; color: var(--bad); border-color: currentColor; }
.btn-danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn .ic { transition: translate var(--t-std) var(--ease); }
.btn:hover .ic { translate: 3px 0; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .4; cursor: not-allowed; translate: none; scale: 1; box-shadow: none; }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--paper); border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-line.is-busy::after { border-color: var(--ink); border-right-color: transparent; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; cursor: pointer; }
button.link:hover { text-decoration-color: currentColor; }
.icon-btn, .theme-toggle { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background-color var(--t-fast), transform .5s var(--spring), border-color var(--t-fast); }
.icon-btn:hover { background: var(--hover); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.92); }
.theme-toggle:hover { transform: rotate(-20deg); }
.icon-btn svg, .theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle svg { transition: transform .6s var(--spring), opacity var(--t-std); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .moon { display: block; } }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 500 11.5px/1 var(--font); margin-left: 6px; }
.cart-count.bump { animation: bump .55s var(--spring); }
.icon-btn .cart-count { position: absolute; top: -4px; right: -4px; margin: 0; }

/* ================================================================ 5. public shell: floating glass nav, site footer */
.wrap { min-height: 100vh; display: flex; flex-direction: column; }
.wrap > main { flex: 1; width: 100%; max-width: var(--wrapw); margin: 0 auto; padding: 56px 32px 112px; }
.wrap > main:has(> .home-story) { max-width: none; padding: 0; }
.site-head { position: sticky; top: 14px; z-index: 50; width: calc(100% - 64px); max-width: calc(var(--wrapw) - 64px); margin: 14px auto 0; }
/* no bar behind the links: the page shows through, and the top blur band (top-blur island) keeps
   them readable once content scrolls under them */
.head-in { display: flex; align-items: center; gap: 16px; height: 62px; padding: 8px 8px 8px 20px; border-radius: 999px; background: none; border: 0; }
/* the navbar takes the palette of the colour under it (header[data-over], set by the top-blur
   island as the page scrolls): ink on paper, paper on the espresso bands, whatever the theme */
.site-head[data-over], body:has(.hs-cine) .site-head:not([data-over]) { --bg: var(--paper); --surface: var(--card); --sunken: var(--oat); --line-strong: color-mix(in srgb, var(--ink) 22%, var(--line));
  --text: var(--ink); --text-2: var(--ink-soft); --primary: var(--accent); --on-primary: var(--on-accent); color: var(--ink); }
.site-head[data-over="light"] { color-scheme: light; --ink: #2A1E17; --ink-soft: #4A3B31; --muted: #6B5B50; --paper: #FAF7F2; --card: #FFFFFF; --oat: #EFE8DC; --line: #E6DDD0; --on-ink: #FAF7F2; --hover: rgb(42 30 23 / .05); --accent: #2A1E17; --on-accent: #FAF7F2; }
/* the home hero is always dark: before the top-blur island has sampled, start the navbar there */
.site-head[data-over="dark"], body:has(.hs-cine) .site-head:not([data-over]) { color-scheme: dark; --ink: #FAF7F2; --ink-soft: #E9E1D5; --muted: #CFC5B8; --paper: #111111; --card: #1C1C1C; --oat: #262626; --line: rgb(255 255 255 / .1); --on-ink: #2A1E17; --hover: rgb(255 255 255 / .06); --accent: #C5A253; --on-accent: #111111; }
.site-head .head-in :is(a, summary, button, .brand) { transition: color var(--t-std) var(--ease), background-color var(--t-std) var(--ease), border-color var(--t-std) var(--ease); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-size: 34px; flex: none; }
.brand .mark { --sw: 12; transition: transform .6s var(--spring); }
.brand:hover .mark { transform: rotate(-8deg); }
.wordmark { font: 300 22px/1 var(--font); letter-spacing: .02em; white-space: nowrap; }
.wordmark b { font-weight: 500; }
.primary-nav { flex: 1; display: flex; justify-content: center; gap: 2px; }
.primary-nav > a, .dd > summary { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 300; cursor: pointer; list-style: none; transition: background-color var(--t-fast); }
.primary-nav > a:hover, .dd > summary:hover, .dd[open] > summary { background: var(--hover); }
.primary-nav > a[aria-current="page"], .dd.current > summary { font-weight: 500; }
.dd { position: relative; }
details > summary::-webkit-details-marker { display: none; }
.dd > summary::after, .langs > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); opacity: .6; margin-left: 6px; transition: transform var(--t-std) var(--spring); }
.dd[open] > summary::after, .langs[open] > summary::after { transform: translateY(1px) rotate(225deg); }
.pop { position: absolute; z-index: 60; min-width: 240px; padding: 8px; border-radius: 8px; background: var(--glass-strong); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); box-shadow: var(--shadow-pop); transform-origin: top center; }
details[open] > .pop { animation: pop-in var(--t-std) var(--spring-soft); }
details.closing > .pop { animation: pop-out .16s var(--ease-in) forwards; }
.dd > .pop { top: calc(100% + 10px); left: 50%; translate: -50% 0; }
.pop a, .pop button.link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; text-align: left; transition: background-color var(--t-fast), padding-left var(--t-std) var(--ease); }
.pop a:hover, .pop button.link:hover { background: var(--oat); padding-left: 16px; }
.pop a[aria-current] { background: var(--oat); font-weight: 500; }
.pop small { color: var(--muted); font-size: 13px; }
.pop hr { margin: 6px 4px; }
.pop form { margin: 0; }
details[open] > .pop > * { animation: rise .35s var(--ease-out) both; }
details[open] > .pop > :nth-child(2) { animation-delay: 25ms; } details[open] > .pop > :nth-child(3) { animation-delay: 50ms; }
details[open] > .pop > :nth-child(4) { animation-delay: 75ms; } details[open] > .pop > :nth-child(5) { animation-delay: 100ms; }
details[open] > .pop > :nth-child(n+6) { animation-delay: 125ms; }
.head-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.head-link { padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; transition: background-color var(--t-fast); }
.head-link:hover { background: var(--hover); }
.langs { position: relative; }
.langs > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 52px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; letter-spacing: .08em; transition: background-color var(--t-fast); }
.langs > summary:hover { background: var(--hover); }
.langs > .pop { right: 0; top: calc(100% + 10px); min-width: 180px; transform-origin: top right; }
.menu { display: none; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > .pop { position: fixed; inset: 88px 16px auto 16px; max-height: calc(100vh - 104px); overflow: auto; background: var(--paper); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; transform-origin: top right; }
.menu-h { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 14px 12px 6px; }
.lang-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding: 10px 6px 2px; border-top: 1px solid var(--line); }
.lang-row a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; transition: background-color var(--t-fast), color var(--t-fast); }
.lang-row a:hover { border-color: var(--ink); }
.lang-row a[aria-current] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
@media (max-width: 980px) {
  .primary-nav, .head-tools .langs, .head-tools .head-link, .head-tools .start { display: none; }
  .menu { display: block; }
}
@media (max-width: 720px) {
  .site-head { top: 10px; margin-top: 10px; width: calc(100% - 24px); }
  .head-in { padding-left: 14px; gap: 8px; }
  .wordmark { font-size: 20px; }
  .brand { font-size: 30px; }
  .wrap > main { padding: 40px 18px 88px; }
}
.site-foot { margin-top: 48px; padding: 72px 0 44px; color: var(--muted); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--oat) 38%, var(--paper)); }
.foot-in { width: 100%; max-width: var(--wrapw); margin: 0 auto; padding: 0 32px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.foot-cols h2 { font: 500 11px/1.4 var(--font); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0; }
.foot-cols ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.foot-cols a { display: inline-block; padding: 7px 0; font-size: 15px; color: var(--ink); text-decoration: none; transition: opacity var(--t-fast), translate var(--t-std) var(--ease); }
.foot-cols a:hover { opacity: .6; translate: 4px 0; }
.foot-base { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ink); font-size: 13px; letter-spacing: .06em; }
.foot-base .wordmark { font-size: var(--step-4); color: var(--ink); }
@media (max-width: 720px) { .foot-in { padding: 0 18px; } }

/* ================================================================ 6. app shell (signed in) */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto; z-index: 20; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 12px; }
.side .brand { font-size: 28px; }
.side .brand .wordmark { font-size: 19px; }
.side-new { display: flex; align-items: center; gap: 10px; margin: 4px 2px 14px; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--paper); background: var(--ink);
  transition: translate var(--t-std) var(--ease), scale .5s var(--spring), box-shadow var(--t-std); }
.side-new:hover { translate: 0 -2px; box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 25%, transparent); }
.side-new:active { scale: .97; }
.side-new .plus { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--paper); color: var(--ink); transition: transform .5s var(--spring); }
.side-new:hover .plus { transform: rotate(90deg); }
.side-new .plus .ic { width: 14px; height: 14px; }
.side nav { display: grid; gap: 2px; position: relative; }
.side nav a, .side nav button.link { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-size: 15px; transition: background-color var(--t-fast), color var(--t-fast), padding-left var(--t-std) var(--ease); }
.side nav a:hover { background: var(--oat); color: var(--ink); padding-left: 18px; }
.side nav a[aria-current="page"] { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--accent); view-transition-name: side-current; }
::view-transition-group(side-current) { animation-timing-function: var(--spring); animation-duration: .55s; }
.side h2 { font: 500 11px/1.4 var(--font); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 20px 14px 8px; }
.side .recent .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--muted); flex: none; }
.dot.active { background: var(--ok); } .dot.pending { background: var(--warn); animation: pulse-dot 1.4s ease-in-out infinite; } .dot.suspended { background: var(--bad); }
.side-foot { margin-top: auto; padding-top: 8px; }
.acct { position: relative; }
.acct > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: background-color var(--t-fast); }
.acct > summary:hover, .acct[open] > summary { background: var(--oat); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 14px/1 var(--font); flex: none; }
.acct .who { min-width: 0; display: grid; line-height: 1.3; }
.acct .who b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .who small { color: var(--muted); font-size: 12.5px; }
.acct > .pop { bottom: calc(100% + 8px); left: 0; right: 0; min-width: 0; transform-origin: bottom center; }
.acct[open] > .pop { animation-name: pop-up-in; }
.app-main { min-width: 0; }
.app-bar { display: none; }
.app-body { max-width: 960px; margin: 0 auto; padding: 56px 40px 112px; }
.app-body.wide { max-width: 1280px; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(86vw, 304px); z-index: 70; transform: translateX(-104%); transition: transform .55s var(--spring-soft); box-shadow: var(--shadow-pop); view-transition-name: none; }
  .app.open .side { transform: none; }
  .app::after { content: ""; position: fixed; inset: 0; background: rgb(42 30 23 / .4); z-index: 65; opacity: 0; pointer-events: none; transition: opacity var(--t-std); }
  .app.open::after { opacity: 1; pointer-events: auto; }
  .app-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; z-index: 30; height: 64px; padding: 0 14px; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .app-bar .brand { font-size: 28px; } .app-bar .wordmark { font-size: 19px; }
  .app-body { padding: 32px 18px 88px; }
}
.side-close { display: none; }
@media (max-width: 900px) { .side-close { display: inline-grid; } }

/* ================================================================ 7. page heads and sections */
.page-head { margin: 0 0 40px; }
.page-head.compact { margin-bottom: 28px; }
.page-head.center, .hero { text-align: center; }
.page-head.center .lede, .hero .lede { margin-left: auto; margin-right: auto; }
.page-head.center .where { justify-content: center; }
.app-body .page-head h1, .app-body h1 { font-size: calc(var(--step-4) * var(--cjk)); }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.title-row h1 { margin: 0; }
.section { margin: 56px 0 0; }
.section h2 { font-size: calc(var(--step-3) * var(--cjk)); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.stack-gap > * + * { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ================================================================ 8. notices, badges, empty */
.form-error, .notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-sm); margin: 0 0 24px; font-size: 15.5px; line-height: 1.55; }
.form-error::before, .notice::before { content: "i"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; font: 500 13px/1 var(--font); background: var(--ink); color: var(--paper); }
.form-error { background: var(--bad-bg); color: var(--ink); }
.form-error::before { content: "!"; background: var(--bad); color: #fff; }
.notice { background: var(--info-bg); color: var(--ink); }
.notice.ok { background: var(--ok-bg); }
.notice.ok::before { content: "✓"; background: var(--ok); color: #fff; }
.notice form { display: inline; margin-left: 8px; }
.badge-s { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 10px; border-radius: 999px; font: 500 13px/1.5 var(--font); background: var(--info-bg); color: var(--info); white-space: nowrap; vertical-align: middle; transition: background-color var(--t-std), color var(--t-std); }
.badge-s::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-s.unpaid, .badge-s.suspended, .badge-s.fraud, .badge-s.failed, .badge-s.overdue { background: var(--bad-bg); color: var(--bad); }
.badge-s.paid, .badge-s.active, .badge-s.sent, .badge-s.answered, .badge-s.ok, .badge-s.done, .badge-s.applied { background: var(--ok-bg); color: var(--ok); }
.badge-s.pending, .badge-s.open, .badge-s.customer, .badge-s.requested, .badge-s.processing { background: var(--warn-bg); color: var(--warn); }
.badge-s.pending::before, .badge-s.processing::before, .badge-s.requested::before { animation: pulse-dot 1.4s ease-in-out infinite; }
.badge-s.cancelled, .badge-s.terminated, .badge-s.closed, .badge-s.refunded, .badge-s.skipped { background: none; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty::before { content: ""; width: 72px; height: 72px; background: var(--muted); opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='black' stroke-width='8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M52,76 L58,38 L88,62 H112 L142,38 L148,76 V122 Q148,158 112,158 H88 Q52,158 52,122 Z'/%3E%3Cpath d='M148,98 H162 Q178,98 178,113 Q178,128 162,128 H146'/%3E%3Ccircle cx='82' cy='106' r='5.5' fill='black' stroke='none'/%3E%3Ccircle cx='118' cy='106' r='5.5' fill='black' stroke='none'/%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 200 200' fill='none' stroke='black' stroke-width='8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M52,76 L58,38 L88,62 H112 L142,38 L148,76 V122 Q148,158 112,158 H88 Q52,158 52,122 Z'/%3E%3Cpath d='M148,98 H162 Q178,98 178,113 Q178,128 162,128 H146'/%3E%3Ccircle cx='82' cy='106' r='5.5' fill='black' stroke='none'/%3E%3Ccircle cx='118' cy='106' r='5.5' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat; }
.empty p { color: var(--ink-soft); font-size: 17px; margin: 0; max-width: 28em; }
.impersonating { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; background: var(--warn-bg); color: var(--ink); padding: 12px 24px; font-size: 14.5px; animation: drop-in var(--t-med) var(--spring-soft); }
.impersonating form { display: inline; }
.impersonating button.link { font-weight: 500; }

/* ================================================================ 9. surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 22px; }
.hard { background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-lg); box-shadow: 10px 10px 0 var(--ink); }

/* ================================================================ 10. forms */
.account-form { display: grid; gap: 18px; max-width: 480px; }
.account-form.wide { max-width: 720px; }
.account-form label, .inline-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
input, select, textarea, button { font: inherit; color: var(--ink); }
.account-form :is(input:not([type=checkbox]):not([type=radio]), select, textarea), .inline-form :is(input:not([type=checkbox]):not([type=radio]), select), .coupon-row input, table.grid input, .filters :is(input, select) {
  width: 100%; min-height: 52px; padding: 13px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-ctl); font-weight: 300; font-size: 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-std) var(--ease), background-color var(--t-fast); }
.account-form :is(input, select, textarea):hover, .inline-form :is(input, select):hover, .filters :is(input, select):hover { border-color: var(--muted); }
.account-form :is(input, select, textarea):focus, .inline-form :is(input, select):focus, .filters :is(input, select):focus, .coupon-row input:focus, table.grid input:focus {
  outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 12%, transparent); }
:is(input, select, textarea)[aria-invalid="true"], .account-form :is(input, select, textarea):user-invalid { border-color: var(--bad) !important; }
.account-form textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.account-form select, .inline-form select, .filters select { appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.account-form .btn { justify-self: start; }
.account-form label.check, .checkout-form label.check, label.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 300; color: var(--ink-soft); cursor: pointer; }
input[type="checkbox"] { appearance: none; flex: none; width: 22px; height: 22px; min-height: 0 !important; margin: 2px 0 0; padding: 0 !important; border: 1px solid var(--ink); border-radius: 6px; background: var(--card); display: inline-grid; place-items: center; cursor: pointer; transition: background-color var(--t-fast), transform .4s var(--spring); }
input[type="checkbox"]:active { transform: scale(.88); }
input[type="checkbox"]:checked { background: var(--ink); }
input[type="checkbox"]:checked::after { content: ""; width: 11px; height: 6px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); animation: check-draw .25s var(--ease-out); }
input[type="checkbox"]:disabled { opacity: .4; cursor: not-allowed; }
input[type="radio"] { appearance: none; flex: none; width: 20px; height: 20px; min-height: 0 !important; margin: 0; padding: 0 !important; border: 1px solid var(--ink); border-radius: 50%; background: var(--card); display: inline-grid; place-items: center; cursor: pointer; }
input[type="radio"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .45s var(--spring); }
input[type="radio"]:checked::after { transform: scale(1); }
.inline-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline-form label { display: inline-flex; align-items: center; gap: 8px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 500; font-size: 15px; margin-bottom: 10px; padding: 0; }
td form { margin: 0; }
.qty { width: 80px !important; }
.qty-wide { width: 120px !important; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 18px; }
.filters :is(input, select) { width: auto; min-height: 44px; padding-block: 8px; font-size: 15px; }
.social { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.social .btn { width: 100%; }
.auth-alt { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 4px 0; }
.auth-alt::before, .auth-alt::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* sign-in, register, reset, verify: oat ground, one card with the hard shadow */
main:has(> .auth-card) { display: grid; place-items: start center; }
body:has(.auth-card) { background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 8%, var(--oat)), var(--oat) 65%); }
.auth-card { width: min(460px, 100%); margin: 24px auto 0; background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-lg); padding: 40px 36px; box-shadow: 10px 10px 0 var(--ink); }
.auth-card h1 { font-size: calc(var(--step-3) * var(--cjk)); text-align: center; margin-bottom: 8px; }
.auth-card > .mark-top { display: flex; justify-content: center; margin: 0 0 16px; font-size: 56px; color: var(--ink); }
.auth-card > .mark-top .mark { animation: tick .7s .2s var(--spring); }
.auth-card .lede { text-align: center; font-size: 16px; margin: 0 auto 26px; }
.auth-card .account-form { max-width: none; }
.auth-card .account-form .btn { justify-self: stretch; }
.auth-card .hint, .auth-card p.fine { text-align: center; }
@media (max-width: 520px) { .auth-card { padding: 32px 22px; box-shadow: 6px 6px 0 var(--ink); } }

/* billing-period choices on the plan page (the no-script form) */
.choice { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.choice legend { background: var(--paper); }
.choice label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 16px; background: var(--card); cursor: pointer; font-weight: 500; transition: background-color var(--t-fast); }
.choice label:hover { background: var(--paper); }
.choice label:has(input:checked) { background: var(--oat); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: -2px; }
.choice small { grid-column: 2; color: var(--muted); font-weight: 300; font-size: 14px; }

/* totals */
.totals { display: grid; grid-template-columns: 1fr auto; gap: 10px 0; margin: 24px 0 0 auto; max-width: 440px; font-variant-numeric: tabular-nums; }
.totals dt { color: var(--ink-soft); }
.totals dd { margin: 0; text-align: right; padding-left: 24px; transition: color var(--t-fast); }
.totals .grand { font: 500 22px/1.3 var(--font); color: var(--ink); padding-top: 14px; border-top: 1px solid var(--ink); }
.totals dd.changed { animation: bump .45s var(--spring); }
.totals.left { margin-left: 0; }
.coupon-row { display: flex; justify-content: flex-end; margin-top: 18px; }
.checkout-form { display: grid; justify-items: end; gap: 16px; margin-top: 28px; }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.actions-row .fine { flex-basis: 100%; margin: 4px 0 0; }

/* progress (cart → checkout → pay) */
.steps { list-style: none; display: flex; align-items: center; margin: 0 0 32px; padding: 0; font-size: 15px; color: var(--muted); counter-reset: s; flex-wrap: wrap; row-gap: 10px; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; }
.steps li::after { content: counter(s); order: -1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); font: 500 14px/1 var(--font); transition: all var(--t-std); }
.steps li + li::before { content: ""; order: -2; width: clamp(20px, 5vw, 64px); height: 1px; background: var(--line); margin: 0 10px 0 4px; }
.steps li[aria-current] { color: var(--ink); font-weight: 500; }
.steps li[aria-current]::after { border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); animation: tick .6s var(--spring); }
.steps li:has(~ li[aria-current])::after { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.steps li:has(~ li[aria-current]) { color: var(--ink); }

/* form helpers added by shop.js (template section 03): show/hide, strength bar, six-box code, type-to-confirm */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 84px !important; }
.pw-eye { position: absolute; right: 8px; top: 50%; translate: 0 -50%; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--oat); color: var(--ink); font: 500 13px var(--font); cursor: pointer; transition: background-color var(--t-fast), scale .4s var(--spring); }
.pw-eye:hover { background: var(--line); } .pw-eye:active { scale: .94; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--line); transition: background-color var(--t-std); }
.pw-meter i.on { background: var(--ok); }
.pw-meter[data-n="1"] i.on { background: var(--bad); } .pw-meter[data-n="2"] i.on { background: var(--warn); }
.otp { display: flex; gap: 8px; margin-top: 2px; }
.otp input { width: 52px !important; height: 60px; min-height: 0 !important; padding: 0 !important; text-align: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); font: 500 24px var(--font); transition: border-color var(--t-fast), box-shadow var(--t-std) var(--ease); }
.otp input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 12%, transparent); }
.otp.is-error input { border-color: var(--bad); animation: shake .45s; }
@media (max-width: 400px) { .otp input { width: 42px !important; height: 52px; } }
.dialog .type { display: grid; gap: 8px; margin-top: 18px; font-size: 15px; }
.dialog .type input { min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); font: 300 16px var(--font); }
.dialog .type input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 12%, transparent); }
.dialog .btn:disabled { opacity: .35; }

/* ================================================================ 11. tables (site hairline style) */
.table-box { overflow-x: auto; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
th, td { padding: 16px 14px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th, thead td { font: 500 11px/1.4 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 14px; white-space: nowrap; }
tbody th { font-weight: 500; }
tbody td { font-weight: 300; }
tbody tr { transition: background-color var(--t-fast); }
tbody tr:hover { background: var(--card); }
th:last-child, td:last-child { padding-right: 0; }
table.grid td { padding: 8px 8px 8px 0; }
td a:not(.btn) { font-weight: 500; }
@media (max-width: 640px) {
  .stack table, .stack tbody, .stack tr, .stack td, .stack tbody th { display: block; width: 100%; }
  .stack thead { display: none; }
  .stack tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .stack tbody tr:hover { background: none; }
  .stack td, .stack tbody th { border: 0; padding: 4px 0; text-align: left; }
  .stack td[data-label] { display: flex; justify-content: space-between; gap: 16px; }
  .stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  .stack td:empty { display: none; }
}

/* ================================================================ 12. product line page */
.seg { position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--oat); }
.seg a { position: relative; padding: 9px 18px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 300; white-space: nowrap; transition: color var(--t-fast), background-color var(--t-fast); }
.seg a:hover { color: var(--ink); background: color-mix(in srgb, var(--card) 50%, transparent); }
.seg a[aria-current] { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--ink); }
.seg-row { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 0 48px; }
.seg small { color: var(--muted); font-size: 12px; margin-left: 4px; }
@media (max-width: 640px) {
  .seg-row { align-items: stretch; }
  .seg { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
}
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--ink); }
.plan-tile { display: flex; flex-direction: column; gap: 4px; padding: 32px 28px 28px; background: var(--paper); box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); transition: background-color var(--t-std); }
.plan-tile:hover { background: var(--card); }
.plan-tile img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 16px; transition: translate var(--t-med) var(--spring-soft); }
.plan-tile:hover img { translate: 0 -5px; }
.plan-tile h2 { font-size: calc(var(--step-4) * var(--cjk)); font-weight: 300; letter-spacing: -.02em; margin: 0; width: fit-content; }
.plan-tile .avail { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.plan-tile .from { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.plan-tile .from b { font: 500 var(--step-3)/1.2 var(--font); color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 6px; letter-spacing: -.02em; }
.plan-tile .from small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.plan-tile .btn { width: 100%; }
.plan-tile ul { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.plan-tile ul li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.plan-tile ul li::before { content: ""; width: 10px; height: 6px; margin: 7px 0 0 2px; border: solid var(--ink); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.plan-tile ul b { color: var(--ink); font-weight: 500; }
.plan-tile.sold-out h2, .plan-tile.sold-out .from b { color: var(--muted); }
.plan-tile > .fine { text-align: center; margin: 10px 0 0; }
.compare { margin-top: 88px; }
.compare h2, .faq h2 { text-align: center; margin-bottom: 28px; }
.compare td, .compare th { white-space: nowrap; }
.faq { margin: 88px auto 0; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq h2 + details { border-top-color: var(--ink); }
.faq details:last-of-type { border-bottom: 1px solid var(--ink); }
.faq-list { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.faq-list details + details { border-top: 1px solid var(--line); }
:is(.faq, .faq-list) summary { position: relative; cursor: pointer; padding: 24px 56px 24px 0; font-size: var(--step-1); font-weight: 500; list-style: none; transition: padding-left var(--t-std) var(--ease); }
:is(.faq, .faq-list) summary:hover { padding-left: 10px; }
:is(.faq, .faq-list) summary::before, :is(.faq, .faq-list) summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 1.5px; background: currentColor; transition: transform var(--t-med) var(--spring); }
:is(.faq, .faq-list) summary::after { transform: rotate(90deg); }
:is(.faq, .faq-list) details[open] summary::after { transform: rotate(0); }
:is(.faq, .faq-list) details::details-content { height: 0; overflow: clip; transition: height var(--t-med) var(--ease-out), content-visibility var(--t-med) allow-discrete; }
:is(.faq, .faq-list) details[open]::details-content { height: auto; }
:is(.faq, .faq-list) details p { color: var(--ink-soft); padding: 0 40px 28px 0; margin: 0; max-width: 820px; font-size: 17px; line-height: 1.75; }
:is(.faq, .faq-list) details[open] p { animation: rise .5s .05s var(--ease-out) both; }

/* ================================================================ 13. plan page */
.buy { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.summary { position: sticky; top: 100px; background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 20px; box-shadow: 10px 10px 0 var(--ink); }
.summary h2 { font-size: calc(var(--step-2) * var(--cjk)); margin: 0; }
.summary .totals { margin: 0; max-width: none; }
.summary .btn { width: 100%; }
.summary.account-form { max-width: none; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.spec-list > div { background: var(--paper); padding: 22px 22px 24px; box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); transition: background-color var(--t-std); }
.spec-list > div:hover { background: var(--card); }
.spec-list dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.spec-list dd { margin: 8px 0 0; font: 300 var(--step-3)/1.2 var(--font); letter-spacing: -.02em; }
.siblings { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.siblings a { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ink); text-decoration: none; font-size: 15px; transition: background-color var(--t-fast), color var(--t-fast), translate var(--t-std) var(--ease); }
.siblings a:hover { background: var(--ink); color: var(--paper); translate: 0 -2px; }
.siblings a[aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 960px) { .buy { grid-template-columns: 1fr; } .summary { position: static; box-shadow: 6px 6px 0 var(--ink); } }
.flow { max-width: 820px; margin: 0 auto; }

/* ================================================================ 14. client area and articles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0 0 48px; border-top: 1px solid var(--ink); }
.stat { display: grid; gap: 4px; padding: 20px 22px 22px; background: var(--paper); box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); text-decoration: none; color: var(--ink); transition: background-color var(--t-std); }
a.stat:hover { background: var(--card); }
.stat span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stat b { font: 300 var(--step-4)/1.15 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat em { font-style: normal; font-size: 14px; color: var(--ink-soft); }
.stat.attn { background: var(--bad-bg); }
.stat.attn b { color: var(--bad); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.cards > li { background: var(--paper); padding: 22px 4px 22px 0; transition: background-color var(--t-std), padding-left var(--t-std) var(--ease); }
.cards > li:hover { background: var(--card); padding-left: 12px; }
.cards h3 { font-size: calc(var(--step-2) * var(--cjk)); margin: 0 0 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cards h3 a { text-decoration: none; }
.cards h3 a:hover { text-decoration: underline; }
.cards .meta { color: var(--muted); font-size: 14.5px; margin: 0; }
.cards .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.client { display: block; }
.subnav { display: none; }
.thread { display: grid; gap: 16px; margin: 0 0 28px; }
.msg { max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; border-bottom-left-radius: 6px; padding: 18px 20px; }
.msg.staff { background: var(--oat); border-color: transparent; justify-self: start; }
.msg.mine, .msg:not(.staff):not(.internal) { justify-self: end; border-radius: 8px; border-bottom-right-radius: 6px; }
.msg.internal { background: var(--warn-bg); border-color: transparent; justify-self: stretch; max-width: none; }
.msg summary { cursor: pointer; }
.msg-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 300; }
.qr svg { width: 210px; height: 210px; background: #fff; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--ink); }
.codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 28px; font: 16px/1.7 var(--mono); padding: 18px 22px; background: var(--oat); border-radius: var(--r-sm); }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; max-width: 820px; border-top: 1px solid var(--ink); }
.article-list li { padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left var(--t-std) var(--ease); }
.article-list li:hover { padding-left: 10px; }
.article-list a { font: 500 var(--step-2)/1.35 var(--font); text-decoration: none; }
.article-list a:hover { text-decoration: underline; }
.article-list p { color: var(--ink-soft); margin: 8px 0 0; }
.prose { max-width: 780px; font-size: 17px; line-height: 1.8; }
.prose .msg-body { white-space: pre-wrap; }
.app-body.wide .stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.hero { padding: 40px 0 8px; }
.home-account { margin: 56px auto 0; max-width: 760px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r-lg); background: var(--oat); }
.home-account p { margin: 0; color: var(--ink-soft); }

/* 404: the cup-cat tips over, then rights itself */
@keyframes tip { 0% { transform: rotate(0); } 35% { transform: rotate(-24deg) translateY(6px); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
.lost { display: grid; justify-items: center; text-align: center; padding: 48px 0 24px; }
.lost-cat { font-size: 120px; color: var(--ink); margin-bottom: 16px; transform-origin: 50% 85%; animation: tip 1.4s .4s var(--ease) both; }
.lost h1 { margin-bottom: 8px; }
.lost .actions-row { justify-content: center; }

/* dialog (data-confirm forms) and toast */
.dialog { width: min(480px, calc(100vw - 32px)); padding: 30px; border: 1px solid var(--ink); border-radius: var(--r-lg); background: var(--card); color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.dialog::backdrop { background: rgb(42 30 23 / .45); backdrop-filter: blur(3px); }
.dialog[open] { animation: rise-card .45s var(--spring-soft); }
.dialog[open]::backdrop { animation: fade-in .3s; }
.dialog.closing { animation: pop-out .18s var(--ease-in) forwards; }
.dialog.closing::backdrop { animation: fade-out .18s forwards; }
.dialog p { font-size: 17px; margin: 0; }
.dialog .foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: var(--shadow-pop);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: transform .5s var(--spring), opacity var(--t-std); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ================================================================ 15. home: the storyboard (docs/storyboard/MOTION_SPEC.md) */
.home-story { --block: 32px; }
@media (max-width: 720px) { .home-story { --block: 24px; } }
.hs { position: relative; background: var(--paper); }
.hs > .in { width: 100%; max-width: var(--wrapw); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .hs > .in { padding: 0 18px; } }

/* S1 hero */
.hs-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 9vw, 128px); }
.hs-hero .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px 64px; }
.hero-copy { flex: 1 1 420px; min-width: 0; max-width: 580px; }
.hero-copy h1 { margin: 0; line-height: 1.3; }
@media (min-width: 640px) { .hero-copy h1 { word-break: keep-all; } }
.hero-copy .lede { margin: 24px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-art { position: relative; flex: 0 1 540px; min-width: 0; padding: 0 28px 52px 0; }
.console { margin: 0; background: var(--card); border: 1px solid var(--ink); border-radius: 8px; overflow: hidden; font-size: 14px; box-shadow: 10px 10px 0 var(--ink); }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.console .dots { display: flex; gap: 6px; }
.console .dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--muted); }
.console-name { flex: 1; font-weight: 500; }
.console-state { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.console-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background-color .3s, box-shadow .3s; }
.console.up .console-state i { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.console .on-up { display: none; } .console.up .on-up { display: inline; } .console.up .on-boot { display: none; }
.console-log { padding: 18px 20px 4px; font: 13px/1.9 var(--mono); color: var(--ink-soft); min-height: 214px; }
.console-log p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-log p[hidden] { display: none; }
.console-log p.new { animation: slide-row .3s var(--ease-out); }
.console-log span { color: var(--muted); }
.console-log .cur b { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 14px 32% 22px 20px; }
.meters div { display: flex; flex-direction: column; gap: 8px; font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.meters b { display: block; height: 6px; background: var(--oat); overflow: hidden; }
.meters i { display: block; height: 100%; width: var(--to); background: var(--ink); transform-origin: left; transform: scaleX(var(--fill, 0)); transition: transform 1.2s var(--ease-out); }
.console figcaption { padding: 0 20px 14px; font-size: 12px; color: var(--muted); }
.badge-cat { position: absolute; right: 0; bottom: 0; width: 112px; height: 112px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); transition: transform .6s var(--spring); }
.badge-cat:hover { transform: rotate(-6deg) scale(1.04); }
.badge-cat .mark { width: 74%; height: auto; color: var(--paper); --sw: 11; }
.badge-cat .steam path { stroke-width: 7; opacity: 0; stroke-dasharray: 40; stroke-dashoffset: 40; animation: steam 3.6s ease-out infinite; }
.badge-cat .steam path:nth-child(2) { animation-delay: 1.2s; } .badge-cat .steam path:nth-child(3) { animation-delay: 2.4s; }
@media (max-width: 720px) { .hero-art { padding: 0 18px 44px 0; } .badge-cat { width: 92px; height: 92px; border-radius: 8px; } }

/* S1 cinematic: gallery scenes fill the first screen behind a dark shade; the page's own colours
   return below it. The same in both themes (the pictures are the colour). */
.hs-cine { --head: 76px; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh; margin-top: calc(-1 * var(--head)); padding: calc(var(--head) + 40px) 0 clamp(96px, 12vh, 140px);
  background: #120e0b; color: #FAF7F2; overflow: hidden; }
.cine-bg { position: absolute; inset: 0; z-index: -2; }
.cine-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.cine-slide.on { opacity: 1; }
.cine-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); }
.cine-slide.on img { animation: cine-push 9s linear both; }
@keyframes cine-push { from { transform: scale(1.08); } to { transform: scale(1); } }
/* faint dark shade: deepest behind the centred words, light at the edges, darker under the navbar */
.cine-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(12 9 7 / .5) 0, transparent 20%),
              radial-gradient(ellipse 70% 55% at 50% 55%, rgb(12 9 7 / .62) 0%, rgb(12 9 7 / .38) 55%, rgb(12 9 7 / .2) 100%),
              linear-gradient(to top, rgb(12 9 7 / .45) 0, transparent 30%); }
.hs-cine > .in { display: flex; justify-content: center; text-align: center; }
.cine-copy { min-width: 0; max-width: 980px; margin: 0 auto; }
.cine-copy h1 { margin: 0; color: #FAF7F2; font-size: clamp(40px, 5.4vw, 78px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
.cine-title .cine-ph { display: inline-block; white-space: nowrap; }
.cine-title .cine-ch { display: inline-block; animation: cine-word .9s var(--ease-out) both; animation-delay: calc(250ms + var(--i) * 100ms); }
@keyframes cine-word { from { opacity: 0; filter: blur(10px); transform: translateY(.18em); } to { opacity: 1; filter: blur(0); transform: none; } }
.cine-copy .lede { margin: 26px auto 0; max-width: 34em; color: rgb(250 247 242 / .86); font-size: clamp(17px, 1.4vw, 20px); animation: cine-word 1s var(--ease-out) 1.1s both; }
.cine-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; animation: cine-word 1s var(--ease-out) 1.35s both; }
/* glass buttons: a light pill and a frosted one */
.cine-btn { border-radius: 50px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cine-solid { background: rgb(250 247 242 / .94); color: #2A1E17; }
.cine-solid:hover { background: #FAF7F2; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5); }
.cine-glass { background: rgb(255 255 255 / .1); color: #FAF7F2; border-color: rgb(255 255 255 / .32); }
.cine-glass:hover { background: rgb(255 255 255 / .2); border-color: rgb(255 255 255 / .55); }
.cine-btn:focus-visible { outline: 2px solid #FAF7F2; outline-offset: 3px; }
/* scene picker */
.cine-dots { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; display: flex; gap: 4px; }
.cine-dot { display: grid; place-items: center; width: 36px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.cine-dot i { display: block; width: 22px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .35); overflow: hidden; position: relative; transition: width var(--t-std) var(--ease), background-color var(--t-std); }
.cine-dot[aria-pressed="true"] i { width: 34px; }
.cine-dot[aria-pressed="true"] i::after { content: ""; position: absolute; inset: 0; background: #FAF7F2; transform-origin: left; animation: cine-tick var(--cine-ms, 7000ms) linear both; }
.hs-cine.paused .cine-dot[aria-pressed="true"] i::after { animation: none; }
@keyframes cine-tick { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cine-dot:hover i { background: rgb(255 255 255 / .6); }
.cine-dot:focus-visible { outline: 2px solid #FAF7F2; outline-offset: 2px; border-radius: 6px; }
.cine-dots[hidden], html:not(.js) .cine-dots { display: none; }
@media (max-width: 720px) {
  .hs-cine { --head: 72px; padding-bottom: 84px; }
  .cine-copy h1 { font-size: clamp(34px, 9vw, 44px); }
  .cine-title .cine-ph { white-space: normal; }
  .cine-slide img { object-position: 60% center; }
}

/* chunk overlay */
.chunked { position: relative; }
.chunks { position: absolute; inset: 0; display: grid; pointer-events: none; z-index: 2; overflow: hidden; }
.chunks i { background: var(--paper); box-shadow: inset 0 0 0 .5px var(--line); }
.chunks i.off { visibility: hidden; }

/* S2 why: hairline grid, four different cells */
.hs-why { z-index: 1; padding: clamp(96px, 10vw, 136px) 0 clamp(72px, 8vw, 112px); }
.hs-why::after { content: ""; position: absolute; inset: 0; background: #2A1E17; opacity: var(--dim, 0); pointer-events: none; z-index: 3; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); margin-top: 48px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.cell { background: var(--paper); padding: 28px 28px 32px; min-height: 248px; display: flex; flex-direction: column; gap: 10px; transition: background-color var(--t-std); }
.cell:hover { background: var(--card); }
.cell h3 { margin: 0; }
.cell p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.cell.wide { grid-column: span 2; }
.c-local { flex-direction: row; align-items: stretch; gap: 32px; }
.c-local .txt, .c-lang .txt { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; flex: 1; }
.c-local .vis { flex: 1.3; display: flex; align-items: center; justify-content: center; gap: 20px; }
.c-local .vis img { width: 112px; height: 112px; transition: transform .8s var(--spring); }
.c-local:hover .vis img { transform: translateY(-6px) rotate(-4deg); }
.c-local .word { font-size: clamp(40px, 5vw, 72px); font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.c-shield { justify-content: flex-end; }
.pixel-shield { display: grid; grid-template-columns: repeat(9, 1fr); width: 99px; gap: 2px; margin-bottom: auto; }
.pixel-shield i { aspect-ratio: 1; background: var(--ink); transition: transform .5s var(--spring); transition-delay: calc(var(--k, 0) * 6ms); }
.pixel-shield i.o { background: transparent; }
.pixel-shield i.h { background: var(--ok); }
.c-shield:hover .pixel-shield i:not(.o) { transform: scale(.7); }
.c-price { background: var(--oat); justify-content: flex-end; }
.c-price:hover { background: var(--oat); }
.receipt { margin-bottom: auto; background: var(--card); border: 1px solid var(--ink); border-radius: 8px; padding: 14px 16px; font-size: 14px; box-shadow: 4px 4px 0 var(--ink); transition: transform .5s var(--spring), box-shadow .5s var(--spring); }
.c-price:hover .receipt { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.receipt .item { font-weight: 500; margin: 0 0 10px; color: var(--ink); }
.receipt dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0; font-variant-numeric: tabular-nums; }
.receipt dd { margin: 0; text-align: right; }
.receipt .total { padding-top: 8px; border-top: 1px dashed var(--line-strong); font-weight: 500; font-size: 17px; }
.c-lang { flex-direction: row; align-items: center; gap: 32px; }
.cell .scripts { flex: 1.3; color: var(--ink); display: grid; gap: 2px; margin: 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.2; letter-spacing: -.01em; }
.scripts span { transition: translate .5s var(--spring); }
.c-lang:hover .scripts span:nth-child(1) { translate: 6px 0; } .c-lang:hover .scripts span:nth-child(2) { translate: 12px 0; } .c-lang:hover .scripts span:nth-child(3) { translate: 18px 0; }
.scripts span:nth-child(1) { font-weight: 500; } .scripts span:nth-child(3) { color: var(--muted); }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .cell.wide { grid-column: auto; }
  .cell { padding: 24px 0 28px; min-height: 0; }
  .c-local, .c-lang { flex-direction: column-reverse; align-items: stretch; gap: 20px; }
  .c-local .vis { justify-content: flex-start; }
}


/* S3 hardware: the espresso block */
.hs-hw { z-index: 2; background: var(--ink); color: var(--on-ink); padding-bottom: 80px; }
.hs-hw .in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; align-items: start; }
.hs-hw .eyebrow { color: var(--on-ink-muted); }
.hs-hw h2 { margin: 0; }
.hs-hw .intro p { color: var(--on-ink-soft); margin: 20px 0 0; max-width: 26em; }
.hs-hw .intro a { display: inline-block; margin-top: 24px; font-size: 15px; font-weight: 500; }
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent); }
.specs li { display: grid; grid-template-columns: 14px minmax(0, 1fr) minmax(0, 14em); align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent); opacity: var(--lit, 1); }
.specs .led { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--on-ink-muted); align-self: center; transition: background-color .15s, border-color .15s, box-shadow .3s; }
.specs li.on .led { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 20%, transparent); }
.specs .v { font-size: clamp(44px, min(7vw, 11vh), 104px); font-weight: 300; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.specs .v small { font-size: .34em; letter-spacing: .02em; margin-left: .2em; font-weight: 500; }
.specs .k { color: var(--on-ink-muted); font-size: 14px; line-height: 1.5; }
.specs .k b { display: block; color: var(--on-ink); font-size: 15px; }
.eco { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: var(--on-ink-muted); }
.eco b { color: var(--on-ink); }
@media (max-width: 900px) { .hs-hw .in { grid-template-columns: minmax(0, 1fr); } .specs li { grid-template-columns: 12px minmax(0, 1fr); } .specs .k { grid-column: 2; } }

/* S4 how: three nodes on one wire */
.hs-how { z-index: 3; padding-bottom: clamp(96px, 10vw, 136px); }
.wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wire path { fill: none; stroke-width: 2; stroke-linecap: round; }
.wire .base { stroke: var(--line); stroke-dasharray: 2 8; }
.wire .lit { stroke: var(--ink); stroke-dasharray: 1; stroke-dashoffset: var(--off, 1); }
.hs-steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); position: relative; }
.hs-steps li { padding: 40px 32px 0 0; display: grid; gap: 12px; align-content: start; }
.hs-steps li + li { border-left: 1px solid var(--line); padding-left: 32px; }
.hs-steps .node { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--ink); font-size: var(--step-2); font-weight: 300; transition: background-color .15s, color .15s, box-shadow .3s var(--ease); }
.hs-steps li.on .node { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--line-strong); animation: tick .32s var(--ease-out); }
.hs-steps h3 { margin: 12px 0 0; }
.hs-steps p { margin: 0; color: var(--ink-soft); max-width: 20em; }
@media (max-width: 900px) {
  .hs-steps { grid-template-columns: minmax(0, 1fr); }
  .hs-steps li, .hs-steps li + li { border-left: 0; padding: 28px 0 0; grid-template-columns: 64px 1fr; column-gap: 20px; }
  .hs-steps .node { grid-row: span 2; }
  .hs-steps h3 { margin-top: 2px; }
}

/* S5 plans */
.hs-plans { z-index: 3; padding: clamp(96px, 10vw, 136px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.hs-plans .in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px 64px; align-items: start; }
.hs-plans h2 { margin: 0; }
.hs-plans .lede { margin: 20px 0 0; }
.hs-plans .pk-note { text-align: left; margin: 20px 0 0; }
.power { position: relative; }
.power .wire path { stroke-width: 3; }
.power .picker { box-shadow: 0 0 0 var(--ink); transition: box-shadow .6s var(--spring-soft); }
.power.powered .picker { box-shadow: 10px 10px 0 var(--ink); }
@media (max-width: 900px) { .hs-plans .in { grid-template-columns: minmax(0, 1fr); } }

/* the home picker (React island; the no-script version is the same markup with CSS tabs) */
.picker { background: var(--card); border: 1px solid var(--ink); border-radius: var(--r-lg); padding: 10px 10px 22px; }
.pk-tabs { display: flex; gap: 4px; padding: 4px; background: var(--oat); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.pk-tabs::-webkit-scrollbar { display: none; }
.pk-input { position: absolute; opacity: 0; pointer-events: none; }
.pk-tabs label { flex: 1 0 auto; text-align: center; padding: 10px 18px; border-radius: 999px; cursor: pointer; color: var(--ink-soft); font-size: 15px; white-space: nowrap; transition: background-color var(--t-fast), color var(--t-fast); }
.pk-tabs label:hover { color: var(--ink); }
.pk-input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.pk-panel { display: none; gap: 20px; padding: 24px 16px 0; }
.pk-head { display: flex; gap: 18px; align-items: flex-start; }
.pk-head img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.pk-head :is(h2, h3) { font-size: calc(var(--step-2) * var(--cjk)); margin: 0 0 4px; }
.pk-head p { margin: 0 0 4px; color: var(--ink-soft); }
.pk-opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--ink); }
.pk-opt { display: grid; gap: 2px; padding: 16px; background: var(--card); box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); text-decoration: none; color: var(--ink); transition: background-color var(--t-fast); height: 100%; }
a.pk-opt:hover { background: var(--paper); }
.pk-opt b { font: 500 21px/1.2 var(--font); }
.pk-opt span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-opt.off b, .pk-opt.off span { color: var(--muted); opacity: .6; }
.pk-all { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.pk-all:hover { text-decoration: underline; }
.pk-all .ic { transition: translate var(--t-std) var(--ease); }
.pk-all:hover .ic { translate: 4px 0; }
.pk-note { font-size: 14px; color: var(--muted); }

/* S6 FAQ */
.hs-faq { z-index: 3; padding: clamp(72px, 9vw, 128px) 0; }
.hs-faq .in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; align-items: start; }
.hs-faq h2 { margin: 0; }
.hs-faq .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 15px; font-weight: 500; }
@media (max-width: 900px) { .hs-faq .in { grid-template-columns: minmax(0, 1fr); } }

/* S7 close: the espresso contact block */
.hs-close { z-index: 3; background: var(--ink); color: var(--on-ink); padding: clamp(72px, 10vw, 140px) 0; }
.hs-close .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.hs-close .left { flex: 1 1 360px; display: grid; gap: 32px; justify-items: start; }
.hs-close h2 { font-size: calc(clamp(48px, 7vw, 104px) * var(--cjk)); line-height: 1.15; margin: 0; }
.hs-close h2 .chunks i { background: var(--ink); box-shadow: none; }
.hs-close .btn-solid { background: var(--on-ink); color: var(--ink); }
.hs-close .acct-line { margin: 0; font-size: 15px; color: var(--on-ink-muted); }
.contact { list-style: none; margin: 0; padding: 0; flex: 0 1 380px; display: flex; flex-direction: column; font-size: 19px; color: var(--on-ink-soft); }
.contact li { border-top: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent); }
.contact li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 22%, transparent); }
.contact a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; transition: padding-left var(--t-std) var(--ease), opacity var(--t-fast); }
.contact a:hover { padding-left: 10px; }
.contact small { font-size: 14px; color: var(--on-ink-muted); }


/* ================================================================ 16. print and reduced motion */
@media print {
  .site-head, .site-foot, .skip, .side, .app-bar, .actions-row, .impersonating { display: none !important; }
  .app { display: block; }
  body { background: #fff; color: #000; }
}
.summary-island { display: contents; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .mv:not(.mv-in) { opacity: 1; }
  .badge-cat .steam path { opacity: .4; stroke-dashoffset: 0; }
}

/* ================================================================ phones: legibility and tap targets */
@media (max-width: 720px) {
  .eyebrow { font-size: 12px; letter-spacing: .24em; }
  thead th, thead td, .spec-list dt, .stat span, .foot-cols h2, .side h2, .menu-h { font-size: 12px; letter-spacing: .14em; }
  .ip-specs .k, .ip-route dt { font-size: 12px; }
  /* links that sit in tables and cards get a full-height hit area */
  td a:not(.btn), .cards h3 a, .section-head a, .article-list a, .pk-all, .more { display: inline-block; padding-block: 10px; }
  .pk-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-opt { padding: 14px 12px; }
  .page-head { margin-bottom: 28px; }
  h1 { font-size: calc(clamp(30px, 8.4vw, 40px) * var(--cjk)); }
  .lede { font-size: 17px; }
  .btn { min-height: 48px; padding: 12px 22px; }
  .actions-row .btn, .hero-cta .btn { flex: 1 1 auto; }
  .summary, .auth-card { padding: 26px 20px; }
  .totals { max-width: none; }
}

/* ================================================================ 14. convergence with the shadcn components (2026-11-25)
   The older shared classes (admin, sign-in, and any page not rebuilt on src/sh.rs) drawn like their
   sh.rs twins, so the whole shop reads as one system: 40px pill buttons with a press, tables in a
   bordered card with sentence-case headers, 40px fields, tinted notices without glyph badges,
   stat tiles as cards (the hard ink shadow only on the one that needs action). */
html { caret-color: var(--ink); accent-color: var(--ink); scrollbar-color: color-mix(in srgb, var(--ink) 28%, transparent) transparent; }
::placeholder { color: var(--muted); opacity: 1; }
:is(table, .tabular, [data-out]) { font-variant-numeric: tabular-nums; }

.btn { min-height: 40px; padding: 8px 20px; font-size: 14px; font-weight: 500; gap: 8px; }
.btn-sm { min-height: 32px; padding: 5px 14px; font-size: 14px; }
.btn:hover { translate: none; }
.btn:active { scale: .97; }
.btn-solid:hover { box-shadow: none; background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
.btn:hover .ic { translate: 2px 0; }

.table-box { border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.table-box :is(th, td) { padding: 14px 16px 14px 0; }
.table-box :is(th, td):first-child { padding-left: 16px; }
.table-box :is(th, td):last-child { padding-right: 16px; }
.table-box tbody tr:last-child > * { border-bottom: 0; }
thead th, thead td { font: 500 13px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--muted); }
tbody tr:hover { background: color-mix(in srgb, var(--oat) 55%, transparent); }

.stats { gap: 16px; border-top: 0; }
.stat { border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: none; padding: 20px; }
.stat span { font-size: 14px; letter-spacing: 0; text-transform: none; }
.stat b { font: 500 30px/1.2 var(--font); letter-spacing: -.01em; }
.stat.attn { background: var(--card); border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.stat.attn b { color: var(--ink); }

.account-form :is(input:not([type=checkbox]):not([type=radio]), select, textarea), .inline-form :is(input:not([type=checkbox]):not([type=radio]), select),
.filters :is(input, select), .coupon-row input, table.grid input {
  min-height: 40px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--card); font-size: 15px;
}
.account-form :is(input, select, textarea):focus, .inline-form :is(input, select):focus, .filters :is(input, select):focus, .coupon-row input:focus, table.grid input:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 22%, transparent);
}
.account-form select, .inline-form select, .filters select { padding-right: 40px; }
.account-form label, .inline-form label { font-size: 14px; }
.filters :is(input, select) { min-height: 36px; }

.form-error, .notice { border: 1px solid; border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.form-error::before, .notice::before { display: none; }
.form-error { border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--bad); }
.notice { border-color: var(--line); }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }

.app-body .page-head h1, .app-body h1 { font-size: clamp(30px, 1.6vw + 22px, 36px); font-weight: 500; letter-spacing: -.01em; }
.app-body .page-head { margin-bottom: 32px; }
.app-body .section h2, .app-body .section-head h2 { font-size: 20px; font-weight: 500; }

/* status dots: a fixed colour, never an endless pulse */
.dot.pending { animation: none; }

/* sign in with Discord / Google: each in its own brand look */
.btn-discord, .btn-google { gap: 10px; }
.btn-discord { background: #5865F2; color: #FFFFFF; border: 1px solid #5865F2; }
.btn-discord:hover { background: #4752C4; border-color: #4752C4; color: #FFFFFF; }
.btn-google { background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; }
.btn-google:hover { background: #F2F2F2; color: #1F1F1F; }
.btn-discord:focus-visible, .btn-google:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sso-ic { width: 20px; height: 20px; flex: none; }

/* sign-in / sign-up: the plan picked before is kept */
.auth-card .auth-note { margin: -4px 0 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--oat); font-size: 14px; color: var(--ink); }

/* floating back-to-top button */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--glass-strong); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-pop); cursor: pointer;
  opacity: 0; transform: translateY(12px) scale(.92); pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-std) var(--spring), background-color var(--t-fast), border-color var(--t-fast);
}
.to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { background: var(--card); border-color: var(--accent); }
.to-top:active { transform: scale(.94); }
@media print { .to-top { display: none !important; } }

/* ---- editorial visual craft polish (glass nav, tactile surfaces, dark-mode gold harmony) ---- */
.head-in { border: 1px solid transparent; transition: background-color var(--t-std) var(--ease), border-color var(--t-std) var(--ease), box-shadow var(--t-std) var(--ease); }
.site-head.scrolled .head-in { background: none; border-color: transparent; box-shadow: none; }

/* ---- 5b. fluid-glass navbar pill (src/web.rs header: div.head-pill)
   The glass is drawn on ::before (blur, tint, inner light) and ::after (a rim that catches light at
   two corners), not on the pill itself: a backdrop filter on the pill would make it the backdrop
   root of the dropdowns inside it, and their own frosted glass would blur nothing. A soft blob
   (.pill-blob, shop.js) flows to the hovered link; the sheen follows the pointer (--gx). */
.head-in { padding: 8px 0 8px 12px; }
/* wider than the page column, as in the reference: the logo sits out towards the left edge and the
   pill towards the right, the page's content stays in its 1240px column */
@media (min-width: 721px) { .site-head { max-width: 1560px; } .head-in { padding-left: 0; } }
.head-pill { position: relative; isolation: isolate; display: flex; align-items: center; gap: 2px; margin-left: auto; padding: 5px; border-radius: 999px; --gx: 30%;
  --glass-tint: rgb(255 255 255 / .1); --glass-tint-2: rgb(255 255 255 / .03); --glass-hi: rgb(255 255 255 / .5); --glass-lo: rgb(255 255 255 / .1); --glass-drop: rgb(0 0 0 / .32); --blob: rgb(255 255 255 / .14); }
.site-head[data-over="light"] .head-pill { --glass-tint: rgb(255 255 255 / .62); --glass-tint-2: rgb(255 255 255 / .38); --glass-hi: rgb(255 255 255 / .95); --glass-lo: rgb(42 30 23 / .06); --glass-drop: rgb(42 30 23 / .16); --blob: rgb(42 30 23 / .07); }
.head-pill::before, .head-pill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; }
.head-pill::before {
  background: radial-gradient(120px 60px at var(--gx) 0%, rgb(255 255 255 / .22), transparent 70%), linear-gradient(180deg, var(--glass-tint), var(--glass-tint-2));
  -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.04); backdrop-filter: blur(16px) saturate(180%) brightness(1.04);
  box-shadow: inset 0 1px .5px var(--glass-hi), inset 0 -1px 1px var(--glass-lo), inset 0 0 12px rgb(255 255 255 / .06), 0 1px 2px rgb(0 0 0 / .08), 0 14px 34px -14px var(--glass-drop);
  transition: background var(--t-std) var(--ease), box-shadow var(--t-std) var(--ease); }
.head-pill::after { padding: 1px;
  background: linear-gradient(125deg, rgb(255 255 255 / .75), rgb(255 255 255 / .12) 28%, rgb(255 255 255 / 0) 55%, rgb(255 255 255 / .1) 75%, rgb(255 255 255 / .55));
  -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: .8; }
.site-head[data-over="light"] .head-pill::after { opacity: .55; background: linear-gradient(125deg, rgb(255 255 255 / 1), rgb(42 30 23 / .08) 40%, rgb(42 30 23 / .04) 70%, rgb(255 255 255 / .9)); }
.head-glass { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.head-glass .nav-glass { display: block; width: 100%; height: 100%; }
/* once GlassSurface is live it is the glass; the hand-drawn layers stay only as the no-script look */
.head-pill.glass-live::before, .head-pill.glass-live::after { display: none; }
/* no outline round the pill (owner, 2026-12-04): drop GlassSurface's inset rim rings and its frosted
   fallback's rim; keep the soft drop shadow and the refraction */
.nav-glass-surface { box-shadow: 0 4px 16px rgb(17 17 26 / .06), 0 12px 32px -8px rgb(0 0 0 / .22) !important; }
.nav-glass-surface > span[class*="p-[3px]"] { display: none; }
.head-pill::after { display: none; }
.head-pill .primary-nav { flex: none; }
.head-pill .head-tools { margin-left: 0; gap: 2px; }
.head-pill .primary-nav > a, .head-pill .dd > summary, .head-pill .head-link { position: relative; z-index: 1; padding: 9px 14px; font-size: 14.5px; background: none !important; }
.head-pill .icon-btn, .head-pill .theme-toggle { width: 40px; height: 40px; border-color: transparent; position: relative; z-index: 1; }
.head-pill .icon-btn:hover { background: none; border-color: transparent; }
.head-pill .langs > summary { border-color: transparent; background: none; position: relative; z-index: 1; }
.pill-blob { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--blob); opacity: 0; pointer-events: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18);
  transition: translate .55s var(--spring), width .55s var(--spring), opacity .25s var(--ease); }
.head-pill.blob-on .pill-blob { opacity: 1; }
.head-pill .start { min-height: 40px; padding: 8px 18px; margin-left: 4px; border-radius: 999px; font-size: 14.5px; position: relative; z-index: 1;
  background: #FAF7F2; color: #2A1E17; box-shadow: 0 1px 0 rgb(255 255 255 / .7) inset, 0 6px 16px -8px rgb(0 0 0 / .45); }
.head-pill .start:hover { background: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .7) inset, 0 10px 22px -8px rgb(0 0 0 / .5); }
.site-head[data-over="light"] .head-pill .start { background: #2A1E17; color: #FAF7F2; box-shadow: 0 1px 0 rgb(255 255 255 / .14) inset, 0 6px 16px -8px rgb(42 30 23 / .5); }
@media (max-width: 720px) { .head-in { padding-left: 6px; } .head-pill { padding: 4px; } }
.card { box-shadow: 0 1px 2px rgb(42 30 23 / .04), 0 10px 28px -20px rgb(42 30 23 / .14), inset 0 1px 0 rgb(255 255 255 / .06); }
.box { box-shadow: 0 1px 2px rgb(42 30 23 / .03); }
.side-new { color: var(--on-accent); background: var(--accent); }
.side-new:hover { box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent) 30%, transparent); }
.side-new .plus { background: var(--on-accent); color: var(--accent); }
input[type="checkbox"] { border-color: var(--line-strong); }
input[type="checkbox"]:hover { border-color: var(--accent); }
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after { border-color: var(--on-accent); }
input[type="radio"] { border-color: var(--line-strong); }
input[type="radio"]:hover, input[type="radio"]:checked { border-color: var(--accent); }
input[type="radio"]::after { background: var(--accent); }
.plan-tile { transition: background-color var(--t-std), box-shadow var(--t-std) var(--ease); }
.plan-tile:hover { box-shadow: inset 0 2px 0 var(--accent), inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); }

/* Inner pages (infrastructure, FAQ, about). Shared by the shop (appended to shop.css at build
   time by being included from ui.rs) and the UI template (docs/ui-template, section 13). */

/* page hero: the website's multi-line headline, each line wiping up in turn */
.ip-hero { padding: 24px 0 64px; border-bottom: 1px solid var(--ink); }
.ip-hero h1 { margin: 18px 0 0; font-size: calc(clamp(40px, 6vw, 84px) * var(--cjk, 1)); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; }
.ip-hero h1 span { display: block; }
.js .ip-hero h1 span { animation: ip-line .95s var(--ease-out, cubic-bezier(.16,1,.3,1)) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes ip-line { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(.4em); } to { clip-path: inset(0 0 -20% 0); } }
.ip-hero .lede { margin: 28px 0 0; max-width: 40em; }
.ip-hero .actions-row { margin-top: 32px; }
.ip-hero:has(+ .ip-specs) { border-bottom: 0; padding-bottom: 24px; }

/* section head inside a page */
.ip-sec { padding: clamp(64px, 8vw, 112px) 0 0; }
.ip-sec > .eyebrow + h2 { margin-top: 0; }
.ip-sec > h2 { max-width: 18em; }
.ip-sec > .lede { margin: 18px 0 0; }

/* a statement band on espresso */
.ip-band { margin: clamp(64px, 8vw, 112px) 0 0; padding: clamp(64px, 9vw, 128px) 0; background: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); }
.ip-band .eyebrow { color: var(--on-ink-muted); }
.ip-band .big { margin: 0; color: inherit; font-size: calc(clamp(40px, 7vw, 104px) * var(--cjk, 1)); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; }
.ip-band .big span { display: block; }
.ip-band p.lede { color: var(--on-ink-soft); margin: 36px 0 0; max-width: 38em; }

/* notes: a hairline grid of short paragraphs, each with a small pixel mark */
.ip-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--ink); }
.ip-notes article { padding: 30px 32px 34px 0; box-shadow: inset 0 -1px 0 var(--line); transition: background-color .3s; }
.ip-notes article:nth-child(even) { padding-left: 32px; box-shadow: inset 0 -1px 0 var(--line), inset 1px 0 0 var(--line); }
.ip-notes article:hover { background: var(--card); }
.ip-notes h3 { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font-size: calc(var(--step-2) * var(--cjk, 1)); }
.ip-notes h3 i { flex: none; width: 14px; height: 14px; background: var(--ink); box-shadow: 18px 0 0 var(--ok); margin-right: 18px; transition: transform .5s var(--spring); }
.ip-notes article:hover h3 i { transform: rotate(90deg); }
.ip-notes p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .ip-notes { grid-template-columns: minmax(0, 1fr); } .ip-notes article, .ip-notes article:nth-child(even) { padding: 26px 0 28px; box-shadow: inset 0 -1px 0 var(--line); } }

/* paths: three routes, each a vertical track with a packet travelling down it */
.ip-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--ink); }
.ip-path { padding: 30px 28px 34px 0; display: grid; gap: 14px; align-content: start; }
.ip-path + .ip-path { padding-left: 28px; box-shadow: inset 1px 0 0 var(--line); }
.ip-path h3 { margin: 0; font-size: calc(var(--step-2) * var(--cjk, 1)); }
.ip-path > p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.ip-route { position: relative; margin: 10px 0 0; padding: 0 0 0 30px; display: grid; gap: 14px; }
.ip-route::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.ip-route::after { content: ""; position: absolute; left: 2px; top: 0; width: 10px; height: 10px; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); animation: ip-travel 3.2s var(--d, 0s) cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes ip-travel { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 85% { top: calc(100% - 10px); opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
.ip-route div { position: relative; display: grid; gap: 2px; }
.ip-route div::before { content: ""; position: absolute; left: -28px; top: 6px; width: 8px; height: 8px; background: var(--paper); border: 2px solid var(--ink); }
.ip-route dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ip-route dd { margin: 0; font-weight: 500; }
.ip-pathnote { margin: 28px 0 0; padding: 18px 22px; border-radius: 8px; background: var(--oat); max-width: 46em; }
@media (max-width: 900px) { .ip-paths { grid-template-columns: minmax(0, 1fr); } .ip-path, .ip-path + .ip-path { padding: 28px 0; box-shadow: inset 0 -1px 0 var(--line); } }

/* specs: the big index table of the hardware, on paper */
.ip-specs { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.ip-specs li { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.ip-specs li:hover { padding-left: 10px; }
.ip-specs dt, .ip-specs .k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ip-specs .v { font-size: calc(var(--step-3) * var(--cjk, 1)); font-weight: 300; letter-spacing: -.01em; }
@media (max-width: 640px) { .ip-specs li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* FAQ: search over the list; items that don't match fold away */
.ip-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; align-items: start; margin-top: 48px; }
.ip-faq-side { position: sticky; top: 110px; display: grid; gap: 18px; }
.ip-search { position: relative; }
.ip-search input { width: 100%; min-height: 54px; padding: 14px 18px 14px 48px; border: 1px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font: 300 16px var(--font); transition: box-shadow .3s var(--ease); }
.ip-search input:focus { outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 12%, transparent), 4px 4px 0 var(--ink); }
.ip-search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.ip-count { font-size: 14px; color: var(--muted); margin: 0; }
.ip-count b { color: var(--ink); font-weight: 500; display: inline-block; }
.ip-count b.bump { animation: bump .45s var(--spring); }
.ip-faq-list { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ip-faq-list .fq { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease-out), opacity .3s; }
.ip-faq-list .fq + .fq { border-top: 1px solid var(--line); }
.ip-faq-list .fq > details { min-height: 0; overflow: hidden; border: 0 !important; }
.ip-faq-list .fq.gone { grid-template-rows: 0fr; opacity: 0; }
.ip-faq-list .fq.gone + .fq, .ip-faq-list .fq.gone:first-child + .fq { border-top-color: var(--line); }
.ip-faq-list mark { background: var(--warn-bg); color: inherit; border-radius: 3px; padding: 0 2px; }
.ip-empty { display: none; }
.ip-empty.on { display: grid; animation: rise .5s var(--ease-out); }
.ip-aside { padding: 20px 22px; border-radius: 8px; background: var(--oat); display: grid; gap: 10px; }
.ip-aside h2 { margin: 0; font-size: 18px; font-weight: 500; }
.ip-aside .btn { justify-self: start; }
@media (max-width: 900px) { .ip-faq { grid-template-columns: minmax(0, 1fr); } .ip-faq-side { position: static; } }

/* about: the statement, then three parts with the title held while the text scrolls */
.ip-rows { margin-top: 48px; border-top: 1px solid var(--ink); }
.ip-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 64px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.ip-row h2 { margin: 0; font-size: calc(var(--step-3) * var(--cjk, 1)); position: sticky; top: 110px; align-self: start; }
.ip-row p { margin: 0; font-size: var(--step-1); line-height: 1.75; color: var(--ink-soft); max-width: 36em; }
@media (max-width: 760px) { .ip-row { grid-template-columns: minmax(0, 1fr); padding: 32px 0; } .ip-row h2 { position: static; } }
.ip-cta { margin: clamp(64px, 8vw, 112px) 0 0; padding: clamp(56px, 8vw, 104px) 0; background: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.ip-cta h2 { margin: 0; font-size: calc(clamp(34px, 5vw, 64px) * var(--cjk, 1)); max-width: 14em; }
.ip-cta .btn-solid { background: var(--on-ink); color: var(--ink); }
.ip-cta .btn-line { border-color: var(--on-ink); color: var(--on-ink); }
.ip-cta .btn-line:hover { background: var(--on-ink); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .ip-route::after { display: none; } }

/* infrastructure: the two node types side by side (part · MY-L · MY-E); panel and protection span both */
.ip-nodes li { grid-template-columns: minmax(0, 10em) repeat(2, minmax(0, 1fr)); }
.ip-nodes li.head { padding: 14px 0; }
.ip-nodes .n { font-size: 14px; color: var(--muted); }
.ip-nodes .n b { color: var(--ink); font-weight: 500; letter-spacing: .02em; }
.ip-nodes .v { font-size: calc(var(--step-2) * var(--cjk, 1)); }
.ip-nodes .v.wide { grid-column: span 2; }
.ip-nodes .code { display: none; }
@media (max-width: 640px) {
  .ip-nodes li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ip-nodes li.head { display: none; }
  .ip-nodes .v.wide { grid-column: auto; }
  .ip-nodes .code { display: block; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
}

/* Home: the four-things grid and the hardware drawing (docs/ui-template, shadcn section "首页").
   Static drawings: the page's one load-time moment is the hero's panel boot. */

/* ================================================================ four things */
.hs-why { padding: clamp(88px, 10vw, 128px) 0 clamp(72px, 9vw, 112px); }
.hs-why h2 { margin: 0 0 40px; max-width: 16em; }
.why4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wy { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 14px 14px 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 1px 2px rgb(42 30 23 / .04), 0 12px 30px -22px rgb(42 30 23 / .18), inset 0 1px 0 rgb(255 255 255 / .05); transition: border-color var(--t-std) var(--ease), box-shadow var(--t-std) var(--ease); }
.wy:hover { border-color: var(--line-strong); box-shadow: 0 2px 6px rgb(42 30 23 / .06), 0 18px 36px -22px rgb(42 30 23 / .22), inset 0 1px 0 rgb(255 255 255 / .08); }
.wy h3 { margin: 12px 12px 0; font-size: calc(var(--step-2) * var(--cjk)); font-weight: 500; }
.wy p { margin: 0 12px; color: var(--ink-soft); max-width: 30em; }
.wy-art { position: relative; height: 220px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
@media (max-width: 760px) { .why4 { grid-template-columns: minmax(0, 1fr); } .wy-art { height: 190px; } }

/* Every drawing is a small 3D scene: perspective on the art box, a stage that rocks a few degrees
   (the same slow rhythm as the models); nothing moves for reduced motion. */
.wy-art { perspective: 900px; }
.wy-art .st { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)); animation: wy-rock 8s ease-in-out infinite alternate; }
@keyframes wy-rock { from { transform: rotateX(var(--rx, 8deg)) rotateY(calc(var(--ry, -14deg) - 7deg)); } to { transform: rotateX(var(--rx, 8deg)) rotateY(calc(var(--ry, -14deg) + 7deg)); } }
@media (prefers-reduced-motion: reduce) { .wy-art .st, .wy-art .receipt, .wy-art ul, .wy-nodes .ring { animation: none !important; } }

/* 1 · Malaysia nodes: the 3D grass block, its signal rings lying on the ground and rippling out */
.wy-nodes { display: grid; place-items: center; }
.wy-nodes .m3 { --u: 5px; width: 96px; height: 96px; }
.wy-nodes .ground { position: absolute; left: 50%; top: calc(50% + 34px); width: 0; height: 0; transform: rotateX(74deg); transform-style: preserve-3d; }
.wy-nodes .ring { position: absolute; left: 0; top: 0; width: 300px; height: 300px; border: 2px solid color-mix(in srgb, var(--ok) 70%, transparent); border-radius: 50%; translate: -50% -50%; animation: wy-ripple 4.5s ease-out infinite; }
.wy-nodes .ring:nth-child(2) { animation-delay: -1.5s; }
.wy-nodes .ring:nth-child(3) { animation-delay: -3s; }
@keyframes wy-ripple { from { scale: .45; opacity: 1; } to { scale: 1.2; opacity: 0; } }
.wy-nodes .tag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
.wy-nodes .tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* 2 · DDoS: attack packets stop at the shield, players pass through to the server */
.wy-ddos .st { --rx: 10deg; --ry: -18deg; }
.wy-ddos .srv { position: absolute; left: 8%; top: 46%; translate: 0 -50%; display: grid; justify-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.wy-ddos .srv .m3 { --u: 2.8px; width: 56px; height: 56px; }
.wy-ddos .shield { position: absolute; left: 50%; top: 46%; translate: -50% -50%; display: grid; grid-template-columns: repeat(11, 7px); gap: 1.5px; transform: translateZ(var(--z, 0)); }
.wy-ddos .shield.back { gap: 0; grid-template-columns: repeat(11, 8.5px); }
.wy-ddos .shield.back i { width: 8.5px; height: 8.5px; background: color-mix(in srgb, var(--ink) 55%, #000); }
.wy-ddos .shield i { width: 7px; height: 7px; background: var(--ink); }
.wy-ddos .shield i.o { background: transparent; }
.wy-ddos .shield i.g { background: var(--ok); }
.wy-ddos .pk { position: absolute; left: var(--x); top: var(--y); width: 11px; height: 11px; translate: -50% -50%; transform: translateZ(var(--z, 0)); }
.wy-ddos .pk.bad { background: var(--bad); }
.wy-ddos .pk.bad.hit { box-shadow: 0 0 0 5px color-mix(in srgb, var(--bad) 25%, transparent); }
.wy-ddos .pk.good { border-radius: 50%; background: var(--ok); }
.wy-ddos .legend { position: absolute; left: 14px; right: 14px; bottom: 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12.5px; color: var(--ink-soft); }
.wy-ddos .legend span { display: inline-flex; align-items: center; gap: 7px; }
.wy-ddos .legend i { width: 9px; height: 9px; background: var(--bad); }
.wy-ddos .legend i.good { border-radius: 50%; background: var(--ok); }

/* 3 · prices: a real receipt for the cheapest plan, the fee marked */
.wy-price { display: grid; place-items: center; }
.wy-price .drop { position: absolute; left: 50%; bottom: 14px; width: min(70%, 250px); height: 24px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / .45), transparent); filter: blur(4px); }
.wy-price .receipt { transform: rotateX(18deg) rotateY(-16deg) rotateZ(2deg); animation: wy-float 8s ease-in-out infinite alternate; }
@keyframes wy-float { from { transform: translateY(-4px) rotateX(18deg) rotateY(-22deg) rotateZ(2deg); } to { transform: translateY(2px) rotateX(16deg) rotateY(-9deg) rotateZ(1deg); } }
.receipt { width: min(78%, 280px); padding: 18px 18px 16px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 14px 28px -18px rgb(42 30 23 / .45); font-size: 13.5px;
  -webkit-mask: radial-gradient(5px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; mask: radial-gradient(5px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x; padding-bottom: 22px; }
.receipt .it { margin: 0 0 10px; font-weight: 500; }
.receipt dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; font-variant-numeric: tabular-nums; }
.receipt dd { margin: 0; text-align: right; }
.receipt .fee { background: color-mix(in srgb, var(--warn-bg) 85%, transparent); }
.receipt .tot { padding-top: 8px; border-top: 1px dashed var(--line-strong); font-weight: 500; font-size: 16px; }

/* 4 · languages: "invoice · paid" in the shop's own words, one row per language */
.wy-langs { display: grid; align-content: center; padding: 0 18px; }
.wy-langs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; transform-style: preserve-3d; transform: rotateX(12deg) rotateY(-9deg); animation: wy-stack 8s ease-in-out infinite alternate; }
@keyframes wy-stack { from { transform: rotateX(12deg) rotateY(-13deg); } to { transform: rotateX(11deg) rotateY(-4deg); } }
.wy-langs li { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; }
.wy-langs li { transform: translateZ(calc(var(--i) * -5px)); box-shadow: 0 10px 18px -14px rgb(0 0 0 / .7); }
.wy-langs li.on { border-color: var(--accent); transform: translateZ(14px) translateX(-4px); }
.wy-langs .lg { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.wy-langs b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wy-langs em { font-style: normal; font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }

/* ================================================================ hardware: the node drawn from above */
.hs-hw { padding: clamp(88px, 10vw, 128px) 0 clamp(80px, 9vw, 112px); }
.hs-hw .in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.hw-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 64px; align-items: end; }
.hw-head h2 { margin: 0; }
.hw-head p { margin: 0; color: var(--on-ink-soft); max-width: 34em; }
.hw-head a { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--on-ink); }
.hs-hw .eco { margin: 0; }
@media (max-width: 900px) {
  .hw-head { grid-template-columns: minmax(0, 1fr); }
  .hw-head a { grid-column: 1; }
}

/* ================================================================ order to online: three steps, all shown */
.hs-how { padding-top: clamp(88px, 10vw, 128px); }

/* hardware: one card per part, its model on top, MY-L and MY-E inside */
.hw-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hw-cards li { display: grid; align-content: start; gap: 14px; padding: 18px 20px 22px; border: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent); border-radius: 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--on-ink) 7%, transparent), color-mix(in srgb, var(--on-ink) 3%, transparent)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--on-ink) 10%, transparent); transition: border-color var(--t-std) var(--ease), background var(--t-std) var(--ease); }
.hw-cards li:hover { border-color: color-mix(in srgb, var(--on-ink) 30%, transparent); }
.hw-cards .model { display: grid; place-items: center; height: 170px; border-radius: 8px; background: color-mix(in srgb, var(--on-ink) 7%, transparent); }
.hw-cards .model .m3 { --u: 3px; width: 150px; height: 150px; }
.hw-cards h3 { margin: 4px 0 0; font-size: 18px; font-weight: 500; color: var(--on-ink); }
.hw-cards dl { margin: 0; display: grid; gap: 10px; }
.hw-cards dl > div { display: grid; gap: 2px; }
.hw-cards dt { font-size: 13px; color: var(--on-ink-muted); }
.hw-cards dt b { color: var(--on-ink); font-weight: 500; letter-spacing: .02em; }
.hw-cards dt small { font-size: 12px; }
.hw-cards dd { margin: 0; font-size: clamp(16px, 1.3vw, 19px); font-weight: 300; line-height: 1.35; color: var(--on-ink); }
@media (max-width: 900px) { .hw-cards { grid-template-columns: minmax(0, 1fr); } .hw-cards li { grid-template-columns: 120px minmax(0, 1fr); column-gap: 18px; } .hw-cards .model { grid-row: span 2; height: 120px; } .hw-cards .model .m3 { --u: 2.1px; width: 110px; height: 110px; } }

/* ---------------------------------------------------------------- CSS 3D models (src/model3d.rs)
   Boxes in model units (--u px each); a scene rocks gently around the vertical axis. Shading is
   baked per face: top lightest, front as is, right darker, the faces turned away darker still. */
.m3 { --tilt: -24deg; --turn: -36deg; position: relative; display: grid; place-items: center; perspective: 900px; }
.m3 .sc { position: relative; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(var(--tilt)) rotateY(var(--turn)); animation: m3-rock 7s ease-in-out infinite alternate; }
@keyframes m3-rock { from { transform: rotateX(var(--tilt)) rotateY(calc(var(--turn) - 16deg)); } to { transform: rotateX(var(--tilt)) rotateY(calc(var(--turn) + 16deg)); } }
@media (prefers-reduced-motion: reduce) { .m3 .sc { animation: none; } }
.m3 .bx { --W: calc(var(--w) * var(--u)); --H: calc(var(--h) * var(--u)); --D: calc(var(--d) * var(--u)); position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: translate3d(calc(var(--x) * var(--u)), calc(var(--y) * var(--u)), calc(var(--z) * var(--u))); }
.m3 .f { --shade: linear-gradient(transparent, transparent); position: absolute; left: calc(var(--fw) / -2); top: calc(var(--fh) / -2); width: var(--fw); height: var(--fh); background-color: var(--c); background-image: var(--shade); background-size: 100% 100%; background-repeat: no-repeat; image-rendering: pixelated; backface-visibility: hidden; }
.m3 .f-fr, .m3 .f-bk { --fw: var(--W); --fh: var(--H); }
.m3 .f-r, .m3 .f-l { --fw: var(--D); --fh: var(--H); }
.m3 .f-t, .m3 .f-b { --fw: var(--W); --fh: var(--D); }
.m3 .f-fr { transform: translateZ(calc(var(--D) / 2)); }
.m3 .f-bk { transform: rotateY(180deg) translateZ(calc(var(--D) / 2)); --shade: linear-gradient(rgb(0 0 0 / .34), rgb(0 0 0 / .34)); }
.m3 .f-r { transform: rotateY(90deg) translateZ(calc(var(--W) / 2)); --shade: linear-gradient(rgb(0 0 0 / .24), rgb(0 0 0 / .24)); }
.m3 .f-l { transform: rotateY(-90deg) translateZ(calc(var(--W) / 2)); --shade: linear-gradient(rgb(0 0 0 / .34), rgb(0 0 0 / .34)); }
.m3 .f-t { transform: rotateX(90deg) translateZ(calc(var(--H) / 2)); --shade: linear-gradient(rgb(255 255 255 / .16), rgb(255 255 255 / .16)); }
.m3 .f-b { transform: rotateX(-90deg) translateZ(calc(var(--H) / 2)); --shade: linear-gradient(rgb(0 0 0 / .45), rgb(0 0 0 / .45)); }
/* materials */
.m3 .mt-grass { --c: #6FAE4E; }
.m3 .mt-grass > .f-t { background-image: var(--shade), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAA0UlEQVR42l2SsQ0CMQxFvddVlDTXIVFR0zEBG9wENwAlI9xs/NOLHlYkx3Jsx/7+Tr2P++u7RmJEbtsSeeyX5+caZzR2dK7RlWMYmzweUwsjnvMBF8vYEE+i5EXnGinr2WECRlTARccIqLAnVBjUKtGTJEJLOjooBiRbyxipdpComqaUDTRQO8iSaSfB4zBugJw/S+pOkWSIubyT56zyyyT4x6Ylof8OqnROySwDdOdN373ABiRTxdZX3v8STJTdhevQ/kX3cHYw5vcSNFV8w+g/rCdVJ8rQrMEAAAAASUVORK5CYII=); }
.m3 .mt-grass > .f:not(.f-t) { background-image: var(--shade), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAA8UlEQVR42l2RMQoCUQxEcyA7O7URBLGxEARttl6wsBfsrMTawgNYegTP5lsezH6EOCaTZJKfre613D/m/Xtz/R7A2PmzhZGkBgcGp/yTxQgtjZDN4csEpphKOvbHV7RO68mzX2G344wYpPmym2YNCkAYUmDxu3cLUAqjOSq0gUiAFMCXaUtj9iMUcwWw7DMgoQ86xFKrYQjLHG2OgiLnklbLOHN4g+mwrmSn2q4QubIuy6jtWMO2emjI9KDCWdXhjh0eLRtt5TMnW2Vs+SyFxfasOW74apfOAvqSMuOj2/tIBd3HyTn3+B3+vnR735yY8AfsqyBHMd689QAAAABJRU5ErkJggg==); }
.m3 .mt-pcb-pins { --c: #3F6F47; }
.m3 .mt-pcb-pins > .f:is(.f-fr, .f-r, .f-l, .f-bk) { background-image: var(--shade), repeating-linear-gradient(90deg, transparent 0 calc(var(--u) * 1.4), #D3B86E 0 calc(var(--u) * 2.6)); }
.m3 .mt-ihs { --c: #CFC8BC; }
.m3 .mt-ihs > .f-t { background-image: var(--shade), linear-gradient(135deg, rgb(255 255 255 / .3), transparent 55%), linear-gradient(#B9B2A6, #B9B2A6); background-size: 100% 100%, 100% 100%, 46% 6%; background-position: 0 0, 0 0, 22% 30%; }
.m3 .mt-cap { --c: #3A322D; }
.m3 .mt-chip { --c: #2C2522; }
.m3 .mt-pcb-dimm, .m3 .mt-pcb-m2 { --c: #3F7A4C; }
.m3 .mt-pcb-dimm > .f:is(.f-fr, .f-bk) { background-image: var(--shade), repeating-linear-gradient(90deg, #D3B86E 0 calc(var(--u) * 1.5), transparent 0 calc(var(--u) * 2.2)); background-size: 100% 100%, 92% calc(var(--u) * 3); background-position: 0 0, 50% 100%; }
.m3 .mt-pcb-m2 > .f-fr { background-image: var(--shade), repeating-linear-gradient(90deg, #D3B86E 0 calc(var(--u) * .7), transparent 0 calc(var(--u) * 1.1)); }
.m3 .mt-drive { --c: #B9B2A6; }
.m3 .mt-drive > .f-t { background-image: var(--shade), linear-gradient(#EFE8DC, #EFE8DC), linear-gradient(#6B5B50, #6B5B50); background-size: 100% 100%, 72% 44%, 50% 4%; background-position: 0 0, 50% 22%, 34% 18%; }
.m3 .mt-drive > .f-fr { background-image: var(--shade), linear-gradient(#2A2421, #2A2421), linear-gradient(#7FC59A, #7FC59A); background-size: 100% 100%, 56% 40%, 6% 20%; background-position: 0 0, 30% 55%, 86% 50%; }

/* ---------------------------------------------------------------- receipt printer (收费透明 card) */
.wy-price.island-live { display: block; padding: 0; overflow: hidden; }
.rp { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; justify-items: center; user-select: none; }
.rp-slot { position: relative; width: min(74%, 230px); height: 100%; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.rp-paper { --feed: 0; --drag: 0px; position: relative; width: 88%; padding: 12px 12px 10px; background: #F4F1EA; color: #26241F; border-radius: 2px 2px 0 0;
  font: 500 11px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; box-shadow: 0 -6px 18px rgb(0 0 0 / .18);
  transform-origin: 50% 100%; transform: translateY(calc((1 - var(--feed)) * 100% + var(--drag))) rotateX(calc(var(--feed) * 8deg));
  transition: transform .32s cubic-bezier(.2,.7,.2,1); cursor: grab; touch-action: none; }
.rp-paper:active { cursor: grabbing; transition: none; }
.rp-paper.is-torn { transform: translate(18px, -140%) rotate(-9deg); opacity: 0; transition: transform .6s cubic-bezier(.4,0,.2,1), opacity .6s; }
.rp-edge { position: absolute; left: 0; right: 0; top: -5px; height: 6px; background: radial-gradient(circle at 4px -1px, transparent 4px, #F4F1EA 4.5px) 0 0 / 8px 6px repeat-x; }
.rp-paper p { margin: 0; opacity: 0; transition: opacity .2s; }
.rp-paper [data-on="true"] { opacity: 1; }
.rp-h { text-align: center; font-weight: 700; letter-spacing: .14em; margin-bottom: 6px !important; }
.rp-row { display: flex; justify-content: space-between; gap: 10px; }
.rp-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-row b { font-weight: 600; white-space: nowrap; }
.rp-tot { margin-top: 5px !important; padding-top: 5px; border-top: 1px dashed #8d887c; font-weight: 700; }
.rp-foot { margin-top: 6px !important; text-align: center; font-size: 9.5px; color: #6b665c; }
.rp-code { margin-top: 5px; opacity: 0; transition: opacity .2s; }
.rp-code[data-on="true"] { opacity: 1; }
.rp-bars { display: block; width: 100%; height: 22px; fill: #26241F; }
.rp-body { position: relative; z-index: 2; width: min(84%, 260px); height: 34px; border-radius: 8px 8px 10px 10px; background: linear-gradient(#2a2a2e, #1c1c1f);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 8px 18px rgb(0 0 0 / .3); }
.rp-mouth { position: absolute; left: 9%; right: 9%; top: 5px; height: 4px; border-radius: 3px; background: #0c0c0d; box-shadow: inset 0 1px 2px rgb(0 0 0 / .8); }
.rp-light { position: absolute; right: 12px; bottom: 9px; width: 6px; height: 6px; border-radius: 50%; background: #3e3a2f; }
.rp-light[data-busy="true"] { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: rp-blink .8s steps(2) infinite; }
@keyframes rp-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rp-paper, .rp-paper p { transition: none; } .rp-light[data-busy="true"] { animation: none; } }

/* ---------------------------------------------------------------- product lines (arc list) */
.hs-lines .in { display: grid; gap: 28px; }
.lines-head h2 { margin: 0 0 8px; }
.lines-head p { margin: 0; color: var(--muted); max-width: 40em; }
.lines-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lines-plain span { color: var(--muted); }
.arc { position: relative; display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 64px; align-items: center; min-height: 380px; }
.arc-media { position: relative; aspect-ratio: .78; width: 100%; max-width: 340px; }
.arc-shot { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, color-mix(in srgb, var(--accent) 14%, var(--card)), var(--card)); transition: opacity .25s, filter .25s; }
.arc-shot img { width: 62%; height: auto; filter: drop-shadow(0 18px 24px rgb(0 0 0 / .35)); }
.arc-glyph { font-size: 96px; font-weight: 600; color: var(--accent); }
.arc-shot figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.arc-shot figcaption span { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 80%, transparent); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink); backdrop-filter: blur(6px); }
.arc-list { position: relative; height: 380px; overflow: hidden; outline: none; touch-action: none; cursor: grab;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent); }
.arc-list:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 10px; }
.arc-mark { position: absolute; left: -22px; top: 50%; width: 0; height: 0; border: 6px solid transparent; border-left: 8px solid var(--accent); transform: translateY(-50%); }
.arc-item { position: absolute; left: 0; top: 50%; display: grid; gap: 4px; transform-origin: 0 50%; white-space: nowrap; cursor: pointer; }
.arc-title { position: relative; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.01em; color: var(--muted); }
.arc-item.is-active .arc-title { color: var(--ink); }
.arc-fill { position: absolute; inset: 0; color: var(--accent); clip-path: inset(0 100% 0 0); animation: arc-fill linear forwards; pointer-events: none; }
@keyframes arc-fill { to { clip-path: inset(0 0 0 0); } }
.arc-sub { font-size: 14px; color: var(--muted); white-space: normal; max-width: 30em; }
.arc.is-narrow { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
.arc.is-narrow .arc-list { width: 100%; height: 150px; mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent); }
.arc.is-narrow .arc-item { left: 50%; top: 8px; justify-items: center; text-align: center; transform-origin: 50% 0; }
.arc.is-narrow .arc-mark { left: 50%; top: -4px; border: 6px solid transparent; border-top: 8px solid var(--accent); transform: translateX(-50%); }
.arc.is-narrow .arc-sub { max-width: 22em; }
@media (prefers-reduced-motion: reduce) { .arc-shot { transition: none; } }

/* ---------------------------------------------------------------- signal map */
.hs-map .in { display: grid; gap: 24px; }
.map-head h2 { margin: 0 0 8px; }
.map-head p { margin: 0; color: var(--muted); max-width: 44em; }
.smap { position: relative; width: 100%; }
.smap canvas { display: block; width: 100%; cursor: crosshair; }
.smap-tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); padding: 3px 9px; border-radius: 6px; background: var(--card); border: 1px solid var(--line-strong);
  font-size: 12.5px; color: var(--ink); white-space: nowrap; pointer-events: none; }
.smap-tip.is-node { border-color: var(--accent); }
.smap-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.smap-legend li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }

/* the receipt keeps its own ink whatever the section text colour is */
.wy-art .rp-paper, .wy-art .rp-paper p, .wy-art .rp-paper span, .wy-art .rp-paper b { color: #26241F; }
.wy-art .rp-paper .rp-foot { color: #6b665c; }

/* product lines: room under the preview card before the next section */
.hs.hs-lines { padding-bottom: clamp(120px, 15vw, 200px); }

/* ================================================================ Minecraft sections (src/home_mc.rs) */
.hs-panel, .hs-cores, .hs-friends { padding: clamp(88px, 10vw, 128px) 0 clamp(80px, 9vw, 112px); }
.hs-panel .in, .hs-cores .in, .hs-friends .in { display: grid; gap: 40px; }
.mc-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 64px; align-items: end; }
.mc-head h2 { margin: 0; }
.mc-head p { margin: 0; color: var(--muted); max-width: 40em; }
@media (max-width: 860px) { .mc-head { grid-template-columns: minmax(0, 1fr); } }

/* --- control panel tour: radio tabs, one illustrated window */
.ptour { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.ptour-input { position: absolute; opacity: 0; pointer-events: none; }
.ptour-tabs { display: grid; gap: 6px; }
.ptour-tab { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.ptour-tab b { font-weight: 500; font-size: 16px; }
.ptour-tab span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.ptour-tab:hover { background: color-mix(in srgb, var(--card) 70%, transparent); }
.ptour-win { position: relative; margin: 0; min-height: 360px; border: 1px solid var(--line-strong); border-radius: 12px; background: #141414; color: #e8e4dc; overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / .28); }
.ptour-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #262626; font-size: 13px; color: #a8a29a; }
.ptour-bar .dots { display: inline-flex; gap: 6px; } .ptour-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #333; }
.ptour-pane { display: none; padding: 18px; gap: 14px; font-size: 13.5px; }
.ptour:has(#pt-console:checked) [data-pane="console"], .ptour:has(#pt-files:checked) [data-pane="files"], .ptour:has(#pt-backups:checked) [data-pane="backups"],
.ptour:has(#pt-schedules:checked) [data-pane="schedules"], .ptour:has(#pt-users:checked) [data-pane="users"] { display: grid; animation: pt-in .35s ease both; }
.ptour:has(#pt-console:checked) [data-tab="console"], .ptour:has(#pt-files:checked) [data-tab="files"], .ptour:has(#pt-backups:checked) [data-tab="backups"],
.ptour:has(#pt-schedules:checked) [data-tab="schedules"], .ptour:has(#pt-users:checked) [data-tab="users"] { background: var(--card); border-color: var(--line-strong); }
.ptour:has(.ptour-input:focus-visible) .ptour-tabs { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
@keyframes pt-in { from { opacity: 0; transform: translateY(6px); } }
.pt-log { font: 12.5px/1.75 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.pt-log p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pt-log span { color: #8a847b; }
.pt-log .cmd { color: var(--accent); }
.pt-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 12px; border-top: 1px solid #262626; }
.pt-meters div { display: grid; gap: 6px; font-size: 12px; color: #a8a29a; }
.pt-meters b { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) calc(var(--v) * 100%), #2a2a2a 0); }
.pt-meters em { font-style: normal; color: #e8e4dc; font-variant-numeric: tabular-nums; }
.pt-files { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid #262626; border-radius: 8px; }
.pt-files li { padding: 9px 12px; border-top: 1px solid #222; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.pt-files li:first-child { border-top: 0; }
.pt-files li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 2px; background: #5b5650; vertical-align: -1px; }
.pt-files li.dir::before { background: var(--accent); }
.pt-drop { margin: 0; padding: 14px; border: 1.5px dashed #3a3a3a; border-radius: 8px; text-align: center; color: #a8a29a; }
.pt-sftp { margin: 0; display: flex; gap: 10px; align-items: center; color: #a8a29a; } .pt-sftp b { color: var(--accent); font-weight: 600; }
.pt-backups, .pt-sched, .pt-users { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pt-backups li, .pt-sched li, .pt-users li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid #262626; border-radius: 8px; background: #181818; }
.pt-backups span { color: #a8a29a; font-variant-numeric: tabular-nums; }
.pt-backups .ok { font-style: normal; color: #6cc28a; }
.pt-backups .new span { width: 120px; } .pt-backups .new i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) calc(var(--v) * 100%), #2a2a2a 0); }
.pt-note { margin: 0; color: #a8a29a; font-size: 12.5px; }
.pt-sched li { grid-template-columns: auto 1fr auto; } .pt-sched code { color: var(--accent); }
.pt-sched em { font-style: normal; color: #a8a29a; font-size: 12.5px; }
.pt-users li { grid-template-columns: auto 1fr auto; }
.pt-users .mc-face { width: 28px; height: 28px; border-radius: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .chips i { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid #333; color: #cfc9bf; }
@media (max-width: 860px) { .ptour { grid-template-columns: minmax(0, 1fr); } .ptour-tabs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .ptour-tab span { display: none; } }
@media (prefers-reduced-motion: reduce) { .ptour-pane { animation: none !important; } }

/* --- server cores, on the inverted band like the hardware */
.hs-cores { background: var(--ink); color: var(--on-ink); }
.hs-cores .mc-head p { color: var(--on-ink-soft); }
.mc-cores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mc-core { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--on-ink) 14%, transparent);
  background: color-mix(in srgb, var(--on-ink) 4%, transparent); transition: border-color .2s, translate .25s; }
.mc-core:hover { border-color: color-mix(in srgb, var(--on-ink) 32%, transparent); translate: 0 -2px; }
.mc-core b { font-weight: 500; }
.mc-core p { margin: 4px 0 6px; font-size: 13.5px; line-height: 1.55; color: var(--on-ink-soft); }
.mc-core small { font-size: 12.5px; color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.mc-block { width: 52px; height: auto; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .25)); }
.mc-extra { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 20px 22px; border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--on-ink) 26%, transparent); }
.mc-extra b { font-weight: 500; } .mc-extra p { margin: 4px 0 0; color: var(--on-ink-soft); max-width: 46em; font-size: 14.5px; }
.hs-cores .btn-line { color: var(--on-ink); border-color: color-mix(in srgb, var(--on-ink) 40%, transparent); }

/* --- with friends */
.mc-friends { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mc-friends > li { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 14px 14px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.mc-friends h3 { margin: 6px 6px 0; font-size: 18px; font-weight: 500; }
.mc-friends > li > p { margin: 0 6px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.mf-art { position: relative; height: 190px; border-radius: 8px; background: var(--paper); overflow: hidden; display: grid; place-items: center; }
.mf-share { gap: 16px; align-content: center; }
.mf-addr { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); }
.mf-addr code { font-size: 13.5px; } .mf-addr span { font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.mf-faces { display: flex; justify-content: center; }
.mf-faces .mc-face { width: 40px; height: 40px; border-radius: 6px; border: 2px solid var(--paper); margin-left: -8px; box-shadow: 0 4px 10px rgb(0 0 0 / .2); }
.mf-faces .mc-face:first-child { margin-left: 0; }
.mf-net > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mf-net path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 5; animation: mf-flow 1.6s linear infinite; }
@keyframes mf-flow { to { stroke-dashoffset: -18; } }
.mf-net .n { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; }
.mf-net .n .mc-block { width: 34px; } .mf-net .hub .mc-block { width: 44px; }
.mf-net em { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.mf-time { align-content: center; gap: 14px; }
.mf-time ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.mf-time ol li { position: relative; width: 44px; display: grid; justify-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.mf-time ol li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); z-index: 1; }
.mf-time ol li::after { content: ""; position: absolute; top: 6px; left: 50%; width: 44px; height: 2px; background: var(--line-strong); }
.mf-time ol li:last-child::after { display: none; }
.mf-time ol li.on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.mf-time ol li.now::before { border-style: dashed; }
.mf-time p { margin: 0; font-size: 13px; color: var(--muted); } .mf-time p b { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .mc-friends { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .mf-net path { animation: none; } .mc-core { transition: none; } }

/* Minecraft intro: block scenes in the arc list preview */
.arc-art-wrap { display: grid; place-items: center; width: 100%; height: 100%; padding: 12% 8% 22%; color: var(--ink); }
.arc-art { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .3)); }
.mc-block, .mc-face { shape-rendering: crispEdges; }
.mc-cores .mc-block { width: 56px; }

/* 3D heads and bigger network blocks */
.mf-faces { gap: 4px; align-items: end; }
.mf-faces .mc-face { width: 58px; height: auto; border: 0; border-radius: 0; margin-left: -6px; box-shadow: none; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .3)); }
.mf-faces .mc-face:nth-child(even) { translate: 0 -6px; }
.mf-net .n .mc-block { width: 46px; } .mf-net .hub .mc-block { width: 60px; }
.pt-users .mc-face { width: 34px; height: auto; border-radius: 0; }

/* the map section: more room above it */
.hs.hs-map { padding-top: clamp(112px, 13vw, 176px); }

/* ---------------------------------------------------------------- photo gallery */
.hs-gallery { padding: clamp(88px, 10vw, 128px) 0 clamp(80px, 9vw, 112px); }
.hs-gallery .in { display: grid; gap: 40px; }
.mc-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(150px, 18vw, 260px)) clamp(150px, 16vw, 230px);
  grid-template-areas: "a a a a b b" "a a a a c c" "d d d e e e"; }
.mc-gallery .g-temple { grid-area: a; } .mc-gallery .g-garden { grid-area: b; } .mc-gallery .g-friends { grid-area: c; }
.mc-gallery .g-interior { grid-area: d; } .mc-gallery .g-dusk { grid-area: e; }
.mc-gallery li { position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.mc-gallery a { display: block; width: 100%; height: 100%; color: #fff; }
.mc-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; }
.mc-gallery a:hover img { transform: scale(1.04); }
.mc-gallery a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 860px) {
  .mc-gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 44vw; grid-template-areas: "a a" "b c" "d e"; }
}
@media (max-width: 520px) { .mc-gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 56vw; grid-template-areas: "a" "b" "c" "d" "e"; } }
@media (prefers-reduced-motion: reduce) { .mc-gallery img { transition: none; } .mc-gallery a:hover img { transform: none; } }
.mc-gallery a[data-photo] { cursor: zoom-in; }

/* photo viewer (PhotoViewer island): a photo opened like a post, picture left, caption and actions right */
.pv-overlay { position: fixed; inset: 0; z-index: 200; background: rgb(12 8 4 / .86); backdrop-filter: blur(6px); animation: pv-fade .2s ease-out; }
.pv { position: fixed; inset: 0; z-index: 201; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px) clamp(64px, 7vw, 96px); outline: none; }
.pv-post { display: grid; grid-template-columns: minmax(0, auto) 340px; width: min(1240px, 100%); max-height: calc(100dvh - 2 * clamp(16px, 4vw, 56px));
  overflow: hidden; border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / .45); animation: pv-in .26s cubic-bezier(.2,.7,.2,1); }
.pv-media { position: relative; display: grid; place-items: center; overflow: hidden; background: #0b0806; aspect-ratio: var(--ar); max-height: inherit; touch-action: pan-y; }
.pv-media img { grid-area: 1 / 1; display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.pv-side { display: grid; grid-template-rows: auto 1fr auto auto; min-width: 0; min-height: 0; border-left: 1px solid var(--line); }
.pv-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pv-head > div { display: grid; min-width: 0; line-height: 1.3; }
.pv-head b { font-weight: 600; font-size: 14.5px; }
.pv-head span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-head .pv-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--oat); color: var(--ink); flex: none; }
.pv-head .pv-count { margin-left: auto; flex: none; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pv-caption { display: grid; align-content: start; gap: 10px; padding: 18px 16px; overflow-y: auto; }
.pv-title { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -.005em; }
.pv-caption p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.pv-dots { list-style: none; margin: 0; padding: 0 16px 14px; display: flex; gap: 6px; overflow-x: auto; }
.pv-dots button { display: block; padding: 0; border: 2px solid transparent; border-radius: 7px; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.pv-dots button:hover { opacity: .9; }
.pv-dots button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.pv-dots img { display: block; width: 52px; height: 34px; border-radius: 5px; object-fit: cover; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 14px; border-top: 1px solid var(--line); }
.pv .pv-act { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: none;
  color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.pv .pv-act:hover { background: var(--oat); border-color: var(--line-strong, var(--line)); }
.pv .pv-act:focus-visible, .pv .pv-btn:focus-visible, .pv-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pv .pv-btn { position: fixed; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; transition: background-color .2s; }
.pv .pv-btn:hover { background: rgb(255 255 255 / .24); }
.pv-close { top: 14px; right: 14px; }
.pv-nav { top: 50%; translate: 0 -50%; }
.pv-prev { left: clamp(10px, 2vw, 28px); } .pv-next { right: clamp(10px, 2vw, 28px); }
@keyframes pv-fade { from { opacity: 0; } }
@keyframes pv-in { from { opacity: 0; transform: scale(.97); } }
@media (max-width: 860px) {
  .pv { padding: 0; place-items: stretch; }
  .pv-post { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; max-height: none; height: 100dvh; border-radius: 0; overflow-y: auto; }
  .pv-media { max-height: none; padding-top: 56px; box-sizing: content-box; }
  .pv-side { border-left: 0; grid-template-rows: auto auto auto auto; align-content: start; }
  .pv .pv-btn { background: rgb(0 0 0 / .45); }
  .pv-close { top: 10px; right: 10px; }
  .pv-nav { top: calc(56px + 28vw); }
}
@media (prefers-reduced-motion: reduce) { .pv-overlay, .pv-post { animation: none; } }

/* ---------------------------------------------------------------- control panel: card stack (PanelSwap island) */
.pswap-live.island-live { display: block; }
.pswap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.pswap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pswap-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: 10px;
  background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s; }
.pswap-item:hover { background: color-mix(in srgb, var(--card) 70%, transparent); }
.pswap-item[aria-current="true"] { background: var(--card); border-color: var(--line-strong); }
.pswap-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pswap-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--oat); color: var(--muted); transition: color .2s, background-color .2s; }
.pswap-item[aria-current="true"] .pswap-ic { color: var(--on-accent); background: var(--accent); }
.pswap-t { display: grid; gap: 4px; }
.pswap-t b { font-weight: 500; font-size: 16px; }
.pswap-t span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.pswap-stage { height: clamp(360px, 38vw, 470px); }
.pswap-card { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.pswap-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgb(255 255 255 / .07); font-size: 13.5px; }
.pswap-bar b { font-weight: 500; }
.pswap-badge { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.pswap-server { margin-left: auto; font-size: 12px; color: #8a847b; }
.pswap-pane { display: grid; align-content: start; gap: 12px; padding: 14px 16px; overflow: hidden; font-size: 13px; color: #e8e4dc; }
.pswap-pane .pt-log { font-size: 12px; }
@media (max-width: 860px) {
  .pswap { grid-template-columns: minmax(0, 1fr); }
  .pswap-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .pswap-t span { display: none; }
  .pswap-stage { height: clamp(380px, 70vw, 480px); }
}

}
