/* Mindful Compliance — "calm signal": a quiet clinical surface (mint paper / deep ink-teal) carrying precise,
   glowing data marks. Left rail + workspace on desktop, bottom tabs on phones. */
:root {
  --bg: #f4f8f8; --bg2: #eaf2f1; --panel: #ffffff; --panel2: #f5f9f9; --line: #dbe6e4; --line2: #c6d8d5;
  --ink: #10232a; --ink2: #24383e; --muted: #55686e; --faint: #7d9095;
  --accent: #0b7279; --accent2: #13959b; --glow: #22c1b4; --hl: #e2f4f1; --hl2: #cdece7;
  --grid: rgba(11, 110, 116, .045); --ring: rgba(19, 160, 160, .26); --shadow: 0 1px 2px rgba(16, 35, 42, .06), 0 8px 28px rgba(16, 35, 42, .06);
  --coral: #d9573a; --coralS: #fbe6de; --indigo: #3a4795; --indigoS: #e6e8f5; --gold: #b97c0c; --goldS: #faefd3;
  --plum: #76408a; --plumS: #f1e6f4; --green: #2c7d52; --greenS: #e0f1e6; --red: #b3372a; --redS: #f7e0dc;
  --heroA: #ffffff; --heroB: #e3f3f1; --onAccent: #ffffff; --scrim: rgba(10, 25, 30, .38);
  --f-brand: 'Unbounded', 'Avenir Next', system-ui, sans-serif;
  --f-ui: 'Plus Jakarta Sans', 'Avenir Next', system-ui, sans-serif;
  --f-read: 'Literata', Georgia, 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 16px; --r-sm: 10px; --side: 256px; --top: 60px; --player: 0px;
  color-scheme: light;
}
:root[data-mc="dark"] {
  --bg: #071417; --bg2: #0a1b1f; --panel: #0e2227; --panel2: #11292f; --line: #1d3a40; --line2: #28494f;
  --ink: #e6f1f0; --ink2: #c9dbdb; --muted: #93acae; --faint: #6f8a8d;
  --accent: #3fd3c6; --accent2: #7be0ff; --glow: #3fd3c6; --hl: #10353a; --hl2: #154349;
  --grid: rgba(63, 211, 198, .05); --ring: rgba(63, 211, 198, .35); --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 40px rgba(0,0,0,.35);
  --coral: #ff8a6b; --coralS: #3a1f19; --indigo: #9aa6ff; --indigoS: #1d2348; --gold: #f2bf55; --goldS: #3a2d12;
  --plum: #d29cf0; --plumS: #301f3a; --green: #59d49a; --greenS: #12301f; --red: #ff7a6b; --redS: #3a1a16;
  --heroA: #0b2226; --heroB: #071417; --onAccent: #04201f; --scrim: rgba(0, 0, 0, .55); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; background-attachment: fixed; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p, .lede, .sub { text-wrap: pretty; }
.mono { font-family: var(--f-mono); }
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }

/* ---------------------------------------------------------------- shell */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 18px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(18px + env(safe-area-inset-top, 0px)); border-right: 1px solid var(--line); z-index: 30;
  background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 4px 6px 10px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .wm { font-family: var(--f-brand); font-size: 15.5px; line-height: 1.05; letter-spacing: -.01em; }
