:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1220;
  color: #e7eef7;
  line-height: 1.5;
  --surface: #121e30;
  --border: #34465d;
  --muted: #b0c0d3;
  --teal: #5ee0cc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(1180px, 100%); margin: auto; padding: 20px; }
h1, h2, p, dl { margin: 0; }
h1 { font-size: 1.55rem; line-height: 1.2; }
h2 { font-size: 1rem; margin-bottom: 12px; }
p + p { margin-top: 10px; }
button, input { font: inherit; }
button { min-height: 44px; padding: 9px 16px; border: 1px solid var(--teal); border-radius: 7px; background: var(--teal); color: #08201e; font-weight: 650; cursor: pointer; }
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .55; cursor: default; }
.secondary { background: transparent; border-color: #7189a5; color: #e7eef7; }
.danger { background: #391e29; border-color: #ed9db0; color: #ffd5df; }
:focus-visible { outline: 3px solid #ffd479; outline-offset: 4px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; min-width: 0; }
.auth { max-width: 460px; margin: 8vh auto 0; display: grid; gap: 18px; }
.auth h2 { margin-bottom: 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { flex: 0 0 auto; }
.eyebrow, .muted, dt, footer { color: var(--muted); }
.eyebrow { font-size: .8rem; margin-top: 5px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--teal); }
.enrollment { display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 18px; }
input[type="text"] { width: 100%; min-height: 44px; background: #0b1220; color: inherit; border: 1px solid #7189a5; border-radius: 6px; padding: 10px; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .875rem; }
.badge { border: 1px solid #438b87; border-radius: 20px; color: var(--teal); padding: 3px 12px; }
.asof { margin-left: auto; color: var(--muted); }
.section { margin-top: 22px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
dt { font-size: .8rem; }
dd { margin: 8px 0 0; font-size: 1.6rem; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.compact dd { font-size: 1.25rem; }
.entry-age { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
.panel > .actions { margin-top: 16px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; }
table { width: 100%; min-width: 690px; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
th, td { padding: 12px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); background: #0e192a; font-weight: 600; }
th:first-child, td:first-child { text-align: left; }
#dustNotice { margin-top: 12px; font-size: .85rem; }
.message { overflow-wrap: anywhere; }
.message:not(:empty) { border-left: 3px solid var(--teal); padding: 12px 16px; margin-bottom: 18px; background: var(--surface); }
footer { padding: 18px 0; font-size: .8rem; }
dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); color: inherit; border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
dialog::backdrop { background: rgb(0 0 0 / 75%); }
dialog .actions { justify-content: flex-end; margin-top: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .shell { padding: 12px; }
  .panel { padding: 14px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .asof { flex-basis: 100%; margin-left: 0; }
  .auth { margin-top: 24px; }
  .actions { width: 100%; }
  .actions button { flex: 1 1 120px; }
}
