@charset "UTF-8";
:root {
  color-scheme:light;
  --bg:#f4f5f2;
  --surface:#fff;
  --surface-soft:#eef1ed;
  --ink:#182a30;
  --muted:#69787b;
  --line:#dfe6e2;
  --accent:#087d87;
  --accent-soft:#e3f2ef;
  --blue:#3378b9;
  --blue-soft:#e8f0f9;
  --danger:#b8423b;
  --danger-soft:#fdf0eb;
  --warning:#ac7322;
  --shadow:0 10px 45px #102c3510;
  --radius:18px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:14px/1.5 var(--font);
  -webkit-font-smoothing:antialiased
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.48
}
a {
  color:var(--accent)
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid var(--blue);
  outline-offset:3px
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:34px;
  letter-spacing:-1.2px;
  line-height:1.15;
  font-weight:650
}
h2 {
  font-size:19px;
  letter-spacing:-.35px;
  line-height:1.35;
  font-weight:650
}
h3 {
  font-size:15px;
  font-weight:650
}
p+p {
  margin-top:12px
}
.muted {
  color:var(--muted)
}
.hidden {
  display:none!important
}
.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:1.7px;
  color:var(--accent);
  margin-bottom:9px
}
.app-shell {
  max-width:1152px;
  margin:0 auto;
  padding:0 32px 24px
}
.app-header {
  height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}
