@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --ink: #151922;
  --muted: #667085;
  --soft: #f4f7fb;
  --paper: #ffffff;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(28, 39, 54, 0.11);
  --blue: #246bfe;
  --blue-dark: #164bd7;
  --cyan: #08b6d7;
  --green: #15b887;
  --lime: #c9f24d;
  --amber: #ffb342;
  --shadow: 0 28px 80px rgba(33, 45, 66, 0.13);
  --soft-shadow: 0 16px 44px rgba(33, 45, 66, 0.09);
  --radius: 18px;
  --radius-sm: 10px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #05070b;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(36, 107, 254, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 107, 254, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 18% 10%, rgba(8, 182, 215, 0.16), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(201, 242, 77, 0.22), transparent 25%),
    linear-gradient(180deg, #f7faff 0%, #eef3f8 48%, #f8fafc 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  font-family: var(--font);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

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

.demo-shell {
  min-height: 100vh;
  padding: 18px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 46px rgba(33, 45, 66, 0.1);
  backdrop-filter: blur(20px) saturate(150%);
}

.demo-topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto 24px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 46px rgba(33, 45, 66, 0.1);
  backdrop-filter: blur(20px) saturate(150%);
}

.demo-topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.demo-topbar .button {
  min-height: 40px;
  padding: 9px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
  color: #101828;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 210px;
  height: auto;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  border-radius: 11px;
  box-shadow: 0 12px 26px rgba(36, 107, 254, 0.22);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-end;
  padding: 4px;
  border: 1px solid rgba(28, 39, 54, 0.06);
  border-radius: 13px;
  background: rgba(244, 247, 251, 0.78);
  font-size: 0.86rem;
}

.topnav a {
  padding: 9px 13px;
  color: #667085;
  border-radius: 10px;
  text-decoration: none;
}

.topnav a:hover {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 18px rgba(33, 45, 66, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  max-width: 1240px;
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 84px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #175cd3;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(21, 184, 135, 0.12);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.85rem, 5.8vw, 4.25rem);
  font-weight: 700;
  line-height: 0.97;
  letter-spacing: 0;
  overflow-wrap: normal;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3.9vw, 3.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  hyphens: none;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.66;
}

.hero-fit-line {
  max-width: 660px;
  margin: 18px 0 0;
  padding-left: 16px;
  color: #d8e7f6;
  border-left: 2px solid rgba(84, 228, 215, 0.48);
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.55;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 650px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(28, 39, 54, 0.08);
  box-shadow: var(--soft-shadow);
}

.hero-metrics span {
  display: grid;
  gap: 5px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.hero-metrics strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.button.primary {
  color: #fff;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  box-shadow: 0 18px 36px rgba(36, 107, 254, 0.25);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(33, 45, 66, 0.08);
}

.button.secondary .button-icon {
  color: var(--blue);
  background: rgba(36, 107, 254, 0.09);
}

.button.full {
  width: 100%;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(36, 107, 254, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 107, 254, 0.045) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 251, 0.82));
  background-size: 38px 38px, 38px 38px, auto;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 54px 20px 72px;
  border: 1px solid rgba(36, 107, 254, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.45);
}

.visual-topline,
.visual-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.visual-topline {
  top: 18px;
}

.visual-footer {
  bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(33, 45, 66, 0.08);
}

.visual-footer strong {
  color: var(--green);
  font-size: 1.3rem;
}

.document-field {
  position: absolute;
  inset: 0;
}

.doc-card,
.answer-node {
  position: absolute;
  width: min(300px, 74%);
  padding: 18px;
  border: 1px solid rgba(28, 39, 54, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(33, 45, 66, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
}

.doc-card::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(21, 184, 135, 0.12);
}

.doc-card span,
.source-card span,
.sidebar-label,
.panel-title span,
.source-score span,
.access-meter span {
  display: block;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-card strong,
.answer-node strong {
  display: block;
  margin: 9px 0;
  font-size: 1.18rem;
  font-weight: 700;
}

.doc-card small,
.answer-node small {
  color: var(--muted);
}

.doc-card-a {
  left: 7%;
  top: 17%;
}

.doc-card-b {
  right: 6%;
  top: 34%;
}

.doc-card-c {
  left: 12%;
  bottom: 18%;
}

.answer-node {
  right: 11%;
  bottom: 21%;
  color: #fff;
  border-color: rgba(36, 107, 254, 0.24);
  background: linear-gradient(145deg, var(--blue), var(--cyan));
}

.answer-node small {
  color: rgba(255, 255, 255, 0.72);
}

.pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  animation: pulse 2s infinite;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(74px, 9vw, 124px) 0;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -28px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 20px;
  background: rgba(28, 39, 54, 0.08);
  box-shadow: var(--soft-shadow);
}

.proof-strip article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.proof-strip span,
.comparison-label,
.package-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: #175cd3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.proof-strip strong {
  display: block;
  max-width: 290px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.proof-strip p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.fit-section {
  padding-top: clamp(70px, 8vw, 112px);
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(174, 205, 239, 0.15);
  border-radius: 8px;
  background: rgba(174, 205, 239, 0.13);
  box-shadow: var(--soft-shadow);
}

.fit-grid article {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(174, 205, 239, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(174, 205, 239, 0.03) 1px, transparent 1px),
    rgba(13, 20, 30, 0.78);
  background-size: 30px 30px, 30px 30px, auto;
}

.fit-grid span {
  width: fit-content;
  color: #061016;
  padding: 6px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d4f06e, #54e4d7);
  font-size: 0.72rem;
  font-weight: 900;
}

.fit-grid strong {
  font-size: 1.28rem;
  line-height: 1.18;
}

.fit-grid p {
  margin: 0;
  color: #a9b6ca;
  line-height: 1.55;
}

.split-section,
.architecture {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.split-section h2,
.architecture h2 {
  font-size: clamp(2rem, 3.55vw, 3.45rem);
}

.concept-grid,
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.concept-grid article,
.architecture-grid article {
  min-height: 176px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.concept-grid article:nth-child(2),
.architecture-grid article:nth-child(3) {
  transform: translateY(24px);
}

.concept-grid p,
.architecture-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.industry-section {
  padding-top: clamp(70px, 8vw, 112px);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.industry-grid article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 330px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(174, 205, 239, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(84, 228, 215, 0.11), transparent 42%),
    linear-gradient(90deg, rgba(174, 205, 239, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(174, 205, 239, 0.03) 1px, transparent 1px),
    rgba(13, 20, 30, 0.82);
  background-size: auto, 30px 30px, 30px 30px, auto;
  box-shadow: var(--soft-shadow);
}

.industry-grid article::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  pointer-events: none;
  border: 1px solid rgba(84, 228, 215, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 48px rgba(84, 228, 215, 0.08);
}

.industry-grid span {
  color: #9edbff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.industry-grid h3 {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.08;
}

.industry-grid p {
  margin: 0;
  color: #a9b6ca;
  line-height: 1.56;
}

.industry-grid a {
  align-self: end;
  width: fit-content;
  margin-top: 10px;
  color: #d4f06e;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.industry-grid a:hover,
.industry-grid a:focus-visible {
  color: #54e4d7;
  outline: none;
}

.icon-box {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 30px;
  border: 1px solid rgba(36, 107, 254, 0.16);
  border-radius: 13px;
  background: rgba(36, 107, 254, 0.08);
}

.icon-box::before,
.icon-box::after {
  content: "";
  position: absolute;
}

.icon-chat::before {
  width: 19px;
  height: 13px;
  border: 2px solid var(--blue);
  border-radius: 6px;
}

.icon-chat::after {
  left: 14px;
  bottom: 12px;
  width: 7px;
  height: 7px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-18deg);
}

.icon-source::before {
  width: 17px;
  height: 21px;
  border: 2px solid var(--blue);
  border-radius: 4px;
}

.icon-source::after {
  width: 11px;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 6px 0 var(--blue);
}

.icon-lock::before {
  width: 18px;
  height: 14px;
  bottom: 11px;
  border: 2px solid var(--blue);
  border-radius: 4px;
}

.icon-lock::after {
  top: 11px;
  width: 13px;
  height: 12px;
  border: 2px solid var(--blue);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.icon-server::before {
  width: 22px;
  height: 18px;
  border: 2px solid var(--blue);
  border-radius: 5px;
  box-shadow: 0 8px 0 -2px rgba(36, 107, 254, 0.35);
}

.icon-server::after {
  right: 13px;
  top: 18px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

.product-band {
  max-width: none;
  margin: clamp(30px, 5vw, 76px) -18px 0;
  padding: clamp(82px, 10vw, 128px) 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(36, 107, 254, 0.12), transparent 28%),
    linear-gradient(180deg, #eef5ff, #f8fafc);
}

.product-band > * {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.anchor-offset {
  position: relative;
  top: -100px;
  display: block;
}

.section-heading {
  display: grid;
  gap: 14px;
  align-items: start;
  justify-content: start;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.login-card {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  min-width: min(100%, 620px);
  padding: 14px;
  border: 1px solid rgba(28, 39, 54, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.login-card span,
.login-card label,
.module-head span,
.app-rail-note span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.login-card strong {
  display: block;
  margin-top: 6px;
}

.login-card.is-authenticated {
  border-color: rgba(21, 184, 135, 0.24);
  background: rgba(241, 255, 248, 0.9);
}

.login-card.is-authenticated strong {
  color: #057a55;
}

.login-card select,
.settings-panel input {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid rgba(28, 39, 54, 0.09);
  border-radius: 10px;
  background: #fff;
  outline: none;
}

.login-card .button {
  min-height: 42px;
  padding: 10px 16px;
}

.product-app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.app-rail {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 760px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20, 27, 38, 0.98), rgba(34, 48, 68, 0.96));
  color: #fff;
}

.app-user {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  color: #122033;
  background: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-user strong,
.app-user small {
  display: block;
}

.app-user small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
}

.app-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-top: 20px;
}

.app-tab {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.app-tab:hover,
.app-tab.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
}

.app-tab.active {
  box-shadow: inset 3px 0 0 var(--lime);
}

.app-rail-note {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
}

.app-rail-note span,
.app-rail-note small {
  color: rgba(255, 255, 255, 0.58);
}

.app-rail-note strong,
.app-rail-note small {
  display: block;
  margin-top: 7px;
}

.app-main {
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(36, 107, 254, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 107, 254, 0.03) 1px, transparent 1px),
    #f7f9fc;
  background-size: 32px 32px;
}

.app-view {
  display: none;
}

.app-view.active {
  display: grid;
  min-height: 0;
}

.dark-main > .app-view.active {
  min-height: 0;
}

.section-heading.compact {
  max-width: 900px;
}

.comparison-section {
  padding-top: clamp(76px, 9vw, 118px);
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.92fr) minmax(0, 1.16fr);
  gap: 16px;
}

.comparison-card {
  min-height: 300px;
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
}

.comparison-card h3 {
  font-size: 1.35rem;
}

.comparison-card ul,
.pilot-package ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.comparison-card li,
.pilot-package li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.48;
}

.comparison-card li::before,
.pilot-package li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.muted-card {
  border: 1px solid rgba(28, 39, 54, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.focus-card {
  color: #fff;
  border: 1px solid rgba(36, 107, 254, 0.22);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #1c5df5, #089fc0);
  background-size: 30px 30px, 30px 30px, auto;
}

.focus-card .comparison-label,
.focus-card li {
  color: rgba(255, 255, 255, 0.78);
}

.focus-card li::before {
  background: #fff;
}

.operations-section,
.quality-section {
  padding-top: clamp(72px, 9vw, 112px);
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.operations-grid article {
  min-height: 248px;
  padding: 26px;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.operations-grid span,
.quality-board span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #175cd3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.operations-grid strong {
  display: block;
  max-width: 340px;
  font-size: 1.22rem;
  line-height: 1.28;
}

.operations-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.56;
}

.quality-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.quality-section p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.66;
}

.quality-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 22px;
  background: rgba(28, 39, 54, 0.08);
  box-shadow: var(--shadow);
}

.quality-board article {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(36, 107, 254, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 107, 254, 0.03) 1px, transparent 1px),
    rgba(255, 255, 255, 0.88);
  background-size: 28px 28px;
}

.quality-board strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.12;
}

.quality-board small {
  color: var(--muted);
  font-weight: 600;
}

.workspace {
  display: grid;
  grid-template-columns: 245px minmax(360px, 1fr) 310px;
  min-height: 724px;
  overflow: hidden;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(33, 45, 66, 0.1);
}

.workspace-sidebar,
.source-panel {
  padding: 20px;
  background: rgba(244, 247, 251, 0.9);
}

.workspace-sidebar {
  border-right: 1px solid var(--line);
}

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

.sidebar-block {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.access-meter,
.source-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid rgba(21, 184, 135, 0.2);
  border-radius: 13px;
  background: rgba(21, 184, 135, 0.08);
}

.access-meter strong,
.source-score strong {
  color: #057a55;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.space-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.space {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.space span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.space.active {
  color: var(--ink);
  border-color: rgba(36, 107, 254, 0.14);
  background: #fff;
  box-shadow: 0 10px 22px rgba(33, 45, 66, 0.07);
}

.sidebar-note {
  padding: 16px;
  border: 1px solid rgba(8, 182, 215, 0.18);
  border-radius: 15px;
  color: #0e4f5f;
  background: rgba(8, 182, 215, 0.08);
}

.sidebar-note p {
  margin: 8px 0 0;
  color: #52717a;
  line-height: 1.46;
}

.chat-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(36, 107, 254, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 107, 254, 0.035) 1px, transparent 1px),
    #fff;
  background-size: 34px 34px;
}