.brand .wm b { font-weight: 600; display: block; } .brand .wm span { font-weight: 300; }
.navg { display: flex; flex-direction: column; gap: 2px; }
.navl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 6px; }
.nav { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px;
  color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.nav:hover { background: var(--panel2); color: var(--ink); }
.nav[aria-current="page"] { background: var(--hl); color: var(--ink); border-color: var(--line); box-shadow: inset 3px 0 0 var(--accent); }
.nav .ic { color: var(--muted); } .nav[aria-current="page"] .ic { color: var(--accent); }
.pring { width: 22px; height: 22px; }
.pring circle { fill: none; stroke-width: 3; }
.pring .bgc { stroke: var(--line); } .pring .fgc { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .5s; }
.side .grow { flex: 1; }
.me { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--panel); }
.me .lbl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.me .row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.me .pct { font-family: var(--f-brand); font-weight: 500; font-size: 22px; }
.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--glow)); border-radius: 99px; transition: width .5s; }
.sidebtns { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; transition: transform .12s, border-color .15s, background .15s, box-shadow .15s; }
.btn:hover { border-color: var(--line2); background: var(--panel2); }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--accent); color: var(--onAccent); border-color: transparent; box-shadow: 0 6px 22px -8px var(--ring); }
.btn.pri:hover { filter: brightness(1.06); background: var(--accent); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.btn.icon { padding: 8px; width: 38px; height: 38px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: var(--top); display: flex; align-items: center; gap: 12px;
  padding: 0 clamp(16px, 3vw, 36px); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.top .crumb { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top .crumb b { color: var(--accent); font-weight: 600; }
.top .sp { flex: 1; }
.search { display: flex; align-items: center; gap: 10px; min-width: 0; width: min(380px, 42vw); padding: 8px 10px 8px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font-size: 14px; text-align: left; }
.search:hover { border-color: var(--line2); }
.search .t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kbd { font-family: var(--f-mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--faint); background: var(--panel2); }
.topbrand { display: none; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.topbrand svg { width: 28px; height: 28px; }
.topbrand span { font-family: var(--f-brand); font-weight: 600; font-size: 14px; }

.main { margin-left: var(--side); min-height: 100%; padding-bottom: calc(var(--player) + 40px); }
.view { padding: clamp(18px, 3vw, 40px) clamp(16px, 3vw, 40px) 24px; max-width: 1240px; margin: 0 auto; animation: vin .28s ease both; }
@keyframes vin { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tabs-m { display: none; }

/* ---------------------------------------------------------------- page heads */
.ph { display: grid; gap: 10px; margin-bottom: 22px; }
.eyebrow { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; display: inline-block; }
.ph h1 { font-family: var(--f-brand); font-weight: 600; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
.ph .lede { color: var(--muted); font-size: 16.5px; max-width: 64ch; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink2); white-space: nowrap; }
.chip.solid { border-color: transparent; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.sect { margin-top: 34px; }
.sect > h2, .h2 { font-family: var(--f-ui); font-weight: 800; font-size: 20px; letter-spacing: -.01em; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.sect > .sub { color: var(--muted); margin: -6px 0 14px; max-width: 70ch; }

/* ---------------------------------------------------------------- home */
.hero { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 85% 30%, var(--heroA), var(--heroB)); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: 380px; }
.hero .copy { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; justify-content: center; position: relative; z-index: 2; }
.hero h1 { font-family: var(--f-brand); font-weight: 600; font-size: clamp(34px, 5vw, 62px); line-height: .98; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--ink2); max-width: 46ch; margin: 0; }
.hero .stage { position: relative; min-height: 300px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 0 var(--ring); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--ring); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.paths { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.pathpick { display: grid; gap: 8px; align-content: start; }
.pp { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.pp:hover { border-color: var(--line2); }
.pp[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); background: var(--panel); }
.pp .pi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.pp b { display: block; font-size: 15px; } .pp small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.steps { padding: 18px; display: grid; gap: 4px; align-content: start; }
.steps .h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.steps .h b { font-size: 16px; } .steps .h span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.step { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.step:hover { background: var(--panel2); }
.step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; font-weight: 700; border: 1.5px solid var(--line2); color: var(--muted); }
.step.done .n { background: var(--accent); border-color: var(--accent); color: var(--onAccent); }
.step b { font-size: 14.5px; display: block; } .step span { font-size: 13px; color: var(--muted); }
.step .go { color: var(--faint); }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; }
.way:hover { transform: translateY(-3px); border-color: var(--line2); }
.way .art { height: 92px; margin: -4px -4px 4px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.way .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.way h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.way p { margin: 0; color: var(--muted); font-size: 14.5px; }
.way .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.way .foot .bar { flex: 1; margin: 0; }
.way .foot span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.wave { position: absolute; inset: 14px 16px; display: flex; align-items: center; gap: 3px; }
.wave i { flex: 1; border-radius: 3px; background: linear-gradient(var(--glow), var(--accent)); opacity: .85; animation: wv 1.8s ease-in-out infinite; transform-origin: center; }
@keyframes wv { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.pages3 { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 120px; height: 80px; }
.pages3 i { position: absolute; width: 56px; height: 72px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.pages3 i::after { content: ""; position: absolute; inset: 10px 8px auto; height: 26px; border-radius: 3px; background: linear-gradient(135deg, var(--coralS), var(--hl)); }
.nodes { position: absolute; inset: 0; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool { display: grid; gap: 6px; align-content: start; padding: 16px; text-decoration: none; color: var(--ink); transition: transform .18s, border-color .18s; }
.tool:hover { transform: translateY(-2px); border-color: var(--line2); }
.tool .ti { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--hl); color: var(--accent); }
.tool b { font-size: 15.5px; } .tool span { font-size: 13.5px; color: var(--muted); }
.tool .ct { font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); }
.dls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dl { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; }
.dl .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; }
.dl b { display: block; font-size: 14.5px; } .dl span { font-size: 12.5px; color: var(--muted); }
.news { display: grid; gap: 10px; }
.new { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px 14px; }
.new .d { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.new p { margin: 0; font-size: 14px; color: var(--ink2); }
.foot-note { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------------------------------------------------------------- listen */
.listen { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.parts { position: sticky; top: calc(var(--top) + 16px); max-height: calc(100vh - var(--top) - var(--player) - 32px); overflow: auto; padding: 8px; }
.partb { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 11px;
  border: 1px solid transparent; background: transparent; text-align: left; }
.partb:hover { background: var(--panel2); }
.partb.on { background: var(--hl); border-color: var(--line); }
.partb .pn { font-family: var(--f-mono); font-size: 11px; color: var(--faint); text-align: center; }
.partb.done .pn { color: var(--accent); }
.partb .pt { min-width: 0; }
.partb b { font-size: 13.5px; font-weight: 650; display: block; line-height: 1.3; }
.partb small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.reader { --fs: 21px; font-family: var(--f-read); font-size: var(--fs); line-height: 1.68; max-width: 38em; }
.rtools { position: sticky; top: calc(var(--top) + 8px); z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px; margin-bottom: 18px;
  border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(10px); font-family: var(--f-ui); font-size: 14px; }
.rtools .sp { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 11px; font-weight: 700; font-size: 13.5px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { background: var(--panel2); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; color: var(--ink2); }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 99px; background: var(--line2); position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); transition: transform .15s; }
.switch input:checked { background: var(--accent); } .switch input:checked::after { transform: translateX(14px); }
.rpart { padding-bottom: 18px; scroll-margin-top: calc(var(--top) + 76px); }
.rhead { cursor: pointer; padding: 16px 0 10px; display: grid; gap: 4px; font-family: var(--f-ui); }
.rhead .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.rhead h2 { font-family: var(--f-ui); font-weight: 800; font-size: calc(var(--fs) * 1.3); letter-spacing: -.015em; line-height: 1.15; }
.rhead:hover h2 { color: var(--accent); }
.para { margin: 0 0 .9em; padding: .32em .55em; margin-left: -.55em; border-radius: 10px; cursor: pointer; transition: background .25s, box-shadow .25s, color .25s; scroll-margin-top: 40vh; }
.para:hover { background: var(--panel2); }
.para.cur { background: var(--hl); box-shadow: inset 3px 0 0 var(--glow), 0 0 0 1px var(--line); }
.para strong { font-weight: 700; color: var(--ink); }
.para.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 100% { background: transparent; } 20% { background: var(--goldS); } }
.extra { font-family: var(--f-ui); font-size: 14px; margin-top: 30px; }
.extra table { width: 100%; border-collapse: collapse; }
.extra th { text-align: left; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 8px; border-bottom: 2px solid var(--accent); }
.extra td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablewrap { overflow-x: auto; }
.jump { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--player) + 18px); z-index: 25; display: none; }
.jump.on { display: inline-flex; }

/* ---------------------------------------------------------------- player */
.player { position: fixed; left: var(--side); right: 0; bottom: 0; z-index: 28; padding: 10px clamp(12px, 2.4vw, 28px) calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.player[hidden] { display: none !important; }
.pctl { display: flex; align-items: center; gap: 6px; }
.pbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.pbtn:hover { border-color: var(--line2); }
.pbtn.big { width: 48px; height: 48px; background: var(--accent); color: var(--onAccent); border-color: transparent; box-shadow: 0 6px 24px -6px var(--ring); }
.pbtn small { font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; }
.pmid { min-width: 0; display: grid; gap: 4px; }
.pmid .t { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; min-width: 0; }
.pmid .t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pmid .t span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.seek { position: relative; height: 18px; }
.seek input { position: absolute; inset: 0; width: 100%; appearance: none; background: transparent; cursor: pointer; margin: 0; }
.seek input::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--line) var(--p, 0%)); }
.seek input::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
.seek input::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
.seek input::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); border: 3px solid var(--accent); margin-top: -5px; }
.seek input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 3px solid var(--accent); }
.ticks { position: absolute; inset: 0; pointer-events: none; }
.ticks i { position: absolute; top: 5px; width: 2px; height: 8px; background: var(--panel); border-radius: 1px; }
.pright { display: flex; align-items: center; gap: 8px; }
.pright select { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 7px 8px; font-weight: 700; font-size: 13px; }

