:root {
  --bg: #041329;
  --bg-strong: #010e24;
  --panel: rgba(9, 24, 46, 0.9);
  --panel-strong: rgba(7, 20, 39, 0.94);
  --panel-soft: rgba(16, 32, 54, 0.88);
  --panel-muted: rgba(18, 33, 56, 0.7);
  --text: #d6e3ff;
  --text-strong: #f3f7ff;
  --muted: #aebed0;
  --line: rgba(133, 147, 153, 0.24);
  --cyan: #00d1ff;
  --brand-wordmark: #ffffff;
  --cyan-soft: rgba(0, 209, 255, 0.14);
  --cyan-glow: rgba(76, 214, 255, 0.18);
  --amber: #feb700;
  --amber-soft: rgba(254, 183, 0, 0.14);
  --danger: #ffb4ab;
  --danger-soft: rgba(255, 180, 171, 0.14);
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, 0.14);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --headline: "Manrope", "Noto Sans KR", sans-serif;
  --body: "Inter", "Noto Sans KR", sans-serif;
  --label: "Space Grotesk", "Noto Sans KR", sans-serif;
  --code:
    "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --demo-content-width: 1360px;
  --motion-fast: 180ms;
  --motion-medium: 320ms;
  --motion-slow: 560ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes surfacePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.58;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.82;
  }
}

@keyframes resultFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 214, 255, 0);
  }

  45% {
    box-shadow:
      0 0 0 1px rgba(76, 214, 255, 0.24),
      0 24px 48px rgba(0, 0, 0, 0.28);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(76, 214, 255, 0);
  }
}

.js-motion .motion-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  filter: saturate(0.9);
  transition:
    opacity var(--motion-medium) var(--motion-ease),
    transform var(--motion-medium) var(--motion-ease),
    filter var(--motion-fast) ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js-motion .motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 140;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f3f7ff;
  color: #041329;
  text-decoration: none;
  font-family: var(--headline);
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  transform: translateY(-180%);
  transition: transform var(--motion-fast) ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.3), 0 16px 32px rgba(0, 0, 0, 0.24);
}

.demo-body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  word-break: keep-all;
  overflow-wrap: break-word;
  background:
    radial-gradient(
      circle at top left,
      rgba(76, 214, 255, 0.16),
      transparent 22%
    ),
    radial-gradient(
      circle at 86% 10%,
      rgba(254, 183, 0, 0.14),
      transparent 18%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(76, 214, 255, 0.08),
      transparent 24%
    ),
    linear-gradient(160deg, #031024 0%, #041329 54%, #06172d 100%);
}

#main-content {
  scroll-margin-top: 16px;
}

.demo-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.demo-shell {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  position: sticky;
  top: 14px;
  z-index: 40;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(4, 19, 41, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text-strong);
  text-decoration: none;
}

.demo-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffdd9c, var(--amber));
  color: #223148;
  font-family: var(--headline);
  font-weight: 800;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.demo-brand-copy {
  min-width: 0;
}

.demo-brand strong,
.demo-brand small {
  display: block;
}

.demo-brand strong {
  font-family: var(--headline);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.demo-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-nav,
.demo-topbar-actions,
.demo-chip-row,
.demo-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-nav {
  justify-content: center;
  flex: 1 1 auto;
}

.demo-nav a,
.demo-text-link {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--headline);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.demo-nav a {
  padding: 10px 12px;
  border-radius: 999px;
}

:where(
  #analysis-inputs,
  #image-panel,
  #url-panel,
  #eml-panel,
  #action-firewall-panel,
  #benchmark-explorer,
  #live-mailbox-connector,
  #result-zone
) {
  scroll-margin-top: 112px;
}

.demo-nav a:hover,
.demo-text-link:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.demo-nav a[aria-current="page"] {
  color: var(--text-strong);
  background: rgba(0, 209, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 209, 255, 0.16);
}

.demo-button,
button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text-strong);
  background: transparent;
  text-decoration: none;
  font-family: var(--headline);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    opacity var(--motion-fast) ease,
    filter var(--motion-fast) ease;
}

.demo-button:hover,
button:hover {
  transform: translateY(-1px);
}

.demo-button:active,
button:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.demo-button-primary,
button {
  background: linear-gradient(135deg, var(--cyan), #4cd6ff);
  color: #05202d;
  box-shadow: 0 12px 30px rgba(0, 209, 255, 0.22);
}

.demo-button-primary:hover,
button:hover {
  box-shadow: 0 18px 36px rgba(0, 209, 255, 0.28);
}

.demo-button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.demo-button-secondary:hover {
  border-color: rgba(76, 214, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.demo-main {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.demo-hero,
.panel,
.result-hero,
.metric-card,
.detail-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 24px;
  padding: 28px;
  align-items: stretch;
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(76, 214, 255, 0.12),
      transparent 24%
    ),
    radial-gradient(circle at 88% 14%, rgba(254, 183, 0, 0.1), transparent 18%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.02)
    ),
    var(--panel);
}

.demo-hero-copy,
.demo-hero-panel {
  position: relative;
  z-index: 1;
}

.demo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #dff6ff;
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.demo-eyebrow-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.12);
}

.demo-kicker,
.panel-kicker,
.result-label,
.hero-panel-label {
  margin: 18px 0 12px;
  color: var(--cyan);
  font-family: var(--label);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.demo-hero h1,
.panel h2,
.result-hero h2,
.annotation-section h4,
.detail-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--headline);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.demo-hero h1 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  line-height: 0.98;
}

.demo-headline-line {
  display: block;
}

.demo-hero-emphasis {
  color: var(--cyan);
}

.demo-lead,
.panel-copy,
.result-hero p,
.detail-card p,
.policy-banner li,
.attachment-item,
.annotation-empty {
  color: var(--muted);
  line-height: 1.7;
}

.demo-lead {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.demo-chip-row {
  margin-top: 18px;
}

.demo-chip-row span,
.severity-chip,
.signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.demo-chip-row span {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  min-height: 36px;
  padding-inline: 12px;
  font-size: 0.76rem;
}

.demo-hero-actions {
  margin-top: 20px;
}

.demo-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.demo-hero-links a {
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--headline);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition:
    color var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

.demo-hero-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  transform: translateX(2px);
}

