:root {
  --ink: #102725;
  --ink-soft: #3b514e;
  --pine: #123f3a;
  --pine-2: #1a5b52;
  --mint: #b9ddce;
  --mint-pale: #e8f1ec;
  --paper: #f5f1e8;
  --paper-2: #ece6da;
  --white: #fffdf8;
  --coral: #d95f46;
  --amber: #d9a441;
  --blue: #466d85;
  --line: rgba(16, 39, 37, 0.16);
  --shadow: 0 24px 80px rgba(18, 63, 58, 0.12);
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(16,39,37,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,39,37,.025) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(217, 164, 65, .65);
  outline-offset: 3px;
}
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; background: var(--ink); color: white; padding: 12px 18px; }
.skip-link:focus { top: 20px; }

.prototype-ribbon {
  height: 28px;
  padding: 0 3vw;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #dcebe5;
  background: var(--ink);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
}
.prototype-ribbon span:first-child { color: var(--amber); font-weight: 700; }
.prototype-ribbon .text-button { margin-left: auto; color: #dcebe5; }

.site-header {
  height: 84px;
  padding: 0 3vw;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 232, .9);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; width: fit-content; }
.brand-mark { width: 38px; height: 38px; fill: none; stroke: var(--pine); stroke-width: 1.6; }
.brand-mark path { stroke-width: 2; }
.brand strong { display: block; font-family: var(--display); font-size: 19px; letter-spacing: .01em; }
.brand small { display: block; color: var(--ink-soft); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }
.primary-nav { display: flex; align-items: center; gap: 3px; padding: 4px; background: rgba(16,39,37,.055); border-radius: 99px; }
.primary-nav button { border: 0; background: transparent; padding: 9px 15px; border-radius: 99px; cursor: pointer; font-size: 12px; font-weight: 600; }
.primary-nav button.active { color: var(--white); background: var(--pine); box-shadow: 0 5px 16px rgba(18,63,58,.18); }
.primary-nav .nav-link { padding: 9px 15px; border-radius: 99px; font-size: 12px; font-weight: 600; color: inherit; text-decoration: none; }
.primary-nav .nav-link:hover { background: rgba(16,39,37,.06); }
.primary-nav .nav-admin { position: relative; margin-left: 13px; color: rgba(16,39,37,.4); font-weight: 500; }
.primary-nav .nav-admin::before { content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 1px; background: rgba(16,39,37,.18); }
.primary-nav .nav-admin.active { color: var(--white); background: rgba(16,39,37,.45); box-shadow: none; }
.engagement-chip { justify-self: end; display: flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ebc83; box-shadow: 0 0 0 5px rgba(78,188,131,.12); }

.app-view { display: none; min-height: calc(100vh - 112px); }
.app-view.active { display: block; animation: rise .48s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { color: var(--coral); text-transform: uppercase; font-size: 10px; letter-spacing: .19em; font-weight: 700; }

.access-view.active { display: grid; grid-template-columns: 1.25fr .75fr; }
.access-hero { min-height: calc(100vh - 112px); padding: clamp(56px,8vw,120px) 7vw 70px; display: flex; flex-direction: column; justify-content: center; }
.access-hero h1 { margin: 18px 0 28px; font-family: var(--display); font-weight: 400; font-size: clamp(52px,6.6vw,96px); line-height: .95; letter-spacing: -.03em; max-width: 850px; }
.access-hero h1 em { color: var(--pine-2); font-weight: 400; }
.hero-copy { max-width: 640px; margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.65; }
.token-form { margin-top: 46px; max-width: 650px; }
.token-form label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 10px; }
.token-entry { display: grid; grid-template-columns: 1fr auto; border-bottom: 2px solid var(--ink); }
.token-entry input { min-width: 0; padding: 15px 0; border: 0; background: transparent; color: var(--ink); font-family: var(--display); font-size: 25px; letter-spacing: .08em; text-transform: uppercase; }
.token-entry input::placeholder { color: rgba(16,39,37,.32); }
.token-entry input:focus { outline: 0; }
.field-help, .field-error { min-height: 18px; margin: 9px 0 0; color: var(--ink-soft); font-size: 11px; }
.field-error { color: var(--coral); font-weight: 600; }
.demo-invitations { margin-top: 36px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--ink-soft); font-size: 11px; }
.demo-invitations span { margin-right: 6px; text-transform: uppercase; letter-spacing: .1em; }
.demo-invitations button { border: 1px solid var(--line); background: rgba(255,253,248,.55); border-radius: 99px; padding: 8px 13px; cursor: pointer; }
.demo-invitations button:hover { border-color: var(--pine); background: var(--white); }

