@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap");

:root {
  --ink: #04183f;
  --ink-soft: #172b57;
  --paper: #f8f8f4;
  --paper-deep: #eaf0ff;
  --line: rgba(6, 68, 216, 0.16);
  --muted: #68748a;
  --lime: #ffe000;
  --orange: #0c58ff;
  --blue: #83a7ff;
  --pink: #ffd9e8;
  --accent: var(--lime);
  --display: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --body: "Manrope", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  font-family: var(--body);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; min-width: 320px; min-height: 100vh; background-color: var(--paper); background-image: linear-gradient(rgba(6,68,216,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(6,68,216,.035) 1px,transparent 1px); background-size: 32px 32px; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.ambient { position: fixed; z-index: -1; width: 52vw; height: 52px; border-radius: 0; filter: blur(18px); opacity: .16; pointer-events: none; transform: rotate(-32deg) skewX(-28deg); }
.ambient-one { top: 12vw; right: -14vw; background: linear-gradient(90deg,transparent,#fff,var(--orange),transparent); }
.ambient-two { bottom: 8vw; left: -18vw; background: linear-gradient(90deg,transparent,var(--blue),#fff,transparent); }

.accent-lime { --accent: var(--lime); }
.accent-orange { --accent: var(--orange); }
.accent-blue { --accent: var(--blue); }
.accent-pink { --accent: var(--pink); }

.site-header { display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: auto; padding: 32px 5vw; }
.site-header.compact { max-width: none; padding: 24px 40px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-size: 13px; letter-spacing: .12em; }
.brand em { margin-top: 4px; color: var(--muted); font-size: 9px; font-style: normal; letter-spacing: .18em; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; width: 27px; height: 27px; padding: 6px 5px; border: 1px solid currentColor; border-radius: 50%; transform: rotate(-8deg); }
.brand-mark i { width: 4px; background: currentColor; border-radius: 4px; }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 10px; }
.admin-link { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .04em; transition: .25s ease; }
.admin-link:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #84cf45; box-shadow: 0 0 0 4px rgba(132, 207, 69, .14); }

.home-shell { min-height: 100vh; overflow: hidden; }
.hero { display: grid; grid-template-columns: 1.5fr .5fr; gap: 40px; position: relative; max-width: 1440px; margin: 80px auto 90px; padding: 0 5vw; }
.hero::after { content: "02"; position: absolute; right: 5vw; top: -115px; color: rgba(17, 16, 14, .035); font-family: var(--display); font-size: clamp(180px, 25vw, 390px); font-weight: 700; line-height: 1; pointer-events: none; }
.hero-kicker { grid-column: 1 / -1; display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: .22em; }
.hero-kicker span { width: 35px; height: 2px; background: var(--ink); }
.hero h1 { z-index: 1; margin: 0; color: #0644d8; font-family: var(--display); font-size: clamp(58px, 8.6vw, 130px); font-weight: 900; line-height: .96; letter-spacing: -.085em; }
.hero h1 em { position: relative; color: transparent; font-style: normal; -webkit-text-stroke: 1.5px var(--ink); }
.hero h1 em::after { content: ""; position: absolute; left: 5%; right: -7%; bottom: -8px; height: 14px; border-bottom: 2px solid var(--ink); border-radius: 50%; transform: rotate(-2deg); }
.hero-side { z-index: 1; align-self: end; max-width: 320px; padding-bottom: 6px; }
.hero-side > p { margin: 0 0 26px; font-size: 14px; line-height: 1.9; }
.privacy-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.privacy-note span { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid var(--line); border-radius: 50%; }

.survey-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1440px; margin: auto; padding: 0 5vw; }
.survey-card { display: flex; flex-direction: column; min-height: 350px; padding: 24px; border-top: 1px solid var(--ink); border-right: 1px solid var(--line); background: rgba(243, 240, 232, .6); opacity: 0; transform: translateY(20px); animation: card-in .6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--delay); transition: color .3s ease, background .3s ease, transform .3s ease; }
.survey-card:first-child { border-left: 1px solid var(--line); }
.survey-card:hover { z-index: 2; color: var(--ink); background: var(--accent); transform: translateY(-10px); }
.card-index { font-family: var(--serif); font-size: 38px; }
.card-copy { margin-top: auto; }
.eyebrow { display: block; margin-bottom: 11px; font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.card-copy h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 31px; font-weight: 500; letter-spacing: -.04em; }
.card-copy p { min-height: 70px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.survey-card:hover .card-copy p { color: rgba(17, 16, 14, .72); }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 15px; border-top: 1px solid currentColor; font-size: 11px; }
.card-meta b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; font-size: 15px; transition: transform .3s ease; }
.survey-card:hover .card-meta b { transform: rotate(45deg); }
.home-footer { display: flex; justify-content: space-between; max-width: 1440px; margin: 80px auto 0; padding: 24px 5vw 40px; color: var(--muted); font-family: var(--display); font-size: 9px; letter-spacing: .12em; }
@keyframes card-in { to { opacity: 1; transform: translateY(0); } }

.form-shell { min-height: 100vh; }
.form-progress { height: 3px; background: rgba(17, 16, 14, .08); }
.form-progress span { display: block; height: 100%; background: var(--accent); transition: width .5s ease; }
.form-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(600px, 1.3fr); min-height: calc(100vh - 82px); }
.form-aside { position: sticky; top: 0; align-self: start; min-height: calc(100vh - 82px); padding: 56px 5vw; border-right: 1px solid var(--line); background: var(--ink); color: var(--paper); overflow: hidden; }
.form-aside::after { content: ""; position: absolute; right: -170px; bottom: -210px; width: 420px; height: 420px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 48% 52% 45% 55%; box-shadow: inset 0 0 90px color-mix(in srgb, var(--accent) 35%, transparent); transform: rotate(28deg); }
.back-link { display: inline-block; margin-bottom: 75px; color: rgba(243, 240, 232, .6); font-size: 11px; transition: color .2s ease; }
.back-link:hover { color: var(--accent); }
.form-aside .eyebrow { color: var(--accent); }
.form-aside h1 { max-width: 370px; margin: 0; font-family: var(--serif); font-size: clamp(38px, 4vw, 63px); font-weight: 500; line-height: 1.08; letter-spacing: -.06em; }
.form-aside > p { max-width: 370px; margin: 25px 0 35px; color: rgba(243, 240, 232, .58); font-size: 12px; line-height: 1.8; }
.identity-card { max-width: 370px; padding: 17px 19px; border: 1px solid rgba(255, 255, 255, .13); background: rgba(255, 255, 255, .04); }
.identity-card span, .identity-card small { display: block; color: rgba(243, 240, 232, .46); font-size: 9px; letter-spacing: .08em; }
.identity-card strong { display: block; margin: 5px 0 7px; color: var(--accent); font-family: var(--display); font-size: 20px; letter-spacing: .1em; }
.step-list { position: relative; z-index: 1; margin-top: 50px; }
.step-item { display: flex; align-items: center; gap: 13px; margin: 15px 0; color: rgba(243, 240, 232, .33); }
.step-item span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, .17); border-radius: 50%; font-family: var(--display); font-size: 8px; }
.step-item b { font-size: 11px; font-weight: 500; }
.step-item.current { color: var(--paper); }
.step-item.current span { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.step-item.done { color: rgba(243, 240, 232, .62); }
.step-item.done span { color: var(--accent); border-color: var(--accent); }
.mobile-step-label { display: none; }

.form-panel { padding: 64px clamp(32px, 7vw, 110px) 90px; background: rgba(255, 255, 255, .18); }
.form-panel-top { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.section-number { color: var(--muted); font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.form-panel-top h2 { margin: 8px 0 9px; font-family: var(--serif); font-size: 40px; font-weight: 500; letter-spacing: -.04em; }
.form-panel-top p { margin: 0; color: var(--muted); font-size: 12px; }
#autosave-badge { align-self: flex-start; min-width: 100px; color: var(--muted); font-size: 9px; text-align: right; transition: color .2s ease; }
#autosave-badge.saved { color: #53861f; }
.context-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0 0; padding: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .3); }
.context-fields label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.context-fields select, .context-fields input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: var(--paper); color: var(--ink); font-size: 12px; }
.context-fields select:focus, .context-fields input:focus { border-color: var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
.questions { display: flex; flex-direction: column; gap: 0; }
.question { min-width: 0; margin: 0; padding: 38px 0; border-bottom: 1px solid var(--line); }
.question-title { width: 100%; margin-bottom: 20px; padding: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.question-label { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.required, .optional { flex: 0 0 auto; margin-top: 4px; padding: 4px 7px; font-family: var(--display); font-size: 8px; font-weight: 700; letter-spacing: .07em; }
.required { background: var(--ink); color: var(--paper); }
.optional { border: 1px solid var(--line); color: var(--muted); }
.choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice-row { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 10px 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .28); font-size: 12px; cursor: pointer; transition: .2s ease; }
.choice-row:hover { border-color: var(--ink); }
.choice-row.selected { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice-row input, .choice-chip input, .rating-button input, .nps-button input, .matrix-button input { position: absolute; opacity: 0; pointer-events: none; }
.choice-control { flex: 0 0 auto; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; }
.selected .choice-control { border: 4px solid var(--accent); background: var(--ink); }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { display: flex; min-height: 44px; align-items: center; gap: 7px; padding: 10px 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, .25); font-size: 11px; cursor: pointer; transition: .2s ease; }
.choice-chip:hover { border-color: var(--ink); }
.choice-chip.selected { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice-chip span { font-size: 15px; line-height: 1; transition: transform .2s ease; }
.choice-chip.selected span { color: var(--accent); transform: rotate(45deg); }
.textarea-wrap { position: relative; }
.textarea-wrap textarea { width: 100%; min-height: 120px; padding: 16px 18px 32px; resize: vertical; border: 1px solid var(--line); border-radius: 0; outline: none; background: rgba(255, 255, 255, .38); color: var(--ink); font-size: 12px; line-height: 1.8; transition: .2s ease; }
.textarea-wrap textarea:focus { border-color: var(--ink); box-shadow: 5px 5px 0 var(--accent); background: rgba(255, 255, 255, .65); }
.textarea-wrap textarea::placeholder { color: #9a958c; }
.char-count { position: absolute; right: 12px; bottom: 10px; color: var(--muted); font-size: 8px; }
.scale-labels { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 9px; }
.scale-labels b { font-weight: 500; }
.rating-row, .nps-row { display: grid; gap: 6px; }
.rating-row { grid-template-columns: repeat(5, 1fr); }
.nps-row { grid-template-columns: repeat(11, 1fr); }
.rating-button, .nps-button, .matrix-button { cursor: pointer; }
.rating-button span, .nps-button span, .matrix-button span { display: grid; place-items: center; height: 48px; border: 1px solid var(--line); background: rgba(255, 255, 255, .3); font-family: var(--display); font-size: 12px; transition: .2s ease; }
.rating-button:hover span, .nps-button:hover span, .matrix-button:hover span { border-color: var(--ink); transform: translateY(-2px); }
.rating-button.selected span, .nps-button.selected span, .matrix-button.selected span { border-color: var(--ink); background: var(--ink); color: var(--accent); }
.choice-row:focus-within, .choice-chip:focus-within, .rating-button:focus-within span, .nps-button:focus-within span, .matrix-button:focus-within span { outline: 3px solid var(--accent); outline-offset: 3px; }
.brand:focus-visible, .back-link:focus-visible, .button-primary:focus-visible, .button-secondary:focus-visible, .survey-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.matrix-scale { display: flex; justify-content: flex-end; gap: 120px; margin: -5px 0 8px; color: var(--muted); font-size: 8px; }
.matrix-table { border-top: 1px solid var(--line); }
.matrix-row { display: grid; grid-template-columns: minmax(190px, 1.2fr) 1fr; gap: 20px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.matrix-label { font-size: 11px; line-height: 1.5; }
.matrix-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.matrix-button span { height: 36px; }
.form-error { display: none; margin-top: 22px; padding: 13px 15px; border-left: 3px solid #d73f2b; background: rgba(215, 63, 43, .08); color: #9b291b; font-size: 11px; line-height: 1.6; }
.form-error.visible { display: block; }
.question-invalid { border-color: #d73f2b; box-shadow: 0 0 0 3px rgba(215, 63, 43, .11); }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 35px; }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 50px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 0; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .03em; transition: .25s ease; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--accent); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: translate(-3px, -3px); }
.button-primary:disabled { cursor: wait; opacity: .65; transform: none; box-shadow: none; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: var(--paper); }
.button-secondary.small { min-height: 40px; padding: 0 14px; }
.button-spinner { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.completion-shell, .login-shell { min-height: 100vh; }
.completion-card { width: min(720px, calc(100% - 40px)); margin: 7vh auto; padding: 70px 60px; border: 1px solid var(--ink); background: rgba(255, 255, 255, .26); text-align: center; box-shadow: 14px 14px 0 var(--accent); }
.completion-orbit { display: grid; place-items: center; width: 90px; height: 90px; margin: 0 auto 34px; border: 1px solid var(--ink); border-radius: 47% 53% 55% 45%; transform: rotate(12deg); }
.completion-orbit span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); font-size: 20px; transform: rotate(-12deg); }
.completion-card h1 { margin: 10px 0 17px; font-family: var(--serif); font-size: clamp(38px, 5vw, 60px); font-weight: 500; letter-spacing: -.06em; }
.completion-card > p { max-width: 500px; margin: auto; color: var(--muted); font-size: 12px; line-height: 1.9; }
.completion-meta { display: flex; justify-content: space-between; margin: 36px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }

.login-shell { background: var(--ink); color: var(--paper); }
.login-shell .site-header { border-color: rgba(255, 255, 255, .12); }
.login-shell .brand em { color: rgba(243, 240, 232, .45); }
.login-shell .admin-link { display: none; }
.login-card { width: min(520px, calc(100% - 40px)); margin: 8vh auto; }
.login-card .eyebrow { color: var(--lime); }
.login-card h1 { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(48px, 6vw, 72px); font-weight: 500; line-height: 1.04; letter-spacing: -.07em; }
.login-card > p { max-width: 390px; color: rgba(243, 240, 232, .55); font-size: 12px; line-height: 1.8; }
.login-card form { margin-top: 45px; }
.login-card label span { display: block; margin-bottom: 8px; color: rgba(243, 240, 232, .55); font-size: 10px; }
.login-card input { width: 100%; height: 56px; padding: 0 15px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 0; outline: none; background: rgba(255, 255, 255, .06); color: white; }
.login-card input:focus { border-color: var(--lime); }
.login-card .button-primary { width: 100%; margin-top: 12px; border-color: var(--lime); background: var(--lime); color: var(--ink); }
.login-card .form-error { color: #ff9787; }
.login-card > small { display: block; margin-top: 23px; color: rgba(243, 240, 232, .34); font-size: 9px; line-height: 1.6; }
.login-card code { color: var(--lime); }
.loading-shell { display: grid; place-items: center; align-content: center; min-height: 100vh; background: var(--ink); color: var(--paper); }
.loading-mark { display: flex; align-items: flex-end; gap: 5px; height: 40px; }
.loading-mark i { width: 7px; background: var(--lime); animation: load-bars .8s ease-in-out infinite alternate; }
.loading-mark i:nth-child(1) { height: 15px; }
.loading-mark i:nth-child(2) { height: 35px; animation-delay: .15s; }
.loading-mark i:nth-child(3) { height: 23px; animation-delay: .3s; }
.loading-shell p { margin-top: 20px; color: rgba(243, 240, 232, .55); font-size: 10px; letter-spacing: .08em; }
@keyframes load-bars { to { height: 9px; opacity: .4; } }

.dashboard-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; background: #eae6dc; }
.dashboard-nav { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 28px 20px 22px; background: var(--ink); color: var(--paper); }
.brand-light em { color: rgba(243, 240, 232, .4); }
.dashboard-nav nav { display: flex; flex-direction: column; gap: 5px; margin-top: 70px; }
.dashboard-nav nav a { display: flex; align-items: center; gap: 12px; padding: 12px 13px; color: rgba(243, 240, 232, .46); font-size: 11px; transition: .2s ease; }
.dashboard-nav nav a span { width: 18px; color: inherit; font-size: 15px; text-align: center; }
.dashboard-nav nav a:hover, .dashboard-nav nav a.active { background: rgba(255, 255, 255, .07); color: var(--paper); }
.dashboard-nav nav a.active { border-left: 2px solid var(--lime); }
.nav-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 15px 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.nav-foot div { display: flex; flex-direction: column; gap: 3px; }
.nav-foot b { font-size: 9px; }
.nav-foot small { color: rgba(243, 240, 232, .4); font-size: 8px; }
.dashboard-main { min-width: 0; padding: 43px clamp(25px, 4vw, 64px) 70px; }
.dashboard-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.dashboard-top .eyebrow { margin: 0 0 8px; color: #737067; }
.dashboard-top h1 { margin: 0; font-family: var(--serif); font-size: 42px; font-weight: 500; letter-spacing: -.05em; }
.dashboard-top p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.dashboard-actions { display: flex; gap: 8px; }
.dashboard-actions select { min-width: 180px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); font-size: 10px; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 14px; padding: 12px 15px; border: 1px solid #baa819; background: #fff6aa; }
.demo-banner div { display: flex; align-items: center; gap: 12px; }
.demo-banner span { padding: 4px 6px; background: var(--ink); color: var(--lime); font-size: 7px; font-weight: 700; letter-spacing: .1em; }
.demo-banner b { font-size: 10px; font-weight: 500; }
.demo-banner button { border: 0; border-bottom: 1px solid; background: transparent; font-size: 9px; }
.demo-switch { display: flex; justify-content: flex-end; margin-bottom: 10px; color: var(--muted); font-size: 9px; }
.demo-switch label { display: flex; align-items: center; gap: 7px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.metric-card { position: relative; min-height: 145px; padding: 18px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.metric-card::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 120px; height: 120px; border: 20px solid var(--tone, var(--line)); border-radius: 50%; opacity: .65; }
.metric-card.tone-lime { --tone: var(--lime); }
.metric-card.tone-blue { --tone: var(--blue); }
.metric-card.tone-orange { --tone: var(--orange); }
.metric-card.tone-pink { --tone: var(--pink); }
.metric-card > span { color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.metric-card strong { display: block; margin-top: 16px; font-family: var(--display); font-size: 41px; font-weight: 600; letter-spacing: -.05em; }
.metric-card small { color: var(--muted); font-size: 8px; }
.dashboard-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; }
.dashboard-card { min-width: 0; padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.dashboard-card.wide { grid-column: 1 / 2; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.card-heading > div > span { color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .17em; }
.card-heading h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
.card-heading > small { color: var(--muted); font-size: 8px; }
.card-heading > small span { color: var(--blue); }
.card-heading > strong { font-family: var(--display); font-size: 32px; }
.card-heading > strong small { margin-left: 3px; color: var(--muted); font-size: 9px; }
.skill-chart { display: flex; flex-direction: column; gap: 14px; }
.skill-row { display: grid; grid-template-columns: 80px 1fr 38px; align-items: center; gap: 12px; }
.skill-row > b { font-size: 9px; font-weight: 500; }
.skill-bars { display: flex; flex-direction: column; gap: 4px; }
.skill-bars > div { display: flex; align-items: center; gap: 8px; height: 8px; }
.skill-bars > div::before { content: ""; position: absolute; }
.skill-bars > div span { display: block; height: 100%; min-width: 2px; background: #b5b0a6; }
.skill-bars > div:nth-child(2) span { background: var(--blue); }
.skill-bars i { color: var(--muted); font-size: 7px; font-style: normal; }
.skill-row > strong { color: #2560b8; font-family: var(--display); font-size: 11px; text-align: right; }
.funnel-list { display: flex; flex-direction: column; gap: 15px; }
.funnel-list > div { display: grid; grid-template-columns: 74px 1fr 20px; align-items: center; gap: 8px; }
.funnel-list span { color: var(--muted); font-size: 8px; }
.funnel-list > div > div { height: 7px; background: var(--paper-deep); }
.funnel-list i { display: block; height: 100%; background: var(--ink); }
.funnel-list b { font-family: var(--display); font-size: 9px; text-align: right; }
.support-card { background: #171613; color: var(--paper); }
.support-card .card-heading > div > span, .support-card .card-heading > small { color: rgba(243, 240, 232, .45); }
.support-card .card-heading > strong { color: var(--orange); }
.alert-list { display: flex; flex-direction: column; gap: 8px; }
.alert-item { display: flex; gap: 11px; padding: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.alert-item > span { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #ffca45; box-shadow: 0 0 0 4px rgba(255, 202, 69, .12); }
.alert-item.urgent > span { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 113, 77, .14); }
.alert-item b { font-family: var(--display); font-size: 9px; letter-spacing: .06em; }
.alert-item p { margin: 5px 0; color: rgba(243, 240, 232, .75); font-size: 9px; line-height: 1.5; }
.alert-item small { color: rgba(243, 240, 232, .35); font-size: 7px; }
.empty-state { padding: 25px 10px; color: var(--muted); font-size: 9px; text-align: center; }
.support-card .empty-state { color: rgba(243, 240, 232, .45); }
.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: 4px; }
.bar-row span, .bar-row b { font-size: 8px; }
.bar-row b { font-family: var(--display); }
.bar-track { height: 6px; background: var(--paper-deep); }
.bar-track span { display: block; height: 100%; background: var(--orange); }
.comment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.comment-grid blockquote { display: flex; flex-direction: column; min-height: 130px; margin: 0; padding: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .3); }
.comment-grid blockquote p { margin: 0; font-family: var(--serif); font-size: 12px; line-height: 1.7; }
.comment-grid blockquote footer { display: flex; justify-content: space-between; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.comment-grid blockquote span { font-family: var(--display); font-size: 8px; font-weight: 700; }
.comment-grid blockquote small { color: var(--muted); font-size: 7px; }
.response-table-card { grid-column: 1 / -1 !important; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 9px; }
th, td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 7px; font-weight: 600; letter-spacing: .08em; }
.table-status { display: inline-block; padding: 4px 6px; font-size: 7px; }
.table-status.demo { background: #fff3a0; color: #6f5f00; }
.table-status.real { background: #d9f5c1; color: #285713; }

@media (min-width: 1180px) {
  .support-card { grid-column: 2; grid-row: 1; }
  .response-funnel { grid-column: 2; grid-row: 2; }
  .modules-card { grid-column: 1; grid-row: 2; }
}

@media (max-width: 1000px) {
  .survey-grid { grid-template-columns: repeat(2, 1fr); }
  .survey-card:nth-child(3) { border-left: 1px solid var(--line); }
  .form-layout { grid-template-columns: 280px 1fr; }
  .form-aside { padding: 45px 30px; }
  .form-panel { padding: 50px 35px 70px; }
  .matrix-row { grid-template-columns: 1fr; gap: 8px; }
  .matrix-scale { display: none; }
  .dashboard-shell { grid-template-columns: 74px 1fr; }
  .dashboard-nav { padding: 22px 10px; align-items: center; }
  .dashboard-nav .brand > span:last-child, .dashboard-nav nav a:not(.active)::after, .dashboard-nav nav a { font-size: 0; }
  .dashboard-nav nav a { justify-content: center; width: 44px; padding: 12px; }
  .dashboard-nav nav a span { font-size: 16px; }
  .nav-foot div { display: none; }
}

@media (max-width: 760px) {
  .site-header, .site-header.compact { padding: 20px; }
  .hero { display: block; margin: 55px auto 60px; padding: 0 20px; }
  .hero-kicker { margin-bottom: 30px; }
  .hero h1 { font-size: clamp(53px, 17vw, 84px); }
  .hero-side { margin-top: 45px; }
  .hero::after { top: -45px; right: -30px; font-size: 180px; }
  .survey-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .survey-card, .survey-card:nth-child(3) { min-height: 265px; border-left: 1px solid var(--line); }
  .card-copy p { min-height: 0; }
  .home-footer { margin-top: 40px; padding: 20px; }
  .form-layout { display: block; }
  .form-aside { position: relative; min-height: 0; padding: 35px 20px 30px; }
  .form-aside::after { right: -120px; bottom: -180px; width: 300px; height: 300px; }
  .back-link { margin-bottom: 38px; }
  .form-aside h1 { font-size: 40px; }
  .identity-card { display: none; }
  .step-list { display: flex; gap: 6px; margin-top: 30px; }
  .step-item { margin: 0; }
  .step-item b { display: none; }
  .mobile-step-label { position: relative; z-index: 1; display: block; margin: 13px 0 0; color: rgba(255,255,255,.82); font-size: 10px; font-weight: 700; }
  .form-panel { padding: 38px 20px 65px; }
  .form-panel-top h2 { font-size: 31px; }
  #autosave-badge { display: inline-flex; min-width: 0; padding: 6px 9px; white-space: nowrap; }
  .context-fields { grid-template-columns: 1fr; padding: 16px; }
  .choice-list { grid-template-columns: 1fr; }
  .nps-row { grid-template-columns: repeat(6, 1fr); }
  .nps-button span { height: 46px; }
  .matrix-row { padding: 17px 0; }
  .matrix-options { gap: 4px; }
  .matrix-button span { height: 46px; }
  .completion-card { margin: 4vh auto; padding: 50px 24px; box-shadow: 7px 7px 0 var(--accent); }
  .completion-meta { flex-direction: column; gap: 8px; }
  .dashboard-shell { display: block; }
  .dashboard-nav { position: relative; flex-direction: row; justify-content: space-between; width: 100%; height: auto; padding: 17px 20px; }
  .dashboard-nav nav, .nav-foot { display: none; }
  .dashboard-main { padding: 30px 16px 60px; }
  .dashboard-top { display: block; }
  .dashboard-top h1 { font-size: 34px; }
  .dashboard-actions { margin-top: 22px; }
  .dashboard-actions select { min-width: 0; flex: 1; }
  .demo-banner, .demo-banner div { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 125px; }
  .metric-card strong { font-size: 34px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card, .dashboard-card.wide { grid-column: 1 !important; }
  .comment-grid { grid-template-columns: 1fr; }
  .skill-row { grid-template-columns: 65px 1fr 32px; }
}

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

/* ─────────────────────────────────────────────
   LP-ALIGNED THEME / COBALT CHROME v3
   Latest LP mobile-first mock is the visual source.
   ───────────────────────────────────────────── */

:root {
  --ink: #062464;
  --ink-soft: #0a347d;
  --paper: #f8fbff;
  --paper-deep: #eaf1ff;
  --line: rgba(7, 67, 171, .15);
  --muted: #596a8b;
  --lime: #ffe100;
  --orange: #0755df;
  --blue: #0755df;
  --pink: #cfe0ff;
  --accent: var(--blue);
  --display: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
  --serif: "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --body: "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

body {
  background:
    linear-gradient(rgba(14, 77, 181, .027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 77, 181, .027) 1px, transparent 1px),
    radial-gradient(circle at 82% 7%, rgba(41, 111, 255, .13), transparent 27%),
    #f9fbff;
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.accent-lime,
.accent-orange,
.accent-blue,
.accent-pink { --accent: var(--blue); }

.ambient { filter: blur(110px); opacity: .21; }
.ambient-one { background: #78a6ff; }
.ambient-two { background: #dbe7ff; }

.site-header {
  position: relative;
  z-index: 20;
  padding-top: 22px;
  padding-bottom: 22px;
  background: rgba(255, 255, 255, .87);
  border-bottom: 1px solid rgba(7, 67, 171, .1);
  box-shadow: 0 7px 30px rgba(7, 42, 111, .06);
  backdrop-filter: blur(18px);
}

.site-header.compact { padding: 18px 36px; border-bottom-color: rgba(7, 67, 171, .12); }
.brand { color: #0646c4; }
.brand strong { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.brand em { color: #6176a0; font-size: 8px; font-weight: 700; }
.brand-mark {
  border: 0;
  background: linear-gradient(145deg, #0a64ee, #002b9f);
  color: #fff;
  box-shadow: 0 6px 14px rgba(4, 72, 201, .25);
  transform: none;
}
.admin-link {
  padding: 11px 18px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(145deg, #0962e9, #003dbb);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(4, 69, 190, .22);
}
.admin-link:hover { background: #003bad; color: #fff; box-shadow: 0 10px 24px rgba(4, 69, 190, .3); }
.admin-link .status-dot { background: #ffe000; box-shadow: 0 0 0 4px rgba(255, 224, 0, .2); }

.home-shell { background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(236,244,255,.7)); }
.hero {
  grid-template-columns: minmax(0, .95fr) minmax(350px, .55fr);
  grid-auto-rows: max-content;
  align-content: center;
  row-gap: 16px;
  min-height: 500px;
  margin-top: 54px;
  margin-bottom: 20px;
  padding-top: 55px;
  padding-bottom: 52px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 76% 46%, rgba(255,255,255,.96), rgba(226,238,255,.72) 30%, transparent 56%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  right: 7vw;
  top: 55px;
  width: clamp(210px, 25vw, 330px);
  height: 365px;
  border: 7px solid rgba(255,255,255,.78);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(227,237,255,.94)),
    #fff;
  box-shadow: 0 28px 55px rgba(7, 46, 126, .23), inset 0 0 0 1px rgba(10,75,190,.14);
  transform: perspective(800px) rotateY(-12deg) rotateZ(6deg);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 1.5vw;
  top: -52px;
  width: clamp(300px, 39vw, 570px);
  height: 570px;
  background:
    linear-gradient(116deg,
      #ffffff 0%, #8aa5d8 8%, #faffff 15%, #0a5ff0 22%,
      #d8e6ff 31%, #00379f 42%, #ffffff 52%, #126cff 61%,
      #9eb8ed 72%, #f7ffff 82%, #0343bd 92%);
  clip-path: polygon(53% 0, 100% 3%, 65% 39%, 88% 43%, 30% 100%, 46% 57%, 8% 54%);
  filter: drop-shadow(0 12px 11px rgba(1, 52, 158, .26)) drop-shadow(0 0 15px rgba(57, 131, 255, .22));
  opacity: .92;
  transform: rotate(5deg);
  pointer-events: none;
}
.hero-kicker {
  z-index: 6;
  grid-column: 1;
  margin-bottom: 24px;
  color: #064bc8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}
.hero-kicker span { width: 36px; height: 4px; border-radius: 9px; background: #0755df; }
.hero h1 {
  z-index: 6;
  grid-column: 1;
  max-width: 780px;
  color: #0646c4;
  font-family: var(--display);
  font-size: clamp(58px, 6.5vw, 102px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.075em;
  text-shadow: 0 6px 24px rgba(5, 72, 191, .1);
}
.hero h1 em { color: #0646c4; font-style: normal; -webkit-text-stroke: 0; }
.hero h1 em::after { display: none; }
.hero-side {
  z-index: 7;
  grid-column: 1;
  align-self: start;
  max-width: 570px;
  margin-top: -8px;
}
.hero-side > p { max-width: 520px; margin-bottom: 20px; color: #253d6a; font-size: 14px; font-weight: 600; line-height: 1.8; }
.privacy-note { width: fit-content; padding: 9px 13px; border-radius: 9px; background: #fff; color: #3e5480; box-shadow: 0 8px 22px rgba(7, 53, 139, .1); }
.privacy-note span { border: 0; background: #e7efff; color: #0755df; }

.survey-grid { position: relative; z-index: 10; gap: 14px; padding-bottom: 26px; }
.survey-card,
.survey-card:first-child,
.survey-card:nth-child(3) {
  min-height: 305px;
  padding: 23px;
  border: 1px solid rgba(8, 77, 191, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 13px 35px rgba(5, 52, 135, .11), inset 0 1px 0 #fff;
  overflow: hidden;
}
.survey-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 58%, rgba(33, 101, 231, .08));
  pointer-events: none;
}
.survey-card:hover {
  border-color: rgba(7, 85, 223, .42);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 23px 52px rgba(5, 61, 161, .19), 0 0 0 3px rgba(23, 100, 229, .08);
  transform: translateY(-8px);
}
.card-head { display: flex; align-items: center; justify-content: space-between; }
.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(145deg, #edf4ff, #d9e7ff);
  color: #0755df;
  box-shadow: inset 0 0 0 1px rgba(7,85,223,.1), 0 7px 15px rgba(7,85,223,.1);
}
.card-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-index { color: rgba(6, 70, 196, .2); font-family: var(--display); font-size: 32px; font-weight: 800; }
.card-copy .eyebrow { color: #0755df; }
.card-copy h2 { color: #063cae; font-family: var(--display); font-size: 27px; font-weight: 800; }
.card-copy p { color: #63718c; }
.survey-card:hover .card-copy p { color: #455878; }
.card-meta { border-top-color: rgba(7, 67, 171, .13); color: #4c6188; }
.card-meta b { border: 0; border-radius: 9px; background: #ffe100; color: #122453; box-shadow: 0 5px 11px rgba(177, 145, 0, .18); }
.survey-card:hover .card-meta b { transform: translateX(2px); }
.home-footer { border-top: 1px solid rgba(7,67,171,.1); color: #6f7f9d; }

.form-shell { background: #f6f9ff; }
.form-progress { height: 4px; background: #dce7fb; }
.form-progress span { background: linear-gradient(90deg, #0755df, #71a2ff); box-shadow: 0 0 12px rgba(7,85,223,.45); }
.form-layout { grid-template-columns: minmax(300px, .62fr) minmax(620px, 1.38fr); }
.form-aside {
  border-right: 0;
  background:
    radial-gradient(circle at 86% 75%, rgba(44, 119, 255, .38), transparent 31%),
    linear-gradient(155deg, #0755df, #041e61 72%);
  color: #fff;
  box-shadow: 15px 0 42px rgba(3, 39, 115, .13);
}
.form-aside::before {
  content: "";
  position: absolute;
  right: -26px;
  bottom: 65px;
  width: 230px;
  height: 320px;
  background: linear-gradient(120deg, #fff, #6797e7 14%, #e9f4ff 28%, #1166ed 42%, #fff 56%, #0642b6 73%, #e7f1ff 88%);
  clip-path: polygon(55% 0, 100% 2%, 63% 40%, 90% 43%, 25% 100%, 43% 58%, 0 55%);
  filter: drop-shadow(0 12px 12px rgba(0,20,80,.35));
  opacity: .47;
  transform: rotate(8deg);
}
.form-aside::after { display: none; }
.back-link { color: rgba(255,255,255,.72); font-weight: 600; }
.back-link:hover { color: #ffe100; }
.form-aside .eyebrow { color: #ffe100; }
.form-aside h1 { color: #fff; font-family: var(--display); font-weight: 800; letter-spacing: -.055em; }
.form-aside > p { color: rgba(255,255,255,.72); }
.identity-card {
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 14px;
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(13px);
}
.identity-card span, .identity-card small { color: rgba(255,255,255,.58); }
.identity-card strong { color: #ffe100; }
.step-item { color: rgba(255,255,255,.4); }
.step-item span { border-color: rgba(255,255,255,.2); }
.step-item.current span { border-color: #ffe100; background: #ffe100; color: #062464; box-shadow: 0 0 0 5px rgba(255,225,0,.12); }
.step-item.done span { border-color: #7eaaff; color: #fff; background: rgba(255,255,255,.12); }
.step-item.current, .step-item.done { color: #fff; }

.form-panel { background: linear-gradient(180deg, #f9fbff, #f2f6ff); }
.form-panel-top { border-bottom: 0; }
.section-number { color: #0755df; }
.form-panel-top h2 { color: #062f8a; font-family: var(--display); font-weight: 800; }
.form-panel-top p { color: #6b7a97; }
#autosave-badge { padding: 7px 10px; border-radius: 999px; background: #e7efff; color: #5070a6; }
#autosave-badge.saved { background: #dff5df; color: #28763a; }
.context-fields {
  padding: 20px;
  border: 1px solid rgba(7,67,171,.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 53, 139, .09);
}
.context-fields select, .context-fields input {
  border-color: #d6e1f4;
  border-radius: 10px;
  background: #f7faff;
}
.context-fields select:focus, .context-fields input:focus { border-color: #0755df; box-shadow: 0 0 0 3px rgba(7,85,223,.11); }
.questions { gap: 13px; margin-top: 16px; }
.question {
  padding: 27px;
  border: 1px solid rgba(7,67,171,.1);
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 9px 27px rgba(6, 53, 139, .075);
}
.question-label { color: #102e6a; font-family: var(--display); font-size: 17px; font-weight: 700; }
.required, .optional { border-radius: 6px; }
.required { background: #0755df; color: #fff; }
.optional { border-color: #cbd9ef; background: #f3f7ff; }
.choice-list { gap: 9px; }
.choice-row {
  min-height: 52px;
  border-color: #d6e1f3;
  border-radius: 11px;
  background: #f9fbff;
}
.choice-row:hover { border-color: #5a8ce7; background: #f2f7ff; }
.choice-row.selected { border-color: #0755df; background: linear-gradient(145deg, #1167ed, #0346c4); color: #fff; box-shadow: 0 7px 17px rgba(7,85,223,.21); }
.choice-control { border-color: #6f83a8; }
.selected .choice-control { border: 4px solid #ffe100; background: #0755df; }
.choice-chip { border-color: #d5e1f4; border-radius: 999px; background: #f8fbff; }
.choice-chip:hover { border-color: #6594eb; }
.choice-chip.selected { border-color: #0755df; background: #0755df; color: #fff; }
.choice-chip.selected span { color: #ffe100; }
.textarea-wrap textarea { border-color: #d5e1f4; border-radius: 12px; background: #f8fbff; }
.textarea-wrap textarea:focus { border-color: #0755df; background: #fff; box-shadow: 0 0 0 3px rgba(7,85,223,.1), 0 9px 20px rgba(7,85,223,.09); }
.rating-button span, .nps-button span, .matrix-button span { border-color: #d6e1f4; border-radius: 9px; background: #f8fbff; color: #3e557d; }
.rating-button:hover span, .nps-button:hover span, .matrix-button:hover span { border-color: #0755df; }
.rating-button.selected span, .nps-button.selected span, .matrix-button.selected span { border-color: #0755df; background: #0755df; color: #ffe100; box-shadow: 0 6px 15px rgba(7,85,223,.2); }
.matrix-table { border-top-color: #dce5f5; }
.matrix-row { border-bottom-color: #e1e9f7; }
.form-error { border-left-color: #ef4757; border-radius: 9px; background: #fff0f2; }
.question.question-invalid { border-color: #ef4757; box-shadow: 0 0 0 3px rgba(239,71,87,.12), 0 9px 27px rgba(6,53,139,.075); }
.button-primary, .button-secondary { min-height: 54px; border-radius: 11px; }
.button-primary {
  border-color: #ffe100;
  background: linear-gradient(180deg, #ffe833, #ffdd00);
  color: #14244d;
  box-shadow: 0 8px 19px rgba(198, 166, 0, .22), inset 0 1px 0 rgba(255,255,255,.65);
}
.button-primary:hover { border-color: #ffdc00; background: #ffe100; color: #10224f; box-shadow: 0 11px 23px rgba(167, 139, 0, .25); transform: translateY(-2px); }
.button-secondary { border-color: #b9cbea; background: #fff; color: #17499e; }
.button-secondary:hover { border-color: #0755df; background: #0755df; color: #fff; }

.completion-shell { background: radial-gradient(circle at 50% 20%, #dfeaff, transparent 42%), #f8fbff; }
.completion-card {
  border: 1px solid rgba(7,67,171,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 30px 80px rgba(5,52,135,.16), 10px 10px 0 #ffe100;
}
.completion-orbit { border-color: #a9c2ec; background: #eef4ff; }
.completion-orbit span { background: #0755df; color: #fff; }
.completion-card h1 { color: #0646c4; font-family: var(--display); font-weight: 800; }

.login-shell { background: radial-gradient(circle at 72% 25%, #176ee8, transparent 34%), linear-gradient(145deg, #0755df, #031b55 75%); }
.login-shell::after {
  content: "";
  position: fixed;
  right: -3vw;
  top: 9vh;
  width: 45vw;
  height: 75vh;
  background: linear-gradient(115deg, #fff, #6f97d7 12%, #ecf7ff 24%, #1268f0 39%, #fff 54%, #0642b2 70%, #eaf4ff 84%);
  clip-path: polygon(55% 0, 100% 2%, 62% 40%, 90% 43%, 25% 100%, 43% 58%, 0 55%);
  opacity: .48;
  filter: drop-shadow(0 15px 12px rgba(0,16,69,.35));
}
.login-shell .site-header { background: rgba(255,255,255,.95); color: #0646c4; }
.login-card { position: relative; z-index: 2; }
.login-card .eyebrow { color: #ffe100; }
.login-card h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.055em; }
.login-card input { border-radius: 11px; background: rgba(255,255,255,.12); }
.login-card input:focus { border-color: #ffe100; box-shadow: 0 0 0 3px rgba(255,225,0,.12); }
.login-card .button-primary { border-color: #ffe100; background: #ffe100; color: #10224f; }

.dashboard-shell { grid-template-columns: 238px 1fr; background: #edf3ff; }
.dashboard-nav { background: linear-gradient(180deg, #064bc8, #031f63 72%); box-shadow: 12px 0 36px rgba(4,42,118,.14); }
.dashboard-nav .brand { color: #fff; }
.dashboard-nav .brand-mark { background: rgba(255,255,255,.15); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.dashboard-nav nav a.active { border-left-color: #ffe100; background: rgba(255,255,255,.12); }
.nav-foot { border-top-color: rgba(255,255,255,.16); }
.dashboard-main { background: radial-gradient(circle at 80% 0%, rgba(75,139,255,.12), transparent 25%); }
.dashboard-top .eyebrow { color: #0755df; }
.dashboard-top h1 { color: #062f8a; font-family: var(--display); font-weight: 800; }
.dashboard-actions select { border-color: #cbd9ef; border-radius: 9px; background: #fff; color: #163f87; }
.demo-banner { border-color: #e7c900; border-radius: 11px; background: #fff8be; box-shadow: 0 7px 17px rgba(158,132,0,.09); }
.demo-banner span { border-radius: 5px; background: #0755df; color: #fff; }
.metric-grid { gap: 12px; }
.metric-card {
  min-height: 150px;
  border: 1px solid rgba(7,67,171,.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6,53,139,.09);
}
.metric-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #0755df, #63a0ff); }
.metric-card::after { border-color: rgba(39,107,229,.18); }
.metric-card.tone-lime::after,
.metric-card.tone-blue::after,
.metric-card.tone-orange::after,
.metric-card.tone-pink::after { border-color: rgba(39,107,229,.18); }
.metric-card strong { color: #063cae; }
.dashboard-grid { gap: 12px; }
.dashboard-card {
  border: 1px solid rgba(7,67,171,.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6,53,139,.08);
}
.card-heading > div > span { color: #0755df; }
.card-heading h2 { color: #102e6a; font-family: var(--display); font-weight: 800; }
.skill-bars > div:nth-child(2) span { background: linear-gradient(90deg, #0755df, #5c9aff); }
.skill-row > strong { color: #0755df; }
.funnel-list i { background: linear-gradient(90deg, #0755df, #71a7ff); }
.support-card { background: linear-gradient(145deg, #0755df, #031e61); box-shadow: 0 14px 34px rgba(3,43,124,.22); }
.support-card .card-heading h2 { color: #fff; }
.support-card .card-heading > strong { color: #ffe100; }
.alert-item { border-color: rgba(255,255,255,.17); border-radius: 11px; background: rgba(255,255,255,.1); }
.alert-item.urgent > span { background: #ffe100; box-shadow: 0 0 0 4px rgba(255,225,0,.15); }
.bar-track { border-radius: 999px; background: #e5edfb; overflow: hidden; }
.bar-track span { border-radius: 999px; background: linear-gradient(90deg, #0755df, #6ba2ff); }
.comment-grid blockquote { border-color: #dce6f6; border-radius: 12px; background: #f8fbff; }
.comment-grid blockquote p { color: #244477; font-family: var(--body); font-weight: 600; }
.table-status.demo { border-radius: 5px; background: #fff2a3; }
.table-status.real { border-radius: 5px; background: #dff5e2; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) 280px; }
  .hero::before { right: 3vw; width: 235px; height: 320px; }
  .hero::after { right: -4vw; width: 420px; }
  .form-layout { grid-template-columns: 285px 1fr; }
}

@media (max-width: 760px) {
  .site-header, .site-header.compact { padding: 15px 18px; }
  .brand strong { font-size: 13px; }
  .admin-link { padding: 9px 13px; border-radius: 8px; }
  .hero {
    display: block;
    min-height: 570px;
    margin: 0;
    padding: 48px 22px 55px;
    border-radius: 0;
    background: radial-gradient(circle at 84% 35%, rgba(199,220,255,.94), transparent 30%);
  }
  .hero::before { right: -29px; top: 176px; width: 180px; height: 255px; border-width: 5px; border-radius: 28px; opacity: .98; }
  .hero::after { right: -93px; top: 63px; width: 330px; height: 410px; opacity: .9; }
  .hero-kicker { max-width: 250px; margin-bottom: 20px; font-size: 9px; }
  .hero h1 { position: relative; z-index: 8; max-width: 320px; font-size: clamp(48px, 15vw, 64px); line-height: 1.08; }
  .hero-side { position: relative; z-index: 9; max-width: 260px; margin-top: 24px; }
  .hero-side > p { font-size: 12px; line-height: 1.7; }
  .privacy-note { max-width: 230px; padding: 8px 10px; background: rgba(255,255,255,.91); font-size: 9px; }
  .survey-grid { gap: 11px; margin-top: -20px; padding: 0 18px 20px; }
  .survey-card, .survey-card:nth-child(3) { min-height: 235px; padding: 19px; border-radius: 16px; }
  .card-icon { width: 43px; height: 43px; border-radius: 12px; }
  .card-copy h2 { font-size: 24px; }
  .form-aside { padding: 35px 20px 31px; }
  .form-aside::before { right: -55px; bottom: -90px; width: 200px; height: 260px; opacity: .3; }
  .form-aside h1 { max-width: 320px; font-size: 38px; }
  .form-panel { padding: 34px 16px 65px; }
  .form-panel-top h2 { font-size: 29px; }
  .context-fields { padding: 15px; border-radius: 14px; }
  .questions { gap: 10px; }
  .question { padding: 21px 17px; border-radius: 14px; }
  .question-label { font-size: 15px; }
  .choice-row { min-height: 50px; }
  .completion-card { border-radius: 20px; box-shadow: 7px 7px 0 #ffe100; }
  .login-shell::after { right: -25vw; width: 100vw; opacity: .28; }
  .dashboard-main { padding: 28px 14px 55px; }
  .metric-grid { gap: 8px; }
  .metric-card { border-radius: 13px; }
  .dashboard-card { border-radius: 13px; }
}

/* Survey publication consent and public report */
.public-results-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: #0646c4;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.public-results-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.publication-consent { margin-top: 18px; border-color: #9fbbe9; background: linear-gradient(145deg, #f8fbff, #eef5ff); }
.publication-lead { margin: 9px 0 17px; color: #50688e; font-size: 12px; line-height: 1.7; }
.publication-choice > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.publication-choice b { color: #123b83; font-size: 13px; }
.publication-choice small { color: #627493; font-size: 10px; line-height: 1.55; }
.publication-safety { margin-top: 14px; padding: 13px 15px; border-left: 4px solid #e1b600; border-radius: 8px; background: #fffbea; }
.publication-safety b { color: #6e5900; font-size: 11px; }
.publication-safety p { margin: 4px 0 0; color: #615d47; font-size: 10px; line-height: 1.7; }
.completion-publication { padding: 11px 13px; border-radius: 9px; background: #edf4ff; color: #164786!important; font-size: 11px!important; font-weight: 750; }

.admin-publication-status, .publication-badge {
  align-self: flex-start;
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf2fa;
  color: #566b8b;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.3;
}
.admin-publication-status.named, .publication-badge.named { background: #e4f5e9; color: #08783c; }
.admin-publication-status.anonymous, .publication-badge.anonymous { background: #e8f1ff; color: #0755bf; }
.admin-publication-status.private { background: #fff1e3; color: #975100; }

.public-dashboard-shell { min-height: 100vh; background: #edf3ff; }
.public-dashboard-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 13px max(22px, calc((100vw - 1260px) / 2));
  border-bottom: 1px solid rgba(7, 67, 171, .12);
  background: rgba(255,255,255,.94);
  box-shadow: 0 7px 25px rgba(4,48,132,.07);
  backdrop-filter: blur(14px);
}
.public-dashboard-header .brand { color: #0646c4; }
.public-dashboard-main { max-width: 1260px; min-height: calc(100vh - 72px); margin: 0 auto; padding: 42px 22px 58px; }
.public-dashboard-top { align-items: flex-end; }
.public-dashboard-top p { max-width: 760px; }
.public-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 8px;
  min-width: 180px;
  padding: 15px 17px;
  border-radius: 14px;
  background: #064bc8;
  color: #fff;
}
.public-summary b { font-size: 28px; line-height: 1; }
.public-summary span { font-size: 10px; font-weight: 800; }
.public-summary small { grid-column: 1 / -1; color: #cfe0ff; font-size: 9px; }
.public-privacy-notice { display: flex; gap: 18px; margin: 0 0 15px; padding: 15px 18px; border-left: 5px solid #0755df; border-radius: 11px; background: #fff; box-shadow: 0 8px 22px rgba(6,53,139,.06); }
.public-privacy-notice b { flex: 0 0 auto; color: #123b83; font-size: 11px; }
.public-privacy-notice p { margin: 0; color: #586d8e; font-size: 10px; line-height: 1.7; }
.public-dashboard-grid { grid-template-columns: 1fr; }
.public-dashboard-grid .phase-analysis { grid-column: 1 / -1; }
.public-response-card { margin-top: 12px; }
.public-response-empty { padding: 30px 10px 12px; color: #687b99; font-size: 11px; text-align: center; }
.public-dashboard-footer { padding: 28px 4px 0; color: #6b7e9d; font-size: 10px; text-align: center; }
.public-error-shell { min-height: 100vh; background: #edf3ff; }
.public-error-shell > section { max-width: 680px; margin: 80px auto; padding: 34px; border-radius: 18px; background: #fff; box-shadow: 0 15px 45px rgba(5,52,135,.12); text-align: center; }
.public-error-shell h1 { color: #102e6a; }
.public-error-shell p { color: #637796; }

@media (max-width: 760px) {
  .public-dashboard-header { min-height: 64px; padding: 11px 15px; }
  .public-dashboard-header .button-secondary { min-height: 40px; padding: 8px 11px; font-size: 9px; }
  .public-dashboard-main { padding: 27px 14px 45px; }
  .public-dashboard-top { align-items: flex-start; flex-direction: column; gap: 17px; }
  .public-summary { width: 100%; }
  .public-privacy-notice { flex-direction: column; gap: 5px; padding: 14px 15px; }
  .publication-choice small { font-size: 9px; }
}

/* Survey admin: phase-first reporting */
.follow-up-priority {
  margin: 0 0 14px;
  border: 1px solid rgba(7, 67, 171, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(6, 53, 139, .08);
  overflow: hidden;
  scroll-margin-top: 20px;
}
.follow-up-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 26px 20px;
}
.follow-up-heading > div:first-child > span { color: #0755df; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.follow-up-heading h2 { margin: 6px 0 5px; color: #082e7d; font-size: 24px; line-height: 1.25; }
.follow-up-heading p { max-width: 660px; margin: 0; color: #61728f; font-size: 11px; line-height: 1.65; }
.priority-counts { display: grid; grid-template-columns: repeat(2, 108px); gap: 8px; flex: 0 0 auto; }
.priority-count {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 3px;
  padding: 12px 13px;
  border-radius: 12px;
  background: #f7f9fd;
}
.priority-count span { grid-column: 1 / -1; font-size: 9px; font-weight: 800; }
.priority-count b { font-size: 25px; line-height: 1; }
.priority-count small { font-size: 9px; }
.priority-count.high { background: #fff1ef; color: #c63d32; }
.priority-count.medium { background: #fff8e7; color: #9c6900; }
.risk-toolbar { display: flex; gap: 6px; padding: 0 26px 14px; border-bottom: 1px solid #e3eaf5; }
.risk-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #d5e0f0;
  border-radius: 999px;
  background: #fff;
  color: #526887;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
}
.risk-toolbar button:hover { border-color: #94b5e9; color: #0755df; }
.risk-toolbar button.active { border-color: #0755df; background: #eaf2ff; color: #074bc5; }
.risk-toolbar button b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: rgba(7, 67, 171, .08); font-size: 9px; }
.risk-list { display: flex; flex-direction: column; }
.risk-row {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(150px, .8fr) minmax(320px, 1.8fr) minmax(150px, .75fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 88px;
  padding: 15px 25px 15px 29px;
  border-bottom: 1px solid #e6edf7;
}
.risk-row:last-child { border-bottom: 0; }
.risk-row::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ""; }
.risk-row.high::before { background: #e25b50; }
.risk-row.medium::before { background: #e4aa23; }
.risk-row:hover { background: #fbfdff; }
.risk-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: 5px 8px; border-radius: 7px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.risk-badge.high { background: #fff0ee; color: #c63d32; }
.risk-badge.medium { background: #fff7e1; color: #976500; }
.risk-person, .risk-context { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.risk-person b { overflow: hidden; color: #102f70; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.risk-person small, .risk-context small { overflow: hidden; color: #70809c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.risk-context b { color: #3e587e; font-size: 10px; line-height: 1.45; }
.risk-signals { display: flex; flex-wrap: wrap; gap: 6px; }
.risk-signal { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px; background: #f2f6fc; color: #435a7d; font-size: 9px; line-height: 1.35; }
.risk-signal b { color: #0755df; font-size: 8px; white-space: nowrap; }
.risk-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 35px;
  padding: 8px 12px;
  border: 1px solid #b9cef0;
  border-radius: 9px;
  background: #fff;
  color: #0755df;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.risk-open-button:hover { border-color: #0755df; background: #edf4ff; }
.risk-open-button span { font-size: 13px; }
.risk-empty { padding: 27px; color: #61728f; font-size: 11px; text-align: center; }

.survey-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px;
  border: 1px solid rgba(7, 67, 171, .11);
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 10px 28px rgba(6, 53, 139, .06);
}
.survey-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #526787;
  cursor: pointer;
  font: inherit;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.survey-tabs button:hover { background: #eef4ff; color: #074cc8; transform: translateY(-1px); }
.survey-tabs button.active {
  background: linear-gradient(145deg, #0960e9, #043cae);
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 69, 188, .24);
}
.survey-tabs button span { font-size: 13px; font-weight: 800; }
.survey-tabs button b {
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(7, 67, 171, .08);
  font-size: 11px;
  white-space: nowrap;
}
.survey-tabs button.active b { background: rgba(255, 255, 255, .16); color: #ffe100; }

.phase-overview {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(520px, 1.15fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 14px;
  padding: 24px 26px;
  border: 1px solid rgba(7, 67, 171, .11);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 53, 139, .07);
}
.phase-overview > div > span { color: #0755df; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.phase-overview h2 { margin: 6px 0 5px; color: #082e7d; font-size: 25px; line-height: 1.25; }
.phase-overview p { max-width: 560px; margin: 0; color: #5d6e8c; font-size: 12px; line-height: 1.7; }
.phase-overview dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.phase-overview dl > div { min-width: 0; padding: 5px 17px; border-left: 1px solid #dbe5f5; }
.phase-overview dt { margin-bottom: 7px; color: #7382a0; font-size: 9px; font-weight: 700; }
.phase-overview dd { margin: 0; color: #102e6a; font-size: 14px; font-weight: 800; line-height: 1.35; }

.phase-analysis { grid-column: 1; }
.attention-card { grid-column: 2; }
.analysis-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.analysis-panel { min-width: 0; }
.analysis-panel + .analysis-panel { padding-left: 26px; border-left: 1px solid #e0e8f5; }
.analysis-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.analysis-panel-heading h3 { margin: 0; color: #17366e; font-size: 15px; }
.analysis-panel-heading span { color: #7a8aa6; font-size: 9px; }
.distribution-list { display: flex; flex-direction: column; gap: 14px; }
.distribution-row { display: grid; grid-template-columns: 1fr 38px; gap: 5px 9px; align-items: center; }
.distribution-row > div:first-child { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; }
.distribution-row span { color: #405779; font-size: 11px; line-height: 1.35; }
.distribution-row b { color: #123b83; font-size: 10px; white-space: nowrap; }
.distribution-track { height: 7px; border-radius: 999px; background: #e8effb; overflow: hidden; }
.distribution-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0755df, #6fa6ff); }
.distribution-row small { color: #6e7f9d; font-size: 9px; text-align: right; }

.attention-card .alert-list { max-height: 520px; overflow: auto; padding-right: 3px; }
.attention-card .alert-item b { font-size: 11px; letter-spacing: 0; }
.attention-card .alert-item p { font-size: 11px; line-height: 1.65; }
.attention-card .alert-item small { font-size: 9px; line-height: 1.6; }

.response-detail-card { grid-column: 1 / -1; scroll-margin-top: 20px; }
.response-detail-list { display: flex; flex-direction: column; gap: 8px; }
.response-detail {
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  background: #fbfdff;
  overflow: hidden;
}
.response-detail summary {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 13px 17px;
  cursor: pointer;
  list-style: none;
}
.response-detail summary::-webkit-details-marker { display: none; }
.response-detail summary:hover { background: #f1f6ff; }
.response-person, .response-context { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.response-person b { overflow: hidden; color: #102f70; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.response-person small, .response-context small { overflow: hidden; color: #70809c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.response-context b { color: #36547e; font-size: 11px; }
.response-open-label { display: inline-flex; align-items: center; gap: 10px; color: #0755df; font-size: 11px; font-weight: 800; white-space: nowrap; }
.response-open-label i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e5efff; font-size: 14px; font-style: normal; transition: transform .2s ease; }
.response-detail[open] .response-open-label i { transform: rotate(45deg); }
.response-detail[open] summary { border-bottom: 1px solid #dbe5f4; background: #f1f6ff; }
.answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 6px 18px 18px; }
.answer-grid > div { padding: 15px 13px; border-bottom: 1px solid #e7edf7; }
.answer-grid dt { margin-bottom: 9px; color: #526987; font-size: 11px; font-weight: 700; line-height: 1.5; }
.answer-question-label { display: block; }
.answer-response-guide { display: block; margin-top: 5px; color: #788aa3; font-size: 10px; font-weight: 500; line-height: 1.65; }
.answer-grid dd { margin: 0; color: #183665; font-size: 13px; font-weight: 700; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }

.phase-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 270px;
  padding: 36px;
  border: 1px dashed #b8cbea;
  border-radius: 18px;
  background: rgba(255, 255, 255, .75);
  color: #49658e;
  text-align: left;
}
.phase-empty > span { display: grid; place-items: center; flex: 0 0 auto; width: 62px; height: 62px; border-radius: 17px; background: #e5efff; color: #0755df; }
.phase-empty svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.phase-empty b { display: block; margin-bottom: 6px; color: #123b83; font-size: 18px; }
.phase-empty p { max-width: 620px; margin: 0; font-size: 12px; line-height: 1.7; }
.dedupe-note { margin: 12px 3px 0; color: #687a98; font-size: 10px; }

@media (max-width: 1180px) {
  .risk-row { grid-template-columns: 78px minmax(150px, .7fr) minmax(300px, 1.4fr) auto; }
  .risk-context { display: none; }
  .phase-overview { grid-template-columns: 1fr; gap: 20px; }
  .phase-overview dl > div:first-child { border-left: 0; padding-left: 0; }
  .phase-analysis, .attention-card { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .follow-up-heading { align-items: flex-start; flex-direction: column; gap: 18px; padding: 21px 17px 17px; }
  .follow-up-heading h2 { font-size: 22px; }
  .priority-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .risk-toolbar { padding: 0 17px 13px; overflow-x: auto; }
  .risk-toolbar button { flex: 0 0 auto; }
  .risk-row { grid-template-columns: auto 1fr; gap: 10px 12px; padding: 16px 17px 17px 21px; }
  .risk-person { align-self: center; }
  .risk-signals { grid-column: 1 / -1; }
  .risk-context { display: flex; grid-column: 1 / -1; }
  .risk-open-button { grid-column: 1 / -1; width: 100%; }
  .survey-tabs { display: flex; gap: 6px; padding: 5px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .survey-tabs button { flex: 0 0 140px; min-height: 52px; padding: 9px 11px; scroll-snap-align: start; }
  .survey-tabs button span { font-size: 11px; }
  .phase-overview { padding: 20px 17px; border-radius: 14px; }
  .phase-overview h2 { font-size: 22px; }
  .phase-overview dl { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .phase-overview dl > div, .phase-overview dl > div:first-child { padding: 2px 12px; border-left: 1px solid #dbe5f5; }
  .phase-overview dl > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .phase-overview dd { font-size: 12px; }
  .analysis-columns { grid-template-columns: 1fr; gap: 28px; }
  .analysis-panel + .analysis-panel { padding: 25px 0 0; border-top: 1px solid #e0e8f5; border-left: 0; }
  .response-detail summary { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .response-context { grid-column: 1; grid-row: 2; }
  .response-open-label { grid-column: 2; grid-row: 1 / span 2; }
  .response-open-label { font-size: 0; }
  .answer-grid { grid-template-columns: 1fr; padding: 4px 12px 14px; }
  .phase-empty { align-items: flex-start; min-height: 230px; padding: 28px 20px; }
  .phase-empty > span { width: 50px; height: 50px; }
}
