:root {
  --ink: #10211b;
  --ink-soft: #53665e;
  --ink-muted: #75877f;
  --paper: #f5f6f1;
  --paper-warm: #eef1e9;
  --surface: #ffffff;
  --line: #dce4dd;
  --line-strong: #cbd6ce;
  --forest-950: #071713;
  --forest-900: #0b211b;
  --forest-800: #123329;
  --forest-700: #19513f;
  --teal: #14a077;
  --teal-dark: #0a7c5c;
  --mint: #bfeedd;
  --mint-pale: #e8f7f0;
  --amber: #d49a37;
  --shadow-sm: 0 1px 2px rgb(7 23 19 / 5%), 0 8px 24px rgb(7 23 19 / 5%);
  --shadow-lg: 0 24px 70px rgb(7 23 19 / 16%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --sidebar-width: 332px;
  --topbar-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--forest-950);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.demo-disclosure {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 18px;
  color: #d8f3e8;
  background: var(--forest-950);
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  font-size: 12px;
  letter-spacing: 0.01em;
  text-align: center;
}

.demo-disclosure svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: var(--amber);
  stroke: none;
}

.demo-disclosure strong {
  color: white;
}

.app-shell {
  min-height: 100vh;
  padding-top: 34px;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 34px auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #e8f0ec;
  background:
    radial-gradient(circle at 10% -10%, rgb(26 115 83 / 25%), transparent 32%),
    var(--forest-900);
  border-right: 1px solid rgb(255 255 255 / 7%);
}

.brand {
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 24px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--mint);
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-mark circle {
  fill: var(--forest-900);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.brand .eyebrow {
  color: #8caba0;
}

.brand-name {
  margin: 0;
  color: white;
  font-size: 17px;
  font-weight: 730;
  letter-spacing: -0.01em;
}

.sidebar-section {
  padding: 23px 24px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.step-label {
  color: #6e8d82;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: #a9bbb5;
  font-size: 11px;
  font-weight: 650;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 13px;
  appearance: none;
  color: #eef5f2;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.select-wrap select:hover,
.select-wrap select:focus-visible {
  background: rgb(255 255 255 / 9%);
  border-color: rgb(191 238 221 / 45%);
}

.select-wrap select option {
  color: var(--ink);
  background: white;
}

.select-wrap > svg {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 16px;
  height: 16px;
  color: #8ca49b;
  pointer-events: none;
}

.model-readout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 2px 3px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #4ed19d;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgb(78 209 157 / 10%);
}

.model-readout div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.model-readout span {
  color: #809b91;
  font-size: 10px;
  text-transform: uppercase;
}

.model-readout strong {
  overflow: hidden;
  color: #cae3da;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-help {
  margin: 6px 0 0;
  color: #718b82;
  font-size: 10px;
  line-height: 1.45;
}

.upload-zone {
  min-height: 134px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  text-align: center;
  background: rgb(255 255 255 / 3%);
  border: 1px dashed rgb(191 238 221 / 25%);
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.upload-zone:hover,
.upload-zone.dragover {
  background: rgb(20 160 119 / 8%);
  border-color: rgb(191 238 221 / 55%);
  transform: translateY(-1px);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: var(--mint);
  background: rgb(191 238 221 / 9%);
  border-radius: 9px;
}

.upload-icon svg {
  width: 18px;
  height: 18px;
}

.upload-title {
  color: #e7f1ed;
  font-size: 12px;
  font-weight: 700;
}

.upload-copy {
  margin-top: 2px;
  color: #7e978e;
  font-size: 10px;
}

.upload-privacy {
  margin-top: 7px;
  color: #58756a;
  font-size: 9px;
}

.text-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 3px;
  color: #91afa4;
  background: none;
  border: 0;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

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

.text-button svg {
  width: 14px;
  height: 14px;
}

.file-list {
  display: grid;
  gap: 7px;
  margin: 3px 0 14px;
  padding: 0;
  list-style: none;
}

.file-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 9px;
}

.file-type {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #aee5d1;
  background: rgb(20 160 119 / 12%);
  border-radius: 7px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.file-details {
  min-width: 0;
}

.file-details strong,
.file-details span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-details strong {
  color: #dbe8e3;
  font-size: 10px;
  font-weight: 650;
}

.file-details span {
  color: #6e8b80;
  font-size: 9px;
}

.file-ready {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--forest-900);
  background: #60d8aa;
  border-radius: 99px;
}

.file-ready svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.5;
}

.primary-button,
.secondary-button,
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  font-weight: 750;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}

.primary-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 15px;
  color: #061a13;
  background: #6fe1b4;
  border: 1px solid #83e8c2;
  box-shadow: 0 8px 24px rgb(20 160 119 / 15%);
}

.primary-button:hover:not(:disabled),
.inline-cta:hover:not(:disabled) {
  background: #88ebc5;
  transform: translateY(-1px);
}

.primary-button:disabled,
.inline-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary-button svg,
.inline-cta svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.primary-button.loading .button-label::after {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-left: 8px;
  vertical-align: -2px;
  border: 2px solid rgb(7 23 19 / 25%);
  border-top-color: var(--forest-950);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.index-status {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 10px;
  background: rgb(255 255 255 / 3%);
  border: 1px solid rgb(255 255 255 / 6%);
  border-radius: 9px;
}

.index-status.ready {
  background: rgb(20 160 119 / 7%);
  border-color: rgb(111 225 180 / 18%);
}

.index-status-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #729187;
  background: rgb(255 255 255 / 4%);
  border-radius: 8px;
}

.index-status.ready .index-status-icon {
  color: #72dfb4;
}

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

.index-status span,
.index-status strong {
  display: block;
}

.index-status div > span {
  color: #6e8a80;
  font-size: 9px;
  text-transform: uppercase;
}

.index-status strong {
  margin-top: 1px;
  color: #b8cac3;
  font-size: 10px;
  font-weight: 650;
}

.index-status.ready strong {
  color: #bde9d8;
}

.sidebar-footer {
  margin-top: auto;
  padding: 19px 24px 22px;
}

.secondary-button {
  width: 100%;
  min-height: 40px;
  color: #9cb2aa;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 10%);
  font-size: 11px;
}

.secondary-button:hover {
  color: #e5f0ec;
  background: rgb(255 255 255 / 5%);
  border-color: rgb(255 255 255 / 18%);
}

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

.privacy-note {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  margin-top: 15px;
  color: #668278;
  font-size: 9px;
  line-height: 1.45;
}

.privacy-note svg {
  width: 17px;
  height: 17px;
  color: #4da985;
}

.privacy-note strong {
  color: #89a49a;
}

