:root {
  --ink: #102a32;
  --ink-soft: #49636a;
  --ocean-950: #061a22;
  --ocean-900: #092731;
  --ocean-800: #0d3b46;
  --ocean-700: #155965;
  --foam: #f5f8f4;
  --paper: #fffdf7;
  --sand: #e9e4d7;
  --sand-dark: #cfc7b4;
  --coral: #f06d5f;
  --sun: #f4bd4b;
  --aqua: #55c2b8;
  --background-blue: #4c6fb3;
  --shadow: 0 18px 50px rgba(5, 31, 39, 0.1);
  --radius-lg: 24px;
  --radius-md: 15px;
  --content: 1480px;
  color-scheme: light;
  font-family: Inter, "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 30%, rgba(85, 194, 184, 0.08), transparent 27rem),
    linear-gradient(180deg, #f7faf7 0, var(--foam) 100%);
  padding-bottom: 108px;
}

button, input, select { font: inherit; }

button, select, input[type="range"] { cursor: pointer; }

button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(240, 109, 95, 0.45);
  outline-offset: 2px;
}

.hidden, [hidden] { display: none !important; }

.loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: white;
  background: var(--ocean-950);
  transition: opacity 280ms ease, visibility 280ms ease;
}

.loading.done { opacity: 0; visibility: hidden; }
.loading p { margin: 0; color: #bcd7d8; letter-spacing: 0.04em; }

.loading-mark { display: flex; align-items: end; gap: 6px; height: 44px; }
.loading-mark span {
  display: block;
  width: 9px;
  border-radius: 9px;
  background: var(--aqua);
  animation: pulse 900ms ease-in-out infinite alternate;
}
.loading-mark span:nth-child(1) { height: 20px; }
.loading-mark span:nth-child(2) { height: 42px; animation-delay: 160ms; }
.loading-mark span:nth-child(3) { height: 29px; animation-delay: 320ms; }
@keyframes pulse { to { height: 10px; opacity: 0.45; } }

.section-kicker {
  margin: 0 0 14px;
  color: var(--aqua);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.view-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 42, 50, 0.11);
  background: rgba(247, 250, 247, 0.93);
  backdrop-filter: blur(18px);
}

