:root {
  color-scheme: dark;
  --bg: #0b111b;
  --sidebar: #0e1622;
  --surface: #111c29;
  --surface2: #152232;
  --hover: #1b2b3e;
  --line: #233144;
  --ink: #e7edf5;
  --muted: #91a3b8;
  --subtle: #a0afc1;
  --blue: #65adf4;
  --blue-bg: #18364f;
  --green: #61d5b1;
  --green-bg: #15382f;
  --amber: #e9bc69;
  --amber-bg: #382e1c;
  --red: #f18a92;
  --red-bg: #3d242f;
  --shadow: 0 12px 35px #0002;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 100%;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6f8;
  --sidebar: #fbfcfd;
  --surface: #fff;
  --surface2: #f4f7fa;
  --hover: #eaf0f5;
  --line: #dbe3eb;
  --ink: #162536;
  --muted: #52677d;
  --subtle: #52677d;
  --blue: #176da8;
  --blue-bg: #e7f2f9;
  --green: #0f6a4a;
  --green-bg: #e4f4ec;
  --amber: #8c5c15;
  --amber-bg: #fff3db;
  --red: #b82d46;
  --red-bg: #fff0f0;
  --shadow: 0 12px 35px #203b5510;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2.25rem;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 8px;
  font-weight: 660;
}
h2 {
  font-size: 1rem;
  font-weight: 650;
  margin: 0;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
p {
  line-height: 1.65;
}
small,
.small {
  font-size: 0.875rem;
}
code {
  font:
    0.875rem ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
strong {
  font-weight: 600;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  padding: 12px;
  background: var(--surface);
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.loading {
  padding: 40px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  height: 85px;
  padding: 20px 23px;
  font-size: 1.3125rem;
  font-weight: 650;
  letter-spacing: -0.4px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand small {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
}
.workspace {
  margin: 4px 16px 27px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
}
.court-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 32px;
  background: var(--blue-bg);
  border: 1px solid #65adf422;
  border-radius: 6px;
  color: var(--blue);
  font:
    1rem ui-monospace,
    monospace;
}
.workspace strong {
  font-size: 1rem;
}
.workspace small {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}
.workspace > .dot {
  margin-left: auto;
}
.nav-label {
  font-size: 0.875rem;
  letter-spacing: 1.5px;
  color: var(--subtle);
  font-weight: 600;
  padding: 0 25px 10px;
}
nav {
  padding: 0 12px;
  overflow-y: auto;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 1rem;
  padding: 11px 13px;
  margin: 3px 0;
  border-radius: 6px;
  border: 1px solid transparent;
  position: relative;
}
nav a:hover {
  background: var(--hover);
  color: var(--ink);
}
nav a.active {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: #65adf420;
}
nav a.active:before {
  content: "";
  position: absolute;
  width: 3px;
  left: -13px;
  top: 10px;
  bottom: 10px;
  background: var(--blue);
  border-radius: 0 2px 2px 0;
}
.nav-count {
  margin-left: auto;
  min-width: 20px;
  text-align: center;
  font-size: 0.875rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.sidebar-bottom {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}
.sidebar-bottom small {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 3px;
}
.sidebar-bottom code {
  margin-left: auto;
  font-size: 0.875rem;
}
.demo-indicator {
  width: 6px;
  height: 6px;
  background: var(--amber);
  display: inline-block;
  border-radius: 50%;
  flex: none;
}
.main-shell {
  margin-left: 240px;
  min-width: 0;
}
.topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--sidebar);
}
.topbar-left,
.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 12px;
  color: var(--subtle);
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.clock-label {
  font:
    0.875rem ui-monospace,
    monospace;
  color: var(--muted);
}
.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.875rem;
  color: var(--muted);
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 32px;
  background: var(--amber-bg);
  color: var(--amber);
  border-bottom: 1px solid #e9bc691b;
  font-size: 0.875rem;
  position: relative;
  z-index: 12;
}
.demo-bar > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.demo-bar strong {
  font-size: 0.875rem;
  letter-spacing: 0.7px;
}
.demo-description {
  opacity: 1;
}
.simulation-controls summary {
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
}
.simulation-popover {
  position: absolute;
  right: 28px;
  top: 36px;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.simulation-popover label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.simulation-popover small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}
main {
  max-width: 1660px;
  margin: 0 auto;
  padding: 30px 32px 20px;
  min-height: calc(100vh - 160px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  color: var(--subtle);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  font-weight: 650;
  display: block;
  margin-bottom: 9px;
}
.eyebrow span {
  margin: 0 8px;
  color: var(--muted);
}
.subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}
.primary,
.secondary,
.primary-quiet,
.danger,
.danger-quiet,
.text-button,
.icon-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.875rem;
  font-weight: 550;
  background: var(--surface2);
  color: var(--ink);
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--bg);
}
.primary:hover {
  filter: brightness(1.1);
}
.primary-quiet {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: #65adf430;
}
.secondary:hover {
  background: var(--hover);
  border-color: var(--subtle);
}
.danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: #f18a9244;
}
.danger-quiet {
  color: var(--red);
  background: transparent;
}
.text-button {
  color: var(--blue);
  background: transparent;
  border: 0;
  padding: 4px 0;
  min-height: 28px;
  white-space: normal;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.icon-button {
  border: 0;
  background: transparent;
  padding: 7px;
  color: var(--muted);
}
.mobile-menu {
  display: none;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex: none;
}
.dot.green {
  color: var(--green);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.4;
  border-radius: 4px;
  padding: 4px 7px;
  white-space: nowrap;
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid transparent;
}
.badge.green {
  background: var(--green-bg);
  color: var(--green);
  border-color: #61d5b115;
}
.badge.blue {
  background: var(--blue-bg);
  color: var(--blue);
}
.badge.amber {
  background: var(--amber-bg);
  color: var(--amber);
}
.badge.red {
  background: var(--red-bg);
  color: var(--red);
}
.operational-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 17px 20px;
  background: linear-gradient(100deg, var(--green-bg), var(--surface));
  border: 1px solid #61d5b12c;
  border-radius: 9px;
}
.operational-summary h2 {
  font-size: 1rem;
  margin-bottom: 3px;
}
.operational-summary p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}
.operational-summary > .badge {
  margin-left: auto;
}
.summary-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #61d5b116;
  color: var(--green);
  border: 1px solid #61d5b144;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.metrics.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 13px;
  min-width: 0;
}
.metric .eyebrow {
  font-size: 0.875rem;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
}
.metric-value {
  font-size: 2.25rem;
  font-weight: 620;
  letter-spacing: -1px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  font-size: 0.875rem;
  color: var(--muted);
  margin-left: 6px;
  font-weight: 400;
  letter-spacing: 0;
}
.metric-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 11px;
  min-height: 25px;
}
.metric-bottom > span {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}
.spark {
  width: 72px;
  height: 25px;
  flex: none;
  color: var(--blue);
  overflow: visible;
}
.spark.green {
  color: var(--green);
}
.spark.amber {
  color: var(--amber);
}
.spark polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
  margin-bottom: 20px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  min-height: 22px;
}
.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-heading > .small {
  font-size: 0.875rem;
}
.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.columns.wide-left {
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
}
.columns > .panel {
  margin-bottom: 20px;
}
.topology {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 19px 22px;
}
.topology-node {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}
.topology-node > .icon {
  width: 26px;
  height: 26px;
  color: var(--blue);
  background: var(--blue-bg);
  padding: 5px;
  box-sizing: content-box;
  border: 1px solid #65adf419;
  border-radius: 7px;
}
.topology-node strong {
  font-size: 0.875rem;
}
.topology-node small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 4px;
}
.topology-node .badge {
  margin-left: auto;
  font-size: 0.875rem;
  padding: 3px 5px;
}
.flow-link {
  color: var(--subtle);
}
.topology-consumers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}
.topology-consumers strong {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topology-consumers small {
  font-size: 0.875rem;
  color: var(--muted);
  grid-column: 1/-1;
}
.compact-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 20px;
}
.compact-summary code {
  margin-left: 8px;
  font-size: 0.875rem;
}
.compact-summary > strong {
  color: var(--green);
  font-size: 1.3125rem;
}
.compact-summary > strong small {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}
.mini-timeline {
  display: grid;
  gap: 13px;
}
.mini-timeline > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
}
.mini-track {
  position: relative;
  height: 9px;
  border-radius: 2px;
  background: var(--bg);
  overflow: hidden;
}
.mini-track i {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 2px;
}
.mini-caption {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--subtle);
  margin: 18px 0 0 108px;
  gap: 10px;
}
.mini-caption > span:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 5px;
}
.authority-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.authority-display > .icon {
  width: 34px;
  height: 34px;
  color: var(--blue);
  background: var(--blue-bg);
  padding: 7px;
  border-radius: 8px;
}
.authority-display small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}
.authority-display strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 550;
}
.key-values {
  margin: 0;
}
.key-values > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.key-values > div:last-child {
  border: 0;
}
.key-values dt {
  color: var(--muted);
  flex: none;
  max-width: 46%;
}
.key-values dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.key-values dd .badge {
  font-size: 0.875rem;
}
.device-list {
  display: grid;
  gap: 0;
}
.device-row {
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
}
.device-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.device-row:last-child {
  padding-bottom: 0;
}
.device-row > .icon {
  color: var(--muted);
}
.device-row strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.device-row small {
  display: block;
  color: var(--subtle);
  font-size: 0.875rem;
  margin-top: 3px;
}
.device-row > .badge {
  margin-left: auto;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--blue-bg);
  border: 1px solid #65adf41f;
  padding: 13px 15px;
  border-radius: 6px;
  color: var(--blue);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.notice > .icon {
  margin-top: 1px;
  width: 16px;
  height: 16px;
}
.notice.amber {
  background: var(--amber-bg);
  border-color: #e9bc6926;
  color: var(--amber);
}
.notice.green {
  background: var(--green-bg);
  border-color: #61d5b122;
  color: var(--green);
}
.alert-card {
  padding: 4px 0;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.alert-card h3 {
  font-size: 1rem;
  margin: 12px 0 6px;
}
.alert-card p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}
.alert-card > button {
  flex: none;
}
.count {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 0.875rem;
  color: var(--muted);
}
.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 380px;
  overflow: auto;
}
.event-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.event-list li:first-child {
  padding-top: 0;
}
.event-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.event-list strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.event-list p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 3px 0 0;
}
.event-list time {
  font:
    0.875rem ui-monospace,
    monospace;
  color: var(--subtle);
  margin-left: auto;
  white-space: nowrap;
  padding-top: 3px;
}
.event-dot {
  height: 6px;
  width: 6px;
  background: var(--blue);
  border-radius: 50%;
  margin: 6px 0 0;
  flex: none;
}
.event-dot.warning {
  background: var(--amber);
}
.event-dot.critical {
  background: var(--red);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.service-grid .actions {
  margin-top: 20px;
}
.service-grid .notice {
  margin-top: 15px;
  margin-bottom: 0;
  font-size: 0.875rem;
}
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}
.hardware-grid .actions {
  margin-top: 16px;
}
.hardware-grid .panel {
  padding: 16px;
}
.hardware-grid .key-values > div {
  font-size: 0.875rem;
}
.court-preview {
  background: #0a2425;
  border: 1px solid #2c4546;
  border-radius: 6px;
  overflow: hidden;
  color: #b6d0ce;
}
.court-preview svg {
  width: 100%;
  max-height: 148px;
  display: block;
}
.preview-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.875rem;
  padding: 10px 12px;
  color: #a0b5b3;
}
.preview-label > span:last-child {
  font-size: 0.875rem;
  letter-spacing: 1px;
  color: #7e9996;
}
.preview-caption {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: #98b5ac;
  padding: 5px 7px 10px;
}
.device-illustration {
  height: 194px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--blue);
}
.device-illustration > .icon {
  width: 50px;
  height: 50px;
}
.device-illustration strong {
  font-size: 1rem;
}
.device-illustration span {
  font-size: 0.875rem;
  color: var(--muted);
}
.sync-summary {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.large-status .badge {
  font-size: 1rem;
  padding: 7px 10px;
}
.sync-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-top: 20px;
}
.sync-actions button {
  min-height: 40px;
}
.confidence-list > div {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.confidence-list > div:first-child {
  padding-top: 0;
}
.confidence-list p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.confidence-list .badge {
  justify-self: start;
}
.history-seed > div {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.history-seed > div:first-child {
  padding-top: 0;
}
.history-seed code {
  margin-left: 8px;
}
.history-seed p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 12px 0 7px;
}
.history-seed small {
  color: var(--subtle);
  font-size: 0.875rem;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.toolbar.wrap {
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  max-width: 480px;
  flex: 1;
  padding: 0 12px;
  color: var(--subtle);
}
.search input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  padding: 9px 0;
  color: var(--ink);
  font-size: 0.875rem;
}
.search input:focus {
  outline: 0;
}
.search:focus-within {
  outline: 2px solid var(--blue);
}
input,
select {
  accent-color: var(--blue);
}
select {
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 5px;
  padding: 8px 28px 8px 10px;
  min-height: 34px;
  max-width: 100%;
  font-size: 0.875rem;
}
.inline-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}
th {
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0.7px;
  font-weight: 550;
  color: var(--subtle);
  background: var(--surface2);
  white-space: nowrap;
  padding: 10px;
}
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  vertical-align: middle;
  line-height: 1.5;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  font-size: 0.875rem;
  font-weight: 500;
}
td .badge {
  font-size: 0.875rem;
}
.subtext {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 4px;
}
.reason {
  font-size: 0.875rem;
  color: var(--muted);
  display: block;
  min-width: 180px;
  max-width: 360px;
}
.empty {
  text-align: center;
  padding: 40px !important;
  color: var(--muted);
}
.progress-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
  margin-top: 9px;
  color: var(--subtle);
  min-width: 110px;
}
.progress-row progress {
  width: 82px;
}
.progress-row span {
  min-width: 22px;
}
progress {
  appearance: none;
  -webkit-appearance: none;
  background: var(--line);
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  height: 4px;
}
progress::-webkit-progress-bar {
  background: var(--line);
}
progress::-webkit-progress-value {
  background: var(--blue);
}
progress::-moz-progress-bar {
  background: var(--blue);
}
.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  padding: 3px;
  gap: 3px;
}
.segmented button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 0.875rem;
  min-height: 28px;
  border-radius: 4px;
  white-space: nowrap;
}
.segmented button[aria-pressed="true"] {
  color: var(--blue);
  background: var(--blue-bg);
}
.access-mode {
  width: 100%;
  margin: 10px 0;
}
.access-mode button {
  flex: 1;
  min-height: 38px;
}
.recording-title {
  display: flex;
  align-items: center;
  gap: 20px;
}
.recording-title > div {
  margin-right: auto;
}
.recording-title h3 {
  margin-bottom: 4px;
}
.lifecycle {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  gap: 8px;
  overflow-x: auto;
}
.lifecycle li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  color: var(--subtle);
  font-size: 0.875rem;
  min-width: 70px;
  position: relative;
}
.lifecycle li:before {
  position: absolute;
  content: "";
  height: 1px;
  background: var(--line);
  left: 0;
  right: 0;
  top: 12px;
  z-index: 0;
}
.lifecycle li:first-child:before {
  left: 50%;
}
.lifecycle li:last-child:before {
  right: 50%;
}
.lifecycle li span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  z-index: 1;
}
.lifecycle li.done {
  color: var(--green);
}
.lifecycle li.done span {
  background: var(--green-bg);
  border-color: #61d5b144;
}
.timeline-overview {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 24px;
  padding: 0 4px;
}
.timeline-overview > div:first-child {
  flex: 1;
}
.timeline-overview > div > strong {
  font:
    2rem ui-monospace,
    monospace;
  display: block;
  color: var(--green);
}
.timeline-overview strong small {
  font:
    0.875rem -apple-system,
    sans-serif;
  color: var(--muted);
}
.lag-number {
  font-size: 2.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.lag-number small {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.timeline-overview p {
  margin: 7px 0 0;
}
.timeline-panel {
  padding: 20px 0 0;
  overflow: hidden;
}
.timeline-panel > .toolbar {
  padding: 0 20px;
}
.timeline-controls {
  margin-bottom: 10px;
}
.timeline-controls button {
  font-size: 0.875rem;
  min-height: 28px;
  padding: 4px 8px;
}
.timeline-scroll {
  overflow-x: auto;
  padding: 0 20px;
}
.timeline-canvas {
  min-width: 700px;
  padding-top: 20px;
}
.timeline-ruler {
  display: grid;
  grid-template-columns: 155px 1fr;
  padding: 0 0 31px;
}
.track-heading {
  font-size: 0.875rem;
  letter-spacing: 0.7px;
  color: var(--subtle);
  align-self: center;
}
.axis {
  position: relative;
  height: 15px;
  color: var(--subtle);
  font:
    0.875rem ui-monospace,
    monospace;
  margin-right: 1px;
}
.axis span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.axis span:first-child {
  transform: none;
}
.axis span:last-child {
  transform: translateX(-100%);
}
.track-area {
  position: relative;
}
.track-row {
  display: grid;
  grid-template-columns: 155px 1fr;
  height: 51px;
  border-top: 1px solid var(--line);
}
.track-row:last-child {
  border-bottom: 1px solid var(--line);
}
.track-name {
  background: transparent;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 7px 9px 0;
  color: var(--ink);
}
.track-name strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}
.track-name small {
  display: block;
  font-size: 0.875rem;
  color: var(--subtle);
  margin-top: 2px;
}
.track-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}
.track-dot.audio {
  background: #bba1ed;
}
.track-lane {
  position: relative;
  background: var(--bg);
}
.grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  opacity: 0.55;
  pointer-events: none;
}
.segment {
  position: absolute;
  height: 17px;
  top: 17px;
  border: 0;
  border-radius: 2px;
  min-width: 1px;
  padding: 0;
  cursor: pointer;
  z-index: 1;
}
.segment:hover {
  filter: brightness(1.3);
  outline: 1px solid var(--ink);
  z-index: 5;
}
.playable {
  background: #288b79;
}
.local {
  background: repeating-linear-gradient(
    135deg,
    #325877 0,
    #325877 3px,
    #223e56 3px,
    #223e56 6px
  );
}
.accepted {
  background: #7d699c;
}
.prefix {
  background: #3b4757;
}
.gap {
  background: repeating-linear-gradient(
    135deg,
    #963f4b 0,
    #963f4b 2px,
    #311e2a 2px,
    #311e2a 5px
  );
}
.unqualified {
  background: #8d7041;
}
.marker-overlay {
  position: absolute;
  inset: 0 0 0 155px;
  pointer-events: none;
  z-index: 4;
}
.time-marker {
  position: absolute;
  top: -22px;
  bottom: 0;
  width: 1px;
  background: var(--green);
}
.time-marker > span {
  position: absolute;
  top: -1px;
  left: -2px;
  transform: translateX(-100%);
  white-space: nowrap;
  background: var(--green-bg);
  border: 1px solid #61d5b144;
  color: var(--green);
  font-size: 0.875rem;
  padding: 2px 4px;
  border-radius: 3px;
}
.time-marker.realtime {
  background: var(--muted);
}
.time-marker.realtime > span {
  background: var(--surface2);
  color: var(--muted);
  border-color: var(--line);
  top: -19px;
}
.time-marker.origin {
  background: var(--blue);
}
.time-marker.origin > span {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: #65adf455;
  transform: none;
  left: 3px;
}
.source-start {
  position: absolute;
  width: 2px;
  height: 21px;
  top: 15px;
  background: #a3abb8;
  border: 0;
  padding: 0;
  z-index: 3;
}
.capture-frontier {
  position: absolute;
  width: 3px;
  height: 23px;
  top: 14px;
  background: var(--blue);
  border: 0;
  padding: 0;
  z-index: 3;
}
.timeline-event {
  position: absolute;
  top: 13px;
  transform: translateX(-50%);
  height: 24px;
  min-width: 19px;
  border: 1px solid var(--amber);
  border-radius: 4px;
  padding: 2px 4px;
  background: var(--amber-bg);
  color: var(--amber);
  z-index: 6;
  font-size: 0.875rem;
}
.timeline-event.gap {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-bg);
}
.timeline-event.epoch {
  top: 0;
  height: 14px;
  font-size: 0.875rem;
}
.timeline-event.reconnect {
  top: 34px;
  height: 14px;
  font-size: 0.875rem;
}
.timeline-events-row {
  display: grid;
  grid-template-columns: 155px 1fr;
  height: 38px;
  align-items: center;
}
.timeline-events-row > span {
  font-size: 0.875rem;
  letter-spacing: 0.8px;
  color: var(--subtle);
}
.timeline-events-row > div {
  position: relative;
  height: 22px;
}
.pipeline-event {
  position: absolute;
  transform: translateX(-50%);
  background: var(--surface2);
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.875rem;
  padding: 1px 4px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--surface2);
}
.legend label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.legend input {
  width: 10px;
  height: 10px;
  margin: 0;
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  flex: none;
}
.legend-key {
  color: var(--subtle);
}
.timeline-filter {
  padding: 12px 20px;
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.timeline-filter summary {
  cursor: pointer;
  color: var(--blue);
}
.filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 15px 0;
}
.filter-checks label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
}
.inspection-empty {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 180px;
  color: var(--muted);
}
.inspection-empty > .icon {
  height: 38px;
  width: 38px;
  color: var(--subtle);
}
.inspection-empty h3 {
  font-size: 1rem;
  color: var(--ink);
}
.inspection-empty p {
  font-size: 0.875rem;
  margin: 0;
}
.detail-copy {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 15px 0 20px;
}
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}
.chart-value {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.chart-value small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 5px;
}
.big-chart {
  display: block;
  width: 100%;
  margin-top: 17px;
  color: var(--blue);
  overflow: visible;
}
.big-chart.green {
  color: var(--green);
}
.big-chart polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.big-chart .chart-grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}
.big-chart text {
  fill: var(--subtle);
  font-size: 0.875rem;
}
.incident {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.incident:first-child {
  padding-top: 0;
}
.incident:last-child {
  border: 0;
  padding-bottom: 0;
}
.incident h3 {
  font-size: 1rem;
  margin: 12px 0 6px;
}
.incident p {
  color: var(--muted);
  font-size: 0.875rem;
}
.connection-state {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}
.connection-state > .icon {
  width: 40px;
  height: 40px;
  color: var(--amber);
}
.connection-state p {
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px;
  font-size: 0.875rem;
  color: var(--subtle);
  border-top: 1px solid var(--line);
}
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 27px;
  max-width: min(850px, calc(100vw - 36px));
  width: 680px;
  max-height: calc(100vh - 50px);
  overflow: auto;
  box-shadow: 0 24px 80px #0007;
}
dialog::backdrop {
  background: #030911b8;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}
.dialog-heading h2 {
  font-size: 1.3125rem;
  letter-spacing: -0.4px;
}
.dialog-heading .eyebrow {
  color: var(--amber);
  font-size: 0.875rem;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  color: var(--muted);
  margin: 18px 0;
}
.form-field select {
  width: 100%;
  min-height: 40px;
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
}
.detail-progress {
  width: calc(100% - 60px);
  margin: 20px 15px 20px 0;
  height: 6px;
}
.wizard-steps {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.wizard-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--subtle);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.wizard-steps span {
  display: grid;
  place-items: center;
  flex: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.875rem;
}
.wizard-steps li.current {
  color: var(--blue);
  border-color: #65adf455;
  background: var(--blue-bg);
}
.wizard-steps li.done {
  color: var(--green);
  background: var(--green-bg);
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.guidance {
  border-left: 2px solid var(--blue);
  padding: 0 0 0 16px;
  margin: 22px 0;
}
.guidance h3 {
  font-size: 1rem;
}
.guidance p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 120px);
  transform: translateX(-50%);
  max-width: 620px;
  width: max-content;
  background: var(--surface2);
  border: 1px solid #61d5b155;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px 20px;
  font-size: 1rem;
  z-index: 60;
  display: none;
}
#toast.visible {
  display: block;
}
#toast.error {
  border-color: var(--red);
  color: var(--red);
}
@media (min-width: 1600px) {
  .panel {
    padding: 23px;
  }
  .metric {
    padding: 22px;
  }
  nav a {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 215px;
  }
  .main-shell {
    margin-left: 215px;
  }
  .brand {
    padding: 20px 17px;
  }
  nav a {
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }
  main {
    padding: 25px 22px;
  }
  .topbar,
  .demo-bar {
    padding-left: 22px;
    padding-right: 22px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px 13px;
  }
  .metric-bottom .spark {
    width: 50px;
  }
  .topology {
    gap: 10px;
    padding: 16px;
  }
  .topology-node {
    gap: 8px;
    flex-wrap: wrap;
  }
  .topology-node .badge {
    margin-left: 43px;
  }
  .topology-consumers {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .topology-consumers small {
    display: none;
  }
  .hardware-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .columns.wide-left {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }
  .alert-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .demo-description {
    display: none;
  }
  .confidence-list > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .timeline-panel .toolbar .segmented {
    width: 100%;
    justify-content: space-between;
  }
  .diagnostic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 205px;
  }
  .main-shell {
    margin-left: 205px;
  }
  main {
    padding: 23px 18px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .columns,
  .columns.wide-left,
  .service-grid,
  .sync-summary {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hardware-grid {
    grid-template-columns: 1fr;
  }
  .topology {
    flex-wrap: wrap;
  }
  .topology-consumers {
    display: none;
  }
  .topology > .flow-link:last-of-type {
    display: none;
  }
  .operational-summary > .badge {
    display: none;
  }
  .topbar {
    padding: 0 18px;
  }
  .topbar-right {
    gap: 10px;
  }
  .breadcrumb span {
    padding: 0 5px;
  }
  .timeline-overview {
    flex-wrap: wrap;
    gap: 15px;
  }
  .timeline-overview > div:last-child {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .timeline-overview p {
    margin: 0;
  }
  .timeline-controls {
    flex-wrap: wrap;
  }
  #toast {
    left: calc(50% + 100px);
    max-width: calc(100vw - 245px);
  }
  .table-wrap table {
    min-width: 580px;
  }
  footer {
    padding: 18px;
  }
  .metrics.three .spark {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.15s ease;
    width: 240px;
    box-shadow: var(--shadow);
  }
  .nav-open .sidebar {
    transform: none;
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 56px;
    padding: 0 15px;
  }
  .topbar-left {
    gap: 8px;
  }
  .breadcrumb > span,
  .breadcrumb > strong {
    display: none;
  }
  .topbar-right {
    gap: 5px;
  }
  .avatar {
    display: none;
  }
  .demo-bar {
    padding: 8px 17px;
    gap: 10px;
  }
  .demo-bar strong {
    letter-spacing: 0.5px;
  }
  .simulation-popover {
    right: 12px;
    top: 33px;
    max-width: calc(100vw - 24px);
  }
  main {
    padding: 23px 16px 14px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    letter-spacing: -0.7px;
  }
  .page-heading > .primary {
    min-height: 36px;
  }
  .operational-summary {
    padding: 14px;
    gap: 10px;
  }
  .summary-symbol {
    width: 28px;
    height: 28px;
    flex: none;
  }
  .metrics,
  .metrics.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    padding: 16px 12px 12px;
  }
  .metric .eyebrow {
    letter-spacing: 0.7px;
    min-height: 20px;
    margin-bottom: 6px;
  }
  .metric-bottom .spark {
    width: 40px;
  }
  .metrics.three .metric:last-child {
    grid-column: 1/-1;
  }
  .topology {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .topology-node {
    flex-wrap: nowrap;
  }
  .topology-node .badge {
    margin-left: auto;
  }
  .flow-link {
    align-self: center;
    transform: rotate(90deg);
  }
  .panel {
    padding: 17px;
    margin-bottom: 16px;
  }
  .panel-heading {
    gap: 8px;
    margin-bottom: 15px;
  }
  .columns > .panel {
    margin-bottom: 16px;
  }
  .compact-summary {
    flex-wrap: wrap;
    gap: 8px;
  }
  .mini-caption {
    margin-left: 0;
  }
  .mini-timeline > div {
    grid-template-columns: 83px 1fr;
    gap: 8px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .search {
    flex-basis: 100%;
    max-width: none;
  }
  .inline-label {
    max-width: 100%;
  }
  .inline-label select {
    min-width: 0;
    max-width: calc(100vw - 130px);
  }
  .key-values dt {
    max-width: 45%;
  }
  .service-grid .actions {
    gap: 6px;
  }
  .service-grid .actions button {
    padding: 7px 8px;
  }
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }
  .timeline-panel {
    padding: 15px 0 0;
  }
  .timeline-panel > .toolbar {
    padding: 0 14px;
  }
  .timeline-overview {
    gap: 12px;
  }
  .lag-number {
    padding-left: 15px;
  }
  .timeline-scroll {
    padding: 0 14px;
  }
  .timeline-panel .segmented button {
    padding: 6px;
  }
  .legend {
    padding: 14px;
    gap: 10px 12px;
  }
  .timeline-filter {
    padding: 12px 14px;
  }
  .recording-title {
    flex-wrap: wrap;
    gap: 10px;
  }
  .authority-display {
    flex-wrap: wrap;
  }
  .notice {
    padding: 12px;
  }
  .confidence-list > div {
    grid-template-columns: 145px 1fr;
    gap: 10px;
  }
  dialog {
    padding: 20px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 30px);
  }
  .wizard-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .wizard-steps li {
    padding: 6px;
  }
  .preview-grid {
    gap: 5px;
  }
  .preview-label {
    padding: 6px;
  }
  .preview-label > span:last-child {
    display: none;
  }
  .preview-caption {
    padding: 0 5px 7px;
  }
  .dialog-actions {
    gap: 7px;
  }
  .dialog-actions button {
    min-height: 38px;
  }
  #toast {
    left: 50%;
    max-width: calc(100vw - 30px);
    width: max-content;
    bottom: 16px;
  }
  footer {
    flex-direction: column;
    gap: 5px;
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.notice.red {
  background: var(--red-bg);
  color: var(--red);
  border-color: #f18a9233;
}
.workflow-journal {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 18px 0;
}
.workflow-journal summary {
  cursor: pointer;
  color: var(--blue);
}
.workflow-journal li {
  padding: 4px 0;
}

.authority-banner .authority-display {
  margin: 0;
  align-items: flex-start;
}
.authority-banner .authority-display p:last-child {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 850px;
}
.authority-banner .authority-display > .badge {
  margin-left: auto;
}
.authority-banner .authority-display > div {
  min-width: 0;
  flex: 1;
}
.mode-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 12px;
}
.application-mode-cards .access-mode {
  width: 100%;
  margin: 0 0 14px;
}
.application-mode-cards .access-mode button {
  flex: 1;
  min-height: 40px;
  font-size: 1rem;
}
.application-mode-cards
  .access-mode
  button[data-mode="Maintenance"][aria-pressed="true"] {
  background: var(--amber-bg);
  color: var(--amber);
}

/* Shared readable scale. Text enlargement changes rem geometry as well as type. */
:root {
  --sidebar-width: 18rem;
}
:root[data-text-size="150"] {
  font-size: 150%;
}
:root[data-text-size="200"] {
  font-size: 200%;
}
h1,
.page-heading h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
h2,
.panel-heading h2,
.operational-summary h2,
.dialog-heading h2 {
  font-size: 1.3125rem;
  line-height: 1.4;
}
h3,
.incident h3,
.guidance h3,
.inspection-empty h3 {
  font-size: 1.125rem;
}
body,
nav a,
button,
input,
select,
.subtitle,
.key-values > div,
table,
td strong,
.primary,
.secondary,
.primary-quiet,
.danger,
.danger-quiet,
.text-button,
.segmented button,
.page-heading > .primary,
.dialog-actions button,
.application-mode-cards .access-mode button,
.timeline-controls button,
.timeline-panel .segmented button,
.search input,
.notice,
.detail-copy,
.device-row strong,
.event-list strong,
.form-field,
.authority-display strong,
.hardware-grid .key-values > div {
  font-size: 1rem;
}
.metric-value,
.chart-value,
.metrics.three .metric-value,
.lag-number {
  font-size: 2.25rem;
  line-height: 1.2;
}
.metric .eyebrow {
  letter-spacing: 0.02em;
  min-height: 0;
}
.eyebrow,
.brand small,
.nav-label,
th {
  letter-spacing: 0.02em;
}
.icon {
  width: 1.25rem;
  height: 1.25rem;
}
.sidebar {
  width: var(--sidebar-width);
  overflow-y: auto;
}
.main-shell {
  margin-left: var(--sidebar-width);
}
.brand {
  height: auto;
  min-height: 5rem;
  flex-shrink: 0;
  font-size: 1.25rem;
  padding: 1.25rem;
}
.brand img {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
}
.workspace {
  flex-shrink: 0;
  margin-bottom: 1rem;
}
.court-avatar {
  min-width: 2rem;
  min-height: 2rem;
}
.sidebar nav {
  flex-shrink: 0;
  overflow: visible;
}
nav a {
  min-height: 2.75rem;
}
.sidebar-bottom {
  flex-shrink: 0;
}
.topbar {
  height: auto;
  min-height: 4.5rem;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}
.topbar-left,
.topbar-right {
  flex-wrap: wrap;
  min-width: 0;
}
.text-size-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.text-size-control select {
  font-size: 0.875rem;
  min-height: 2.5rem;
}
.demo-bar,
.demo-bar > span {
  flex-wrap: wrap;
}
.demo-description {
  display: inline;
}
.simulation-controls summary {
  white-space: normal;
}
.simulation-popover {
  top: 100%;
  width: 22rem;
  max-width: calc(100vw - 2rem);
  max-height: 75dvh;
  overflow: auto;
}
.page-heading,
.panel-heading,
.recording-title,
.toolbar,
.compact-summary,
.mode-status,
.authority-display,
.preview-label,
footer {
  flex-wrap: wrap;
}
.page-heading > div,
.panel-heading > *,
.authority-display > div,
.overview-link-row > *,
.summary-heading > *,
.problem > div {
  min-width: 0;
}
.primary,
.secondary,
.primary-quiet,
.danger,
.danger-quiet,
.icon-button {
  min-height: 2.75rem;
  white-space: normal;
  padding: 0.5rem 0.75rem;
}
.badge {
  white-space: normal;
  max-width: 100%;
}
.segmented {
  flex-wrap: wrap;
  max-width: 100%;
}
.segmented button {
  white-space: normal;
  min-height: 2.75rem;
}
select {
  min-height: 2.75rem;
}
.key-values > div {
  flex-wrap: wrap;
  gap: 0.375rem 1rem;
}
.key-values dt {
  flex: 1 1 9rem;
  max-width: 100%;
}
.key-values dd {
  flex: 1 1 9rem;
}
.metrics,
.metrics.three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.metric-value {
  overflow-wrap: anywhere;
}
.metric-bottom {
  flex-wrap: wrap;
  gap: 0.75rem;
}
.service-grid,
.hardware-grid,
.diagnostic-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}
.columns,
.columns.wide-left,
.sync-summary {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
}
.preview-grid,
.wizard-steps {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.wizard-steps span {
  width: 1.75rem;
  height: 1.75rem;
}
.device-illustration {
  height: auto;
  min-height: 12rem;
  padding: 1rem;
  text-align: center;
}
.event-list {
  max-height: 28rem;
}
.event-list li {
  flex-wrap: wrap;
}
.event-list li > div {
  flex: 1 1 15rem;
}
.event-list time {
  font-size: 0.875rem;
}
.device-row {
  flex-wrap: wrap;
}
code,
p,
h1,
h2,
h3,
.subtext,
.reason {
  overflow-wrap: anywhere;
}
th {
  white-space: normal;
  min-width: 7rem;
}
.reason {
  min-width: 15rem;
  max-width: 26rem;
}
.table-wrap table {
  min-width: 42rem;
}
.progress-row {
  min-width: 9rem;
}
.progress-row span {
  min-width: 3rem;
}
.lifecycle {
  flex-wrap: wrap;
  overflow: visible;
  gap: 1rem;
}
.lifecycle li {
  min-width: 7rem;
}
.lifecycle li span {
  width: 1.75rem;
  height: 1.75rem;
}
.confidence-list > div {
  grid-template-columns: minmax(0, 1fr);
}
.timeline-overview {
  flex-wrap: wrap;
}
.timeline-overview > div > strong {
  font-size: 2rem;
  overflow-wrap: anywhere;
}
.timeline-overview > div:last-child {
  flex-wrap: wrap;
}
.timeline-canvas {
  min-width: 62rem;
  padding-top: 1rem;
}
.timeline-ruler,
.track-row,
.timeline-events-row {
  grid-template-columns: 13rem 1fr;
}
.timeline-ruler {
  padding-bottom: 7rem;
}
.axis {
  height: 1.5rem;
}
.track-row {
  height: 6rem;
}
.track-name strong {
  font-size: 1rem;
}
.track-name small {
  font-size: 0.875rem;
}
.marker-overlay {
  left: 13rem;
}
.time-marker {
  top: -2.5rem;
}
.time-marker > span {
  font-size: 0.875rem;
  padding: 0.25rem 0.375rem;
  top: 0;
}
.time-marker.realtime > span {
  top: 0;
}
.time-marker.origin > span {
  top: 0;
}
.time-marker.realtime {
  top: -4.5rem;
}
.time-marker.origin {
  top: -6.5rem;
}
.segment {
  top: 2.4rem;
  height: 1.25rem;
}
.source-start,
.capture-frontier {
  top: 2.1rem;
  height: 1.85rem;
}
.timeline-event {
  top: 2rem;
  height: 2rem;
  min-width: 2rem;
  font-size: 1rem;
}
.timeline-event.epoch {
  top: 0;
  height: 1.75rem;
  font-size: 0.875rem;
}
.timeline-event.reconnect {
  top: 4rem;
  height: 1.75rem;
  font-size: 0.875rem;
}
.timeline-events-row {
  min-height: 3rem;
  height: auto;
}
.timeline-events-row > div {
  height: 2rem;
}
.pipeline-event {
  font-size: 1rem;
}
.legend input {
  width: 1rem;
  height: 1rem;
}
.big-chart {
  min-width: 20rem;
}
.chart-wrap {
  overflow-x: auto;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.875rem;
}
dialog {
  width: 48rem;
  max-width: calc(100vw - 2rem);
  padding: 1.5rem;
}
#toast {
  left: 50%;
  width: max-content;
  max-width: min(40rem, calc(100vw - 2rem));
  font-size: 1rem;
}
.skip-link {
  top: -10rem;
}

