/* BioLearn — "stain and slide".
   Layout: an app shell with a nav rail and a command bar; content sits on a cool glass-slide ground.
   Color: light theme reads like an H&E-stained slide, dark theme like fluorescence imaging. Eight stain
   channels encode what a thing IS (signal, receptor, enzyme, gene control...) everywhere on the site; one
   hematoxylin accent marks what you can press. Evidence verdicts use their own semantic scale.
   Type: Bricolage Grotesque for display, Inter for reading and interface, JetBrains Mono for lab data. */
:root {
  --bg: #f2f4f7; --surface: #ffffff; --raised: #ffffff; --sunk: #e8ecf1; --glass: rgb(242 244 247 / .86);
  --ink: #111622; --ink2: #3a4456; --muted: #667186; --faint: #98a2b3;
  --line: #dde2ea; --line2: #c6cdd8;
  --accent: #4234d4; --accent-ink: #3427b5; --accent-soft: #ebe9fc; --on-accent: #ffffff; --on-solid: #ffffff;
  --v0: #11825d; --v1: #ad6500; --v2: #5a6a80; --v3: #c23a2f;
  --c1: #d1386c; --c2: #4b3fd6; --c3: #c56b00; --c4: #0b8b7b; --c5: #1f74c8; --c6: #2c9a49; --c7: #8a3fd8; --c8: #df5419;
  --cB: #6a7689;
  --zone-mem: #e4e1f4; --zone-shade: #f6f7fa; --zone-plain: #ffffff;
  --shadow: 0 1px 2px rgb(17 22 34 / .05), 0 6px 24px rgb(17 22 34 / .07);
  --shadow-lg: 0 10px 40px rgb(17 22 34 / .18);
  --r-sm: 6px; --r: 12px; --r-lg: 18px;
  --f-display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --side-w: 258px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #080b11; --surface: #0f141d; --raised: #151b26; --sunk: #0b0f16; --glass: rgb(8 11 17 / .84);
  --ink: #e8edf5; --ink2: #b8c2d1; --muted: #8592a6; --faint: #5b6678;
  --line: #1f2633; --line2: #2e3747;
  --accent: #8d84ff; --accent-ink: #b3adff; --accent-soft: #1d1a42; --on-accent: #0b0d18; --on-solid: #0a0d14;
  --v0: #38d495; --v1: #f2ad3f; --v2: #93a2b9; --v3: #ff6d61;
  --c1: #ff6f9e; --c2: #8f86ff; --c3: #ffb547; --c4: #2ed3bd; --c5: #5ab3ff; --c6: #5ddd80; --c7: #c58bff; --c8: #ff8a4d;
  --cB: #8b97ab;
  --zone-mem: #1a1830; --zone-shade: #0c1018; --zone-plain: #0f141d;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 28px rgb(0 0 0 / .35);
  --shadow-lg: 0 14px 48px rgb(0 0 0 / .6);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #080b11; --surface: #0f141d; --raised: #151b26; --sunk: #0b0f16; --glass: rgb(8 11 17 / .84);
  --ink: #e8edf5; --ink2: #b8c2d1; --muted: #8592a6; --faint: #5b6678;
  --line: #1f2633; --line2: #2e3747;
  --accent: #8d84ff; --accent-ink: #b3adff; --accent-soft: #1d1a42; --on-accent: #0b0d18; --on-solid: #0a0d14;
  --v0: #38d495; --v1: #f2ad3f; --v2: #93a2b9; --v3: #ff6d61;
  --c1: #ff6f9e; --c2: #8f86ff; --c3: #ffb547; --c4: #2ed3bd; --c5: #5ab3ff; --c6: #5ddd80; --c7: #c58bff; --c8: #ff8a4d;
  --cB: #8b97ab;
  --zone-mem: #1a1830; --zone-shade: #0c1018; --zone-plain: #0f141d;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 28px rgb(0 0 0 / .35);
  --shadow-lg: 0 14px 48px rgb(0 0 0 / .6);
  color-scheme: dark;
}
/* derived tokens: stain channels by meaning, tints and verdict washes. Defined once, they follow the theme. */
:root {
  --k-signal: var(--c1); --k-receptor: var(--c2); --k-enzyme: var(--c3); --k-gene: var(--c4); --k-protein: var(--c5);
  --k-out: var(--c6); --k-messenger: var(--c7); --k-drug: var(--c8); --k-brake: var(--cB); --k-switch: var(--c5);
  --t1: color-mix(in srgb, var(--c1) 15%, var(--surface)); --t2: color-mix(in srgb, var(--c2) 15%, var(--surface));
  --t3: color-mix(in srgb, var(--c3) 16%, var(--surface)); --t4: color-mix(in srgb, var(--c4) 15%, var(--surface));
  --t5: color-mix(in srgb, var(--c5) 15%, var(--surface)); --t6: color-mix(in srgb, var(--c6) 15%, var(--surface));
  --t7: color-mix(in srgb, var(--c7) 15%, var(--surface)); --t8: color-mix(in srgb, var(--c8) 15%, var(--surface));
  --d1: var(--c1); --d2: var(--c2); --d3: var(--c3); --d4: var(--c4); --d5: var(--c5); --d6: var(--c6); --d7: var(--c7); --d8: var(--c8);
  --v0-soft: color-mix(in srgb, var(--v0) 13%, var(--surface)); --v1-soft: color-mix(in srgb, var(--v1) 14%, var(--surface));
  --v2-soft: color-mix(in srgb, var(--v2) 13%, var(--surface)); --v3-soft: color-mix(in srgb, var(--v3) 13%, var(--surface));
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f-text); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--glass) }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0 }
h1, h2, h3 { text-wrap: balance }
ul, ol { margin: 0; padding-left: 1.3em }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }
button:disabled { cursor: default; opacity: .5 }
a { color: var(--accent-ink); text-underline-offset: 3px }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent) }
[hidden] { display: none !important }
body.no-sample .tutor-only, body.no-tutor .tutor-only { display: none !important }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, h3[tabindex="-1"]:focus, p[tabindex="-1"]:focus { outline: none; box-shadow: none }
.ic { width: 20px; height: 20px; flex: none }
.ic .tf { fill: color-mix(in srgb, currentColor 18%, transparent) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.muted { color: var(--muted) }
.sm { font-size: .875rem }
.mono { font-family: var(--f-mono); font-size: .86em; letter-spacing: -.01em }
.center { text-align: center; justify-items: center }
.flip { transform: scaleX(-1) }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important } }