.view-nav-inner {
  width: min(var(--content), calc(100% - 44px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.view-tabs { display: flex; align-self: stretch; }
.view-tab {
  position: relative;
  border: 0;
  padding: 0 24px;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 750;
}
.view-tab::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--coral);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.view-tab.active { color: var(--ink); }
.view-tab.active::after { transform: scaleX(1); }
.tab-number { margin-right: 7px; color: #8aa0a3; font-size: 0.72rem; letter-spacing: 0.08em; }
.grammar-nav-link {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--ocean-800);
  background: rgba(85, 194, 184, 0.14);
  font-size: 0.72rem;
  font-weight: 820;
  text-decoration: none;
}
.grammar-nav-link:hover { color: white; background: var(--ocean-800); }

.filter-shell {
  border-bottom: 1px solid rgba(16, 42, 50, 0.09);
  background: #eef3ef;
}

.filters {
  width: min(var(--content), calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0 12px;
  display: grid;
  grid-template-columns: 0.75fr 1.5fr 1.15fr 0.8fr 1.4fr;
  gap: 12px;
  align-items: end;
}

.filters label { min-width: 0; }
.filters label > span:first-child, .filters output {
  display: block;
  margin: 0 0 6px 2px;
  color: #5f7479;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.filters select, .filters input[type="search"] {
  width: 100%;
  height: 43px;
  border: 1px solid #cbd6d2;
  border-radius: 9px;
  padding: 0 36px 0 12px;
  color: var(--ink);
  background: #fbfdf9;
}
.filters input[type="search"] { padding-right: 12px; cursor: text; }
.filters input[type="range"] { width: 100%; accent-color: var(--coral); }
.filters output { display: inline; margin-left: 4px; color: var(--coral); }

.view-control { grid-column: span 1; }
.check-control {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #cbd6d2;
  border-radius: 9px;
  background: #fbfdf9;
}
.check-control span { margin: 0 !important; color: var(--ink) !important; letter-spacing: 0 !important; text-transform: none !important; }
.check-control input { accent-color: var(--coral); }
.filters .phrase-aligned-control { min-width: 190px; gap: 7px; padding-inline: 10px; white-space: nowrap; }
.filters .likely-wrong-control { min-width: 190px; white-space: nowrap; }

.filter-status {
  width: min(var(--content), calc(100% - 44px));
  min-height: 28px;
  margin: 0 auto;
  color: #687d80;
  font-size: 0.78rem;
}

main {
  width: min(var(--content), calc(100% - 44px));
  margin: 0 auto;
}

.view { padding: 28px 0 90px; }
.section-kicker { color: #578f8a; margin-bottom: 8px; }

.transition-summary { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.summary-chip {
  padding: 9px 12px;
  border: 1px solid #d9ded7;
  border-radius: 999px;
  color: #4e656b;
  background: rgba(255, 253, 247, 0.8);
  font-size: 0.78rem;
}
.summary-chip strong { color: var(--ink); }

.diagram-key {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  color: #607478;
  font-size: 0.75rem;
}
.diagram-key span { display: flex; align-items: center; gap: 7px; }
.key-node { width: 18px; height: 18px; border: 2px solid var(--ocean-900); border-radius: 50%; background: var(--aqua); }
.key-edge { width: 28px; height: 3px; background: linear-gradient(90deg, #e85d75, #e8ad35, #25a69a, #695fc2); }
.key-edge.background { height: 3px; background: repeating-linear-gradient(90deg, var(--background-blue) 0 6px, transparent 6px 10px); }

.transition-diagrams { display: grid; gap: 22px; }
.theme-card {
  overflow: hidden;
  border: 1px solid #d8ded8;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(5, 31, 39, 0.055);
}
.theme-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 16px 22px;
  border-bottom: 1px solid #e5e4dc;
  background: linear-gradient(90deg, color-mix(in srgb, var(--theme-color) 12%, white), var(--paper) 48%);
}
.theme-heading { display: flex; align-items: center; gap: 12px; }
.theme-swatch { width: 12px; align-self: stretch; min-height: 38px; border-radius: 8px; background: var(--theme-color); }
.theme-card h3 { margin: 0; font-family: inherit; font-size: 1.55rem; font-weight: 750; }
.theme-card-header p { margin: 3px 0 0; color: var(--ink-soft); font-size: 0.76rem; }
.theme-card-stats { display: flex; gap: 7px; flex-wrap: wrap; justify-content: end; }
.theme-card-stats span { padding: 6px 9px; border-radius: 999px; background: rgba(9, 39, 49, 0.055); color: #607478; font-size: 0.7rem; }
.graph-scroll { overflow-x: auto; padding: 14px 10px 10px; }
.transition-svg { display: block; width: 100%; min-width: 780px; }
.transition-svg text { font-family: inherit; }
.transition-edge { fill: none; stroke-linecap: round; transition: opacity 150ms ease, stroke-width 150ms ease; }
.transition-edge.background-edge { stroke-dasharray: 8 6; }
.edge-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; }
.edge-label { font-size: 10.5px; font-weight: 750; fill: #52676b; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.state-node { cursor: pointer; }
.state-node circle { stroke: white; stroke-width: 4; filter: drop-shadow(0 3px 4px rgba(5, 31, 39, 0.16)); transition: transform 150ms ease, stroke 150ms ease; transform-box: fill-box; transform-origin: center; }
.state-node:hover circle, .state-node.focused circle { transform: scale(1.13); stroke: var(--ocean-950); }
.state-node text { fill: white; font-size: 12px; font-weight: 850; text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: rgba(0, 0, 0, 0.22); stroke-width: 2px; }
.node-count { fill: #6c8082 !important; stroke: none !important; font-size: 9px !important; font-weight: 700 !important; }
.empty-card { padding: 48px 24px; text-align: center; color: #718487; }

.hierarchy-key {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.hierarchy-key > div {
  display: grid;
  grid-template-columns: 8px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 12px 13px;
  border: 1px solid #d8ded8;
  border-radius: 12px;
  background: var(--paper);
}
.lane-swatch { grid-row: 1 / 3; width: 8px; border-radius: 8px; background: linear-gradient(#e85d75, #e8ad35, #25a69a, #695fc2); }
.lane-swatch.phrase { background: linear-gradient(#f3a8b4, #91d9ca, #b3a9ec); }
.lane-swatch.unit { background: linear-gradient(#f06d5f, #4c9db5, #755ab6); }
.lane-swatch.background { background: repeating-linear-gradient(135deg, var(--background-blue) 0 4px, #e7ecf6 4px 8px); }
.hierarchy-key strong { font-size: 0.8rem; }
.hierarchy-key small { margin-top: 2px; color: #738486; font-size: 0.68rem; }

.unit-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
}
.legend-unit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d7ddd7;
  border-radius: 999px;
  padding: 5px 9px 5px 6px;
  color: #4d6368;
  background: rgba(255, 253, 247, 0.82);
  font-size: 0.68rem;
}
.legend-unit:hover, .legend-unit.focused { border-color: var(--ink); color: var(--ink); background: white; }
.legend-unit i { width: 10px; height: 10px; border-radius: 50%; background: var(--unit-color); }

.recording-scores { display: grid; gap: 24px; }
.recording-card {
  border: 1px solid #d7ddd7;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.recording-card summary {
  list-style: none;
  min-height: 92px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  cursor: pointer;
}
.recording-card summary::-webkit-details-marker { display: none; }
.recording-card summary::after { content: "−"; grid-column: 3; grid-row: 1; width: 31px; height: 31px; display: grid; place-content: center; border: 1px solid #d2d9d4; border-radius: 50%; color: #607478; }
.recording-card:not([open]) summary::after { content: "+"; }
.year-badge { align-self: stretch; display: grid; place-content: center; min-width: 62px; border-radius: 12px; color: white; background: var(--ocean-800); font-weight: 850; }
.recording-title { min-width: 0; }
.recording-title h3 { margin: 0 0 7px; overflow: hidden; text-overflow: ellipsis; font-family: inherit; font-size: 1.23rem; font-weight: 750; white-space: nowrap; }
.recording-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; color: #64787b; font-size: 0.72rem; }
.recording-meta .background-meta { color: var(--background-blue); font-weight: 800; }
.play-recording {
  grid-column: 3;
  grid-row: 1;
  margin-right: 48px;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: white;
  background: var(--ocean-800);
  font-size: 0.72rem;
  font-weight: 750;
}
.recording-score-body { border-top: 1px solid #e4e6df; padding: 18px 14px 22px; }
.score-note { margin: 0 8px 14px; color: #65787b; font-size: 0.73rem; }
.staff-list { display: grid; gap: 13px; }
.staff-row { display: grid; grid-template-columns: 70px minmax(700px, 1fr); gap: 8px; overflow-x: auto; }
.staff-time { padding: 24px 7px 0 0; color: #597074; font-size: 0.7rem; font-variant-numeric: tabular-nums; text-align: right; }
.staff-row.no-ruler .staff-time { padding-top: 4px; }
.staff-time strong { display: block; color: var(--ink); font-size: 0.76rem; }
.staff-canvas { position: relative; min-width: 700px; border: 1px solid #d9ded8; border-radius: 10px; overflow: hidden; background: #fbfcf8; transition: border-color 120ms ease, box-shadow 120ms ease; }
.staff-row.playhead-row .staff-canvas { border-color: #376d75; box-shadow: 0 0 0 2px rgba(55, 109, 117, 0.14); }
.time-ruler { position: relative; height: 23px; border-bottom: 1px solid #dfe4de; background: #f2f4ee; }
.ruler-track { position: absolute; inset: 0 0 0 58px; }
.ruler-tick { position: absolute; bottom: 0; width: 1px; height: 8px; background: #9fb0ad; }
.ruler-tick span { position: absolute; left: 4px; bottom: 7px; color: #7b8d8e; font-size: 0.58rem; white-space: nowrap; }
.score-lane { position: relative; min-height: 25px; border-bottom: 1px solid #e5e8e1; background-image: linear-gradient(90deg, transparent 49.9%, rgba(90, 113, 115, 0.06) 50%, transparent 50.1%); }
.score-lane:last-child { border-bottom: 0; }
.lane-label {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 58px;
  min-height: 25px;
  border-right: 1px solid rgba(16, 42, 50, 0.12);
  color: #5d7276;
  background: rgba(249, 250, 246, 0.92);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.lane-track { position: absolute; inset: 0 0 0 58px; }
.score-block {
  position: absolute;
  top: 3px;
  height: 19px;
  min-width: 2px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  padding: 0 4px;
  color: white;
  background: var(--unit-color);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 19px;
  text-overflow: clip;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.13);
  cursor: pointer;
}
.score-block.theme-block { opacity: 0.95; }
.score-block.phrase-block {
  border-radius: 8px;
  color: #17313a;
  background: var(--phrase-color);
  box-shadow: inset 4px 0 var(--theme-color), inset 0 0 0 1px rgba(0, 0, 0, 0.13);
}
.score-block.background-block {
  background: repeating-linear-gradient(135deg, var(--unit-color) 0 5px, color-mix(in srgb, var(--unit-color) 62%, white) 5px 10px);
  box-shadow: inset 0 0 0 1px rgba(21, 43, 84, 0.55);
}
.score-block:hover, .score-block.focused { z-index: 9; outline: 3px solid rgba(6, 26, 34, 0.7); outline-offset: 1px; }
.score-block.unit-selected { z-index: 12; outline: 3px solid var(--coral); outline-offset: 1px; }
.score-block.likely-wrong {
  z-index: 10;
  outline: 3px solid #ffcf3f;
  outline-offset: 1px;
  box-shadow: inset 0 0 0 2px #6f351f, 0 0 0 5px rgba(255, 207, 63, 0.22);
}
.score-block.likely-wrong:hover { outline-color: #ffb51f; }
.score-block.playhead-active {
  z-index: 13;
  outline: 3px solid #071c24;
  outline-offset: 1px;
  filter: brightness(1.08) saturate(1.1);
  box-shadow: inset 0 0 0 2px white, 0 2px 7px rgba(6, 26, 34, 0.35);
}
.score-block.unit-selected.playhead-active { outline-color: var(--coral); }
.tooltip-warning { display: block; margin: 7px 0 3px; color: #ffd66a; font-weight: 850; }
.score-block.phrase-block.playhead-active { box-shadow: inset 4px 0 var(--theme-color), inset 0 0 0 2px white, 0 2px 7px rgba(6, 26, 34, 0.35); }
.score-block.search-muted { opacity: 0.12; filter: saturate(0.35); }
.score-block.search-muted:hover { opacity: 0.78; }
.unit-lane { min-height: 28px; }
.unit-lane .score-block { top: 3px; }
.playhead-track { position: absolute; z-index: 14; inset: 0 0 0 58px; overflow: hidden; pointer-events: none; }
.playhead-line { position: absolute; top: 0; bottom: 0; display: none; width: 2px; margin-left: -1px; background: var(--coral); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75); }
.playhead-line.active { display: block; }
.staff-list.phrase-aligned { gap: 6px; }
.staff-list.phrase-aligned .staff-row.theme-change:not(:first-child) { margin-top: 13px; }
.staff-list.phrase-aligned .staff-row.phrase-continuation .staff-canvas { border-left-style: dashed; }
.phrase-end-track { position: absolute; z-index: 7; inset: 0 0 0 58px; overflow: hidden; pointer-events: none; }
.phrase-end-line { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(16, 42, 50, 0.28); box-shadow: 1px 0 rgba(255, 255, 255, 0.75); }

.audit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.audit-card { min-height: 220px; padding: 22px; border: 1px solid #d8ded8; border-radius: var(--radius-lg); background: var(--paper); }
.audit-card .audit-icon { width: 42px; height: 42px; display: grid; place-content: center; margin-bottom: 20px; border-radius: 12px; color: white; background: var(--ocean-800); font-size: 1.2rem; }
.audit-card.background-audit .audit-icon { background: var(--background-blue); }
.audit-card h3 { margin: 0 0 9px; font-family: inherit; font-size: 1.45rem; font-weight: 750; }
.audit-card p { margin: 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.55; }
.audit-card strong { color: var(--ink); }
.audit-stat { display: block; margin: 13px 0 4px; font-size: 2rem; line-height: 1; }

.audit-panel { margin-top: 18px; overflow: hidden; border: 1px solid #d8ded8; border-radius: var(--radius-lg); background: var(--paper); }
.panel-heading { min-height: 90px; padding: 19px 22px; display: flex; align-items: end; justify-content: space-between; gap: 28px; border-bottom: 1px solid #e2e5de; }
.panel-heading h3 { margin: 0; font-family: inherit; font-size: 1.5rem; font-weight: 750; }
.panel-heading p:last-child { margin: 0; max-width: 650px; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.5; text-align: right; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
th { padding: 11px 14px; color: #708286; background: #f2f5f0; font-size: 0.65rem; letter-spacing: 0.07em; text-align: left; text-transform: uppercase; }
td { padding: 11px 14px; border-top: 1px solid #e8e9e3; color: #536b70; }
td strong { color: var(--ink); }
.table-bg-count { color: var(--background-blue); font-weight: 850; }
.source-ledger { display: grid; }
.source-row { padding: 15px 22px; display: grid; grid-template-columns: minmax(250px, 1.2fr) 0.55fr 1.8fr; gap: 18px; align-items: center; border-bottom: 1px solid #e8e9e3; }
.source-row:last-child { border-bottom: 0; }
.source-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-row span { color: #64787c; font-size: 0.76rem; }
.source-row code { overflow: hidden; color: #64787c; font-size: 0.68rem; text-overflow: ellipsis; white-space: nowrap; }

.audio-dock {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 15px;
  width: min(1100px, calc(100% - 30px));
  min-height: 78px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(280px, 1.25fr) auto;
  gap: 18px;
  align-items: center;
  padding: 12px 15px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: white;
  background: rgba(6, 26, 34, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}
.audio-copy { min-width: 0; }
.audio-copy > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-layer { margin-bottom: 4px; color: var(--aqua); font-size: 0.61rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.audio-copy strong { font-size: 0.85rem; }
.audio-copy #audioMeta { margin-top: 3px; color: #98afb1; font-size: 0.66rem; }
.audio-dock audio { width: 100%; height: 38px; }
.audio-actions { display: flex; gap: 7px; }
.audio-actions button {
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 9px;
  padding: 9px 11px;
  color: white;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.68rem;
}
.audio-actions button:disabled { opacity: 0.38; cursor: default; }
.audio-actions button.active, .audio-actions button[aria-pressed="true"] { border-color: var(--aqua); color: var(--ocean-950); background: var(--aqua); font-weight: 800; }

.tooltip {
  position: fixed;
  z-index: 200;
  max-width: 330px;
  padding: 11px 13px;
  border-radius: 10px;
  color: white;
  background: rgba(5, 26, 34, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  font-size: 0.7rem;
  line-height: 1.45;
}
.tooltip strong { display: block; margin-bottom: 3px; color: #fff; font-size: 0.78rem; }
.tooltip .tooltip-accent { color: var(--aqua); }
.tooltip .tooltip-background { color: #9cb5ef; }

@media (max-width: 1050px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
  .hierarchy-key { grid-template-columns: repeat(2, 1fr); }
  .audit-cards { grid-template-columns: 1fr; }
  .audio-dock { grid-template-columns: minmax(190px, 0.75fr) minmax(250px, 1fr) auto; }
}

@media (max-width: 760px) {
  body { padding-bottom: 170px; }
  .view-nav-inner, .filters, .filter-status, main { width: min(100% - 26px, var(--content)); }
  .view-nav-inner { min-height: 62px; overflow-x: auto; }
  .view-tab { padding: 0 13px; white-space: nowrap; font-size: 0.78rem; }
  .view-tab::after { left: 13px; right: 13px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search-label { grid-column: 1 / -1; }
  .view { padding-top: 42px; }
  .hierarchy-key { grid-template-columns: 1fr 1fr; }
  .theme-card-header { align-items: flex-start; flex-direction: column; }
  .theme-card-stats { justify-content: start; }
  .recording-card summary { grid-template-columns: 52px minmax(190px, 1fr); padding: 14px; }
  .recording-card summary::after { grid-column: 2; justify-self: end; }
  .play-recording { display: none; }
  .year-badge { min-width: 52px; }
  .source-row { grid-template-columns: 1fr; gap: 5px; }
  .audio-dock { min-height: 145px; grid-template-columns: 1fr; gap: 7px; bottom: 8px; }
  .audio-actions { justify-content: end; }
  .audio-copy #audioMeta { display: none; }
}

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