/* SaveSlot components. Copy this file with tokens.css, or copy single blocks.
   Values are lifted from the site prototype (saveslot-site-redesign/proto/index.html); only the variable names
   and the small-text colours follow DESIGN.md. Every class is prefixed ss- so it can sit beside existing CSS.
   Open kit.html to see each block rendered with its markup. */

.ss, .ss * { box-sizing: border-box; }
.ss { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.6; }

/* ---------- ground ---------- */
.ss-studio { background: var(--studio); }                 /* hero, story, any facade page */
/* section: full-bleed, one paper ground; neighbours are split by a full-bleed 1px hairline (13.2 #53) */
.ss-panel { position: relative; background: var(--bg); padding: var(--section-y) var(--gut); }
.ss-panel + .ss-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-1); }
.ss-panel.is-white { background: var(--bg); }   /* kept for old markup; sections no longer alternate grounds */
.ss-panel.is-closing { background: var(--ink); color: #fff; padding: 120px var(--gut) 112px; }
.ss-panel.is-closing::before { display: none; }
.ss-panel.is-closing h2 { font-size: clamp(40px, 4.6vw, 60px); line-height: 1.14; letter-spacing: -0.03em; }
.ss-panel.is-closing p { margin-top: 22px; color: #b9bccb; font-size: 19px; }

/* ---------- type ---------- */
/* display headings: Roboto Serif 500 (zh 600); others 560/600 (2026-11-23) */
.ss-h-hero { font-family: var(--display); font-variation-settings: "opsz" 100; font-size: clamp(44px, 5.1vw, 70px); font-weight: 500; letter-spacing: -0.022em; line-height: 1.02; margin: 0; }
.ss-h-panel { font-family: var(--display); font-variation-settings: "opsz" 100; font-size: clamp(32px, 3.45vw, 44px); font-weight: 500; letter-spacing: -0.022em; line-height: 1.1; margin: 0; }
.ss-h-story { font-family: var(--display); font-variation-settings: "opsz" 100; font-size: 42px; font-weight: 500; letter-spacing: -0.022em; line-height: 1.15; margin: 0; }
:lang(zh) :is(.ss-h-hero, .ss-h-panel, .ss-h-story) { font-weight: 600; letter-spacing: 0; line-height: 1.2; }
.ss-h-page { font-size: 32px; font-weight: 560; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }      /* product page title */
.ss-h-facade { font-size: 40px; font-weight: 560; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }    /* product facade page title */
.ss-h-card { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: 14px 0 8px; }
.ss-lead { margin: 16px 0 0; max-width: 560px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.ss-lead strong, .ss-body strong, .ss-lead b, .ss-body b { color: var(--ink); font-weight: 500; }   /* one key phrase per paragraph */
.ss-body { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); margin: 0; }
.ss-fine { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.ss-wordmark { font-family: var(--wordmark); font-size: 300px; line-height: 0.86; letter-spacing: -0.01em; color: var(--ink); text-transform: uppercase; }

/* ---------- optional amber tag for product facade / story screens; website sections use no eyebrow (13.2 #50) ---------- */
.ss-tag { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; color: var(--brand-ink); background: var(--brand-soft); padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 20px; }
/* section head: title on the left, lead + inline link bottom- and right-aligned on desktop (2026-11-24) */
.ss-head2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 16px 56px; align-items: end; margin-bottom: 32px; }
.ss-head2 > :last-child { justify-self: end; text-align: right; max-width: 480px; padding-bottom: 0.15em; }
.ss-head2 .ss-lead { margin-top: 0; max-width: none; font-size: 16px; line-height: 1.68; }
.ss-lead-link { margin-left: 10px; font-weight: 600; color: var(--brand-ink); white-space: nowrap; text-decoration: underline 1px color-mix(in srgb, currentColor 34%, transparent); text-underline-offset: 5px; transition: text-decoration-color var(--t-fast); }
.ss-lead-link:hover { text-decoration-color: currentColor; }
/* text link: soft underline, only the arrow moves */
.ss-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--brand-ink); text-decoration: underline 1px color-mix(in srgb, currentColor 34%, transparent); text-underline-offset: 6px; transition: text-underline-offset var(--t-base) var(--out), text-decoration-color var(--t-fast); }
.ss-link:hover { text-underline-offset: 3.5px; text-decoration-color: currentColor; }
.ss-link .arr { display: inline-block; font-weight: 400; color: color-mix(in srgb, currentColor 60%, transparent); transition: transform var(--t-base) var(--out); }
.ss-link:hover .arr { transform: translateX(2px); }

