* { box-sizing: border-box }
body { margin:0; background:#edf3ed; color:#17352e; font: 18px/1.5 system-ui,sans-serif }
header { background:#123a33; color:white; padding:20px clamp(20px,6vw,80px); display:flex; flex-wrap:wrap; gap:10px 26px; align-items:center }
.brand { font-weight:800; letter-spacing:.03em }
main { max-width:820px; margin:clamp(16px,5vw,68px) auto; padding:0 16px }
section { background:#fff; border-radius:22px; padding:clamp(18px,5vw,42px); box-shadow:0 12px 36px #123a3312 }
h1 { font-size:clamp(34px,6vw,58px); line-height:1.05; margin:0 0 14px; letter-spacing:-.045em }
h2 { font-size:24px }
button,input,select { font:inherit }
button { border:0; border-radius:12px; background:#176453; color:white; min-height:52px; padding:12px 20px; cursor:pointer; font-weight:700 }
button:disabled { opacity:.55; cursor:wait }
button.secondary { background:#def1e9; color:#17473d }
button.text { background:transparent; color:#176453 }
.actions { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); margin-top:26px }
.actions button { min-height:80px; display:flex; align-items:center; justify-content:space-between }
label { display:block; margin:14px 0 8px; font-weight:650 }
input,select { display:block; width:100%; margin-top:5px; min-height:52px; border:1px solid #9aaea8; background:white; color:inherit; border-radius:9px; padding:8px 12px }
canvas { display:block; width:100%; aspect-ratio:700/220; border:2px dashed #9aaea8; border-radius:10px; touch-action:none; background:#f7faf8 }
#arrival-form button[type=submit],#return { display:block; margin-top:12px }
#status:empty,#queue:empty { display:none }
#status { padding:12px 16px; background:#fff1ce; border-radius:10px }
#code { font-size:clamp(26px,7vw,45px); letter-spacing:.08em }
#visits article { border-top:1px solid #c6d7ce; padding:12px 0; overflow-wrap:anywhere }
#visits img { display:block; width:min(100%,300px) }
#phone-registration:not([hidden]) { display:grid; grid-template-columns:minmax(115px, 158px) 1fr; align-items:center; gap:18px; margin-top:24px; padding:16px; border-radius:12px; background:#edf3ed }
#phone-registration h2,#phone-registration p { margin:0 0 8px }
#home-qr svg { display:block; width:100%; height:auto }
#home-entry-code { font-weight:750; letter-spacing:.035em }
#home-phone-link { color:#176453 }
@media (max-width:430px) {
  #phone-registration:not([hidden]) { grid-template-columns:1fr }
  #home-qr { width:145px }
}

#kiosk-settings { margin-top:16px; text-align:right }
.settings-link { display:inline-grid; place-items:center; width:48px; height:48px; border-radius:10px; color:#176453; background:#edf3ed; font-size:25px; line-height:1; text-decoration:none }
.settings-link:hover { background:#def1e9 }
.settings-link:focus-visible { outline:2px solid #176453; outline-offset:3px }

#visit-days:not([hidden]) { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 14px }
#visit-day { width:auto; min-width:145px; margin:0 }
#visits-previous,#visits-next { min-width:48px; padding-inline:12px }

.active-visits-filter { display:inline-flex; align-items:center; gap:8px; min-height:48px; margin:0 0 0 4px; cursor:pointer }
.active-visits-filter input { display:inline-block; width:20px; height:20px; min-height:0; margin:0; padding:0; accent-color:#176453 }
