:root {
  color-scheme: dark;
  --ink: #e8e8e8;
  --quiet: #8e8e8e;
  --line: #3a3a3a;
  --panel: #1b1b1b;
  --amber: #d7b768;
  --green: #a6d94f;
  --blue: #86bfd9;
  --danger: #e06969;
  --feed-bg: #171717;
  --feed-panel: #1b1b1b;
  --feed-raised: #202020;
  --feed-line: #3a3a3a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--feed-bg);
}

.summary-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.app-topbar {
  position: sticky; top: 0; z-index: 50; height: 54px;
  display: flex; align-items: center; gap: 18px; padding: 0 14px;
  border-bottom: 1px solid var(--feed-line); background: var(--feed-bg);
}
.brand { color: var(--ink); text-decoration: none; font: 500 22px/1 Georgia, serif; letter-spacing: -.03em; }
.view-switcher { display: flex; align-items: center; gap: 4px; margin-left: auto; height: 100%; }
.view-tab { height: 28px; padding: 0 9px; color: #aaa; border-color: transparent; }
.view-tab:hover { color: var(--ink); border-color: var(--feed-line); }
.view-tab.is-selected { color: var(--ink); background: #2d2d2d; border-color: #474747; }
h1 { margin: 4px 0 10px; font: 500 clamp(36px, 6vw, 60px)/1 Georgia, serif; }
h2 { margin: 4px 0 0; font: 500 22px/1.2 Georgia, serif; }
.subtitle, .quiet { color: var(--quiet); }
.subtitle { max-width: 620px; margin: 0; line-height: 1.6; }
.eyebrow { margin: 0; color: var(--amber); font-size: 11px; letter-spacing: .18em; }
.status-pill { padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--amber); font-size: 10px; }
.status-pill.active { color: var(--green); border-color: rgba(122,215,168,.35); }
.summary-shell { padding: 24px 0 64px; }
.summary-intro { padding: 20px 0 28px; border-bottom: 1px solid var(--line); }
.summary-intro + .hero-grid { margin-top: 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr 260px; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 14px; }
.graph-memory-panel { margin-top: 12px; }
.panel-heading, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.panel-heading { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.statements { padding-top: 18px; display: grid; gap: 8px; }
.statement::before { content: "↳"; margin-right: 10px; color: var(--green); }
.uncertainty { margin: 20px 0 0; color: var(--amber); line-height: 1.5; }
.metric-panel { display: flex; flex-direction: column; justify-content: center; }
.metric-label { color: var(--quiet); }
.metric { margin: 6px 0; font: 500 54px/1 Georgia, serif; color: var(--blue); }
section + section { margin-top: 38px; }
.section-title { margin-bottom: 17px; }
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.master-toggle { width: 100%; margin: 0 0 12px; padding: 12px; border: 1px solid #607d36; border-radius: 3px; background: #1b2117; color: var(--green); font: 700 12px/1.2 ui-monospace, monospace; letter-spacing: .04em; cursor: pointer; }
.master-toggle.is-stopping { border-color: #ec8d86; background: rgba(236, 141, 134, .12); color: #ec8d86; }
.master-toggle:disabled { opacity: .55; cursor: wait; }
.plugin-card { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 12px; }
.plugin-top { display: flex; justify-content: space-between; gap: 12px; }
.plugin-state { color: var(--green); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.plugin-state.state-degraded, .plugin-state.state-unavailable { color: var(--amber); }
.plugin-state.state-failed { color: #ec8d86; }
.capabilities { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 12px; }
.capability { padding: 5px 7px; background: rgba(124,183,214,.1); color: var(--blue); border-radius: 5px; font-size: 11px; }
.health { color: var(--green); font-size: 12px; }
.privacy { color: var(--quiet); font-size: 12px; line-height: 1.5; min-height: 3.6em; }
.observation-list { display: grid; gap: 10px; }
.transcript-list { display: grid; gap: 10px; }
.transcript { padding: 12px 14px; border-left: 2px solid var(--green); border-radius: 0; background: var(--panel); }
.transcript time { color: var(--quiet); font-size: 12px; }
.transcript p { margin: 10px 0 0; color: var(--ink); font: 400 17px/1.6 Georgia, serif; white-space: pre-wrap; }
.transcript-empty { margin: 0; padding: 12px 14px; color: var(--quiet); border: 1px dashed var(--line); border-radius: 0; }
.observation { display: grid; grid-template-columns: 170px 1fr auto; gap: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); }
.observation-kind { color: var(--blue); }
.observation-time, .observation-confidence { color: var(--quiet); font-size: 12px; }
button { color: var(--ink); background: #202020; border: 1px solid var(--line); border-radius: 3px; padding: 5px 8px; font: inherit; cursor: pointer; }
button:hover { border-color: #777; }

[hidden] { display: none !important; }

/* Dense live feed: edge-to-edge and intentionally distinct from Summary. */
.live-feed-shell {
  width: 100%; min-height: calc(100vh - 60px); margin: 0; padding: 10px;
  background: var(--feed-bg); color: #ececec;
}
.sensor-stack { display: flex; flex-direction: column; gap: 10px; }
.sensor-panel {
  min-width: 0; overflow: hidden; border: 1px solid var(--feed-line);
  border-radius: 7px; background: var(--feed-panel); box-shadow: 0 1px 0 rgba(255,255,255,.025) inset;
}
.sensor-panel-header {
  height: 62px; min-height: 62px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--feed-line);
}
.sensor-controls, .sensor-controls * { cursor: pointer; }
.sensor-title-block { min-width: 0; }
.sensor-name-row { display: flex; align-items: center; gap: 10px; }
.sensor-name-row h2 { margin: 0; font: 500 16px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.sensor-index { color: #6d6d6d; font-size: 10px; }
.sensor-recent-meta { margin: 5px 0 0 28px; overflow: hidden; color: #919191; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sensor-controls { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.icon-button { width: 30px; height: 30px; padding: 0; border-color: #414141; color: #a8a8a8; }
.sensor-toggle { min-width: 92px; height: 32px; padding: 0 10px; border-color: #4b4b4b; color: #a5a5a5; font-size: 10px; }
.sensor-toggle.is-active { border-color: #536b35; background: #1b2117; color: var(--green); }
.sensor-toggle.is-degraded, .sensor-toggle.is-unavailable { border-color: rgba(240,179,92,.35); color: var(--amber); }
.sensor-toggle.is-failed { border-color: rgba(236,141,134,.35); color: var(--danger); }
.sensor-toggle:disabled { opacity: .5; cursor: wait; }
.sensor-panel-body { height: calc(100% - 62px); padding: 10px; }
.video-feed-grid, .audio-feed-grid { display: flex; }
.video-feed-grid { height: 100%; }
.media-stage { position: relative; min-width: 0; overflow: hidden; border: 1px solid #393939; border-radius: 4px; background: #0b0b0b; }
.video-stage { height: 100%; min-height: 0; }
#camera-preview { width: 100%; height: 100%; display: block; object-fit: cover; transform: scaleX(-1); }
.camera-aspect-frame.is-raw-hidden #camera-preview { visibility: hidden; }
#camera-gpu-preview { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: none; transform: scaleX(-1); }
#camera-gpu-preview.is-active { display: block; }
#camera-annotations { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.media-placeholder, .plot-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 24px; color: #858585; text-align: center;
  background: radial-gradient(circle at 50% 45%, #191919, #0b0b0b 70%);
}
.media-placeholder button, .plot-placeholder button { background: #2b2b2b; border-color: #555; }
.media-hud {
  position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex;
  align-items: center; justify-content: space-between; gap: 20px; padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.13); border-radius: 3px; color: #d9d9d9;
  background: rgba(10,10,10,.72); backdrop-filter: blur(10px); font-size: 9px; letter-spacing: .06em;
}
#camera-live-indicator { color: #8c8c8c; }
#camera-live-indicator.is-live { color: var(--green); }
.event-rail { min-height: 0; border: 1px solid #393939; border-radius: 4px; background: #1b1b1b; overflow: hidden; }
.camera-event-rail { height: 100%; max-height: none; overflow-y: auto; }
.rail-heading {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; min-height: 36px; padding: 0 10px; border-bottom: 1px solid #393939;
  color: #cdcdcd; background: #202020; font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
}
.metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #363636; border-bottom: 1px solid #393939; }
.metadata-cell { min-width: 0; padding: 9px 10px; background: #202020; }
.metadata-cell span { display: block; color: #797979; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.metadata-cell strong { display: block; margin-top: 4px; overflow: hidden; color: #e0e0e0; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.event-list { min-height: 0; }
.feed-event { display: grid; grid-template-columns: 58px 1fr; gap: 8px; padding: 8px 10px; border-bottom: 1px dotted #343434; }
.feed-event time { color: #747474; font-size: 9px; }
.feed-event strong { display: block; color: #cfcfcf; font-size: 10px; font-weight: 500; }
.feed-event p { margin: 3px 0 0; color: #858585; font-size: 9px; line-height: 1.45; }
.empty-feed { margin: 0; padding: 16px 10px; color: #737373; font-size: 10px; }

.audio-visuals { min-height: 0; height: 100%; }
.signal-plot { position: relative; min-height: 0; margin: 0; overflow: hidden; border: 1px solid #393939; border-radius: 4px; background: #0d0f0e; }
.signal-plot figcaption {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 32px; display: flex;
  align-items: center; justify-content: space-between; padding: 0 9px; border-bottom: 1px solid rgba(255,255,255,.08);
  color: #8d8d8d; background: rgba(18,18,18,.78); font-size: 9px; letter-spacing: .07em; text-transform: uppercase;
}
.spectrogram-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.spectrogram-controls label { display: inline-flex; align-items: center; gap: 4px; color: #858585; cursor: default; }
.spectrogram-controls input[type="range"] {
  width: 58px; height: 12px; margin: 0; padding: 0; accent-color: var(--green); cursor: ew-resize;
}
.spectrogram-controls output { min-width: 24px; color: var(--green); font-variant-numeric: tabular-nums; text-align: right; }
.signal-plot canvas { width: 100%; height: 100%; display: block; }
.plot-placeholder { top: 32px; z-index: 3; }
.spectrogram-axis {
  position: absolute; z-index: 2; top: 40px; right: 6px; bottom: 8px; display: flex;
  flex-direction: column; justify-content: space-between; pointer-events: none;
  color: rgba(255,255,255,.42); font-size: 7px; text-align: right;
}
.audio-bandpass-overlay {
  --high-cutoff-y: 0%; --low-cutoff-y: 99%;
  position: absolute; z-index: 1; inset: 27px 0 0; pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(7, 9, 8, .76) 0 var(--high-cutoff-y),
      transparent var(--high-cutoff-y) var(--low-cutoff-y),
      rgba(7, 9, 8, .76) var(--low-cutoff-y) 100%);
}
.audio-bandpass-overlay.is-disabled { opacity: .18; }
.audio-bandpass-overlay span { position: absolute; left: 0; right: 0; height: 1px; border-top: 1px solid rgba(166,217,79,.86); }
.audio-bandpass-overlay span b { position: absolute; right: 35px; bottom: 2px; padding: 1px 3px; color: #a6d94f; background: rgba(8,10,9,.78); font-size: 6px; font-weight: 500; text-transform: uppercase; }
.bandpass-high-line { top: var(--high-cutoff-y); }
.bandpass-low-line { top: var(--low-cutoff-y); }
.audio-event-rail { height: 100%; max-height: none; }
.rail-section { min-height: 0; overflow-y: auto; }
.feed-transcript { padding: 9px 10px 10px; border-bottom: 1px dotted #343434; }
.feed-transcript time { color: #777; font-size: 9px; }
.feed-transcript p { margin: 5px 0 0; color: #d8d8d8; font: 400 13px/1.45 Georgia, serif; white-space: pre-wrap; }
.feed-transcript .speaker-label { margin-top: 5px; color: var(--blue); font-size: 9px; }

@media (max-width: 760px) {
  .app-topbar { gap: 10px; padding: 0 10px; }
  .status-pill { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .panel-heading, .section-title { align-items: start; flex-direction: column; gap: 8px; }
  .observation { grid-template-columns: 1fr; gap: 6px; }
  .sensor-panel-header { height: auto; align-items: start; flex-direction: column; }
  .sensor-controls { width: 100%; justify-content: flex-end; }
  .video-feed-grid, .audio-feed-grid { grid-template-columns: 1fr; }
  .video-feed-grid { height: auto; }
  .video-stage { min-height: 55vw; aspect-ratio: 16 / 9; }
  .camera-event-rail, .audio-event-rail { max-height: none; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .video-feed-grid, .audio-feed-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* July dock tree — the same compact interaction grammar as Οὐροβόρος. */
.live-feed-shell {
  width: 100%; height: 100vh; min-height: 560px; margin: 0; padding: 8px;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--feed-bg); color: var(--ink);
}
.sensor-workspace { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; gap: 6px; }
.sensor-workspace[data-menu-edge="top"] { flex-direction: column; }
.sensor-workspace[data-menu-edge="bottom"] { flex-direction: column-reverse; }
.sensor-workspace[data-menu-edge="left"] { flex-direction: row; }
.sensor-workspace[data-menu-edge="right"] { flex-direction: row-reverse; }
.sensor-stack { flex: 1 1 auto; min-width: 0; min-height: 0; display: block; overflow: hidden; }
.sensor-stack > .dock-leaf,
.sensor-stack > .dock-split { width: 100%; height: 100%; }
.sensor-workspace.is-panel-fullscreen .sensor-stack > .dock-leaf {
  position: relative; inset: auto; display: block; min-width: 0; min-height: 0;
}
.sensor-workspace.is-panel-fullscreen .sensor-stack > .dock-leaf > .sensor-panel {
  width: 100%; height: 100%; min-width: 0; min-height: 0;
}

.sensor-panel-menu {
  flex: 0 0 auto; display: flex; align-items: center; gap: 5px;
  min-width: 0; padding: 4px; border: 1px solid var(--line);
  background: var(--panel); cursor: grab; user-select: none;
}
.sensor-panel-menu.is-dragging { cursor: grabbing; outline: 1px solid var(--green); }
.panel-menu-grip { display: inline-flex; align-items: center; justify-content: center; color: var(--quiet); font-size: 10px; letter-spacing: -2px; padding: 0 2px; }
.panel-menu-label { flex: 0 0 auto; color: #bdbdbd; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.panel-menu-controls {
  flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; gap: 4px;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: #414141 transparent;
}
.panel-menu-button, .panel-menu-reset { flex: 0 0 auto; min-height: 24px; padding: 3px 7px; font-size: 9px; white-space: nowrap; }
.panel-menu-button.is-hidden.sensor-off { color: #777; border-color: #343434; background: #242424; }
.panel-menu-button.is-hidden.sensor-on { color: #82aa68; border-color: #35572e; background: #192a18; }
.panel-menu-button.is-visible.sensor-off { color: #f0f0f0; border-color: #858585; background: #5b5b5b; }
.panel-menu-button.is-visible.sensor-on { color: #f0ffd8; border-color: var(--green); background: #45671f; }
.panel-menu-button.is-hidden.sensor-unavailable { color: #a85b5b; border-color: #512929; background: #291818; }
.panel-menu-button.is-visible.sensor-unavailable { color: #fff0f0; border-color: #ff7777; background: #8b2f2f; }
.panel-menu-button.is-fullscreen { border-width: 2px; border-color: #efffcf; box-shadow: 0 0 8px rgba(190,255,104,.75); font-weight: 800; }
.panel-menu-button:hover { filter: brightness(1.16); }
.panel-menu-hint { margin-left: auto; color: #686868; font-size: 8px; white-space: nowrap; }
.panel-menu-reset { color: var(--quiet); }
.logging-toggle { min-width: 104px; font-weight: 700; letter-spacing: .04em; }
.logging-toggle.is-enabled { color: var(--green); border-color: #536b35; background: #1b2117; }
.logging-toggle.is-disabled { color: var(--amber); border-color: #7a6532; background: #292315; }
.logging-toggle:disabled { opacity: .55; cursor: wait; }
.sensor-workspace[data-menu-edge="left"] .logging-toggle,
.sensor-workspace[data-menu-edge="right"] .logging-toggle { width: 100%; margin-top: auto; }
.sensor-workspace[data-menu-edge="left"] .sensor-panel-menu,
.sensor-workspace[data-menu-edge="right"] .sensor-panel-menu {
  width: 124px; max-width: 124px; height: 100%; align-items: stretch; flex-direction: column;
}
.sensor-workspace[data-menu-edge="left"] .panel-menu-controls,
.sensor-workspace[data-menu-edge="right"] .panel-menu-controls { flex-direction: column; flex-wrap: nowrap; }
.sensor-workspace[data-menu-edge="left"] .panel-menu-button,
.sensor-workspace[data-menu-edge="right"] .panel-menu-button { width: 100%; text-align: left; }
.sensor-workspace[data-menu-edge="left"] .panel-menu-hint,
.sensor-workspace[data-menu-edge="right"] .panel-menu-hint { margin: auto 0 0; white-space: normal; }

.dock-split { display: flex; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.dock-split.horizontal { flex-direction: row; }
.dock-split.vertical { flex-direction: column; }
.dock-split > .dock-leaf, .dock-split > .dock-split { min-width: 0; min-height: 0; overflow: hidden; }
.dock-leaf { position: relative; min-width: 0; min-height: 0; overflow: hidden; container-type: inline-size; }
.dock-divider { flex: 0 0 6px; position: relative; z-index: 30; background: #202020; touch-action: none; }
.dock-split.horizontal > .dock-divider { cursor: col-resize; }
.dock-split.vertical > .dock-divider { cursor: row-resize; }
.dock-divider::after { content: ""; position: absolute; background: var(--line); }
.dock-split.horizontal > .dock-divider::after { top: 0; bottom: 0; left: 2px; width: 2px; }
.dock-split.vertical > .dock-divider::after { left: 0; right: 0; top: 2px; height: 2px; }
.dock-divider:hover::after, .split-dragging .dock-divider::after { background: var(--green); }
.panel-dragging, .panel-dragging * { user-select: none !important; }
.panel-drag-source { opacity: .48; }
.panel-drop-target::before {
  content: ""; position: absolute; z-index: 50; pointer-events: none;
  background: color-mix(in srgb, var(--green) 22%, transparent); border: 1px solid var(--green);
}
.panel-drop-target.drop-left::before { inset: 0 50% 0 0; }
.panel-drop-target.drop-right::before { inset: 0 0 0 50%; }
.panel-drop-target.drop-top::before { inset: 0 0 50% 0; }
.panel-drop-target.drop-bottom::before { inset: 50% 0 0 0; }
.dock-empty { height: 100%; display: grid; place-items: center; border: 1px dashed var(--line); color: var(--quiet); font-size: 10px; }

.sensor-panel {
  width: 100%; height: 100%; min-width: 0; display: flex; flex-direction: column;
  overflow: hidden; border: 1px solid var(--feed-line); border-radius: 0;
  background: var(--feed-panel); box-shadow: none;
}
.sensor-panel-header {
  flex: 0 0 28px; height: 28px; min-height: 28px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; padding: 0 4px 0 7px;
  border-bottom: 1px solid var(--feed-line); cursor: grab; touch-action: none;
}
.sensor-panel-header:active, .panel-dragging .sensor-panel-header { cursor: grabbing; }
.sensor-title-block { min-width: 0; display: flex; align-items: center; gap: 9px; overflow: hidden; }
.sensor-name-row { flex: 0 1 auto; min-width: 0; gap: 5px; }
.sensor-name-row h2 { margin: 0; overflow: hidden; font: 500 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.sensor-index { color: #676767; font-size: 7px; }
.sensor-recent-meta { min-width: 0; margin: 0; overflow: hidden; color: #777; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.sensor-controls { gap: 4px; }
.icon-button { width: 28px; height: 28px; padding: 0; border-top: 0; border-bottom: 0; font-size: 9px; }
.fullscreen-button[aria-pressed="true"] { color: var(--green); background: #263918; }
.layout-saved-flash { outline: 1px solid var(--green); box-shadow: 0 0 9px rgba(166,217,79,.55); }
.sensor-toggle { min-width: 76px; height: 28px; padding: 0 7px; border-top: 0; border-bottom: 0; font-size: 8px; }
.sensor-toggle.is-active { border-color: #536b35; background: #1b2117; color: var(--green); }
.sensor-panel-body { flex: 1 1 auto; min-height: 0; height: auto; padding: 6px; overflow: hidden; }
.summary-panel-body { overflow: hidden; }
.summary-panel-content {
  width: 100%; height: 100%; margin: 0; padding: 18px; overflow: auto;
  scrollbar-color: #4d4d4d transparent;
}

.generic-sensor-body {
  display: grid; grid-template-columns: minmax(210px, .72fr) minmax(260px, 1.28fr);
  gap: 6px; overflow: hidden;
}
.generic-sensor-body.sensor-subdock { display: block; }
.generic-overview, .generic-event-rail { min-width: 0; min-height: 0; border: 1px solid var(--line); background: var(--feed-panel); }
.generic-overview { display: flex; flex-direction: column; }
.generic-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.telemetry-history {
  flex: 1 1 150px; min-height: 126px; display: flex; flex-direction: column;
  overflow: hidden; border-top: 1px solid var(--line); background: #101210;
}
.telemetry-history-heading {
  flex: 0 0 25px; min-height: 25px; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 0 7px; color: #898989; background: #1c1e1c;
  font-size: 7px; letter-spacing: .08em; text-transform: uppercase;
}
.telemetry-history-heading span:last-child { color: #68715f; font-variant-numeric: tabular-nums; }
.telemetry-legend {
  flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  min-height: 23px; padding: 4px 7px; border-top: 1px solid #272927; border-bottom: 1px solid #292b29;
  color: #8c8c8c; font-size: 7px; line-height: 1.35;
}
.telemetry-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.telemetry-legend i { width: 9px; height: 2px; background: var(--series-color); box-shadow: 0 0 5px color-mix(in srgb, var(--series-color) 35%, transparent); }
.telemetry-legend strong { color: #d4d4d4; font-weight: 500; font-variant-numeric: tabular-nums; }
.telemetry-chart-wrap { position: relative; flex: 1 1 auto; min-height: 72px; overflow: hidden; }
.telemetry-chart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.telemetry-lane-labels {
  position: absolute; inset: 0; z-index: 1; display: grid; pointer-events: none;
  color: #7f857c; font-size: 7px; line-height: 1.15; text-transform: uppercase;
}
.telemetry-lane-label { position: relative; min-height: 0; }
.telemetry-lane-label > span:first-child { position: absolute; top: 5px; left: 7px; max-width: 41px; overflow-wrap: anywhere; }
.telemetry-lane-label > span:last-child {
  position: absolute; top: 7px; right: 3px; bottom: 7px; display: flex; flex-direction: column;
  justify-content: space-between; color: #5f655e; font-variant-numeric: tabular-nums; text-align: right;
}
.telemetry-lane-label b { display: block; font-weight: 400; text-transform: none; white-space: nowrap; }
.telemetry-grid-line { stroke: #2c302b; stroke-width: 1; vector-effect: non-scaling-stroke; }
.telemetry-series-line {
  fill: none; stroke: var(--series-color); stroke-width: 1.5; stroke-linecap: round;
  stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.telemetry-series-point { fill: var(--series-color); stroke: #101210; stroke-width: 1; vector-effect: non-scaling-stroke; }
.generic-capabilities {
  flex: 0 1 auto; min-height: 0; max-height: 54px; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 4px;
  padding: 7px; overflow-y: auto; border-top: 1px solid var(--line);
}
.generic-overview:has(.telemetry-history[hidden]) .generic-capabilities { flex: 1 1 auto; max-height: none; }
.generic-capabilities span {
  max-width: 100%; padding: 3px 5px; overflow: hidden; border: 1px solid #343f27;
  color: #8ea967; font-size: 7px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap;
}
.generic-event-rail { overflow-y: auto; }
.generic-sensor-panel .feed-event { grid-template-columns: 62px minmax(0, 1fr); }
.generic-sensor-panel .feed-event p { overflow-wrap: anywhere; }

.video-feed-grid, .audio-feed-grid { height: 100%; }
.media-stage, .event-rail, .signal-plot { border-color: var(--line); border-radius: 0; }
.camera-event-rail, .audio-event-rail { height: 100%; max-height: none; }
.rail-heading { min-height: 29px; padding: 0 7px; font-size: 8px; background: #202020; }
.metadata-cell { padding: 6px 7px; }
.metadata-cell span { font-size: 7px; }
.metadata-cell strong { margin-top: 2px; font-size: 9px; }
.feed-event { grid-template-columns: 52px 1fr; gap: 6px; padding: 5px 7px; }
.feed-event time, .feed-event p { font-size: 8px; }
.feed-event strong { font-size: 9px; }
.media-hud { left: 5px; right: 5px; bottom: 5px; padding: 5px 7px; border-radius: 0; font-size: 8px; }
.signal-plot figcaption { height: 27px; padding: 0 7px; font-size: 8px; }
.spectrogram-controls { gap: 6px; }
.spectrogram-controls input[type="range"] { width: 48px; }
.plot-placeholder { top: 27px; }
.feed-transcript { padding: 6px 7px; }
.feed-transcript p { margin-top: 3px; font-size: 11px; }

/* Nested dock trees use the same split, drag, target, and persistence grammar. */
.sensor-subdock, .subdock-split { width: 100%; height: 100%; min-width: 0; min-height: 0; }
.sensor-subdock { display: block; overflow: hidden; }
.subdock-split { display: flex; }
.subdock-split.horizontal { flex-direction: row; }
.subdock-split.vertical { flex-direction: column; }
.subdock-leaf {
  position: relative; min-width: 0; min-height: 0; overflow: hidden;
  container-type: inline-size;
}
.subdock-leaf > .sensor-subpanel { width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; }
.subdock-divider { flex: 0 0 6px; }
.subdock-split.horizontal > .subdock-divider { cursor: col-resize; }
.subdock-split.vertical > .subdock-divider { cursor: row-resize; }
.subdock-split.horizontal > .subdock-divider::after { top: 0; bottom: 0; left: 2px; width: 2px; }
.subdock-split.vertical > .subdock-divider::after { left: 0; right: 0; top: 2px; height: 2px; }
.subdock-divider:focus-visible { outline: 1px solid var(--green); outline-offset: -1px; }
[data-subpanel-drag-handle] { cursor: grab; touch-action: none; user-select: none; }
[data-subpanel-drag-handle]:active, .subpanel-dragging [data-subpanel-drag-handle] { cursor: grabbing; }
.subpanel-dragging, .subpanel-dragging * { user-select: none !important; }
.subpanel-drag-source { opacity: .42; }
.subpanel-drop-target::before {
  content: ""; position: absolute; z-index: 80; pointer-events: none;
  background: color-mix(in srgb, var(--green) 22%, transparent); border: 1px solid var(--green);
}
.subpanel-drop-target.drop-left::before { inset: 0 50% 0 0; }
.subpanel-drop-target.drop-right::before { inset: 0 0 0 50%; }
.subpanel-drop-target.drop-top::before { inset: 0 0 50% 0; }
.subpanel-drop-target.drop-bottom::before { inset: 50% 0 0 0; }
.media-subpanel-heading {
  position: relative; z-index: 4; flex: 0 0 27px; width: 100%; height: 27px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 7px;
  border-bottom: 1px solid rgba(255,255,255,.08); color: #8d8d8d;
  background: rgba(18,18,18,.78); font-size: 8px; letter-spacing: .07em; text-transform: uppercase;
}
.media-subpanel-heading span:last-child { color: #666; font-size: 7px; }
.camera-effect-controls { display: flex; align-items: center; gap: 4px; }
.camera-effect-controls button { min-height: 19px; padding: 1px 5px; color: #777; font-size: 7px; }
.camera-effect-controls button[aria-pressed="true"] { color: #efffcf; border-color: var(--green); background: #30471d; }
.video-stage { display: flex; flex-direction: column; background: #090909; }
.camera-aspect-well {
  flex: 1 1 auto; min-width: 0; min-height: 0; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
  background: #090909;
}
.camera-aspect-frame {
  position: relative; flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; background: #050505; box-shadow: 0 0 0 1px #292929;
}
.camera-event-rail { overflow-y: auto; }
.audio-events-section { overflow-y: auto; }
.transcript-section { display: flex; flex-direction: column; overflow: hidden; background: #1b1b1b; }
.speech-text-controls { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.speech-backend-label { display: inline-flex; align-items: center; gap: 4px; color: #747474; font-size: 8px; text-transform: uppercase; }
.speech-backend-label select { max-width: 105px; border: 1px solid #373a37; background: #151715; color: #b7bdb4; font: inherit; }
.speech-text-summary { color: #747474; white-space: nowrap; }
#speech-text-status.is-listening { color: var(--green); }
#speech-text-status.is-error { color: var(--amber); }
.latest-transcript { flex: 0 0 auto; padding: 8px 7px 9px; border-bottom: 1px solid var(--line); background: #1d1d1d; }
.latest-transcript-meta, .transcript-history-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: #737373; font-size: 7px; letter-spacing: .08em; text-transform: uppercase;
}
.latest-transcript p { margin: 6px 0 0; color: #e2e2e2; font: 400 12px/1.45 Georgia, serif; white-space: pre-wrap; }
.latest-transcript .speaker-label { margin-top: 5px; color: var(--blue); font-size: 8px; }
.transcript-history-heading { flex: 0 0 24px; padding: 0 7px; border-bottom: 1px dotted #343434; }
.feed-transcripts { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.camera-processing, .live-monitor { min-width: 0; min-height: 0; overflow-y: auto; border: 1px solid var(--line); background: #171917; }
.processing-note, .monitor-warning { margin: 0; padding: 5px 7px; border-bottom: 1px solid var(--line); color: #747974; font-size: 7px; line-height: 1.4; }
.processing-stages { display: flex; flex-direction: column; }
.processing-stage, .live-monitor details { border: 0; border-bottom: 1px solid #303330; background: #191b19; }
.processing-stage summary[data-camera-stage-drag-handle] { cursor: grab; }
.processing-stage summary[data-camera-stage-drag-handle]:active { cursor: grabbing; }
.processing-stage summary, .live-monitor summary {
  min-height: 27px; display: flex; align-items: center; gap: 6px; padding: 0 7px;
  color: #bcbfba; background: #202320; font-size: 8px; letter-spacing: .06em; text-transform: uppercase;
}
.processing-stage summary button, .live-monitor summary button, #audio-monitor-toggle {
  margin-left: auto; min-height: 19px; padding: 1px 5px; color: #777; font-size: 7px;
}
.processing-stage summary button[aria-pressed="true"], .live-monitor button[aria-pressed="true"], #audio-monitor-toggle[aria-pressed="true"] {
  color: #efffcf; border-color: var(--green); background: #30471d;
}
.stage-grip { color: #626662; letter-spacing: -2px; }
.processing-stage label, .live-monitor details label {
  min-height: 27px; display: grid; grid-template-columns: minmax(74px, 1fr) minmax(70px, 1.7fr) 54px;
  align-items: center; gap: 7px; padding: 3px 7px; color: #838783; font-size: 7px;
}
.processing-stage input[type="range"], .live-monitor input[type="range"] { width: 100%; min-width: 0; accent-color: var(--green); }
.processing-stage output, .live-monitor output { color: var(--green); font-size: 7px; font-variant-numeric: tabular-nums; text-align: right; }
.live-monitor .rail-heading button { margin-left: auto; }
.location-map { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--line); background: #101210; }
.location-map-stage { position: relative; flex: 1 1 auto; min-height: 70px; overflow: hidden; background: #101210; }
.location-map-stage img { width: 100%; height: 100%; display: block; object-fit: fill; filter: saturate(.55) brightness(.68) contrast(1.1); }
.location-map-marker { position: absolute; width: 10px; height: 10px; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(166,217,79,.25), 0 0 12px var(--green); }
.map-privacy-note { flex: 0 0 auto; margin: 0; padding: 4px 7px; color: #737373; border-top: 1px solid var(--line); font-size: 7px; }

/* Native SPU monitor: five-second motion history, fused attitude, and light spectrum. */
.motion-plot, .motion-orientation, .motion-events,
.ambient-spectrum, .ambient-sensor-body > .event-rail {
  position: relative; min-width: 0; min-height: 0; overflow: hidden;
  border: 1px solid var(--line); background: #0d0f0e;
}
.motion-plot, .motion-orientation, .ambient-spectrum { display: flex; flex-direction: column; }
.motion-plot canvas, #ambient-light-spectrogram {
  flex: 1 1 auto; width: 100%; min-height: 0; display: block;
}
.motion-reference-stage {
  position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
  background: radial-gradient(circle at 50% 44%, #1b2119, #090b09 74%);
}
#motion-orientation-canvas {
  width: 100%; height: 100%; min-width: 0; min-height: 0; display: block;
}
.ground-label { position: absolute; right: 7px; bottom: 5px; color: #596454; font-size: 7px; letter-spacing: .08em; }
.motion-events { overflow: hidden; display: flex; flex-direction: column; }
.motion-event-heading-actions { display: inline-flex; align-items: center; gap: 5px; }
.motion-events-toggle {
  width: 22px; height: 21px; padding: 0; border: 1px solid #4b4f49;
  color: #b7c4ae; background: #171917; font: 700 11px/1 ui-monospace, monospace;
}
.motion-events-toggle:hover { border-color: var(--green); color: var(--green); }
.motion-event-content { min-height: 0; overflow-y: auto; }
.motion-events.is-collapsed .motion-event-content { display: none; }
.motion-events.is-collapsed .rail-heading { border-bottom: 0; }
.ambient-spectrum .rail-heading { flex: 0 0 29px; }
#ambient-light-spectrogram { background: #080a09; }
.ambient-channel-values { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.ambient-channel-values span { min-width: 0; padding: 4px 6px; overflow: hidden; color: #777; background: #191b19; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.ambient-channel-values i { display: inline-block; width: 7px; height: 2px; margin-right: 4px; vertical-align: middle; background: currentColor; }
.ambient-channel-values strong { color: #d6d6d6; font-weight: 500; }
.light-channel-1 { color: #774cff; } .light-channel-2 { color: #2abcff; } .light-channel-3 { color: #75e852; } .light-channel-4 { color: #ff5b49; }
.ambient-stream-metadata { flex: 0 0 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); }

@container (max-width: 420px) {
  .camera-event-rail, .audio-event-rail { min-height: 0; }
  .generic-sensor-body { grid-template-columns: 1fr; grid-template-rows: minmax(135px, .72fr) minmax(180px, 1.28fr); }
}

@container (max-width: 540px) {
  .spectrogram-controls > span:last-child { display: none; }
  .spectrogram-controls input[type="range"] { width: 40px; }
}

@media (max-width: 760px) {
  .live-feed-shell { height: auto; min-height: calc(100vh - 54px); overflow: visible; }
  .panel-menu-hint, .panel-menu-label { display: none; }
  .sensor-workspace,
  .sensor-workspace[data-menu-edge="left"], .sensor-workspace[data-menu-edge="right"],
  .sensor-workspace[data-menu-edge="top"], .sensor-workspace[data-menu-edge="bottom"] { display: flex; height: auto; flex-direction: column; }
  .sensor-workspace[data-menu-edge="left"] .sensor-panel-menu,
  .sensor-workspace[data-menu-edge="right"] .sensor-panel-menu,
  .sensor-panel-menu { width: 100%; max-width: none; height: auto; flex-direction: row; align-items: center; }
  .sensor-workspace[data-menu-edge="left"] .panel-menu-controls,
  .sensor-workspace[data-menu-edge="right"] .panel-menu-controls { flex-direction: row; flex-wrap: wrap; }
  .sensor-stack { overflow: visible; }
  .dock-split { display: block; height: auto; }
  .dock-split > .dock-divider { display: none; }
  .video-feed-grid, .audio-feed-grid { height: 100%; }
  .dock-leaf { height: auto !important; min-height: 620px; margin-bottom: 6px; }
  .sensor-panel { height: 620px; }
  .sensor-panel-header { flex-direction: row; align-items: center; }
  .sensor-controls { width: auto; }
}


/* Sensor verification surfaces: compact enough for nested dock panes, explicit enough for hardware qualification. */
.verification-summary { overflow: hidden; }
.verification-summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 1px; margin-top: 10px; background: var(--line);
}
.verification-summary-grid > div {
  min-width: 0; padding: 7px 8px; background: #191b19;
}
.verification-summary-grid span {
  display: block; color: #777; font-size: 7px; letter-spacing: .08em; text-transform: uppercase;
}
.verification-summary-grid strong {
  display: block; margin-top: 3px; overflow: hidden; color: #d8dbd5;
  font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap;
}
.verification-badge {
  padding: 3px 6px; border: 1px solid #555; color: #aaa; font-size: 7px;
  letter-spacing: .08em; text-transform: uppercase;
}
.verification-badge.is-fresh { border-color: #536b35; color: var(--green); background: #1b2117; }
.verification-badge.is-stale { border-color: #6d5d31; color: var(--amber); background: #211e17; }
.sensor-verification {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  overflow: hidden; border: 1px solid var(--line); background: #141614;
}
.verification-scroll {
  flex: 1 1 auto; min-height: 0; overflow: auto; padding: 5px;
  scrollbar-color: #4d4d4d transparent;
}
.verification-plugin { border: 1px solid #303330; background: #191b19; }
.verification-plugin + .verification-plugin { margin-top: 5px; }
.verification-plugin-heading {
  min-height: 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 0 7px; border-bottom: 1px solid #303330; background: #202320;
}
.verification-plugin-heading > div { min-width: 0; }
.verification-plugin-heading strong {
  display: block; overflow: hidden; color: #d3d7cf; font-size: 9px; font-weight: 500;
  text-overflow: ellipsis; white-space: nowrap;
}
.verification-plugin-heading span:not(.verification-badge) {
  display: block; margin-top: 2px; color: #747974; font-size: 7px;
}
.attention-mode-controls {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px;
  padding: 5px; border-bottom: 1px solid #303330;
}
.attention-mode-button, .verification-actions button {
  min-width: 0; min-height: 23px; padding: 3px 5px; border: 1px solid #3d423c;
  color: #8f948d; background: #171917; font-size: 7px; text-transform: uppercase;
}
.attention-mode-button:hover, .verification-actions button:hover { border-color: var(--green); color: var(--green); }
.attention-mode-button.is-current { border-color: #536b35; color: var(--green); background: #1b2117; }
.verification-plugin details { border-top: 1px solid #2b2e2b; }
.verification-plugin details > summary {
  min-height: 25px; display: flex; align-items: center; padding: 0 7px;
  color: #a9ada6; background: #1c1f1c; cursor: pointer; font-size: 7px;
  letter-spacing: .06em; text-transform: uppercase;
}
.verification-plugin details > summary:hover { color: var(--green); }
.verification-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: #303330;
}
.verification-pair > div { min-width: 0; padding: 5px; background: #151715; }
.verification-pair span {
  display: block; margin-bottom: 4px; color: #71766f; font-size: 7px; text-transform: uppercase;
}
.verification-plugin pre {
  max-height: 150px; margin: 0; padding: 6px; overflow: auto; color: #adb7a6;
  background: #0f110f; font: 7px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.verification-route { padding: 6px 7px; border-bottom: 1px dotted #303330; }
.verification-route:last-child { border-bottom: 0; }
.verification-route > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.verification-route strong { color: #c4c9c0; font-size: 8px; font-weight: 500; }
.verification-route span { color: #72776f; font-size: 7px; text-transform: uppercase; }
.verification-route.is-active strong, .verification-route.is-active span { color: var(--green); }
.verification-route p, .verification-route small, .verification-line, .verification-help {
  margin: 3px 0 0; color: #747974; font-size: 7px; line-height: 1.45; overflow-wrap: anywhere;
}
.verification-line { padding: 5px 7px; border-top: 1px dotted #303330; }
.verification-json-input {
  width: calc(100% - 10px); min-height: 84px; margin: 5px; padding: 6px; resize: vertical;
  border: 1px solid #3b403a; color: #c9d5c1; background: #0f110f;
  font: 8px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.verification-json-input:focus { outline: 1px solid var(--green); outline-offset: -1px; }
.verification-actions {
  display: flex; align-items: center; gap: 7px; padding: 0 5px 6px;
}
.verification-actions span { color: #7f8b78; font-size: 7px; }
.verification-actions button:disabled, .attention-mode-button:disabled { opacity: .5; cursor: wait; }

@container (max-width: 440px) {
  .verification-pair, .verification-summary-grid { grid-template-columns: 1fr; }
  .attention-mode-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sensor-consent {
  position: fixed; inset: 0; z-index: 120000;
  display: grid; place-items: center;
  padding: clamp(24px, 5vw, 80px);
  background: rgba(5,8,7,.86);
  backdrop-filter: blur(18px);
}
.sensor-consent[hidden] { display: none; }
.sensor-consent-card {
  width: min(760px, 92vw);
  padding: clamp(28px, 4.5vw, 64px);
  border: 1px solid rgba(166,217,79,.5);
  background: rgba(11,15,13,.97);
  box-shadow: 0 32px 120px rgba(0,0,0,.52);
}
.sensor-consent-card .eyebrow {
  margin: 0 0 18px; color: var(--green);
  font-size: 10px; letter-spacing: .14em;
}
.sensor-consent-card h1 {
  margin: 0 0 22px;
  color: #f2f5ef;
  font-size: clamp(40px, 6vw, 86px);
  line-height: .9; letter-spacing: -.055em; font-weight: 600;
  text-transform: none;
}
.sensor-consent-card > p:not(.eyebrow) {
  max-width: 58ch; margin: 0 0 14px;
  color: #c8d0c7; font-size: clamp(14px, 1.3vw, 18px); line-height: 1.45;
}
.sensor-consent-card .sensor-consent-note {
  color: #869086; font-size: 11px;
}
#enable-july-sensors {
  display: grid;
  place-items: center;
  gap: 12px;
  width: min(780px, 92vw);
  padding: clamp(28px, 4.5vw, 52px) clamp(22px, 4vw, 44px);
  border: 1px solid var(--green);
  background: var(--green); color: #0b0f0d;
  cursor: pointer;
}
.sensor-consent-primary {
  font: 700 33px/1.05 var(--mono);
  letter-spacing: .06em;
  text-align: center;
}
.sensor-consent-secondary {
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .09em;
  text-align: center;
}
#enable-july-sensors:hover { background: #d8ff87; }
#enable-july-sensors:disabled { opacity: .55; cursor: wait; }


/* July sensor consent: content-sized button at the upper fifth of the view.
 * The desktop headline grows to 250% of the previous 33px (82.5px) at full
 * desktop width. Intrinsic sizing prevents an oversized empty green panel.
 */
.sensor-consent{position:fixed}
#enable-july-sensors{
  position:absolute;
  top:20%;left:50%;transform:translate(-50%,-50%);
  display:inline-flex;flex-direction:column;align-items:center;
  justify-content:center;gap:clamp(5px,.65vw,10px);
  width:max-content;min-width:0;max-width:calc(100vw - 28px);
  height:auto;min-height:0;
  margin:0;padding:clamp(11px,1.25vw,18px) clamp(14px,1.75vw,26px);
  box-sizing:border-box;white-space:normal;
}
#enable-july-sensors .sensor-consent-primary{
  font-size:clamp(30px,5.4vw,82.5px);
  line-height:1.06;max-width:100%;overflow-wrap:normal;
}
#enable-july-sensors .sensor-consent-secondary{
  font-size:clamp(9px,.9vw,13px);line-height:1.2;
  max-width:100%;
}
@media (max-width:900px){
  #enable-july-sensors{
    gap:6px;
    padding:10px 13px;
  }
  #enable-july-sensors .sensor-consent-primary{font-size:clamp(15px,4.8vw,32px)}
  #enable-july-sensors .sensor-consent-secondary{font-size:clamp(8px,2vw,11px)}
}
@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){
  #enable-july-sensors{top:20%;padding:7px 12px;gap:4px}
  #enable-july-sensors .sensor-consent-primary{font-size:clamp(15px,3.2vw,28px)}
  #enable-july-sensors .sensor-consent-secondary{font-size:clamp(8px,1.5vw,10px)}
}


/* Enable Sensors styling follows the two-line July demo notice. */
#enable-july-sensors{
  background:rgba(9,14,11,.86);
  border:1px solid rgba(166,217,79,.65);
  box-shadow:0 16px 44px rgba(0,0,0,.44);
}
#enable-july-sensors .sensor-consent-primary{
  color:#eef7e7;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-shadow:0 2px 24px #000;
}
#enable-july-sensors .sensor-consent-secondary{
  color:var(--green);
  font-weight:800;
  font-size:clamp(18px,2.6vw,44px);
  letter-spacing:.08em;
  text-transform:uppercase;
  text-shadow:0 2px 18px #000;
}
#enable-july-sensors:hover{
  background:rgba(25,40,25,.94);
  border-color:var(--green);
}
@media(max-width:900px){
  #enable-july-sensors .sensor-consent-secondary{font-size:clamp(12px,3vw,22px)}
}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse){
  #enable-july-sensors .sensor-consent-secondary{font-size:clamp(10px,2vw,16px)}
}


/* Larger transcription body text in all layouts (25% above previous sizes).
 * Phone-wide July font scaling, when enabled, multiplies these new sizes too.
 */
.transcript p { font-size: 16.25px; }
.feed-transcript p { font-size: 16.25px; }
.latest-transcript p { font-size: 15px; }
@media (max-width:760px) {
  .feed-transcript p { font-size: 13.75px; }
}
html.july-phone-font-scaled [data-july-font-measured] {
  font-size: var(--july-scaled-font-size) !important;
}


/* July consent typography: 30% smaller headline, 50% smaller disclosure.
 * Separate size profiles remain independent on desktop and phone.
 * Developer > Font sizes can further scale all phone text.
 */
#enable-july-sensors .sensor-consent-primary{
  font-size:clamp(21px,3.78vw,57.75px);
}
#enable-july-sensors .sensor-consent-secondary{
  font-size:clamp(9px,1.3vw,22px);
}
@media(max-width:900px){
  #enable-july-sensors .sensor-consent-primary{font-size:clamp(10.5px,3.36vw,22.4px)}
  #enable-july-sensors .sensor-consent-secondary{font-size:clamp(6px,1.5vw,11px)}
}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse){
  #enable-july-sensors .sensor-consent-primary{font-size:clamp(10.5px,2.24vw,19.6px)}
  #enable-july-sensors .sensor-consent-secondary{font-size:clamp(5px,1vw,8px)}
}

/* Enable Sensors: 35% smaller and visually aligned with July's UI typography. */
#enable-july-sensors{
  gap:clamp(3px,.42vw,6.5px);
  padding:clamp(7px,.82vw,12px) clamp(9px,1.14vw,17px);
}
#enable-july-sensors .sensor-consent-primary,
#enable-july-sensors .sensor-consent-secondary{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-weight:500;
  text-shadow:none;
}
#enable-july-sensors .sensor-consent-primary{
  font-size:clamp(14px,2.46vw,38px);
  letter-spacing:.05em;
}
#enable-july-sensors .sensor-consent-secondary{
  font-size:clamp(7px,.85vw,14px);
  letter-spacing:.06em;
}
@media(max-width:900px){
  #enable-july-sensors{
    gap:4px;
    padding:6.5px 8.5px;
  }
  #enable-july-sensors .sensor-consent-primary{font-size:clamp(9px,2.18vw,15px)}
  #enable-july-sensors .sensor-consent-secondary{font-size:clamp(7px,.98vw,9px)}
}
@media(orientation:landscape) and (max-height:600px) and (pointer:coarse){
  #enable-july-sensors{
    padding:4.5px 7.8px;
    gap:2.6px;
  }
  #enable-july-sensors .sensor-consent-primary{font-size:clamp(9px,1.46vw,13px)}
  #enable-july-sensors .sensor-consent-secondary{font-size:clamp(7px,.65vw,8px)}
}
