:root {
    --navy: #8f11a8;
    --navy-dark: #641178;
    --gold: #decda0;
    --cream: #fafafa;
    --ink: #56585e;
    --muted: #72747a;
    --line: #e4e0e5;
    --white: #ffffff;
    --success: #226b54;
    font-family: Inter, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); line-height: 1.55; }
.site-header { background: var(--white); color: var(--ink); border-bottom: 4px solid var(--gold); }
.header-inner, .survey-shell { width: min(100% - 32px, 1040px); margin: 0 auto; }
.header-inner { padding: 16px 0 14px; }
.brand-logo { display: block; width: min(244px, 68vw); height: auto; }
.initiative { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.survey-shell { padding: 32px 0 54px; }
.intro-card, .survey-section, .progress-wrap, .admin-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 24px rgba(25, 45, 60, .06); }
.intro-card, .survey-section, .admin-card { padding: clamp(22px, 4vw, 38px); }
.eyebrow, .section-kicker { margin: 0 0 6px; color: var(--navy); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); font-family: Outfit, Inter, Arial, ui-sans-serif, system-ui, sans-serif; font-weight: 600; line-height: 1.2; }
h1 { margin: 4px 0 18px; font-size: clamp(2rem, 5vw, 3rem); }
h2 { margin: 4px 0 22px; font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { margin: 0 0 16px; }
.confidentiality { margin-top: 22px; padding: 16px 18px; border-left: 4px solid var(--gold); background: #fbf8ef; }
.confidentiality p { margin: 4px 0 0; }
.compact { margin: 0 0 20px; }
.required, .error { color: #a33232; }
.required-note { color: var(--muted); font-size: .9rem; }
.progress-wrap { margin: 20px 0; padding: 15px 18px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--navy); font-size: .88rem; font-weight: 750; }
.progress-track { height: 8px; overflow: hidden; border-radius: 20px; background: #e8edef; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--navy)); transition: width .2s ease; }
.survey-section { display: none; }
.survey-section.active { display: block; }
.question { margin: 0; padding: 22px 0; border: 0; border-top: 1px solid var(--line); }
.question legend { width: 100%; padding: 0 0 12px; font-weight: 720; }
.rating-grid { display: grid; gap: 8px; }
.likert-grid { grid-template-columns: repeat(5, 1fr); }
.rating-option, .pulse-option, .checkbox-option { cursor: pointer; }
.rating-option { display: grid; gap: 5px; align-content: start; min-height: 92px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); text-align: center; font-size: .78rem; }
.rating-option:has(input:checked), .pulse-option:has(input:checked), .checkbox-option:has(input:checked) { border-color: var(--navy); background: #fbf3fc; color: var(--navy-dark); }
.rating-number { color: var(--navy); font-size: 1.08rem; font-weight: 800; }
.pulse-grid { grid-template-columns: repeat(10, 1fr); }
.pulse-option { padding: 9px 4px; border: 1px solid var(--line); border-radius: 7px; text-align: center; }
.pulse-option input, .rating-option input { margin: 0 auto; accent-color: var(--navy); }
.scale-note { margin: -4px 0 10px; color: var(--muted); font-size: .84rem; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkbox-option { display: flex; gap: 9px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
input[type="checkbox"] { accent-color: var(--navy); }
textarea, input[type="text"], input[type="password"], select { width: 100%; padding: 12px; border: 1px solid #b8c0cc; border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; }
textarea:focus, input:focus, select:focus { outline: 3px solid rgba(184, 145, 82, .22); border-color: var(--gold); }
.select-question { display: block; margin-top: 18px; font-weight: 720; }
.select-question select { margin-top: 7px; font-weight: 400; }
.section-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.button { display: inline-block; padding: 12px 20px; border: 1px solid var(--navy); border-radius: 50px; background: var(--navy); color: var(--white); cursor: pointer; font: inherit; font-weight: 760; text-decoration: none; }
.button:hover { background: var(--navy-dark); }
.button.secondary { background: var(--white); color: var(--navy); }
.site-footer { padding: 20px; background: var(--navy-dark); color: #fafafa; text-align: center; font-size: .85rem; }
.thank-you { max-width: 680px; margin: 70px auto; text-align: center; }
.admin-shell { width: min(100% - 32px, 1200px); margin: 30px auto 55px; }
.admin-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.metric { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.metric strong { display: block; color: var(--navy); font-size: 1.7rem; }
.report-section { margin-top: 18px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--navy); font-size: .86rem; }
.responses { display: grid; gap: 10px; padding: 0; list-style: none; }
.responses li { padding: 12px; border-left: 3px solid var(--gold); background: #fafafa; white-space: pre-wrap; }
.empty { color: var(--muted); font-style: italic; }

@media (max-width: 700px) {
    .likert-grid { grid-template-columns: 1fr; }
    .rating-option { display: flex; min-height: 0; align-items: center; gap: 10px; text-align: left; }
    .rating-option input { margin: 0; }
    .pulse-grid { grid-template-columns: repeat(5, 1fr); }
    .checkbox-grid { grid-template-columns: 1fr; }
    .section-actions { justify-content: stretch; }
    .section-actions .button { flex: 1; }
    .admin-card { overflow-x: auto; }
}
