/* =====================================================================
   Help Center — styles. Monochrome, calm, lots of motion.
   Brand colours come from site.config.json (--accent etc.).
   ===================================================================== */
:root {
  --ink: #1D1D1F; --ink-2: #424245; --muted: #6E6E73; --faint: #A1A1A6;
  --line: #E8E8ED; --line-2: #D2D2D7; --fill: #F5F5F7; --fill-2: #FAFAFC; --bg: #FFFFFF; --card: #FFFFFF;
  --logo-bg: #1D1D1F; --logo-fg: #FFFFFF;
  --r-card: 20px; --r-ctl: 12px; --pill: 980px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.03);
  --shadow-2: 0 24px 60px -28px rgba(0,0,0,.28);
  --shadow-3: 0 50px 100px -40px rgba(0,0,0,.45);
  --ease: cubic-bezier(.2,.7,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --top-h: 60px;
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #F5F5F7; --ink-2: #D2D2D7; --muted: #98989D; --faint: #6E6E73;
  --line: #2C2C2E; --line-2: #3A3A3C; --fill: #111113; --fill-2: #1A1A1C; --bg: #000000; --card: #141416;
  --logo-bg: #F5F5F7; --logo-fg: #000;
  --shadow-2: 0 24px 60px -28px rgba(0,0,0,.8); --shadow-3: 0 50px 100px -40px rgba(0,0,0,.9);
  --accent: #F5F5F7 !important; --accent-text: #000 !important;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F5F5F7; --ink-2: #D2D2D7; --muted: #98989D; --faint: #6E6E73;
    --line: #2C2C2E; --line-2: #3A3A3C; --fill: #111113; --fill-2: #1A1A1C; --bg: #000000; --card: #141416;
    --logo-bg: #F5F5F7; --logo-fg: #000;
    --shadow-2: 0 24px 60px -28px rgba(0,0,0,.8); --shadow-3: 0 50px 100px -40px rgba(0,0,0,.9);
    --accent: #F5F5F7 !important; --accent-text: #000 !important;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; letter-spacing: -0.011em; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg, video { max-width: 100%; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
kbd { font: 500 11px/1 var(--font); color: var(--muted); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; background: var(--card); }
::selection { background: rgba(120,120,130,.25); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- logo ---------- */
.logo { display: inline-grid; width: 26px; height: 26px; color: var(--logo-bg); }
.logo svg { width: 100%; height: 100%; }
.logo .star, .logo .dot, .eyebrow-star .star, .eyebrow-star .dot { fill: var(--logo-fg); }
.logo .star { transform-origin: 45% 50%; animation: star-breathe 6s var(--ease) infinite; }
.logo .dot { animation: twinkle 3s ease-in-out infinite; }
@keyframes star-breathe { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(.88); } }
@keyframes twinkle { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-in { max-width: 1440px; margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.brand-name { font-size: 15px; letter-spacing: -0.02em; }
.brand-help { font-size: 15px; color: var(--muted); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--line-2); }
.search-trigger { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 36px; min-width: 240px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--fill); color: var(--muted); font-size: 14px; transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease); }
.search-trigger span { flex: 1; text-align: left; }
.search-trigger:hover { border-color: var(--line-2); background: var(--card); box-shadow: var(--shadow-1); }
.home .top .search-trigger { opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.home.scrolled .top .search-trigger { opacity: 1; pointer-events: auto; transform: none; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-link { font-size: 14px; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; }
.top-link:hover { color: var(--ink); background: var(--fill); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); transition: background .2s; }
.icon-btn:hover { background: var(--fill); color: var(--ink); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: inline-block; } [data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: inline-block; } :root:not([data-theme="light"]) .i-moon { display: none; } }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: var(--pill); background: var(--accent); color: var(--accent-text); font-size: 14px; font-weight: 500; border: 1px solid var(--accent); transition: transform .2s var(--ease), opacity .2s; white-space: nowrap; }
.pill:hover { opacity: .88; } .pill:active { transform: scale(.97); }
.pill-short { display: none; }
.pill.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 24px 40px; text-align: center; background: var(--fill); border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); }
.o1 { width: 520px; height: 520px; left: -120px; top: -180px; background: var(--glow-a); animation: drift1 18s ease-in-out infinite; }
.o2 { width: 460px; height: 460px; right: -140px; top: 40px; background: var(--glow-b); animation: drift2 22s ease-in-out infinite; }
.o3 { width: 380px; height: 380px; left: 40%; bottom: -260px; background: var(--glow-a); animation: drift1 26s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,60px) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-90px,40px) scale(.9); } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 75%); opacity: .55; animation: grid-pan 30s linear infinite; }
@keyframes grid-pan { to { background-position: 56px 56px; } }
.stars i { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; transform: scale(var(--s)); opacity: 0; animation: star-pop 4.2s var(--ease) var(--t) infinite; }
.stars i::before { content: ''; position: absolute; inset: 0; background: var(--ink); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
@keyframes star-pop { 0%,100% { opacity: 0; transform: scale(calc(var(--s) * .4)) rotate(0); } 40% { opacity: .35; transform: scale(var(--s)) rotate(90deg); } 70% { opacity: 0; } }
.hero-in { position: relative; max-width: 760px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: var(--pill); background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-1); }
.eyebrow-star { width: 20px; height: 20px; display: inline-grid; color: var(--logo-bg); }
.eyebrow-star .star { transform-origin: 45% 50%; animation: spin-star 8s linear infinite; }
@keyframes spin-star { to { transform: rotate(360deg); } }
.hero-title { margin: 22px 0 14px; font-size: clamp(42px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; color: var(--ink); }
.shine { background: linear-gradient(100deg, var(--ink) 20%, var(--faint) 40%, var(--ink) 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s ease-in-out infinite; }
@keyframes shine { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-sub { margin: 0 auto 30px; max-width: 540px; font-size: 19px; color: var(--muted); line-height: 1.45; }
.hero-search { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 620px; margin: 0 auto; height: 64px; padding: 0 14px 0 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 18px; box-shadow: var(--shadow-2); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.hero-search::after { content: ''; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--ink) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; animation: orbit 4s linear infinite; pointer-events: none; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --ang: 360deg; } }
.hero-search:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.hero-search .ic { color: var(--ink); }
.typed { flex: none; text-align: left; color: var(--muted); white-space: nowrap; overflow: hidden; }
.caret { flex: none; width: 2px; height: 24px; background: var(--ink); animation: blink 1s steps(1) infinite; margin-left: -10px; }
.hero-search kbd { margin-left: auto; }
@keyframes blink { 50% { opacity: 0; } }
.hero-stats { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.hero-stats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-stats .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.chips-l { font-size: 13px; color: var(--muted); margin-right: 4px; }
.chip { font-size: 13px; padding: 7px 13px; border-radius: var(--pill); background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line); color: var(--ink-2); transition: all .25s var(--ease); }
.chip:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-1px); }
.hero-demo { position: relative; max-width: 980px; margin: 56px auto 0; perspective: 1600px; }
.hero-demo-tilt { transform: rotateX(14deg) scale(.96); transform-origin: 50% 0; transition: transform 1.2s var(--ease); }
.hero-demo.in .hero-demo-tilt { transform: rotateX(4deg) scale(1); }
.hero-demo:hover .hero-demo-tilt { transform: rotateX(0) scale(1); }
.hero-demo::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -30px; height: 60px; background: radial-gradient(ellipse at center, rgba(0,0,0,.18), transparent 70%); filter: blur(10px); z-index: -1; }
.hero-demo-cap { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero-demo-cap:hover { color: var(--ink); }

/* ---------- start here ---------- */
.start-wrap { margin-top: -0px; padding-top: 48px; }
.start { position: relative; display: flex; align-items: center; gap: 24px; padding: 26px 28px; border-radius: 24px; background: var(--ink); color: var(--bg); overflow: hidden; box-shadow: var(--shadow-2); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.start::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 200px at var(--mx, 80%) var(--my, 0%), rgba(255,255,255,.16), transparent 60%); transition: opacity .3s; }
[data-theme="dark"] .start::before { background: radial-gradient(600px 200px at var(--mx, 80%) var(--my, 0%), rgba(0,0,0,.12), transparent 60%); }
.start:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.start-ring { position: relative; flex: none; width: 72px; height: 72px; }
.start-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.start-ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: color-mix(in srgb, var(--bg) 18%, transparent); }
.ring-fg { stroke: var(--bg); stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170; transition: stroke-dashoffset 1.4s var(--ease); }
.start-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.start-main { position: relative; flex: 1; }
.start-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.start h2 { margin: 4px 0 4px; font-size: 24px; letter-spacing: -0.03em; color: inherit; }
.start p { margin: 0; opacity: .72; font-size: 15px; max-width: 560px; }
.start-go { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: var(--pill); background: var(--bg); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.start:hover .start-go .ic { transform: translateX(3px); }
.start-go .ic { transition: transform .3s var(--ease); }

/* ---------- section heads ---------- */
.sec-head { margin: 72px 0 24px; }
.sec-head h2 { margin: 0; font-size: 34px; letter-spacing: -0.035em; color: var(--ink); }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: 17px; }

