:root {
  --bg: #f9fafb;
  --bg-card: #ffffff;
  --bg-soft: #f4ebff;
  --line: #eaecf0;
  --text: #101828;
  --muted: #667085;
  --accent: #7f56d9;
  --accent-2: #6941c6;
  --accent-soft: #f4ebff;
  --sidebar: #faf5ff;
  --sidebar-2: #f3e8ff;
  --sidebar-text: #344054;
  --danger: #d92d20;
  --warn: #dc6803;
  --ok: #17b26a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 32px rgba(127, 86, 217, 0.1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
code { font-family: var(--mono); font-size: 0.92em; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-plate {
  display: block;
  width: 100%;
  background: #0a0a0a;
  border-radius: 12px;
  padding: 8px 10px;
  overflow: hidden;
  line-height: 0;
}

.brand-lab {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.brand-sidebar {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0 0 16px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--line);
}

.brand-sidebar .brand-lab {
  background: var(--accent);
  color: #fff;
}

.brand-login {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.brand-login .brand-plate {
  max-width: 248px;
}

.brand-hero {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-hero .brand-logo {
  width: min(248px, 100%);
  mix-blend-mode: screen;
}

.brand-hero .brand-lab {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.app-top-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-sub,
.sidebar-kicker,
.login-product,
.login-copy {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.sidebar .brand-sub,
.sidebar-kicker {
  color: #9e77ed;
}

.app {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  overflow: auto;
  color: var(--sidebar-text);
}

.nav-group { display: grid; }

.sidebar-search {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.sidebar-kicker {
  margin: 18px 10px 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.68rem;
}

.side-nav { display: grid; gap: 2px; }

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sidebar-text);
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.side-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.side-link:hover { background: #fff; color: var(--accent-2); }

.side-link.is-active {
  background: #fff;
  color: var(--accent-2);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.user-card,
.session {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.user-card .session-email {
  color: var(--muted);
}

.user-card strong,
.session-hi {
  display: block;
  font-size: 0.8rem;
}

.session-email {
  color: var(--muted);
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 148px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.shell-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-2); }
.crumbs-sep { opacity: 0.45; }
.crumbs strong { color: var(--text); font-weight: 700; }

.badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.page { padding: 28px 32px 48px; }

.page-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

h1 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.muted { margin: 0; color: var(--muted); }

.btn,
.page-actions button,
.login-card button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--accent-2);
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  font-size: 0.88rem;
}

.btn:hover,
.page-actions button:hover { background: var(--bg-soft); }

.btn-primary,
.login-card button {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.login-card button:hover { background: var(--accent-2); color: #fff; }

.sidebar-logout {
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.sidebar-logout:hover {
  color: var(--accent-2);
  background: var(--accent-soft);
}

.alert,
.notice,
.cron-summary {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.alert { background: #fef2f2; border-color: #fecaca; color: var(--danger); white-space: pre-wrap; line-height: 1.45; }
.notice { background: #ecfdf5; border-color: #a7f3d0; color: var(--ok); }

.cron-summary {
  background: var(--bg-card);
  border-color: var(--line);
  color: var(--muted);
}

.cron-summary.is-alert {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
  font-weight: 600;
}

.cron-summary.is-dry {
  background: #fffbeb;
  border-color: #fde68a;
  color: var(--warn);
}

.counters-block {
  margin-bottom: 20px;
}

.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.counter,
.dash-card,
.trend-card,
.score-panel,
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.counter { padding: 16px 18px; }

a.counter {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.counter:hover:not(.is-featured) {
  border-color: #c4b5fd;
}

.counter.is-featured {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: none;
}

.counter.is-featured .counter-label { color: rgba(255, 255, 255, 0.78); }

.counter-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 6px;
}

.counter strong {
  display: block;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.counter-dbs {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.counter.is-featured .counter-dbs {
  color: rgba(255, 255, 255, 0.86);
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-bottom: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.filters-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.filter-group {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.chip {
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 650;
}

.chip.is-active {
  background: var(--accent);
  color: #fff;
}

.table-wrap { overflow: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-soft);
  position: sticky;
  top: 0;
}

th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th.sortable:hover { color: var(--text); background: var(--accent-soft); }

th.sortable::after {
  content: ' \2195';
  opacity: 0.35;
  font-size: 0.85em;
}

th[aria-sort='ascending']::after {
  content: ' \2191';
  opacity: 1;
  color: var(--accent);
}

th[aria-sort='descending']::after {
  content: ' \2193';
  opacity: 1;
  color: var(--accent);
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-soft); }
tbody tr:hover td.db-tone-0 { background: #e2e8f0; }
tbody tr:hover td.db-tone-1 { background: #ddd6fe; }
tbody tr:hover td.db-tone-2 { background: #dcfce7; }
tbody tr:hover td.db-tone-3 { background: #ffedd5; }
tbody tr:hover td.db-tone-4 { background: #f3e8ff; }
tbody tr:hover td.db-tone-5 { background: #cffafe; }
tbody tr:hover td.db-tone-6 { background: #fce7f3; }

.num {
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  white-space: nowrap;
}

.query,
.wait {
  font-family: var(--mono);
  font-size: 0.8rem;
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-col,
.copy-cell {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  position: relative;
}

.copy-box {
  position: relative;
}

.copy-box summary {
  list-style: none;
}

.copy-box summary::-webkit-details-marker {
  display: none;
}

.copy-source {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  width: min(420px, 70vw);
  height: 96px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  resize: vertical;
  box-shadow: var(--shadow);
}

.copy-box[open] .copy-source {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.copy-btn {
  appearance: none;
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

.copy-btn:hover:not(:disabled) {
  color: var(--accent);
  border-color: #c4b5fd;
  background: var(--accent-soft);
}

.copy-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.query-restricted {
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}

.db-cell {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.db-tone-0 { background: #f1f5f9; color: #64748b; }
.db-tone-1 { background: #ede9fe; color: #5b21b6; }
.db-tone-2 { background: #f0fdf4; color: #166534; }
.db-tone-3 { background: #fff7ed; color: #9a3412; }
.db-tone-4 { background: #faf5ff; color: #6b21a8; }
.db-tone-5 { background: #ecfeff; color: #155e75; }
.db-tone-6 { background: #fdf2f8; color: #9d174d; }

.blocked { color: var(--danger); font-weight: 700; }

.empty {
  color: var(--muted);
  text-align: center;
  padding: 48px 12px;
}

.row-warn td { background: #fffbeb; }
.row-danger td { background: #fef2f2; }
.row-ok td { background: #ecfdf5; }
.row-muted td { background: var(--bg-soft); }
.row-blocked td:first-child { box-shadow: inset 3px 0 0 var(--danger); }

.status-label {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
}

.row-ok .status-label { color: var(--ok); }
.row-danger .status-label { color: var(--danger); }
.row-warn .status-label { color: var(--warn); }
.row-muted .status-label { color: var(--muted); }

.mono { font-family: var(--mono); font-size: 0.84rem; }
.when { white-space: nowrap; }
.when .muted { display: block; font-size: 0.78rem; margin-top: 2px; }

.msg {
  font-family: var(--mono);
  font-size: 0.8rem;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-actions { display: flex; gap: 8px; align-items: flex-start; }
.page-actions form { margin: 0; }

.section-title {
  margin: 28px 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.var-up { color: var(--warn); }
.var-down { color: var(--ok); }

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 10%, rgba(124, 58, 237, 0.18), transparent 32%),
    radial-gradient(circle at 88% 88%, rgba(46, 16, 101, 0.16), transparent 40%),
    #ede9fe;
}

.login-wrap { width: min(960px, calc(100% - 32px)); }

.login-card {
  display: flex;
  min-height: 560px;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.login-form {
  flex: 1;
  padding: 40px 44px 24px;
  display: flex;
  flex-direction: column;
}

.login-form h1 {
  margin: 36px 0 8px;
  font-size: 1.85rem;
}

.login-card form { display: grid; gap: 8px; margin-top: 24px; }

.login-card label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  margin-top: 6px;
}

.field { position: relative; }

.field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #a78bfa;
}

.field-icon svg { width: 18px; height: 18px; display: block; }

.login-card input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 0 12px 0 40px;
  font: inherit;
}

.login-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.login-card button {
  margin-top: 14px;
  width: 100%;
  height: 44px;
}

.login-copy { margin-top: auto; padding-top: 24px; }

.login-hero {
  flex: 1;
  min-width: 0;
  background:
    radial-gradient(circle at 80% 0, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(165deg, #42307d 0%, #7f56d9 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 28px 28px;
  position: relative;
  overflow: hidden;
}

.hero-console {
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 20px 18px;
  color: #fff;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.hero-score {
  margin: 0 0 18px;
  font-size: 3.2rem;
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.hero-score span {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #6ee7b7;
}

.hero-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-metrics li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.hero-metrics strong { color: #fff; font-variant-numeric: tabular-nums; }

.hero-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.35;
}

.hero-caption strong { color: #fff; font-size: 1.08rem; }

.score-panel {
  display: flex;
  gap: 28px;
  align-items: stretch;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.score-main { min-width: 132px; }

.score-value {
  margin: 0;
  font-size: 3.4rem;
  line-height: 0.9;
  font-weight: 750;
  letter-spacing: -0.06em;
}

.score-band {
  margin: 10px 0 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.score-ok .score-value,
.score-ok .score-band { color: var(--ok); }
.score-warn .score-value,
.score-warn .score-band { color: var(--warn); }
.score-degraded .score-value,
.score-degraded .score-band { color: #ea580c; }
.score-crit .score-value,
.score-crit .score-band { color: var(--danger); }

.score-why { flex: 1; min-width: 0; }

.table-embed {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.table-embed th { background: var(--bg-soft); }

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.dash-card {
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  color: inherit;
}

a.dash-card:hover {
  border-color: #d6bbfb;
}

.dash-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tone-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--ok);
  flex-shrink: 0;
}

.tone-dot.is-warn { background: var(--warn); }
.tone-dot.is-danger { background: var(--danger); }

.dash-card strong {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.dash-card.is-ok,
.dash-card.is-warn,
.dash-card.is-danger {
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.kpi-link {
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.trend-card { padding: 16px 18px 18px; }
.trend-card .section-title { margin: 0 0 8px; }
.trend-kicker { margin: 0 0 4px; font-weight: 700; }

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 88px;
  margin-top: 14px;
}

.bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.bar {
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #9e77ed 0%, #7f56d9 100%);
}

.qa-form {
  display: grid;
  gap: 16px;
}

.qa-form label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  margin-top: 4px;
}

.qa-form input,
.qa-form textarea,
.qa-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.qa-form input:focus,
.qa-form textarea:focus,
.qa-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.qa-form select[size] {
  min-height: 180px;
}

.qa-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.qa-suggest {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qa-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.qa-suggest button:hover { background: var(--bg-soft); }

.verdict {
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.verdict-aprovado { background: #ecfdf5; color: var(--ok); }
.verdict-ressalva { background: #fffbeb; color: var(--warn); }
.verdict-reprovado { background: #fef2f2; color: var(--danger); }
.verdict-pendente { background: var(--accent-soft); color: var(--accent); }

.qa-amostra {
  margin-top: 8px;
  font-size: 0.82rem;
}

.qa-amostra pre {
  margin: 8px 0 0;
  padding: 10px;
  background: var(--bg-soft);
  border-radius: 8px;
  overflow: auto;
  max-height: 240px;
}

.status-passou { color: var(--ok); }
.status-falhou { color: var(--danger); }
.status-aguardando { color: var(--warn); }
.status-nao_aplica { color: var(--muted); }

@media (max-width: 900px) {
  .app { flex-direction: column; }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-foot { margin-top: 16px; }

  .login-card {
    flex-direction: column;
    min-height: 0;
  }

  .login-hero { min-height: 240px; }

  .score-panel,
  .trend-grid,
  .dash-cards {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
