/* Operator console (admin.zynoptes.com) — page-specific rules on top of /shell.css. */

.viewpanel { display: grid; gap: 20px; align-content: start; }

.filters-panel { padding: 14px 16px; }
.filters-panel .filters label { max-width: 200px; }

.search-form { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; }
.search-form input { width: 260px; }

.table-foot { display: flex; justify-content: center; }
.table-foot button { min-width: 140px; }

.groups { display: grid; gap: 10px; }

#metrics-extra { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#metrics-extra dd { font-family: var(--font-mono); font-size: 12.5px; }

#detail-grid dd.mono { font-size: 12.5px; }

#registry td:last-child { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
#registry td:first-child { font-weight: 600; }

@media (max-width: 1100px) {
  #metrics-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  #metrics-extra { grid-template-columns: 1fr; }
  .search-form { width: 100%; }
  .search-form input { width: auto; flex: 1; }
}

/* Admin controls and charts reuse the shared shell's surfaces and tokens. */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.presets { margin-top: 12px; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.chart { min-width: 0; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; }
.chart .grid-line { stroke: var(--hairline); }
.chart .series-line { fill: none; stroke-width: 2; }
.chart .chart-point { stroke-width: 2; fill: var(--surface); cursor: pointer; }
.chart .chart-point:focus { outline: none; stroke-width: 4; fill: var(--ink); }
.series-0 { stroke: var(--accent); }
.series-1 { stroke: var(--ink); stroke-dasharray: 7 4; }
.series-2 { stroke: var(--ink-muted); stroke-dasharray: 2 3; }
.series-3 { stroke: var(--accent); stroke-dasharray: 9 3 2 3; }
.series-4 { stroke: var(--ink); stroke-dasharray: 2 3; }
.chart-tooltip { min-height: 44px; overflow-wrap: anywhere; color: var(--ink-muted); margin-top: 8px; }
#model-legend { margin-bottom: 10px; }
#model-legend button { font-size: 12px; padding: 5px 9px; }
#model-legend button[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.legend-mark { width: 24px; height: 10px; vertical-align: middle; margin-right: 6px; }
.ranking { display: grid; gap: 12px; }
.ranking button { text-align: left; display: grid; gap: 4px; width: 100%; font-size: 13px; overflow-wrap: anywhere; white-space: normal; }
.ranking .bar-label { display: flex; justify-content: space-between; gap: 12px; }
.ranking svg { width: 100%; height: 5px; }
.ranking rect { fill: var(--accent); }
.key-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
#new-account-fields { grid-column: 1 / -1; }
#key-create .toolbar, #issued-panel .toolbar { margin-top: 14px; }
#key-mode-hint, #keys-state, #issued-id, #recovery-id { margin: 12px 0; }
#issued-secret { width: 100%; resize: vertical; overflow-wrap: anywhere; }
#issued-id, #recovery-id { overflow-wrap: anywhere; }
#keys td:first-child, #keys td:nth-child(2) { max-width: 280px; overflow-wrap: anywhere; white-space: normal; }
#keys .mono { font-size: 11px; color: var(--ink-muted); }
.revoke-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.partial-label { color: var(--warning-ink); }
@media (max-width: 700px) {
  .analytics-grid, .key-fields { grid-template-columns: minmax(0, 1fr); }
  .panel-head { flex-wrap: wrap; }
  .chart-tooltip { font-size: 11px; }
  .chart text { font-size: 12px; }
  .ranking .bar-label { flex-wrap: wrap; }
}

#issued-secret { color: var(--ink); background: #101012; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 9px 12px; }
#issued-secret:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.chart [data-point]:focus { outline: 1px solid var(--accent); }
