/* Interpret: pictures first. Line drawings in the rahulsamrat.me style, light tints per organism group. */
:root {
  --part-soft: #EEF4EA;
  --k-bact: #B8574A; --k-arch: #3F6FB0; --k-fung: #8A6A2F; --k-prot: #9A64BE; --k-plant: #4F8F45; --k-faun: #C5617F; --k-other: #85887F;
  --g-quantify: #2F6B2A; --g-compare: #6E9E5C; --g-identify: #C08A2E; --g-background: #9EA199; --g-none: #B9BBB4;
}
.layout { display: flex; min-height: calc(100vh - 60px); }
.sidebar { flex: 0 0 236px; background: var(--surface); border-right: 1px solid var(--rule); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar .eyebrow { margin: 12px 0 6px 10px; font-size: 10.5px; }
.nav { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 15px; color: var(--ink); }
.nav .ic { width: 26px; height: 26px; color: var(--muted); }
.nav:hover { background: var(--paper); }
.nav[aria-current="true"] { background: var(--part-soft); font-weight: 600; }
.nav[aria-current="true"] .ic { color: var(--part); }
.nav small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 400; }
.runnote { margin: 16px 10px 0; padding: 12px; border: 1px dashed var(--field); font-size: 12.5px; color: var(--muted); }
.runnote b { display: block; color: var(--ink); font-weight: 500; }
main { flex: 1; min-width: 0; padding: 28px max(16px, 3vw) 64px; display: flex; flex-direction: column; gap: 26px; }

/* icons */
.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic .ic-soft { opacity: 0.5; }
.ic .ic-fill { fill: currentColor; fill-opacity: 0.18; stroke: none; }

