:root {
  color-scheme: dark;
  --background: #0b0e0c;
  --panel: #111612;
  --panel-raised: #151d16;
  --line: #2d3a2e;
  --green: #a5fc56;
  --text: #fcfdfb;
  --muted: #bac6b9;
  --error: #ffaba7;
  font: 16px/1.58 'Segoe UI', system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 82% 16%, #182517 0, transparent 42%), var(--background); }
body, .admin-body { display: flex; flex-direction: column; }
p { margin: 0 0 1rem; }
a { color: var(--green); }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.11; letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 5vw, 2.65rem); }
h2:focus { outline: none; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.main { flex: 1; }
.skip-link { position: absolute; left: .75rem; top: .75rem; padding: .5rem 1rem; z-index: 3; transform: translateY(-200%); background: var(--background); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 85px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .68rem; align-items: center; color: var(--text); font-weight: 750; letter-spacing: .075em; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--green); }
.brand-icon { width: 35px; height: 35px; fill: #1a2b19; stroke: var(--green); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-icon path + path { fill: none; stroke-width: 2.3; }
.location { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .83rem; text-align: right; }
.location svg, .meta-strip svg { width: 20px; min-width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; padding-top: clamp(2.5rem, 6vw, 5.25rem); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--green); text-transform: uppercase; letter-spacing: .145em; font-weight: 650; font-size: .72rem; margin-bottom: 1.25rem; }
.eyebrow span { height: .42rem; width: .42rem; background: var(--green); border-radius: 50%; box-shadow: 0 0 14px #a5fc5677; }
.hero h1 { font-size: clamp(2.75rem, 6.1vw, 5.6rem); letter-spacing: -.067em; line-height: 1.015; font-weight: 800; margin-bottom: 1.35rem; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-art { display: grid; place-items: center; position: relative; min-width: 0; min-height: 26rem; margin-top: -2rem; background: radial-gradient(ellipse, #3251255c 4%, #1d331e72 34%, transparent 70%); }
.signal { width: min(100%, 520px); display: block; height: auto; }
.lead { max-width: 30rem; color: var(--muted); font-size: clamp(.97rem, 1.5vw, 1.11rem); }
.promise { font-size: .95rem; font-weight: 650; margin: 1.2rem 0 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .68rem 1rem; min-height: 48px; border: 1px solid transparent; border-radius: .55rem; font-weight: 680; text-decoration: none; line-height: 1.26; text-align: center; }
.button.primary { color: #10190b; background: var(--green); }
.button.primary:hover:not(:disabled) { background: #bcff82; }
.button.primary:disabled { opacity: .62; }
.button.secondary { color: var(--text); border-color: var(--line); background: var(--panel-raised); }
.button.secondary:hover:not(:disabled), .button.quiet:hover { background: #253226; }
.button.quiet { color: var(--muted); background: transparent; }
.button span { font-size: 1.25em; line-height: 1; }
#start { gap: 1.25rem; min-height: 53px; padding-inline: 1.12rem; font-size: .82rem; letter-spacing: .055em; }
.availability { margin: .7rem 0 0; color: var(--muted); font-size: .89rem; }
.availability:empty, .error:empty, #share-status:empty, #send-note:empty { display: none; }
.meta-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; border: 1px solid var(--line); border-radius: .7rem; margin-top: clamp(2rem, 5vw, 4.3rem); padding: 1rem 1.15rem; background: #141b15d9; }
.meta-strip span { display: flex; align-items: center; justify-content: center; gap: .48rem; font-size: .9rem; color: var(--muted); }
.meta-strip span + span { border-left: 1px solid var(--line); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: clamp(2rem, 6vw, 4.5rem); padding: 1.1rem 0 1.35rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer a, .link-button { color: var(--muted); text-underline-offset: .19em; }
.link-button { padding: 0; background: transparent; border: 0; text-decoration: underline; }
.link-button:hover, .site-footer a:hover { color: var(--green); }
.footer-dot { margin: 0 .46em; color: #8f9c8d; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: .85rem; box-shadow: 0 18px 80px #0003; padding: clamp(1.15rem, 4.4vw, 2.75rem); }
.form-panel { width: min(100%, 730px); margin: clamp(1.6rem, 5vw, 4rem) auto 0; }
.panel p { color: var(--muted); }
.progress-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--green); font-size: .8rem; font-weight: 700; margin-bottom: .45rem; }
progress { display: block; width: 100%; height: .53rem; margin: 0 0 1.7rem; border: none; border-radius: 1rem; overflow: hidden; color: var(--green); background: #293429; }
progress::-webkit-progress-bar { background: #293429; }
progress::-webkit-progress-value { background: var(--green); }
progress::-moz-progress-bar { background: var(--green); }
.hint, .counter { font-size: .87rem; color: var(--muted); }
.choices { display: grid; gap: .48rem; }
.option { display: flex; align-items: flex-start; gap: .7rem; padding: .65rem .78rem; min-height: 48px; background: var(--panel-raised); border: 1px solid var(--line); border-radius: .48rem; cursor: pointer; }
.option input { flex: 0 0 auto; align-self: flex-start; width: 1.13rem; height: 1.13rem; margin: .2rem 0 0; accent-color: var(--green); }
.option:hover, .option.chosen { border-color: #62904a; background: #1b291a; }
.field-label { display: block; margin: .85rem 0 .35rem; }
textarea, input:not([type=radio], [type=checkbox]), select { width: 100%; min-height: 48px; border: 1px solid #405342; border-radius: .48rem; color: var(--text); background: #0b100c; padding: .65rem .75rem; }
textarea { display: block; resize: vertical; min-height: 140px; }
.counter { display: block; margin-top: .35rem; text-align: right; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: .65rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.actions > div, .share-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
#captcha { margin-top: 1.2rem; }
.error { color: var(--error) !important; font-size: .9rem; margin: .7rem 0 0; }
.success-mark { display: inline-grid; place-items: center; width: 3.1rem; height: 3.1rem; margin-bottom: 1rem; border-radius: 50%; background: #20321c; color: var(--green); font-size: 1.55rem; }
.share-actions { margin: 1.4rem 0 0; }
#manual-link, #share-status { display: block; margin: .8rem 0 0; }
.privacy-layer { position: fixed; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 1rem; background: #060806e8; }
.privacy-card { width: min(100%, 640px); max-height: 90vh; max-height: 90dvh; overflow-y: auto; }
.privacy-card .button { float: right; margin-left: 1rem; }
.privacy-card p:last-child { margin-bottom: 0; }

.admin-body { background: var(--background); }
.admin-main { padding-block: 1.8rem; }
.admin-main .panel { padding: clamp(1.1rem, 3vw, 1.65rem); }
.admin-login { max-width: 520px; margin: 2rem auto; }
.admin-login form .button { margin-top: 1.25rem; }
.admin-top, .toolbar { display: flex; justify-content: space-between; align-items: end; gap: .75rem; flex-wrap: wrap; }
.admin-top { align-items: center; margin-bottom: 1.3rem; }
.admin-top h1 { margin: 0; }
.toolbar { justify-content: start; margin-bottom: .75rem; }
.toolbar label { flex: 1 1 11rem; }
.toolbar label:first-child { flex-basis: 16rem; }
.toolbar label span { display: block; margin-bottom: .27rem; color: var(--muted); font-size: .82rem; }
.admin-summary { margin: 1.15rem 0; }
.admin-total { font-size: clamp(1.9rem, 4.5vw, 3.4rem); line-height: 1.17; color: var(--green); font-weight: 750; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-block: .85rem 1.2rem; }
.chart h3, .open-answers h2 { font-size: 1.28rem; }
.chart.wide { grid-column: 1 / -1; }
.chart ol { max-height: 340px; overflow-y: auto; list-style: none; margin: 0; padding: 0 .35rem 0 0; }
.chart li { margin: .55rem 0 .75rem; }
.chart-label { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .84rem; }
.chart-label strong { color: var(--text); }
.chart meter { display: block; width: 100%; height: .65rem; accent-color: var(--green); }
.chart meter::-webkit-meter-bar { border: 0; border-radius: .5rem; background: #273329; }
.chart meter::-webkit-meter-optimum-value { background: var(--green); border-radius: .5rem; }
.chart meter::-moz-meter-bar { background: var(--green); border-radius: .5rem; }
.chart select { width: auto; max-width: 100%; margin-bottom: .65rem; }
.table-view { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { padding: .65rem .5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--green); }
td { min-width: 145px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pager { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-top: .75rem; }

@media (min-width: 1080px) {
  .hero-break { display: none; }
}
@media (max-width: 870px) {
  .wrap { width: calc(100% - 54px); }
  .hero-art { min-height: 20rem; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 68px; }
  .location { font-size: .7rem; }
  .location svg { width: 16px; min-width: 16px; height: 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 4.2rem); }
  .hero-break { display: none; }
  .hero-art { min-height: 0; width: min(83%, 345px); margin: .5rem auto -1.3rem; }
  .meta-strip { grid-column: auto; grid-template-columns: 1fr; gap: .55rem; margin-top: 1.45rem; padding: .8rem 1rem; }
  .meta-strip span { justify-content: flex-start; }
  .meta-strip span + span { border-left: 0; }
  .site-footer { flex-wrap: wrap; }
  .chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
  .wrap { width: calc(100% - 22px); }
  .brand { font-size: .84rem; gap: .35rem; }
  .brand-icon { width: 29px; height: 29px; }
  .actions .button { padding-inline: .7rem; }
  .form-panel { padding-inline: .7rem; }
}