/* ---------- buttons: flat, 10px radius (6px under 32px or inside segmented switch; 2026-11-24) ---------- */
.ss-btn{ font-family: var(--sans); font-weight: 700; font-size: 16px; border-radius:var(--r-small); padding: 14px 24px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 0; background: var(--brand); color: var(--ink); }
.ss-btn.is-dark { background: var(--ink); color: #fff; font-size: 14px; padding: 11px 20px; }
.ss-btn.is-line { background: #fff; color: var(--ink); border: 1px solid var(--line-3); padding: 13px 23px; transition: border-color var(--t-fast); }
.ss-btn.is-line:hover { border-color: rgba(22, 26, 43, 0.28); }
.ss-btn.is-small { font-size: 14px; padding: 9px 16px; }
.ss-btn.is-line.is-small { padding: 7px 14px; }
.ss-btn:focus-visible, .ss-seg button:focus-visible, .ss-option:focus-visible, .ss-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- email form ---------- */
.ss-form{ display: flex; width: 460px; max-width: 100%; background: var(--card); border-radius:var(--r-card); padding: 6px; box-shadow: var(--sh-form); }
.ss-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 18px; font: 500 16px var(--sans); color: var(--ink); }
.ss-form .ss-btn { padding: 15px 22px; }

/* ---------- text input (product forms). The pill form above is only for a single email field with its button ---------- */
.ss-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ss-input { width: 100%; font: 500 15px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-small); padding: 11px 14px; outline: 0; }
.ss-input::placeholder { color: var(--ink-3); }
.ss-input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- sticky entry ---------- */
.ss-sticky{ display: inline-flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 8px 8px 8px 20px; border-radius:var(--r-card); box-shadow: 0 16px 40px -18px rgba(60, 40, 20, 0.45); font-size: 14px; color: var(--ink-2); }

/* ---------- nav ---------- */
.ss-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 48px; }
.ss-nav .ss-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.ss-logo-word { display: block; height: 22px; width: auto; } /* inline design/assets/logo/saveslot-wordmark-currentcolor.svg */

/* ---------- logo mark: the pinwheel (DESIGN.md 4.7) ----------
   Nine <i> cells, only 1/3/5/7/9 drawn: lavender top, green right, amber centre, blue left, coral bottom.
   Size with --s (one cell); the whole mark is 3 cells + 2 gaps. No ink, no other colours, same on every page. */
