:root {
  color-scheme: light dark;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --border: #d5dbe3;
  --text: #1c2430;
  --muted: #5a6677;
  --accent: #1f5fbf;
  --accent-text: #ffffff;
  --danger: #b3261e;
  --ok: #1b7a43;
  --warn-bg: #fff1cc;
  --warn-text: #6b4a00;
  --focus: #1f5fbf;
  --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 2px 8px rgba(20, 30, 50, .05);
  --shadow-up: 0 -2px 10px rgba(20, 30, 50, .12);

  /* effort palette (shared by live + recordings; Okabe-Ito based) */
  --c-punch: #d55e00;
  --c-slash: #cc79a7;
  --c-dab: #0072b2;
  --c-flick: #e69f00;
  --c-press: #009e73;
  --c-wring: #7b3fa0;
  --c-glide: #56b4e9;
  --c-float: #8fbf4a;
  --c-unknown: #8a94a0;

  /* score series */
  --s-space: #0072b2;
  --s-weight: #d55e00;
  --s-time: #009e73;
  --s-flow: #aa3a9c;

  --chart-grid: rgba(90, 102, 119, .22);
  --chart-text: #5a6677;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161c;
    --surface: #1b212a;
    --surface-2: #232b36;
    --border: #35404f;
    --text: #e6ebf2;
    --muted: #9aa7b8;
    --accent: #6ea8ff;
    --accent-text: #0b1626;
    --danger: #ff8a80;
    --ok: #62d08f;
    --warn-bg: #4a3a10;
    --warn-text: #ffe19a;
    --focus: #8ab9ff;
    --shadow: none;
    --shadow-up: 0 -2px 10px rgba(0, 0, 0, .35);
    --c-dab: #3fa0e0;
    --c-wring: #b17fd6;
    --s-space: #4aa3e0;
    --s-weight: #f08a45;
    --s-time: #33c49a;
    --s-flow: #d98ad0;
    --chart-grid: rgba(154, 167, 184, .2);
    --chart-text: #9aa7b8;
  }
}

/* explicit override (dev / future theme toggle) */
:root[data-theme="dark"] {
  --bg: #12161c;
  --surface: #1b212a;
  --surface-2: #232b36;
  --border: #35404f;
  --text: #e6ebf2;
  --muted: #9aa7b8;
  --accent: #6ea8ff;
  --accent-text: #0b1626;
  --danger: #ff8a80;
  --ok: #62d08f;
  --warn-bg: #4a3a10;
  --warn-text: #ffe19a;
  --focus: #8ab9ff;
  --shadow: none;
  --shadow-up: 0 -2px 10px rgba(0, 0, 0, .35);
  --c-dab: #3fa0e0;
  --c-wring: #b17fd6;
  --s-space: #4aa3e0;
  --s-weight: #f08a45;
  --s-time: #33c49a;
  --s-flow: #d98ad0;
  --chart-grid: rgba(154, 167, 184, .2);
  --chart-text: #9aa7b8;
}

* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", "Segoe UI", sans-serif;
  line-height: 1.5;
}
h1, h2 { margin: 0; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 6px 10px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.spacer { flex: 1; }
[hidden] { display: none !important; }

html { scroll-padding-top: 64px; scroll-padding-bottom: 84px; }
#th-errors { scroll-margin-top: 72px; }
#live-start:disabled { opacity: .55; }

/* ---------- header ---------- */
.app-header {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 8px 20px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand h1 { font-size: 1.15rem; letter-spacing: .02em; }
.brand .sub { color: var(--muted); font-size: .8rem; }
.tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.tabs button {
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px;
  cursor: pointer; color: var(--muted); white-space: nowrap; font-weight: 500;
}
.tabs button:hover { color: var(--text); }
.tabs button:focus-visible { outline-offset: -2px; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.status-area { display: flex; align-items: center; gap: 8px; }
.ws-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); display: inline-block; position: relative; }
.ws-dot.on { background: var(--ok); }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.badge.state-live { background: var(--ok); color: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.state-live { color: #08170f; } }
:root[data-theme="dark"] .badge.state-live { color: #08170f; }
.banner { padding: 8px 12px; border-radius: 8px; font-size: .9rem; margin: 0; }
.banner.warn { background: var(--warn-bg); color: var(--warn-text); border: 1px solid color-mix(in srgb, var(--warn-text) 35%, transparent); }
.panel:focus-visible { outline-offset: -2px; }
.badge.state-live.recording { background: var(--danger); color: #fff; border-color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.state-live.recording { color: #2b0a08; } }
:root[data-theme="dark"] .badge.state-live.recording { color: #2b0a08; }
.badge.state-launcher { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.badge.kind-window { background: color-mix(in srgb, var(--s-space) 22%, transparent); }
.badge.kind-metro { background: color-mix(in srgb, var(--c-punch) 22%, transparent); }
.badge.kind-pose_only { background: color-mix(in srgb, var(--c-press) 22%, transparent); }

/* ---------- layout ---------- */
main { max-width: 1400px; margin: 0 auto; padding: 16px 20px 40px; }
.panel { display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; box-shadow: var(--shadow); min-width: 0;
}
.card-title { font-size: .95rem; margin-bottom: 8px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card-title-row .card-title { margin: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.placeholder-card { color: var(--muted); text-align: center; padding: 40px; }

.btn {
  border: 1px solid var(--border); background: var(--surface); border-radius: 8px;
  padding: 7px 16px; cursor: pointer; font-weight: 500;
}
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.small-btn { padding: 3px 10px; font-size: .85rem; border-radius: 6px; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.check input { width: 16px; height: 16px; }

/* ---------- live ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.video-wrap {
  position: relative; background: #0c0f13; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center; max-height: 62vh; margin: 0 auto;
}
.video-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.placeholder { color: #c3ccd8; text-align: center; padding: 20px; }
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 10px; color: var(--muted); }
.meta-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.live-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--muted); }
.effort-card { --effort-color: var(--c-unknown); border-left: 6px solid var(--effort-color); }
.effort-card.nodata { border: 2px dashed var(--muted); border-left: 6px dashed var(--muted); }
.effort-card .banner { margin: 6px 0 8px; font-weight: 600; }
.banner.ghost { visibility: hidden; }
.effort-title { display: flex; align-items: center; gap: 12px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--effort-color); border: 2px solid var(--text); flex: none; }
.effort-card.nodata .swatch { background: transparent; border-style: dashed; border-color: var(--muted); }
.effort-name { font-size: 2.6rem; font-weight: 700; line-height: 1.1; color: var(--text); }
.effort-triplet { color: var(--muted); margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.conf { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.conf-bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
#conf-fill { height: 100%; width: 0; background: var(--effort-color, var(--accent)); transition: width .25s; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.chip { padding: 3px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; }
.chip.eff { border-color: transparent; font-weight: 600; }

.scores { display: flex; flex-direction: column; gap: 12px; }
.score-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.score-name { font-weight: 600; }
.score-head .val { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.pole { font-size: .75rem; font-weight: 600; padding: 1px 9px; border-radius: 999px; color: var(--text); border: 1px solid var(--bar-color); background: transparent; }
.pole.hi { background: color-mix(in srgb, var(--bar-color) 30%, var(--surface)); }
.pole.lo { border-style: dashed; }
.pole:empty { display: none; }
.bar { position: relative; height: 12px; background: var(--surface-2); border-radius: 6px; overflow: visible; border: 1px solid var(--border); }
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px 0 0 6px; background: var(--bar-color); opacity: .85; transition: width .2s; }
.bar .thr { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: var(--text); box-shadow: 0 0 0 1px var(--surface); border-radius: 1px; }
.bar .thr[hidden] { display: none; }
.ends { position: relative; display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 3px; min-height: 1.2em; }
.thr-label { position: absolute; transform: translateX(-50%); top: 0; color: var(--text); font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; background: var(--surface); padding: 0 3px; }
.thr-label[hidden] { display: none; }
.chart-box { position: relative; height: 240px; }
.chart-box.tall { height: 280px; }
.chart-note { padding: 20px; color: var(--muted); background: var(--surface-2); border-radius: 8px; text-align: center; }

/* ---------- forms ---------- */
.form-grid { display: flex; flex-direction: column; gap: 14px; }
fieldset.lock { border: 0; padding: 0; margin: 0; background: none; display: flex; flex-direction: column; gap: 14px; }
fieldset { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin: 0; padding: 10px 16px 14px; min-width: 0; }
legend { font-weight: 600; padding: 0 6px; font-size: .92rem; }
.fields { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-top: 6px; }
.fields label:not(.check) { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--muted); }
.fields label.grow { flex: 1 1 260px; }
.fields .check { color: var(--text); font-size: .95rem; padding-bottom: 6px; }
input[type="text"], input[type="number"], select, textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 6px 9px; color: var(--text);
  min-width: 0;
}
input[type="number"] { width: 100px; }
input[type="text"] { min-width: 170px; }
.grow input[type="text"] { width: 100%; }
input:disabled, select:disabled, textarea:disabled { opacity: .5; cursor: not-allowed; }
.inline { display: flex; gap: 8px; align-items: center; }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.radio-col { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.th-help { margin: 0 0 8px; font-size: .82rem; color: var(--muted); }
.actions { display: flex; gap: 12px; align-items: center; }
.note { background: var(--warn-bg); color: var(--warn-text); padding: 8px 12px; border-radius: 8px; margin: 10px 0 0; font-size: .9rem; }
#settings-form { max-width: 900px; }
.launcher-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.launcher-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 70px; }
.code, .log {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
  font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; margin: 0 0 10px;
}
.log { height: 300px; overflow: auto; white-space: pre-wrap; margin: 0; }
.error-text { color: var(--danger); margin: 0 0 8px; white-space: pre-wrap; }

/* ---------- thresholds ---------- */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg-btn { background: var(--surface); border: 0; padding: 7px 16px; cursor: pointer; }
.seg-btn.active { background: var(--accent); color: var(--accent-text); }
.error-box { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); border: 1px solid var(--danger); color: var(--text); border-radius: 8px; padding: 10px 14px; }
.error-box ul { margin: 4px 0 0; padding-left: 20px; }
.ok-box { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border: 1px solid var(--ok); border-radius: 8px; padding: 10px 14px; }
.th-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.th-section h3 { margin: 0 0 8px; font-size: .95rem; color: var(--accent); }
.th-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.th-row > label { font-size: .85rem; color: var(--muted); word-break: break-all; }
.th-row .multi { display: flex; gap: 6px; flex-wrap: wrap; }
.th-row .multi { align-items: center; flex-wrap: nowrap; }
.th-row .multi input { width: 96px; }
.th-row .multi .dash { color: var(--muted); }
input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.savebar { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-up); }
.savebar .small { flex: 1 1 260px; }
.ok-box .note-lost { margin: 4px 0 0; }
.th-row input[type="number"] { width: 100%; max-width: 140px; }
.th-row input[type="text"] { width: 100%; }
.th-sub { margin: 6px 0 4px 10px; padding-left: 10px; border-left: 2px solid var(--border); }
.th-sub > h4 { margin: 0 0 6px; font-size: .85rem; }
textarea.yaml { width: 100%; font: 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; tab-size: 2; resize: vertical; }
.plain-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.plain-list li { padding: 3px 0; display: flex; gap: 14px; }

/* ---------- records ---------- */
.records-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; align-items: start; }
.rec-list-card { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; }
.rec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rec-item {
  width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
}
.rec-item:hover { background: var(--surface-2); }
.rec-item[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.rec-item .nm { font-size: .88rem; overflow-wrap: anywhere; font-weight: 700; }
.rec-item .nm .muted { font-weight: 400; }
.rec-item .mt { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--muted); }
.rec-detail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rec-title { font-weight: 600; overflow-wrap: anywhere; }
.strip-canvas { width: 100%; height: 48px; display: block; border-radius: 6px; background: var(--surface-2); cursor: crosshair; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 8px; font-size: .82rem; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid transparent; border-radius: 6px; padding: 2px 8px; cursor: pointer; color: var(--text); }
.legend-item[aria-pressed="true"] { background: var(--surface-2); border-color: var(--text); }
.legend-item:hover, .legend-item:focus-visible { background: var(--surface-2); border-color: var(--border); }
.legend-item i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--text); }
.legend-item .pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.readout { font-size: .88rem; color: var(--text); min-height: 1.9em; margin-top: 6px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.readout.idle { color: var(--muted); }
.metro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metro-grid video, .metro-grid canvas { width: 100%; background: #0c0f13; border-radius: 8px; display: block; }
.skel-wrap { background: var(--surface-2); border-radius: 8px; }
.skel-wrap canvas { background: var(--surface-2); }
.player-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.player-bar input[type="range"] { flex: 1 1 200px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; top: 72px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: min(420px, calc(100vw - 32px)); }
.toast {
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 5px solid var(--accent);
  border-radius: 8px; padding: 10px 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); white-space: pre-wrap; font-size: .9rem;
}
.toast.error { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }

/* ---------- responsive ---------- */
@media (max-width: 600px) { .savebar .small { display: none; } }
@media (max-width: 1000px) {
  .th-row .multi input { width: 80px; }
  .live-grid, .launcher-grid, .records-grid, .metro-grid { grid-template-columns: minmax(0, 1fr); }
  .launcher-side, .rec-list-card { position: static; max-height: none; }
  main { padding: 12px; }
  .app-header { padding: 6px 12px; gap: 8px; }
  .effort-name { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- run mode / recording (package C) ---------- */
.badge.state-process { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.mode-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg-opt { position: relative; display: inline-flex; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { padding: 7px 16px; background: var(--surface); }
.seg-opt input:checked + span { background: var(--accent); color: var(--accent-text); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -3px; }
.seg-opt input:disabled + span { cursor: not-allowed; }
.seg-opt input:disabled:not(:checked) + span { opacity: .5; }
.danger-text { color: var(--danger); }
@media (max-width: 480px) {
  .seg.mode-seg { display: flex; flex-direction: column; width: 100%; }
  .seg-opt { display: flex; width: 100%; }
  .seg-opt span { width: 100%; min-height: 44px; display: flex; align-items: center; padding: 10px 16px; box-sizing: border-box; }
}
.rec-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.rec-ind { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--danger); }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: rec-blink 1.2s ease-in-out infinite; }
.rec-ind.finalizing .rec-dot { animation: none; opacity: .6; }
@keyframes rec-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.preview-label { margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--warn-text); background: var(--warn-bg); padding: 4px 10px; border-radius: 6px; display: inline-block; }
#panel-live.is-record .live-side, #panel-live.is-record #live-chart-card { display: none; }
#panel-live.is-record .live-grid { grid-template-columns: 1fr; }

/* ---------- raw recording sessions ---------- */
.sess-gap { margin-top: 16px; }
.rec-item .mt.wrap { flex-wrap: wrap; gap: 4px 10px; }
.badge.bad { background: var(--warn-bg); color: var(--warn-text); border-color: transparent; }
.sess-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 16px; margin: 8px 0 0; font-size: .88rem; }
.sess-meta dt { color: var(--muted); font-size: .78rem; }
.sess-meta dd { margin: 0; overflow-wrap: anywhere; }
.sess-video { width: 100%; max-height: 420px; background: #000; border-radius: 8px; }
.progress { height: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.analysis-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.analysis-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; }
.analysis-list .nm { flex: 1 1 240px; overflow-wrap: anywhere; font-size: .88rem; }
