@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700;800&family=Sora:wght@400;600;700;800&display=swap");

:root {
  --ink: #1e293b;
  --ink-soft: #475569;
  --ink-faint: #64748b;
  --ink-strong: #0f172a;
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-orange: #f97316;
  --brand-light-blue: #eff6ff;
  --brand-soft: #dbeafe;
  --brand-border: #bfdbfe;
  --brand-border-strong: rgba(96, 165, 250, 0.52);
  --cream: #ffffff;
  --line: rgba(20, 33, 61, 0.1);
  --shadow: 0 30px 90px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 18px 44px rgba(15, 23, 42, 0.06);
  --radius-xl: 36px;
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --font-display: "Sora", "Manrope", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Sora", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(191, 219, 254, 0.7), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 237, 213, 0.45), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 42%, #edf4ff 100%);
}

a {
  color: inherit;
}

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

.shell {
  width: min(2100px, calc(100% - 56px));
  margin: 0 auto;
  padding: 24px 0 112px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 42px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 18px;
  z-index: 2;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-meta small,
.eyebrow,
.section-heading span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: rgba(20, 33, 61, 0.58);
}

.brand-meta strong,
.hero h1,
.panel h2,
.section-heading h2 {
  font-family: var(--font-display);
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.chip,
.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.chip {
  background: rgba(37, 99, 235, 0.08);
  color: var(--ink-soft);
}

.button {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: white;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.24);
}

.button.alt {
  background: white;
  color: var(--ink);
}

.button.secondary {
  background: linear-gradient(135deg, #0f62fe, #60a5fa);
}

.chip:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
  gap: 30px;
  margin-top: 34px;
}

.hero-card,
.panel,
.metric-card,
.table-card,
.auth-card,
.form-card,
.scenario-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
}

.hero-card {
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 66%);
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.2rem, 4.2vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 13ch;
}

.hero p {
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.6;
}

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

.hero-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-list div {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(191, 219, 254, 0.85);
}

.panel {
  padding: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.92));
}

.hero-visual-panel {
  display: grid;
  gap: 16px;
}

.hero-visual-frame {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 28px;
  border: 1px solid rgba(191, 219, 254, 0.72);
  background: #dbeafe;
  box-shadow: var(--shadow-soft);
}

.hero-visual-frame--primary {
  min-height: 320px;
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-visual-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(191, 219, 254, 0.6);
}

.hero-visual-copy strong {
  color: var(--ink);
}

.hero-visual-copy span,
.hero-visual-stat span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--ink-soft);
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 14px;
}

.hero-visual-stat {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  background: linear-gradient(180deg, #ffffff, #eff6ff);
}

.hero-visual-stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.05;
}

.hero-visual-stat p {
  margin: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.metric-card {
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.metric-card strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 10px;
}

.grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.dashboard-main-grid {
  grid-template-columns: minmax(420px, 0.88fr) minmax(0, 1.12fr);
}

.dashboard-admin-grid {
  grid-template-columns: minmax(420px, 0.86fr) minmax(0, 1.14fr);
}

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

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.package-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.package-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.package-card.selected {
  border-color: #60a5fa;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, #ffffff, #eef6ff);
}

.package-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.package-card p,
.package-card li {
  color: var(--ink-soft);
  line-height: 1.55;
}

.package-card ul {
  margin: 0;
  padding-left: 18px;
}

.workspace {
  margin-top: 26px;
  display: grid;
  gap: 22px;
}

.project-shell {
  margin-top: 26px;
  display: grid;
  gap: 22px;
}

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

.project-rail {
  display: none;
}

.project-canvas {
  display: grid;
  gap: 22px;
}

.project-status-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.project-status-pill {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(111, 175, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.94));
  border: 1px solid rgba(191, 219, 254, 0.82);
  box-shadow: 0 22px 38px rgba(20, 41, 86, 0.08);
  display: grid;
  gap: 8px;
}

.project-status-pill::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 147, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.project-status-pill span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: rgba(20, 33, 61, 0.52);
}

.project-status-pill strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-strong);
}

.project-status-pill small {
  color: var(--ink-soft);
  line-height: 1.5;
}

.project-rail-card h3 {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.rail-card-copy {
  margin: 0 0 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.project-hub,
.project-stage-canvas {
  display: grid;
  gap: 22px;
}

.project-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: end;
  padding: 36px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9));
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: var(--shadow-soft);
}

.project-hub-hero h2,
.stage-hero h2,
.launch-option h3 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
}

.project-hub-hero p,
.stage-hero p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.project-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-status-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 6px;
}

.project-status-card span,
.pricing-highlight-card span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(20, 33, 61, 0.52);
}

.project-status-card strong {
  font-size: 1.25rem;
  font-family: var(--font-display);
}

.project-status-card small {
  color: var(--ink-faint);
  line-height: 1.5;
}

.project-stage-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.project-stage-tabs.top {
  margin-top: 16px;
}

.project-stage-tabs.rail {
  grid-template-columns: 1fr;
}

.stage-nav-button {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  min-height: 96px;
  align-content: start;
}

.project-stage-tabs.rail .stage-nav-button {
  min-height: 92px;
  padding: 16px 18px;
  border-radius: 22px;
}

.stage-nav-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12);
}

.stage-nav-button.active {
  border-color: rgba(37, 99, 235, 0.36);
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.16);
}

.stage-nav-label {
  font-weight: 800;
  color: var(--ink);
}

.stage-nav-summary {
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.95rem;
}

.overview-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
}

.overview-story-card,
.overview-stage-focus {
  padding: 34px 36px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.92));
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: var(--shadow-soft);
}

.overview-story-card h2,
.overview-stage-focus strong {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  color: var(--ink-strong);
}

.overview-story-card h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.overview-story-card p,
.overview-stage-focus p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.overview-stage-focus strong {
  display: block;
  font-size: 1.8rem;
  text-transform: capitalize;
}

.overview-lifecycle-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.overview-kpi-card {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(111, 175, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92));
  border: 1px solid rgba(191, 219, 254, 0.78);
  box-shadow: 0 22px 40px rgba(20, 41, 86, 0.08);
}

.overview-kpi-card span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: rgba(20, 33, 61, 0.52);
}

.overview-kpi-card strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink-strong);
}

.overview-kpi-card small {
  color: var(--ink-soft);
  line-height: 1.55;
}

.overview-stage-section {
  padding-top: 30px;
}

.overview-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
}

.overview-roadmap-card,
.overview-systems-card {
  min-height: 100%;
}

.overview-roadmap-card,
.overview-stage-section,
.intake-assistant-shell,
.pricing-current-model,
.vision-secondary-card {
  position: relative;
  overflow: hidden;
}

.overview-roadmap-card::before,
.overview-stage-section::before,
.intake-assistant-shell::before,
.pricing-current-model::before,
.vision-secondary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(120, 178, 255, 0.16), transparent 30%);
  pointer-events: none;
}

.intake-assistant-shell,
.vision-secondary-card,
.overview-stage-section {
  border-radius: 28px;
  border: 1px solid rgba(208, 220, 236, 0.88);
  background:
    radial-gradient(circle at top right, rgba(198, 221, 255, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.92));
  box-shadow: 0 22px 44px rgba(34, 52, 88, 0.08);
}

.stage-nav-status,
.stage-inline-status {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tone-success {
  background: #dcfce7;
  color: #166534;
}

.tone-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.tone-warning {
  background: #fef3c7;
  color: #92400e;
}

.tone-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.tone-idle {
  background: #e2e8f0;
  color: #475569;
}

.stage-hero {
  padding: 32px 34px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.92));
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.stage-hero h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.project-stage-grid,
.launch-options-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-overview-grid {
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.project-stage-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 4px 0;
}

.chip.active {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: white;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.workspace-header h1 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

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

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 22px;
  align-items: start;
}

.workspace-grid.full-width {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-main {
  display: grid;
  gap: 18px;
}

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

.stage-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(126, 179, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff, #f6faff);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 20px 36px rgba(20, 41, 86, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.stage-card.static {
  cursor: default;
}

.stage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 42px rgba(20, 41, 86, 0.11);
  border-color: rgba(96, 141, 255, 0.35);
}

.stage-card.static:hover {
  transform: none;
}

.stage-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.stage-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: white;
  font-weight: 800;
}

.workspace-side {
  display: grid;
  gap: 18px;
  position: static;
}

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

.form-card,
.table-card,
.scenario-card,
.auth-card {
  padding: 22px;
}

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

