:root { color-scheme: light; }
body { display: block; overflow-x: hidden; background: #f7f5ef; color: #101010; font-family: Arial, Helvetica, sans-serif; }
.sidebar {
  position: sticky; top: 0; z-index: 20; width: auto; height: auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #101010; color: #fff; border-bottom: 6px solid #f2d642;
}
.brand { min-width: max-content; }
.brand-mark { border-radius: 0; background: #2f62ff; color: #fff; transform: rotate(-4deg); }
.brand small { color: #c9c9c9; }
.sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
.sidebar nav a { border-radius: 0; color: #fff; padding: 9px 12px; text-transform: uppercase; font-size: 12px; border: 1px solid #444; }
.sidebar nav a:hover { background: #f2d642; color: #101010; border-color: #f2d642; }
main { margin-left: 0; max-width: 1440px; padding: 28px 32px 48px; }
.topbar { align-items: end; border: 2px solid #101010; border-radius: 0; background: #fff; padding: 28px; box-shadow: 8px 8px 0 #2f62ff; }
.topbar h1 { max-width: 760px; color: #101010; font-size: clamp(34px, 5vw, 58px); line-height: .96; text-transform: uppercase; }
.eyebrow { color: #2f62ff; }
.actions button { border-radius: 0; background: #f2d642; color: #101010; border: 2px solid #101010; box-shadow: 3px 3px 0 #101010; }
.actions button.secondary { background: #fff; color: #101010; }
.kpi-grid { gap: 0; border: 2px solid #101010; }
.kpi-grid article { min-width: 0; border: 0; border-right: 2px solid #101010; border-radius: 0; background: #f2d642; box-shadow: none; }
.kpi-grid article:nth-child(even) { background: #fff; }
.kpi-grid article:last-child { border-right: 0; }
.kpi-grid strong { color: #101010; font-size: 32px; }
.layout { gap: 18px; }
.panel { border: 2px solid #101010; border-radius: 0; background: #fff; box-shadow: 5px 5px 0 #101010; }
.panel-head { border-bottom: 2px solid #101010; background: #e8edff; }
.panel h2 { color: #101010; }
th { background: #101010; color: #fff; }
tr:nth-child(even) td { background: #f2f4ff; }
.result { border-radius: 0; border: 2px solid #101010; background: #2f62ff; color: #fff; }
.auth-session { min-height: 42px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: #fff; color: #101010; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sidebar nav a.active { background: #f2d642; color: #101010; border-color: #f2d642; }
.panel-head { align-items: flex-start; gap: 16px; }
.result-count { margin: 6px 0 0; color: #555; font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.toolbar input, .toolbar select { min-height: 42px; border: 2px solid #101010; border-radius: 0; padding: 0 11px; background: #fff; color: #101010; font: inherit; }
.toolbar input { width: min(230px, 100%); }
.toolbar .tertiary { border: 2px solid #101010; background: #e8edff; color: #101010; box-shadow: none; }
.lead-table { min-width: 900px; }
td small { display: block; margin-top: 4px; color: #555; }
.score-pill { display: inline-grid; min-width: 36px; min-height: 36px; place-items: center; border: 2px solid #101010; background: #e8edff; font-weight: 800; }
.score-pill.good { background: #c8f5d6; }
.score-pill.danger { background: #ffd4cf; }
.empty-state { padding: 30px 18px; text-align: center; }
.empty-state span { display: block; margin-top: 7px; color: #555; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #2f62ff; outline-offset: 3px; }
@media (max-width: 850px) {
  .sidebar { position: static; align-items: flex-start; flex-direction: column; }
  .sidebar nav { width: 100%; }
  main { padding: 22px 16px 40px; }
  .layout { grid-template-columns: 1fr; }
  .panel-head { align-items: stretch; flex-direction: column; }
  .toolbar { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .topbar { padding: 20px; box-shadow: 5px 5px 0 #2f62ff; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid article:nth-child(2) { border-right: 0; }
  .toolbar > * { width: 100%; }
}
