[hidden]{display:none!important}
.map-switch{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.map-switch [aria-pressed=true]{background:#f3e6ea;border-color:#a45e70;color:#681b31}
#floorControls label,#floorForm label{display:grid;gap:5px;font-size:.875rem;font-weight:650}
#floorControls select,#floorForm input{max-width:100%;border:1px solid var(--line);border-radius:7px;padding:8px;background:white;color:var(--ink)}
#floorStage{position:relative;border:1px solid #cfc6cb;border-radius:10px;overflow:hidden}
#indoorCanvas{height:clamp(410px,64dvh,780px);background-color:#e9e5e8;background-image:radial-gradient(#c6bcc2 1px,transparent 1px);background-size:18px 18px;isolation:isolate}
#indoorCanvas:focus-visible{outline:3px solid #aa5269;outline-offset:-4px}
.floor-image{box-shadow:0 2px 16px #24182022}
.floor-navigation{position:absolute;z-index:1;top:12px;left:12px;display:grid;overflow:hidden;background:#fff;border:1px solid #c9bdc3;border-radius:8px;box-shadow:0 2px 12px #22162220}
.floor-navigation button{font:inherit;background:#fff;color:var(--ink);min-width:48px;min-height:44px;border:0;cursor:pointer}
.floor-navigation button+button{border-top:1px solid var(--line)}
.floor-navigation button:disabled{color:#777;cursor:default}
.floor-navigation button:not(:disabled):hover{background:#f3e6ea}
.floor-navigation button:focus-visible{outline-offset:-3px}
#floorZoomIn,#floorZoomOut{font-size:1.35rem}
#resetFloor{font-size:.75rem;padding:.4rem}
#floorScale{position:absolute;bottom:12px;right:12px;z-index:1;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:7px 9px;font-size:.8rem;font-variant-numeric:tabular-nums;pointer-events:none}
.floor-open{overflow:hidden}
.expanded-floor{position:fixed;inset:0;z-index:850;background:#f9f5f6;display:flex;flex-direction:column;overflow:auto;padding:clamp(10px,2vw,26px)}
.expanded-floor .panel-head{margin-bottom:8px}
.expanded-floor #floorStage{flex:none}
.expanded-floor #indoorCanvas{height:calc(100dvh - 155px);min-height:230px}
.floor-open #modal{z-index:900}
.floor-open #toast{z-index:910}
.placing-point,.placing-point .leaflet-grab{cursor:crosshair}
.floor-pin span{background:#782233;border:2px solid white;color:white;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;font-size:13px;font-weight:800;box-shadow:0 2px 8px #2227}
#floorControls{margin-bottom:10px}
#addFloor{border-block-start:1px solid var(--line);margin-block-start:14px;padding-block-start:12px}
#addFloor summary{cursor:pointer;font-weight:700;color:var(--teal)}
#floorForm{display:grid;gap:10px;margin-top:12px}
#floorForm button{justify-self:start}
.command-map{margin-top:16px}
.command-map #realMap{height:clamp(390px,60dvh,760px)}
.command-map #indoorCanvas{height:clamp(410px,64dvh,780px)}
#dashboard .grid-main{display:block}
#dashboard .grid-main .timeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}
#dashboard .grid-main .time-item{border:0;padding-bottom:8px}
@media(max-width:600px){
  .command-map{padding:12px}
  .command-map #realMap{height:clamp(320px,55dvh,560px)}
  .command-map #indoorCanvas{height:clamp(340px,59dvh,590px)}
}
.venue-template{display:grid;gap:6px;margin-top:14px;font-size:.9rem;font-weight:650}
.venue-template select{max-width:100%;width:fit-content;padding:8px;border:1px solid var(--line);border-radius:7px}
.floor-resources{background:#f9f5f6;border:1px solid var(--line);border-radius:9px;margin-bottom:10px;padding:10px}
.resource-tray-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.resource-tray-head p{margin:3px 0;color:var(--muted);font-size:.8rem}
.resource-tray-head .ghost{padding:6px 8px;font-size:.8rem;min-height:36px}
.resource-tray-items{display:flex;gap:8px;overflow-x:auto;padding:4px 3px 6px;margin-top:7px}
.resource-tray-filters{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.resource-tray-filters button{font-size:.8rem;padding:5px 8px;min-height:32px}
.resource-tray-filters [aria-pressed=true]{background:#f3e6ea;color:#681b31;border-color:#a45e70}
.resource-chip{display:flex;align-items:center;gap:7px;background:var(--resource-fill);color:var(--ink);border:1px solid var(--resource-edge);border-left:4px solid var(--resource-edge);border-radius:7px;text-align:left}
.tone-free{--resource-edge:#1b654a;--resource-fill:#a7e3ba;--resource-soft:#e6f4ed}
.tone-busy{--resource-edge:#79520d;--resource-fill:#ffe17b;--resource-soft:#fff5cf}
.tone-out{--resource-edge:#1d5588;--resource-fill:#a4d1fa;--resource-soft:#e8f3ff}
.tone-alert{--resource-edge:#a92941;--resource-fill:#fae5ea;--resource-soft:#fff2f4}
.tone-neutral{--resource-edge:#626573;--resource-fill:#ececf1;--resource-soft:#f6f6f8}
.resource-chip{flex:none;min-height:44px;max-width:230px;padding:4px 8px;cursor:grab;font:inherit;font-size:.8rem}
.resource-chip:active{cursor:grabbing}
.resource-chip[aria-pressed=true]{outline:2px solid var(--resource-edge);outline-offset:1px}
.resource-chip b{display:grid;place-items:center;background:var(--resource-soft);color:#782233;--glyph-cutout:var(--resource-soft);border-radius:6px;padding:4px;flex:none}
.resource-chip b svg{display:block;width:19px;height:19px}
.resource-chip strong,.resource-chip small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.resource-chip small{color:#3f3b42}
.resource-chip>span{min-width:0}
.crum-map-icon{background:none;border:0}
.map-glyph{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:2px solid #fff;background:var(--resource-fill);color:#782233;--glyph-cutout:var(--resource-fill);box-shadow:0 0 0 1px var(--resource-edge),0 3px 8px #22162255}
.map-glyph.tone-brand{--resource-fill:#782233;--resource-edge:#591729;color:#fff}
.map-glyph svg{display:block;width:23px;height:23px}
.crum-point-tooltip.tone-brand{--resource-edge:#782233;--resource-fill:#f4e8ed;--resource-soft:#fff9fb}
.leaflet-tooltip.crum-point-tooltip{box-sizing:border-box;width:max-content;min-width:120px;max-width:min(220px,70vw);padding:5px 8px 5px 5px;background:var(--resource-fill);border:1px solid var(--resource-edge);border-left-width:4px;color:#2b1921;border-radius:7px;white-space:normal;box-shadow:0 2px 8px #22162238}
.crum-point-tooltip.leaflet-tooltip-left:before{border-left-color:var(--resource-edge)}
.crum-point-tooltip.leaflet-tooltip-right:before{border-right-color:var(--resource-edge)}
.crum-map-label{display:flex;align-items:center;gap:7px}
.crum-label-code{flex:none;background:var(--resource-soft);color:var(--resource-edge);padding:3px 4px;border-radius:4px;font-weight:800;font-size:.7rem}
.crum-label-text{min-width:0}
.crum-label-text strong,.crum-label-text small{display:block;line-height:1.25;overflow-wrap:anywhere}
.crum-label-text strong{font-size:.79rem}
.crum-label-text small{font-size:.7rem;margin-top:2px;color:#3f3b42}
.crum-map-label .point-count{flex:none;margin-left:auto}
.point-count{background:#2b1921;color:#fff;border:1px solid #fff;border-radius:999px;min-width:20px;height:19px;display:inline-grid;place-items:center;padding:0 4px;font-size:11px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.crum-map-icon .point-count{position:absolute;left:75%;top:-4px;box-shadow:0 1px 5px #24182038}
.resource-map-popup strong{font-size:.94rem}
.resource-map-popup p{margin:.3em 0 .6em}
.resource-map-popup label{display:grid;gap:5px;font-weight:700}
.resource-map-popup select{display:block;max-width:190px;width:100%;min-height:36px;padding:3px 7px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink)}
.floor-workspace{display:grid;gap:12px;align-items:start;grid-template-columns:minmax(0,1fr)}
.floor-workspace .floor-resources{min-width:0;margin-bottom:0}
@media(min-width:901px){
  .floor-workspace:has(.floor-resources:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(185px,226px)}
  .floor-workspace .floor-resources{display:flex;flex-direction:column;max-height:clamp(410px,64dvh,780px)}
  .floor-workspace .resource-tray-items{display:grid;overflow:auto;margin-bottom:2px}
  .floor-workspace .resource-chip{max-width:none;width:100%}
}
.command-map .expanded-floor #indoorCanvas{height:calc(100dvh - 157px)}
.expanded-floor .floor-resources{max-height:calc(100dvh - 157px)}
@media(max-width:600px){.command-map .expanded-floor #indoorCanvas{height:calc(100dvh - 172px)}}
