:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-deep: #05070a;
  --surface: rgba(15, 18, 26, 0.88);
  --surface-strong: #11151e;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.095);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6ee;
  --muted: #9199a6;
  --dim: #5e6672;
  --acid: #d7ff3f;
  --acid-soft: rgba(215, 255, 63, 0.16);
  --cyan: #53e5ff;
  --cyan-soft: rgba(83, 229, 255, 0.14);
  --violet: #a386ff;
  --red: #ff5d6c;
  --red-soft: rgba(255, 93, 108, 0.15);
  --amber: #ffb44b;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 13%, rgba(83, 229, 255, 0.055), transparent 26rem),
    radial-gradient(circle at 22% 86%, rgba(215, 255, 63, 0.045), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

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

.ambient {
  position: fixed;
  z-index: -3;
  width: 48rem;
  height: 48rem;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: inherit;
  content: "";
  inset: 12%;
}

.ambient::after {
  inset: 28%;
}

.ambient-one {
  top: -27rem;
  right: -13rem;
  box-shadow: 0 0 160px rgba(83, 229, 255, 0.03);
  animation: ambient-spin 42s linear infinite;
}

.ambient-two {
  bottom: -35rem;
  left: -22rem;
  box-shadow: 0 0 150px rgba(215, 255, 63, 0.025);
  animation: ambient-spin 54s linear infinite reverse;
}

.grain {
  position: fixed;
  z-index: 20;
  opacity: 0.035;
  pointer-events: none;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.app-shell {
  min-height: 100vh;
}

.disclosure {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 20px;
  border-bottom: 1px solid rgba(215, 255, 63, 0.12);
  background: rgba(12, 15, 11, 0.86);
  color: #dce5c2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.disclosure span:last-child {
  color: #79816f;
  text-transform: none;
}

.disclosure-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  animation: pulse 1.8s ease-in-out infinite;
}

.topbar {
  position: relative;
  z-index: 15;
  display: grid;
  min-height: 76px;
  align-items: center;
  gap: 24px;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  padding: 0 clamp(20px, 3.2vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 15, 0.77);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
}

.brand-core {
  width: 12px;
  height: 12px;
  border: 2px solid var(--text);
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(215, 255, 63, 0.24);
}

.brand-ring {
  position: absolute;
  border: 1px solid;
  border-radius: 50%;
  inset: 2px;
}

.ring-one {
  border-color: rgba(215, 255, 63, 0.55);
  transform: rotateX(68deg) rotateZ(18deg);
  animation: logo-orbit 6s linear infinite;
}

.ring-two {
  border-color: rgba(83, 229, 255, 0.45);
  transform: rotateY(68deg) rotateZ(-18deg);
  animation: logo-orbit-alt 7s linear infinite reverse;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 740;
  letter-spacing: -0.04em;
}

.brand-copy strong span {
  color: var(--acid);
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.view-switcher {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.view-button {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  transition: 180ms ease;
}

.view-button svg {
  width: 15px;
  height: 15px;
}

.view-button:hover {
  color: var(--text);
}

.view-button.active {
  background: var(--text);
  color: #0b0d11;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.xai-label {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.system-ready,
.telemetry-status {
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(215, 255, 63, 0.12);
  border-radius: 999px;
  background: rgba(215, 255, 63, 0.05);
  color: #c8da82;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.system-ready i,
.telemetry-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
}

.view {
  min-height: calc(100vh - 104px);
}

.view[hidden] {
  display: none !important;
}

.chat-layout {
  display: grid;
  min-height: calc(100vh - 104px);
  grid-template-columns: 278px minmax(460px, 1fr) 325px;
}

.scenario-rail,
.telemetry-panel {
  position: relative;
  z-index: 2;
  padding: 28px 22px;
  background: rgba(10, 12, 18, 0.74);
  backdrop-filter: blur(16px);
}

.scenario-rail {
  border-right: 1px solid var(--line);
}

.telemetry-panel {
  border-left: 1px solid var(--line);
}

.rail-heading,
.telemetry-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.rail-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.rail-heading strong,
.telemetry-head strong {
  display: block;
  font-size: 15px;
  font-weight: 670;
}

.eyebrow {
  display: block;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.scenario-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 86px;
  align-items: center;
  gap: 10px;
  grid-template-columns: 32px 36px minmax(0, 1fr);
  margin-bottom: 10px;
  padding: 13px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.scenario-card::before {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 255, 63, 0.12), transparent 70%);
  content: "";
  opacity: 0;
  right: -55px;
  top: -55px;
  transition: opacity 180ms ease;
}

.scenario-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(2px);
}

.scenario-card.active {
  border-color: rgba(215, 255, 63, 0.36);
  background: linear-gradient(130deg, rgba(215, 255, 63, 0.1), rgba(255, 255, 255, 0.02));
}

.scenario-card.active::before {
  opacity: 1;
}

.scenario-index {
  align-self: start;
  padding-top: 2px;
  color: #4e5561;
  font-family: var(--mono);
  font-size: 8px;
}

.scenario-icon {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid;
  border-radius: 10px;
  place-items: center;
}

.scenario-icon svg {
  width: 17px;
  height: 17px;
}

.privacy-icon,
.safe-icon {
  border-color: rgba(215, 255, 63, 0.2);
  background: rgba(215, 255, 63, 0.075);
  color: var(--acid);
}

.attack-icon {
  border-color: rgba(255, 93, 108, 0.2);
  background: rgba(255, 93, 108, 0.07);
  color: var(--red);
}

.scenario-copy {
  min-width: 0;
}

.scenario-copy strong,
.scenario-copy small {
  display: block;
}

.scenario-copy strong {
  margin-bottom: 5px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scenario-copy small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.scenario-state {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scenario-state.allow {
  color: #aeca59;
}

.scenario-state.block {
  color: #de7380;
}

.rail-stack {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.stack-row {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: 26px 1fr 8px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stack-number {
  display: grid;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  place-items: center;
}

.stack-row strong,
.stack-row small {
  display: block;
}

.stack-row strong {
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 630;
}

.stack-row small {
  color: var(--dim);
  font-size: 8px;
}

.stack-light {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px rgba(215, 255, 63, 0.6);
}

.architecture-shortcut {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 620;
  transition: 180ms ease;
}

.architecture-shortcut svg {
  width: 13px;
}

.architecture-shortcut:hover {
  border-color: rgba(215, 255, 63, 0.3);
  color: var(--text);
}

.conversation-panel {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 4vw, 52px) clamp(28px, 5vw, 74px) 30px;
  overflow: hidden;
}

.conversation-panel::before {
  position: absolute;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  content: "";
  right: -270px;
  top: -270px;
  box-shadow: inset 0 0 120px rgba(83, 229, 255, 0.02);
}

.conversation-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 32px;
  width: min(100%, 850px);
}

.conversation-head h1,
.architecture-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 3.25vw, 52px);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.conversation-head h1 em,
.architecture-heading h2 em {
  color: var(--acid);
  font-style: normal;
}

.session-seal {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border: 1px solid rgba(215, 255, 63, 0.12);
  border-radius: 50%;
  place-items: center;
  perspective: 600px;
}

.seal-orbit {
  position: absolute;
  border: 1px solid rgba(83, 229, 255, 0.34);
  border-radius: 50%;
  inset: 5px;
  transform: rotateX(67deg) rotateZ(30deg);
  animation: seal-spin 5s linear infinite;
}

.seal-core {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(215, 255, 63, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 255, 63, 0.18), rgba(215, 255, 63, 0.02));
  color: var(--acid);
  place-items: center;
  box-shadow: 0 0 30px rgba(215, 255, 63, 0.08);
}

.seal-core svg {
  width: 20px;
  height: 20px;
}

.chat-timeline {
  width: min(100%, 850px);
  min-height: 230px;
  max-height: 42vh;
  flex: 1 1 auto;
  margin: 0 auto;
  padding: 4px 8px 26px 0;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  scrollbar-width: thin;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  animation: message-in 440ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.message.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(215, 255, 63, 0.22);
  border-radius: 10px;
  background: rgba(215, 255, 63, 0.08);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  place-items: center;
}

.user-message .message-avatar {
  border-color: rgba(83, 229, 255, 0.2);
  background: rgba(83, 229, 255, 0.07);
  color: var(--cyan);
}

.avatar-rings {
  position: absolute;
  border: 1px solid rgba(215, 255, 63, 0.15);
  border-radius: 50%;
  inset: -4px;
  transform: rotateX(68deg);
}

.message-body {
  max-width: min(88%, 660px);
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px 3px;
}

.user-message .message-meta {
  justify-content: flex-end;
  margin: 0 3px 7px 0;
}

.message-meta strong {
  font-size: 9px;
  font-weight: 650;
}

.message-meta span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.message-bubble {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px;
  background: rgba(255, 255, 255, 0.035);
  color: #cbd0d5;
  font-size: 12px;
  line-height: 1.65;
}

.user-message .message-bubble {
  border-color: rgba(83, 229, 255, 0.16);
  border-radius: 16px 4px 16px 16px;
  background: rgba(83, 229, 255, 0.055);
  color: #e6e9e9;
}

.message-bubble.blocked {
  border-color: rgba(255, 93, 108, 0.24);
  background: linear-gradient(135deg, rgba(255, 93, 108, 0.105), rgba(255, 255, 255, 0.02));
}

.message-bubble.blocked strong {
  display: block;
  margin-bottom: 5px;
  color: #ff9aa5;
}

.message-bubble .restored-token {
  padding: 1px 4px;
  border-bottom: 1px solid rgba(215, 255, 63, 0.35);
  border-radius: 3px;
  background: rgba(215, 255, 63, 0.08);
  color: #edffc0;
}

.message-security-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding-left: 4px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.message-security-note i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acid);
}