.overview-summary {
  border-left: 0.25rem solid var(--green);
}
.overview-summary.needs-attention {
  border-left-color: var(--amber);
}
.summary-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.freshness {
  color: var(--muted);
  font-size: 0.875rem;
}
.summary-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
}
.summary-status dt {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.375rem;
}
.summary-status dd {
  margin: 0;
}
.summary-status .badge {
  font-size: 1rem;
}
.overview-problems {
  margin-bottom: 1.5rem;
}
.overview-problems > h2 {
  margin-bottom: 0.75rem;
}
.problem {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 0.25rem solid var(--red);
  background: var(--surface);
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
}
.problem.amber {
  border-left-color: var(--amber);
}
.problem > div {
  flex: 1 1 24rem;
}
.problem h3 {
  margin-bottom: 0.375rem;
}
.problem p {
  margin: 0;
  color: var(--muted);
}
.overview-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.overview-indicator {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.overview-indicator h2 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.indicator-value {
  font-size: 2.25rem;
  font-weight: 650;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.indicator-value small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}
.overview-indicator p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.overview-indicator .text-button {
  margin-top: auto;
}
.overview-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.overview-link-row:first-child {
  padding-top: 0;
}
.overview-link-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.overview-link-row > p,
.overview-link-row > div:first-child {
  flex: 1 1 24rem;
}
.overview-link-row p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.overview-link-row strong {
  color: var(--ink);
}
.application-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.mode-link {
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface2);
  color: var(--ink);
}
.mode-link.active {
  color: var(--green);
  background: var(--green-bg);
}
.mode-link.maintenance {
  color: var(--amber);
  background: var(--amber-bg);
}
.secondary-notices {
  margin-top: 1rem;
  color: var(--muted);
}
.secondary-notices summary,
.recent-activity summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 1rem;
}
.recent-activity[open] summary {
  margin-bottom: 1.5rem;
}

