:root {
  color-scheme: dark;
  --bg: #030907;
  --bg-soft: #06110d;
  --surface: #081711;
  --surface-2: #0b1d16;
  --surface-3: #10271e;
  --line: rgba(126, 245, 190, 0.14);
  --line-strong: rgba(126, 245, 190, 0.28);
  --text: #f1f8f5;
  --text-soft: #c5d7cf;
  --muted: #7f9b90;
  --green: #2af5a5;
  --green-soft: #7cfcc5;
  --green-deep: #00bd79;
  --green-glow: rgba(42, 245, 165, 0.16);
  --amber: #f8c75c;
  --amber-glow: rgba(248, 199, 92, 0.16);
  --red: #ff697d;
  --red-glow: rgba(255, 105, 125, 0.14);
  --blue: #6bd7ff;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  --max: 1540px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 9% -10%, rgba(20, 174, 111, 0.14), transparent 32%),
    radial-gradient(circle at 92% 9%, rgba(42, 245, 165, 0.07), transparent 26%),
    linear-gradient(180deg, #020806, #04100c 46%, #020806);
  font-size: 15px;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(93, 240, 171, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 240, 171, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

button, textarea, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 12px;
  color: #02110a;
  background: var(--green);
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 16px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(126, 245, 190, 0.11);
  background: rgba(3, 10, 7, 0.83);
  backdrop-filter: blur(24px) saturate(130%);
}

.topbar-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(42, 245, 165, 0.35);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(42, 245, 165, 0.17), rgba(42, 245, 165, 0.02));
  box-shadow: 0 0 26px rgba(42, 245, 165, 0.08);
}

.brand-mark i {
  position: absolute;
  width: 15px;
  height: 1px;
  background: var(--green);
  transform-origin: center;
}

.brand-mark i:nth-child(1) { transform: rotate(0deg); }
.brand-mark i:nth-child(2) { transform: rotate(60deg); }
.brand-mark i:nth-child(3) { transform: rotate(-60deg); }

.brand-word {
  font-weight: 900;
  letter-spacing: 0.17em;
  font-size: 0.98rem;
}

.brand-version {
  padding: 4px 7px;
  color: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(42, 245, 165, 0.05);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-patch {
  margin-left: -6px;
  color: var(--green);
  font-family: monospace;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.runtime-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pulse,
.api-health > span,
.runtime-label > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(42, 245, 165, 0.08), 0 0 18px rgba(42, 245, 165, 0.45);
}

.status-separator {
  width: 1px;
  height: 13px;
  margin: 0 2px;
  background: var(--line);
}

.topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a {
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 750;
  transition: 0.18s ease;
}

.topnav a:hover { color: var(--text); background: rgba(255,255,255,0.035); }
.topnav .nav-cta { margin-left: 6px; color: #02110a; background: var(--green); }
.topnav .nav-cta:hover { color: #02110a; background: var(--green-soft); transform: translateY(-1px); }

main {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hero-shell { order: 1; }
.product-console-shell { order: 2; }
.pe-studio { order: 3; }

.hero-shell {
  min-height: 440px;
  padding: 72px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.72fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--green-soft);
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 24px;
  height: 1px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(42, 245, 165, 0.5);
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.15rem);
  line-height: 0.97;
  letter-spacing: -0.055em;
  font-weight: 780;
}

.hero-copy h1 em {
  color: var(--green);
  font-style: normal;
  text-shadow: 0 0 42px rgba(42, 245, 165, 0.14);
}

.hero-copy > p {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.hero-signature {
  margin: 15px 0 0 !important;
  color: var(--green-soft) !important;
  font-family: monospace;
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button svg { width: 17px; height: 17px; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #02120b; background: var(--green); box-shadow: 0 12px 34px rgba(42, 245, 165, 0.12); }
.button-primary:hover { background: var(--green-soft); }
.button-secondary { color: var(--green-soft); border-color: var(--line-strong); background: rgba(42, 245, 165, 0.07); }
.button-ghost { color: var(--text-soft); border-color: var(--line); background: rgba(255,255,255,0.018); }
.button-ghost:hover { border-color: var(--line-strong); background: rgba(42, 245, 165, 0.045); }
.button.compact { min-height: 38px; padding: 0 13px; border-radius: 11px; font-size: 0.7rem; }

.hero-proof {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(42, 245, 165, 0.11), transparent 36%),
    linear-gradient(160deg, rgba(11, 29, 22, 0.9), rgba(5, 16, 12, 0.9));
  box-shadow: var(--shadow);
}

.hero-proof::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,0.025) 46%, transparent 65%);
}

.hero-proof-head {
  position: relative;
  padding: 9px 10px 15px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-proof-head strong { color: var(--green); font-size: 0.62rem; }

.hero-challenge {
  padding: 18px;
  border-color: rgba(42, 245, 165, 0.32);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), 0 0 70px rgba(42, 245, 165, 0.08) inset;
}

.hero-challenge .hero-proof-head { padding: 5px 4px 16px; }
.hero-challenge .hero-proof-head span { display: inline-flex; align-items: center; gap: 8px; }
.hero-challenge .hero-proof-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 15px rgba(42, 245, 165, 0.8);
  animation: wowPulse 1.7s ease-in-out infinite;
}

.hero-ai-claim {
  position: relative;
  padding: 16px 82px 16px 16px;
  border: 1px solid rgba(126, 245, 190, 0.12);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.18);
}

.hero-ai-claim > span,
.scan-line b,
.hero-decision-shift span {
  color: var(--muted);
  font-family: monospace;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.hero-ai-claim p { margin: 8px 0 0; color: var(--text-soft); font-size: 0.82rem; line-height: 1.5; }
.hero-ai-claim > em {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 7px;
  border: 1px solid rgba(248, 199, 92, 0.25);
  border-radius: 999px;
  color: var(--amber);
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.hero-cross-examination {
  margin: 10px 0;
  padding: 13px;
  border: 1px solid rgba(42, 245, 165, 0.22);
  border-radius: 15px;
  background: rgba(42, 245, 165, 0.045);
}

.scan-line { display: flex; align-items: center; gap: 8px; padding: 0 2px 11px; }
.scan-line > span { width: 8px; height: 8px; border: 2px solid var(--green); border-radius: 50%; box-shadow: 0 0 12px rgba(42, 245, 165, 0.55); }
.scan-line b { color: var(--green-soft); }
.scan-line em { margin-left: auto; color: var(--muted); font-size: 0.58rem; font-style: normal; }

.counterevidence-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 91, 120, 0.28);
  border-radius: 13px;
  background: rgba(255, 91, 120, 0.065);
}