.section-heading h2 {
  margin: 6px 0 0;
  font-size: 1.45rem;
}

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

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.field small {
  color: #64748b;
  line-height: 1.5;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  min-height: 46px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.project-list,
.benchmark-list,
.scenario-list,
.summary-list {
  display: grid;
  gap: 12px;
}

.summary-list.compact {
  gap: 8px;
}

.project-card,
.benchmark-item,
.scenario-item,
.summary-item {
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.scenario-item {
  cursor: default;
}

.scenario-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.project-card.active {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

.subtle {
  color: rgba(20, 33, 61, 0.64);
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pill {
  border-radius: 999px;
  background: var(--brand-light-blue);
  color: var(--brand-blue);
  padding: 8px 10px;
  font-size: 0.9rem;
}

.pill.ready {
  background: rgba(134, 239, 172, 0.18);
  color: #166534;
}

.button.danger {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.button.danger-text {
  background: none;
  color: var(--ink-faint);
  border: 1px solid transparent;
  font-size: 0.82rem;
  padding: 4px 10px;
}

.button.danger-text:hover {
  color: #be123c;
  background: #fff1f2;
  border-color: #fecdd3;
}

.button.compact {
  padding: 4px 10px;
  font-size: 0.82rem;
}

.button.small {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  font-size: 0.95rem;
}

th {
  color: rgba(20, 33, 61, 0.58);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.notice,
.error {
  padding: 16px 18px;
  border-radius: 18px;
  margin: 16px 0 0;
}

.notice {
  background: var(--brand-light-blue);
  color: var(--brand-blue-dark);
}

.error {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

.button[disabled] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.chip[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.agent-progress {
  margin-top: 14px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  border: 1px solid var(--brand-border);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.agent-progress.failed {
  background: linear-gradient(180deg, #ffffff, #fff1f2);
  border-color: rgba(239, 68, 68, 0.25);
}

.agent-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.agent-progress-header h3 {
  margin: 6px 0 0;
  font-size: 1.25rem;
}

.agent-progress-time {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue-dark);
  font-weight: 700;
  white-space: nowrap;
}

.agent-progress.failed .agent-progress-time {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.agent-progress p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.agent-progress-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.agent-progress-step {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
}

.agent-progress-step.active {
  border-color: rgba(37, 99, 235, 0.3);
  background: #ffffff;
  color: var(--ink);
}

.agent-progress-step strong,
.agent-progress-step span {
  display: block;
}

.agent-progress-step span {
  margin-top: 6px;
  font-size: 0.92rem;
}

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

.materials-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.48fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.materials-chat,
.materials-preview {
  display: grid;
  gap: 14px;
}

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

.materials-primary,
.materials-sidebar {
  display: grid;
  gap: 18px;
}

.materials-workbench {
  display: grid;
  gap: 18px;
}

.materials-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.materials-tab {
  border: 1px solid rgba(88, 118, 255, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.materials-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(45, 74, 170, 0.12);
  border-color: rgba(88, 118, 255, 0.24);
}

.materials-tab.active {
  background: linear-gradient(135deg, rgba(68, 99, 255, 0.12), rgba(83, 192, 255, 0.18));
  color: var(--brand-primary);
  border-color: rgba(68, 99, 255, 0.28);
}

.materials-section-stack {
  display: grid;
  gap: 14px;
}

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

.materials-preview-card {
  display: grid;
  gap: 12px;
}

.materials-preview-card h3 {
  margin: 0;
}

.materials-preview-card p {
  margin: 0;
}

.materials-preview-copy {
  white-space: pre-wrap;
}

.materials-preview-frame {
  width: 100%;
  min-height: 960px;
  border: 1px solid rgba(88, 118, 255, 0.14);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.materials-history {
  display: grid;
  gap: 12px;
}

.materials-code-block {
  margin: 0;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
}

.pricing-current-model {
  display: grid;
  gap: 18px;
}

.pricing-model-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  padding: 24px 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(121, 210, 255, 0.16), transparent 20%),
    linear-gradient(135deg, rgba(16, 40, 92, 0.96), rgba(35, 63, 153, 0.94), rgba(74, 169, 255, 0.85));
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(17, 34, 76, 0.18);
}

.pricing-model-banner::after {
  content: "";
  position: absolute;
  inset: auto -54px -64px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.pricing-model-copy span,
.pricing-model-banner-metrics span,
.pricing-funnel-meta span,
.pricing-funnel-side small {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}

.pricing-model-copy h3 {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.02;
}

.pricing-model-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.pricing-model-banner-metrics {
  display: grid;
  gap: 12px;
  align-content: start;
}

.pricing-model-banner-metrics div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pricing-model-banner-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
  font-family: var(--font-display);
}

.pricing-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pricing-kpi-strip-expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-kpi {
  padding: 20px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(111, 175, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff, #f0f6ff);
  border: 1px solid rgba(191, 219, 254, 0.82);
  box-shadow: 0 20px 34px rgba(20, 41, 86, 0.08);
  display: grid;
  gap: 8px;
}

.pricing-kpi span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: rgba(20, 33, 61, 0.52);
}

.pricing-kpi strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink-strong);
}

.pricing-kpi small {
  color: var(--ink-faint);
  line-height: 1.5;
}

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

.pricing-breakdown-card {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(111, 175, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.94));
}

.pricing-funnel-card {
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(111, 175, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.94));
}

.pricing-funnel-chart {
  display: grid;
  gap: 12px;
}

.pricing-funnel-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 170px;
  gap: 16px;
  align-items: center;
}

.pricing-funnel-meta {
  display: grid;
  gap: 4px;
}

.pricing-funnel-meta strong,
.pricing-funnel-side strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.pricing-funnel-meta small,
.pricing-funnel-side small {
  color: var(--ink-faint);
  line-height: 1.45;
}

.pricing-funnel-track {
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e4ecff, #d7e5ff);
  overflow: hidden;
}

.pricing-funnel-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #4ea7ff);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.pricing-funnel-side {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

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

.result-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  border: 1px solid var(--brand-border);
}

.result-card strong {
  display: block;
  font-size: 1.55rem;
  margin-top: 8px;
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.funnel-step {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  border: 1px solid var(--brand-border);
}

.funnel-step strong {
  display: block;
  font-size: 1.25rem;
  margin: 8px 0;
}

.auth-wrap {
  width: min(1980px, calc(100% - 56px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.auth-span-full {
  grid-column: 1 / -1;
}

.internal-auth {
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
}

.auth-hero {
  padding: 54px;
  min-height: auto;
}

.auth-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: 0.94;
}

.auth-login-card,
.auth-request-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 34px;
}

.auth-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.auth-side-stack {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 106px;
}

.auth-status-box {
  margin-top: 14px;
}

.auth-package-grid {
  margin-bottom: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.request-success-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #edf7ff);
  border: 1px solid var(--brand-border-strong);
  box-shadow: var(--shadow-soft);
}

.request-success-card h3 {
  margin: 0;
  font-family: var(--font-display);
}

.auth-flow-stack {
  display: grid;
  gap: 12px;
}

.auth-flow-stack div,
.auth-story-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(245, 249, 255, 0.94);
  border: 1px solid rgba(191, 219, 254, 0.95);
}

.auth-flow-stack strong,
.auth-story-card strong {
  font-family: var(--font-display);
}

.auth-flow-stack span,
.auth-story-card span {
  color: var(--ink-soft);
  line-height: 1.6;
}

.auth-story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.pricing-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 10px;
}

.pricing-highlight-card {
  padding: 22px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.pricing-highlight-card strong {
  display: block;
  margin: 10px 0 4px;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.pricing-highlight-card small {
  color: var(--ink-faint);
  line-height: 1.5;
}

.activation-wrap {
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
}

.muted-box {
  padding: 18px;
  border-radius: 18px;
  background: var(--brand-light-blue);
  color: var(--ink-soft);
  border: 1px solid var(--brand-border);
}

.empty-state {
  padding: 22px;
  border-radius: 20px;
  background: rgba(15, 35, 65, 0.04);
  color: var(--ink-soft);
}

.heading-underline {
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, var(--brand-blue), #60a5fa);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.step-number {
  background-color: var(--brand-blue);
  color: white;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.assessment-item {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
}

.assessment-item strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
  color: var(--brand-blue-dark);
}

.proposal-url {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: underline;
}

.proposal-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.proposal-header {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 28px;
}

.proposal-hero {
  padding: 28px 30px;
  border: 1px solid rgba(191, 219, 254, 0.5);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 18%, rgba(109, 196, 255, 0.16), transparent 18%),
    linear-gradient(135deg, #10285c 0%, #233f99 56%, #4aa9ff 100%);
  box-shadow: 0 24px 60px rgba(16, 40, 92, 0.16);
}

.proposal-hero .eyebrow,
.proposal-hero .proposal-kicker,
.proposal-story-card .eyebrow,
.proposal-population-note .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.proposal-hero .proposal-title-block h1,
.proposal-hero .proposal-title-block p,
.proposal-hero .proposal-kicker,
.proposal-hero .proposal-copy {
  color: #ffffff;
}

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

.proposal-hero-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.proposal-hero-stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.proposal-hero-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
  font-family: var(--font-display);
}

.proposal-hero-stat small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
}

.proposal-hero .button.alt {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.proposal-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.proposal-brand-guide {
  gap: 10px;
}

.proposal-wordmark {
  width: min(100%, 560px);
  height: auto;
}

.proposal-title-block h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
}

.proposal-title-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.proposal-kicker {
  color: var(--brand-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.proposal-header-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.proposal-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}

.proposal-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

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

.proposal-story-card {
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 28px;
  border-radius: 24px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(16, 40, 92, 0.96), rgba(35, 63, 153, 0.92), rgba(74, 169, 255, 0.82));
}

.proposal-story-card.challenge {
  background:
    linear-gradient(135deg, rgba(15, 35, 80, 0.98), rgba(33, 81, 173, 0.92));
}

.proposal-story-card.solution {
  background:
    linear-gradient(135deg, rgba(24, 55, 120, 0.98), rgba(49, 126, 255, 0.9));
}

.proposal-story-card p {
  color: #ffffff;
  margin: 0;
}

.proposal-copy {
  color: var(--ink-soft);
  line-height: 1.7;
}

.proposal-story-card .proposal-copy {
  font-size: 1rem;
}

.proposal-story-copy + .proposal-story-copy {
  margin-top: 2px;
}

.proposal-service-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.proposal-service-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.55;
  color: #ffffff;
}

.proposal-step-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.proposal-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.proposal-tip,
.signature-card {
  background: var(--brand-light-blue);
  border-left: 5px solid var(--brand-blue);
  border-radius: 0 18px 18px 0;
  padding: 20px;
}

.tip-box {
  background: var(--brand-light-blue);
  border-left: 5px solid var(--brand-blue);
}

.proposal-tip h3 {
  margin-top: 0;
}

.proposal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.proposal-metric {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.proposal-metric strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 2rem;
  color: var(--brand-blue-dark);
}

.proposal-funnel-chart {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.proposal-funnel-row {
  display: grid;
  grid-template-columns: 260px 1fr 160px;
  gap: 18px;
  align-items: center;
}

.proposal-funnel-meta {
  display: grid;
  gap: 4px;
}

.proposal-funnel-meta strong {
  display: block;
  font-size: 1.45rem;
}

.proposal-funnel-track {
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eaf2ff, #dbeafe);
  display: flex;
  align-items: center;
  padding: 8px;
}

.proposal-funnel-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #1d4ed8);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
}

.proposal-funnel-side {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.proposal-population-note {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(16, 40, 92, 0.96), rgba(35, 63, 153, 0.9), rgba(74, 169, 255, 0.82));
  color: #ffffff;
}

.proposal-population-note h3,
.proposal-population-note p,
.proposal-population-note .summary-item {
  color: #ffffff;
}

.proposal-population-note .summary-item {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Proposal hero enhancements */
.proposal-hero {
  position: relative;
  overflow: hidden;
}

.proposal-hero-gradient-orb {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 169, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
  animation: proposal-orb-float 8s ease-in-out infinite;
}

@keyframes proposal-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 15px) scale(1.08); }
}

.proposal-hero-stat-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.proposal-hero-stat.accent {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.28);
}

