@font-face {
    font-family: "Roboto";
    src: url("./fonts/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("./fonts/Roboto-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("./fonts/Roboto-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("./fonts/CormorantGaramond-SemiBoldItalic.ttf") format("truetype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #032f4b;
    --bg-strong: #00263d;
    --panel: rgba(250, 246, 239, 0.96);
    --panel-soft: rgba(255, 255, 255, 0.08);
    --text: #07263f;
    --muted: #557086;
    --line: rgba(7, 38, 63, 0.1);
    --line-strong: rgba(255, 255, 255, 0.12);
    --accent: #f3ee3f;
    --accent-soft: #82bce1;
    --accent-warm: #fff6ec;
    --success: #2e7757;
    --error: #b94a48;
    --shadow: 0 18px 42px rgba(0, 16, 27, 0.2);
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Roboto", "Helvetica Neue", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-body);
    background: linear-gradient(135deg, #032f4b 0%, #02263d 100%);
}

body.is-intro {
    background: linear-gradient(180deg, #f7f2ea 0%, #f4eee4 100%);
}

body.is-modal-open {
    overflow: hidden;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 46px;
    padding: 44px 24px 56px;
    text-align: center;
    background: linear-gradient(180deg, #f7f2ea 0%, #f4eee4 100%);
}

.intro-screen[hidden] {
    display: none;
}

.intro-brand {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.intro-logo {
    display: block;
    width: auto;
    max-width: 100%;
}

.intro-logo-anner {
    height: 34px;
    transform: translateY(-3px);
}

.intro-logo-vgbe {
    height: 44px;
}

.intro-copy {
    width: min(920px, 100%);
    display: grid;
    gap: 20px;
}

.intro-copy h1 {
    margin: 0;
    max-width: 22ch;
    margin-inline: auto;
    margin-bottom: 10px;
    font-size: clamp(1.4rem, 2.55vw, 2.05rem);
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: var(--bg-strong);
}

.intro-copy p {
    margin: 0;
    max-width: 54ch;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(7, 38, 63, 0.82);
}

.intro-copy .intro-lead {
    max-width: 56ch;
    font-size: 1.03rem;
    line-height: 1.68;
    color: rgba(7, 38, 63, 0.88);
}

.intro-copy .intro-meta {
    max-width: 54ch;
    padding: 0;
    background: transparent;
    color: rgba(7, 38, 63, 0.82);
    font-weight: 400;
    line-height: 1.65;
}

.intro-copy p + p {
    margin-top: 4px;
}

.intro-start {
    min-width: 180px;
}

.intro-legal {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.84rem;
}

.intro-legal a {
    color: rgba(7, 38, 63, 0.54);
    text-decoration: none;
    transition: color 160ms ease, opacity 160ms ease;
}

.intro-legal a:hover {
    color: rgba(7, 38, 63, 0.88);
}

.survey-panel {
    padding: 24px;
}

.survey-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(720px, calc(100vw - 48px));
    margin: 0 auto;
    padding-top: 20px;
}

.brand-lockup,
.hero-copy {
    position: fixed;
    z-index: 2;
}

body.is-intro .brand-lockup,
body.is-intro .hero-copy,
body.is-intro .survey-panel {
    visibility: hidden;
}

.brand-lockup {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    width: fit-content;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(250, 246, 239, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    right: 24px;
    bottom: 24px;
    margin: 0;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: 100%;
}

.brand-logo-anner {
    height: 28px;
    transform: translateY(-2px);
    margin-bottom: 3px;
}

.brand-logo-vgbe {
    height: 36px;
}

.brand-divider {
    width: 1px;
    height: 28px;
    background: rgba(7, 38, 63, 0.14);
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.73rem;
    color: inherit;
    opacity: 0.72;
}

.hero-copy .eyebrow {
    color: rgba(255, 248, 240, 0.82);
    opacity: 1;
}

.hero-copy h1,
.completion-card h2,
.admin-login-card h1,
.admin-topbar h1 {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    line-height: 0.98;
}

.hero-copy h1 {
    max-width: 8ch;
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    letter-spacing: -0.03em;
    color: rgba(255, 248, 240, 0.98);
}

.hero-copy h1 span {
    color: var(--accent);
}

.hero-copy {
    left: 24px;
    bottom: 24px;
    margin: 0;
    text-align: left;
    max-width: 500px;
}

.toast,
.admin-login-card,
.stat-card,
.chart-card,
.responses-panel,
.response-card {
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.progress-percent,
.stat-number {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
}

.topbar,
.topbar-progress,
.nav-row,
.admin-topbar,
.response-head,
.bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.autosave-status {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.82rem;
    line-height: 1;
    text-align: right;
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
    opacity: 0.62;
}

.autosave-status.is-refreshing {
    opacity: 0.82;
    transform: translateY(-1px);
}

.autosave-status[data-mode="saving"] {
    color: rgba(255, 255, 255, 0.62);
}

.autosave-status[data-mode="saved"] {
    color: rgba(214, 239, 255, 0.58);
}

.autosave-status[data-mode="error"] {
    color: rgba(255, 219, 217, 0.7);
}

.completion-card,
.admin-login-card,
.stat-card,
.chart-card,
.responses-panel,
.response-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
}

.completion-card,
.responses-panel,
.response-card {
    padding: 22px;
}

.progress-track,
.bar-track {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-track {
    width: min(200px, 32vw);
    height: 6px;
}

.progress-bar,
.bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #fff8b5);
    transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 14px;
}

.topbar-progress {
    gap: 12px;
}

.progress-step-label {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar .progress-percent {
    color: #fff;
    font-size: 0.9rem;
}

.step-meta h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.step-meta-copy,
.admin-login-card p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.94rem;
    line-height: 1.4;
}

.completion-card p {
    margin: 4px 0 0;
    color: rgba(7, 38, 63, 0.78);
    font-size: 0.94rem;
    line-height: 1.4;
}

.completion-card .eyebrow {
    color: rgba(7, 38, 63, 0.32);
    opacity: 1;
}

.step-meta {
    margin-bottom: 14px;
}

.step-shell {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 210ms ease, transform 210ms ease;
}

.step-shell.is-active {
    opacity: 1;
    transform: translateY(0);
}

.step-shell.is-static,
.step-shell.is-static .question-card {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
}

.question-list {
    display: grid;
    gap: 8px;
}

.question-card {
    --card-index: 0;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    opacity: 0;
    transform: translateY(12px);
    animation: cardIn 260ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--card-index) * 34ms);
}

.question-head h3,
.chart-card h2,
.responses-panel h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.34;
}

.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.choice-chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.choice-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    background: #fffdf8;
    border: 1px solid rgba(7, 38, 63, 0.12);
    font-size: 0.94rem;
    line-height: 1.15;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
    cursor: pointer;
}

.choice-chip:hover span {
    background: rgba(130, 188, 225, 0.18);
    border-color: rgba(7, 38, 63, 0.28);
}

.choice-chip input:checked + span {
    background: var(--bg-strong);
    color: #fff;
    border-color: var(--bg-strong);
    transform: translateY(-1px) scale(1.01);
}

.choice-chip span.is-pressed {
    animation: chipSnap 180ms ease;
}

textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    border: 1px solid rgba(7, 38, 63, 0.14);
    border-radius: 14px;
    margin-top: 12px;
    padding: 12px 14px;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.86);
}