.main-panel {
  min-height: calc(100vh - 34px);
  margin-left: var(--sidebar-width);
  padding-bottom: 112px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 34px;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(24px, 4vw, 60px);
  background: rgb(245 246 241 / 91%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 650;
}

.topbar-kicker {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}

.app-state {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  color: #667a72;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}

.app-state-dot {
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 99px;
}

.app-state.ready {
  color: #1f6c53;
  background: var(--mint-pale);
  border-color: #c7e9dc;
}

.app-state.ready .app-state-dot {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgb(20 160 119 / 10%);
}

.mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mobile-menu svg {
  width: 20px;
  height: 20px;
}

.workspace {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(42px, 6vw, 82px);
  align-items: center;
  padding: clamp(62px, 8vw, 105px) 0 clamp(68px, 8vw, 98px);
}

.eyebrow.accent {
  color: var(--teal-dark);
}

.intro h1 {
  margin: 12px 0 21px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5vw, 73px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro h1 span {
  color: var(--teal-dark);
}

.intro-description {
  max-width: 545px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.68;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 27px;
}

.capability-list > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  color: #52675e;
  background: rgb(255 255 255 / 75%);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 750;
}

.capability-list svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
  stroke-width: 2.3;
}

.system-card {
  overflow: hidden;
  background: var(--forest-900);
  border: 1px solid rgb(255 255 255 / 5%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.system-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 23px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.system-card-head span,
.system-card-head strong {
  display: block;
}

.system-card-head div > span {
  color: #6e8f84;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-card-head div > strong {
  margin-top: 2px;
  color: #e8f3ef;
  font-size: 13px;
}

.live-chip {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: #a5d8c5;
  background: rgb(111 225 180 / 7%);
  border: 1px solid rgb(111 225 180 / 13%);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 750;
}

.live-chip i {
  width: 6px;
  height: 6px;
  background: #60d8aa;
  border-radius: 99px;
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  position: relative;
  min-height: 140px;
  display: grid;
  grid-template-columns: 43px 1fr;
  align-content: center;
  gap: 13px;
  padding: 24px;
  border-right: 1px solid rgb(255 255 255 / 7%);
  border-bottom: 1px solid rgb(255 255 255 / 7%);
}

.pipeline li:nth-child(2n) {
  border-right: 0;
}

.pipeline li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.pipeline-number {
  position: absolute;
  top: 10px;
  right: 12px;
  color: rgb(255 255 255 / 14%);
  font-family: Georgia, serif;
  font-size: 26px;
}

.pipeline-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #8fe2c3;
  background: rgb(111 225 180 / 8%);
  border: 1px solid rgb(111 225 180 / 12%);
  border-radius: 12px;
}

.pipeline-icon svg {
  width: 22px;
  height: 22px;
}

.pipeline strong,
.pipeline div > span {
  display: block;
}

.pipeline strong {
  margin-top: 2px;
  color: #e5f1ec;
  font-size: 13px;
}

.pipeline div > span {
  margin-top: 3px;
  color: #6f8c82;
  font-size: 10px;
}

.processing-panel {
  margin: -15px 0 58px;
  padding: 28px 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.processing-head {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
}

.processing-head h2 {
  margin: 2px 0 0;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.processing-head > strong {
  color: var(--teal-dark);
  font-size: 18px;
}

.processing-orbit {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: var(--mint-pale);
  border-radius: 14px;
}

.processing-orbit span {
  position: absolute;
  inset: -4px;
  border: 1px dashed #8fd1b8;
  border-radius: 17px;
  animation: spin 5s linear infinite;
}

.processing-orbit svg {
  width: 24px;
  height: 24px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  margin-top: 22px;
  background: #e7ece7;
  border-radius: 99px;
}

.progress-track span {
  width: 12%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--teal-dark), #5bd0a3);
  border-radius: inherit;
  transition: width 380ms ease;
}

.processing-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.processing-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9aa7a1;
  font-size: 10px;
  font-weight: 650;
}

.processing-steps li span {
  width: 7px;
  height: 7px;
  background: #d4ddd7;
  border-radius: 50%;
}

.processing-steps li.active {
  color: var(--teal-dark);
}

.processing-steps li.active span {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgb(20 160 119 / 10%);
}

.processing-steps li.complete {
  color: #4b6f61;
}

.processing-steps li.complete span {
  position: relative;
  background: var(--teal-dark);
}

.chat-section {
  padding-bottom: 50px;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.section-title-row h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.document-count {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: #687a72;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
}

.document-count svg {
  width: 14px;
  height: 14px;
  color: var(--teal-dark);
}

.welcome-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 19px;
  padding: clamp(26px, 4vw, 39px);
  background:
    linear-gradient(120deg, rgb(232 247 240 / 68%), transparent 55%),
    white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.assistant-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #d8f3e8;
  background: var(--forest-800);
  border-radius: 12px;
}

.assistant-avatar.large {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  box-shadow: 0 9px 25px rgb(7 23 19 / 12%);
}

.assistant-avatar svg {
  width: 25px;
  height: 25px;
}

.assistant-avatar svg path:first-child {
  fill: rgb(111 225 180 / 8%);
}

.welcome-label {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.welcome-card h3 {
  margin: 5px 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.welcome-card p {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.case-preview {
  max-width: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 10px;
  margin-top: 18px;
}

.case-preview-image {
  position: relative;
  min-height: 132px;
  margin: 0;
  overflow: hidden;
  background: var(--forest-900);
  border: 1px solid #d6e0d9;
  border-radius: 12px;
}

.case-preview-image img {
  width: 100%;
  height: 132px;
  display: block;
  object-fit: cover;
  object-position: center 56%;
}

.case-preview-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(transparent, rgb(5 21 16 / 84%));
  pointer-events: none;
}

.case-preview-image figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 13px 11px;
}

.case-preview-image figcaption span,
.case-preview-image figcaption strong {
  display: block;
}

.case-preview-image figcaption span {
  color: #9dd5c0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.case-preview-image figcaption strong {
  margin-top: 2px;
  color: white;
  font-size: 11px;
}

.case-preview-pdf {
  min-width: 0;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  background: #f7f3ed;
  border: 1px solid #e4ddd3;
  border-radius: 12px;
}

.preview-pdf-icon {
  width: 39px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #a64e43;
  background: white;
  border: 1px solid #e6dcd4;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgb(77 52 44 / 7%);
}

.preview-pdf-icon svg {
  width: 21px;
  height: 21px;
}

.case-preview-pdf div {
  min-width: 0;
}

.case-preview-pdf div span,
.case-preview-pdf div strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-preview-pdf div span {
  color: #927e72;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-preview-pdf div strong {
  margin-top: 3px;
  color: #4a3931;
  font-size: 10px;
}

.case-preview-pdf > b {
  padding: 4px 6px;
  color: #9d443a;
  background: #f0dfda;
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0.05em;
}

.inline-cta {
  width: max-content;
  margin-top: 17px;
  padding: 9px 13px;
  color: white;
  background: var(--teal-dark);
  border: 1px solid var(--teal-dark);
  font-size: 11px;
}

.messages {
  display: grid;
  gap: 18px;
}

.message {
  display: grid;
  gap: 11px;
  animation: message-in 260ms ease both;
}

.message.user {
  justify-items: end;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.message-avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--forest-800);
  border-radius: 8px;
}

.message.user .message-avatar {
  color: var(--forest-800);
  background: #dfe7e1;
}

.message-avatar svg {
  width: 15px;
  height: 15px;
}

.message-bubble {
  max-width: min(810px, 86%);
  padding: 17px 19px;
  color: #263b32;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px 16px 16px 16px;
  box-shadow: var(--shadow-sm);
}

.message.user .message-bubble {
  color: #eaf3ef;
  background: var(--forest-800);
  border-color: var(--forest-800);
  border-radius: 16px 5px 16px 16px;
  box-shadow: none;
}

.message-bubble p {
  margin: 0;
}

.message-bubble p + p {
  margin-top: 10px;
}

.message-bubble strong {
  color: var(--ink);
}

.message.user .message-bubble strong {
  color: white;
}

.thinking-bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 75px;
}

.thinking-bubble i {
  width: 7px;
  height: 7px;
  background: #73a793;
  border-radius: 50%;
  animation: thinking 1.1s infinite ease-in-out;
}

.thinking-bubble i:nth-child(2) {
  animation-delay: 120ms;
}

.thinking-bubble i:nth-child(3) {
  animation-delay: 240ms;
}

.source-block {
  max-width: min(810px, 86%);
  overflow: hidden;
  background: #f9faf7;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.source-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  color: #50665d;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.source-block summary::-webkit-details-marker {
  display: none;
}

.source-summary-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-summary-label svg {
  width: 14px;
  height: 14px;
  color: var(--teal-dark);
}

.source-chevron {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.source-block[open] .source-chevron {
  transform: rotate(180deg);
}

.source-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.source-card {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: inherit;
  text-align: left;
  background: white;
  border: 1px solid #e1e7e1;
  border-radius: 9px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.source-card:hover {
  border-color: #a5c9ba;
  transform: translateY(-1px);
}

.source-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: var(--mint-pale);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 850;
}

.source-card-copy {
  min-width: 0;
}

.source-card-copy strong,
.source-card-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-card-copy strong {
  color: #30473d;
  font-size: 10px;
}

.source-card-copy span {
  margin-top: 2px;
  color: #8b9a94;
  font-size: 9px;
}

.source-distance {
  color: #779087;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8px;
}

.suggested-questions {
  margin-top: 27px;
}

.suggested-questions > p {
  margin: 0 0 11px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.suggestion-grid > button {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 10px;
  padding: 13px;
  color: inherit;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 1px 1px rgb(7 23 19 / 2%);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.suggestion-grid > button:hover:not(:disabled) {
  border-color: #a7caba;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.suggestion-grid > button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.suggestion-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  background: var(--mint-pale);
  border-radius: 9px;
}

.suggestion-icon svg {
  width: 18px;
  height: 18px;
}

.suggestion-grid strong,
.suggestion-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-grid strong {
  color: #30443b;
  font-size: 10px;
}

.suggestion-grid small {
  margin-top: 3px;
  color: #83928c;
  font-size: 8px;
}

.suggestion-grid .arrow {
  width: 14px;
  height: 14px;
  color: #9bacA5;
}

.chat-composer {
  position: fixed;
  z-index: 19;
  inset: auto 0 0 var(--sidebar-width);
  padding: 15px max(24px, calc((100vw - var(--sidebar-width) - 1140px) / 2 + 24px)) 12px;
  background: linear-gradient(to top, var(--paper) 74%, rgb(245 246 241 / 0%));
}

.composer-inner {
  height: 56px;
  display: grid;
  grid-template-columns: 24px 1fr 39px;
  align-items: center;
  gap: 10px;
  padding: 0 9px 0 17px;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  box-shadow: 0 13px 40px rgb(7 23 19 / 9%);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.composer-inner:focus-within {
  border-color: #78b9a0;
  box-shadow: 0 13px 40px rgb(7 23 19 / 9%), 0 0 0 3px rgb(20 160 119 / 8%);
}

.composer-search {
  width: 20px;
  height: 20px;
  color: #8fa099;
}

.composer-inner input {
  width: 100%;
  height: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}

.composer-inner input::placeholder {
  color: #9ba8a2;
}

.composer-inner input:disabled {
  cursor: not-allowed;
}

.composer-inner button {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  padding: 0;
  color: white;
  background: var(--teal-dark);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition:
    background 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.composer-inner button:hover:not(:disabled) {
  background: var(--forest-800);
  transform: translateY(-1px);
}

.composer-inner button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.composer-inner button svg {
  width: 19px;
  height: 19px;
}

.chat-composer > p {
  margin: 6px 0 0;
  color: #8b9993;
  font-size: 8px;
  text-align: center;
}

.chat-composer > p button {
  padding: 0;
  color: #547b6c;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 98px;
  max-width: 360px;
  padding: 12px 15px;
  color: #eaf5f1;
  background: var(--forest-800);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

dialog {
  width: min(650px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background: rgb(5 18 14 / 58%);
  backdrop-filter: blur(4px);
}

.dialog-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.dialog-head h2 {
  margin: 2px 0 0;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.icon-button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: #63746d;
  background: #f4f6f2;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--ink);
  background: #edf1ec;
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.dialog-body {
  padding: 23px 24px 28px;
}

.source-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.source-metadata span {
  padding: 6px 8px;
  color: #587067;
  background: #f2f5f1;
  border: 1px solid #e1e8e2;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}

.source-excerpt {
  padding: 17px 18px;
  color: #384f45;
  background: #f8faf7;
  border-left: 3px solid var(--teal);
  border-radius: 0 11px 11px 0;
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.7;
}

.inspection-visual {
  margin: 19px 0 0;
  overflow: hidden;
  background: var(--forest-900);
  border: 1px solid #d4dfd8;
  border-radius: 13px;
}

.inspection-visual img {
  width: 100%;
  max-height: 390px;
  display: block;
  object-fit: cover;
}

.inspection-visual figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  color: #bad2c9;
  background: var(--forest-900);
  font-size: 9px;
  font-weight: 650;
}

.inspection-visual figcaption span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.evidence-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: #d89b31;
  border-radius: 50%;
}

.evidence-dot.alert {
  background: #e05245;
}

.evidence-dot.gauge {
  background: #52c99a;
}

.pdf-preview {
  margin-top: 19px;
  overflow: hidden;
  background: #27322d;
  border: 1px solid #cfd9d2;
  border-radius: 13px;
  box-shadow: 0 15px 36px rgb(7 23 19 / 10%);
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  color: #b8c9c1;
  font-size: 9px;
  font-weight: 700;
}

.pdf-badge {
  padding: 4px 6px;
  color: #ffe9e4;
  background: #a7483e;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.pdf-sheet {
  margin: 0 12px 12px;
  padding: 25px 27px 21px;
  color: #2f4038;
  background: #fffefb;
  border-radius: 3px;
  box-shadow: 0 5px 20px rgb(0 0 0 / 15%);
}

.pdf-sheet-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.pdf-sheet-head div span,
.pdf-sheet-head div strong {
  display: block;
}

.pdf-sheet-head div span {
  color: #829189;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pdf-sheet-head div strong {
  margin-top: 4px;
  color: #1c3c30;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.pdf-sheet-head b {
  padding: 5px 7px;
  color: #537267;
  background: #edf3ef;
  border-radius: 5px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8px;
}

.pdf-rule {
  height: 2px;
  margin: 16px 0 13px;
  background: linear-gradient(90deg, var(--teal-dark) 0 26%, #dce5df 26% 100%);
}

.pdf-table {
  border-top: 1px solid #dfe6e1;
}

.pdf-table > div {
  display: grid;
  grid-template-columns: minmax(66px, 0.26fr) minmax(0, 1fr);
  gap: 14px;
  padding: 9px 3px;
  border-bottom: 1px solid #e5ebe7;
}

.pdf-table span {
  color: #8a9992;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.pdf-table strong {
  color: #3a4d44;
  font-size: 9px;
  font-weight: 650;
}

.pdf-signoff {
  margin-top: 18px;
  color: #a3aea8;
  font-size: 7px;
  font-style: italic;
  text-align: center;
}

.prose {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.prose p {
  margin-top: 0;
}

.prose ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.prose li + li {
  margin-top: 7px;
}

:focus-visible {
  outline: 3px solid rgb(30 166 124 / 35%);
  outline-offset: 2px;
}

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

@keyframes thinking {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

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

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 304px;
  }

  .workspace {
    width: min(960px, calc(100% - 42px));
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    max-width: 720px;
  }

  .system-card {
    max-width: 720px;
  }

  .suggestion-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .demo-disclosure {
    justify-content: flex-start;
    overflow: hidden;
    text-align: left;
    white-space: nowrap;
  }

  .demo-disclosure span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar {
    width: min(340px, 88vw);
    box-shadow: 20px 0 60px rgb(5 18 14 / 32%);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-panel {
    margin-left: 0;
  }

  .topbar {
    padding: 0 18px;
  }

  .mobile-menu {
    display: grid;
  }

  .topbar-title {
    margin-right: auto;
  }

  .topbar-title > span:not(.topbar-kicker) {
    display: none;
  }

  .topbar-divider {
    display: none;
  }

  .workspace {
    width: min(100% - 32px, 700px);
  }

  .chat-composer {
    left: 0;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 560px) {
  .demo-disclosure {
    min-height: 40px;
    font-size: 10px;
  }

  .app-shell {
    padding-top: 40px;
  }

  .sidebar {
    top: 40px;
  }

  .topbar {
    top: 40px;
  }

  .app-state {
    padding: 7px 9px;
  }

  .app-state span:last-child {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .intro {
    gap: 35px;
    padding: 50px 0 62px;
  }

  .intro h1 {
    font-size: clamp(42px, 14vw, 57px);
  }

  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline li,
  .pipeline li:nth-child(2n),
  .pipeline li:nth-last-child(-n + 2) {
    min-height: 108px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 7%);
  }

  .pipeline li:last-child {
    border-bottom: 0;
  }

  .processing-panel {
    padding: 22px 19px;
  }

  .processing-head {
    grid-template-columns: 44px 1fr;
  }

  .processing-head > strong {
    display: none;
  }

  .processing-steps {
    grid-template-columns: 1fr 1fr;
  }

  .section-title-row {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .welcome-card {
    grid-template-columns: 1fr;
  }

  .case-preview {
    grid-template-columns: 1fr;
  }

  .pdf-sheet {
    padding: 20px 17px 17px;
  }

  .pdf-sheet-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .message-bubble,
  .source-block {
    max-width: 94%;
  }

  .source-card {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .source-distance {
    display: none;
  }

  .chat-composer {
    padding-bottom: 8px;
  }

  .chat-composer > p {
    display: none;
  }
}

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

/* Two-view demo navigation */

.view-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: #e9eee9;
  border: 1px solid #d9e1da;
  border-radius: 11px;
}

.view-tab {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  color: #71827a;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 780;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

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

.view-tab:hover {
  color: #29463a;
}

.view-tab.active {
  color: #174c3b;
  background: white;
  box-shadow: 0 1px 5px rgb(7 23 19 / 9%);
}

.main-panel,
.sidebar {
  transition:
    margin-left 220ms ease,
    transform 220ms ease;
}

.sidebar.architecture-hidden {
  transform: translateX(-105%);
}

.main-panel.architecture-mode {
  margin-left: 0;
  padding-bottom: 30px;
  transition: none;
}

.main-panel.architecture-mode .mobile-menu {
  display: none;
}

/* Compact chat landing */

.chat-view .intro {
  display: block;
  padding: 38px 0 25px;
}

.chat-view .intro-copy {
  max-width: 830px;
}

.chat-view .intro h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 4vw, 49px);
  line-height: 1.04;
}

.chat-view .intro-description {
  max-width: 730px;
  font-size: 14px;
  line-height: 1.58;
}

.chat-view .capability-list {
  margin-top: 17px;
}

.chat-view .capability-list > span {
  padding: 6px 10px 6px 7px;
}

.chat-view .capability-list b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--teal-dark);
  border-radius: 99px;
  font-size: 8px;
}

.chat-view .system-card {
  display: none;
}

.chat-view .section-title-row {
  margin-bottom: 16px;
}

.chat-view .section-title-row h2 {
  font-size: clamp(25px, 2.6vw, 33px);
}

.chat-view .welcome-card {
  grid-template-columns: 1fr;
  gap: 0;
  padding: clamp(22px, 3vw, 30px);
}

.chat-view .welcome-card > .assistant-avatar {
  display: none;
}

/* Architecture view */

.architecture-view {
  padding: 55px 0 80px;
}

.architecture-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 32px;
}

.architecture-hero > div:first-child {
  max-width: 720px;
}

.architecture-hero h1 {
  margin: 8px 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.4vw, 61px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.architecture-hero h1 span {
  color: var(--teal-dark);
}

.architecture-hero > div:first-child > p:last-child {
  max-width: 670px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.architecture-summary {
  min-width: 220px;
  display: grid;
  gap: 9px;
  padding: 15px 17px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.architecture-summary span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #50685e;
  font-size: 10px;
  font-weight: 700;
}

.architecture-summary i {
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(20 160 119 / 9%);
}

.architecture-map {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.architecture-lane {
  padding: 28px;
}

.lane-heading {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.lane-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--forest-800);
  border-radius: 10px;
  font-family: Georgia, serif;
  font-size: 12px;
}

.lane-heading h2 {
  margin: 0;
  color: #17392e;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.lane-heading p {
  margin: 2px 0 0;
  color: #84938d;
  font-size: 9px;
}

.lane-trigger {
  padding: 7px 9px;
  color: #53766a;
  background: #f0f5f1;
  border: 1px solid #dce7df;
  border-radius: 7px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8px;
}

.flow-track {
  display: grid;
  align-items: stretch;
}

.indexing-flow {
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr);
}

.answering-flow {
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr);
}

.flow-node {
  position: relative;
  min-width: 0;
  min-height: 192px;
  padding: 17px;
  background: #f9faf7;
  border: 1px solid #dfe6e0;
  border-radius: 14px;
}

.flow-node.featured {
  background: linear-gradient(145deg, #eaf7f1, #f8fbf8);
  border-color: #bcdccc;
}

.flow-node.answer-node {
  color: #e7f3ee;
  background: var(--forest-800);
  border-color: var(--forest-800);
}

.flow-node-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--teal-dark);
  background: var(--mint-pale);
  border: 1px solid #d2eade;
  border-radius: 10px;
}

.flow-node-icon svg {
  width: 20px;
  height: 20px;
}

.flow-node-icon.vision {
  color: #7565a8;
  background: #f0edfa;
  border-color: #e0daf3;
}

.flow-node-icon.chunk,
.flow-node-icon.context {
  color: #9a6a2e;
  background: #f8f1e5;
  border-color: #eadcc4;
}

.flow-node-icon.database,
.flow-node-icon.search {
  color: #087657;
  background: #dff4eb;
  border-color: #c4e6d8;
}

.flow-node-icon.question {
  color: #426c9c;
  background: #e9f0f8;
  border-color: #d7e3f1;
}

.flow-node-icon.model {
  color: #815d9a;
  background: #f3edf7;
  border-color: #e3d8ea;
}

.flow-node-icon.answer {
  color: #d5f4e7;
  background: rgb(111 225 180 / 9%);
  border-color: rgb(111 225 180 / 15%);
}

.flow-step {
  display: block;
  margin-bottom: 3px;
  color: #83938c;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-node h3 {
  margin: 0;
  color: #27453a;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.flow-node p {
  margin: 6px 0 0;
  color: #788981;
  font-size: 9px;
  line-height: 1.55;
}

.answer-node .flow-step,
.answer-node p {
  color: #8eaba0;
}

.answer-node h3 {
  color: #edf7f3;
}

.flow-link {
  position: relative;
  min-height: 60px;
}

.flow-link::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  left: 4px;
  height: 2px;
  background: #cbd9d1;
  transform: translateY(-50%);
}

.flow-link::after {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: 3px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #9cb3a8;
  border-right: 2px solid #9cb3a8;
  transform: rotate(45deg);
}

.flow-link i {
  position: absolute;
  z-index: 1;
  top: calc(50% - 3px);
  left: 4px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(20 160 119 / 10%);
  animation: flow-horizontal 2.2s ease-in-out infinite;
}

.answering-flow .flow-link:nth-of-type(2) i {
  animation-delay: 300ms;
}

.answering-flow .flow-link:nth-of-type(3) i {
  animation-delay: 600ms;
}

.answering-flow .flow-link:nth-of-type(4) i {
  animation-delay: 900ms;
}

.knowledge-core {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 17px;
  overflow: hidden;
  padding: 21px 28px;
  color: #dcece5;
  background:
    radial-gradient(circle at 82% 20%, rgb(34 144 105 / 23%), transparent 32%),
    var(--forest-900);
  border-top: 1px solid rgb(255 255 255 / 5%);
  border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.core-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #8fe1c2;
  background: rgb(111 225 180 / 8%);
  border: 1px solid rgb(111 225 180 / 13%);
  border-radius: 15px;
}

.core-icon svg {
  width: 28px;
  height: 28px;
}

.knowledge-core > div:nth-of-type(2) > span,
.knowledge-core > div:nth-of-type(2) > strong,
.knowledge-core > div:nth-of-type(2) > p {
  display: block;
}

.knowledge-core > div:nth-of-type(2) > span {
  color: #6f9386;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.knowledge-core > div:nth-of-type(2) > strong {
  margin-top: 2px;
  color: white;
  font-size: 16px;
}

.knowledge-core > div:nth-of-type(2) > p {
  margin: 3px 0 0;
  color: #77978b;
  font-size: 9px;
}

.core-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.core-tags span {
  padding: 5px 8px;
  color: #9ec9b9;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 99px;
  font-size: 8px;
  font-weight: 700;
}

.core-rings {
  position: absolute;
  top: 50%;
  right: 18%;
  width: 180px;
  height: 180px;
  pointer-events: none;
  transform: translateY(-50%);
}

.core-rings span {
  position: absolute;
  inset: 50%;
  border: 1px solid rgb(111 225 180 / 8%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: core-ripple 3.4s ease-out infinite;
}

.core-rings span:nth-child(2) {
  animation-delay: 1.1s;
}

.core-rings span:nth-child(3) {
  animation-delay: 2.2s;
}

.stack-section {
  margin-top: 26px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.architecture-section-heading h2 {
  margin: 3px 0 0;
  color: #17392e;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.architecture-section-heading > p {
  margin: 0;
  color: #87958f;
  font-size: 10px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stack-grid article {
  min-height: 126px;
  padding: 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stack-grid span,
.stack-grid strong {
  display: block;
}

.stack-grid span {
  color: var(--teal-dark);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stack-grid strong {
  margin-top: 5px;
  color: #2c493e;
  font-size: 12px;
}

.stack-grid p {
  margin: 6px 0 0;
  color: #83918b;
  font-size: 9px;
  line-height: 1.5;
}

.design-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 12px;
}

.design-principles article {
  display: grid;
  grid-template-columns: 29px 1fr;
  gap: 11px;
  padding: 17px;
  background: #eef2ec;
  border: 1px solid #dce4dc;
  border-radius: 13px;
}

.design-principles article > span {
  color: var(--teal-dark);
  font-family: Georgia, serif;
  font-size: 16px;
}

.design-principles strong {
  color: #2a493d;
  font-size: 11px;
}

.design-principles p {
  margin: 4px 0 0;
  color: #7a8982;
  font-size: 9px;
  line-height: 1.5;
}

@keyframes flow-horizontal {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  20%,
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(25px);
  }
}

@keyframes core-ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.7;
  }
  100% {
    width: 180px;
    height: 180px;
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .architecture-hero {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }

  .architecture-summary {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .flow-track {
    max-width: 680px;
    grid-template-columns: 1fr;
    margin: 0 auto;
  }

  .flow-node {
    min-height: 0;
  }

  .flow-link {
    width: 100%;
    min-height: 34px;
  }

  .flow-link::before {
    inset: 3px auto 3px 50%;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .flow-link::after {
    top: auto;
    right: auto;
    bottom: 3px;
    left: calc(50% - 4px);
    transform: rotate(135deg);
  }

  .flow-link i {
    top: 3px;
    left: calc(50% - 3px);
    animation-name: flow-vertical;
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@keyframes flow-vertical {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  20%,
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(25px);
  }
}

@media (max-width: 820px) {
  .topbar-title,
  .app-state {
    display: none;
  }

  .view-tabs {
    margin: 0 auto;
  }

  .architecture-view {
    padding-top: 40px;
  }

  .architecture-lane,
  .stack-section {
    padding: 21px;
  }

  .design-principles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .view-tab {
    padding-right: 9px;
    padding-left: 9px;
  }

  .chat-view .intro {
    padding: 30px 0 20px;
  }

  .chat-view .intro h1 {
    font-size: 35px;
  }

  .architecture-hero h1 {
    font-size: 39px;
  }

  .architecture-summary {
    grid-template-columns: 1fr;
  }

  .lane-heading {
    grid-template-columns: 34px 1fr;
  }

  .lane-trigger {
    display: none;
  }

  .knowledge-core {
    grid-template-columns: 45px 1fr;
    padding: 19px;
  }

  .core-icon {
    width: 45px;
    height: 45px;
  }

  .core-tags {
    display: none;
  }

  .architecture-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }
}

/* Interactive architecture graph */

.case-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-preview-image-file {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  background: #eef7f3;
  border: 1px solid #d1e5dc;
  border-radius: 12px;
}

.preview-image-label {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #087657;
  background: white;
  border: 1px solid #cde3d9;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgb(18 88 66 / 7%);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.case-preview-image-file div {
  min-width: 0;
}

.case-preview-image-file div span,
.case-preview-image-file div strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-preview-image-file div span {
  color: #708c81;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-preview-image-file div strong {
  margin-top: 3px;
  color: #29483c;
  font-size: 10px;
}

.case-preview-image-file > b {
  padding: 4px 6px;
  color: #087657;
  background: #d8eee5;
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0.05em;
}

.suggestion-file-type {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.architecture-view {
  padding: 18px 0 28px;
}

.graph-shell {
  overflow: hidden;
  color: #dcebe5;
  background: #071713;
  border: 1px solid #17372c;
  border-radius: 17px;
  box-shadow: 0 24px 70px rgb(4 18 14 / 25%);
}

.graph-toolbar,
.graph-footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgb(8 27 21 / 94%);
  backdrop-filter: blur(16px);
}

.graph-toolbar {
  min-height: 58px;
  padding: 10px 13px 10px 17px;
  border-bottom: 1px solid #1c3a30;
}

.graph-brand,
.graph-controls,
.graph-legend,
.graph-tech-rail {
  display: flex;
  align-items: center;
}

.graph-brand {
  min-width: 0;
  gap: 10px;
}

.graph-live {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #49db9f;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(73 219 159 / 10%), 0 0 16px #31c58a;
  animation: graph-live-pulse 2s ease-in-out infinite;
}

.graph-brand strong {
  color: #eff8f4;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.graph-brand > span:last-child {
  max-width: 460px;
  overflow: hidden;
  color: #759287;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-brand > span:last-child::before {
  content: "/";
  margin-right: 10px;
  color: #365a4c;
}

.graph-controls {
  gap: 5px;
}

.graph-controls button {
  min-width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: #a4beb4;
  background: #102a21;
  border: 1px solid #24463a;
  border-radius: 7px;
  font: inherit;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
  transition: 140ms ease;
}

.graph-controls button:hover,
.graph-controls button:focus-visible {
  color: white;
  background: #17392d;
  border-color: #39715e;
  outline: none;
}

.graph-controls .graph-run {
  gap: 5px;
  padding: 0 11px;
  color: #092219;
  background: #65e0ae;
  border-color: #65e0ae;
}

.graph-controls .graph-run:hover,
.graph-controls .graph-run:focus-visible {
  color: #061a13;
  background: #8aebc5;
  border-color: #8aebc5;
}

.graph-run svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}

.graph-control-divider {
  width: 1px;
  height: 18px;
  margin: 0 3px;
  background: #27463b;
}

.graph-controls output {
  min-width: 38px;
  color: #6e8e82;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8px;
  text-align: center;
}

.graph-viewport {
  position: relative;
  min-height: 570px;
  height: min(720px, calc(100vh - 205px));
  overflow: auto;
  background: #071713;
  cursor: grab;
  scrollbar-color: #24483a #0a1e17;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.graph-viewport:focus-visible {
  outline: 2px solid #4cd9a2;
  outline-offset: -2px;
}

.graph-viewport.dragging {
  cursor: grabbing;
  user-select: none;
}

.graph-space {
  position: relative;
  width: 1460px;
  height: 720px;
  margin: 0 auto;
}

.graph-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1460px;
  height: 720px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgb(36 120 86 / 10%), transparent 36%),
    linear-gradient(rgb(44 84 69 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(44 84 69 / 8%) 1px, transparent 1px),
    radial-gradient(circle, #315348 1px, transparent 1.2px),
    #071713;
  background-size: auto, 120px 120px, 120px 120px, 24px 24px, auto;
  transform: scale(1);
  transform-origin: 0 0;
}

.graph-stage::before,
.graph-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.graph-stage::before {
  top: 0;
  bottom: 0;
  left: 425px;
  width: 1px;
  background: linear-gradient(transparent, rgb(72 146 115 / 20%), transparent);
}

.graph-stage::after {
  top: 0;
  right: 0;
  width: 330px;
  height: 100%;
  background: radial-gradient(circle at 70% 73%, rgb(91 207 161 / 8%), transparent 52%);
}

.graph-lane-label {
  position: absolute;
  z-index: 2;
  left: 31px;
  padding: 5px 8px;
  color: #648276;
  background: rgb(12 37 28 / 85%);
  border: 1px solid #1b3c30;
  border-radius: 5px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.indexing-label {
  top: 25px;
}

.query-label {
  top: 451px;
}

.graph-lane-rule {
  position: absolute;
  z-index: 1;
  top: 431px;
  right: 30px;
  left: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1d4133 12%, #1d4133 88%, transparent);
}

.graph-edges {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 1460px;
  height: 720px;
  overflow: visible;
  pointer-events: none;
}

#graph-arrow path {
  fill: #44695a;
}

.graph-edge {
  fill: none;
  stroke: #345347;
  stroke-width: 1.7;
  stroke-dasharray: 5 7;
  marker-end: url(#graph-arrow);
  opacity: 0.75;
  animation: graph-edge-drift 1.25s linear infinite;
  transition: opacity 180ms ease, stroke 180ms ease, stroke-width 180ms ease;
}

.graph-edge.image-edge {
  stroke: #775fa0;
}

.graph-edge.query-edge {
  stroke: #3b715e;
}

.graph-edge.memory-edge {
  stroke: #3c8f72;
}

.graph-edge.optional-edge {
  opacity: 0.32;
  stroke: #8a6da0;
}

.graph-edge.selected,
.graph-edge.running {
  stroke: #6cf0b9;
  stroke-width: 2.8;
  opacity: 1;
  filter: url(#graph-glow);
}

.graph-edge.complete {
  stroke: #43b98b;
  opacity: 0.9;
}

.graph-shell[data-provider="ollama"] .graph-edge[data-provider="gemini"],
.graph-shell[data-provider="ollama"] .graph-node[data-node="gemini"],
.graph-shell[data-provider="gemini"] .graph-edge[data-provider="ollama"],
.graph-shell[data-provider="gemini"] .graph-node[data-node="qwen"] {
  opacity: 0.28;
}

.graph-shell[data-provider="ollama"] .gemini-particle,
.graph-shell[data-provider="gemini"] .qwen-particle {
  display: none;
}

.graph-particle {
  fill: #72f0bd;
  filter: url(#graph-glow);
}

.image-particle {
  fill: #c3a5ec;
}

.memory-particle {
  fill: #68dcb0;
}

.query-particle {
  fill: #6ee3b5;
}

.graph-node {
  --node-accent: #4dc895;
  position: absolute;
  z-index: 3;
  top: var(--node-y);
  left: var(--node-x);
  width: 155px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 13px 14px;
  color: #dcebe5;
  background: linear-gradient(145deg, rgb(18 47 37 / 96%), rgb(10 31 24 / 98%));
  border: 1px solid #315346;
  border-top: 2px solid var(--node-accent);
  border-radius: 9px;
  box-shadow: 0 12px 28px rgb(0 0 0 / 20%);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.graph-node:hover {
  border-color: #59987f;
  box-shadow: 0 14px 34px rgb(0 0 0 / 28%), 0 0 0 1px rgb(91 222 168 / 10%);
  transform: translateY(-2px);
}

.graph-node:focus-visible {
  outline: 2px solid #73e8ba;
  outline-offset: 3px;
}

.graph-node > span,
.graph-node > strong,
.graph-node > em {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-node > span {
  margin-bottom: 4px;
  color: var(--node-accent);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.graph-node > strong {
  color: #edf7f3;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.graph-node > em {
  margin-top: 4px;
  color: #668479;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8px;
  font-style: normal;
}

.graph-node.selected,
.graph-node.running {
  border-color: #6ce5b4;
  box-shadow: 0 0 0 2px rgb(78 223 166 / 18%), 0 0 30px rgb(66 218 159 / 18%);
}

.graph-node.related {
  border-color: #4d806c;
}

.graph-node.complete::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #64e5b1;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(100 229 177 / 9%), 0 0 11px #64e5b1;
}

.source-node {
  width: 120px;
  min-height: 64px;
  padding: 11px 13px;
  background: linear-gradient(145deg, #112d24, #0a211a);
}

.source-node > span {
  margin-bottom: 3px;
}

.source-node > strong {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.pdf-node {
  --node-accent: #d78378;
}

.docx-node {
  --node-accent: #71a7dc;
}

.image-node,
.vision-node {
  --node-accent: #ae8fd7;
}

.memory-node,
.retrieval-node {
  --node-accent: #56e0aa;
}

.query-start-node {
  --node-accent: #e0b462;
  width: 145px;
}

.provider-node {
  width: 145px;
  min-height: 74px;
}

.cloud-node {
  --node-accent: #bc8ad8;
}

.answer-graph-node {
  --node-accent: #91efc8;
  width: 145px;
  background: linear-gradient(145deg, #164c39, #0d3025);
}

.router-node {
  --node-accent: #64dfad;
  width: 95px;
  min-height: 95px;
  align-items: center;
  padding: 0;
  border-top-width: 1px;
  border-radius: 12px;
  transform: rotate(45deg);
}

.router-node:hover {
  transform: rotate(45deg) scale(1.04);
}

.router-node > span {
  display: grid;
  place-items: center;
  margin: 0;
  overflow: visible;
  color: inherit;
  transform: rotate(-45deg);
}

.router-node small {
  color: #64dfad;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.router-node strong {
  margin-top: 3px;
  color: white;
  font-size: 12px;
}

.end-node {
  width: 62px;
  min-height: 54px;
  align-items: center;
  padding: 0;
  border-color: #4da985;
  border-radius: 99px;
}

.end-node > strong {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.port {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 9px;
  height: 9px;
  background: #091d16;
  border: 2px solid #5b937c;
  border-radius: 50%;
  transform: translateY(-50%);
}

.port-in {
  left: -6px;
}

.port-out {
  right: -6px;
}

.port-top {
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.port-bottom {
  top: auto;
  right: auto;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.graph-footer {
  min-height: 46px;
  padding: 8px 16px;
  border-top: 1px solid #1c3a30;
}

.graph-legend {
  gap: 13px;
}

.graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #718d82;
  font-size: 8px;
}

.graph-legend i {
  width: 6px;
  height: 6px;
  background: #4dc895;
  border-radius: 50%;
}

.graph-legend .legend-query {
  background: #e0b462;
}

.graph-legend .legend-vision {
  background: #ae8fd7;
}

.graph-tech-rail {
  gap: 5px;
}

.graph-tech-rail button {
  padding: 4px 7px;
  color: #78968a;
  background: transparent;
  border: 1px solid #244438;
  border-radius: 5px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  cursor: pointer;
}

.graph-tech-rail button:hover,
.graph-tech-rail button:focus-visible {
  color: #dff5ec;
  border-color: #4d806c;
  outline: none;
}

.graph-hint {
  color: #49685c;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
}

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

@keyframes graph-live-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .architecture-view {
    padding: 12px 0 20px;
  }

  .graph-shell {
    border-radius: 12px;
  }

  .graph-brand > span:last-child,
  .graph-tech-rail,
  .graph-hint {
    display: none;
  }

  .graph-viewport {
    min-height: 540px;
    height: calc(100vh - 190px);
  }
}

@media (max-width: 560px) {
  .case-preview {
    grid-template-columns: 1fr;
  }

  .graph-toolbar {
    padding-right: 9px;
    padding-left: 11px;
  }

  .graph-brand strong,
  .graph-control-divider,
  .graph-controls output {
    display: none;
  }

  .graph-controls .graph-run {
    padding: 0 9px;
  }

  .graph-footer {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .graph-live,
  .graph-edge {
    animation: none;
  }

  .graph-particle {
    display: none;
  }
}

/* Premium portfolio direction — multimodal intelligence laboratory */

:root {
  --sidebar-width: 310px;
  --topbar-height: 72px;
  --electric-mint: #72f2bd;
  --acid-mint: #a5ffd8;
  --deep-space: #06130f;
  --glass-line: rgb(196 255 228 / 13%);
  --premium-shadow: 0 34px 90px rgb(7 23 19 / 18%);
}

body {
  background:
    radial-gradient(circle at 73% 7%, rgb(46 180 127 / 8%), transparent 25%),
    radial-gradient(circle at 15% 62%, rgb(112 174 142 / 6%), transparent 28%),
    #f0f2ed;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgb(9 55 41 / 8%) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.demo-disclosure {
  min-height: 32px;
  padding-block: 6px;
  color: #90aaa0;
  background:
    linear-gradient(90deg, rgb(37 143 103 / 10%), transparent 30%, transparent 70%, rgb(37 143 103 / 10%)),
    #04110d;
  border-color: rgb(137 240 196 / 10%);
  font-size: 10px;
  letter-spacing: 0.035em;
}

.demo-disclosure svg {
  width: 12px;
  height: 12px;
  fill: #73dbae;
}

.app-shell {
  padding-top: 32px;
}

.sidebar {
  inset-block-start: 32px;
  background:
    radial-gradient(circle at 25% 0%, rgb(50 201 145 / 16%), transparent 24%),
    linear-gradient(165deg, #0b211a 0%, #06150f 55%, #05100d 100%);
  border-color: rgb(158 233 203 / 10%);
  box-shadow: 18px 0 60px rgb(2 14 10 / 12%);
}

.brand {
  position: relative;
  min-height: var(--topbar-height);
  padding-inline: 21px;
  border-color: rgb(152 228 199 / 9%);
}

.brand::after {
  content: "LAB / 04";
  position: absolute;
  top: 13px;
  right: 17px;
  color: #426b5b;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--electric-mint);
  background: linear-gradient(145deg, rgb(124 246 197 / 12%), rgb(124 246 197 / 3%));
  border-color: rgb(144 243 202 / 16%);
  border-radius: 11px;
  box-shadow: inset 0 0 20px rgb(111 238 187 / 5%), 0 10px 28px rgb(0 0 0 / 14%);
}

.brand-name {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.sidebar-section {
  padding: 21px;
  border-color: rgb(152 228 199 / 8%);
}

.section-heading {
  margin-bottom: 15px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step-label {
  padding: 3px 5px;
  color: #67b796;
  background: rgb(101 223 174 / 7%);
  border: 1px solid rgb(101 223 174 / 10%);
  border-radius: 4px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 7px;
}

.select-wrap select,
.model-readout,
.file-item,
.index-status {
  background: rgb(255 255 255 / 4%);
  border-color: rgb(184 239 217 / 10%);
  box-shadow: inset 0 1px rgb(255 255 255 / 2%);
}

.select-wrap select:hover,
.select-wrap select:focus {
  border-color: rgb(103 226 177 / 35%);
}

.file-item {
  border-radius: 10px;
}

.file-type {
  color: #8ce7c1;
  background: rgb(114 242 189 / 8%);
  border: 1px solid rgb(114 242 189 / 12%);
}

.primary-button,
.inline-cta {
  color: #071b13;
  background: linear-gradient(135deg, #9af4cf, #55dba6);
  border-color: #76e8ba;
  box-shadow: 0 12px 30px rgb(42 196 139 / 18%);
}

.primary-button:hover:not(:disabled),
.inline-cta:hover:not(:disabled) {
  background: linear-gradient(135deg, #b5ffe0, #6ceab7);
  box-shadow: 0 16px 38px rgb(42 196 139 / 24%);
  transform: translateY(-2px);
}

.main-panel {
  min-height: calc(100vh - 32px);
}

.topbar {
  top: 32px;
  height: var(--topbar-height);
  padding-inline: clamp(22px, 3vw, 46px);
  background: rgb(245 247 242 / 82%);
  border-color: rgb(26 73 56 / 10%);
  box-shadow: 0 10px 35px rgb(14 44 33 / 4%);
  backdrop-filter: blur(22px) saturate(140%);
}

.topbar-kicker {
  color: #173c2f;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.view-tabs {
  gap: 3px;
  padding: 4px;
  background: rgb(12 48 36 / 6%);
  border: 1px solid rgb(20 71 53 / 8%);
  border-radius: 11px;
}

.view-tab {
  min-height: 33px;
  border-radius: 8px;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.view-tab.active {
  color: #eafff6;
  background: #103b2d;
  box-shadow: 0 8px 20px rgb(7 36 26 / 16%);
}

.view-tab.active:hover {
  color: white;
}

.app-state {
  color: #49675b;
  background: rgb(255 255 255 / 65%);
  border-color: rgb(19 80 57 / 10%);
  box-shadow: 0 8px 24px rgb(7 38 27 / 6%);
}

.workspace {
  width: min(1200px, calc(100% - 44px));
}

/* Immersive hero */

.chat-view .intro {
  position: relative;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
  overflow: hidden;
  margin: 24px 0 42px;
  padding: clamp(42px, 5vw, 72px);
  color: white;
  background:
    radial-gradient(circle at 78% 42%, rgb(59 204 148 / 17%), transparent 29%),
    radial-gradient(circle at 5% 100%, rgb(34 117 87 / 20%), transparent 32%),
    linear-gradient(135deg, #0b241b 0%, #071611 48%, #04100c 100%);
  border: 1px solid rgb(151 236 202 / 12%);
  border-radius: 32px;
  box-shadow: var(--premium-shadow), inset 0 1px rgb(255 255 255 / 5%);
  isolation: isolate;
}

.chat-view .intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 62%);
}

.chat-view .intro::after {
  content: "VLM / 04";
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: rgb(162 219 197 / 28%);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.chat-view .intro-copy {
  position: relative;
  z-index: 3;
  max-width: 560px;
}

.hero-signal {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #83baa5;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-signal i {
  width: 7px;
  height: 7px;
  background: var(--electric-mint);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(114 242 189 / 9%), 0 0 18px rgb(114 242 189 / 80%);
  animation: hero-signal-pulse 2s ease-in-out infinite;
}

.chat-view .intro h1 {
  max-width: 620px;
  margin: 0;
  color: #f4fff9;
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(54px, 5.2vw, 78px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.chat-view .intro h1 span {
  color: transparent;
  background: linear-gradient(100deg, #effff8 8%, #72e9ba 55%, #bcffe2);
  background-clip: text;
  -webkit-background-clip: text;
}

.chat-view .intro-description {
  max-width: 510px;
  margin: 24px 0 0;
  color: #91aa9f;
  font-size: 14px;
  line-height: 1.7;
}

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

.hero-primary,
.hero-secondary {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-primary {
  color: #061710;
  background: linear-gradient(135deg, #b4ffdf, #65e5b2);
  border: 1px solid #a8f7d5;
  box-shadow: 0 15px 38px rgb(58 215 156 / 20%);
}

.hero-primary svg {
  width: 15px;
  height: 15px;
}

.hero-secondary {
  color: #b6cfc5;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(196 255 228 / 12%);
}

.hero-primary:hover,
.hero-primary:focus-visible,
.hero-secondary:hover,
.hero-secondary:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.hero-primary:disabled {
  opacity: 0.48;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.hero-primary:hover,
.hero-primary:focus-visible {
  box-shadow: 0 20px 46px rgb(58 215 156 / 30%);
}

.hero-secondary:hover,
.hero-secondary:focus-visible {
  color: white;
  background: rgb(255 255 255 / 7%);
  border-color: rgb(196 255 228 / 24%);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 31px;
  padding-top: 18px;
  border-top: 1px solid rgb(190 240 220 / 9%);
}

.hero-proof span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #607f73;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-proof b {
  color: #b8d9cb;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 9px;
}

.intelligence-visual {
  position: relative;
  z-index: 2;
  min-width: 0;
  height: 475px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgb(54 213 150 / 10%), transparent 25%),
    rgb(255 255 255 / 1%);
  border: 1px solid rgb(179 240 216 / 9%);
  border-radius: 24px;
  box-shadow: inset 0 0 60px rgb(57 198 142 / 4%);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    linear-gradient(rgb(141 222 189 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(141 222 189 / 5%) 1px, transparent 1px),
    radial-gradient(circle, rgb(133 220 184 / 26%) 0.8px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 18px 18px;
  mask-image: radial-gradient(circle, black, transparent 76%);
}

.visual-grid::before,
.visual-grid::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgb(114 242 189 / 8%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.visual-grid::before {
  width: 310px;
  height: 310px;
}

.visual-grid::after {
  width: 410px;
  height: 410px;
}

.visual-orbit-label {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  color: #4f7968;
  background: rgb(7 27 20 / 72%);
  border: 1px solid rgb(134 221 185 / 9%);
  border-radius: 5px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.14em;
}

.visual-orbit-label i {
  width: 4px;
  height: 4px;
  background: #69dfb0;
  border-radius: 50%;
  box-shadow: 0 0 7px #69dfb0;
}

.orbit-label-top {
  top: 20px;
  left: 20px;
}

.orbit-label-right {
  top: 20px;
  right: 20px;
}

.orbit-label-bottom {
  right: 20px;
  bottom: 48px;
}

.knowledge-scene {
  position: absolute;
  z-index: 3;
  inset: 42px 10px 40px;
  perspective: 950px;
  cursor: grab;
  touch-action: pan-y;
}

.knowledge-scene:active,
.knowledge-scene.dragging {
  cursor: grabbing;
}

.knowledge-scene:focus-visible {
  outline: 1px solid rgb(114 242 189 / 55%);
  outline-offset: -5px;
  border-radius: 18px;
}

.scene-tilt {
  --scene-x: -8deg;
  --scene-y: 12deg;
  --scene-scale: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%) rotateX(var(--scene-x)) rotateY(var(--scene-y)) scale(var(--scene-scale));
  transform-style: preserve-3d;
  transition: transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.knowledge-scene.dragging .scene-tilt {
  transition: none;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgb(109 237 186 / 28%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgb(76 220 162 / 4%);
  transform-style: preserve-3d;
}

.orbit-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px dashed rgb(126 238 193 / 8%);
  border-radius: inherit;
}

.orbit-ring-one {
  width: 310px;
  height: 310px;
  margin: -155px;
  animation: orbit-one-spin 18s linear infinite;
}

.orbit-ring-two {
  width: 255px;
  height: 255px;
  margin: -127.5px;
  border-color: rgb(183 145 231 / 24%);
  animation: orbit-two-spin 13s linear infinite reverse;
}

.orbit-ring-three {
  width: 205px;
  height: 205px;
  margin: -102.5px;
  animation: orbit-three-spin 10s linear infinite;
}

.orbit-ring i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #79edbd;
  border: 2px solid #12392c;
  border-radius: 50%;
  box-shadow: 0 0 12px #63dcaa;
}

.orbit-ring i:nth-child(1) {
  top: -4px;
  left: 50%;
}

.orbit-ring i:nth-child(2) {
  top: 50%;
  right: -4px;
}

.orbit-ring i:nth-child(3) {
  bottom: -4px;
  left: 50%;
}

.orbit-ring i:nth-child(4) {
  top: 50%;
  left: -4px;
}

.core-sphere {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 142px;
  height: 142px;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 28%, rgb(223 255 242 / 62%), transparent 9%),
    radial-gradient(circle at 38% 32%, #75e8b9, #1a7c5a 37%, #09291f 72%);
  border: 1px solid rgb(203 255 234 / 35%);
  border-radius: 50%;
  box-shadow:
    inset -24px -26px 40px rgb(3 19 13 / 58%),
    inset 15px 12px 24px rgb(208 255 236 / 12%),
    0 0 35px rgb(73 222 163 / 22%),
    0 0 90px rgb(54 191 139 / 13%);
  transform: translate3d(-50%, -50%, 48px);
  transform-style: preserve-3d;
  animation: core-breathe 4s ease-in-out infinite;
}

.core-sphere::before,
.core-sphere::after {
  content: "";
  position: absolute;
  border: 1px solid rgb(208 255 236 / 16%);
  border-radius: 50%;
}

.core-sphere::before {
  inset: 17px -14px;
}

.core-sphere::after {
  inset: -14px 24px;
}

.sphere-grid {
  position: absolute;
  border: 1px solid rgb(224 255 242 / 12%);
  border-radius: 50%;
}

.sphere-grid-a {
  inset: 35px -8px;
}

.sphere-grid-b {
  inset: -8px 42px;
}

.sphere-glint {
  position: absolute;
  top: 23px;
  left: 31px;
  width: 16px;
  height: 9px;
  background: rgb(237 255 248 / 55%);
  border-radius: 50%;
  filter: blur(4px);
  transform: rotate(-28deg);
}

.core-label {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  color: white;
  text-shadow: 0 2px 10px rgb(0 30 20 / 70%);
}

.core-label small,
.core-label span {
  font-family: "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.13em;
}

.core-label small {
  color: #b4e7d2;
  font-size: 5px;
}

.core-label strong {
  margin: 1px 0 -2px;
  font-size: 29px;
  letter-spacing: -0.07em;
  line-height: 1;
}

.core-label span {
  color: #a8d7c4;
  font-size: 6px;
}

.floating-document,
.floating-chunk {
  position: absolute;
  z-index: 7;
  width: 92px;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 11px;
  color: white;
  background: linear-gradient(145deg, rgb(20 55 43 / 94%), rgb(7 27 20 / 94%));
  border: 1px solid rgb(169 241 211 / 18%);
  border-top: 2px solid #69e4b2;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgb(0 0 0 / 25%);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.floating-document::after,
.floating-chunk::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  background: #71e5b5;
  border: 2px solid #103328;
  border-radius: 50%;
  box-shadow: 0 0 9px #71e5b5;
}

.floating-document small,
.floating-document span,
.floating-chunk small {
  color: #709487;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 5px;
  letter-spacing: 0.12em;
}

.floating-document strong {
  margin: 2px 0;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.floating-pdf {
  top: 17px;
  left: -16px;
  border-top-color: #dd887b;
  animation: float-pdf 5.4s ease-in-out infinite;
}

.floating-pdf::after,
.floating-safety::after {
  right: -5px;
}

.floating-image {
  top: 40px;
  right: -35px;
  border-top-color: #bb92df;
  animation: float-image 4.8s ease-in-out infinite;
}

.floating-image::after {
  left: -5px;
  background: #bd9be1;
  box-shadow: 0 0 9px #bd9be1;
}

.floating-safety {
  bottom: 11px;
  left: -3px;
  border-top-color: #e2b967;
  animation: float-safety 5.8s ease-in-out infinite;
}

.floating-chunk {
  right: -27px;
  bottom: 17px;
  border-top-color: #74edbc;
  animation: float-chunk 5s ease-in-out infinite;
}

.floating-chunk::after {
  left: -5px;
}

.floating-chunk strong {
  margin: 3px 0 5px;
  color: #a9ffda;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}

.floating-chunk i {
  width: 100%;
  height: 2px;
  display: block;
  margin-top: 3px;
  background: #315c4d;
  border-radius: 9px;
}

.floating-chunk i:nth-of-type(2) {
  width: 76%;
}

.floating-chunk i:nth-of-type(3) {
  width: 48%;
}

.data-stream {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 82px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(106 232 181 / 28%));
}

.stream-left {
  left: 0;
}

.stream-right {
  right: 0;
  transform: rotate(180deg);
}

.data-stream i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  background: #72e8b8;
  border-radius: 50%;
  box-shadow: 0 0 9px #72e8b8;
  animation: data-travel 2.4s linear infinite;
}

.data-stream i:nth-child(2) {
  animation-delay: -0.8s;
}

.data-stream i:nth-child(3) {
  animation-delay: -1.6s;
}

.visual-hud {
  position: absolute;
  z-index: 8;
  right: 18px;
  bottom: 14px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  color: #44695a;
  border-top: 1px solid rgb(176 235 211 / 8%);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.11em;
}

.visual-hud span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.visual-hud i {
  width: 4px;
  height: 4px;
  background: #69e1b0;
  border-radius: 50%;
  box-shadow: 0 0 7px #69e1b0;
}

.visual-hud b {
  color: #6e9988;
  font-weight: 650;
}

/* Premium interaction surfaces */

.chat-section {
  padding-bottom: 26px;
}

.chat-view .section-title-row {
  margin-bottom: 19px;
}

.chat-view .section-title-row h2 {
  color: #17382c;
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 680;
  letter-spacing: -0.045em;
}

.document-count {
  padding: 8px 11px;
  color: #41685a;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(25 91 66 / 10%);
  box-shadow: 0 8px 22px rgb(16 54 40 / 5%);
  backdrop-filter: blur(12px);
}

.chat-view .welcome-card {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 3.2vw, 36px);
  background:
    radial-gradient(circle at 96% 0%, rgb(78 194 146 / 8%), transparent 26%),
    rgb(255 255 255 / 86%);
  border: 1px solid rgb(27 89 66 / 10%);
  border-radius: 21px;
  box-shadow: 0 22px 60px rgb(13 55 39 / 8%), inset 0 1px white;
  backdrop-filter: blur(16px);
}

.chat-view .welcome-card::after {
  content: "CASE / P-204";
  position: absolute;
  top: 18px;
  right: 20px;
  color: #b2c5bc;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.13em;
}

.welcome-label {
  color: #0b815e;
  font-family: "Cascadia Code", Consolas, monospace;
}

.welcome-card h3 {
  color: #183b2e;
  font-size: 21px;
}

.case-preview-image-file,
.case-preview-pdf {
  min-height: 82px;
  background: rgb(244 248 245 / 88%);
  border-color: rgb(27 93 67 / 10%);
  box-shadow: 0 12px 25px rgb(22 69 51 / 5%);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.case-preview-image-file:hover,
.case-preview-pdf:hover {
  border-color: rgb(35 143 103 / 25%);
  box-shadow: 0 18px 34px rgb(22 69 51 / 9%);
  transform: translateY(-3px) rotateX(1deg);
}

.preview-image-label,
.preview-pdf-icon {
  box-shadow: 0 8px 18px rgb(20 68 50 / 8%);
}

.suggested-questions > p {
  color: #71867d;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.suggestion-grid > button {
  min-height: 76px;
  background: rgb(255 255 255 / 70%);
  border-color: rgb(25 91 66 / 10%);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgb(18 58 43 / 4%);
  backdrop-filter: blur(12px);
}

.suggestion-grid > button:hover:not(:disabled) {
  border-color: rgb(28 153 108 / 28%);
  box-shadow: 0 18px 38px rgb(18 58 43 / 8%);
  transform: translateY(-4px);
}

.suggestion-icon {
  color: #0d805f;
  background: linear-gradient(145deg, #e4f7ef, #d7eee4);
  border: 1px solid #cbe8dc;
}

.processing-panel {
  overflow: hidden;
  min-height: 255px;
  display: grid;
  align-content: center;
  margin: 34px 0 58px;
  padding: clamp(32px, 4vw, 52px);
  color: white;
  background:
    radial-gradient(circle at 86% 15%, rgb(94 225 173 / 17%), transparent 26%),
    linear-gradient(135deg, #0c2b20, #061611);
  border: 1px solid rgb(139 236 197 / 15%);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgb(5 30 21 / 18%);
}

.processing-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 25%, rgb(142 245 204 / 5%) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: processing-scan 2.8s ease-in-out infinite;
}

.processing-head h2,
.processing-head > strong {
  color: white;
}

.processing-panel .eyebrow.accent,
.processing-steps li.active {
  color: #8eebc5;
}

.processing-orbit {
  color: #9bf2cf;
  background: rgb(117 237 189 / 8%);
  border-color: rgb(117 237 189 / 13%);
  box-shadow: 0 0 35px rgb(75 217 159 / 10%);
}

.progress-track {
  background: rgb(255 255 255 / 8%);
}

.progress-track span {
  background: linear-gradient(90deg, #3dd69d, #a6ffda);
  box-shadow: 0 0 18px rgb(93 238 182 / 35%);
}

.processing-steps {
  color: #637f74;
}

.messages {
  gap: 22px;
}

.message-bubble {
  background: rgb(255 255 255 / 84%);
  border-color: rgb(29 91 67 / 9%);
  border-radius: 4px 17px 17px;
  box-shadow: 0 16px 38px rgb(20 58 44 / 7%);
  backdrop-filter: blur(14px);
}

.message.user .message-bubble {
  color: #e9fff6;
  background: linear-gradient(145deg, #164b39, #0c3326);
  border-color: #245c47;
  border-radius: 17px 4px 17px 17px;
  box-shadow: 0 16px 38px rgb(9 52 37 / 14%);
}

.message-avatar {
  color: #0c815e;
  background: linear-gradient(145deg, #e3f7ef, #d3eee2);
  border: 1px solid #c9e8da;
  box-shadow: 0 8px 20px rgb(19 92 64 / 8%);
}

.message.user .message-avatar {
  color: #cbf7e5;
  background: #123c2e;
  border-color: #225b46;
}

.source-card {
  border-color: rgb(28 105 77 / 11%);
  box-shadow: 0 9px 24px rgb(19 61 46 / 5%);
}

.source-block {
  background: rgb(250 252 249 / 90%);
  border-color: rgb(24 102 73 / 11%);
  border-radius: 14px;
  box-shadow: 0 13px 32px rgb(17 59 43 / 6%);
}

.source-block summary {
  padding: 13px 15px;
  color: #315e4d;
}

.source-block[open] summary {
  border-bottom: 1px solid rgb(25 93 68 / 8%);
}

.source-card:hover {
  border-color: rgb(36 154 111 / 30%);
  box-shadow: 0 12px 27px rgb(20 76 54 / 8%);
  transform: translateY(-2px);
}

.chat-composer {
  background: linear-gradient(transparent, rgb(240 242 237 / 92%) 30%, #f0f2ed 72%);
}

.composer-inner {
  background: rgb(255 255 255 / 88%);
  border-color: rgb(18 81 57 / 12%);
  border-radius: 15px;
  box-shadow: 0 17px 45px rgb(13 58 41 / 11%), inset 0 1px white;
  backdrop-filter: blur(20px);
}

.composer-inner:focus-within {
  border-color: rgb(23 151 105 / 38%);
  box-shadow: 0 20px 50px rgb(13 58 41 / 13%), 0 0 0 3px rgb(40 187 132 / 8%);
}

#send-button {
  background: linear-gradient(145deg, #1c7859, #0d4a36);
  box-shadow: 0 9px 22px rgb(12 86 59 / 18%);
}

.graph-shell {
  border-color: rgb(88 210 163 / 17%);
  box-shadow: 0 35px 90px rgb(5 25 18 / 25%), 0 0 0 1px rgb(129 234 192 / 4%);
}

.source-dialog,
.about-dialog {
  border-color: rgb(23 89 64 / 12%);
  border-radius: 20px;
  box-shadow: 0 35px 90px rgb(3 24 16 / 25%);
}

@keyframes hero-signal-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes orbit-one-spin {
  from { transform: rotateX(67deg) rotateZ(0deg); }
  to { transform: rotateX(67deg) rotateZ(360deg); }
}

@keyframes orbit-two-spin {
  from { transform: rotateY(70deg) rotateX(20deg) rotateZ(0deg); }
  to { transform: rotateY(70deg) rotateX(20deg) rotateZ(360deg); }
}

@keyframes orbit-three-spin {
  from { transform: rotateX(52deg) rotateY(32deg) rotateZ(0deg); }
  to { transform: rotateX(52deg) rotateY(32deg) rotateZ(360deg); }
}

@keyframes core-breathe {
  0%,
  100% { filter: brightness(0.93); }
  50% { filter: brightness(1.08); }
}

@keyframes float-pdf {
  0%,
  100% { transform: translate3d(0, 0, 74px) rotateY(10deg); }
  50% { transform: translate3d(0, -8px, 82px) rotateY(5deg); }
}

@keyframes float-image {
  0%,
  100% { transform: translate3d(0, 0, 58px) rotateY(-12deg); }
  50% { transform: translate3d(0, 7px, 68px) rotateY(-7deg); }
}

@keyframes float-safety {
  0%,
  100% { transform: translate3d(0, 0, 52px) rotateY(8deg); }
  50% { transform: translate3d(0, 8px, 61px) rotateY(3deg); }
}

@keyframes float-chunk {
  0%,
  100% { transform: translate3d(0, 0, 68px) rotateY(-9deg); }
  50% { transform: translate3d(0, -7px, 77px) rotateY(-4deg); }
}

@keyframes data-travel {
  from { opacity: 0; transform: translateX(0); }
  18%,
  78% { opacity: 1; }
  to { opacity: 0; transform: translateX(80px); }
}

@keyframes processing-scan {
  0%,
  15% { transform: translateX(-100%); }
  75%,
  100% { transform: translateX(100%); }
}

@media (max-width: 1100px) {
  .chat-view .intro {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: clamp(38px, 6vw, 58px);
  }

  .chat-view .intro-copy {
    max-width: 690px;
  }

  .chat-view .intro-description {
    max-width: 600px;
  }

  .intelligence-visual {
    height: 440px;
  }
}

@media (max-width: 820px) {
  .workspace {
    width: min(100% - 28px, 760px);
  }

  .topbar {
    padding-inline: 14px;
  }

  .chat-view .intro {
    margin-top: 15px;
    border-radius: 25px;
  }

  .hero-proof {
    gap: 12px 18px;
  }
}

@media (max-width: 560px) {
  .demo-disclosure {
    min-height: 38px;
  }

  .app-shell {
    padding-top: 38px;
  }

  .topbar {
    top: 38px;
  }

  .workspace {
    width: calc(100% - 22px);
  }

  .chat-view .intro {
    gap: 25px;
    margin-top: 11px;
    padding: 29px 22px 22px;
    border-radius: 21px;
  }

  .chat-view .intro h1 {
    font-size: clamp(43px, 14vw, 58px);
  }

  .chat-view .intro-description {
    margin-top: 19px;
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-primary,
  .hero-secondary {
    width: 100%;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .intelligence-visual {
    height: 355px;
    border-radius: 18px;
  }

  .scene-tilt {
    --scene-scale: 0.77;
  }

  .visual-hud span:last-child,
  .orbit-label-right,
  .orbit-label-bottom {
    display: none;
  }

  .visual-hud {
    justify-content: space-between;
  }

  .chat-view .welcome-card::after {
    display: none;
  }

  .processing-panel {
    min-height: 225px;
    margin-top: 20px;
    padding: 27px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-signal i,
  .orbit-ring,
  .core-sphere,
  .floating-document,
  .floating-chunk,
  .data-stream i,
  .processing-panel::after {
    animation: none !important;
  }

  .scene-tilt {
    transition: none;
  }
}

/* Immersive application shell — one continuous spatial environment */

html {
  color-scheme: dark;
  background: #020b08;
}

body {
  color: #d9ebe3;
  background:
    radial-gradient(circle at 76% 14%, rgb(44 184 130 / 9%), transparent 28%),
    radial-gradient(circle at 34% 86%, rgb(45 104 83 / 8%), transparent 32%),
    #030e0a;
}

body::before {
  z-index: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgb(105 214 171 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(105 214 171 / 2.5%) 1px, transparent 1px),
    radial-gradient(rgb(92 203 160 / 16%) 0.7px, transparent 0.8px);
  background-size: 96px 96px, 96px 96px, 22px 22px;
  mask-image: linear-gradient(to bottom, black, rgb(0 0 0 / 62%) 70%, transparent);
}

body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.graph-viewport::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track,
.graph-viewport::-webkit-scrollbar-track {
  background: #04100c;
}

body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.graph-viewport::-webkit-scrollbar-thumb {
  background: #244c3c;
  border: 2px solid #04100c;
  border-radius: 99px;
}

.demo-disclosure {
  color: #7f9d91;
  background: rgb(2 12 8 / 94%);
  border-color: rgb(106 230 180 / 11%);
  backdrop-filter: blur(18px);
}

.app-shell {
  position: relative;
  z-index: 1;
  background: transparent;
}

.sidebar {
  background:
    radial-gradient(circle at 45% -4%, rgb(54 213 150 / 16%), transparent 23%),
    linear-gradient(180deg, rgb(7 29 21 / 98%), rgb(2 14 10 / 99%));
  border-color: rgb(125 234 191 / 11%);
  box-shadow: 18px 0 65px rgb(0 0 0 / 28%);
  backdrop-filter: blur(24px);
}

.brand {
  background: linear-gradient(90deg, rgb(111 238 187 / 4%), transparent);
}

.sidebar-section {
  background: linear-gradient(180deg, rgb(255 255 255 / 1.5%), transparent);
}

.sidebar-footer {
  background: linear-gradient(transparent, rgb(1 10 7 / 92%) 22%);
}

.main-panel {
  position: relative;
  z-index: 1;
  overflow: clip;
  color: #dcece5;
  background:
    radial-gradient(circle at 76% 10%, rgb(40 155 113 / 8%), transparent 25%),
    linear-gradient(180deg, rgb(5 20 14 / 82%), rgb(2 12 8 / 94%));
  isolation: isolate;
}

.main-panel::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 104px 0 0 var(--sidebar-width);
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 18%, rgb(97 217 169 / 3%) 48%, transparent 78%),
    radial-gradient(circle at 50% 50%, transparent 0 48%, rgb(1 9 6 / 18%) 100%);
  transition: inset 220ms ease;
}

.main-panel.architecture-mode::before {
  inset-inline-start: 0;
}

.topbar {
  color: #b7cec4;
  background: rgb(4 18 13 / 78%);
  border-color: rgb(130 230 191 / 10%);
  box-shadow: 0 14px 45px rgb(0 0 0 / 16%);
  backdrop-filter: blur(24px) saturate(125%);
}

.topbar-title {
  color: #58786b;
}

.topbar-kicker {
  color: #9bc5b4;
}

.topbar-divider {
  background: #294b3e;
}

.view-tabs {
  background: rgb(111 220 176 / 4%);
  border-color: rgb(133 230 191 / 10%);
}

.view-tab {
  color: #668679;
}

.view-tab:hover {
  color: #c8e3d8;
}

.view-tab.active {
  color: #effff8;
  background: linear-gradient(145deg, #18503c, #0d3729);
  border: 1px solid rgb(116 235 187 / 12%);
  box-shadow: 0 10px 28px rgb(0 0 0 / 22%), inset 0 1px rgb(255 255 255 / 4%);
}

.app-state {
  color: #86aa9b;
  background: rgb(9 32 24 / 68%);
  border-color: rgb(124 224 184 / 12%);
  box-shadow: 0 10px 27px rgb(0 0 0 / 16%);
}

.app-state.ready {
  color: #9ce8c8;
  background: rgb(23 92 67 / 26%);
  border-color: rgb(98 225 174 / 18%);
}

.mobile-menu {
  color: #b8d8ca;
  background: rgb(15 47 36 / 72%);
  border-color: rgb(115 220 178 / 13%);
}

.workspace {
  position: relative;
  z-index: 3;
  width: min(1300px, calc(100% - 54px));
}

.main-panel.architecture-mode .workspace {
  width: min(1420px, calc(100% - 44px));
}

/* Persistent depth layer */

.ambient-stage {
  position: fixed;
  z-index: 0;
  inset: 104px 0 0 var(--sidebar-width);
  overflow: hidden;
  pointer-events: none;
  transition: inset 220ms ease, opacity 400ms ease;
}

.main-panel.architecture-mode .ambient-stage {
  inset-inline-start: 0;
}

.ambient-grid-plane {
  position: absolute;
  inset: -18% -12%;
  opacity: 0.55;
  background:
    linear-gradient(rgb(91 190 151 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(91 190 151 / 5%) 1px, transparent 1px),
    radial-gradient(circle, rgb(97 218 169 / 20%) 0.7px, transparent 0.9px);
  background-size: 110px 110px, 110px 110px, 24px 24px;
  mask-image: radial-gradient(ellipse at 68% 38%, black, transparent 71%);
  transform: perspective(950px) rotateX(61deg) translateY(13%);
  transform-origin: center 65%;
}

.ambient-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 73% 33%, transparent 0 15%, rgb(31 144 103 / 4%) 30%, transparent 50%),
    radial-gradient(ellipse at center, transparent 25%, rgb(1 9 6 / 46%) 100%);
}

.ambient-orb {
  position: absolute;
  border: 1px solid rgb(111 231 183 / 9%);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgb(67 211 153 / 3%), 0 0 100px rgb(46 173 125 / 3%);
  animation: ambient-orbit 24s linear infinite;
}

.ambient-orb::before,
.ambient-orb::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgb(112 227 181 / 7%);
  border-radius: inherit;
}

.ambient-orb::after {
  inset: 31%;
  border-style: solid;
}

.ambient-orb-a {
  top: -180px;
  right: -130px;
  width: 610px;
  height: 610px;
}

.ambient-orb-b {
  bottom: -270px;
  left: -160px;
  width: 520px;
  height: 520px;
  animation-duration: 31s;
  animation-direction: reverse;
}

.ambient-background-core {
  position: absolute;
  right: 8%;
  bottom: 9%;
  width: 270px;
  height: 270px;
  opacity: 0.2;
  transform-style: preserve-3d;
  transition: opacity 500ms ease, transform 700ms ease;
}

.ambient-background-core::before {
  content: "";
  position: absolute;
  inset: 34%;
  background: radial-gradient(circle at 36% 30%, #9bf4cf, #1b7d5a 38%, #06251a 72%);
  border: 1px solid rgb(184 255 225 / 26%);
  border-radius: 50%;
  box-shadow: 0 0 45px rgb(69 219 159 / 23%), 0 0 120px rgb(47 181 130 / 12%);
  animation: ambient-core-pulse 5s ease-in-out infinite;
}

.ambient-core-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgb(100 226 176 / 24%);
  border-radius: 50%;
}

.ambient-core-ring.ring-a {
  transform: rotateX(66deg);
  animation: ambient-ring-a 17s linear infinite;
}

.ambient-core-ring.ring-b {
  inset: 20%;
  border-color: rgb(169 123 215 / 19%);
  transform: rotateY(70deg) rotateZ(24deg);
  animation: ambient-ring-b 13s linear infinite reverse;
}

.ambient-core-ring.ring-c {
  inset: 27%;
  transform: rotateX(45deg) rotateY(48deg);
  animation: ambient-ring-c 9s linear infinite;
}

.ambient-background-core > span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: #70ecba;
  border-radius: 50%;
  box-shadow: -103px 14px 0 #70ecba, 92px -35px 0 #a685d1, 65px 97px 0 #70ecba, 0 0 15px #70ecba;
}

.main-panel.indexed-mode .ambient-background-core {
  opacity: 0.48;
  transform: translate3d(20px, -10px, 0) scale(1.1);
}

.main-panel.processing-active .ambient-background-core {
  opacity: 0.72;
  transform: translate3d(-28vw, -15vh, 0) scale(1.35);
}

.ambient-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.34;
}

.ambient-paths path {
  fill: none;
  stroke: rgb(75 192 146 / 12%);
  stroke-width: 1;
  stroke-dasharray: 5 9;
  vector-effect: non-scaling-stroke;
  animation: ambient-dash 12s linear infinite;
}

.ambient-paths circle {
  fill: #71e9b8;
  filter: drop-shadow(0 0 6px #71e9b8);
}

.ambient-coordinate {
  position: absolute;
  color: rgb(102 164 139 / 20%);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.14em;
}

.coordinate-a {
  top: 15%;
  left: 5%;
}

.coordinate-b {
  top: 46%;
  right: 4%;
  writing-mode: vertical-rl;
}

.coordinate-c {
  bottom: 8%;
  left: 38%;
}

/* Hero becomes part of the environment */

.chat-view .intro {
  min-height: calc(100svh - 104px);
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  gap: clamp(25px, 4vw, 65px);
  margin: 0;
  padding: clamp(62px, 7vh, 92px) clamp(10px, 2vw, 30px);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.chat-view .intro::before {
  inset: 7% -8%;
  background:
    radial-gradient(circle at 76% 44%, rgb(54 212 151 / 13%), transparent 26%),
    linear-gradient(90deg, rgb(110 232 183 / 2%) 1px, transparent 1px),
    linear-gradient(rgb(110 232 183 / 2%) 1px, transparent 1px);
  background-size: auto, 96px 96px, 96px 96px;
  mask-image: radial-gradient(ellipse, black, transparent 76%);
}

.chat-view .intro::after {
  right: 0;
  bottom: 26px;
  color: rgb(131 197 171 / 24%);
}

.chat-view .intro-copy {
  max-width: 610px;
}

.chat-view .intro h1 {
  font-size: clamp(60px, 5.8vw, 88px);
  text-shadow: 0 22px 60px rgb(0 0 0 / 24%);
}

.chat-view .intro-description {
  color: #8aa89b;
}

.hero-primary {
  box-shadow: 0 0 0 1px rgb(178 255 224 / 11%), 0 18px 50px rgb(46 211 150 / 24%);
}

.hero-secondary {
  background: rgb(13 46 34 / 46%);
  border-color: rgb(166 239 209 / 13%);
  backdrop-filter: blur(12px);
}

.hero-proof {
  border-color: rgb(170 235 209 / 10%);
}

.intelligence-visual {
  height: 560px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.intelligence-visual::before {
  content: "";
  position: absolute;
  inset: 5% 2%;
  z-index: -1;
  background: radial-gradient(circle, rgb(51 205 147 / 11%), transparent 56%);
  filter: blur(10px);
}

.visual-grid {
  inset: -5%;
  opacity: 0.72;
  mask-image: radial-gradient(circle, black 0 35%, transparent 73%);
}

.visual-hud {
  border-color: rgb(160 231 203 / 10%);
}

/* Indexed conversation becomes a live console */

.chat-section {
  position: relative;
  min-height: calc(100svh - 104px);
  overflow: hidden;
  margin: 0 0 120px;
  padding: clamp(44px, 5vw, 72px) clamp(26px, 4vw, 60px) 80px;
  background:
    linear-gradient(180deg, rgb(8 31 23 / 58%), rgb(4 17 12 / 76%)),
    radial-gradient(circle at 78% 12%, rgb(50 192 139 / 8%), transparent 28%);
  border: 1px solid rgb(125 224 184 / 10%);
  border-radius: 26px;
  box-shadow: 0 38px 100px rgb(0 0 0 / 23%), inset 0 1px rgb(255 255 255 / 3%);
  backdrop-filter: blur(14px);
}

.chat-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    linear-gradient(rgb(111 220 176 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(111 220 176 / 3%) 1px, transparent 1px),
    radial-gradient(circle, rgb(105 220 174 / 16%) 0.7px, transparent 0.8px);
  background-size: 88px 88px, 88px 88px, 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 25%, black, transparent 75%);
}

.chat-section::after {
  content: "SESSION / P-204     CONTEXT / 18     STATUS / GROUNDED";
  position: absolute;
  right: 26px;
  bottom: 18px;
  color: rgb(102 167 140 / 28%);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.14em;
}

.chat-section > * {
  position: relative;
  z-index: 2;
}

.chat-view .section-title-row {
  align-items: center;
  padding-bottom: 21px;
  border-bottom: 1px solid rgb(140 226 191 / 9%);
}

.chat-view .section-title-row .eyebrow {
  color: #67a48b;
  font-family: "Cascadia Code", Consolas, monospace;
}

.chat-view .section-title-row h2 {
  color: #e9fff6;
  text-shadow: 0 12px 36px rgb(0 0 0 / 22%);
}

.document-count {
  color: #91c3ae;
  background: rgb(13 47 35 / 64%);
  border-color: rgb(110 230 182 / 13%);
  box-shadow: 0 12px 30px rgb(0 0 0 / 17%);
}

.chat-view .welcome-card {
  overflow: visible;
  padding: clamp(28px, 3.5vw, 42px);
  color: #d9ebe3;
  background:
    linear-gradient(145deg, rgb(16 52 40 / 76%), rgb(6 25 18 / 82%));
  border-color: rgb(135 227 190 / 12%);
  border-radius: 18px;
  box-shadow: 0 24px 65px rgb(0 0 0 / 20%), inset 0 1px rgb(255 255 255 / 3%);
  backdrop-filter: blur(22px);
}

.chat-view .welcome-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  width: 130px;
  height: 2px;
  background: linear-gradient(90deg, #71e8b7, transparent);
  box-shadow: 0 0 18px rgb(86 224 168 / 45%);
}

.chat-view .welcome-card::after {
  color: #426f5d;
}

.welcome-card h3,
.welcome-card p,
.welcome-card strong {
  color: #dcefe7;
}

.welcome-card p {
  color: #829f93;
}

.welcome-label {
  color: #70e2b4;
}

.case-preview-image-file,
.case-preview-pdf {
  color: #d9ebe3;
  background: linear-gradient(145deg, rgb(14 47 36 / 88%), rgb(7 28 20 / 92%));
  border-color: rgb(126 224 185 / 12%);
  box-shadow: 0 16px 38px rgb(0 0 0 / 16%);
}

.case-preview-image-file div strong,
.case-preview-pdf div strong {
  color: #d7eae2;
}

.case-preview-image-file div span,
.case-preview-pdf div span {
  color: #638477;
}

.preview-image-label,
.preview-pdf-icon {
  color: #78eabb;
  background: rgb(111 231 183 / 7%);
  border-color: rgb(122 226 184 / 14%);
}

.preview-pdf-icon {
  color: #dc887c;
}

.inline-cta {
  color: #05170f;
}

.messages {
  position: relative;
  gap: 25px;
  margin: 26px 0 0 14px;
  padding-left: 28px;
  border-left: 1px solid rgb(94 188 151 / 13%);
}

.message {
  position: relative;
}

.message::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -33px;
  width: 8px;
  height: 8px;
  background: #154b38;
  border: 2px solid #5ddba8;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(78 219 163 / 5%), 0 0 12px rgb(78 219 163 / 35%);
}

.message.user::before {
  border-color: #b18dd5;
  box-shadow: 0 0 0 5px rgb(177 141 213 / 5%), 0 0 12px rgb(177 141 213 / 30%);
}

.message-meta {
  color: #5e8072;
}

.message-meta strong {
  color: #98c5b2;
}

.message-avatar {
  color: #8ef0c7;
  background: rgb(97 224 174 / 8%);
  border-color: rgb(105 225 177 / 14%);
  box-shadow: 0 10px 25px rgb(0 0 0 / 18%);
}

.message.user .message-avatar {
  color: #d9c9e9;
  background: rgb(151 109 191 / 10%);
  border-color: rgb(180 144 214 / 15%);
}

.message-bubble {
  color: #c9ded5;
  background:
    linear-gradient(145deg, rgb(16 50 39 / 76%), rgb(7 27 20 / 84%));
  border-color: rgb(122 216 178 / 11%);
  box-shadow: 0 18px 46px rgb(0 0 0 / 18%), inset 0 1px rgb(255 255 255 / 2.5%);
}

.message-bubble strong {
  color: #f0fff8;
}

.message.user .message-bubble {
  color: #e7fff5;
  background: linear-gradient(145deg, rgb(39 114 85 / 88%), rgb(17 67 49 / 92%));
  border-color: rgb(107 225 179 / 19%);
  box-shadow: 0 20px 48px rgb(0 0 0 / 20%), 0 0 40px rgb(46 180 128 / 5%);
}

.thinking-bubble i {
  background: #6fe2b4;
}

.source-block {
  color: #c4dbd1;
  background: rgb(5 24 17 / 82%);
  border-color: rgb(111 218 176 / 12%);
  box-shadow: 0 16px 38px rgb(0 0 0 / 16%);
}

.source-block summary {
  color: #8fb9a7;
}

.source-block[open] summary {
  border-color: rgb(111 218 176 / 9%);
}

.source-summary-label svg {
  color: #67d8a9;
}

.source-card {
  color: #c7ddd4;
  background: linear-gradient(145deg, rgb(18 50 39 / 86%), rgb(8 29 21 / 92%));
  border-color: rgb(119 219 179 / 10%);
  box-shadow: 0 10px 27px rgb(0 0 0 / 15%);
}

.source-card-copy strong {
  color: #dceee7;
}

.source-card-copy span,
.source-distance {
  color: #66877a;
}

.source-number {
  color: #8eedc6;
  background: rgb(99 223 173 / 8%);
}

.suggested-questions {
  margin-top: 34px;
}

.suggested-questions > p {
  color: #5f8474;
}

.suggestion-grid > button {
  color: #bfd5cb;
  background:
    linear-gradient(145deg, rgb(15 46 35 / 72%), rgb(6 25 18 / 82%));
  border-color: rgb(119 216 178 / 10%);
  box-shadow: 0 15px 38px rgb(0 0 0 / 14%);
  backdrop-filter: blur(18px);
}

.suggestion-grid > button::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 14px;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, #66dbaa, transparent);
}

.suggestion-grid > button:hover:not(:disabled) {
  color: #effff8;
  background: linear-gradient(145deg, rgb(22 64 49 / 86%), rgb(9 34 25 / 92%));
  border-color: rgb(99 225 174 / 26%);
  box-shadow: 0 20px 45px rgb(0 0 0 / 20%), 0 0 30px rgb(58 200 145 / 5%);
}

.suggestion-grid strong {
  color: #cfe3da;
}

.suggestion-grid small {
  color: #5f7d71;
}

.suggestion-icon {
  color: #7ce8ba;
  background: rgb(99 223 173 / 8%);
  border-color: rgb(105 224 176 / 12%);
}

.suggestion-grid .arrow {
  color: #557d6c;
}

/* Composer is a command dock, not a detached white form */

.chat-composer {
  left: var(--sidebar-width);
  padding: 26px 24px 13px;
  background: linear-gradient(transparent, rgb(2 13 9 / 88%) 24%, rgb(2 12 8 / 98%) 70%);
  transition: left 220ms ease;
}

.main-panel.architecture-mode .chat-composer {
  left: 0;
}

.composer-inner {
  background: rgb(8 29 21 / 90%);
  border-color: rgb(103 222 174 / 18%);
  box-shadow: 0 20px 58px rgb(0 0 0 / 38%), inset 0 1px rgb(255 255 255 / 3%);
  backdrop-filter: blur(25px) saturate(130%);
}

.composer-inner::before {
  content: "CMD / ASK";
  position: absolute;
  top: -17px;
  left: 13px;
  color: #466e5d;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.14em;
}

.composer-inner:focus-within {
  border-color: rgb(98 229 177 / 40%);
  box-shadow: 0 22px 64px rgb(0 0 0 / 42%), 0 0 0 3px rgb(51 204 147 / 7%), 0 0 42px rgb(52 202 146 / 7%);
}

.composer-inner input {
  color: #dff3ea;
}

.composer-inner input::placeholder {
  color: #557568;
}

.composer-search {
  color: #5e8d7a;
}

#send-button {
  color: #052017;
  background: linear-gradient(145deg, #9af3cf, #52d9a4);
  box-shadow: 0 10px 30px rgb(55 213 153 / 22%);
}

.chat-composer > p {
  color: #3c5f50;
}

.chat-composer > p button {
  color: #648f7c;
}

/* Processing becomes a spatial system state */

.processing-panel {
  position: relative;
  min-height: calc(100svh - 104px);
  margin: 0;
  padding: clamp(40px, 7vw, 95px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
}

.processing-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(56vw, 600px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgb(70 218 160 / 14%), transparent 34%),
    repeating-radial-gradient(circle, transparent 0 17%, rgb(105 229 180 / 7%) 17.2% 17.5%, transparent 17.7% 25%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: processing-field 11s linear infinite;
}

.processing-panel::after {
  background: linear-gradient(100deg, transparent 28%, rgb(141 244 203 / 4%) 50%, transparent 72%);
}

.processing-head {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px;
  background: rgb(7 29 21 / 62%);
  border: 1px solid rgb(117 225 182 / 11%);
  border-radius: 19px;
  box-shadow: 0 25px 70px rgb(0 0 0 / 22%);
  backdrop-filter: blur(18px);
}

.progress-track,
.processing-steps {
  width: min(860px, 100%);
  margin-inline: auto;
}

.progress-track {
  margin-top: 30px;
  background: rgb(255 255 255 / 6%);
}

.processing-steps {
  margin-top: 21px;
  padding: 16px 18px;
  background: rgb(5 23 17 / 48%);
  border: 1px solid rgb(106 212 170 / 8%);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

/* Architecture fills the same environment */

.architecture-view {
  min-height: calc(100svh - 104px);
  padding: 18px 0 35px;
}

.graph-shell {
  background: rgb(3 16 11 / 82%);
  border-color: rgb(91 216 166 / 16%);
  box-shadow: 0 36px 110px rgb(0 0 0 / 36%), 0 0 90px rgb(40 170 120 / 4%);
  backdrop-filter: blur(16px);
}

.graph-toolbar,
.graph-footer {
  background: rgb(4 20 14 / 91%);
}

.graph-viewport {
  height: min(760px, calc(100svh - 208px));
  background: rgb(2 14 10 / 82%);
}

.graph-stage {
  background:
    radial-gradient(circle at 50% 36%, rgb(36 158 109 / 12%), transparent 36%),
    linear-gradient(rgb(68 151 118 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(68 151 118 / 7%) 1px, transparent 1px),
    radial-gradient(circle, #285443 1px, transparent 1.2px),
    #03140e;
  background-size: auto, 120px 120px, 120px 120px, 24px 24px, auto;
}

/* Evidence remains inside the world */

dialog {
  color: #d6e9e0;
  background: linear-gradient(145deg, rgb(8 31 23 / 98%), rgb(3 17 12 / 99%));
  border-color: rgb(117 225 182 / 15%);
  box-shadow: 0 40px 120px rgb(0 0 0 / 55%), 0 0 80px rgb(49 193 139 / 7%);
}

dialog::backdrop {
  background: rgb(0 7 4 / 76%);
  backdrop-filter: blur(12px) saturate(80%);
}

.dialog-head {
  background: rgb(5 23 17 / 88%);
  border-color: rgb(112 216 174 / 10%);
}

.dialog-head h2 {
  color: #effff8;
}

.dialog-head .eyebrow.accent {
  color: #69dbaa;
}

.icon-button {
  color: #7da494;
  background: rgb(113 218 176 / 5%);
  border-color: rgb(113 218 176 / 11%);
}

.icon-button:hover {
  color: white;
  background: rgb(113 218 176 / 9%);
}

.dialog-body {
  background: transparent;
}

.source-metadata span {
  color: #8cb3a2;
  background: rgb(111 216 174 / 5%);
  border-color: rgb(111 216 174 / 9%);
}

.source-excerpt {
  color: #bcd4ca;
  background: rgb(8 35 25 / 70%);
  border-color: #65dca9;
}

.inspection-visual {
  border-color: rgb(112 219 176 / 14%);
  box-shadow: 0 22px 60px rgb(0 0 0 / 28%);
}

.prose {
  color: #9bb7ab;
}

.toast {
  color: #e8fff5;
  background: rgb(8 39 28 / 94%);
  border-color: rgb(106 225 177 / 17%);
  box-shadow: 0 20px 55px rgb(0 0 0 / 38%);
  backdrop-filter: blur(18px);
}

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

@keyframes ambient-dash {
  to { stroke-dashoffset: -70; }
}

@keyframes ambient-core-pulse {
  0%,
  100% { filter: brightness(0.85); transform: scale(0.94); }
  50% { filter: brightness(1.18); transform: scale(1.06); }
}

@keyframes ambient-ring-a {
  from { transform: rotateX(66deg) rotateZ(0); }
  to { transform: rotateX(66deg) rotateZ(360deg); }
}

@keyframes ambient-ring-b {
  from { transform: rotateY(70deg) rotateZ(24deg); }
  to { transform: rotateY(70deg) rotateZ(384deg); }
}

@keyframes ambient-ring-c {
  from { transform: rotateX(45deg) rotateY(48deg) rotateZ(0); }
  to { transform: rotateX(45deg) rotateY(48deg) rotateZ(360deg); }
}

@keyframes processing-field {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1120px) {
  .chat-view .intro {
    grid-template-columns: 1fr;
  }

  .intelligence-visual {
    height: 480px;
  }

  .ambient-background-core {
    right: -4%;
  }
}

@media (max-width: 820px) {
  .main-panel::before,
  .ambient-stage {
    inset-inline-start: 0;
  }

  .workspace,
  .main-panel.architecture-mode .workspace {
    width: min(100% - 24px, 760px);
  }

  .chat-composer {
    left: 0;
  }

  .chat-view .intro {
    padding-inline: 8px;
  }

  .chat-section {
    border-radius: 20px;
  }

  .ambient-background-core {
    right: -120px;
    bottom: 4%;
  }
}

@media (max-width: 560px) {
  .workspace,
  .main-panel.architecture-mode .workspace {
    width: calc(100% - 16px);
  }

  .chat-view .intro {
    min-height: calc(100svh - 110px);
    padding: 44px 13px 35px;
  }

  .chat-view .intro h1 {
    font-size: clamp(46px, 14vw, 61px);
  }

  .intelligence-visual {
    height: 390px;
  }

  .chat-section {
    padding: 32px 18px 68px;
    border-radius: 17px;
  }

  .chat-view .section-title-row {
    align-items: flex-start;
  }

  .messages {
    margin-left: 3px;
    padding-left: 20px;
  }

  .message::before {
    left: -25px;
  }

  .processing-panel {
    min-height: calc(100svh - 110px);
    padding: 30px 12px;
  }

  .processing-head {
    padding: 22px 18px;
  }

  .processing-steps {
    grid-template-columns: 1fr 1fr;
  }

  .ambient-coordinate {
    display: none;
  }

  .ambient-grid-plane {
    opacity: 0.34;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .ambient-background-core::before,
  .ambient-core-ring,
  .ambient-paths path,
  .processing-panel::before {
    animation: none !important;
  }

  .ambient-paths circle {
    display: none;
  }
}
