/* AccessControl UI refresh — shared, local assets only. */
:root{--ink:#15243b;--muted:#65758b;--line:#e1e7ef;--accent:#345de3;--surface:#fff;--green:#345de3;font-family:Inter,'Segoe UI',sans-serif;color:var(--ink);background:#f4f6fb}body{background:#f4f6fb;color:var(--ink);font-family:Inter,'Segoe UI',sans-serif}h1{font-size:clamp(28px,2.6vw,40px);letter-spacing:-1.3px;line-height:1.15}h2{color:var(--ink);font-size:17px}p,small{color:var(--muted)}button,input,select,textarea{border-color:var(--line);border-radius:10px;color:var(--ink);min-height:42px}button{font-weight:600;background:white;color:#34435a}button:hover{background:#eef2ff;border-color:#b2c1f5}button.primary,#connect,#create button[type=submit]{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 4px 10px #345de322}button:disabled{cursor:not-allowed;box-shadow:none}input,select,textarea{background:#fff}input:focus,textarea:focus,select:focus{border-color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #829cf3;outline-offset:3px}a{color:var(--accent)}.panel{border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 18px #1f325007}.eyebrow,.page-kicker{color:#4d6bd4;font-size:11px;font-weight:700;letter-spacing:1.7px;text-transform:uppercase}.page-hero{display:flex;justify-content:space-between;gap:28px;align-items:center;margin-bottom:28px}.page-hero p{max-width:650px;line-height:1.8}.hero-marker{flex-shrink:0;width:74px;height:74px;display:grid;place-items:center;background:#e6ecff;border:1px solid #d4defb;border-radius:22px;color:#345de3;font-size:32px}.auth-layout{display:grid;grid-template-columns:1.15fr 1fr;overflow:hidden;padding:0!important;max-width:1100px;min-height:360px}.auth-story{position:relative;overflow:hidden;background:#172a4c;color:white;padding:42px;display:flex;flex-direction:column;justify-content:center}.auth-story::after{content:'';position:absolute;width:210px;height:210px;border:40px solid #ffffff05;border-radius:50%;right:-100px;bottom:-100px}.auth-story h2{color:white;font-size:30px;letter-spacing:-1px;line-height:1.2;max-width:360px}.auth-story p{color:#bac9e3;max-width:360px;line-height:1.8}.auth-story .page-kicker{color:#a5bbff}.auth-step{display:flex;gap:12px;align-items:center;margin-top:14px;color:#d5e0f4;font-size:13px}.auth-step b{display:grid;place-items:center;width:25px;height:25px;background:#ffffff12;border-radius:7px;color:#a5bbff}.auth-form{padding:40px;display:flex;flex-direction:column;justify-content:center}.auth-form h2{font-size:22px;margin-top:0}.auth-form label{font-size:12px;font-weight:600}.auth-form input{width:100%;min-height:48px}.auth-form button{min-height:46px}.auth-form p,.auth-form small{font-size:12px;line-height:1.7}.workspace-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.summary-card{background:white;border:1px solid var(--line);border-radius:16px;text-align:left;padding:20px;display:grid;grid-template-columns:1fr auto;gap:10px;box-shadow:0 3px 12px #20375404}.summary-card span{font-size:12px;color:var(--muted)}.summary-card strong{font-size:30px;letter-spacing:-1px;font-weight:650}.summary-card small{grid-column:1/-1;font-size:11px}.summary-card[aria-pressed=true]{background:#eef2ff;border-color:#a6b8ef}.summary-card i{font-style:normal;color:#345de3;background:#eef2ff;width:32px;height:32px;display:grid;place-items:center;border-radius:10px}.toolbar{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;gap:10px}.toolbar input{flex:1;min-width:140px}.view-switch{display:flex;gap:3px;border:1px solid var(--line);border-radius:10px;padding:3px;background:#f6f8fc}.view-switch button{border:0;min-height:34px;padding:6px 12px;background:transparent;color:#66758a}.view-switch button[aria-pressed=true]{background:white;color:var(--accent);box-shadow:0 1px 6px #172a4c12}.place-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0 28px}.place-card{background:white;border:1px solid var(--line);border-radius:17px;padding:22px;display:flex;flex-direction:column;min-width:0;box-shadow:0 4px 15px #172a4c05}.place-card:hover{border-color:#a5b7ee;box-shadow:0 8px 24px #172a4c0a}.place-card .card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.place-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:#eef2ff;color:#345de3;font-size:23px}.place-card h2{font-size:18px;margin:20px 0 7px;overflow-wrap:anywhere;letter-spacing:-.35px}.place-card p{font-size:12px;line-height:1.7;overflow-wrap:anywhere;margin:4px 0}.place-card .card-actions{margin-top:auto;padding-top:20px;display:flex;gap:8px}.card-actions button:first-child{flex:1;background:#f0f4ff;color:#345de3;border-color:#e1e8fa}.state{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:5px 9px;background:#eaf7f2;color:#247759;font-size:11px;font-weight:600;white-space:nowrap}.state::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.state.inactive{background:#f0f2f6;color:#768194}.empty-state{grid-column:1/-1;background:white;border:1px dashed #c5d0e2;border-radius:16px;padding:42px;text-align:center;color:var(--muted)}.empty-state h2{font-size:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:26px 0 15px}.section-heading h2{margin:0;font-size:20px}.section-heading p{font-size:12px;margin:5px 0 0}th{background:#f7f9fd;color:#64748c;font-size:10px;letter-spacing:.7px;text-transform:uppercase;padding:16px}td{padding:16px;border-color:#edf0f6;color:#40516b;font-size:13px}tbody tr:hover{background:#f8faff}.badge,.pill,.device-count{border-radius:20px;background:#edf2ff;color:#4967c0}.error:not(:empty),#message:not(:empty){padding:14px 18px;border-radius:12px;background:#fff1eb;color:#9b432e}.metric,.stat{border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 18px #1f325007}.metric{border-top:3px solid #6686e8;color:#65758b;font-size:12px}.metric b{color:var(--ink);font-size:36px;font-weight:650}.bucket{background:#6686e8;border-radius:5px 5px 0 0}.trend{gap:6px}.dashboard-head{padding:28px;border-radius:18px;background:#172a4c;color:white;margin-top:30px}.dashboard-head h1{color:white;font-size:30px}.dashboard-head small{color:#a8badb}.dashboard-head .badge{background:#ffffff13;color:#d2ddf2}.dashboard-head select{background:#243b60;color:white;border-color:#526783}.dashboard-head p{color:#a8badb;font-size:12px}.dashboard-head .bar{margin-top:18px}.dashboard-body{margin-top:20px}.detail-note{padding:12px 16px;background:#edf2fc;border-radius:10px;color:#62718a;font-size:12px;line-height:1.7}.places-page aside{background:white;color:#1f3250;border-right:1px solid var(--line);width:254px;padding:26px 18px}.places-page aside>h2{display:none}.places-page aside>small{font-size:10px;color:#8a98ac;letter-spacing:1.2px}.places-page aside h3{font-size:15px;margin-top:20px}.places-page main{margin-left:254px;padding:34px 38px;max-width:1800px}.places-page .tree button{color:#40516b;border-radius:9px;font-size:12px;padding:10px}.places-page .tree button small{color:#8591a4;font-size:10px}.places-page .tree button:hover,.places-page .tree button[aria-current=true]{background:#eef2ff;color:#345de3}.places-page .tree ul{border-color:#e5eaf3}.places-page .tree details>summary{color:#8490a5}.places-page #context{background:transparent;border-bottom:1px solid var(--line);border-radius:0;padding:10px 0 20px;margin:20px 0}.places-page #selectionInfo{font-size:12px;color:#7c8aa0;margin-top:7px}.places-page #breadcrumbs button{color:#4d6080;min-height:30px;font-size:12px}.places-page #listCount{font-size:12px;color:#7c8aa0}.places-page #editor{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:min(620px,100%);border-radius:22px 0 0 22px;padding:32px;box-shadow:-12px 0 80px #15243b22}.places-page #form{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.places-page #form>h2,.places-page #form>.form-intro,.places-page #addressLabel,.places-page #descriptionLabel,.places-page #parentHint,.places-page #formError,.places-page #form>.bar{grid-column:1/-1}.places-page #form>h2{font-size:26px;letter-spacing:-.6px;margin-bottom:6px}.places-page #form label{font-size:12px;font-weight:600}.places-page #form>.bar{position:sticky;bottom:-32px;background:white;padding:18px 0;border-top:1px solid var(--line);margin-top:18px}.form-intro{font-size:12px;line-height:1.7;margin-bottom:20px}.tickets-page>header{display:none}.tickets-page main{max-width:1480px;padding:38px}.tickets-page #login.authenticated{display:block;min-height:0;padding:16px 22px!important}.tickets-page #login.authenticated .auth-story,.tickets-page #login.authenticated .auth-form>h2,.tickets-page #login.authenticated .auth-form>p,.tickets-page #login.authenticated label,.tickets-page #login.authenticated #key,.tickets-page #login.authenticated #connect{display:none}.tickets-page #login.authenticated .auth-form{padding:0;flex-direction:row;align-items:center;justify-content:space-between}.tickets-page .grid{grid-template-columns:1fr 1.15fr}.tickets-page #credential{background:#f7f9fd;border:1px solid var(--line);border-radius:12px}.tickets-page #payload{font-size:11px;word-break:break-all}.tickets-page button.danger{background:#fff0ed;color:#ac4934;border-color:#f1cfc6}.tickets-page #selected{background:#f5f7fc;padding:16px;border-radius:10px;overflow-wrap:anywhere}.tickets-page .section-number{display:inline-grid;place-items:center;width:28px;height:28px;background:#eef2ff;color:#345de3;border-radius:8px;margin-right:10px;font-size:12px}.tickets-page #ticketSearch{width:300px}.tickets-page #ticketStatus{width:auto}.tickets-page #connection{color:#278062}.home-page .sidebar{background:#172a4c}.home-page .subbrand,.home-page .navlabel{color:#94a9cf}.home-page .nav button{color:#bdcce5}.home-page .nav button.active{background:#304b79;color:white}.home-page .sidebar-foot{color:#a7b9d7;border-color:#385071}.home-page .topbar{background:#f4f6fb;border-bottom:0}.home-page .heading{padding:30px;border:1px solid #dbe4f8;border-radius:20px;background:linear-gradient(115deg,#e9efff,#f7f9ff);margin-bottom:24px}.home-page .heading h1{font-size:34px;letter-spacing:-1.2px}.home-page .stat{padding:25px}.home-page .value{font-size:42px;color:#1d345a}.home-page .stat-icon{background:#edf2ff;color:#486dd1}.home-page .notice{background:#fff7e9;border-color:#f2e2c4;color:#886a3b;border-radius:12px}.home-page .gate-visual{background:#edf2fd;border-color:#dce5f7}.home-page .scenario{min-height:90px;border-radius:12px}.home-page .scenario i{background:#edf2ff;color:#5373ca}.home-page .scenario strong{font-size:12px}.home-page .scenario small{font-size:11px}.quick-links{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.quick-links a{padding:12px 16px;border:1px solid #dce4f3;border-radius:10px;background:white;color:#385aa9;text-decoration:none;font-size:12px;font-weight:600}.quick-links a:hover{background:#edf2ff}.home-page .btn.primary{background:#345de3;border-color:#345de3}.home-page .stat-label{color:#677a94}.home-page .panel-head{padding:24px}.home-page main{max-width:1750px}.home-page .pill.good{background:#eaf7f2;color:#247759}
@media(max-width:1150px){.place-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.places-page main{padding:28px}.auth-story,.auth-form{padding:28px}.workspace-summary{gap:10px}.summary-card{padding:16px}.summary-card strong{font-size:26px}}
@media(max-width:850px){.places-page aside{position:static;width:auto;border-right:0;border-bottom:1px solid var(--line);padding:16px 22px}.places-page aside>small,.places-page aside>h3{display:none}.places-page main{margin:0;padding:22px}.places-page .tree{max-height:180px}.auth-layout{grid-template-columns:1fr}.auth-story{min-height:200px}.auth-story h2{font-size:25px;margin:12px 0}.auth-step{display:none}.auth-form{padding:28px}.workspace-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.tickets-page main{padding:24px}.tickets-page .grid{grid-template-columns:1fr}.hero-marker{width:54px;height:54px;font-size:24px}.dashboard-head{padding:22px}.home-page .heading{padding:24px}.home-page .heading h1{font-size:29px}}
@media(max-width:540px){.place-cards{grid-template-columns:1fr}.places-page main,.tickets-page main{padding:18px}.page-hero{gap:12px}.hero-marker{display:none}.places-page #form{grid-template-columns:1fr}.places-page #editor{padding:24px}.places-page #form>.bar{bottom:-24px}.toolbar>*{max-width:100%}.toolbar input{width:100%;flex-basis:100%}.toolbar #add{flex:1}.summary-card{padding:14px;gap:7px}.summary-card strong{font-size:25px}.summary-card small{font-size:10px}.tickets-page #ticketSearch{width:100%}.dashboard-head .bar select{flex:1;min-width:110px}.page-hero h1{font-size:30px}.tickets-page .row{flex-wrap:wrap}.tickets-page .row>*{min-width:120px}}
.toolbar{display:flex;flex-wrap:wrap;align-items:center}.dashboard-head .page-kicker{color:#9fb7ef}.tickets-page .summary-card{display:flex;flex-direction:column;gap:9px}.tickets-page #login.authenticated{margin:18px 0}.tickets-page #logout{margin-top:0}.tickets-page #connection{font-size:12px}

.tickets-page #login:not(.authenticated) #logout{display:none}#detail{scroll-margin-top:84px}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
#parentHint:empty,#formError:empty{display:none}

/* Mobile operator workspace. Preserve desktop and native kiosk layouts. */
.organization-toggle{display:none}.network-note{padding:14px;border:1px solid #e0b96e;background:#fff4db;color:#75531d;border-radius:12px}
main,.panel,.grid>*,.columns>*,.auth-form{min-width:0}img{max-width:100%}
@media(max-width:850px){
.places-page .organization-toggle{display:block;width:100%;text-align:left;min-height:48px}
.places-page aside .tree{display:none}.places-page aside.organization-open .tree{display:block;max-height:40dvh;overflow:auto;margin-top:12px}
}
@media(max-width:700px){
html{scroll-padding-top:80px}body{padding-bottom:env(safe-area-inset-bottom)}
button,input,select,textarea,.btn{min-height:44px}input,select,textarea{font-size:16px!important;max-width:100%;min-width:0}
button,.btn{touch-action:manipulation}p{font-size:14px;line-height:1.65}
.places-page main,.tickets-page main,.home-page main{padding:16px}
.auth-story{min-height:0;padding:22px}.auth-story h2{font-size:24px}.auth-story p{display:none}.auth-form{padding:22px}
.page-hero{margin-bottom:16px}.page-hero h1,.home-page .heading h1{font-size:27px}
.panel{padding:16px;border-radius:14px}.home-page .panel{padding:0}
.dashboard-head{padding:18px}.dashboard-head h1{font-size:25px;overflow-wrap:anywhere}
.dashboard-head .bar{display:grid;grid-template-columns:1fr}.dashboard-head select{width:100%}
#metrics,#reservationMetrics,.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.metric{padding:16px}.metric b{font-size:30px}.columns{grid-template-columns:1fr!important}
.toolbar{align-items:stretch}.toolbar select,.toolbar input{flex:1 1 100%;width:100%!important}.toolbar button{flex:1}
.place-card .card-actions{flex-wrap:wrap}.card-actions button{min-height:46px}
.places-page #editor{width:100%;max-width:100%;border-radius:0;padding:20px;max-height:100dvh}
.places-page #form{grid-template-columns:1fr}.places-page #form>.bar{bottom:-20px;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
.places-page #form>.bar button{flex:1}.tickets-page .row{display:grid;grid-template-columns:1fr 1fr}.tickets-page .row>*{min-width:0}
.tickets-page #create button{width:100%;margin-right:0}.tickets-page #qr img{width:220px;height:auto}.tickets-page #credential{padding:14px}
.tickets-page .section-heading{align-items:flex-start}.home-page .sidebar{padding:14px}.home-page .sidebar>.brand{display:none}
.home-page .nav{margin-top:0}.home-page .nav a{display:none}.home-page .nav button{min-height:44px;font-size:12px}
.home-page .heading{padding:18px}.home-page .scenario-grid{grid-template-columns:1fr}.home-page .panel-head{padding:16px;flex-wrap:wrap}
.home-page .quick-links{display:grid;grid-template-columns:1fr}.home-page .topbar{padding:0 16px}.home-page .footer{flex-wrap:wrap}
table.mobile-records{white-space:normal;display:block;table-layout:fixed}
.mobile-records thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.mobile-records tbody{display:block}.mobile-records tr{display:block;border:1px solid #dce4f0;border-radius:12px;margin:12px 0;padding:10px;background:#fff}
.mobile-records td{display:grid;grid-template-columns:minmax(90px,35%) minmax(0,1fr);gap:12px;white-space:normal;overflow-wrap:anywhere;padding:9px 4px;border:0;font-size:13px}
.mobile-records td::before{content:attr(data-label);font-weight:600;color:#65758b;font-size:12px}
.mobile-records td[colspan]{display:block}.mobile-records td[colspan]::before{display:none}
.scroll,.table-scroll{max-width:100%}.mobile-records button{margin:0;width:100%}
}
@media(max-width:359px){#metrics,#reservationMetrics,.stats,.tickets-page .row{grid-template-columns:1fr}}
