:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --text: #16181d;
  --text-2: #5a6070;
  --border: #dde1e8;
  --accent: #3b4cca;
  --accent-soft: #e6e9fb;
  --imp-off: #d5d9e2;
  --imp-1: #9aa5e8;
  --imp-2: #5f6fd8;
  --imp-3: #2f3db8;
  --warn-bg: #fff6df;
  --warn-text: #6b4e00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1116;
    --surface: #171a21;
    --surface-2: #1f232c;
    --text: #eceef3;
    --text-2: #9aa1b2;
    --border: #2a2f3a;
    --accent: #8d9bff;
    --accent-soft: #232845;
    --imp-off: #323845;
    --imp-1: #56608f;
    --imp-2: #7b88e6;
    --imp-3: #aab5ff;
    --warn-bg: #3a2f10;
    --warn-text: #f3d98b;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1116;
  --surface: #171a21;
  --surface-2: #1f232c;
  --text: #eceef3;
  --text-2: #9aa1b2;
  --border: #2a2f3a;
  --accent: #8d9bff;
  --accent-soft: #232845;
  --imp-off: #323845;
  --imp-1: #56608f;
  --imp-2: #7b88e6;
  --imp-3: #aab5ff;
  --warn-bg: #3a2f10;
  --warn-text: #f3d98b;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h2 { font-size: 1.1rem; margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.meta { color: var(--text-2); font-size: 0.875rem; }
.eyebrow { color: var(--text-2); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); }
.brand-name { font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; }
.tagline { color: var(--text-2); font-size: 0.9rem; }