.proposal-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.proposal-chat-hero-btn {
  background: rgba(74, 169, 255, 0.22) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
}

.proposal-chat-hero-btn:hover {
  background: rgba(74, 169, 255, 0.36) !important;
}

/* Proposal metric enhancements */
.proposal-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.proposal-metric.highlight {
  background: linear-gradient(135deg, #10285c, #233f99);
  color: #ffffff;
  border-color: transparent;
}

.proposal-metric.highlight strong {
  color: #ffffff;
}

.proposal-metric.highlight small {
  color: rgba(255, 255, 255, 0.72);
}

.proposal-metric.highlight .proposal-metric-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Proposal Lini CTA section */
.proposal-lini-cta {
  background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 50%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
}

.proposal-lini-cta-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.proposal-lini-cta-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid rgba(37, 99, 235, 0.18);
}

.proposal-lini-cta h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.proposal-lini-cta .proposal-copy {
  margin: 0;
}

.proposal-lini-cta .button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Feasibility Intro Section ── */
.proposal-feasibility-intro {
  background: linear-gradient(135deg, #f0f7ff 0%, #eff6ff 50%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
}
.proposal-feasibility-intro h2 {
  color: #10285c;
}

/* ── Population Funnel Section ── */
.proposal-pop-funnel-section { }
.proposal-pop-funnel {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
}
.pop-funnel-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.pop-funnel-row:last-child { border-bottom: none; }
.pop-funnel-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pop-funnel-step-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}
.pop-funnel-rate {
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.pop-funnel-bar-track {
  background: #f1f5f9;
  border-radius: 6px;
  height: 32px;
  position: relative;
  overflow: hidden;
}
.pop-funnel-bar {
  background: linear-gradient(90deg, #10285c, #3b6cf5);
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 80px;
}
.pop-funnel-value {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.pop-funnel-detail {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: var(--ink-soft);
  padding-left: 212px;
  margin-top: -6px;
  font-style: italic;
}
.proposal-pop-projection {
  margin-top: 20px;
}
.pop-projection-card {
  display: flex;
  gap: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.pop-projection-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border-right: 1px solid #e2e8f0;
}
.pop-projection-stat:last-child { border-right: none; }
.pop-projection-stat span {
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.pop-projection-stat strong {
  font-size: 1.3rem;
  color: var(--ink);
  margin-top: 4px;
}
.pop-projection-stat.accent {
  background: linear-gradient(135deg, #10285c, #1e3a8a);
}
.pop-projection-stat.accent span { color: #93c5fd; }
.pop-projection-stat.accent strong { color: #fff; }
.pop-timeline-note {
  margin-top: 12px;
  padding: 12px 16px;
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--ink);
}
.proposal-pop-summary {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pop-summary-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pop-summary-stat span {
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.pop-summary-stat strong {
  font-size: 1rem;
  color: var(--ink);
}

/* ── Feasibility Score Section ── */
.proposal-feasibility-section { }
.feasibility-score-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
.feasibility-score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 3px solid;
}
.feasibility-score-circle.easy { border-color: #22c55e; background: #f0fdf4; color: #166534; }
.feasibility-score-circle.moderate { border-color: #eab308; background: #fefce8; color: #854d0e; }
.feasibility-score-circle.hard { border-color: #f97316; background: #fff7ed; color: #9a3412; }
.feasibility-score-circle.very-hard { border-color: #ef4444; background: #fef2f2; color: #991b1b; }
.feasibility-score-number {
  font-size: 1.6rem;
  line-height: 1;
}
.feasibility-score-of {
  font-size: 0.7rem;
  opacity: 0.7;
  font-weight: 600;
}
.feasibility-score-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.feasibility-dimensions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.feasibility-dim {
  display: grid;
  grid-template-columns: 140px 1fr 36px;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
}
.feasibility-dim span:first-child {
  text-transform: capitalize;
  color: var(--ink-soft);
  font-weight: 500;
}
.feasibility-dim-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}
.feasibility-dim-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #22c55e, #eab308 50%, #ef4444);
  transition: width 0.5s ease;
}
.feasibility-dim-val {
  text-align: right;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.risk-item { color: #92400e; }
.positive-item { color: #166534; }
.rec-item { color: var(--ink); }

/* ── Competitive Landscape Section ── */
.proposal-landscape-section { }
.landscape-overview {
  display: flex;
  gap: 0;
  margin: 20px 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.landscape-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border-right: 1px solid #e2e8f0;
}
.landscape-stat:last-child { border-right: none; }
.landscape-stat strong {
  font-size: 1.4rem;
  color: var(--ink);
}
.landscape-stat span {
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  margin-top: 2px;
}
.landscape-stat.warning strong { color: #dc2626; }
.landscape-trials { margin-top: 16px; }
.landscape-trials h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.landscape-trial-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.landscape-trial-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
}
.landscape-trial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.landscape-trial-header a {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}
.landscape-trial-header a:hover { text-decoration: underline; }
.landscape-phase {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 600;
}
.landscape-trial-title {
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.landscape-trial-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.landscape-impact-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fefce8;
  border-left: 4px solid #eab308;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: #854d0e;
}

/* ── Responsive: funnel & feasibility ── */
@media (max-width: 768px) {
  .pop-funnel-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .pop-funnel-detail {
    padding-left: 0;
  }
  .pop-projection-card {
    flex-direction: column;
  }
  .pop-projection-stat {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .pop-projection-stat:last-child { border-bottom: none; }
  .landscape-overview {
    flex-direction: column;
  }
  .landscape-stat {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .landscape-stat:last-child { border-bottom: none; }
  .feasibility-dim {
    grid-template-columns: 110px 1fr 30px;
  }
}

/* ── Proposal Chat Widget ── */
.proposal-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 12px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #10285c, #233f99);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(16, 40, 92, 0.28), 0 0 0 0 rgba(74, 169, 255, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: proposal-chat-pulse 3s ease-in-out infinite;
}

@keyframes proposal-chat-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(16, 40, 92, 0.28), 0 0 0 0 rgba(74, 169, 255, 0.4); }
  50% { box-shadow: 0 8px 32px rgba(16, 40, 92, 0.28), 0 0 0 8px rgba(74, 169, 255, 0); }
}

.proposal-chat-launcher:hover {
  transform: scale(1.05);
}

.proposal-chat-launcher-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.proposal-chat-drawer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: min(440px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 48px));
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 80px rgba(16, 40, 92, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: proposal-chat-slide-up 0.3s ease-out;
}

@keyframes proposal-chat-slide-up {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.proposal-chat-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.proposal-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #10285c, #233f99);
  color: #ffffff;
}

.proposal-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proposal-chat-header-info strong {
  display: block;
  font-size: 1.05rem;
}

.proposal-chat-header-info .subtle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.proposal-chat-header .chip {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.proposal-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.proposal-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proposal-chat-welcome {
  text-align: center;
  padding: 20px 12px;
}

.proposal-chat-welcome-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.proposal-chat-welcome-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.proposal-chat-welcome p {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 8px;
}

.proposal-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.proposal-chat-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proposal-chat-message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proposal-chat-message-meta strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.proposal-chat-msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.proposal-chat-message-text {
  line-height: 1.65;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.proposal-chat-message.user .proposal-chat-message-text {
  background: var(--brand-light-blue);
  color: var(--ink);
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}

.proposal-chat-message.assistant .proposal-chat-message-text {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.proposal-chat-typing {
  color: var(--ink-soft) !important;
  font-style: italic;
  animation: proposal-chat-fade 1.5s ease-in-out infinite;
}

@keyframes proposal-chat-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.proposal-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.proposal-chat-suggestion {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: #f0f7ff;
  color: var(--brand-blue);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
}

.proposal-chat-suggestion:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.proposal-chat-input {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid #e2e8f0;
  background: #fafbfd;
}

.proposal-chat-input input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s;
}

.proposal-chat-input input:focus {
  border-color: var(--brand-blue);
}

.proposal-chat-input .button {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 12px;
}

.match-card-list {
  display: grid;
  gap: 18px;
}

.match-card {
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 20px;
}

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

.match-logic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.match-logic-item {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dbeafe;
}

.match-logic-item strong,
.match-logic-item small,
.match-logic-item span {
  display: block;
}

.match-logic-item strong {
  margin: 6px 0;
  color: var(--brand-blue-dark);
}

.match-logic-item small {
  color: var(--ink-soft);
  line-height: 1.5;
}

.lini-panel {
  display: grid;
  gap: 10px;
}

.lini-answer {
  line-height: 1.7;
}

.support-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(191, 219, 254, 0.88);
  box-shadow: 0 24px 54px rgba(18, 38, 86, 0.16);
  z-index: 4;
  backdrop-filter: blur(18px);
}

.support-launcher-avatar {
  width: 96px;
  height: 96px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  flex-shrink: 0;
}

.support-launcher-avatar img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  transform-origin: center bottom;
  animation: liniBob 2.8s ease-in-out infinite;
}

.support-launcher > span:last-child {
  font-weight: 800;
  color: var(--ink);
  padding-right: 8px;
  white-space: nowrap;
}

.launch-option {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(191, 219, 254, 0.6);
  box-shadow: 0 22px 44px rgba(20, 41, 86, 0.1);
  background:
    radial-gradient(circle at top right, rgba(170, 210, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 248, 255, 0.94));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.launch-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px rgba(20, 41, 86, 0.14);
}

.launch-option::after {
  content: "";
  position: absolute;
  inset: auto -22px -22px auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 148, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.launch-option.subscription {
  border-top: 10px solid #66bb6a;
}

.launch-option.activation {
  border-top: 10px solid #fb923c;
}

.launch-option.recruitment {
  border-top: 10px solid #4f46e5;
}

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

.support-drawer {
  position: fixed;
  right: 22px;
  bottom: 88px;
  width: min(740px, calc(100vw - 40px));
  padding: 0;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 28px 80px rgba(18, 38, 86, 0.22);
  z-index: 4;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.assistant-shell {
  padding: 22px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.assistant-presence {
  display: grid;
  gap: 14px;
  justify-items: center;
  align-content: start;
}

.assistant-greeting {
  position: relative;
  border: 0;
  cursor: pointer;
  width: 100%;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(18, 38, 86, 0.05);
  padding: 16px 18px;
  text-align: left;
  line-height: 1.6;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
}

.assistant-greeting::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: white;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}

.assistant-avatar-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 30px;
  padding: 18px 16px 14px;
  min-height: 258px;
  background: linear-gradient(180deg, rgba(37, 80, 230, 0.08), rgba(94, 190, 255, 0.12));
  border: 1px solid rgba(37, 80, 230, 0.12);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(37, 80, 230, 0.12);
  overflow: hidden;
}

.assistant-avatar-button img {
  width: min(100%, 184px);
  height: auto;
  object-fit: contain;
}

.assistant-presence-note {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.6;
  max-width: 180px;
  margin-top: -2px;
}

.assistant-chat-panel {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 38, 86, 0.06);
  overflow: hidden;
}

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

.assistant-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.agent-orb {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue), #5ebeff);
  box-shadow: 0 16px 34px rgba(37, 80, 230, 0.28);
  overflow: hidden;
}

.agent-orb::before,
.agent-orb::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: pulseRing 2.8s ease-in-out infinite;
}

.agent-orb::after {
  inset: -6px;
  border-radius: 22px;
  border-color: rgba(94, 190, 255, 0.18);
  animation-delay: 0.9s;
}

.agent-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.assistant-aura {
  margin: 14px 18px 0;
  border-radius: 22px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(37, 80, 230, 0.08), rgba(94, 190, 255, 0.14));
  border: 1px solid rgba(37, 80, 230, 0.12);
  color: #2a458f;
  font-size: 14px;
  line-height: 1.65;
}

.prompt-strip {
  padding: 14px 18px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.pill:hover {
  background: #eef4ff;
}

.assistant-stage {
  padding: 18px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.85), rgba(255, 255, 255, 0.96));
}

.assistant-figure {
  border-radius: 28px;
  border: 1px solid rgba(37, 80, 230, 0.12);
  background: linear-gradient(180deg, rgba(37, 80, 230, 0.08), rgba(94, 190, 255, 0.12));
  display: grid;
  place-items: center;
  padding: 18px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.assistant-figure::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 18px;
  bottom: 24px;
  border-radius: 999px;
  background: rgba(12, 27, 70, 0.12);
  filter: blur(8px);
}

.assistant-character-art {
  display: block;
  width: min(100%, 184px);
  height: auto;
  animation: floatAssistant 3.4s ease-in-out infinite;
  filter: drop-shadow(0 18px 28px rgba(19, 38, 86, 0.16));
}

.assistant-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.support-form-shell {
  gap: 12px;
}

.commercial-request-card {
  cursor: default;
}

.commercial-request-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.commercial-request-steps span {
  padding: 10px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--ink-faint);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.commercial-request-steps span.done {
  background: #dbeafe;
  color: var(--brand-blue-dark);
}

.commercial-request-steps span.live {
  background: #dcfce7;
  color: #166534;
}

.dashboard-hero-card,
.dashboard-snapshot-panel {
  min-height: 100%;
}

.dashboard-hero-card h1 {
  max-width: 10ch;
  font-size: clamp(2.2rem, 4.2vw, 5.2rem);
  line-height: 0.94;
}

.dashboard-snapshot-panel {
  padding: 36px;
}

.support-guide-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #dbeafe;
}

.support-guide-card h3 {
  margin: 0;
  font-family: var(--font-display);
}

.support-guide-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.support-guide-actions {
  margin-top: 4px;
}

.support-thread {
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.support-message {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: var(--ink);
  line-height: 1.6;
}

.support-message strong {
  color: var(--brand-blue-dark);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-message.user {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.support-suggestions {
  gap: 8px;
}

.support-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

@keyframes pulseRing {
  0%, 100% {
    opacity: 0.38;
    transform: scale(1);
  }
  50% {
    opacity: 0.14;
    transform: scale(1.04);
  }
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
}

.footer-note {
  margin-top: 28px;
  color: rgba(20, 33, 61, 0.58);
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .hero,
  .grid,
  .dashboard-grid,
  .dashboard-main-grid,
  .dashboard-admin-grid,
  .overview-hero-shell,
  .overview-detail-grid,
  .overview-lifecycle-band,
  .project-hub-hero,
  .project-status-bar,
  .project-stage-tabs,
  .workspace-grid,
  .overview-grid,
  .project-stage-grid,
  .launch-options-grid,
  .materials-preview-grid,
  .pricing-kpi-strip,
  .materials-shell,
  .materials-layout,
  .auth-wrap,
  .auth-product-layout,
  .auth-story-grid,
  .split,
  .project-layout,
  .proposal-grid,
  .proposal-story-grid,
  .assistant-shell,
  .assistant-stage,
  .hero-visual-grid {
    grid-template-columns: 1fr;
  }

  .stage-hero {
    flex-direction: column;
  }

  .project-rail,
  .auth-side-stack {
    position: static;
  }

  .support-launcher {
    right: 14px;
    bottom: 14px;
    padding-right: 14px;
  }

  .assistant-head {
    flex-direction: column;
  }

  .support-launcher-avatar,
  .support-launcher-avatar img {
    width: 96px;
    height: 96px;
  }

  .metrics,
  .result-grid,
  .proposal-metrics,
  .assessment-grid,
  .agent-progress-steps,
  .pricing-highlight-grid,
  .auth-package-grid,
  .pricing-kpi-strip-expanded,
  .pricing-breakdown-grid,
  .pricing-model-banner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .commercial-request-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

  .proposal-hero {
    padding: 24px;
  }

  .pricing-funnel-row,
  .pricing-model-banner {
    grid-template-columns: 1fr;
  }

  .proposal-funnel-side {
    justify-items: start;
    text-align: left;
  }

  .pricing-funnel-side {
    justify-items: start;
    text-align: left;
  }

  .proposal-hero-stat-group {
    grid-template-columns: 1fr;
  }

  .proposal-lini-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .proposal-chat-drawer {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 8px;
    height: calc(100vh - 16px);
    border-radius: 18px;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 20px, 100%);
  }

  .topbar {
    border-radius: 26px;
    padding: 16px;
  }

  .metrics,
  .form-grid,
  .form-grid.three,
  .result-grid,
  .hero-list,
  .overview-lifecycle-band,
  .assessment-grid,
  .proposal-metrics,
  .match-logic-grid,
  .agent-progress-steps,
  .pricing-highlight-grid,
  .auth-story-grid,
  .auth-package-grid,
  .pricing-kpi-strip-expanded,
  .pricing-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .auth-wrap {
    width: min(100% - 16px, 100%);
    margin-top: 20px;
  }

  .auth-hero {
    padding: 28px;
  }

  .proposal-shell {
    width: min(100% - 20px, 100%);
  }

  .support-launcher {
    right: 14px;
    bottom: 14px;
    padding-right: 12px;
  }

  .support-launcher > span:last-child {
    display: none;
  }

  .support-drawer {
    right: 10px;
    bottom: 78px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 130px);
    overflow: auto;
  }

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

}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body {
    background: white;
    color: #14213d;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .proposal-shell {
    width: 100%;
    padding: 0;
  }

  .proposal-header {
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: none;
  }

  .proposal-hero {
    padding: 18px;
    border-radius: 18px;
    box-shadow: none;
    break-inside: avoid;
    background: white !important;
  }

  .proposal-brand,
  .proposal-hero-side,
  .proposal-grid,
  .proposal-story-grid,
  .proposal-metrics,
  .form-grid,
  .proposal-funnel-row {
    grid-template-columns: 1fr !important;
  }

  .proposal-grid,
  .proposal-story-grid,
  .proposal-metrics,
  .proposal-funnel-row,
  .proposal-hero-side {
    gap: 12px !important;
  }

  .proposal-title-block h1 {
    font-size: 24pt;
    line-height: 1.05;
  }

  .proposal-title-block p,
  .proposal-copy,
  .proposal-funnel-meta small,
  .proposal-funnel-side small,
  .summary-item,
  .proposal-step p,
  .proposal-tip p {
    font-size: 10pt;
    line-height: 1.45;
  }

  .proposal-wordmark {
    width: 300px;
  }

  .proposal-header-actions .button {
    display: none !important;
  }

  .support-launcher,
  .support-drawer,
  .topbar,
  .toolbar,
  .button,
  #proposal-accept-form,
  .checkbox-row {
    display: none !important;
  }

  .proposal-panel,
  .proposal-metric,
  .proposal-tip,
  .signature-card,
  .proposal-story-card,
  .proposal-population-note {
    box-shadow: none;
    break-inside: avoid;
    background: white;
    border: 1px solid #dbeafe;
    color: #14213d;
  }

  .proposal-story-card .eyebrow,
  .proposal-population-note .eyebrow,
  .proposal-story-card p,
  .proposal-population-note h3,
  .proposal-population-note p,
  .proposal-population-note .summary-item,
  .proposal-hero .eyebrow,
  .proposal-hero .proposal-kicker,
  .proposal-hero .proposal-title-block h1,
  .proposal-hero .proposal-title-block p,
  .proposal-hero .proposal-copy,
  .proposal-hero-stat,
  .proposal-hero-stat small {
    color: #14213d !important;
  }

  .proposal-hero-stat,
  .proposal-service-item,
  .proposal-population-note .summary-item {
    background: #f8fbff !important;
    border: 1px solid #dbeafe !important;
  }

  .proposal-tip,
  .signature-card {
    border-left: 3px solid var(--brand-blue);
    border-radius: 12px;
  }

  .proposal-panel {
    padding: 16px;
    margin-bottom: 14px;
  }

  .proposal-metric {
    padding: 14px;
  }

  .proposal-metric strong {
    font-size: 18pt;
  }

  .proposal-step-list,
  .summary-list,
  .proposal-funnel-chart {
    gap: 10px;
    margin-top: 10px;
  }

  .proposal-funnel-track {
    height: 18px;
    padding: 2px;
  }

  .proposal-funnel-side {
    justify-items: start;
    text-align: left;
  }
}

:root {
  --brand-primary: #1d4ed8;
  --text-secondary: #475569;
}

.shell {
  width: min(1680px, calc(100% - 40px));
}

.topbar {
  border-radius: 999px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.hero-card,
.panel,
.metric-card,
.table-card,
.auth-card,
.form-card,
.scenario-card,
.stage-hero,
.workspace-header {
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,250,255,0.92));
  border: 1px solid rgba(191, 219, 254, 0.65);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.06);
}

.hero-card {
  padding: 56px;
}

.hero h1 {
  max-width: 16ch;
  line-height: 0.98;
}

.hero p,
.stage-hero p,
.section-heading + p {
  color: #52637a;
}

.project-card,
.benchmark-item,
.scenario-item,
.summary-item,
.stage-card,
.materials-preview-card {
  border-radius: 24px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(203, 213, 225, 0.72);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.materials-preview-card {
  padding: 18px;
}

.materials-preview-frame {
  min-height: 1040px;
  border-radius: 30px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.materials-image-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.materials-image-card {
  align-content: start;
}

.materials-image-shell {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #dbeafe, #eff6ff 48%, #fff7ed);
  border: 1px solid rgba(191, 219, 254, 0.9);
}

.materials-image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.materials-output-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 12px;
}

.materials-output-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.materials-output-card {
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.materials-output-card p {
  margin: 0;
  color: #5b6d86;
}

.vision-materials-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 16%, rgba(118, 194, 255, 0.2), transparent 18%),
    radial-gradient(circle at 88% 86%, rgba(121, 157, 255, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(16, 40, 92, 0.96) 0%, rgba(35, 63, 153, 0.94) 56%, rgba(74, 169, 255, 0.8) 100%);
  border: none;
  box-shadow: 0 26px 54px rgba(17, 34, 76, 0.16);
}

.vision-materials-shell::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.vision-materials-shell > * {
  position: relative;
  z-index: 1;
}

.vision-materials-shell .section-heading span,
.vision-materials-shell .section-heading h2 {
  color: #fff;
}

.vision-materials-shell .section-heading span {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.22em;
}

.materials-floating-grid {
  gap: 18px;
  margin-top: 20px;
}

.materials-floating-card {
  position: relative;
  min-height: 220px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.92));
  box-shadow:
    0 22px 38px rgba(8, 22, 57, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  align-content: start;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.materials-floating-card:nth-child(2n) {
  transform: translateY(14px);
}

.materials-floating-card:nth-child(3n) {
  transform: translateY(28px);
}

.materials-floating-card:hover {
  transform: translateY(6px);
  box-shadow:
    0 28px 46px rgba(8, 22, 57, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.materials-floating-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 138, 255, 0.16), transparent 72%);
  pointer-events: none;
}

.materials-card-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: #3157b7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.vision-materials-shell .summary-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.vision-materials-shell .proposal-url {
  color: #d7e7ff;
}

.materials-studio {
  display: grid;
  gap: 22px;
}

.materials-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.materials-status-badge.ready {
  background: rgba(134, 239, 172, 0.18);
  color: #dcfce7;
}

.materials-revision-panel,
.materials-history-panel {
  border-radius: 28px;
  border: 1px solid rgba(208, 220, 236, 0.88);
  background:
    radial-gradient(circle at top right, rgba(198, 221, 255, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.92));
  box-shadow: 0 22px 44px rgba(34, 52, 88, 0.08);
}

.materials-revision-panel textarea {
  min-height: 170px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.materials-history-panel .summary-item {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 900px) {
  .materials-floating-card:nth-child(2n),
  .materials-floating-card:nth-child(3n) {
    transform: none;
  }
}

.materials-preview-stage {
  border: 1px dashed rgba(147, 197, 253, 0.85);
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(236, 245, 255, 0.82));
}

.materials-preview-stage__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.materials-preview-stage__header h3 {
  margin: 6px 0 8px;
}

.materials-preview-stage__header p {
  margin: 0;
  color: #5b6d86;
}

.materials-asset-gallery {
  margin-top: 18px;
}

.materials-summary-list,
.materials-section-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.materials-summary-row,
.materials-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  background: rgba(255, 255, 255, 0.92);
}

.materials-summary-row strong,
.materials-section-row strong {
  display: block;
  margin-top: 6px;
}

.materials-summary-row p,
.materials-section-row p {
  margin: 6px 0 0;
  color: #5b6d86;
}

.materials-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.materials-asset-card {
  border-radius: 22px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  display: grid;
}

.materials-asset-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
}