/* lipid drawing */
.lipid { width: 100%; height: auto; display: block; overflow: visible; }
.lipid .lp-chain { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lipid .lp-sum { stroke-dasharray: 3 3; stroke: var(--muted); }
.lipid .lp-ghost { stroke-dasharray: 1 4; stroke: var(--field); }
.lipid .lp-db { stroke: var(--part); stroke-width: 1.8; stroke-linecap: round; }
.lipid .lp-backbone { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.lipid .lp-head { fill: var(--part-soft); stroke: var(--ink); stroke-width: 1.6; }
.lipid .lp-unknown { stroke-dasharray: 3 3; fill: var(--paper); }
.lipid .lp-p { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.lipid .lp-label { font: 600 10px var(--font-mono); fill: var(--ink); }
.lipid .lp-small { font: 10px var(--font-mono); fill: var(--muted); }
.lipid .lp-q { font: 600 15px var(--font-display); fill: var(--muted); }
.tile:hover .lipid .lp-chain:not(.lp-ghost), .gcard:hover .lipid .lp-chain:not(.lp-ghost) { stroke-dasharray: 1; animation: draw 0.9s ease-out; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .tile:hover .lipid .lp-chain, .gcard:hover .lipid .lp-chain { animation: none; } }

/* page head */
.ihead { display: flex; flex-direction: column; gap: 6px; }
.ihead h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; text-wrap: balance; }
.ihead p { color: var(--muted); max-width: 60ch; }

/* a band: one question, answered with pictures */
.band { background: var(--surface); border: 1px solid var(--rule); padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
.band > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.band h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.band > header span { font-size: 13px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; border: 1px solid var(--rule); background: var(--paper); cursor: pointer; text-align: center; min-width: 0; transition: border-color 0.15s, transform 0.15s; }
.tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.tile b { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.tile span { font-size: 13px; color: var(--text); }
.tile.zero { opacity: 0.45; }
.tile .lipid { width: 100px; }
.tile .ic { width: 56px; height: 56px; }
.share { display: flex; height: 12px; gap: 2px; }
.share i { display: block; height: 100%; }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input { min-height: 38px; padding: 6px 12px; border: 1px solid var(--field); background: var(--surface); flex: 1 1 220px; max-width: 320px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 4px 10px 4px 6px; border: 1px solid var(--field); background: var(--surface); cursor: pointer; font-size: 13px; color: var(--text); }
.fchip .ic { width: 26px; height: 26px; }
.fchip[aria-pressed="true"] { border-color: var(--ink); background: var(--part-soft); color: var(--ink); font-weight: 600; }
.sep { width: 1px; height: 28px; background: var(--rule); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px 10px; border: 1px solid var(--rule); background: var(--surface); cursor: pointer; text-align: center; min-width: 0; }
.gcard:hover { border-color: var(--ink); }
.gcard .lipid { width: 86px; }
.gcard b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.gcard small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.gcard .badges { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; justify-content: space-between; pointer-events: none; }
.gcard .badges .ic { width: 24px; height: 24px; }
.gcard.picked-keep { box-shadow: inset 0 0 0 2px var(--g-quantify); }
.gcard.picked-reject { opacity: 0.5; }
.more { align-self: center; }

/* compound page */
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 14px; }
.back:hover { color: var(--ink); }
.hero { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--rule); padding: 24px; }
.hero .lipid { max-width: 210px; margin: 0 auto; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; overflow-wrap: anywhere; }
.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fact { border: 1px solid var(--rule); background: var(--paper); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fact .eyebrow { font-size: 10px; }
.fact .big { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 21px; line-height: 1.15; }
.fact .big .ic { width: 44px; height: 44px; }
.fact p { font-size: 13px; color: var(--muted); }
.dots { display: flex; gap: 5px; }
.dots i { width: 22px; height: 6px; background: var(--rule); }
.dots i.on { background: var(--part); }
.steps3 { display: flex; gap: 6px; align-items: center; }
.steps3 span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); background: var(--surface); opacity: 0.35; }
.steps3 span.on { opacity: 1; border-color: var(--ink); }
.steps3 span .ic { width: 28px; height: 28px; }
.meter { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.meter .bar { position: relative; height: 8px; background: linear-gradient(90deg, var(--g-quantify) 0 33%, var(--g-compare) 33% 50%, var(--g-identify) 50% 100%); opacity: 0.35; }
.meter .pin { position: relative; height: 0; }
.meter .pin i { position: absolute; top: -12px; width: 3px; height: 16px; background: var(--ink); }
.kb { display: grid; grid-template-columns: 22px minmax(0, 1fr) 34px; gap: 6px; align-items: center; font-size: 12px; }
.kb .ic { width: 22px; height: 22px; }
.kb .t { height: 8px; background: var(--rule-soft); }
.kb .t i { display: block; height: 100%; }
.kb small { font-family: var(--font-mono); color: var(--muted); text-align: right; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 9px; border: 1px solid var(--rule); background: var(--surface); }
.tag b { font-weight: 600; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.bigbtn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--field); background: var(--surface); cursor: pointer; text-align: left; }
.bigbtn:hover { border-color: var(--ink); }
.bigbtn .ic { width: 34px; height: 34px; color: var(--part); }
.bigbtn b { display: block; font-size: 15px; }
.bigbtn span { font-size: 12.5px; color: var(--muted); }
.bigbtn[aria-pressed="true"] { border-color: var(--part); background: var(--part-soft); }
.answer { border: 1px dashed var(--field); padding: 12px 14px; font-size: 13px; color: var(--text); }
svg.spec { width: 100%; max-width: 760px; height: auto; display: block; }
svg.spec .sp-axis { stroke: var(--rule); }
svg.spec .sp-peak { stroke: var(--ink); stroke-width: 1.4; }
svg.spec .sp-prec { stroke: var(--part); stroke-width: 2; }
svg.spec .sp-lab { font: 10px var(--font-mono); fill: var(--muted); }
.decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.decide input { min-height: 40px; padding: 6px 12px; border: 1px solid var(--field); background: var(--surface); flex: 1 1 200px; max-width: 320px; }
.dbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--field); background: var(--surface); cursor: pointer; }
.dbtn:hover { border-color: var(--ink); }
.dbtn[aria-pressed="true"] { border-color: var(--part); background: var(--part-soft); font-weight: 600; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; text-align: center; color: var(--muted); }
.empty .lipid { width: 90px; }