.counterevidence-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--red); background: rgba(255, 91, 120, 0.1); font-size: 1.25rem; }
.counterevidence-row b, .counterevidence-row small { display: block; }
.counterevidence-row b { color: #fff; font-size: 0.78rem; }
.counterevidence-row small { margin-top: 4px; color: #bf949c; font-size: 0.65rem; line-height: 1.35; }
.counterevidence-row > em { color: var(--red); font-family: monospace; font-size: 0.56rem; font-style: normal; font-weight: 900; }

.hero-decision-shift {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 11px;
  align-items: stretch;
}

.hero-decision-shift > div { padding: 13px; border: 1px solid rgba(126, 245, 190, 0.11); border-radius: 13px; background: rgba(0, 0, 0, 0.16); }
.hero-decision-shift > i { align-self: center; color: var(--green); font-style: normal; }
.hero-decision-shift b { display: block; margin-top: 6px; font-size: 1.2rem; }
.hero-decision-shift small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.57rem; }
.hero-decision-shift .blocked { border-color: rgba(255, 91, 120, 0.3); background: rgba(255, 91, 120, 0.06); }
.hero-decision-shift .blocked b { color: var(--red); }

@keyframes wowPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

.proof-principle {
  position: relative;
  min-height: 78px;
  padding: 15px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: center;
  border-top: 1px solid rgba(126,245,190,0.09);
  border-radius: 14px;
}

.proof-principle.active {
  margin: 2px 0;
  border: 1px solid rgba(42, 245, 165, 0.23);
  background: rgba(42, 245, 165, 0.07);
  box-shadow: 0 0 34px rgba(42,245,165,0.05) inset;
}

.proof-index { color: var(--green); font-family: monospace; font-size: 0.72rem; }
.proof-principle b { display: block; margin-bottom: 3px; font-size: 0.9rem; }
.proof-principle small { color: var(--muted); font-size: 0.72rem; }

.pe-studio {
  position: relative;
  margin: 8px 0 64px;
  padding: clamp(22px, 3vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(42, 245, 165, 0.24);
  border-radius: 32px;
  background:
    radial-gradient(circle at 8% 0, rgba(42, 245, 165, 0.1), transparent 32%),
    linear-gradient(150deg, rgba(8, 25, 18, 0.96), rgba(3, 12, 8, 0.96));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42), 0 0 80px rgba(42, 245, 165, 0.04) inset;
}

.pe-studio::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.pe-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.pe-header h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.8rem); letter-spacing: -0.055em; line-height: 1; }
.pe-header p { max-width: 720px; margin: 13px 0 0; color: var(--text-soft); font-size: 0.95rem; }
.pe-runtime { min-width: 260px; padding: 13px 15px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(42,245,165,0.035); }
.pe-runtime > span { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px rgba(42,245,165,0.7); }
.pe-runtime b { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pe-runtime small { color: var(--muted); font-family: monospace; font-size: 0.61rem; }
.pe-runtime.offline > span { background: var(--amber); box-shadow: 0 0 15px rgba(248,199,92,0.5); }

.pe-pipeline { margin: 27px 0 22px; padding: 12px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; border: 1px solid rgba(126,245,190,0.1); border-radius: 16px; background: rgba(0,0,0,0.16); }
.pe-pipeline > div { min-height: 58px; padding: 9px 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-content: center; border-radius: 11px; background: rgba(255,255,255,0.018); }
.pe-pipeline span { grid-row: 1 / 3; color: var(--green); font-family: monospace; font-size: 0.65rem; }
.pe-pipeline b { font-size: 0.77rem; }
.pe-pipeline small { color: var(--muted); font-size: 0.64rem; }
.pe-pipeline > i { color: rgba(126,245,190,0.45); font-style: normal; }

.pe-workbench { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 16px; }
.pe-input-card, .pe-result-card { min-width: 0; border: 1px solid rgba(126,245,190,0.13); border-radius: 20px; background: rgba(4, 15, 10, 0.78); }
.pe-input-card { padding: 19px; }
.pe-input-card > header, .pe-result-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.pe-input-card > header span, .pe-result-head span, .pe-compiled-output header span, .pe-trace-section header span, .pe-record-footer span, .pe-evidence-control span { color: var(--green-soft); font-size: 0.57rem; font-weight: 900; letter-spacing: 0.12em; }
.pe-input-card > header h3 { margin: 3px 0 0; font-size: 1.07rem; }
.pe-input-card > header > strong { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-family: monospace; font-size: 0.56rem; letter-spacing: 0.09em; }
.pe-draft-label { display: block; margin: 18px 0 7px; color: var(--muted); font-size: 0.66rem; font-weight: 750; }
.pe-input-card > textarea, .pe-advanced textarea { width: 100%; resize: vertical; outline: none; color: var(--text); border: 1px solid var(--line); background: rgba(0,0,0,0.25); }
.pe-input-card > textarea { min-height: 105px; padding: 14px; border-radius: 13px; line-height: 1.55; }
.pe-input-card > textarea:focus, .pe-advanced textarea:focus { border-color: rgba(42,245,165,0.48); box-shadow: 0 0 0 3px rgba(42,245,165,0.06); }

.pe-evidence-control { margin-top: 15px; padding: 14px; border: 1px solid rgba(126,245,190,0.11); border-radius: 14px; background: rgba(255,255,255,0.018); }
.pe-evidence-control > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pe-evidence-control b { font-size: 0.76rem; }
.pe-state-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.pe-state-buttons button { min-height: 38px; padding: 0 9px; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(0,0,0,0.2); font-size: 0.65rem; font-weight: 800; }
.pe-state-buttons button:hover { color: var(--text); border-color: var(--line-strong); }
.pe-state-buttons button.active { color: #03120b; border-color: var(--green); background: var(--green); }
.pe-state-buttons button.active.danger { color: #fff; border-color: var(--red); background: rgba(255,105,125,0.82); }

.pe-boundary-strip { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.pe-boundary-strip span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.59rem; }
.pe-boundary-strip span::before { content: "✓"; margin-right: 5px; color: var(--green); }
.pe-authority-control { margin: 10px 0 12px; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid rgba(42,245,165,0.18); border-radius: 12px; background: rgba(42,245,165,0.035); }
.pe-authority-control > span { display: grid; gap: 2px; }
.pe-authority-control b { color: var(--text); font-size: 0.68rem; }
.pe-authority-control small { color: var(--muted); font-size: 0.58rem; }
.pe-authority-control select { min-width: 165px; padding: 8px 28px 8px 10px; color: var(--green); border: 1px solid rgba(42,245,165,0.24); border-radius: 9px; outline: none; background: #06150f; font-size: 0.64rem; font-weight: 800; }
.pe-authority-control select:focus { box-shadow: 0 0 0 3px rgba(42,245,165,0.08); }
.pe-advanced { margin: 10px 0 14px; border: 1px solid rgba(126,245,190,0.1); border-radius: 12px; overflow: hidden; }
.pe-advanced summary { padding: 10px 12px; cursor: pointer; color: var(--muted); font-size: 0.64rem; font-weight: 750; }
.pe-advanced textarea { min-height: 280px; padding: 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; font-family: monospace; font-size: 0.6rem; line-height: 1.5; }
.pe-compile-button { width: 100%; min-height: 50px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; border: 0; border-radius: 13px; color: #02110a; background: linear-gradient(100deg, var(--green), var(--green-soft)); font-size: 0.75rem; font-weight: 900; box-shadow: 0 14px 35px rgba(42,245,165,0.12); }
.pe-compile-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pe-compile-button i { width: 17px; height: 17px; border: 2px solid rgba(2,17,10,0.25); border-right-color: #02110a; border-radius: 50%; }
.pe-compile-button.running i { animation: spin 0.65s linear infinite; }
.pe-principle { margin: 11px 3px 0; color: var(--muted); font-size: 0.58rem; line-height: 1.5; }

.pe-result-card { overflow: hidden; }
.pe-result-head { min-height: 62px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(42,245,165,0.025); }
.pe-result-head b { display: block; margin-top: 3px; font-size: 0.76rem; }
.pe-result-head > small { color: var(--muted); font-family: monospace; }
.pe-verdict { margin: 16px; padding: 16px; display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,0.018); }
.pe-verdict-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--green); font-family: monospace; font-weight: 900; }
.pe-verdict small { color: var(--muted); font-size: 0.56rem; letter-spacing: 0.1em; }
.pe-verdict strong { display: block; margin: 1px 0 2px; font-size: 1.35rem; letter-spacing: 0.03em; }
.pe-verdict p { margin: 0; color: var(--text-soft); font-size: 0.67rem; }
.pe-verdict em { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 0.55rem; font-style: normal; font-weight: 900; letter-spacing: 0.06em; }
.pe-verdict.allow { border-color: rgba(42,245,165,0.36); background: rgba(42,245,165,0.065); }
.pe-verdict.deny { border-color: rgba(255,105,125,0.37); background: rgba(255,105,125,0.06); }
.pe-verdict.deny .pe-verdict-mark, .pe-verdict.deny strong { color: var(--red); }
.pe-verdict.suspend, .pe-verdict.escalate { border-color: rgba(248,199,92,0.37); background: rgba(248,199,92,0.055); }
.pe-verdict.suspend .pe-verdict-mark, .pe-verdict.suspend strong, .pe-verdict.escalate .pe-verdict-mark, .pe-verdict.escalate strong { color: var(--amber); }

.pe-metrics { margin: 0 16px 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pe-metrics > div { padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,0.14); }
.pe-metrics span { display: block; color: var(--muted); font-size: 0.57rem; }
.pe-metrics b { display: block; margin-top: 3px; overflow: hidden; color: var(--text); font-family: monospace; font-size: 0.69rem; text-overflow: ellipsis; white-space: nowrap; }
.pe-compiled-output, .pe-trace-section { margin: 0 16px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,0.15); }
.pe-compiled-output header, .pe-trace-section > header { min-height: 37px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(126,245,190,0.08); }
.pe-compiled-output header b, .pe-trace-section header b { color: var(--muted); font-size: 0.57rem; }
.pe-compiled-output p { min-height: 62px; margin: 0; padding: 12px; color: var(--text-soft); font-size: 0.71rem; line-height: 1.55; }
.pe-trace { max-height: 230px; overflow: auto; padding: 8px; }
.pe-trace-empty { padding: 16px; color: var(--muted); text-align: center; font-size: 0.64rem; }
.pe-trace-row { padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; border-bottom: 1px solid rgba(126,245,190,0.07); }
.pe-trace-row:last-child { border-bottom: 0; }
.pe-trace-row > span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pe-trace-row.verified > span { background: var(--green); box-shadow: 0 0 8px rgba(42,245,165,0.45); }
.pe-trace-row.refuted > span, .pe-trace-row.contradicted > span { background: var(--red); }
.pe-trace-row.unresolved > span, .pe-trace-row.corroborated > span { background: var(--amber); }
.pe-trace-row b { display: block; overflow: hidden; font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
.pe-trace-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.56rem; }
.pe-trace-row em { color: var(--muted); font-size: 0.56rem; font-style: normal; font-weight: 850; }
.pe-record-footer { min-height: 59px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); background: rgba(42,245,165,0.022); }
.pe-record-footer b { display: block; max-width: 340px; margin-top: 2px; overflow: hidden; color: var(--text-soft); font-family: monospace; font-size: 0.61rem; text-overflow: ellipsis; white-space: nowrap; }
.pe-record-footer button { padding: 7px 9px; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; color: var(--green-soft); background: rgba(42,245,165,0.05); font-size: 0.58rem; font-weight: 800; }
.pe-record-footer button:disabled { cursor: default; opacity: 0.4; }

.product-console-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(8, 24, 17, 0.88), rgba(3, 12, 8, 0.9));
  box-shadow: 0 28px 100px rgba(0,0,0,0.38), 0 0 0 1px rgba(42,245,165,0.025) inset;
  overflow: hidden;
}

