:root {
  color-scheme: light;
  --navy: #06111f;
  --navy-2: #0a1d34;
  --teal: #1997ff;
  --teal-soft: #e6f1ff;
  --gold: #f2b84b;
  --gold-deep: #d79a22;
  --ink: #06111f;
  --muted: #52687d;
  --line: #d6e0e9;
  --paper: #ffffff;
  --canvas: #f3f6f8;
  --danger: #a13d3d;
  --shadow: 0 16px 42px rgba(7, 26, 45, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar { min-height: 80px; padding: 12px clamp(20px, 5vw, 72px); background: linear-gradient(100deg, var(--navy), #0a2442); color: white; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 2px solid var(--gold); }
.brand { display: flex; gap: 12px; align-items: center; color: white; text-decoration: none; }
.brand-mark { width: 46px; height: 52px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: #b9c8d4; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 18px; }
.status-cluster { display: flex; align-items: center; gap: 12px; text-align: right; }
.environment-badge { border-radius: 999px; padding: 6px 13px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.status-note { color: #d9e5ef; font-size: 10px; line-height: 1.35; }
nav a, nav button { color: white; background: transparent; border: 0; padding: 9px 12px; text-decoration: none; border-radius: 8px; }
nav a:hover, nav button:hover { background: rgba(255,255,255,.1); }
main { width: min(1180px, calc(100% - 32px)); margin: 36px auto 64px; }
.hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 30px; align-items: stretch; }
.hero-copy, .hero-panel, .panel { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 16px; }
.hero-copy { padding: clamp(30px, 5vw, 64px); }
.hero-panel { padding: 30px; background: linear-gradient(160deg, var(--navy-2), #0c2f55); color: white; border-top: 3px solid var(--gold); }
.kicker { color: var(--teal); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; font-size: 13px; }
h1, h2, h3 { color: var(--navy); line-height: 1.1; }
.hero-panel h2, .hero-panel h3 { color: white; }
h1 { font-family: Georgia, serif; font-size: clamp(38px, 5vw, 67px); margin: 14px 0 20px; }
h2 { font-size: 26px; margin: 0 0 20px; }
h3 { font-size: 18px; margin: 0 0 12px; }
.lead { color: #485d6d; font-size: 19px; line-height: 1.65; }
.callout { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 14px 16px; margin: 22px 0; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 9px; border: 1px solid var(--navy); background: var(--navy); color: white; text-decoration: none; font-weight: 750; box-shadow: 0 6px 16px rgba(6,17,31,.12); }
.button.secondary { background: white; color: var(--navy); }
.button.teal { border-color: var(--teal); background: var(--teal); color: var(--navy); }
.button:disabled { opacity: .55; cursor: not-allowed; }
.hero-copy .button + .button { margin-left: 8px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.15); display: grid; grid-template-columns: 38px 1fr; gap: 10px; }
.steps b { color: var(--teal); }
.panel { padding: clamp(22px, 4vw, 40px); margin-bottom: 24px; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-head p { margin: 6px 0 0; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: white; }
.stat small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat strong { display: block; margin-top: 8px; color: var(--navy); font-size: 28px; }
.cards { display: grid; gap: 14px; }
.card { border: 1px solid var(--line); background: white; border-radius: 12px; padding: 18px; transition: .15s ease; }
.card:hover { border-color: #aabcc8; transform: translateY(-1px); }
.card a { color: inherit; text-decoration: none; }
.card-top { display: flex; justify-content: space-between; gap: 16px; }
.card h3 { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 14px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; background: var(--teal-soft); color: #08695f; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.badge.high, .badge.critical { background: #fbecec; color: var(--danger); }
.badge.moderate { background: #fff5df; color: #75510b; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 750; color: var(--navy); }
input, select, textarea { width: 100%; border: 1px solid #b9c8d1; border-radius: 9px; padding: 11px 12px; background: white; color: var(--ink); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(25,191,175,.2); border-color: var(--teal); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.auth-shell { width: min(560px, 100%); margin: 48px auto; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; background: transparent; color: var(--muted); font-weight: 750; }
.tabs button.active { color: var(--navy); border-bottom-color: var(--teal); }
.empty { padding: 38px; text-align: center; border: 1px dashed #aabac5; border-radius: 12px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.facts { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; }
.item { padding: 16px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item p { margin: 7px 0; line-height: 1.5; }
.warning { color: var(--danger); font-size: 14px; }
#toast { position: fixed; right: 20px; bottom: 20px; max-width: 360px; background: var(--navy); color: white; padding: 12px 16px; border-radius: 9px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: .2s ease; pointer-events: none; }
#toast.show { opacity: 1; transform: none; }
.site-footer { padding: 26px clamp(20px, 5vw, 72px); background: var(--navy); color: #afc0d2; border-top: 2px solid var(--gold); font-size: 13px; line-height: 1.5; }
.site-footer p { margin: 4px auto; width: min(1180px, 100%); }
.site-footer strong { color: #f5f7fa; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
@media (max-width: 820px) {
  .hero, .detail-grid, .grid.two, .grid.three { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; }
  nav { flex-wrap: wrap; justify-content: flex-end; }
  .facts { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 560px) {
  .topbar { display: block; }
  nav { margin-top: 14px; justify-content: flex-start; }
  .status-cluster { text-align: left; }
  main { width: min(100% - 20px, 1180px); margin-top: 18px; }
  .hero-copy, .hero-panel, .panel { border-radius: 11px; }
  .panel-head, .card-top { display: block; }
  .badge { margin-top: 8px; }
  .hero-copy .button + .button { margin: 8px 0 0; }
}