/* ---------- shell ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: calc(18px + env(safe-area-inset-top, 0px)) 12px calc(14px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px)); overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; scrollbar-width: thin }
.side.open { transform: none; visibility: visible; transition: transform .22s ease, visibility 0s; box-shadow: var(--shadow-lg) }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 16px; border: 0; background: none; text-align: left; width: 100% }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none }
.brand-mark .ic { width: 22px; height: 22px; stroke-width: 2 }
.brand-name { font: 750 1.32rem/1 var(--f-display); letter-spacing: -.025em; display: block }
.brand-tag { font: 500 .68rem/1.2 var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; display: block }
.nav { display: grid; gap: 1px; padding: 4px 0 }
.nav-g { font: 600 .64rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 16px 10px 7px }
.nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--ink2); font-size: .92rem; font-weight: 500; text-align: left; min-height: 38px }
.nav button .ic { width: 19px; height: 19px; color: var(--muted) }
.nav button:hover { background: var(--sunk); color: var(--ink) }
.nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650 }
.nav button[aria-current="page"] .ic { color: var(--accent-ink) }
.nav button .cnt { margin-left: auto; font: 500 .7rem var(--f-mono); color: var(--faint) }
.side-foot { margin-top: auto; padding: 14px 10px 2px; display: grid; gap: 8px }
.sync { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 8px }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none }
.sync[data-k="synced"]::before { background: var(--v0); border-color: var(--v0) }
.sync[data-k="saving"]::before, .sync[data-k="connecting"]::before { border-color: var(--v1) }
.scrim { position: fixed; inset: 0; background: rgb(5 8 14 / .5); z-index: 25 }
.main { min-width: 0 }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line) }
.topbar-brand { display: flex; align-items: center; gap: 9px; font: 750 1.12rem/1 var(--f-display); letter-spacing: -.02em; border: 0; background: none; padding: 0 }
.topbar-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px }
.topbar-brand .brand-mark .ic { width: 18px; height: 18px }
.tsearch { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 14px; border: 1px solid var(--line2); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: .92rem; text-align: left; margin-left: auto }
.tsearch:hover { border-color: var(--accent) }
.tsearch { min-width: 0 }
.tsearch > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.topbar > * { min-width: 0 }
.topbar .acts, .topbar .iconbtn, .topbar .avatar { flex: none }
.tsearch > span:first-child { display: grid; place-items: center }
.tsearch .ic { width: 18px; height: 18px }
kbd, .kbd { font: 500 .7rem/1 var(--f-mono); padding: 4px 6px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; color: var(--muted); background: var(--sunk) }
.topbar .acts { display: flex; align-items: center; gap: 8px; margin-left: auto }
.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line2); border-radius: 11px; background: var(--surface); padding: 0; color: var(--ink2); flex: none }
.iconbtn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink) }
.iconbtn.sm { width: 34px; height: 34px; border-radius: 9px }
.iconbtn.sm .ic { width: 17px; height: 17px }
.iconbtn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink) }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); font: 600 .82rem var(--f-text); color: var(--ink2) }
.pill .ic { width: 16px; height: 16px; color: var(--c8) }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--surface); font: 700 .85rem var(--f-text); display: grid; place-items: center; flex: none; padding: 0 }
.ask-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 11px; border: 1px solid transparent; background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; font-size: .9rem }
.ask-btn:hover { border-color: var(--accent) }
.ask-btn .ic { width: 18px; height: 18px }
#view { width: 100%; max-width: 1240px; margin: 0 auto; outline: none; display: grid; gap: 22px; align-content: start; padding-block: 22px 110px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
#view > * { min-width: 0 }
#view.enter > * { animation: rise .32s ease both }
#view.enter > *:nth-child(2) { animation-delay: .03s } #view.enter > *:nth-child(3) { animation-delay: .06s } #view.enter > *:nth-child(4) { animation-delay: .09s }
@keyframes rise { from { opacity: .55; transform: translateY(5px) } to { opacity: 1; transform: none } }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 22; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) }
.tabs button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 2px 8px; border: 0; background: none; color: var(--muted); font: 600 10.5px/1 var(--f-text) }
.tabs button .ic { width: 22px; height: 22px }
.tabs button[aria-current="page"] { color: var(--accent-ink) }
.tabs button[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent) }
body.focus .tabs { display: none }
@media (min-width: 760px) { .tabs { display: none } #view { padding-block: 28px 96px } }
@media (max-width: 759px) { .topbar .hide-phone { display: none } .tsearch { height: 40px } .tsearch kbd { display: none } }
@media (min-width: 1100px) {
  .side { transform: none; visibility: visible; box-shadow: none }
  .side.open { box-shadow: none }
  .scrim { display: none !important }
  .main { margin-left: var(--side-w) }
  .topbar .menu, .topbar-brand { display: none }
  .tsearch { margin-left: 0 }
  #view { padding-left: 40px; padding-right: max(40px, env(safe-area-inset-right, 0px)) }
}

/* ---------- type ---------- */
.title { font: 720 clamp(2rem, 5.2vw, 3.1rem)/1.04 var(--f-display); letter-spacing: -.032em }
.title.sm { font-size: clamp(1.7rem, 4.2vw, 2.4rem); letter-spacing: -.028em; line-height: 1.08 }
.sub { font-size: 1.05rem; color: var(--ink2); margin-top: 10px; max-width: 66ch; line-height: 1.6 }
.eyebrow { font: 600 .68rem/1.3 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted) }
.sec-h { font: 680 1.32rem/1.2 var(--f-display); letter-spacing: -.02em }
.sec-h.sm { font-size: 1.08rem }
.card-h { font: 650 1.06rem/1.3 var(--f-text); letter-spacing: -.01em }
.card-h.lg { font: 700 1.42rem/1.2 var(--f-display); letter-spacing: -.022em }
.phead { display: grid; gap: 6px; justify-items: start }
.phead .btnrow { margin-top: 12px }
.section { display: grid; gap: 12px }
.section > .muted { margin-top: -4px }
.split { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; align-content: start; min-width: 0 }
.card.slim { padding: 14px 16px; gap: 8px }
.card.list { padding: 0; gap: 0; overflow: hidden }
.card.raised { box-shadow: var(--shadow); border-color: transparent }
.card.tint { background: var(--accent-soft); border-color: transparent }
.empty { display: grid; gap: 10px; justify-items: start; padding: 28px; border: 1px dashed var(--line2); border-radius: var(--r); background: var(--surface) }
.rowline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap }
.duo { display: grid; gap: 16px }
.tri { display: grid; gap: 16px }
@media (min-width: 760px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)) } .tri { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.loading { padding: 64px 0; display: grid; justify-items: center; gap: 14px; color: var(--muted) }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--accent); animation: spin .9s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 18px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: .95rem; text-align: center; text-decoration: none; transition: background .15s, border-color .15s, transform .1s }
.btn:hover:not(:disabled) { background: var(--accent-ink); border-color: var(--accent-ink) }
.btn:active:not(:disabled) { transform: translateY(1px) }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line2) }
.btn.ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); background: var(--surface) }
.btn.quiet { background: transparent; border-color: transparent; color: var(--accent-ink); padding-inline: 8px }
.btn.quiet:hover:not(:disabled) { background: var(--accent-soft); border-color: transparent }
.btn.sm { min-height: 34px; padding: 5px 12px; font-size: .86rem; border-radius: 9px }
.btn.big { min-height: 50px; padding: 12px 22px; font-size: 1.02rem }
.btn.wide { min-width: 220px }
.btn .ic { width: 18px; height: 18px }
.btn.sm .ic { width: 16px; height: 16px }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.btnrow.end { justify-content: flex-end }
.btnrow.center { justify-content: center }
.back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; color: var(--muted); font-weight: 550; font-size: .9rem; justify-self: start }
.back:hover { color: var(--accent-ink) }
.back .ic { width: 17px; height: 17px }
.link { border: 0; background: none; padding: 0; color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; text-align: left }
.link.sm { font-size: .85rem; font-weight: 550 }
.chips { display: flex; flex-wrap: wrap; gap: 7px }
.chip, .gl-l { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 12px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); font-size: .85rem; font-weight: 550; color: var(--ink2); text-align: left }
.chip:hover:not(:disabled), .gl-l:hover { border-color: var(--accent); color: var(--accent-ink) }
.chip[aria-pressed="true"], .gl-l[aria-pressed="true"], .gl-l.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 650 }
.chip small { font: 500 .68rem var(--f-mono); color: var(--muted); margin-left: 2px }
.chip .ic { width: 16px; height: 16px }
.chips.big .chip { min-height: 44px; padding: 8px 16px; font-size: .95rem }
.chip.wrong { border-style: dashed; border-color: var(--v3); background: var(--v3-soft); color: var(--v3) }
.gl-letters { display: flex; flex-wrap: wrap; gap: 6px }
.gl-l { justify-content: center; min-width: 36px }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center }
.search-in { display: flex; align-items: center; gap: 9px; flex: 1 1 260px; max-width: 460px; height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 11px; background: var(--surface) }
.search-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent) }
.search-in .ic { color: var(--muted); width: 18px; height: 18px }
.search-in input { border: 0; background: none; outline: none; flex: 1; min-width: 0; font-size: .95rem; padding: 0; height: 100% }
.bar { display: block; height: 7px; background: var(--sunk); border-radius: 999px; overflow: hidden; flex: 1; min-width: 40px }
.bar > span { display: block; height: 100%; background: var(--nb, var(--accent)); border-radius: 999px; transition: width .4s ease }
.bar.thick { height: 11px }
.ring { width: 112px; height: 112px; flex: none }
.ring-t { fill: none; stroke: var(--sunk); stroke-width: 11 }
.ring-f { fill: none; stroke: var(--nb, var(--accent)); stroke-width: 11; stroke-linecap: round }
.ring-n { font: 750 26px var(--f-display); fill: var(--ink); letter-spacing: -.02em }
.ring-s { font: 500 10px var(--f-mono); fill: var(--muted); letter-spacing: .06em; text-transform: uppercase }
.tags { display: flex; flex-wrap: wrap; gap: 6px }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--line2); border-radius: 999px; font: 500 .72rem var(--f-mono); color: var(--ink2); letter-spacing: .01em }
.tag.solid { background: var(--v0-soft); color: var(--v0); border-color: transparent }
.tag .ic { width: 13px; height: 13px; stroke-width: 2.6 }
.vchip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; font: 600 .74rem/1.4 var(--f-text); white-space: nowrap; border: 1px solid transparent }
.vchip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none }
.vchip.v0 { background: var(--v0-soft); color: var(--v0) }
.vchip.v1 { background: var(--v1-soft); color: var(--v1) }
.vchip.v2 { background: var(--v2-soft); color: var(--v2) }
.vchip.v3 { background: var(--v3-soft); color: var(--v3) }
.vmeter { display: inline-flex; gap: 3px; vertical-align: middle }
.vmeter i { width: 14px; height: 6px; border-radius: 2px; background: var(--sunk) }
.vmeter.v0 i.on { background: var(--v0) } .vmeter.v1 i.on { background: var(--v1) } .vmeter.v2 i.on { background: var(--v2) } .vmeter.v3 i.on { background: var(--v3) }
.kindchip { display: inline-flex; align-items: center; gap: 7px; font: 600 .7rem/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--kc, var(--muted)) }
.kindchip i { width: 10px; height: 10px; border-radius: 3px; background: var(--kc, var(--muted)) }
.g-signal { --kc: var(--k-signal) } .g-receptor { --kc: var(--k-receptor) } .g-enzyme { --kc: var(--k-enzyme) } .g-switch { --kc: var(--k-switch) } .g-messenger { --kc: var(--k-messenger) }
.g-protein { --kc: var(--k-protein) } .g-gene { --kc: var(--k-gene) } .g-brake { --kc: var(--k-brake) } .g-drug { --kc: var(--k-drug) } .g-out { --kc: var(--k-out) }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px }
.field label, .field legend, .lbl { font-weight: 600; font-size: .88rem; color: var(--ink2) }
.field .hint { font-size: .84rem; color: var(--muted) }
input[type=text], input[type=search], input[type=number], input[type=date], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); font-size: .97rem; color: var(--ink) }
textarea { resize: vertical; line-height: 1.55 }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent) }
/* search boxes draw their own frame, so the input inside them is bare */
.search-in input[type=search], .search-in input[type=text], .search-in input { border: 0; background: none; box-shadow: none; padding: 0; height: 100%; border-radius: 0 }
.search-in input[type=search]:focus, .search-in input:focus { box-shadow: none }
.card.list .lrow:focus-visible, .card.list button:focus-visible { outline-offset: -3px; border-radius: 10px }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0 }
fieldset.field legend { padding: 0; margin-bottom: 8px }
.tick { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer }
.tick input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--accent); flex: none }
.checks { display: grid; gap: 8px }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.tile { padding: 16px; gap: 2px }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)) } .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
@media (min-width: 1100px) { .tiles.six { grid-template-columns: repeat(6, minmax(0, 1fr)) } }
.stat-n { font: 720 clamp(1.5rem, 4vw, 2rem)/1.1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px }
.stat-n .ic { width: 22px; height: 22px; color: var(--c8) }
.stat-l { font-size: .8rem; color: var(--muted) }
.chart .dg { width: 100%; max-width: 680px; height: auto }
.chartnote { font-size: .88rem; min-height: 1.4em; color: var(--muted) }
details.tv summary { cursor: pointer; font-size: .88rem; color: var(--muted) }