.chat-panel.is-dragging {
  outline: 2px solid rgba(36, 107, 254, 0.36);
  outline-offset: -8px;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

#active-space {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(21, 184, 135, 0.12);
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  padding: 28px;
}

.message {
  max-width: 78%;
  padding: 15px 17px;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 16px;
  line-height: 1.46;
  box-shadow: 0 14px 34px rgba(33, 45, 66, 0.08);
}

.message p {
  margin: 0;
}

.message.assistant {
  align-self: flex-start;
  background: #f2f5f9;
}

.message.user {
  align-self: flex-start;
  color: #fff;
  border-color: rgba(36, 107, 254, 0.24);
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
}

.message.cited {
  border-color: rgba(8, 182, 215, 0.2);
  background: #fff;
}

.composer {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(244, 247, 251, 0.9);
}

.composer input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid rgba(28, 39, 54, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  outline: none;
}

.composer input::placeholder {
  color: #8a95a5;
}

.composer input:focus {
  border-color: rgba(36, 107, 254, 0.5);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.1);
}

.send-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  box-shadow: 0 16px 28px rgba(36, 107, 254, 0.2);
  cursor: pointer;
}

.chat-drop-overlay {
  position: absolute;
  inset: 72px 18px 82px;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(36, 107, 254, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(36, 107, 254, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 107, 254, 0.07) 1px, transparent 1px),
    rgba(255, 255, 255, 0.88);
  background-size: 28px 28px;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(14px);
}

.chat-panel.is-dragging .chat-drop-overlay {
  opacity: 1;
  transform: scale(1);
}

.chat-drop-overlay div {
  display: grid;
  max-width: 360px;
  justify-items: center;
  gap: 10px;
  padding: 28px;
}

.chat-drop-overlay strong {
  font-size: 1.08rem;
}

.chat-drop-overlay small {
  color: var(--muted);
}

.chat-upload-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  width: min(360px, 92%);
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -28px 0 56px rgba(33, 45, 66, 0.16);
  transform: translateX(104%);
  transition: transform 220ms ease;
  backdrop-filter: blur(18px);
}

.chat-upload-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-label {
  display: block;
  margin-bottom: 6px;
  color: #175cd3;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.drawer-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid rgba(28, 39, 54, 0.1);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.permission-card {
  padding: 15px;
  border: 1px solid rgba(21, 184, 135, 0.2);
  border-radius: 15px;
  background: rgba(21, 184, 135, 0.08);
}

.permission-card span {
  display: block;
  color: #057a55;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.permission-card strong {
  display: block;
  margin: 8px 0;
  color: #057a55;
}

.permission-card p {
  margin: 0;
  color: #52717a;
  line-height: 1.45;
}

.drawer-file {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(36, 107, 254, 0.15);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(36, 107, 254, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 107, 254, 0.045) 1px, transparent 1px),
    rgba(36, 107, 254, 0.04);
  background-size: 24px 24px;
}

.drawer-file > span {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.drawer-file strong,
.drawer-file small {
  display: block;
}

.drawer-file small {
  margin-top: 7px;
  color: var(--muted);
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.drawer-actions .button {
  min-height: 44px;
  padding: 11px 14px;
}

.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sources {
  display: grid;
  gap: 12px;
}

.source-card {
  padding: 15px;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(33, 45, 66, 0.08);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.source-card:hover,
.source-card:focus,
.source-card.active {
  border-color: rgba(36, 107, 254, 0.34);
  outline: none;
  transform: translateY(-1px);
}

.source-card strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
}

.source-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(33, 45, 66, 0.07);
}

.module-head strong {
  display: block;
  margin-top: 7px;
  font-size: 1.22rem;
}

.module-head .button {
  min-height: 42px;
}

.document-table,
.space-admin-grid,
.settings-grid,
.settings-content {
  display: grid;
  gap: 12px;
}

.document-console {
  display: grid;
  grid-template-columns: minmax(150px, 0.58fr) minmax(360px, 1.45fr) minmax(240px, 0.82fr);
  gap: 12px;
  align-items: start;
}

.document-event-panel,
.document-detail-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.compact-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.compact-section-head span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-section-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.api-event-list {
  display: grid;
  gap: 6px;
  max-height: 430px;
  overflow: auto;
}

.api-event-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(28, 39, 54, 0.07);
}

.api-event-row:first-child {
  border-top: 0;
}

.api-event-row span {
  min-width: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.api-event-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.api-event-row strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.document-detail-grid {
  display: grid;
  gap: 7px;
  margin: 0;
}

.document-detail-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 8px;
  background: rgba(28, 39, 54, 0.04);
}

.document-detail-tabs button {
  min-height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.document-detail-tabs button.active {
  color: var(--ink);
  background: #fff;
}

.document-detail-pane {
  display: none;
}

.document-detail-pane.active {
  display: block;
}

.document-citation-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.document-citation-list article {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-top: 1px solid rgba(28, 39, 54, 0.07);
}

.document-citation-list article:first-child {
  border-top: 0;
}

.document-citation-list span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.document-citation-list strong {
  color: var(--ink);
  font-size: 0.74rem;
  overflow-wrap: anywhere;
}

.document-citation-list p {
  margin: 0;
  overflow-wrap: anywhere;
}

.document-detail-grid div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
}

.document-detail-grid dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.document-detail-grid dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.document-detail-panel blockquote {
  margin: 0;
  padding: 10px;
  border-left: 2px solid rgba(36, 107, 254, 0.45);
  color: var(--muted);
  background: rgba(28, 39, 54, 0.04);
  font-size: 0.82rem;
  line-height: 1.45;
}

.document-detail-actions {
  display: flex;
  gap: 8px;
}

.document-detail-actions .button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.document-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.document-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.document-toolbar input,
.document-toolbar select {
  min-height: 38px;
  padding: 0 11px;
  color: var(--ink);
  border: 1px solid rgba(28, 39, 54, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.document-toolbar input:focus,
.document-toolbar select:focus {
  border-color: rgba(36, 107, 254, 0.55);
  box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.12);
}

.document-toolbar > strong {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.82rem;
}

.document-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) 104px minmax(86px, 0.55fr) 80px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 11px 12px;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(33, 45, 66, 0.06);
}

.document-row[data-document-title] {
  cursor: pointer;
}

.document-row[data-document-title]:hover,
.document-row[data-document-title].active {
  border-color: rgba(36, 107, 254, 0.34);
  background: rgba(255, 255, 255, 0.98);
}

