:root {
  --ink: #111611;
  --indigo: #15152d;
  --indigo-2: #242044;
  --sage: #dcebe6;
  --lavender: #d9c3fe;
  --salmon: #ffb3a7;
  --violet: #7758dc;
  --blue: #c8d9f2;
  --background: #f7f8f4;
  --surface: #ffffff;
  --surface-subtle: #fbfcf9;
  --border: rgba(17, 22, 17, 0.09);
  --border-strong: rgba(17, 22, 17, 0.16);
  --muted: #667067;
  --muted-2: #8b938c;
  --success: #24644e;
  --error: #a74435;
  --shadow: 0 10px 34px rgba(21, 21, 45, 0.06);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --sidebar: 276px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid rgba(119, 88, 220, 0.34);
  outline-offset: 2px;
}

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

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); background: white; }
.login-visual { position: relative; min-height: 100vh; overflow: hidden; background: #17132e url("assets/brand-gradient.png") center / cover no-repeat; }
.login-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 48%, transparent 0 18%, rgba(15,12,34,.08) 48%, rgba(15,12,34,.34) 100%); }
.persona-card-scene { position: absolute; inset: 0; z-index: 1; perspective: 1100px; transform-style: preserve-3d; }
.floating-persona-card { position: absolute; width: 210px; min-height: 88px; display: grid; grid-template-columns: 58px 1fr; gap: 11px; align-items: center; padding: 10px; border: 1px solid rgba(255,255,255,.42); border-radius: 15px; background: rgba(255,255,255,.9); color: var(--indigo); box-shadow: 0 18px 48px rgba(20,13,48,.2); backdrop-filter: blur(13px); transform-style: preserve-3d; will-change: transform; }
.persona-photo { width: 58px; height: 68px; display: block; border-radius: 10px; background-image: url("assets/persona-portraits-v1.png"); background-repeat: no-repeat; background-size: 300% 200%; background-color: #ececf0; }
.persona-photo.photo-0 { background-position: 0 0; }
.persona-photo.photo-1 { background-position: 50% 0; }
.persona-photo.photo-2 { background-position: 100% 0; }
.persona-photo.photo-3 { background-position: 0 100%; }
.persona-photo.photo-4 { background-position: 50% 100%; }
.persona-photo.photo-5 { background-position: 100% 100%; }
.persona-card-copy { min-width: 0; display: block; }
.persona-card-copy strong { display: block; font-size: 13px; line-height: 1.25; }
.persona-role { display: block; margin-top: 2px; color: #695380; font-size: 10px; font-weight: 700; }
.persona-reason { display: block; margin-top: 7px; color: #626a63; font-size: 10px; line-height: 1.35; }
.login-visual-copy { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(72%, 480px); transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.login-visual-copy img { width: min(100%, 350px); margin: 0 auto; filter: brightness(0) invert(1); }
.login-visual-copy p { max-width: 390px; margin: 18px auto 0; color: rgba(255,255,255,.8); font-size: 17px; }
.scene-hint { position: absolute; z-index: 2; left: 0; right: 0; bottom: 25px; margin: 0; color: rgba(255,255,255,.55); font-size: 12px; text-align: center; }
.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 48px clamp(30px, 6vw, 86px); }
.login-form-wrap { width: min(100%, 440px); }
.login-form-wrap h1 { margin: 0; color: var(--indigo); font-size: clamp(42px, 5vw, 62px); line-height: 1; letter-spacing: -.055em; }
.login-intro { margin: 18px 0 34px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.login-form { display: grid; gap: 20px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.label-row label { margin-bottom: 8px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--violet); font-size: 13px; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.login-submit, .google-button, .create-account-button { width: 100%; min-height: 52px; justify-content: center; }
.login-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--muted-2); font-size: 12px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.google-button { border: 1px solid var(--border-strong); background: white; }
.google-button:hover { background: #fafafa; }
.google-mark { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #4285f4; font-weight: 700; }
.signup-prompt { margin: 30px 0 10px; color: var(--muted); font-size: 13px; text-align: center; }
.prototype-note { margin: 22px 0 0; color: var(--muted-2); font-size: 11px; text-align: center; }
.login-mobile-logo { display: none; }

.asset-list { display: grid; gap: 10px; }
.asset-entry { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(260px, 1.28fr); gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-subtle); }
.asset-entry:not(.selected) { grid-template-columns: 1fr; padding: 0; border-color: transparent; background: transparent; }
.asset-entry .check-card { height: 100%; align-items: center; }
.asset-link-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.asset-link-field .input { min-height: 43px; background: white; }

.onboarding-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.onboarding-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 30px 24px 22px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.brand-logo { width: 174px; height: auto; }
.brand-logo.on-dark { filter: brightness(0) invert(1); }

.onboarding-progress-copy {
  margin: 40px 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.progress-track {
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: #eceee9;
  border-radius: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), #b06fd6 58%, var(--salmon));
  border-radius: inherit;
  transition: width 350ms ease;
}

.step-list { margin: 28px 0 20px; }
.step-group + .step-group { margin-top: 22px; }
.step-group-title {
  margin: 0 0 8px 10px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-link {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.step-link:hover:not(:disabled) { background: #f4f2fa; color: var(--ink); }
.step-link:disabled { cursor: default; opacity: .65; }
.step-link.active { background: rgba(217, 195, 254, .32); color: var(--indigo); font-weight: 600; }
.step-link.complete { color: var(--ink); }
.step-dot {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: white;
  font-size: 11px;
  line-height: 1;
}
.complete .step-dot { background: var(--indigo); border-color: var(--indigo); color: white; }
.active .step-dot { border-color: var(--violet); box-shadow: inset 0 0 0 5px white; background: var(--violet); }

.sidebar-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.sidebar-foot p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.onboarding-main {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 32px;
}

.demo-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-menu label { font-size: 13px; color: var(--muted); }
.demo-menu select {
  min-width: 160px;
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

.content-wrap {
  width: min(100%, 1060px);
  margin: auto;
  padding: 30px 44px 56px;
}
.content-wrap.narrow { width: min(100%, 840px); }
.content-wrap.wide { width: min(100%, 1220px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.brand-square {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--lavender), var(--salmon));
  box-shadow: 0 0 0 3px rgba(217, 195, 254, .18);
}

.page-heading { max-width: 760px; margin-bottom: 34px; }
.page-heading h1 {
  margin: 0;
  color: var(--indigo);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 650;
}
.page-heading p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.page-heading.compact { margin-bottom: 26px; }
.page-heading.compact h1 { font-size: clamp(28px, 3vw, 38px); }

.form-card, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.form-card { padding: 28px; }
.card { padding: 22px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.optional { color: var(--muted-2); font-weight: 400; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border var(--transition), box-shadow var(--transition);
}
.input, .select { min-height: 46px; padding: 10px 13px; }
.textarea { min-height: 108px; resize: vertical; padding: 12px 13px; line-height: 1.55; }
.input:hover, .textarea:hover, .select:hover { border-color: rgba(17, 22, 17, .28); }
.input:focus, .textarea:focus, .select:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(119, 88, 220, .12); }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.ai-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #615274;
  font-size: 12px;
}
.ai-note img { width: 14px; height: 14px; object-fit: contain; }

.financial-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.financial-heading { margin-bottom: 18px; }
.financial-heading h2 { margin: 0; color: var(--indigo); font-size: 20px; letter-spacing: -.02em; }
.financial-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.financial-periods { display: grid; gap: 16px; }
.financial-period {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}
.financial-period legend {
  padding: 0 8px;
  color: var(--indigo);
  font-size: 15px;
  font-weight: 650;
}
.financial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}
.actions-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border var(--transition), opacity var(--transition);
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button.primary { background: var(--ink); color: white; }
.button.primary:hover:not(:disabled) { background: var(--indigo-2); }
.button.secondary { background: white; border-color: var(--border-strong); }
.button.secondary:hover:not(:disabled) { border-color: rgba(17, 22, 17, .3); background: var(--surface-subtle); }
.button.ghost { background: transparent; color: var(--muted); }
.button.ghost:hover:not(:disabled) { background: rgba(17, 22, 17, .04); color: var(--ink); }
.button.accent { background: var(--lavender); color: var(--indigo); }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.button.icon { width: 40px; padding: 0; }

.url-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  background: var(--indigo);
  color: white;
  border-radius: var(--radius-lg);
}
.url-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: -245px;
  background: url("assets/brand-gradient.png") center / cover;
  opacity: .85;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.url-hero > * { position: relative; z-index: 1; }
.url-hero .input-row { display: flex; gap: 10px; margin-top: 22px; }
.url-hero .input { min-height: 50px; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.98); }
.url-hero .button { background: var(--lavender); color: var(--indigo); white-space: nowrap; }
.url-hero .skip-action { margin: 14px 0 0; background: transparent; border: 0; color: rgba(255,255,255,.72); font-size: 13px; text-decoration: underline; cursor: pointer; }

.detected-banner {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
  padding: 15px 17px;
  border: 1px solid rgba(85, 111, 99, .17);
  border-radius: 12px;
  background: rgba(220, 235, 230, .45);
  color: #31453d;
  font-size: 14px;
}
.detected-banner img { width: 22px; height: 22px; object-fit: contain; }
.detected-banner strong { display: block; margin-bottom: 2px; color: var(--ink); }

.item-list { display: grid; gap: 10px; }
.editable-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.editable-item .item-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(217, 195, 254, .3);
  color: var(--violet);
  font-weight: 700;
}
.editable-item .item-copy { flex: 1; min-width: 0; }
.editable-item .item-copy strong { display: block; font-size: 14px; }
.editable-item .item-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.remove-button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.remove-button:hover { background: #f3f4f0; color: var(--error); }

.selection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.choice-card {
  position: relative;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border var(--transition), transform var(--transition), background var(--transition);
}
.choice-card:hover { transform: translateY(-2px); border-color: rgba(119,88,220,.35); }
.choice-card.selected { border-color: var(--violet); background: rgba(217,195,254,.13); box-shadow: inset 0 0 0 1px var(--violet); }
.choice-card h3 { margin: 18px 0 6px; color: var(--indigo); font-size: 16px; }
.choice-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.choice-index { color: var(--violet); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.choice-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 11px;
}
.selected .choice-check { background: var(--violet); border-color: var(--violet); color: white; }

.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  cursor: pointer;
}
.check-card:hover { border-color: rgba(119,88,220,.28); }
.check-card input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet); }
.check-card span { font-size: 14px; line-height: 1.4; }

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(130px, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #eff1ed;
}
.segmented button {
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.segmented button.active { background: white; color: var(--ink); box-shadow: 0 1px 5px rgba(17,22,17,.07); }

.section-block + .section-block { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.section-title { margin: 0 0 16px; color: var(--indigo); font-size: 19px; letter-spacing: -.015em; }
.section-description { margin: -9px 0 18px; color: var(--muted); font-size: 14px; }
.input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 13px;
}
.chip button { border: 0; padding: 0; background: transparent; color: var(--muted); cursor: pointer; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #eff1ed;
  color: #536056;
  font-size: 12px;
  font-weight: 600;
}
.badge.lavender { background: rgba(217,195,254,.38); color: #564377; }
.badge.sage { background: rgba(220,235,230,.78); color: #3f6557; }
.badge.salmon { background: rgba(255,179,167,.34); color: #87463c; }
.badge.violet { background: rgba(119,88,220,.13); color: #5941a4; }
.badge.blue { background: rgba(200,217,242,.5); color: #46627e; }

.stakeholder-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stakeholder-column { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.55); }
.stakeholder-column h3 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 14px; font-size: 14px; }
.stakeholder-column h3 span { color: var(--muted); font-size: 12px; font-weight: 500; }
.stakeholder-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
}
.stakeholder-mini + .stakeholder-mini { margin-top: 8px; }
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
}
.avatar.sage { background: var(--sage); }
.avatar.salmon { background: var(--salmon); }
.avatar.violet { background: #ddd5f8; }
.avatar.blue { background: var(--blue); }
.avatar.large { width: 58px; height: 58px; font-size: 16px; }
.stakeholder-mini strong { display: block; font-size: 13px; }
.stakeholder-mini span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }

.generation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.generation-card {
  position: relative;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  transition: transform var(--transition), border var(--transition);
}
.generation-card:hover { transform: translateY(-2px); }
.generation-card.selected { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.generation-card .icon-box { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(217,195,254,.25); }
.generation-card .icon-box img { width: 27px; height: 27px; object-fit: contain; }
.generation-card h3 { margin: 26px 0 8px; color: var(--indigo); font-size: 21px; }
.generation-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.recommended { position: absolute; top: 20px; right: 20px; }

.studio-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 20px; align-items: start; }
.variant-list { display: grid; gap: 10px; }
.variant-card {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: white;
  text-align: left;
  cursor: pointer;
}
.variant-card:hover { border-color: rgba(119,88,220,.3); }
.variant-card.selected { border-color: var(--violet); background: rgba(217,195,254,.1); box-shadow: inset 0 0 0 1px var(--violet); }
.variant-letter { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #f0ecfa; color: var(--violet); font-weight: 700; }
.variant-card h3 { margin: 1px 0 5px; font-size: 15px; }
.variant-card p { margin: 0 0 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.variant-traits { display: flex; flex-wrap: wrap; gap: 5px; }
.variant-traits span { padding: 3px 6px; border-radius: 5px; background: #f1f2ef; color: var(--muted); font-size: 10px; font-weight: 600; }
.radio-mark { width: 20px; height: 20px; border: 1px solid var(--border-strong); border-radius: 50%; box-shadow: inset 0 0 0 5px white; background: white; }
.selected .radio-mark { background: var(--violet); border-color: var(--violet); }

.slider-panel { position: sticky; top: 20px; }
.slider-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.slider-head h2 { margin: 0; font-size: 16px; }
.slider-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.slider-row + .slider-row { margin-top: 17px; }
.slider-row label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 13px; font-weight: 600; }
.slider-row label span { color: var(--muted-2); font-size: 11px; font-weight: 500; }
.slider-row input[type="range"] { width: 100%; accent-color: var(--violet); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 10px; }

.workspace-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.workspace-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 18px 20px; background: var(--indigo); color: white; }
.workspace-sidebar .brand-logo { width: 178px; filter: brightness(0) invert(1); }
.context-switcher { margin-top: 32px; display: grid; gap: 8px; }
.context-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  background: rgba(255,255,255,.055);
  color: white;
  text-align: left;
  cursor: pointer;
}
.context-button span { display: block; }
.context-button .context-label { color: rgba(255,255,255,.52); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.context-button .context-value { margin-top: 2px; font-size: 12px; font-weight: 600; }
.workspace-nav { margin-top: 30px; display: grid; gap: 5px; }
.workspace-nav button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: rgba(255,255,255,.65); text-align: left; font-size: 13px; cursor: pointer; }
.workspace-nav button:hover { background: rgba(255,255,255,.06); color: white; }
.workspace-nav button.active { background: rgba(217,195,254,.13); color: white; }
.nav-icon { width: 18px; text-align: center; color: var(--lavender); }
.workspace-side-foot { margin-top: auto; }
.workspace-side-foot button { width: 100%; color: rgba(255,255,255,.68); }

.workspace-main { min-width: 0; }
.workspace-topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 28px; border-bottom: 1px solid var(--border); background: rgba(247,248,244,.9); backdrop-filter: blur(10px); }
.workspace-topbar h1 { margin: 0; color: var(--indigo); font-size: 20px; letter-spacing: -.02em; }
.workspace-topbar p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.workspace-topbar-actions { display: flex; align-items: center; gap: 9px; }

.chat-layout { height: calc(100vh - 72px); display: grid; grid-template-columns: 260px minmax(360px, 1fr) 300px; overflow: hidden; }
.persona-list-panel, .insights-panel { overflow-y: auto; background: var(--surface); }
.persona-list-panel { border-right: 1px solid var(--border); padding: 20px 14px; }
.insights-panel { border-left: 1px solid var(--border); padding: 22px 18px; }
.panel-kicker { margin: 0 7px 14px; color: var(--muted-2); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.persona-group + .persona-group { margin-top: 20px; }
.persona-group h3 { margin: 0 7px 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.persona-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.persona-row:hover { background: #f5f4f8; }
.persona-row.active { background: rgba(217,195,254,.24); }
.persona-row .avatar { width: 34px; height: 34px; font-size: 10px; }
.persona-row strong { display: block; font-size: 12px; }
.persona-row span { display: block; max-width: 145px; margin-top: 1px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.chat-panel { min-width: 0; display: flex; flex-direction: column; background: #fafbf8; }
.persona-banner { display: flex; align-items: center; gap: 13px; padding: 18px 24px; border-bottom: 1px solid var(--border); background: white; }
.persona-banner h2 { margin: 0; color: var(--indigo); font-size: 16px; }
.persona-banner p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.persona-banner .badge { margin-left: auto; }
.persona-mobile-select { display: none; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 24px; }
.chat-intro { max-width: 620px; margin: 0 auto 24px; text-align: center; }
.chat-intro img { width: 36px; height: 36px; margin: 0 auto 12px; object-fit: contain; }
.chat-intro h2 { margin: 0; color: var(--indigo); font-size: 21px; }
.chat-intro p { margin: 8px auto 0; max-width: 540px; color: var(--muted); font-size: 13px; }
.quick-questions { max-width: 680px; margin: 0 auto; display: grid; gap: 8px; }
.quick-question { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 12px 13px; border: 1px solid var(--border); border-radius: 11px; background: white; text-align: left; cursor: pointer; transition: border var(--transition), transform var(--transition); }
.quick-question:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(119,88,220,.35); }
.quick-question:disabled { opacity: .52; cursor: default; }
.quick-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #f0ecfa; color: var(--violet); font-size: 11px; font-weight: 700; }
.quick-question span:nth-child(2) { font-size: 13px; }
.quick-question .arrow { color: var(--muted-2); }
.message-list { max-width: 680px; margin: 0 auto; display: grid; gap: 15px; }
.message { max-width: 88%; padding: 13px 15px; border-radius: 14px; font-size: 14px; line-height: 1.58; }
.message.user { margin-left: auto; background: var(--indigo); color: white; border-bottom-right-radius: 4px; }
.message.persona { margin-right: auto; background: white; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.message-meta { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 600; }
.message.user .message-meta { color: rgba(255,255,255,.63); }
.thinking { display: inline-flex; gap: 4px; align-items: center; }
.thinking span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); animation: pulse 1s infinite; }
.thinking span:nth-child(2) { animation-delay: .14s; }
.thinking span:nth-child(3) { animation-delay: .28s; }
@keyframes pulse { 0%, 70%, 100% { opacity: .25; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-2px); } }
.chat-composer { padding: 14px 22px 18px; border-top: 1px solid var(--border); background: white; }
.composer-box { max-width: 700px; display: flex; gap: 9px; margin: 0 auto; padding: 7px; border: 1px solid var(--border-strong); border-radius: 13px; background: white; }
.composer-box input { min-width: 0; flex: 1; border: 0; padding: 5px 8px; outline: 0; font-size: 13px; }
.composer-hint { margin: 6px auto 0; max-width: 700px; color: var(--muted-2); font-size: 10px; text-align: center; }

.insights-panel h2 { margin: 0; color: var(--indigo); font-size: 16px; }
.insights-panel > p { margin: 6px 0 18px; color: var(--muted); font-size: 12px; }
.finding-card { padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-subtle); }
.finding-card + .finding-card { margin-top: 9px; }
.finding-card .finding-label { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: #695380; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.finding-card p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.5; }
.finding-empty { padding: 24px 14px; border: 1px dashed var(--border-strong); border-radius: 11px; color: var(--muted); font-size: 12px; text-align: center; }
.synthesis-cta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.synthesis-cta .button { width: 100%; }

.synthesis-page { padding: 34px clamp(22px, 4vw, 56px) 60px; }
.synthesis-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.synthesis-header .page-heading { margin: 0; }
.synthesis-header .page-heading h1 { font-size: clamp(30px, 4vw, 44px); }
.synthesis-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat-card { padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: white; }
.stat-card strong { display: block; color: var(--indigo); font-size: 25px; letter-spacing: -.03em; }
.stat-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.synthesis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.factor-card { min-height: 178px; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--border); border-radius: 14px; background: white; }
.factor-card h3 { margin: 19px 0 8px; color: var(--indigo); font-size: 16px; line-height: 1.35; }
.factor-card .factor-meta { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.opportunity-section { margin-top: 34px; padding-top: 32px; border-top: 1px solid var(--border); }
.opportunity-section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 17px; }
.opportunity-section h2 { margin: 0; color: var(--indigo); font-size: 24px; letter-spacing: -.025em; }
.opportunity-section-head p { max-width: 620px; margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.opportunity-list { display: grid; gap: 10px; }
.opportunity-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) 210px; gap: 18px; align-items: start; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: white; }
.priority-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--indigo); color: white; font-weight: 700; }
.opportunity-card h3 { margin: 0 0 6px; color: var(--indigo); font-size: 16px; }
.opportunity-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.opportunity-card .action-copy { margin-top: 9px; color: var(--ink); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.metric { padding: 8px; border-radius: 8px; background: #f4f5f2; text-align: center; }
.metric span { display: block; color: var(--muted-2); font-size: 9px; text-transform: uppercase; }
.metric strong { display: block; margin-top: 2px; font-size: 11px; }

.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(12,12,25,.58); backdrop-filter: blur(6px); }
.scan-modal { width: min(100%, 440px); padding: 38px; border-radius: 22px; background: white; text-align: center; box-shadow: 0 26px 80px rgba(10,10,30,.22); }
.scan-symbol { position: relative; width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 18px; background: rgba(217,195,254,.25); }
.scan-symbol img { width: 36px; height: 36px; object-fit: contain; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .7; } 50% { transform: scale(1.05); opacity: 1; } }
.scan-modal h2 { margin: 0; color: var(--indigo); font-size: 22px; }
.scan-modal p { margin: 9px 0 20px; color: var(--muted); font-size: 14px; }
.scan-steps { display: grid; gap: 8px; text-align: left; }
.scan-step { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.scan-step.done { color: var(--success); }
.scan-step span:first-child { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #eff1ed; font-size: 10px; }
.scan-step.done span:first-child { background: var(--sage); }

.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--indigo); color: white; box-shadow: var(--shadow); font-size: 13px; animation: toast-in 180ms ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.mobile-menu { display: none; }
.mobile-progress { display: none; }
.hidden { display: none !important; }

@media (max-width: 1100px) {
  :root { --sidebar: 230px; }
  .selection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stakeholder-groups { grid-template-columns: 1fr 1fr; }
  .chat-layout { grid-template-columns: 220px minmax(360px, 1fr); }
  .insights-panel { display: none; }
  .synthesis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 320px; }
  .floating-persona-card { width: 178px; min-height: 74px; grid-template-columns: 47px 1fr; padding: 8px; }
  .persona-photo { width: 47px; height: 56px; }
  .persona-reason { display: none; }
  .login-panel { min-height: auto; padding: 44px 24px 60px; }
  .onboarding-shell { display: block; }
  .onboarding-sidebar { display: none; }
  .mobile-progress { display: block; padding: 16px 20px 0; }
  .mobile-progress-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
  .topbar { height: 64px; justify-content: space-between; padding: 0 20px; }
  .topbar::before { content: ""; width: 128px; height: 34px; background: url("assets/logo-horizontal.png") left center / contain no-repeat; }
  .demo-menu label { display: none; }
  .demo-menu select { min-width: 125px; }
  .content-wrap, .content-wrap.narrow, .content-wrap.wide { width: 100%; padding: 22px 20px 44px; }
  .form-grid.three { grid-template-columns: 1fr 1fr; }
  .studio-layout { grid-template-columns: 1fr; }
  .slider-panel { position: static; }
  .workspace-shell { display: block; }
  .workspace-sidebar { display: none; }
  .mobile-menu { display: inline-flex; }
  .chat-layout { height: calc(100vh - 72px); grid-template-columns: 190px minmax(320px, 1fr); }
  .workspace-topbar { padding: 12px 18px; }
  .synthesis-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opportunity-card { grid-template-columns: 42px 1fr; }
  .opportunity-card .metrics { grid-column: 2; }
}

@media (max-width: 620px) {
  .login-visual { min-height: 260px; }
  .login-visual-copy { width: 80%; }
  .login-visual-copy img { width: 220px; }
  .login-visual-copy p { font-size: 14px; }
  .floating-persona-card { width: 148px; grid-template-columns: 40px 1fr; border-radius: 11px; }
  .persona-photo { width: 40px; height: 48px; border-radius: 8px; }
  .persona-card-copy strong { font-size: 11px; }
  .persona-role { font-size: 9px; }
  .scene-hint { display: none; }
  .login-form-wrap h1 { font-size: 42px; }
  .asset-entry, .asset-entry.selected { grid-template-columns: 1fr; gap: 8px; }
  .page-heading h1 { font-size: 32px; }
  .page-heading p { font-size: 15px; }
  .topbar::before { width: 112px; }
  .demo-menu select { width: 118px; min-width: 0; padding-left: 8px; font-size: 11px; }
  .form-card { padding: 19px; }
  .form-grid, .form-grid.three, .input-pair, .generation-grid, .financial-grid { grid-template-columns: 1fr; }
  .selection-grid, .stakeholder-groups { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .url-hero { padding: 24px 20px; }
  .url-hero .input-row { display: grid; }
  .actions { align-items: stretch; flex-direction: column-reverse; }
  .actions-right { width: 100%; margin: 0; }
  .actions-right .button { flex: 1; }
  .actions > .button { width: 100%; }
  .segmented { width: 100%; grid-auto-columns: 1fr; }
  .segmented button { padding: 9px 8px; font-size: 12px; }
  .workspace-topbar-actions .button.secondary { display: none; }
  .chat-layout { display: block; height: auto; min-height: calc(100vh - 72px); }
  .persona-list-panel { display: none; }
  .chat-panel { min-height: calc(100vh - 72px); }
  .chat-scroll { padding: 18px 14px; }
  .persona-banner { padding: 14px 16px; }
  .persona-banner .badge { display: none; }
  .persona-mobile-select { display: block; width: 112px; min-height: 38px; margin-left: auto; padding: 7px 28px 7px 9px; font-size: 12px; }
  .quick-question { grid-template-columns: 24px 1fr; }
  .quick-question .arrow { display: none; }
  .chat-composer { padding: 12px; }
  .synthesis-page { padding: 24px 16px 44px; }
  .synthesis-header { display: block; }
  .synthesis-header .actions-right { margin-top: 18px; }
  .synthesis-summary, .synthesis-grid { grid-template-columns: 1fr; }
  .opportunity-section-head { display: block; }
  .opportunity-card { grid-template-columns: 1fr; }
  .opportunity-card .metrics { grid-column: 1; }
}

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