/* ---------- lists ---------- */
.lrow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left }
.lrow:first-child { border-top: 0 }
button.lrow:hover:not(:disabled) { background: var(--sunk) }
.lnum { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; font: 600 .8rem var(--f-mono); color: var(--muted) }
.lrow.done .lnum { background: var(--v0); border-color: var(--v0); color: var(--on-solid) }
.lnum .ic { width: 15px; height: 15px; stroke-width: 2.6 }
.lmain { display: grid; gap: 2px; flex: 1; min-width: 0 }
.ltitle { font-weight: 620 }
.lsub { color: var(--ink2); font-size: .9rem }
.lmeta { color: var(--muted); font-size: .8rem }
.lrow.pending { opacity: .5 }
.chev { width: 17px; height: 17px; color: var(--faint) }
.mini { display: grid; gap: 1px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 11px 0 }
.mini:first-of-type { border-top: 0 }
.mini span { font-weight: 600 }
.mini small { color: var(--muted); font-size: .8rem }
.mini:hover span { color: var(--accent-ink) }
.nblist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px }
@media (min-width: 900px) { .nblist.two { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
.nbrow { display: flex; align-items: center; gap: 16px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; color: var(--ink) }
.nbrow:hover { border-color: var(--nb, var(--accent)); box-shadow: var(--shadow) }
.nbrow-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--nb, var(--accent)) 14%, var(--surface)); color: var(--nb, var(--accent)); flex: none }
.nbrow-ic .ic { width: 26px; height: 26px }
.nbrow-main { display: grid; gap: 4px; flex: 1; min-width: 0 }
.nbrow-t { font: 680 1.1rem/1.25 var(--f-display); letter-spacing: -.015em }
.nbbar { display: flex; align-items: center; gap: 10px; width: 100% }
.nbpct { font: 500 .74rem var(--f-mono); color: var(--muted); white-space: nowrap }
.nbhead { display: flex; gap: 16px; align-items: flex-start }
.nbhead-ic .ic, .nbhead .nbrow-ic .ic { width: 30px; height: 30px }
.sources { font-size: .88rem; color: var(--ink2); display: grid; gap: 8px; padding-top: 6px }
.sources li { margin: 4px 0 }