@media (max-width: 980px) { .hero { grid-template-columns: minmax(0, 1fr); } .facts3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar { flex: none; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--rule); padding: 8px; }
  .sidebar .eyebrow, .runnote { display: none; }
  .nav { width: auto; grid-template-columns: 26px auto auto; font-size: 14px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- v2: explainer layout, named icons, file step ---------- */
.tile small { font-size: 11px; color: var(--muted); line-height: 1.3; min-height: 1.3em; }
.fgroups { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--rule); padding: 12px 14px; }
.fg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fl { width: 96px; flex: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fg input { min-height: 36px; padding: 6px 12px; border: 1px solid var(--field); background: var(--surface); flex: 1 1 200px; max-width: 300px; }
.fchip { min-height: 34px; padding: 3px 10px 3px 6px; }
.fchip:not(:has(.ic)) { padding-left: 10px; }
.fchip.clear { border-style: dashed; padding-left: 10px; }
.pselect { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-left: 6px; }
.pselect select { min-height: 34px; padding: 4px 8px; border: 1px solid var(--field); background: var(--surface); color: var(--ink); max-width: 240px; }
.gcard .cmeta { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 4px; font-size: 11.5px; color: var(--text); }
.gcard .cmeta > span { display: inline-flex; align-items: center; gap: 4px; }
.gcard .cmeta .ic { width: 18px; height: 18px; }

/* open your run */
.flow { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.flowstep { flex: 1 1 180px; display: flex; flex-direction: column; gap: 4px; }
.flowstep b { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.flowstep span { font-size: 13px; color: var(--muted); }
.flowstep .dot { width: 12px; height: 12px; border-radius: 50%; }
.flow .arrow { font-size: 26px; color: var(--muted); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--field); background: var(--surface); text-align: center; color: var(--muted); }
.drop b { color: var(--ink); font-size: 16px; }
.dropnote { color: var(--ink); background: var(--part-soft); padding: 6px 12px; font-size: 13px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--part); text-decoration: underline; cursor: pointer; }
.files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .files { grid-template-columns: minmax(0, 1fr); } }
.filecard { background: var(--surface); border: 1px solid var(--rule); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.filecard header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filecard code { font-family: var(--font-mono); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.filecard .need { margin-left: auto; font-size: 11px; padding: 2px 8px; background: var(--part-soft); color: var(--part); }
.filecard p { font-size: 14px; }
.filecard dl { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 8px; margin: 0; font-size: 12.5px; }
.filecard dt { color: var(--muted); }
.filecard dd { margin: 0; overflow-wrap: anywhere; }
.filecard footer { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--rule-soft); padding-top: 8px; }
.filecard .ok { color: var(--g-quantify); font-weight: 600; }

/* compound, explained */
.chead { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--rule); padding: 18px 22px; }
.cdraw .lipid { width: 120px; }
.ctext { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ctext h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; overflow-wrap: anywhere; }
.summary { font-size: 16px; color: var(--text); max-width: 72ch; line-height: 1.55; }
.explain { background: var(--surface); border: 1px solid var(--rule); }
.xrow { display: grid; grid-template-columns: 190px minmax(0, 1fr) 180px; gap: 22px; padding: 20px 22px; border-bottom: 1px solid var(--rule); }
.xrow:last-child { border-bottom: 0; }
.xrow:not(:has(.xaside)) { grid-template-columns: 190px minmax(0, 1fr); }
.xrow h3 { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.25; }
.xbody { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 72ch; font-size: 14.5px; line-height: 1.55; }
.xaside { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.plainlist { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.flag { color: var(--check-fg); background: var(--check-bg); padding: 4px 10px; align-self: flex-start; }
.whobig { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.whobig b { font-family: var(--font-display); font-weight: 400; font-size: 19px; }
.whobig span { font-size: 13px; color: var(--muted); }
.kbars { display: flex; flex-direction: column; gap: 5px; max-width: 420px; }
.kb { grid-template-columns: 20px 110px minmax(0, 1fr) 34px; }
.kb span { font-size: 12.5px; }
.envlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.envlist li { display: flex; gap: 10px; align-items: baseline; }
.envlist i { font-style: normal; width: 22px; height: 22px; flex: none; display: inline-grid; place-items: center; font-size: 13px; border: 1px solid var(--rule); }
.envlist .yes i { background: var(--ok-bg); color: var(--ok-fg); border-color: transparent; }
.envlist .no i { background: var(--todo-bg); color: var(--muted); border-color: transparent; }
.envlist .na i { color: var(--muted); }
.envlist .no b, .envlist .na b { font-weight: 500; }
svg.dotplot { width: 100%; max-width: 560px; height: auto; display: block; }
svg.dotplot .dp-axis { stroke: var(--rule); }
svg.dotplot .dp-med { stroke: var(--ink); stroke-width: 2; }
svg.dotplot .dp-dot { fill: var(--k-plant); fill-opacity: 0.75; stroke: var(--surface); stroke-width: 1; }
svg.dotplot .dp-dot.for { fill: var(--k-fung); }
svg.dotplot .dp-dot.dry { fill-opacity: 0.35; stroke: currentColor; }
svg.dotplot .dp-lab { font: 11px var(--font-body); fill: var(--muted); }
.answer { border: 1px dashed var(--field); padding: 10px 12px; font-size: 13px; }
.row2 { max-width: 640px; }
@media (max-width: 1100px) { .xrow, .xrow:not(:has(.xaside)) { grid-template-columns: 160px minmax(0, 1fr); } .xaside { grid-column: 2; } }
@media (max-width: 760px) { .xrow, .xrow:not(:has(.xaside)) { grid-template-columns: minmax(0, 1fr); gap: 10px; } .xaside { grid-column: 1; } .chead { grid-template-columns: 80px minmax(0, 1fr); } .cdraw .lipid { width: 80px; } .fl { width: 100%; } }

/* ---------- v3: standard panels, one graphic each ---------- */
.chead { grid-template-columns: 96px minmax(0, 1fr); padding: 16px 20px; }
.cdraw .lipid { width: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip2 { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; font-size: 12.5px; border: 1px solid var(--rule); background: var(--paper); color: var(--text); }
.chip2 b { color: var(--ink); font-weight: 600; }
.chip2.warn { background: var(--check-bg); color: var(--check-fg); border-color: transparent; }
.chip2.tagb { background: var(--part-soft); border-color: transparent; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.pn { background: var(--surface); border: 1px solid var(--rule); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pn.wide { grid-column: 1 / -1; }
.pn > header { display: flex; justify-content: space-between; align-items: center; }
.info { width: 18px; height: 18px; border: 1px solid var(--field); border-radius: 50%; display: inline-grid; place-items: center; font: italic 600 11px var(--font-display); color: var(--muted); cursor: help; }
.info:hover, .info:focus { border-color: var(--ink); color: var(--ink); }
.tbig { display: flex; align-items: center; gap: 12px; }
.tbig b { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.15; display: flex; flex-direction: column; }
.tbig small { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); }
.steps-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.steps-n div { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.steps-n i { display: block; height: 10px; background: var(--rule-soft); }
.steps-n .on i { background: var(--part); }
.steps-n .on span { color: var(--ink); font-weight: 600; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.mt { display: flex; flex-direction: column; gap: 4px; }
.mt-h { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.mt-h b { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
.mt-bar { position: relative; height: 10px; background: var(--rule-soft); }
.mt-bar .z { position: absolute; top: 0; height: 100%; opacity: 0.35; }
.mt-bar .pin { position: absolute; top: -4px; width: 3px; height: 18px; margin-left: -1px; background: var(--ink); }
.mt-t { position: relative; height: 13px; font: 10px var(--font-mono); color: var(--muted); }
.mt-t span { position: absolute; transform: translateX(-50%); }
.mt-t span:first-child { transform: none; }
.mt-t span:last-child { transform: translateX(-100%); }
.sq { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; }
.sq i { height: 12px; background: var(--rule-soft); }
.sq i.on { background: var(--part); }
.places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pl { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border: 1px solid var(--rule); text-align: center; position: relative; }
.pl span { font-size: 12px; }
.pl b { position: absolute; top: 4px; right: 6px; font-size: 12px; }
.pl small { font-size: 11px; color: var(--muted); }
.pl.yes { background: var(--ok-bg); border-color: transparent; }
.pl.yes .ic, .pl.yes b { color: var(--ok-fg); }
.pl.no, .pl.na { opacity: 0.55; }
.pn .row2 { grid-template-columns: 1fr 1fr; }
.pn .bigbtn { padding: 8px 12px; }
.pn svg.dotplot { max-width: 100%; }
.panels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pn.span2 { grid-column: span 2; }
.pn .bigbtn { gap: 8px; justify-content: center; }
.pn .bigbtn b { font-size: 14px; white-space: nowrap; }
@media (max-width: 1100px) { .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .panels { grid-template-columns: minmax(0, 1fr); } .pn.span2 { grid-column: auto; } .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pn .bigbtn { min-width: 0; padding: 8px 10px; }

/* ---------- spectrum ---------- */
:root { --sp-stem: #8d918a; --sp-mine: #c8a77a; }
.spectools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.togs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--field); }
.tog { border: 0; border-right: 1px solid var(--field); background: var(--surface); padding: 7px 13px; font-size: 13px; cursor: pointer; color: var(--text); }
.tog:last-child { border-right: 0; }
.tog:hover { background: var(--paper); }
.tog[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.score { font-family: var(--font-mono); font-size: 13px; padding: 5px 12px; }
.score.good { background: var(--ok-bg); color: var(--ok-fg); }
.score.mid { background: var(--check-bg); color: var(--check-fg); }
.score.low { background: var(--todo-bg); color: var(--muted); }
svg.spec2 { width: 100%; height: auto; display: block; }
svg.spec2 .sp-grid { stroke: var(--rule-soft); }
svg.spec2 .sp-axis { stroke: var(--ink); stroke-width: 1; }
svg.spec2 .sp-tick { font: 10px var(--font-mono); fill: var(--muted); }
svg.spec2 .sp-side { font: 10.5px var(--font-mono); fill: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
svg.spec2 .sp-pk line { stroke-width: 1.8; stroke-linecap: round; }
svg.spec2 .sp-pk .sp-hit { fill: transparent; }
svg.spec2 .sp-pk:hover line { stroke-width: 3.2; }
svg.spec2 .sp-pk:hover circle { r: 4; }
svg.spec2 .sp-lab { font: 10.5px var(--font-mono); fill: var(--muted); }
svg.spec2 .sp-exlab { font: 600 11px var(--font-body); fill: var(--ink); }
svg.spec2 .sp-precline { stroke: var(--ink); stroke-dasharray: 3 4; opacity: 0.4; }
svg.spec2 .sp-precmark { fill: var(--ink); }
.exlist { display: flex; flex-wrap: wrap; gap: 6px; }
.exchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--rule); font-size: 12.5px; cursor: help; }
.exchip i { width: 9px; height: 9px; border-radius: 50%; }
.exchip span { color: var(--muted); font-size: 11.5px; }
.pn a.bigbtn.explore { text-decoration: none; color: var(--ink); justify-content: center; }
.libsep { width: 1px; height: 26px; background: var(--rule); margin: 0 4px; align-self: center; }
.drop.over { border-color: var(--part); background: var(--part-soft); } .nav[disabled] { opacity: 0.4; cursor: not-allowed; } .row { display: flex; flex-wrap: wrap; }
.gcard.inrun { box-shadow: inset 0 0 0 2px var(--part); } .tile.on { border-color: var(--ink); background: var(--part-soft); }
.confirm { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--part); background: var(--part-soft); }
.confirm p { max-width: 70ch; font-size: 14px; }
.answer.na { color: var(--muted); }
.pn .bigbtn[disabled] { opacity: 0.45; cursor: not-allowed; }
.pn .bigbtn.explore { justify-content: center; color: var(--ink); text-decoration: none; }
.famlist { display: flex; flex-direction: column; gap: 12px; }
.ladwrap { overflow-x: auto; }
svg.ladder { width: 100%; height: auto; display: block; }
svg.ladder .ledge { fill: none; stroke: var(--field); }
svg.ladder .ledge.ladder { stroke: var(--part); stroke-opacity: 0.55; }
svg.ladder .ledge.other { stroke-dasharray: 5 4; }
svg.ladder .lstep rect { fill: var(--surface); stroke: var(--rule); }
svg.ladder .lstep text { font: 600 11px var(--font-mono); fill: var(--ink); }
svg.ladder .lnode { cursor: pointer; }
svg.ladder .lnode circle { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
svg.ladder .lnode.unk circle { stroke: var(--part); stroke-dasharray: 4 3; fill: var(--part-soft); }
svg.ladder .lnode:hover circle, svg.ladder .lnode:focus circle { stroke-width: 4; }
svg.ladder .lcls { font: 600 11px var(--font-mono); fill: var(--ink); pointer-events: none; }
svg.ladder .lname { font: 600 11px var(--font-body); fill: var(--ink); pointer-events: none; }
svg.ladder .lmz { font: 10px var(--font-mono); fill: var(--muted); pointer-events: none; }
progress#fam-progress { width: 100%; max-width: 480px; height: 10px; accent-color: var(--part); }
.answer .ans-row { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; } .answer .chips { display: flex; flex-wrap: wrap; gap: 6px; } .answer .btn.primary { color: #fff; text-decoration: none; }
