:root{font-family:system-ui,"Microsoft YaHei",sans-serif;color:#17212b;background:#f3f6f8}*{box-sizing:border-box}body{margin:0}.site-header{min-height:64px;padding:12px 22px;background:#fff;border-bottom:1px solid #d9e1e8;display:flex;justify-content:space-between;align-items:center;gap:12px}.site-header strong{display:block;font-size:1.15rem}.site-header small{color:#586676}.header-actions{display:flex;align-items:center;gap:12px}.notice{width:min(1320px,calc(100% - 28px));margin:10px auto;color:#8a3d12;min-height:1.2em}.login-panel,.panel{width:min(1320px,calc(100% - 28px));margin:12px auto;background:#fff;border:1px solid #d9e1e8;border-radius:10px;padding:14px}.login-panel form{display:flex;align-items:end;gap:9px;flex-wrap:wrap}.login-panel label{flex:1;min-width:180px}.login-panel details{width:100%;margin-top:10px}.login-panel details form{margin-top:10px}.public-layout{display:grid;grid-template-columns:240px minmax(0,1fr) 270px;gap:12px;width:min(1500px,calc(100% - 28px));margin:0 auto 16px}.sidebar,.map-panel{background:#fff;border:1px solid #d9e1e8;border-radius:10px;padding:14px;min-width:0}.section-title{display:block;font-size:.95rem;font-weight:700;margin:0 0 8px}.left-sidebar>.section-title:not(:first-child){margin-top:18px}.map-panel{min-height:650px;display:flex;flex-direction:column}.map-controls{display:flex;gap:7px;flex-wrap:wrap}.map-state{margin:10px 0;color:#586676}#map{display:block;width:100%;flex:1;min-height:520px;border:1px solid #e1e7eb;background:#fff;touch-action:none;cursor:grab}#map.dragging{cursor:grabbing}button,input,select{font:inherit}button{border:0;border-radius:6px;padding:8px 11px;background:#075e75;color:#fff;cursor:pointer}button.quiet{background:#e8eef2;color:#17212b}button:disabled{opacity:.55;cursor:not-allowed}input,select{width:100%;padding:8px;border:1px solid #aebbc8;border-radius:6px;background:#fff}.results{max-height:300px;overflow:auto}.result{width:100%;text-align:left;margin-top:6px;background:#eef4f6;color:#17212b}.result.active{outline:2px solid #4e93a3}.legend-row,.detail-row{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #e5ebef}.legend-label{display:flex;align-items:center;gap:6px}.legend-swatch{display:inline-block;width:16px;height:16px;border:1px solid #63707a}.agent-swatch{border:3px double #00aa35;background:#fff}.empty,.muted{color:#586676}.detail-heading{display:flex;justify-content:space-between;align-items:center}.detail-heading .section-title{margin:0}.detail-close{padding:4px 7px;background:#e8eef2;color:#17212b}.booth-layer .map-hit{stroke:#52606b;stroke-width:.55;vector-effect:non-scaling-stroke;cursor:pointer}.booth-layer .map-hit:hover{stroke:#075e75;stroke-width:2}.selection-fill{fill:#fff;fill-opacity:.26;pointer-events:none}.selection-outline{fill:none;stroke:#075e75;stroke-width:3;vector-effect:non-scaling-stroke}.map-backdrop{fill:#fff}.hall-zone{fill:#f7fafb;stroke:#ccd7dd;stroke-width:1}.hall-label{fill:#7b8993;font-weight:700}.cad-backdrop polygon{fill:none;stroke:#cfd9df;stroke-width:1}.cad-vector-backdrop path{fill:none;stroke:#cbd5dc;stroke-width:1}.cad-vector-hall path{stroke:#aebdc6;stroke-width:1.4}.cad-vector-aisle path{stroke:#e3e8eb}.cad-vector-backdrop text{fill:#8a979f;font-size:6px}.agent-ring{fill:#00ee3b;fill-rule:evenodd;opacity:.8;pointer-events:none}.booth-code{fill:#17212b;font-size:5px;font-weight:700;pointer-events:none;text-anchor:middle}.booth-name{fill:#263641;font-size:3.2px;pointer-events:none;text-anchor:middle}.editor-panel form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.editor-panel .check{display:flex;align-items:center;gap:8px}.editor-panel .check input{width:auto}.legend-form{display:grid;gap:10px}.legend-edit-row{display:grid;grid-template-columns:130px minmax(0,1fr) 46px;gap:9px;align-items:center}.legend-edit-row input[type=color]{padding:2px;height:38px}.row{padding:9px 0;border-bottom:1px solid #e5ebef}.row:last-child{border:0}@media(max-width:980px){.public-layout{grid-template-columns:220px minmax(0,1fr)}.right-sidebar{grid-column:1/-1}.map-panel{min-height:540px}}@media(max-width:680px){.site-header{padding:10px}.public-layout{display:flex;flex-direction:column;width:calc(100% - 20px)}.sidebar,.map-panel{padding:11px}.map-panel{min-height:440px}#map{min-height:380px}.editor-panel form{grid-template-columns:1fr}.legend-edit-row{grid-template-columns:1fr 1fr 46px}.login-panel,.panel{width:calc(100% - 20px)}.notice{width:calc(100% - 20px)}}
.selection-fill{fill:#f5a6a6;fill-opacity:.4}.selection-outline{stroke:#d77b7b;stroke-width:1.2}
.queue-row,.user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e5ebef}.queue-row{display:block}.queue-heading,.queue-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.queue-heading .muted,.queue-desired{margin:4px 0}.queue-actions{margin-top:8px;justify-content:flex-start}.user-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end}@media(max-width:680px){.user-form{grid-template-columns:1fr}.queue-heading{align-items:flex-start;flex-direction:column;gap:2px}}
@media(max-width:680px){.login-panel form{display:grid;grid-template-columns:1fr}.login-panel label{min-width:0}.site-header{align-items:flex-start}.header-actions{min-width:0;justify-content:flex-end}.header-actions #summary{text-align:right}}

/* Keep the published map's layout and palette aligned with the local viewer. */
:root{font-family:Arial,"Microsoft YaHei","PingFang SC",sans-serif;color:#1c3441;background:#e8eff2}
.site-header{height:68px;min-height:68px;padding:0 22px;background:#153344;color:#fff;border:0}
.site-header small{display:block;margin-top:4px;color:#bfd3db}
.header-actions #summary{font-size:12px;background:#315567;border-radius:20px;padding:8px 11px;color:#fff}
.header-actions button{background:#315567;color:#fff}
.notice:empty{display:none}
.public-layout{width:100%;height:calc(100vh - 68px);min-height:540px;grid-template-columns:260px minmax(0,1fr) 275px;gap:0;margin:0}
.sidebar{border:0;border-radius:0;padding:20px;overflow:auto}
.left-sidebar{border-right:1px solid #d3e0e5}
.right-sidebar{border-left:1px solid #d3e0e5}
.map-panel{position:relative;overflow:hidden;min-height:0;padding:0;border:0;border-radius:0;background:#e7eef1}
.map-controls{position:absolute;top:13px;left:13px;z-index:2}
.map-controls button{border:1px solid #b5c7cf;background:#fff;color:#1b3847;box-shadow:0 1px 7px #18334222}
.map-state{position:absolute;right:14px;top:8px;z-index:1;padding:5px 8px;border-radius:5px;background:#ffffffd9;color:#506874;font-size:12px}
#map{width:100%;height:100%;min-height:0;border:0;background:#e7eef1}
.map-backdrop{fill:#e7eef1}
.cad-backdrop polygon{stroke:#aab9c0;stroke-width:.35;vector-effect:non-scaling-stroke}
.cad-vector-backdrop path{stroke:#aab9c0;stroke-width:.45;vector-effect:non-scaling-stroke}
.cad-vector-backdrop text{fill:#6e838d}
.booth-layer .map-hit{stroke:#607783;stroke-width:.38}
.booth-code{fill:#18303b;paint-order:stroke;stroke:#ffffffb3;stroke-width:.18}
.booth-name{fill:#18303b;paint-order:stroke;stroke:#ffffffa8;stroke-width:.16}
.selection-fill{fill:#f6cbd0;fill-opacity:.38}
.selection-outline{stroke:#d87f89;stroke-width:.72}
@media(max-width:1100px){.public-layout{grid-template-columns:210px minmax(0,1fr) 250px}.sidebar{padding:15px}}
@media(max-width:760px){.site-header{padding:0 12px}.site-header strong{font-size:15px}.site-header small{display:none}.public-layout{display:flex;flex-direction:column;height:auto;min-height:0}.left-sidebar{min-height:155px;height:auto;overflow:visible;border:0}.map-panel{height:calc(100vh - 223px);min-height:420px}.right-sidebar{position:relative;display:block;width:auto;box-shadow:none;border:0}.map-state{top:auto;bottom:8px}}
[hidden]{display:none!important}
#event-name-editor{margin:10px 0 18px;font-size:13px}
#event-name-editor summary{color:#087b9f;cursor:pointer}
#event-name-form{display:grid;gap:7px;margin-top:10px}
#event-name-form button{justify-self:start}
#event-name-state{width:auto;min-height:0;margin:7px 0 0}
.header-actions .login-trigger{padding:4px 6px;background:transparent;color:#bfd3db;font-size:12px;font-weight:400}
.header-actions .login-trigger:hover,.header-actions .login-trigger:focus-visible{color:#fff;text-decoration:underline}
.login-panel{position:absolute;top:68px;right:16px;z-index:10;width:min(360px,calc(100vw - 32px));margin:0;padding:16px;box-shadow:0 12px 35px #12324440}
.login-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.login-panel-head button{padding:5px 8px;font-size:12px}
.login-panel form{display:grid;grid-template-columns:1fr;gap:10px;align-items:stretch}
.login-panel label{min-width:0}
.login-panel details{margin-top:12px}
@media(max-width:680px){.login-panel{right:10px;width:calc(100vw - 20px)}}