.product-console-shell::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.72;
}

.console-chrome {
  min-height: 50px;
  padding: 0 clamp(20px, 3vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(126,245,190,0.1);
  color: var(--muted);
  background: rgba(1, 8, 5, 0.62);
  font-family: monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}
.console-identity, .console-mode { display: flex; align-items: center; }
.console-identity { gap: 8px; }
.console-identity i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(42,245,165,0.08); }
.console-identity strong { color: var(--green-soft); }
.console-mode { gap: 9px; }
.console-mode i { width: 26px; height: 1px; background: linear-gradient(90deg, rgba(42,245,165,0.18), rgba(42,245,165,0.75)); }
.console-mode b { color: var(--green); }

.control-room,
.inspection-shell {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.control-room { padding: clamp(20px, 3vw, 38px); }

.runtime-journey {
  margin: 22px 0 16px;
  padding: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(126,245,190,0.12);
  border-radius: 17px;
  background: rgba(0,0,0,0.16);
}
.runtime-journey > i { height: 1px; background: linear-gradient(90deg, rgba(42,245,165,0.18), rgba(42,245,165,0.72)); }
.journey-step { min-width: 0; padding: 9px 11px; display: flex; align-items: center; gap: 10px; border-radius: 12px; }
.journey-step.active { background: rgba(42,245,165,0.045); }
.journey-step > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(42,245,165,0.26); border-radius: 9px; color: var(--green); font-family: monospace; font-size: 0.58rem; font-weight: 900; }
.journey-step b, .journey-step small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-step b { color: var(--text-soft); font-size: 0.68rem; }
.journey-step small { margin-top: 2px; color: var(--muted); font-size: 0.55rem; }

.section-head,
.inspection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.section-head h2,
.inspection-head h2,
.architecture-copy h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-head p,
.architecture-copy p {
  max-width: 670px;
  margin: 9px 0 0;
  color: var(--muted);
}

.api-health {
  min-width: 180px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(42,245,165,0.035);
}

.api-health.offline > span { background: var(--amber); box-shadow: 0 0 0 5px var(--amber-glow); }
.api-health b, .api-health small { display: block; }
.api-health b { font-size: 0.72rem; }
.api-health small { margin-top: 2px; color: var(--muted); font-size: 0.64rem; }

.use-case-tabs {
  margin: 28px 0 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.use-case {
  min-width: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(126,245,190,0.11);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(3, 12, 8, 0.62);
  cursor: pointer;
  text-align: left;
  transition: 0.18s ease;
}

.use-case:hover { color: var(--text-soft); border-color: var(--line-strong); transform: translateY(-1px); }
.use-case.active { color: var(--text); border-color: rgba(42,245,165,0.42); background: rgba(42,245,165,0.08); box-shadow: 0 0 0 1px rgba(42,245,165,0.04) inset; }
.use-case-icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,0.025); }
.use-case.active .use-case-icon { color: var(--green); background: rgba(42,245,165,0.1); }
.use-case svg { width: 19px; height: 19px; }
.use-case b, .use-case small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.use-case b { font-size: 0.78rem; }
.use-case small { margin-top: 2px; color: var(--muted); font-size: 0.62rem; }

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  align-items: stretch;
}

.panel {
  min-width: 0;
  border: 1px solid rgba(126,245,190,0.12);
  border-radius: var(--radius-lg);
  background: rgba(3, 12, 8, 0.72);
  box-shadow: 0 12px 50px rgba(0,0,0,0.18);
}

.input-console { padding: 22px; }
.panel-head, .evidence-head, .attack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.step-label {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-family: monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-head h3, .evidence-head h3, .attack-head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.output-kind,
.attack-count {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-soft);
  background: rgba(42,245,165,0.05);
  font-family: monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.output-editor { display: block; margin-top: 14px; }
.output-editor > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 0.69rem; font-weight: 750; }
.output-editor textarea,
.developer-editor textarea {
  width: 100%;
  resize: vertical;
  color: var(--text);
  border: 1px solid rgba(126,245,190,0.14);
  outline: none;
  background: #04100c;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.output-editor textarea {
  min-height: 112px;
  max-height: 240px;
  padding: 14px 15px;
  border-radius: 15px;
  line-height: 1.55;
}

.output-editor textarea:focus,
.developer-editor textarea:focus {
  border-color: rgba(42,245,165,0.48);
  box-shadow: 0 0 0 4px rgba(42,245,165,0.055);
}

