:root {
  color-scheme: light;
  --bg: #f7f7fc;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #09132f;
  --muted: #5f6b85;
  --line: #e2e3f0;
  --accent: #5b35f5;
  --accent-strong: #4324d7;
  --gold: #c78a2d;
  --rose: #b55353;
  --shadow: 0 18px 48px rgba(32, 18, 105, 0.1);
  --topbar-bg: rgba(255, 255, 255, 0.92);
  --topbar-line: rgba(24, 21, 58, 0.1);
  --label: #1b2340;
  --chat-bg: #f2f0fb;
  --message-user-bg: #ece7ff;
  --chat-head-bg: rgba(255, 255, 255, 0.96);
  --mobile-chrome-bg: rgba(255, 255, 255, 0.94);
  --mobile-chrome-line: rgba(24, 21, 58, 0.12);
  --mobile-chrome-shadow: 0 16px 40px rgba(32, 18, 105, 0.2);
  --mobile-composer-height: 0px;
  --answer-actions-bg: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface) 34%);
  --dictation-button-bg: #fff;
  --dictation-transcribing: #8a5b16;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}


* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--topbar-line);
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-actions a {
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.top-logout-button {
  min-height: 36px;
  padding: 7px 11px;
}

.service-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.9rem;
}

.service-pill.online {
  color: var(--accent-strong);
  border-color: rgba(91, 53, 245, 0.25);
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px) 0 56px;
}

.home-choice-layout,
.start-layout,
.confirmation-layout,
.home-grid,
.admin-layout,
.interview-layout {
  display: grid;
  gap: 20px;
}

.home-choice-layout {
  gap: clamp(24px, 5vw, 42px);
}

.home-hero {
  display: grid;
  gap: 12px;
  padding: clamp(24px, 5vw, 54px) 0 4px;
}

.home-hero h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.95;
}

