:root {
  --bg: #07110f;
  --surface: #0c1916;
  --surface-2: #10221d;
  --line: #203a32;
  --text: #e8f2ee;
  --muted: #8da39b;
  --mint: #67e0b5;
  --mint-dark: #163e32;
  --amber: #f4bd63;
  --red: #ff7b7b;
  --shadow: 0 20px 60px rgb(0 0 0 / 24%);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 5%, rgb(38 115 88 / 22%), transparent 32rem),
    linear-gradient(180deg, #081411 0, var(--bg) 42rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.shell { width: min(1460px, 100%); margin: 0 auto; padding: 0 34px; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { position: relative; width: 34px; height: 34px; display: grid; place-content: center; transform: rotate(45deg); border: 1px solid #4b9c7e; }
.brand-mark i { position: absolute; display: block; width: 17px; height: 1px; background: var(--mint); left: 8px; }
.brand-mark i:nth-child(1) { top: 10px; }.brand-mark i:nth-child(2) { top: 16px; width: 11px; }.brand-mark i:nth-child(3) { top: 22px; width: 7px; }
.session { display: flex; align-items: center; gap: 12px; }.identity { color: var(--muted); font-size: 13px; }
.button { border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--text); padding: 10px 15px; transition: .16s ease; }
.button:hover { border-color: #4c7567; transform: translateY(-1px); }.button:disabled { opacity: .5; cursor: wait; transform: none; }
.button.primary { background: var(--mint); color: #07110f; border-color: var(--mint); font-weight: 750; }
.button.subtle { background: #10221d; }.button.danger { color: #ffb4b4; border-color: #713838; background: #281515; }
.button.large { padding: 14px 20px; }
.hero { min-height: calc(100vh - 152px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 820px; padding: 80px 0 120px; }
.eyebrow { color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(48px, 7vw, 88px); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: #8fa9a0; }.hero p { max-width: 650px; margin: 0 0 32px; color: #a8bbb4; font-size: 18px; line-height: 1.7; }
.assurance { display: flex; gap: 26px; margin-top: 34px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.assurance span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.dashboard { padding: 52px 0 80px; }.page-heading, .panel-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.page-heading h1 { margin: 8px 0 0; font-size: 42px; letter-spacing: -.04em; }.filters { display: flex; align-items: center; gap: 10px; }.filters label { color: var(--muted); font-size: 13px; }
select, input { min-height: 40px; border: 1px solid var(--line); border-radius: 7px; background: #091713; color: var(--text); padding: 8px 11px; outline: none; }
select:focus, input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgb(103 224 181 / 10%); }
.notice { margin-top: 20px; padding: 12px 15px; border: 1px solid #5b4d27; border-radius: 7px; background: #211c0f; color: #f4d89a; font-size: 13px; }
.notice.error { border-color: #713838; background: #281515; color: #ffb4b4; }
.status-strip { display: grid; grid-template-columns: 1fr 1.25fr 1fr .8fr .7fr 1.25fr; margin-top: 32px; border: 1px solid var(--line); border-radius: 9px; background: rgb(12 25 22 / 85%); box-shadow: var(--shadow); }
.status-strip > div { padding: 17px 20px; border-right: 1px solid var(--line); min-width: 0; }.status-strip > div:last-child { border: 0; }.status-strip span, .metrics span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }.status-strip strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 14px; white-space: nowrap; }
.status-pill.on { color: var(--mint); }.status-pill.off { color: var(--red); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 15px 0; }.metrics article { padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }.metrics strong { display: block; font-size: 34px; letter-spacing: -.04em; }.metrics small { color: var(--muted); }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.panel { margin-top: 15px; padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }.panel h2 { margin: 6px 0 0; font-size: 19px; }.hint { max-width: 450px; color: var(--muted); font-size: 12px; text-align: right; }
.rank-list.empty { padding: 42px 0; color: var(--muted); text-align: center; }.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; gap: 14px; margin-top: 16px; }.rank-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }.rank-label span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.bar { height: 5px; overflow: hidden; border-radius: 4px; background: #1b3029; }.bar i { display: block; height: 100%; background: linear-gradient(90deg, #3ca47f, var(--mint)); }.rank-count { color: var(--muted); font-size: 12px; text-align: right; }
.table-wrap { margin-top: 20px; overflow: auto; }table { width: 100%; border-collapse: collapse; font-size: 12px; }th { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-align: left; text-transform: uppercase; }th, td { padding: 12px 10px; border-bottom: 1px solid #1a3029; vertical-align: top; }td code { color: #bdd2ca; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.severity { display: inline-block; min-width: 62px; padding: 3px 7px; border-radius: 10px; background: #193028; color: #acd4c5; text-align: center; }.severity.high, .severity.critical { background: #3a1c1c; color: #ffb4b4; }.severity.medium { background: #342a13; color: var(--amber); }
.danger-zone { border-color: #4f2e2e; }.danger-zone p { color: var(--muted); font-size: 13px; line-height: 1.6; }.control-row, .invite-form { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto auto; align-items: center; gap: 10px; margin-top: 18px; }.control-row label, .invite-form label { color: var(--muted); font-size: 12px; }.invite-form { grid-template-columns: auto minmax(220px, 1fr) auto 150px auto; }.user-table { margin-top: 12px; }
footer { height: 66px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #61736d; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .shell { padding: 0 18px; }.identity { display: none; }.status-strip { grid-template-columns: 1fr 1fr; }.status-strip > div { border-bottom: 1px solid var(--line); }.metrics, .grid.two { grid-template-columns: 1fr 1fr; }.control-row, .invite-form { grid-template-columns: 1fr; }.page-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .brand small { display: none; }.hero h1 { font-size: 46px; }.assurance { align-items: flex-start; flex-direction: column; gap: 10px; }.metrics, .grid.two, .status-strip { grid-template-columns: 1fr; }.status-strip > div { border-right: 0; }.filters { width: 100%; }.filters select { flex: 1; }.panel-heading { align-items: flex-start; flex-direction: column; }.hint { text-align: left; }
}

/* Workspace navigation, investigation tools, and accessible interaction states. */
.dashboard { padding-top: 24px; }
.workspace-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
nav { display: flex; gap: 4px; overflow-x: auto; max-width: 100%; min-width: 0; }
nav button { padding: 16px 18px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); white-space: nowrap; }
nav button[aria-current="page"] { color: var(--mint); border-bottom-color: var(--mint); }
nav button:hover { color: var(--text); background: var(--surface-2); }
.data-context { margin-top: 18px; display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.data-context label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
input[type="checkbox"] { min-height: auto; accent-color: var(--mint); }
.status-strip { margin-top: 20px; }
.metrics .timestamp { font-size: 17px; line-height: 1.7; letter-spacing: 0; }
.timeline { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 5px; align-items: end; height: 130px; margin-top: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.timeline-column { height: 100%; display: flex; align-items: end; }
.timeline-column > div { width: 100%; background: var(--mint); border-radius: 3px 3px 0 0; min-height: 1px; opacity: .8; }
.timeline-column.elevated > div { background: var(--amber); }
.timeline-column:hover > div { opacity: 1; }
.coverage, .role-guide { color: var(--muted); font-size: 13px; line-height: 1.7; }
progress { width: 100%; height: 5px; appearance: none; border: 0; border-radius: 4px; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--mint); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--mint); border-radius: 4px; }
.rank-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel { min-width: 0; }
.event-filters { display: grid; grid-template-columns: minmax(180px, 1fr) 155px 150px auto; gap: 12px; align-items: end; margin-top: 22px; }
.event-filters label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.left { text-align: left; max-width: none; line-height: 1.7; }
.request-link { padding: 0; background: none; border: 0; color: var(--mint); text-align: left; font: 12px ui-monospace, monospace; overflow-wrap: anywhere; }
.request-link:hover { text-decoration: underline; }
td { max-width: 380px; overflow-wrap: anywhere; }
.user-table td:first-child { min-width: 150px; }
.user-table td:nth-child(2), .user-table .button { white-space: nowrap; overflow-wrap: normal; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; }
dialog { width: min(840px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto; background: var(--surface); color: var(--text); border: 1px solid #48645b; border-radius: 12px; padding: 26px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(0 0 0 / 70%); backdrop-filter: blur(4px); }
.dialog-heading, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dialog-actions { justify-content: flex-end; margin-top: 24px; }
dialog h2 { margin: 0; font-size: 23px; } dialog p { line-height: 1.7; }
pre { padding: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; font: 12px/1.7 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px; background: var(--mint); color: var(--bg); z-index: 20; }
.skip-link:focus { top: 12px; }
.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: 900px) { .workspace-bar { flex-direction: column; align-items: flex-start; padding-bottom: 12px; } .event-filters { grid-template-columns: 1fr 1fr; } .data-context { flex-direction: column; } nav button { padding: 14px 12px; } }
@media (max-width: 560px) { .event-filters { grid-template-columns: 1fr; } .timeline { gap: 3px; } footer { height: auto; padding: 22px 0; gap: 16px; flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
