:root {
  color-scheme: light;
  --ink: #13231f;
  --muted: #607069;
  --paper: #f1f3ed;
  --surface: #fafbf7;
  --line: #d8ddd4;
  --green: #174f3f;
  --green-soft: #dce9df;
  --amber: #ad6b18;
  --red: #a54438;
  --sidebar: #102b24;
  --sidebar-muted: #a6b9b1;
  font-family: Aptos, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 14px; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--sidebar); color: white; padding: 28px 20px 22px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 34px; font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
.brand-mark { width: 25px; height: 25px; color: #cce56c; }
.nav-label, .eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: 10px; font-weight: 700; }
.nav-label { color: var(--sidebar-muted); padding: 0 10px 9px; }
.nav { display: grid; gap: 3px; }
.nav button { border: 0; background: transparent; color: var(--sidebar-muted); text-align: left; padding: 10px 12px; border-radius: 6px; display: flex; gap: 10px; align-items: center; }
.nav button:hover, .nav button.active { background: #1c4036; color: white; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; background: white; color: var(--green); padding: 10px 14px; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #c38b36; outline-offset: 2px; }
.nav svg { width: 17px; height: 17px; }
.tenant-card { margin-top: auto; border-top: 1px solid #365047; padding: 18px 8px 0; }
.tenant-card .nav-label { padding: 0 0 6px; }
.tenant-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.operator { color: var(--sidebar-muted); font-size: 12px; margin-top: 4px; }
.sign-out { color: #d9e2de; background: transparent; border: 0; padding: 12px 0 0; font-size: 12px; }
.main { min-width: 0; }
.topbar { height: 72px; background: rgba(250,251,247,.92); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 38px; position: sticky; top: 0; z-index: 3; backdrop-filter: blur(12px); }
.read-only { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; font-weight: 650; }
.read-only::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4a8b61; box-shadow: 0 0 0 3px #dce9df; }
.timestamp { color: var(--muted); font-size: 12px; }
.content { padding: 36px 38px 64px; max-width: 1500px; margin: auto; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
h1 { font-family: Georgia, serif; font-size: 32px; font-weight: 500; letter-spacing: -.035em; margin: 5px 0 0; }
.eyebrow { color: var(--green); }
.lede { color: var(--muted); margin: 7px 0 0; max-width: 650px; line-height: 1.5; }
.refresh { border: 1px solid #bac5bd; background: var(--surface); color: var(--ink); border-radius: 5px; padding: 9px 13px; }
.refresh:hover { border-color: var(--green); }
.grid { display: grid; gap: 16px; }
.metrics { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.metric { padding: 19px 20px; min-height: 116px; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { font-family: Georgia, serif; font-size: 29px; margin-top: 13px; font-variant-numeric: tabular-nums; }
.metric-note { font-size: 11px; color: var(--muted); margin-top: 4px; }
.two-col { grid-template-columns: minmax(0, 1.55fr) minmax(290px, .8fr); }
.section { padding: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.section-meta { color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; border-bottom: 1px solid #e5e8e2; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.mono { font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; }
.status { font-size: 11px; font-weight: 700; text-transform: capitalize; }
.status.allowed, .status.succeeded, .status.approved, .status.active { color: var(--green); }
.status.pending { color: var(--amber); }
.status.blocked, .status.denied, .status.rejected, .status.failed { color: var(--red); }
.empty { color: var(--muted); text-align: center; padding: 42px 20px; line-height: 1.5; }
.error { border-left: 3px solid var(--red); background: #faefec; padding: 14px 16px; margin-bottom: 18px; color: #762e25; line-height: 1.45; }
.fact-list { display: grid; gap: 0; }
.fact { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid #e5e8e2; }
.fact:last-child { border: 0; }
.fact dt { color: var(--muted); }
.fact dd { margin: 0; overflow-wrap: anywhere; }
.definition { margin: 0; padding: 16px; background: #e9ede6; border-radius: 5px; overflow: auto; font: 11px/1.65 "Cascadia Code", Consolas, monospace; }
.filter-bar { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { width: auto; min-width: 150px; padding: 9px 10px; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 42%) 1fr; }
.login-panel { background: var(--surface); padding: clamp(40px, 7vw, 96px); display: flex; flex-direction: column; justify-content: center; }
.login-art { background: var(--sidebar); color: white; padding: clamp(40px, 7vw, 96px); display: flex; flex-direction: column; justify-content: end; position: relative; overflow: hidden; }
.login-art::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid #416157; border-radius: 50%; top: -180px; right: -180px; box-shadow: 0 0 0 70px #16372f, 0 0 0 71px #416157, 0 0 0 140px #133229; }
.login-art h2 { position: relative; font: 500 clamp(32px, 4vw, 58px)/1.04 Georgia, serif; max-width: 680px; letter-spacing: -.04em; }
.login-art p { position: relative; color: #b8c8c2; max-width: 520px; line-height: 1.6; }
.login .brand { color: var(--ink); padding: 0 0 52px; }
.login .brand-mark { color: var(--green); }
.login h1 { font-size: 35px; }
.login form { margin-top: 30px; max-width: 430px; }
.login-panel > .submit { max-width: 430px; }
label { display: block; font-size: 12px; font-weight: 650; margin: 18px 0 7px; }
input { width: 100%; padding: 12px 13px; border: 1px solid #bbc5bd; border-radius: 5px; background: white; color: var(--ink); }
input:focus { outline: 2px solid #9eb9ad; outline-offset: 1px; border-color: var(--green); }
.submit { width: 100%; margin-top: 22px; padding: 12px; border: 0; border-radius: 5px; background: var(--green); color: white; font-weight: 700; }
.security-note { color: var(--muted); font-size: 11px; line-height: 1.5; max-width: 430px; margin-top: 15px; }
.login-error { color: var(--red); font-size: 12px; margin-top: 14px; }
@media (max-width: 900px) { .shell { grid-template-columns: 76px 1fr; } .sidebar { padding-inline: 12px; } .brand span, .nav span, .nav-label, .tenant-card { display: none; } .brand { justify-content: center; padding-inline: 0; } .nav button { justify-content: center; } .metrics { grid-template-columns: repeat(2,1fr); } .two-col { grid-template-columns: 1fr; } .login { grid-template-columns: 1fr; } .login-art { display: none; } }
@media (max-width: 600px) { .shell { display: block; } .sidebar { height: auto; position: fixed; inset: auto 0 0; z-index: 5; padding: 8px; } .brand, .nav-label, .tenant-card { display: none; } .nav { grid-template-columns: repeat(5,1fr); } .nav button { padding: 10px; } .topbar { padding: 0 18px; height: 58px; } .timestamp { display: none; } .content { padding: 24px 16px 90px; } .metrics { grid-template-columns: 1fr 1fr; } .page-head { align-items: start; } .page-head .refresh { flex: none; } .fact { grid-template-columns: 1fr; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
