:root { color-scheme: light; --page: #f1f5f2; --surface: #fff; --surface-soft: #f5f8f6; --text: #18352e; --muted: #65756f; --line: #dfe8e2; --green: #16634d; --green-hover: #104d3c; --green-soft: #e8f4ee; --red: #a93240; --red-soft: #fff0f1; --amber: #805511; --amber-soft: #fff5df; --shadow: 0 20px 65px #123e3710; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--page); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
body.dark-mode { color-scheme: dark; --page: #101e1a; --surface: #1b2d26; --surface-soft: #22382e; --text: #edf5f0; --muted: #afc3b8; --line: #385144; --green: #237356; --green-hover: #2c8968; --green-soft: #254939; --red: #ffafb8; --red-soft: #462a31; --amber: #f0cb85; --amber-soft: #403726; --shadow: 0 20px 65px #0002; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; border: 0; border-radius: 13px; min-height: 48px; font-weight: 650; transition: background .15s, border-color .15s, transform .15s; }
button:disabled { cursor: wait; opacity: .45; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #9b7e22; outline-offset: 4px; }
h1:focus { outline: none; }
.kiosk-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(20px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left)); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 22px; font-weight: 750; letter-spacing: -.8px; }
.brand strong { font-weight: 450; }
.brand-mark { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px; background: #123e37; color: white; font-size: 25px; font-weight: 800; border-radius: 11px; }
.connection { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.connection > span { width: 7px; height: 7px; background: #638d79; border-radius: 50%; }
.connection.offline { color: var(--red); }
.connection.offline > span { background: var(--red); }
.kiosk-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; padding: 24px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); }
.kiosk-context { display: flex; align-items: baseline; justify-content: space-between; width: min(100%, 420px); gap: 12px; margin-bottom: 12px; }
.kiosk-context p { margin: 0; }
.eyebrow { font-size: 10px; line-height: 1.6; font-weight: 750; letter-spacing: 1.7px; color: var(--muted); }
#currentDate { font-size: 11px; color: var(--muted); text-align: right; }
.kiosk-card { width: min(100%, 420px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 30px 22px; text-align: center; box-shadow: var(--shadow); }
.section-symbol { background: var(--green-soft); color: var(--text); width: 46px; height: 46px; border-radius: 15px; margin: 0 auto 15px; display: grid; place-items: center; font-size: 29px; }
h1 { margin: 0; font-size: clamp(22px, 4vw, 28px); line-height: 1.25; letter-spacing: -.9px; overflow-wrap: anywhere; }
.description { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 10px 0 18px; }
.pin-display { min-height: 55px; display: flex; gap: 13px; justify-content: center; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); margin-bottom: 18px; flex-wrap: wrap; padding: 12px; }
.pin-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #9eafa5; }
.pin-dot.filled { background: var(--green); border-color: var(--green); }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.keypad-btn { min-height: 66px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--text); font-size: 25px; font-weight: 550; }
.keypad-btn:hover:not(:disabled) { background: var(--green-soft); border-color: #a2b7ac; }
.keypad-secondary { color: var(--muted); }
.key-caption { display: block; font-size: 10px; font-weight: 650; margin-top: 1px; }
.keypad-submit, .primary { background: var(--green); color: #fff; }
.keypad-submit:hover:not(:disabled), .primary:hover:not(:disabled) { background: var(--green-hover); }
.reader-hint { margin: 17px 0 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.kiosk-footnote { font-size: 11px; color: var(--muted); margin: 18px 0 0; }
.kiosk-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 max(24px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); flex-wrap: wrap; }
.display-options { display: flex; gap: 3px; flex-wrap: wrap; }
.utility-button { padding: 10px 12px; font-size: 11px; font-weight: 550; background: transparent; color: var(--muted); }
.utility-button:hover, .utility-button[aria-pressed="true"] { background: var(--green-soft); color: var(--text); }
.primary, .secondary, .clock-out { padding: 15px 20px; text-align: center; font-size: 15px; }
.primary > span, .clock-out > span { float: right; }
.wide { width: 100%; }
.secondary { background: var(--surface-soft); border: 1px solid var(--line); color: var(--text); }
.secondary:hover { background: var(--green-soft); }
.clock-out { background: var(--red-soft); color: var(--red); border: 1px solid currentColor; }
.text-button { color: var(--muted); background: transparent; padding: 10px 16px; font-size: 13px; margin-top: 10px; }
.text-button:hover { color: var(--text); background: var(--surface-soft); }
.clock-actions { display: grid; gap: 12px; }
.offline-panel { width: min(100%, 440px); font-size: 12px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.offline-panel summary { cursor: pointer; padding: 12px 0; }
.offline-panel .field-label { margin-top: 12px; }
.offline-panel form > button { margin-top: 16px; }
.offline-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.offline-tools button { font-size: 12px; padding: 10px; }
.shift-status { display: inline-block; padding: 6px 12px; border-radius: 30px; margin-top: 16px; font-size: 12px; background: var(--green-soft); color: var(--text); }
.shift-status.paused { background: var(--amber-soft); color: var(--amber); }
.timer-panel { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 16px; padding: 22px 12px 16px; margin: 20px 0; }
.timer-label { font-size: 11px; color: var(--muted); }
.timer { font-size: clamp(32px, 8vw, 44px); font-weight: 650; letter-spacing: -1px; font-variant-numeric: tabular-nums; margin: 8px 0 0; }
#pauseText { font-size: 12px; color: var(--amber); margin: 8px 0 0; min-height: 15px; font-variant-numeric: tabular-nums; }
.session-note { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 10px 0 0; }
.success-symbol { display: grid; place-items: center; margin: 12px auto 24px; width: 70px; height: 70px; background: var(--green-soft); color: var(--text); border-radius: 50%; font-size: 34px; }
.success-symbol + h1 { margin-bottom: 10px; }
#successDetail { margin-bottom: 28px; }
.field-label { display: block; text-align: left; font-size: 12px; font-weight: 650; margin-bottom: 8px; }
input { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--text); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; font-size: 16px; }
.field-help { font-size: 11px; color: var(--muted); text-align: left; line-height: 1.6; margin: 8px 0 22px; }
.error-message, .notice-message { padding: 12px; border-radius: 10px; margin: 16px 0 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.error-message { color: var(--red); background: var(--red-soft); }
.notice-message { color: var(--amber); background: var(--amber-soft); }
.busy-message { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
.large-keys .kiosk-card, .large-keys .kiosk-context { width: min(100%, 520px); }
.large-keys .keypad-btn { min-height: 84px; font-size: 30px; }
.large-keys .clock-actions button { min-height: 72px; font-size: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .kiosk-header { padding-top: max(14px, env(safe-area-inset-top)); padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right)); } .kiosk-main { padding-top: 20px; } .kiosk-card { padding: 23px 22px 20px; border-radius: 20px; } .kiosk-footer { justify-content: center; column-gap: 0; padding-inline: 8px; } .keypad-btn { min-height: 60px; } }
@media (max-height: 760px) { .kiosk-main { padding-top: 16px; } .kiosk-card { padding-top: 20px; } .section-symbol { display: none; } .kiosk-footnote { margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition: none !important; } }
