@charset "UTF-8";
:root {
    --ink: #263e33;
    --green: #28533f;
    --green-dark: #1c392c;
    --muted: #727970;
    --paper: #f7f6f1;
    --line: #e0e4da;
    --soft: #edf0e7;
    --white: #fff;
    --accent: #c3d298;
    --danger: #a13e32;
    --radius: 18px;
    --shadow: 0 10px 45px #243b2e06;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font:
        15px/1.65 'Segoe UI',
        Arial,
        sans-serif;
}
a {
    color: inherit;
    text-underline-offset: 4px;
}
a:hover {
    color: #557a47;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid #87a769;
    outline-offset: 3px;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1,
h2,
h3 {
    line-height: 1.16;
    letter-spacing: -0.045em;
    font-weight: 600;
}
h1 {
    font-size: 44px;
    margin-bottom: 18px;
}
h2 {
    font-size: 29px;
    margin-bottom: 20px;
}
h3 {
    font-size: 21px;
}
p {
    margin-bottom: 18px;
}
img {
    max-width: 100%;
    height: auto;
}
hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 25px 0;
}
.header {
    background: #fff;
    max-width: 1440px;
    margin: auto;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 48px;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: flex;
    align-items: center;
    gap: 22px;
    text-decoration: none;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}
.brand img {
    width: 150px;
    max-height: 48px;
    object-fit: contain;
}
.brand > span {
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 600;
    border-left: 1px solid #cbd1c3;
    padding-left: 20px;
    line-height: 28px;
}
.header nav {
    display: flex;
    gap: 28px;
    align-items: center;
    font-size: 13px;
}
.header nav a {
    text-decoration: none;
}
.header nav a.active {
    color: var(--green);
    font-weight: 700;
}
.header nav form {
    margin: 0;
}
.live-dot {
    font-size: 10px;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.live-dot:before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #769655;
}
.main {
    max-width: 1344px;
    margin: auto;
    padding: 0 48px;
}
.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.7;
    margin-bottom: 21px;
}
.mini-line {
    display: inline-block;
    width: 25px;
    height: 1px;
    vertical-align: middle;
    background: var(--green);
    margin-right: 9px;
}
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 65px;
    align-items: center;
    padding: 66px 0 72px;
}
.hero-copy h1 {
    font-size: clamp(50px, 5.7vw, 79px);
    max-width: 600px;
    line-height: 1.05;
    letter-spacing: -0.065em;
}
.lead {
    font-size: 16px;
    line-height: 1.85;
    color: #647062;
    max-width: 540px;
    margin: 26px 0;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px solid #cbd5c5;
    background: transparent;
    color: var(--ink);
    padding: 12px 20px;
    min-height: 46px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition:
        background 0.15s,
        transform 0.15s;
}
.button:hover {
    background: #e7edde;
    color: var(--ink);
}
.button.primary {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.button.primary:hover {
    background: var(--green-dark);
}
.button.primary span {
    margin-left: 18px;
    font-size: 22px;
    line-height: 1;
}
.button.danger {
    color: var(--danger);
    border-color: #e4beb8;
}
.button.danger:hover {
    background: #fff0ed;
}
.full {
    width: 100%;
}
.small-button {
    padding: 7px 12px;
    min-height: 35px;
    font-size: 12px;
}
.text-button {
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.hero-facts {
    display: flex;
    gap: 30px;
    margin-top: 47px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    max-width: 470px;
}
.hero-facts > div {
    flex: 1;
}
.hero-facts strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -1px;
}
.hero-facts span {
    display: block;
    color: var(--muted);
    font-size: 10px;
}
.hero-art {
    position: relative;
    aspect-ratio: 0.91;
    background: #e8ecdf;
    border-radius: 180px 180px 18px 18px;
    overflow: hidden;
    min-height: 420px;
}
.research-stamp {
    position: relative;
    text-align: center;
    font-size: 8px;
    letter-spacing: 2px;
    padding-top: 45px;
    z-index: 2;
}
.research-stamp strong {
    display: block;
    font-size: 30px;
    line-height: 1.14;
    letter-spacing: -1.2px;
    font-weight: 500;
    margin: 17px 0;
}
.research-stamp span {
    font-size: 7px;
    letter-spacing: 1.3px;
}
.dog-art {
    position: absolute;
    bottom: 7%;
    width: 91%;
    left: 4.5%;
    max-height: 66%;
}
.art-orbit {
    position: absolute;
    width: 340px;
    height: 340px;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -20%);
    border: 1px solid #b9c6a6;
    border-radius: 50%;
}
.art-note {
    position: absolute;
    bottom: 24px;
    left: 27px;
    font-size: 10px;
    line-height: 1.5;
    display: flex;
    gap: 9px;
    align-items: center;
}
.art-note span {
    font-size: 31px;
}
.intro-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 0.7fr 1.25fr 1fr;
    gap: 30px;
    padding: 38px 0;
    align-items: center;
}
.intro-strip .eyebrow {
    max-width: 140px;
    margin: 0;
}
.intro-strip h2 {
    font-size: 29px;
    font-weight: 500;
    margin: 0;
}
.intro-strip > p:last-child {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}
.participation {
    padding-top: 44px;
}
.participation h1 {
    font-size: clamp(28px, 3vw, 38px);
}
.participation-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.participation-option {
    padding: 28px;
    border: 1px solid #cbd7bc;
    border-radius: var(--radius);
    background: #e8eddf;
}
.participation-option h2 {
    margin: 16px 0;
    font-size: 25px;
}
.participation-option p {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.8;
}
.participation-option strong {
    color: var(--green-dark);
    font-weight: 750;
}
.participation-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-weight: 700;
}
.participation + .join-grid {
    padding-top: 40px;
}
@media (max-width: 650px) {
    .participation-options {
        grid-template-columns: 1fr;
    }
    .participation-option {
        padding: 22px;
    }
}
.join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 75px 0;
}
.join-copy {
    padding-top: 20px;
}
.join-copy h2 {
    font-size: 39px;
    font-weight: 500;
}
.check-list {
    padding: 0;
    list-style: none;
    margin: 30px 0;
}
.check-list li {
    padding: 0 0 20px 32px;
    position: relative;
    font-size: 14px;
    color: #56614f;
}
.check-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border: 1px solid #c6d0b8;
    border-radius: 50%;
    font-size: 11px;
    text-align: center;
    line-height: 18px;
    color: var(--green);
}
.soft-box {
    padding: 23px;
    background: var(--soft);
    border-radius: 12px;
}
.soft-box h3 {
    margin-bottom: 12px;
}
.soft-box .prose {
    font-size: 13px;
    line-height: 1.8;
}
.conditions {
    margin-top: 25px;
}
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.card > p:not(.eyebrow):not(.small) {
    color: #697160;
}
.registration {
    padding: 35px;
}
.registration h2 {
    font-size: 37px;
    font-weight: 500;
    margin-bottom: 14px;
}
.registration > p {
    font-size: 13px;
}
.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}
.wide {
    grid-column: 1/-1;
}
label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 19px;
}
input:not([type='checkbox']):not([type='radio']),
textarea,
select {
    display: block;
    width: 100%;
    padding: 12px 13px;
    min-height: 46px;
    border: 1px solid #d9dfd3;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-weight: 400;
    font-size: 14px;
    margin-top: 7px;
    transition: border-color 0.15s;
}
textarea {
    resize: vertical;
    min-height: 90px;
}
input:hover,
textarea:hover,
select:hover {
    border-color: #9fb08d;
}
input[readonly] {
    background: #f5f6f2;
    color: #606c5c;
}
input[type='checkbox'],
input[type='radio'] {
    accent-color: var(--green);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin: 2px 0 0;
}
.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.7;
    margin: 20px 0 13px;
}
.registration .button {
    margin-top: 25px;
}
.registration .center {
    margin: 14px 0 0;
    font-size: 10px;
}
.small {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.65;
}
.center {
    text-align: center;
}
.muted {
    color: var(--muted);
}
.field-error {
    display: block;
    font-size: 12px;
    color: var(--danger);
    margin-top: 5px;
    font-weight: 500;
}
[aria-invalid='true'] {
    border-color: var(--danger) !important;
}
.alert,
.notice {
    padding: 17px 22px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 14px;
}
.alert {
    background: #fff0ed;
    border: 1px solid #ecc4bb;
    color: #8f352a;
}
.notice {
    background: #edf3e5;
    border: 1px solid #c9dab6;
    color: #34532b;
}
.contact-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    background: #e8ecdf;
    border-radius: 17px;
    padding: 42px 45px;
    margin: 0 0 60px;
}
.contact-strip h2 {
    font-size: 35px;
    margin-bottom: 12px;
}
.contact-strip p {
    margin-bottom: 0;
    font-size: 12px;
}
.contact-strip .eyebrow {
    font-size: 9px;
    margin-bottom: 15px;
}
.contact-email {
    font-size: 23px;
    font-weight: 500;
    letter-spacing: -0.5px;
}
.contact-strip > div:last-child > p {
    margin-top: 10px;
}
.footer {
    max-width: 1344px;
    margin: auto;
    border-top: 1px solid var(--line);
    padding: 25px 48px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 10px;
    color: var(--muted);
}
.footer > div {
    display: flex;
    gap: 22px;
}
.footer a {
    text-decoration: none;
}
.honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip {
    position: absolute;
    left: -10000px;
    top: 10px;
    z-index: 50;
}
.skip:focus {
    left: 12px;
    background: white;
    padding: 12px;
}
.narrow {
    max-width: 780px;
    margin: 65px auto;
}
.narrow h1 {
    font-size: 38px;
}
.login-card {
    max-width: 440px;
    margin: 75px auto;
}
.login-card h1 {
    font-size: 44px;
}
.login-card form {
    margin-top: 30px;
}
.success-card {
    text-align: center;
    padding: 50px 35px;
}
.success-mark {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--soft);
    font-size: 30px;
}
.prose {
    line-height: 1.85;
    overflow-wrap: anywhere;
}
.install {
    max-width: 850px;
    padding: 45px 24px;
    margin: auto;
}
.install .brand {
    margin-bottom: 30px;
}
.requirements {
    list-style: none;
    padding: 15px;
    background: var(--soft);
    font-size: 13px;
    border-radius: 9px;
}
.requirements li {
    padding: 3px 0;
}
details {
    border-top: 1px solid var(--line);
    padding-top: 17px;
    margin-top: 20px;
}
summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 12px;
}
details p {
    font-size: 13px;
}
/* Panel */
.admin-shell {
    background: #f4f5f0;
}
.admin-shell .header {
    max-width: none;
    background: #fff;
    padding: 20px 40px;
    min-height: 84px;
}
.admin-shell .brand img {
    width: 128px;
}
.admin-shell .brand > span {
    font-size: 9px;
}
.admin-shell .header nav {
    gap: 23px;
    font-size: 12px;
}
.admin-main {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 40px;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 0 0 29px;
}
.page-heading .eyebrow {
    margin-bottom: 12px;
}
.page-heading h1 {
    font-size: 35px;
    margin-bottom: 10px;
}
.page-heading p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0;
}
.count-bubble {
    font-size: 14px;
    letter-spacing: 0;
    font-weight: 500;
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    padding: 5px 12px;
    border-radius: 30px;
    background: #e1e8d9;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.stat {
    padding: 24px 27px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    display: flex;
    flex-direction: column;
}
.stat > span {
    font-size: 12px;
    color: var(--muted);
}
.stat > strong {
    font-size: 37px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -1.5px;
}
.stat strong small {
    font-size: 17px;
    letter-spacing: 0;
    color: #89927f;
}
.stat > small {
    font-size: 10px;
    color: var(--muted);
}
progress {
    width: 100%;
    height: 5px;
    border: 0;
    border-radius: 8px;
    background: #e7ebdf;
    appearance: none;
    overflow: hidden;
    margin: 5px 0 10px;
}
progress::-webkit-progress-bar {
    background: #e7ebdf;
}
progress::-webkit-progress-value {
    background: #799755;
    border-radius: 8px;
}
progress::-moz-progress-bar {
    background: #799755;
}
.table-card {
    padding: 0;
    overflow: hidden;
}
.table-top {
    padding: 24px 26px 14px;
}
.table-top > p {
    margin: 10px 0 0;
}
.filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.filters label {
    margin: 0;
}
.filters input,
.filters select {
    margin: 0;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 12px;
}
.filters .search-label {
    flex: 1;
    min-width: 200px;
}
.filters .button {
    min-height: 42px;
    padding: 9px 17px;
}
.table-scroll {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}
th {
    background: #f7f8f3;
    color: #7d8576;
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 20px;
    white-space: nowrap;
}
td {
    padding: 19px 20px;
    border-top: 1px solid #e8ebdf;
    vertical-align: middle;
}
td strong {
    font-size: 13px;
    font-weight: 600;
}
.cell-sub {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}
.status {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 30px;
    white-space: nowrap;
    vertical-align: middle;
}
.status.pending {
    background: #f7eed9;
    color: #8b6926;
}
.status.approved {
    background: #e6efdd;
    color: #52723a;
}
.status.rejected {
    background: #f3e7e2;
    color: #915544;
}
.status.late {
    background: #fff0df;
    color: #a06328;
}
.table-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 25px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}
.table-bottom > div {
    display: flex;
    gap: 10px;
}
.utility-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin: 25px 0 12px;
    font-size: 12px;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.actions form {
    margin: 0;
}
.empty {
    text-align: center;
    padding: 55px 20px;
}
.empty > span {
    font-size: 42px;
    color: #9aae80;
}
.empty h2 {
    font-size: 25px;
    font-weight: 500;
    margin: 16px 0;
}
.empty p {
    font-size: 13px;
    color: var(--muted);
}
.back-link {
    display: inline-block;
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 26px;
}
.code-badge {
    font: 600 22px/1 monospace;
    border: 1px solid #b6c9a2;
    background: #e7efde;
    padding: 19px 24px;
    border-radius: 12px;
}
.record-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(330px, 1fr);
    gap: 26px;
}
.record-grid .card {
    padding: 27px;
}
.record-grid h2 {
    font-size: 24px;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 0 0 25px;
}
dt {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 5px;
}
dd {
    margin: 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.mono {
    font-family: Consolas, monospace;
    font-size: 12px !important;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.section-heading h2 {
    margin: 0;
}
.answers-list {
    margin-top: 24px;
}
.answers-list > div {
    padding: 14px 0;
    border-top: 1px solid #e9ecdf;
}
.answers-list dt {
    font-size: 12px;
    color: #727969;
}
.answers-list dd {
    font-size: 14px;
    line-height: 1.65;
}
.mail-preview {
    background: #f7f8f4;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 18px;
    border-radius: 7px;
    font-size: 12px;
    margin: 16px 0;
}
.manage-section {
    margin-top: 24px;
}
.subtle-card {
    background: #f9faf6;
}
.settings-grid,
.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
    gap: 26px;
    align-items: start;
}
.settings-grid h2 {
    font-size: 25px;
}
.variable-list {
    background: var(--soft);
    border-radius: 8px;
    padding: 18px;
    font-size: 12px;
    line-height: 2.2;
    margin: 20px 0;
}
.variable-list code {
    display: inline-block;
    min-width: 95px;
    font-size: 12px;
}
.sticky-save {
    position: sticky;
    top: 20px;
}
.backup-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-top: 25px;
}
.backup-card p {
    max-width: 750px;
    font-size: 13px;
    margin: 0;
}
.backup-card h2 {
    font-size: 24px;
}
.backup-card button {
    white-space: nowrap;
}
.editor-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
}
.editor-sidebar {
    position: sticky;
    top: 20px;
}
.editor-sidebar h2 {
    font-size: 24px;
}
.question-edit-card {
    position: relative;
    padding: 24px;
}
.question-edit-card summary {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.question-edit-card summary:before {
    content: '+';
    font-size: 20px;
    color: #6e855d;
}
.question-edit-card[open] summary:before {
    content: '−';
}
.question-edit-card[open] summary {
    margin-bottom: 25px;
}
.question-edit-card summary .q-number {
    background: var(--soft);
    border-radius: 7px;
    font-size: 12px;
    min-width: 30px;
    text-align: center;
    padding: 5px;
}
.question-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 20px;
}
.question-tools button {
    font-size: 11px;
}
.question-edit-card label {
    margin-bottom: 14px;
}
.editor-check {
    margin: 10px 0 20px;
}
.condition-fields {
    padding: 15px;
    background: #f6f8f0;
    border-radius: 8px;
}
.condition-fields .fields {
    margin-bottom: 0;
}
.condition-fields label {
    margin-bottom: 0;
}
.image-editor {
    margin: 18px 0;
}
.image-editor img {
    max-height: 140px;
    border-radius: 8px;
    display: block;
    margin: 12px 0;
}
.image-editor input[type='file'] {
    font-size: 11px;
}
.image-editor .text-button {
    font-size: 11px;
}
.add-question {
    margin: 0 0 24px;
    border-style: dashed;
    background: #edf2e4;
}
.editor-sidebar .small {
    font-size: 11px;
}
/* Ankieta */
.survey-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 60px;
    padding: 50px 0 70px;
}
.survey-sidebar {
    align-self: start;
    position: sticky;
    top: 30px;
}
.survey-sidebar h2 {
    font-size: 27px;
    font-weight: 500;
}
.survey-sidebar > p:not(.eyebrow) {
    font-size: 12px;
    color: var(--muted);
}
.survey-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 28px 0;
}
.survey-sidebar nav a {
    text-decoration: none;
    display: flex;
    gap: 10px;
    font-size: 11px;
    align-items: center;
}
.survey-sidebar nav a span {
    flex-shrink: 0;
    border: 1px solid #ccd5c0;
    border-radius: 50%;
    height: 25px;
    width: 25px;
    line-height: 23px;
    text-align: center;
    font-size: 10px;
}
.survey-progress {
    margin-bottom: 25px;
}
.survey-progress > span {
    font-size: 10px;
}
.survey-intro h1 {
    font-size: 45px;
}
.survey-intro .prose {
    font-size: 14px;
    color: #626e5b;
    margin-bottom: 25px;
}
.survey-intro {
    margin-bottom: 35px;
}
.survey-intro .eyebrow {
    font-size: 9px;
}
.survey-intro .soft-box {
    font-size: 11px;
    margin-bottom: 15px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 22px;
    margin-bottom: 25px;
}
.section-title > span {
    font-size: 12px;
    background: var(--soft);
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 9px;
    flex-shrink: 0;
}
.section-title h2 {
    font-size: 23px;
    margin: 0;
}
.question {
    margin-bottom: 30px;
}
.question:last-child {
    margin-bottom: 0;
}
.question > label,
.question legend {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 9px;
}
.question fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.question legend {
    padding: 0;
}
.question-help {
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 12px;
}
.choice-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.choice {
    border: 1px solid #dce3d4;
    border-radius: 7px;
    padding: 11px 13px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    cursor: pointer;
}
.choice:has(input:checked) {
    background: #eef3e6;
    border-color: #8ca676;
}
.choice:hover {
    border-color: #9daf8c;
}
.choice input {
    width: 16px;
    height: 16px;
}
.scale-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.scale-options .choice {
    justify-content: center;
    position: relative;
    padding: 14px 4px;
    font-size: 16px;
    align-items: center;
}
.scale-options input {
    width: 13px;
    height: 13px;
}
.question-image {
    display: block;
    max-height: 300px;
    object-fit: contain;
    margin: 15px 0;
    border-radius: 9px;
}
.survey-image {
    display: block;
    max-height: 360px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 25px;
}
.survey-submit h2 {
    font-size: 27px;
}
.survey-submit .actions {
    justify-content: space-between;
}
.saved-file {
    font-size: 11px;
    color: #4e733b;
}
.question input[type='file'] {
    font-size: 12px;
    background: #f6f8f0;
    border: 1px dashed #b4c4a4;
    padding: 20px 12px;
}
.has-error {
    border-left: 3px solid #b75d48;
    padding-left: 15px;
}
.survey-submit {
    background: #eef2e7;
}
.survey-submit > p {
    margin-top: 12px;
    margin-bottom: 0;
}
.question[hidden] {
    display: none !important;
}
@media (min-width: 1500px) {
    .hero-art {
        max-height: 600px;
    }
}
@media (max-width: 1100px) {
    .header {
        padding: 23px 28px;
    }
    .main {
        padding: 0 28px;
    }
    .hero {
        gap: 35px;
    }
    .hero-copy h1 {
        font-size: 61px;
    }
    .hero-art {
        min-height: 400px;
    }
    .hero-facts {
        gap: 15px;
    }
    .join-grid {
        gap: 38px;
    }
    .intro-strip {
        grid-template-columns: 0.7fr 1.3fr 1fr;
    }
    .intro-strip h2 {
        font-size: 25px;
    }
    .admin-main {
        padding: 30px 24px;
    }
    .admin-shell .header {
        padding: 20px 24px;
        flex-wrap: wrap;
    }
    .record-grid {
        gap: 18px;
    }
    .record-grid .card {
        padding: 22px;
    }
    .survey-layout {
        gap: 35px;
        grid-template-columns: 215px minmax(0, 1fr);
    }
    .card {
        padding: 26px;
    }
    .settings-grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    }
    .table-scroll th,
    .table-scroll td {
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media (max-width: 800px) {
    .header {
        padding: 20px;
        min-height: 80px;
    }
    .header nav {
        gap: 15px;
    }
    .live-dot {
        display: none;
    }
    .brand {
        gap: 13px;
    }
    .brand img {
        width: 130px;
    }
    .brand > span {
        padding-left: 12px;
        font-size: 9px;
        letter-spacing: 2px;
    }
    .main {
        padding: 0 22px;
    }
    .hero {
        gap: 25px;
        padding: 43px 0;
    }
    .hero-copy h1 {
        font-size: 47px;
    }
    .hero-copy .eyebrow {
        font-size: 8px;
        letter-spacing: 1px;
    }
    .lead {
        font-size: 14px;
    }
    .hero-art {
        min-height: 370px;
    }
    .research-stamp {
        padding-top: 32px;
        font-size: 7px;
    }
    .research-stamp strong {
        font-size: 25px;
    }
    .research-stamp span {
        font-size: 6px;
    }
    .hero-facts {
        gap: 12px;
        margin-top: 28px;
    }
    .hero-facts strong {
        font-size: 18px;
    }
    .hero-facts span {
        font-size: 9px;
    }
    .art-orbit {
        width: 260px;
        height: 260px;
    }
    .intro-strip {
        grid-template-columns: 1fr 1.7fr;
    }
    .intro-strip .eyebrow {
        grid-column: 1/-1;
        max-width: none;
    }
    .intro-strip h2 {
        font-size: 25px;
    }
    .join-grid {
        gap: 25px;
        padding: 45px 0;
        grid-template-columns: 1fr 1.1fr;
    }
    .join-copy h2 {
        font-size: 30px;
    }
    .registration {
        padding: 24px;
    }
    .registration .fields {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .registration h2 {
        font-size: 31px;
    }
    .check-list li {
        font-size: 12px;
    }
    .contact-strip {
        padding: 30px;
    }
    .contact-email {
        font-size: 18px;
    }
    .stats {
        gap: 12px;
    }
    .stat {
        padding: 20px 16px;
    }
    .stat > span {
        font-size: 10px;
    }
    .stat > strong {
        font-size: 30px;
    }
    .record-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .record-grid > aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }
    .record-grid > aside > .card {
        margin: 0;
    }
    .page-heading h1 {
        font-size: 30px;
    }
    .admin-shell .header nav {
        gap: 17px;
        flex-wrap: wrap;
    }
    .editor-layout {
        grid-template-columns: 1fr;
    }
    .editor-sidebar {
        position: static;
        grid-row: 1;
    }
    .editor-sidebar .small,
    .editor-sidebar hr {
        display: none;
    }
    .editor-sidebar .button {
        width: auto;
    }
    .editor-sidebar h2 {
        margin-bottom: 8px;
    }
    .editor-sidebar p {
        margin-bottom: 12px;
    }
    .survey-layout {
        grid-template-columns: 1fr;
        padding-top: 30px;
        gap: 22px;
    }
    .survey-sidebar {
        position: static;
    }
    .survey-sidebar h2,
    .survey-sidebar > p:not(.eyebrow),
    .survey-sidebar nav {
        display: none;
    }
    .survey-sidebar .eyebrow {
        margin-bottom: 6px;
    }
    .survey-progress {
        margin-bottom: 0;
    }
    .survey-intro h1 {
        font-size: 36px;
    }
    .backup-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer {
        padding: 24px;
        font-size: 10px;
    }
}
@media (max-width: 580px) {
    body {
        font-size: 14px;
    }
    .main {
        padding: 0 18px;
    }
    .header {
        padding: 18px;
        gap: 10px;
    }
    .brand img {
        width: 112px;
    }
    .header nav {
        font-size: 11px;
    }
    .brand > span {
        font-size: 8px;
        letter-spacing: 1.5px;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 34px;
    }
    .hero-copy h1 {
        font-size: 57px;
        max-width: 350px;
    }
    .hero-copy .eyebrow {
        font-size: 9px;
    }
    .lead {
        font-size: 14px;
        margin: 22px 0;
    }
    .hero-art {
        min-height: 0;
        aspect-ratio: 1.02;
        max-height: 450px;
        border-radius: 140px 140px 16px 16px;
    }
    .hero-art .research-stamp {
        padding-top: 28px;
    }
    .hero-art .research-stamp strong {
        font-size: 26px;
        margin: 11px 0;
    }
    .hero-art .dog-art {
        bottom: 5%;
        max-height: 69%;
    }
    .art-note {
        bottom: 17px;
        left: 18px;
        font-size: 8px;
    }
    .hero-facts {
        max-width: none;
        gap: 22px;
    }
    .hero-facts strong {
        font-size: 24px;
    }
    .hero-facts span {
        font-size: 9px;
    }
    .intro-strip {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 28px 0;
    }
    .intro-strip h2 {
        font-size: 29px;
    }
    .intro-strip > p:last-child {
        font-size: 13px;
    }
    .join-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 35px 0;
    }
    .join-copy h2 {
        font-size: 35px;
    }
    .join-copy {
        padding-top: 0;
    }
    .check-list li {
        font-size: 13px;
    }
    .registration .fields {
        grid-template-columns: 1fr 1fr;
        gap: 0 12px;
    }
    .registration label {
        font-size: 11px;
    }
    .registration {
        padding: 25px 22px;
    }
    .contact-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 29px 24px;
        gap: 22px;
        margin-bottom: 35px;
    }
    .contact-strip h2 {
        font-size: 31px;
    }
    .contact-email {
        font-size: 21px;
    }
    .footer {
        flex-direction: column;
        gap: 10px;
        padding: 20px 18px;
    }
    .footer > div {
        gap: 18px;
    }
    .admin-main {
        padding: 25px 16px;
    }
    .admin-shell .header {
        padding: 17px;
    }
    .admin-shell .header nav {
        width: 100%;
        gap: 16px 20px;
        font-size: 11px;
    }
    .admin-shell .brand img {
        width: 115px;
    }
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
    .page-heading h1 {
        font-size: 29px;
        line-height: 1.25;
    }
    .page-heading h1 .status {
        margin-top: 6px;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
        margin: 22px 0;
    }
    .stat {
        padding: 19px;
    }
    .stat > span {
        font-size: 11px;
    }
    .stat > strong {
        font-size: 35px;
    }
    .table-top {
        padding: 18px;
    }
    .filters label {
        flex: 1;
    }
    .filters .search-label {
        flex: 1 0 100%;
    }
    .table-bottom {
        padding: 15px;
        flex-wrap: wrap;
    }
    .utility-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .actions {
        gap: 9px;
    }
    .utility-row .button {
        font-size: 11px;
        padding: 10px 13px;
    }
    .card {
        padding: 23px;
        border-radius: 13px;
    }
    .table-card {
        padding: 0;
    }
    .record-grid > aside {
        display: block;
    }
    .record-grid > aside > .card {
        margin-bottom: 22px;
    }
    .detail-grid {
        gap: 17px;
    }
    .detail-grid dd {
        font-size: 12px;
    }
    .detail-grid > div {
        min-width: 0;
    }
    .record-grid .card {
        padding: 22px;
    }
    .code-badge {
        font-size: 20px;
        padding: 15px 20px;
    }
    .settings-grid .card {
        padding: 22px;
    }
    .fields {
        gap: 0 12px;
    }
    .question-edit-card .fields {
        grid-template-columns: 1fr;
    }
    .editor-sidebar .button {
        width: 100%;
    }
    .question-edit-card {
        padding: 18px;
    }
    .question-edit-card summary {
        font-size: 13px;
    }
    .survey-layout {
        padding-bottom: 30px;
    }
    .survey-intro h1 {
        font-size: 36px;
    }
    .survey-intro .prose {
        font-size: 13px;
    }
    .question-section {
        padding: 24px 19px;
    }
    .section-title {
        gap: 12px;
    }
    .section-title h2 {
        font-size: 22px;
    }
    .question > label,
    .question legend {
        font-size: 13px;
    }
    .scale-options {
        gap: 5px;
    }
    .scale-options .choice {
        padding: 12px 3px;
        gap: 5px;
    }
    .survey-submit .actions {
        flex-direction: column;
    }
    .survey-submit .button {
        width: 100%;
    }
    .narrow {
        margin: 35px auto;
    }
    .narrow h1 {
        font-size: 31px;
    }
    .login-card {
        margin: 45px auto;
    }
    .success-card {
        padding: 35px 24px;
    }
    .install {
        padding: 28px 15px;
    }
    .install h1 {
        font-size: 36px;
    }
    .install .fields {
        grid-template-columns: 1fr;
    }
    .install .brand {
        font-size: 25px;
    }
    .install .brand span {
        font-size: 8px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
    }
}
@media print {
    .header,
    .footer,
    .back-link,
    .record-grid > aside,
    .button,
    form,
    .survey-sidebar {
        display: none !important;
    }
    .admin-main,
    .main {
        padding: 0;
    }
    .record-grid {
        display: block;
    }
    .card {
        border: 0;
        box-shadow: none;
        padding: 10px 0;
    }
    .answers-list > div {
        break-inside: avoid;
    }
    body {
        background: white;
        font-size: 11px;
    }
}
.response-photo { display:block; width:auto; max-width:100%; max-height:360px; object-fit:contain; margin:12px 0; border-radius:12px; }
#record-dialog { width:min(1400px,96vw); max-width:96vw; height:92vh; max-height:92vh; padding:0; border:1px solid #dce2dd; border-radius:18px; background:#f6f8f5; }
#record-dialog::backdrop { background:rgb(10 30 20 / 55%); }
.dialog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 20px; background:white; border-bottom:1px solid #dce2dd; }
#record-frame { display:block; width:100%; height:calc(100% - 75px); border:0; }
.record-popup-page > .header, .record-popup-page > footer, .record-popup-page .back-link { display:none; }
.record-popup-page .admin-main { padding-top:20px; }
.note-peek { min-width:180px; max-width:340px; }
.note-peek summary { white-space:normal; overflow-wrap:anywhere; }
.note-peek > div { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:10px; padding:12px; background:#eef4ec; border-radius:8px; }
.table-scroll th a { white-space:nowrap; }
.participant-code { font-size:1.1rem; }
.table-hint { padding:0 20px; }
.table-scroll th:last-child, .table-scroll td:last-child { position:sticky; right:0; background:#fff; box-shadow:-5px 0 10px rgb(20 40 20 / 5%); min-width:130px; }
.table-scroll th:last-child { background:#f6f8f5; }
.table-scroll td:last-child .button { display:block; margin:6px 0; white-space:normal; }
@media (max-width:700px) { #record-dialog { width:98vw; max-width:98vw; height:96vh; max-height:96vh; } .record-popup-page .record-grid { display:block; } }
.bulk-toolbar { display:flex; flex-wrap:wrap; gap:14px; align-items:center; padding:16px 20px; border-top:1px solid #e0e7dc; background:#f7f9f5; }
.bulk-toolbar label { margin:0; min-width:240px; }
#bulk-delivery-form input[type=checkbox] { width:18px; height:18px; padding:0; margin:0; accent-color:#285442; }
#bulk-delivery-form input:disabled { opacity:.35; }
.status.group-slm, .code-badge.group-slm { background:#e0edf9; color:#184c7c; border-color:#b2cce5; }
.status.group-sdr, .code-badge.group-sdr { background:#f0e4fa; color:#663280; border-color:#d6b8e6; }
.status.survey-submitted, .status.mail-sent { background:#e1f2e7; color:#20613c; }
.status.survey-draft, .status.mail-sending, .status.mail-uncertain { background:#fff0cd; color:#805410; }
.status.survey-new, .status.mail-unsent, .status.delivery-not_issued { background:#edf0f3; color:#4c5968; }
.status.mail-failed { background:#fbe3e3; color:#992c2c; }
.status.delivery-personal { background:#dff2ea; color:#246246; }
.status.delivery-event { background:#dfeffc; color:#265778; }
.status.delivery-handover { background:#f9eace; color:#785119; }

.stage-cell{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:5px 0 10px}.stage-cell>small{font-size:11px;color:#66756e}

.voucher-preview { margin-top: 24px; border-top: 1px solid #d9e1d9; padding-top: 20px; }
.voucher-preview h3 { margin: 0 0 6px; }
.voucher-preview-subject { margin: 0 0 16px; overflow-wrap: anywhere; }
.voucher-letter { max-width: 560px; margin: 0 auto; border: 1px solid #d9e1d9; border-radius: 12px; background: #fff; color: #233d33; font-family: Arial, sans-serif; }
.voucher-letter-head { padding: 22px 24px; background: #174c40; color: #fff; border-radius: 11px 11px 0 0; }
.voucher-letter-head div:first-child { font: 700 13px/1.5 Arial, sans-serif; letter-spacing: 2px; }
.voucher-letter-head div:last-child { margin-top: 10px; font: 28px/1.2 Georgia, serif; }
.voucher-letter-main { padding: 24px; font: 16px/1.6 Arial, sans-serif; overflow-wrap: anywhere; }
.voucher-letter-main p { margin: 24px 0 0; }
.voucher-ticket { display: inline-block; background: #f4f1df; color: #264b3e; padding: 10px 16px; border: 1px dashed #9caa85; border-radius: 6px; font: 700 20px/1.4 monospace; overflow-wrap: anywhere; }
.voucher-shop { display: inline-block; padding: 12px 20px; border-radius: 6px; background: #174c40; color: white; font: bold 15px/1.5 Arial, sans-serif; text-decoration: none; }
