:root {
  --ink: #eef6f3;
  --muted: #91a19c;
  --dim: #61716c;
  --bg: #07100f;
  --panel: #0d1c19;
  --panel-soft: rgba(14, 29, 26, .84);
  --line: rgba(184, 222, 211, .14);
  --mint: #75e7bf;
  --mint-bright: #b2ffe5;
  --approved: #75e7b0;
  --rejected: #ff8179;
  --pending: #e8bd5c;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --sans: Inter, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html {
  min-width: 320px;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, rgba(62, 176, 140, .12), transparent 32%),
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 38px 38px, 38px 38px, auto;
  font-family: var(--sans);
  line-height: 1.35;
}
button, input, select { font: inherit; }
button, select, input[type="range"], input[type="checkbox"] { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, label:has(input:focus-visible) {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
button:disabled, input:disabled, select:disabled { cursor: wait; opacity: .55; }

.passphrase-gate {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: grid;
  place-items: center;
  overflow: auto;
}
.passphrase-gate[hidden] { display: none; }
.app-shell[hidden] { display: none; }
.passphrase-card {
  width: min(100%, 390px);
  padding: clamp(24px, 7vw, 34px);
  border: 1px solid rgba(117,231,191,.25);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(18,37,33,.98), rgba(8,18,16,.98));
  box-shadow: 0 24px 70px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.04);
}
.passphrase-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  padding: 9px;
  display: flex;
  align-items: end;
  gap: 4px;
  border: 1px solid rgba(117,231,191,.4);
  border-radius: 12px;
  background: rgba(117,231,191,.08);
}
.passphrase-mark i { flex: 1; border-radius: 2px; background: var(--mint); }
.passphrase-mark i:nth-child(1) { height: 45%; }
.passphrase-mark i:nth-child(2) { height: 100%; }
.passphrase-mark i:nth-child(3) { height: 70%; }
.passphrase-card h1 { margin: 5px 0 8px; font-size: clamp(23px, 7vw, 30px); line-height: 1.08; letter-spacing: -.035em; }
.passphrase-intro { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.passphrase-form { display: grid; gap: 9px; }
.passphrase-form label { color: var(--ink); font-size: 12px; font-weight: 700; }
.passphrase-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #07110f;
  font-size: 16px;
}
.passphrase-form button {
  min-height: 48px;
  margin-top: 3px;
  padding: 0 16px;
  border: 1px solid var(--mint);
  border-radius: 10px;
  color: #06110e;
  background: var(--mint);
  font-weight: 800;
}
.passphrase-form button:hover { background: var(--mint-bright); }
.passphrase-form button:disabled { cursor: wait; }
.passphrase-form button:disabled::after { content: "…"; }
.passphrase-form #passphraseError {
  min-height: 1.35em;
  margin: 2px 0 0;
  color: var(--rejected);
  font-size: 12px;
}
.passphrase-form #passphraseError[hidden] { display: block; visibility: hidden; }

