/* Preview-gate page (gate.ftl) — extracted from its former inline <style> block so the gate matches
   the external-stylesheet convention every other page follows. */
/* Namesake note: unrelated to components/wizard/gate.css, the wizard's mobile gate sheet. */
/* Whole sheet layered (consolidation 2026-08-23): gate.ftl links only tokens.css + this file,
   so wrapping everything in @layer components is a complete per-page migration (ADR 018's
   all-at-once rule) and removes the unlayered-precedence hazard the bare body/h1/p rules posed. */
@layer components {
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-family-sans);
}
.gate {
    width: 100%;
    max-width: 360px;
    padding: var(--space-6);
    text-align: center;
}
.gate h1 {
    font-size: var(--font-size-display-sm);
    margin: 0 0 var(--space-2);
}
.gate p {
    color: var(--color-fg-muted);
    font-size: var(--font-size-body);
    margin: 0 0 var(--space-5);
}
.gate input {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-body);
    color: var(--color-fg);
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
}
.gate input::placeholder { color: var(--color-fg-dim); }
.gate input:focus {
    outline: none;
    border-color: var(--color-accent);
}
.gate button {
    width: 100%;
    margin-top: var(--space-3);
    min-height: 44px;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-body);
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    color: var(--color-bg);
}
.gate .err {
    color: var(--color-danger);
    font-size: var(--font-size-meta);
    margin: 0 0 var(--space-4);
}
}