.home-hero .lead {
  margin-bottom: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.choice-card {
  display: grid;
  align-content: space-between;
  gap: 24px;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.choice-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.02;
}

.choice-card p {
  color: var(--muted);
  line-height: 1.55;
}

.primary-choice {
  color: #fff;
  background: linear-gradient(140deg, #4324d7, #5b35f5);
  border-color: rgba(91, 53, 245, 0.25);
}

.primary-choice .eyebrow {
  color: #d9ccff;
}

.primary-choice p {
  color: rgba(255, 255, 255, 0.78);
}

.primary-choice .primary-button {
  color: var(--accent-strong);
  background: #fff;
}


.wide-button {
  width: 100%;
  justify-self: stretch;
}

.start-layout {
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  align-items: start;
  gap: clamp(22px, 4vw, 42px);
}

.start-summary {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: clamp(10px, 2vw, 18px) 0;
}

.start-summary h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.start-note {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  color: var(--muted);
}

.start-note strong {
  color: var(--ink);
}

.public-start-panel .section-heading h2 {
  margin: 0;
}

.public-start-panel .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-start-panel label {
  font-weight: 400;
}

.consent-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
}

.consent-check input {
  width: 13px;
  height: 13px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.confirmation-layout {
  min-height: calc(100dvh - 180px);
  place-items: center;
}

.confirmation-panel {
  width: min(680px, 100%);
  display: grid;
  gap: 18px;
}

.confirmation-panel h1 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.confirmation-code {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(91, 53, 245, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: rgba(91, 53, 245, 0.07);
}

.confirmation-code span {
  color: var(--muted);
  font-weight: 800;
}

.confirmation-code strong {
  color: var(--accent-strong);
  font-size: clamp(2.2rem, 8vw, 4rem);
  letter-spacing: 0.05em;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-button {
  width: max-content;
  border: 0;
  padding: 0;
  color: var(--accent-strong);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.admin-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.interview-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.mobile-interview-tabs {
  display: none;
}

.mobile-menu-fab {
  display: none;
}

.desktop-chat-head {
  display: none;
}

.desktop-chat-head.is-hidden {
  display: none !important;
}

.chat-drawer-head {
  display: none;
}

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

.panel,
.intro-panel,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-panel {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 5vw, 56px);
  background:
    linear-gradient(140deg, rgba(91, 53, 245, 0.12), rgba(219, 98, 230, 0.12)),
    var(--surface);
}

.panel {
  padding: clamp(18px, 3vw, 28px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  letter-spacing: 0;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--label);
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(91, 53, 245, 0.65);
  box-shadow: 0 0 0 3px rgba(91, 53, 245, 0.12);
}

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

.primary-button,
.ghost-button,
.copy-button,
.option-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 15px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  justify-self: start;
  background: linear-gradient(135deg, #7048ff, #4e2be9);
  color: white;
}

.primary-button:hover {
  background: linear-gradient(135deg, #5f3eff, #3f20c8);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.ghost-button,
.copy-button {
  background: transparent;
  border-color: var(--line);
  color: var(--accent-strong);
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.error {
  color: var(--rose);
  font-weight: 750;
}

.success {
  color: var(--accent-strong);
  font-weight: 750;
}

.section-heading.tight h2 {
  margin-bottom: 0;
}

.admin-login {
  width: min(480px, 100%);
  margin: 0 auto;
}

.admin-login h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 76px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 9px;
  background: transparent;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(91, 53, 245, 0.1);
  outline: none;
}

.admin-dashboard {
  position: fixed;
  inset: 70px 0 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  background: #f5f5fb;
  color: #09132f;
}

.admin-sidebar {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  min-height: 0;
  border-right: 1px solid #e2e3f0;
  padding: 18px 14px;
  background: #071334;
  color: #eef1ff;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 16px;
  border-bottom: 1px solid rgba(239, 237, 251, 0.1);
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
  display: block;
}

.admin-sidebar-brand small {
  margin-top: 2px;
  color: rgba(239, 237, 251, 0.58);
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 11px;
  color: rgba(239, 237, 251, 0.7);
  text-align: left;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.admin-nav button:hover,
.admin-nav button.active {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.18);
  background: rgba(167, 139, 250, 0.12);
}

.admin-nav strong {
  min-width: 28px;
  border-radius: 999px;
  padding: 3px 7px;
  color: #d9ccff;
  text-align: center;
  background: rgba(167, 139, 250, 0.12);
  font-size: 0.78rem;
}

.admin-sidebar-card {
  align-self: end;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(239, 237, 251, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar-card span,
.admin-sidebar-card small {
  color: rgba(239, 237, 251, 0.62);
  font-size: 0.84rem;
  font-weight: 750;
}

.admin-sidebar-card strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.admin-dashboard .admin-sidebar .ghost-button {
  width: 100%;
  color: #d9ccff;
  border-color: rgba(239, 237, 251, 0.14);
}

.admin-main {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 20px clamp(16px, 2.4vw, 28px) 32px;
}

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

.admin-page-head h1 {
  margin: 0 0 4px;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  line-height: 1.08;
}

.admin-page-head .lead {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.38;
}

.admin-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 220px;
}

.admin-overview {
  display: grid;
  gap: 14px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-stats article {
  display: grid;
  gap: 5px;
  border: 1px solid #e2e3f0;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(32, 18, 105, 0.06);
}

.admin-stats span {
  color: #5f6b85;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-stats strong {
  color: #4324d7;
  font-size: 1.55rem;
  line-height: 1;
}

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

.admin-table-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid #e2e3f0;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(32, 18, 105, 0.06);
}

.admin-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.admin-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.compact-head {
  align-items: center;
}

.admin-list {
  display: grid;
  border-top: 1px solid #e7ebe6;
}

.admin-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef1ed;
  padding: 10px 2px;
  color: #09132f;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.admin-list-row:hover,
.admin-table tbody tr:hover {
  background: #f8f8fd;
}

.admin-list-row strong,
.admin-list-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-row small {
  margin-top: 3px;
  color: #5f6b85;
}

.admin-list-row em,
.status-chip {
  border-radius: 999px;
  padding: 4px 9px;
  color: #4324d7;
  background: rgba(91, 53, 245, 0.1);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.admin-table-wrap {
  min-width: 0;
  overflow: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #26322d;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e9ede8;
  padding: 9px 8px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #6a756f;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table tbody tr.selected {
  background: #f1effb;
}

.admin-table td {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-primary {
  max-width: 100%;
  border: 0;
  padding: 0;
  color: #09132f;
  text-align: left;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.table-primary:hover {
  color: #4324d7;
  text-decoration: underline;
}

.code-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.empty-table-note {
  margin: 0;
  padding: 18px 0 6px;
  color: #5f6b85;
  text-align: center;
}

.admin-save-note {
  color: #4324d7;
  font-weight: 800;
}

.admin-drawer-scrim {
  position: fixed;
  inset: 70px 0 0;
  z-index: 20;
  background: rgba(12, 18, 14, 0.38);
}

.admin-drawer {
  position: fixed;
  top: 70px;
  right: 0;
  bottom: 0;
  z-index: 21;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(560px, calc(100vw - 32px));
  border-left: 1px solid #cfd0e3;
  background: #fbfbfe;
  box-shadow: -24px 0 54px rgba(14, 22, 18, 0.24);
  animation: adminDrawerIn 180ms ease-out both;
}

@keyframes adminDrawerIn {
  from {
    opacity: 0.6;
    transform: translateX(36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.admin-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  background: #fff;
}

.admin-drawer-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-drawer-body {
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 28px;
}

.admin-form {
  display: grid;
  align-content: start;
  gap: 12px;
}

.admin-dashboard label {
  color: #3f4a6b;
  gap: 5px;
  font-size: 0.86rem;
}

.admin-dashboard input,
.admin-dashboard textarea,
.admin-dashboard select {
  border-color: #cfd0e3;
  padding: 9px 10px;
  background: #fff;
  color: #09132f;
  font-size: 0.9rem;
}

.admin-dashboard input::placeholder,
.admin-dashboard textarea::placeholder {
  color: #8c9891;
}

.admin-dashboard input:focus,
.admin-dashboard textarea:focus,
.admin-dashboard select:focus {
  border-color: rgba(91, 53, 245, 0.66);
  box-shadow: 0 0 0 3px rgba(91, 53, 245, 0.12);
}

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

.admin-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-button-row a,
.created-box a {
  color: #4324d7;
  font-weight: 850;
}

.admin-mini-list {
  display: grid;
  gap: 8px;
}

.admin-mini-list.compact {
  max-height: 260px;
  overflow: auto;
}

.admin-mini-row {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: #09132f;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.admin-mini-row:hover {
  border-color: rgba(91, 53, 245, 0.32);
  background: #f8f8fd;
}

.admin-mini-row strong,
.admin-mini-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mini-row span {
  color: #5f6b85;
  font-size: 0.9rem;
}

.admin-transcript {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f3f2fb;
}

.admin-transcript h3 {
  margin: 0;
}

.admin-transcript .message {
  width: 100%;
}

.question-editor-head,
.question-actions,
.toggle-row,
.session-detail-head,
.session-detail-actions {
  display: flex;
  align-items: center;
}

.question-editor-head,
.session-detail-head {
  justify-content: space-between;
  gap: 14px;
}

.compact-button,
.icon-button {
  min-height: 36px;
  padding: 8px 10px;
}

.icon-button {
  width: 38px;
  font-size: 1rem;
  line-height: 1;
}

.danger-button {
  color: var(--rose);
}

.question-editor {
  display: grid;
  align-content: start;
  gap: 14px;
}

.question-editor textarea {
  min-height: 76px;
}

.question-editor label {
  font-size: 0.94rem;
}

.question-editor h3 {
  margin: 0;
}

.question-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.brain-workspace {
  display: grid;
  gap: 14px;
  align-items: start;
}

.brain-command-bar {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.brain-command-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(91, 53, 245, 0.11), rgba(167, 139, 250, 0.06));
}

.brain-command-copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.05;
}

.brain-health-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.brain-health-strip article {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(32, 18, 105, 0.06);
}

.brain-health-strip span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.brain-health-strip strong {
  color: var(--accent-strong);
  font-size: 1.35rem;
  line-height: 1;
}

.brain-tabs {
  margin-top: 2px;
}

.brain-editor,
.brain-chat,
.prompt-layer-manager,
.learning-queue {
  display: grid;
  gap: 14px;
}

.master-prompt-input {
  min-height: min(56vh, 560px);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.brain-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.prompt-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
  background: rgba(91, 53, 245, 0.06);
}

.prompt-view-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.master-prompt-markdown {
  min-height: min(56vh, 560px);
  max-height: min(70vh, 720px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface-strong);
  color: var(--ink);
  line-height: 1.6;
}

.master-prompt-markdown > *:first-child {
  margin-top: 0;
}

.master-prompt-markdown > *:last-child {
  margin-bottom: 0;
}

.master-prompt-markdown h1,
.master-prompt-markdown h2,
.master-prompt-markdown h3,
.master-prompt-markdown h4,
.master-prompt-markdown h5,
.master-prompt-markdown h6 {
  margin: 1.15em 0 0.45em;
  color: var(--accent-strong);
  line-height: 1.2;
}

.master-prompt-markdown h1 {
  font-size: 1.35rem;
}

.master-prompt-markdown h2 {
  font-size: 1.18rem;
}

.master-prompt-markdown h3,
.master-prompt-markdown h4,
.master-prompt-markdown h5,
.master-prompt-markdown h6 {
  font-size: 1rem;
}

.master-prompt-markdown p,
.master-prompt-markdown ul,
.master-prompt-markdown ol,
.master-prompt-markdown blockquote,
.master-prompt-markdown pre {
  margin: 0 0 0.95em;
}

.master-prompt-markdown ul,
.master-prompt-markdown ol {
  padding-left: 1.35rem;
}

.master-prompt-markdown li + li {
  margin-top: 0.35em;
}

.master-prompt-markdown blockquote {
  border-left: 4px solid rgba(91, 53, 245, 0.28);
  padding: 8px 12px;
  background: rgba(91, 53, 245, 0.06);
  color: var(--muted);
}

.master-prompt-markdown code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.32em;
  background: rgba(32, 18, 105, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.master-prompt-markdown pre {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(32, 18, 105, 0.06);
}

.master-prompt-markdown pre code {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  white-space: pre;
}

.status-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-chip.online {
  border-color: rgba(91, 53, 245, 0.25);
  color: var(--accent-strong);
  background: rgba(91, 53, 245, 0.08);
}

.brain-message-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.brain-message {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-strong);
}

.brain-message.assistant {
  border-color: rgba(91, 53, 245, 0.22);
  background: rgba(91, 53, 245, 0.06);
}

.brain-message p {
  margin: 0;
  white-space: pre-wrap;
}

.brain-draft {
  display: grid;
  gap: 8px;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.learning-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--label);
  font-size: 0.84rem;
  font-weight: 800;
}

.learning-toggle input {
  width: auto;
}

.learning-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.learning-review-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.learning-review-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-strong);
}

.learning-review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.learning-review-card-head,
.learning-review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.learning-review-meta {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.learning-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.learning-evidence span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 750;
}

.brain-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.brain-chat-form textarea {
  min-height: 88px;
}

.prompt-layer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: 14px;
  align-items: start;
}

.prompt-layer-form textarea {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.prompt-layer-list,
.prompt-layer-group {
  display: grid;
  gap: 9px;
}

.prompt-layer-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.58);
}

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

.prompt-layer-group-head h3 {
  margin: 0;
  font-size: 0.94rem;
}

.prompt-layer-group-head span,
.prompt-layer-row em {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.prompt-layer-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  color: var(--ink);
  text-align: left;
  background: var(--surface-strong);
  cursor: pointer;
}

.prompt-layer-row:hover,
.prompt-layer-row.selected {
  border-color: rgba(91, 53, 245, 0.34);
  background: rgba(91, 53, 245, 0.07);
}

.prompt-layer-row.active em {
  border-color: rgba(91, 53, 245, 0.24);
  color: var(--accent-strong);
  background: rgba(91, 53, 245, 0.08);
}

.prompt-layer-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.prompt-layer-row strong,
.prompt-layer-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-layer-row small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.toggle-row {
  flex-wrap: wrap;
  gap: 14px;
}

.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.toggle-row input {
  width: auto;
}

.created-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(91, 53, 245, 0.25);
  border-radius: 8px;
  background: rgba(91, 53, 245, 0.08);
}

.created-box strong {
  font-size: 1.5rem;
}

.created-box span {
  color: var(--muted);
}

.compact-created {
  gap: 8px;
  padding: 10px;
}

.compact-created strong {
  font-size: 1rem;
}

.sessions-table-card {
  gap: 10px;
}

.sessions-table {
  min-width: 920px;
}

.sessions-table th.icon-column {
  width: 132px;
}

.session-title-button {
  display: grid;
  gap: 3px;
  text-align: left;
}

.session-title-button strong,
.session-title-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-title-button span {
  color: #5f6b85;
  font-size: 0.78rem;
  font-weight: 700;
}

.session-code-inline {
  color: #4324d7;
  font-size: 0.82rem;
}

.table-icon-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-action {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #cfd0e3;
  border-radius: 8px;
  color: #4324d7;
  background: transparent;
  cursor: pointer;
}

.icon-action:hover {
  border-color: rgba(91, 53, 245, 0.42);
  background: rgba(91, 53, 245, 0.08);
}

.icon-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.session-page {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.session-page-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e3f0;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(32, 18, 105, 0.06);
}

.session-page-head h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid #e2e3f0;
}

.admin-tabs button {
  min-height: 36px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 8px 11px;
  color: #5f6b85;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.admin-tabs button:hover,
.admin-tabs button.active {
  color: #4324d7;
  border-color: #e2e3f0;
  background: #fff;
}

.session-intelligence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.session-script-panel {
  max-height: none;
  min-height: 420px;
}

.session-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 0;
}

.session-list-panel {
  position: sticky;
  top: 0;
  gap: 10px;
  max-height: calc(100dvh - 152px);
  overflow: hidden;
}

.session-list {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.session-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 1px solid #e1e6e0;
  border-radius: 8px;
  padding: 9px 10px;
  color: #09132f;
  text-align: left;
  background: #fbfbfe;
  cursor: pointer;
}

.session-list-item:hover,
.session-list-item.selected {
  border-color: rgba(91, 53, 245, 0.32);
  background: rgba(91, 53, 245, 0.07);
}

.session-list-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.session-list-item strong,
.session-list-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-list-item strong {
  font-size: 0.9rem;
}

.session-list-item small {
  color: #5f6b85;
  font-size: 0.76rem;
}

.session-list-item em {
  border: 1px solid #e2e3f0;
  border-radius: 999px;
  padding: 4px 7px;
  color: #5f6b85;
  background: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
}

.session-review-panel {
  min-width: 0;
}

.session-review-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.session-editor-card {
  gap: 11px;
}

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

.session-code-pill {
  border: 1px solid rgba(91, 53, 245, 0.2);
  border-radius: 999px;
  padding: 6px 9px;
  color: #4324d7;
  background: rgba(91, 53, 245, 0.08);
  font-size: 0.78rem;
  line-height: 1;
}

.session-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 12px;
  align-items: stretch;
}

.compact-form-grid {
  gap: 9px 10px;
}

.compact-form-grid label,
.session-priming-field {
  gap: 5px;
  font-size: 0.82rem;
}

.wide-field {
  grid-column: 1 / -1;
}

.session-priming-field {
  display: grid;
  min-width: 0;
}

.session-priming-field textarea {
  min-height: 100%;
  resize: vertical;
}

.session-action-row {
  gap: 8px;
}

.session-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: 12px;
  align-items: start;
}

.session-detail-grid .admin-transcript {
  grid-column: 1 / -1;
  max-height: 460px;
}

.session-empty-state {
  display: grid;
  place-content: center;
  min-height: 360px;
  border: 1px dashed #cfd0e3;
  border-radius: 8px;
  padding: 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
}

.session-empty-state h2 {
  max-width: 520px;
  margin: 0 auto 8px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.session-detail {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(199, 138, 45, 0.32);
  border-radius: 8px;
  background: rgba(199, 138, 45, 0.08);
}

.session-detail h3 {
  margin: 0;
}

.session-detail-head > strong {
  padding: 7px 9px;
  border: 1px solid rgba(91, 53, 245, 0.2);
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--surface);
}

.session-detail pre {
  max-height: 300px;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: #232e4d;
  background: var(--surface-strong);
  font: 0.88rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.session-detail-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.session-intelligence {
  display: grid;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8f8fd;
}

.session-intelligence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.session-intelligence h3,
.session-intelligence h4,
.session-intelligence p {
  margin: 0;
}

.session-intelligence h3 {
  font-size: 1.05rem;
}

.session-intelligence h4 {
  color: #3f4a6b;
  font-size: 0.85rem;
}

.session-intelligence-body {
  display: grid;
  gap: 11px;
}

.intelligence-summary-grid,
.intelligence-field-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.intelligence-summary,
.intelligence-field-group,
.intelligence-chip-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fff;
}

.intelligence-summary {
  display: grid;
  gap: 5px;
}

.intelligence-summary span {
  color: #5f6b85;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.intelligence-summary p {
  color: #232e4d;
  font-size: 0.86rem;
  line-height: 1.4;
}

.intelligence-field-group {
  display: grid;
  gap: 9px;
}

.intelligence-field-group dl {
  display: grid;
  grid-template-columns: minmax(84px, 0.38fr) minmax(0, 1fr);
  gap: 6px 9px;
  margin: 0;
}

.intelligence-field-group dt {
  color: #5f6b85;
  font-size: 0.78rem;
  font-weight: 850;
}

.intelligence-field-group dd {
  min-width: 0;
  margin: 0;
  color: #232e4d;
  font-size: 0.85rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.intelligence-chip-groups {
  display: grid;
  gap: 8px;
}

.intelligence-chip-group {
  display: grid;
  gap: 7px;
}

.intelligence-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.intelligence-chips span {
  max-width: 100%;
  border: 1px solid rgba(91, 53, 245, 0.22);
  border-radius: 999px;
  padding: 6px 9px;
  color: #4324d7;
  background: rgba(91, 53, 245, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.session-copilot {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.session-copilot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.session-copilot h3,
.session-copilot p {
  margin: 0;
}

.session-copilot h3 {
  font-size: 1.05rem;
}

.session-copilot-messages {
  display: grid;
  gap: 8px;
  max-height: 270px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #f8f8fd;
}

.session-copilot-message {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fff;
}

.session-copilot-message.assistant {
  border-color: rgba(91, 53, 245, 0.22);
  background: rgba(91, 53, 245, 0.07);
}

.session-copilot-message span {
  color: #5f6b85;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.session-copilot-message p {
  color: #232e4d;
  font-size: 0.86rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.session-copilot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.session-copilot-form textarea {
  min-height: 72px;
}

.question-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-strong);
}

.admin-dashboard .primary-button {
  color: #fff;
  background: linear-gradient(135deg, #7048ff, #4e2be9);
}

.admin-dashboard .primary-button:hover {
  background: linear-gradient(135deg, #5f3eff, #3f20c8);
}

.admin-dashboard .ghost-button,
.admin-dashboard .copy-button {
  color: #4324d7;
  border-color: #cfd0e3;
  background: transparent;
}

.admin-dashboard .ghost-button:hover,
.admin-dashboard .copy-button:hover {
  border-color: rgba(91, 53, 245, 0.42);
  background: rgba(91, 53, 245, 0.08);
}

.admin-dashboard .text-button,
.admin-dashboard .admin-button-row a,
.admin-dashboard .created-box a {
  color: #4324d7;
}

.admin-dashboard .danger-button {
  color: #b55353;
}

.admin-dashboard .session-detail pre {
  color: #1b2340;
  border-color: #e2e3f0;
  background: #fff;
}


@media (max-width: 1180px) {
  .session-workspace,
  .session-editor-grid,
  .session-detail-grid,
  .session-intelligence-layout,
  .prompt-layer-layout {
    grid-template-columns: 1fr;
  }

  .session-list-panel {
    position: static;
    max-height: none;
  }

  .session-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 280px;
  }

  .session-priming-field textarea {
    min-height: 110px;
  }
}

@media (max-width: 760px) {
  .admin-dashboard {
    inset: 64px 0 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .admin-sidebar {
    grid-template-rows: auto auto;
    gap: 10px;
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid #24322b;
    padding: 10px 12px;
  }

  .admin-sidebar-brand {
    padding: 0 2px 8px;
  }

  .admin-nav {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-nav button {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .admin-sidebar-card,
  .admin-sidebar > .ghost-button {
    display: none;
  }

  .admin-main {
    padding: 16px 12px 28px;
  }

  .admin-page-head,
  .admin-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-actions {
    justify-content: flex-start;
    min-width: 0;
  }

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

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

  .admin-drawer-scrim {
    inset: 64px 0 0;
  }

  .admin-drawer {
    top: 64px;
    width: 100vw;
  }

  .admin-drawer-head,
  .admin-drawer-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-form .form-grid,
  .question-editor .form-grid {
    grid-template-columns: 1fr;
  }

  .session-list {
    grid-template-columns: 1fr;
  }

  .session-page-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .session-header-actions,
  .session-action-row {
    justify-content: flex-start;
  }

  .wide-field {
    grid-column: auto;
  }

  .intelligence-summary-grid,
  .intelligence-field-groups {
    grid-template-columns: 1fr;
  }

  .session-copilot-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

.interview-meta {
  position: sticky;
  top: 88px;
}

.interview-meta h1 {
  font-size: 2rem;
  line-height: 1.05;
}

.code-card {
  display: grid;
  gap: 4px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.code-card span {
  color: var(--muted);
}

.code-card strong {
  font-size: 1.65rem;
}

.chat-panel {
  position: relative;
  overflow: hidden;
}

.chat-workspace {
  display: flex;
  flex-direction: column;
  height: min(720px, calc(100dvh - 218px));
  min-height: 520px;
}

.participant-intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 22px;
  min-height: min(720px, calc(100dvh - 218px));
  padding: 26px;
}

.participant-intro-copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.participant-intro-copy h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 3.4rem;
  line-height: 0.98;
}

.participant-intro-copy .lead {
  max-width: 720px;
  margin: 0;
}

.participant-intro-points {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.participant-intro-points div {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.participant-intro-points strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.participant-intro-points span {
  color: var(--muted);
  line-height: 1.45;
}

.participant-intro-video {
  position: relative;
  display: block;
  max-width: 760px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(32, 18, 105, 0.12);
  border-radius: 8px;
  background: #020617;
  box-shadow: 0 18px 42px rgba(32, 18, 105, 0.16);
}

.participant-intro-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #020617;
}

.participant-intro-video-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  min-width: 210px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.32);
}

.participant-intro-actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.message-list {
  display: grid;
  align-content: start;
  gap: 14px;
  height: min(58vh, 620px);
  min-height: 320px;
  overflow-y: auto;
  padding: 18px;
  background: var(--chat-bg);
}

.primary-chat-list {
  flex: 1;
  height: auto;
  min-height: 0;
  border-radius: 8px 8px 0 0;
}

.message {
  width: min(86%, 680px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  animation: messageIn 220ms ease-out both;
}

.message.user {
  justify-self: end;
  background: var(--message-user-bg);
  border-color: rgba(91, 53, 245, 0.18);
}

.message.fresh {
  animation: messageIn 260ms ease-out both, freshGlow 900ms ease-out;
}

.message span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.message p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.score-summary-panel,
.answer-score-card {
  --score-accent: #5b35f5;
  --score-soft: rgba(91, 53, 245, 0.12);
  --score-width: 0%;
  display: grid;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--score-accent) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--score-accent) 8%, var(--surface));
  color: var(--ink);
}

.score-summary-panel {
  margin-top: 16px;
  padding: 12px;
}

.answer-score-card.inline {
  margin-top: 12px;
  padding: 10px;
  background: color-mix(in srgb, var(--score-accent) 10%, #ffffff);
}

.score-summary-panel.great,
.answer-score-card.great {
  --score-accent: #15803d;
}

.score-summary-panel.solid,
.answer-score-card.solid {
  --score-accent: #5b35f5;
}

.score-summary-panel.thin,
.answer-score-card.thin {
  --score-accent: #b45309;
}

.score-summary-panel.low,
.answer-score-card.low {
  --score-accent: #b91c1c;
}

.score-summary-panel.neutral,
.answer-score-card.neutral {
  --score-accent: #5f6b85;
}

.score-summary-panel > div:first-child,
.answer-score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-summary-panel span,
.answer-score-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.score-summary-panel strong,
.answer-score-head strong {
  color: var(--score-accent);
  font-size: 1.45rem;
  line-height: 1;
}

.score-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--score-soft);
}

.score-meter span {
  display: block;
  width: var(--score-width);
  height: 100%;
  border-radius: inherit;
  background: var(--score-accent);
  transition: width 360ms ease;
}

.score-summary-panel.neutral .score-meter span,
.answer-score-card.neutral .score-meter span {
  width: 100%;
  opacity: 0.28;
}

.score-summary-panel p,
.answer-score-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.score-toast {
  position: absolute;
  right: 18px;
  bottom: 112px;
  z-index: 20;
  width: min(340px, calc(100% - 36px));
  padding: 14px;
  box-shadow: 0 18px 45px rgba(32, 18, 105, 0.18);
  animation: scoreToastIn 240ms ease-out both;
}

.answer-box {
  position: relative;
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.chat-composer {
  display: grid;
  min-height: 0;
  border-top: 1px solid var(--line);
}

.answer-box.ready {
  box-shadow: inset 0 1px 0 rgba(91, 53, 245, 0.18);
}

.answer-box.bumped {
  animation: answerBump 300ms ease-out;
}

.answer-box.saving::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(91, 53, 245, 0.08), transparent);
  animation: saveSweep 1.1s ease-in-out infinite;
}

.question-header h2 {
  margin-bottom: 0;
}

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

.option-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
  color: var(--ink);
  background: var(--surface-strong);
  border-color: var(--line);
  transform: translateY(0);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.option-button:hover {
  transform: translateY(-1px);
  border-color: rgba(91, 53, 245, 0.35);
}

.option-check {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid rgba(91, 53, 245, 0.35);
  border-radius: 999px;
  background: var(--surface);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.option-button.selected {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(91, 53, 245, 0.22);
  animation: optionPop 180ms ease-out;
}

.option-button.selected .option-check {
  border-color: rgba(255, 255, 255, 0.92);
  background: #fff;
  transform: scale(1.05);
}

.option-button.selected .option-check::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.answer-text textarea {
  min-height: 104px;
  max-height: min(24vh, 220px);
  overflow-y: hidden;
}

.answer-text {
  display: grid;
  gap: 9px;
}

.dictation-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.dictation-button,
.dictation-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(91, 53, 245, 0.24);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--dictation-button-bg);
  color: var(--accent-strong);
  font-weight: 800;
  cursor: pointer;
}

.dictation-button.icon-only,
.dictation-menu-button.icon-only {
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
}

.dictation-menu-button {
  width: 34px;
  min-width: 34px;
  margin-left: -1px;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}

.dictation-control .dictation-button {
  border-radius: 8px;
}

.dictation-control.has-device-menu .dictation-button {
  border-radius: 8px 0 0 8px;
}

.dictation-button svg,
.dictation-menu-button svg,
.audio-device-check svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dictation-button svg rect {
  fill: currentColor;
  stroke: none;
}

.dictation-menu-button svg {
  width: 17px;
  height: 17px;
  transition: transform 160ms ease;
}

.dictation-menu-button.open svg {
  transform: rotate(180deg);
}

.recording-meter {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 46px;
  min-width: 76px;
  padding: 0 6px;
  color: var(--rose);
}

.recording-meter span {
  width: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 14px rgba(181, 83, 83, 0.18);
  transform-origin: center;
  animation: recordingBarPulse 620ms ease-in-out infinite;
  transition: height 80ms linear, opacity 80ms linear;
}

.recording-meter span:nth-child(2n) {
  animation-duration: 540ms;
}

.recording-meter span:nth-child(3n) {
  animation-duration: 720ms;
  animation-delay: 90ms;
}

.recording-meter span:nth-child(4n) {
  animation-delay: 150ms;
}

.dictation-button:hover,
.dictation-menu-button:hover {
  border-color: rgba(91, 53, 245, 0.5);
  background: rgba(91, 53, 245, 0.06);
}

.dictation-button.active {
  border-color: rgba(181, 83, 83, 0.45);
  background: rgba(181, 83, 83, 0.08);
  color: var(--rose);
}

.dictation-button.transcribing {
  border-color: rgba(199, 138, 45, 0.42);
  background: rgba(199, 138, 45, 0.08);
  color: var(--dictation-transcribing);
}

.dictation-button:disabled,
.dictation-menu-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.mic-dot {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(91, 53, 245, 0.1);
}

.dictation-button.active .mic-dot {
  animation: micPulse 950ms ease-in-out infinite;
}

.audio-device-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: grid;
  width: min(320px, calc(100vw - 28px));
  max-height: min(320px, 48vh);
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(91, 53, 245, 0.18);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 18px 48px rgba(32, 18, 105, 0.18);
}

.audio-device-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.audio-device-option:hover,
.audio-device-option.selected {
  background: rgba(91, 53, 245, 0.08);
  color: var(--accent-strong);
}

.audio-device-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}