/* ---------- lessons ---------- */
.lesson { display: grid; gap: 20px; max-width: 800px; width: 100% }
.lhead { display: grid; gap: 8px }
.lhead::before { content: ""; display: block; width: 48px; height: 5px; border-radius: 3px; background: var(--nb, var(--accent)) }
.lesson-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 4px 24px 28px; font-size: 1.04rem; line-height: 1.75 }
@media (max-width: 560px) { .prose { padding: 2px 16px 22px } }
.ls { padding-top: 26px; display: grid; gap: 13px }
.ls + .ls { border-top: 1px solid var(--line); margin-top: 26px }
.ls > h2 { font: 680 1.3rem/1.25 var(--f-display); letter-spacing: -.02em }
.ls h3 { font: 650 1.08rem/1.35 var(--f-text); margin-top: 12px }
.ls h3:first-child { margin-top: 0 }
.ls p, .ls li { max-width: 68ch }
.ls li { margin: 6px 0 }
.ls strong { font-weight: 650; color: var(--ink) }
.terms { display: grid; gap: 4px; grid-template-columns: minmax(0, 1fr) }
@media (min-width: 640px) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px } }
.terms > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--sunk) }
.terms dt { font-weight: 650; color: var(--nb, var(--accent-ink)) }
.terms dd { font-size: .94rem; line-height: 1.55 }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin: 0 }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--nb, var(--accent)); color: var(--on-solid); display: grid; place-items: center; font: 600 .78rem var(--f-mono); margin-top: 1px }
.fig { display: grid; gap: 10px; justify-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }
.fig .dg { width: 100%; max-width: 440px; height: auto }
.fig figcaption { font-size: .88rem; color: var(--ink2); line-height: 1.5; max-width: 62ch; justify-self: start }
.fig-legend { font-size: .88rem; justify-self: start; line-height: 1.5 }
.tblwrap { overflow-x: auto; width: 100%; border-radius: 10px }
.tbl { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.45 }
.tbl th, .tbl td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: top }
.tbl thead th { border-bottom: 2px solid var(--line2); font: 600 .72rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.tbl tbody th { font-weight: 620 }
.tbl td.n { font-variant-numeric: tabular-nums; font-family: var(--f-mono); font-size: .85rem }
.tbl.c4 { min-width: 520px } .tbl.c5 { min-width: 640px }
.tblwrap.scrolls { box-shadow: inset -12px 0 10px -10px rgb(0 0 0 / .18) }
.swipe { display: none; font-size: .8rem; color: var(--muted); margin: 0; justify-self: start }
.tblwrap.scrolls + .swipe { display: block }
.dclass { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px 16px }
.dclass h3 { font-size: 1.02rem }
.dclass dl { display: grid; gap: 9px; margin: 10px 0 0 }
.dclass dl > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px }
.dclass dt { font: 600 .7rem/1.5 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 2px }
.dclass dd { margin: 0; font-size: .94rem; line-height: 1.5 }
@media (max-width: 460px) { .dclass dl > div { grid-template-columns: minmax(0, 1fr); gap: 1px } }
.myth { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden }
.myth p { max-width: none; padding: 12px 14px; font-size: .96rem }
.myth b { display: block; font: 600 .66rem/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase }
.myth-x { background: var(--v3-soft); color: var(--ink2) }
.myth-x b { color: var(--v3) }
.myth-ok b { color: var(--v0) }
.kcs { display: grid; gap: 10px }
.kc { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface) }
.kc-q { font-weight: 600; display: flex; gap: 10px }
.kc-q > b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font: 600 .74rem var(--f-mono) }
.kc-a { padding: 10px 12px; border-radius: 9px; background: var(--v0-soft); width: 100% }
.deep { padding: 14px 0; border-top: 1px solid var(--line) }
.deep:first-of-type { border-top: 0; padding-top: 4px }
.deep-h { font: 650 1rem var(--f-text); margin-bottom: 4px }
.deep:last-child { margin-top: 4px; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--accent-soft) }
.deep:last-child .deep-h::before { content: "Still unknown · "; font: 600 .68rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink) }
.finish h2, .notes h2 { font: 650 1.08rem var(--f-text) }
.pn-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.pn-nav .btn { max-width: 100%; text-align: left }
.notebar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }

/* ---------- quizzes and cards ---------- */
.qz, .fcwrap { display: grid; gap: 14px; max-width: 780px; width: 100% }
.qcard { gap: 14px; padding: 22px }
.qtext { font: 680 1.3rem/1.35 var(--f-display); letter-spacing: -.015em }
.qtext.sm { font-size: 1.04rem }
.opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 13px 14px; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--surface); text-align: left; font-size: 1rem; transition: border-color .12s, background .12s }
.opt:hover:not(:disabled) { border-color: var(--accent) }
.opt:disabled { opacity: 1 }
.opt-l { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line2); display: grid; place-items: center; font: 600 .76rem var(--f-mono) }
.opt-t { flex: 1; min-width: 0 }
.opt.picked { border-color: var(--accent); background: var(--accent-soft) }
.opt.picked .opt-l { background: var(--accent); border-color: var(--accent); color: var(--on-accent) }
.opt.right { border-color: var(--v0); background: var(--v0-soft) }
.opt.right .opt-l { background: var(--v0); border-color: var(--v0); color: var(--on-solid) }
.opt.wrong { border-color: var(--v3); background: var(--v3-soft); border-style: dashed }
.why { font-size: .92rem; color: var(--ink2); padding: 2px 0 4px 14px; border-left: 3px solid var(--line2); display: grid; gap: 6px; margin-top: -4px }
.why.ok { border-left-color: var(--v0); color: var(--ink) }
.ord { list-style: none; padding: 0; display: grid; gap: 8px; counter-reset: o }
.ord li { counter-increment: o; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 11px; background: var(--surface) }
.ord li::before { content: counter(o); font: 600 .8rem var(--f-mono); width: 18px; flex: none; color: var(--muted) }
.ord li.right { border-color: var(--v0); background: var(--v0-soft) }
.ord li.wrong { border-style: dashed; border-color: var(--v3); background: var(--v3-soft) }
.ord-t { flex: 1 } .ord-b { display: flex; gap: 6px }
.mine { padding: 12px; background: var(--sunk); border-radius: 10px; display: grid; gap: 4px }
.result-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap }
.result-top > div { flex: 1; min-width: 200px; display: grid; gap: 6px }
.skills { display: grid; gap: 8px }
.skills > div { display: grid; grid-template-columns: 100px 1fr 60px; gap: 12px; align-items: center; font-size: .9rem }
.fc { min-height: 260px; align-content: center; justify-items: center; text-align: center; padding: 30px 22px; border-radius: var(--r-lg); box-shadow: var(--shadow); border-color: transparent }
.fc-front { font: 680 1.4rem/1.35 var(--f-display); letter-spacing: -.015em; max-width: 32ch }
.fc-back { font-size: 1.06rem; line-height: 1.6; max-width: 48ch; color: var(--ink2) }
.fc hr { width: 64px; border: 0; border-top: 2px solid var(--accent); margin: 8px 0 }
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px }
.rates .btn { flex-direction: column; gap: 2px; padding: 10px 6px }
.rates small { font-weight: 450; font-size: .76rem; color: var(--muted) }
.cardrow { border-top: 1px solid var(--line); padding: 12px 16px }
.cardrow:first-child { border-top: 0 }
.cardrow summary { cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; list-style: none }
.cardrow summary::-webkit-details-marker { display: none }
.cardrow p { margin-top: 8px; color: var(--ink2) }
.case-intro { border-left: 3px solid var(--accent) }
.case-intro summary { font-weight: 650; cursor: pointer }
.case-intro > * + * { margin-top: 8px }
.result { gap: 16px }