.button { border: 0; padding: 12px 20px; min-height: 44px; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .025em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--pine); box-shadow: 0 8px 18px rgba(18,63,58,.14); }
.button-primary:hover { background: #0d332f; box-shadow: 0 12px 26px rgba(18,63,58,.2); }
.button-secondary { background: transparent; border: 1px solid var(--line); }
.button-secondary:hover { background: rgba(255,255,255,.52); border-color: var(--pine); }
.button-full { width: 100%; }
.text-button { padding: 0; border: 0; background: transparent; text-decoration: underline; text-decoration-color: rgba(16,39,37,.3); text-underline-offset: 4px; cursor: pointer; font-size: 11px; }

.access-aside { position: relative; overflow: hidden; padding: 40px clamp(30px,4vw,72px) 50px; color: var(--white); background: var(--pine); display: flex; flex-direction: column; }
.access-aside::before { content: ""; position: absolute; inset: 0; opacity: .3; background: radial-gradient(circle at 70% 20%, rgba(185,221,206,.35), transparent 35%), linear-gradient(135deg, transparent 0 49.5%, rgba(255,255,255,.06) 50% 50.3%, transparent 50.5%); }
.aside-topline { position: relative; display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.18); text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.signal-orbit { position: relative; flex: 1; min-height: 410px; }
.orbit { position: absolute; border: 1px solid rgba(185,221,206,.4); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 300px; height: 300px; animation: pulse 5s ease-in-out infinite; }
.orbit-two { width: 200px; height: 200px; animation: pulse 5s 1.3s ease-in-out infinite; }
.orbit-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--mint); font-family: var(--display); font-size: 34px; box-shadow: 0 0 55px rgba(185,221,206,.25); }
@keyframes pulse { 0%,100% { opacity: .52; transform: translate(-50%,-50%) scale(.98); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.04); } }
.orbit-label { position: absolute; padding-left: 14px; font-size: 10px; letter-spacing: .05em; color: #c9ddd6; }
.orbit-label::before { content: ""; position: absolute; left: 0; top: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.orbit-label-a { top: 28%; left: 5%; }
.orbit-label-b { top: 42%; right: -2%; }
.orbit-label-c { bottom: 22%; left: 12%; }
.access-facts { position: relative; margin: auto 0 0; }
.access-facts div { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.15); }
.access-facts dt { color: #b8cdc5; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.access-facts dd { margin: 0; font-family: var(--display); font-size: 15px; }

.survey-view { padding: 34px 4vw 60px; }
.survey-shell { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 285px minmax(0,1fr); background: var(--white); box-shadow: var(--shadow); min-height: 720px; }
.survey-rail { padding: 42px 28px 30px; color: var(--white); background: var(--pine); display: flex; flex-direction: column; }
.survey-rail .eyebrow { color: var(--mint); }
.survey-rail h2 { margin: 10px 0 36px; font-family: var(--display); font-size: 28px; font-weight: 400; }
.section-nav { padding: 0; margin: 0; list-style: none; counter-reset: section; }
.section-nav li { counter-increment: section; position: relative; padding: 12px 10px 12px 43px; color: rgba(255,255,255,.55); border-left: 1px solid rgba(255,255,255,.15); font-size: 11px; line-height: 1.25; transition: color .2s, background .2s; }
.section-nav li::before { content: counter(section, decimal-leading-zero); position: absolute; left: 12px; color: inherit; font-family: var(--display); font-size: 12px; }
.section-nav li.active { color: white; background: rgba(255,255,255,.08); border-left-color: var(--amber); }
.section-nav li.complete { color: var(--mint); }
.confidentiality-note { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); display: flex; gap: 12px; }
.confidentiality-note svg { flex: 0 0 24px; width: 24px; fill: none; stroke: var(--mint); stroke-width: 1.5; }
.confidentiality-note p { margin: 0; color: rgba(255,255,255,.64); font-size: 10px; line-height: 1.45; }
.confidentiality-note strong { display: block; margin-bottom: 3px; color: white; text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
.survey-main { min-width: 0; padding: 34px clamp(28px,5vw,76px) 30px; }
.survey-progress-header { margin-bottom: 48px; }
.survey-progress-header > div:first-child { display: flex; justify-content: space-between; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
.progress-track { height: 3px; margin-top: 13px; background: var(--paper-2); overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 16.67%; background: var(--coral); transition: width .4s ease; }
.section-kicker { color: var(--coral); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }
.section-title { margin: 8px 0 10px; font-family: var(--display); font-size: clamp(34px,4vw,56px); line-height: 1.02; font-weight: 400; letter-spacing: -.02em; }
.section-intro { margin: 0 0 38px; max-width: 720px; color: var(--ink-soft); line-height: 1.6; font-size: 13px; }
.likert-list { border-top: 1px solid var(--line); }
.likert-question { padding: 24px 0; border-bottom: 1px solid var(--line); }
.likert-question legend { width: 100%; padding: 0 0 18px; font-family: var(--display); font-size: 18px; line-height: 1.35; }
.question-number { display: inline-block; min-width: 29px; color: var(--coral); font-family: var(--body); font-size: 10px; letter-spacing: .08em; vertical-align: 2px; }
.likert-options { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.likert-options label { position: relative; min-height: 58px; display: grid; place-items: center; text-align: center; padding: 9px 5px; border: 1px solid var(--line); cursor: pointer; color: var(--ink-soft); font-size: 9px; line-height: 1.2; transition: background .16s, border .16s, color .16s; }
.likert-options input { position: absolute; opacity: 0; pointer-events: none; }
.likert-options label:hover { border-color: var(--pine-2); background: var(--mint-pale); }
.likert-options label:has(input:checked) { color: var(--white); background: var(--pine); border-color: var(--pine); }
.comment-field { margin-top: 34px; }
.comment-field label, .qualitative-question label { display: block; margin-bottom: 9px; font-size: 11px; font-weight: 700; line-height: 1.45; }
.comment-field label span, .qualitative-question label span { color: var(--ink-soft); font-weight: 400; }
.comment-field textarea, .qualitative-question textarea { width: 100%; min-height: 112px; resize: vertical; padding: 15px; border: 1px solid var(--line); background: #fbf9f3; color: var(--ink); line-height: 1.5; }
.comment-field textarea:focus, .qualitative-question textarea:focus { border-color: var(--pine); outline: 2px solid rgba(18,63,58,.1); }
.qualitative-list { display: grid; gap: 28px; }
.qualitative-question textarea { min-height: 130px; }
.survey-actions { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.survey-action-right { display: flex; align-items: center; gap: 20px; }
.validation-message { margin: 20px 0 0; color: var(--coral); font-size: 12px; font-weight: 700; }
.review-list { margin-top: 30px; border-top: 1px solid var(--line); }
.review-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-row span { color: var(--ink-soft); font-size: 12px; }
.review-row strong { font-family: var(--display); font-size: 16px; font-weight: 400; }
.consent-box { margin-top: 26px; padding: 18px; display: flex; gap: 12px; background: var(--mint-pale); font-size: 11px; line-height: 1.5; }
.consent-box input { margin-top: 2px; }

.complete-view.active { display: grid; grid-template-columns: 1fr .48fr; }
.completion-card { padding: clamp(70px,10vw,150px) 10vw; background: var(--white); }
.completion-mark { width: 76px; margin-bottom: 30px; }
.completion-mark svg { fill: none; stroke: var(--pine); stroke-width: 2; }
.completion-mark path { stroke-width: 3; }
.completion-card h1 { max-width: 650px; margin: 14px 0 24px; font-family: var(--display); font-weight: 400; font-size: clamp(46px,6vw,84px); line-height: .95; }
.completion-card > p { max-width: 560px; color: var(--ink-soft); line-height: 1.65; }
.completion-card dl { max-width: 560px; margin: 36px 0; border-top: 1px solid var(--line); }
.completion-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.completion-card dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.completion-card dd { margin: 0; font-family: var(--display); }
.completion-aside { padding: 70px 5vw; color: var(--white); background: var(--pine); display: flex; flex-direction: column; justify-content: flex-end; }
.completion-aside blockquote { margin: 0 0 25px; font-family: var(--display); font-size: clamp(28px,3vw,48px); line-height: 1.1; }
.completion-aside span { color: var(--mint); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }

.workspace-view { padding: 50px 4vw 80px; }
.workspace-header { max-width: 1440px; margin: 0 auto 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.workspace-header h1 { margin: 9px 0 0; font-family: var(--display); font-size: clamp(40px,5vw,70px); line-height: .94; font-weight: 400; letter-spacing: -.025em; }
.workspace-header h1 span { color: var(--pine-2); }
.workspace-actions { display: flex; gap: 9px; align-items: end; }
.metric-grid { max-width: 1440px; margin: 0 auto 18px; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 12px; }
.metric-card { min-height: 152px; padding: 22px; background: rgba(255,253,248,.75); border: 1px solid var(--line); display: flex; flex-direction: column; }
.metric-card > span { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .13em; font-size: 9px; }
.metric-card strong { margin-top: auto; font-family: var(--display); font-weight: 400; font-size: 36px; }
.metric-card small { color: var(--ink-soft); font-size: 10px; }
.metric-primary { color: var(--white); background: var(--pine); border-color: var(--pine); }
.metric-primary > span, .metric-primary small { color: rgba(255,255,255,.66); }
.metric-bar { height: 3px; background: rgba(255,255,255,.16); margin: 4px 0 8px; }
.metric-bar i { display: block; height: 100%; width: 69%; background: var(--mint); }
.metric-signal { background: var(--mint-pale); }
.workspace-grid { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.7fr) minmax(300px,.6fr); gap: 12px; align-items: start; }
.panel { background: rgba(255,253,248,.88); border: 1px solid var(--line); }
.panel-header { min-height: 67px; padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-header > div:first-child { display: flex; align-items: center; gap: 12px; }
.panel-header h2 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 400; }
.panel-index { color: var(--coral); font-size: 9px; letter-spacing: .1em; }
.segmented-control { display: flex; gap: 2px; padding: 3px; background: var(--paper-2); }
.segmented-control button { padding: 6px 10px; border: 0; background: transparent; cursor: pointer; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.segmented-control button.active { color: var(--white); background: var(--pine); }
.participant-table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 18px; color: var(--ink-soft); text-align: left; text-transform: uppercase; letter-spacing: .1em; font-size: 8px; }
td { padding: 15px 18px; border-top: 1px solid var(--line); font-size: 11px; }
td strong { display: block; font-size: 12px; }
td small { color: var(--ink-soft); }
.group-tag, .status-tag { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 99px; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.group-tag { border: 1px solid var(--line); }
.status-tag::before { content: ""; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.status-complete { color: #257458; background: #e0f0e9; }
.status-opened { color: #8b651d; background: #f5ead3; }
.status-pending { color: #66716f; background: #ecece7; }
.row-action { border: 0; background: transparent; color: var(--pine-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 9px; }
.schedule-panel form { padding: 20px; }
.schedule-panel form > label:not(.switch-row) { display: block; margin-bottom: 16px; color: var(--ink-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.schedule-panel input[type="datetime-local"] { width: 100%; margin-top: 7px; padding: 11px; border: 1px solid var(--line); background: #fbf9f3; color: var(--ink); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0; cursor: pointer; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: 11px; }
.switch-row small { margin-top: 3px; color: var(--ink-soft); font-size: 9px; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row i { position: relative; width: 38px; height: 21px; border-radius: 99px; background: #b9bfbc; transition: background .2s; }
.switch-row i::after { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: transform .2s; }
.switch-row input:checked + i { background: var(--pine-2); }
.switch-row input:checked + i::after { transform: translateX(17px); }
.schedule-note { margin: 0 20px 20px; padding: 16px; border-left: 3px solid var(--amber); background: #f7edd7; }
.schedule-note strong { font-family: var(--display); font-size: 15px; }
.schedule-note p { margin: 5px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }

.benchmark-select { display: grid; gap: 5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; font-size: 8px; }
.benchmark-select select { min-width: 220px; padding: 10px 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.results-layout { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1.25fr .75fr; gap: 12px; }
.score-panel { grid-row: span 1; }
.score-content { padding: 22px; display: grid; grid-template-columns: 180px 1fr; gap: 35px; }
.overall-score { min-height: 240px; padding: 20px; color: white; background: var(--pine); display: flex; flex-direction: column; }
.overall-score span { color: var(--mint); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.overall-score strong { margin-top: auto; font-family: var(--display); font-weight: 400; font-size: 86px; line-height: .8; }
.overall-score small { margin: 5px 0 15px; color: rgba(255,255,255,.55); }
.overall-score i { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); color: #a8dbbc; font-style: normal; font-size: 10px; }
.score-legend { display: flex; gap: 15px; color: var(--ink-soft); font-size: 9px; }
.score-legend span::before { content: ""; display: inline-block; width: 16px; height: 3px; margin-right: 5px; vertical-align: 2px; background: var(--pine); }
.score-legend .legend-elt::before { background: var(--coral); }
.dimension-bars { display: flex; flex-direction: column; justify-content: space-between; }
.dimension-row { display: grid; grid-template-columns: 145px 1fr 38px; gap: 13px; align-items: center; }
.dimension-row > span { font-size: 10px; line-height: 1.2; }
.dual-bar { display: grid; gap: 5px; }
.dual-bar i { display: block; height: 5px; background: var(--paper-2); }
.dual-bar i b { display: block; height: 100%; background: var(--pine); }
.dual-bar i:last-child b { background: var(--coral); }
.dimension-row strong { font-family: var(--display); font-size: 17px; font-weight: 400; }
.radar-panel { position: relative; }
.radar-chart { min-height: 305px; display: grid; place-items: center; padding: 20px; }
.radar-chart svg { max-width: 320px; width: 100%; overflow: visible; }
.radar-grid { fill: none; stroke: rgba(16,39,37,.13); stroke-width: 1; }
.radar-axis { stroke: rgba(16,39,37,.1); stroke-width: 1; }
.radar-board { fill: rgba(18,63,58,.18); stroke: var(--pine); stroke-width: 2; }
.radar-elt { fill: rgba(217,95,70,.12); stroke: var(--coral); stroke-width: 2; }
.radar-label { fill: var(--ink-soft); font-family: var(--body); font-size: 8px; text-anchor: middle; }
.gap-callout { position: absolute; right: 18px; bottom: 17px; padding: 10px 12px; background: #f5dfd8; display: flex; align-items: center; gap: 9px; }
.gap-callout strong { color: var(--coral); font-family: var(--display); font-size: 24px; }
.gap-callout span { font-size: 8px; text-transform: uppercase; line-height: 1.3; letter-spacing: .06em; }
.signals-panel { grid-column: 1 / -1; }
.live-chip { color: var(--ink-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.live-chip i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(217,95,70,.12); }
.signal-list { display: grid; grid-template-columns: repeat(3,1fr); }
.signal-card { min-height: 205px; padding: 23px; border-right: 1px solid var(--line); }
.signal-card:last-child { border-right: 0; }
.signal-card header { display: flex; justify-content: space-between; align-items: center; }
.signal-severity { text-transform: uppercase; letter-spacing: .12em; font-size: 8px; font-weight: 700; }
.severity-attention { color: var(--coral); }
.severity-watch { color: #9a711f; }
.severity-strength { color: #26735a; }
.signal-card header span:last-child { color: var(--ink-soft); font-family: var(--display); font-size: 15px; }
.signal-card h3 { margin: 32px 0 10px; font-family: var(--display); font-size: 25px; font-weight: 400; }
.signal-card p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.signal-card footer { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; font-size: 8px; }
.benchmark-panel { grid-column: 1 / -1; }
.sample-label { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; font-size: 8px; }
.benchmark-plot { padding: 32px 7vw 14px; }
.benchmark-scale, .benchmark-labels { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 8px; }
.benchmark-track { position: relative; height: 23px; margin: 9px 0 12px; display: flex; background: var(--paper-2); }
.quartile { height: 100%; }
.q1 { width: 28%; background: #eadfd3; }
.q2 { width: 42%; background: #d4e4da; }
.q3 { width: 30%; background: #bad7c8; }
.company-marker { position: absolute; left: 65%; top: -18px; width: 2px; height: 58px; background: var(--coral); }
.company-marker i { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 3px 6px; color: white; background: var(--coral); font-style: normal; font-size: 9px; }
.company-marker b { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 9px; }
.benchmark-panel > p { margin: 8px 7vw 28px; color: var(--ink-soft); font-size: 11px; }

.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: 340px; padding: 14px 18px; color: var(--white); background: var(--ink); box-shadow: 0 12px 34px rgba(16,39,37,.25); font-size: 11px; transform: translateY(130%); opacity: 0; transition: .3s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .primary-nav { order: 3; grid-column: 1 / -1; justify-self: center; margin-bottom: -34px; z-index: 2; }
  .engagement-chip { display: none; }
  .access-view.active { grid-template-columns: 1fr; }
  .access-aside { min-height: 620px; }
  .survey-shell { grid-template-columns: 220px minmax(0,1fr); }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .workspace-grid, .results-layout { grid-template-columns: 1fr; }
  .signals-panel, .benchmark-panel { grid-column: auto; }
  .signal-list { grid-template-columns: 1fr; }
  .signal-card { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 740px) {
  .prototype-ribbon span:nth-child(2), .prototype-ribbon .text-button { display: none; }
  .site-header { height: 72px; padding: 0 18px; }
  .brand small { display: none; }
  .primary-nav { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; grid-column: auto; margin: 0; justify-content: stretch; box-shadow: 0 8px 30px rgba(16,39,37,.2); }
  .primary-nav button { flex: 1; padding: 11px 6px; font-size: 9px; }
  .access-hero { padding: 70px 24px 80px; }
  .access-hero h1 { font-size: 58px; }
  .hero-copy { font-size: 15px; }
  .token-entry { grid-template-columns: 1fr; border-bottom: 0; gap: 10px; }
  .token-entry input { border-bottom: 2px solid var(--ink); }
  .access-aside { padding: 32px 24px 85px; }
  .survey-view { padding: 18px 0 90px; }
  .survey-shell { display: block; }
  .survey-rail { padding: 24px; }
  .section-nav, .confidentiality-note { display: none; }
  .survey-rail h2 { margin-bottom: 0; }
  .survey-main { padding: 28px 20px; }
  .likert-options { grid-template-columns: repeat(2, 1fr); }
  .likert-options label { min-height: 46px; }
  .survey-actions { align-items: flex-end; }
  .survey-action-right { flex-direction: column-reverse; align-items: flex-end; gap: 12px; }
  .complete-view.active { grid-template-columns: 1fr; }
  .completion-card { padding: 70px 24px 90px; }
  .completion-aside { min-height: 420px; padding: 50px 24px 90px; }
  .workspace-view { padding: 44px 14px 100px; }
  .workspace-header { align-items: flex-start; flex-direction: column; }
  .workspace-actions { width: 100%; flex-wrap: wrap; }
  .workspace-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 130px; padding: 16px; }
  .metric-card strong { font-size: 29px; }
  .metric-primary { grid-column: 1 / -1; }
  .participant-panel .panel-header { align-items: flex-start; flex-direction: column; }
  .score-content { grid-template-columns: 1fr; }
  .overall-score { min-height: 210px; }
  .dimension-row { grid-template-columns: 105px 1fr 32px; }
  .signal-list { grid-template-columns: 1fr; }
  .benchmark-select { width: 100%; }
  .benchmark-select select { min-width: 0; width: 100%; }
}

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

/* ---------- Executive Signal Engine ---------- */
.engine-mode-note { max-width: 860px; margin: -18px 0 26px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }

.engine-pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin: 0 0 30px; padding: 0; list-style: none; counter-reset: stage; }
.engine-pipeline li { position: relative; padding: 16px 18px 14px; background: rgba(255,253,248,.88); border: 1px solid var(--line); counter-increment: stage; }
.engine-pipeline li::before { content: "0" counter(stage); display: block; margin-bottom: 10px; color: var(--ink-soft); font-size: 9px; letter-spacing: .1em; }
.engine-pipeline li strong { display: block; font-family: var(--display); font-size: 27px; font-weight: 400; }
.engine-pipeline li span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }

.engine-layout { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; }
.rules-panel { position: sticky; top: 20px; }
.rules-list { margin: 0; padding: 6px 0; list-style: none; }
.rules-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 20px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--ink-soft); }
.rules-list li:last-child { border-bottom: 0; }
.rules-list strong { min-width: 26px; text-align: center; padding: 3px 0; font-size: 11px; background: var(--paper-2); color: var(--ink-soft); }
.rules-list strong.rule-hit { background: var(--pine); color: var(--white); }
.rules-panel .schedule-note { margin: 0 20px 20px; }

.engine-signals-header { border: 1px solid var(--line); background: rgba(255,253,248,.88); margin-bottom: 2px; }
.engine-card { display: grid; grid-template-columns: 1fr 280px; gap: 0; margin-bottom: 2px; background: rgba(255,253,248,.88); border: 1px solid var(--line); }
.engine-card.is-approved { border-left: 3px solid #26735a; }
.engine-card.is-rejected { opacity: .55; border-left: 3px solid var(--line); }
.engine-card-main { padding: 22px 24px 24px; }
.engine-card-main header { display: flex; align-items: baseline; gap: 14px; }
.engine-card-ref { color: var(--ink-soft); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.engine-card-headline { margin-left: auto; font-family: var(--display); font-size: 16px; color: var(--ink-soft); }
.engine-card-main h3 { margin: 14px 0 8px; font-family: var(--display); font-size: 24px; font-weight: 400; }
.engine-interpretation { margin: 0 0 16px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.draft-label { display: block; margin-bottom: 6px; color: var(--ink-soft); opacity: .75; font-size: 8.5px; text-transform: uppercase; letter-spacing: .09em; }
.engine-block { margin-top: 14px; padding: 13px 16px; background: var(--mint-pale); }
.engine-block h4 { margin: 0 0 6px; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; color: var(--pine-2); }
.engine-block p { margin: 0; font-size: 12px; line-height: 1.55; }
.engine-block ul { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.6; }

.engine-card-evidence { padding: 22px 20px; border-left: 1px solid var(--line); background: rgba(236,230,218,.35); }
.engine-card-evidence h4 { margin: 0 0 10px; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); }
.engine-card-evidence ul { margin: 0 0 14px; padding: 0; list-style: none; }
.engine-card-evidence ul li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.engine-card-evidence ul li span { display: block; color: var(--ink-soft); margin-bottom: 2px; }
.engine-card-evidence ul li strong { font-size: 11.5px; }
.theme-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.theme-chip { padding: 4px 9px; background: var(--paper-2); font-size: 9.5px; color: var(--ink-soft); }
.confidence-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 10px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .07em; }
.confidence-row strong { font-size: 12px; color: var(--ink); }

.review-controls input { width: 100%; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line); background: var(--white); font-family: var(--body); font-size: 11px; }
.review-buttons { display: flex; gap: 8px; }
.review-buttons .button { flex: 1; padding: 10px 8px; min-height: 38px; font-size: 10.5px; }
.review-decision { padding: 12px 14px; background: var(--white); border: 1px solid var(--line); font-size: 11px; }
.review-decision.decision-approved strong { color: #26735a; }
.review-decision.decision-rejected strong { color: var(--coral); }
.review-decision p { margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; }
.review-decision .text-button { margin-top: 8px; }

.engine-exhaust-note { margin: 16px 2px 0; color: var(--ink-soft); font-size: 10.5px; font-style: italic; }
.signals-panel-meta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 1080px) {
  .engine-pipeline { grid-template-columns: repeat(2, 1fr); }
  .engine-layout { grid-template-columns: 1fr; }
  .rules-panel { position: static; }
  .engine-card { grid-template-columns: 1fr; }
  .engine-card-evidence { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- ESE live-session demo ---------- */
.demo-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.transcript-panel { position: sticky; top: 20px; }
.demo-transcript { height: 560px; overflow-y: auto; padding: 18px 20px; scroll-behavior: smooth; }
.transcript-empty { color: var(--ink-soft); font-size: 11.5px; line-height: 1.6; }
.transcript-line { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--line); animation: lineIn .35s ease; }
.transcript-line:last-child { border-bottom: 0; }
.transcript-line p { margin: 0; font-size: 12.5px; line-height: 1.55; }
.transcript-speaker { font-size: 8.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); }
.transcript-line.is-chair .transcript-speaker { color: var(--pine-2); font-weight: 700; }
@keyframes lineIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.phase-chip { padding: 5px 11px; background: var(--paper-2); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }

.demo-right { display: grid; gap: 18px; }
.baseline-body { padding: 16px 20px 18px; }
.baseline-body dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 12px; }
.baseline-body dt { font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.baseline-body dd { margin: 2px 0 0; font-size: 12px; font-weight: 600; }
.baseline-body > p { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-soft); }

.tier-badge { padding: 4px 9px; font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; }
.tier-a { background: rgba(100,116,139,.12); color: #475569; }
.tier-b { background: rgba(180,83,9,.1); color: #92400e; }
.tier-c { background: rgba(6,95,70,.1); color: #065f46; }

.live-signals { padding: 14px 16px; display: grid; gap: 12px; max-height: 480px; overflow-y: auto; }
.live-signal-card { position: relative; padding: 14px 16px 14px 18px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--sig, var(--pine)); animation: lineIn .4s ease; }
.live-signal-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sig-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sig, var(--ink)); }
.live-signal-card h3 { margin: 8px 0 6px; font-family: var(--display); font-size: 17px; font-weight: 400; }
.live-signal-card p { margin: 0 0 8px; font-size: 11px; line-height: 1.55; color: var(--ink-soft); }
.live-signal-card blockquote { margin: 0 0 8px; padding: 7px 11px; background: var(--paper-2); font-size: 10.5px; font-style: italic; color: var(--ink-soft); }
.sig-suggestion { padding: 9px 12px; background: var(--mint-pale); font-size: 11px; line-height: 1.5; }
.sig-suggestion span { display: block; margin-bottom: 3px; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; color: var(--pine-2); }
.sig-feedback { display: flex; gap: 14px; margin-top: 9px; }
.feedback-stamp { font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.live-signal-card.is-confirmed { border-left-color: #26735a; }
.live-signal-card.is-rejected { opacity: .55; }

.live-actions { padding: 8px 16px 14px; }
.live-action-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); animation: lineIn .4s ease; }
.live-action-row:last-child { border-bottom: 0; }
.live-action-row strong { display: block; font-size: 12px; }
.live-action-row small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 10px; font-style: italic; }
.action-meta { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--ink-soft); white-space: nowrap; }

@media (max-width: 1080px) {
  .demo-layout { grid-template-columns: 1fr; }
  .transcript-panel { position: static; }
  .demo-transcript { height: 320px; }
}
