:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #091e1c;
  color: #f3efe4;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: #f1d899; text-underline-offset: .2em; }
a:hover { color: #fff0c8; }
:focus-visible { outline: 3px solid #e7c77f; outline-offset: 3px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; padding: 10px 16px; background: #e7c77f; color: #091e1c; }
.skip-link:focus { top: 8px; }
.site-header { border-bottom: 1px solid #35534b; background: #102d29; }
.header-inner { max-width: 1200px; margin: auto; padding: 12px 28px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.brand { color: #f3efe4; text-decoration: none; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 700; white-space: nowrap; }
.brand span { font-family: system-ui, sans-serif; font-size: .85rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #d3ded5; }
nav { display: flex; gap: 8px; }
nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 13px; text-decoration: none; color: #f3efe4; border-radius: 6px; }
nav a[aria-current] { color: #091e1c; background: #e7c77f; font-weight: 700; }
#logout { margin-left: auto; }
.content { max-width: 1200px; padding: 36px 28px 80px; margin: auto; }
.content.login-content { max-width: 500px; padding-top: min(12vh, 100px); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, serif; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: 1.3rem; margin-bottom: 16px; }
h3 { font-size: 1.05rem; }
.eyebrow { color: #e7c77f; text-transform: uppercase; letter-spacing: .12em; font-size: .875rem; font-weight: 700; margin-bottom: 10px; }
.muted, .meta { color: #c1d0c8; }
.meta { font-size: .95rem; }
.intro { max-width: 75ch; }
.page-heading { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.page-heading > div:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
section { margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { background: #102d29; border: 1px solid #35534b; border-radius: 9px; padding: 24px; min-width: 0; }
.panel p:last-child { margin-bottom: 0; }
.metric { font-size: clamp(2.5rem, 5vw, 3.5rem); font-variant-numeric: tabular-nums; line-height: 1.15; font-weight: 700; margin: 14px 0 12px; }
.notice { border-left: 4px solid #e7c77f; background: #163a32; padding: 16px 20px; border-radius: 3px 8px 8px 3px; margin: 16px 0; }
.notice.error { border-left-color: #ffa8a0; }
.notice p:last-child { margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid #e7c77f; background: #e7c77f; color: #091e1c; border-radius: 6px; padding: 9px 16px; font-weight: 650; text-decoration: none; }
button:hover:not(:disabled), .button:hover { background: #f5db9f; color: #091e1c; }
.quiet-button, .button.secondary { background: transparent; color: #f3efe4; border-color: #90ad9f; }
.quiet-button:hover:not(:disabled), .button.secondary:hover { background: #21453c; color: #fff; }
label { display: block; font-weight: 650; margin-bottom: 6px; }
input, select { display: block; width: 100%; min-height: 44px; background: #091e1c; color: #f3efe4; border: 1px solid #90ad9f; border-radius: 6px; padding: 9px 12px; }
.field { margin-bottom: 20px; }
.login-panel { padding: clamp(20px, 5vw, 32px); }
.login-panel form button { width: 100%; }
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.filters .field { min-width: min(100%, 240px); margin: 0; }
.table-wrap { width: 100%; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 16px 12px; vertical-align: top; border-bottom: 1px solid #35534b; }
th { color: #d3ded5; font-size: .9rem; }
td { overflow-wrap: anywhere; }
.stats-table td, .stats-table th { font-variant-numeric: tabular-nums; }
.state-block { margin-top: 14px; }
.warning-list { margin: 0; padding-left: 20px; }
.warning-list li { margin: 6px 0; }
.notice .warning-list { margin-top: 8px; }
.notice .warning-list li:last-child { margin-bottom: 0; }
.panel-subheading { margin: 20px 0 4px; }
.breadcrumb a { display: inline; min-height: 0; padding: 0; color: #f1d899; text-decoration: underline; border-radius: 0; }
.age-warning { color: #ffd8a8; }
.mobile-results { display: none; }
.result-card { margin-bottom: 12px; }
dl { display: grid; grid-template-columns: minmax(130px, 220px) minmax(0, 1fr); gap: 10px 16px; margin: 0; }
dt { color: #c1d0c8; }
dd { margin: 0; overflow-wrap: anywhere; }
.pagination { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.breadcrumb { margin-bottom: 22px; }
.id { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .95rem; }
.tag { display: inline-block; border: 1px solid #789588; padding: 3px 9px; border-radius: 100px; margin: 4px 8px 4px 0; }
details { border-top: 1px solid #35534b; padding: 15px 0; }
details:last-child { border-bottom: 1px solid #35534b; }
summary { cursor: pointer; font-weight: 650; padding: 6px 0; }
.event-list { margin: 0; padding-left: 24px; }
.event-list li { padding: 6px 0; overflow-wrap: anywhere; }
.grid.metrics { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid.metrics .metric { font-size: clamp(2rem, 4vw, 2.6rem); }
.tag.attention { border-color: #ffd8a8; color: #ffd8a8; }
.tag.ok { border-color: #9fd3b4; color: #c9ecd6; }
.not-set { color: #c1d0c8; font-style: italic; }
.name-stack { display: grid; gap: 2px; }
.name-stack small { color: #c1d0c8; font-size: .85rem; }
.match-list { margin: 0; padding-left: 0; list-style: none; }
.match-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #35534b; }
.match-list li:last-child { border-bottom: 0; }
[hidden] { display: none !important; }
@media (max-width: 720px) {
  .content { padding: 24px 16px 64px; }
  .header-inner { padding: 12px 16px; gap: 4px 16px; }
  .brand { flex: 1 1 100%; }
  #logout { margin-left: auto; }
  .grid, .grid.metrics { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { display: none; }
  .mobile-results { display: block; }
  .panel { padding: 18px; }
  dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  dd { margin-bottom: 10px; }
}
@media (max-width: 430px) {
  .filters, .filters .field, .filters button { width: 100%; }
  nav { gap: 0; flex-wrap: wrap; }
  nav a { padding-inline: 10px; }
}