/* ---------------------------------------------------------------- guide */
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.viewer { padding: 14px; }
.vframe { position: relative; display: grid; place-items: center; background: var(--panel2); border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.vframe img { display: block; width: 100%; max-width: 760px; height: auto; aspect-ratio: 8.5 / 11; object-fit: contain; background: #fff; cursor: zoom-in; transition: opacity .2s; }
.vframe.zoom img { max-width: none; width: 160%; cursor: zoom-out; }
.vframe.zoom { overflow: auto; place-items: start; max-height: 78vh; }
.vnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.vnav .count { font-family: var(--f-brand); font-weight: 500; font-size: 18px; } .vnav .count span { color: var(--faint); }
.vnav .ttl { font-weight: 700; text-align: center; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.plist { padding: 8px; max-height: calc(100vh - var(--top) - var(--player) - 40px); overflow: auto; position: sticky; top: calc(var(--top) + 16px); }
.pl { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: 10px; border: 1px solid transparent; background: transparent; text-align: left; }
.pl:hover { background: var(--panel2); }
.pl.on { background: var(--hl); border-color: var(--line); }
.pl img { width: 46px; height: 60px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); background: #fff; }
.pl .pt { min-width: 0; }
.pl b { display: block; font-size: 13px; line-height: 1.3; } .pl small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--faint); margin-top: 2px; }
.pl.seen small::after { content: " · seen"; color: var(--accent); }

/* ---------------------------------------------------------------- map */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; }
.stat b { font-family: var(--f-brand); font-weight: 500; font-size: 26px; display: block; letter-spacing: -.02em; }
.stat span { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.stat.c b { color: var(--coral); }
.tabbar { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 22px 0 16px; }
.tabbar button { border: 0; background: transparent; padding: 10px 12px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabbar button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.lens { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.lens .lab { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.lchip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; color: var(--ink2); display: inline-flex; align-items: center; gap: 7px; }
.lchip:hover { border-color: var(--line2); }
.lchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lchip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.rail { overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity; }
.rail-in { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 14px; position: relative; padding-top: 28px; }
.rail-in::before { content: ""; position: absolute; left: 12px; right: 12px; top: 14px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--glow), var(--indigo)); opacity: .55; border-radius: 2px; }
.stage { scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.stage .sn { position: absolute; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700; color: var(--accent); }
.stage .sh { padding: 2px 2px 4px; }
.stage .sh b { font-size: 14.5px; display: block; } .stage .sh span { font-size: 12.5px; color: var(--muted); }
.rec { text-align: left; padding: 12px; display: grid; gap: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: transform .15s, opacity .2s, border-color .15s, box-shadow .2s; }
.rec:hover { transform: translateY(-2px); border-color: var(--line2); }
.rec .rh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rec .rid { font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; color: var(--coral); }
.rec .rn { font-family: var(--f-mono); font-size: 11px; color: var(--faint); }
.rec b { font-size: 14px; line-height: 1.3; }
.obar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; gap: 2px; }
.obar i { display: block; height: 100%; }
.pdots { display: flex; gap: 4px; flex-wrap: wrap; }
.pdots i { width: 7px; height: 7px; border-radius: 50%; }
.rec.dim { opacity: .28; }
.rec.lit { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.rec.seen .rid::after { content: " ✓"; color: var(--accent); }
.drawer-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; animation: fade .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); z-index: 41; background: var(--panel); border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0,0,0,.18); display: flex; flex-direction: column; animation: slide .26s cubic-bezier(.2,.8,.2,1); padding-top: env(safe-area-inset-top, 0px); }
@keyframes slide { from { transform: translateX(40px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dhead { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dhead .sp { flex: 1; }
.dbody { overflow: auto; padding: 18px 20px 30px; display: grid; gap: 16px; }
.dbody h2 { font-weight: 800; font-size: 22px; letter-spacing: -.015em; }
.dbody .plain { margin: 0; color: var(--ink2); font-size: 15px; }
.kv { display: grid; gap: 10px; }
.kv div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.kv span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding-top: 2px; }
.items { display: grid; gap: 6px; }
.item { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: 14px; }
.item .od { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.item .rules { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.rchip { font-family: var(--f-mono); font-size: 11px; font-weight: 700; border-radius: 7px; padding: 2px 7px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink2); }
.rchip:hover { border-color: var(--accent); color: var(--accent); }
.rchip.prac { color: var(--faint); cursor: default; }
.rpop { margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 13.5px; }
.rpop .src { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.callout { border-radius: 12px; padding: 12px 14px; font-size: 14px; border-left: 3px solid; }
.callout.trap { background: var(--redS); border-color: var(--red); } .callout.help { background: var(--hl); border-color: var(--accent); }
.callout b { display: block; margin-bottom: 2px; }
.ogroup { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.ogroup i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.check { display: grid; gap: 10px; }
.crec { padding: 14px; }
.crec h3 { font-size: 15.5px; font-weight: 800; display: flex; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.crec h3 .rid { font-family: var(--f-mono); font-size: 12px; color: var(--coral); }
.cbox { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 4px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.cbox:hover { background: var(--panel2); }
.cbox input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; }
.cbox.done span { color: var(--faint); text-decoration: line-through; }
.dec { display: grid; gap: 8px; }
.decr { display: grid; grid-template-columns: minmax(0, 1.1fr) 26px minmax(0, .8fr) 26px minmax(0, 1.4fr); gap: 10px; align-items: center; padding: 12px 14px; }
.decr .w { font-weight: 700; } .decr .a { color: var(--faint); text-align: center; }
.decr .dim { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--accent); background: var(--hl); border-radius: 8px; padding: 4px 8px; justify-self: start; }
.decr .b { font-size: 14px; color: var(--ink2); }
.mx { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; }
.mx th { position: sticky; top: 0; background: var(--panel); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: 10px 6px; border-bottom: 2px solid var(--accent); text-align: center; }
.mx th:first-child { text-align: left; }
.mx td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.mx td:first-child { text-align: left; white-space: nowrap; }
.mx td i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.mx tr:hover td { background: var(--panel2); }

/* ---------------------------------------------------------------- clocks */
.clock { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.form { padding: 18px; display: grid; gap: 14px; position: sticky; top: calc(var(--top) + 16px); }
.fld { display: grid; gap: 6px; }
.fld label { font-weight: 700; font-size: 13.5px; }
.fld .hint { font-size: 12px; color: var(--muted); }
.fld input, .fld select { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--panel2); width: 100%; min-width: 0; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.ex { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tl { display: grid; gap: 18px; }
.tlg h3 { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.tlr { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; margin-bottom: 8px; border-left: 3px solid var(--line2); }
.tlr .dt { font-family: var(--f-brand); font-weight: 500; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; }
.tlr .dt small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.tlr b { font-size: 14.5px; display: block; } .tlr .why { font-size: 13px; color: var(--muted); }
.st { font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.st.past { background: var(--panel2); color: var(--faint); border: 1px solid var(--line); }
.st.today { background: var(--coralS); color: var(--coral); }
.st.soon { background: var(--goldS); color: var(--gold); }
.st.up { background: var(--hl); color: var(--accent); }
.tlr.today { border-left-color: var(--coral); } .tlr.soon { border-left-color: var(--gold); } .tlr.up { border-left-color: var(--accent); }

/* ---------------------------------------------------------------- rules / sources / glossary */
.filters { display: grid; gap: 12px; margin-bottom: 18px; }
.inp { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); }
.inp input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 15px; }
.inp:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.rlist { display: grid; gap: 10px; }
.rule { padding: 14px 16px; scroll-margin-top: calc(var(--top) + 20px); }
.rule .rh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rule .rid { font-family: var(--f-mono); font-weight: 700; color: var(--accent); }
.rule h3 { font-size: 15.5px; font-weight: 800; width: 100%; margin-top: 4px; }
.rule p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink2); }
.rule details summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--accent); margin-top: 8px; list-style: none; }
.rule details summary::-webkit-details-marker { display: none; }
.rule .more { display: grid; gap: 8px; margin-top: 10px; font-size: 14px; }
.rule .more div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; }
.rule .more span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.rule.flash { animation: flash 1.8s ease; }
.vbadge { font-family: var(--f-mono); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.vb-P { background: var(--greenS); color: var(--green); } .vb-S { background: var(--goldS); color: var(--gold); } .vb-K { background: var(--redS); color: var(--red); }
.srcg { margin-bottom: 26px; }
.srcg > h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; display: flex; gap: 10px; align-items: center; }
.srcg > p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.src { padding: 14px; display: grid; gap: 8px; align-content: start; }
.src .sh { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.src b { font-size: 15px; } .src .by { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.src p { margin: 0; font-size: 14px; color: var(--ink2); }
.src .links { display: flex; flex-wrap: wrap; gap: 8px; }
.src .links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; text-decoration: none; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); color: var(--accent); background: var(--panel2); }
.src .links a:hover { border-color: var(--accent); }
.src .contact { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.src.flash { animation: flash 1.8s ease; }
.need { padding: 16px; border-left: 3px solid var(--gold); background: var(--goldS); border-radius: 12px; }
.need ul { margin: 8px 0 0; padding-left: 18px; } .need li { margin-bottom: 4px; }
.az { display: flex; flex-wrap: wrap; gap: 4px; }
.az button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font-family: var(--f-mono); font-weight: 700; font-size: 12.5px; }
.az button:disabled { opacity: .3; cursor: default; }
.gl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.term { padding: 14px 16px; scroll-margin-top: calc(var(--top) + 20px); }
.term b { font-size: 15.5px; display: block; color: var(--ink); }
.term p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink2); }
.term.flash { animation: flash 1.8s ease; }
.gletter { grid-column: 1 / -1; font-family: var(--f-brand); font-weight: 600; font-size: 22px; color: var(--accent); margin-top: 10px; scroll-margin-top: calc(var(--top) + 20px); }
.empty { padding: 30px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- ask mindful */
.nav.ai .ic { color: var(--accent); }
.aib { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; color: var(--onAccent);
  background: linear-gradient(90deg, var(--accent), var(--glow)); }
.askstrip { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; margin-top: 18px;
  border-color: var(--line2); background: linear-gradient(90deg, var(--panel), var(--hl)); }
.askstrip input { border: 0; outline: 0; background: transparent; font-size: 16px; min-width: 0; }
.askstrip:focus-within { box-shadow: 0 0 0 3px var(--ring); }
.orb { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--onAccent);
  background: radial-gradient(circle at 30% 30%, var(--glow), var(--accent)); box-shadow: 0 6px 20px -6px var(--ring); }
.ask { max-width: 900px; }
.askbox { display: grid; grid-template-rows: minmax(320px, auto) auto auto; overflow: hidden; }
.thread { padding: 20px; display: grid; gap: 14px; align-content: start; max-height: 62vh; overflow: auto; }
.hello { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 10px; }
.hello .orb { width: 56px; height: 56px; border-radius: 18px; }
.hello b { font-size: 19px; } .hello > span { color: var(--muted); }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; max-width: 680px; }
.msg { max-width: 92%; padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.55; }
.msg.me { justify-self: end; background: var(--accent); color: var(--onAccent); border-bottom-right-radius: 5px; white-space: pre-wrap; }
.msg.ai { justify-self: start; background: var(--panel2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.ai p { margin: 0 0 8px; } .msg.ai p:last-child { margin-bottom: 0; }
.msg.ai ul, .msg.ai ol { margin: 0 0 8px; padding-left: 20px; } .msg.ai li { margin-bottom: 4px; }
.msg.ai .rchip { text-decoration: none; margin: 0 2px; vertical-align: 1px; }
.note2 { font-size: 13px; color: var(--muted); }
.thinking { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: think 1.2s infinite ease-in-out; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes think { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.askin { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 12px; border-top: 1px solid var(--line); align-items: end; }
.askin textarea { resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--panel2); font-size: 15.5px; line-height: 1.4; min-height: 46px; }
.askin textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.askfoot { display: grid; gap: 4px; padding: 0 14px 12px; font-size: 12.5px; color: var(--muted); }
.askfoot span { display: flex; gap: 6px; align-items: center; } .askfoot .ic { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- palette, share, toast */
.pal-scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); backdrop-filter: blur(4px); animation: fade .15s; display: grid; justify-items: center; align-items: start; padding: 10vh 16px 16px; }
.pal { width: min(680px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; }
.pal .inp { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 16px; box-shadow: none !important; }
.pal .inp input { font-size: 17px; }
.pres { overflow: auto; padding: 8px; }
.pgrp { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 4px; }
.pr { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; text-align: left; }
.pr .pi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--panel2); color: var(--accent); }
.pr .pt { min-width: 0; }
.pr b { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr .ty { font-family: var(--f-mono); font-size: 10.5px; color: var(--faint); }
.pr.on { background: var(--hl); }
.palfoot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.pop { position: fixed; z-index: 55; width: min(420px, calc(100vw - 32px)); padding: 16px; display: grid; gap: 10px; }
.pop .row { display: flex; gap: 8px; } .pop input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--panel2); font-family: var(--f-mono); font-size: 12.5px; }
.pop p { margin: 0; font-size: 13px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(var(--player) + 24px); transform: translateX(-50%); z-index: 70; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: fade .2s; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide { grid-template-columns: minmax(0, 1fr); } .plist { position: static; max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 1023px) {
  :root { --side: 0px; }
  .side { display: none; }
  .topbrand { display: inline-flex; }
  .top .crumb { display: none; }
  .search { width: 44px; height: 44px; flex: none; padding: 0; justify-content: center; }
  .search .kbd, .search .t { display: none; }
  .top .sp { flex: 1; }
  .tabs-m { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 29; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabs-m a, .tabs-m button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: transparent; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; border-radius: 10px; }
  .tabs-m [aria-current="page"] { color: var(--accent); background: var(--hl); }
  .main { padding-bottom: calc(var(--player) + 90px); }
  .player { left: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); grid-template-columns: auto minmax(0, 1fr); padding-bottom: 10px; }
  .player .pright { grid-column: 1 / -1; justify-content: space-between; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .stage { min-height: 260px; order: -1; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .listen { grid-template-columns: minmax(0, 1fr); }
  .parts { position: static; max-height: none; display: flex; overflow-x: auto; gap: 6px; padding: 6px; }
  .partb { min-width: 220px; }
  .clock { grid-template-columns: minmax(0, 1fr); } .form { position: static; }
  .jump { bottom: calc(var(--player) + 80px); }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dls, .sgrid, .gl { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .decr { grid-template-columns: minmax(0, 1fr); } .decr .a { display: none; }
  .tlr { grid-template-columns: minmax(0, 1fr) auto; } .tlr .dt { grid-column: 1 / -1; }
  .rule .more div, .kv div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .new { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .reader { --fs: 19px; }
  .pbtn.skip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