.audio-device-option.selected .audio-device-check {
  color: var(--accent-strong);
}

.audio-device-check svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.dictation-preview,
.dictation-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.dictation-preview {
  padding-left: 10px;
  border-left: 3px solid rgba(91, 53, 245, 0.25);
  font-style: italic;
}

.dictation-status.error {
  color: var(--rose);
}

.file-drop {
  border: 1px dashed rgba(91, 53, 245, 0.42);
  border-radius: 8px;
  padding: 14px;
  background: rgba(91, 53, 245, 0.06);
  cursor: pointer;
}

.file-drop input {
  display: none;
}

.file-drop span {
  color: var(--accent-strong);
}

.answer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 8px;
}

.save-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 132px;
  justify-content: center;
}

.save-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.saving-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-strong);
  font-weight: 800;
}

.saving-ribbon span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  animation: pulseDot 900ms ease-in-out infinite;
}

.loading-strip {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.question-swap-enter-active,
.question-swap-leave-active {
  transition: opacity 180ms ease, transform 180ms ease;
}

.question-swap-enter-from {
  opacity: 0;
  transform: translateY(10px);
}

.question-swap-leave-to {
  opacity: 0;
  transform: translateY(-8px);
}

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

@keyframes scoreToastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes freshGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 53, 245, 0.22);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(91, 53, 245, 0);
  }
}

