:root {
    --bg: #f3f5f6;
    --bg-soft: #f8f9fa;
    --surface: #ffffff;
    --surface-soft: #f7f9f9;
    --surface-dark: #0b1015;
    --surface-dark-2: #111820;
    --surface-dark-3: #17212a;
    --text: #121920;
    --muted: #69757e;
    --muted-2: #8a959d;
    --line: #dfe5e8;
    --line-strong: #cbd4d9;
    --accent: #58c7a5;
    --accent-bright: #7de0c1;
    --accent-dark: #278a6f;
    --accent-soft: #e8f7f1;
    --blue: #4b7f9d;
    --blue-soft: #eaf2f6;
    --red: #b64a4a;
    --red-soft: #faecec;
    --amber: #a87524;
    --amber-soft: #fff5df;
    --shadow-sm: 0 8px 30px rgba(10, 18, 24, .055);
    --shadow: 0 24px 70px rgba(10, 18, 24, .09);
    --shadow-dark: 0 24px 70px rgba(0, 0, 0, .25);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --content: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 88% 2%, rgba(88, 199, 165, .06), transparent 24rem),
        var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body::selection { background: rgba(88, 199, 165, .24); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.hidden { display: none !important; }

.topbar {
    height: 78px;
    background: rgba(10, 15, 20, .97);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
}
.topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 44%, rgba(88,199,165,.045) 65%, transparent 100%),
        radial-gradient(circle at 84% -80%, rgba(125,224,193,.18), transparent 34%);
}
.topbar-inner {
    position: relative;
    max-width: var(--content);
    height: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.brand-logo {
    display: block;
    width: 160px;
    max-width: 42vw;
    flex: 0 1 auto;
    line-height: 0;
}
.brand-logo svg {
    display: block;
    width: 100%;
    height: auto;
}
.brand-logo-fallback {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
}
.brand-product {
    color: #aeb9c0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: .015em;
    padding-left: 13px;
    border-left: 1px solid rgba(255,255,255,.18);
    white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.user-name { color: #cbd4da; font-size: 14px; }
.link-button {
    background: none;
    border: 0;
    color: #fff;
    padding: 9px 0;
    font-weight: 650;
}
.link-button:hover { color: var(--accent-bright); }

.eyebrow {
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .13em;
    margin-bottom: 8px;
}
h1, h2, h3 { color: var(--text); line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(31px, 3vw, 47px); margin: 0 0 11px; font-weight: 760; }
h2 { font-size: 23px; margin: 0 0 8px; font-weight: 740; }
h3 { font-size: 16px; margin: 0 0 15px; font-weight: 760; letter-spacing: -.015em; }
p { color: var(--muted); margin: 0; }

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 11px;
    min-height: 45px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 740;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(88,199,165,.25); outline-offset: 2px; }
.btn-primary {
    background: var(--surface-dark-2);
    color: #fff;
    border-color: rgba(255,255,255,.04);
    box-shadow: 0 11px 25px rgba(7,13,18,.16);
}
.btn-primary:hover { background: #18232c; border-color: rgba(125,224,193,.28); }
.btn-secondary { background: #fff; border-color: var(--line); color: #27323a; }
.btn-secondary:hover { border-color: #b8c5cc; background: #fbfcfc; }
.btn-danger { background: #fff; border-color: #e8c3c3; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); }
.btn-small { min-height: 36px; padding: 7px 11px; font-size: 13px; }
.btn-block { width: 100%; }
.button-row, .right-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.form-control {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    padding: 11px 13px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: .16s ease;
}
.form-control:hover { border-color: #b8c3c9; }
.form-control:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(88,199,165,.13);
}
.form-control:disabled, .form-control[readonly] { background: #f2f4f5; color: #69757d; }
textarea.form-control { resize: vertical; min-height: 112px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
label small, .muted { color: var(--muted); font-weight: 400; }

.panel {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.alert { padding: 13px 15px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: var(--red-soft); color: #8a3030; border: 1px solid #efcaca; }
.alert-success { background: var(--accent-soft); color: #216b58; border: 1px solid #bee6d8; }

.login-page, .simple-page, .complete-page {
    min-height: calc(100vh - 78px);
    display: grid;
    place-items: center;
    padding: 44px 20px;
    position: relative;
    overflow: hidden;
}
.login-page::before, .complete-page::before, .simple-page::before {
    content: "";
    position: fixed;
    z-index: -1;
    width: 520px;
    height: 520px;
    right: -180px;
    top: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88,199,165,.10), rgba(88,199,165,0) 68%);
}
.login-card, .complete-card, .simple-page > .panel {
    width: min(100%, 515px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 38px;
}
.login-card::before, .complete-card::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    margin-bottom: 28px;
}
.login-card p { margin-bottom: 26px; }
.login-card form { display: grid; gap: 18px; }
.complete-card { text-align: center; }
.complete-card::before { margin-left: auto; margin-right: auto; }
.success-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 31px;
    font-weight: 900;
    border: 1px solid #c9eadf;
}
.complete-card p { margin: 12px auto 25px; max-width: 420px; }

.admin-main { max-width: var(--content); margin: 0 auto; padding: 42px 30px 76px; }
.admin-main.narrow { max-width: 1020px; }
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 30px;
}
.page-head p { max-width: 760px; }
.table-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 880px; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .09em;
    background: #f9fafa;
}
td strong { display: block; }
td small { display: block; color: var(--muted); margin-top: 3px; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: #fafcfc; }
.align-right { text-align: right; }
.empty-state { padding: 64px 25px; text-align: center; }
.empty-state p { max-width: 520px; margin: 8px auto 0; }

.status, .section-state {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
}
.status-draft, .state-not_started { background: #eef1f2; color: #69747c; border-color: #e3e7e9; }
.status-in_progress, .state-in_progress { background: var(--blue-soft); color: #356682; border-color: #dbe9ef; }
.status-completed, .state-complete { background: var(--accent-soft); color: #26745e; border-color: #d0ece2; }
.status-reopened, .state-clarification { background: var(--amber-soft); color: var(--amber); border-color: #f3e2bd; }
.status-disabled { background: var(--red-soft); color: var(--red); border-color: #f1d5d5; }
.state-not_needed { background: #f1f2f3; color: #7b8388; border-color: #e8eaeb; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 27px; }
.span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; padding-top: 6px; }

.admin-summary-grid { display: grid; grid-template-columns: .82fr .82fr 2.2fr; gap: 16px; margin-bottom: 18px; }
.summary-card { padding: 21px; display: flex; flex-direction: column; gap: 8px; min-height: 132px; }
.summary-card > span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 850; }
.summary-card > strong { font-size: 23px; letter-spacing: -.02em; }
.summary-card small { color: var(--muted); }
.copy-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.progress { height: 8px; background: #e6ebed; border-radius: 999px; overflow: hidden; }
.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-bright));
    border-radius: inherit;
}
.progress.big { height: 12px; margin-bottom: 9px; }
.admin-actions { padding: 21px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.admin-actions h2 { font-size: 18px; }

.admin-section { margin-bottom: 18px; padding: 25px; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.admin-section-grid { display: grid; grid-template-columns: 1.28fr .72fr; gap: 36px; padding-top: 23px; }
.answer-list { margin: 0; display: grid; gap: 0; }
.answer-list > div { display: grid; grid-template-columns: minmax(230px,.8fr) 1.2fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid #edf0f1; }
.answer-list dt { color: var(--muted); font-size: 13px; }
.answer-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.task-list { display: grid; gap: 8px; }
.task-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fafcfc;
    font-weight: 600;
    transition: border-color .16s ease, background .16s ease;
}
.task-item:hover { border-color: #c7d2d7; background: #fff; }
.task-item input { margin-top: 4px; accent-color: var(--accent-dark); }
.task-item:has(input:checked) span { color: var(--muted); text-decoration: line-through; }
.file-list { display: grid; gap: 8px; }
.file-list a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfc; }
.file-list a:hover { border-color: #b4c3cb; }
.file-list small { color: var(--muted); }
.note-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 22px 0 0; align-items: end; }
#notes { padding: 25px; }
.notes-list { margin-top: 22px; display: grid; gap: 12px; }
.notes-list article { border: 1px solid var(--line); border-radius: 12px; padding: 15px; background: #fbfcfc; }
.note-meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.notes-list p { color: var(--text); }

.questionnaire-shell {
    max-width: var(--content);
    margin: 0 auto;
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: 360px minmax(0,1fr);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(10,18,24,.025);
}
.questionnaire-sidebar {
    position: relative;
    border-right: 1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        radial-gradient(circle at 20% 4%, rgba(88,199,165,.14), transparent 22rem),
        var(--surface-dark);
    background-size: 28px 28px, 28px 28px, auto, auto;
    padding: 30px 18px 50px 28px;
    color: #fff;
}
.questionnaire-sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.15));
}
.questionnaire-sidebar > * { position: relative; z-index: 1; }
.customer-card {
    background: rgba(255,255,255,.055);
    color: #fff;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 17px;
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(12px);
}
.customer-card h2 { color: #fff; margin-bottom: 14px; font-size: 24px; }
.customer-card .eyebrow { color: var(--accent-bright); }
.customer-card .progress { background: rgba(255,255,255,.13); margin-bottom: 8px; }
.customer-card strong { font-size: 13px; }
.customer-card p { color: #b9c4ca; font-size: 13px; margin-top: 14px; }
.section-nav { display: grid; gap: 5px; }
.section-link {
    display: grid;
    grid-template-columns: 32px minmax(0,1fr) 10px;
    gap: 10px;
    align-items: center;
    padding: 10px 11px;
    border-radius: 11px;
    color: #aeb9c0;
    border: 1px solid transparent;
    transition: .16s ease;
}
.section-link:hover { background: rgba(255,255,255,.055); color: #fff; }
.section-link.active {
    background: rgba(255,255,255,.09);
    color: #fff;
    border-color: rgba(255,255,255,.10);
    box-shadow: 0 8px 30px rgba(0,0,0,.11);
}
.section-index { font-size: 11px; font-weight: 850; color: #71808a; }
.section-link.active .section-index { color: var(--accent-bright); }
.section-link-text { min-width: 0; }
.section-link-text strong { display: block; color: inherit; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section-link-text small { color: #7f8d96; font-size: 11px; }
.section-link.active .section-link-text small { color: #aebbc3; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: #53616a; }
.state-dot.state-complete { background: var(--accent-bright); box-shadow: 0 0 0 3px rgba(125,224,193,.10); }
.state-dot.state-in_progress { background: #7ba6bd; }
.state-dot.state-clarification { background: #d9a84d; }
.state-dot.state-not_needed { background: #68757d; }
.mobile-section-nav { display: none; }

.questionnaire-main {
    position: relative;
    padding: 48px clamp(28px, 5vw, 78px) 76px;
    max-width: 1060px;
    width: 100%;
    background:
        radial-gradient(circle at 100% 0%, rgba(88,199,165,.055), transparent 28rem),
        #fff;
}
.questionnaire-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(88,199,165,.25), transparent 45%);
}
.customer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.customer-head p { max-width: 700px; }
.save-indicator {
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 760;
    white-space: nowrap;
    border: 1px solid transparent;
}
.save-indicator.saved { color: #25705b; background: var(--accent-soft); border-color: #d3ece4; }
.save-indicator.saving { color: #356682; background: var(--blue-soft); border-color: #dceaf0; }
.save-indicator.error { color: var(--red); background: var(--red-soft); border-color: #f0d4d4; }
.question-list { display: grid; gap: 15px; }
.question-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 21px;
    box-shadow: 0 7px 24px rgba(10,18,24,.035);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.question-card:focus-within { border-color: #bfd9d0; box-shadow: 0 11px 34px rgba(10,18,24,.055); }
.question-card.required-question { border-left: 3px solid rgba(88,199,165,.72); }
.question-label { font-weight: 760; margin-bottom: 13px; color: #172027; }
.required-mark {
    display: inline-flex;
    margin-left: 8px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #65727a;
    background: #eef2f3;
    border-radius: 999px;
    padding: 3px 7px;
    vertical-align: 2px;
}
.question-help { font-size: 13px; margin: -7px 0 13px; }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { display: block; position: relative; font-weight: 680; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
    min-width: 112px;
    display: inline-flex;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    transition: .16s ease;
}
.choice span:hover { border-color: #aebbc2; }
.choice input:focus-visible + span { outline: 3px solid rgba(88,199,165,.22); outline-offset: 2px; }
.choice input:checked + span {
    border-color: var(--accent-dark);
    background: var(--accent-soft);
    color: #246b57;
    box-shadow: inset 0 0 0 1px var(--accent-dark);
}
.choice input:disabled + span { opacity: .7; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.checkbox-option {
    display: flex;
    gap: 9px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 11px;
    font-weight: 600;
    background: #fff;
    transition: .16s ease;
}
.checkbox-option:hover { border-color: #b7c4ca; background: #fbfcfc; }
.checkbox-option input { accent-color: var(--accent-dark); }

.upload-card {
    margin-top: 22px;
    border: 1px dashed #b9c8cf;
    background: linear-gradient(135deg, #f8fbfa, #fbfcfc);
    border-radius: 16px;
    padding: 21px;
}
.upload-card h2 { font-size: 18px; }
.upload-card p { font-size: 13px; margin-bottom: 14px; }
.upload-button {
    display: inline-flex;
    width: max-content;
    cursor: pointer;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 9px 13px;
    font-weight: 760;
    transition: .16s ease;
}
.upload-button:hover { border-color: #b2c1c8; }
.upload-button input { display: none; }
.upload-list { display: grid; gap: 7px; margin-top: 13px; }
.upload-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; background: #fff; border-radius: 9px; border: 1px solid #e2e7ea; font-size: 13px; }
.upload-list small { color: var(--muted); }
.questionnaire-actions {
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

@media (max-width: 1180px) {
    .questionnaire-shell { grid-template-columns: 310px minmax(0,1fr); }
    .questionnaire-sidebar { padding-left: 18px; }
    .admin-summary-grid { grid-template-columns: 1fr 1fr; }
    .summary-card:last-child { grid-column: 1 / -1; }
    .admin-section-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .topbar { height: 70px; }
    .topbar-inner { padding: 0 20px; }
    .questionnaire-shell { display: block; min-height: calc(100vh - 70px); }
    .questionnaire-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.09);
        padding: 20px;
    }
    .customer-card { margin-bottom: 12px; box-shadow: none; }
    .section-nav { display: none; }
    .mobile-section-nav { display: grid; gap: 7px; }
    .mobile-section-nav label { color: #b9c5cb; font-size: 12px; font-weight: 700; }
    .mobile-section-nav .form-control {
        appearance: auto;
        color: #fff;
        background: rgba(255,255,255,.08);
        border-color: rgba(255,255,255,.12);
    }
    .mobile-section-nav .form-control option { color: #111820; background: #fff; }
    .questionnaire-main { padding: 34px 20px 56px; max-width: none; }
    .admin-main { padding: 34px 20px 60px; }
}

@media (max-width: 780px) {
    .user-name { display: none; }
    .page-head { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; padding: 19px; }
    .span-2 { grid-column: auto; }
    .admin-summary-grid { grid-template-columns: 1fr; }
    .summary-card:last-child { grid-column: auto; }
    .admin-actions { align-items: flex-start; flex-direction: column; }
    .answer-list > div { grid-template-columns: 1fr; gap: 4px; }
    .note-form { grid-template-columns: 1fr; }
    .customer-head { flex-direction: column; gap: 16px; }
    .save-indicator { align-self: flex-start; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .questionnaire-actions { flex-direction: column; }
    .questionnaire-actions > span { display: none; }
    .right-actions { width: 100%; }
    .right-actions .btn, .questionnaire-actions > .btn { flex: 1; }
}

@media (max-width: 560px) {
    .topbar-inner { padding: 0 15px; }
    .brand { gap: 9px; }
    .brand-logo { width: 132px; max-width: 43vw; }
    .brand-product { font-size: 11px; padding-left: 9px; }
    .topbar-actions { gap: 12px; }
    .admin-main { padding: 28px 14px 46px; }
    .page-head { margin-bottom: 22px; }
    h1 { font-size: clamp(29px, 10vw, 38px); }
    .login-card, .complete-card, .simple-page > .panel { padding: 28px 22px; border-radius: 20px; }
    .login-page, .simple-page, .complete-page { padding: 28px 14px; }
    .questionnaire-sidebar { padding: 15px; }
    .customer-card { padding: 18px; }
    .questionnaire-main { padding: 28px 14px 44px; }
    .question-card { padding: 17px; }
    .choice-row { display: grid; grid-template-columns: 1fr; }
    .choice span { width: 100%; min-width: 0; }
    .upload-card { padding: 17px; }
    .upload-list > div { align-items: flex-start; flex-direction: column; gap: 2px; }
    .questionnaire-actions .btn { width: 100%; }
    .right-actions { flex-direction: column; }
    .copy-row { grid-template-columns: 1fr; }
    .copy-row .btn { width: 100%; }
    .admin-section, #notes { padding: 18px; }
    .section-head { flex-direction: column; }
    .table-panel { border-radius: 14px; }
}

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