.output-editor small { display: block; margin-top: 7px; color: #668278; font-size: 0.62rem; }
.evidence-head { margin-top: 20px; padding-top: 17px; border-top: 1px solid rgba(126,245,190,0.09); }

.text-button {
  padding: 6px 8px;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 750;
}
.text-button:hover { color: var(--green-soft); }

.source-grid {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.evidence-class-legend {
  margin-top: 10px;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  border: 1px solid rgba(126,245,190,0.08);
  border-radius: 11px;
  background: rgba(0,0,0,0.12);
}
.evidence-class-legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.54rem; }
.evidence-class-legend b { color: var(--text-soft); font-size: inherit; }
.evidence-class-legend i { width: 7px; height: 7px; border-radius: 50%; }
.evidence-class-legend .white-box { background: #dceae4; box-shadow: 0 0 10px rgba(220,234,228,0.22); }
.evidence-class-legend .grey-box { background: #82978e; }
.evidence-class-legend .black-box { border: 1px solid var(--red); background: #0b0e0c; }

.source-card {
  min-width: 0;
  min-height: 55px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(126,245,190,0.09);
  border-radius: 13px;
  background: rgba(255,255,255,0.014);
}

.source-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126,245,190,0.1);
  border-radius: 9px;
  color: var(--muted);
  background: rgba(0,0,0,0.15);
  font-family: monospace;
  font-size: 0.58rem;
  font-weight: 900;
}

.source-copy { min-width: 0; flex: 1; }
.source-copy b, .source-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-copy b { font-size: 0.68rem; }
.source-copy small { margin-top: 2px; color: var(--muted); font-size: 0.57rem; }

.source-controls { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; }
.evidence-class {
  width: 27px;
  height: 25px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid;
  border-radius: 8px;
  cursor: pointer;
  font-family: monospace;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
}
.evidence-class.class-white { color: #e5f1ec; border-color: rgba(229,241,236,0.28); background: rgba(229,241,236,0.07); }
.evidence-class.class-grey { color: #a5b8b0; border-color: rgba(165,184,176,0.28); background: rgba(165,184,176,0.07); }
.evidence-class.class-black { color: var(--red); border-color: rgba(255,105,125,0.28); background: rgba(0,0,0,0.35); }

.source-state {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.56rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.source-state.state-verified,
.source-state.state-clear { color: var(--green-soft); border-color: rgba(42,245,165,0.25); background: rgba(42,245,165,0.07); }
.source-state.state-missing,
.source-state.state-unavailable { color: var(--amber); border-color: rgba(248,199,92,0.25); background: rgba(248,199,92,0.07); }
.source-state.state-conflict { color: var(--red); border-color: rgba(255,105,125,0.28); background: rgba(255,105,125,0.08); }

.console-footer {
  margin-top: 17px;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(126,245,190,0.09);
}

.boundary-note { min-width: 0; display: flex; align-items: center; gap: 9px; }
.boundary-note svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--green); }
.boundary-note b, .boundary-note small { display: block; }
.boundary-note b { font-size: 0.65rem; }
.boundary-note small { max-width: 290px; margin-top: 2px; color: var(--muted); font-size: 0.57rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.run-button {
  min-width: 200px;
  min-height: 45px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  color: #02110a;
  background: linear-gradient(135deg, var(--green-soft), var(--green));
  box-shadow: 0 14px 36px rgba(42,245,165,0.12);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
}
.run-button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.run-button:disabled { cursor: wait; opacity: 0.8; transform: none; }
.run-button svg { width: 16px; height: 16px; }
.run-loader { display: none; width: 14px; height: 14px; border: 2px solid rgba(2,17,10,0.25); border-top-color: #02110a; border-radius: 50%; animation: spin 0.75s linear infinite; }
.run-button.loading .run-loader { display: block; }
.run-button.loading svg { display: none; }
.console-error { min-height: 0; margin-top: 0; color: var(--red); font-size: 0.65rem; }
.console-error:not(:empty) { min-height: 28px; margin-top: 10px; padding: 8px 10px; border: 1px solid rgba(255,105,125,0.2); border-radius: 10px; background: var(--red-glow); }

.result-console {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 0, rgba(42,245,165,0.075), transparent 30%),
    rgba(3,12,8,0.78);
}

.result-console::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: 0 0 0 1px transparent inset;
  transition: box-shadow 0.25s ease;
}
.result-console.state-allow::after { box-shadow: 0 0 0 1px rgba(42,245,165,0.14) inset, 0 0 55px rgba(42,245,165,0.035) inset; }
.result-console.state-deny::after { box-shadow: 0 0 0 1px rgba(255,105,125,0.16) inset, 0 0 55px rgba(255,105,125,0.035) inset; }
.result-console.state-suspend::after,
.result-console.state-escalate::after { box-shadow: 0 0 0 1px rgba(248,199,92,0.16) inset, 0 0 55px rgba(248,199,92,0.035) inset; }

.result-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.runtime-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.61rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.evaluation-time { color: var(--muted); font-family: monospace; font-size: 0.6rem; }

.verdict-block {
  position: relative;
  z-index: 1;
  min-height: 112px;
  margin-top: 14px;
  padding: 17px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(126,245,190,0.13);
  border-radius: 17px;
  background: rgba(255,255,255,0.018);
}

.verdict-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.verdict-symbol svg { width: 27px; height: 27px; }
.state-allow .verdict-symbol { color: var(--green); border-color: rgba(42,245,165,0.3); background: rgba(42,245,165,0.09); box-shadow: 0 0 32px rgba(42,245,165,0.08); }
.state-deny .verdict-symbol { color: var(--red); border-color: rgba(255,105,125,0.3); background: var(--red-glow); }
.state-suspend .verdict-symbol, .state-escalate .verdict-symbol { color: var(--amber); border-color: rgba(248,199,92,0.3); background: var(--amber-glow); }

.verdict-copy { min-width: 0; }
.verdict-copy > span { color: var(--muted); font-family: monospace; font-size: 0.58rem; letter-spacing: 0.08em; }
.verdict-copy h3 { margin: 1px 0; font-size: 1.8rem; line-height: 1; letter-spacing: -0.04em; }
.state-allow .verdict-copy h3 { color: var(--green); }
.state-deny .verdict-copy h3 { color: var(--red); }
.state-suspend .verdict-copy h3, .state-escalate .verdict-copy h3 { color: var(--amber); }
.verdict-copy p { max-width: 620px; margin: 6px 0 0; color: var(--text-soft); font-size: 0.69rem; line-height: 1.45; }

.warrant-state {
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(126,245,190,0.12);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(0,0,0,0.12);
  font-size: 0.59rem;
  font-weight: 800;
  white-space: nowrap;
}
.warrant-state > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-allow .warrant-state { color: var(--green-soft); border-color: rgba(42,245,165,0.22); background: rgba(42,245,165,0.06); }
.state-deny .warrant-state { color: var(--red); border-color: rgba(255,105,125,0.22); background: var(--red-glow); }
.state-suspend .warrant-state, .state-escalate .warrant-state { color: var(--amber); border-color: rgba(248,199,92,0.22); background: var(--amber-glow); }

.metric-row {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.metric { min-width: 0; padding: 10px; border: 1px solid rgba(126,245,190,0.08); border-radius: 12px; background: rgba(255,255,255,0.012); }
.metric > span, .metric > small { display: block; color: var(--muted); font-size: 0.55rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric > strong { display: block; margin: 4px 0 5px; font-size: 0.96rem; }
.meter { height: 3px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.055); }
.meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); box-shadow: 0 0 12px rgba(42,245,165,0.3); transition: width 0.65s cubic-bezier(.2,.8,.2,1); }

.challenge-summary {
  position: relative;
  z-index: 1;
  min-height: 60px;
  margin-top: 9px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(126,245,190,0.1);
  border-radius: 13px;
  background: rgba(42,245,165,0.025);
}

.challenge-orbit { position: relative; width: 38px; height: 38px; flex: 0 0 auto; }
.challenge-orbit i { position: absolute; inset: 4px; border: 1px solid rgba(42,245,165,0.18); border-radius: 50%; }
.challenge-orbit i:nth-child(2) { inset: 9px 1px; transform: rotate(60deg); }
.challenge-orbit i:nth-child(3) { inset: 9px 1px; transform: rotate(-60deg); }
.challenge-orbit span { position: absolute; left: 16px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.running .challenge-orbit { animation: orbit 1.6s linear infinite; }
.challenge-summary > div:last-child { min-width: 0; }
.challenge-summary span, .challenge-summary b, .challenge-summary small { display: block; }
.challenge-summary span { color: var(--muted); font-family: monospace; font-size: 0.52rem; letter-spacing: 0.06em; }
.challenge-summary b { margin-top: 2px; font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.challenge-summary small { margin-top: 1px; color: var(--muted); font-size: 0.58rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.attack-head { position: relative; z-index: 1; margin-top: 14px; }
.attack-feed {
  position: relative;
  z-index: 1;
  min-height: 150px;
  max-height: 232px;
  margin-top: 9px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(42,245,165,0.25) transparent;
}

.empty-trace { min-height: 150px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-trace-icon { width: 26px; height: 26px; margin-bottom: 8px; border: 1px dashed var(--line-strong); border-radius: 50%; }
.empty-trace b, .empty-trace small { display: block; }
.empty-trace b { color: var(--text-soft); font-size: 0.72rem; }
.empty-trace small { max-width: 320px; margin-top: 3px; font-size: 0.59rem; }

.attack-item {
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border-top: 1px solid rgba(126,245,190,0.07);
  animation: riseIn 0.32s ease both;
}
.attack-item:first-child { border-top: 0; }
.attack-status { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; font-size: 0.66rem; font-weight: 900; }
.attack-item.clear .attack-status { color: var(--green); background: rgba(42,245,165,0.08); }
.attack-item.found .attack-status { color: var(--red); background: var(--red-glow); }
.attack-item.unresolved .attack-status { color: var(--amber); background: var(--amber-glow); }
.attack-copy { min-width: 0; }
.attack-copy b { display: block; font-size: 0.65rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attack-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.55rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attack-type { padding: 4px 6px; border: 1px solid rgba(126,245,190,0.09); border-radius: 7px; color: var(--muted); font-family: monospace; font-size: 0.49rem; white-space: nowrap; }

.inspection-shell {
  margin-top: 0;
  padding: 0 clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px);
  border-top: 1px solid rgba(126,245,190,0.11);
  background: linear-gradient(180deg, rgba(42,245,165,0.035), rgba(0,0,0,0.1) 105px);
}
.inspection-toolbar { min-height: 76px; display: flex; align-items: center; gap: 14px; }
.inspection-context { min-width: 235px; margin-right: auto; display: flex; align-items: center; gap: 11px; }
.inspection-context em { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(42,245,165,0.3); border-radius: 11px; color: var(--green); background: rgba(42,245,165,0.07); font-family: monospace; font-size: 0.63rem; font-style: normal; font-weight: 900; }
.inspection-context span, .inspection-context b { display: block; }
.inspection-context span { color: var(--green); font-family: monospace; font-size: 0.54rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.inspection-context b { margin-top: 3px; color: var(--text-soft); font-size: 0.66rem; }
.inspection-actions { display: flex; gap: 8px; }
.inspection-tabs { margin-top: 0; padding: 5px; display: inline-flex; flex-wrap: wrap; gap: 3px; border: 1px solid var(--line); border-radius: 13px; background: rgba(0,0,0,0.13); }
.inspection-tabs button { padding: 8px 11px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-size: 0.68rem; font-weight: 800; }
.inspection-tabs button:hover { color: var(--text-soft); }
.inspection-tabs button.active { color: #02110a; background: var(--green); }
.inspection-tabs button span { margin-left: 5px; padding: 2px 5px; border-radius: 999px; background: rgba(0,0,0,0.14); font-size: 0.54rem; }

.inspection-panel { display: none; margin-top: 14px; }
.inspection-panel.active { display: block; animation: fadeIn 0.2s ease; }
.evidence-taxonomy {
  margin-bottom: 10px;
  padding: 11px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(105px, 0.28fr));
  gap: 8px;
  border: 1px solid rgba(126,245,190,0.1);
  border-radius: 16px;
  background: rgba(3,12,8,0.56);
}
.taxonomy-copy { padding: 6px 8px; align-self: center; }
.taxonomy-copy span, .taxonomy-copy b { display: block; }
.taxonomy-copy span { color: var(--green); font-family: monospace; font-size: 0.52rem; letter-spacing: 0.08em; }
.taxonomy-copy b { margin-top: 4px; font-size: 0.7rem; }
.taxonomy-count { padding: 9px 10px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; border: 1px solid rgba(126,245,190,0.08); border-radius: 11px; background: rgba(255,255,255,0.012); }
.taxonomy-count strong { grid-row: 1 / 3; font-size: 1.25rem; }
.taxonomy-count span, .taxonomy-count small { display: block; }
.taxonomy-count span { font-size: 0.59rem; font-weight: 800; }
.taxonomy-count small { color: var(--muted); font-size: 0.49rem; }
.taxonomy-count.white strong { color: #e5f1ec; }
.taxonomy-count.grey strong { color: #9bb0a7; }
.taxonomy-count.black strong { color: var(--red); }
.evidence-taxonomy.has-blocker { border-color: rgba(248,199,92,0.25); box-shadow: 0 0 32px rgba(248,199,92,0.035) inset; }
.evidence-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr); gap: 10px; }
.detail-card, .record-card { min-width: 0; border: 1px solid rgba(126,245,190,0.1); border-radius: 17px; background: rgba(3,12,8,0.56); }
.detail-card { padding: 16px; }
.detail-card.full { min-height: 160px; }
.detail-card > header, .record-card > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.detail-card > header span, .detail-card > header strong { font-size: 0.66rem; }
.detail-card > header span { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.detail-card > header strong { color: var(--green-soft); }
.empty-copy { margin: 28px 0; color: var(--muted); font-size: 0.68rem; text-align: center; }

.claim-list { margin-top: 10px; }
.claim-row { padding: 9px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; border-top: 1px solid rgba(126,245,190,0.07); }
.claim-row:first-child { border-top: 0; }
.claim-row b, .claim-row small { display: block; }
.claim-row b { font-size: 0.68rem; }
.claim-row small { margin-top: 2px; color: var(--muted); font-size: 0.56rem; }
.claim-score { color: var(--muted); font-family: monospace; font-size: 0.58rem; }
.status-pill { padding: 4px 7px; border-radius: 999px; font-size: 0.52rem; font-weight: 850; }
.status-pill.verified { color: var(--green-soft); background: rgba(42,245,165,0.08); }
.status-pill.veto { color: var(--red); background: var(--red-glow); }
.status-pill.missing, .status-pill.escalate { color: var(--amber); background: var(--amber-glow); }
.evidence-pill { padding: 4px 7px; border: 1px solid; border-radius: 999px; font-size: 0.48rem; font-weight: 800; white-space: nowrap; }
.evidence-pill.class-white { color: #dceae4; border-color: rgba(220,234,228,0.2); background: rgba(220,234,228,0.045); }
.evidence-pill.class-grey { color: #9eb1a9; border-color: rgba(158,177,169,0.2); background: rgba(158,177,169,0.045); }
.evidence-pill.class-black { color: var(--red); border-color: rgba(255,105,125,0.2); background: rgba(0,0,0,0.3); }

.decision-journey { min-height: 80px; margin-top: 15px; display: grid; grid-template-columns: 1fr 34px 1fr; gap: 8px; align-items: center; }
.decision-journey > div { padding: 12px; border: 1px solid rgba(126,245,190,0.09); border-radius: 12px; background: rgba(255,255,255,0.012); }
.decision-journey span, .decision-journey b { display: block; }
.decision-journey span { color: var(--muted); font-size: 0.55rem; }
.decision-journey b { margin-top: 4px; font-size: 0.85rem; }
.decision-journey i { position: relative; height: 1px; background: var(--line-strong); }
.decision-journey i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--green); border-right: 1px solid var(--green); transform: rotate(45deg); }
.detail-card > p { margin: 10px 0 0; color: var(--muted); font-size: 0.64rem; }

.repair-list { margin-top: 11px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.repair-item { padding: 12px; display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 10px; border: 1px solid rgba(248,199,92,0.15); border-radius: 13px; background: rgba(248,199,92,0.035); }
.repair-item > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--amber); background: var(--amber-glow); font-family: monospace; font-size: 0.56rem; }
.repair-item b, .repair-item small { display: block; }
.repair-item b { font-size: 0.66rem; }
.repair-item small { margin-top: 3px; color: var(--muted); font-size: 0.57rem; }

.steering-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr); gap: 10px; align-items: stretch; }
.steering-console { min-width: 0; padding: 16px; border: 1px solid rgba(42,245,165,0.18); border-radius: 17px; background: radial-gradient(circle at 100% 0, rgba(42,245,165,0.08), transparent 36%), rgba(3,12,8,0.66); }
.steering-console > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.steering-console header span, .steering-console header b { display: block; }
.steering-console header span { color: var(--green); font-family: monospace; font-size: 0.5rem; letter-spacing: 0.07em; }
.steering-console header b { margin-top: 2px; font-size: 0.82rem; }
.steering-console header strong { max-width: 50%; overflow: hidden; color: var(--green-soft); font-size: 0.56rem; text-overflow: ellipsis; white-space: nowrap; }
.steering-console.state-blocked { border-color: rgba(255,105,125,0.24); }
.steering-console.state-blocked header strong { color: var(--red); }
.steering-console.state-repairable { border-color: rgba(248,199,92,0.24); }
.steering-console.state-repairable header strong { color: var(--amber); }
.steering-loop { margin-top: 12px; display: flex; align-items: center; gap: 5px; overflow-x: auto; color: var(--muted); scrollbar-width: none; }
.steering-loop span { padding: 5px 7px; flex: 0 0 auto; border: 1px solid rgba(126,245,190,0.08); border-radius: 8px; font-size: 0.49rem; }
.steering-loop span.active { color: #02110a; border-color: var(--green); background: var(--green); font-weight: 900; }
.steering-loop i { color: var(--green); font-size: 0.55rem; font-style: normal; }
.steering-console > p { margin: 11px 0; color: var(--muted); font-size: 0.6rem; }
.steering-output { min-height: 90px; padding: 11px; border: 1px solid rgba(126,245,190,0.08); border-radius: 12px; background: rgba(0,0,0,0.16); }
.steering-output > span { color: var(--green-soft); font-family: monospace; font-size: 0.5rem; }
.steering-output p { margin: 6px 0 0; color: var(--text-soft); font-size: 0.61rem; }
.steering-output ul { margin: 7px 0 0; padding-left: 16px; color: var(--muted); font-size: 0.54rem; }
.steering-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.steering-actions button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.steering-console.loading { opacity: 0.75; }

.record-card { overflow: hidden; }
.record-card > header { padding: 14px 16px; border-bottom: 1px solid rgba(126,245,190,0.08); }
.record-card header span, .record-card header b { display: block; }
.record-card header span { color: var(--muted); font-size: 0.55rem; }
.record-card header b { margin-top: 2px; font-size: 0.69rem; }
.record-hash { max-width: 48%; overflow: hidden; color: var(--green-soft); font-family: monospace; font-size: 0.58rem; text-overflow: ellipsis; white-space: nowrap; }
.record-card pre { min-height: 280px; max-height: 560px; margin: 0; padding: 17px; overflow: auto; color: #a8c9bb; background: rgba(0,0,0,0.15); font-size: 0.63rem; line-height: 1.55; }

.integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.integration-card { min-width: 0; padding: 15px; display: grid; grid-template-columns: 40px 1fr; gap: 11px; border: 1px solid rgba(126,245,190,0.1); border-radius: 15px; background: rgba(3,12,8,0.56); }
.integration-card.featured { border-color: rgba(42,245,165,0.22); background: rgba(42,245,165,0.045); }
.integration-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--green); font-family: monospace; font-size: 0.58rem; font-weight: 900; }
.integration-card b, .integration-card p { display: block; }
.integration-card b { font-size: 0.7rem; }
.integration-card p { margin: 4px 0 0; color: var(--muted); font-size: 0.6rem; }
.integration-card > code { grid-column: 1 / -1; padding: 8px 9px; overflow: hidden; border-radius: 9px; color: var(--green-soft); background: rgba(0,0,0,0.17); font-size: 0.56rem; text-overflow: ellipsis; white-space: nowrap; }

.developer-mode { margin-top: 10px; border: 1px solid rgba(126,245,190,0.1); border-radius: 15px; background: rgba(3,12,8,0.56); }
.developer-mode summary { padding: 13px 15px; color: var(--muted); cursor: pointer; font-size: 0.66rem; }
.developer-mode summary span { margin-right: 7px; color: var(--green-soft); font-weight: 800; }
.developer-editor { padding: 0 13px 13px; }
.developer-editor textarea { min-height: 230px; padding: 13px; border-radius: 12px; font-size: 0.65rem; line-height: 1.5; }
.developer-editor .button { margin-top: 9px; }

.cyber-scenario-context {
  position: relative;
  overflow: hidden;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(42,245,165,0.19);
  border-radius: 20px;
  background: radial-gradient(circle at 78% 0, rgba(42,245,165,0.11), transparent 42%), rgba(2,10,7,0.72);
  animation: fadeIn 0.24s ease;
}
.cyber-scenario-context[hidden] { display: none; }
.cyber-scenario-context::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.16; background-image: linear-gradient(rgba(42,245,165,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(42,245,165,0.08) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent, black); }
.cyber-inline-head { position: relative; z-index: 1; margin-bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cyber-inline-head span, .cyber-inline-head b { display: block; }
.cyber-inline-head span { color: var(--green); font-family: monospace; font-size: 0.55rem; font-weight: 850; letter-spacing: 0.07em; }
.cyber-inline-head b { margin-top: 4px; color: var(--text); font-size: 0.84rem; }
.cyber-inline-head p { max-width: 610px; margin: 0; color: var(--muted); font-size: 0.61rem; line-height: 1.5; text-align: right; }
.firewall-diagram { position: relative; z-index: 1; min-width: 0; display: grid; grid-template-columns: minmax(135px, 0.7fr) minmax(130px, 0.72fr) minmax(170px, 0.9fr) minmax(150px, 0.85fr); gap: 12px; align-items: stretch; }
.firewall-agent, .firewall-gate, .firewall-outcomes > div, .firewall-sources > div { padding: 14px; border: 1px solid rgba(126,245,190,0.11); border-radius: 14px; background: rgba(2,10,7,0.8); }
.firewall-agent, .firewall-gate { display: flex; flex-direction: column; justify-content: center; }
.firewall-diagram span, .firewall-diagram b, .firewall-diagram small { display: block; }
.firewall-diagram span { color: var(--green); font-family: monospace; font-size: 0.51rem; letter-spacing: 0.07em; }
.firewall-diagram b { margin-top: 6px; font-size: 0.68rem; }
.firewall-diagram small { margin-top: 4px; color: var(--muted); font-size: 0.52rem; }
.firewall-sources, .firewall-outcomes { display: grid; gap: 7px; }
.firewall-sources > div { padding: 9px 10px; }
.firewall-sources > div::before { content: ""; position: absolute; }
.firewall-gate { position: relative; overflow: hidden; border-color: rgba(42,245,165,0.38); background: rgba(42,245,165,0.09); box-shadow: 0 0 40px rgba(42,245,165,0.08) inset, 0 0 34px rgba(42,245,165,0.04); }
.firewall-gate::after { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 28%; background: linear-gradient(90deg, transparent, rgba(124,252,197,0.13), transparent); animation: firewallScan 3.6s ease-in-out infinite; }
.firewall-gate b { color: var(--green-soft); font-size: 0.78rem; }
.firewall-outcomes .allow { border-color: rgba(42,245,165,0.2); }
.firewall-outcomes .blocked { border-color: rgba(255,105,125,0.18); }
.firewall-outcomes .blocked span { color: var(--red); }

.architecture-shell {
  margin: 0;
  padding: 22px clamp(20px, 3vw, 36px) 28px;
  border-top: 1px solid rgba(126,245,190,0.11);
  background: linear-gradient(180deg, rgba(0,0,0,0.07), rgba(42,245,165,0.025));
}
.architecture-copy { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.25fr) auto; gap: 24px; align-items: center; }
.architecture-heading .eyebrow { margin-bottom: 7px; }
.architecture-shell .architecture-copy h2 { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.65rem); line-height: 1.05; letter-spacing: -0.035em; }
.architecture-copy p { max-width: 680px; margin: 0; color: var(--muted); font-size: 0.68rem; line-height: 1.55; }
.text-link { display: inline-flex; gap: 8px; margin: 0; color: var(--green-soft); text-decoration: none; font-size: 0.68rem; font-weight: 800; white-space: nowrap; }
.architecture-flow { min-width: 0; margin-top: 15px; display: flex; align-items: center; gap: 9px; }
.architecture-flow > div { min-width: 0; flex: 1; padding: 14px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8,23,17,0.66); }
.architecture-flow > div:nth-of-type(2) { border-color: rgba(42,245,165,0.34); background: rgba(42,245,165,0.07); }
.architecture-flow span, .architecture-flow b, .architecture-flow small { display: block; }
.architecture-flow span { color: var(--green); font-family: monospace; font-size: 0.56rem; }
.architecture-flow b { margin-top: 7px; font-size: 0.7rem; }
.architecture-flow small { margin-top: 3px; color: var(--muted); font-size: 0.53rem; }
.architecture-flow > i { color: var(--green); font-style: normal; }

.footer { border-top: 1px solid var(--line); background: rgba(2,8,6,0.75); }
.footer-inner { width: min(var(--max), calc(100% - 48px)); min-height: 110px; margin: 0 auto; display: flex; align-items: center; gap: 26px; }
.footer-brand .brand-mark { transform: scale(0.85); }
.footer p { color: var(--muted); font-size: 0.68rem; }
.footer-inner > div:last-child { margin-left: auto; display: flex; gap: 17px; }
.footer-inner > div:last-child a { color: var(--muted); text-decoration: none; font-size: 0.67rem; font-weight: 750; }
.footer-inner > div:last-child a:hover { color: var(--green-soft); }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  max-width: min(360px, calc(100% - 44px));
  padding: 11px 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text-soft);
  background: rgba(7,23,16,0.96);
  box-shadow: var(--shadow);
  font-size: 0.68rem;
  transition: 0.2s ease;
}
.toast.visible { opacity: 1; transform: translateY(0); }

.compiler-studio {
  width: min(100% - 42px, var(--max));
  margin: 18px auto 30px;
  padding: clamp(22px, 3vw, 44px);
  border: 1px solid rgba(42, 245, 165, 0.24);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 0%, rgba(42, 245, 165, 0.10), transparent 28%),
    linear-gradient(145deg, rgba(5, 22, 15, 0.98), rgba(3, 13, 9, 0.99));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), var(--shadow);
  overflow: hidden;
}