.materials-asset-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.materials-asset-card__body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.materials-asset-card__body p {
  margin: 0;
  color: #5b6d86;
  line-height: 1.55;
  font-size: 0.94rem;
}

/* ── Brand & compliance collapsible panel ────────────────────────────────── */

.brand-panel {
  overflow: hidden;
}

.brand-panel > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.brand-panel > summary::-webkit-details-marker {
  display: none;
}

.brand-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}

.brand-panel__summary-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-panel__logo-thumb {
  height: 40px;
  max-width: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  padding: 6px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.brand-panel__logo-placeholder {
  width: 48px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1.5px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}

.brand-panel__body {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(191, 219, 254, 0.6);
}

/* Chevron indicator on the summary */
.brand-panel > summary::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
  color: var(--ink-soft);
  transform: rotate(90deg);
  display: inline-block;
  transition: transform 0.2s ease;
  margin-left: 8px;
}

.brand-panel[open] > summary::after {
  transform: rotate(-90deg);
}

/* ── Compact outputs list ────────────────────────────────────────────────── */

.mout-list {
  display: grid;
  gap: 1px;
  margin-top: 16px;
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(191, 219, 254, 0.3);
}

.mout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
}

.mout-row:first-child {
  border-radius: 17px 17px 0 0;
}

.mout-row:last-child {
  border-radius: 0 0 17px 17px;
}

