/* Hybrid 1, Journal cards: typography and thin rules from style A,
   with the rounded cards and airy spacing of style D.
   Palettes: default (steel blue, teal, rust) and a colour-blind mode
   that uses one colour per family (blue, orange, magenta, black, grey). */

:root {
  --bg: #F6F3EE;
  --surface: #FFFFFF;
  --text: #1A2330;
  --muted: #4E5968;
  --dim: #4E5968;
  --primary: #184A63;
  --accent: #0B6B5F;
  --series-a: #184A63;
  --series-b: #0B6B5F;
  --series-c: #9A3412;
  --series-d: #1A2330;
  --series-e: #5C4A2E;
  --border: #D4D0C8;
  --focus: #184A63;
  --on-primary: #FFFFFF;
  --on-accent: #FFFFFF;
  --chip-bg: #E8EEF0;
  --chip-text: #184A63;
  --chip-border: #184A63;
  --shadow: 0 8px 24px rgba(26, 35, 48, 0.08);
  --chart-bg: #FFFFFF;
  --grid: #E4DFD6;
  --axis: #4E5968;
  --surface-2: #F6F3EE;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius-card: 20px;
  --radius-pill: 999px;
  --page-pad: 28px 36px 0;
}

html[data-theme="colour-blind"] {
  --bg: #F5F5F3;
  --surface: #FFFFFF;
  --text: #111111;
  --muted: #595959;
  --dim: #595959;
  --primary: #005A9E;
  --accent: #B34700;
  --series-a: #005A9E;
  --series-b: #B34700;
  --series-c: #B01070;
  --series-d: #111111;
  --series-e: #595959;
  --border: #C4C4C4;
  --focus: #005A9E;
  --on-primary: #FFFFFF;
  --on-accent: #FFFFFF;
  --chip-bg: #EEF5FB;
  --chip-text: #005A9E;
  --chip-border: #005A9E;
  --shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
  --chart-bg: #FFFFFF;
  --grid: #D9D9D9;
  --axis: #595959;
  --surface-2: #F5F5F3;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--primary); }
a:hover { color: var(--accent); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border: 2px solid var(--text);
  z-index: 30;
  text-decoration: underline;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ===== Layout chrome ===== */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.site-header,
.tool-header {
  padding: 8px 0 0;
}

.site-header-top,
.tool-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.kicker,
.eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.brand {
  text-align: center;
  padding: 8px 0 16px;
  border-bottom: 2px solid var(--primary);
}

.brand .title,
.brand h1,
header h1,
.tool-header h1,
h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  text-align: center;
}

.byline,
.subtitle {
  margin: 6px 0 0;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

.header-desc,
.intro {
  margin: 16px auto 0;
  max-width: 74ch;
  font-size: 18px;
  color: var(--text);
  text-align: left;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 8px 0 4px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
  background: var(--surface);
}

.home-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
}
.home-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Colour-blind toggle */
.cb-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}
.cb-toggle .cb-switch {
  width: 36px;
  height: 20px;
  border: 2px solid var(--text);
  background: var(--surface);
  position: relative;
  flex: none;
  border-radius: var(--radius-pill);
}
.cb-toggle .cb-switch::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 3px;
  left: 3px;
  background: var(--text);
  border-radius: 50%;
}
.cb-toggle[aria-pressed="true"] .cb-switch { background: var(--primary); border-color: var(--primary); }
.cb-toggle[aria-pressed="true"] .cb-switch::after { left: 19px; background: var(--on-primary); }

