:root {
    color-scheme: dark;
    --entry-bg: #06141f;
    --entry-panel: #0a1e2c;
    --entry-line: #315365;
    --entry-text: #eaf6fd;
    --entry-muted: #bdd4e2;
    --entry-accent: #29e3d0;
    --entry-error: #ffb3c0;
}

.survey-entry {
    margin: 0;
    background: var(--entry-bg);
    color: var(--entry-text);
    font: 16px/1.55 system-ui, sans-serif;
}

.entry-shell {
    box-sizing: border-box;
    max-width: 48rem;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 3rem) clamp(1rem, 4vw, 1.75rem);
}

.entry-brand, .entry-footer a {
    display: inline-block;
    padding: .6rem 0;
}

.entry-brand {
    color: var(--entry-text);
    font-size: 1.2rem;
    font-weight: 750;
    text-decoration: none;
}

.entry-header { margin: clamp(1.5rem, 4vw, 2.75rem) 0 1.5rem; }
.entry-header h1 { margin: 0; font-size: clamp(2rem, 6vw, 2.65rem); line-height: 1.1; letter-spacing: -.025em; }
.entry-header p { margin: .65rem 0 0; color: var(--entry-muted); text-wrap: pretty; }

.entry-panel {
    box-sizing: border-box;
    padding: clamp(1rem, 3vw, 1.65rem);
    border: 1px solid var(--entry-line);
    border-radius: .9rem;
    background: var(--entry-panel);
}

.entry-panel label { display: block; font-weight: 700; }
.entry-help { color: var(--entry-muted); margin: .35rem 0 .75rem; font-size: .925rem; text-wrap: pretty; }
.entry-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; }
.entry-panel input, .entry-panel button { font: inherit; border-radius: .5rem; box-sizing: border-box; }

.entry-panel input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: .6rem .75rem;
    border: 1px solid #54778b;
    background: var(--entry-bg);
    color: var(--entry-text);
}

.entry-panel input::placeholder { color: var(--entry-muted); }
.entry-panel input[aria-invalid="true"] { border-color: var(--entry-error); }
.entry-panel input[data-short] { letter-spacing: .2em; font-variant-numeric: tabular-nums; }

.entry-panel button {
    min-height: 48px;
    padding: .6rem 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--entry-accent);
    color: var(--entry-bg);
    font-weight: 720;
}

.entry-panel button:hover { background: #69efdf; }
.entry-panel button:disabled { opacity: .72; cursor: wait; }
.entry-reset { display: inline-block; padding: .6rem 0; font-size: .925rem; }
.entry-error { margin: .55rem 0 0; color: var(--entry-error); font-size: .925rem; }

.entry-scan { margin-top: 1.15rem; padding-top: 1.1rem; border-top: 1px solid var(--entry-line); }
.entry-scan h2 { margin: 0 0 .5rem; font-size: 1rem; }
.entry-scan-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-scan-actions button { border-color: #54778b; background: transparent; color: var(--entry-text); }
.entry-scan-actions button:hover { background: #123043; }
.entry-scan video { display: block; width: min(100%, 26rem); max-height: 21rem; margin: .75rem 0 0; border-radius: .5rem; background: var(--entry-bg); }
.entry-scan-status { margin-bottom: 0; }
.survey-entry [hidden] { display: none; }

.survey-entry :focus-visible { outline: 2px solid var(--entry-accent); outline-offset: 3px; }
.survey-entry ::selection { background: var(--entry-accent); color: var(--entry-bg); }
.entry-footer { margin-top: 1.1rem; color: var(--entry-muted); font-size: .925rem; }
.entry-footer p { margin: 0; text-wrap: pretty; }
.entry-footer a, .entry-panel a { color: var(--entry-accent); text-underline-offset: .2em; }

@media (max-width: 34rem) {
    .entry-input-row { grid-template-columns: minmax(0, 1fr); }
    .entry-scan-actions button { flex: 1 1 9rem; }
}
