/* ClearPath — "diagnostic calm" design system.
   Cool clinical palette · Hanken Grotesk (display) + Inter (body) + IBM Plex Mono (readouts).
   Signature: the patient's photo is the hero of the result, with a one-time scan + confidence gauges. */
:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --ink: #101826;
  --muted: #64748b;
  --faint: #94a3b8;
  --accent: #0e9384;
  --accent-2: #0b7c70;
  --accent-soft: #e6f4f1;
  --accent-line: #bfe4dd;
  --line: #e3e8ec;
  --line-soft: #eef2f4;
  --shadow: 0 1px 2px rgba(16,24,38,.04), 0 6px 20px rgba(16,24,38,.05);
  --shadow-lg: 0 16px 44px rgba(16,24,38,.12);
  --r: 16px; --r-sm: 10px; --nav: 60px;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}
* , *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }   /* the hidden attribute always wins over component display rules */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.display { font-family: 'Hanken Grotesk', 'Inter', sans-serif; letter-spacing: -.02em; font-weight: 700; }
.eyebrow { font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); }

/* Nav */
nav { position: fixed; inset: 0 0 auto 0; height: var(--nav); z-index: 100;
  background: rgba(246,248,248,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft); }
nav .row { max-width: 760px; margin: 0 auto; height: 100%; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft); }
.beta-chip { font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-2); background: var(--accent-soft);
  border: 1px solid var(--accent-line); padding: 4px 9px; border-radius: 6px; }

/* Layout / views */
main { max-width: 760px; margin: 0 auto; padding: calc(var(--nav) + 36px) 22px 72px; }
.view { display: none; }
.view.active { display: block; animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; box-shadow: var(--shadow); }
.card + .card, .card + .actions { margin-top: 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -180px; right: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(14,147,132,.16) 0%, transparent 68%); pointer-events: none; }
.hero .eyebrow { margin-bottom: 16px; display: inline-block; }
h1.title { font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(2.1rem, 5.4vw, 3rem); line-height: 1.08; margin-bottom: 14px; }
.lede { font-size: 1.06rem; color: var(--muted); max-width: 560px; }

/* Steps (real 3-step process → numbered) */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-sm); overflow: hidden; margin: 22px 0; }
.step { background: var(--surface); padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.step .k { font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 600; padding-top: 2px; }
.step h4 { font-size: .96rem; margin-bottom: 2px; }
.step p { font-size: .86rem; color: var(--muted); }

/* Consent + buttons */
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 20px; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit;
  padding: 13px 24px; border-radius: var(--r-sm); font-size: .94rem; font-weight: 600; border: none;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:not(:disabled):hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(14,147,132,.28); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent-line); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-label .eyebrow { color: var(--muted); }
.step-label .bar { height: 1px; flex: 1; background: var(--line); }

/* Dropzone */
.dropzone { border: 1.5px dashed var(--accent-line); border-radius: var(--r); background: var(--accent-soft);
  padding: 44px 24px; text-align: center; cursor: pointer; transition: all .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #ddefeb; }
.dropzone .ico { width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.dropzone .ico svg { width: 22px; height: 22px; color: var(--accent); }
.dropzone .hint { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.preview { display: none; margin-top: 16px; }
.preview.show { display: block; }
.preview img { width: 100%; max-height: 300px; object-fit: contain; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--line-soft); }
.tips { list-style: none; margin-top: 18px; font-size: .86rem; color: var(--muted); }
.tips li { padding: 5px 0 5px 24px; position: relative; }
.tips li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Analysing */
.analysing { text-align: center; padding: 44px 0; }
.pulse { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 20px; background: var(--accent-soft);
  border: 2px solid var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.05); opacity: 1; } }

/* ── Result: analysis hero (signature) ── */
.analysis { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #0b1220; }
.analysis img { width: 100%; display: block; max-height: 360px; object-fit: cover; opacity: .96; }
.analysis .scan { position: absolute; left: 0; right: 0; top: 0; height: 64px; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,147,132,.0), rgba(14,147,132,.35), rgba(14,147,132,.0));
  animation: scan 1.9s cubic-bezier(.4,0,.2,1) 1 forwards; }