/* ---------- collection cards ---------- */
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.col { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; isolation: isolate; }
.col-spot { position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ink) 7%, transparent), transparent 60%); transition: opacity .35s; }
.col:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.col:hover .col-spot { opacity: 1; }
.col-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--fill); color: var(--ink); border: 1px solid var(--line); transition: transform .5s var(--spring), background .3s, color .3s; }
.col:hover .col-ic, .contact-card:hover .col-ic { transform: rotate(-8deg) scale(1.08); background: var(--ink); color: var(--bg); }
.col-ic.big { width: 64px; height: 64px; border-radius: 18px; }
.col-t { margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.col-d { font-size: 14px; color: var(--muted); line-height: 1.45; flex: 1; }
.col-n { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.col-n .ic { transition: transform .3s var(--ease); }
.col:hover .col-n .ic { transform: translateX(4px); }

/* ---------- article rows ---------- */
.rows { display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.row { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); transition: background .25s var(--ease); }
.row:first-child { border-top: 0; }
.row:hover { background: var(--fill-2); }
.row-main { flex: 1; min-width: 0; }
.row-t { font-weight: 600; color: var(--ink); font-size: 16px; letter-spacing: -0.015em; }
.row-d { color: var(--muted); font-size: 14px; margin-top: 2px; }
.row-meta { display: flex; align-items: center; gap: 12px; }
.row-go { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); transition: all .3s var(--ease); }
.row:hover .row-go { background: var(--ink); color: var(--bg); transform: translateX(2px); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: var(--pill); background: var(--fill); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 96px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-card); background: var(--fill); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s; }
.contact-card:hover { transform: translateY(-3px); background: var(--card); box-shadow: var(--shadow-2); }
.contact-card b { margin-top: 8px; color: var(--ink); font-size: 17px; letter-spacing: -0.02em; }
.contact-card > span:not(.col-ic):not(.contact-cta) { color: var(--muted); font-size: 14px; flex: 1; }
.contact-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pop-wrap .rows { margin-bottom: 0; }