.demo-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: 22px;
}

.demo-proof-card {
  padding: 16px 18px;
  border: 1px solid rgba(133, 147, 153, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.015)
    ),
    rgba(10, 25, 48, 0.72);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}

.demo-proof-card:hover,
.demo-proof-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(76, 214, 255, 0.24);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.22);
}

.demo-proof-label {
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.demo-proof-card strong {
  display: block;
  margin-top: 10px;
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.demo-proof-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.demo-hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.024),
      rgba(255, 255, 255, 0.014)
    ),
    var(--panel-strong);
  padding: 20px;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(14px);
  transition:
    transform var(--motion-medium) var(--motion-ease),
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}

.demo-hero-panel:hover,
.demo-hero-panel:focus-within {
  transform: translateY(-4px);
  border-color: rgba(164, 230, 255, 0.12);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.032);
}

.hero-panel-header,
.hero-panel-stat {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.hero-panel-header {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.hero-panel-badge {
  color: var(--muted);
  font-family: var(--code);
  font-size: 0.78rem;
}

.hero-panel-title {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-panel-stat {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.hero-panel-stat strong {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.98rem;
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hero-panel-card {
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.022),
      rgba(255, 255, 255, 0.014)
    ),
    rgba(255, 255, 255, 0.014);
  border: 1px solid rgba(255, 255, 255, 0.038);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.016);
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}

.hero-panel-card:hover,
.hero-panel-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(164, 230, 255, 0.1);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.024),
      rgba(255, 255, 255, 0.016)
    ),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.hero-panel-card span {
  display: block;
  color: var(--cyan);
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text-strong);
  font-family: var(--headline);
  letter-spacing: -0.02em;
}

.hero-panel-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.hero-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel-footer a {
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--headline);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.hero-panel-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.demo-section-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.demo-section-status span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-launcher {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(560px, 1.5fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px 0 0;
}

.program-launcher-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.program-launcher-copy .demo-kicker {
  margin: 0;
  color: #ffcf5c;
}

.program-launcher-copy h2 {
  margin: 0;
  max-width: 11ch;
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.04;
}

.program-launcher-copy p {
  margin: 0;
  max-width: 500px;
  color: #b8c6d8;
  line-height: 1.55;
}

.program-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.program-mode-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "index copy"
    "icon copy";
  gap: 10px 12px;
  min-width: 0;
  min-height: 138px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(7, 18, 35, 0.74);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}

.program-mode-card:hover,
.program-mode-card:focus-visible,
.program-mode-card.is-active {
  border-color: rgba(76, 214, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(76, 214, 255, 0.07), rgba(255, 255, 255, 0.014)),
    rgba(10, 30, 54, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  outline: 0;
}

.program-card-index {
  grid-area: index;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9f6ff;
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 800;
}

.program-mode-icon {
  grid-area: icon;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(76, 214, 255, 0.12);
  color: var(--cyan);
  font-size: 1.16rem;
}

.program-mode-card[data-program-mode="eml"] .program-mode-icon {
  background: rgba(255, 207, 92, 0.12);
  color: #ffcf5c;
}

.program-mode-card[data-program-mode="image"] .program-mode-icon {
  background: rgba(129, 140, 248, 0.13);
  color: #a5b4fc;
}

.program-mode-card[data-program-mode="action"] .program-mode-icon {
  background: rgba(103, 232, 166, 0.12);
  color: #67e8a6;
}

.program-mode-copy {
  grid-area: copy;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.program-mode-copy strong {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.28;
}

.program-mode-copy span {
  color: #aebcd0;
  font-size: 0.8rem;
  line-height: 1.42;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.program-mode-copy .program-mode-result {
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8eef8;
  font-weight: 800;
}

.program-status-board {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.program-status-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.program-status-rail span {
  display: inline-flex;
  min-width: 0;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.046);
  color: #d5e7f8;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.program-status-board p {
  margin: 0;
  color: #b7c7d9;
  font-size: 0.84rem;
  line-height: 1.5;
}

.program-guardrail-strip {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.program-guardrail-card {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012)),
    rgba(11, 25, 46, 0.78);
}

.program-guardrail-label {
  display: block;
  color: #ffcf5c;
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.program-guardrail-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.24;
}

.program-guardrail-card p {
  margin: 7px 0 0;
  color: #aebcd0;
  font-size: 0.82rem;
  line-height: 1.52;
}

.share-intake-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 209, 255, 0.08), rgba(255, 255, 255, 0.012)),
    rgba(8, 22, 42, 0.82);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.support-module-stack .share-intake-panel {
  box-shadow: none;
}

.share-intake-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
}

.share-intake-copy .demo-kicker {
  margin: 0;
  color: #67e8a6;
}

.share-intake-copy h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.share-intake-copy p,
.share-route-card p,
.share-intake-footer p {
  margin: 0;
  color: #b8c6d8;
  line-height: 1.55;
}

.share-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.share-route-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012)),
    rgba(7, 18, 35, 0.72);
}

.share-route-card .material-symbols-outlined {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(103, 232, 166, 0.12);
  color: #67e8a6;
  font-size: 1.18rem;
}

.share-route-card strong {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.24;
}

.share-route-card p,
.share-intake-footer p {
  font-size: 0.84rem;
}

.share-intake-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(103, 232, 166, 0.12);
  border-radius: 12px;
  background: rgba(103, 232, 166, 0.055);
}

.share-intake-footer p {
  min-width: 0;
}

.share-intake-panel.has-shared-content {
  border-color: rgba(103, 232, 166, 0.32);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(103, 232, 166, 0.08);
}

.demo-workspace {
  display: grid;
  grid-template-columns: minmax(430px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.demo-band,
.demo-section-head {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 20px;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.demo-band {
  padding: 54px 32px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018),
      rgba(255, 255, 255, 0.012)
    ),
    rgba(10, 25, 48, 0.84);
  text-align: center;
}

.demo-band .demo-kicker {
  margin: 0;
  color: var(--cyan);
}

.demo-band h2,
.demo-section-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--headline);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.demo-band h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.demo-band p:last-child {
  max-width: 900px;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.75;
}