@keyframes scan { 0% { transform: translateY(-64px); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(360px); opacity: 0; } }
.analysis .tag { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .08em; color: #fff; background: rgba(11,18,32,.55); border: 1px solid rgba(255,255,255,.18);
  padding: 5px 10px; border-radius: 6px; backdrop-filter: blur(6px); display: flex; align-items: center; gap: 7px; }
.analysis .tag .live { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }

.result-head { margin: 18px 0 4px; }
.result-head .state { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--accent); }
.result-h { font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; letter-spacing: -.02em; font-size: 1.5rem; line-height: 1.2; margin-top: 4px; }

/* Findings with segmented confidence gauge */
.findings { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.finding { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.finding.on { border-color: var(--accent-line); background: linear-gradient(0deg, var(--accent-soft), #fff 70%); }
.finding .lbl { font-weight: 600; font-size: .98rem; }
.finding .lbl .sub { display: block; font-weight: 400; font-size: .8rem; color: var(--faint); margin-top: 1px; }
.gauge { display: flex; align-items: center; gap: 10px; }
.gauge .status { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.gauge .status.pos { color: var(--accent); }
.gauge .status.neg { color: var(--faint); }
.gauge .status.uncertain { color: #b7791f; }
.segs { display: flex; gap: 3px; }
.seg { width: 16px; height: 7px; border-radius: 2px; background: var(--line); }
.seg.fill { background: var(--accent); }
.conf { font-family: var(--mono); font-size: .62rem; color: var(--muted); margin-top: 4px; text-align: right; letter-spacing: .05em; }

/* Quality warning notice (accepted-with-caveat) — informational, not alarming */
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 11px 13px;
  background: #fdf6ec; border: 1px solid #f0e0c0; border-left: 3px solid #d9a441; border-radius: var(--r-sm);
  font-size: .86rem; color: #7a5b1e; }
.notice-ic { flex-shrink: 0; width: 17px; height: 17px; border-radius: 50%; background: #d9a441; color: #fff;
  font-weight: 700; font-size: .72rem; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.notice div + div { margin-top: 2px; }

/* AI photo-quality line (VLM step, D-016) — quiet confirmation, notice-style when borderline */
.quality-line { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: .8rem; color: var(--muted); }
.q-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.q-good .q-dot { background: #4d9c6f; }
.q-warn .q-dot { background: #d9a441; }
.q-by { margin-left: auto; font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; color: var(--muted); opacity: .75; }

/* Explanation blocks */
.block h4 { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--faint); margin: 18px 0 7px; }
.block p, .block li { color: var(--muted); font-size: .96rem; }
.block ul { list-style: none; }
.block ul li { padding: 4px 0 4px 18px; position: relative; }
.block ul li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 13px; margin-top: 12px; }
.video { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); transition: all .2s; }
.video:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.video .thumb { height: 108px; background: linear-gradient(135deg, #0e9384, #0b7c70 60%, #0a5f57); position: relative; display: flex; align-items: center; justify-content: center; }
.video .thumb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 55%); }
.video .thumb .play { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; z-index: 1; }
.video .thumb .play svg { width: 14px; height: 14px; color: var(--accent-2); margin-left: 2px; }
.video .meta { padding: 12px 13px; }
.video .meta .t { font-weight: 600; font-size: .89rem; line-height: 1.35; }
.video .meta .d { font-family: var(--mono); font-size: .68rem; color: var(--faint); margin-top: 5px; }

/* Disclaimer */
.disclaimer { margin-top: 22px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: var(--r-sm); font-size: .84rem; color: var(--muted); }
.disclaimer strong { color: var(--ink); }
.disclaimer .sc { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }

footer { text-align: center; font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--faint); padding: 22px; }
.foot-note { text-align: center; font-size: .8rem; color: var(--faint); margin-top: 22px; }

/* --- Patient / Clinician view toggle + fine-grained subtype panel --- */
.viewtoggle { display: inline-flex; gap: 3px; padding: 3px; margin-bottom: 16px; border-radius: 999px;
  background: var(--line-soft); border: 1px solid var(--line); }
.vt { border: 0; background: transparent; cursor: pointer; padding: 6px 15px; border-radius: 999px;
  font: 600 .74rem/1 var(--mono); letter-spacing: .04em; color: var(--muted); transition: all .15s; }
.vt:hover { color: var(--ink); }
.vt.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.vt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.clinician-only { display: none; }                       /* patient view hides subtype detail */
#result-content.mode-clinician .clinician-only { display: block; margin-top: 18px; padding-top: 18px;
  border-top: 1px dashed var(--line); }

.detail-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; margin-bottom: 12px; }
.tagx { font: 600 .58rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 4px 8px; border-radius: 999px; }
.subgroup { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 10px;
  background: linear-gradient(0deg, #fcfdfd, #fff); }
.subttl { font-weight: 600; font-size: .82rem; color: var(--ink); margin-bottom: 9px; }
.subttl-note { font-weight: 400; color: var(--faint); }
.subrow { display: grid; grid-template-columns: 1fr 96px 74px; align-items: center; gap: 12px; padding: 4px 0; }
.subname { font-size: .84rem; color: var(--muted); }
.subrow.top .subname { color: var(--ink); font-weight: 600; }
.subname .subsub { display: block; font-size: .68rem; color: var(--faint); margin-top: 1px; }
.subbar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.subbar span { display: block; height: 100%; background: var(--line); border-radius: 4px; }
.subrow.top .subbar span { background: var(--accent); }
.subtag { font: 600 .6rem/1 var(--mono); letter-spacing: .05em; color: var(--accent); text-align: right; }
.pathway { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--accent-line);
  font: 500 .72rem/1.4 var(--mono); color: var(--muted); }
.markrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font-size: .82rem; }
.markname { color: var(--ink); font-weight: 500; }
.markpath { font-family: var(--mono); font-size: .68rem; color: var(--faint); text-align: right; }
.subgroup.notes { background: var(--accent-soft); border-color: var(--accent-line); }
.noterow { position: relative; padding: 5px 0 5px 16px; font-size: .82rem; line-height: 1.5; color: var(--ink); }
.noterow + .noterow { border-top: 1px solid var(--accent-line); }
.noterow::before { content: "›"; position: absolute; left: 2px; top: 5px; color: var(--accent); font-weight: 700; }
.detail-note { font-size: .72rem; color: var(--faint); line-height: 1.5; margin-top: 10px; }

/* --- Sample cases on the landing page --- */
.samples { margin-top: 22px; }
.samples-h { display: flex; align-items: center; color: var(--muted); font-size: .8rem; margin: 4px 0 14px; }
.samples-h::before, .samples-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.samples-h span { padding: 0 12px; }
.samples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.sample-thumb { padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.sample-thumb:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-1px); }
.sample-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sample-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--line-soft); }
/* a sample clicked before consent: briefly highlight the consent box (photos are public; running needs consent) */
.consent.nudge { animation: nudge 1.2s ease-out; border-radius: var(--r-sm); }
@keyframes nudge { 0%, 40% { background: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); }
  100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