@keyframes optionPop {
  0% {
    transform: scale(0.98);
  }
  70% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes micPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(181, 83, 83, 0.1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(181, 83, 83, 0.18);
  }
}

@keyframes recordingBarPulse {
  0%,
  100% {
    transform: scaleY(0.86);
  }
  50% {
    transform: scaleY(1.18);
  }
}

@keyframes answerBump {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 53, 245, 0);
  }
  45% {
    box-shadow: 0 0 0 5px rgba(91, 53, 245, 0.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(91, 53, 245, 0);
  }
}

@keyframes saveSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

@keyframes pulseDot {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@media (min-width: 621px) {
  .chat-panel {
    overflow: visible;
  }

  .chat-side-panel {
    display: none;
  }

  .answer-box {
    align-content: start;
  }

  .primary-chat-list {
    max-height: calc(100dvh - 348px);
  }
}

@media (min-width: 921px) {
  .interview-layout {
    transition: grid-template-columns 220ms ease;
  }

}

@media (max-width: 920px) {
  .choice-grid,
  .start-layout,
  .home-grid,
  .admin-layout,
  .admin-overview-grid,
  .admin-two-column,
  .admin-two-column.wide,
  .brain-workspace,
  .interview-layout {
    grid-template-columns: 1fr;
  }

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

  .brain-command-bar {
    grid-template-columns: 1fr;
  }

  .brain-health-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-layer-layout {
    grid-template-columns: 1fr;
  }

  .start-summary {
    position: static;
    padding: 8px 0 0;
  }

  .intro-panel {
    min-height: 320px;
  }

  .interview-meta {
    position: static;
  }
}

@media (max-width: 620px) {
  body {
    background: var(--bg);
  }

  .topbar {
    position: sticky;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand span:last-child {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .top-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .top-actions a {
    display: none;
  }

  .service-pill {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .app-shell {
    width: 100%;
    padding: 12px 12px 18px;
  }

  .home-choice-layout,
  .start-layout,
  .choice-grid,
  .home-grid,
  .admin-layout,
  .admin-dashboard,
  .admin-overview-grid,
  .admin-two-column {
    gap: 12px;
  }

  .admin-hero {
    align-items: start;
    flex-direction: column;
  }

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

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .admin-tabs button {
    white-space: nowrap;
  }

  .home-hero {
    padding: 16px 4px 4px;
  }

  .home-hero h1,
  .start-summary h1 {
    font-size: 2.25rem;
    line-height: 1.02;
  }

  .choice-card {
    min-height: 0;
    gap: 18px;
    padding: 20px;
  }

  .choice-card h2 {
    font-size: 1.7rem;
  }

  .public-start-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .intro-panel,
  .panel,
  .chat-panel {
    border-radius: 12px;
  }

  .intro-panel {
    min-height: 280px;
    padding: 24px;
  }

  .intro-panel h1 {
    font-size: 2.2rem;
  }

  .form-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .admin-side-head,
  .config-header,
  .question-editor-head,
  .session-detail-head {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .interview-layout {
    display: block;
    min-height: calc(100dvh - 88px);
    padding-bottom: calc(var(--mobile-composer-height) + env(safe-area-inset-bottom) + 22px);
  }

  .interview-pane {
    animation: paneIn 200ms ease-out both;
  }

  .answer-pane {
    animation: none;
  }

  .mobile-tab-overview .answer-workspace,
  .mobile-tab-chat .overview-pane,
  .mobile-tab-answer .overview-pane {
    display: none;
  }

  .interview-meta,
  .chat-panel {
    min-height: calc(100dvh - 154px);
  }

  .participant-intro-panel {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 154px);
    padding: 22px;
  }

  .participant-intro-copy h2 {
    font-size: 2.3rem;
  }

  .participant-intro-video {
    max-width: 100%;
  }

  .interview-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
  }

  .interview-meta h1 {
    font-size: 2.25rem;
  }

  .code-card {
    margin: 18px 0;
  }

  .chat-panel {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 154px);
    min-height: 0;
    overflow: visible;
    box-shadow: none;
    animation: none;
  }

  .message-list {
    flex: 1;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 14px 14px calc(var(--mobile-composer-height) + env(safe-area-inset-bottom) + 22px);
    border-radius: 12px;
    scroll-padding-bottom: calc(var(--mobile-composer-height) + env(safe-area-inset-bottom) + 22px);
    overscroll-behavior: contain;
  }

  .message {
    width: 100%;
  }

  .answer-box {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 0;
    z-index: 16;
    max-height: min(58dvh, 430px);
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    border: 1px solid var(--mobile-chrome-line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -16px 44px rgba(32, 18, 105, 0.18);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .score-toast {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--mobile-composer-height) + env(safe-area-inset-bottom) + 12px);
    width: auto;
  }

  .question-header h2 {
    font-size: 1.42rem;
    line-height: 1.2;
  }

  .option-grid {
    gap: 7px;
  }

  .chat-composer .option-grid {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .chat-composer .option-grid::-webkit-scrollbar {
    display: none;
  }

  .option-button {
    min-height: 46px;
    padding: 10px 13px;
  }

  .chat-composer .option-button {
    flex: 0 0 auto;
    max-width: min(72vw, 260px);
    min-height: 40px;
    padding: 9px 12px;
    white-space: normal;
  }

  .answer-text textarea {
    min-height: 52px;
    max-height: min(22dvh, 150px);
    resize: none;
  }

  .answer-actions {
    position: static;
    margin-top: 0;
    padding: 0;
    background: transparent;
  }

  .save-button {
    width: auto;
  }

  .mobile-interview-tabs {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--mobile-chrome-line);
    border-radius: 18px;
    background: var(--mobile-chrome-bg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 18px));
    transition: opacity 210ms ease, transform 210ms ease;
    box-shadow: var(--mobile-chrome-shadow);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .mobile-interview-tabs.is-revealed,
  .mobile-tabs-revealed .mobile-interview-tabs {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    display: grid !important;
  }

  .mobile-interview-tabs.is-disabled,
  .mobile-interview-tabs.is-disabled.is-revealed,
  .mobile-tabs-revealed .mobile-interview-tabs.is-disabled,
  .mobile-menu-fab.is-disabled,
  .mobile-menu-fab.is-disabled.is-hidden,
  .interview-layout.mobile-tabs-revealed .mobile-menu-fab.is-disabled,
  .mobile-tabs-revealed .mobile-menu-fab.is-disabled {
    display: none !important;
  }

  .mobile-menu-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 12;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid var(--mobile-chrome-line);
    border-radius: 999px;
    background: var(--mobile-chrome-bg);
    box-shadow: var(--mobile-chrome-shadow);
    cursor: pointer;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 180ms ease, transform 180ms ease, bottom 220ms ease;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .mobile-menu-fab.is-hidden,
  .interview-layout.mobile-tabs-revealed .mobile-menu-fab,
  .mobile-tabs-revealed .mobile-menu-fab {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(10px) scale(0.92) !important;
  }

  .mobile-menu-fab span {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow:
      -9px 0 0 var(--accent),
      9px 0 0 var(--accent);
  }

  .mobile-menu-fab span:nth-child(2),
  .mobile-menu-fab span:nth-child(3) {
    display: none;
  }

  .mobile-interview-tabs button {
    display: grid;
    gap: 4px;
    min-width: 0;
    min-height: 50px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
  }

  .mobile-interview-tabs button.active {
    color: #fff;
    background: var(--accent);
  }

  .tab-glyph {
    position: relative;
    width: 22px;
    height: 18px;
  }

  .overview-glyph::before,
  .overview-glyph::after,
  .chat-glyph::before,
  .chat-glyph::after,
  .answer-glyph::before,
  .answer-glyph::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: currentColor;
  }

  .overview-glyph::before {
    inset: 1px 12px 1px 1px;
  }

  .overview-glyph::after {
    inset: 3px 1px 3px 12px;
  }

  .chat-glyph::before {
    inset: 2px 1px 5px 1px;
    border-radius: 7px;
  }

  .chat-glyph::after {
    width: 8px;
    height: 8px;
    left: 5px;
    bottom: 1px;
    transform: skewX(-28deg);
  }

  .answer-glyph::before {
    width: 18px;
    height: 18px;
    left: 2px;
    top: 0;
    opacity: 0.35;
  }

  .answer-glyph::after {
    width: 9px;
    height: 5px;
    left: 6px;
    top: 5px;
    border-radius: 0;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    background: transparent;
    transform: rotate(-45deg);
  }

  .chat-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
  }

  .chat-drawer-head h2 {
    margin: 0;
    font-size: 1.25rem;
  }

  .chat-drawer-head button {
    display: none;
  }
}

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

  .pipeline-sparks {
    display: none;
  }
}

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

