:root { color-scheme: dark; --bg: #101815; --panel: #18231e; --border: #304139; --text: #edf5ef; --muted: #adbbb1; --accent: #a4e8b5; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #d4ffdf; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -5rem; padding: .7rem; background: var(--panel); z-index: 2; }
.skip:focus { top: .5rem; }
.topbar { min-height: 90px; padding: 1rem max(1.5rem, calc((100vw - 1240px) / 2)); display: flex; align-items: center; gap: 3rem; border-bottom: 1px solid var(--border); }
.brand { font-size: 2rem; font-weight: 800; text-decoration: none; letter-spacing: -.07em; line-height: 1.2; }
.brand span { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a, .identity a { text-decoration: none; }
.identity { margin-left: auto; display: flex; gap: 1rem; align-items: center; overflow-wrap: anywhere; }
main { max-width: 1240px; margin: 0 auto; padding: 2.8rem 1.5rem 4rem; min-height: calc(100vh - 170px); }
footer { padding: 1rem 1.5rem; text-align: center; font-size: .8rem; color: var(--muted); }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.2; margin: .2rem 0 1rem; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; margin-top: 0; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: .7rem; letter-spacing: .15em; margin: 0 0 .5rem; }
.muted, small { color: var(--muted); font-size: .88rem; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.panel, .login-card, .metrics article { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.panel { margin-bottom: 1.5rem; }
.login-card { max-width: 460px; margin: 5vh auto; padding: 2rem; }
.login-card form { display: grid; gap: .6rem; margin: 1.3rem 0; }
input:not([type=checkbox]), button { font: inherit; border-radius: 7px; padding: .65rem .9rem; }
input:not([type=checkbox]) { border: 1px solid #61736a; color: var(--text); background: #0f1913; min-width: 0; width: 100%; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
button { border: 1px solid transparent; background: var(--accent); color: #132119; font-weight: 650; cursor: pointer; }
button:hover { filter: brightness(1.08); }
button.secondary { background: transparent; border-color: #61736a; color: var(--text); }
.stack { display: grid; gap: .7rem; margin-top: 1.5rem; }
.diagnostic-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.diagnostic-filters label { display: block; margin-bottom: .4rem; }
.diagnostic-filter-actions { display: flex; align-items: end; gap: 1rem; }
dd { overflow-wrap: anywhere; }
.action-card { max-width: 760px; }
select { font: inherit; border-radius: 7px; padding: .65rem .9rem; background: #0f1913; color: var(--text); border: 1px solid #61736a; width: 100%; }
.danger { background: #ffb4a9; }
.danger-link { color: #ffb4a9; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.5rem; }
.filters input[type=search] { flex: 1; max-width: 450px; }
.account-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; }
.account-filters label { display: block; margin-bottom: .4rem; }
.account-filters input[type=search] { max-width: none; }
.check { display: flex; gap: .6rem; align-items: center; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.metrics span { display: block; color: var(--muted); font-size: .85rem; }
.metrics strong { display: block; font-size: 2.3rem; font-weight: 600; color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th { color: var(--muted); font-weight: 500; font-size: .78rem; }
th, td { padding: .9rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
td small { display: block; margin-top: .3rem; font-size: .7rem; }
.identifier { font-family: ui-monospace, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.empty { text-align: center; padding: 2.5rem; color: var(--muted); }
.pagination { align-items: center; justify-content: center; }
.notice { padding: .8rem 1rem; border-left: 3px solid var(--accent); background: #24372a; }
.error { border-color: #ffb4a9; background: #382721; }
.badge { display: inline-block; border: 1px solid var(--border); border-radius: 4px; padding: 0 .4rem; font-size: .7rem; }
dl { display: grid; grid-template-columns: 170px 1fr; gap: .8rem 1rem; margin: 0; }
dt { color: var(--muted); } dd { margin: 0; }
@media (max-width: 700px) {
  .account-filters { grid-template-columns: 1fr; }
  .topbar { gap: 1.2rem; flex-wrap: wrap; padding: 1rem 1.5rem; }
  .topbar nav { order: 3; width: 100%; gap: 1.3rem; }
  main { padding-top: 2rem; }
  .metrics { grid-template-columns: 1fr; }
  .metrics article { display: flex; align-items: center; justify-content: space-between; }
  .metrics strong { font-size: 1.7rem; }
  .panel { padding: 1rem; }
  .login-card { padding: 1.5rem; }
  dl { grid-template-columns: 1fr; gap: .2rem; } dd { margin-bottom: 1rem; }
}
textarea { font: inherit; padding: .7rem; max-width: 100%; resize: vertical; }
.announcement-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
