.technician-mode .tech-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.technician-mode .tech-nav a{font-size:10px;min-width:0;white-space:nowrap}
.technician-mode .content.tech-map-content{width:min(960px,100%);padding:16px 12px calc(88px + env(safe-area-inset-bottom))}
.tech-map-page{display:grid;gap:12px;color:var(--fc-ink,#172033)}
.tech-map-page>header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.tech-map-page h1{margin:0;font-size:24px}
.tech-map-page header p,.tech-map-help{margin:4px 0 0;color:var(--fc-muted,#64748b);font-size:12px;line-height:1.5}
.tech-map-page button,.tech-map-page select{min-height:42px;border:1px solid var(--fc-line,#dce4ee);border-radius:9px;background:var(--fc-card,#fff);color:inherit;padding:8px 11px;font-size:12px;cursor:pointer}
.tech-map-page button[aria-pressed=true]{background:#2563eb;color:white;border-color:#2563eb}
/* Overlay positions follow the admin Network map's mobile controls. */
.tech-map-surface{position:relative;border:1px solid var(--fc-line,#dce4ee);border-radius:14px;overflow:hidden;background:#e8eef4}
#tech-map{height:calc(100dvh - 240px - env(safe-area-inset-bottom));min-height:420px;width:100%;z-index:0}
#tech-map.measuring{cursor:crosshair}
#tech-map>p{padding:75px 20px 20px;color:#334155}
.tech-map-page button svg{width:16px;height:16px;flex-shrink:0}
.tech-map-page button:focus-visible{outline:2px solid #475569;outline-offset:2px}
.tech-map-controls{position:absolute;z-index:500;top:12px;left:10px;right:10px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);gap:8px;max-width:440px}
.tech-map-controls>button,.tech-map-total-wrap>button{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;height:40px;min-height:40px;min-width:0;padding:0 5px;font-size:11px;font-weight:650;white-space:nowrap;box-shadow:0 3px 12px #0f172a14}
.tech-map-controls>button:disabled{opacity:1;background:var(--fc-canvas,#f1f5f9);border-color:var(--fc-line,#dbe4ef);color:#94a3b8;cursor:not-allowed;box-shadow:none}
.tech-map-total-wrap{position:relative;min-width:0}
.tech-map-menu{display:grid;gap:2px;padding:7px;border:1px solid var(--fc-line,#dbe4ef);border-radius:11px;background:var(--fc-card,#fff);box-shadow:0 10px 28px #0f172a2e}
.tech-map-page [hidden]{display:none!important}
#tech-map-unit-menu{position:absolute;left:0;top:calc(100% + 7px);min-width:135px}
.tech-map-menu button{border:0;border-radius:7px;background:transparent;min-height:35px;text-align:left;font-size:10px;font-weight:700}
.tech-map-menu button[aria-checked=true]{color:var(--fc-blue,#2563eb)}
.tech-map-basemap{position:absolute;z-index:501;top:64px;right:12px}
.tech-map-basemap>button{display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:0;margin-left:auto;box-shadow:0 4px 14px #0f172a21}
#tech-map-layer-menu{width:190px;margin-top:7px}
#tech-map-layer-menu button{display:flex;align-items:center;gap:8px}
#tech-map-layer-menu button>span{width:12px;height:12px;border:1px solid #94a3b8;border-radius:50%;flex-shrink:0}
#tech-map-layer-menu button[aria-checked=true]>span{border:4px solid #2563eb}
#tech-map-labels,#tech-map-locate{position:absolute;z-index:500;bottom:14px;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;box-shadow:0 4px 14px #0f172a21;font-size:10px;font-weight:700}
#tech-map-labels{left:12px}#tech-map-locate{right:12px}
#tech-map-labels svg{width:14px;height:14px}
.tech-map-nap-label{border:1px solid #d5dee9;border-radius:6px;background:var(--fc-card,#fff);color:var(--fc-ink,#172033);font-size:10px;font-weight:700;box-shadow:0 2px 6px #0f172a21}
.tech-map-legend{display:flex;gap:18px;flex-wrap:wrap;margin:0;font-size:12px}
.tech-map-page .tech-map-legend button.nap{color:#f59e0b}.tech-map-page .tech-map-legend button.lcp{color:#8b5cf6}.tech-map-page .tech-map-legend button.task{color:#2563eb}
.tech-map-page .tech-map-legend button{min-height:36px;padding:4px 0;border:0;border-radius:4px;background:transparent;font:inherit;box-shadow:none}
.tech-map-page .tech-map-legend button[aria-pressed=false]{opacity:.6}
.tech-map-page .tech-map-legend button[aria-pressed=true]{background:transparent;text-decoration:underline;text-underline-offset:4px}
@media(max-width:370px){.tech-map-controls{gap:6px}.tech-map-controls>button,.tech-map-total-wrap>button{font-size:10px;gap:3px}.tech-map-controls svg{width:12px;height:12px}.technician-mode .tech-nav a{font-size:9px}}

#tech-map .tech-map-node-pin{border:0;background:transparent}
.tech-map-node-pin>span{position:absolute;left:4px;top:3px;width:23px;height:23px;box-sizing:border-box;border:3px solid #fff;border-radius:50% 50% 50% 0;background:#f59e0b;box-shadow:0 3px 8px #0f172a52;transform:rotate(-45deg)}
.tech-map-node-pin.lcp>span{background:#8b5cf6}