.processing-strip {
  display: flex;
  width: min(100%, 850px);
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(7, 9, 13, 0.68);
}

.process-step {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #59606c;
  transition: color 220ms ease;
}

.process-step > span:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.process-step small {
  font-size: 6px;
}

.step-dot {
  width: 6px;
  height: 6px;
  border: 1px solid #4f5660;
  border-radius: 50%;
}

.process-step.active {
  color: var(--text);
}

.process-step.active .step-dot {
  border-color: var(--acid);
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  animation: pulse 1s ease-in-out infinite;
}

.process-step.complete {
  color: #9aac62;
}

.process-step.complete .step-dot {
  border-color: var(--acid);
  background: rgba(215, 255, 63, 0.35);
}

.process-step.stopped {
  color: #e47a85;
}

.process-step.stopped .step-dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 9px rgba(255, 93, 108, 0.5);
}

.process-link {
  width: clamp(10px, 2vw, 38px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.composer {
  width: min(100%, 850px);
  margin: auto auto 0;
}

.composer-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 4px 9px;
}

.composer-topline label {
  color: #aeb5bc;
  font-size: 9px;
  font-weight: 620;
}

.composer-topline span {
  color: var(--dim);
  font-size: 7px;
}

kbd {
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #939aa3;
  font-family: var(--mono);
  font-size: 6px;
}

.composer-box {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  background:
    linear-gradient(var(--surface-strong), var(--surface-strong)) padding-box,
    linear-gradient(120deg, rgba(215, 255, 63, 0.36), rgba(83, 229, 255, 0.12), rgba(255, 255, 255, 0.05)) border-box;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.composer-box:focus-within {
  border-color: transparent;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(215, 255, 63, 0.18);
}

.composer textarea {
  display: block;
  width: 100%;
  min-height: 72px;
  max-height: 150px;
  resize: vertical;
  padding: 13px 14px 5px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  outline: 0;
}

.composer textarea::placeholder {
  color: #646b75;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 7px 7px 12px;
}

.local-only {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.local-only svg {
  width: 12px;
  height: 12px;
  color: #81934f;
}

.send-button {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 15px;
  border-radius: 11px;
  background: var(--acid);
  color: #101309;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  box-shadow: 0 10px 26px rgba(215, 255, 63, 0.12);
  transition: 180ms ease;
}

.send-button svg {
  width: 25px;
  height: 25px;
  padding: 5px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.11);
}

.send-button:hover {
  box-shadow: 0 14px 34px rgba(215, 255, 63, 0.19);
  transform: translateY(-1px);
}

.send-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.telemetry-head {
  margin-bottom: 12px;
}

.telemetry-status {
  height: 24px;
  padding: 0 8px;
  font-size: 7px;
}

.decision-orb-wrap {
  position: relative;
  display: grid;
  height: 220px;
  margin: 4px 0 6px;
  overflow: hidden;
  place-items: center;
}

.decision-orb-wrap::before,
.decision-orb-wrap::after {
  position: absolute;
  width: 190px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
  transform: rotate(-14deg);
}

.decision-orb-wrap::after {
  transform: rotate(55deg);
}

.decision-orb {
  position: relative;
  display: grid;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  place-items: center;
}

.orb-track,
.orb-progress {
  position: absolute;
  border-radius: 50%;
  inset: 0;
}

.orb-track {
  background: conic-gradient(rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  -webkit-mask: radial-gradient(transparent 60%, #000 61%);
  mask: radial-gradient(transparent 60%, #000 61%);
}

.orb-progress {
  background: conic-gradient(
    var(--orb-color, var(--acid)) calc(var(--score) * 1turn),
    transparent calc(var(--score) * 1turn)
  );
  filter: drop-shadow(0 0 8px var(--orb-glow, rgba(215, 255, 63, 0.4)));
  transform: rotate(-90deg);
  transition: background 650ms ease;
  -webkit-mask: radial-gradient(transparent 64%, #000 65%, #000 72%, transparent 73%);
  mask: radial-gradient(transparent 64%, #000 65%, #000 72%, transparent 73%);
}

.orb-core {
  display: flex;
  width: 102px;
  height: 102px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  flex-direction: column;
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.06), transparent 40%),
    rgba(12, 15, 21, 0.9);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.025), 0 18px 42px rgba(0, 0, 0, 0.34);
}

.orb-core small {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orb-core strong {
  margin: 4px 0 2px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.08em;
}

.orb-core span {
  color: var(--muted);
  font-size: 7px;
}

.orb-scanner {
  position: absolute;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(83, 229, 255, 0.35), transparent);
  opacity: 0.35;
  animation: scanner 3.4s ease-in-out infinite;
}

.decision-orb.danger {
  --orb-color: var(--red);
  --orb-glow: rgba(255, 93, 108, 0.45);
}

.probability-card,
.inspect-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.probability-card {
  padding: 14px;
}

.probability-title,
.probability-row {
  display: grid;
  align-items: center;
}

.probability-title {
  grid-template-columns: 1fr auto;
  margin-bottom: 14px;
}

.probability-title span {
  color: var(--muted);
  font-size: 9px;
}

.probability-title strong {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.probability-title strong.allow {
  color: var(--acid);
}

.probability-title strong.block {
  color: var(--red);
}

.probability-row {
  gap: 8px;
  grid-template-columns: 34px 1fr 30px;
  margin-top: 9px;
}

.probability-row > span,
.probability-row > strong {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7px;
}

.probability-row > strong {
  text-align: right;
}

.probability-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.probability-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.allow-bar {
  background: var(--acid);
  box-shadow: 0 0 8px rgba(215, 255, 63, 0.45);
}

.block-bar {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 93, 108, 0.42);
}

.inspect-card {
  min-height: 170px;
  margin-top: 12px;
  overflow: hidden;
}

.inspect-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.inspect-tab {
  height: 29px;
  border-radius: 7px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.inspect-tab.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.inspect-pane {
  display: none;
  padding: 14px;
}

.inspect-pane.active {
  display: block;
  animation: pane-in 220ms ease both;
}

.pane-label {
  display: block;
  margin-bottom: 10px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inspect-pane p {
  max-height: 90px;
  margin: 0;
  overflow-y: auto;
  color: #b5bbc1;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.model-token {
  color: var(--acid);
}

.vault-list {
  display: grid;
  max-height: 102px;
  gap: 6px;
  overflow-y: auto;
}

.vault-empty {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font-size: 8px;
}

.vault-empty svg {
  width: 15px;
}

.vault-item {
  display: grid;
  align-items: center;
  gap: 7px;
  grid-template-columns: auto 1fr;
  padding: 7px 8px;
  border: 1px solid rgba(215, 255, 63, 0.1);
  border-radius: 8px;
  background: rgba(215, 255, 63, 0.04);
}

.vault-item code {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 7px;
}

.vault-item span {
  overflow: hidden;
  color: #a9afb4;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telemetry-foot {
  display: grid;
  gap: 6px 8px;
  grid-template-columns: auto 1fr;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7px;
}

.telemetry-foot span {
  color: var(--dim);
  text-transform: uppercase;
}

.telemetry-foot strong {
  color: #8b929b;
  font-weight: 500;
  text-align: right;
}

/* Architecture */
.architecture-view {
  padding: 34px clamp(20px, 4vw, 64px) 44px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
}

.architecture-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
}

.architecture-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.architecture-heading h2 {
  max-width: 760px;
  font-size: clamp(30px, 3.1vw, 50px);
}

.architecture-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.architecture-stats div {
  display: grid;
  gap: 3px;
  grid-template-columns: auto 1fr;
}

.architecture-stats span {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 15px;
}

.architecture-stats small {
  align-self: end;
  max-width: 64px;
  color: var(--dim);
  font-size: 7px;
  line-height: 1.2;
  text-transform: uppercase;
}

.graph-console {
  overflow: hidden;
  border: 1px solid rgba(215, 255, 63, 0.16);
  border-radius: 22px;
  background: #080d10;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
}

.graph-toolbar {
  position: relative;
  z-index: 6;
  display: grid;
  min-height: 60px;
  align-items: center;
  gap: 20px;
  grid-template-columns: minmax(180px, 1fr) auto auto minmax(270px, 1fr);
  padding: 9px 14px 9px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(9, 14, 17, 0.95);
}

.graph-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
}

.graph-brand strong {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.graph-brand small {
  color: var(--dim);
  font-size: 7px;
}

.graph-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
}

.mode-switcher,
.route-switcher {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.mode-button,
.route-button {
  height: 29px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: 160ms ease;
}

.mode-button.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.route-button {
  display: flex;
  align-items: center;
  gap: 5px;
}

.route-button i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.route-button[data-route="safe"].active {
  background: var(--acid-soft);
  color: var(--acid);
}

.route-button[data-route="attack"].active {
  background: var(--red-soft);
  color: var(--red);
}

.route-switcher.hidden {
  visibility: hidden;
  pointer-events: none;
}

.graph-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.run-graph,
.icon-button,
.fit-button {
  display: flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 7px;
  transition: 160ms ease;
}

.run-graph {
  gap: 7px;
  padding: 0 12px;
  border-color: var(--acid);
  background: var(--acid);
  color: #101309;
  font-weight: 700;
  text-transform: uppercase;
}

.run-graph svg {
  width: 12px;
}

.run-graph:hover {
  box-shadow: 0 0 24px rgba(215, 255, 63, 0.17);
}

.icon-button {
  width: 32px;
  font-size: 14px;
}

.fit-button {
  padding: 0 10px;
  text-transform: uppercase;
}

.icon-button:hover,
.fit-button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.zoom-readout {
  width: 34px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 7px;
  text-align: center;
}

.toolbar-divider {
  width: 1px;
  height: 17px;
  margin: 0 2px;
  background: var(--line);
}

.graph-viewport {
  position: relative;
  height: min(68vh, 720px);
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(24, 67, 60, 0.11), transparent 46%),
    #071012;
  cursor: grab;
  touch-action: none;
}

.graph-viewport.dragging {
  cursor: grabbing;
}

.graph-grid {
  position: absolute;
  opacity: 0.8;
  inset: 0;
  background-image: radial-gradient(rgba(83, 229, 255, 0.17) 0.8px, transparent 0.8px);
  background-position: center;
  background-size: 22px 22px;
  pointer-events: none;
}

.graph-grid::before {
  position: absolute;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(83, 229, 255, 0.035) 50%, transparent 50.1%),
    linear-gradient(transparent 49.9%, rgba(83, 229, 255, 0.035) 50%, transparent 50.1%);
  content: "";
  inset: 0;
}

.graph-camera {
  position: absolute;
  width: 1640px;
  height: 760px;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.graph-edges {
  position: absolute;
  overflow: visible;
  inset: 0;
}

.edge-set {
  display: none;
}

.edge-set.active {
  display: block;
}

.graph-edge {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 5 8;
  stroke-linecap: round;
  animation: edge-drift 1.8s linear infinite;
  vector-effect: non-scaling-stroke;
}

.edge-common,
.edge-safe {
  marker-end: url("#arrowSafe");
  stroke: rgba(215, 255, 63, 0.55);
}

.edge-attack {
  marker-end: url("#arrowAttack");
  stroke: rgba(255, 93, 108, 0.65);
}

.edge-vault {
  stroke: rgba(83, 229, 255, 0.55);
  stroke-dasharray: 2 9;
}

.edge-training {
  marker-end: url("#arrowTrain");
  stroke: rgba(163, 134, 255, 0.56);
}

#arrowSafe path {
  fill: var(--acid);
  stroke: none;
}

#arrowAttack path {
  fill: var(--red);
  stroke: none;
}

#arrowTrain path {
  fill: var(--violet);
  stroke: none;
}

.runtime-route-attack .edge-safe,
.runtime-route-safe .edge-attack {
  opacity: 0.1;
}

.runtime-route-attack .edge-attack,
.runtime-route-safe .edge-safe,
.runtime-route-safe .edge-common,
.runtime-route-attack .edge-common {
  filter: url("#edgeGlow");
}

.graph-nodes {
  display: none;
}

.graph-nodes.active {
  display: block;
}

.graph-node {
  position: absolute;
  display: flex;
  width: 170px;
  min-height: 112px;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 48%),
    rgba(12, 24, 24, 0.94);
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  left: var(--x);
  top: var(--y);
  text-align: left;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 180ms ease;
}