textarea {
    resize: vertical;
    min-height: 108px;
}

.inline-note,
.expandable-panel {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transition: grid-template-rows 220ms ease, opacity 180ms ease, margin-top 220ms ease;
}

.inline-note-inner,
.expandable-panel-inner {
    overflow: hidden;
    margin-top: 10px;
}

.inline-note.is-visible,
.expandable-note.is-open .expandable-panel {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 10px;
}

.contact-group {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.contact-field {
    display: grid;
    gap: 6px;
}

.contact-field span {
    font-size: 0.9rem;
    color: var(--muted);
}

.inline-reminder-btn {
    appearance: none;
    border: 1px solid rgba(7, 38, 63, 0.14);
    background: #fff;
    color: var(--bg-strong);
    border-radius: 16px;
    min-height: 36px;
    padding: 8px 13px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.15;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.inline-reminder-btn.is-secondary {
    background: rgba(7, 38, 63, 0.06);
    color: var(--bg-strong);
    border-color: rgba(7, 38, 63, 0.12);
}

.inline-reminder-btn:hover {
    border-color: rgba(7, 38, 63, 0.24);
    transform: translateY(-1px);
}

.action-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    min-height: 36px;
    padding: 8px 13px 8px 10px;
    border-radius: 16px;
    border: 1px solid rgba(7, 38, 63, 0.12);
    background: rgba(7, 38, 63, 0.05);
    color: var(--bg-strong);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.15;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.action-toggle:hover {
    background: rgba(7, 38, 63, 0.09);
    border-color: rgba(7, 38, 63, 0.22);
    transform: translateY(-1px);
}

.action-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-strong);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}

.expandable-note.is-open .action-toggle {
    background: var(--bg-strong);
    color: #fff;
    border-color: var(--bg-strong);
}

