:root {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: light dark;
    --ink: #142d25;
    --quiet: #546960;
    --paper: #fff;
    --canvas: #f4f7f4;
    --edge: #d9e3dc;
    --accent: #096346;
    --action: #123a2d;
    --tint: #e7f1e9;
    --focus: #2f986f;
    --error: #a82d43;
    color: var(--ink);
    background: var(--canvas);
}
@media (prefers-color-scheme: dark) {
    :root {
        --ink: #eaf2ed; --quiet: #b1c4b9; --paper: #172720; --canvas: #0f1b16;
        --edge: #3b5045; --accent: #9ee6ba; --action: #a6e7b9; --tint: #243c30;
        --focus: #7ed99e; --error: #ffacb9;
    }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100svh; font-size: 16px; line-height: 1.5; }
.access-page { display: flex; flex-direction: column; }
.access-top { width: min(100%, 1120px); align-self: center; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px clamp(16px, 4vw, 52px); }
.access-brand, .access-browse { display: inline-flex; align-items: center; min-height: 44px; gap: 9px; text-decoration: none; color: var(--ink); }
.access-brand { font-weight: 800; font-size: clamp(17px, 2.6vw, 22px); letter-spacing: -.04em; min-width: 0; overflow-wrap: anywhere; }
.access-browse { color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
.access-mark { width: 29px; height: 29px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--action); flex: none; }
.access-mark::before { content: ""; width: 9px; height: 10px; border: solid var(--paper); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.access-main, .admin-entry { display: grid; align-content: center; justify-items: center; }
.access-main { flex: 1; padding: 12px 16px clamp(40px, 11vh, 108px); }
.admin-entry { padding: 24px 16px; }
.entry-card { width: min(100%, 436px); min-width: 0; padding: clamp(22px, 5vw, 38px); background: var(--paper); border: 1px solid var(--edge); border-radius: 24px; box-shadow: 0 14px 48px #1438240b; overflow-wrap: anywhere; }
h1 { margin: 0 0 25px; font-size: clamp(26px, 5vw, 32px); letter-spacing: -.045em; line-height: 1.2; }
.entry-card > p { margin: -10px 0 22px; color: var(--quiet); font-size: 14px; }
.entry-card > small { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; color: var(--accent); }
.entry-brand { display: none; }
label, .entry-label-row { font-size: 14px; font-weight: 650; }
label { display: block; }
label:has(input) { margin-bottom: 16px; }
.entry-label-row { margin-top: 9px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
input, button { font: inherit; }
input:not([type=hidden]) { width: 100%; min-width: 0; display: block; border: 1px solid var(--edge); border-radius: 11px; min-height: 48px; padding: 11px 13px; color: var(--ink); background: var(--paper); font-size: 16px; margin-top: 6px; }
input::placeholder { color: var(--quiet); opacity: .92; }
.entry-label-row + .entry-secret input { margin-top: 0; }
.entry-secret { position: relative; display: block; }
.entry-secret input { padding-right: 50px; }
.entry-secret button { position: absolute; inset: 2px 3px 2px auto; display: grid; place-items: center; width: 42px; background: transparent; border: 0; border-radius: 9px; color: var(--quiet); cursor: pointer; }
.entry-secret svg, .entry-qr svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linejoin: round; }
.entry-submit, .entry-qr { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 47px; padding: 10px 14px; border: 1px solid transparent; border-radius: 11px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.entry-submit { background: var(--action); color: var(--paper); margin-top: 20px; }
.entry-submit:hover { filter: brightness(1.13); }
.entry-submit:disabled { opacity: .65; cursor: wait; }
.entry-qr { border-color: var(--edge); background: var(--paper); color: var(--ink); margin-top: 9px; }
.entry-qr:hover, .entry-secret button:hover { background: var(--tint); }
.entry-link { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 650; color: var(--accent); text-underline-offset: 3px; }
.entry-error { color: var(--error); font-size: 14px; margin: 12px 0 0; }
.entry-error:empty { display: none; }
footer { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--edge); color: var(--quiet); font-size: 14px; }
.entry-hint { display: block; margin-top: 5px; color: var(--quiet); font-size: 13px; font-weight: 400; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 540px) {
    .access-top { padding: 12px 18px; }
    .access-main { align-content: start; padding-top: clamp(18px, 7vh, 50px); }
    .entry-card { border-radius: 18px; }
}
.entry-manual { margin-top: 12px; font-size: 14px; }
.entry-manual summary { color: var(--accent); font-weight: 600; cursor: pointer; padding: 9px 0; }
.entry-manual form { margin-top: 8px; }
.access-browse::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.7px 1.7px 0 0; transform: rotate(45deg); margin-right: 2px; }

.access-page .entry-card {max-inline-size:min(100%,29rem);margin-inline:auto;}
.access-page .entry-card h1 {text-wrap:balance;line-height:1.2;}
.access-page .entry-card form {min-inline-size:0;}
.access-page :is(input,button,a):focus-visible {outline:3px solid var(--focus);outline-offset:3px;}
.access-page :is(.entry-submit,.entry-qr) {min-height:44px;}
@media(max-width:480px) {
 .access-page .entry-card {padding:clamp(18px,5vw,24px);}
 .access-page .entry-card input {font-size:16px;}
 .access-page .entry-label-row {gap:8px;flex-wrap:wrap;}
}