.compiler-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
}

.compiler-header > div:first-child { max-width: 920px; }

.compiler-header h2 {
  margin: 13px 0 9px;
  max-width: 900px;
  font-size: clamp(2rem, 3.3vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.compiler-header p {
  margin: 0;
  max-width: 900px;
  color: var(--muted);
  font-size: 1rem;
}

.compiler-runtime {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(5, 27, 18, 0.9);
}

.compiler-runtime > i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(42, 245, 165, 0.08), 0 0 18px var(--green);
}

.compiler-runtime span { display: grid; gap: 2px; }
.compiler-runtime b { font-size: 0.76rem; }
.compiler-runtime small { color: var(--muted); font-size: 0.65rem; }
.compiler-runtime.offline > i { background: var(--amber); box-shadow: 0 0 0 6px rgba(248, 199, 92, 0.08); }

.compiler-boundary {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1fr;
  align-items: stretch;
  gap: 10px;
  margin: 28px 0 18px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(1, 10, 7, 0.72);
}

.compiler-boundary > div {
  min-height: 90px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(126, 245, 190, 0.10);
  border-radius: 13px;
}

.compiler-boundary > div.boundary-gate {
  border-color: rgba(42, 245, 165, 0.38);
  background: linear-gradient(135deg, rgba(13, 74, 49, 0.52), rgba(5, 30, 20, 0.62));
  box-shadow: 0 0 38px rgba(42, 245, 165, 0.06);
}

.compiler-boundary > div span,
.compiler-input header span,
.compiler-result header span,
.certificate-footer span {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.compiler-boundary > div b { font-size: 0.84rem; }
.compiler-boundary > div small { color: var(--muted); font-size: 0.68rem; }
.compiler-boundary > i { align-self: center; color: var(--green); font-style: normal; }

.compiler-workbench {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1.22fr);
  gap: 14px;
}

.compiler-input,
.compiler-result {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(2, 13, 9, 0.9);
  overflow: hidden;
}

.compiler-input { padding: 20px; }
.compiler-result { padding: 20px; box-shadow: inset 0 0 60px rgba(42, 245, 165, 0.025); }

.compiler-input > header,
.compiler-result > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.compiler-input h3,
.compiler-result h3 { margin: 3px 0 0; font-size: 1rem; }
.compiler-input header em,
.compiler-result header em {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  font-style: normal;
}

#compilerPolicy {
  width: 100%;
  min-height: 174px;
  resize: vertical;
  padding: 16px;
  border: 1px solid rgba(126, 245, 190, 0.18);
  border-radius: 14px;
  outline: none;
  color: var(--text-soft);
  background:
    linear-gradient(90deg, rgba(42, 245, 165, 0.025) 1px, transparent 1px),
    rgba(2, 10, 7, 0.94);
  background-size: 28px 100%;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.75;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#compilerPolicy:focus {
  border-color: rgba(42, 245, 165, 0.54);
  box-shadow: 0 0 0 3px rgba(42, 245, 165, 0.07);
}