.app-shell {
  width: min(100%, 1260px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 0px) clamp(10px, 2.3vw, 28px) env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.masthead {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: flex;
  align-items: end;
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(117,231,191,.34);
  border-radius: 9px;
  background: rgba(117,231,191,.07);
}
.brand-mark i { flex: 1; border-radius: 2px; background: var(--mint); }
.brand-mark i:nth-child(1) { height: 45%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 70%; }
.eyebrow, .control-label {
  margin: 0;
  color: var(--muted);
  font: 650 8px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .13em;
}
.brand h1 { margin: 2px 0 0; font-size: 16px; line-height: 1.15; letter-spacing: -.025em; }
.brand h1 span { color: var(--muted); font-weight: 450; }
.metrics {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin: 0 auto 0 0;
}
.metrics div { position: relative; display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 6px; }
.metrics div::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.metrics .approved::before { background: var(--approved); }
.metrics .rejected::before { background: var(--rejected); }
.metrics .pending::before { background: var(--pending); }
.metrics dt { grid-column: 2; color: var(--dim); font: 600 8px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.metrics dd { grid-row: 1; grid-column: 3; margin: 0; color: var(--ink); font: 600 13px var(--mono); }
.privacy-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--muted);
  font: 650 8px var(--mono);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.privacy-pill span { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

.playback-app {
  min-height: 0;
  padding: 8px 0 7px;
  display: grid;
  grid-template-rows: auto auto minmax(72px, 1fr) auto auto;
  gap: 7px;
  overflow: hidden;
}
.control-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr);
  grid-template-areas:
    "source transport readout"
    "context context counters";
  align-items: center;
  gap: 6px 12px;
  padding: 8px 10px 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(18,37,33,.94), rgba(10,22,20,.96));
}
.source-control { grid-area: source; display: flex; align-items: center; gap: 7px; }
.segmented { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: #07110f; }
.mode-button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.mode-button.active { color: #06110e; background: var(--mint); }
.transport { grid-area: transport; display: flex; align-items: center; gap: 6px; }
.play-button, .icon-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 750;
}
.play-button {
  min-width: 68px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #06110e;
  background: var(--mint);
  border-color: var(--mint);
}
.play-icon { width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 7px solid currentColor; }
.play-button.playing .play-icon { width: 7px; height: 9px; border: 0; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.icon-button { padding: 0 10px; color: var(--muted); background: rgba(255,255,255,.025); }
.speed-control { display: flex; align-items: center; gap: 5px; color: var(--dim); font: 650 8px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.speed-control select {
  min-height: 32px;
  padding: 0 24px 0 8px;
  appearance: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #07110f;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 11px) 13px, calc(100% - 7px) 13px;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  font: 650 10px var(--mono);
}
.timeline-readout {
  grid-area: readout;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
}
.timeline-readout time { overflow: hidden; color: var(--mint-bright); font: 550 12px var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.timeline-readout strong { color: var(--mint); font: 650 16px var(--mono); }
.window-context {
  grid-area: context;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  overflow: hidden;
}
.window-context > strong {
  flex: 0 0 auto;
  color: var(--mint-bright);
  font: 700 9px/1.25 var(--mono);
  white-space: nowrap;
}
.mode-note {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font: 9px/1.3 var(--sans);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cumulative-counters {
  grid-area: counters;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}
.cumulative-counters > span {
  min-height: 23px;
  padding: 3px 7px;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  border: 1px solid rgba(117,231,191,.22);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(5,16,13,.62);
  font: 650 9px var(--mono);
}
.cumulative-counters b { color: var(--ink); font-size: 8px; text-transform: uppercase; letter-spacing: .04em; }
.cumulative-counters strong { color: var(--mint-bright); font-size: 12px; }
.cumulative-counters i { color: var(--dim); font-style: normal; }
.cumulative-counters .moderated-counter { border-color: rgba(126,181,255,.22); }
.cumulative-counters .moderated-counter strong { color: #a7caff; }

.filter-bar {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.search-box { position: relative; flex: 1 1 auto; min-width: 120px; }
.search-box input {
  width: 100%;
  height: 36px;
  padding: 0 10px 0 33px;
  color: var(--ink);
  background: rgba(9,20,18,.88);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.search-box input::placeholder { color: var(--dim); }
.search-icon { position: absolute; left: 12px; top: 10px; width: 12px; height: 12px; border: 1.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 5px; height: 1px; right: -4px; bottom: -2px; background: var(--muted); transform: rotate(45deg); }
.status-filters { flex: 0 0 auto; display: flex; gap: 5px; margin: 0; padding: 0; border: 0; }
.status-toggle {
  min-height: 36px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--dim);
  background: rgba(9,20,18,.68);
  font: 650 8px var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}
.status-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.status-toggle span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-toggle:has(input:checked) { color: var(--ink); background: rgba(255,255,255,.045); }
.status-toggle.approved:has(input:checked) span { background: var(--approved); box-shadow: 0 0 7px var(--approved); }
.status-toggle.rejected:has(input:checked) span { background: var(--rejected); box-shadow: 0 0 7px var(--rejected); }
.status-toggle.pending:has(input:checked) span { background: var(--pending); box-shadow: 0 0 7px var(--pending); }

.feed-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8,18,16,.64);
}
.feed-heading {
  min-height: 30px;
  padding: 5px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.feed-heading > div { display: flex; align-items: center; gap: 7px; }
.feed-heading h2 { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px var(--mint); }
.feed-heading p { margin: 0; overflow: hidden; color: var(--dim); font: 9px var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.feed-heading strong { color: var(--mint); font-weight: 700; }
.feed-window { position: relative; min-height: 0; overflow: hidden; }
.message-list {
  height: 100%;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(117,231,191,.32) transparent;
  scrollbar-width: thin;
}
.message-card {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid rgba(184,222,211,.09);
  border-radius: 9px;
  background: rgba(17,34,30,.72);
  animation: reveal .16s both;
}
.message-card.latest {
  border-color: rgba(117,231,191,.7);
  background: linear-gradient(90deg, rgba(117,231,191,.15), rgba(17,34,30,.9));
  box-shadow: inset 3px 0 var(--mint), 0 0 16px rgba(117,231,191,.08);
}
.message-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.status-badge { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; font-size: 0; }
.message-card.approved .status-badge { color: var(--approved); }
.message-card.rejected .status-badge { color: var(--rejected); }
.message-card.pending .status-badge { color: var(--pending); }
.sequence { color: var(--dim); font: 650 8px var(--mono); }
.timeline-stamp { margin-left: auto; overflow: hidden; color: var(--dim); font: 8px var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.message-text { margin: 3px 0 2px; color: #edf6f2; font-size: 11px; line-height: 1.28; white-space: pre-wrap; overflow-wrap: anywhere; }
.identity { color: var(--muted); font-size: 9px; }
.identity span + span::before { content: " · "; color: var(--dim); }
.empty-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 12px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  background: rgba(8,18,16,.94);
}
.empty-state[hidden] { display: none; }
.empty-state > span { color: var(--mint); font-size: 24px; line-height: 1; }
.empty-state h3 { margin: 3px 0 1px; color: var(--ink); font-size: 12px; }
.empty-state p { margin: 0; font-size: 9px; }

.chart-grid { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.activity-chart {
  --chart-color: var(--mint);
  --cursor: 0%;
  --launch-position: 22.8611%;
  min-width: 0;
  margin: 0;
  padding: 6px 8px 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-soft);
}
.activity-chart.moderated-chart { --chart-color: #7eb5ff; }
.activity-chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.activity-chart figcaption span { color: var(--ink); font: 700 9px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.activity-chart figcaption strong { overflow: hidden; color: var(--muted); font: 8px var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.chart-plot { position: relative; height: 42px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.14); background: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px); background-size: 100% 14px; }
.chart-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-plot rect { fill: var(--chart-color); opacity: .52; vector-effect: non-scaling-stroke; }
.chart-launch-marker {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--launch-position);
  width: 0;
  border-left: 1px dashed #ffc86b;
  color: #ffd991;
  font-style: normal;
  pointer-events: none;
}
.chart-launch-marker::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: 1px;
  width: 5px;
  height: 5px;
  background: #ffc86b;
  transform: rotate(45deg);
}
.chart-launch-marker span {
  position: absolute;
  top: 1px;
  left: 3px;
  padding: 1px 3px;
  border-radius: 3px;
  color: #ffe4ad;
  background: rgba(40, 28, 8, .88);
  font: 700 7px/1.3 var(--mono);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.chart-cursor {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--cursor);
  width: 1px;
  background: var(--mint-bright);
  box-shadow: 0 0 7px rgba(178,255,229,.7);
  pointer-events: none;
}
.chart-cursor span { position: absolute; top: 0; left: 50%; width: 6px; height: 6px; border: 1px solid #0b1815; border-radius: 50%; background: var(--mint-bright); transform: translate(-50%, -1px); }

.timeline-dock {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(117,231,191,.35);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(21,44,38,.98), rgba(9,22,19,.99));
  box-shadow: 0 -8px 28px rgba(0,0,0,.17), inset 0 1px rgba(255,255,255,.035);
}
.timeline-meta { min-height: 23px; padding: 4px 9px 0; display: flex; justify-content: space-between; align-items: center; color: var(--dim); font: 8px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.timeline-meta strong { color: var(--mint); font-size: 10px; }
.timeline-surface {
  --launch-position: 22.8611%;
  position: relative;
  min-height: 52px;
  padding: 7px 10px 5px;
  display: grid;
  align-content: center;
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
}
.timeline-launch-marker {
  position: absolute;
  z-index: 3;
  top: 1px;
  bottom: 4px;
  left: var(--launch-position);
  width: 0;
  border-left: 1px dashed #ffc86b;
  color: #ffe4ad;
  pointer-events: none;
}
.timeline-launch-marker::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: 0;
  width: 5px;
  height: 5px;
  background: #ffc86b;
  transform: rotate(45deg);
}
.timeline-launch-marker span {
  position: absolute;
  top: 0;
  left: 4px;
  padding: 1px 4px;
  border: 1px solid rgba(255, 200, 107, .3);
  border-radius: 4px;
  color: #ffe4ad;
  background: rgba(40, 28, 8, .94);
  font: 700 8px/1.35 var(--mono);
  white-space: nowrap;
}
input[type="range"] {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: ew-resize;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint) var(--range, 0%), rgba(255,255,255,.14) var(--range, 0%));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
input[type="range"]::-moz-range-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,.14); }
input[type="range"]::-moz-range-progress { height: 7px; border-radius: 999px; background: var(--mint); }
input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -6.5px;
  appearance: none;
  border: 4px solid #0c201b;
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 0 2px var(--mint), 0 0 16px rgba(117,231,191,.5);
}
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #0c201b; border-radius: 50%; background: var(--mint-bright); box-shadow: 0 0 0 2px var(--mint); }
.range-labels { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; color: var(--dim); font: 7px var(--mono); pointer-events: none; }
.range-labels time:last-child { text-align: right; }
.range-labels span { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes reveal { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .app-shell { padding-left: 8px; padding-right: 8px; }
  .masthead { min-height: 54px; gap: 9px; }
  .brand { min-width: 0; margin-right: auto; }
  .brand h1 { font-size: 14px; }
  .brand h1 span { display: block; font-size: 10px; }
  .brand-mark { width: 29px; height: 29px; }
  .eyebrow, .privacy-pill { display: none; }
  .metrics { margin: 0; gap: 6px; }
  .metrics div { display: flex; flex-direction: column-reverse; align-items: center; gap: 1px; }
  .metrics div::before, .metrics dt { display: none; }
  .metrics dd { margin: 0; font-size: 10px; }
  .metrics .approved dd { color: var(--approved); }
  .metrics .rejected dd { color: var(--rejected); }
  .metrics .pending dd { color: var(--pending); }
  .playback-app { padding-top: 6px; padding-bottom: 5px; gap: 5px; }
  .control-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "source transport"
      "readout readout"
      "context counters";
    gap: 4px 7px;
    padding: 6px 7px 5px;
    border-radius: 11px;
  }
  .source-control .control-label, .speed-control span { display: none; }
  .mode-button { min-height: 30px; padding: 0 8px; font-size: 9px; }
  .transport { justify-content: flex-end; }
  .play-button, .icon-button, .speed-control select { min-height: 30px; }
  .play-button { min-width: 58px; padding: 0 7px; font-size: 9px; }
  .icon-button { padding: 0 7px; font-size: 9px; }
  .speed-control select { width: 52px; padding-left: 6px; font-size: 9px; }
  .timeline-readout { grid-template-columns: auto minmax(0,1fr) auto; gap: 5px; }
  .timeline-readout time { font-size: 10px; }
  .timeline-readout strong { font-size: 12px; }
  .window-context { display: block; line-height: 1.05; }
  .window-context > strong { display: block; overflow: hidden; font-size: 7px; text-overflow: ellipsis; }
  .mode-note { font-size: 7px; line-height: 1.15; }
  .cumulative-counters { gap: 3px; }
  .cumulative-counters > span { min-height: 22px; padding: 2px 5px; gap: 2px; font-size: 8px; }
  .cumulative-counters b { font-size: 7px; }
  .cumulative-counters strong { font-size: 10px; }
  .filter-bar { gap: 5px; }
  .search-box input { height: 34px; font-size: 16px; }
  .search-icon { top: 9px; }
  .status-filters { gap: 3px; }
  .status-toggle { width: 34px; min-height: 34px; padding: 0; justify-content: center; border-radius: 9px; }
  .status-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .status-toggle span { width: 8px; height: 8px; }
  .feed-panel { border-radius: 11px; }
  .feed-heading { min-height: 27px; padding: 4px 7px; }
  .feed-heading h2 { font-size: 9px; }
  .feed-heading p { max-width: 68%; font-size: 8px; }
  .message-list { padding: 4px; gap: 3px; }
  .message-card { padding: 5px 7px; border-radius: 8px; }
  .message-text { font-size: 10px; line-height: 1.23; }
  .identity, .timeline-stamp, .sequence { font-size: 7px; }
  .chart-grid { gap: 5px; }
  .activity-chart { padding: 5px 6px 6px; border-radius: 10px; }
  .activity-chart figcaption { margin-bottom: 2px; }
  .activity-chart figcaption span { font-size: 8px; }
  .activity-chart figcaption strong { font-size: 7px; }
  .chart-plot { height: 34px; background-size: 100% 11px; }
  .timeline-dock { border-radius: 11px; }
  .timeline-meta { min-height: 20px; padding-top: 3px; }
  .timeline-surface { min-height: 48px; padding: 4px 8px; }
  .range-labels { font-size: 6px; }
}

@media (max-width: 380px) {
  .brand h1 span { display: none; }
  .brand-mark { width: 27px; height: 27px; }
  .metrics div:first-child { display: none; }
  .mode-button { padding: 0 6px; }
  .play-button { min-width: 31px; }
  #playLabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .drag-hint { display: none; }
}

@media (max-height: 680px) and (max-width: 760px) {
  .masthead { min-height: 47px; }
  .playback-app { padding-top: 4px; gap: 4px; }
  .control-strip { padding-top: 4px; padding-bottom: 4px; }
  .mode-note { min-height: 10px; line-height: 1.1; }
  .search-box input, .status-toggle { height: 31px; min-height: 31px; }
  .search-icon { top: 8px; }
  .feed-heading { min-height: 24px; }
  .chart-plot { height: 27px; }
  .activity-chart { padding-top: 3px; padding-bottom: 4px; }
  .timeline-meta { min-height: 18px; }
  .timeline-surface { min-height: 43px; padding-top: 2px; padding-bottom: 3px; }
}

@media (min-width: 761px) {
  .message-card { max-width: 82%; }
  .message-card:nth-child(even) { margin-left: 5%; }
  .message-card.latest { max-width: 88%; }
}

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