/* ---------- collection page ---------- */
.col-page { padding-top: 32px; padding-bottom: 96px; max-width: 920px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
.col-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 28px; }
.col-head h1 { margin: 2px 0 6px; font-size: 40px; letter-spacing: -0.04em; color: var(--ink); line-height: 1.05; }
.col-head p { margin: 0; color: var(--muted); font-size: 17px; }
.col-meta { margin-top: 10px; font-size: 13px; color: var(--faint); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; position: sticky; top: calc(var(--top-h) + 8px); z-index: 5; padding: 8px; margin-left: -8px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.jump a { font-size: 13px; padding: 7px 13px; border-radius: var(--pill); border: 1px solid var(--line); color: var(--ink-2); background: var(--card); transition: all .2s; }
.jump a:hover, .jump a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.subcol { margin-bottom: 36px; scroll-margin-top: calc(var(--top-h) + 72px); }
.subcol-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.subcol-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.025em; color: var(--ink); }
.subcol-head p { margin: 0; flex-basis: 100%; order: 3; color: var(--muted); font-size: 15px; }
.subcol-n { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--fill); border-radius: var(--pill); padding: 2px 8px; }
.more { margin-top: 56px; }
.more h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.more-list { display: flex; flex-wrap: wrap; gap: 8px; }
.more-list a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 8px 13px; border-radius: var(--pill); background: var(--fill); color: var(--ink-2); transition: all .2s; }
.more-list a:hover { background: var(--ink); color: var(--bg); }

