@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --ink: #17251f;
    --muted: #62716a;
    --paper: #f6f7f2;
    --white: #fff;
    --line: #dfe5de;
    --green: #176b4d;
    --green-dark: #0d4a36;
    --green-soft: #e2f0e9;
    --lime: #c7e55c;
    --orange: #e68452;
    --red: #ad3c3c;
    --shadow: 0 18px 50px rgba(23, 50, 39, .09);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong, .button { font-family: "Manrope", sans-serif; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); }
.section { padding: 86px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header { height: 82px; background: rgba(246,247,242,.92); border-bottom: 1px solid rgba(23,37,31,.08); position: relative; z-index: 10; backdrop-filter: blur(12px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1.1; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; color: var(--white); background: var(--green); border-radius: 10px 10px 10px 2px; font: 800 21px/1 "Manrope"; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.main-nav a:hover, .link-button:hover { color: var(--green); }
.main-nav form { margin: 0; }
.link-button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }

.hero { min-height: 650px; color: var(--white); background: var(--green-dark); position: relative; overflow: hidden; display: grid; align-items: center; }
.hero::before { content: ""; position: absolute; width: 700px; height: 700px; right: -220px; top: -330px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018); }
.hero::after { content: ""; width: 230px; height: 230px; border-radius: 50%; background: var(--lime); position: absolute; right: 12%; bottom: -140px; opacity: .9; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; align-items: center; padding: 88px 0; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--green); font: 700 12px/1 "Manrope"; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { max-width: 700px; margin-bottom: 25px; font-size: clamp(44px, 5vw, 72px); line-height: 1.05; letter-spacing: -.055em; }
.hero-lead { max-width: 620px; color: rgba(255,255,255,.7); font-size: 18px; line-height: 1.7; margin-bottom: 36px; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 10px 20px; border: 1px solid var(--green); border-radius: 10px; color: var(--white); background: var(--green); font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { background: var(--green-dark); box-shadow: 0 8px 24px rgba(13,74,54,.18); transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-large { min-height: 53px; padding: 13px 24px; }
.button-small { min-height: 38px; padding: 7px 14px; font-size: 13px; }
.button-block { width: 100%; }
.button-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.button-ghost:hover { color: var(--green); background: var(--white); }
.button-danger { color: var(--red); background: #fff; border-color: #ecc9c9; }
.button-danger:hover { color: #fff; background: var(--red); }
.hero .button { color: var(--green-dark); background: var(--lime); border-color: var(--lime); }
.hero .button:hover { background: #d7ef83; }
.button-group { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-card { min-height: 330px; padding: 35px; border: 1px solid rgba(255,255,255,.13); border-radius: 25px; background: rgba(255,255,255,.075); box-shadow: 0 25px 70px rgba(0,0,0,.2); transform: rotate(2deg); backdrop-filter: blur(12px); }
.hero-card-top { display: flex; justify-content: space-between; align-items: flex-start; color: rgba(255,255,255,.65); font-size: 13px; }
.hero-card-top strong { color: var(--white); font-size: 52px; line-height: 1; letter-spacing: -.05em; }
.pulse-bars { height: 105px; display: flex; align-items: flex-end; gap: 9px; margin: 42px 0 28px; }
.pulse-bars i { flex: 1; height: 34%; background: rgba(255,255,255,.18); border-radius: 4px 4px 0 0; }
.pulse-bars i:nth-child(2) { height: 53%; }.pulse-bars i:nth-child(3) { height: 42%; }.pulse-bars i:nth-child(4) { height: 75%; background: var(--lime); }.pulse-bars i:nth-child(5) { height: 62%; }.pulse-bars i:nth-child(6) { height: 83%; }.pulse-bars i:nth-child(7) { height: 72%; }
.people-row { display: flex; align-items: center; }
.people-row > span { width: 36px; height: 36px; display: grid; place-items: center; margin-left: -7px; border: 2px solid #1f5a45; border-radius: 50%; color: var(--green-dark); background: #d8e7df; font-size: 10px; font-weight: 700; }
.people-row > span:first-child { margin-left: 0; }
.people-row > span:last-of-type { background: var(--lime); }
.people-row small { margin-left: 13px; color: rgba(255,255,255,.55); font-size: 11px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: 40px; line-height: 1.1; letter-spacing: -.04em; }
.section-heading p { max-width: 330px; margin: 0; color: var(--muted); }
.survey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.survey-card { min-height: 350px; padding: 28px; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.survey-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-index { position: absolute; right: 20px; top: 5px; color: #edf0ec; font: 800 62px/1 "Manrope"; }
.status-dot { display: flex; align-items: center; gap: 7px; margin-bottom: 25px; color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px #eff7d8; }
.survey-card h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; letter-spacing: -.025em; position: relative; }
.survey-card p { color: var(--muted); font-size: 14px; flex: 1; }
.card-meta { display: flex; gap: 18px; margin: 15px 0; color: var(--muted); font-size: 12px; }
.card-link { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); color: var(--green); font-weight: 700; font-size: 14px; }
.card-link span { font-size: 20px; transition: transform .2s; }
.card-link:hover span { transform: translateX(4px); }
.notice-mini { width: fit-content; padding: 5px 9px; margin-top: 10px; border-radius: 99px; color: #735b28; background: #f4ead3; font-size: 11px; font-weight: 700; }
.notice-mini + .card-link { margin-top: 9px; }
.trust-section { padding: 65px 0; color: var(--white); background: var(--ink); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px; }
.trust-grid > div { display: grid; grid-template-columns: 50px 1fr; }
.trust-grid strong { grid-row: span 2; color: var(--lime); font-size: 14px; }
.trust-grid h3 { margin: 0 0 5px; font-size: 17px; }
.trust-grid p { margin: 0; color: rgba(255,255,255,.55); font-size: 13px; }
.site-footer { padding: 24px 0; color: var(--muted); background: var(--white); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; }
.empty-state { padding: 70px 25px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state h3, .empty-state h2 { margin-bottom: 9px; font-size: 24px; }
.empty-state p { max-width: 500px; margin: 0 auto 24px; color: var(--muted); }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: var(--green); background: var(--green-soft); font: 700 22px "Manrope"; }

.toast { width: min(580px, calc(100% - 30px)); padding: 14px 18px; position: fixed; z-index: 100; top: 18px; left: 50%; transform: translateX(-50%); border-radius: 10px; color: #fff; box-shadow: var(--shadow); text-align: center; font-weight: 600; animation: toast-in .25s ease-out; }
.toast-success { background: var(--green); }.toast-error { background: #963f3f; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -15px); } }

.auth-body { min-height: 100vh; background: var(--white); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-panel { padding: clamp(40px, 7vw, 95px); }
.auth-visual { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: var(--green-dark); position: relative; overflow: hidden; }
.auth-visual::after { content: ""; width: 480px; height: 480px; position: absolute; right: -250px; bottom: -200px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.brand-light .brand-mark { color: var(--green-dark); background: var(--lime); }
.brand-light small { color: rgba(255,255,255,.55); }
.auth-visual h1 { max-width: 600px; margin-bottom: 22px; font-size: clamp(40px, 5vw, 66px); line-height: 1.07; letter-spacing: -.05em; }
.auth-visual p { max-width: 560px; color: rgba(255,255,255,.65); font-size: 17px; }
.eyebrow-light { color: var(--lime); }
.auth-visual > small { color: rgba(255,255,255,.45); }
.auth-form-panel { display: grid; place-items: center; }
.auth-form { width: min(440px, 100%); }
.auth-form h2 { margin-bottom: 8px; font-size: 34px; letter-spacing: -.04em; }
.auth-form > p { color: var(--muted); margin-bottom: 34px; }
.auth-form .button { margin-top: 12px; }
.auth-form .back-link { display: block; text-align: center; margin-top: 25px; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 19px; }
.field > span { color: #34483f; font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cfd8d1; border-radius: 9px; color: var(--ink); background: var(--white); outline: none; transition: border .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,77,.12); }
.field small { color: var(--muted); font-size: 11px; }
.field-wide { grid-column: 1 / -1; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.input-prefix { display: flex; align-items: center; border: 1px solid #cfd8d1; border-radius: 9px; background: #f5f7f4; overflow: hidden; }
.input-prefix:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,77,.12); }
.input-prefix > span { padding-left: 13px; color: var(--muted); font-size: 13px; }
.input-prefix input { border: 0; box-shadow: none !important; }
.back-link { display: inline-block; color: var(--muted); font-size: 13px; font-weight: 600; }
.back-link:hover { color: var(--green); }

.admin-hero { padding: 55px 0 42px; color: var(--white); background: var(--green-dark); }
.admin-hero-compact { padding-bottom: 30px; }
.admin-hero .back-link { color: rgba(255,255,255,.6); margin-bottom: 22px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.admin-heading .eyebrow { color: var(--lime); }
.admin-heading h1 { margin: 0 0 8px; font-size: clamp(36px, 5vw, 54px); line-height: 1.1; letter-spacing: -.045em; }
.admin-heading p { margin: 0; color: rgba(255,255,255,.62); }
.admin-heading .button-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.admin-heading .button-ghost:hover { color: var(--ink); }
.admin-hero .stats-row { margin-bottom: -85px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 38px; }
.stats-row > div { min-height: 110px; padding: 21px 24px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 15px 35px rgba(8,41,29,.13); }
.stats-row span { color: var(--muted); font-size: 12px; }
.stats-row strong { font-size: 31px; line-height: 1; letter-spacing: -.04em; }
.stats-row .stat-date { font-size: 15px; letter-spacing: 0; }
.admin-section { min-height: 50vh; padding-top: 80px; }
.admin-hero:has(.stats-row) + .admin-section { padding-top: 92px; }
.table-wrap { overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th { padding: 15px 18px; color: var(--muted); background: #f1f4ef; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
td { padding: 19px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td strong { display: block; }
td small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; }
.badge { display: inline-flex; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.badge-published { color: var(--green); background: var(--green-soft); }
.badge-draft { color: #735b28; background: #f4ead3; }
.badge-closed { color: #6a6f6b; background: #e8ebe8; }
.row-actions { display: flex; justify-content: flex-end; gap: 14px; color: var(--green); font-size: 12px; font-weight: 700; white-space: nowrap; }

.form-container { width: min(1320px, calc(100% - 40px)); }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 25px; align-items: start; }
.panel { padding: 28px; margin-bottom: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 24px rgba(23,50,39,.035); }
.panel > h2, .panel > h3 { margin-bottom: 9px; }
.panel > p { color: var(--muted); font-size: 14px; }
.panel-heading { display: flex; gap: 15px; margin-bottom: 26px; }
.panel-heading h2 { margin: 0 0 3px; font-size: 20px; letter-spacing: -.025em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.panel-heading-action { justify-content: space-between; align-items: center; }
.heading-group { display: flex; gap: 15px; }
.step-number { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); font: 700 13px "Manrope"; }
.sticky-panel { position: sticky; top: 20px; }
.sticky-panel hr { margin: 23px 0; border: 0; border-top: 1px solid var(--line); }
.sidebar-link { padding: 9px 0; display: flex; justify-content: space-between; color: var(--green); font-size: 13px; font-weight: 700; }

.questions-list { display: flex; flex-direction: column; gap: 18px; }
.questions-locked .questions-list, .questions-locked [data-add-question] { pointer-events: none; opacity: .62; }
.question-editor { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #fafbf8; }
.question-top { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.question-top strong { font-size: 13px; }
.drag-handle { color: #a9b4ad; cursor: grab; }
.question-top .icon-button { margin-left: auto; }
.icon-button { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 18px; }
.icon-button:hover { background: #edf1ec; }
.icon-button.danger:hover { color: var(--red); background: #f8e8e8; }
.question-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.check-field { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.check-field input { width: 18px; height: 18px; accent-color: var(--green); }
.options-list { display: flex; flex-direction: column; gap: 9px; }
.option-row { display: flex; align-items: center; gap: 10px; }
.option-dot { width: 16px; height: 16px; flex: 0 0 auto; border: 2px solid #aebbb4; border-radius: 50%; }
.option-row input { width: 100%; height: 41px; padding: 8px 11px; border: 1px solid #d7ded8; border-radius: 8px; background: #fff; outline: 0; }
.option-row input:focus { border-color: var(--green); }
.add-option { margin: 12px 0 0 26px; padding: 0; border: 0; color: var(--green); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.toggle-card { min-height: 78px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.toggle-card strong, .toggle-card small { display: block; }
.toggle-card small { color: var(--muted); margin-top: 4px; font-size: 12px; }
.toggle-card input { position: absolute; opacity: 0; }
.toggle { width: 44px; height: 24px; flex: 0 0 auto; padding: 3px; border-radius: 20px; background: #bec8c1; transition: background .2s; }
.toggle::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; }
.toggle-card input:checked + .toggle { background: var(--green); }
.toggle-card input:checked + .toggle::after { transform: translateX(20px); }
.code-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.code-settings.is-hidden { display: none; }
.code-reuse-toggle { grid-column: 1 / -1; }
.info-box, .warning-box { grid-column: 1 / -1; padding: 13px 15px; border-radius: 9px; color: #315e4d; background: var(--green-soft); font-size: 12px; }
.warning-box { margin-bottom: 15px; color: #715527; background: #f8edcf; }
.danger-zone { padding: 21px 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid #e8caca; border-radius: var(--radius); background: #fffafa; }
.danger-zone strong, .danger-zone span { display: block; }
.danger-zone span { color: var(--muted); font-size: 12px; margin-top: 3px; }

.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 25px; align-items: start; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.inline-form .field { margin: 0; }
.codes-list { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.code-row { padding: 12px 14px; display: grid; grid-template-columns: 120px 1fr; gap: 12px; border-bottom: 1px solid var(--line); }
.code-row:last-child { border-bottom: 0; }
.code-row code { color: var(--green); font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.code-row span { color: var(--muted); font-size: 12px; text-align: right; }
.code-used { opacity: .5; background: #f3f4f1; }
.empty-inline { padding: 24px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; }

.report-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; }
.bar-chart { min-height: 220px; padding-top: 20px; display: flex; align-items: end; gap: 10px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.chart-column { min-width: 45px; height: 210px; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.chart-value { color: var(--green); font-size: 11px; font-weight: 700; }
.chart-bar { width: min(30px, 70%); min-height: 8px; border-radius: 5px 5px 0 0; background: var(--green); }
.chart-column span { color: var(--muted); font-size: 10px; margin: 5px 0 8px; }
.hour-list { max-height: 235px; overflow: auto; }
.hour-list div { padding: 11px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 12px; }
.hour-list div:last-child { border: 0; }
.hour-list span { color: var(--muted); }
.results-heading { margin: 48px 0 23px; }
.results-heading h2 { font-size: 31px; letter-spacing: -.035em; }
.question-results { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.result-title { display: flex; gap: 13px; margin-bottom: 25px; }
.result-title > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); font-weight: 700; font-size: 12px; }
.result-title h3 { margin: 1px 0 3px; font-size: 17px; }
.result-title small { color: var(--muted); font-size: 11px; }
.result-row { margin-bottom: 17px; }
.result-label { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 7px; font-size: 13px; }
.result-label strong { white-space: nowrap; }
.result-label small { color: var(--muted); font-family: inherit; font-weight: 500; }
.progress { height: 8px; overflow: hidden; border-radius: 10px; background: #e9eee9; }
.progress i { display: block; height: 100%; border-radius: 10px; background: var(--green); }

.survey-hero { padding: 70px 0 62px; color: #fff; background: var(--green-dark); text-align: center; }
.survey-hero .eyebrow { color: var(--lime); }
.survey-hero h1 { margin-bottom: 20px; font-size: clamp(35px, 6vw, 54px); line-height: 1.12; letter-spacing: -.045em; }
.survey-hero p { color: rgba(255,255,255,.7); font-size: 17px; }
.survey-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 27px; }
.survey-meta span { padding: 6px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; color: rgba(255,255,255,.68); font-size: 11px; }
.survey-form-section { padding-top: 45px; }
.code-entry-card { padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-align: center; box-shadow: var(--shadow); }
.code-entry-card h2 { margin-bottom: 9px; font-size: 29px; letter-spacing: -.035em; }
.code-entry-card > p { max-width: 480px; margin: 0 auto 25px; color: var(--muted); }
.code-entry-card > small { display: block; margin-top: 19px; color: var(--muted); font-size: 11px; }
.code-entry-form { width: min(430px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 10px; text-align: left; }
.code-entry-form label { grid-column: 1 / -1; color: #34483f; font-size: 13px; font-weight: 700; }
.code-entry-form input { min-width: 0; height: 53px; padding: 11px 16px; border: 1px solid #cfd8d1; border-radius: 10px; color: var(--ink); background: #fff; outline: 0; font: 800 18px "Manrope"; letter-spacing: .14em; text-transform: uppercase; }
.code-entry-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,77,.12); }
.code-banner { padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; border: 1px solid #cce0d5; border-radius: 12px; background: var(--green-soft); }
.code-banner span { color: var(--muted); font-size: 12px; }.code-banner strong { color: var(--green); letter-spacing: .12em; }.code-banner small { margin-left: auto; color: var(--muted); font-size: 11px; }
.public-survey-form { display: flex; flex-direction: column; gap: 20px; }
.public-question { padding: 30px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.public-question legend { width: 100%; padding: 0; display: flex; align-items: center; gap: 13px; }
.public-question legend > span { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); font-weight: 700; font-size: 12px; }
.public-question legend strong { font-size: 18px; }
.public-question legend em { margin-left: auto; color: var(--orange); font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.public-question > small { display: block; margin: 8px 0 20px 45px; color: var(--muted); font-size: 11px; }
.answer-list { display: flex; flex-direction: column; gap: 9px; }
.answer-card { min-height: 55px; padding: 12px 15px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; transition: background .15s, border .15s; }
.answer-card:hover { border-color: #a9cabb; background: #f5faf7; }
.answer-card input { position: absolute; opacity: 0; }
.answer-control { width: 19px; height: 19px; flex: 0 0 auto; border: 2px solid #aab7b0; border-radius: 50%; position: relative; }
.answer-card input[type="checkbox"] + .answer-control { border-radius: 5px; }
.answer-card input:checked + .answer-control { border-color: var(--green); background: var(--green); }
.answer-card input:checked + .answer-control::after { content: ""; width: 7px; height: 4px; position: absolute; left: 4px; top: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.answer-card:has(input:checked) { border-color: var(--green); background: #f2f9f5; }
.submit-panel { padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: var(--ink); border-radius: var(--radius); }
.submit-panel strong, .submit-panel span { display: block; }
.submit-panel span { color: rgba(255,255,255,.58); margin-top: 4px; font-size: 12px; }
.submit-panel .button { color: var(--green-dark); border-color: var(--lime); background: var(--lime); }
.thank-you { min-height: calc(100vh - 160px); padding: 70px 20px; display: grid; place-items: center; background: var(--green-dark); }
.thank-card { width: min(620px, 100%); padding: 60px; border-radius: 25px; background: var(--white); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.thank-card h1 { margin-bottom: 15px; font-size: 39px; letter-spacing: -.045em; }
.thank-card p { color: var(--muted); margin-bottom: 28px; }
.success-mark { width: 70px; height: 70px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font: 700 30px "Manrope"; }
.error-mark { color: var(--red); background: #f7e2e2; }

@media (max-width: 950px) {
    .hero-grid { grid-template-columns: 1fr; gap: 45px; }
    .hero-card { display: none; }
    .survey-grid { grid-template-columns: 1fr 1fr; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 440px; }
    .auth-form-panel { min-height: 650px; }
    .editor-layout, .split-layout { grid-template-columns: 1fr; }
    .editor-sidebar { order: -1; }
    .sticky-panel { position: static; }
    .report-grid, .question-results { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .container, .narrow, .form-container { width: min(100% - 24px, 1180px); }
    .section { padding: 58px 0; }
    .site-header { height: auto; padding: 15px 0; }
    .header-inner { align-items: flex-start; }
    .main-nav { display: block; text-align: right; }
    .main-nav form { margin-top: 6px; }
    .hero { min-height: 590px; }
    .hero-grid { padding: 65px 0; }
    .hero h1 { font-size: 43px; }
    .section-heading, .admin-heading { align-items: flex-start; flex-direction: column; }
    .survey-grid, .trust-grid { grid-template-columns: 1fr; }
    .trust-grid { gap: 35px; }
    .footer-inner { flex-direction: column; gap: 5px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .admin-hero .stats-row { margin-bottom: -140px; }
    .admin-hero:has(.stats-row) + .admin-section { padding-top: 155px; }
    .stats-row > div { min-height: 90px; padding: 16px; }
    .stats-row strong { font-size: 25px; }
    .field-grid, .question-settings, .code-settings { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .panel { padding: 20px; }
    .panel-heading-action { align-items: flex-start; flex-direction: column; }
    .danger-zone, .submit-panel { align-items: stretch; flex-direction: column; }
    .public-question { padding: 21px 17px; }
    .public-question legend { align-items: flex-start; }
    .public-question legend em { display: none; }
    .public-question > small { margin-left: 0; }
    .code-banner { align-items: flex-start; flex-wrap: wrap; }
    .code-banner small { width: 100%; margin: 0; }
    .code-entry-card { padding: 34px 20px; }
    .code-entry-form { grid-template-columns: 1fr; }
    .code-entry-form label { grid-column: auto; }
    .thank-card { padding: 45px 25px; }
}

@media print {
    .site-header, .site-footer, .button { display: none !important; }
    body { background: #fff; }
    .admin-hero { color: var(--ink); background: #fff; padding: 20px 0; }
    .admin-heading .eyebrow { color: var(--green); }
    .admin-heading p { color: var(--muted); }
    .admin-hero .stats-row { margin-bottom: 0; }
    .stats-row > div, .panel { box-shadow: none; }
    .admin-section { padding: 20px 0; }
    .report-grid { grid-template-columns: 1.3fr .7fr; }
    .question-results { grid-template-columns: 1fr 1fr; }
}