main.wrap { padding-top: 20px; padding-bottom: 32px; }
.section { margin-top: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.banner { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 0.9rem; }

.top-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .top-grid { grid-template-columns: 1fr 1.4fr; } }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.price { font-size: 2.1rem; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.change { font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }

.next-title { font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin: 6px 0 0; letter-spacing: -0.01em; }
.next-sub { color: var(--text-2); font-size: 0.95rem; margin-bottom: 8px; }
.next-when { font-size: 0.95rem; font-weight: 600; }
.next-when .meta { white-space: nowrap; font-weight: 400; }
.next-about { color: var(--text-2); font-size: 0.9rem; margin: 10px 0 8px; }
.countdown { display: inline-block; margin-top: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 650; border-radius: 999px; padding: 2px 10px; font-size: 0.875rem; }

/* Importance bars: one hue, intensity only. No red or green anywhere. */
.imp { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; vertical-align: middle; }
.imp i { display: block; width: 4px; border-radius: 1px; background: var(--imp-off); }
.imp i:nth-child(1) { height: 6px; }
.imp i:nth-child(2) { height: 10px; }
.imp i:nth-child(3) { height: 14px; }
.imp[data-level="1"] i:nth-child(1) { background: var(--imp-1); }
.imp[data-level="2"] i:nth-child(-n+2) { background: var(--imp-2); }
.imp[data-level="3"] i { background: var(--imp-3); }

.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 6px; min-height: 104px; display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; text-align: left; font: inherit; color: inherit; min-width: 0;
}
button.day:hover { border-color: var(--accent); }
.day.quiet { cursor: default; }
.day-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.day-main .imp { align-self: flex-start; }
.day.today { border-color: var(--accent); border-width: 2px; padding: 7px 5px; }
.day.in-range { background: var(--accent-soft); }
.day-date { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.day-dow { font-size: 0.75rem; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.day-num { font-size: 1.05rem; font-weight: 700; }
.day-top { font-size: 0.78rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.day-sub { font-size: 0.72rem; color: var(--text-2); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.day-quiet { font-size: 0.78rem; color: var(--text-2); line-height: 1.25; }
.day-more { font-size: 0.72rem; color: var(--text-2); }

@media (max-width: 560px) {
  .week-strip { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
  .day { min-height: 0; flex-direction: row; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 10px 12px; }
  .day:last-child { border-bottom: 0; }
  .day.today { border: 0; border-bottom: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 10px 12px 10px 9px; }
  .day-date { flex-direction: row; gap: 6px; align-items: baseline; width: 120px; flex: none; }
  .day-date { width: 112px; }
  .day-dow { font-size: 0.7rem; }
  .day-main { flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 0; align-items: center; }
  .day-main .imp { grid-row: 1 / span 2; align-self: center; }
  .day-top { -webkit-line-clamp: 2; font-size: 0.9rem; font-weight: 600; }
  .day-sub, .day-more { grid-column: 2; -webkit-line-clamp: 2; }
  .day-sub { font-size: 0.8rem; }
  .day-quiet { flex: 1; }
  button.day::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--text-2); border-top: 2px solid var(--text-2); transform: rotate(45deg); flex: none; margin-right: 4px; opacity: 0.6; }
}

.range-card h2 { margin-bottom: 2px; }
.range-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; }
.range-form label { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--text-2); gap: 4px; flex: 1 1 140px; }
.range-form input { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-height: 42px; width: 100%; }
.btn { font: inherit; font-weight: 650; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 0 16px; min-height: 42px; cursor: pointer; }
:root[data-theme="dark"] .btn { color: #0f1116; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #0f1116; } }
.btn.btn-quiet, :root .btn.btn-quiet { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.range-result { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.range-summary { font-weight: 650; margin: 0 0 8px; }
.range-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.range-item { display: flex; gap: 8px; align-items: baseline; font: inherit; font-size: 0.95rem; color: inherit; background: none; border: 0; padding: 4px 0; text-align: left; cursor: pointer; width: 100%; }
.range-item:hover .range-name { color: var(--accent); }
.range-name { font-weight: 600; }
.range-name .ag-sub { display: block; }
.range-minor { margin: 2px 0 4px; }
.range-list .when { color: var(--text-2); font-size: 0.85rem; white-space: nowrap; min-width: 96px; }
.range-near { font-size: 0.9rem; color: var(--text-2); margin: 6px 0 0; }

.toggle { font-size: 0.875rem; color: var(--text-2); display: flex; gap: 6px; align-items: center; cursor: pointer; }
.empty { color: var(--text-2); font-size: 0.95rem; }
.status { white-space: nowrap; font-size: 0.75rem; font-weight: 700; border-radius: 6px; padding: 1px 6px; background: var(--warn-bg); color: var(--warn-text); margin-left: 6px; vertical-align: 2px; }

.network { display: grid; gap: 10px; margin: 10px 0 0; grid-template-columns: 1fr; }
@media (min-width: 620px) { .network { grid-template-columns: 1fr 1fr; } }
.network dt { font-size: 0.8rem; color: var(--text-2); }
.network dd { margin: 2px 0 0; font-weight: 600; }
.network dd .meta { font-weight: 400; display: block; }

/* Liquidity card and network card share a row on wide screens */
.context-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .context-grid { grid-template-columns: 3fr 2fr; align-items: start; }
  .context-grid .network { grid-template-columns: 1fr; }
}
.liq-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.liq-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; }
.liq-value { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.liq-chart { min-height: 96px; margin-top: 8px; }
.liq-parts { margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.liq-m2 { margin: 10px 0 0; font-size: 0.95rem; }
.liq-about { margin-top: 10px; font-size: 0.9rem; color: var(--text-2); }
.liq-about summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.liq-about p { margin: 8px 0 0; }
.liq-source { margin: 10px 0 0; font-size: 0.8rem; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.85rem; color: var(--text-2); }
.legend-item { display: flex; gap: 6px; align-items: center; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 18px 0 28px; font-size: 0.9rem; }
.site-footer p { margin: 0 0 8px; }

/* ---------- 1.1 additions ---------- */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.intro { margin: 0 0 14px; color: var(--text-2); font-size: 0.95rem; }

.link-btn { font: inherit; font-size: 0.9rem; font-weight: 650; color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.link-btn:hover { text-decoration: underline; }
.link-btn[hidden] { display: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Price chart */
.spark { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 8px; }
.spark-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.spark-label { font-size: 0.8rem; color: var(--text-2); font-weight: 600; }
.spark-chart { min-height: 104px; }
.pc { position: relative; }
.pc-plot { position: relative; touch-action: pan-y; cursor: crosshair; border-radius: 8px; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.pc-plot[role="button"] { cursor: pointer; }
.pc-plot svg { display: block; overflow: visible; }
.pc-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc-stop-top { stop-color: var(--accent); stop-opacity: 0.22; }
.pc-stop-bottom { stop-color: var(--accent); stop-opacity: 0; }
.pc-grid { stroke: var(--border); stroke-width: 1; }
.pc-axis { fill: var(--text-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.pc-cross { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; }
.pc-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.pc-last { fill: var(--accent); }
.pc-marker { stroke: var(--text); stroke-width: 1.5; opacity: 0.55; }
.pc-marker-label { fill: var(--text-2); font-size: 11px; font-weight: 600; }
.pc-tip { position: absolute; top: -6px; transform: translateY(-100%); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; font-size: 0.78rem; line-height: 1.3; white-space: nowrap; pointer-events: none; display: flex; flex-direction: column; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); z-index: 2; }
.pc-tip[hidden] { display: none; }
.pc-tip strong { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.pc-tip span { color: var(--text-2); }

/* Tabs */
.tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.tab { font: inherit; font-size: 0.9rem; font-weight: 650; color: var(--text-2); background: none; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 36px; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.density { margin: 0 0 10px; font-size: 0.95rem; }
.month-tools { display: flex; justify-content: flex-end; margin-bottom: 8px; }

/* 30-day agenda */
.event-list { display: grid; gap: 16px; }
.week-group h3 { font-size: 0.85rem; color: var(--text-2); margin: 0 0 6px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.wk-span { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.your-dates { margin-left: 8px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 8px; font-size: 0.7rem; letter-spacing: 0.02em; text-transform: none; }
.week-group { scroll-margin-top: 12px; }
.extend-note { margin: 0; font-size: 0.9rem; color: var(--text-2); }
.range-cal { margin-top: 8px; }
.agenda { display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.agenda-row { display: grid; grid-template-columns: 112px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--border); text-align: left; cursor: pointer; width: 100%; }
.agenda-row:last-child { border-bottom: 0; }
.agenda-row:hover { background: var(--surface-2); }
.agenda-row.in-range { box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-soft); }
.agenda-row.past { opacity: 0.6; }
.agenda-row.canceled .ag-title { text-decoration: line-through; color: var(--text-2); }
.ag-when { display: flex; flex-direction: column; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ag-day { font-size: 0.85rem; font-weight: 650; white-space: nowrap; }
.ag-time { font-size: 0.8rem; color: var(--text-2); white-space: nowrap; }
.ag-title { font-weight: 600; min-width: 0; }
.ag-sub { display: block; font-weight: 400; font-size: 0.82rem; color: var(--text-2); }
.agenda-empty { margin: 0; padding: 10px 12px; font-size: 0.9rem; color: var(--text-2); background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; }
@media (max-width: 560px) {
  .agenda-row { grid-template-columns: 100px 1fr auto; gap: 8px; padding: 10px; }
  .ag-time { font-size: 0.75rem; }
}

/* Sheet: bottom sheet on phones, centered panel on larger screens */
html.sheet-open { overflow: hidden; }
.sheet { padding: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 18px; width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.sheet::backdrop { background: rgba(8, 10, 16, 0.6); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 160ms ease-out; }
.sheet-inner { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 22px; }
.sheet-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 6px; background: var(--surface); z-index: 3; }
.sheet-bar .icon-btn { margin-left: auto; }
.sheet-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; }
.dot-sep { opacity: 0.6; }
.sheet-title { font-size: 1.4rem; line-height: 1.25; margin: 6px 0 2px; letter-spacing: -0.015em; }
.sheet-sub { color: var(--text-2); margin: 0 0 14px; }
.sheet-h { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); margin: 18px 0 4px; font-weight: 650; }
.sheet-body p { margin: 0 0 8px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: 0.75rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts dd .meta { display: block; font-weight: 400; }
.note { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 8px 12px; margin-top: 12px !important; font-size: 0.9rem; }
.sheet-source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; border-top: 1px solid var(--border); margin-top: 18px; padding-top: 12px; font-size: 0.9rem; }
.sheet-disclaimer { color: var(--text-2); font-size: 0.8rem; margin-top: 10px !important; }
.sheet .agenda { margin-top: 4px; }
@media (max-width: 560px) {
  .sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; border-bottom: 0; max-height: 88vh; animation-name: sheet-up; }
  .sheet[open] { animation-name: sheet-up; }
  .sheet-inner { padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }
  .sheet-bar::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--border); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }

/* Price history */
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; margin: 10px 0 14px; }
.seg-btn { flex: 1; font: inherit; font-size: 0.85rem; font-weight: 650; color: var(--text-2); background: none; border: 0; border-radius: 8px; padding: 6px 0; min-height: 34px; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.hist-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; min-height: 48px; }
.hist-stats > div { display: flex; flex-direction: column; }
.hs-label { font-size: 0.75rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.hs-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.hs-sub { font-size: 0.78rem; color: var(--text-2); }
.hist-chart { min-height: 240px; margin-top: 26px; }
.hist-note { margin-top: 10px !important; }

/* Categories, themes and timing notes */
.time-note { font-size: 0.85rem; color: var(--text-2); background: var(--surface-2); border-radius: 10px; padding: 8px 12px; margin-top: 12px !important; }
.themes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px !important; }
.themes-label { font-size: 0.75rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-right: 2px; }
.theme { font-size: 0.8rem; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; }
.sheet-related { font-size: 0.9rem; margin-top: 8px !important; }

/* Page navigation */
.header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 0.88rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: 0 0 0 1px var(--border); }
@media (max-width: 560px) {
  .header-inner { padding-top: 8px; padding-bottom: 8px; row-gap: 4px; }
  .header-right { width: 100%; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
  .site-nav a { padding: 4px 8px; font-size: 0.85rem; }
  .header-right .tagline { font-size: 0.85rem; }
}

/* Look back */
.page-title { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 4px; }
.lb-about { margin: 0 0 12px; }
.lb-tools { margin-bottom: 12px; }
.lb-filter { margin: 0; max-width: 420px; }
.lb-summary { display: grid; gap: 14px; }
.lb-sum-title { margin: 0; font-weight: 700; }
.lb-h { display: grid; gap: 4px; }
.lb-h-label { font-size: 0.75rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.lb-h-counts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lb-h-detail { font-size: 0.85rem; color: var(--text-2); }
.lb-bar { display: inline-block; width: 90px; height: 8px; border-radius: 999px; background: var(--imp-off); overflow: hidden; flex: none; }
.lb-bar-up { display: block; height: 100%; background: var(--accent); }
.lb-list { display: grid; margin-top: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.lb-list:empty { display: none; }
.lb-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--border); text-align: left; cursor: pointer; width: 100%; }
.lb-row:last-child { border-bottom: 0; }
.lb-row:hover { background: var(--surface-2); }
.lb-row-main { display: flex; flex-direction: column; min-width: 0; }
.lb-row-title { font-weight: 650; }
.lb-row-sub { font-size: 0.82rem; color: var(--text-2); }
.lb-tag { font-size: 0.7rem; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-left: 6px; background: var(--accent-soft); color: var(--accent); vertical-align: 2px; }
.lb-row-moves { display: grid; grid-template-columns: repeat(3, 64px); gap: 4px; text-align: right; font-variant-numeric: tabular-nums; }
.lb-row-moves > span { display: flex; flex-direction: column; }
.lb-k { font-size: 0.7rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.mv { font-weight: 650; font-size: 0.9rem; white-space: nowrap; }
.mv-na { color: var(--text-2); font-weight: 400; font-size: 0.8rem; }
.lb-more { margin-top: 12px; width: 100%; }
.lb-method ul { margin: 8px 0; padding-left: 18px; }
.lb-method li { margin-bottom: 6px; font-size: 0.92rem; }
.lb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lb-table th, .lb-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.lb-table thead th { font-size: 0.72rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.lb-table tbody th { font-weight: 600; }
.lb-table td:last-child { color: var(--text-2); }
.lb-chart { margin-top: 26px; }
@media (max-width: 560px) {
  .lb-row { grid-template-columns: 1fr; gap: 6px; }
  .lb-row-moves { grid-template-columns: repeat(3, 1fr); text-align: left; }
}

/* Look back: groups and findings */
.lb-groups { margin: 4px 0 4px; }
.lb-finding { display: grid; gap: 6px; }
.lb-headline { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.lb-detail { margin: 0; font-size: 0.95rem; }
.lb-basis { margin: 4px 0 0; }
.lb-list-h { font-size: 0.85rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; margin: 22px 0 8px; font-weight: 650; }
.lb-bars { margin-top: 12px; }
.lb-bars-grid { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; align-items: end; }
.lb-b { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.lb-b-val { font-size: 0.68rem; color: var(--text-2); text-align: center; height: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-b-area { position: relative; height: 110px; }
.lb-b-bar { position: absolute; left: 12%; right: 12%; bottom: 0; background: var(--imp-off); border-radius: 4px 4px 0 0; }
.lb-b-busy .lb-b-bar { background: var(--accent); }
.lb-b-busy .lb-b-val { color: var(--text); font-weight: 700; }
.lb-one { position: absolute; left: -2px; right: -2px; border-top: 1.5px dashed var(--text-2); opacity: 0.7; z-index: 1; }
.lb-b-h { font-size: 0.72rem; color: var(--text-2); text-align: center; margin-top: 4px; font-variant-numeric: tabular-nums; }
.lb-b-first { border-left: 1.5px solid var(--border); }
.lb-bars-axis { display: grid; grid-template-columns: 3fr 8fr; font-size: 0.72rem; color: var(--text-2); margin-top: 2px; }
.lb-bars-axis span:last-child { padding-left: 6px; }
.lb-bars-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.75rem; color: var(--text-2); margin-top: 8px; }
.lb-bars-key span { display: inline-flex; align-items: center; gap: 5px; }
.lb-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--imp-off); }
.lb-key-busy { background: var(--accent); }
.lb-key-line { background: none; border-top: 1.5px dashed var(--text-2); height: 0; width: 14px; border-radius: 0; }
.lb-table-note { margin-top: 6px !important; }
@media (max-width: 560px) {
  .lb-b-val { font-size: 0.6rem; }
  .lb-b-area { height: 90px; }
}
.lb-groups { flex-wrap: wrap; max-width: 100%; }
.lb-groups .tab { padding: 6px 12px; }
.lb-filter[hidden] { display: none; }
.lb-b-hint .lb-b-bar { background: var(--imp-1); }
.lb-key-hint { background: var(--imp-1); }