/* ---------- pathway maps ---------- */
.pw { width: 100%; height: auto; display: block; overflow: visible }
.pw .zone { stroke: none }
.pw .z-plain { fill: var(--zone-plain) } .pw .z-shade { fill: var(--zone-shade) } .pw .z-mem { fill: var(--zone-mem) }
.pw .zmem { stroke: color-mix(in srgb, var(--c2) 40%, transparent); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round }
.pw .zl { font: 600 8.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--muted) }
.pn { cursor: pointer }
.pn rect { fill: color-mix(in srgb, var(--kc, var(--k-protein)) 13%, var(--surface)); stroke: var(--kc, var(--k-protein)); stroke-width: 1.6; transition: fill .2s, stroke-width .15s }
.pn .pt { font: 600 11.5px var(--f-text); fill: var(--ink) }
.pn.g-receptor rect { stroke-width: 2.6 }
.pn.g-switch rect { stroke-dasharray: 6 3 }
.pn.g-brake rect { stroke-dasharray: 2 3; stroke-linecap: round; stroke-width: 2.2 }
.pn.g-out rect { fill: color-mix(in srgb, var(--kc) 8%, var(--surface)); stroke-dasharray: 5 3 }
.pn.g-drug rect { stroke-width: 2.2 }
.pn:hover rect { stroke-width: 3 }
.pn:focus { outline: none }
.pn:focus-visible rect { stroke-width: 3.5; stroke: var(--accent) }
.pn.sel rect { fill: var(--kc); stroke: var(--kc); stroke-dasharray: none; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--kc) 55%, transparent)) }
.pn.sel .pt { fill: var(--on-solid) }
.pn.fixed { cursor: default }
.pn.blank rect { fill: var(--surface); stroke: var(--line2); stroke-dasharray: 4 3; stroke-width: 1.5 }
.pn.blank .pt { fill: var(--faint) }
.pn.blank.next rect { stroke: var(--accent); stroke-width: 2.6; stroke-dasharray: none; fill: var(--accent-soft) }
.pe { fill: none; stroke: var(--ink2); stroke-width: 1.6; opacity: .78; transition: opacity .2s, stroke-width .2s }
.pe.inh { stroke: var(--v3) }
.pe.ind, .pe.fb { stroke-dasharray: 4 4; stroke: var(--muted) }
.pe.hot { stroke-width: 2.6; opacity: 1 }
.pe.dim { opacity: .2 }
.pe.flow { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 7 6; animation: flow .7s linear infinite; opacity: 1 }
@keyframes flow { to { stroke-dashoffset: -26 } }
.mk-act { fill: var(--ink2) } .mk-inh { stroke: var(--v3); fill: none } .mk-fb { fill: var(--muted) }
.pw.mini .pn rect { stroke-width: 2.4 }
.pw.mini .pe { stroke-width: 2.2; opacity: .55 }
.pw-legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--ink2) }
.pw-legend li { display: flex; align-items: center; gap: 7px }
.lg-box { width: 18px; height: 12px; border-radius: 4px; border: 1.6px solid var(--kc); background: color-mix(in srgb, var(--kc) 16%, var(--surface)) }
.lg-box.g-brake { border-style: dotted } .lg-box.g-switch, .lg-box.g-out { border-style: dashed }
.lg-line { width: 24px; border-top: 2px solid var(--ink2); position: relative }
.lg-line::after { content: ""; position: absolute; right: -6px; top: -5px; border: 4px solid transparent; border-left-color: var(--ink2) }
.lg-line.inh { border-top-color: var(--v3) }
.lg-line.inh::after { border: 0; width: 2px; height: 10px; background: var(--v3); top: -6px; right: 0 }
.lg-line.dash { border-top-style: dashed; border-top-color: var(--muted) }
.lg-line.dash::after { display: none }
.pw-wrap { display: grid; gap: 16px; align-items: start }
.pw-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; display: grid; gap: 10px; min-width: 0 }
.pw-card.solo { max-width: 560px }
.pw-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap }
.pw-tools .btnrow { gap: 6px }
.pw-scroll { overflow-x: auto; border-radius: 12px; background: var(--zone-plain) }
.pw-scroll.zoomed { overflow: auto; max-height: 78vh; overscroll-behavior: contain }
.pw-scroll .pw { margin: 0 auto; max-width: 100% }
.pw-scroll.zoomed .pw { max-width: none }
.pw-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 12px; align-content: start }
.pw-dl { display: grid; gap: 11px }
.pw-dl dt { font: 600 .66rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.pw-dl dd { font-size: .95rem; line-height: 1.55 }
.pw-rel { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line) }
.pw-rel .eyebrow { padding-top: 10px }
@media (min-width: 980px) { .pw-wrap { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px) } .pw-panel { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto } }
.pwgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) }
.pwc { display: grid; grid-template-rows: auto 1fr; text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 0; overflow: hidden; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s }
.pwc:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px) }
.pwc-art { display: flex; align-items: center; justify-content: center; height: 168px; padding: 12px 20px; background: var(--zone-shade); border-bottom: 1px solid var(--line); overflow: hidden }
.pwc-art .pw { width: auto; height: 144px; max-width: 100% }
.pwc-body { display: grid; gap: 4px; padding: 14px 16px 16px; align-content: start }
.pwc-t { font: 680 1.06rem/1.25 var(--f-display); letter-spacing: -.015em }
.pwc-d { font-size: .87rem; color: var(--ink2); line-height: 1.45 }
.pwc-m { display: inline-flex; align-items: center; gap: 5px; font: 600 .72rem var(--f-mono); color: var(--v0); margin-top: 4px }
.pwc-m .ic { width: 14px; height: 14px; stroke-width: 2.6 }
.pwt-status { margin: 0 0 .4rem }