.demo-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  background:
    radial-gradient(
      circle at top right,
      rgba(76, 214, 255, 0.12),
      transparent 18%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.012)
    ),
    rgba(9, 24, 46, 0.86);
}

.demo-section-copy {
  max-width: 760px;
}

.demo-section-copy .demo-kicker {
  margin-top: 0;
}

.demo-section-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.02;
}

.demo-section-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.demo-section-points span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.control-panel,
.result-column,
.metric-grid,
.detail-grid,
.stack-form,
.annotation-grid {
  display: grid;
  gap: 16px;
}

.control-panel,
.result-column {
  align-content: start;
  gap: 12px;
}

.panel,
.result-hero,
.metric-card,
.detail-card {
  padding: 18px;
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}

.panel {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.01)
    ),
    var(--panel-soft);
}

.console-panel {
  display: grid;
  gap: 0;
}

.console-input-stack {
  display: grid;
  gap: 14px;
}

.workbench-priority-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.workbench-priority-strip span {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  border-radius: 8px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  background: rgba(0, 209, 255, 0.055);
  color: var(--text);
  padding: 0 10px;
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.workbench-step-callout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.workbench-step-callout span {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(0, 209, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 209, 255, 0.055);
  color: #d8f5ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.console-input-block {
  display: grid;
  gap: 12px;
}

.console-input-head {
  display: grid;
  gap: 6px;
}

.console-input-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 209, 255, 0.1);
  color: var(--cyan);
  font-family: var(--label);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-input-head strong {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.console-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.02)
  );
}

.console-policy-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.console-policy-inline span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-policy-details {
  margin-top: 14px;
}

.console-policy-details > summary,
.raw-summary,
.result-detail-disclosure > summary {
  cursor: pointer;
  list-style: none;
  color: var(--cyan);
  font-family: var(--headline);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.console-policy-details > summary::-webkit-details-marker,
.raw-summary::-webkit-details-marker,
.result-detail-disclosure > summary::-webkit-details-marker {
  display: none;
}

.console-policy-details[open] > summary,
.raw-panel[open] > .raw-summary,
.result-detail-disclosure[open] > summary {
  margin-bottom: 12px;
}

.result-detail-disclosure {
  display: block;
  min-width: 0;
}

.result-detail-disclosure > summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(0, 209, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 209, 255, 0.07);
  color: var(--text-strong);
}

.result-detail-disclosure > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--cyan);
  font-family: var(--code);
}

.result-detail-disclosure[open] > summary::after {
  content: "-";
}

.result-detail-disclosure > .detail-grid {
  margin-bottom: 16px;
}