.expandable-note.is-open .action-toggle .action-toggle-icon {
    background: #fff;
    color: var(--bg-strong);
}

.question-card.is-pending {
    border-color: rgba(243, 238, 63, 0.9);
    box-shadow: 0 0 0 2px rgba(243, 238, 63, 0.18);
}

.question-card.is-pending .choice-chip span,
.question-card.is-pending .action-toggle,
.question-card.is-pending textarea,
.question-card.is-pending input[type="text"],
.question-card.is-pending input[type="email"] {
    animation: pendingPulse 900ms ease 2;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chipSnap {
    0% {
        transform: translateY(0) scale(0.985);
    }
    100% {
        transform: translateY(-1px) scale(1.01);
    }
}

@keyframes pendingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 238, 63, 0);
    }
    35% {
        box-shadow: 0 0 0 4px rgba(243, 238, 63, 0.22);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(243, 238, 63, 0);
    }
}

@keyframes reminderIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 16px;
    min-height: 44px;
    padding: 9px 15px;
    font: inherit;
    font-weight: 600;
    line-height: 1.15;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding-inline: 16px;
    font-size: 0.97rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}

.btn-icon-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--bg-strong);
}

.btn-icon-circle img {
    display: block;
    width: 10px;
    height: 10px;
}

.btn-primary,
.btn-toast-primary {
    background: var(--accent);
    color: var(--bg-strong);
    box-shadow: 0 8px 22px rgba(243, 238, 63, 0.16);
}

.btn-secondary,
.btn-toast-secondary {
    background: rgba(7, 38, 63, 0.08);
    color: var(--bg-strong);
    border: 1px solid rgba(7, 38, 63, 0.12);
    box-shadow: 0 8px 18px rgba(7, 38, 63, 0.06);
}

.btn-primary:hover,
.btn-toast-primary:hover,
.btn-secondary:hover,
.btn-toast-secondary:hover,
.inline-reminder-btn:hover,
.action-toggle:hover {
    transform: translateY(-1px);
}

.btn-primary:hover,
.btn-toast-primary:hover {
    background: #fff14e;
    box-shadow: 0 12px 26px rgba(243, 238, 63, 0.24);
}

.btn-secondary:hover,
.btn-toast-secondary:hover {
    border-color: rgba(7, 38, 63, 0.22);
    background: rgba(7, 38, 63, 0.12);
    box-shadow: 0 10px 22px rgba(7, 38, 63, 0.1);
}

.btn-quiet {
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.84rem;
    font-weight: 400;
    border: 0;
    opacity: 0.68;
    transition: color 160ms ease, opacity 160ms ease;
}

.btn-quiet:hover {
    color: rgba(255, 255, 255, 0.88);
    opacity: 1;
    text-decoration: underline;
}

.survey-panel .btn-secondary,
.toast .btn-toast-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 248, 240, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.survey-panel .btn-secondary .btn-icon-circle {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.survey-panel .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 16, 27, 0.1);
}

.survey-panel .btn-secondary:hover .btn-icon-circle {
    background: rgba(255, 255, 255, 0.3);
}

.survey-panel .btn-primary {
    font-weight: 500;
    letter-spacing: -0.01em;
}

.survey-panel .btn-primary:hover {
    background: #efe63d;
}

.nav-row {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 220px));
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.nav-row #prevButton {
    justify-self: start;
}

.nav-row #nextButton {
    justify-self: end;
}

.completion-actions {
    margin-top: 14px;
}

.nav-quiet-row {
    margin-top: 18px;
    display: flex;
    justify-content: flex-start;
    order: 2;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 10px;
    z-index: 30;
}

.legal-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #f7f2ea 0%, #f4eee4 100%);
    color: var(--bg-strong);
}