.graph-node::before {
  position: absolute;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--node-color, var(--acid));
  content: "";
  left: 9px;
  opacity: 0.9;
  right: 9px;
  top: -1px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--node-color, var(--acid)) 50%, transparent);
}

.graph-node::after {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--node-color, var(--acid)) 15%, transparent);
  border-radius: inherit;
  content: "";
  inset: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.graph-node:hover {
  border-color: color-mix(in srgb, var(--node-color, var(--acid)) 42%, transparent);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), 0 0 22px color-mix(in srgb, var(--node-color, var(--acid)) 8%, transparent);
  transform: translateY(-3px) rotateX(1.5deg);
}

.graph-node:hover::after,
.graph-node.selected::after,
.graph-node.flow-active::after {
  opacity: 1;
}

.graph-node.selected,
.graph-node.flow-active {
  border-color: color-mix(in srgb, var(--node-color, var(--acid)) 66%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--node-color, var(--acid)) 15%, transparent), 0 22px 50px rgba(0, 0, 0, 0.38);
}

.graph-node.flow-active {
  animation: node-signal 650ms ease both;
}

.graph-node small,
.graph-node strong,
.graph-node > span:not(.node-port) {
  position: relative;
  z-index: 1;
}

.graph-node small {
  margin-bottom: 11px;
  color: var(--node-color, var(--acid));
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.graph-node strong {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 660;
  letter-spacing: -0.02em;
}

.graph-node > span:not(.node-port) {
  color: #78818a;
  font-family: var(--mono);
  font-size: 7px;
}

.node-port {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  border: 1px solid var(--node-color, var(--acid));
  border-radius: 50%;
  background: #081012;
  box-shadow: 0 0 9px color-mix(in srgb, var(--node-color, var(--acid)) 50%, transparent);
}

.port-left {
  left: -5px;
  top: calc(50% - 4px);
}

.port-right {
  right: -5px;
  top: calc(50% - 4px);
}

.port-top {
  left: calc(50% - 4px);
  top: -5px;
}

.port-bottom {
  bottom: -5px;
  left: calc(50% - 4px);
}

.node-input,
.node-dataset {
  --node-color: var(--cyan);
}

.node-policy,
.node-update {
  --node-color: var(--violet);
}

.node-block {
  --node-color: var(--red);
}

.node-privacy,
.node-output,
.node-response,
.node-gateway {
  --node-color: var(--acid);
}

.node-vault {
  --node-color: var(--cyan);
}

.node-model {
  --node-color: #ffffff;
}

.node-features {
  --node-color: var(--cyan);
}

.node-action {
  --node-color: var(--amber);
}

.node-environment {
  --node-color: var(--red);
}

.node-reward {
  --node-color: var(--acid);
}

.node-checkpoint {
  --node-color: #ffffff;
}

.runtime-route-attack #runtime-privacy,
.runtime-route-attack #runtime-vault,
.runtime-route-attack #runtime-gateway,
.runtime-route-attack #runtime-model,
.runtime-route-attack #runtime-output,
.runtime-route-attack #runtime-response {
  opacity: 0.22;
}