.compiler-input-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0;
}

.compiler-input-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
}

.compiler-input-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.compiler-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.compiler-mode > div { display: grid; }
.compiler-mode span { color: var(--text-soft); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; }
.compiler-mode small { color: var(--muted); font-size: 0.62rem; }

#compilerMode {
  max-width: 220px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  color: var(--text-soft);
  background: #071a12;
  font-size: 0.7rem;
}

.compiler-run {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 13px;
  color: #02130c;
  background: linear-gradient(135deg, var(--green), #65ffc3);
  box-shadow: 0 12px 32px rgba(42, 245, 165, 0.13);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.compiler-run > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #02130c;
  box-shadow: 12px 0 #02130c, -12px 0 #02130c;
}

.compiler-run.running > i {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(2, 19, 12, 0.3);
  border-top-color: #02130c;
  background: transparent;
  box-shadow: none;
  animation: spin 0.8s linear infinite;
}

.compiler-run:disabled { opacity: 0.7; cursor: wait; }
.compiler-note { margin: 12px 0 0; color: var(--muted); font-size: 0.65rem; }
.compiler-note b { color: var(--amber); }

.certificate-verdict {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(42, 245, 165, 0.28);
  border-radius: 15px;
  background: rgba(9, 51, 34, 0.34);
}

.certificate-verdict > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(42, 245, 165, 0.42);
  border-radius: 12px;
  color: var(--green);
  font-size: 1.25rem;
}

