:root {
  /* Design tokens — densos, ops (P12-001). Sem purple-slop. */
  --ink: #0f1419;
  --muted: #5c6b7a;
  --line: #d7dde3;
  --surface: #f4f6f8;
  --card: #ffffff;
  --accent: #0b6e4f;
  --warn: #b45309;
  --danger: #b42318;
  --ok: #0b6e4f;
  --chip: #e8eef2;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --radius: 8px;
  --shadow-soft: 0 1px 0 rgba(15, 20, 25, 0.04);
  --text-xs: 0.7rem;
  --text-sm: 0.78rem;
  --text-md: 0.95rem;
  --shell-max: 1440px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  font: 13px/1.35 var(--font);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4) 1.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.85rem;
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--surface) 92%, white);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.brand {
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
}
.topbar-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.breadcrumb .sep { margin: 0 0.35rem; opacity: 0.6; }
.recent-panel {
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
  color: var(--muted);
}
.recent-panel ul {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
html[data-density="compact"] {
  font-size: 12px;
}
html[data-density="compact"] .panel { padding: 0.55rem 0.65rem; }
html[data-density="compact"] table.data th,
html[data-density="compact"] table.data td { padding: 0.25rem 0.35rem; }
html[data-theme="dark"] {
  --ink: #e8eef2;
  --muted: #9aa8b5;
  --line: #2a3540;
  --surface: #0f1419;
  --card: #1a2229;
  --chip: #24303a;
  color-scheme: dark;
}
.badge.proxied { background: #fcd9b8; color: #9a3412; }
.badge.dns-only { background: var(--chip); color: var(--muted); }
.btn-icon {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0 0.15rem;
  vertical-align: middle;
}
.btn-icon:hover { color: var(--accent); }
.apex-cell { display: inline-flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.col-picker label { cursor: pointer; user-select: none; }
.col-picker input { margin-right: 0.2rem; }
.cmd-palette .modal-card,
.cmd-card {
  max-width: 32rem;
  width: 100%;
  margin: 10vh auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.cmd-input {
  width: 100%;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.cmd-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 16rem;
  overflow: auto;
}
.cmd-results li {
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}
.cmd-results li.active,
.cmd-results li:hover { background: var(--chip); }
.cmd-hint { font-size: var(--text-xs); margin: 0.5rem 0 0; }
.ficha-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.ficha-tabs a {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--chip);
  color: var(--muted);
  font-weight: 500;
}
.ficha-tabs a.active { background: var(--accent); color: #fff; }
.nav {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--ink); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
.kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  min-height: 4.2rem;
}
.kpi .label {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kpi .value {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-top: 0.15rem;
}
.kpi.warn .value { color: var(--warn); }
.kpi.danger .value { color: var(--danger); }
.kpi.ok .value { color: var(--ok); }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
}
.panel h1, .panel h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font-size: 0.75rem;
  border: 1px solid transparent;
}
.chip.active {
  background: var(--ink);
  color: #fff;
}
.chip.meta { color: var(--muted); background: transparent; border-color: var(--line); }

.table-wrap { overflow: auto; max-height: calc(100vh - 14rem); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
table.data th, table.data td {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0.4rem;
  text-align: left;
  white-space: nowrap;
}
table.data th {
  position: sticky;
  top: 0;
  background: #eef2f5;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  z-index: 1;
}
table.data tbody tr:hover { background: #f8fafb; }
.mono { font-family: var(--mono); font-size: 0.74rem; }
.badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--chip);
}
/* Estado badges — contraste WCAG AA sobre fundo claro */
.badge.producao_no_prime { background: #c6f0dc; color: #064e3b; }
.badge.no_ar_fora_do_prime { background: #fcd9b8; color: #7c2d12; }
.badge.conta_residual { background: #dbe3ea; color: #1e293b; }
.badge.dns_dominio_morto { background: #fecaca; color: #7f1d1d; }
.badge.sev-critical { background: #450a0a; color: #fecaca; }
.badge.sev-high { background: #fecaca; color: #7f1d1d; }
.badge.sev-mid { background: #fcd9b8; color: #7c2d12; }
.badge.sev-low { background: #e2e8f0; color: #334155; }
tr.row-overdue td { background: #fff7ed; }
.badge.origem.cloudflare_pages,
.badge.origem.cloudflare_workers,
.badge.origem.cloudflare_tunnel { background: #dbeafe; color: #1e3a8a; }
.badge.origem.hostinger { background: #d8f3e7; color: #064e3b; }
.badge.origem.vps { background: #e0e7ff; color: #312e81; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  align-items: end;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.filters input,
.filters select {
  font: inherit;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 7rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.filters input[type="search"] { min-width: 12rem; }
.pager {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.55rem;
}
.detail { font-size: 0.65rem; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; }
.login-panel {
  max-width: 24rem;
  margin: 3rem auto;
  padding: 1.25rem 1.4rem;
}
.login-panel h1 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.login-form input {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.topbar .user-meta {
  color: var(--muted);
  font-size: 0.75rem;
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 960px) {
  .dash-grid { grid-template-columns: 1fr; }
}
.donut-wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.donut { width: 9rem; height: 9rem; }
.donut-center {
  font-size: 0.45rem;
  font-family: var(--mono);
  fill: var(--ink);
}
.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.legend-list a { color: inherit; }
.bar-chart { display: flex; flex-direction: column; gap: 0.4rem; }
.bar-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 2.2rem;
  gap: 0.4rem;
  align-items: center;
}
.bar-label { font-size: 0.75rem; color: var(--ink); }
.bar-track {
  height: 0.55rem;
  background: var(--chip);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 4px; background: #64748b; }
.bar-fill.hostinger { background: #0b6e4f; }
.bar-fill.vps { background: #4338ca; }
.bar-fill.cloudflare_pages,
.bar-fill.cloudflare_workers,
.bar-fill.cloudflare_tunnel { background: #1d4ed8; }
.bar-fill.outro { background: #b45309; }

button, .btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  cursor: pointer;
}
button.primary, .btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
button:hover { filter: brightness(0.97); }
pre#briefing, pre.briefing {
  background: #0f1419;
  color: #e8eef2;
  padding: 0.75rem;
  border-radius: 8px;
  overflow: auto;
  font: 0.78rem/1.4 var(--mono);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.75rem;
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.muted { color: var(--muted); }
.sparkline { display: block; }
.spark-up { fill: var(--ok); opacity: 0.85; }
.spark-down { fill: var(--danger); opacity: 0.85; }
.spark-nd { fill: var(--line); opacity: 0.5; }
.stack > * + * { margin-top: 0.55rem; }
.empty {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

/* ——— P12 design system (data-table, charts, forms, overlays) ——— */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: #fff;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .topbar { flex-wrap: wrap; }
  .nav {
    display: none;
    position: fixed;
    inset: 3.2rem 0.75rem auto;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.65rem;
    box-shadow: 0 8px 24px rgba(15, 20, 25, 0.12);
    z-index: 40;
  }
  .shell.nav-open .nav { display: flex; }
  .table-wrap { max-height: none; }
  table.data th, table.data td { white-space: normal; }
}

.data-table {
  position: relative;
}
.data-table.is-loading .table-wrap { visibility: hidden; }
.data-table.is-loading .skeleton-table { display: block; }
.skeleton-table { display: none; }
.skeleton-row {
  height: 0.85rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--chip) 25%, #f0f3f6 50%, var(--chip) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  margin-bottom: 0.45rem;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 80%, var(--surface));
}
.empty-state .empty-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  color: var(--accent);
  font-size: 1.1rem;
}
.empty-state h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.empty-state p { margin: 0 0 0.75rem; color: var(--muted); }
.empty-state .empty-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  flex-wrap: wrap;
}

.form-field { margin-bottom: 0.65rem; }
.form-field label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}
.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--surface);
}
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: var(--danger);
}
.field-error {
  color: var(--danger);
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
}

.chart-line {
  display: block;
  width: 100%;
  height: 2.5rem;
}
.chart-line polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.chart-line .chart-fill {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
  stroke: none;
}

.modal, .drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 25, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}
.modal[hidden], .drawer[hidden] { display: none; }
.modal-panel, .drawer-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 28rem;
  width: 100%;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 40px rgba(15, 20, 25, 0.18);
}
.drawer { justify-content: flex-end; align-items: stretch; padding: 0; }
.drawer-panel {
  max-width: 22rem;
  height: 100%;
  border-radius: 0;
  border-left: 1px solid var(--line);
  overflow: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.modal-header h2 { margin: 0; font-size: 0.95rem; }
body.overlay-open { overflow: hidden; }

.toast-root {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 22rem;
}
.toast {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  animation: toast-in 0.2s ease-out;
}
.toast-success { border-color: #86efac; background: #ecfdf5; }
.toast-error { border-color: #fecaca; background: #fef2f2; }
.toast-out { opacity: 0; transform: translateY(4px); transition: 0.25s ease; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (max-width: 960px) {
  .server-grid { grid-template-columns: 1fr; }
}
.server-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: var(--card);
}
.server-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}
.disk-meter {
  height: 0.45rem;
  background: var(--chip);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.25rem;
}
.disk-meter span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.disk-meter.warn span { background: var(--warn); }
.disk-meter.danger span { background: var(--danger); }
.cmd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cmd-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
}
.cmd-list code {
  font-family: var(--mono);
  font-size: 0.74rem;
  display: block;
  margin-top: 0.2rem;
}

.dash-toolbar { margin-bottom: 0.5rem; }
.dash-toolbar .dash-refresh-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-sm);
}
.dash-toolbar select {
  font: inherit;
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.dash-grid-ops {
  grid-template-columns: 1fr 1fr;
}
.dash-mini-kpi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.5rem;
}
.dash-mini-kpi .kpi { min-height: 3.2rem; }
.dash-mini-kpi .kpi .value { font-size: 1.05rem; }
.chip.ok { background: #c6f0dc; color: #064e3b; }
.chip.warn { background: #fcd9b8; color: #7c2d12; }
.chip.novo { background: #dbeafe; color: #1e3a8a; border-color: #93c5fd; }
.bar-fill.warn { background: var(--warn); }
.bar-fill.danger { background: var(--danger); }
td.warn, .mono.warn { color: var(--warn); font-weight: 600; }
td.danger, .mono.danger { color: var(--danger); font-weight: 600; }
kbd {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.05rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--chip);
}
body.dash-fullscreen .topbar,
body.dash-fullscreen .skip-link,
body.dash-fullscreen .toast-root {
  display: none;
}
body.dash-fullscreen .shell {
  max-width: none;
  padding: 0.5rem 0.75rem 1rem;
}
body.dash-fullscreen {
  background: var(--ink);
}
body.dash-fullscreen .panel,
body.dash-fullscreen .kpi {
  background: #1a2229;
  border-color: #2a3540;
  color: #e8eef2;
}
body.dash-fullscreen .muted { color: #9aa8b5; }
body.dash-fullscreen a { color: #6ee7b7; }

/* P32 mobile / safe-area / touch */
.ops-mobile {
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.topbar {
  padding-left: max(var(--space-4), env(safe-area-inset-left));
  padding-right: max(var(--space-4), env(safe-area-inset-right));
}
.offline-banner,
.ops-maintenance-banner {
  padding: 0.45rem 0.75rem;
  text-align: center;
  font-size: var(--text-sm);
}
.offline-banner {
  background: #fcd9b8;
  color: #7c2d12;
}
.ops-maintenance-banner {
  background: #fff4cc;
  color: #713f12;
}
.banner-warn {
  background: #fff4cc;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
@media (max-width: 820px) {
  .kpi-grid.mobile-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  table.data.mobile-stack td {
    display: block;
    min-height: 2.75rem;
    padding-top: 0.35rem;
  }
  .ficha-mobile .panel { padding: 0.65rem; }
  .nav a, .nav-toggle, button, .pager a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
}
.data-table[data-virtualize="1"] .table-wrap {
  max-height: 70vh;
  overflow: auto;
}

.qualidade-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.qualidade-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.policy-json {
  font-size: 0.68rem;
  max-height: 22rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.stack-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.stack-mobile input { flex: 1 1 12rem; min-width: 0; }
.server-ops dt { margin-right: 0.25rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 720px) {
  .qualidade-kpis { grid-template-columns: 1fr 1fr; }
  .qualidade-table { font-size: 0.72rem; }
  .qualidade-table th:nth-child(5),
  .qualidade-table td:nth-child(5),
  .qualidade-table th:nth-child(7),
  .qualidade-table td:nth-child(7) {
    display: none;
  }
  .sre-grid { grid-template-columns: 1fr; }
  .server-grid { grid-template-columns: 1fr; }
  .stack-mobile { flex-direction: column; align-items: stretch; }
  .stack-mobile .btn { width: 100%; }
}

/* ——— P29 UX: breadcrumb, palette, theme, density ——— */
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.breadcrumb .sep { margin: 0 0.35rem; }
.topbar-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}
.tab-bar {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.tab-bar .chip.active {
  background: var(--accent);
  color: #fff;
}
.cmd-palette {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.cmd-palette[hidden] { display: none !important; }
.cmd-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, 0.45);
}
.cmd-panel {
  position: relative;
  width: min(560px, 92vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 20, 25, 0.18);
  padding: 0.65rem;
}
.cmd-input {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.cmd-results {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  max-height: 40vh;
  overflow: auto;
}
.cmd-hit {
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: var(--text-sm);
}
.cmd-hit.active,
.cmd-hit:hover {
  background: var(--chip);
}
.cmd-hint {
  margin: 0.35rem 0 0;
  font-size: var(--text-xs);
}
.recent-panel {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
  font-size: var(--text-xs);
  max-width: 12rem;
  z-index: 5;
}
.recent-panel ul {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
}
.col-picker {
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
html[data-density="compact"] body {
  font-size: 12px;
}
html[data-density="compact"] .kpi .value {
  font-size: 0.95rem;
}
html[data-density="compact"] table.data th,
html[data-density="compact"] table.data td {
  padding: 0.25rem 0.35rem;
}
html[data-theme="dark"] {
  --ink: #e8eef2;
  --muted: #9aa8b5;
  --line: #2a3540;
  --surface: #0f1419;
  --card: #1a2229;
  --chip: #24303a;
  --accent: #6ee7b7;
}
html[data-theme="dark"] body {
  background: var(--surface);
  color: var(--ink);
}

@media print {
  .topbar, .nav-toggle, .toolbar, .filters, .pager, .toast-root, .skip-link {
    display: none !important;
  }
  .shell { max-width: none; padding: 0; }
  .panel, .kpi {
    break-inside: avoid;
    box-shadow: none;
  }
  table.data { font-size: 0.7rem; }
  table.data th { background: #eee; position: static; }
  a[href]::after { content: ""; }
}