.runtime-route-safe #runtime-block {
  opacity: 0.2;
}

.graph-label {
  position: absolute;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 15, 17, 0.84);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 6px;
  left: var(--x);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  top: var(--y);
}

.trust-label {
  border-color: rgba(215, 255, 63, 0.14);
  color: #829a43;
}

.model-label {
  border-color: rgba(255, 255, 255, 0.12);
}

.agent-label {
  border-color: rgba(163, 134, 255, 0.2);
  color: #a994ed;
}

.loop-label {
  border-color: rgba(163, 134, 255, 0.12);
  color: #7d70ac;
}

.node-inspector {
  position: absolute;
  z-index: 5;
  width: min(330px, calc(100% - 32px));
  min-height: 116px;
  padding: 16px 18px 16px 21px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(8, 13, 17, 0.9);
  bottom: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  left: 18px;
  pointer-events: none;
  backdrop-filter: blur(16px);
}

.inspector-line {
  position: absolute;
  width: 2px;
  border-radius: 3px;
  background: var(--acid);
  bottom: 14px;
  box-shadow: 0 0 10px rgba(215, 255, 63, 0.4);
  left: 9px;
  top: 14px;
}

.node-inspector span {
  display: block;
  margin-bottom: 6px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.node-inspector strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}

.node-inspector p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.viewport-hint {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4f5a60;
  font-family: var(--mono);
  font-size: 6px;
  bottom: 14px;
  letter-spacing: 0.05em;
  right: 18px;
  text-transform: uppercase;
}