.document-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-empty {
  padding: 18px;
  color: var(--muted);
  border: 1px dashed rgba(28, 39, 54, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.document-row span {
  color: var(--muted);
}

.document-row.table-head {
  min-height: auto;
  color: var(--muted);
  background: rgba(244, 247, 251, 0.9);
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.status-pill.green {
  color: #057a55;
  background: rgba(21, 184, 135, 0.12);
}

.status-pill.amber {
  color: #9a5b00;
  background: rgba(255, 179, 66, 0.18);
}

.status-pill.muted {
  color: #526070;
  background: rgba(102, 112, 133, 0.12);
}

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

.space-admin-grid article,
.settings-panel {
  padding: 20px;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(33, 45, 66, 0.07);
}

.space-admin-grid h3,
.settings-panel h3 {
  margin-top: 16px;
}

.space-admin-grid p {
  color: var(--muted);
  line-height: 1.52;
}

.space-admin-grid article > strong {
  display: block;
  margin-top: 18px;
}

.settings-grid {
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.78fr) minmax(240px, 0.78fr);
}

.settings-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.settings-nav {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(33, 45, 66, 0.07);
}

.settings-nav-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  width: 100%;
  min-height: 66px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.settings-nav-item span {
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 9px;
  color: var(--blue);
  background: rgba(36, 107, 254, 0.09);
  font-size: 0.72rem;
  font-weight: 800;
}

.settings-nav-item strong {
  color: var(--ink);
}

.settings-nav-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.settings-nav-item:hover,
.settings-nav-item.active {
  border-color: rgba(36, 107, 254, 0.18);
  background: #fff;
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: grid;
  gap: 16px;
}

.settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.settings-section-head span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.settings-section-head h3 {
  margin: 6px 0 0;
}

.settings-section-head > strong {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 0.88rem;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-master-detail {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  min-height: 420px;
}

.settings-master-detail.sources-overview:has(.settings-detail-pane[hidden]) {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.settings-list-pane,
.settings-detail-pane {
  min-width: 0;
}

.settings-list-pane {
  display: grid;
  align-content: start;
  gap: 8px;
}

.settings-detail-pane {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.settings-detail-pane[hidden] {
  display: none;
}

.settings-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.settings-add-button {
  width: 100%;
  justify-content: center;
}

.settings-inline-add {
  justify-self: start;
  min-height: 30px;
  padding: 0;
  border: 0;
  color: #8fb2ff;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.settings-inline-add:hover,
.settings-inline-add:focus-visible {
  color: #dbe6ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.settings-list-row,
.settings-empty-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.settings-list-row {
  cursor: pointer;
}

.settings-list-row:hover,
.settings-list-row.active {
  color: var(--ink);
  border-color: rgba(36, 107, 254, 0.18);
  background: rgba(36, 107, 254, 0.06);
}

.settings-list-row span,
.settings-empty-row span {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-list-row small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-list-row strong,
.settings-empty-row strong {
  color: var(--blue);
  font-size: 0.78rem;
}

.settings-detail-head {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-detail-head span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-detail-head strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1rem;
}

.settings-status-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.settings-panel label {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.label-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.help-tooltip {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  min-width: 18px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(36, 107, 254, 0.28);
  border-radius: 50%;
  color: #9dbbff;
  background: rgba(36, 107, 254, 0.1);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.help-tooltip::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 120;
  display: none;
  width: min(260px, 72vw);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #f7f9fc;
  background: #0f1218;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  content: attr(title);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  transform: translateX(-50%);
  white-space: normal;
}

.help-tooltip:hover::after,
.help-tooltip:focus::after,
.help-tooltip:focus-visible::after {
  display: block;
}

.help-tooltip:focus,
.help-tooltip:focus-visible {
  outline: 2px solid rgba(36, 107, 254, 0.62);
  outline-offset: 2px;
}

.role-row,
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.role-row:last-child,
.toggle-row:last-child {
  border-bottom: 0;
}

.role-row span,
.toggle-row span {
  color: var(--muted);
}

.role-row small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-card {
  display: grid;
  gap: 7px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  outline: none;
}

.connection-card:last-child {
  border-bottom: 0;
}

.connection-card.is-error {
  border-color: rgba(255, 107, 82, 0.22);
}

.connection-card[data-select-connection] {
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}

.connection-card[data-select-connection]:hover,
.connection-card[data-select-connection]:focus,
.connection-card.active {
  border-color: rgba(36, 107, 254, 0.22);
  background: rgba(36, 107, 254, 0.06);
}

.connection-card-head,
.connection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.connection-card-head > span {
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
}

.connection-card-head > strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.connection-sync-meta {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.connection-sync-meta > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.connection-sync-meta span:last-child {
  overflow-wrap: anywhere;
}

.connection-card.is-error .connection-sync-meta span:last-child {
  color: #ffb4a2;
}

.connection-card.has-changes:not(.is-error) .connection-sync-meta span:last-child {
  color: #83e7bc;
}

.connection-sync-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.connection-sync-stats span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
}

.connection-sync-stats span + span::before {
  padding-right: 4px;
  color: rgba(151, 161, 175, 0.5);
  content: "/";
}

.connection-sync-alert {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 107, 82, 0.24);
  border-radius: 7px;
  color: #ffd7cc;
  background: rgba(255, 107, 82, 0.08);
  font-size: 0.72rem;
  line-height: 1.35;
}

.connection-sync-alert strong {
  color: #ffe7df;
  font-size: 0.73rem;
  font-weight: 900;
}

.connection-sync-alert span {
  color: #ffb4a2;
}

.connection-sync-history {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.connection-sync-history strong {
  color: #ffb4a2;
}

.connection-sync-history span + span::before {
  padding-right: 8px;
  color: rgba(151, 161, 175, 0.42);
  content: "·";
}

.connection-actions {
  justify-content: flex-start;
}

.connection-actions button {
  min-height: 26px;
  padding: 0;
  border: 0;
  color: #8fb2ff;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.connection-actions button:last-child {
  color: #c7a39b;
}

.connection-actions button:hover,
.connection-actions button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.credential-panel {
  display: grid;
  gap: 10px;
  margin: 2px 0 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credential-panel .settings-form-grid {
  gap: 10px;
}

.credential-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.credential-actions .button {
  justify-self: start;
}

.credential-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credential-row {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.credential-row:last-child {
  border-bottom: 0;
}

.credential-row > span {
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
}

.credential-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.credential-row button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 107, 82, 0.24);
  border-radius: 7px;
  color: #ffb4a2;
  background: rgba(255, 107, 82, 0.1);
  cursor: pointer;
}

.credential-row.empty {
  color: var(--muted);
}

.credential-row.empty strong {
  color: var(--blue);
}

.api-toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}

.api-toast {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 14px 42px 14px 15px;
  overflow: hidden;
  border: 1px solid rgba(131, 231, 188, 0.26);
  border-radius: 8px;
  color: #edf8f3;
  background:
    linear-gradient(135deg, rgba(21, 184, 135, 0.18), rgba(36, 107, 254, 0.11)),
    rgba(14, 18, 25, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  animation: api-toast-enter 180ms ease-out;
  pointer-events: auto;
}

.api-toast.is-closing {
  animation: api-toast-exit 180ms ease-in forwards;
}

.api-toast span {
  color: #83e7bc;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-toast strong {
  overflow-wrap: anywhere;
  color: #f8fbff;
  font-size: 0.92rem;
  line-height: 1.25;
}

.api-toast small {
  color: #9ca8b7;
  font-size: 0.78rem;
  font-weight: 700;
}

.api-toast button {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #e7edf6;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

@keyframes api-toast-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes api-toast-exit {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.connector-folder-picker {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.connector-folder-head,
.folder-row,
.connector-folder-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.connector-folder-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.connector-folder-head strong {
  color: var(--ink);
  font-size: 0.85rem;
}

.connector-folder-list {
  display: grid;
  gap: 6px;
}

.folder-row {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.03);
}

.folder-row.empty {
  grid-template-columns: 1fr;
  color: var(--muted);
}

.folder-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-row button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.connector-folder-add input {
  min-width: 0;
}

.toggle-row strong {
  color: #057a55;
}

.toggle-row.is-warning strong {
  color: #d79339;
}

.upload-symbol {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  border-radius: 15px;
  font-size: 1.5rem;
  box-shadow: 0 18px 36px rgba(36, 107, 254, 0.22);
}

.pilot-section {
  padding-top: clamp(60px, 8vw, 104px);
}

.pilot-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 18%, rgba(201, 242, 77, 0.34), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 252, 0.82));
  box-shadow: var(--shadow);
}

.pilot-card p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.66;
}

.pilot-package {
  padding: 24px;
  border: 1px solid rgba(28, 39, 54, 0.09);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.pilot-package-title {
  display: block;
  margin: 8px 0 18px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.3;
}

.pilot-package .button {
  margin-top: 24px;
}

.pilot-promise {
  display: grid;
  gap: 6px;
  max-width: 680px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(84, 228, 215, 0.18);
  border-radius: 8px;
  background: rgba(84, 228, 215, 0.075);
}

.pilot-promise span,
.pilot-form-note {
  color: #9edbff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pilot-promise strong {
  line-height: 1.35;
}

.pilot-form-note {
  display: block;
  color: var(--muted);
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.demo-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(72px, 9vw, 112px);
}

.demo-bridge p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.66;
}

.demo-bridge-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.demo-bridge-panel strong {
  font-size: 1.18rem;
  line-height: 1.3;
}

.demo-moment {
  padding-top: clamp(70px, 9vw, 118px);
}

.demo-story {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.demo-story-steps {
  display: grid;
  align-content: start;
  gap: 8px;
}

.demo-story-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  width: 100%;
  min-height: 78px;
  padding: 13px;
  border: 1px solid rgba(28, 39, 54, 0.1);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.demo-story-step:hover,
.demo-story-step:focus-visible,
.demo-story-step.active {
  border-color: rgba(84, 228, 215, 0.42);
  background: rgba(255, 255, 255, 0.94);
  outline: none;
  transform: translateX(3px);
}

.demo-story-step span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(36, 107, 254, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.demo-story-step strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.demo-story-step small {
  color: var(--muted);
  line-height: 1.35;
}

.demo-story-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(174, 205, 239, 0.16);
  border-radius: 8px;
  background: rgba(174, 205, 239, 0.12);
  box-shadow: var(--shadow);
}

.story-chat-window,
.story-proof-panel {
  min-width: 0;
  background:
    linear-gradient(90deg, rgba(174, 205, 239, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(174, 205, 239, 0.03) 1px, transparent 1px),
    rgba(13, 20, 30, 0.92);
  background-size: 30px 30px, 30px 30px, auto;
}

.story-chat-window {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 560px;
  padding: clamp(18px, 3vw, 28px);
}

.story-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(174, 205, 239, 0.12);
}

.story-window-head span,
.story-message span,
.story-citation span,
.story-review span,
.story-proof-panel > span {
  color: #9edbff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.story-window-head strong {
  color: #d4f06e;
  font-size: 0.82rem;
}

.story-message,
.story-citation,
.story-review {
  display: grid;
  gap: 8px;
  max-width: 82%;
  padding: 14px;
  border: 1px solid rgba(174, 205, 239, 0.12);
  border-radius: 8px;
  opacity: 0.32;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

.story-message p,
.story-citation p,
.story-review small,
.story-proof-panel p {
  margin: 0;
  color: #a9b6ca;
  line-height: 1.55;
}

.story-message.user {
  justify-self: end;
  color: #f7fbff;
  background: rgba(36, 107, 254, 0.16);
}

.story-message.assistant,
.story-citation,
.story-review {
  justify-self: start;
  background: rgba(255, 255, 255, 0.045);
}

.story-citation {
  border-color: rgba(212, 240, 110, 0.2);
}

.story-citation strong,
.story-review strong {
  color: #f7fbff;
  line-height: 1.25;
}

.story-review {
  grid-template-columns: auto 1fr;
  align-items: center;
  max-width: 360px;
}

.story-review span {
  grid-row: 1 / 3;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  color: #061016;
  background: linear-gradient(180deg, #d4f06e, #54e4d7);
  font-size: 0.58rem;
}

.demo-story[data-active-step="0"] .story-message.user,
.demo-story[data-active-step="1"] .story-message.user,
.demo-story[data-active-step="1"] .story-message.assistant,
.demo-story[data-active-step="2"] .story-message.user,
.demo-story[data-active-step="2"] .story-message.assistant,
.demo-story[data-active-step="2"] .story-citation,
.demo-story[data-active-step="3"] .story-message.user,
.demo-story[data-active-step="3"] .story-message.assistant,
.demo-story[data-active-step="3"] .story-citation,
.demo-story[data-active-step="3"] .story-review {
  opacity: 1;
  transform: translateY(0);
}

.demo-story[data-active-step="1"] .story-message.assistant,
.demo-story[data-active-step="2"] .story-citation,
.demo-story[data-active-step="3"] .story-review {
  border-color: rgba(84, 228, 215, 0.38);
  background: rgba(84, 228, 215, 0.08);
}

.story-proof-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
}

.story-proof-panel strong {
  color: #f7fbff;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.story-proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(174, 205, 239, 0.14);
  border-radius: 8px;
  background: rgba(174, 205, 239, 0.12);
}

.story-proof-metrics span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  color: #a9b6ca;
  background: rgba(6, 10, 16, 0.58);
  font-size: 0.72rem;
  line-height: 1.25;
}

.story-proof-metrics strong {
  font-size: 1.08rem;
}

.question-examples {
  padding-top: clamp(70px, 9vw, 118px);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(174, 205, 239, 0.15);
  border-radius: 8px;
  background: rgba(174, 205, 239, 0.14);
  box-shadow: var(--soft-shadow);
}

.question-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 310px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(174, 205, 239, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(174, 205, 239, 0.03) 1px, transparent 1px),
    rgba(13, 20, 30, 0.84);
  background-size: 30px 30px, 30px 30px, auto;
}

.question-grid span {
  color: #9edbff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.question-grid h3 {
  margin: 0;
  color: #f7fbff;
  font-size: 1.2rem;
  line-height: 1.16;
}

.question-grid p {
  margin: 0;
  color: #a9b6ca;
  line-height: 1.55;
}

.question-grid a {
  align-self: end;
  width: fit-content;
  color: #d4f06e;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.question-grid a:hover,
.question-grid a:focus-visible {
  color: #54e4d7;
  outline: none;
}

.product-proof {
  padding-top: clamp(64px, 8vw, 104px);
}

.demo-clip {
  display: grid;
  overflow: hidden;
  margin: 30px 0 18px;
  border: 1px solid rgba(174, 205, 239, 0.16);
  border-radius: 8px;
  background: rgba(13, 20, 30, 0.9);
  box-shadow: var(--shadow);
}

.demo-clip video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070b;
  object-fit: cover;
}

.demo-clip figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid rgba(174, 205, 239, 0.14);
}

.demo-clip figcaption span {
  color: #9edbff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.demo-clip figcaption strong {
  color: #f7fbff;
  line-height: 1.3;
}

.product-shot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-top: 30px;
  align-items: stretch;
}

.product-shot {
  position: relative;
  display: grid;
  align-content: start;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(28, 39, 54, 0.12);
  border-radius: 22px;
  background: #10131a;
  box-shadow: var(--shadow);
}

.product-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: left top;
}

.large-shot img {
  aspect-ratio: 16 / 10;
}

.product-shot figcaption {
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
  color: #eef4ff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #121722;
  background-size: 28px 28px;
}

.product-shot figcaption span,
.trust-ledger span,
.pilot-timeline span {
  color: #8fb2ff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-shot figcaption strong {
  font-size: 1rem;
  line-height: 1.35;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  padding-top: clamp(72px, 9vw, 112px);
}

.trust-section p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.66;
}

.trust-ledger {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(28, 39, 54, 0.1);
  border-radius: 22px;
  background: rgba(28, 39, 54, 0.09);
  box-shadow: var(--soft-shadow);
}

.trust-ledger article {
  display: grid;
  gap: 6px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.84);
}

.trust-ledger strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.trust-ledger small {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.pilot-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.pilot-timeline article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(28, 39, 54, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.pilot-timeline strong {
  font-size: 0.98rem;
  line-height: 1.28;
}

.pilot-timeline small {
  color: var(--muted);
  line-height: 1.45;
}

.pilot-form {
  display: grid;
  gap: 12px;
}

.pilot-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.pilot-form input,
.pilot-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(28, 39, 54, 0.12);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.pilot-form input:focus,
.pilot-form select:focus {
  border-color: rgba(36, 107, 254, 0.44);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.1);
}

.pilot-window-fixed {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(36, 107, 254, 0.14);
  border-radius: 8px;
  background: rgba(36, 107, 254, 0.06);
}

.pilot-window-fixed span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pilot-window-fixed strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.pilot-form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.pilot-form-status.is-pending,
.pilot-form-status[data-state="pending"] {
  color: #8fb2ff;
}

.pilot-form-status.is-success,
.pilot-form-status[data-state="success"] {
  color: #35d7a3;
}

.pilot-form-status.is-error,
.pilot-form-status[data-state="error"] {
  color: #ff9a9a;
}

body.marketing-dark {
  --ink: #f4f8ff;
  --muted: #a9b6ca;
  --soft: #101722;
  --paper: #0b1018;
  --panel: rgba(15, 23, 34, 0.72);
  --line: rgba(174, 205, 239, 0.16);
  --blue: #59a9ff;
  --blue-dark: #2d6ee8;
  --cyan: #54e4d7;
  --green: #35d7a3;
  --lime: #d4f06e;
  --amber: #f3c66f;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  --soft-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(142, 188, 231, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(142, 188, 231, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #05070b 0%, #080d14 48%, #0c1118 100%);
  background-size: 46px 46px, 46px 46px, auto;
}

.marketing-dark .app-shell {
  position: relative;
  z-index: 1;
}

.marketing-dark .topbar {
  position: absolute;
  top: 18px;
  right: max(18px, calc((100vw - 1240px) / 2));
  left: max(18px, calc((100vw - 1240px) / 2));
  max-width: none;
  margin: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.marketing-dark .brand,
.marketing-dark h1,
.marketing-dark h2,
.marketing-dark h3,
.marketing-dark strong {
  color: #f7fbff;
}

.marketing-dark .brand {
  padding-left: 0;
}

.marketing-dark .brand-mark {
  color: #071018;
  background: linear-gradient(145deg, #d4f06e, #54e4d7);
  box-shadow: 0 0 34px rgba(84, 228, 215, 0.2);
}

.marketing-dark .topnav {
  border-color: transparent;
  background: transparent;
}

.marketing-dark .topnav a {
  color: #a9b6ca;
}

.marketing-dark .topnav a:hover {
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.marketing-dark .dark-hero {
  position: relative;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.72fr);
  width: calc(100% + 36px);
  max-width: none;
  min-height: calc(100vh - 78px);
  margin: 18px -18px 0;
  padding-right: max(18px, calc((100vw - 1240px) / 2));
  padding-left: max(18px, calc((100vw - 1240px) / 2));
  overflow: hidden;
  isolation: isolate;
}

.marketing-dark .dark-hero::after {
  content: "";
  position: absolute;
  inset: 3% -12% 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.94), rgba(5, 7, 11, 0.34) 44%, rgba(5, 7, 11, 0.08) 72%),
    linear-gradient(180deg, rgba(5, 7, 11, 0), rgba(5, 7, 11, 0.66) 92%);
}

.hero-neuron-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-neuron-field canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.story-capture-page {
  min-height: 100vh;
  overflow: hidden;
}

.story-capture-shell {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  min-height: 100vh;
  padding: 24px;
}

.story-capture-brand {
  width: fit-content;
  margin: 0 auto 12px;
}

.story-capture-page .demo-moment {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding-top: 0;
}

.story-capture-page .section-heading {
  max-width: 1040px;
}

.story-capture-page .section-heading h1 {
  margin-bottom: 10px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.96;
}

.story-capture-page .demo-story {
  margin-top: 18px;
}

.story-capture-page .story-chat-window {
  min-height: 450px;
}

.marketing-dark .hero-copy,
.marketing-dark .hero-showcase {
  position: relative;
  z-index: 2;
}

.marketing-dark .hero-copy {
  max-width: 760px;
}

.marketing-dark .section-heading {
  max-width: 980px;
}

.marketing-dark .section-heading.compact {
  max-width: 900px;
}

.marketing-dark .eyebrow,
.marketing-dark .comparison-label,
.marketing-dark .package-label,
.marketing-dark .operations-grid span,
.marketing-dark .quality-board span,
.marketing-dark .product-shot figcaption span,
.marketing-dark .trust-ledger span,
.marketing-dark .pilot-timeline span,
.marketing-dark .pilot-promise span {
  color: #9edbff;
}

.marketing-dark .eyebrow::before {
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(212, 240, 110, 0.12), 0 0 24px rgba(84, 228, 215, 0.26);
}

.marketing-dark .hero h1 {
  max-width: 760px;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
}

.marketing-dark .hero-text,
.marketing-dark .section-heading p,
.marketing-dark .split-section p,
.marketing-dark .comparison-card li,
.marketing-dark .operations-grid p,
.marketing-dark .quality-section p,
.marketing-dark .trust-section p,
.marketing-dark .pilot-card p,
.marketing-dark .demo-bridge p,
.marketing-dark .demo-moment p,
.marketing-dark .proof-strip p,
.marketing-dark .concept-grid p,
.marketing-dark .trust-ledger small,
.marketing-dark .pilot-timeline small,
.marketing-dark .pilot-form-note {
  color: #a9b6ca;
}

.marketing-dark .hero-metrics {
  border-color: rgba(174, 205, 239, 0.16);
  background: rgba(174, 205, 239, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.marketing-dark .hero-metrics span {
  color: #a9b6ca;
  background: rgba(10, 16, 24, 0.78);
}

.marketing-dark .hero-metrics strong {
  color: #f7fbff;
}

.marketing-dark .button.primary {
  color: #061016;
  background: linear-gradient(180deg, #d4f06e, #54e4d7);
  box-shadow: 0 20px 44px rgba(84, 228, 215, 0.22);
}

.marketing-dark .button.secondary {
  color: #f7fbff;
  border-color: rgba(174, 205, 239, 0.18);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.marketing-dark .button.secondary .button-icon {
  color: #d4f06e;
  background: rgba(212, 240, 110, 0.09);
}

.hero-showcase {
  position: relative;
  align-self: center;
  justify-self: stretch;
  min-height: clamp(480px, 52vw, 720px);
  perspective: 1200px;
}

.hero-art {
  position: absolute;
  inset: -8% -18% -4% -16%;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  animation: heroArtFloat 9s ease-in-out infinite;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
}

.hero-art::before {
  inset: 15% 3% 10% 7%;
  background:
    radial-gradient(circle at 56% 47%, rgba(84, 228, 215, 0.22), transparent 34%),
    radial-gradient(circle at 48% 56%, rgba(212, 240, 110, 0.14), transparent 28%);
  filter: blur(28px);
  opacity: 0.8;
}

.hero-art::after {
  right: 6%;
  bottom: 8%;
  width: 58%;
  height: 12%;
  background: radial-gradient(ellipse, rgba(84, 228, 215, 0.24), transparent 68%);
  filter: blur(18px);
  opacity: 0.75;
}

.hero-art-image {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -5%;
  width: min(780px, 118%);
  max-width: none;
  transform: translate3d(0, -50%, 0) rotateY(-7deg) rotateZ(-1deg);
  opacity: 0;
  filter: saturate(1.05) contrast(1.06) drop-shadow(0 40px 96px rgba(0, 0, 0, 0.54));
  -webkit-mask-image: radial-gradient(ellipse at 52% 50%, #000 40%, rgba(0, 0, 0, 0.86) 58%, transparent 82%);
  mask-image: radial-gradient(ellipse at 52% 50%, #000 40%, rgba(0, 0, 0, 0.86) 58%, transparent 82%);
  mix-blend-mode: screen;
  transition: opacity 260ms ease, transform 260ms ease;
}

.hero-art-core {
  opacity: 0.95;
}

body.hero-variant-halo .hero-art-core {
  opacity: 0;
  transform: translate3d(2%, -50%, 0) rotateY(-4deg) rotateZ(1deg) scale(0.98);
}

body.hero-variant-halo .hero-art-halo {
  opacity: 0.9;
  transform: translate3d(4%, -50%, 0) rotateY(-9deg) rotateZ(-2deg) scale(1.03);
}

body.hero-variant-core .hero-art-core {
  opacity: 0.95;
}

body.hero-variant-core .hero-art-halo {
  opacity: 0;
}

@keyframes heroArtFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotateZ(0.6deg);
  }
}

.marketing-dark .proof-strip,
.marketing-dark .quality-board,
.marketing-dark .trust-ledger {
  border-color: rgba(174, 205, 239, 0.16);
  background: rgba(174, 205, 239, 0.11);
}

.marketing-dark .proof-strip article,
.marketing-dark .concept-grid article,
.marketing-dark .architecture-grid article,
.marketing-dark .muted-card,
.marketing-dark .operations-grid article,
.marketing-dark .quality-board article,
.marketing-dark .trust-ledger article,
.marketing-dark .pilot-timeline article,
.marketing-dark .demo-bridge-panel,
.marketing-dark .demo-story-step,
.marketing-dark .pilot-promise,
.marketing-dark .pilot-package {
  border-color: rgba(174, 205, 239, 0.14);
  background:
    linear-gradient(90deg, rgba(174, 205, 239, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(174, 205, 239, 0.03) 1px, transparent 1px),
    rgba(13, 20, 30, 0.78);
  background-size: 30px 30px, 30px 30px, auto;
  box-shadow: var(--soft-shadow);
}

.marketing-dark .demo-story-step.active,
.marketing-dark .demo-story-step:hover,
.marketing-dark .demo-story-step:focus-visible {
  border-color: rgba(84, 228, 215, 0.42);
  background:
    linear-gradient(90deg, rgba(84, 228, 215, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(84, 228, 215, 0.05) 1px, transparent 1px),
    rgba(14, 29, 35, 0.9);
}

.marketing-dark .demo-story-step span {
  color: #061016;
  background: linear-gradient(180deg, #d4f06e, #54e4d7);
}

.marketing-dark .focus-card {
  color: #f7fbff;
  border-color: rgba(84, 228, 215, 0.28);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(145deg, rgba(20, 95, 103, 0.94), rgba(22, 42, 64, 0.94));
  background-size: 30px 30px, 30px 30px, auto;
}

.marketing-dark .product-band {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(174, 205, 239, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(174, 205, 239, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #0a1018, #080c13);
  background-size: 40px 40px, 40px 40px, auto;
}

.marketing-dark .product-app-shell {
  border-color: rgba(174, 205, 239, 0.16);
  background: rgba(7, 11, 17, 0.82);
}

.marketing-dark .product-shot {
  border-color: rgba(174, 205, 239, 0.18);
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.4);
}

.marketing-dark .pilot-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(174, 205, 239, 0.16);
  background:
    linear-gradient(90deg, rgba(174, 205, 239, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(174, 205, 239, 0.038) 1px, transparent 1px),
    linear-gradient(115deg, rgba(84, 228, 215, 0.12), transparent 42%),
    rgba(8, 13, 20, 0.82);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.42);
}

.marketing-dark .pilot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(212, 240, 110, 0.18), transparent 27%),
    linear-gradient(280deg, rgba(84, 228, 215, 0.14), transparent 35%);
  opacity: 0.72;
}

.marketing-dark .pilot-card > * {
  position: relative;
  z-index: 1;
}

.marketing-dark .pilot-package {
  border-color: rgba(212, 240, 110, 0.22);
  box-shadow: 0 24px 68px rgba(84, 228, 215, 0.1);
}

.marketing-dark .pilot-package-title {
  color: #f7fbff;
}

.marketing-dark .pilot-package .button.primary {
  min-height: 54px;
  box-shadow: 0 22px 52px rgba(212, 240, 110, 0.18);
}

.marketing-dark .pilot-form label {
  color: #a9b6ca;
}

.marketing-dark .pilot-form input,
.marketing-dark .pilot-form select {
  color: #f7fbff;
  border-color: rgba(174, 205, 239, 0.16);
  background: rgba(3, 8, 13, 0.72);
}

.marketing-dark .pilot-form input:focus,
.marketing-dark .pilot-form select:focus {
  border-color: rgba(84, 228, 215, 0.52);
  box-shadow: 0 0 0 4px rgba(84, 228, 215, 0.11);
}

.marketing-dark .pilot-window-fixed {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.marketing-dark .pilot-window-fixed span {
  color: rgba(229, 234, 243, 0.56);
}

.marketing-dark .pilot-window-fixed strong {
  color: #ffffff;
}

.demo-page {
  background:
    linear-gradient(90deg, rgba(36, 107, 254, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 107, 254, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #eef5ff 0%, #f8fafc 42%, #eef3f8 100%);
  background-size: 38px 38px, 38px 38px, auto;
}

.demo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 620px);
  gap: clamp(20px, 4vw, 44px);
  align-items: end;
  max-width: 1480px;
  margin: 0 auto 18px;
}

.demo-intro h1 {
  max-width: 780px;
  font-size: clamp(2.25rem, 4vw, 4rem);
}

.product-app-shell.standalone {
  max-width: 1480px;
  margin: 0 auto;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@media (max-width: 1050px) {
  .hero,
  .split-section,
  .architecture,
  .pilot-card,
  .demo-bridge,
  .demo-story,
  .demo-story-stage,
  .product-shot-grid,
  .fit-grid,
  .industry-grid,
  .question-grid,
  .quality-section,
  .trust-section,
  .demo-intro {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .comparison-grid,
  .fit-grid,
  .operations-grid {
    grid-template-columns: 1fr;
  }

  .demo-story-steps {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }

  .demo-story-step {
    min-height: 92px;
    transform: none;
  }

  .demo-story-step:hover,
  .demo-story-step:focus-visible,
  .demo-story-step.active {
    transform: translateY(-2px);
  }

  .story-chat-window {
    min-height: 500px;
  }

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

  .product-app-shell {
    grid-template-columns: 1fr;
  }

  .app-rail {
    min-height: auto;
    grid-template-rows: auto auto auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .app-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .document-row {
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.8fr);
  }

  .document-row span:nth-child(n + 4),
  .document-row.table-head span:nth-child(n + 3) {
    display: none;
  }

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

  .workspace-sidebar,
  .source-panel {
    border: 0;
  }

  .hero {
    min-height: auto;
  }

  .marketing-dark .dark-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 150px;
    padding-right: 18px;
    padding-bottom: 76px;
    padding-left: 18px;
  }

  .hero-neuron-field {
    inset: 0;
  }

  .hero-showcase {
    min-height: 430px;
    margin-top: -22px;
  }

  .hero-art {
    inset: -18% -10% -18% -10%;
  }

  .hero-art-image {
    right: 50%;
    width: min(740px, 112vw);
    transform: translate3d(50%, -50%, 0) rotateY(-4deg);
  }

  body.hero-variant-halo .hero-art-halo {
    transform: translate3d(50%, -50%, 0) rotateY(-6deg) scale(1.04);
  }

  .hero-visual {
    min-height: 520px;
  }

  .concept-grid article:nth-child(2),
  .architecture-grid article:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .marketing-dark .topbar {
    position: absolute;
    top: 10px;
    right: 20px;
    left: 20px;
    display: block;
    padding: 10px 0;
  }

  .marketing-dark .brand-logo {
    width: 172px;
  }

  .marketing-dark .topnav {
    display: none;
  }

  .demo-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-topbar-actions {
    width: 100%;
  }

  .demo-topbar-actions .button {
    flex: 1;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
  }

  .topnav a {
    padding: 8px 10px;
  }

  .hero {
    padding-top: 40px;
  }

  .marketing-dark .dark-hero {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    min-height: auto;
    margin-top: -10px;
    margin-right: 0;
    margin-left: 0;
    padding-top: 106px;
    padding-right: 20px;
    padding-bottom: 54px;
    padding-left: 20px;
    overflow: hidden;
  }

  .marketing-dark .hero-copy {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: calc(100vw - 40px);
    min-width: 0;
  }

  .marketing-dark .dark-hero::after {
    background:
      linear-gradient(180deg, rgba(5, 7, 11, 0.96), rgba(5, 7, 11, 0.42) 44%, rgba(5, 7, 11, 0.72) 100%);
  }

  .hero-neuron-field {
    inset: 0;
  }

  .marketing-dark .hero-showcase {
    position: absolute;
    right: -22px;
    top: 590px;
    bottom: auto;
    z-index: 2;
    width: 310px;
    min-height: 230px;
    margin-top: 0;
    overflow: hidden;
    opacity: 0.44;
  }

  .hero-art {
    inset: -22% -10% -18%;
    opacity: 1;
  }

  .hero-art::before {
    inset: 22% 18% 18%;
    opacity: 0.5;
  }

  .hero-art-image {
    width: 360px;
    filter: saturate(1.05) contrast(1.02) drop-shadow(0 28px 72px rgba(0, 0, 0, 0.45));
  }

  .demo-shell {
    padding: 10px;
  }

  h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.45rem);
    line-height: 1;
  }

  .marketing-dark .hero h1 {
    max-width: calc(100vw - 40px);
    font-size: 2.98rem;
    line-height: 0.98;
  }

  h2,
  .section-heading h2,
  .split-section h2,
  .architecture h2 {
    font-size: clamp(1.8rem, 7.6vw, 2.55rem);
    line-height: 1.06;
  }

  .hero-text {
    max-width: calc(100vw - 40px);
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.46;
  }

  .hero-fit-line {
    display: none;
  }

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

  .marketing-dark .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: calc(100vw - 40px);
    margin-top: 20px;
  }

  .marketing-dark .hero-metrics span {
    min-width: 0;
    padding: 13px 10px;
    font-size: 0.66rem;
    line-height: 1.25;
  }

  .marketing-dark .hero-metrics strong {
    font-size: 1.3rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .visual-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-card,
  .answer-node {
    width: 82%;
  }

  .doc-card-a {
    left: 8%;
    top: 17%;
  }

  .doc-card-b {
    right: 7%;
    top: 39%;
  }

  .doc-card-c {
    left: 8%;
    bottom: 110px;
  }

  .answer-node {
    right: 8%;
    bottom: 66px;
  }

  .concept-grid,
  .architecture-grid,
  .comparison-grid,
  .quality-board,
  .fit-grid,
  .industry-grid,
  .question-grid,
  .pilot-timeline,
  .story-proof-metrics,
  .demo-story {
    gap: 12px;
  }

  .demo-story-steps {
    display: flex;
    margin-right: -20px;
    margin-left: -20px;
    padding: 0 20px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .demo-story-step {
    flex: 0 0 190px;
    scroll-snap-align: start;
  }

  .story-chat-window {
    min-height: auto;
    padding: 16px;
  }

  .story-window-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .story-message,
  .story-citation,
  .story-review {
    max-width: 100%;
  }

  .story-proof-panel {
    padding: 18px;
  }

  .product-shot img,
  .large-shot img {
    aspect-ratio: 4 / 3;
  }

  .demo-clip figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

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

  .login-card {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .product-app-shell {
    border-radius: 18px;
  }

  .app-main {
    padding: 10px;
  }

  .app-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .space-admin-grid {
    grid-template-columns: 1fr;
  }

  .module-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-row {
    grid-template-columns: 1fr;
  }

  .document-row.table-head {
    display: none;
  }

  .product-band {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .workspace {
    border-radius: 18px;
  }

  .proof-strip {
    margin-top: 10px;
    border-radius: 18px;
  }

  .comparison-card,
  .pilot-package {
    min-height: auto;
    padding: 20px;
  }

  .pilot-card {
    padding: 22px;
    border-radius: 20px;
  }

  .demo-bridge-panel {
    padding: 20px;
  }

  .message {
    max-width: 92%;
  }
}

/* Standalone dark product demo */
.dark-demo {
  min-height: 100vh;
  color: #eceff4;
  background:
    radial-gradient(circle at 50% -20%, rgba(36, 107, 254, 0.18), transparent 38%),
    linear-gradient(180deg, #0f1117 0%, #11141b 100%);
}

.dark-demo main {
  min-height: 100vh;
}

.demo-login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 28px;
}

.auth-ready .demo-login-screen {
  display: none;
}

.auth-pending .dark-app-shell {
  display: none;
}

.dark-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: min(100%, 1120px);
  color: #f7f9fc;
  text-decoration: none;
  font-weight: 800;
}

.dark-brand-logo {
  display: block;
  width: 210px;
  height: auto;
}

.dark-brand.compact {
  width: auto;
  justify-self: auto;
}

.dark-brand.compact .dark-brand-logo {
  width: 150px;
}

.dark-login-card {
  display: grid;
  width: min(100%, 430px);
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(24, 27, 36, 0.88);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
}

.dark-kicker {
  margin: 0 0 12px;
  color: #8fb2ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dark-login-card h1 {
  margin: 0;
  color: #f7f9fc;
  font-size: clamp(2rem, 6vw, 2.7rem);
  line-height: 1.03;
}

.dark-login-card p {
  margin: 14px 0 0;
  color: #9aa4b2;
  line-height: 1.55;
}

.dark-login-card label {
  display: grid;
  gap: 8px;
  color: #b7c0ce;
  font-size: 0.82rem;
  font-weight: 700;
}

.dark-login-card input,
.dark-login-card select {
  min-height: 48px;
  padding: 0 13px;
  color: #f7f9fc;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: #10131a;
  outline: none;
}

.dark-login-card input:focus,
.dark-login-card select:focus,
.dark-composer input:focus {
  border-color: rgba(74, 128, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.18);
}

.dark-submit {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #246bfe;
  font-weight: 800;
  cursor: pointer;
}

.google-login-button {
  justify-self: center;
  min-height: 42px;
  width: auto;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #f7f9fc;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 750;
  cursor: pointer;
}

.google-login-button:hover,
.google-login-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.login-state {
  color: #7d8795;
  font-size: 0.82rem;
  text-align: center;
}

.login-state.is-error {
  color: #ffb4a2;
}

.login-state.is-success {
  color: #83e7bc;
}

.dark-app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  background: #111318;
  overflow: hidden;
}

.dark-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #171a21;
}

.new-chat-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f7f9fc;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  text-align: left;
  padding: 0 13px;
  cursor: pointer;
}

.dark-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-history {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.chat-history section {
  display: grid;
  align-content: start;
  gap: 2px;
}

.chat-history section > span {
  display: block;
  margin: 2px 0 4px;
  color: #6f7a89;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.history-item {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #dbe1ea;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.history-item strong {
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item small {
  color: #7d8795;
  font-size: 0.78rem;
  line-height: 1.25;
}

.history-item:hover,
.history-item.active {
  background: rgba(255, 255, 255, 0.08);
}

.history-item.active {
  border-color: rgba(36, 107, 254, 0.26);
}

.dark-tabs .app-tab,
.dark-sidebar .space {
  color: #aab3c1;
  border-radius: 9px;
}

.dark-tabs .app-tab:hover,
.dark-tabs .app-tab.active,
.dark-sidebar .space:hover,
.dark-sidebar .space.active {
  color: #fff;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.dark-sidebar-section {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-sidebar-section > span {
  display: block;
  margin: 4px 0 8px;
  color: #6f7a89;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.top-tabs {
  justify-self: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.top-tabs .app-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
}

.top-tabs .app-tab.active {
  box-shadow: none;
}

.dark-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-user strong,
.dark-user small {
  display: block;
}

.dark-user small {
  margin-top: 4px;
  color: #858f9d;
}

.dark-main {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  background: #111318;
}

.dark-chat-topbar {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(260px, 1fr) auto auto;
  align-items: center;
  min-height: 64px;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #111318;
}

.dark-chat-topbar span,
.dark-status strong {
  display: block;
  color: #7d8795;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dark-chat-topbar strong {
  display: block;
  margin-top: 4px;
  color: #f7f9fc;
}

.dark-topbar-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.dark-topbar-title > div {
  min-width: 0;
}

.dark-topbar-brand {
  display: none;
  flex: 0 0 auto;
}

.dark-topbar-brand .dark-brand-logo {
  width: 138px;
}

.dark-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.space-menu {
  position: relative;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-icon-button {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  color: #dbe1ea;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.top-icon-button:hover,
.top-icon-button[aria-expanded="true"],
.settings-icon.active {
  color: #fff;
  border-color: rgba(36, 107, 254, 0.36);
  background: rgba(36, 107, 254, 0.14);
}

.space-menu-toggle {
  min-width: 178px;
  justify-content: space-between;
}

.space-menu-toggle small {
  color: #7d8795;
  font-size: 0.9rem;
}

.space-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  display: none;
  width: min(280px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #171a21;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.space-menu-list.is-open {
  display: grid;
  gap: 4px;
}

.space-menu-list .space {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  color: #aab3c1;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.space-menu-list .space:hover,
.space-menu-list .space.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dark-status #active-space {
  color: #dbe6ff;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

.dark-status strong {
  padding: 7px 9px;
  border-radius: 999px;
  color: #83e7bc;
  background: rgba(21, 184, 135, 0.12);
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.user-menu-toggle:hover,
.user-menu-toggle:focus {
  outline: none;
  border-color: rgba(36, 107, 254, 0.42);
  background: rgba(36, 107, 254, 0.18);
}

.user-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: none;
  width: 270px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #1b1f29;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.user-menu-panel.is-open {
  display: grid;
  gap: 6px;
}

.user-menu-head {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-menu-head strong,
.user-menu-head small {
  display: block;
}

.user-menu-head small {
  margin-top: 3px;
  color: #97a1af;
}

.user-menu-action {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #dbe1ea;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.user-menu-action:hover,
.user-menu-action:focus {
  outline: none;
  background: #202633;
}

.user-menu-action.danger {
  color: #ffb4a2;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  font-size: 0.78rem;
  font-weight: 800;
}

.dark-chat-panel {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.dark-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: clamp(24px, 5vw, 60px);
}

.dark-messages .message {
  max-width: min(760px, 86%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.dark-messages .message.assistant {
  color: #e8edf6;
  background: #1b1f29;
}

.dark-messages .message.cited {
  border-color: rgba(36, 107, 254, 0.28);
  background: #151a24;
}

.dark-messages .message.is-pending {
  color: #aeb8c7;
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.dark-messages .message.is-pending p::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  animation: pendingDots 1.2s steps(4, end) infinite;
}

@keyframes pendingDots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

.dark-messages .message.is-streaming p::after {
  content: "";
  width: 6px;
  height: 1em;
  margin-left: 3px;
  border-radius: 2px;
  background: currentColor;
  vertical-align: -2px;
  animation: stream-caret 900ms steps(2, end) infinite;
}

.dark-composer {
  display: grid;
  grid-template-columns: 44px 1fr 48px;
  gap: 10px;
  width: min(100% - 42px, 880px);
  margin: 0 auto 22px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #1b1f29;
}

.sample-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 12px;
  width: min(100% - 42px, 880px);
  margin: 0 auto 12px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(84, 228, 215, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(84, 228, 215, 0.08), transparent 58%),
    rgba(12, 19, 28, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.sample-context[hidden] {
  display: none;
}

.sample-context div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sample-context span {
  color: #9edbff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sample-context strong {
  color: #f7fbff;
  font-size: 0.96rem;
  line-height: 1.25;
}

.sample-context small {
  color: #a9b6ca;
  line-height: 1.35;
}

.sample-context button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #a9b6ca;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.sample-context button:hover,
.sample-context button:focus-visible {
  color: #f7fbff;
  outline: none;
  background: rgba(84, 228, 215, 0.14);
}

.composer-upload-button {
  display: grid;
  width: 44px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #dbe6ff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.composer-upload-button:hover,
.composer-upload-button:focus {
  outline: none;
  background: rgba(36, 107, 254, 0.24);
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.dark-composer input {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: #f7f9fc;
  border: 0;
  border-radius: 10px;
  background: transparent;
  outline: none;
}

.dark-composer input::placeholder {
  color: #7d8795;
}

.dark-source-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 12px;
  width: min(360px, calc(100vw - 28px));
  padding: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #171a21;
  overflow-y: auto;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.34);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.dark-source-panel.is-open {
  transform: translateX(0);
}

.dark-source-panel .panel-title,
.dark-source-panel .source-score {
  color: #f7f9fc;
}

.dark-source-panel .panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dark-source-panel .source-card,
.dark-module .document-event-panel,
.dark-module .document-detail-panel,
.dark-module .document-row,
.dark-module .module-head,
.dark-module .space-admin-grid article,
.dark-module .settings-panel,
.dark-module .settings-nav {
  color: #e8edf6;
  border-color: rgba(255, 255, 255, 0.08);
  background: #1b1f29;
  box-shadow: none;
}

.dark-source-panel .source-card strong,
.dark-module .compact-section-head strong,
.dark-module .api-event-row span,
.dark-module .document-detail-grid dd,
.dark-module .document-row strong,
.dark-module .module-head strong,
.dark-module h3,
.dark-module .settings-nav-item strong {
  color: #f7f9fc;
}

.dark-module .compact-section-head span,
.dark-module .api-event-row small,
.dark-module .api-event-row strong,
.dark-module .document-detail-grid dt,
.dark-module .document-detail-panel blockquote,
.dark-module .document-toolbar label,
.dark-module .document-toolbar > strong,
.dark-module .document-empty {
  color: #97a1af;
}

.dark-module .api-event-row {
  border-top-color: rgba(255, 255, 255, 0.07);
}

.dark-module .document-detail-tabs {
  border-color: rgba(255, 255, 255, 0.08);
  background: #111318;
}

.dark-module .document-detail-tabs button {
  color: #97a1af;
}

.dark-module .document-detail-tabs button.active {
  color: #f7f9fc;
  background: #252b37;
}

.dark-module .document-citation-list article {
  border-top-color: rgba(255, 255, 255, 0.07);
}

.dark-module .document-citation-list strong {
  color: #f7f9fc;
}

.dark-module .document-detail-panel blockquote {
  background: rgba(255, 255, 255, 0.04);
}

.dark-module .document-toolbar input,
.dark-module .document-toolbar select {
  color: #f7f9fc;
  border-color: rgba(255, 255, 255, 0.1);
  background: #111318;
}

.dark-module .document-row[data-document-title]:hover,
.dark-module .document-row[data-document-title].active {
  border-color: rgba(36, 107, 254, 0.38);
  background: #202634;
}

.dark-module .document-empty {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.document-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 0 0;
  color: #97a1af;
  font-size: 0.78rem;
}

.document-pager button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: #e8edf6;
  background: #111318;
  cursor: pointer;
}

.document-pager button:disabled {
  color: #687282;
  cursor: default;
  opacity: 0.55;
}

.source-retrieval-debug {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #97a1af;
  background: #111318;
  font-size: 0.76rem;
  line-height: 1.35;
}

.source-debug-toggle {
  width: fit-content;
  min-height: 26px;
  padding: 0;
  border: 0;
  color: #97a1af;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.source-debug-toggle[aria-pressed="true"] {
  color: #e8edf6;
}

.source-debug-details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #111318;
}

.source-debug-details summary {
  padding: 8px 10px;
  color: #e8edf6;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.source-debug-body {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
  color: #97a1af;
  font-size: 0.74rem;
}

.source-debug-body dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
}

.source-debug-body div {
  display: grid;
  gap: 2px;
}

.source-debug-body dt {
  color: #6f7a8a;
  font-weight: 900;
}

.source-debug-body dd,
.source-debug-body p {
  margin: 0;
  overflow-wrap: anywhere;
}

.source-debug-note {
  color: #c7d0dc;
}

.source-answer-history,
.source-review-backlog {
  display: grid;
  gap: 8px;
}

.source-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #97a1af;
}

.source-section-head span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.source-section-head strong {
  color: #dbe6ff;
  font-size: 0.76rem;
}

.answer-history-list {
  display: grid;
  gap: 6px;
}

.review-backlog-list {
  display: grid;
  gap: 6px;
}

.review-backlog-item {
  display: grid;
  width: 100%;
  border: 1px solid rgba(255, 171, 64, 0.18);
  border-radius: 8px;
  background: rgba(255, 171, 64, 0.06);
}

.review-backlog-item button {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  color: #dbe1ea;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.review-backlog-item strong,
.review-backlog-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-backlog-item strong {
  color: #f7f9fc;
  font-size: 0.74rem;
  font-weight: 900;
}

.review-backlog-item span {
  color: #ffcf8a;
  font-size: 0.68rem;
  font-weight: 800;
}

.review-backlog-item button:hover,
.review-backlog-item button:focus {
  background: rgba(255, 171, 64, 0.1);
  outline: none;
}

.review-backlog-item.empty {
  padding: 8px 10px;
  color: #8e98a8;
  background: #111318;
  border-color: rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
}

.answer-history-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #dbe1ea;
  background: #111318;
}

.answer-history-main {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.answer-history-item strong,
.answer-history-item span,
.answer-history-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.answer-history-item strong {
  color: #f7f9fc;
  font-size: 0.76rem;
  font-weight: 900;
}

.answer-history-item span {
  color: #8e98a8;
  font-size: 0.7rem;
  font-weight: 800;
}

.answer-history-item small {
  width: fit-content;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  color: #a7b5c9;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.66rem;
  font-weight: 900;
}

.answer-history-item[data-review-state="confirmed"] small {
  color: #83e7bc;
  background: rgba(21, 184, 135, 0.12);
}

.answer-history-item[data-review-state="needs_work"] small {
  color: #ffcf8a;
  background: rgba(255, 171, 64, 0.13);
}

.answer-history-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.answer-history-actions button {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #cfd8e6;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.answer-history-actions button:hover,
.answer-history-actions button:focus {
  border-color: rgba(36, 107, 254, 0.45);
  background: #202633;
  outline: none;
}

.answer-history-actions button:disabled {
  color: #667085;
  cursor: default;
  opacity: 0.75;
}

.answer-history-item:hover,
.answer-history-item:focus-within,
.answer-history-item.active {
  border-color: rgba(36, 107, 254, 0.45);
  background: #202633;
  outline: none;
}

.answer-history-item.empty {
  color: #8e98a8;
  cursor: default;
}

.message.is-streaming p::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-left: 3px;
  border-radius: 2px;
  background: currentColor;
  vertical-align: -2px;
  animation: stream-caret 900ms steps(2, end) infinite;
}

@keyframes stream-caret {
  50% {
    opacity: 0;
  }
}

.drawer-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.drawer-meta-grid label {
  display: grid;
  gap: 6px;
  color: #97a1af;
  font-size: 0.74rem;
  font-weight: 800;
}

.drawer-meta-grid input,
.drawer-meta-grid select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  color: #f7f9fc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: #111318;
  outline: none;
}

.drawer-meta-grid input:focus,
.drawer-meta-grid select:focus {
  border-color: rgba(36, 107, 254, 0.65);
  box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.14);
}

.dark-source-panel .source-card p,
.dark-module .document-row span,
.dark-module p,
.dark-module .role-row span,
.dark-module .toggle-row span,
.dark-module .settings-panel label,
.dark-module .settings-nav-item small,
.dark-module .settings-section-head span {
  color: #97a1af;
}

.dark-module .settings-nav-item {
  color: #aab3c1;
}

.dark-module .connection-card-head > span {
  color: #f7f9fc;
}

.dark-module .connection-card-head small,
.dark-module .connection-sync-meta,
.dark-module .connection-sync-history {
  color: #8e98a8;
}

.dark-module .credential-row > span {
  color: #f7f9fc;
}

.dark-module .credential-row.empty {
  color: #97a1af;
}

.dark-module .credential-row.empty span {
  color: #97a1af;
}

.dark-module .settings-nav-item span {
  color: #dbe6ff;
  background: rgba(36, 107, 254, 0.18);
}

.dark-module .settings-nav-item:hover,
.dark-module .settings-nav-item.active {
  border-color: rgba(36, 107, 254, 0.38);
  background: #202633;
}

.dark-module .settings-detail-pane {
  border-left-color: rgba(255, 255, 255, 0.08);
}

.dark-module .settings-list-row,
.dark-module .settings-empty-row {
  color: #97a1af;
}

.dark-module .settings-list-row:hover,
.dark-module .settings-list-row.active,
.dark-module .connection-card[data-select-connection]:hover,
.dark-module .connection-card[data-select-connection]:focus,
.dark-module .connection-card.active {
  color: #f7f9fc;
  border-color: rgba(36, 107, 254, 0.38);
  background: #202633;
}

.dark-module .settings-list-row span,
.dark-module .settings-detail-head strong {
  color: #f7f9fc;
}

.dark-module .settings-list-row small,
.dark-module .settings-detail-head span {
  color: #97a1af;
}

.dark-module .settings-list-row strong,
.dark-module .settings-empty-row strong {
  color: #8fb2ff;
}

.dark-module .settings-inline-add {
  color: #8fb2ff;
}

.dark-module .settings-inline-add:hover,
.dark-module .settings-inline-add:focus-visible {
  color: #dbe6ff;
}

.dark-module .settings-section-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-module .settings-section-head > strong {
  color: #8fb2ff;
}

.dark-module .settings-form-grid input,
.dark-module .settings-form-grid select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  color: #f7f9fc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: #111318;
  outline: none;
}

.dark-module .settings-form-grid input:focus,
.dark-module .settings-form-grid select:focus {
  border-color: rgba(36, 107, 254, 0.65);
  box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.14);
}

.dark-source-panel .source-card:hover,
.dark-source-panel .source-card:focus,
.dark-source-panel .source-card.active {
  border-color: rgba(36, 107, 254, 0.52);
  background: #202633;
}

.source-detail {
  display: none;
  gap: 14px;
  margin-top: 4px;
  padding: 15px;
  border: 1px solid rgba(36, 107, 254, 0.34);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(36, 107, 254, 0.12), rgba(36, 107, 254, 0.03)),
    #141923;
}

.source-detail.is-open {
  display: grid;
}

.source-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.source-detail-head span,
.source-meta-list dt {
  display: block;
  color: #7d8795;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.source-detail-head strong {
  display: block;
  margin-top: 6px;
  color: #f7f9fc;
  line-height: 1.25;
}

.source-meta-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.source-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.source-meta-list dd {
  margin: 0;
  color: #dbe1ea;
  text-align: right;
}

.source-detail blockquote {
  margin: 0;
  padding: 14px;
  border-left: 3px solid var(--blue);
  border-radius: 10px;
  color: #dbe1ea;
  background: rgba(255, 255, 255, 0.05);
  line-height: 1.55;
}

.source-detail-actions {
  display: grid;
  gap: 9px;
}

.source-detail-actions .button {
  min-height: 42px;
  padding: 10px 12px;
}

.document-row[data-document-title] {
  cursor: pointer;
}

.document-row[data-document-title]:hover {
  border-color: rgba(36, 107, 254, 0.4);
  background: #202633;
}

.document-viewer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  padding: 26px;
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(14px);
}

.document-viewer.is-open {
  display: grid;
  place-items: center;
}

.document-viewer-panel {
  display: grid;
  grid-template-rows: auto auto 1fr;
  width: min(1120px, 100%);
  height: min(860px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #141923;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.44);
}

.document-viewer-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.document-viewer-head span,
.viewer-meta span:first-child {
  display: block;
  color: #7d8795;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.document-viewer-head strong {
  display: block;
  margin-top: 5px;
  color: #f7f9fc;
  font-size: 1.15rem;
}

.viewer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.viewer-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #dbe1ea;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 700;
}

.viewer-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: #0f1117;
}

.viewer-body iframe {
  width: 100%;
  height: 100%;
  min-height: 640px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}

.viewer-body pre {
  min-height: 100%;
  margin: 0;
  padding: 20px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #e8edf6;
  background: #171a21;
  font: 0.95rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.viewer-placeholder {
  max-width: 760px;
  margin: 32px auto;
  padding: 28px;
  border: 1px solid rgba(36, 107, 254, 0.28);
  border-radius: 16px;
  color: #dbe1ea;
  background:
    linear-gradient(180deg, rgba(36, 107, 254, 0.14), rgba(36, 107, 254, 0.04)),
    #171a21;
}

.viewer-placeholder span {
  color: #8fb2ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-placeholder h3 {
  margin: 12px 0;
  color: #f7f9fc;
  font-size: 1.35rem;
}

.viewer-placeholder p {
  color: #b7c0ce;
  line-height: 1.65;
}

.viewer-placeholder mark {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #dbe6ff;
  background: rgba(36, 107, 254, 0.24);
}

.dark-module {
  min-height: calc(100vh - 64px);
  padding: 22px;
}

.dark-module .settings-panel input {
  color: #f7f9fc;
  border-color: rgba(255, 255, 255, 0.1);
  background: #111318;
}

.dark-chat-panel.is-dragging {
  outline: 2px solid rgba(36, 107, 254, 0.55);
  outline-offset: -8px;
}

.dark-chat-panel.is-dragging .chat-drop-overlay {
  opacity: 1;
  transform: scale(1);
}

.dark-drop,
.dark-drawer {
  color: #f7f9fc;
  background: rgba(17, 19, 24, 0.9);
}

.dark-drawer {
  width: min(340px, 92%);
  overflow-y: auto;
}

.dark-drawer .drawer-meta-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 1120px) {
  .dark-app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .dark-app-shell {
    grid-template-columns: 1fr;
    height: 100dvh;
  }

  .dark-sidebar {
    display: none;
  }

  .dark-chat-topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 10px;
    padding: 14px;
  }

  .dark-chat-topbar > div:first-child {
    min-width: 0;
  }

  .dark-topbar-brand {
    display: inline-flex;
  }

  .dark-chat-topbar > div:first-child strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dark-status {
    width: 100%;
    justify-content: flex-start;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .space-menu {
    min-width: 0;
  }

  .space-menu-toggle {
    min-width: 0;
    width: min(260px, 100%);
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .top-tabs {
    width: 100%;
    justify-content: stretch;
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .top-tabs .app-tab {
    flex: 1;
    text-align: center;
  }

  .user-menu {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    position: relative;
    top: auto;
    right: auto;
  }

  .dark-chat-panel {
    min-height: 0;
  }

  .dark-module {
    min-height: 0;
    overflow-y: auto;
  }

  .dark-messages {
    padding: 22px 14px;
  }

  .dark-composer {
    width: calc(100% - 20px);
    margin-bottom: 10px;
  }

  .sample-context {
    width: calc(100% - 20px);
  }
}

@media (max-width: 760px) {
  .demo-login-screen {
    padding: 16px;
  }

  .dark-chat-topbar {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .dark-topbar-title {
    gap: 10px;
  }

  .dark-topbar-brand .dark-brand-logo {
    width: 122px;
  }

  .dark-status {
    width: 100%;
    justify-content: flex-start;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .top-tabs {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .user-menu {
    grid-column: 2;
    grid-row: 2;
  }

  .settings-layout,
  .settings-form-grid,
  .settings-master-detail,
  .document-console {
    grid-template-columns: 1fr;
  }

  .settings-detail-pane {
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .dark-composer {
    grid-template-columns: 40px minmax(0, 1fr) 44px;
    gap: 8px;
    margin-bottom: 10px;
  }

  .sample-context {
    grid-template-columns: minmax(0, 1fr) 32px;
    padding: 12px;
  }

  .composer-upload-button {
    width: 40px;
    height: 48px;
  }

  .send-button {
    width: 44px;
  }
}

.platform-admin-page {
  min-height: 100vh;
  color: #eef5ff;
  background:
    radial-gradient(circle at 14% 8%, rgba(8, 182, 215, 0.18), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(201, 242, 77, 0.13), transparent 22%),
    linear-gradient(135deg, #070910 0%, #10141b 52%, #071016 100%);
}

.platform-admin-shell {
  width: min(1480px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 0 28px;
}

.platform-admin-topbar,
.platform-admin-hero,
.platform-admin-workspace,
.platform-detail-layout {
  display: grid;
  gap: 18px;
}

.platform-admin-topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px 0;
}

.platform-admin-brand img {
  width: 230px;
  height: auto;
}

.platform-admin-topbar nav {
  display: flex;
  gap: 8px;
}

.platform-admin-topbar a {
  color: rgba(238, 245, 255, 0.76);
  text-decoration: none;
}

.platform-admin-topbar nav a {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.platform-admin-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 20px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-eyebrow {
  margin: 0 0 5px;
  color: #91dff2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-admin-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.platform-admin-hero p {
  margin: 6px 0 0;
  color: rgba(238, 245, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.45;
}

.platform-admin-hero button,
.platform-card button,
.platform-primary-action,
.platform-secondary-action,
.platform-danger-action {
  min-height: 34px;
  padding: 7px 11px;
  color: #071016;
  border: 0;
  border-radius: 8px;
  background: #c9f24d;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.platform-primary-action {
  color: #071016;
  border: 0;
  background: #c9f24d;
}

.platform-admin-workspace {
  grid-template-columns: 1fr;
  padding-top: 24px;
}

.platform-tenant-panel,
.platform-detail-panel,
.platform-card,
.platform-metrics article {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(12, 16, 23, 0.72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.platform-tenant-panel,
.platform-detail-panel {
  padding: 16px;
}

.platform-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.platform-section-head span {
  color: rgba(238, 245, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.platform-section-head strong {
  color: #ffffff;
  font-size: 1.02rem;
}

.platform-overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.platform-overview-stats article {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.platform-overview-stats span {
  display: block;
  color: rgba(238, 245, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-overview-stats strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 1.35rem;
}

.platform-tenant-list {
  display: grid;
  gap: 8px;
}

.platform-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.platform-filter-tabs button {
  min-height: 30px;
  padding: 6px 10px;
  color: rgba(238, 245, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.platform-filter-tabs button.active,
.platform-filter-tabs button:hover {
  color: #071016;
  border-color: transparent;
  background: #91dff2;
}

.platform-tenant-row {
  display: grid;
  grid-template-columns: auto minmax(170px, 1.1fr) minmax(130px, 0.65fr) minmax(180px, 0.9fr) minmax(190px, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
  padding: 12px 14px;
  color: #eef5ff;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.platform-tenant-row.active,
.platform-tenant-row:hover {
  border-color: rgba(201, 242, 77, 0.5);
  background: rgba(201, 242, 77, 0.08);
}

.platform-tenant-row span {
  align-self: center;
  padding: 5px 7px;
  color: #071016;
  border-radius: 999px;
  background: #91dff2;
  font-size: 0.72rem;
  font-weight: 700;
}

.platform-tenant-row[data-status="pending_activation"] span {
  background: #ffdf8a;
}

.platform-tenant-row[data-status="active"] span {
  background: #9af0c9;
}

.platform-tenant-row[data-status="paused"] span,
.platform-tenant-row[data-status="cancelled"] span {
  background: #ffaaa0;
}

.platform-tenant-row strong,
.platform-tenant-row small,
.platform-tenant-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-tenant-row small,
.platform-tenant-row em {
  color: rgba(238, 245, 255, 0.58);
}

.platform-tenant-row em {
  font-style: normal;
}

.platform-tenant-row button {
  justify-self: end;
  min-height: 32px;
  padding: 6px 10px;
  color: #071016;
  border: 0;
  border-radius: 8px;
  background: #c9f24d;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.platform-secondary-action {
  width: auto;
  margin-top: 12px;
  color: #eef5ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.platform-danger-action {
  color: #ffdad6;
  border: 1px solid rgba(255, 107, 91, 0.28);
  background: rgba(255, 107, 91, 0.08);
}

.platform-detail-layout {
  grid-template-columns: 1fr;
}

.platform-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.platform-detail-toolbar .platform-secondary-action,
.platform-detail-toolbar .platform-primary-action,
.platform-detail-toolbar .platform-danger-action {
  width: auto;
  margin-top: 0;
}

.platform-empty-row {
  padding: 14px;
  color: rgba(238, 245, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.platform-admin-state {
  padding: 12px 14px;
  color: #91dff2;
  border: 1px solid rgba(145, 223, 242, 0.24);
  border-radius: 8px;
  background: rgba(145, 223, 242, 0.08);
}

.platform-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.platform-metrics article {
  padding: 16px;
}

.platform-metrics span {
  display: block;
  color: rgba(238, 245, 255, 0.58);
  font-size: 0.8rem;
}

.platform-metrics strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 1.8rem;
}

.platform-card {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 18px;
}

.platform-card > * {
  width: 100%;
}

.platform-card button {
  width: auto;
}

.platform-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.platform-card label,
.platform-module-grid {
  display: grid;
  gap: 7px;
  color: rgba(238, 245, 255, 0.65);
  font-size: 0.82rem;
  font-weight: 700;
}

.platform-card input,
.platform-card select,
.platform-card textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  color: #eef5ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.82);
}

.platform-card textarea {
  resize: vertical;
}

.platform-module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.platform-module-grid legend {
  padding: 0 6px;
  color: rgba(238, 245, 255, 0.58);
}

.platform-module-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-module-grid input {
  width: auto;
  min-height: 0;
}

.platform-audit-list {
  display: grid;
  gap: 8px;
}

.platform-audit-row,
.platform-audit-empty {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.platform-audit-row span {
  color: #91dff2;
  font-size: 0.78rem;
  font-weight: 700;
}

.platform-audit-row strong {
  color: #ffffff;
}

.platform-audit-row small,
.platform-audit-empty {
  color: rgba(238, 245, 255, 0.58);
}

@media (max-width: 980px) {
  .platform-admin-hero,
  .platform-admin-workspace {
    grid-template-columns: 1fr;
  }

  .platform-admin-hero {
    align-items: start;
  }
}

@media (max-width: 680px) {
  .platform-admin-shell {
    width: min(100% - 24px, 1480px);
  }

  .platform-admin-topbar,
  .platform-admin-hero,
  .platform-form-grid,
  .platform-metrics,
  .platform-module-grid,
  .platform-overview-stats,
  .platform-tenant-row {
    grid-template-columns: 1fr;
  }

  .platform-admin-brand img {
    width: 190px;
  }

  .platform-admin-hero h1 {
    font-size: 1.25rem;
  }

  .platform-admin-hero {
    gap: 12px;
  }

  .platform-admin-hero button {
    justify-self: start;
  }

  .platform-tenant-row button {
    justify-self: start;
  }
}