/* ---------- compound lab, claims ---------- */
.facts { display: grid; gap: 6px }
.facts > div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; font-size: .94rem }
.facts dt { font: 600 .7rem/1.6 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted) }
.facts dd { font-family: var(--f-mono); font-size: .9rem }
.twocol { display: grid; gap: 14px }
@media (min-width: 760px) { .twocol { grid-template-columns: 1fr 1fr } }
.cprof { max-width: 860px; width: 100%; display: grid; gap: 16px }
.cprof .card p, .cprof .card li { max-width: 70ch; line-height: 1.65 }
.cprof .card h3 { font-size: 1rem; margin-top: 6px }
.claim { gap: 12px; border-left: 3px solid var(--accent) }
.claim-t { font: 680 1.22rem/1.3 var(--f-display); letter-spacing: -.015em }
.pred { display: grid; gap: 10px }
.predict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
@media (min-width: 720px) { .predict { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
.predict .btn { font-size: .84rem; padding-inline: 8px }
.claim-body { display: grid; gap: 12px }
.cstep { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid var(--line2) }
.cq { font-weight: 650 }
.verdict { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 650; justify-self: start; font-size: .9rem }
.guess { font-size: .94rem; padding: 10px 12px; border-radius: 10px; background: var(--sunk) }
.rlinks { list-style: none; padding: 0; display: grid; gap: 8px }
.rlinks a { font-weight: 600 }
.rlinks li { line-height: 1.45 }

.cgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)) }
.ccard { display: grid; gap: 6px; align-content: start; justify-items: start; text-align: left; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); transition: border-color .15s, transform .15s }
.ccard:hover { border-color: var(--k-drug); transform: translateY(-2px) }
.ccard .eyebrow { color: var(--k-drug) }
.ccard-t { font: 700 1.12rem/1.25 var(--f-display); letter-spacing: -.015em }
.ccard-d { display: flex; gap: 6px; font-size: .86rem; color: var(--ink2); line-height: 1.45 }
.ccard-d .ic { width: 15px; height: 15px; color: var(--v0); flex: none; margin-top: 2px; stroke-width: 2.4 }
.cbody { display: grid; gap: 10px }
.cbody h3 { font: 650 1rem var(--f-text) }
.chip .dotk { width: 9px; height: 9px; border-radius: 50%; background: var(--kc, var(--muted)); flex: none }
.card.tint .ic { width: 17px; height: 17px; vertical-align: -3px; color: var(--accent-ink) }
.card-h .ic { width: 18px; height: 18px; vertical-align: -3px; color: var(--v0) }
.twocol .card:last-child .card-h .ic { color: var(--v2) }
.nbhead .nbrow-ic { width: 56px; height: 56px; border-radius: 15px }

/* ---------- molecule and compound indexes ---------- */
.idx-list { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden }
.mol, .ci { display: grid; gap: 5px; padding: 16px 18px; border-top: 1px solid var(--line); position: relative }
.mol:first-child, .ci:first-child { border-top: 0 }
.mol::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--kc, var(--line2)) }
.mol-n, .ci-n { font: 680 1.08rem/1.3 var(--f-display); letter-spacing: -.012em; display: flex; flex-wrap: wrap; align-items: center; gap: 9px }
.mol-n button { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left }
.mol-n button:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px }
.mol-cat, .ci-cat { font: 600 .64rem/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--kc, var(--muted)); padding: 1px 7px; border-radius: 5px; background: color-mix(in srgb, var(--kc, var(--muted)) 12%, var(--surface)) }
.c-ligand { --kc: var(--k-signal) } .c-receptor { --kc: var(--k-receptor) } .c-enzyme { --kc: var(--k-enzyme) } .c-tf { --kc: var(--k-gene) }
.c-messenger { --kc: var(--k-messenger) } .c-transport { --kc: var(--k-protein) } .c-structural { --kc: var(--cB) } .c-pathway { --kc: var(--k-out) }
.c-nutrient { --kc: var(--c6) } .c-marker { --kc: var(--c3) } .c-drug { --kc: var(--k-drug) }
.mol-f, .ci-f { font-size: .84rem; color: var(--muted) }
.mol-d, .ci-d { font-size: .94rem; line-height: 1.55 }
.mol-d strong, .ci-d strong { font-weight: 650 }
.mol-x { font-size: .88rem; line-height: 1.5; color: var(--ink2) }
.mol-x strong { color: var(--ink) }
.mol-l, .ci-v { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 3px }
.ci { padding-left: 18px }
.ci::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0 }
.ci.v0::before { background: var(--v0) } .ci.v1::before { background: var(--v1) } .ci.v2::before { background: var(--v2) } .ci.v3::before { background: var(--v3) }
.gloss { display: grid; gap: 0; margin: 0 }
.gloss > div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line) }
.gloss > div:first-child { border-top: 0 }
.gloss dt { font-weight: 680 }
.gloss dd { margin: 0; line-height: 1.55; font-size: .95rem }

/* ---------- molecule sheet ---------- */
.sheet { position: fixed; z-index: 50; right: 0; top: 0; bottom: 0; width: min(500px, 100%); background: var(--raised); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .22s ease; padding-top: env(safe-area-inset-top, 0px) }
.sheet.wide { width: min(760px, 100%) }
.sheet.in { transform: none }
.sheet-top { display: flex; justify-content: flex-end; padding: 10px 12px 0 }
.sheet-body { overflow: auto; padding: 4px 24px calc(30px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; align-content: start; flex: 1 }
.sheet-scrim { position: fixed; inset: 0; z-index: 45; background: rgb(5 8 14 / .42) }
@media (max-width: 640px) {
  .sheet { top: auto; left: 0; width: 100%; height: 88vh; border-left: 0; border-radius: 20px 20px 0 0; transform: translateY(104%) }
  .sheet.in { transform: none }
  .sheet-body { padding-inline: 18px }
}
.msheet-h { display: grid; gap: 8px }
.msheet-h .title { font-size: clamp(1.7rem, 5vw, 2.2rem) }
.kv { display: grid; gap: 12px }
.kv > div { display: grid; gap: 3px }
.kv dt { font: 600 .66rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.kv dd { line-height: 1.6 }
.xref { display: grid; gap: 8px }
.xref .chips { gap: 6px }

/* ---------- home ---------- */
.hero { display: grid; gap: 18px }
.hello { display: grid; gap: 6px }
.statline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.stat2 { display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; color: var(--muted); text-align: left }
.stat2 b { font: 720 1.12rem/1 var(--f-display); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.stat2 .ic { width: 16px; height: 16px; align-self: center; color: var(--c8) }
button.stat2:hover { border-color: var(--accent) }
.home-grid { display: grid; gap: 16px }
@media (min-width: 980px) { .home-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) } }
.cont { display: grid; gap: 0; padding: 0; overflow: hidden }
.cont-art { display: grid; place-items: center; background: color-mix(in srgb, var(--nb, var(--accent)) 9%, var(--surface)); padding: 18px; min-height: 150px; border-bottom: 1px solid var(--line) }
.cont-art .dg { width: 100%; max-width: 300px; height: auto }
.cont-art .bigicon .ic { width: 72px; height: 72px; color: var(--nb, var(--accent)) }
.cont-body { display: grid; gap: 8px; padding: 20px; justify-items: start }
@media (min-width: 640px) { .cont { grid-template-columns: 240px minmax(0, 1fr) } .cont-art { border-bottom: 0; border-right: 1px solid var(--line) } }
.today { display: flex; flex-wrap: wrap; gap: 10px 28px }
.today > div { display: grid; gap: 1px }
.today strong { font: 700 1.1rem var(--f-display); font-variant-numeric: tabular-nums }
.today span { font-size: .8rem; color: var(--muted) }
.week { list-style: none; padding: 0; display: flex; gap: 6px; justify-content: space-between; max-width: 360px }
.week li { display: grid; justify-items: center; gap: 4px; margin: 0 }
.wk-dot { width: 28px; height: 28px; border-radius: 9px; border: 1.5px solid var(--line2); display: grid; place-items: center }
.week li.on .wk-dot { background: var(--v0); border-color: var(--v0); color: var(--on-solid) }
.week li.now .wk-dot { border-color: var(--accent) }
.wk-dot .ic { width: 14px; height: 14px; stroke-width: 2.6 }
.wk-l { font: 500 .66rem var(--f-mono); color: var(--muted); text-transform: uppercase }
.potd { display: grid; gap: 10px; padding: 0; overflow: hidden; text-align: left; color: var(--ink) }
.potd-art { background: var(--zone-shade); padding: 14px 18px; display: flex; align-items: center; justify-content: center; height: 230px; border-bottom: 1px solid var(--line); overflow: hidden }
.potd-art .pw { height: 200px; width: auto; max-width: 100% }
.potd-body { padding: 0 18px 18px; display: grid; gap: 6px; justify-items: start }
.xgrid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)) }
@media (min-width: 720px) { .xgrid { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
.xtile { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .15s, transform .15s }
.xtile:hover { border-color: var(--kc, var(--accent)); transform: translateY(-2px) }
.xtile .ic { width: 26px; height: 26px; color: var(--kc, var(--accent)); margin-bottom: 6px }
.xtile b { font: 720 1.5rem/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums }
.xtile span { font-weight: 620; font-size: .94rem }
.xtile small { font-size: .78rem; color: var(--muted) }
.daily { display: grid; gap: 16px }
@media (min-width: 900px) { .daily { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.wn .card-h .ic { color: var(--accent-ink); width: 18px; height: 18px; vertical-align: -3px }
.wn-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)) }
.wn-it { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 10px 12px; border: 1px solid transparent; border-radius: 11px; background: var(--surface); color: var(--ink) }
.wn-it:hover { border-color: var(--accent) }
.wn-it .ic { width: 20px; height: 20px; color: var(--accent-ink); margin-top: 2px }
.wn-it span { display: grid; gap: 1px }
.wn-it b { font-weight: 650; font-size: .92rem }
.wn-it small { font-size: .78rem; color: var(--muted) }
.goalchips { display: flex; flex-wrap: wrap; gap: 8px }
.goalchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px 9px 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); font-weight: 600; font-size: .9rem; color: var(--ink2) }
.goalchip .ic { width: 18px; height: 18px; color: var(--accent) }
.goalchip:hover { border-color: var(--accent); color: var(--accent-ink) }
.nbgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)) }
.nbcard { display: grid; gap: 10px; justify-items: start; padding: 16px; text-align: left; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink) }
.nbcard:hover { border-color: var(--nb, var(--accent)) }
.nbcard .nbrow-ic { width: 40px; height: 40px; border-radius: 11px }
.nbcard .nbrow-ic .ic { width: 22px; height: 22px }
.nbname { font-weight: 650 }