.legal-page {
    width: min(920px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.legal-head {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.legal-head h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.08;
}

.legal-back {
    color: rgba(7, 38, 63, 0.62);
    text-decoration: none;
    font-size: 0.92rem;
}

.legal-back:hover {
    color: rgba(7, 38, 63, 0.9);
}

.legal-card {
    padding: 20px 22px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(7, 38, 63, 0.08);
}

.legal-card h2 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.2;
}

.legal-card p,
.legal-card li {
    font-size: 0.98rem;
    line-height: 1.62;
}

.legal-card p {
    margin: 0 0 10px;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card a {
    color: inherit;
}

.legal-list {
    margin: 0;
    padding-left: 18px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 17, 28, 0.5);
    backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: min(460px, 100%);
    padding: 22px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
}

.modal-card h2 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.modal-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.toast {
    width: min(360px, calc(100vw - 32px));
    padding: 16px;
    background: rgba(7, 38, 63, 0.96);
    color: #fff8f0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: reminderIn 180ms ease;
}

.toast p {
    margin: 0;
    line-height: 1.45;
}

.toast-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.admin-body,
.admin-dashboard-body {
    min-height: 100vh;
    padding: 32px;
}

.admin-login-card {
    max-width: 520px;
    margin: 8vh auto 0;
    padding: 32px;
}

.admin-login-form {
    display: grid;
    gap: 16px;
}

.admin-login-form label,
.expandable-panel label {
    display: grid;
    gap: 8px;
}

.admin-error {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(185, 74, 72, 0.1);
    color: var(--error);
}

.admin-dashboard {
    display: grid;
    gap: 22px;
}

.stats-grid,
.chart-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chart-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stat-card,
.chart-card {
    padding: 24px;
}

.stat-card {
    display: grid;
    gap: 6px;
    background: rgba(255, 255, 255, 0.82);
}

.stat-label {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-note {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.chart-step {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bar-chart {
    display: grid;
    gap: 10px;
}

.bar-row {
    align-items: center;
    grid-template-columns: minmax(120px, 1.2fr) minmax(0, 2fr) 38px;
    display: grid;
}

.bar-track {
    height: 12px;
}

.responses-panel {
    display: grid;
    gap: 18px;
}

.responses-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.responses-panel-head p,
.admin-topbar-text {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.admin-topbar-copy {
    max-width: 760px;
}

.admin-topbar-actions {
    display: flex;
    gap: 10px;
}

.chart-card {
    background: rgba(255, 255, 255, 0.8);
}

.response-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.86);
}

.response-head-copy {
    display: grid;
    gap: 8px;
}

.response-id {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.response-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.response-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(7, 38, 63, 0.06);
    border: 1px solid rgba(7, 38, 63, 0.08);
    color: var(--bg-strong);
    font-size: 0.84rem;
    line-height: 1.1;
}

.response-badge.is-submitted {
    background: rgba(46, 119, 87, 0.12);
    border-color: rgba(46, 119, 87, 0.16);
    color: #225a42;
}

.response-badge.is-draft {
    background: rgba(130, 188, 225, 0.18);
    border-color: rgba(130, 188, 225, 0.28);
}

.response-date {
    color: var(--muted);
    font-size: 0.88rem;
}

.response-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.response-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.response-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.86rem;
}

.response-value {
    line-height: 1.55;
    word-break: break-word;
}

@media (max-width: 980px) {
    .survey-panel,
    .admin-body,
    .admin-dashboard-body {
        padding: 18px;
    }

    .page-shell {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-copy h1 {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

}

@media (max-width: 640px) {
    .topbar,
    .topbar-progress,
    .admin-topbar,
    .response-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid,
    .response-grid {
        grid-template-columns: 1fr;
    }

    .btn,
    .choice-chip span {
        width: 100%;
        justify-content: center;
    }

    .nav-row {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 12px;
    }

    .nav-row .btn {
        width: 100%;
    }

    .nav-quiet-row {
        width: 100%;
    }

    .btn-quiet {
        text-align: left;
    }

    .brand-lockup {
        display: none;
    }

    .brand-divider {
        display: none;
    }

    .brand-logo-anner {
        height: 22px;
    }

    .brand-logo-vgbe {
        height: 28px;
    }

    .hero-copy {
        display: none;
    }

    .survey-panel {
        width: min(100vw - 20px, 720px);
    }

    .intro-screen {
        gap: 28px;
        padding: 32px 18px 40px;
    }

    .intro-brand {
        gap: 18px;
        width: min(100%, 420px);
    }

    .intro-logo-anner {
        height: 32px;
        transform: translateY(-2px);
    }

    .intro-logo-vgbe {
        height: 40px;
    }

    .intro-copy {
        gap: 14px;
    }

    .intro-copy h1 {
        font-size: clamp(1.35rem, 5.7vw, 1.8rem);
        max-width: 24ch;
        margin-bottom: 12px;
    }

    .intro-copy p {
        font-size: 0.98rem;
        line-height: 1.58;
    }

    .intro-copy .intro-lead {
        font-size: 0.98rem;
        line-height: 1.62;
    }

    .intro-copy .intro-meta {
        max-width: 100%;
    }

    .modal-actions {
        grid-template-columns: 1fr;
    }

    .intro-legal {
        bottom: 16px;
        gap: 14px;
        font-size: 0.8rem;
    }

    .legal-page {
        width: min(100vw - 20px, 920px);
        padding: 20px 0 40px;
    }

    .legal-card {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}