.viewport-hint i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #566167;
}

.graph-footer {
  display: grid;
  min-height: 50px;
  align-items: center;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
  padding: 8px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 14, 17, 0.98);
}

.graph-legend {
  display: flex;
  align-items: center;
  gap: 15px;
}

.graph-legend span,
.confidentiality-note,
.graph-coordinate {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.safe-dot {
  background: var(--acid);
}

.attack-dot {
  background: var(--red);
}

.vault-dot {
  background: var(--cyan);
}

.confidentiality-note {
  text-align: center;
}

.graph-coordinate {
  text-align: right;
}

@keyframes ambient-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes logo-orbit {
  to {
    transform: rotateX(68deg) rotateZ(378deg);
  }
}

@keyframes logo-orbit-alt {
  to {
    transform: rotateY(68deg) rotateZ(342deg);
  }
}

@keyframes seal-spin {
  to {
    transform: rotateX(67deg) rotateZ(390deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes pane-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

@keyframes scanner {
  0%,
  100% {
    opacity: 0.1;
    transform: translateY(-70px);
  }
  50% {
    opacity: 0.55;
    transform: translateY(70px);
  }
}

@keyframes edge-drift {
  to {
    stroke-dashoffset: -26;
  }
}

@keyframes node-signal {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.035) translateY(-3px);
  }
}

@media (max-width: 1260px) {
  .chat-layout {
    grid-template-columns: 240px minmax(440px, 1fr) 290px;
  }

  .scenario-rail,
  .telemetry-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .conversation-panel {
    padding-right: 32px;
    padding-left: 32px;
  }

  .graph-toolbar {
    gap: 10px;
    grid-template-columns: 1fr auto auto;
  }

  .route-switcher {
    display: none;
  }
}

@media (max-width: 1020px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .view-switcher {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    margin-bottom: 9px;
  }

  .header-meta {
    grid-column: 2;
  }

  .xai-label {
    display: none;
  }

  .chat-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .telemetry-panel {
    display: grid;
    grid-column: 1 / -1;
    gap: 14px;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .telemetry-head,
  .telemetry-foot {
    display: none;
  }

  .decision-orb-wrap {
    height: 180px;
    margin: 0;
  }

  .decision-orb {
    width: 120px;
    height: 120px;
  }

  .orb-core {
    width: 86px;
    height: 86px;
  }

  .orb-core strong {
    font-size: 23px;
  }

  .probability-card,
  .inspect-card {
    align-self: center;
  }

  .architecture-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .graph-toolbar {
    grid-template-columns: 1fr auto;
  }

  .mode-switcher {
    order: 3;
  }

  .graph-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 760px) {
  .disclosure span:last-child,
  .system-ready,
  .composer-topline span,
  .local-only {
    display: none;
  }

  .topbar {
    min-height: 66px;
    padding: 0 15px;
  }

  .header-meta {
    display: none;
  }

  .view-switcher {
    width: 100%;
  }

  .view-button {
    flex: 1;
    justify-content: center;
  }

  .chat-layout {
    display: block;
  }

  .scenario-rail {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail-heading,
  .rail-stack,
  .architecture-shortcut {
    display: none;
  }

  .scenario-card {
    min-width: 210px;
    margin: 0;
  }

  .conversation-panel {
    min-height: 650px;
    padding: 28px 16px 20px;
  }

  .conversation-head {
    margin-bottom: 24px;
  }

  .session-seal {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .conversation-head h1 {
    font-size: 32px;
  }

  .message-body {
    max-width: 90%;
  }

  .processing-strip {
    gap: 4px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .process-step > span:last-child {
    font-size: 6px;
  }

  .process-step small,
  .process-link {
    display: none;
  }

  .telemetry-panel {
    display: block;
    padding: 20px 16px;
  }

  .decision-orb-wrap {
    float: left;
    width: 40%;
  }

  .probability-card {
    min-height: 150px;
    margin-left: 43%;
  }

  .inspect-card {
    clear: both;
    margin-top: 16px;
  }

  .architecture-view {
    padding: 28px 12px;
  }

  .architecture-stats {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .graph-toolbar {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 10px;
  }

  .graph-brand {
    width: 100%;
  }

  .mode-switcher {
    flex: 1;
  }

  .mode-button {
    flex: 1;
  }

  .graph-actions {
    margin-left: auto;
  }

  .toolbar-divider,
  .zoom-readout {
    display: none;
  }

  .graph-viewport {
    height: 590px;
    min-height: 590px;
  }

  .node-inspector {
    bottom: 42px;
  }

  .viewport-hint {
    left: 18px;
    right: auto;
  }

  .graph-footer {
    grid-template-columns: 1fr;
  }

  .confidentiality-note {
    text-align: left;
  }

  .graph-coordinate {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-copy small {
    display: none;
  }

  .scenario-card {
    min-width: 198px;
  }

  .conversation-panel {
    min-height: 690px;
  }

  .conversation-head h1 {
    font-size: 29px;
  }

  .session-seal {
    display: none;
  }

  .chat-timeline {
    max-height: 340px;
  }

  .composer-actions {
    justify-content: flex-end;
  }

  .decision-orb-wrap {
    float: none;
    width: 100%;
  }

  .probability-card {
    min-height: auto;
    margin-left: 0;
  }

  .graph-actions .icon-button,
  .graph-actions .fit-button {
    display: none;
  }

  .architecture-heading h2 {
    font-size: 33px;
  }

  .architecture-stats small {
    display: none;
  }
}

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