
:root {
  --site-ink: #1d2a39;
  --site-copy: #5e6b7c;
  --site-muted: #8290a1;
  --site-line: #d5dee7;
  --site-line-dark: rgba(173, 211, 243, .16);
  --site-light: #eef2f5;
  --site-white: #fff;
  --site-navy: #031b55;
  --site-navy-2: #062f82;
  --site-cyan: #08bde8;
  --site-cyan-2: #5adcf6;
  --ink: var(--site-ink);
  --copy: var(--site-copy);
  --muted: var(--site-muted);
  --line: var(--site-line);
  --line-dark: var(--site-line-dark);
  --paper: var(--site-light);
  --white: var(--site-white);
  --navy: var(--site-navy);
  --navy-2: var(--site-navy-2);
  --navy-deep: #02143f;
  --cyan: var(--site-cyan);
  --cyan-2: var(--site-cyan-2);
  --green: #20b978;
  --amber: #f3a928;
  --red: #e45757;
  --shadow: 0 28px 70px -48px rgba(0, 44, 83, .72);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--copy);
  font-family: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; }
::selection { background: rgba(8, 189, 232, .28); color: #071b35; }
:focus-visible { outline: 3px solid var(--cyan) !important; outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  inset-inline-start: 18px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: #fff;
  color: var(--navy-deep);
  border: 2px solid var(--cyan);
  padding: 9px 15px;
  font-weight: 900;
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.demo-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: var(--header-h);
  background: rgba(2, 20, 63, .97);
  color: #fff;
  border-bottom: 1px solid rgba(90, 220, 246, .2);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: var(--header-h);
  max-width: 1500px;
  margin: auto;
  padding: 0 clamp(16px, 3vw, 38px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-inline-end-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(8, 189, 232, .2);
}
.brand-mark::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 14px;
  top: 12px;
  left: 18px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(8, 189, 232, .9);
}
.brand-mark::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  top: 10px;
  left: 15px;
  border-top: 3px solid var(--cyan);
  border-left: 3px solid var(--cyan);
  transform: rotate(45deg);
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong {
  font-family: 'Bebas Neue', 'Cairo', sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .06em;
}
.brand-copy small { margin-top: 4px; color: #8ea9c8; font-size: 10px; font-weight: 800; }
.demo-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.demo-switch a {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid transparent;
  color: #90a9c7;
  font-size: 11px;
  font-weight: 900;
  transition: .2s;
}
.demo-switch a:hover { color: #fff; border-color: rgba(90, 220, 246, .25); }
.demo-switch a[aria-current='page'] { background: var(--cyan); color: #001633; }
.header-badges { display: flex; gap: 7px; align-items: center; }
.v2-badge, .simulation-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(90, 220, 246, .24);
  color: var(--cyan-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.simulation-badge { color: #c5d4e5; }

.app-shell {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  overflow: auto;
  padding: 30px 18px;
  background:
    linear-gradient(rgba(8, 189, 232, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 189, 232, .035) 1px, transparent 1px),
    linear-gradient(160deg, var(--navy-deep), var(--navy));
  background-size: 26px 26px, 26px 26px, auto;
  color: #9bb0c8;
  border-inline-end: 1px solid var(--line-dark);
}
.tenant {
  padding: 0 8px 22px;
  border-bottom: 1px solid var(--line-dark);
}
.tenant-label { color: #6583a8; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.tenant strong { display: block; margin-top: 7px; color: #fff; font-size: 14px; line-height: 1.45; }
.live-line { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: #6fe8bd; font-size: 10px; font-weight: 800; }
.live-dot { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 13px rgba(32, 185, 120, .8); }
.side-nav { display: grid; gap: 4px; margin-top: 22px; }
.side-nav button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #91a9c4;
  text-align: start;
  font-size: 12px;
  font-weight: 800;
}
.side-nav button:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.side-nav button[aria-current='page'] {
  color: #001633;
  background: var(--cyan);
}
.nav-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid currentColor;
  font-size: 11px;
}
.side-note {
  margin-top: 28px;
  padding: 15px;
  border: 1px solid var(--line-dark);
  border-top: 2px solid var(--cyan);
  background: rgba(2, 20, 63, .54);
  font-size: 10px;
  line-height: 1.75;
}
.side-note strong { display: block; color: #fff; margin-bottom: 4px; }

.content { min-width: 0; padding: clamp(24px, 4vw, 54px); }
.content-inner { max-width: 1260px; margin: auto; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #0785b4;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.page-kicker::before { content: ''; width: 24px; height: 2px; background: var(--cyan); }
.page-title { color: var(--ink); font-size: clamp(30px, 4vw, 52px); font-weight: 900; letter-spacing: -.04em; }
.page-summary { max-width: 660px; margin-top: 10px; color: var(--copy); font-size: 14px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #bac7d4;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 9px 17px;
  font-size: 12px;
  font-weight: 900;
  transition: transform .2s, border-color .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); }
.btn-primary {
  border: 0;
  background: var(--cyan);
  color: #001633;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn-primary:hover { background: #3bd2f1; }
.btn-dark { border-color: transparent; background: var(--navy); color: #fff; }
.btn-danger { border-color: rgba(228, 87, 87, .4); color: #a83838; }
.btn-small { min-height: 34px; padding: 6px 11px; font-size: 10px; }
.btn-block { width: 100%; }

.hero-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 228px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  border: 1px solid rgba(157, 203, 241, .22);
  border-top: 3px solid var(--cyan);
  background:
    linear-gradient(rgba(8, 189, 232, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 189, 232, .045) 1px, transparent 1px),
    linear-gradient(120deg, #031b55, #063b98 58%, #031b55);
  background-size: 38px 38px, 38px 38px, auto;
  color: #bfd0e3;
  box-shadow: 0 50px 100px -72px #000;
}
.hero-panel::after {
  content: '';
  position: absolute;
  inset: auto -1px -1px auto;
  width: 72px;
  height: 72px;
  z-index: -1;
  background: var(--cyan);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .92;
}
.hero-copy { padding: clamp(28px, 4vw, 48px); }
.hero-eyebrow { color: var(--cyan-2); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-copy h2 { max-width: 760px; margin-top: 13px; color: #fff; font-size: clamp(27px, 3.6vw, 46px); font-weight: 900; letter-spacing: -.035em; }
.hero-copy p { max-width: 720px; margin-top: 15px; color: #a9bdd5; font-size: 13px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; }
.hero-proof span { color: #d9e5f1; font-size: 10px; font-weight: 800; }
.hero-proof span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: 7px; background: var(--cyan); box-shadow: 0 0 10px rgba(8, 189, 232, .8); }
.hero-score {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-inline-start: 1px solid rgba(173, 211, 243, .14);
  background: rgba(2, 20, 63, .54);
}
.hero-score small { color: #7f9cbd; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hero-score strong {
  margin-top: 8px;
  color: var(--cyan);
  font-family: 'Bebas Neue', 'Cairo', sans-serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  direction: ltr;
}
.hero-score p { margin-top: 8px; color: #b9cbe0; font-size: 11px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}
.kpi { min-height: 132px; padding: 24px; background: rgba(255, 255, 255, .72); }
.kpi-label { color: #758496; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.kpi-value { display: block; margin-top: 10px; color: #075394; font-size: clamp(29px, 3vw, 43px); font-weight: 900; line-height: 1; }
.kpi-meta { display: block; margin-top: 10px; color: var(--muted); font-size: 10px; }
.trend-up { color: #138a59; }
.trend-warn { color: #b77409; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 22px; margin-top: 22px; }
.stack { display: grid; gap: 22px; align-content: start; }
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
}
.panel-dark { border-color: rgba(157, 203, 241, .2); border-top-color: var(--cyan); background: var(--navy-deep); color: #9fb4cd; }
.panel-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-dark .panel-head { border-color: var(--line-dark); }
.panel-title { color: var(--ink); font-size: 15px; font-weight: 900; }
.panel-dark .panel-title { color: #fff; }
.panel-subtitle { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }

.table-shell { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid #e3e9ef; text-align: start; vertical-align: middle; }
.data-table th { background: #eaf0f4; color: #657587; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.data-table td { color: #455568; font-size: 11px; }
.data-table tbody tr { transition: background .18s; }
.data-table tbody tr:hover { background: #f7fafc; }
.cell-main { color: var(--ink); font-size: 12px; font-weight: 900; }
.cell-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.row-action { border: 0; background: transparent; color: #067fae; font-size: 10px; font-weight: 900; }
.empty-state { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 12px; }

.status, .risk, .intent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}
.status::before, .risk::before, .intent::before { content: ''; width: 5px; height: 5px; background: currentColor; }
.status-good, .risk-low { color: #11865a; background: rgba(32, 185, 120, .07); }
.status-warn, .risk-medium { color: #a76b08; background: rgba(243, 169, 40, .09); }
.status-danger, .risk-high { color: #b33f3f; background: rgba(228, 87, 87, .08); }
.status-info, .intent { color: #0879a4; background: rgba(8, 189, 232, .07); }
.status-muted { color: #718093; background: rgba(113, 128, 147, .06); }

.smart-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(90, 220, 246, .2);
  background:
    linear-gradient(rgba(8, 189, 232, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 189, 232, .04) 1px, transparent 1px),
    var(--navy-deep);
  background-size: 24px 24px;
  color: #9fb4cd;
}
.smart-card::before { content: 'SMART'; position: absolute; top: 10px; inset-inline-end: 12px; color: rgba(90, 220, 246, .16); font-family: 'Bebas Neue', sans-serif; font-size: 46px; letter-spacing: .06em; }
.smart-label { position: relative; color: var(--cyan-2); font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.smart-card h3 { position: relative; margin-top: 11px; color: #fff; font-size: 19px; }
.smart-card p { position: relative; margin-top: 9px; color: #9fb4cd; font-size: 11px; }
.smart-card .btn { position: relative; margin-top: 16px; border-color: rgba(90, 220, 246, .3); color: #fff; }
.smart-card .btn:hover { background: var(--cyan); color: #001633; }
.confidence { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.confidence-track { flex: 1; height: 5px; background: rgba(255, 255, 255, .1); }
.confidence-track span { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 12px rgba(8, 189, 232, .65); }
.confidence b { color: #fff; font-size: 10px; }

.insight-list { display: grid; gap: 1px; background: var(--line); }
.insight {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px;
  background: #fff;
}
.insight-num { width: 34px; height: 34px; display: grid; place-items: center; background: #e8f8fc; color: #087da8; font-size: 10px; font-weight: 900; }
.insight strong { display: block; color: var(--ink); font-size: 11px; }
.insight p { margin-top: 3px; color: var(--muted); font-size: 9px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-btn {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #cbd6e0;
  background: transparent;
  color: #657587;
  font-size: 9px;
  font-weight: 900;
}
.filter-btn[aria-pressed='true'] { border-color: var(--cyan); background: var(--cyan); color: #001633; }

.workflow { display: grid; gap: 1px; background: var(--line-dark); }
.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  padding: 13px 15px;
  background: rgba(3, 27, 85, .76);
}
.workflow-step.is-running { background: rgba(8, 189, 232, .09); }
.workflow-step.is-done .step-index { background: var(--cyan); color: #001633; }
.step-index { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(90, 220, 246, .32); color: var(--cyan-2); font-size: 10px; font-weight: 900; }
.workflow-step strong { display: block; color: #fff; font-size: 11px; }
.workflow-step p { margin-top: 3px; color: #89a2be; font-size: 9px; }
.step-state { color: #7895b5; font-size: 9px; font-weight: 900; }
.workflow-step.is-running .step-state { color: var(--cyan); }
.workflow-step.is-done .step-state { color: #6fe8bd; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #536477; font-size: 10px; font-weight: 900; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 45px;
  border: 1px solid #c9d5df;
  border-radius: 0;
  background: #f7fafc;
  color: var(--ink);
  padding: 10px 12px;
  outline: 0;
  font-size: 12px;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 3px rgba(8, 189, 232, .1); }
.field-hint, .field-error { min-height: 16px; font-size: 9px; }
.field-hint { color: var(--muted); }
.field-error { color: #b33f3f; }
.demo-warning { color: #9c3e16; font-size: 11px; font-weight: 900; }
.demo-warning.full { grid-column: 1 / -1; }
.gate-card > .demo-warning { margin-top: 12px; color: #ffd58a; }

.bar-list { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 42px; align-items: center; gap: 10px; }
.bar-row label { color: #657587; font-size: 9px; font-weight: 800; }
.bar-track { height: 8px; background: #dce5ec; }
.bar-track span { display: block; height: 100%; background: linear-gradient(90deg, #0677b5, var(--cyan)); }
.bar-row b { color: var(--ink); font-size: 10px; text-align: end; }

.launch-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(rgba(8, 189, 232, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 189, 232, .055) 1px, transparent 1px),
    radial-gradient(circle at 65% 25%, rgba(8, 189, 232, .14), transparent 36%),
    var(--navy-deep);
  background-size: 36px 36px, 36px 36px, auto, auto;
}
.gate-card {
  width: min(640px, 100%);
  border: 1px solid rgba(157, 203, 241, .24);
  border-top: 3px solid var(--cyan);
  background: rgba(3, 27, 85, .92);
  padding: clamp(28px, 5vw, 50px);
  color: #a9bdd5;
  box-shadow: 0 60px 120px -58px #000;
}
.gate-top { display: flex; align-items: center; gap: 12px; }
.gate-card h1 { margin-top: 24px; color: #fff; font-size: clamp(31px, 6vw, 52px); font-weight: 900; letter-spacing: -.04em; }
.gate-card > p { margin-top: 15px; color: #9db2cb; font-size: 13px; }
.gate-form { margin-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.gate-form input,
.gate-form select { min-width: 0; min-height: 50px; border: 1px solid rgba(157, 203, 241, .3); background: rgba(2, 20, 63, .72); color: #fff; padding: 10px 14px; outline: 0; }
.gate-form input:focus,
.gate-form select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(8, 189, 232, .12); }
.gate-form select { grid-column: 1 / -1; color-scheme: dark; }
.gate-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 28px; background: var(--line-dark); }
.gate-fact { padding: 12px; background: rgba(2, 20, 63, .7); }
.gate-fact strong { display: block; color: var(--cyan-2); font-size: 10px; }
.gate-fact span { display: block; margin-top: 4px; color: #819bb8; font-size: 8px; }

dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(86vh, 820px);
  padding: 0;
  overflow: auto;
  border: 1px solid #b9c9d8;
  border-top: 4px solid var(--cyan);
  border-radius: 0;
  background: #f4f7f9;
  color: var(--copy);
  box-shadow: 0 60px 120px -50px rgba(0, 20, 57, .9);
}
dialog::backdrop { background: rgba(2, 20, 63, .76); backdrop-filter: blur(5px); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-kicker { color: #087fae; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.dialog-title { margin-top: 6px; color: var(--ink); font-size: 22px; font-weight: 900; }
.dialog-close { width: 36px; height: 36px; border: 1px solid #cbd6e0; background: transparent; color: var(--ink); font-size: 18px; }
.dialog-body { padding: 24px; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding: 16px 24px; border-top: 1px solid var(--line); background: #eaf0f4; }
.result-box { padding: 18px; border-inline-start: 3px solid var(--cyan); background: #e8f7fb; color: #284456; }
.result-box strong { display: block; color: var(--ink); font-size: 14px; }
.result-box p { margin-top: 7px; font-size: 11px; }
.reason-list { margin: 15px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.reason-list li { padding: 9px 11px; border: 1px solid #d5e0e8; background: #fff; color: #536477; font-size: 10px; }
.reason-list li::before { content: '✓'; margin-inline-end: 8px; color: #087fae; font-weight: 900; }

.toast {
  position: fixed;
  z-index: 300;
  bottom: 24px;
  inset-inline-end: 24px;
  max-width: min(380px, calc(100% - 32px));
  transform: translateY(28px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 16px;
  border-inline-start: 4px solid var(--cyan);
  background: var(--navy-deep);
  color: #fff;
  box-shadow: 0 25px 55px -30px #000;
  font-size: 11px;
  font-weight: 800;
  transition: opacity .22s, transform .22s;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-success { border-color: var(--green); }
.toast.is-warning { border-color: var(--amber); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 12px 16px; border-inline-end: 0; border-bottom: 1px solid var(--line-dark); }
  .tenant, .side-note { display: none; }
  .side-nav { margin: 0; display: flex; overflow-x: auto; gap: 5px; scrollbar-width: thin; }
  .side-nav button { width: auto; min-width: max-content; min-height: 40px; padding: 7px 11px; }
  .nav-icon { width: 22px; height: 22px; }
  .workspace-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header-inner { gap: 12px; }
  .brand-copy small, .header-badges, .demo-switch a:not([aria-current='page']) { display: none; }
  .demo-switch { margin-inline-start: auto; }
  .content { padding: 22px 16px 40px; }
  .page-head { align-items: start; flex-direction: column; }
  .page-actions { justify-content: flex-start; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-score { border-inline-start: 0; border-top: 1px solid rgba(173, 211, 243, .14); }
  .hero-score strong { font-size: 58px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .header-inner { min-height: var(--header-h); padding-inline: 12px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark::before { top: 9px; left: 15px; }
  .brand-mark::after { top: 7px; left: 12px; }
  .brand-copy strong { font-size: 21px; }
  .demo-switch a { padding: 7px 9px; }
  .page-title { font-size: 31px; }
  .page-actions .btn { flex: 1; }
  .hero-copy, .hero-score { padding: 25px 20px; }
  .kpi { min-height: 116px; padding: 18px 14px; }
  .kpi-value { font-size: 29px; }
  .panel-head { align-items: start; flex-direction: column; }
  .panel-actions { width: 100%; }
  .panel-actions .btn { flex: 1; }
  .gate-card { padding: 28px 20px; }
  .gate-form { grid-template-columns: 1fr; }
  .gate-facts { grid-template-columns: 1fr; }
  .workflow-step { grid-template-columns: 36px 1fr; }
  .step-state { grid-column: 2; }
  .dialog-head, .dialog-body, .dialog-actions { padding-inline: 18px; }
  .dialog-actions .btn { flex: 1; }
  .toast { inset-inline: 16px; bottom: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
