:root {
    color-scheme: light dark;
    --bg: #f2f6f7;
    --surface: #ffffff;
    --ink: #17262e;
    --muted: #4d6069;
    --line: #c3d1d6;
    --accent: #1b6b87;
    --accent-ink: #ffffff;
    --accent-soft: #dcecf2;
    --shape: #d3dfe4;
}
@media (prefers-color-scheme: dark) {
    :root {
        --shape: #2b3d45;
        --bg: #11181c;
        --surface: #1a252b;
        --ink: #e8f0f3;
        --muted: #a2b5bd;
        --line: #33454d;
        --accent: #6bbad6;
        --accent-ink: #0b1a20;
        --accent-soft: #1f3640;
    }
}
* {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
html {
    font-size: 100%;
}
body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.5;
}
.top {
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    padding: 1rem 1rem 0;
}
.progress-text {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}
progress {
    display: block;
    width: 100%;
    height: 0.5rem;
    appearance: none;
    border: 0;
    border-radius: 0.25rem;
    background: var(--line);
    overflow: hidden;
}
progress::-webkit-progress-bar {
    background: var(--line);
}
progress::-webkit-progress-value {
    background: var(--accent);
}
progress::-moz-progress-bar {
    background: var(--accent);
}
main {
    flex: 1;
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}
h1,
h2 {
    margin: 0 0 0.75rem;
    font-size: 1.6rem;
    line-height: 1.25;
    text-wrap: balance;
}
h1:focus,
h2:focus {
    outline: none;
}
p {
    margin: 0 0 1rem;
}
.why,
.hint {
    color: var(--muted);
    font-size: 1rem;
}
.hint {
    margin-bottom: 0.75rem;
    font-weight: 600;
}
fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
.choices {
    display: grid;
    gap: 0.75rem;
}
.choice {
    display: block;
    position: relative;
}
.choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.choice span {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 3.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
    cursor: pointer;
}
.choice span::before {
    content: "";
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--muted);
    background: var(--surface);
}
.choice input[type="radio"] + span::before {
    border-radius: 50%;
}
.choice input[type="checkbox"] + span::before {
    border-radius: 0.3rem;
}
.choice input:checked + span {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.choice input[type="radio"]:checked + span::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 0.3rem var(--accent-soft);
}
.choice input[type="checkbox"]:checked + span::before {
    border-color: var(--accent);
    background: var(--accent);
    background-image: linear-gradient(135deg, transparent 45%, var(--accent-ink) 45%, var(--accent-ink) 55%, transparent 55%), linear-gradient(45deg, transparent 60%, var(--accent-ink) 60%, var(--accent-ink) 72%, transparent 72%);
    background-size: 100% 100%;
}
.choice input:focus-visible + span {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    resize: vertical;
}
textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
.views {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.view-button[aria-pressed="true"] {
    background: var(--accent);
    color: var(--accent-ink);
}
.body {
    display: block;
    width: 100%;
    max-width: 17.5rem;
    height: auto;
    margin: 0 auto;
}
.body .shape * {
    fill: var(--shape);
}
.body .side {
    fill: var(--muted);
    font-size: 8px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.zone {
    fill: transparent;
    stroke: var(--muted);
    stroke-width: 0.8;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.zone:hover {
    fill: var(--accent-soft);
}
.zone:focus-visible {
    stroke: var(--ink);
    stroke-width: 2;
}
.zone.selected {
    fill: var(--accent);
    stroke: var(--accent-ink);
    stroke-width: 1.5;
}
.picked {
    margin: 0.75rem 0 1rem;
    color: var(--muted);
    font-size: 1rem;
    text-align: center;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.summary {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 2px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
    font: inherit;
    font-size: 1rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    user-select: text;
}
.send {
    display: grid;
    gap: 0.75rem;
}
.note {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1rem;
}
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--accent);
    border-radius: 0.75rem;
    background: var(--surface);
    color: var(--accent);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.button.primary {
    background: var(--accent);
    color: var(--accent-ink);
}
.button:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}
.actions {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
}
.actions .button {
    flex: 1;
}
@media (prefers-reduced-motion: no-preference) {
    .choice span {
        transition: background-color 0.15s, border-color 0.15s;
    }
}