.result-export-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.result-export-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.result-export-copy span {
  color: var(--cyan);
  font-family: var(--label);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-export-copy strong {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.result-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.result-export-button {
  flex: 0 1 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(76, 214, 255, 0.2);
  border-radius: 8px;
  background: rgba(76, 214, 255, 0.08);
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}

.result-export-button:hover,
.result-export-button:focus-visible {
  border-color: rgba(76, 214, 255, 0.42);
  background: rgba(76, 214, 255, 0.13);
  transform: translateY(-1px);
  outline: 0;
}

.result-export-panel p {
  grid-column: 1 / -1;
  margin: 0;
  color: #aebcd0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.evidence-report-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(118, 240, 197, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(118, 240, 197, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(7, 20, 39, 0.52);
}

.evidence-report-preview.is-empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.evidence-report-preview-head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.evidence-report-preview-head span {
  width: fit-content;
  border-radius: 8px;
  background: rgba(118, 240, 197, 0.12);
  color: var(--success);
  padding: 4px 8px;
  font-family: var(--label);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
}

.evidence-report-preview-head strong {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.evidence-report-verdict {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.evidence-report-verdict div {
  min-width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px 10px;
}

.evidence-report-verdict dt,
.evidence-report-verdict dd {
  margin: 0;
}

.evidence-report-verdict dt,
.evidence-report-mini-list strong {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
}

.evidence-report-verdict dd {
  margin-top: 4px;
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.evidence-report-mini-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.evidence-report-response-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.evidence-report-mini-list ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.evidence-report-mini-list li {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.panel-head {
  margin-bottom: 12px;
}

.panel-copy {
  margin: 0 0 14px;
}

.field-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.form-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.button-secondary-inline {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-strong);
  box-shadow: none;
}

.button-secondary-inline:hover {
  border-color: rgba(254, 183, 0, 0.3);
  background: rgba(254, 183, 0, 0.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.policy-banner {
  margin-bottom: 0;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(254, 183, 0, 0.16);
  background: rgba(254, 183, 0, 0.08);
}

.policy-banner h3 {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-family: var(--headline);
  letter-spacing: -0.02em;
}

.policy-banner ul,
.detail-card ul {
  margin: 0;
  padding-left: 18px;
}

.policy-banner li + li,
.detail-card li + li {
  margin-top: 8px;
}

label {
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 700;
}

input[type="url"],
input[type="text"],
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
  resize: vertical;
}

textarea {
  min-height: 132px;
  line-height: 1.55;
}

select {
  min-height: 52px;
  color-scheme: dark;
}

input[type="url"]::placeholder,
input[type="text"]::placeholder,
textarea::placeholder {
  color: rgba(214, 227, 255, 0.48);
}

input[type="url"]:focus-visible,
input[type="text"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: rgba(76, 214, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.action-firewall-panel {
  min-width: 0;
  scroll-margin-top: 112px;
  padding: 16px;
  border: 1px solid rgba(0, 209, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(0, 209, 255, 0.06), rgba(0, 209, 255, 0.014)),
    rgba(8, 25, 45, 0.74);
}

.action-critical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.action-firewall-panel textarea {
  min-height: 112px;
}

.action-advanced-details,
.secondary-analysis-details {
  min-width: 0;
}

.action-advanced-details > summary,
.secondary-analysis-details > summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-strong);
  padding: 12px 14px;
  font-family: var(--headline);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.action-advanced-details > summary::-webkit-details-marker,
.secondary-analysis-details > summary::-webkit-details-marker {
  display: none;
}

.action-advanced-details > summary::after,
.secondary-analysis-details > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--cyan);
  font-family: var(--code);
}

.action-advanced-details[open] > summary::after,
.secondary-analysis-details[open] > summary::after {
  content: "-";
}

.action-advanced-details[open] > summary,
.secondary-analysis-details[open] > summary {
  margin-bottom: 12px;
  border-color: rgba(0, 209, 255, 0.22);
  background: rgba(0, 209, 255, 0.08);
}

.secondary-analysis-details > summary strong {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 0.78rem;
}

.support-tools-drawer > summary {
  border-color: rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.026);
  color: #c8d6e6;
}

.support-tools-drawer > summary strong {
  color: #67e8a6;
}

.support-tools-drawer[open] > summary {
  border-color: rgba(103, 232, 166, 0.18);
  background: rgba(103, 232, 166, 0.055);
}

.secondary-module-stack {
  display: grid;
  gap: 14px;
}

.support-module-stack {
  gap: 12px;
}

.secondary-module-stack > .console-input-block {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.action-sample-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 10px;
}

.action-sample-button {
  display: grid;
  gap: 4px;
  min-height: 82px;
  align-content: center;
  justify-items: start;
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  box-shadow: none;
  text-align: left;
  overflow-wrap: break-word;
}

.action-sample-button strong {
  color: var(--text-strong);
  font-size: 0.84rem;
  line-height: 1.2;
}

.action-sample-button span {
  color: #aebcd0;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}

.action-sample-button.is-active {
  border-color: rgba(0, 209, 255, 0.38);
  background: rgba(0, 209, 255, 0.12);
  color: var(--cyan);
}

.action-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.action-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.action-firewall-card {
  min-width: 0;
}

.action-confirmation-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.45;
}

.action-confirmation-toggle input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--cyan);
}

.action-context-preview {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 209, 255, 0.14);
  background: rgba(0, 209, 255, 0.07);
  color: var(--text);
  font-family: var(--code);
  font-size: 0.76rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.action-context-card,
.action-telemetry-card,
.action-trace-summary-card {
  grid-column: span 1;
}

.action-primary-rule-card {
  grid-column: 1 / -1;
  border-color: rgba(251, 146, 60, 0.24);
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(0, 209, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
}

.action-primary-rule-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.action-primary-rule-evidence,
.action-primary-rule-control {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.action-primary-rule-evidence {
  border: 1px solid rgba(0, 209, 255, 0.12);
  background: rgba(0, 209, 255, 0.06);
  color: var(--text-strong);
  font-family: var(--code);
  font-size: 0.82rem;
}

.action-primary-rule-control {
  border-left: 3px solid rgba(251, 146, 60, 0.7);
  background: rgba(251, 146, 60, 0.08);
  color: var(--text);
  line-height: 1.55;
}

.action-context-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.action-context-list div {
  display: grid;
  grid-template-columns: minmax(94px, 0.74fr) minmax(0, 1.26fr);
  gap: 10px;
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.action-context-list dt,
.action-context-list dd {
  margin: 0;
  min-width: 0;
}

.action-context-list dt {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
}

.action-context-list dd {
  color: var(--text-strong);
  font-family: var(--code);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.action-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.action-telemetry-grid span,
.action-trace-summary-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
}

.action-telemetry-grid strong,
.action-trace-summary-grid strong {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 1.2rem;
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.action-controls-card,
.action-rule-trace-card {
  grid-column: 1 / -1;
}

.action-trace-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.action-rule-controls {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.action-rule-controls strong {
  display: block;
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.94rem;
}

.action-firewall-payload {
  grid-column: 1 / -1;
}

.action-firewall-payload pre {
  margin: 14px 0 0;
  max-height: 260px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 15, 31, 0.9);
  color: var(--text);
  padding: 14px;
  font-family: var(--code);
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.file-upload-field {
  position: relative;
  display: grid;
  gap: 10px;
}

.file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-upload-dropzone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 92px;
  gap: 12px;
  border: 1px dashed rgba(0, 209, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 209, 255, 0.055), rgba(0, 209, 255, 0)),
    rgba(13, 28, 50, 0.86);
  padding: 16px;
  cursor: pointer;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

.file-upload-dropzone:hover,
.file-upload-field.is-dragover .file-upload-dropzone {
  border-color: rgba(0, 209, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(0, 209, 255, 0.09), rgba(0, 209, 255, 0.018)),
    rgba(13, 28, 50, 0.92);
  box-shadow: 0 16px 34px rgba(0, 10, 24, 0.26);
}

.file-upload-input:focus-visible + .file-upload-dropzone {
  outline: 2px solid rgba(76, 214, 255, 0.38);
  outline-offset: 3px;
}

.file-upload-field.has-file .file-upload-dropzone {
  border-style: solid;
}

.file-upload-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 209, 255, 0.12);
  color: var(--cyan);
  font-size: 1.45rem;
}

.file-upload-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.file-upload-title {
  color: var(--text-strong);
  font-size: 0.98rem;
  font-weight: 800;
}

.file-upload-subtitle {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.file-upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 8px;
  background: var(--cyan);
  color: #031223;
  padding: 0 14px;
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.file-upload-status {
  display: flex;
  min-height: 30px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.file-upload-empty {
  color: var(--muted);
  font-size: 0.86rem;
}

.file-upload-selected {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(0, 209, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 209, 255, 0.08);
  color: var(--text);
  padding: 6px 10px;
  font-size: 0.86rem;
}

.file-upload-selected .material-symbols-outlined {
  color: var(--cyan);
  font-size: 1rem;
}

.file-upload-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-size {
  color: var(--muted);
  white-space: nowrap;
}

.image-decode-status {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(165, 180, 252, 0.18);
  border-radius: 8px;
  background: rgba(129, 140, 248, 0.07);
  color: #dbeafe;
}

.image-decode-status[data-tone="success"] {
  border-color: rgba(103, 232, 166, 0.22);
  background: rgba(103, 232, 166, 0.08);
  color: #d1fae5;
}

.image-decode-status[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
}

.mailbox-preview {
  padding: 14px;
  border: 1px solid rgba(0, 209, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 209, 255, 0.045);
}

.mailbox-guardrail-row,
.mailbox-sample-list {
  display: grid;
  gap: 8px;
}

.mailbox-guardrail-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mailbox-guardrail-row span {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 8px 10px;
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.mailbox-sample-list {
  margin-top: 2px;
}

.mailbox-sample-card {
  display: grid;
  width: 100%;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(7, 20, 39, 0.72);
  color: var(--text);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

.mailbox-sample-card:hover,
.mailbox-sample-card:focus-visible,
.mailbox-sample-card.is-active {
  border-color: rgba(0, 209, 255, 0.4);
  background: rgba(0, 209, 255, 0.08);
}

.mailbox-sample-card:focus-visible {
  outline: 2px solid rgba(76, 214, 255, 0.38);
  outline-offset: 3px;
}

.mailbox-sample-card strong,
.mailbox-sender,
.mailbox-meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mailbox-sample-card strong {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
}

.mailbox-sender,
.mailbox-meta {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.redaction-preview {
  padding: 14px;
  border: 1px solid rgba(254, 183, 0, 0.16);
  border-radius: 8px;
  background: rgba(254, 183, 0, 0.055);
}

.redaction-preview-output {
  display: grid;
  min-height: 88px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(7, 20, 39, 0.72);
  padding: 12px;
}

.redaction-preview-summary {
  display: grid;
  gap: 3px;
}

.redaction-preview-summary strong {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.94rem;
  font-weight: 800;
}

.redaction-preview-summary span,
.redaction-preview-empty,
.redaction-preview-error {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.redaction-preview-error {
  color: var(--danger);
}

.redaction-finding-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.redaction-finding-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(254, 183, 0, 0.12);
  color: #ffdd9c;
  padding: 0 10px;
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.redaction-preview-output pre {
  max-height: 220px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: var(--code);
  font-size: 0.82rem;
  line-height: 1.55;
}

.benchmark-explorer,
.connector-skeleton {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.benchmark-explorer {
  scroll-margin-top: 92px;
}

.benchmark-summary-row,
.benchmark-insight-metrics,
.benchmark-tool-row,
.benchmark-filter-row,
.benchmark-score-row,
.benchmark-flag-row,
.connector-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.benchmark-tool-row {
  align-items: end;
  justify-content: space-between;
}

.benchmark-search-field {
  display: grid;
  flex: 1 1 220px;
  gap: 6px;
  min-width: 0;
}

.benchmark-search-field span {
  color: var(--text-strong);
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 800;
}

.benchmark-search-field input {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 20, 39, 0.76);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.benchmark-search-field input:focus-visible {
  outline: 2px solid rgba(0, 209, 255, 0.42);
  outline-offset: 2px;
}

.benchmark-visible-status {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 0 12px;
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 800;
}

.benchmark-summary-row span,
.benchmark-filter-button,
.benchmark-score-row span,
.benchmark-flag-row span,
.connector-status-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  padding: 0 10px;
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.benchmark-summary-row strong,
.benchmark-insight-metrics strong,
.benchmark-score-row strong {
  color: var(--text-strong);
  margin-right: 4px;
}

.benchmark-insight-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(118, 240, 197, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(118, 240, 197, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(7, 20, 39, 0.64);
}

.benchmark-insight-head {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.benchmark-insight-head span {
  width: fit-content;
  border-radius: 8px;
  background: rgba(118, 240, 197, 0.12);
  color: var(--success);
  padding: 4px 8px;
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
}

.benchmark-insight-head strong {
  color: var(--text-strong);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.25;
  text-wrap: balance;
}

.benchmark-insight-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.benchmark-insight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.benchmark-insight-metrics div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.benchmark-insight-metrics dt,
.benchmark-insight-metrics dd {
  margin: 0;
}

.benchmark-insight-metrics dt {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.benchmark-insight-metrics dd {
  margin-top: 6px;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 800;
}

.benchmark-insight-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.benchmark-insight-columns section {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.benchmark-insight-columns h4 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.benchmark-insight-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.benchmark-insight-chip-row span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  padding: 6px 8px;
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.benchmark-insight-chip-row strong {
  color: var(--text-strong);
  margin-right: 5px;
}

.benchmark-filter-button {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.benchmark-filter-button:hover,
.benchmark-filter-button:focus-visible,
.benchmark-filter-button.is-active {
  background: rgba(0, 209, 255, 0.12);
  border-color: rgba(0, 209, 255, 0.34);
  color: var(--text-strong);
}

.benchmark-load-more {
  width: 100%;
  min-height: 42px;
  border-color: rgba(0, 209, 255, 0.22);
  background: rgba(0, 209, 255, 0.08);
  color: var(--text-strong);
  box-shadow: none;
}

.benchmark-load-more:hover,
.benchmark-load-more:focus-visible {
  background: rgba(0, 209, 255, 0.14);
  border-color: rgba(0, 209, 255, 0.38);
}

.benchmark-load-more[hidden] {
  display: none;
}

.benchmark-explorer-grid,
.connector-status-grid {
  display: grid;
  gap: 10px;
}

.benchmark-case-card,
.connector-status-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(7, 20, 39, 0.72);
  padding: 12px;
}

.benchmark-case-top,
.connector-status-top {
  display: grid;
  gap: 4px;
}

.benchmark-case-top span,
.connector-status-top span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
  padding: 4px 8px;
  font-family: var(--label);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
}

.benchmark-case-top strong,
.connector-status-top strong {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.connector-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

code {
  font-family: var(--code);
  background: rgba(0, 209, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mail-meta span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.result-hero {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  scroll-margin-top: 24px;
}

.result-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.result-hero-heading {
  min-width: 0;
}

.result-score-box {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.result-score-value {
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.result-score-value span {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.result-score-caption {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-evidence-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 180, 171, 0.08);
  border-left: 3px solid rgba(255, 90, 95, 0.72);
}

.result-evidence-box strong {
  display: block;
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.result-evidence-box p {
  margin-top: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.panel:hover,
.panel:focus-within,
.metric-card:hover,
.detail-card:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 214, 255, 0.18);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

.panel.is-busy,
.result-hero.is-updated,
.metric-card.is-updated,
.detail-card.is-updated {
  border-color: rgba(76, 214, 255, 0.24);
  animation: resultFlash 760ms var(--motion-ease);
}

.result-next {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.16);
  color: var(--text-strong);
}

.severity-chip {
  width: fit-content;
  color: var(--text-strong);
}

.severity-low {
  background: var(--success-soft);
  color: var(--success);
}

.severity-medium {
  background: var(--amber-soft);
  color: var(--amber);
}

.severity-high,
.severity-critical {
  background: var(--danger-soft);
  color: var(--danger);
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.metric-grid.is-sample-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0.01)
    ),
    var(--panel-soft);
}

.metric-card h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.metric-value {
  margin-top: 10px;
  color: var(--text-strong);
  font-family: var(--headline);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.detail-grid.is-sample-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-card {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.012),
      rgba(255, 255, 255, 0.008)
    ),
    rgba(9, 22, 42, 0.92);
}

.sample-spotlight-card {
  min-height: 100%;
  padding: 18px;
}

.sample-rule-trace-card {
  grid-column: 1 / -1;
}

.sample-spotlight-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sample-spotlight-card ul {
  margin-top: 14px;
}

.sample-spotlight-card li {
  line-height: 1.62;
}

.sample-spotlight-critical .sample-spotlight-kicker {
  background: rgba(255, 180, 171, 0.12);
  color: var(--danger);
}

.sample-spotlight-info .sample-spotlight-kicker {
  background: rgba(0, 209, 255, 0.12);
  color: var(--cyan);
}

.sample-spotlight-success .sample-spotlight-kicker {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
}

.detail-card h3 {
  font-size: 1.05rem;
}

.source-privacy-card {
  min-width: 0;
}

.source-privacy-facts {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.source-privacy-fact {
  display: grid;
  grid-template-columns: minmax(88px, 0.88fr) minmax(0, 1.12fr);
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 8px;
}

.source-privacy-fact dt,
.source-privacy-fact dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.source-privacy-fact dt {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-privacy-fact dd {
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.source-privacy-note {
  margin: 14px 0 0;
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.09);
  color: #b7f4c7;
  padding: 10px 12px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.detail-card p {
  margin: 10px 0 0;
}

.detail-card ul {
  margin-top: 14px;
}

.detail-card li {
  color: var(--text);
  line-height: 1.65;
}

.url-explanation-stack {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.url-explanation-summary {
  min-width: 0;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(118, 240, 197, 0.18);
  background: rgba(118, 240, 197, 0.055);
}

.url-explanation-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 0.86rem;
}

.url-explanation-summary code {
  display: block;
  margin-top: 6px;
  padding: 0;
  color: var(--text);
  background: transparent;
  font-family: var(--code);
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.url-explanation-summary-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.url-explanation-summary-facts div {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.url-explanation-summary-facts dt,
.url-explanation-summary-facts dd {
  min-width: 0;
  margin: 0;
}

.url-explanation-summary-facts dt {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.url-explanation-summary-facts dd {
  margin-top: 5px;
  color: var(--text-strong);
  font-size: 0.86rem;
}

.url-explanation-item {
  min-width: 0;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 209, 255, 0.14);
  background:
    linear-gradient(
      180deg,
      rgba(0, 209, 255, 0.07),
      rgba(255, 255, 255, 0.018)
    ),
    rgba(1, 14, 36, 0.42);
}

.url-explanation-label {
  display: inline-flex;
  color: var(--cyan);
  font-family: var(--label);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.url-explanation-item strong {
  display: block;
  margin-top: 8px;
  color: var(--text-strong);
  font-family: var(--code);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.url-explanation-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.url-explanation-facts div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.url-explanation-facts dt,
.url-explanation-facts dd {
  min-width: 0;
  margin: 0;
}

.url-explanation-facts dt {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.url-explanation-facts dd {
  margin-top: 6px;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .benchmark-insight-metrics,
  .benchmark-insight-columns {
    grid-template-columns: 1fr;
  }

  .url-explanation-summary-facts {
    grid-template-columns: 1fr;
  }
}

.annotation-card {
  grid-column: 1 / -1;
}

.annotation-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
  align-items: start;
}

.annotation-section {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.annotation-section h4 {
  margin: 0;
  font-size: 0.96rem;
}

.annotation-empty {
  margin: 0;
  font-size: 0.92rem;
}

.chip-row,
.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  align-content: flex-start;
}

.signal-chip {
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  padding-inline: 12px;
  padding-block: 8px;
  line-height: 1.35;
  align-items: flex-start;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.signal-chip-header {
  background: rgba(255, 180, 171, 0.12);
  color: var(--danger);
}

.signal-chip-url {
  background: rgba(0, 209, 255, 0.12);
  color: var(--cyan);
}

.signal-chip-body {
  background: rgba(140, 183, 255, 0.12);
  color: #9ec2ff;
}

.signal-chip-attachment {
  background: rgba(254, 183, 0, 0.14);
  color: var(--amber);
}

.signal-chip-action {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
}

.attachment-list {
  display: grid;
  margin-top: 14px;
}

.attachment-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.attachment-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
}

.raw-panel pre {
  margin: 0;
  overflow: auto;
  max-height: 320px;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-strong);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--code);
  font-size: 0.88rem;
  line-height: 1.55;
}

.demo-nav a:focus-visible,
.demo-text-link:focus-visible,
.demo-button:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.console-policy-details > summary:focus-visible,
.raw-summary:focus-visible,
.action-advanced-details > summary:focus-visible,
.secondary-analysis-details > summary:focus-visible,
.result-detail-disclosure > summary:focus-visible,
.demo-hero-links a:focus-visible,
.demo-section-links a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.24);
}

@media (max-width: 1120px) {
  .demo-hero {
    grid-template-columns: 1fr;
  }

  .demo-hero h1 {
    max-width: 13ch;
  }

  .demo-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .hero-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-workspace {
    grid-template-columns: 1fr;
  }

  .demo-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-section-status {
    justify-content: flex-start;
  }

}

@media (min-width: 821px) {
  .result-detail-disclosure > summary {
    display: none;
  }

  .result-detail-disclosure[open] > summary {
    margin-bottom: 0;
  }
}

@media (max-width: 820px) {
  .demo-shell {
    width: min(100% - 24px, 1320px);
  }

  .demo-topbar,
  .demo-hero,
  .panel,
  .result-hero,
  .metric-card,
  .detail-card {
    border-radius: 22px;
  }

  .demo-topbar,
  .demo-hero,
  .panel,
  .result-hero,
  .metric-card,
  .detail-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-panel-grid,
  .metric-grid,
  .detail-grid,
  .annotation-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .demo-shell {
    width: min(100% - 20px, 1320px);
  }

  .demo-topbar {
    top: 10px;
    padding: 14px;
  }

  .demo-hero {
    min-height: auto;
    padding: 24px 18px;
  }

  .demo-hero h1 {
    max-width: none;
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .panel,
  .result-hero,
  .metric-card,
  .detail-card {
    padding: 18px;
  }

  .demo-button,
  button {
    width: 100%;
  }

  .demo-hero-actions {
    display: grid;
  }

  .form-action-row {
    grid-template-columns: 1fr;
  }

  .action-field-grid {
    grid-template-columns: 1fr;
  }

  .file-upload-dropzone {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
  }

  .file-upload-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .demo-section-points {
    gap: 8px;
  }

  .result-hero-top {
    flex-direction: column;
  }

  .result-score-box {
    justify-items: start;
  }
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.aistudio-demo .demo-shell {
  width: 100%;
  padding: 0 0 72px;
}

.aistudio-demo .demo-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  border: 0;
  border-radius: 0;
  background: rgba(4, 19, 41, 0.8);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

.demo-topbar-inner,
.demo-hero-inner {
  width: min(var(--demo-content-width), calc(100% - 64px));
  margin: 0 auto;
}

.demo-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.demo-brand-wordmark {
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.demo-brand-title {
  color: var(--brand-wordmark);
  font-family: var(--headline);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.demo-brand-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(254, 183, 0, 0.24);
  background: rgba(254, 183, 0, 0.1);
  color: var(--amber);
  font-family: var(--label);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  transform: translateY(1px);
}

.aistudio-demo .demo-nav {
  gap: 32px;
}

.aistudio-demo .demo-nav a {
  padding: 0 0 6px;
  border-radius: 0;
  background: transparent;
}

.aistudio-demo .demo-nav a:hover,
.aistudio-demo .demo-nav a[aria-current="page"] {
  color: var(--cyan);
  background: transparent;
}

.aistudio-demo .demo-nav a[aria-current="page"] {
  box-shadow: none;
  border-bottom: 2px solid var(--cyan);
}

.demo-topbar-button {
  min-height: 42px;
  padding-inline: 14px;
}

.aistudio-demo .demo-main {
  width: min(var(--demo-content-width), calc(100% - 64px));
  margin: 0 auto;
  padding-top: 88px;
  gap: 30px;
}

.aistudio-demo .demo-hero {
  display: none;
  margin-top: 0;
  padding: 14px 0 0;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.demo-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: center;
}

.aistudio-demo .demo-hero h1 {
  max-width: 14ch;
  margin-top: 16px;
  font-size: clamp(2.2rem, 3.2vw, 3.35rem);
  line-height: 1.08;
}

.aistudio-demo .demo-lead {
  max-width: 780px;
  margin-top: 16px;
  font-size: 0.99rem;
  color: #b8c6d8;
}

.aistudio-demo .demo-chip-row {
  margin-top: 16px;
}

.aistudio-demo .demo-hero-actions {
  gap: 14px;
  margin-top: 18px;
}

.aistudio-demo .demo-hero-panel {
  width: min(100%, 460px);
  max-width: 460px;
  align-self: start;
  justify-self: end;
  margin-right: 34px;
  padding: 18px;
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.045);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.aistudio-demo .demo-hero-panel .hero-panel-grid {
  display: none;
}

.aistudio-demo .panel,
.aistudio-demo .result-hero,
.aistudio-demo .metric-card,
.aistudio-demo .detail-card {
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.045);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.022);
}

.aistudio-demo .demo-workspace {
  grid-template-columns: minmax(430px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.aistudio-demo .control-panel,
.aistudio-demo .result-column {
  gap: 12px;
}

.aistudio-demo .result-column {
  position: static;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.aistudio-demo .panel {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.016),
      rgba(255, 255, 255, 0.01)
    ),
    rgba(16, 32, 54, 0.88);
}

.aistudio-demo .result-hero,
.aistudio-demo .metric-card,
.aistudio-demo .detail-card {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.014),
      rgba(255, 255, 255, 0.008)
    ),
    rgba(9, 22, 42, 0.92);
}

.aistudio-demo .result-hero {
  min-height: 190px;
  border-color: rgba(255, 255, 255, 0.065);
}

.aistudio-demo .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aistudio-demo .metric-card {
  min-width: 0;
}

.aistudio-demo .metric-value {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.aistudio-demo .metric-card:nth-child(3) .metric-value {
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  line-height: 1.16;
}

.aistudio-demo .demo-section-head {
  display: none;
  padding: 18px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.aistudio-demo .demo-section-head h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.aistudio-demo .demo-section-status span {
  background: rgba(255, 255, 255, 0.045);
}

.aistudio-demo .metric-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.aistudio-demo .raw-panel pre {
  background: rgba(1, 14, 36, 0.92);
}

.aistudio-demo .panel:hover,
.aistudio-demo .panel:focus-within,
.aistudio-demo .metric-card:hover,
.aistudio-demo .detail-card:hover {
  border-color: rgba(164, 230, 255, 0.12);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.024);
}

@media (max-width: 1180px) {
  .demo-topbar-inner,
  .demo-hero-inner,
  .aistudio-demo .demo-main {
    width: min(100% - 48px, var(--demo-content-width));
  }

  .demo-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .demo-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aistudio-demo .demo-hero-panel {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    margin-right: 0;
  }

  .program-launcher {
    grid-template-columns: 1fr;
  }

  .program-launcher-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .program-launcher-copy h2 {
    max-width: 18ch;
  }

  .program-status-board {
    grid-template-columns: 1fr;
  }

  .aistudio-demo .demo-workspace {
    grid-template-columns: 1fr;
  }

  .aistudio-demo .result-column {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 820px) {
  .demo-topbar-inner,
  .demo-hero-inner,
  .aistudio-demo .demo-main {
    width: min(100% - 32px, var(--demo-content-width));
  }

  .aistudio-demo .demo-topbar {
    position: static;
  }

  .aistudio-demo .demo-main {
    padding-top: 14px;
    gap: 16px;
  }

  .aistudio-demo .demo-topbar {
    padding: 10px 0;
  }

  .demo-topbar-inner {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .aistudio-demo .demo-nav {
    display: none;
  }

  .aistudio-demo .demo-topbar-button {
    width: auto;
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .aistudio-demo .demo-section-head {
    display: none;
  }

  .aistudio-demo .console-panel {
    padding: 14px;
  }

  .program-launcher {
    padding-top: 8px;
  }

  .program-mode-grid {
    grid-template-columns: 1fr;
  }

  .program-mode-card {
    min-height: auto;
  }

  .program-status-rail {
    grid-template-columns: 1fr;
  }

  .program-guardrail-strip {
    grid-template-columns: 1fr;
  }

  .share-intake-panel,
  .share-route-grid {
    grid-template-columns: 1fr;
  }

  .share-intake-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .result-export-panel {
    grid-template-columns: 1fr;
  }

  .result-export-actions {
    justify-content: flex-start;
  }

  .result-export-button {
    flex: 1 1 124px;
  }

  .evidence-report-verdict {
    grid-template-columns: 1fr;
  }

  .evidence-report-response-grid {
    grid-template-columns: 1fr;
  }

  .aistudio-demo .console-panel > .panel-head {
    margin-bottom: 10px;
  }

  .aistudio-demo .console-panel > .panel-head .panel-kicker {
    margin: 0 0 6px;
    font-size: 0.68rem;
  }

  .aistudio-demo .console-panel > .panel-head h2 {
    font-size: 1.18rem;
    line-height: 1.18;
  }

  .aistudio-demo .console-panel > .panel-copy,
  .aistudio-demo .console-panel > .workbench-priority-strip {
    display: none;
  }

  .aistudio-demo .console-input-stack {
    gap: 12px;
  }

  .aistudio-demo .action-firewall-panel {
    padding: 14px;
  }

  .aistudio-demo .result-hero {
    min-height: auto;
    padding: 16px;
  }

  .aistudio-demo .result-hero-top {
    flex-direction: row;
  }

  .aistudio-demo .result-score-box {
    justify-items: end;
  }

  .aistudio-demo .result-score-value {
    font-size: 2rem;
  }

  .aistudio-demo .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
    gap: 10px;
  }

  .aistudio-demo .metric-card {
    padding: 14px;
  }

  .aistudio-demo .metric-card h3 {
    font-size: 0.72rem;
  }

  .aistudio-demo .metric-value {
    margin-top: 6px;
    font-size: 1.45rem;
  }

  .aistudio-demo .metric-card p {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .aistudio-demo .demo-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .aistudio-demo .demo-hero-panel {
    display: none;
  }

  .aistudio-demo .demo-hero h1 {
    max-width: none;
    font-size: clamp(3rem, 11vw, 4.8rem);
  }

  .demo-band {
    padding: 42px 24px;
  }

  .workbench-priority-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-step-callout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-critical-grid {
    grid-template-columns: 1fr;
  }

  .action-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .demo-topbar-inner {
    gap: 12px;
  }

  .demo-brand-wordmark {
    width: 100%;
  }

  .aistudio-demo .demo-brand-wordmark {
    width: auto;
    flex: 1 1 auto;
  }

  .aistudio-demo .demo-brand-title {
    font-size: 1.16rem;
  }

  .aistudio-demo .demo-brand-badge {
    display: none;
  }

  .aistudio-demo .demo-topbar-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .demo-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .aistudio-demo .demo-nav a {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 0;
  }

  .aistudio-demo .demo-nav a:hover,
  .aistudio-demo .demo-nav a[aria-current="page"] {
    background: rgba(0, 209, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0, 209, 255, 0.18);
  }

  .aistudio-demo .demo-hero h1 {
    max-width: 10ch;
    font-size: clamp(2.05rem, 10.2vw, 2.45rem);
    line-height: 1.06;
  }

  .aistudio-demo .demo-lead {
    margin-top: 16px;
    font-size: 0.92rem;
  }

  .aistudio-demo .demo-chip-row {
    margin-top: 16px;
  }

  .aistudio-demo .demo-hero-actions {
    margin-top: 18px;
  }

  .aistudio-demo .demo-hero-actions .demo-button-secondary {
    display: none;
  }

  .program-launcher-copy h2 {
    max-width: none;
    font-size: 1.75rem;
  }

  .program-mode-card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "index copy"
      "icon copy";
    padding: 14px;
  }

  .demo-headline-line {
    display: block;
  }

  .demo-proof-grid {
    grid-template-columns: 1fr;
  }

  .demo-proof-card p {
    display: none;
  }

  .workbench-priority-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-step-callout {
    grid-template-columns: 1fr;
  }

  .action-field-grid {
    grid-template-columns: 1fr;
  }

  .action-firewall-panel textarea {
    min-height: 94px;
  }

  .secondary-analysis-details > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .secondary-analysis-details > summary strong {
    flex-basis: auto;
  }
}

@media (max-width: 360px) {
  .action-critical-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-motion .motion-reveal,
  .js-motion .motion-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