.brand {
  text-decoration:none;
  color:var(--ink);
  display:flex;
  align-items:center;
  gap:18px
}
.brand-word {
  font-size:30px;
  font-weight:850;
  letter-spacing:-1.5px
}
.brand-arrow {
  color:var(--accent);
  margin-left:4px
}
.brand-description {
  font-size:9px;
  letter-spacing:1.5px;
  max-width:100px;
  line-height:1.7;
  color:var(--muted);
  padding-left:18px;
  border-left:1px solid var(--line)
}
.header-actions {
  display:flex;
  gap:16px;
  align-items:center
}
.connection-status {
  font-size:11px;
  color:var(--muted)
}
.icon-button {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--surface);
  color:var(--ink);
  font-size:22px;
  line-height:1
}
.safety-bar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  background:var(--surface);
  padding:10px 12px 10px 17px;
  border-radius:12px
}
.safety-status {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px;
  font-weight:600;
  min-width:0
}
.status-dot {
  height:7px;
  width:7px;
  border-radius:50%;
  background:var(--muted);
  flex:0 0 auto
}
.status-dot.on {
  background:var(--accent);
  box-shadow:0 0 0 4px var(--accent-soft)
}
.status-dot.warning {
  background:var(--warning)
}
.safety-actions {
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto
}
.safety-button {
  background:var(--surface-soft);
  color:var(--ink);
  border:0;
  border-radius:7px;
  padding:8px 12px;
  font-size:11px;
  font-weight:650;
  min-height:34px
}
.safety-button.stop {
  background:var(--danger-soft);
  color:var(--danger)
}
.main-navigation {
  display:flex;
  gap:25px;
  border-bottom:1px solid var(--line);
  margin:24px 0 32px
}
.nav-item {
  background:none;
  border:0;
  border-bottom:2px solid transparent;
  color:var(--muted);
  padding:0 2px 13px;
  font-size:12px;
  display:flex;
  align-items:center;
  gap:7px;
  font-weight:550
}
.nav-item.active {
  color:var(--accent);
  border-bottom-color:var(--accent);
  font-weight:700
}
.nav-icon {
  font-size:18px;
  line-height:1
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:24px
}
.page-heading p.muted {
  font-size:12px;
  margin-top:9px;
  max-width:560px
}
.heading-tag {
  font-size:10px;
  letter-spacing:1px;
  color:var(--muted);
  white-space:nowrap
}
.filters {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:23px
}
.segmented {
  display:flex;
  background:var(--surface-soft);
  padding:4px;
  border-radius:9px
}
.segment {
  border:0;
  background:transparent;
  color:var(--muted);
  padding:7px 13px;
  font-size:11px;
  border-radius:6px;
  white-space:nowrap
}
.segment.active {
  background:var(--surface);
  color:var(--ink);
  box-shadow:0 1px 5px #142e3110;
  font-weight:650
}
.filter-select {
  height:39px;
  max-width:220px;
  min-width:150px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface);
  color:var(--ink);
  font-size:11px;
  padding:0 28px 0 12px
}
.filter-label {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:11px
}
.filter-spacer {
  flex:1
}
.metrics-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  margin-bottom:20px
}
.metric {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 16px;
  min-height:145px;
  position:relative;
  overflow:hidden
}
.metric.primary-metric {
  background:var(--accent);
  color:#fff;
  border-color:var(--accent)
}
.metric-label {
  font-size:11px;
  color:var(--muted);
  margin-bottom:14px;
  display:flex;
  align-items:center;
  gap:5px
}
.primary-metric .metric-label {
  color:#d8eeea
}
.metric-number {
  font-size:32px;
  line-height:1.2;
  letter-spacing:-1.1px;
  font-weight:600;
  font-variant-numeric:tabular-nums
}
.metric-hint {
  font-size:10px;
  color:var(--muted);
  margin-top:10px;
  line-height:1.5
}
.primary-metric .metric-hint {
  color:#d8eeea
}
.metric-symbol {
  position:absolute;
  right:15px;
  bottom:14px;
  font-size:34px;
  font-weight:300;
  opacity:.23
}
.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);
  gap:20px;
  margin-bottom:20px
}
.card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  min-width:0
}
.card-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:18px
}
.card-header p {
  font-size:11px;
  color:var(--muted);
  margin-top:4px
}
.card-kicker {
  font-size:10px;
  color:var(--muted);
  letter-spacing:1px
}
.chart {
  display:block;
  width:100%;
  height:auto;
  overflow:visible
}
.chart-grid {
  stroke:var(--line);
  stroke-width:1
}
.chart-axis {
  fill:var(--muted);
  font:10px var(--font)
}
.chart-area {
  fill:var(--accent-soft);
  opacity:.7
}
.chart-line {
  fill:none;
  stroke:var(--accent);
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round
}
.chart-request {
  stroke:var(--blue);
  stroke-width:1.6;
  stroke-dasharray:4 5
}
.chart-reply {
  stroke:var(--warning);
  stroke-width:1.8
}
.chart-legend {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:10px;
  font-size:10px;
  color:var(--muted)
}
.legend-item {
  display:flex;
  align-items:center;
  gap:6px
}
.legend-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent)
}
.legend-dot.blue {
  background:var(--blue)
}
.legend-dot.amber {
  background:var(--warning)
}
.empty-chart {
  height:180px;
  display:grid;
  place-items:center;
  color:var(--muted)
}
.breakdown-list {
  display:flex;
  flex-direction:column;
  gap:13px
}
.breakdown-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:5px 10px;
  font-size:11px
}
.breakdown-row strong {
  font-variant-numeric:tabular-nums;
  font-weight:600
}
.breakdown-meter {
  grid-column:1/-1;
  width:100%;
  height:5px;
  border:0;
  border-radius:20px;
  background:var(--surface-soft);
  appearance:none
}
.breakdown-meter::-webkit-meter-bar {
  height:5px;
  background:var(--surface-soft);
  border:0;
  border-radius:20px
}
.breakdown-meter::-webkit-meter-optimum-value {
  background:var(--accent);
  border-radius:20px
}
.breakdown-meter::-moz-meter-bar {
  background:var(--accent)
}
.breakdown-row.danger .breakdown-meter::-webkit-meter-optimum-value {
  background:var(--danger)
}
.breakdown-row.muted-row .breakdown-meter::-webkit-meter-optimum-value {
  background:var(--muted)
}
.table-card {
  padding:0;
  overflow:hidden;
  margin-bottom:20px
}
.table-card .card-header {
  padding:22px 24px 0
}
.table-scroll {
  overflow-x:auto;
  overscroll-behavior-x:contain
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:11px;
  text-align:left
}
th {
  color:var(--muted);
  font-weight:500;
  background:var(--surface-soft);
  padding:11px 20px;
  white-space:nowrap
}
td {
  padding:15px 20px;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
  font-variant-numeric:tabular-nums
}
tbody tr:last-child td {
  border-bottom:0
}
td.number,th.number {
  text-align:right
}
td.entity-cell {
  min-width:150px;
  max-width:250px;
  overflow-wrap:anywhere;
  font-weight:600
}
.entity-secondary {
  display:block;
  font-size:10px;
  font-weight:400;
  color:var(--muted);
  margin-top:3px
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  line-height:1.4;
  padding:4px 8px;
  border-radius:6px;
  background:var(--surface-soft);
  color:var(--muted);
  white-space:nowrap
}
.badge.good {
  background:var(--accent-soft);
  color:var(--accent)
}
.badge.bad {
  background:var(--danger-soft);
  color:var(--danger)
}
.badge.info {
  background:var(--blue-soft);
  color:var(--blue)
}
.empty-state {
  padding:34px 16px;
  text-align:center;
  color:var(--muted);
  font-size:12px
}
.empty-state strong {
  display:block;
  color:var(--ink);
  font-weight:550;
  margin-bottom:5px
}
.notice {
  border:1px solid var(--line);
  background:var(--surface-soft);
  border-radius:12px;
  padding:13px 16px;
  font-size:12px;
  line-height:1.7;
  margin:16px 0
}
.notice.error {
  background:var(--danger-soft);
  border-color:var(--danger-soft);
  color:var(--danger)
}
.notice.warning {
  color:var(--warning);
  background:var(--surface-soft)
}
.notice.compact {
  margin:0 0 18px
}
.definition {
  font-size:10px;
  line-height:1.7;
  color:var(--muted);
  margin-top:15px
}
.text-button {
  background:none;
  border:0;
  color:var(--accent);
  font-size:11px;
  font-weight:650;
  padding:8px 0;
  text-align:left
}
.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:10px 17px;
  border-radius:9px;
  border:1px solid transparent;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
  line-height:1.4
}
.button.primary {
  background:var(--accent);
  color:#fff
}
.button.secondary {
  background:var(--surface);
  border-color:var(--line);
  color:var(--ink)
}
.button.danger {
  background:var(--danger);
  color:#fff
}
.button.quiet-danger {
  background:var(--danger-soft);
  color:var(--danger)
}
.button.small {
  min-height:33px;
  padding:7px 11px;
  font-size:11px
}
.buttons {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.section-tabs {
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding-bottom:4px;
  margin-bottom:20px
}
.section-tab {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  font-size:11px;
  padding:8px 14px;
  color:var(--muted);
  white-space:nowrap
}
.section-tab.active {
  background:var(--ink);
  color:var(--surface);
  border-color:var(--ink)
}
.management-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.management-grid>.wide {
  grid-column:1/-1
}
.detail-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin:20px 0
}
.detail-label {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-bottom:5px
}
.detail-value {
  font-size:13px;
  font-weight:550;
  overflow-wrap:anywhere
}
.control-list {
  display:flex;
  flex-direction:column
}
.control-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 0;
  border-bottom:1px solid var(--line)
}
.control-row:last-child {
  border-bottom:0;
  padding-bottom:0
}
.control-copy {
  max-width:400px
}
.control-copy p {
  font-size:11px;
  color:var(--muted);
  margin-top:5px
}
.control-row .button {
  flex:0 0 auto
}
.entity-cards {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px
}
.entity-card .card-header {
  align-items:flex-start
}
.entity-title {
  display:flex;
  gap:12px;
  align-items:center;
  min-width:0
}
.entity-title h3 {
  overflow-wrap:anywhere
}
.avatar {
  height:39px;
  width:39px;
  flex:0 0 auto;
  border-radius:12px;
  background:var(--accent-soft);
  color:var(--accent);
  display:grid;
  place-items:center;
  font-size:15px;
  font-weight:650
}
.entity-card .buttons {
  margin-top:20px
}
.content-preview {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:170px;
  overflow-y:auto;
  background:var(--surface-soft);
  border-radius:10px;
  padding:15px;
  font-size:12px;
  line-height:1.75;
  margin-top:15px
}
.settings-list {
  display:flex;
  flex-direction:column
}
.setting-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:17px 0;
  border-bottom:1px solid var(--line)
}
.setting-row:last-child {
  border-bottom:0
}
.setting-name {
  font-size:12px;
  font-weight:550
}
.setting-hint {
  font-size:10px;
  color:var(--muted);
  margin-top:4px
}
.setting-value {
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto
}
.setting-value strong {
  font-size:12px;
  font-weight:550;
  font-variant-numeric:tabular-nums
}
.pagination {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 20px;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted)
}
.error-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-size:12px
}
.error-row:last-child {
  border:0
}
.error-code {
  font-family:ui-monospace,SFMono-Regular,monospace;
  font-size:11px;
  overflow-wrap:anywhere
}
.app-footer {
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding-top:24px;
  margin-top:12px;
  border-top:1px solid var(--line);
  font-size:10px;
  color:var(--muted)
}
.access-screen {
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:24px
}
.access-card {
  max-width:450px;
  text-align:center;
  padding:42px 30px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow)
}
.brand-mark {
  height:68px;
  width:68px;
  margin:0 auto 25px;
  border-radius:20px;
  display:flex;
  justify-content:center;
  align-items:center;
  background:var(--accent);
  color:#fff;
  font-size:42px;
  font-weight:750;
  letter-spacing:-5px
}
.brand-mark span {
  font-size:30px;
  margin-left:2px
}
.access-card h1 {
  font-size:27px;
  letter-spacing:-.8px
}
.access-card p.muted {
  font-size:13px;
  margin:15px 0 24px;
  line-height:1.8
}
.access-caption {
  font-size:10px;
  color:var(--muted);
  margin-top:28px
}
.action-dialog {
  color:var(--ink);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  max-width:480px;
  width:calc(100% - 32px);
  max-height:calc(100dvh - 40px);
  padding:25px;
  box-shadow:var(--shadow);
  overflow:auto
}
.action-dialog::backdrop {
  background:#122c3866;
  backdrop-filter:blur(5px)
}
.dialog-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px
}
.dialog-header .icon-button {
  flex:0 0 auto;
  width:32px;
  height:32px
}
.dialog-header h2 {
  font-size:22px
}
.dialog-actions {
  display:flex;
  gap:10px;
  margin-top:22px
}
.dialog-actions .button {
  flex:1
}
.dialog-emergency {
  display:block;
  margin:22px auto 0;
  font-size:11px;
  color:var(--danger);
  background:none;
  border:0;
  padding:7px
}
.form-fields {
  display:flex;
  flex-direction:column;
  gap:16px
}
.form-field {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  font-weight:550
}
.form-field input,.form-field textarea,.form-field select {
  width:100%;
  border:1px solid var(--line);
  border-radius:9px;
  padding:11px 12px;
  color:var(--ink);
  background:var(--bg);
  font-size:14px;
  font-weight:400
}
.form-field textarea {
  min-height:140px;
  resize:vertical;
  line-height:1.6
}
.form-field small {
  font-size:11px;
  line-height:1.6;
  font-weight:400;
  color:var(--muted)
}
.confirmation-summary {
  display:flex;
  flex-direction:column;
  gap:13px;
  margin:15px 0
}
.confirmation-row {
  border-bottom:1px solid var(--line);
  padding-bottom:12px
}
.confirmation-row:last-child {
  border:0
}
.confirmation-row dt {
  font-size:10px;
  color:var(--muted);
  margin-bottom:5px
}
.confirmation-row dd {
  font-size:13px;
  margin:0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:200px;
  overflow:auto
}
.toast {
  position:fixed;
  bottom:28px;
  left:50%;
  transform:translateX(-50%);
  max-width:calc(100% - 32px);
  width:max-content;
  background:var(--ink);
  color:var(--surface);
  border:1px solid var(--line);
  padding:13px 20px;
  border-radius:12px;
  font-size:12px;
  z-index:20;
  box-shadow:var(--shadow)
}
.loading-card {
  padding:70px 20px;
  text-align:center;
  color:var(--muted)
}
.small-note {
  font-size:11px;
  color:var(--muted);
  line-height:1.7;
  margin-top:12px
}
body.dark {
  color-scheme:dark;
  --bg:#142025;
  --surface:#1c2b31;
  --surface-soft:#26373b;
  --ink:#e5f0ed;
  --muted:#9cacae;
  --line:#33454a;
  --accent:#68c7bb;
  --accent-soft:#234840;
  --blue:#79acd9;
  --blue-soft:#283d51;
  --danger:#ed9a8f;
  --danger-soft:#482f2d;
  --warning:#d6b275;
  --shadow:0 10px 45px #0003
}
body.dark .metric.primary-metric {
  background:#246a63;
  color:#f1fffc;
  border-color:#347a72
}
body.dark .button.primary {
  background:#347f74;
  color:#fff
}
body.dark .button.danger {
  background:#963f36;
  color:#fff
}
@media(min-width:1300px) {
  .app-shell {
    padding-top:8px
  }
}
@media(max-width:950px) {
  .metrics-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .metric {
    min-height:125px
  }
  .dashboard-grid {
    grid-template-columns:minmax(0,1.6fr) minmax(230px,1fr)
  }
  .card {
    padding:20px
  }
  .table-card {
    padding:0
  }
  .metric-number {
    font-size:31px
  }
  .filter-spacer {
    display:none
  }
}
@media(max-width:680px) {
  .app-shell {
    padding:0 17px calc(94px + env(safe-area-inset-bottom))
  }
  .app-header {
    height:76px
  }
  .brand-word {
    font-size:28px
  }
  .brand-description {
    font-size:8px;
    max-width:100px;
    padding-left:12px
  }
  .brand {
    gap:12px
  }
  .header-actions {
    gap:8px
  }
  .connection-status {
    display:none
  }
  .safety-bar {
    position:sticky;
    top:0;
    z-index:5;
    padding:9px 10px 9px 12px;
    border-radius:11px;
    margin-bottom:26px;
    box-shadow:0 5px 10px #142e3108
  }
  .safety-status {
    font-size:10px;
    gap:7px
  }
  .safety-button {
    font-size:10px;
    padding:8px 9px
  }
  .safety-actions {
    gap:5px
  }
  .main-navigation {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:10;
    background:var(--surface);
    margin:0;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:0;
    padding:8px 5px calc(8px + env(safe-area-inset-bottom));
    border-top:1px solid var(--line);
    border-bottom:0
  }
  .nav-item {
    flex-direction:column;
    font-size:9px;
    gap:3px;
    padding:4px 0;
    border:0;
    min-height:44px
  }
  .nav-icon {
    font-size:21px
  }
  .nav-item.active {
    background:var(--accent-soft);
    border-radius:10px
  }
  .page-heading {
    margin-bottom:20px;
    align-items:flex-start
  }
  .page-heading p.muted {
    font-size:11px;
    line-height:1.65;
    margin-top:8px
  }
  .page-heading h1 {
    font-size:29px;
    letter-spacing:-.9px
  }
  .heading-tag {
    display:none
  }
  .eyebrow {
    font-size:9px;
    margin-bottom:8px
  }
  .filters {
    gap:8px;
    margin-bottom:18px;
    display:grid;
    grid-template-columns:1fr 1fr
  }
  .filters>.segmented {
    grid-column:1/-1;
    width:max-content
  }
  .filter-label {
    display:block
  }
  .filter-label>span {
    display:none
  }
  .filter-select {
    width:100%;
    min-width:0;
    max-width:none;
    font-size:11px
  }
  .metrics-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin-bottom:16px
  }
  .metric {
    padding:16px 14px;
    min-height:122px;
    border-radius:13px
  }
  .metric-number {
    font-size:31px
  }
  .metric-label {
    font-size:10px;
    margin-bottom:10px
  }
  .metric-hint {
    font-size:9px;
    margin-top:9px
  }
  .metric-symbol {
    font-size:28px
  }
  .dashboard-grid {
    grid-template-columns:1fr;
    gap:16px;
    margin-bottom:16px
  }
  .card {
    padding:19px 17px;
    border-radius:14px
  }
  .card-header {
    margin-bottom:16px
  }
  .card-header h2 {
    font-size:17px
  }
  .card-header p {
    font-size:10px
  }
  .table-card {
    padding:0;
    margin-bottom:16px
  }
  .table-card .card-header {
    padding:19px 17px 0
  }
  th {
    padding:10px 15px;
    font-size:10px
  }
  td {
    padding:14px 15px;
    font-size:11px
  }
  .management-grid,.entity-cards {
    grid-template-columns:1fr
  }
  .management-grid>.wide {
    grid-column:auto
  }
  .section-tabs {
    margin-bottom:17px;
    gap:6px
  }
  .section-tab {
    font-size:10px;
    padding:8px 12px
  }
  .control-row {
    gap:12px
  }
  .control-copy h3 {
    font-size:13px
  }
  .control-copy p {
    font-size:10px
  }
  .control-row .button {
    font-size:10px;
    min-height:37px;
    padding:8px 11px
  }
  .button {
    font-size:11px;
    padding:10px 13px
  }
  .buttons {
    gap:7px
  }
  .setting-row {
    gap:12px;
    align-items:flex-start
  }
  .setting-name {
    font-size:11px
  }
  .setting-hint {
    font-size:9px;
    overflow-wrap:anywhere
  }
  .setting-value {
    gap:7px
  }
  .setting-value strong {
    font-size:11px;
    max-width:100px;
    overflow-wrap:anywhere
  }
  .app-footer {
    font-size:9px;
    line-height:1.7
  }
  .app-footer>span:last-child {
    text-align:right
  }
  .action-dialog {
    padding:22px 18px;
    border-radius:18px;
    max-height:calc(100dvh - 24px)
  }
  .toast {
    bottom:calc(83px + env(safe-area-inset-bottom));
    font-size:11px
  }
  .definition {
    font-size:9px
  }
  .notice {
    font-size:11px
  }
  .access-card {
    padding:35px 24px
  }
}
@media(prefers-reduced-motion:no-preference) {
  button,a {
    transition:background-color .16s,color .16s,opacity .16s
  }
  .metric,.card {
    animation:enter .24s ease-out
  }
  @keyframes enter {
    from {
      opacity:0;
      transform:translateY(4px)
    }
    to {
      opacity:1;
      transform:translateY(0)
    }
  }
}
:root {
  --safe-top:max(env(safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px));
  --safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px));
  --safe-left:max(env(safe-area-inset-left,0px),var(--tg-safe-area-inset-left,0px),var(--tg-content-safe-area-inset-left,0px));
  --safe-right:max(env(safe-area-inset-right,0px),var(--tg-safe-area-inset-right,0px),var(--tg-content-safe-area-inset-right,0px))
}
h2,h3 {
  overflow-wrap:anywhere
}
#error-banner {
  display:flex;
  align-items:flex-start;
  gap:12px;
  justify-content:space-between
}
.notice-dismiss {
  border:0;
  background:none;
  color:var(--danger);
  font-size:22px;
  line-height:1;
  padding:0 2px;
  flex:0 0 auto
}
.snapshot-card {
  margin-bottom:20px
}
.snapshot-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px
}
.snapshot-grid .detail-value {
  font-size:22px;
  letter-spacing:-.5px;
  font-variant-numeric:tabular-nums
}
.queue-blockers {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px
}
.queue-blockers p {
  flex:0 0 100%;
  margin-bottom:3px
}
.queue-blockers .badge {
  white-space:normal
}
.app-shell {
  padding-top:var(--safe-top)
}
@media(max-width:680px) {
  .app-shell {
    padding-top:var(--safe-top);
    padding-right:max(17px,var(--safe-right));
    padding-left:max(17px,var(--safe-left));
    padding-bottom:calc(94px + var(--safe-bottom))
  }
  .safety-bar {
    top:var(--safe-top)
  }
  .main-navigation {
    padding-left:max(5px,var(--safe-left));
    padding-right:max(5px,var(--safe-right));
    padding-bottom:calc(8px + var(--safe-bottom))
  }
  .toast {
    bottom:calc(83px + var(--safe-bottom))
  }
  .snapshot-grid {
    grid-template-columns:1fr 1fr;
    gap:17px
  }
  .snapshot-grid .detail-label {
    font-size:9px
  }
  .snapshot-card {
    margin-bottom:16px
  }
}
