@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");
:root {
  --bg: #070a0f;
  --panel: #0d1219;
  --panel2: #101822;
  --line: #202b37;
  --text: #f4f7fb;
  --muted: #8d9aa9;
  --accent: #65efc1;
  --accent2: #8ccff5;
  --danger: #ff6d7d;
  --warn: #ffc269;
  --low: #91a1b5;
  font-family: "DM Sans", sans-serif;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% -8%, #152b2b 0, transparent 31%), var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.eyebrow,
.kicker {
  margin: 0;
  font:
    800 10px/1.4 Manrope,
    sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.fine,
small {
  color: var(--muted);
  font-size: 11px;
}
.primary,
.secondary,
.quiet {
  border-radius: 9px;
  padding: 11px 15px;
  font-weight: 800;
  border: 1px solid transparent;
}
.primary {
  background: var(--accent);
  color: #06120e;
}
.secondary {
  background: #111923;
  color: #dce6ef;
  border-color: #293744;
}
.quiet {
  width: 100%;
  background: transparent;
  color: #9aabba;
  border-color: #26313d;
}
.gateway {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  position: relative;
}
.gateway-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(#284339 1px, transparent 1px),
    linear-gradient(90deg, #284339 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(circle at center, #000, transparent 68%);
}
.gateway-card {
  position: relative;
  width: min(610px, 100%);
  padding: 48px;
  border: 1px solid #2b3a42;
  border-radius: 25px;
  background: linear-gradient(
    155deg,
    rgba(17, 27, 33, 0.97),
    rgba(7, 11, 16, 0.97)
  );
  box-shadow: 0 35px 100px #0009;
}
.shield {
  width: 56px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 27px;
  background: linear-gradient(145deg, #193f35, #0b1716);
  color: var(--accent);
  border: 1px solid #3d7162;
  clip-path: polygon(50% 0, 92% 16%, 84% 77%, 50% 100%, 16% 77%, 8% 16%);
  font: 900 22px Manrope;
}
.gateway h1 {
  font: 800 clamp(42px, 6vw, 66px) / 0.98 Manrope;
  margin: 12px 0 21px;
  letter-spacing: -0.055em;
}
.lede {
  max-width: 530px;
  color: #a7b3c0;
  font-size: 17px;
  line-height: 1.65;
}
.gateway-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}
.gateway-facts span,
.badge {
  border: 1px solid #315549;
  border-radius: 999px;
  color: #a8e9d3;
  background: #0c1817;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
}
.enter {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.institution {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #c4ced8;
  font-size: 11px;
}
.institution span {
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 21px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #080c11ed;
  backdrop-filter: blur(18px);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 7px 21px;
}
.shield.small {
  width: 39px;
  height: 43px;
  margin: 0;
  font-size: 15px;
}
.brand > div:last-child {
  display: grid;
}
.brand span {
  font-size: 10px;
  color: var(--muted);
}
nav {
  display: grid;
  gap: 5px;
  margin: 12px 0;
}
.nav {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 8px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #8d99a8;
  border-radius: 9px;
  padding: 11px;
}
.nav i {
  font: 700 9px Manrope;
  color: #53616e;
  font-style: normal;
}
.nav:hover,
.nav.active {
  background: #111923;
  color: white;
}
.nav.active {
  box-shadow: inset 2px 0 var(--accent);
}
.side-links {
  margin-top: 16px;
  padding: 15px 11px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 11px;
}
.side-links a {
  color: #9cabb9;
  text-decoration: none;
  font-size: 11px;
}
.side-links a:hover {
  color: var(--accent);
}
.system {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0c1218;
}
.system div {
  display: grid;
}
.system strong {
  font-size: 11px;
}
.system small {
  font-size: 9px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px #65efc116;
}
.quiet {
  margin-top: 10px;
  font-size: 11px;
}
main {
  min-width: 0;
}
.topbar {
  height: 84px;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #070a0fbf;
  backdrop-filter: blur(16px);
}
.topbar h2 {
  margin: 3px 0 0;
  font: 700 19px Manrope;
}
.analyst {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: right;
}
.analyst div {
  display: grid;
}
.analyst span {
  width: 38px;
  height: 38px;
  border: 1px solid #345748;
  background: #13221f;
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 800 10px Manrope;
}
.menu {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: white;
  padding: 8px 10px;
}
.view {
  display: none;
  padding: 30px 34px 48px;
}
.active-view {
  display: block;
}
.hero {
  border: 1px solid #2a483e;
  border-radius: 19px;
  padding: 33px;
  background:
    radial-gradient(circle at 88% 20%, #65efc11b, transparent 27%),
    linear-gradient(135deg, #101c1b, #0d131b);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
}
.hero h3,
.section-head h3 {
  font: 800 clamp(29px, 3.5vw, 42px) / 1.06 Manrope;
  margin: 8px 0 12px;
  letter-spacing: -0.045em;
}
.hero p:not(.eyebrow),
.section-head p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  margin-bottom: 0;
}
.hero-control {
  min-width: 350px;
  max-width: 430px;
}
.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hero-actions select {
  grid-column: 1/-1;
}
.scenario-evidence {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #29453c;
  border-radius: 9px;
  background: #091311;
  display: grid;
  gap: 4px;
}
.scenario-evidence b {
  font: 800 8px Manrope;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.scenario-evidence span {
  font-size: 9px;
  line-height: 1.45;
  color: #9eada9;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}
.metrics article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  display: grid;
  gap: 5px;
}
.metrics span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.metrics strong {
  font: 800 27px Manrope;
  letter-spacing: -0.04em;
}
.metrics small {
  font-size: 9px;
}
.grid {
  display: grid;
  gap: 14px;
}
.grid.two {
  grid-template-columns: 1.18fr 0.82fr;
}
.grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(180deg, #0d131a, #0a0f15);
}
.panel-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.section-head {
  align-items: end;
  margin-bottom: 18px;
}
.panel h4 {
  font: 700 16px Manrope;
  margin: 4px 0;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}
.event-list,
.token-list {
  display: grid;
  gap: 8px;
}
.event-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #1d2832;
  border-radius: 10px;
  background: #0a1016;
  color: var(--text);
  text-align: left;
}
.event-card strong {
  font-size: 12px;
}
.event-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 0;
}
.score {
  font: 800 18px Manrope;
}
.sev-Critical {
  color: var(--danger);
}
.sev-High {
  color: var(--warn);
}
.sev-Medium {
  color: #ffe191;
}
.sev-Low {
  color: var(--low);
}
.risk-bars {
  display: grid;
  gap: 12px;
  margin: 19px 0;
}
.risk-line {
  display: grid;
  grid-template-columns: 70px 1fr 26px;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}
.bar {
  height: 7px;
  background: #19232e;
  border-radius: 99px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #377f69, var(--accent));
  border-radius: 99px;
}
.engine-note {
  padding: 14px;
  border: 1px solid #24443a;
  border-radius: 11px;
  background: #0a1614;
}
.engine-note strong {
  font-size: 11px;
  color: var(--accent);
}
.engine-note p {
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
  margin: 6px 0 0;
}
.actions {
  display: flex;
  gap: 8px;
}
.import-panel {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 380px) auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.import-panel input {
  width: 100%;
}
.import-panel a {
  font-size: 11px;
  color: var(--accent);
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #293744;
  border-radius: 8px;
  background: #080d12;
  color: var(--text);
  outline: none;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  margin: 15px 0;
  font-size: 11px;
  color: #b7c2ce;
  font-weight: 700;
}
.table-panel {
  padding: 0;
  overflow: hidden;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid #1b2630;
  font-size: 11px;
}
th {
  background: #0b1117;
  color: #73818f;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
tbody tr {
  cursor: pointer;
}
tbody tr:hover {
  background: #111a22;
}
.pill {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 3px 6px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.empty {
  color: var(--muted);
  font-size: 11px;
  padding: 12px;
}
.inspector {
  margin-top: 14px;
}
.inspector pre {
  max-height: 360px;
  overflow: auto;
  background: #070b10;
  padding: 15px;
  border: 1px solid var(--line);
  font-size: 10px;
  white-space: pre-wrap;
}
.token {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #1e2933;
  border-radius: 10px;
  background: #090f15;
}
.token strong {
  font-size: 12px;
}
.token small {
  display: block;
}
.token button {
  border: 1px solid #315748;
  background: #0e1c19;
  color: #b6eedb;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 9px;
}
.feature > b {
  color: var(--accent);
  font: 800 10px Manrope;
}
.feature p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}
.pipeline-panel {
  margin-top: 14px;
}
.pipeline {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pipeline span {
  padding: 11px;
  border: 1px solid #293641;
  border-radius: 9px;
  background: #090f15;
  font-size: 10px;
  font-weight: 700;
}
.pipeline b {
  color: #44695d;
}
.model-meta {
  margin-top: 20px;
  color: var(--muted);
  font:
    10px/1.6 ui-monospace,
    monospace;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  padding: 12px 15px;
  border: 1px solid #335448;
  border-radius: 10px;
  background: #101921;
  color: #d9eee7;
  box-shadow: 0 20px 60px #0009;
  font-size: 11px;
}
@media (max-width: 1120px) {
  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-control {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .import-panel {
    grid-template-columns: 1fr 1fr;
  }
  .import-panel > div {
    grid-column: 1/-1;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(290px, 86vw);
    transform: translateX(-105%);
    transition: 0.25s;
    box-shadow: 20px 0 60px #0009;
  }
  .sidebar.open {
    transform: none;
  }
  .menu {
    display: block;
  }
  .topbar {
    height: 75px;
    padding: 0 16px;
    justify-content: flex-start;
    gap: 13px;
  }
  .analyst {
    margin-left: auto;
  }
  .analyst div {
    display: none;
  }
  .view {
    padding: 20px 15px 38px;
  }
  .hero {
    padding: 25px 20px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .actions {
    width: 100%;
  }
  .actions button {
    flex: 1;
  }
  .import-panel {
    grid-template-columns: 1fr;
  }
  .import-panel > div {
    grid-column: auto;
  }
  .gateway-card {
    padding: 32px 25px;
  }
  .institution {
    display: grid;
  }
  .pipeline {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }
  .pipeline b {
    text-align: center;
    transform: rotate(90deg);
  }
  .canary-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 420px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics article {
    padding: 13px;
  }
  .metrics strong {
    font-size: 23px;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .hero-actions select {
    grid-column: auto;
  }
  .gateway {
    padding: 14px;
  }
  .gateway-card {
    border-radius: 18px;
  }
  .gateway h1 {
    font-size: 39px;
  }
}