@media (max-width: 70rem) {
  .sidebar {
    transform: translateX(-100%);
    width: min(var(--sidebar-width), calc(100vw - 2rem));
  }
  .nav-open .sidebar {
    transform: none;
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
}
/* Larger text also opens the full-width layout, without changing its font scale. */
:root[data-text-size="150"] .sidebar,
:root[data-text-size="200"] .sidebar {
  transform: translateX(-100%);
  width: min(var(--sidebar-width), calc(100vw - 2rem));
}
:root[data-text-size="150"] .nav-open .sidebar,
:root[data-text-size="200"] .nav-open .sidebar {
  transform: none;
}
:root[data-text-size="150"] .main-shell,
:root[data-text-size="200"] .main-shell {
  margin-left: 0;
}
:root[data-text-size="150"] .mobile-menu,
:root[data-text-size="200"] .mobile-menu {
  display: inline-flex;
}
@media (max-width: 44rem) {
  .topbar {
    padding: 0.75rem 1rem;
  }
  .topbar-right {
    gap: 0.75rem;
  }
  .demo-bar {
    padding: 0.75rem 1rem;
  }
  .demo-description {
    display: none;
  }
  main {
    padding: 1.5rem 1rem;
  }
  .panel {
    padding: 1rem;
  }
  .metrics.three .metric:last-child {
    grid-column: auto;
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .mode-status {
    align-items: flex-start;
  }
  .key-values dd {
    text-align: left;
  }
  .timeline-panel {
    padding: 1rem 0 0;
  }
  .table-wrap {
    max-width: 100%;
  }
  .inline-label {
    flex-wrap: wrap;
  }
  .inline-label select {
    max-width: 100%;
  }
}

#admin-logout[hidden] { display: none; }
/* Independent setup remains usable before Agent observations are available. */
.setup-shell { max-width: 760px; margin: 3rem auto; padding: 0 1.25rem; }
.setup-shell header, .setup-shell footer { margin: 1.5rem 0; }
.setup-shell .panel { margin: 1rem 0; padding: 1.5rem; }
.setup-shell label { display: block; margin: 1rem 0; }
.setup-shell label input:not([type="checkbox"]), .setup-shell select { display: block; width: 100%; margin-top: .5rem; }
.setup-shell .setup-check { display: flex; align-items: flex-start; gap: .75rem; }
.setup-shell footer { display: flex; gap: 1.5rem; align-items: center; }
.setup-shell #setup-status { padding: .75rem 0; }
