@charset "UTF-8";

:root {
    color-scheme: light;
    --ink: #153e45;
    --ink-soft: #46636a;
    --brand: #123e46;
    --brand-hover: #0d3239;
    --accent: #c8e56b;
    --accent-deep: #587519;
    --paper: #f6f7f1;
    --surface: #fff;
    --line: #dfe5df;
    --muted: #687b7d;
    --danger: #9b3434;
    --success: #285d43;
    --shadow: 0 14px 40px rgba(18, 62, 70, .07);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { min-width: 320px; scroll-behavior: smooth; }
html.large-text { font-size: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid #719522; outline-offset: 3px; }

.site-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem clamp(1rem, 5vw, 4.5rem);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--brand); text-decoration: none; font-size: 1.15rem; letter-spacing: -.035em; font-weight: 500; white-space: nowrap; }
.brand strong { font-weight: 800; }
.brand-mark { width: 38px; height: 38px; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; position: relative; border: 2px solid var(--brand); border-radius: 50%; }
.brand-mark span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-deep); }
.brand-mark b { position: absolute; right: -5px; bottom: -3px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--accent); border: 2px solid white; font-size: .72rem; line-height: 1; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; flex-wrap: wrap; }
.page-shell { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; min-height: calc(100vh - 150px); padding: clamp(2rem, 5vw, 4.5rem) 0; }