/* ---------- command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 60; display: grid; justify-items: center; align-items: start; padding: calc(8vh + env(safe-area-inset-top, 0px)) 14px 14px; background: rgb(5 8 14 / .45) }
.cmdk-box { width: min(680px, 100%); max-height: min(640px, 80vh); display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .16s ease }
@keyframes pop { from { opacity: .001; transform: scale(.98) translateY(-6px) } to { opacity: 1; transform: none } }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line) }
.cmdk-in .ic { width: 20px; height: 20px; color: var(--muted) }
.cmdk-in input { flex: 1; border: 0; background: none; outline: none; height: 60px; font-size: 1.1rem; padding: 0; min-width: 0 }
.cmdk-in input:focus { box-shadow: none }
.cmdk-list { overflow: auto; padding: 8px }
.cmdk-g { font: 600 .64rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 10px 12px 6px }
.cmdk-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 11px; background: none; text-align: left; color: var(--ink) }
.cmdk-it .ic { width: 18px; height: 18px; color: var(--kc, var(--muted)); flex: none }
.cmdk-it .t { font-weight: 600; flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.cmdk-it .s { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0 }
.cmdk-it .k { font: 500 .66rem var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); flex: none }
.cmdk-it[aria-selected="true"] { background: var(--accent-soft) }
.cmdk-it[aria-selected="true"] .t { color: var(--accent-ink) }
.cmdk-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); flex-wrap: wrap }
.cmdk-foot span { display: inline-flex; gap: 6px; align-items: center }
.cmdk-empty { padding: 26px 14px; color: var(--muted); text-align: center }

/* ---------- toasts ---------- */
#toasts { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(92vw, 440px) }
@media (min-width: 760px) { #toasts { bottom: calc(26px + env(safe-area-inset-bottom, 0px)) } }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: .9rem; font-weight: 550; box-shadow: var(--shadow-lg); animation: pop .2s ease; transition: opacity .35s, transform .35s }
.toast .ic { width: 18px; height: 18px; color: var(--c6) }
.toast.xp .ic { color: var(--c3) }
.toast.out { opacity: 0; transform: translateY(8px) }

/* ---------- drawn diagrams (lesson figures). Classes: f = tint fill, s = stain stroke, k = solid stain, b = mark, l = line ---------- */
.dg { display: block }
.dg .dt { font: 500 12px var(--f-text); fill: var(--ink) }
.dg .dt.sm { font-size: 10.5px }
.dg .dt.b { font-weight: 700 }
.dg .dt.cap { font-size: 10.5px; fill: var(--muted) }
.dg .dt.inv { fill: var(--on-solid) }
.dg .db { fill: var(--surface); stroke: var(--ink2); stroke-width: 1.5 }
.dg .db.fill { fill: var(--ink); stroke: var(--ink) }
.dg .db.fill + text .dt, .dg .db.fill ~ .dt.inv { fill: var(--surface) }
.dg .db.mid { fill: var(--line2) }
.dg .db.soft { fill: var(--sunk); stroke: var(--line2) }
.dg .dl { stroke: var(--ink2); stroke-width: 1.5; fill: none }
.dg .dl.thin { stroke-width: 1 }
.dg .dl.bold { stroke-width: 2.2 }
.dg .dl.dash { stroke-dasharray: 4 4 }
.dg .dl.grid { stroke: var(--line); stroke-width: 1 }
.dg .dl.ring { stroke: var(--line2) }
.dg .hit { fill: transparent; stroke: none; cursor: pointer }
.dg .nofill { fill: none }
.dg .kc { fill: var(--ink2); stroke: var(--ink2) }
.dg .f1 { fill: var(--t1) } .dg .f2 { fill: var(--t2) } .dg .f3 { fill: var(--t3) } .dg .f4 { fill: var(--t4) } .dg .f5 { fill: var(--t5) } .dg .f6 { fill: var(--t6) } .dg .f7 { fill: var(--t7) } .dg .f8 { fill: var(--t8) }
.dg .s1 { stroke: var(--c1) } .dg .s2 { stroke: var(--c2) } .dg .s3 { stroke: var(--c3) } .dg .s4 { stroke: var(--c4) } .dg .s5 { stroke: var(--c5) } .dg .s6 { stroke: var(--c6) } .dg .s7 { stroke: var(--c7) } .dg .s8 { stroke: var(--c8) }
.dg .k1 { fill: var(--c1); stroke: var(--c1) } .dg .k2 { fill: var(--c2); stroke: var(--c2) } .dg .k3 { fill: var(--c3); stroke: var(--c3) } .dg .k4 { fill: var(--c4); stroke: var(--c4) } .dg .k5 { fill: var(--c5); stroke: var(--c5) } .dg .k6 { fill: var(--c6); stroke: var(--c6) } .dg .k7 { fill: var(--c7); stroke: var(--c7) } .dg .k8 { fill: var(--c8); stroke: var(--c8) }
.dg .b1 { fill: var(--c1); stroke: none } .dg .b2 { fill: var(--c2); stroke: none } .dg .b3 { fill: var(--c3); stroke: none } .dg .b4 { fill: var(--c4); stroke: none } .dg .b5 { fill: var(--c5); stroke: none } .dg .b7 { fill: var(--c7); stroke: none } .dg .b8 { fill: var(--c8); stroke: none }
.dg .l1 { stroke: var(--c1) } .dg .l2 { stroke: var(--c2) } .dg .l3 { stroke: var(--c3) } .dg .l6 { stroke: var(--c6) } .dg .l7 { stroke: var(--c7) } .dg .l8 { stroke: var(--c8) }
.fg-flow .db { fill: var(--t2); stroke: var(--c2) } .fg-flow .db.fill { fill: var(--c2); stroke: var(--c2) }
.fg-feedback .db { fill: var(--t4); stroke: var(--c4) } .fg-feedback .db.fill { fill: var(--c4); stroke: var(--c4) }
.fg-levels .db { fill: var(--t5); stroke: var(--c5) } .fg-levels .db.fill { fill: var(--c5); stroke: var(--c5) }
.fg-switch .db { fill: var(--sunk); stroke: var(--line2) } .fg-switch .db.fill { fill: var(--c7); stroke: var(--c7) }
.fg-fork .db { fill: var(--t1); stroke: var(--c1) } .fg-fork .db.fill { fill: var(--c1); stroke: var(--c1) }
.fg-bars .db.fill { fill: var(--c2); stroke: none }
.fg-cycle rect.db:nth-of-type(6n+1) { fill: var(--t1); stroke: var(--c1) } .fg-cycle rect.db:nth-of-type(6n+2) { fill: var(--t3); stroke: var(--c3) } .fg-cycle rect.db:nth-of-type(6n+3) { fill: var(--t4); stroke: var(--c4) }
.fg-cycle rect.db:nth-of-type(6n+4) { fill: var(--t2); stroke: var(--c2) } .fg-cycle rect.db:nth-of-type(6n+5) { fill: var(--t7); stroke: var(--c7) } .fg-cycle rect.db:nth-of-type(6n) { fill: var(--t5); stroke: var(--c5) }
.fg-cycle rect.db.fill { fill: var(--c2); stroke: var(--c2) }
.fg-flow .dt, .fg-feedback .dt, .fg-levels .dt, .fg-fork .dt, .fg-cycle .dt { fill: var(--ink) }
.fg-flow .dt.inv, .fg-feedback .dt.inv, .fg-levels .dt.inv, .fg-fork .dt.inv, .fg-cycle .dt.inv, .fg-switch .dt.inv { fill: var(--on-solid) }
.mk-arrow { fill: var(--ink2) } .mk-tbar { stroke: var(--ink2); fill: none }

/* ---------- periodic table ---------- */
.ptable { display: grid; gap: 12px; width: 100%; min-width: 0 }
.pt-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; justify-content: space-between }
.pt-find { display: grid; gap: 4px; font: 600 .7rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.pt-find select { font: 500 .95rem var(--f-text); text-transform: none; letter-spacing: 0; min-width: 220px }
.pt-legend { display: flex; flex-wrap: wrap; gap: 6px }
.pt-chip { display: inline-flex; align-items: center; gap: 6px; font: 550 .8rem var(--f-text); padding: 5px 11px 5px 8px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surface); color: var(--ink2); cursor: pointer }
.pt-chip[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink) }
.pt-sw { width: 14px; height: 14px; flex: none }
.dg.pt { min-width: 640px; width: 100%; height: auto }
.dg .pt-g { font: 500 8px var(--f-mono); fill: var(--muted) }
.dg .pt-n { font: 500 7.5px var(--f-mono); fill: var(--ink2) }
.dg .pt-s { font: 700 13px var(--f-text); fill: var(--ink) }
.pt-el { cursor: pointer }
.pt-el rect, .pt-sw rect { fill: var(--surface); stroke: var(--line2); stroke-width: 1 }
.pt-ph { fill: none; stroke: var(--line2); stroke-width: 1; stroke-dasharray: 3 3 }
.pt-cur { fill: none; stroke: var(--accent); stroke-width: 3; pointer-events: none }
.pt-life { fill: var(--ink) }
.ptable .c-a rect { fill: var(--ink) } .ptable .c-a text, .ptable .c-e text { fill: var(--surface) } .ptable .c-a .pt-life, .ptable .c-e .pt-life { fill: var(--surface) }
.ptable .c-e rect { fill: var(--ink2) } .ptable .c-t rect { fill: var(--line2) } .ptable .c-p rect { fill: var(--sunk) }
.ptable .c-m rect { fill: url(#p-hatch) } .ptable .c-h rect { fill: url(#p-dots) } .ptable .c-g rect { stroke-width: 2.4; stroke: var(--ink2) }
.ptable .c-l rect { fill: url(#p-hlines) } .ptable .c-c rect { fill: url(#p-vlines) }
.ptable.filt .pt-el { opacity: .15 } .ptable.filt .pt-el.on { opacity: 1 }
.ptable.color .c-a text, .ptable.color .c-e text { fill: var(--ink) } .ptable.color .c-a .pt-life, .ptable.color .c-e .pt-life { fill: var(--ink) }
.ptable.color .c-a rect { fill: var(--t1); stroke: var(--c1) } .ptable.color .c-e rect { fill: var(--t8); stroke: var(--c8) } .ptable.color .c-t rect { fill: var(--t5); stroke: var(--c5) }
.ptable.color .c-p rect { fill: var(--t4); stroke: var(--c4) } .ptable.color .c-m rect { fill: var(--t3); stroke: var(--c3) } .ptable.color .c-n rect { fill: var(--t6); stroke: var(--c6) }
.ptable.color .c-h rect { fill: var(--t7); stroke: var(--c7) } .ptable.color .c-g rect { fill: var(--t2); stroke: var(--c2); stroke-width: 1 }
.ptable.color .c-l rect { fill: color-mix(in srgb, var(--c1) 8%, var(--surface)); stroke: var(--c1) } .ptable.color .c-c rect { fill: color-mix(in srgb, var(--c8) 8%, var(--surface)); stroke: var(--c8) }
.pt-pat-bg { fill: var(--surface) } .pt-pat-ln { stroke: var(--line2); stroke-width: 1.4 } .pt-pat-dot { fill: var(--line2) }
.pt-panel { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px }
.pt-head { display: flex; gap: 14px; align-items: center }
.pt-tile { width: 64px; height: 68px; border: 1.5px solid var(--accent); border-radius: 10px; display: grid; place-items: center; align-content: center; flex: none; background: var(--accent-soft) }
.pt-tile span { font: 500 .7rem var(--f-mono); color: var(--muted); line-height: 1.2 }
.pt-tile b { font: 720 1.5rem/1.1 var(--f-display) }
.pt-head h3 { font: 680 1.2rem var(--f-display); margin: 0 }
.pt-shell { width: 150px; height: 150px; margin-top: 8px }