.certificate-verdict > div { display: grid; }
.certificate-verdict b { font-size: 0.82rem; }
.certificate-verdict small { color: var(--muted); font-size: 0.65rem; }
.certificate-verdict > em {
  padding: 6px 8px;
  border: 1px solid rgba(248, 199, 92, 0.28);
  border-radius: 999px;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.57rem;
  font-style: normal;
  font-weight: 800;
}

.certificate-verdict.review-required {
  border-color: rgba(248, 199, 92, 0.34);
  background: rgba(68, 48, 9, 0.25);
}
.certificate-verdict.review-required > span { color: var(--amber); border-color: rgba(248, 199, 92, 0.38); }
.certificate-verdict.unresolved {
  border-color: rgba(255, 105, 125, 0.38);
  background: rgba(65, 13, 22, 0.25);
}
.certificate-verdict.unresolved > span { color: var(--red); border-color: rgba(255, 105, 125, 0.38); }

.compiler-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.compiler-metrics > div {
  display: grid;
  min-height: 77px;
  align-content: center;
  gap: 1px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 11, 8, 0.82);
}

.compiler-metrics span { color: var(--muted); font-size: 0.59rem; }
.compiler-metrics b { color: var(--green-soft); font-size: 1.02rem; }
.compiler-metrics small { color: var(--muted); font-size: 0.55rem; }

.compiled-rule-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.compiled-rule-list > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
}
.compiled-rule-list > div:last-child { border-bottom: 0; }
.compiled-rule-list > div > span { color: var(--green); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.58rem; }
.compiled-rule-list p { display: grid; margin: 0; min-width: 0; }
.compiled-rule-list p b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.65rem; }
.compiled-rule-list p small { color: var(--muted); font-size: 0.55rem; }
.compiled-rule-list em { color: var(--green); font-size: 0.55rem; font-style: normal; font-weight: 800; }
.compiled-rule-list > div.unresolved em,
.compiled-rule-list > div.unresolved > span { color: var(--red); }

