:root {
    --survey-blue: #003399;
    --survey-blue-dark: #002266;
    --survey-light-blue: #9faee5;
    --survey-yellow: #ffcc00;
    --survey-ink: #152238;
    --survey-muted: #5a6780;
    --survey-line: #d9e0ef;
    --survey-bg: #eef2f9;
    --survey-error: #a92323;
    --survey-ok: #08734d;
    --survey-white: #fff;
    --survey-shadow: 0 12px 40px rgba(0, 38, 102, 0.08);
    --survey-radius: 16px;
    --survey-content: 1120px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--survey-ink);
    background:
        radial-gradient(ellipse 80% 50% at 100% -10%, rgba(159, 174, 229, 0.35), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(0, 51, 153, 0.06), transparent 50%),
        var(--survey-bg);
    font-family: "Montserrat", "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }

.survey-skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    color: #fff;
    background: var(--survey-blue);
    border-radius: 6px;
    transform: translateY(-160%);
}
.survey-skip-link:focus { transform: translateY(0); }

/* —— Header —— */
.survey-app { min-height: 100vh; display: flex; flex-direction: column; }
.survey-header {
    background: #fff;
    border-bottom: 4px solid var(--survey-yellow);
    box-shadow: 0 1px 0 rgba(0, 51, 153, 0.04);
}
.survey-brand-row {
    width: min(var(--survey-content), calc(100% - 40px));
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}
.survey-programme-logo-wrap {
    display: flex;
    align-items: center;
    flex: 1 1 240px;
    min-width: 0;
}
.survey-programme-logo {
    display: block;
    width: auto;
    max-width: min(340px, 100%);
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}
.survey-project-logo {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.survey-language {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #eef1fa;
    border-radius: 10px;
    flex: 0 0 auto;
}
.survey-language button {
    min-width: 44px;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    color: var(--survey-blue);
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
}
.survey-language button:hover { background: #fff; }
.survey-language button[aria-pressed="true"] {
    color: #fff;
    background: var(--survey-blue);
}

.survey-title-block {
    padding: 28px max(20px, calc((100% - var(--survey-content)) / 2 + 4px)) 32px;
    color: #fff;
    background:
        linear-gradient(125deg, var(--survey-blue-dark) 0%, var(--survey-blue) 55%, #1a4db8 100%);
}
.survey-title-block h1 {
    max-width: 40rem;
    margin: 6px 0 10px;
    font-size: clamp(1.45rem, 3.2vw, 2.15rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.survey-kicker {
    margin: 0;
    color: var(--survey-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.survey-title-block .survey-kicker { color: var(--survey-yellow); }
.survey-subtitle {
    margin: 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 500;
    line-height: 1.45;
}
.survey-deadline {
    margin: 14px 0 0;
    max-width: 40rem;
    padding: 10px 14px;
    color: #fff8e0;
    background: rgba(0, 0, 0, 0.18);
    border-left: 3px solid var(--survey-yellow);
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.survey-test-banner {
    padding: 10px 16px;
    color: #5c3b00;
    background: #fff3cd;
    border-bottom: 1px solid #f0d78c;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
}

/* —— Main —— */
.survey-main {
    width: min(var(--survey-content), calc(100% - 40px));
    flex: 1;
    min-height: 50vh;
    margin: 28px auto 40px;
    outline: none;
}
.survey-panel {
    padding: clamp(22px, 3.5vw, 36px);
    background: #fff;
    border: 1px solid var(--survey-line);
    border-radius: var(--survey-radius);
    box-shadow: var(--survey-shadow);
}
.survey-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 160px;
    color: var(--survey-muted);
}
.survey-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid var(--survey-light-blue);
    border-top-color: var(--survey-blue);
    border-radius: 50%;
    animation: survey-spin 0.8s linear infinite;
}
@keyframes survey-spin { to { transform: rotate(360deg); } }

/* —— Landing / profiles —— */
.survey-intro { max-width: 40rem; margin-bottom: 28px; }
.survey-intro h2 {
    margin: 0 0 10px;
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.survey-intro p { margin: 0; color: var(--survey-muted); font-size: 1rem; }

.survey-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.survey-profile-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 188px;
    padding: 22px 20px 20px;
    text-align: left;
    color: var(--survey-ink);
    background: #fff;
    border: 1.5px solid var(--survey-line);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.survey-profile-card:hover,
.survey-profile-card:focus-visible {
    border-color: var(--survey-blue);
    box-shadow: 0 10px 28px rgba(0, 51, 153, 0.12);
    transform: translateY(-2px);
}
.survey-profile-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    color: var(--survey-blue);
    background: linear-gradient(145deg, #edf1ff, #e2e8fc);
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.survey-profile-card strong {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    font-size: 1.02rem;
    line-height: 1.3;
    font-weight: 800;
}
.survey-profile-duration {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    color: var(--survey-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.survey-profile-card > span:last-child,
.survey-profile-desc {
    display: block;
    width: 100%;
    margin-top: auto;
    color: var(--survey-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 500;
}

.survey-draft-resume {
    margin: 0 0 20px;
    padding: 16px 18px;
    background: #f3f6ff;
    border: 1px solid var(--survey-light-blue);
    border-radius: 12px;
}
.survey-draft-resume p { margin: 0 0 12px; font-weight: 600; }

.survey-authority-gate {
    margin: 0 0 24px;
    padding: 20px 22px;
    border: 1px solid var(--survey-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #f8faff, #fff);
}
.survey-authority-gate h3 { margin: 0 0 14px; font-size: 1.1rem; }
.survey-code-panel {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    max-width: 380px;
}
.survey-prep-link { margin: 14px 0 0; }
.survey-prep-link a { color: var(--survey-blue); font-weight: 700; }

/* —— Wizard —— */
.survey-wizard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 0 0 14px;
}
.survey-link-button {
    padding: 4px 0;
    border: 0;
    color: var(--survey-blue);
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.survey-draft-status { color: var(--survey-ok); font-size: 0.8rem; font-weight: 600; }
.survey-completing-for {
    margin: 0 0 14px;
    padding: 10px 14px;
    color: var(--survey-blue-dark);
    background: #eef2ff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
}

.survey-wizard-layout {
    display: block;
}
.survey-wizard-layout:has(.survey-section-nav:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.survey-wizard-main { min-width: 0; }

.survey-section-nav {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--survey-line);
    border-radius: 14px;
    box-shadow: var(--survey-shadow);
}
.survey-section-nav-title {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--survey-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.survey-section-link {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin-bottom: 2px;
    padding: 9px 10px;
    text-align: left;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    font-size: 0.82rem;
    line-height: 1.35;
}
.survey-section-link:hover,
.survey-section-link:focus-visible { background: #eef2ff; outline: none; }
.survey-section-link em {
    flex-shrink: 0;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    color: #7a869e;
}
.survey-section-link.is-complete em { color: #1f7a3f; }
.survey-section-link.is-partial em { color: #9a6b00; }
.survey-section-link.is-empty em { color: #9aa3b5; }

.survey-progress-shell {
    margin-bottom: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--survey-line);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 51, 153, 0.04);
}
.survey-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}
.survey-progress-track {
    height: 8px;
    margin: 10px 0 12px;
    overflow: hidden;
    background: #e4e9f5;
    border-radius: 20px;
}
.survey-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--survey-blue), #3d7aef);
    border-radius: 20px;
    transition: width 0.3s ease;
}
.survey-steps {
    display: grid;
    grid-template-columns: repeat(var(--step-count, 4), minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.survey-steps li {
    overflow: hidden;
    color: var(--survey-muted);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.survey-steps li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    background: var(--survey-line);
    border-radius: 50%;
    vertical-align: middle;
}
.survey-steps li.is-current { color: var(--survey-blue); font-weight: 700; }
.survey-steps li.is-complete::before,
.survey-steps li.is-current::before { background: var(--survey-blue); }

/* —— Form —— */
#surveyForm.survey-panel { margin-top: 0; }
.survey-screen-heading {
    padding-bottom: 18px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--survey-line);
}
.survey-screen-heading h2 {
    margin: 4px 0 8px;
    line-height: 1.3;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}
.survey-privacy {
    margin: 10px 0 0;
    padding: 10px 13px;
    color: #384664;
    background: #f2f5ff;
    border-left: 4px solid var(--survey-light-blue);
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
}
.survey-screen-intro,
.survey-screen-footer {
    margin: 0 0 16px;
    padding: 12px 14px;
    color: var(--survey-muted);
    background: #f5f7fc;
    border-left: 3px solid var(--survey-light-blue);
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
}
.survey-screen-footer { margin-top: 20px; margin-bottom: 0; font-size: 0.84rem; }

.survey-question {
    margin: 0;
    padding: 24px 0;
    border: 0;
    border-bottom: 1px solid #e9edf6;
}
.survey-question:last-of-type { border-bottom: 0; }
.survey-question legend,
.survey-question-label {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    color: var(--survey-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}
.survey-question-number { color: var(--survey-blue); }
.survey-required { color: var(--survey-error); }
.survey-instruction { margin: -6px 0 12px; color: var(--survey-muted); font-size: 0.8rem; }
.survey-selection-count { margin-left: 5px; color: var(--survey-blue); font-weight: 700; }
.survey-help { margin: 0 0 10px; color: var(--survey-muted); font-size: 0.86rem; }
.survey-freetext-warning { margin: 6px 0 0; color: #8a4b45; font-size: 0.78rem; }

.survey-options { display: grid; gap: 8px; }
.survey-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1.5px solid var(--survey-line);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.survey-option:hover { border-color: var(--survey-light-blue); background: #fafbff; }
.survey-option:has(input:checked),
.survey-option.is-selected {
    border-color: var(--survey-blue);
    background: #f1f4ff;
}
.survey-option input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 3px 0 0;
    accent-color: var(--survey-blue);
    flex-shrink: 0;
}
.survey-option span { flex: 1; line-height: 1.45; }
.survey-selected-mark {
    font-style: normal;
    font-weight: 700;
    color: var(--survey-blue);
    font-size: 0.78rem;
}
.survey-option-group {
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px dashed #c5cee6;
    border-radius: 10px;
    background: #fafbfe;
}
.survey-option-group-legend {
    padding: 0 6px;
    color: var(--survey-blue);
    font-size: 0.78rem;
    font-weight: 800;
}

.survey-input,
.survey-select,
.survey-textarea {
    width: 100%;
    padding: 12px 13px;
    color: var(--survey-ink);
    background: #fff;
    border: 1.5px solid #c5cede;
    border-radius: 10px;
}
.survey-textarea { min-height: 105px; resize: vertical; }
.survey-input:focus,
.survey-select:focus,
.survey-textarea:focus {
    border-color: var(--survey-blue);
    outline: 3px solid rgba(0, 51, 153, 0.14);
}
.survey-field-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; }
.survey-other-field { margin-top: 10px; }
.survey-character-count {
    margin-top: 5px;
    color: var(--survey-muted);
    text-align: right;
    font-size: 0.75rem;
}

.survey-consent-option { align-items: flex-start; }
.survey-privacy-link {
    color: var(--survey-blue);
    font-weight: 700;
    text-decoration: underline;
}

.survey-ranking-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.survey-ranking-pool,
.survey-ranking-selected {
    min-height: 90px;
    padding: 12px;
    background: #f7f9fd;
    border: 1px solid var(--survey-line);
    border-radius: 12px;
}
.survey-ranking-title {
    margin: 0 0 10px;
    color: var(--survey-muted);
    font-size: 0.78rem;
    font-weight: 700;
}
.survey-rank-add {
    width: 100%;
    margin-bottom: 7px;
    padding: 10px 12px;
    text-align: left;
    color: var(--survey-blue);
    background: #fff;
    border: 1px solid var(--survey-line);
    border-radius: 8px;
    cursor: pointer;
}
.survey-rank-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 7px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--survey-light-blue);
    border-radius: 8px;
}
.survey-rank-number {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    color: #fff;
    background: var(--survey-blue);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}
.survey-rank-actions { display: flex; gap: 4px; }
.survey-icon-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 2px;
    color: var(--survey-blue);
    background: #f1f4ff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.survey-icon-button:disabled { opacity: 0.35; cursor: not-allowed; }

.survey-matrix { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.survey-matrix th,
.survey-matrix td { padding: 9px 7px; border: 1px solid var(--survey-line); text-align: center; }
.survey-matrix th { background: #f1f4fb; }
.survey-matrix th:first-child { min-width: 160px; text-align: left; }
.survey-matrix input {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    accent-color: var(--survey-blue);
}
.survey-matrix-choice {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 6px;
}

.survey-repeatable-list { display: grid; gap: 10px; }
.survey-repeatable-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    background: #f8f9fd;
    border: 1px solid var(--survey-line);
    border-radius: 10px;
}
.survey-maturity-scale {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #f7f9fd;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #445069;
}
.survey-service-row,
.survey-baseline-row {
    border: 1px solid var(--survey-line);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    display: grid;
    gap: 10px;
    background: #fafbfe;
}
.survey-assessed { color: #8a4b00; font-weight: 700; font-size: 0.85rem; }

.survey-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 8px;
}
.survey-button {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.92rem;
}
.survey-button-primary { color: #fff; background: var(--survey-blue); }
.survey-button-primary:hover { background: var(--survey-blue-dark); }
.survey-button-secondary {
    color: var(--survey-blue);
    background: #fff;
    border: 2px solid var(--survey-blue);
}
.survey-button:disabled { opacity: 0.55; cursor: wait; }

.survey-form-error {
    margin: 12px 0;
    padding: 10px 12px;
    color: var(--survey-error);
    background: #fff5f5;
    border-radius: 8px;
    font-weight: 600;
}
.survey-error-summary {
    margin: 0 0 16px;
    padding: 12px 14px;
    color: #922727;
    background: #fff0f0;
    border: 1px solid #efbbbb;
    border-radius: 8px;
}
.survey-error-summary:focus { outline: 3px solid var(--survey-blue); outline-offset: 2px; }
.survey-error-summary ul { margin: 8px 0 0; padding-left: 18px; }
.survey-error-summary a { color: #922727; font-weight: 700; }
.survey-question.has-error {
    border-color: transparent;
    box-shadow: inset 3px 0 0 #c0392b;
    padding-left: 12px;
}

.survey-review-section { margin-top: 22px; }
.survey-review-section h3 {
    margin: 0;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--survey-light-blue);
}
.survey-review-item { padding: 15px 0; border-bottom: 1px solid var(--survey-line); }
.survey-review-item dt { font-weight: 700; }
.survey-review-item dd { margin: 5px 0 0; color: var(--survey-muted); white-space: pre-wrap; }
.survey-edit-screen {
    margin-top: 10px;
    padding: 5px 0;
    color: var(--survey-blue);
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
}

.survey-success { text-align: center; padding-top: 12px; }
.survey-success-mark {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    color: #fff;
    background: var(--survey-ok);
    border-radius: 50%;
    font-size: 2rem;
}
.survey-success-next { margin: 12px auto 18px; max-width: 36rem; color: var(--survey-muted); }
.survey-success .survey-actions { justify-content: center; }

.survey-honeypot { position: absolute !important; left: -10000px !important; }
.survey-footer {
    margin-top: auto;
    padding: 22px max(20px, calc((100% - var(--survey-content)) / 2));
    color: #4f5c76;
    background: #fff;
    border-top: 1px solid var(--survey-line);
    font-size: 0.75rem;
    text-align: center;
}
.survey-footer-links { margin-top: 10px; }
.survey-footer-links a { color: var(--survey-blue); font-weight: 700; }

.survey-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.survey-profile-card:focus-visible,
.survey-button:focus-visible,
.survey-option:focus-within,
.survey-rank-add:focus-visible,
.survey-icon-button:focus-visible,
.survey-link-button:focus-visible,
.survey-language button:focus-visible,
.survey-section-link:focus-visible {
    outline: 3px solid var(--survey-yellow);
    outline-offset: 2px;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
    .survey-profile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .survey-wizard-layout:has(.survey-section-nav:not([hidden])) {
        grid-template-columns: 1fr;
    }
    .survey-section-nav {
        position: static;
        max-height: 200px;
        display: grid;
        grid-auto-rows: min-content;
    }
    .survey-programme-logo { max-height: 56px; }
    .survey-project-logo { width: 56px; height: 56px; }
}

@media (max-width: 720px) {
    .survey-brand-row {
        width: calc(100% - 28px);
        padding: 12px 0;
        gap: 12px;
    }
    .survey-programme-logo-wrap { flex: 1 1 auto; }
    .survey-programme-logo { max-width: min(260px, 70vw); max-height: 48px; }
    .survey-project-logo { width: 48px; height: 48px; }
    .survey-language { margin-left: auto; }
    .survey-title-block { padding: 22px 16px 26px; }
    .survey-main {
        width: calc(100% - 24px);
        margin: 18px auto 28px;
    }
    .survey-panel { padding: 18px 16px; border-radius: 14px; }
    .survey-profile-grid { grid-template-columns: 1fr; gap: 12px; }
    .survey-profile-card { min-height: 0; padding: 18px 16px; }
    .survey-steps { display: none; }
    .survey-field-grid,
    .survey-ranking-layout,
    .survey-repeatable-item { grid-template-columns: 1fr; }
    .survey-matrix,
    .survey-matrix tbody,
    .survey-matrix tr,
    .survey-matrix th,
    .survey-matrix td {
        display: block;
        width: 100%;
    }
    .survey-matrix thead { display: none; }
    .survey-matrix tr {
        margin-bottom: 12px;
        padding: 10px;
        border: 1px solid var(--survey-line);
        border-radius: 10px;
        background: #fafbfe;
    }
    .survey-matrix th { border: 0; background: transparent; padding: 4px 0 8px; font-weight: 800; }
    .survey-matrix td { padding: 4px 0; border: 0; text-align: left; }
    .survey-matrix td label { display: flex; gap: 8px; align-items: center; }
    .survey-wizard-head { flex-direction: column; align-items: flex-start; }
    .survey-actions { flex-direction: column-reverse; }
    .survey-actions .survey-button { width: 100%; }
    .survey-rank-item { grid-template-columns: 26px 1fr; }
    .survey-rank-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .survey-deadline { font-size: 0.84rem; }
}

@media (max-width: 420px) {
    .survey-brand-row { width: calc(100% - 20px); }
    .survey-language { width: 100%; justify-content: stretch; }
    .survey-language button { flex: 1; }
    .survey-main { width: calc(100% - 16px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: 0.01ms !important;
    }
}
