* { box-sizing:border-box }
[hidden] { display:none!important }
:root { color-scheme:light; font:16px/1.45 system-ui,-apple-system,sans-serif; color:#171719; background:#f3f3f1 }
body { margin:0 }
main { width:min(100%,520px); height:var(--screen,100dvh); margin:auto; background:white; display:flex; flex-direction:column; padding-top:env(safe-area-inset-top) }
header, footer, nav { display:flex; align-items:center; gap:12px; padding:12px 24px }
header { min-height:54px; font-size:1.1rem }
header button { width:auto; background:#f4f4f2; padding:0 14px; border-radius:30px }
#back { width:42px; margin-left:-6px; padding:0; font-size:1.45rem }
#logout { margin-left:auto; font-size:.85rem }
form { min-height:0; flex:1; display:flex; flex-direction:column }
section { min-height:0; flex:1; overflow:auto; padding:clamp(18px,5vh,54px) 24px 12px; display:flex; flex-direction:column; align-items:stretch; gap:12px }
h1 { width:100%; max-width:17ch; margin:0 auto 18px; text-align:center; font-size:clamp(27px,7.8vw,38px); line-height:1.1; letter-spacing:-.045em; text-wrap:balance }
p { color:#585858; margin:0; text-align:center }
button, input, select, a { font:inherit }
button { border:0; min-height:44px; color:inherit; font-weight:650; cursor:pointer }
button:focus-visible, a:focus-visible, input:focus-visible { outline:3px solid #a46a08; outline-offset:2px }
label { display:grid; gap:7px; font-size:.92rem; font-weight:600 }
input { width:100%; background:#f5f5f4; color:#111; border:1px solid #dededa; border-radius:14px; font-size:16px; padding:15px }
footer { padding:12px 24px max(16px,env(safe-area-inset-bottom)); background:white }
button[type=submit] { width:100%; min-height:52px; color:white; background:#202020; border-radius:13px; font-weight:700 }
button:disabled { background:#eee; color:#747474; cursor:default }
section > button { background:white; border:1px solid #dededc; border-radius:12px }
#notice:not(:empty) { color:#8a381d; padding:7px 24px; font-size:.92rem }
#stage[data-screen=entry] section { justify-content:safe center; }
.brand-mark { order:-1; height:clamp(62px,11vh,108px); width:94px; object-fit:contain; align-self:center; margin-bottom:8px }
#stage[data-screen=entry] h1 { margin-bottom:0 }
#stage[data-screen=entry] p { max-width:35ch; align-self:center; margin-bottom:10px }
#stage[data-screen=venues] section { padding-top:12px }
.venue-grid { padding:0; margin:0; border:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px }
.venue-tile, .venue-card { position:relative; border:1px solid #dcdcd9; border-radius:17px; display:grid; text-align:center; justify-items:center; overflow:hidden; background:white }
.venue-tile { gap:0; padding:5px; cursor:pointer }
.venue-tile > span:last-child { padding:6px 0; align-self:center }
.venue-tile input { position:absolute; opacity:0; width:1px; height:1px }
.venue-tile:has(:checked) { border-color:#171717; box-shadow:inset 0 0 0 1px #171717; background:#faf9f6 }
.venue-tile:has(:focus-visible) { outline:3px solid #a46a08 }
.venue-photo { display:block; width:min(100%,calc((100dvh - 285px)*.47)); max-width:165px; aspect-ratio:22/15; border-radius:11px; background-image:url('/owner-venues.webp'); background-size:300% 200% }
.shot-0 { background-position:0 0 }.shot-1 { background-position:50% 0 }.shot-2 { background-position:100% 0 }
.shot-3 { background-position:0 100% }.shot-4 { background-position:50% 100% }.shot-5 { background-position:100% 100% }
.venue-card { padding:12px; width:min(60%,235px); align-self:center; gap:4px; box-shadow:0 8px 26px #211e1814 }
.venue-card .venue-photo { width:100%; max-width:none; margin-bottom:6px }
.venue-card span:last-child { color:#595959 }
#stage[data-screen=location] .venue-card { margin:auto }
dl { display:grid; grid-template-columns:auto 1fr; gap:7px 16px; margin:8px 0 }
dt { color:#656565 } dd { margin:0; overflow-wrap:anywhere }
nav { justify-content:space-between; border-top:1px solid #ddd; font-size:.8rem }
nav a { color:inherit; text-decoration:none } .qr { width:min(50vw,190px); align-self:center }
@media(max-height:640px) { section { padding-top:8px; gap:8px } h1 { font-size:26px; margin-bottom:8px } .brand-mark { height:50px } header,footer { padding-top:6px; padding-bottom:6px } }
#actions:empty { display:none }
#stage[data-screen=entry] button[type=submit] { flex:none }