.mout-row:only-child {
  border-radius: 17px;
}

.mout-row small {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.mout-row strong {
  font-size: 14px;
}

/* ── Ad creative renders panel ───────────────────────────────────────────── */

.ads-render-row {
  border-top: 2px dashed #bfdbfe;
  background: linear-gradient(135deg, #f0f7ff 0%, #eff6ff 100%);
  border-radius: 0 0 18px 18px;
}

.ads-render-panel {
  margin-top: 24px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
  background: #f8fbff;
}

.ads-render-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ads-render-card {
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.ads-render-card__img {
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.ads-render-card__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.ads-render-card__footer {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  border-top: 1px solid #eff6ff;
}

/* ── End ad renders ──────────────────────────────────────────────────────── */

.button.secondary {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

.button.alt,
.chip {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(191, 219, 254, 0.92);
}

@media (max-width: 700px) {
  .materials-summary-row,
  .materials-section-row,
  .materials-preview-stage__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card {
    padding: 32px;
  }

  .shell {
    width: min(100% - 16px, 100%);
  }
}

body {
  background:
    radial-gradient(circle at top left, rgba(187, 224, 255, 0.7), transparent 28%),
    radial-gradient(circle at top right, rgba(196, 208, 255, 0.7), transparent 26%),
    linear-gradient(180deg, #edf5ff 0%, #f4f7fc 45%, #edf3fb 100%);
}

.shell {
  width: min(1280px, calc(100% - 40px));
  padding-top: 18px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  border-radius: 24px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(208, 220, 236, 0.96);
  box-shadow: 0 14px 34px rgba(31, 47, 86, 0.08);
}

.brand-meta-horizon small {
  margin-bottom: 2px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #7d8aa5;
}

.brand-meta-horizon strong {
  font-size: 1.6rem;
  color: #2151df;
  line-height: 1;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(125, 138, 165, 0.35);
}

.nav-links {
  flex: 1;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #30415f;
}

.nav-link.muted {
  color: #72809b;
}

.nav-user-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user-copy {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.nav-user-copy strong {
  font-size: 0.95rem;
}

.nav-user-copy span {
  color: #7d8aa5;
  font-size: 0.78rem;
}

.nav-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1d356f, #3d7cff 72%, #6cbcff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(33, 81, 223, 0.22);
}

.button.logout {
  background: #fff3f1;
  color: #ec5b4f;
  box-shadow: none;
  border: 1px solid rgba(236, 91, 79, 0.16);
}

.button.logout:hover {
  box-shadow: 0 12px 24px rgba(236, 91, 79, 0.12);
}

.hero.dashboard-hero,
.project-shell {
  margin-top: 26px;
}

.vision-footer {
  margin: 22px 0 0;
  text-align: center;
  color: #93a0b7;
  font-size: 0.82rem;
}

/* ── Landing page (clean Vision layout, no images) ──────────────────── */
.landing-hero-single {
  display: block;
  margin-top: 34px;
}

.landing-hero-single .hero-card {
  max-width: 720px;
}

.landing-hero-single .hero-card h1 {
  max-width: none;
  font-size: clamp(3.6rem, 7vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.landing-hero-single .hero-card p {
  max-width: 54ch;
}

.landing-features {
  margin: 32px 0 0;
}

.landing-features .section-heading {
  margin-bottom: 20px;
}

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

.landing-feature-card {
  display: grid;
  gap: 8px;
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(191, 219, 254, 0.7);
}

.landing-feature-card strong {
  font-size: 1.05rem;
}

.landing-feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.landing-feature-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ── end landing page ──────────────────────────────────────────────── */

.hero-card.vision-hero-card,
.workspace-header.vision-project-hero,
.stage-hero.vision-stage-hero,
.overview-story-card.vision-command-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(109, 196, 255, 0.12), transparent 18%),
    linear-gradient(135deg, #10285c 0%, #233f99 56%, #4aa9ff 100%);
  border: none;
  box-shadow: 0 26px 54px rgba(17, 34, 76, 0.18);
  color: #fff;
}

.hero-card.vision-hero-card::after,
.workspace-header.vision-project-hero::after,
.stage-hero.vision-stage-hero::after,
.overview-story-card.vision-command-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
  pointer-events: none;
}

.hero-card.vision-hero-card .eyebrow,
.workspace-header.vision-project-hero .eyebrow,
.stage-hero.vision-stage-hero .eyebrow,
.overview-story-card.vision-command-card .eyebrow,
.panel.vision-snapshot-panel .section-heading span,
.vision-project-badge,
.vision-project-snapshot > span {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.22em;
}

.hero-card.vision-hero-card h1,
.workspace-header.vision-project-hero h1,
.stage-hero.vision-stage-hero h2,
.overview-story-card.vision-command-card h2,
.panel.vision-snapshot-panel .section-heading h2 {
  color: #ffffff;
}

.hero-card.vision-hero-card p,
.workspace-header.vision-project-hero p,
.stage-hero.vision-stage-hero p,
.overview-story-card.vision-command-card p {
  color: rgba(255, 255, 255, 0.82);
}

.vision-stat-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}

.vision-stat-pills div {
  min-width: 132px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.vision-stat-pills span,
.vision-hero-list strong {
  display: block;
}

.vision-stat-pills span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}

.vision-stat-pills strong {
  margin-top: 6px;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.vision-hero-list div {
  background: rgba(255, 255, 255, 0.96);
  border: none;
  color: #33435f;
}

.panel.vision-snapshot-panel {
  background:
    linear-gradient(180deg, rgba(28, 53, 126, 0.88), rgba(76, 132, 255, 0.78));
  border: none;
  color: #fff;
}

.panel.vision-snapshot-panel .section-heading h2,
.panel.vision-snapshot-panel .summary-item {
  color: #fff;
}

.panel.vision-snapshot-panel .summary-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.workspace-header.vision-project-hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: stretch;
  gap: 24px;
  padding: 30px;
}

.vision-project-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.95;
  color: #fff;
}

.stage-hero.vision-stage-hero {
  border: none;
  box-shadow: 0 22px 50px rgba(17, 34, 76, 0.16);
}

.stage-hero.vision-stage-hero .summary-item,
.overview-story-card.vision-command-card .button.alt {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.stage-hero.vision-stage-hero .summary-item {
  color: #ffffff;
}

.stage-hero.vision-stage-hero .button.alt,
.stage-hero.vision-stage-hero .button.secondary,
.overview-story-card.vision-command-card .button.alt,
.overview-story-card.vision-command-card .button.secondary,
.hero-card.vision-hero-card .button.alt {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.stage-hero.vision-stage-hero .button,
.overview-story-card.vision-command-card .button,
.hero-card.vision-hero-card .button {
  box-shadow: none;
}

.overview-story-card.vision-command-card {
  padding: 34px 36px;
}

.overview-story-card.vision-command-card .command-center-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.overview-story-card.vision-command-card .command-center-copy {
  position: relative;
  z-index: 1;
}

.vision-project-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.76rem;
  font-weight: 800;
}

.vision-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.vision-project-actions .button.alt {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.vision-project-actions .button.secondary {
  background: rgba(255, 255, 255, 0.96);
  color: #18357e;
}

.vision-project-snapshot {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.vision-snapshot-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vision-snapshot-card small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.66);
}

.vision-snapshot-card strong {
  font-size: 1.4rem;
  color: #fff;
}

.project-status-bar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-status-pill {
  border: 1px solid rgba(219, 228, 240, 0.96);
  background: rgba(255, 255, 255, 0.88);
}

.project-stage-tabs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(208, 220, 236, 0.9);
}

.stage-nav-button {
  width: auto;
  min-height: auto;
  padding: 8px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 2px solid transparent;
}

.stage-nav-button:hover,
.stage-nav-button.active {
  transform: none;
  background: transparent;
  box-shadow: none;
}

.stage-nav-button.active {
  border-bottom-color: #3c67ff;
}

.stage-nav-label {
  font-size: 0.98rem;
}

.stage-nav-status {
  background: transparent;
  padding: 0;
  font-size: 0.76rem;
}

.overview-story-card,
.overview-stage-focus,
.form-card,
.table-card,
.auth-card,
.scenario-card,
.stage-hero,
.workspace-header,
.panel {
  border-radius: 26px;
  border: 1px solid rgba(219, 228, 240, 0.96);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(25, 40, 75, 0.06);
}

.support-launcher {
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, #2b5cff, #1f49ce);
  border: none;
  color: #fff;
}

.support-launcher > span:last-child {
  color: #fff;
  padding-right: 0;
}

.support-launcher-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .topbar {
    gap: 14px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .vision-project-hero,
  .project-status-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
  }

  .brand-block,
  .nav-user-block {
    width: 100%;
  }

  .nav-links,
  .nav-user-block,
  .vision-project-actions {
    justify-content: flex-start;
  }

  .nav-user-copy {
    justify-items: start;
  }

  .nav-links {
    order: 3;
  }

  .support-launcher > span:last-child {
    display: inline;
  }
}

/* ============================================================
   Vision design language overrides
   ============================================================ */

/* --- Hero / banner sections: dark navy-to-blue gradient --- */
.hero-card.vision-hero-card,
.workspace-header.vision-project-hero,
.stage-hero.vision-stage-hero,
.overview-story-card.vision-command-card,
.auth-hero,
.dashboard-hero .hero-card,
.horizon-dashboard-hero .hero-card {
  background: linear-gradient(135deg, #0f1f4e 0%, #1a3070 50%, #1d4ed8 100%);
  color: white;
  border: none;
  box-shadow: 0 28px 60px rgba(15, 31, 78, 0.22);
}

/* All direct text inside hero sections should be white */
.auth-hero h1,
.auth-hero h2,
.auth-hero p,
.auth-hero .eyebrow,
.auth-hero .muted-box {
  color: white;
}

.auth-hero a,
.auth-hero .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.auth-hero .muted-box {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Snapshot sidebar cards inside hero --- */
.hero-snapshot,
.overview-snapshot,
.panel.vision-snapshot-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: white;
}

.panel.vision-snapshot-panel .summary-item {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

/* --- Stage nav tabs: flat underline style (Vision flat tabs) --- */
.project-stage-tabs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 4px 8px;
  border-bottom: 1px solid rgba(208, 220, 236, 0.9);
}

.stage-nav-button {
  width: auto;
  min-height: auto;
  padding: 8px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 2px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.stage-nav-button:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
  border-bottom-color: rgba(60, 103, 255, 0.4);
}

.stage-nav-button.active {
  background: transparent;
  box-shadow: none;
  border-bottom-color: #3c67ff;
}

.stage-nav-label {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.stage-nav-status {
  background: transparent;
  padding: 0;
  font-size: 0.76rem;
}

/* --- Project status badges: pill with dot indicator --- */
.pill.tone-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.pill.tone-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.pill.tone-idle {
  background: #e2e8f0;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.pill.tone-active {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

/* --- "Request Help" floating button --- */
.help-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1d4ed8;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.4);
  z-index: 100;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.help-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.5);
}

/* --- Dashboard project status group headers --- */
.project-status-group {
  margin-top: 20px;
}

.project-status-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(208, 220, 236, 0.8);
}

.project-status-group-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.project-status-group-dot.active {
  background: #22c55e;
}

.project-status-group-dot.pending {
  background: #f59e0b;
}

.project-status-group-dot.complete {
  background: #94a3b8;
}

.project-status-group-header strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

/* --- Navigation: cleaner topbar style --- */
.topbar {
  background: white;
  border: none;
  border-bottom: 1px solid rgba(208, 220, 236, 0.7);
  border-radius: 24px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

/* --- Client settings panel (internal-only) --- */
.client-settings-panel {
  border-radius: 24px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.92));
  padding: 22px;
  display: grid;
  gap: 16px;
}

.client-settings-panel h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-row label {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* --- External launch locked state --- */
.launch-locked-state {
  padding: 28px 30px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(241, 246, 255, 0.92));
  border: 1px solid rgba(191, 219, 254, 0.7);
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.launch-locked-state p {
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.65;
  margin: 0;
}

.launch-portal-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f1f4e, #1d4ed8);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(29, 78, 216, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.launch-portal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(29, 78, 216, 0.4);
}

/* --- Strategy cards --- */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.strategy-card {
  background: var(--surface-alt, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 20px;
}
.strategy-card.compact { padding: 14px 18px; }
.strategy-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-tertiary, #94a3b8);
  margin-bottom: 6px;
}
.strategy-card-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink, #0f172a);
}
.strategy-card.compact .strategy-card-value { font-size: 16px; }
.strategy-card-note {
  font-size: 13px;
  color: var(--ink-secondary, #64748b);
  margin-top: 6px;
  line-height: 1.5;
}
.strategy-phases {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.strategy-phase {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface-alt, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
}
.strategy-phase-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent, #1d4ed8);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
/* --- Strategy chat --- */
.strategy-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 0;
}
.strategy-chat-empty {
  padding: 24px;
  text-align: center;
  color: var(--ink-tertiary, #94a3b8);
  font-size: 14px;
}
.strategy-chat-msg {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
  max-width: 85%;
}
.strategy-chat-msg.user {
  align-self: flex-end;
  background: var(--accent, #1d4ed8);
  color: #fff;
}
.strategy-chat-msg.assistant {
  align-self: flex-start;
  background: var(--surface-alt, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--ink, #0f172a);
}
.strategy-chat-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  opacity: 0.7;
}
.strategy-chat-msg.user .strategy-chat-role { color: rgba(255,255,255,0.8); }

/* --- External recruitment investment overview --- */
.recruitment-investment-card {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f1f4e 0%, #1a3070 50%, #1d4ed8 100%);
  color: white;
  display: grid;
  gap: 18px;
}

.recruitment-investment-card h3 {
  margin: 0;
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.recruitment-investment-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.recruitment-investment-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.recruitment-investment-kpi {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.recruitment-investment-kpi span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
}

.recruitment-investment-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 1.5rem;
  font-family: var(--font-display);
}

@media (max-width: 700px) {
  .recruitment-investment-kpis {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CONTRAST FIXES
   ============================================================ */

/* Auth page — "lighter blocks" inside the dark hero
   .auth-flow-stack div and .auth-story-card have a near-white
   background (rgba(245,249,255,0.94)) but inherit color:white
   from .auth-hero → text invisible. Force dark ink. */
.auth-flow-stack div,
.auth-story-card,
.auth-hero .hero-list div {
  color: var(--ink);
}

.auth-flow-stack strong,
.auth-story-card strong,
.auth-hero .hero-list div strong {
  color: var(--ink);
}

.auth-flow-stack span,
.auth-story-card span,
.auth-hero .hero-list div span {
  color: var(--ink-soft);
}

/* Dashboard / auth right-column snapshot panel
   .vision-snapshot-panel sits as the RIGHT grid column of .hero
   — it is NOT inside the dark hero-card, so its background is
   the page's light surface. Give it its own dark gradient and
   ensure all child text is white. */
.panel.vision-snapshot-panel,
.dashboard-snapshot-panel {
  background: linear-gradient(160deg, #10285c 0%, #1a3a80 60%, #233f99 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.panel.vision-snapshot-panel .section-heading span,
.panel.vision-snapshot-panel .section-heading h2,
.panel.vision-snapshot-panel .summary-list strong,
.panel.vision-snapshot-panel .summary-list br,
.panel.vision-snapshot-panel .summary-item strong,
.panel.vision-snapshot-panel .summary-item {
  color: #fff;
}

.panel.vision-snapshot-panel .summary-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── GPT ad creative cards ─────────────────────────────────────────────── */

.gpt-ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.gpt-ad-card {
  border-radius: 20px;
  border: 1px solid #dbeafe;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.06);
}

.gpt-ad-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  gap: 8px;
}

.size-toggle {
  display: flex;
  gap: 4px;
}

.size-btn {
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
  background: #f8fbff;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.size-btn.active,
.size-btn:hover {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.gpt-ad-card__img {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 420px;
  overflow: hidden;
}

.gpt-ad-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gpt-ad-card__copy {
  padding: 10px 14px;
  flex: 1;
}

.gpt-ad-card__copy strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.gpt-ad-card__copy p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gpt-ad-card__footer {
  padding: 10px 14px;
  border-top: 1px solid #eff6ff;
  display: flex;
  justify-content: flex-end;
}

.gpt-ads-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

@media (max-width: 700px) {
  .gpt-ad-grid {
    grid-template-columns: 1fr;
  }
}


/* ---------------------------------------------------------------------------
   Compliance Report
   --------------------------------------------------------------------------- */

/* Compliance pills */
.compliance-pill {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.compliance-excellent { background: #dcfce7 !important; color: #166534 !important; border-color: #86efac !important; }
.compliance-good { background: #dbeafe !important; color: #1e40af !important; border-color: #93c5fd !important; }
.compliance-review { background: #fef9c3 !important; color: #854d0e !important; border-color: #fde047 !important; }
.compliance-risk { background: #fef2f2 !important; color: #991b1b !important; border-color: #fca5a5 !important; }

/* Compliance report card */
.compliance-report-card summary h2 {
  font-size: 1.05rem;
}

/* Score row */
.compliance-score-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.compliance-score-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid currentColor;
  flex-shrink: 0;
}
.compliance-score-circle .score-number {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.compliance-score-circle .score-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.compliance-summary-text {
  flex: 1;
}
.compliance-summary-text p {
  margin: 0 0 8px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
}

.compliance-section-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.compliance-section-pill {
  font-size: 0.72rem;
  text-transform: capitalize;
  font-weight: 600;
}

/* Checks list */
.compliance-checks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compliance-check-item {
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 4px solid #e2e8f0;
}
.compliance-check-item.compliance-check-fail {
  background: #fef2f2;
  border-left-color: #ef4444;
}
.compliance-check-item.compliance-check-warn {
  background: #fffbeb;
  border-left-color: #f59e0b;
}
.compliance-check-item.compliance-check-info {
  background: #f0f9ff;
  border-left-color: #3b82f6;
}
.compliance-check-item.compliance-check-pass {
  background: #f8fafc;
  border-left-color: #22c55e;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compliance-check-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.compliance-severity-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.compliance-severity-badge.fail { background: #fee2e2; color: #991b1b; }
.compliance-severity-badge.warn { background: #fef3c7; color: #92400e; }
.compliance-severity-badge.info { background: #dbeafe; color: #1e40af; }
.compliance-severity-badge.pass { background: #dcfce7; color: #166534; }

.compliance-finding {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.45;
}

.compliance-offending {
  display: block;
  background: #1e293b;
  color: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  margin: 6px 0;
  word-break: break-word;
  white-space: pre-wrap;
}

.compliance-remediation {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: #166534;
  background: #f0fdf4;
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.45;
}
.compliance-remediation strong {
  color: #15803d;
}

/* Passed checks collapsible */
.compliance-passed-detail {
  margin-top: 6px;
}
.compliance-passed-detail summary {
  cursor: pointer;
  padding: 6px 0;
}
.compliance-passed-detail summary .subtle {
  color: #64748b;
  font-size: 0.84rem;
}
.compliance-passed-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
}

@media (max-width: 700px) {
  .compliance-score-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .compliance-score-circle {
    width: 68px;
    height: 68px;
  }
  .compliance-score-circle .score-number {
    font-size: 1.3rem;
  }
}

/* ---------------------------------------------------------------------------
   Lini Onboarding Walkthrough Tooltip
   --------------------------------------------------------------------------- */

.onboarding-tooltip {
  position: fixed;
  bottom: 88px;
  right: 22px;
  z-index: 5;
  width: min(460px, calc(100vw - 40px));
  animation: onboarding-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes onboarding-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.onboarding-tooltip-inner {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 20px 40px 20px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 60%);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow:
    0 24px 54px rgba(18, 38, 86, 0.16),
    0 0 0 1px rgba(37, 99, 235, 0.08);
}

.onboarding-tooltip-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(37, 99, 235, 0.2);
  animation: onboarding-avatar-bob 3s ease-in-out infinite;
}

@keyframes onboarding-avatar-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.onboarding-tooltip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboarding-tooltip-content {
  flex: 1;
  min-width: 0;
}

.onboarding-tooltip-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin-bottom: 6px;
}

.onboarding-tooltip-message {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 8px;
}

.onboarding-tooltip-action {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-style: italic;
}

.onboarding-tooltip-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onboarding-tooltip-buttons .button {
  font-size: 0.82rem;
  padding: 6px 16px;
  border-radius: 999px;
}

.onboarding-tooltip-buttons .chip {
  font-size: 0.78rem;
  color: var(--ink-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

.onboarding-tooltip-buttons .chip:hover {
  color: var(--ink);
  text-decoration: underline;
}

.onboarding-tooltip-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  font-size: 1.1rem;
  color: var(--ink-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}

.onboarding-tooltip-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
}

/* When support drawer is open, push onboarding tooltip higher */
.support-drawer ~ .onboarding-tooltip {
  bottom: auto;
  top: 80px;
  right: 22px;
}

@media (max-width: 700px) {
  .onboarding-tooltip {
    bottom: 76px;
    right: 12px;
    left: 12px;
    width: auto;
  }
  .onboarding-tooltip-avatar {
    width: 40px;
    height: 40px;
  }
}