@keyframes sidePanelIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #5b35f5;
  font-size: 0;
}

.brand-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mini-mark {
  color: #fff;
}

.topbar {
  min-height: 78px;
  border-bottom: 0;
  background: var(--topbar-bg);
  box-shadow: 0 1px 0 var(--topbar-line);
}

#app:has(.marketing-page) .topbar {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(13, 22, 50, 0.06);
}

.brand strong {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.brand small {
  font-size: 0.7rem;
  letter-spacing: 0.01em;
}

.top-actions a {
  color: var(--ink);
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

#app:has(.marketing-page) .brand strong {
  color: #09132f;
}

#app:has(.marketing-page) .top-actions a {
  color: #333c58;
}

#app:has(.marketing-page) .top-actions a:hover,
#app:has(.marketing-page) .top-actions a:focus-visible {
  color: #09132f;
}

#app:has(.marketing-page) .brand-mark {
  color: #5b35f5;
}

.demo-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff !important;
  background: #4324d7;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(24, 12, 84, 0.24);
  transition: background 0.15s ease;
}

.demo-button:hover {
  background: #331aae;
}

.nav-group {
  position: relative;
}

.nav-group::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -22px;
  left: -22px;
  height: 72px;
}

.nav-menu-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 0;
  padding: 0;
  color: #333c58;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease;
}

.nav-menu-button:hover,
.nav-group.open .nav-menu-button {
  color: #09132f;
}