.certificate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px dashed rgba(126, 245, 190, 0.2);
  border-radius: 12px;
}
.certificate-footer > div { display: grid; min-width: 0; }
.certificate-footer b { overflow: hidden; max-width: 380px; text-overflow: ellipsis; white-space: nowrap; color: var(--text-soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.6rem; }
.certificate-footer button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--green-soft);
  background: transparent;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes firewallScan { 0%, 15% { transform: translateX(0); opacity: 0; } 40%, 65% { opacity: 1; } 85%, 100% { transform: translateX(480%); opacity: 0; } }

@media (max-width: 1180px) {
  .hero-shell { grid-template-columns: minmax(0, 1fr) minmax(330px, 0.7fr); gap: 45px; }
  .compiler-workbench { grid-template-columns: 1fr; }
  .pe-workbench { grid-template-columns: 1fr; }
  .command-grid { grid-template-columns: 1fr; }
  .attack-feed { max-height: 280px; }
  .architecture-copy { grid-template-columns: 1fr auto; }
  .architecture-copy p { grid-column: 1 / -1; grid-row: 2; }
  .steering-layout { grid-template-columns: 1fr; }
  .cyber-inline-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cyber-inline-head p { text-align: left; }
  .inspection-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .inspection-context { width: 100%; }
}

@media (max-width: 900px) {
  .topbar-inner, main, .footer-inner { width: min(100% - 30px, var(--max)); }
  .runtime-status { display: none; }
  .topnav a:not(.nav-cta) { display: none; }
  .hero-shell { min-height: 0; padding: 54px 0 38px; grid-template-columns: 1fr; gap: 34px; }
  .hero-copy h1 { max-width: 760px; font-size: clamp(2.8rem, 9vw, 4.6rem); }
  .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-proof-head { grid-column: 1 / -1; }
  .compiler-header { align-items: flex-start; flex-direction: column; }
  .compiler-runtime { width: 100%; }
  .compiler-boundary { grid-template-columns: 1fr; }
  .compiler-boundary > i { transform: rotate(90deg); justify-self: center; }
  .pe-header { align-items: flex-start; flex-direction: column; }
  .pe-runtime { width: 100%; }
  .pe-pipeline { grid-template-columns: 1fr 1fr; }
  .pe-pipeline > i { display: none; }
  .proof-principle { grid-template-columns: 1fr; min-height: 110px; align-content: center; }
  .use-case-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .runtime-journey { grid-template-columns: 1fr; }
  .runtime-journey > i { width: 1px; height: 13px; margin-left: 23px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .api-health { align-self: stretch; }
  .evidence-layout { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr; }
  .evidence-taxonomy { grid-template-columns: repeat(3, 1fr); }
  .taxonomy-copy { grid-column: 1 / -1; }
  .firewall-diagram { grid-template-columns: 1fr 1fr; }
  .architecture-flow { display: grid; grid-template-columns: 1fr; }
  .architecture-flow > i { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 650px) {
  body { font-size: 14px; }
  .topbar-inner { min-height: 64px; }
  .brand-version { display: none; }
  .brand-patch { display: none; }
  .topnav .nav-cta { padding: 8px 10px; font-size: 0.68rem; }
  .hero-shell { padding-top: 42px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 11.5vw, 3.45rem); line-height: 1; }
  .hero-copy > p { font-size: 0.92rem; }
  .hero-actions .button { width: 100%; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof-head { grid-column: auto; }
  .hero-challenge .hero-proof-head { align-items: flex-start; gap: 10px; }
  .hero-ai-claim { padding-right: 16px; }
  .hero-ai-claim > em { position: static; display: inline-block; margin-top: 10px; }
  .counterevidence-row { grid-template-columns: 31px minmax(0, 1fr); }
  .counterevidence-row > em { grid-column: 2; }
  .hero-decision-shift { grid-template-columns: 1fr; }
  .hero-decision-shift > i { transform: rotate(90deg); justify-self: center; }
  .compiler-studio { width: min(100% - 20px, var(--max)); padding: 16px; border-radius: 23px; }
  .compiler-mode { align-items: stretch; flex-direction: column; }
  #compilerMode { max-width: none; width: 100%; }
  .certificate-verdict { grid-template-columns: 42px 1fr; }
  .certificate-verdict > em { grid-column: 1 / -1; text-align: center; }
  .compiler-metrics { grid-template-columns: repeat(2, 1fr); }
  .compiled-rule-list > div { grid-template-columns: 24px minmax(0, 1fr); }
  .compiled-rule-list > div > em { grid-column: 2; }
  .pe-studio { padding: 16px; border-radius: 23px; }
  .pe-pipeline { grid-template-columns: 1fr; }
  .pe-state-buttons { grid-template-columns: 1fr; }
  .pe-authority-control { align-items: stretch; flex-direction: column; }
  .pe-authority-control select { width: 100%; }
  .pe-verdict { grid-template-columns: 42px 1fr; }
  .pe-verdict em { grid-column: 1 / -1; text-align: center; }
  .pe-metrics { grid-template-columns: 1fr; }
  .proof-principle { min-height: 70px; grid-template-columns: 34px 1fr; }
  .product-console-shell { border-radius: 23px; }
  .console-chrome { min-height: 46px; }
  .console-mode { display: none; }
  .use-case-tabs { display: flex; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .use-case { min-width: 195px; }
  .source-grid { grid-template-columns: 1fr; }
  .console-footer { align-items: stretch; flex-direction: column; }
  .run-button { width: 100%; }
  .verdict-block { grid-template-columns: 47px 1fr; }
  .verdict-symbol { width: 43px; height: 43px; }
  .warrant-state { grid-column: 1 / -1; justify-content: center; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .metric-row .metric:last-child { grid-column: 1 / -1; }
  .evidence-taxonomy { grid-template-columns: 1fr; }
  .taxonomy-copy { grid-column: auto; }
  .claim-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .claim-score { display: none; }
  .steering-actions .button { width: 100%; }
  .cyber-scenario-context { padding: 13px; border-radius: 16px; }
  .architecture-copy { grid-template-columns: 1fr; gap: 11px; }
  .architecture-copy p { grid-column: auto; grid-row: auto; }
  .architecture-shell { padding-top: 18px; }
  .firewall-diagram { grid-template-columns: 1fr; }
  .inspection-actions { width: 100%; }
  .inspection-actions .button { flex: 1; }
  .inspection-tabs { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); }
  .repair-list { grid-template-columns: 1fr; }
  .record-card > header { align-items: flex-start; flex-direction: column; }
  .record-hash { max-width: 100%; }
  .footer-inner { padding: 24px 0; align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-inner > div:last-child { margin-left: 0; }
}

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


/* AXIOM v0.9 P1 — unified product runtime */
.hero-shell {
  order: 1;
}

.product-console-shell {
  order: 2;
  margin-top: 6px;
}

.product-console-shell .compiler-studio {
  order: initial;
  width: 100%;
  margin: 0;
  padding: clamp(26px, 3.5vw, 52px);
  border: 0;
  border-bottom: 1px solid rgba(42, 245, 165, 0.16);
  border-radius: 0;
  background:
    radial-gradient(circle at 88% 0%,
      rgba(42, 245, 165, 0.08),
      transparent 28%),
    rgba(2, 14, 9, 0.38);
  box-shadow: none;
}

.product-console-shell .compiler-header h2 {
  max-width: 820px;
  font-size: clamp(1.9rem, 3.2vw, 3.25rem);
}

.product-console-shell .compiler-header p {
  max-width: 920px;
}

.product-console-shell .control-room {
  border-top: 0;
}

.console-mode {
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .product-console-shell .compiler-studio {
    width: 100%;
    margin: 0;
    padding: 20px 16px;
    border-radius: 0;
  }
}