/* ---------- article layout ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.art-layout { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 290px minmax(0, 1fr) 230px; gap: 48px; padding: 0 24px; }
.art-side, .art-toc { position: relative; }
.side-sticky, .toc-sticky { position: sticky; top: calc(var(--top-h) + 24px); max-height: calc(100vh - var(--top-h) - 48px); overflow-y: auto; padding: 0 4px 32px; scrollbar-width: thin; }
.side-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 0 0 10px 10px; }
.side details { border-radius: 12px; }
.side summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background .2s; }
.side summary::-webkit-details-marker { display: none; }
.side summary:hover { background: var(--fill); color: var(--ink); }
.side summary span { flex: 1; }
.side summary .chev { color: var(--faint); transition: transform .3s var(--ease); }
.side details[open] > summary { color: var(--ink); font-weight: 600; }
.side details[open] > summary .chev { transform: rotate(90deg); }
.side-list { display: flex; flex-direction: column; margin: 2px 0 10px 18px; padding-left: 10px; border-left: 1px solid var(--line); }
.side-list a { font-size: 13.5px; padding: 6px 10px; border-radius: 8px; color: var(--muted); line-height: 1.35; transition: background .2s, color .2s; }
.side-list a:hover { color: var(--ink); background: var(--fill); }
.side-list a.on { color: var(--ink); background: var(--fill); font-weight: 600; box-shadow: inset 2px 0 0 var(--ink); }
.side-sub { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 12px 10px 4px; }
.art-main { padding: 36px 0 96px; min-width: 0; }
.art-head h1 { margin: 0 0 12px; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.06; letter-spacing: -0.04em; color: var(--ink); }
.lede { margin: 0; font-size: 19px; color: var(--muted); line-height: 1.5; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 22px 0 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.art-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.copy-page { position: relative; margin-left: auto; display: inline-flex; }
.copy-page button { display: inline-flex; align-items: center; gap: 6px; height: 32px; border: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--ink-2); transition: background .2s; }
.cp-main { padding: 0 12px; border-radius: 10px 0 0 10px; }
.cp-more { padding: 0 8px; border-radius: 0 10px 10px 0; border-left: 0 !important; }
.cp-more .ic { transform: rotate(90deg); }
.copy-page button:hover { background: var(--fill); color: var(--ink); }
.cp-menu { position: absolute; right: 0; top: 40px; z-index: 30; width: 300px; padding: 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); animation: pop .25s var(--ease); }
.cp-menu > * { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; border: 0; background: none; height: auto !important; }
.cp-menu > *:hover { background: var(--fill) !important; }
.cp-menu b { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.cp-menu span { font-size: 12px; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.side-open { display: none; }

/* ---------- prose ---------- */
.prose { font-size: 16.5px; line-height: 1.72; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { position: relative; margin: 2.2em 0 .6em; font-size: 26px; line-height: 1.2; letter-spacing: -0.03em; color: var(--ink); }
.prose h3 { position: relative; margin: 1.8em 0 .4em; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.prose h4 { margin: 1.5em 0 .3em; font-size: 16px; color: var(--ink); }
.anchor { position: absolute; left: -24px; top: 0; color: var(--faint); opacity: 0; font-weight: 400; transition: opacity .2s; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose .ext { font-size: .8em; margin-left: 2px; text-decoration: none; display: inline-block; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--faint); }
.prose ol { list-style: none; padding: 0; counter-reset: step; }
.prose ol > li { position: relative; counter-increment: step; padding: 0 0 0 44px; min-height: 28px; }
.prose ol > li + li { margin-top: .8em; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--bg); background: var(--ink); }
.prose ol > li:not(:last-child)::after { content: ''; position: absolute; left: 13.5px; top: 32px; bottom: -.8em; width: 1px; background: var(--line-2); }
.prose code { font-family: var(--mono); font-size: .86em; padding: .15em .4em; border-radius: 6px; background: var(--fill); border: 1px solid var(--line); color: var(--ink); }
.codeblock { position: relative; }
.prose pre { margin: 0; padding: 16px 18px; border-radius: 14px; background: #0D0D0F; color: #E8E8ED; overflow-x: auto; font-size: 13.5px; line-height: 1.6; border: 1px solid #222; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.copy-code { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid #333; background: #1A1A1C; color: #A1A1A6; opacity: 0; transition: opacity .2s; }
.codeblock:hover .copy-code { opacity: 1; }
.copy-code:hover { color: #fff; }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); color: var(--muted); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--fill); font-weight: 600; }
.prose th, .prose td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tr:first-child th { border-top: 0; }
.prose img { border-radius: 14px; border: 1px solid var(--line); }
.prose video { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--fill); border: 1px solid var(--line); }
.callout-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.callout-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); margin-bottom: 2px; }
.callout p { font-size: 15px; }
.callout p + p { margin-top: .6em; }
.callout-warning { background: color-mix(in srgb, #FF9F0A 9%, var(--card)); border-color: color-mix(in srgb, #FF9F0A 30%, var(--line)); }
.callout-warning .callout-ic { color: #C96B00; }
.callout-important { background: var(--ink); border-color: var(--ink); color: color-mix(in srgb, var(--bg) 80%, transparent); }
.callout-important .callout-label, .callout-important strong, .callout-important a { color: var(--bg); }
.callout-important .callout-ic { background: color-mix(in srgb, var(--bg) 12%, transparent); border-color: transparent; color: var(--bg); }

/* task lists (checklists) */
.prose ul:has(.task-item) { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.task-item { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .3s, background .3s, transform .3s var(--ease); margin: 0 !important; }
.task-item:hover { border-color: var(--line-2); }
.task-body { flex: 1; min-width: 0; }
.task-item > p { margin: 0; }
.task-item.done { background: var(--fill); }
.task-item.done .task-body { opacity: .55; }
.prose input.task { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; display: grid; place-items: center; transition: all .3s var(--spring); }
.prose input.task::after { content: ''; width: 10px; height: 6px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--spring); }
.prose input.task:checked { background: var(--ink); border-color: var(--ink); transform: scale(1.05); }
.prose input.task:checked::after { transform: rotate(-45deg) scale(1); }
.prose input.task:hover { border-color: var(--ink); }
.checklist-bar { position: sticky; top: calc(var(--top-h) + 10px); z-index: 6; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: 14px; font-weight: 600; color: var(--ink); }
.checklist-bar .cb-track { flex: 1; height: 6px; border-radius: 6px; background: var(--fill); overflow: hidden; }
.checklist-bar .cb-fill { height: 100%; width: 0; background: var(--ink); border-radius: 6px; transition: width .8s var(--ease); }
.checklist-bar .cb-reset { font-size: 12px; font-weight: 500; color: var(--muted); border: 0; background: none; }
.confetti { position: fixed; pointer-events: none; z-index: 90; width: 8px; height: 8px; }

/* ---------- feedback + prev/next ---------- */
.feedback { margin-top: 64px; padding: 26px; border-radius: var(--r-card); background: var(--fill); text-align: center; }
.feedback p { margin: 0; font-weight: 600; color: var(--ink); }
.fb-btns { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.fb-btns button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 24px; transition: transform .3s var(--spring), box-shadow .3s; }
.fb-btns button:hover { transform: scale(1.18) rotate(-6deg); box-shadow: var(--shadow-2); }
.fb-btns button.on { transform: scale(1.2); border-color: var(--ink); }
.fb-thanks { margin-top: 12px !important; font-weight: 400 !important; color: var(--muted) !important; font-size: 14px; }
.fb-thanks a { color: var(--ink); text-decoration: underline; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.pn-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.pn-card span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pn-card b { color: var(--ink); font-weight: 600; letter-spacing: -0.015em; }
.pn-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pn-next { text-align: right; align-items: flex-end; }

/* ---------- TOC ---------- */
.toc { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc a { position: relative; font-size: 13px; padding: 5px 0 5px 14px; color: var(--muted); line-height: 1.4; transition: color .2s; }
.toc a.d3 { padding-left: 26px; font-size: 12.5px; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 600; }
.toc a.on::before { content: ''; position: absolute; left: -1px; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--ink); }

/* ---------- search modal ---------- */
.search-modal { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.search-modal[hidden] { display: none; }
.sm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s var(--ease); }
.sm-panel { position: relative; width: 100%; max-width: 660px; max-height: 70vh; display: flex; flex-direction: column; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 60px 120px -30px rgba(0,0,0,.5); overflow: hidden; animation: rise .35s var(--spring); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.sm-head { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 62px; border-bottom: 1px solid var(--line); color: var(--ink); }
.sm-head input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 18px var(--font); color: var(--ink); letter-spacing: -0.01em; }
.sm-head input::placeholder { color: var(--faint); }
.sm-head input::-webkit-search-cancel-button { display: none; }
.sm-head kbd { cursor: pointer; }
.sm-results { overflow-y: auto; padding: 8px; }
.sm-group { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 12px 12px 6px; }
.sm-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; animation: slide-in .3s var(--ease) both; }
.sm-item .ic { color: var(--muted); }
.sm-item-main { flex: 1; min-width: 0; }
.sm-item-t { font-weight: 600; color: var(--ink); font-size: 15px; }
.sm-item-x { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-item mark { background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.sm-item.on { background: var(--ink); }
.sm-item.on .sm-item-t, .sm-item.on .ic { color: var(--bg); }
.sm-item.on .sm-item-x { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.sm-item.on mark { background: color-mix(in srgb, var(--bg) 25%, transparent); color: var(--bg); }
.sm-item .go { opacity: 0; } .sm-item.on .go { opacity: 1; }
@keyframes slide-in { from { opacity: 0; transform: translateY(6px); } }
.sm-empty { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.sm-empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.sm-foot { display: flex; gap: 16px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--fill-2); }
.sm-foot kbd { margin-right: 3px; }
.sm-brand { margin-left: auto; font-weight: 600; }
.toast-global { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; padding: 11px 18px; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-2); transition: all .4s var(--spring); pointer-events: none; }
.toast-global.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- drawer (mobile sidebar) ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer[hidden] { display: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.3); animation: fade .25s; }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--bg); padding: 56px 12px 24px; overflow-y: auto; animation: drawer-in .35s var(--ease); box-shadow: var(--shadow-3); }
.drawer-x { position: absolute; top: 10px; right: 10px; }
@keyframes drawer-in { from { transform: translateX(-100%); } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--fill); }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand div { display: flex; flex-direction: column; }
.foot-brand b { color: var(--ink); }
.foot-brand span { color: var(--muted); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-copy { margin-left: auto; color: var(--faint); font-size: 13px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 120px 24px 140px; }
.nf-num { font-size: 140px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; background: linear-gradient(180deg, var(--ink), var(--line-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { color: var(--ink); letter-spacing: -0.03em; }
.nf p { color: var(--muted); }
.nf-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.nf-actions .pill { height: 44px; padding: 0 20px; }

/* =====================================================================
   WALKTHROUGH PLAYER — animated, brand-accurate "screens"
   ===================================================================== */
.wt { margin: 1.8em 0; --wt-ink: #1D1D1F; --wt-ink2: #424245; --wt-muted: #6E6E73; --wt-faint: #A1A1A6; --wt-line: #E8E8ED; --wt-line2: #D2D2D7; --wt-fill: #F5F5F7; --wt-white: #fff; }
.wt noscript ol { counter-reset: none; }
.wt-window { position: relative; border-radius: 16px; overflow: hidden; background: var(--wt-fill); border: 1px solid var(--line-2); box-shadow: var(--shadow-2), 0 0 0 1px rgba(0,0,0,.02); font-family: var(--font); color: var(--wt-ink2); user-select: none; -webkit-user-select: none; aspect-ratio: 16 / 10; display: flex; flex-direction: column; container-type: inline-size; }
[data-theme="dark"] .wt-window { border-color: #333; }
.wt-chrome { flex: none; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: #ECECEF; border-bottom: 1px solid var(--wt-line); }
.wt-dots { display: flex; gap: 6px; }
.wt-dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; } .wt-dots i:nth-child(2) { background: #FEBC2E; } .wt-dots i:nth-child(3) { background: #28C840; }
.wt-url { flex: 1; max-width: 420px; margin: 0 auto; height: 22px; border-radius: 7px; background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: var(--wt-muted); overflow: hidden; white-space: nowrap; }
.wt-url svg { width: 10px; height: 10px; }
.wt-url-path { color: var(--wt-ink); transition: opacity .3s; }
.wt-app { flex: 1; display: flex; min-height: 0; }
.wt-side { flex: none; width: 23%; min-width: 120px; background: var(--wt-fill); border-right: 1px solid var(--wt-line); padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.wt-ws { display: flex; align-items: center; gap: 7px; padding: 4px 6px 10px; font-size: 11.5px; font-weight: 600; color: var(--wt-ink); white-space: nowrap; }
.wt-ws-logo { width: 20px; height: 20px; border-radius: 6px; background: var(--wt-ink); color: #fff; display: grid; place-items: center; font-size: 8px; font-weight: 700; }
.wt-nav { display: flex; align-items: center; gap: 8px; padding: 3.5px 7px; border-radius: 7px; font-size: 10.5px; flex: none; color: var(--wt-ink2); white-space: nowrap; transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s; }
.wt-nav svg { width: 13px; height: 13px; color: var(--wt-muted); flex: none; }
.wt-nav[data-t="settings"] { margin-top: auto; border-top: 1px solid var(--wt-line); border-radius: 0 0 7px 7px; padding-top: 7px; }
.wt-nav.on { background: #fff; color: var(--wt-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wt-nav.on svg { color: var(--wt-ink); }
.wt-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wt-top { flex: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-bottom: 1px solid var(--wt-line); background: rgba(245,245,247,.8); }
.wt-search { flex: 1; max-width: 220px; height: 22px; border-radius: 7px; background: #fff; border: 1px solid var(--wt-line); display: flex; align-items: center; gap: 5px; padding: 0 7px; font-size: 10px; color: var(--wt-faint); }
.wt-search svg { width: 10px; height: 10px; }
.wt-ask { margin-left: auto; height: 22px; padding: 0 10px; border-radius: 980px; background: var(--wt-ink); color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.wt-ask svg { width: 10px; height: 10px; }
.wt-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #D2D2D7, #8E8E93); color: #fff; font-size: 8px; font-weight: 700; display: grid; place-items: center; }
.wt-stage { position: relative; flex: 1; background: #fff; overflow: hidden; }
.wt-screen { position: absolute; inset: 0; display: flex; animation: wt-in .5s var(--ease) both; }
.wt-screen.out { animation: wt-out .35s var(--ease) both; }
@keyframes wt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes wt-out { to { opacity: 0; transform: translateY(-6px); } }
.wt-sub { flex: none; width: 24%; min-width: 110px; border-right: 1px solid var(--wt-line); padding: 12px 8px; display: flex; flex-direction: column; gap: 1px; background: #FCFCFD; }
.wt-sub-h { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--wt-faint); padding: 0 7px 6px; }
.wt-sub-i { font-size: 10.5px; padding: 5px 7px; border-radius: 6px; color: var(--wt-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .3s; }
.wt-sub-i.on { background: var(--wt-fill); color: var(--wt-ink); font-weight: 600; }
.wt-body { flex: 1; min-width: 0; padding: 16px 20px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.wt-h { display: flex; align-items: center; gap: 10px; }
.wt-h-t { font-size: 16px; font-weight: 700; color: var(--wt-ink); letter-spacing: -0.02em; }
.wt-h-s { font-size: 10.5px; color: var(--wt-muted); margin-top: -6px; }
.wt-h .wt-btn { margin-left: auto; }
.wt-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--wt-line); font-size: 10.5px; }
.wt-tab { padding: 0 0 7px; color: var(--wt-muted); position: relative; }
.wt-tab.on { color: var(--wt-ink); font-weight: 600; }
.wt-tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--wt-ink); border-radius: 2px; }
.wt-card { border: 1px solid var(--wt-line); border-radius: 11px; padding: 11px 12px; display: flex; flex-direction: column; gap: 9px; background: #fff; transition: box-shadow .4s var(--ease), border-color .4s; }
.wt-card-h { font-size: 11.5px; font-weight: 600; color: var(--wt-ink); display: flex; align-items: center; gap: 8px; }
.wt-card-h small { font-weight: 400; color: var(--wt-muted); font-size: 10px; }
.wt-row { display: flex; gap: 10px; align-items: flex-end; }
.wt-row > * { flex: 1; min-width: 0; }
.wt-field { display: flex; flex-direction: column; gap: 4px; }
.wt-label { font-size: 9.5px; font-weight: 600; color: var(--wt-ink2); }
.wt-input { height: 24px; border-radius: 7px; border: 1px solid var(--wt-line); padding: 0 8px; font-size: 10.5px; color: var(--wt-ink); display: flex; align-items: center; background: #fff; white-space: nowrap; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.wt-input.ph { color: var(--wt-faint); }
.wt-input.focus { border-color: var(--wt-ink); box-shadow: 0 0 0 3px rgba(29,29,31,.08); }
.wt-input.select::after { content: '⌄'; margin-left: auto; color: var(--wt-muted); font-size: 11px; transform: translateY(-2px); }
.wt-input.area { display: block; height: 44px; padding-top: 5px; white-space: normal; line-height: 1.5; }
.wt-type-caret { display: inline-block; width: 1px; height: 12px; background: var(--wt-ink); margin-left: 1px; animation: blink .9s steps(1) infinite; }
.wt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 24px; padding: 0 12px; border-radius: 980px; font-size: 10.5px; font-weight: 600; white-space: nowrap; border: 1px solid var(--wt-line); color: var(--wt-ink); background: #fff; transition: transform .15s var(--ease), background .25s; flex: none !important; align-self: flex-start; }
.wt-btn.primary { background: var(--wt-ink); color: #fff; border-color: var(--wt-ink); }
.wt-btn.pressed { transform: scale(.93); }
.wt-btn svg { width: 11px; height: 11px; }
.wt-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--wt-ink); }
.wt-toggle-row small { display: block; color: var(--wt-muted); font-size: 9.5px; }
.wt-switch { flex: none; position: relative; width: 28px; height: 16px; border-radius: 16px; background: var(--wt-line2); transition: background .3s; }
.wt-switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .35s var(--spring); }
.wt-switch.on { background: var(--wt-ink); } .wt-switch.on::after { transform: translateX(12px); }
.wt-text { font-size: 10.5px; color: var(--wt-muted); line-height: 1.5; }
.wt-integ { display: flex; align-items: center; gap: 10px; }
.wt-logo { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; background: var(--wt-ink); }
.wt-integ-main { flex: 1; min-width: 0; }
.wt-integ-t { font-size: 11.5px; font-weight: 600; color: var(--wt-ink); }
.wt-integ-d { font-size: 9.5px; color: var(--wt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-status { font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 980px; background: var(--wt-fill); color: var(--wt-muted); white-space: nowrap; }
.wt-status.ok { background: #E8F7EE; color: #1E7B45; }
.wt-status.warn { background: #FFF4E5; color: #B25E00; }
.wt-table { border: 1px solid var(--wt-line); border-radius: 10px; overflow: hidden; font-size: 10px; }
.wt-tr { display: grid; grid-template-columns: var(--cols); gap: 8px; padding: 7px 10px; border-top: 1px solid var(--wt-line); color: var(--wt-ink2); align-items: center; white-space: nowrap; }
.wt-tr > span { overflow: hidden; text-overflow: ellipsis; }
.wt-tr:first-child { border-top: 0; background: var(--wt-fill); color: var(--wt-muted); font-weight: 600; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.wt-tr.new { animation: row-in .6s var(--spring) both; background: #FAFAFC; }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } }
.wt-list { display: flex; flex-direction: column; gap: 6px; }
.wt-li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--wt-line); font-size: 10.5px; color: var(--wt-ink); background: #fff; }
.wt-li small { color: var(--wt-muted); margin-left: auto; font-size: 9.5px; }
.wt-li svg { width: 12px; height: 12px; color: var(--wt-muted); }
.wt-upload { height: 54px; border: 1.5px dashed var(--wt-line2); border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 10px; color: var(--wt-muted); transition: all .4s var(--ease); }
.wt-upload svg { width: 14px; height: 14px; }
.wt-upload.done { border-style: solid; border-color: var(--wt-line); color: var(--wt-ink); background: var(--wt-fill); }
.wt-upload-thumb { width: 30px; height: 30px; border-radius: 8px; background: var(--wt-ink); display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; }
.wt-code { font-family: var(--mono); font-size: 9.5px; background: #0D0D0F; color: #E8E8ED; border-radius: 8px; padding: 8px 10px; white-space: pre; overflow: hidden; line-height: 1.6; }
.wt-cols { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 8px; flex: 1; min-height: 0; }
.wt-kcol { background: var(--wt-fill); border-radius: 10px; padding: 7px; display: flex; flex-direction: column; gap: 6px; }
.wt-kcol-h { font-size: 9.5px; font-weight: 700; color: var(--wt-ink); display: flex; justify-content: space-between; }
.wt-kcard { background: #fff; border: 1px solid var(--wt-line); border-radius: 8px; padding: 6px 8px; font-size: 9.5px; color: var(--wt-ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.wt-kcard small { display: block; color: var(--wt-muted); font-size: 9px; }
.wt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.wt-stat { border: 1px solid var(--wt-line); border-radius: 10px; padding: 9px 10px; }
.wt-stat small { display: block; font-size: 9px; color: var(--wt-muted); }
.wt-stat b { font-size: 15px; color: var(--wt-ink); letter-spacing: -0.02em; }
.wt-flow { display: flex; flex-direction: column; align-items: center; gap: 0; padding-top: 4px; }
.wt-node { width: 62%; min-width: 150px; border: 1px solid var(--wt-line); border-radius: 10px; padding: 8px 10px; background: #fff; font-size: 10.5px; color: var(--wt-ink); display: flex; align-items: center; gap: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.wt-node.trigger { border-style: dashed; background: #FCFCFD; }
.wt-node svg { width: 13px; height: 13px; color: var(--wt-ink); }
.wt-node small { display: block; color: var(--wt-muted); font-size: 9px; }
.wt-edge { width: 1px; height: 12px; background: var(--wt-line2); position: relative; }
.wt-edge::after { content: '+'; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 1px solid var(--wt-line2); font-size: 9px; display: grid; place-items: center; color: var(--wt-muted); line-height: 1; }
.wt-node.new { animation: row-in .6s var(--spring) both; }
.wt-chat { display: flex; flex-direction: column; gap: 6px; }
.wt-msg { max-width: 72%; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--wt-fill); font-size: 10.5px; color: var(--wt-ink); align-self: flex-start; }
.wt-msg.out { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--wt-ink); color: #fff; }
.wt-msg.new { animation: row-in .5s var(--spring) both; }
.wt-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 9.5px; text-align: center; }
.wt-cal span { padding: 5px 0; border-radius: 6px; color: var(--wt-ink2); }
.wt-cal span.h { color: var(--wt-faint); font-weight: 600; font-size: 8.5px; }
.wt-cal span.a { background: var(--wt-fill); color: var(--wt-ink); font-weight: 600; }
.wt-cal span.s { background: var(--wt-ink); color: #fff; }
.wt-slots { display: flex; flex-wrap: wrap; gap: 5px; }
.wt-slot { font-size: 9.5px; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--wt-line); color: var(--wt-ink); }
.wt-slot.s { background: var(--wt-ink); color: #fff; border-color: var(--wt-ink); }
.wt-modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.25); display: grid; place-items: center; animation: fade .3s; z-index: 3; }
.wt-modal { width: 62%; min-width: 240px; background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); animation: rise .45s var(--spring); }
.wt-modal-t { font-size: 13px; font-weight: 700; color: var(--wt-ink); }
.wt-modal-f { display: flex; justify-content: flex-end; gap: 6px; }
/* highlight ring + cursor + toast */
.wt-ring { position: absolute; z-index: 6; pointer-events: none; border-radius: 10px; box-shadow: 0 0 0 2px var(--wt-ink), 0 0 0 7px rgba(29,29,31,.12); opacity: 0; transition: all .45s var(--ease); }
.wt-ring.show { opacity: 1; animation: ring-pulse 1.6s ease-in-out infinite; }
@keyframes ring-pulse { 50% { box-shadow: 0 0 0 2px var(--wt-ink), 0 0 0 11px rgba(29,29,31,.06); } }
.wt-cursor { position: absolute; z-index: 8; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; transform: translate(60%, 70%); transition: transform .9s cubic-bezier(.45,.05,.2,1); filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.wt-cursor svg { width: 100%; height: 100%; }
.wt-click { position: absolute; z-index: 7; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--wt-ink); pointer-events: none; animation: click-ripple .6s var(--ease) forwards; }
@keyframes click-ripple { from { transform: scale(.2); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.wt-tip { position: absolute; z-index: 9; max-width: 220px; padding: 7px 10px; border-radius: 9px; background: var(--wt-ink); color: #fff; font-size: 10.5px; font-weight: 500; line-height: 1.35; pointer-events: none; opacity: 0; transform: translateY(4px) scale(.96); transition: opacity .35s var(--ease), transform .35s var(--spring); box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.wt-tip.show { opacity: 1; transform: none; }
.wt-toast { position: absolute; z-index: 9; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; background: var(--wt-ink); color: #fff; font-size: 11px; font-weight: 500; opacity: 0; transform: translateY(10px) scale(.96); transition: all .45s var(--spring); }
.wt-toast svg { width: 13px; height: 13px; color: #30D158; }
.wt-toast.show { opacity: 1; transform: none; }
/* controls */
.wt-bar { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.wt-play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); transition: transform .3s var(--spring); }
.wt-play:hover { transform: scale(1.08); }
.wt-play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.wt-cap { flex: 1; min-width: 0; }
.wt-cap-n { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.wt-cap-t { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.4; min-height: 1.4em; }
.wt-cap-t.swap { animation: cap-in .45s var(--ease); }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px); } }
.wt-segs { display: flex; gap: 4px; margin-top: 12px; }
.wt-seg { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; border: 0; padding: 0; cursor: pointer; position: relative; }
.wt-seg::before { content: ''; position: absolute; inset: -8px 0; }
.wt-seg span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 4px; }
.wt-seg.done span { width: 100%; }
.wt-seg:hover { background: var(--line-2); }
.wt-nav-btns { display: flex; gap: 4px; }
.wt-nav-btns button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink-2); transition: background .2s; }
.wt-nav-btns button:hover { background: var(--fill); color: var(--ink); }
.wt-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.wt-title .dot { width: 7px; height: 7px; border-radius: 50%; background: #FF453A; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .3; } }
.wt-hero .wt-window { aspect-ratio: 16 / 9; box-shadow: var(--shadow-3); border-radius: 18px; }
.wt-hero .wt-bar, .wt-hero .wt-segs { max-width: 640px; margin-left: auto; margin-right: auto; }
.wt-hero .wt-bar { text-align: left; }
.wt[data-compact] .wt-nav-btns { display: none; }
/* scale the mock UI down inside small containers */
@container (max-width: 560px) {
  .wt-side { display: none; }
  .wt-sub { display: none; }
  .wt-body { padding: 12px 14px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .art-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .art-toc { display: none; }
}
@media (max-width: 860px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art-side { display: none; }
  .side-open { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--ink-2); }
  .search-trigger { min-width: 0; width: 38px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .brand-help, .top-link { display: none; }
  .start { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 48px; }
  .hero-search { height: 56px; font-size: 16px; }
  .hero-search kbd { display: none; }
  .col-head { flex-direction: column; gap: 14px; }
  .anchor { display: none; }
  .copy-page { margin-left: 0; }
  .pn { grid-template-columns: 1fr; }
  .row-meta .badge { display: none; }
  .wt-cap-t { font-size: 14px; }
  .wt-nav-btns { display: none; }
}
@media (max-width: 520px) {
  .pill-long { display: none; } .pill-short { display: inline; }
  .wt-window { aspect-ratio: 4 / 4; }
  .wt-hero .wt-window { aspect-ratio: 4 / 3.6; }
  .brand-name { font-size: 14px; }
  .top-in { gap: 8px; padding: 0 14px; }
  .pill { padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
