        :root {
            --bg: #f3f5f8;
            --ink: #1b2430;
            --muted: #5b6675;
            --line: #d5dbe5;
            --surface: #ffffff;
            --accent: #0d5c63;
            --accent-ink: #ffffff;
            --warn: #7a3b00;
            --danger: #8a1c1c;
            --focus: #0b6bcb;
        }
        * { box-sizing: border-box; }
        body {
            margin: 0;
            font-family: "Segoe UI", "Noto Sans", sans-serif;
            background:
                radial-gradient(1200px 500px at 10% -10%, #d9ecee 0%, transparent 55%),
                radial-gradient(900px 400px at 100% 0%, #e7edf5 0%, transparent 50%),
                var(--bg);
            color: var(--ink);
            line-height: 1.45;
        }
        .shell {
            max-width: 760px;
            margin: 0 auto;
            padding: 24px 16px 48px;
        }
        header.toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        h1 {
            margin: 0 0 6px;
            font-size: clamp(1.5rem, 4vw, 1.85rem);
            letter-spacing: -0.02em;
        }
        .lede { margin: 0; color: var(--muted); max-width: 42ch; }
        .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
        button, .linkish {
            font: inherit;
            cursor: pointer;
        }
        button {
            border: 0;
            border-radius: 8px;
            padding: 9px 12px;
            background: var(--accent);
            color: var(--accent-ink);
        }
        button.secondary {
            background: transparent;
            color: var(--accent);
            border: 1px solid var(--line);
        }
        button:focus-visible,
        select:focus-visible,
        a:focus-visible,
        input:focus-visible {
            outline: 3px solid var(--focus);
            outline-offset: 2px;
        }
        .panel {
            background: var(--surface);
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 18px 16px;
            margin-top: 16px;
        }
        .panel h2 {
            margin: 0 0 6px;
            font-size: 1.15rem;
        }
        .panel .hint {
            margin: 0 0 14px;
            color: var(--muted);
            font-size: 0.95rem;
        }
        .note {
            margin: 0 0 14px;
            padding: 10px 12px;
            border-left: 3px solid var(--accent);
            background: #eef6f6;
            color: var(--ink);
            font-size: 0.92rem;
        }
        .note.warn {
            border-left-color: #c47a16;
            background: #fff7eb;
            color: var(--warn);
        }
        .field-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding: 12px 0;
            border-top: 1px solid var(--line);
        }
        .field-row:first-of-type { border-top: 0; padding-top: 0; }
        .field-copy { flex: 1; min-width: 0; }
        .field-copy label {
            display: block;
            font-weight: 600;
            margin-bottom: 2px;
        }
        .field-copy p {
            margin: 0;
            color: var(--muted);
            font-size: 0.88rem;
        }
        .switch {
            position: relative;
            width: 48px;
            height: 28px;
            flex: 0 0 auto;
            margin-top: 2px;
        }
        .switch input {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            margin: 0;
            cursor: pointer;
            z-index: 2;
        }
        .switch .track {
            display: block;
            width: 100%;
            height: 100%;
            border-radius: 999px;
            background: #b8c0cc;
            transition: background 0.15s ease;
        }
        .switch .thumb {
            position: absolute;
            top: 3px;
            left: 3px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 1px 2px rgba(0,0,0,0.2);
            transition: transform 0.15s ease;
            pointer-events: none;
            z-index: 1;
        }
        .switch input:checked + .track { background: var(--accent); }
        .switch input:checked ~ .thumb { transform: translateX(20px); }
        .switch input:disabled { cursor: not-allowed; }
        .switch input:disabled + .track { opacity: 0.5; }
        .status {
            min-height: 1.4em;
            margin: 8px 0 0;
            color: var(--muted);
        }
        .status.error { color: var(--danger); }
        .status.ok { color: #0f5a2f; }
        .qr-picker {
            display: grid;
            gap: 8px;
            margin-bottom: 12px;
        }
        select {
            font: inherit;
            padding: 10px 12px;
            border-radius: 8px;
            border: 1px solid var(--line);
            background: #fff;
            width: 100%;
            max-width: 100%;
        }
        .nav-links {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 20px;
            font-size: 0.95rem;
        }
        .nav-links a { color: var(--accent); }
        .locale-toggle[aria-pressed="true"] {
            background: var(--accent);
            color: var(--accent-ink);
            border-color: var(--accent);
        }
        @media (max-width: 560px) {
            .field-row { flex-direction: column; align-items: stretch; }
            .switch { align-self: flex-start; }
        }
        @media (prefers-reduced-motion: reduce) {
            .switch .track, .switch .thumb { transition: none; }
        }