.nav-menu-button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(220px, 1fr);
  gap: 18px;
  width: min(620px, calc(100vw - 34px));
  border: 1px solid rgba(9, 19, 47, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 26px 70px rgba(9, 19, 47, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.mega-menu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 72px;
}

.nav-group.open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-menu-feature,
.mega-menu-links {
  display: grid;
  gap: 10px;
}

.mega-menu-feature {
  border-radius: 8px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(141, 106, 255, 0.35), transparent 46%),
    linear-gradient(150deg, #221457, #0d0a2e);
}

.mega-menu-feature span,
.feature-card span,
.article-grid span {
  color: #4d3bb8;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mega-menu-feature span {
  color: rgba(219, 211, 255, 0.72);
}

.mega-menu-feature a {
  color: #fff !important;
  font-size: 1.06rem;
  font-weight: 600;
}

.mega-menu-feature p {
  margin: 0;
  color: rgba(232, 227, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mega-menu-links a {
  border-radius: 8px;
  padding: 11px 12px;
  color: #172033 !important;
  font-weight: 500;
}

.mega-menu-links a:hover,
.mega-menu-links a:focus-visible {
  background: #f3f1fd;
}

.app-shell:has(.marketing-page) {
  width: 100%;
  padding: 0;
}

.marketing-page {
  --site-ink: #0c1029;
  --site-muted: #565e76;
  --site-line: rgba(44, 48, 84, 0.16);
  --site-rule: rgba(12, 16, 41, 0.62);
  --site-violet: #5b35f5;
  --site-violet-dark: #4324d7;
  --site-lilac: #f2efff;
  color: var(--site-ink);
  background:
    radial-gradient(circle at 84% 8%, rgba(91, 53, 245, 0.09), transparent 24%),
    #fdfdff;
}

.marketing-page h1,
.marketing-page h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
}

.marketing-page section,
.site-footer {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 580px;
  padding: clamp(34px, 5vw, 56px) 0 clamp(28px, 4vw, 46px);
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.marketing-page .eyebrow {
  margin: 0;
  color: var(--site-violet-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marketing-hero h1 {
  margin: 0;
  max-width: 560px;
  color: var(--site-ink);
  font-size: clamp(2.5rem, 3.4vw, 3.15rem);
  line-height: 1.05;
}

.marketing-hero h1 em {
  color: var(--site-violet-dark);
  font-style: italic;
}

.marketing-page .lead {
  max-width: 560px;
  color: var(--site-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions,
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.marketing-page .primary-button {
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 22px;
  background: #4324d7;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(24, 12, 84, 0.28), 0 8px 22px rgba(67, 36, 215, 0.16);
  transition: background 0.15s ease;
}

.marketing-page .primary-button:hover {
  background: #331aae;
}

.marketing-page .ghost-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-color: rgba(12, 16, 41, 0.24);
  border-radius: 8px;
  padding: 12px 22px;
  color: var(--site-ink);
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s ease;
}

.marketing-page .ghost-button:hover {
  border-color: rgba(12, 16, 41, 0.5);
}

.trust-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--site-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.trust-note span {
  color: var(--site-violet);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  overflow: visible;
}

.hero-pipeline-animation {
  width: min(760px, 60vw);
  max-width: none;
  transform: translateX(24px);
  filter: drop-shadow(0 24px 42px rgba(72, 55, 140, 0.18));
  isolation: isolate;
}

.hero-pipeline-animation svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-pipeline-animation .mobile-pipeline {
  display: none;
}

.pipeline-canvas {
  /* Local preview: hide the hero animation's outer rounded container. */
  display: none;
  fill: rgba(255, 255, 255, 0.72);
  stroke: rgba(90, 106, 138, 0.18);
}

.pipeline-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.86;
}

.output-line {
  filter: drop-shadow(0 0 7px rgba(82, 63, 189, 0.18));
  stroke: #7457ff;
  stroke-width: 5;
  opacity: 0.95;
}

.output-pipe {
  stroke-linecap: butt;
  stroke-width: 24;
  opacity: 0.9;
}

.output-arrowhead {
  fill: #7457ff;
  filter: drop-shadow(0 0 7px rgba(82, 63, 189, 0.18));
  opacity: 0.9;
}

.line-leadership {
  stroke: #6d56b2;
}

.line-people {
  stroke: #c15fae;
}

.line-strategy {
  stroke: #4d78c0;
}

.line-customer {
  stroke: #4aa8c9;
}

.line-ops {
  stroke: #d6a93c;
}

.pipeline-person-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: pipelineNodeBreathe 4.8s ease-in-out infinite;
}

.pipeline-person-node text {
  fill: #6b7287;
  font-size: 15px;
  font-weight: 800;
}

.person-shadow {
  fill: #fff;
  opacity: 0.92;
}

.person-face {
  fill: #f5f7fb;
  stroke: #fff;
  stroke-width: 7;
}

.person-photo {
  transform-box: fill-box;
  transform-origin: center;
}

.person-photo-ring {
  fill: none;
  stroke: #fff;
  stroke-width: 7;
}

.person-face.node-leadership {
  stroke: #6d56b2;
}

.person-photo-ring.node-leadership {
  stroke: #6d56b2;
}

.person-face.node-people {
  stroke: #c15fae;
}

.person-photo-ring.node-people {
  stroke: #c15fae;
}

.person-face.node-strategy {
  stroke: #4d78c0;
}

.person-photo-ring.node-strategy {
  stroke: #4d78c0;
}

.person-face.node-customer {
  stroke: #4aa8c9;
}

.person-photo-ring.node-customer {
  stroke: #4aa8c9;
}

.person-face.node-ops {
  stroke: #d6a93c;
}

.person-photo-ring.node-ops {
  stroke: #d6a93c;
}

.person-head {
  fill: #7f8799;
}

.person-body {
  fill: #c8cedd;
}

.pipeline-hub {
  transform-box: fill-box;
  transform-origin: center;
  animation: pipelineHubPulse 3.6s ease-in-out infinite;
}

.hub-ring {
  fill: #fff;
  opacity: 1;
}

.hub-spoke {
  stroke: #fff;
  stroke-width: 3;
  opacity: 0.76;
}

.hub-dot {
  fill: #fff;
  opacity: 0.96;
}

.hub-pin {
  transform-box: fill-box;
  transform-origin: center;
  animation: hubPinPulse var(--pin-duration, 3s) ease-in-out infinite;
  animation-delay: var(--pin-delay, 0s);
}

.hub-core-dot {
  fill: #fff;
}

.pipeline-card {
  filter: drop-shadow(0 12px 22px rgba(34, 30, 70, 0.12));
}

.pipeline-card rect:first-child {
  fill: #fff;
  stroke: #e0e2ea;
}

.pipeline-card text {
  fill: #181828;
  font-size: 15px;
  font-weight: 700;
}

.pipeline-card .card-title {
  font-size: 20px;
  font-weight: 900;
}

.pipeline-card .score {
  font-size: 16px;
  font-weight: 900;
  transform-box: fill-box;
  transform-origin: center;
  animation: metricScoreRecalculate 3.8s ease-in-out infinite;
  animation-delay: var(--metric-delay, 0s);
}

.pipeline-card .bar-track {
  fill: #e6e5ef;
}

.pipeline-card .bar-fill {
  fill: #5b35f5;
}

.pipeline-card .impact-score {
  fill: #5b35f5;
  font-size: 54px;
  font-weight: 950;
}

.impact-line {
  fill: none;
  stroke: #5b35f5;
  stroke-width: 3;
  stroke-linecap: round;
}

.impact-point {
  fill: #fff;
  stroke: #5b35f5;
  stroke-width: 2;
}

.spark {
  opacity: 0.9;
}

.spark-white {
  fill: #fff;
}

.spark-gold {
  fill: #e2ba67;
}

.spark-leadership {
  fill: #6d56b2;
}

.spark-people {
  fill: #c15fae;
}

.spark-strategy {
  fill: #4d78c0;
}

.spark-customer {
  fill: #4aa8c9;
}

.spark-ops {
  fill: #d6a93c;
}

.spark-violet {
  fill: #7457ff;
}

.spark-trail {
  fill: url(#heroSparkGradient);
  opacity: 0.78;
}

.mobile-pipeline .spark-trail {
  fill: url(#heroSparkGradientMobile);
}

.mobile-pipeline .pipeline-person-node text {
  font-size: 10px;
}

.mobile-pipeline .pipeline-card text {
  font-size: 13px;
}

.mobile-pipeline .pipeline-card .card-title {
  font-size: 19px;
}

.mobile-pipeline .pipeline-card .score {
  font-size: 14px;
}

.mobile-pipeline .output-pipe {
  stroke-width: 20;
}

@keyframes pipelineHubPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.035);
    opacity: 0.96;
  }
}

@keyframes hubPinPulse {
  0%, 62%, 100% {
    transform: scale(1);
    opacity: 0.82;
  }
  18% {
    transform: scale(1.55);
    opacity: 1;
  }
  34% {
    transform: scale(1.12);
    opacity: 0.94;
  }
}

@keyframes metricScoreRecalculate {
  0%, 100% {
    fill: #181828;
    transform: translateY(0) scale(1);
  }
  22% {
    fill: #5b35f5;
    transform: translateY(-0.8px) scale(1.08);
  }
  44% {
    fill: #181828;
    transform: translateY(0) scale(1);
  }
}

@keyframes pipelineNodeBreathe {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.hero-composite-video {
  display: block;
  width: min(760px, 60vw);
  max-width: none;
  height: auto;
  object-fit: contain;
  transform: translateX(24px);
}

.ranked-list b {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ddff;
}

.ranked-list b::after {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7a5cff, #4e2be9);
}

.sparkline {
  height: 42px;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(135deg, transparent 42%, rgba(91, 53, 245, 0.34) 43%, rgba(91, 53, 245, 0.34) 47%, transparent 48%),
    linear-gradient(160deg, transparent 58%, rgba(91, 53, 245, 0.22) 59%, transparent 62%);
}

.logo-strip {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--site-line);
  border-bottom: 1px solid var(--site-line);
  margin-top: 8px;
  padding: 22px 0;
  text-align: center;
}

.logo-strip p {
  margin: 0;
  color: var(--site-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-strip div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  color: #494f66;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-strip div span:not(:first-child)::before {
  content: "◇";
  margin-right: 34px;
  color: rgba(91, 53, 245, 0.38);
  font-size: 0.62rem;
  vertical-align: 2px;
}

.steps-section {
  display: grid;
  gap: 10px;
  padding: 28px 0 72px;
  text-align: left;
}

.steps-section > h2 {
  max-width: 560px;
  margin-bottom: 22px;
}

.steps-section h2,
.report-section h2,
.conversation-section h2,
.home-adi-entry h2,
.final-cta h2,
.product-suite-section h2,
.modes-section h2,
.audience-section h2,
.insights-section h2,
.subpage-content-section h2 {
  margin: 0;
  color: var(--site-ink);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.12;
}

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

.section-kicker-row > div {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.text-link {
  color: var(--site-violet-dark);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  content: " →";
}

.text-link:hover {
  text-decoration: underline;
}

.product-suite-section,
.modes-section,
.audience-section,
.insights-section {
  display: grid;
  gap: 26px;
  padding: 34px 0 66px;
}

.product-card-grid,
.audience-grid,
.article-grid,
.subpage-card-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.audience-grid article,
.article-grid article,
.mode-grid article,
.subpage-list-panel article {
  display: grid;
  align-content: start;
  gap: 13px;
  border: 1px solid var(--site-line);
  border-radius: 4px;
  padding: 24px;
  background: #fff;
  box-shadow: none;
}

.feature-card {
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: rgba(12, 16, 41, 0.4);
}

.featured-product {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: clamp(28px, 5vw, 72px);
  padding: clamp(26px, 4vw, 40px);
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(circle at 92% -10%, rgba(141, 106, 255, 0.4), transparent 52%),
    linear-gradient(150deg, #241566, #0d0a2e);
}

.featured-product span,
.featured-product h3,
.featured-product p,
.featured-product a {
  grid-column: 1;
}

.featured-product ul {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
}

.featured-product:hover {
  border-color: transparent;
}

.featured-product span,
.featured-product h3,
.featured-product p,
.featured-product li,
.featured-product a {
  color: #fff;
}

.feature-card h3,
.audience-grid h3,
.article-grid h3,
.mode-grid strong,
.subpage-list-panel h3 {
  margin: 0;
  color: var(--site-ink);
  font-size: 1.17rem;
  line-height: 1.18;
}

.featured-product span {
  color: rgba(219, 211, 255, 0.72);
}

.featured-product h3 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.feature-card p,
.audience-grid p,
.article-grid p,
.mode-grid p,
.subpage-list-panel p,
.subpage-content-section p,
.modes-section > div > p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.58;
}

.featured-product p,
.featured-product li {
  color: rgba(255, 255, 255, 0.78);
}

.feature-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.feature-card li::marker {
  color: rgba(91, 53, 245, 0.55);
}

.featured-product ul {
  gap: 12px;
  padding: 0;
  list-style: none;
}

.featured-product li {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 12px;
  font-size: 0.98rem;
}

.feature-card a {
  align-self: end;
  color: var(--site-violet-dark);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.feature-card a::after {
  content: " →";
}

.feature-card a:hover {
  text-decoration: underline;
}

.featured-product a {
  color: #d9d0ff;
}

.modes-section {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(28px, 5vw, 60px);
}

.modes-section > div:first-child {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
}

.mode-grid article {
  gap: 8px;
  border: 0;
  border-top: 1px solid var(--site-rule);
  border-radius: 0;
  padding: 16px 0 4px;
  background: transparent;
}

.mode-grid strong {
  font-size: 1rem;
  font-weight: 650;
}

.audience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 32px;
}

.audience-grid article {
  gap: 10px;
  min-height: 0;
  border: 0;
  border-top: 1px solid var(--site-rule);
  border-radius: 0;
  padding: 18px 0 4px;
  background: transparent;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 32px;
}

.article-grid article {
  gap: 12px;
  min-height: 0;
  border: 0;
  border-top: 1px solid var(--site-rule);
  border-radius: 0;
  padding: 18px 0 4px;
  background: transparent;
}

.article-grid h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.34rem;
  letter-spacing: -0.008em;
  line-height: 1.22;
}

.marketing-detail-page {
  min-height: calc(100dvh - 70px);
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: 520px;
  padding: clamp(46px, 7vw, 92px) 0 clamp(30px, 5vw, 60px);
}

.subpage-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--site-ink);
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1.06;
}

.subpage-hero > div:first-child {
  display: grid;
  gap: 22px;
}

.subpage-visual {
  display: grid;
  gap: 24px;
  border: 1px solid var(--site-line);
  border-radius: 4px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(160deg, rgba(91, 53, 245, 0.06), rgba(255, 255, 255, 0.9)),
    #fff;
  box-shadow: none;
}

.subpage-visual-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.subpage-visual-header span {
  color: var(--site-violet-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subpage-visual-header strong {
  color: var(--site-ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.86;
}

.subpage-bars {
  display: grid;
  gap: 12px;
}

.subpage-bars span {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf0;
}

.subpage-bars span::after {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7a5cff, #4324d7);
}

.subpage-visual ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subpage-visual li {
  border-top: 1px solid var(--site-line);
  padding-top: 11px;
  color: var(--site-ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.subpage-card-section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px 0 56px;
}

.subpage-content-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: start;
  padding: 46px 0 58px;
}

.subpage-section-copy {
  display: grid;
  gap: 14px;
}

.subpage-list-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
}

.subpage-list-panel article {
  gap: 8px;
  border: 0;
  border-top: 1px solid var(--site-rule);
  border-radius: 0;
  padding: 16px 0 4px;
  background: transparent;
}

.subpage-list-panel h3 {
  font-size: 1.02rem;
  font-weight: 650;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 32px;
}

.steps-grid article {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: start;
  border-top: 1px solid var(--site-rule);
  padding-top: 16px;
}

.steps-grid span {
  color: var(--site-violet-dark);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.steps-grid span::before {
  content: "0";
}

.steps-grid h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
}

.steps-grid p {
  max-width: 250px;
  margin: 0;
  color: var(--site-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.report-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: 34px 0 56px;
}

.report-copy {
  display: grid;
  gap: 16px;
}

.report-copy p,
.conversation-section p,
.home-adi-entry p,
.final-cta p,
.site-footer p {
  color: var(--site-muted);
  line-height: 1.62;
}

.report-copy ul {
  display: grid;
  gap: 14px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.report-copy li {
  position: relative;
  padding-left: 36px;
  color: var(--site-ink);
  font-size: 0.98rem;
  font-weight: 600;
}

.report-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(91, 53, 245, 0.22), rgba(236, 91, 234, 0.16)),
    #f2efff;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 48px 1fr;
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(32, 18, 105, 0.08);
}

.dashboard-preview aside {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 22px 16px;
  background: #071334;
}

.dashboard-preview aside span {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 4px;
}

.dashboard-preview > div {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.dashboard-preview h3 {
  margin: 0;
}

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

.metric-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(9, 19, 47, 0.1);
  border-radius: 8px;
  padding: 14px;
}

.metric-grid span {
  color: var(--site-muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-grid strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.report-widgets {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.matrix,
.ranked-list {
  min-height: 170px;
  border: 1px solid rgba(9, 19, 47, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(9, 19, 47, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 19, 47, 0.05) 1px, transparent 1px),
    #fff;
  background-size: 38px 38px;
}

.matrix {
  position: relative;
}

.matrix span {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(91, 53, 245, 0.32);
}

.matrix span:nth-child(1) { left: 16%; bottom: 18%; background: rgba(236, 91, 234, 0.36); }
.matrix span:nth-child(2) { left: 28%; bottom: 32%; }
.matrix span:nth-child(3) { left: 44%; bottom: 52%; }
.matrix span:nth-child(4) { left: 56%; bottom: 36%; background: rgba(111, 207, 255, 0.34); }
.matrix span:nth-child(5) { left: 66%; bottom: 62%; }
.matrix span:nth-child(6) { left: 78%; bottom: 70%; }

.ranked-list {
  display: grid;
  align-content: center;
  gap: 17px;
  padding: 28px;
}

.conversation-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  margin-top: 20px;
  border-radius: 4px;
  padding: clamp(28px, 5vw, 62px);
  background: linear-gradient(160deg, #f4f1ff, #faf9ff 70%);
}

.conversation-bubbles {
  position: relative;
  min-height: 230px;
}

.conversation-bubbles p {
  position: absolute;
  max-width: 250px;
  margin: 0;
  border: 1px solid rgba(67, 36, 215, 0.14);
  border-radius: 10px;
  padding: 18px 20px;
  color: var(--site-ink);
  background: #fff;
  box-shadow: 0 10px 30px rgba(32, 18, 105, 0.07);
}

.conversation-bubbles p:first-child {
  top: 0;
  left: 34px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.4;
  color: #241566;
}

.conversation-bubbles p:nth-child(2) {
  font-size: 0.95rem;
  line-height: 1.55;
}

.conversation-bubbles p:nth-child(2) {
  right: 26px;
  bottom: 42px;
}

.conversation-bubbles span {
  position: absolute;
  left: 44%;
  bottom: 4px;
  width: 78px;
  height: 50px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 50%, #9aa3b8 4px, transparent 5px),
    radial-gradient(circle at 50% 50%, #9aa3b8 4px, transparent 5px),
    radial-gradient(circle at 70% 50%, #9aa3b8 4px, transparent 5px),
    #fff;
}

.home-adi-entry {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(26px, 5vw, 56px);
  align-items: start;
  padding: 68px 0 28px;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.entry-cards article,
.entry-cards form {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 310px;
  border: 1px solid var(--site-line);
  border-radius: 4px;
  padding: 26px;
  background: #fff;
  box-shadow: none;
}

.entry-cards h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.008em;
}

.marketing-page .final-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  width: 100vw;
  margin: 44px calc(50% - 50vw) 0;
  padding: clamp(52px, 7vw, 92px) 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(101, 74, 255, 0.18), transparent 38%),
    linear-gradient(135deg, #071334 0%, #0b1745 54%, #27196d 100%);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(90deg, transparent, #000 26%, #000 76%, transparent);
  opacity: 0.42;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.74fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
}

.final-cta-copy {
  display: grid;
  gap: 18px;
}

.final-cta .eyebrow {
  color: #c3b6ff;
}

.final-cta h2 {
  max-width: 680px;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.final-cta h2,
.final-cta p {
  color: #fff;
}

.final-cta p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.final-cta-actions {
  padding-top: 8px;
}

.final-cta .ghost-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.final-cta .ghost-button:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.1);
}

.final-cta-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.final-cta-note span {
  color: #c3b6ff;
}

.final-cta-signal {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

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

.signal-header span,
.signal-list span {
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-header strong {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.9rem, 6vw, 4.6rem);
  line-height: 0.86;
}

.signal-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  min-height: 78px;
  align-items: end;
}

.signal-line::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(195, 182, 255, 0.1), rgba(195, 182, 255, 0.6), rgba(122, 92, 255, 0.9));
}

.signal-line span {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgba(214, 205, 255, 0.85), rgba(122, 92, 255, 0.7));
}

.signal-line span:nth-child(1) { height: 38px; }
.signal-line span:nth-child(2) { height: 58px; }
.signal-line span:nth-child(3) { height: 76px; }

.signal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 12px;
}

.signal-list strong {
  color: #fff;
  font-size: 0.96rem;
  text-align: right;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(28px, 8vw, 110px);
  margin-top: 0;
  padding: 34px 0 44px;
  color: rgba(255, 255, 255, 0.78);
  background: #071334;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  background: #071334;
  transform: translateX(-50%);
}

.site-footer {
  position: relative;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-brand {
  color: #fff;
}

.footer-brand strong {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer p {
  max-width: 260px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.start-layout {
  min-height: calc(100dvh - 160px);
  align-items: center;
}

.start-summary h1,
.confirmation-panel h1 {
  color: var(--ink);
}

.start-summary .lead,
.confirmation-panel .lead {
  color: var(--muted);
}

.public-start-panel,
.confirmation-panel {
  border-color: rgba(91, 53, 245, 0.14);
  background:
    linear-gradient(180deg, rgba(91, 53, 245, 0.07), rgba(91, 53, 245, 0.01)),
    var(--surface);
  box-shadow: 0 28px 70px rgba(32, 18, 105, 0.12);
}

.interview-layout {
  gap: 24px;
}

.interview-meta,
.chat-panel,
.participant-intro-panel {
  border-color: rgba(91, 53, 245, 0.14);
  box-shadow: 0 24px 64px rgba(32, 18, 105, 0.11);
}

.interview-meta {
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 53, 245, 0.12), transparent 34%),
    var(--surface);
}

.interview-meta h1 {
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}

.participant-intro-panel {
  background:
    radial-gradient(circle at 95% 0%, rgba(91, 53, 245, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(91, 53, 245, 0.08), rgba(91, 53, 245, 0.01)),
    var(--surface);
}

.message-list {
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 53, 245, 0.08), transparent 28%),
    var(--chat-bg);
}

.message {
  border-radius: 14px;
}

.message.user {
  color: #fff;
  background: linear-gradient(135deg, #7048ff, #4e2be9);
  border-color: rgba(91, 53, 245, 0.18);
}

.message.user span,
.message.user p {
  color: #fff;
}

.answer-box {
  background: var(--surface);
}

@media (max-width: 1020px) {
  .marketing-hero,
  .report-section,
  .conversation-section,
  .home-adi-entry,
  .final-cta,
  .modes-section,
  .subpage-hero,
  .subpage-content-section {
    grid-template-columns: 1fr;
  }

  .marketing-hero {
    min-height: 0;
  }

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

  .hero-pipeline-animation {
    width: min(100%, 820px);
    transform: none;
  }

  .logo-strip div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card-grid,
  .audience-grid,
  .subpage-card-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-product {
    grid-column: span 2;
  }

  .modes-section > div:first-child {
    position: static;
  }

  .subpage-hero {
    min-height: 0;
  }

  .final-cta {
    justify-items: stretch;
  }

  .final-cta-inner {
    grid-template-columns: 1fr;
  }

  .final-cta-signal {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 66px;
  }

  .nav-group,
  .top-actions a:not(.nav-start):not(.demo-button) {
    display: none;
  }

  .top-actions .nav-start {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: 8px;
    padding: 0 12px;
    color: #fff !important;
    background: linear-gradient(135deg, #7048ff, #4e2be9);
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .demo-button {
    display: none;
  }

  .service-pill {
    display: none;
  }

  .marketing-page section,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .marketing-hero {
    padding-top: 34px;
  }

  .marketing-hero h1 {
    font-size: clamp(2.15rem, 8.2vw, 2.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    width: 100%;
  }

  .hero-visual {
    min-height: 0;
    overflow: visible;
    padding: 10px 0 0;
  }

  .hero-pipeline-animation {
    width: min(100%, 430px);
    transform: none;
    transform-origin: center top;
  }

  .hero-pipeline-animation .desktop-pipeline {
    display: none;
  }

  .hero-pipeline-animation .mobile-pipeline {
    display: block;
  }

  .hero-composite-video {
    width: min(100%, 720px);
    transform: none;
  }

  .logo-strip {
    padding-bottom: 36px;
  }

  .logo-strip div,
  .steps-grid,
  .metric-grid,
  .report-widgets,
  .entry-cards,
  .site-footer,
  .product-card-grid,
  .audience-grid,
  .article-grid,
  .mode-grid,
  .subpage-card-section,
  .subpage-list-panel {
    grid-template-columns: 1fr;
  }

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

  .featured-product {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .featured-product ul {
    grid-column: 1;
    grid-row: auto;
  }

  .product-suite-section,
  .modes-section,
  .audience-section,
  .insights-section {
    padding: 30px 0 44px;
  }

  .subpage-hero {
    padding-top: 40px;
  }

  .subpage-hero h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .steps-grid {
    gap: 18px;
  }

  .steps-grid article + article::before {
    display: none;
  }

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

  .dashboard-preview aside {
    display: none;
  }

  .conversation-section {
    padding: 26px;
  }

  .marketing-page .final-cta {
    padding: 42px 0;
  }

  .final-cta-inner {
    width: min(100% - 28px, 1120px);
  }

  .final-cta h2 {
    font-size: clamp(2.1rem, 11vw, 3.1rem);
  }

  .final-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .final-cta-actions .primary-button,
  .final-cta-actions .ghost-button {
    width: 100%;
  }

  .signal-list li {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .signal-list strong {
    text-align: left;
  }

  .conversation-bubbles {
    min-height: 250px;
  }

  .conversation-bubbles p {
    max-width: 230px;
  }

  .conversation-bubbles p:first-child {
    left: 0;
  }

  .conversation-bubbles p:nth-child(2) {
    right: 0;
  }

  .home-adi-entry {
    padding-top: 44px;
  }

  .site-footer {
    padding-top: 28px;
  }
}



/* ============================================================
   Admin workspace redesign — light, compact, professional
   ============================================================ */

.admin-dashboard {
  grid-template-columns: 248px minmax(0, 1fr);
  background: #f7f7fc;
}

/* Sidebar: light rail */
.admin-sidebar {
  gap: 22px;
  border-right: 1px solid var(--line);
  padding: 20px 14px 16px;
  background: #fbfbfe;
  color: var(--ink);
}

.admin-sidebar-brand {
  gap: 10px;
  padding: 2px 8px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-brand .brand-mark {
  flex: none;
}

.admin-sidebar-brand strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.admin-sidebar-brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-nav button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  color: #3f4a6b;
  font-weight: 650;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav button:hover {
  color: var(--ink);
  background: rgba(91, 53, 245, 0.06);
}

.admin-nav button.active {
  color: var(--accent-strong);
  background: rgba(91, 53, 245, 0.09);
  font-weight: 750;
}

.admin-nav strong {
  min-width: 26px;
  padding: 2px 7px;
  color: #4324d7;
  background: #eee9ff;
  font-size: 0.74rem;
  font-weight: 750;
}

.admin-sidebar-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 12, 60, 0.04);
}

.admin-sidebar-card span,
.admin-sidebar-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.admin-sidebar-card span {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-sidebar-card strong {
  color: var(--ink);
  font-size: 1.7rem;
}

.admin-dashboard .admin-sidebar .ghost-button {
  min-height: 36px;
  color: var(--accent-strong);
  border-color: var(--line);
  background: #fff;
  font-weight: 700;
}

.admin-dashboard .admin-sidebar .ghost-button:hover {
  border-color: rgba(91, 53, 245, 0.4);
  background: rgba(91, 53, 245, 0.05);
}

/* Main column */
.admin-main {
  gap: 16px;
  padding: 22px clamp(18px, 3vw, 34px) 40px;
}

.admin-page-head {
  align-items: center;
  padding-bottom: 16px;
}

.admin-page-head .eyebrow {
  display: none;
}

.admin-page-head h1 {
  margin: 0 0 3px;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.admin-page-head .lead {
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Buttons: compact in admin */
.admin-dashboard .primary-button,
.admin-dashboard .ghost-button,
.admin-dashboard .copy-button {
  min-height: 36px;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-dashboard .primary-button {
  box-shadow: 0 6px 16px rgba(91, 53, 245, 0.22);
}

.admin-dashboard .ghost-button,
.admin-dashboard .copy-button {
  background: #fff;
  border-color: var(--line);
}

.admin-dashboard .ghost-button:hover,
.admin-dashboard .copy-button:hover {
  border-color: rgba(91, 53, 245, 0.38);
  background: rgba(91, 53, 245, 0.04);
}

/* Cards */
.admin-table-card,
.admin-stats article,
.session-intelligence,
.session-copilot,
.admin-transcript,
.brain-workspace .brain-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 12, 60, 0.04), 0 10px 28px rgba(32, 18, 105, 0.05);
}

.admin-card-head .eyebrow {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
}

.admin-card-head h2 {
  font-size: 1.02rem;
  font-weight: 750;
}

/* Stat tiles */
.admin-stats {
  gap: 12px;
}

.admin-stats article {
  gap: 8px;
  padding: 16px 18px;
}

.admin-stats span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.admin-stats strong {
  color: var(--ink);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Overview lists */
.admin-list-row {
  border-radius: 8px;
}

.admin-list-row:hover {
  background: #f6f4fe;
}

/* Tables */
.admin-table th {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f8;
  font-size: 0.9rem;
}

.admin-table tbody tr:hover {
  background: #f8f7fe;
}

.table-primary {
  color: var(--ink);
  font-weight: 700;
}

.table-primary:hover {
  color: var(--accent-strong);
}

.session-title-button span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 550;
}

.status-chip {
  border: 1px solid rgba(91, 53, 245, 0.16);
  border-radius: 999px;
  padding: 3px 10px;
  color: #4324d7;
  background: #f3f0ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.session-code-inline,
.session-code-pill {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.icon-action {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
}

.icon-action:hover {
  border-color: rgba(91, 53, 245, 0.4);
  color: var(--accent-strong);
  background: rgba(91, 53, 245, 0.05);
}

/* Tabs: underline style */
.admin-tabs {
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 0;
  background: transparent;
}

.admin-tabs button {
  min-height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  padding: 9px 12px;
  color: var(--muted);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-tabs button:hover {
  color: var(--ink);
  background: transparent;
}

.admin-tabs button.active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
  background: transparent;
}

/* Forms */
.admin-dashboard label {
  color: #232e4d;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-dashboard input,
.admin-dashboard textarea,
.admin-dashboard select {
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.92rem;
}

/* Session detail */
.session-page-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.session-page-head .eyebrow {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
}

/* Drawer */
.admin-drawer {
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(32, 18, 105, 0.14);
}

.admin-drawer-head h2 {
  font-size: 1.1rem;
  font-weight: 800;
}

.sessions-table-card .admin-card-head .primary-button {
  display: none;
}

/* Brain workspace polish */
.brain-command-copy {
  display: grid;
  align-content: center;
  border-radius: 12px;
  padding: 16px 20px;
}

.brain-command-copy .eyebrow {
  margin-bottom: 6px;
}

.brain-command-copy h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brain-health-strip article {
  min-height: 0;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(16, 12, 60, 0.04), 0 10px 28px rgba(32, 18, 105, 0.05);
}

.brain-health-strip span {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.brain-health-strip strong {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 800;
}

/* ============================================================
   Admin typography pass — lighter, calmer text
   ============================================================ */

.admin-dashboard {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

.admin-dashboard .eyebrow {
  font-weight: 600;
  letter-spacing: 0.09em;
}

/* Sidebar */
.admin-sidebar-brand strong {
  font-weight: 650;
}

.admin-sidebar-brand small {
  font-weight: 400;
}

.admin-nav button {
  color: #44506e;
  font-weight: 500;
}

.admin-nav button.active {
  font-weight: 600;
}

.admin-nav strong {
  font-weight: 600;
}

.admin-sidebar-card span {
  font-weight: 600;
}

.admin-sidebar-card small {
  font-weight: 400;
}

.admin-sidebar-card strong {
  font-weight: 650;
}

.admin-dashboard .admin-sidebar .ghost-button {
  font-weight: 600;
}

/* Page head */
.admin-page-head h1 {
  font-weight: 650;
}

.admin-page-head .lead {
  font-weight: 400;
}

/* Buttons */
.admin-dashboard .primary-button,
.admin-dashboard .ghost-button,
.admin-dashboard .copy-button,
.admin-dashboard .text-button {
  font-weight: 600;
}

/* Cards */
.admin-card-head h2 {
  font-weight: 650;
}

.admin-stats span {
  font-weight: 600;
}

.admin-stats strong {
  font-weight: 650;
}

.admin-list-row strong {
  font-weight: 600;
}

.admin-list-row small {
  font-weight: 400;
}

/* Tables */
.admin-table th {
  font-weight: 600;
}

.admin-table td {
  color: #2b3550;
  font-weight: 400;
}

.table-primary {
  font-weight: 600;
}

.session-title-button span {
  font-weight: 400;
}

.status-chip {
  font-weight: 550;
}

.session-code-inline,
.session-code-pill,
.created-box strong {
  font-weight: 600;
}

/* Tabs */
.admin-tabs button {
  font-weight: 500;
}

.admin-tabs button.active {
  font-weight: 600;
}

/* Forms */
.admin-dashboard label {
  color: #2c3654;
  font-weight: 550;
}

.admin-dashboard .form-note {
  font-weight: 400;
}

/* Session detail + drawer */
.session-page-head h2 {
  font-weight: 650;
}

.admin-drawer-head h2 {
  font-weight: 650;
}

/* Brain workspace */
.brain-command-copy h2 {
  font-weight: 650;
}

.brain-health-strip span {
  font-weight: 600;
}

.brain-health-strip strong {
  font-weight: 650;
}

.admin-dashboard input,
.admin-dashboard textarea,
.admin-dashboard select {
  font-weight: 400;
}

.admin-dashboard .admin-button-row a,
.admin-dashboard .created-box a {
  font-weight: 550;
}