.button, .button-secondary {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .72rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.button { color: white; background: var(--brand); box-shadow: 0 5px 14px rgba(18, 62, 70, .14); }
.button:hover { color: white; background: var(--brand-hover); transform: translateY(-1px); }
.button-secondary { color: var(--brand); background: white; border-color: var(--line); }
.button-secondary:hover { background: #f0f5ea; border-color: #bbcaad; }
.text-button { padding: .5rem .75rem; color: var(--brand); background: transparent; border: 0; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-size-toggle { min-height: 40px; padding: .55rem .8rem; font-size: .92rem; }
.text-size-toggle span { font-weight: 600; }
.inline-form { display: inline-flex; margin: 0; }

.hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4.2rem); margin-bottom: 3.5rem; border-radius: 25px; background: var(--brand); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; right: 12%; top: -55%; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 75px rgba(255,255,255,.025); pointer-events: none; }
.hero-copy { max-width: 690px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 .7rem; color: var(--accent-deep); font-size: .72rem; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.055em; }
.hero h1 span { color: var(--accent); }
.hero-copy > p:last-child { max-width: 520px; margin: 1.2rem 0 0; color: rgba(255,255,255,.8); font-size: 1.08rem; }
.hero-stamp { width: 150px; height: 150px; flex: 0 0 150px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; z-index: 1; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; transform: rotate(7deg); color: rgba(255,255,255,.78); font-size: .8rem; }
.hero-stamp b { color: var(--accent); font-size: 1.35rem; }
.featured-section { width: min(900px, 100%); margin: 0 auto 2.5rem; text-align: center; }
.featured-card { display: flex; min-height: 190px; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 2.5rem); padding: clamp(1rem, 4vw, 2rem); overflow: hidden; border: 2px solid var(--accent); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-align: left; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.featured-card:hover { transform: translateY(-2px); box-shadow: 0 18px 45px rgba(18,62,70,.13); }
.featured-card > img { display: block; width: min(34%, 230px); height: 150px; flex: 0 0 auto; object-fit: cover; border-radius: 15px; background: var(--paper); }
.featured-copy { display: grid; max-width: 540px; gap: .45rem; }
.featured-copy > strong { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.04em; }
.featured-copy > span { color: var(--muted); }
.featured-copy > b { margin-top: .45rem; color: var(--accent-deep); }
.featured-modal-overlay[hidden], [data-feature-link-field][hidden], [data-feature-poll-field][hidden] { display: none !important; }
.featured-modal-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 1.25rem; background: rgba(7, 20, 24, .78); backdrop-filter: blur(3px); animation: overlay-in .18s ease-out; }
.featured-modal { position: relative; width: min(540px, 100%); max-height: min(88vh, 760px); overflow-y: auto; box-sizing: border-box; padding: clamp(1.5rem, 5vw, 2.5rem); border: 1px solid rgba(255,255,255,.75); border-radius: 22px; background: var(--surface); box-shadow: 0 28px 90px rgba(0,0,0,.34); text-align: center; animation: modal-in .2s ease-out; }
.featured-modal-close { position: absolute; top: .65rem; right: .65rem; display: grid; width: 42px; height: 42px; place-items: center; padding: 0 0 .12rem; border: 0; border-radius: 50%; color: #fff; background: #c62828; font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 9px rgba(70,0,0,.22); }
.featured-modal-close:hover { background: #a91919; }
.featured-modal-image { display: block; width: min(100%, 360px); max-height: 230px; margin: 0 auto 1rem; object-fit: cover; border-radius: 14px; }
.featured-modal h2 { margin: .4rem 1.7rem .5rem; font-size: clamp(1.55rem, 5vw, 2.2rem); line-height: 1.15; letter-spacing: -.04em; }
.featured-modal > p:not(.eyebrow) { margin: .4rem auto 1.25rem; color: var(--muted); }
.modal-open { overflow: hidden; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.poll-section { margin-bottom: 2.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-heading h2, .admin-panel h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.035em; }
.poll-count { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.poll-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.poll-card { display: flex; min-height: 270px; flex-direction: column; padding: 1.4rem; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 3px 12px rgba(18,62,70,.025); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.poll-card:hover { transform: translateY(-3px); border-color: #bdcdb6; box-shadow: var(--shadow); }
.poll-card-image { display: block; width: calc(100% + 2.8rem); height: 160px; margin: -1.4rem -1.4rem 1.1rem; overflow: hidden; border-radius: 17px 17px 0 0; background: #edf1e8; }
.poll-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poll-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.35rem; }
.card-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: #e9f2d1; font-weight: 900; }
.poll-card h3 { margin: .1rem 0 .55rem; font-size: 1.27rem; line-height: 1.28; letter-spacing: -.025em; }
.poll-card .eyebrow { margin-bottom: .25rem; font-size: .65rem; }
.card-description { margin: 0; color: var(--muted); font-size: .92rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: auto; padding-top: 1.2rem; color: var(--muted); font-size: .83rem; }
.card-link { color: var(--brand); font-weight: 800; text-decoration: none; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.status-pill { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; padding: .3rem .65rem; border-radius: 99px; font-size: .75rem; line-height: 1.35; font-weight: 750; white-space: nowrap; }
.status-open { color: #375814; background: #eaf4d5; }
.status-closed { color: #5e6262; background: #edf0ed; }
.trust-strip { display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.35rem; border: 1px solid #dce7c2; border-radius: 14px; background: #f0f5df; }
.trust-strip p { margin: 0; color: var(--ink-soft); }
.trust-strip strong { color: var(--ink); }
.trust-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; color: var(--brand); background: var(--accent); font-size: 1.3rem; font-weight: 800; }

.narrow-section { width: min(780px, 100%); margin: 0 auto; }
.back-link { display: inline-block; margin: 0 0 1.7rem; color: var(--brand); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.narrow-section h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.65rem); line-height: 1.13; letter-spacing: -.05em; }
.lead { color: var(--muted); font-size: 1.05rem; }
.poll-heading-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.poll-heading-row .status-pill { margin-top: .35rem; }
.vote-form { margin-top: 2rem; }
.choice-fieldset { margin: 0 0 1.75rem; padding: 0; border: 0; }
.choice-fieldset legend { margin-bottom: .8rem; font-weight: 800; font-size: 1.03rem; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.option-card { display: flex; min-height: 190px; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; position: relative; padding: 1.1rem; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.option-card:hover { border-color: #a7be94; transform: translateY(-2px); }
.option-card:focus-within { outline: 3px solid #719522; outline-offset: 3px; }
.option-card:has(input:checked) { border-color: var(--brand); background: #f2f6e7; box-shadow: 0 0 0 3px rgba(200,229,107,.48); }
.option-card input[type="radio"] { position: absolute; z-index: 1; top: 1rem; left: 1rem; width: 22px; height: 22px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.choice-indicator { width: 0; height: 0; position: absolute; top: 1.15rem; right: 1.1rem; }
.option-image { display: block; width: min(150px, 64%); height: 118px; object-fit: contain; }
.option-name { color: var(--ink); font-weight: 800; text-align: center; }
.rating-fieldset { margin: 0 0 1.5rem; padding: 0; border: 0; }
.rating-fieldset legend { margin-bottom: .45rem; font-weight: 800; font-size: 1.03rem; }
.rating-stars { display: flex; align-items: center; gap: .25rem; }
.rating-choice { display: inline-grid; min-width: 46px; min-height: 46px; place-items: center; position: relative; border-radius: 10px; cursor: pointer; }
.rating-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rating-star { color: #c8cfca; font-size: 2rem; line-height: 1; transition: color .14s ease, transform .14s ease; }
.rating-choice[data-active="true"] .rating-star { color: #e2a800; }
.rating-choice:hover .rating-star { transform: scale(1.12); color: #c48f00; }
.rating-choice:has(input:focus-visible) { outline: 3px solid #719522; outline-offset: 2px; }
.rating-hint { display: block; margin-top: .2rem; color: var(--muted); font-size: .82rem; }
.rating-display { color: #ba8500; letter-spacing: .06em; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: flex; min-width: 0; flex-direction: column; gap: .4rem; color: var(--ink); font-weight: 700; font-size: .92rem; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; box-sizing: border-box; padding: .75rem .85rem; color: var(--ink); background: white; border: 1px solid #cdd8d1; border-radius: 10px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: 3px solid rgba(200,229,107,.6); outline-offset: 1px; }
.field small { color: var(--muted); font-weight: 450; font-size: .8rem; }
.optional-label { color: var(--muted); font-size: .84em; font-weight: 550; }
.form-actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-top: 1.4rem; }
.form-actions .button { min-height: 50px; }
.field-full { grid-column: 1 / -1; }

.alert { margin: 0 0 1.25rem; padding: .9rem 1rem; border-radius: 11px; font-weight: 650; }
.alert-error { color: var(--danger); background: #fff0ee; border: 1px solid #efcbc5; }
.alert-success { color: var(--success); background: #eaf5ec; border: 1px solid #c6dfcb; }
.confirm-card, .auth-card { padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.confirm-option { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.confirm-option img { width: 82px; height: 82px; object-fit: contain; padding: .35rem; border-radius: 13px; background: var(--paper); }
.confirm-option div { display: flex; flex-direction: column; gap: .15rem; }
.confirm-option strong { font-size: 1.2rem; }
.muted-label, .confirm-details dt, .admin-poll-top .muted-label { color: var(--muted); font-size: .82rem; }
.confirm-details { display: grid; gap: .7rem; margin: 1.1rem 0; }
.confirm-details div { display: grid; grid-template-columns: 105px 1fr; gap: .7rem; }
.confirm-details dt { font-weight: 650; }
.confirm-details dd { margin: 0; overflow-wrap: anywhere; }
.privacy-note { color: var(--muted); font-size: .82rem; }
.confirm-actions { margin-top: 1.15rem; }
.confirm-actions .button { width: 100%; }
.success-panel { max-width: 650px; margin: clamp(1rem, 8vw, 5rem) auto; padding: clamp(2rem, 6vw, 4rem); text-align: center; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.success-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 1.2rem; border-radius: 50%; color: var(--brand); background: var(--accent); font-size: 2.4rem; font-weight: 900; }
.success-panel h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.05em; }
.success-panel > p:not(.eyebrow) { color: var(--muted); margin: .7rem 0 1.6rem; }
.empty-state { padding: 2rem; text-align: center; border: 1px dashed #cbd6ca; border-radius: 16px; background: rgba(255,255,255,.55); }
.empty-state h2, .empty-state h3 { margin: .3rem 0; }
.empty-state p { color: var(--muted); }
.compact-empty { padding: 1.2rem; }
.state-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #eaf4d5; font-weight: 900; }

.auth-shell { display: grid; place-items: start center; padding-top: clamp(2rem, 7vw, 6rem); }
.auth-card { width: min(450px, 100%); box-sizing: border-box; }
.auth-card h1 { margin: 0; font-size: 1.8rem; line-height: 1.2; letter-spacing: -.04em; }
.auth-form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.auth-form .button { margin-top: .3rem; }

.admin-page { width: min(1320px, calc(100% - 2.5rem)); }
.admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.7rem; }
.admin-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.05em; line-height: 1.1; }
.admin-heading .lead { margin: .5rem 0 0; }
.admin-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 1.5rem; }
.admin-nav { display: flex; position: sticky; top: 1rem; flex-direction: column; gap: .25rem; padding: .65rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.admin-nav a { padding: .65rem .7rem; border-radius: 8px; color: var(--ink-soft); font-weight: 650; font-size: .86rem; text-decoration: none; }
.admin-nav a:hover { color: var(--brand); background: #eff4e6; }
.admin-content { display: grid; min-width: 0; gap: 1.25rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.stat-card { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stat-card span { color: var(--muted); font-size: .82rem; }
.stat-card strong { font-size: 1.8rem; line-height: 1.2; letter-spacing: -.04em; }
.admin-panel { min-width: 0; padding: clamp(1rem, 2.5vw, 1.6rem); border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.admin-panel > .section-heading { margin-bottom: 1rem; }
.admin-poll-list { display: grid; gap: .85rem; }
.admin-poll-card { padding: 1.1rem; border: 1px solid var(--line); border-radius: 13px; background: #fdfefb; }
.admin-poll-top { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.admin-poll-top > div { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.admin-poll-card h3 { margin: .85rem 0 .25rem; font-size: 1.13rem; letter-spacing: -.02em; }
.admin-poll-card > p { margin: .25rem 0 .7rem; color: var(--muted); font-size: .9rem; }
.result-summary { margin: .75rem 0; color: var(--muted); font-size: .87rem; }
.result-summary strong { color: var(--brand); font-size: 1.1rem; }
.admin-rating-summary { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .8rem; margin: .5rem 0 1rem; padding: .7rem .8rem; border: 1px solid #efe4b7; border-radius: 10px; background: #fffaf0; color: var(--muted); font-size: .84rem; }
.admin-rating-summary > strong { color: #8a6400; font-size: 1rem; }
.rating-distribution { display: flex; flex-wrap: wrap; gap: .35rem; margin-left: auto; }
.rating-distribution span { padding: .15rem .35rem; border-radius: 6px; color: #725500; background: #f9efcf; font-size: .75rem; white-space: nowrap; }
.result-bars { display: grid; gap: .6rem; }
.result-label { display: flex; justify-content: space-between; gap: .7rem; font-size: .84rem; }
.result-label strong { white-space: nowrap; }
progress.result-track { display: block; width: 100%; height: 11px; margin-top: .3rem; overflow: hidden; appearance: none; border: 0; border-radius: 20px; background: #e8ede4; accent-color: var(--brand); }
progress.result-track::-webkit-progress-bar { border-radius: 20px; background: #e8ede4; }
progress.result-track::-webkit-progress-value { border-radius: 20px; background: var(--brand); }
progress.result-track::-moz-progress-bar { border-radius: 20px; background: var(--brand); }
.options-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: 1.5rem 0 .8rem; }
.options-editor-heading h3 { margin: 0; }
.options-editor-heading p { margin: .2rem 0 0; color: var(--muted); font-size: .84rem; }
.options-editor-list { display: grid; gap: .7rem; }
.admin-option-row { display: grid; grid-template-columns: 32px minmax(125px, .9fr) minmax(190px, 1.15fr) minmax(190px, 1.15fr) 68px; align-items: center; gap: .75rem; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fcfdf9; }
.admin-option-row .field { font-size: .83rem; }
.admin-option-row .field input { font-size: .9rem; }
.option-row-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--brand); background: #eaf2d6; font-size: .82rem; font-weight: 800; }
.admin-option-preview { width: 64px; height: 58px; object-fit: contain; }
.section-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .7rem; }
.participant-groups { display: grid; gap: .8rem; }
.participant-card { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 13px; background: #fdfefb; }
.participant-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.participant-card-heading h3 { margin: 0; font-size: 1rem; }
.participant-card-heading p { margin: .3rem 0 0; color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.participant-timeline { display: grid; margin: .75rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.participant-timeline li { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.history-entry { display: grid; gap: .2rem; }
.history-entry strong { font-size: .9rem; }
.history-entry span, .participant-timeline time { color: var(--muted); font-size: .82rem; }
.participant-timeline time { white-space: nowrap; }
.poll-editor-form > .form-grid { margin-top: .4rem; }
.poll-editor-form > .form-actions { margin-top: 1.2rem; }
.featured-settings-form > .form-grid { margin-top: .8rem; }
.featured-admin-preview { display: block; width: min(320px, 100%); max-height: 160px; margin-top: 1rem; border: 1px solid var(--line); border-radius: 12px; object-fit: cover; }
.remove-image-field > span { display: flex; flex-direction: row; align-items: center; gap: .5rem; }
.remove-image-field input { width: 18px; min-height: 18px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .87rem; }
th, td { padding: .78rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-soft); background: #f2f5ed; font-size: .77rem; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcf7; }
td:nth-child(4) { overflow-wrap: anywhere; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; padding: .5rem clamp(1rem, 5vw, 4.5rem); color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); font-size: .82rem; }

@media (max-width: 900px) {
    .poll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-nav { position: static; flex-direction: row; overflow-x: auto; }
    .admin-nav a { white-space: nowrap; }
}
@media (max-width: 650px) {
    .site-header { align-items: flex-start; padding: .8rem 1rem; }
    .header-actions { gap: .35rem; }
    .header-actions .admin-link, .header-actions > a { min-height: 38px; padding: .5rem .6rem; font-size: .78rem; }
    .text-size-toggle { min-height: 38px; padding: .45rem .6rem; font-size: .78rem; }
    .text-size-toggle span { display: none; }
    .page-shell, .admin-page { width: min(100% - 1.5rem, 1180px); padding: 1.5rem 0 2.5rem; }
    .hero { align-items: flex-start; padding: 1.7rem 1.35rem; margin-bottom: 2.3rem; border-radius: 18px; }
    .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
    .hero-stamp { width: 86px; height: 86px; flex: 0 0 86px; margin-top: .3rem; font-size: .6rem; }
    .hero-stamp b { font-size: .95rem; }
    .hero::after { right: -48%; }
    .poll-grid { grid-template-columns: 1fr; }
    .poll-card { min-height: 220px; }
    .poll-card-image { height: 145px; }
    .featured-section { margin-bottom: 1.8rem; }
    .featured-card { min-height: 150px; gap: .8rem; padding: .9rem; border-radius: 16px; }
    .featured-card > img { width: 34%; height: 110px; border-radius: 11px; }
    .featured-copy > span { font-size: .86rem; }
    .featured-modal-overlay { padding: .75rem; }
    .featured-modal { border-radius: 17px; }
    .section-heading { align-items: flex-start; }
    .option-grid { gap: .65rem; }
    .option-card { min-height: 160px; padding: .8rem; }
    .option-image { height: 100px; }
    .form-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .form-actions .button { width: 100%; }
    .poll-heading-row { align-items: center; }
    .poll-heading-row h1 { font-size: 1.85rem; }
    .admin-heading { align-items: flex-start; }
    .admin-heading > .button { padding: .65rem .75rem; font-size: .85rem; }
    .stats-grid { gap: .45rem; }
    .stat-card { padding: .7rem; }
    .stat-card span { font-size: .72rem; }
    .stat-card strong { font-size: 1.45rem; }
    .admin-option-row { grid-template-columns: 28px minmax(0,1fr); }
    .admin-option-row .field { grid-column: 2; }
    .admin-option-preview { grid-column: 2; width: 55px; height: 48px; }
    .section-actions { justify-content: flex-start; }
    .participant-timeline li { gap: .5rem; }
    .participant-timeline time { font-size: .76rem; }
    .rating-distribution { width: 100%; margin-left: 0; }
    .options-editor-heading { align-items: flex-start; flex-direction: column; }
    .admin-poll-top { align-items: flex-start; }
    .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: .1rem; padding: .8rem 1rem; }
}
@media (max-width: 400px) {
    .site-header { gap: .35rem; }
    .brand { gap: .45rem; font-size: 1rem; }
    .brand-mark { width: 32px; height: 32px; }
    .header-actions { max-width: 58%; }
    .hero { gap: .6rem; }
    .hero-stamp { width: 72px; height: 72px; flex-basis: 72px; }
    .confirm-details div { grid-template-columns: 82px 1fr; }
    .featured-card { align-items: flex-start; flex-direction: column; }
    .featured-card > img { width: 100%; height: 135px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