.sample-thumb span { font: 600 .6rem/1 var(--mono); letter-spacing: .04em; color: var(--muted); padding: 6px 4px; text-align: center; }
.samples-hint { font-size: .74rem; color: var(--faint); margin-top: 10px; text-align: center; }
.samples-hint.warn { color: var(--accent); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .analysis .scan, .pulse { animation: none; } .analysis .scan { display: none; } }

/* v2 (TASK-008): scar TYPES listed under the scarring row; category checkboxes (clinician feedback form) */
.finding.typerow { margin-left: 22px; padding-top: 8px; padding-bottom: 8px; }
.finding.typerow .lbl { font-size: .9rem; }
.corr-axes, .corr-types { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 4px; }
.corr-axes { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.corr-opt { font-size: .84rem; display: inline-flex; align-items: center; gap: 6px; }
.corr-opt input { accent-color: var(--accent); width: 15px; height: 15px; }

/* ── TASK-009 · upload: separate camera / library pickers + up to 3 photo thumbnails ── */
.dropzone { cursor: default; }
.pick-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.btn-pick { background: #fff; color: var(--accent-2); border: 1px solid var(--accent-line); padding: 11px 18px; }
.btn-pick svg { width: 18px; height: 18px; }
.btn-pick:not(:disabled):hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dz-drag { margin-top: 10px; font-size: .78rem; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.thumbs:empty { display: none; }
#thumbs .thumb { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-sm); overflow: hidden;   /* scoped: */
  border: 1px solid var(--line); background: var(--line-soft); }      /* .video .thumb must keep its own layout */
#thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-n { position: absolute; left: 6px; top: 6px; font-family: var(--mono); font-size: .66rem; font-weight: 600;
  color: #fff; background: rgba(11,18,32,.6); border-radius: 5px; padding: 2px 6px; }
.thumb-x { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: none;
  background: rgba(11,18,32,.65); color: #fff; font-size: 1.05rem; line-height: 1; cursor: pointer; }
.thumb-x:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.upload-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-family: var(--mono);
  font-size: .7rem; color: var(--muted); }
#upload-note { color: #9a6b12; }

/* ── TASK-009 · result hero: whole photo (contain) + "where we looked" boxes + photo strip ── */
.analysis .stage { position: relative; width: 100%; max-height: 440px; background: #0b1220; }
.analysis .stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; opacity: 1; }
.analysis .stage svg.regions { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rg-halo { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 5px; vector-effect: non-scaling-stroke; }
.rg-box { fill: rgba(14,147,132,.10); stroke: #12b3a0; stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.rg-box.poss { stroke: #d9a441; stroke-dasharray: 7 5; fill: rgba(217,164,65,.08); }
.rg-chip { fill: rgba(11,18,32,.82); }
.rg-txt { fill: #fff; font-family: var(--mono); font-weight: 600; }
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hb-tag { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px; }
.hb-tag .live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.where-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .04em; color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  padding: 6px 10px 6px 7px; border-radius: 999px; cursor: pointer; flex-shrink: 0; }
.where-btn .sw { width: 24px; height: 14px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.where-btn .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(16,24,38,.25); transition: transform .15s; }
.where-btn[aria-pressed="true"] { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }
.where-btn[aria-pressed="true"] .sw { background: var(--accent); }
.where-btn[aria-pressed="true"] .sw::after { transform: translateX(10px); }
.where-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-strip { display: flex; gap: 8px; margin-top: 10px; }
.pstrip { flex: 1; max-width: 33.3%; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
  font-family: var(--mono); font-size: .66rem; color: var(--muted); text-align: left; }
.pstrip img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.pstrip.active { border-color: var(--accent); color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.pstrip.unused { opacity: .5; }
.pstrip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.where-note { margin: 8px 0 14px; font-size: .78rem; color: var(--muted); }
.where-note:empty { display: none; }
.where-note div + div { margin-top: 3px; }
.where-note strong { color: var(--ink); font-weight: 600; }

/* ── TASK-009 · tap-to-explain finding rows ── */
.finding { flex-wrap: wrap; }
.finding .lbl { flex: 1 1 200px; min-width: 0; }
.finding .rhs { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.finding .info { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-family: var(--mono); font-size: .72rem; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.finding .info:hover, .finding.open .info { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.finding .info:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.finding .why { display: none; flex-basis: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft);
  font-size: .84rem; color: var(--muted); }
.finding.open .why { display: block; }
.finding .why div + div { margin-top: 4px; }
.finding .why strong { color: var(--ink); font-weight: 600; }
@media (max-width: 440px) {
  .finding .lbl { flex-basis: 100%; }
  .finding .rhs { margin-left: 0; margin-top: 8px; width: 100%; justify-content: space-between; }
  .pstrip span { display: none; }
}

/* ── TASK-009 · printable summary (built on demand on this device; only it prints) ── */
.summary-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; }
.summary-bar .btn svg { width: 18px; height: 18px; }
.print-photos { font-size: .86rem; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.print-photos input { accent-color: var(--accent); width: 16px; height: 16px; }
.summary-note { flex-basis: 100%; font-size: .76rem; color: var(--muted); }
#print-summary { display: none; }
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: #fff; }
  body > *:not(#print-summary) { display: none !important; }
  #print-summary { display: block; color: var(--ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ps-k { font-family: var(--mono); font-size: 8.5pt; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
  .ps-date { font-size: 9pt; color: var(--muted); margin-top: 2pt; }
  .ps h1 { font-family: 'Hanken Grotesk', 'Inter', sans-serif; font-size: 18pt; line-height: 1.2; margin: 10pt 0 8pt; }
  .ps h3 { font-size: 11pt; margin: 12pt 0 4pt; }
  .ps p, .ps li { font-size: 10pt; }
  .ps ul { padding-left: 16pt; }
  .ps-t { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .ps-t th, .ps-t td { text-align: left; padding: 4pt 6pt; border-bottom: 1px solid var(--line); }
  .ps-t th { font-size: 8pt; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .ps-sub td:first-child { padding-left: 18pt; color: var(--muted); }
  .ps-photos { display: flex; gap: 8pt; flex-wrap: wrap; margin-top: 10pt; }
  .ps-photos figure { width: 31%; margin: 0; break-inside: avoid; }
  .ps-photos .stage { position: relative; width: 100%; border: 1px solid var(--line); }
  .ps-photos .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .ps-photos svg.regions { position: absolute; inset: 0; width: 100%; height: 100%; }
  .ps-photos figcaption { font-size: 8pt; color: var(--muted); margin-top: 3pt; }
  .ps-disc { margin-top: 14pt; font-size: 8.5pt; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6pt; }
  .ps-foot { font-size: 8pt; color: var(--faint); }
}

/* ── TASK-010 · functional video cards + in-page player ── */
button.video, a.video { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
button.video:focus-visible, a.video:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.video .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video.soon { cursor: default; }
.video.soon:hover { box-shadow: none; transform: none; }
.video.soon .thumb { background: linear-gradient(135deg, #dcefeb, #eef7f5); }
.video.soon .thumb::after { display: none; }
.soon-badge { position: relative; z-index: 1; font-family: var(--mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); background: #fff;
  border: 1px solid var(--accent-line); padding: 4px 10px; border-radius: 999px; }
.video.soon .meta .t { color: var(--muted); }
.videos-soon { font-size: .86rem; color: var(--muted); }
#video-dialog { border: none; border-radius: var(--r); padding: 0; width: min(860px, 94vw); background: #0b1220;
  color: #fff; box-shadow: var(--shadow-lg); }
#video-dialog::backdrop { background: rgba(11,18,32,.62); backdrop-filter: blur(3px); }
.vd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
#vd-title { font-family: 'Hanken Grotesk', 'Inter', sans-serif; font-size: 1rem; font-weight: 600; }
.vd-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: transparent;
  color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
.vd-close:focus-visible { outline: 2px solid #7fe0d2; outline-offset: 2px; }
.vd-player { aspect-ratio: 16 / 9; background: #000; }
.vd-player iframe, .vd-player video { width: 100%; height: 100%; border: 0; display: block; }
.vd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px;
  font-family: var(--mono); font-size: .7rem; color: rgba(255,255,255,.72); }
.vd-foot a { color: #7fe0d2; }

/* ── TASK-011 · clinician nav + corrections review page ── */
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-link { font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--accent-2);
  background: none; border: none; padding: 6px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.role-chip { font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--accent-2); padding: 4px 9px; border-radius: 6px; }
.corr-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.corr-page-head h2 { font-size: 1.4rem; }
.corr-page-head .btn { padding: 9px 16px; }
.corr-page-sub { font-size: .86rem; color: var(--muted); margin: 8px 0 16px; }
.corr-empty { padding: 22px; text-align: center; font-size: .9rem; color: var(--muted); border: 1px dashed var(--line);
  border-radius: var(--r-sm); }
.clab { font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.cchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.cchip { font-size: .74rem; padding: 2px 8px; border-radius: 999px; background: var(--line-soft); border: 1px solid var(--line); }
.cchip.add { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); font-weight: 600; }
.cnone { color: var(--faint); font-size: .86rem; }

/* ── TASK-012 · login page ── */
.login-main { max-width: 460px; }
.login-card .eyebrow { display: inline-block; margin-bottom: 12px; }
.login-h { font-size: 1.7rem; line-height: 1.15; margin-bottom: 6px; }
.login-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.field input, .pw-wrap { width: 100%; }
.field input { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none;
  font: 600 .78rem var(--mono); color: var(--accent-2); padding: 8px 10px; cursor: pointer; border-radius: 6px; }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); }
.login-btn { width: 100%; padding: 13px; margin-top: 4px; font-size: 1rem; }
.login-msg { display: none; font-size: .88rem; border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 14px; }
.login-msg.show { display: block; }
.login-msg.err { background: #fdf3f2; border: 1px solid #f2d2ce; color: #9b2c22; }
.login-msg.info { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-2); }
.login-help { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: grid; gap: 8px;
  font-size: .84rem; color: var(--muted); }
.login-help strong { color: var(--ink); }
.nav-out { color: var(--muted); }

/* ── TASK-012 · "about you" (optional), case code, feedback ── */
.about { margin: 18px 0 4px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; }
.about summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: .9rem; }
.about summary span { font-weight: 400; color: var(--muted); font-size: .82rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 2px 0 14px; }
.about-grid label span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.about-grid select { width: 100%; font: inherit; font-size: .9rem; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.case-code { display: flex; align-items: center; gap: 18px; margin: 16px 0; padding: 14px 18px; border-radius: var(--r);
  background: var(--accent-soft); border: 1px solid var(--accent-line); }
.cc-label { font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-2); }
.cc-left { flex-shrink: 0; }
.cc-value { white-space: nowrap; font-family: var(--mono); font-size: 1.5rem; font-weight: 600; letter-spacing: .08em; color: var(--ink); line-height: 1.2; }
.cc-note { font-size: .86rem; color: var(--accent-2); }
.cc-jump { margin-left: auto; flex-shrink: 0; padding: 9px 14px; font-size: .86rem; }
.fb-card { margin-top: 16px; }
.fb-h { font-size: 1.15rem; margin-bottom: 4px; }
.fb-sub { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.verdicts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.verdict { position: relative; }
.verdict input { position: absolute; opacity: 0; pointer-events: none; }
.verdict span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem;
  font-weight: 600; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.verdict span:hover { border-color: var(--accent-line); }
.verdict input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.verdict.v-correct input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.verdict.v-partly input:checked + span { background: #fff8e8; border-color: #e3b341; color: #8a5a00; }
.verdict.v-wrong input:checked + span { background: #fdf3f2; border-color: #e08b80; color: #9b2c22; }
.fb-cats { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fbfcfc; }
.fb-label { font-size: .84rem; font-weight: 600; }
.fb-label span { font-weight: 400; color: var(--muted); }
.fb-unres { margin-top: 12px; padding: 10px 12px; border: 1px solid #f0d48f; border-radius: var(--r-sm); background: #fffcf3; }
.fb-unres-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 7px 0; border-top: 1px dashed #f0e2b8; font-size: .88rem; }
.fb-unres .fb-label + .fb-unres-row { border-top: none; }
.fb-pn { display: inline-flex; gap: 6px; }
.fb-pn .verdict span { padding: 6px 12px; font-size: .8rem; }
.fb-pn .verdict input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.fb-poss { font-family: var(--mono); font-size: .62rem; color: #8a5a00; background: #fff8e8; border-radius: 4px; padding: 1px 5px; }
.fb-comment, .fb-author { display: block; width: 100%; margin-top: 10px; font: inherit; font-size: .88rem; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.fb-comment { resize: vertical; min-height: 58px; }
.fb-author { max-width: 320px; }
.fb-comment:focus, .fb-author:focus, #cases-q:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fb-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.fb-status { font-size: .85rem; color: var(--muted); }
.fb-card.saved .fb-status { color: var(--accent-2); font-weight: 600; }
.fb-yn { display: flex; gap: 8px; }
.fb-choice[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }

/* ── TASK-012 · clinician case review list + case page ── */
.cases-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
#cases-q { flex: 1 1 200px; font: inherit; font-size: .9rem; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.seg-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg-tab { font-family: inherit; font-size: .8rem; font-weight: 600; padding: 9px 12px; background: #fff; border: none; cursor: pointer;
  color: var(--muted); border-left: 1px solid var(--line); }
.seg-tab:first-child { border-left: none; }
.seg-tab.active { background: var(--accent-soft); color: var(--accent-2); }
.seg-tab span { font-family: var(--mono); font-size: .7rem; opacity: .8; }
.cases-list { display: grid; gap: 8px; }
.case-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left;
  font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.case-row:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.case-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-photo { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--line-soft); }
.cr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cr-n { position: absolute; right: 3px; bottom: 3px; font: 600 .6rem var(--mono); background: rgba(16,24,38,.7); color: #fff;
  border-radius: 4px; padding: 1px 4px; }
.cr-main { display: grid; gap: 1px; min-width: 0; }
.cr-code { font-family: var(--mono); font-weight: 600; font-size: .9rem; letter-spacing: .05em; }
.cr-when, .cr-det { font-size: .76rem; color: var(--muted); }
.cr-result { font-size: .86rem; overflow-wrap: anywhere; }
.cr-status { display: grid; gap: 4px; justify-items: end; }
.cs { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.cs-todo { color: var(--muted); border-color: var(--line); background: var(--line-soft); }
.cs-correct { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }
.cs-partly { color: #8a5a00; border-color: #f0d48f; background: #fff8e8; }
.cs-wrong { color: #9b2c22; border-color: #f2d2ce; background: #fdf3f2; }
.cs-pat { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cd-head .btn { padding: 9px 14px; }
.cd-id { text-align: right; }
.cd-when { font-size: .8rem; color: var(--muted); margin: 6px 0 14px; }
.cd-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 18px; }
.cd-photos figure { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--line-soft); }
.cd-stage { position: relative; }
.cd-stage img { width: 100%; height: auto; display: block; }          /* natural shape, so marked boxes line up */
.cd-roi { position: absolute; border: 2px dashed #fff; outline: 1px solid rgba(16,24,38,.45); pointer-events: none; }
.cd-roi span { position: absolute; left: 0; top: 100%; font: 600 .62rem var(--mono); color: #fff; background: rgba(16,24,38,.7);
  padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.cd-mark, .cd-link { background: none; border: none; padding: 0; font: 600 .74rem var(--mono); color: var(--accent-2);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; margin-left: 6px; }
.cd-links { margin-top: 4px; color: var(--ink); }
.cd-boxbar-slot:empty { display: none; }
.cd-photos figure.unused img { opacity: .5; }
.cd-photos figcaption { font-size: .74rem; color: var(--muted); padding: 6px 8px; background: #fff; }
.cd-nophoto { aspect-ratio: 1 / 1; display: grid; place-items: center; font-size: .8rem; color: var(--faint); }
.cd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cd-state { font-family: 'Hanken Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; }
.cd-line { font-size: .88rem; margin-top: 2px; }
.cd-find { display: flex; justify-content: space-between; font-size: .86rem; padding: 4px 0; border-bottom: 1px dashed var(--line-soft); }
.cd-find b { font-weight: 600; }
.fbh { display: grid; gap: 8px; }
.fbh-row { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.fbh-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fbh-who { font-size: .78rem; color: var(--muted); }
.fbh-comment { font-size: .86rem; margin-top: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 640px) {
  .case-row { grid-template-columns: 56px 1fr; }
  .cr-photo { width: 56px; height: 56px; }
  .cr-status { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .cd-grid, .about-grid { grid-template-columns: 1fr; }
  .case-code { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 440px) { .nav-right:has(.role-chip:not([hidden])) .beta-chip,
  .nav-right:has(#logout-btn:not([hidden])) .beta-chip { display: none; } .nav-right { gap: 8px; } }

/* ── TASK-013 · why a result is uncertain, raw scores, marking the skin area ── */
.why-unc { margin: 14px 0; padding: 12px 14px; border: 1px solid #f0d48f; border-radius: var(--r-sm); background: #fffcf3; }
.wu-h { font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.why-unc ul { margin: 0 0 4px 18px; display: grid; gap: 4px; font-size: .86rem; }
.wu-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px;
  padding-top: 10px; border-top: 1px dashed #f0e2b8; font-size: .86rem; }
.wu-box.suggest { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-sm); padding: 10px 12px; }
.wu-box .btn { padding: 9px 14px; font-size: .86rem; }
.wu-scores { margin-top: 10px; }
.wu-scores summary { cursor: pointer; font-weight: 600; font-size: .84rem; }
.scores-wrap { overflow-x: auto; margin-top: 8px; }
table.scores { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 460px; }
table.scores th { text-align: left; font: 600 .62rem var(--mono); letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.scores td { padding: 5px 8px; border-bottom: 1px solid var(--line-soft); }
table.scores td.num { font-family: var(--mono); text-align: right; }
table.scores tr.sc-detected td { color: var(--accent-2); font-weight: 600; }
table.scores tr.sc-uncertain td { color: #8a5a00; font-weight: 600; }
table.scores tr.sc-not-detected td { color: var(--muted); }
.analysis .stage svg.marked { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mk-box { fill: none; stroke: #fff; stroke-width: 2.5px; stroke-dasharray: 8 6; vector-effect: non-scaling-stroke; }
.mk-txt { fill: #fff; font-family: var(--mono); font-weight: 600; paint-order: stroke; stroke: rgba(16,24,38,.75); stroke-width: 3px; }
.stage.boxing svg.regions, .stage.boxing svg.marked, .cd-stage.boxing .cd-roi { display: none; }
.boxlayer { position: absolute; cursor: crosshair; touch-action: none; z-index: 3; background: rgba(16,24,38,.12); }
.boxrect { position: absolute; border: 2px dashed #fff; background: rgba(14,147,132,.18);
  box-shadow: 0 0 0 9999px rgba(16,24,38,.35); pointer-events: none; }
.cd-stage.boxing, .analysis .stage.boxing { overflow: hidden; }
.box-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px;
  padding: 10px 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r-sm);
  font-size: .86rem; color: var(--accent-2); }
.box-actions { display: inline-flex; gap: 8px; }
.box-actions .btn { padding: 8px 14px; font-size: .84rem; }
.box-status { flex-basis: 100%; font-size: .82rem; }
.box-status:empty { display: none; }
table.scores td:last-child, table.scores td.num { white-space: nowrap; }

/* ── TASK-014 · decisive results: score on each row, small lower-confidence mark, compact notes ── */
.fscore { font: 600 .72rem var(--mono); color: var(--muted); margin-left: 6px; }
.lowc { display: inline-flex; width: 14px; height: 14px; margin-left: 6px; color: #b7791f; vertical-align: -2px; cursor: help; }
.lowc svg { width: 100%; height: 100%; }
.notes { margin: 12px 0 4px; padding: 10px 2px 0; border-top: 1px solid var(--line-soft); font-size: .82rem; color: var(--muted); }
.notes-legend { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 6px; }
.notes-legend .lowc { margin: 1px 0 0; flex-shrink: 0; }
.notes-legend strong { color: var(--ink); font-weight: 600; }
.notes-list { margin: 0 0 6px 18px; display: grid; gap: 3px; }
.notes-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.notes-box.suggest span { color: var(--accent-2); font-weight: 600; }
.notes-box .btn { padding: 7px 12px; font-size: .8rem; }
.notes .wu-scores summary { font-size: .8rem; color: var(--ink); }
.notes-demo { margin-top: 8px; font-size: .74rem; color: var(--faint); }
