/* A folded service drawing and a compact wrist-sized navigator. */
.service-minimap{position:fixed;right:var(--safe-x);top:143px;width:170px;padding:8px;border:1px solid #93b6a268;border-top:2px solid #b9b690;background:linear-gradient(135deg,#1a3030ef,#0b1a22eb);box-shadow:0 7px 24px #0006,inset 0 0 0 3px #020f1644;pointer-events:auto;color:#c4d9bd;cursor:pointer;text-align:left;touch-action:manipulation;z-index:27}
.service-minimap:hover{border-color:#d7d3a5}.mini-map-header,.mini-map-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;font:8px/1.4 var(--mono,monospace);letter-spacing:.04em;white-space:nowrap}.mini-map-header b{font-weight:400;color:#e4e6bb}.mini-map-surface{display:block;margin:5px 0;border:1px solid #9eb59b33}.mini-map-surface canvas{display:block;width:100%;height:auto}.mini-map-footer{font-size:7px;justify-content:flex-start}.mini-map-footer>span{margin-left:auto;color:#a8bbb0}.mini-map-footer i,.service-map-status i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#e8ffc3;box-shadow:0 0 5px #c6edb17a;flex-shrink:0}.cartography-hud .toast-stack{right:calc(var(--safe-x) + 191px)}
#modal-root .service-map-modal.modal{width:min(1120px,100%);max-height:94dvh}.service-map-modal .modal-header{padding-bottom:15px}.service-map-modal .field-menu-tabs{margin-bottom:0}.service-map-modal .modal-body{padding-top:17px!important}.service-map-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(245px,1fr);gap:24px;min-width:0}.service-map-chart{min-width:0;align-self:start}.service-map-status{display:flex;gap:10px;justify-content:space-between;align-items:center;font:9px/1.4 var(--mono,monospace);color:#b3c8b8;margin-bottom:9px}.service-map-status>span:first-child{display:flex;gap:7px;align-items:center;color:#e8ffc3}.service-map-modal .sketch-heading{display:none!important}
#modal-root [data-screen=map] .service-map-grid.map-grid{display:block;padding:0;margin:0;width:100%;max-width:100%;overflow:hidden;transform:none;background:#10272c;border:1px solid #a1bca160;box-shadow:0 3px 12px #0003}.service-map-grid canvas{display:block;width:100%;height:auto;cursor:crosshair;touch-action:manipulation}.service-map-legend{display:flex;gap:7px 15px;flex-wrap:wrap;padding:12px 0 10px;border-bottom:1px solid #97b79833;font:9px/1.6 var(--mono,monospace);color:#b0c4b6}.service-map-legend span{white-space:nowrap}.service-map-legend b{font-weight:600;color:#d1d7ba;margin-right:4px}.service-map-selection{font:11px/1.7 var(--mono,monospace);color:#e1dfb5;min-height:3.4em;padding-top:9px}.service-map-directory{max-height:555px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7b9b88 #122f35;padding:0 9px 0 1px;min-width:0}.map-directory-room{padding-bottom:14px}.map-directory-room h3{display:flex;align-items:center;gap:8px;font:10px/1.6 var(--mono,monospace);letter-spacing:.04em;color:#b2c4af;margin:0 0 6px!important;padding:6px 0;border-bottom:1px solid #b9ccad33}.map-directory-room h3 i{display:block;width:11px;height:11px;background:var(--room-color);border:1px solid #a5c4a166;flex-shrink:0}.map-directory-entry{display:flex;width:100%;min-height:49px;gap:11px;align-items:center;text-align:left;padding:8px 7px;border:1px solid transparent;border-bottom:1px solid #a7c3ad15;background:none;color:#d7e2cc;touch-action:manipulation}.map-directory-entry:hover,.map-directory-entry.selected{background:#bfd8af12;border-color:#b5c59c63}.map-directory-entry>b{display:flex;align-items:center;justify-content:center;width:28px;min-width:28px;height:25px;border:1px solid var(--marker-color);font:600 10px var(--mono,monospace);color:var(--marker-color)}.map-directory-entry>span{font:12px/1.5 var(--font,system-ui);min-width:0;overflow-wrap:anywhere}.map-directory-entry small{display:block;font:8px/1.65 var(--mono,monospace);letter-spacing:.04em;color:#9db8a6;margin-top:2px}.map-footer-note{font:9px/1.5 var(--mono,monospace);color:#a7beb0;margin-right:auto;max-width:36ch}
.touch-mode .service-minimap{top:calc(max(12px,env(safe-area-inset-top)) + 164px);right:max(14px,env(safe-area-inset-right));width:107px;padding:5px}.touch-mode .mini-map-header{font-size:6px;letter-spacing:0}.touch-mode .mini-map-footer{font-size:6px;gap:3px;letter-spacing:0}.touch-mode .mini-map-footer>span{font-size:5px}.touch-mode .mini-map-surface{margin:4px 0}.touch-mode .cartography-hud .toast-stack{right:auto;width:calc(100vw - 151px);max-width:260px}.touch-mode #modal-root .service-map-modal .modal-body{padding:12px 14px}.touch-mode .service-map-layout{grid-template-columns:minmax(0,1fr);gap:14px}.touch-mode .service-map-directory{max-height:none;overflow:visible;padding:0}.touch-mode .service-map-status{font-size:8px}.touch-mode .service-map-legend{font-size:8px;gap:6px 12px}.touch-mode .map-directory-entry{min-height:51px;padding:8px}.touch-mode .map-directory-entry>span{font-size:14px}.touch-mode .map-directory-entry small{font-size:9px}.touch-mode .map-directory-room h3{font-size:11px}.touch-mode .map-footer-note{font-size:8px;max-width:23ch}.touch-mode #modal-root .service-map-modal .modal-footer .btn{font-size:9px;padding:9px}
@media(min-width:900px) and (max-height:800px){.service-map-layout{grid-template-columns:minmax(0,1.3fr) minmax(245px,1fr)}.service-map-chart{max-width:470px}.service-map-directory{max-height:440px}.service-minimap{width:150px;top:135px}.cartography-hud .toast-stack{right:calc(var(--safe-x) + 174px)}}
@media(max-width:760px){.service-map-layout{grid-template-columns:minmax(0,1fr)}.service-map-directory{max-height:none;overflow:visible}.service-minimap{width:132px;top:128px}.cartography-hud .toast-stack{right:calc(var(--safe-x) + 148px)}}
@media(orientation:landscape) and (min-width:650px){.touch-mode .service-minimap{width:85px;top:99px;right:max(17px,env(safe-area-inset-right));padding:4px}.touch-mode .mini-map-header{font-size:5px}.touch-mode .mini-map-footer{font-size:5px}.touch-mode .mini-map-footer>span{font-size:4px}.touch-mode .mini-map-footer i{width:4px;height:4px}.touch-mode .cartography-hud .toast-stack{width:240px;max-width:calc(100vw - 380px);right:auto}.touch-mode .service-map-layout{grid-template-columns:minmax(0,1.2fr) minmax(240px,1fr);gap:20px}.touch-mode .service-map-directory{max-height:none}.touch-mode .service-map-chart{position:sticky;top:0}.touch-mode .service-map-status{font-size:7px}.touch-mode .map-footer-note{max-width:none}.touch-mode #modal-root .service-map-modal .modal-header{padding:7px 16px}.touch-mode #modal-root .service-map-modal .modal-header h2{font-size:23px}.touch-mode .service-map-modal .field-menu-tabs{min-height:40px}.touch-mode .service-map-modal .field-menu-tabs button{min-height:40px}.touch-mode #modal-root .service-map-modal .modal-footer{padding:5px 13px}}
@media(orientation:portrait) and (max-width:370px){.touch-mode .service-minimap{width:96px;right:9px}.touch-mode .cartography-hud .toast-stack{width:calc(100vw - 129px)}}
/* Fit the entire drawing and its key on desktop without clipping the south end. */
@media(min-width:761px){html:not(.touch-mode) #modal-root .service-map-modal.modal{--chart-size:clamp(280px,calc(100dvh - 450px),610px);width:min(1120px,calc(var(--chart-size) + 415px))}html:not(.touch-mode) .service-map-layout{grid-template-columns:minmax(0,var(--chart-size)) minmax(245px,1fr)}html:not(.touch-mode) .service-map-chart{max-width:var(--chart-size)}html:not(.touch-mode) .service-map-directory{max-height:calc(100dvh - 350px)}}
@media(orientation:landscape) and (min-width:650px) and (max-height:500px){.touch-mode .service-map-layout{grid-template-columns:minmax(0,.85fr) minmax(245px,1fr);align-items:start}.touch-mode .service-map-chart{position:relative;max-width:calc(100dvh - 185px);margin:0 auto;width:100%}.touch-mode .service-map-legend,.touch-mode .service-map-selection{display:none}.touch-mode .service-map-directory{max-height:calc(100dvh - 185px);overflow-y:auto}.touch-mode .service-map-status{font-size:6px;gap:5px}.touch-mode .service-map-modal .modal-body{padding-top:7px!important}.touch-mode .service-map-modal .map-footer-note{font-size:8px}}
@media(orientation:landscape) and (min-width:650px) and (max-height:500px){.touch-mode .service-map-modal .field-menu-tabs{display:none}}
