/* Private admin overview, scoped to its dedicated dashboard host. */
.adm-dashboard { color: var(--ink); padding: 12px 0 38px; }
.adm-dashboard *, .adm-dashboard *::before, .adm-dashboard *::after { box-sizing: border-box; }
.adm-dashboard h2, .adm-dashboard h3, .adm-dashboard h4, .adm-dashboard p, .adm-dashboard figure { margin: 0; }
.adm-dashboard button, .adm-dashboard select { font: inherit; }
.adm-dashboard button, .adm-dashboard select, .adm-dashboard summary { -webkit-tap-highlight-color: transparent; }
.adm-dashboard :is(button, select, a, summary, [tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.adm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 0 28px; }
.adm-eyebrow { color: var(--primary); font-size: 10px; line-height: 1.6; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.adm-toolbar h2 { font: 500 clamp(30px, 3.5vw, 42px)/1.15 var(--serif-alt); letter-spacing: -.035em; margin-top: 8px; }
.adm-updated { color: var(--muted); font-size: 11px; margin-top: 10px !important; line-height: 1.6; }
.adm-controls { display: flex; align-items: end; gap: 12px; flex: 0 0 auto; }
.adm-controls label { display: flex; flex-direction: column; gap: 6px; font-size: 10px; font-weight: 600; color: var(--muted); }
.adm-controls select { min-height: 42px; min-width: 140px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); padding: 10px; font-size: 12px; }
.adm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 18px; border: 1px solid var(--primary); border-radius: 4px; background: var(--primary); color: white; font-size: 12px !important; font-weight: 700 !important; cursor: pointer; }
.adm-button:hover { filter: brightness(1.08); }
.adm-button:disabled { opacity: .6; cursor: wait; }
.adm-text-button, .adm-text-link { min-height: 32px; background: transparent; border: 0; color: var(--primary); font-size: 11px !important; font-weight: 600; cursor: pointer; padding: 5px 0; text-decoration: underline; text-underline-offset: 3px; line-height: 1.6; }
.adm-section { margin-bottom: 26px; padding: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); }
.adm-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.adm-section-heading h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.15; margin-top: 5px; }
.adm-status { flex: 0 0 auto; display: inline-block; padding: 6px 9px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.5; }
.adm-status-connected { color: var(--success); }
.adm-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; margin: 22px 0 18px; background: var(--surface); }
.adm-metric { min-width: 0; padding: 20px 18px; border-right: 1px solid var(--line); }
.adm-metric:last-child { border-right: 0; }
.adm-metric-label { color: var(--muted); font-size: 11px; line-height: 1.6; }
.adm-metric-value { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.025em; line-height: 1; margin: 13px 0 10px !important; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm-note { color: var(--muted); font-size: 10px; line-height: 1.7; }
.adm-context { color: var(--muted); font-size: 11px; line-height: 1.75; max-width: 100ch; }
.adm-subheading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 14px; }
.adm-subheading h3, .adm-table-title { font-size: 13px; font-weight: 700; line-height: 1.5; }
.adm-queues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.adm-queue { min-width: 0; border: 1px solid var(--line); border-radius: 4px; padding: 16px; background: var(--surface); }
.adm-queue > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.adm-queue h3 { font-size: 12px; font-weight: 600; line-height: 1.6; }
.adm-queue strong { font-family: var(--serif); font-size: 27px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.adm-queue-action { color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 12px !important; }
.adm-queue-action a { color: var(--primary); font-weight: 700; text-underline-offset: 3px; }
.adm-metrics-compact .adm-metric-value { font-size: 30px; }
.adm-source-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; margin: -5px 0 16px; }
.adm-chart { margin: 26px 0 12px !important; min-width: 0; }
.adm-chart figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 15px; }
.adm-chart figcaption strong { font-size: 12px; font-weight: 600; }
.adm-legend { display: flex; gap: 16px; color: var(--muted); font-size: 10px; }
.adm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.adm-legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.adm-legend-dot.adm-series-0 { background: var(--primary); }
.adm-legend-dot.adm-series-1 { background: var(--accent); }
.adm-chart svg { display: block; width: 100%; height: auto; max-height: 230px; overflow: visible; }
.adm-series { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.adm-series-0 { stroke: var(--primary); }
.adm-series-1 { stroke: var(--accent); stroke-dasharray: 6 4; }
.adm-series-dot.adm-series-0 { fill: var(--primary); }
.adm-series-dot.adm-series-1 { fill: var(--accent); }
.adm-gridline { stroke: var(--line); stroke-width: .8; vector-effect: non-scaling-stroke; }
.adm-axis { fill: var(--muted); font: 9px system-ui, sans-serif; }
.adm-chart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; margin: 22px 0; background: var(--surface); border: 1px dashed var(--line); border-radius: 4px; gap: 8px; }
.adm-chart-empty p { font-size: 12px; font-weight: 600; }
.adm-chart-empty span { font-size: 11px; color: var(--muted); }
.adm-data-details { margin-top: 16px; }
.adm-data-details > summary { font-size: 11px; font-weight: 600; color: var(--primary); padding: 8px 0; cursor: pointer; line-height: 1.6; }
.adm-reference-detail { padding-top: 7px; }
.adm-tables-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 25px; margin-top: 26px; }
.adm-table-title { margin-bottom: 12px !important; }
.adm-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.adm-table-wrap table { width: 100%; border-collapse: collapse; background: var(--bg); font-size: 11px; line-height: 1.6; }
.adm-table-wrap caption { text-align: left; font-size: 10px; color: var(--muted); padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.adm-table-wrap th, .adm-table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.adm-table-wrap thead th { background: var(--surface); color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.adm-table-wrap tbody th { font-weight: 500; overflow-wrap: anywhere; min-width: 90px; }
.adm-table-wrap tr:last-child > * { border-bottom: 0; }
.adm-table-wrap .adm-numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-path { display: block; min-width: 140px; max-width: 260px; overflow-wrap: anywhere; font-size: 10px; }
.adm-no-rows { background: var(--surface); border-radius: 4px; padding: 18px; }
.adm-unavailable, .adm-error { padding: 15px 17px; border-left: 3px solid var(--primary); background: var(--surface); border-radius: 0 4px 4px 0; font-size: 12px; line-height: 1.7; color: var(--muted); margin-bottom: 20px !important; }
.adm-error { border-left-color: var(--sienna); }
.adm-loading { padding: 30px 0; color: var(--muted); font-size: 13px; }
.adm-loading-panel { min-height: 290px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 35px 20px; text-align: center; }
.adm-loading-panel h3 { font-family: var(--serif-alt); font-size: 24px; font-weight: 500; }
.adm-loading-panel p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.adm-loading-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-bottom: 10px; }
[data-theme="dark"] .adm-button { color: oklch(.16 .03 52); }
@media (max-width: 800px) {
  .adm-section { padding: 22px; }
  .adm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-metric:nth-child(2) { border-right: 0; }
  .adm-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .adm-tables-pair { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .adm-toolbar { flex-direction: column; align-items: start; gap: 20px; }
  .adm-controls { width: 100%; }
  .adm-controls label { flex: 1; }
  .adm-controls select { width: 100%; font-size: 16px; }
  .adm-controls .adm-button { min-width: 90px; }
  .adm-section { padding: 20px 15px; }
  .adm-section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .adm-section-heading h2 { font-size: 28px; }
  .adm-metric { padding: 17px 13px; }
  .adm-metric-value { font-size: 34px; }
  .adm-queues { grid-template-columns: 1fr; }
  .adm-source-line { align-items: start; flex-direction: column; gap: 4px; }
  .adm-chart svg { min-height: 120px; }
  .adm-table-wrap th, .adm-table-wrap td { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { .adm-dashboard *, .adm-dashboard *::before, .adm-dashboard *::after { transition: none !important; scroll-behavior: auto !important; } }