.ss-logo-mark { --s: 7px; display: inline-grid; grid-template-columns: repeat(3, var(--s)); grid-template-rows: repeat(3, var(--s)); gap: calc(var(--s) / 7); flex: none; }
.ss-logo-mark i { border-radius: calc(var(--s) * 0.3); }
.ss-logo-mark i:nth-child(2n) { display: none; }
.ss-logo-mark i:nth-child(1) { grid-area: 1 / 1 / 2 / 3; background: #bcaaf2; }
.ss-logo-mark i:nth-child(3) { grid-area: 1 / 3 / 3 / 4; background: #92daa8; }
.ss-logo-mark i:nth-child(5) { grid-area: 2 / 2 / 3 / 3; background: #f2b33d; }
.ss-logo-mark i:nth-child(7) { grid-area: 2 / 1 / 4 / 2; background: #8dcfe7; }
.ss-logo-mark i:nth-child(9) { grid-area: 3 / 2 / 4 / 4; background: #f9806b; }
/* Loading: one turn, then rest. Used for boot screens and long waits, never as decoration. */
/* A quarter turn and a rest, four times; the cycle ends on a full turn so the colours don't jump back. */
.ss-logo-mark.is-loading { animation: ss-logo-turn 6.4s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes ss-logo-turn { 0% { transform: rotate(0); } 15%, 25% { transform: rotate(90deg); } 40%, 50% { transform: rotate(180deg); } 65%, 75% { transform: rotate(270deg); } 90%, 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ss-logo-mark.is-loading { animation: none; } }
.ss-nav ul { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.ss-nav.is-solid { background: rgba(250, 250, 248, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-1); }

/* ---------- segmented switch ---------- */
.ss-seg { display: inline-flex; background: var(--card); border-radius: var(--r-small); padding: 4px; box-shadow: inset 0 0 0 1px var(--line-2); }
.ss-seg button{ border: 0; background: transparent; padding: 9px 20px; border-radius:var(--r-tiny); font: 700 15px var(--sans); color: var(--ink-2); cursor: pointer; }
.ss-seg button.is-on { background: var(--ink); color: #fff; }

/* ---------- list option: numbered, one selected ---------- */
.ss-options { display: grid; gap: 10px; width: 400px; max-width: 100%; }
.ss-option { text-align: left; border: 0; background: rgba(255, 255, 255, 0.55); border-radius: var(--r-mid); padding: 12px 16px; cursor: pointer; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; opacity: 0.62; font-family: var(--sans); color: var(--ink); transition: background 0.3s, box-shadow 0.3s, opacity 0.3s; }
.ss-option.is-on { background: var(--card); box-shadow: 0 12px 26px -16px rgba(60, 40, 20, 0.5); opacity: 1; }
.ss-option .ss-n { grid-row: span 2; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--ink); }
.ss-option .ss-n.is-bad { background: #e0483b; } .ss-option .ss-n.is-unk { background: #2f6fe0; } .ss-option .ss-n.is-ok { background: #1f9d55; } .ss-option .ss-n.is-inf { background: #8a5cd6; }
.ss-option strong { font-size: 16px; font-weight: 700; }
.ss-option span { font-size: 13px; color: var(--ink-2); }

/* ---------- state pill (paper layer): colour plus a mark, never colour alone ---------- */
.ss-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: var(--r-pill); white-space: nowrap; line-height: 1.4; }
.ss-pill.is-ok { color: var(--ok); background: var(--ok-bg); }
.ss-pill.is-inf { color: var(--inf); background: var(--inf-bg); }
.ss-pill.is-unk { color: var(--unk); background: var(--unk-bg); }
.ss-pill.is-bad { color: var(--bad); background: var(--bad-bg); }
.ss-pill.is-soft { color: var(--ink-3-text); background: var(--bg); font-size: 12px; padding: 3px 10px; }   /* "planned", "recommended" */

/* ---------- state gem (screen layer) ---------- */
.ss-gem { display: inline-grid; place-items: center; font-family: var(--pixel); font-size: 13px; min-width: 38px; height: 30px; border-radius: 6px; padding: 0 8px; box-shadow: var(--sh-key); flex: none; }
.ss-gem.is-ok { background: var(--scr-ok); color: var(--scr-ok-ink); }
.ss-gem.is-inf { background: var(--scr-inf); color: var(--scr-inf-ink); font-size: 20px; }
.ss-gem.is-unk { background: var(--scr-unk); color: var(--scr-unk-ink); }
.ss-gem.is-bad { background: var(--scr-bad); color: var(--scr-bad-ink); }

/* ---------- pixel sticker: facade pages only, tilted, at most four on a screen ---------- */
.ss-sticker { display: inline-block; font-style: normal; font-family: var(--pixel); font-size: 21px; line-height: 1; padding: 12px 16px; border-radius: 16px; border: 5px solid #fff; white-space: nowrap; box-shadow: 0 16px 30px -14px rgba(60, 40, 20, 0.55), inset 0 -4px 0 rgba(0, 0, 0, 0.15); transform: rotate(var(--tilt, -7deg)); }
.ss-sticker.is-ok { background: var(--scr-ok); color: var(--scr-ok-ink); }
.ss-sticker.is-unk { background: var(--scr-unk); color: var(--scr-unk-ink); }
.ss-sticker.is-bad { background: var(--scr-bad); color: #fff; }
.ss-sticker.is-save { background: #1b1630; color: var(--scr-gold); font-size: 17px; }
.ss-sticker.is-small { font-size: 13px; padding: 7px 10px; border-width: 3px; border-radius: 10px; }
.ss-sticker .ss-zh { font-family: var(--sans); font-weight: 700; }   /* Silkscreen has no Chinese glyphs */

/* ---------- slot number badge: the one pixel mark the product always carries ---------- */
.ss-slotno { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-tiny); background: var(--bg-deep); font-family: var(--pixel); font-size: 12px; color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.ss-slotno.is-on { background: var(--brand); }

/* ---------- info card ---------- */
.ss-grid { display: grid; gap: 18px; }
.ss-grid.is-4 { grid-template-columns: repeat(4, 1fr); } .ss-grid.is-3 { grid-template-columns: repeat(3, 1fr); } .ss-grid.is-2 { grid-template-columns: repeat(2, 1fr); }
.ss-card { background: var(--card); border-radius: var(--r-card); padding: 24px; box-shadow: var(--sh-hairline); }
.ss-card.is-inner { background: var(--surface); box-shadow: none; }                 /* inside a white panel: change the ground, drop the shadow */
.ss-card.is-rec { box-shadow: 0 0 0 2px var(--brand); }
.ss-card ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); line-height: 2; }
.ss-card ul li::before { content: '▪ '; color: var(--ok); }
.ss-mark { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; font-family: var(--pixel); font-size: 15px; background: var(--bg); }
.ss-price { margin-top: 10px; font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ss-price small { font-size: 15px; color: var(--ink-3-text); font-weight: 500; }
.ss-tbd { display: inline-block; font-family: var(--pixel); font-size: 11px; color: var(--ink-3-text); border: 2px dashed #d6d4ce; padding: 4px 8px; border-radius: 6px; }   /* not announced yet */

/* ---------- note: the only way to call something out. Whole block, four equal corners, never a bar on one side ---------- */
.ss-note { background: var(--brand-soft); color: var(--ink); border-radius: var(--r-small); padding: 12px 16px; font-size: 14px; line-height: 1.6; }
.ss-note.is-quiet { background: var(--surface); }
.ss-note.is-bad { background: var(--bad-bg); }

/* ---------- chat window ---------- */
.ss-chat { background: var(--card); border-radius: 16px; padding: 18px; width: 340px; max-width: 100%; box-shadow: var(--sh-float), 0 0 0 1px rgba(0, 0, 0, 0.03); font-size: 14px; }
.ss-chat-hd { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.ss-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 16px; flex: none; }
.ss-chat-hd .ss-dots { margin-left: auto; color: #b6aea2; letter-spacing: 2px; }
.ss-bubble-u { margin: 16px 0 12px auto; width: fit-content; max-width: 90%; background: #f2eee8; padding: 10px 16px; border-radius: 16px 16px 4px 16px; line-height: 1.6; }
.ss-bubble-a { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; line-height: 1.6; }
.ss-bubble-a h5 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.ss-line { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 9px 10px; background: var(--row); border-radius: var(--r-small); font-size: 13px; line-height: 1.35; }
.ss-line .ss-ico { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; flex: none; }
.ss-line .ss-pill { margin-left: auto; }
.ss-wrong { margin-top: 10px; display: inline-block; font-size: 12px; font-weight: 700; color: var(--bad); background: var(--bad-bg); padding: 5px 10px; border-radius: 6px; line-height: 1.5; }

/* ---------- state table ---------- */
.ss-table { width: 410px; max-width: 100%; background: var(--card); border-radius: 16px; padding: 18px 18px 14px; box-shadow: var(--sh-hairline); }
.ss-table h5 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin: 0; }
.ss-table h5 small { margin-left: auto; font-family: var(--pixel); font-weight: 400; font-size: 11px; color: var(--ink-3); }
.ss-thead, .ss-trow { display: grid; grid-template-columns: 82px 1fr 88px; gap: 10px; align-items: center; }
.ss-thead { margin-top: 12px; padding: 0 10px 8px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--ink-3-text); }
.ss-trow { padding: 10px; border-radius: var(--r-small); margin-top: 6px; background: var(--row); font-size: 13px; }
.ss-trow .ss-k { font-weight: 700; }
.ss-trow .ss-v b { display: block; font-size: 14px; }
.ss-trow .ss-v small { color: var(--ink-3-text); font-size: 11.5px; }
.ss-trow s { color: var(--ink-3); }
.ss-trow .ss-pill { justify-self: end; }

/* ---------- data fragments: raw inputs before they are saved. Scatter them, never line them up ---------- */
.ss-frag { display: inline-grid; gap: 6px; justify-items: start; }
.ss-frag .ss-cap { font-size: 11px; font-weight: 700; color: var(--ink-3-text); letter-spacing: 0.06em; }
.ss-frag .ss-fbody { background: var(--card); box-shadow: var(--sh-lift); font-size: 14px; white-space: nowrap; padding: 10px 14px; border-radius: 10px; }
.ss-frag.is-chat .ss-fbody { border-radius: 16px 16px 16px 4px; }
.ss-frag.is-json .ss-fbody { border-radius: 10px; font-family: var(--mono); font-size: 12.5px; background: #1d1a2e; color: #c9c2ff; }
.ss-frag.is-json .ss-fbody i { color: #8ff0a4; font-style: normal; }
.ss-frag.is-sheet .ss-fbody { display: flex; padding: 0; border-radius: 6px; overflow: hidden; font-size: 13px; }
.ss-frag.is-sheet .ss-fbody span { padding: 8px 12px; border-right: 1px solid #eee; }
.ss-frag.is-sheet .ss-fbody span:first-child { background: #e7f6ec; color: var(--ok); font-weight: 700; }
.ss-frag.is-log .ss-fbody { padding: 9px 14px; border-radius: 6px; font-family: var(--mono); font-size: 12.5px; background: #111; color: #ffb4ab; }
.ss-frag.is-note .ss-fbody { border-radius: 4px; background: #fff7c9; transform: rotate(-2deg); }

/* ---------- save file (screen layer): the saved state itself ---------- */
.ss-save { position: relative; width: 470px; max-width: 100%; background: var(--scr-bg); border-radius: 16px; padding: 22px; overflow: hidden; color: #e9e4ff; box-shadow: 0 0 0 10px #ebe2d2, 0 0 0 11px #dcd0bb, 0 40px 70px -34px rgba(40, 25, 10, 0.7); }
.ss-save-bar { display: flex; justify-content: space-between; font-family: var(--pixel); font-size: 13px; color: var(--scr-gold); }
.ss-save-bar .ss-status { color: var(--scr-cyan); }
.ss-save-prog { margin: 12px 0 14px; height: 8px; background: var(--scr-line); border-radius: 2px; overflow: hidden; }
.ss-save-prog b { display: block; height: 100%; background: repeating-linear-gradient(90deg, #3ddc84 0 10px, #23a560 10px 12px); }
.ss-save-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin-bottom: 9px; background: var(--scr-row); border-radius: 10px; border: 2px solid var(--scr-line); }
.ss-save-row .ss-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--scr-line); border-radius: 6px; font-size: 18px; }
.ss-save-row .ss-kv { flex: 1; min-width: 0; }
.ss-save-row .ss-k { display: block; font-size: 12px; color: var(--scr-text-2); }
.ss-save-row .ss-v { display: block; font-size: 16px; font-weight: 700; color: var(--scr-text); margin-top: 1px; white-space: nowrap; }
.ss-save-row .ss-meta { display: block; font-size: 10.5px; color: var(--scr-text-3); margin-top: 3px; letter-spacing: 0.02em; }
.ss-save-hist { display: flex; gap: 12px; align-items: center; font-family: var(--pixel); font-size: 11px; color: var(--scr-text-2); border: 2px dashed var(--scr-dash); border-radius: 10px; padding: 10px 12px; }
.ss-save-hist .ss-hv { color: #cfd3ea; font-family: var(--sans); font-size: 13px; }
.ss-save-hist .ss-undo { margin-left: auto; color: var(--scr-gold); }
/* every screen-layer surface carries glass: highlight, vignette, scanlines */
.ss-glass { position: absolute; inset: 0; z-index: 20; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.03) 28%, rgba(255, 255, 255, 0) 40%), radial-gradient(130% 120% at 50% 50%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.45) 100%), repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, rgba(0, 0, 0, 0) 1px 3px); }

/* ---------- pixel scene with HUD (inside the handheld screen) ---------- */
.ss-screen { position: relative; overflow: hidden; background: var(--scr-black); border-radius: 6px; aspect-ratio: 16 / 10; }
.ss-screen > img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.ss-hud { position: absolute; font-family: var(--pixel); color: #fff; text-shadow: 2px 2px 0 #1b1030; letter-spacing: 0.02em; font-size: 18px; }
.ss-hud.is-alert { left: 50%; top: 14px; transform: translateX(-50%); font-size: 15px; padding: 4px 10px; white-space: nowrap; background: #8a1f2a; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5); }
.ss-hud .ss-bar { display: block; height: 12px; width: 160px; border: 2px solid #fff; background: #2b1d3a; margin: 4px 0 3px; box-shadow: 2px 2px 0 #1b1030; }
.ss-hud .ss-bar b { display: block; height: 100%; }

/* ---------- step indicator ---------- */
.ss-steps { display: flex; gap: 40px; flex-wrap: wrap; }
.ss-step { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--ink-3); }
.ss-step b { font-family: var(--pixel); font-weight: 400; font-size: 12px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: var(--r-tiny); background: var(--bg-deep); color: var(--ink-3-text); }
.ss-step.is-on { color: var(--ink); } .ss-step.is-on b { background: var(--brand); color: var(--ink); }

/* ---------- loop track ---------- */
.ss-loop { background: var(--card); border-radius: var(--r-card); padding: 24px 30px 18px; }
.ss-loop-track { position: relative; margin-top: 8px; height: 176px; }
.ss-loop-track svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ss-loop-node { position: absolute; top: 0; width: 22%; transform: translateX(-50%); text-align: center; }
.ss-loop-node .ss-ni { width: 68px; height: 68px; margin: 0 auto; border-radius: 20px; display: grid; place-items: center; font-size: 30px; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.08), 0 0 0 6px #fff; }
.ss-loop-node b { display: block; margin-top: 10px; font-size: 17px; } .ss-loop-node span { font-size: 13px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.ss-faq { max-width: 980px; }
.ss-faq details { border-bottom: 1px solid var(--line-strong); }
.ss-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 700; position: relative; }
.ss-faq summary::-webkit-details-marker { display: none; }
.ss-faq summary::after { content: '+'; position: absolute; right: 6px; top: 18px; font-family: var(--pixel); font-size: 22px; color: var(--brand-ink); transition: transform 0.3s; }
.ss-faq details[open] summary::after { transform: rotate(45deg); }
.ss-faq details p { margin: 0; padding: 0 40px 24px 0; font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }

/* ---------- quote: a whole card with a brand quote mark. No line down the left ---------- */
/* quote: a plain paragraph, no card, no big quote mark, no side bar */
.ss-quote { font-size: 16px; line-height: 1.85; color: var(--ink-2); margin: 0; }
.ss-who { margin-top: 24px; display: flex; align-items: center; gap: 12px; font-size: 16px; }
.ss-who .ss-av { width: 50px; height: 50px; border-radius: 16px; background: var(--brand-soft); display: grid; place-items: center; font-size: 26px; }

/* ---------- the save card and the handheld: always the supplied images, never redrawn ---------- */
.ss-object { display: block; height: auto; user-select: none; -webkit-user-drag: none; }
.ss-object.is-float { animation: ss-bob 3.2s ease-in-out infinite alternate; }
@keyframes ss-bob { from { transform: translateY(-4px); } to { transform: translateY(4px); } }

/* ---------- product screens ---------- */
/* page header: tag, then a heavy title, then one line of plain text */
.ss-pagehead .ss-tag { margin-bottom: 12px; }
.ss-pagehead p { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
/* empty state: the card, one sentence, one action */
.ss-empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 48px 24px; border-radius: var(--r-card); background: var(--studio); }
.ss-empty .ss-object { width: 200px; }
.ss-empty h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.ss-empty p { margin: 0; max-width: 380px; font-size: 14.5px; color: var(--ink-2); }
/* facade hero: text left, object right, on the studio ground */
.ss-facade { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 40px 44px; border-radius: var(--r-panel); background: var(--studio); position: relative; overflow: hidden; }
.ss-facade .ss-object { width: 260px; }
.ss-facade .ss-sticker { position: absolute; }

/* ---------- product screens: shared parts (DESIGN.md section 16) ---------- */
/* section heading: sits above its card, never inside it. Every sibling section on a page uses this one size */
.ss-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 14px; }
.ss-sechead h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ss-sechead p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
/* quiet button: an action that repeats on every row. Filled, no outline, so a column of them stays calm */
.ss-btn.is-quiet { background: var(--bg-deep); font-size: 14px; padding: 9px 16px; }
.ss-btn.is-quiet:hover { background: var(--brand-soft); }
/* icon button: copy, close, more. One look everywhere: no ring, no fill until hover */
.ss-iconbtn { width: 32px; height: 32px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.ss-iconbtn:hover { background: rgba(22, 26, 43, 0.06); color: var(--ink); }
.ss-iconbtn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ss-iconbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* list card: one white card, rows split by a hairline. Rows carry no outline of their own */
.ss-list { background: var(--card); border-radius: var(--r-card); box-shadow: var(--sh-hairline); padding: 6px 0; }
.ss-list-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; }
.ss-list-row + .ss-list-row { border-top: 1px solid var(--line); }
.ss-list-row .ss-grow { flex: 1; min-width: 0; }
.ss-list-row h3 { margin: 0; font-size: 15px; font-weight: 700; }
.ss-list-row p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
/* third-party mark: the official logo in a tile. Same tile on every page */
.ss-tile { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: var(--r-small); background: var(--bg); }
.ss-tile img, .ss-tile svg { width: 22px; height: 22px; }
/* navigation row and its selected state: white lift on cream, amber wash on white. Never an ink bar */
.ss-navrow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-small); font-size: 14px; color: var(--ink-2); text-decoration: none; }
.ss-navrow svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ss-navrow small { margin-left: auto; font-size: 12px; color: var(--ink-3-text); }
.ss-navrow.is-active { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--sh-lift); }
.ss-card .ss-navrow.is-active, .ss-navrow.is-active.on-white { background: var(--brand-soft); box-shadow: none; }
/* command line with a copy button */
.ss-cmd { display: flex; align-items: center; gap: 12px; background: var(--row); border-radius: var(--r-small); padding: 10px 10px 10px 16px; font: 13.5px/1.5 var(--mono); color: var(--ink); }
.ss-cmd code { flex: 1; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .ss-head2 { grid-template-columns: 1fr; gap: 12px; align-items: start; margin-bottom: 28px; }
  .ss-head2 > :last-child { justify-self: start; text-align: left; max-width: none; padding-bottom: 0; }
}
@media (max-width: 720px) {
  .ss-panel { padding: 52px 20px; }
  .ss-h-hero { font-size: clamp(36px, 10vw, 44px); } .ss-h-panel, .ss-h-story { font-size: clamp(26px, 7.4vw, 32px); } .ss-h-facade { font-size: 28px; } .ss-h-page { font-size: 26px; }
  .ss-grid.is-4, .ss-grid.is-3, .ss-grid.is-2 { grid-template-columns: 1fr; }
  .ss-facade { grid-template-columns: 1fr; padding: 28px 22px; } .ss-facade .ss-object { width: 180px; justify-self: center; }
  .ss-form{ flex-direction: column; border-radius: 16px; gap: 6px; } .ss-form input { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .ss-object.is-float { animation: none; } }