/* ===== Cards, pills, buttons ===== */
.card,
.tool-card,
.info-card,
.icard,
.toc,
.info-panel,
.info-empty,
.cascade,
.svg-wrap,
.svg-panel,
.heart-wrap,
.comp-bar-wrap,
.coming-soon {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.card { padding: 20px; }
.card-title,
.icard-label,
.info-label,
.info-card-title,
.toc-title,
.comp-bar-title,
.svg-panel-label,
.btn-section-label,
.btn-group-label,
.subcategory-label {
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

/* Section headings inside cards (scenario name, summary cards). */
.explain-title,
.summary-card .card-title,
.section-heading {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 8px;
  border: 0;
  padding: 0;
}

.type-pill,
.tag,
.footer-tag,
.coming-soon-label,
.ecg-pill,
.system-count {
  display: inline-block;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  width: fit-content;
  border-radius: var(--radius-pill);
}

.type-pill.notes {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--text);
}

.tool-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.tool-title,
.card .card-title + .tool-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  font-family: var(--font-serif);
  text-transform: none;
  letter-spacing: -0.02em;
}
.tool-desc,
.card-desc,
.info-desc,
.icard-body,
.coming-soon-text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.open-btn,
.open-link {
  margin-top: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* Homepage accordion */
.system-block { margin-bottom: 12px; }
.system-toggle {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  min-height: 52px;
  box-shadow: var(--shadow);
  text-align: left;
}
.system-toggle.open {
  border-radius: 20px 20px 0 0;
  border-color: var(--primary);
}
.system-toggle-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.system-number {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.system-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.system-chevron {
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.2s ease;
  font-family: var(--font-sans);
}
.system-toggle.open .system-chevron { transform: rotate(180deg); color: var(--primary); }

.system-body {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  max-height: 0;
  padding: 0 16px;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.system-body.open { max-height: 4000px; padding: 16px 16px 20px; }

.subcategory { margin-bottom: 16px; }
.subcategory:last-child { margin-bottom: 0; }
.tools-row { display: flex; flex-direction: column; gap: 12px; }

.coming-soon {
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.about {
  display: grid;
  gap: 20px;
  margin-top: 48px;
  padding-top: 8px;
}
@media (min-width: 700px) { .about { grid-template-columns: 1fr 1fr; } }
.about-block-label {
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.about-block-text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

/* Footer */
footer,
.site-footer {
  margin-top: 48px;
  width: 100%;
  padding: 16px 0 8px;
  border-top: 2px solid var(--primary);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
}
.footer-inner,
.footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.footer-dot { color: var(--border); }
.footer-system,
.footer-sub,
.footer-tool,
.footer-author,
.footer-title,
.footer-series { color: var(--muted); font-style: normal; letter-spacing: 0; text-transform: none; font-size: 13px; font-family: var(--font-sans); }
.footer-system { font-family: var(--font-serif); font-style: italic; }
.footer-tag {
  color: var(--chip-text);
  background: var(--chip-bg);
  border-color: var(--chip-border);
}

.footer-feedback {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-feedback:hover { text-decoration-thickness: 2px; }
.footer-feedback:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

.feedback-invite {
  margin-top: 28px;
  max-width: 70ch;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.feedback-invite-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 6px;
}
.feedback-invite p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.feedback-invite a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.feedback-invite a:hover { text-decoration-thickness: 2px; }
.feedback-invite a:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

/* ===== Shared tool UI ===== */
.tool-header { margin-bottom: 24px; }
.tool-header .kicker { margin-top: 12px; }

.mod-groups,
.btn-groups,
.btn-section,
#btnRow,
.timeline-bar {
  margin-bottom: 16px;
}
.mod-row,
.btn-row,
.feature-btns,
.phase-btns,
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.btn-group { justify-content: flex-start; }
.btn-group-label { width: auto; min-width: 9em; flex-shrink: 0; margin-bottom: 0; margin-right: 8px; white-space: nowrap; }

.mod-btn,
.feature-btn,
.phase-btn,
.pbtn,
.cbtn,
.mbtn,
.ap-tbtn,
.tick-btn,
.stage-btn {
  appearance: none;
  cursor: pointer;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.mod-btn:hover,
.feature-btn:hover,
.phase-btn:hover,
.pbtn:hover,
.cbtn:hover,
.mbtn:hover,
.ap-tbtn:hover,
.stage-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ap-toggle { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.ap-tbtn.active {
  border-color: var(--primary);
  background: var(--chip-bg);
  color: var(--primary);
}

.layout {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) {
  .layout { grid-template-columns: 1fr 300px; }
}
.page-pv .layout { max-width: 900px; }
@media (min-width: 700px) {
  .page-pv .layout { grid-template-columns: 1fr 320px; }
}

.svg-wrap,
.svg-panel,
.heart-wrap {
  padding: 16px;
  background: var(--chart-bg);
  overflow: auto;
}
#waveSvg, #pvSvg, #apSvg, #murmurSvg, #heartSvg { display: block; width: 100%; height: auto; }

.main-layout { display: flex; flex-direction: column; gap: 16px; }
.info-panel { padding: 20px; min-height: 200px; display: flex; flex-direction: column; gap: 10px; }
.info-placeholder { font-size: 15px; color: var(--muted); font-style: italic; margin: auto 0; text-align: center; }
.info-title { font-size: 22px; font-weight: 600; color: var(--text); margin: 0 0 2px; }
.info-timing { font-size: 15px; font-style: italic; color: var(--muted); }
.info-highlight {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--primary);
}
.icard { padding: 14px 16px; border-radius: 12px; }
.icard-body { font-size: 15px; }
.icard-body strong { color: var(--text); }
.icard-body ul { padding-left: 16px; }
.ecg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ecg-wide, .ecg-long, .ecg-normal {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-2);
}

.stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}
.stat, .readout div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  min-width: 72px;
}
.stat-val, .readout dd {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.stat-label, .readout dt {
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}

.key-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  gap: 12px;
}
.key-row:last-child { border-bottom: none; }
.key-label { color: var(--text); flex-shrink: 0; }
.key-val { color: var(--muted); font-family: var(--font-sans); font-size: 13px; text-align: right; }

/* Notes / HF */
.toc { padding: 20px 24px; margin-bottom: 36px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.toc-list a {
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}
.toc-list a:hover { color: var(--primary); }
.toc-num { font-family: var(--font-sans); font-size: 12px; color: var(--muted); width: 28px; font-weight: 700; }
.section { margin-bottom: 48px; }
.section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-num { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
}
.section-rule { flex: 1; height: 1px; background: var(--border); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

.compare-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 15px; }
.compare-table th {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.compare-table td { padding: 10px 12px; color: var(--text); border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .label { color: var(--text); font-weight: 600; }

.cascade { padding: 16px 20px; margin-bottom: 12px; border-radius: 12px; }
.cascade-title { font-family: var(--font-sans); font-size: 15px; letter-spacing: 0.02em; text-transform: none; color: var(--text); margin-bottom: 10px; font-weight: 600; padding-left: 8px; border-left: 3px solid var(--text); }
.cascade-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
.cascade-step { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; }
.cascade-arrow { color: var(--muted); font-size: 11px; }

.drug-row { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; align-items: start; }
.drug-row:last-child { border-bottom: none; }
.drug-name { color: var(--primary); font-family: var(--font-sans); font-size: 13px; font-weight: 700; }
.drug-mech { color: var(--text); }
.drug-target { color: var(--muted); font-size: 13px; font-style: italic; }
@media (max-width: 600px) { .drug-row { grid-template-columns: 1fr; } }

.keypoint {
  border-left: 3px solid var(--primary);
  padding: 10px 16px;
  margin-bottom: 12px;
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  color: var(--text);
  font-style: italic;
}

/* MI timeline */
.wrap { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.timeline-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cards-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .cards-row { grid-template-columns: 1fr 1fr 1fr; } }
.info-card { padding: 16px; }
.info-card-content { font-size: 15px; color: var(--text); line-height: 1.6; }
.comp-bar-wrap { padding: 16px 18px; }
.comp-gantt { font-family: var(--font-sans); font-size: 13px; }

/* Utility: pattern swatch in buttons */
.cue-swatch {
  display: inline-block;
  width: 16px;
  height: 8px;
  border: 1.5px solid currentColor;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
  flex: none;
}
.btn-with-cue { display: inline-flex; align-items: center; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes infoIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.info-wrap.fading,
.svg-panel.fading,
.info-panel.fading { opacity: 0; }
.info-wrap, .svg-panel, .info-panel, .btn-section { transition: opacity 0.3s ease, border-color 0.3s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 640px) {
  .page { padding: 20px 16px 56px; }
  .site-header-top, .tool-header-top { justify-content: space-between; }
}

/* MI timeline extras */
.t-btn {
  appearance: none;
  flex: 1;
  padding: 8px 6px;
  min-height: 44px;
  min-width: 0;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.3;
}
.t-btn:hover { border-color: var(--primary); color: var(--primary); }
.t-btn[aria-pressed="true"],
.t-btn.active { border-color: var(--primary); background: var(--chip-bg); color: var(--primary); }
.info-card { min-height: 160px; }
.info-card-content.fading { opacity: 0; }
.info-card-content li { margin-left: 14px; margin-bottom: 4px; }
.comp-gantt { display: flex; flex-direction: column; gap: 10px; }
.comp-row { display: flex; align-items: center; gap: 10px; }
.comp-label {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text);
  width: 170px;
  flex-shrink: 0;
  font-weight: 600;
}
.comp-track {
  flex: 1;
  height: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: visible;
}
.comp-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  border: 1px solid currentColor;
}
.gantt-axis {
  display: flex;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.btn-group-label { width: auto; min-width: 9em; margin-right: 8px; white-space: nowrap; }
.axis-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.gantt-marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 22px;
  background: var(--text);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}
