:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#142b39;background:#f4f6f7;font-synthesis:none;--navy:#102d3b;--ink:#173647;--teal:#087f75;--line:#dfe6e9;--muted:#748591}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);padding:10px 14px;font-size:12px;font-weight:600;transition:background .15s}button:hover{background:#edf4f4}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #85c8c1;outline-offset:2px}button.primary{background:var(--teal);border-color:var(--teal);color:#fff}button.primary:hover{background:#086e67}button.secondary{background:#e9f4f1;border-color:#c5e1d9;color:#0c766d}button.danger{color:#b03242;border-color:#ecd1d4}button.quiet{border-color:transparent;background:transparent;color:#55707f}h1,h2,h3,p{margin:0}small{font-size:11px;color:var(--muted)}.topbar{height:78px;background:#fff;display:flex;align-items:center;padding:0 27px;gap:37px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;min-width:245px}.brand-icon{background:var(--navy);color:#8cddd0;font-size:28px;width:39px;height:39px;display:grid;place-items:center;border-radius:10px}.brand strong{font-size:24px;letter-spacing:2px;line-height:1}.brand strong span{display:block;font-size:8px;letter-spacing:2.3px;color:#81929e;margin-top:7px}.region-title{display:grid;gap:5px}.region-title strong{font-size:14px;font-weight:600}.eyebrow{font-size:9px;letter-spacing:1.45px;font-weight:700;color:#8ca0ab}.top-actions{display:flex;align-items:center;gap:14px;margin-left:auto}.connection{font-size:11px;display:flex;align-items:center;gap:7px;color:#778c96}.connection::before{content:'';display:block;width:6px;height:6px;border-radius:100%;background:#a8b5ba}.connection.online::before{background:#1caa85}.lab-strip{height:28px;display:flex;align-items:center;gap:12px;background:#f5ede0;color:#927039;font-size:9px;letter-spacing:1px;font-weight:700;padding:0 28px}.lab-strip span{font-weight:400;letter-spacing:.2px}.lab-strip #map-status{margin-left:auto}.workspace{display:flex;height:calc(100dvh - 106px);min-height:400px}aside{width:316px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:500}.sidebar-heading{background:var(--navy);padding:25px 23px 23px;display:flex;align-items:center;justify-content:space-between;color:#fff}.sidebar-heading h1{font-size:20px;font-weight:500;margin-top:8px;letter-spacing:-.5px}.sidebar-heading .eyebrow{color:#7fa9b7}.team-count{display:grid;place-items:center;background:#234452;border:1px solid #3b5c6b;border-radius:7px;min-width:31px;height:31px;font-size:14px;color:#b1ded7}.tabs{display:flex;border-bottom:1px solid var(--line);padding:0 17px;gap:9px}.tabs button{flex:1;border:0;border-radius:0;background:transparent;font-size:11px;color:#7a8b95;padding:17px 8px 14px}.tabs button.active{border-bottom:2px solid var(--teal);color:var(--teal)}.search-wrap{padding:17px 19px 12px}input,textarea,select{border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:12px;padding:11px 12px;width:100%}.search-wrap input{background:#f7f9fa;font-size:11px;padding:11px}#sidebar-content{overflow:auto;flex:1}.group-label{font-size:9px;letter-spacing:1.2px;color:#8a9ba5;padding:10px 22px 8px;text-transform:uppercase;font-weight:600}.user-row{position:relative;display:flex;align-items:center;gap:11px;padding:15px 19px;cursor:pointer;border-bottom:1px solid #f1f4f5;min-height:78px}.user-row:hover{background:#f6f9fa}.user-row.selected{background:#eaf5f2}.user-row.selected:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--teal)}.user-row input{width:13px;height:13px;accent-color:var(--teal);margin:0}.user-dot{height:31px;width:31px;border-radius:9px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:10px;flex-shrink:0}.user-name{font-size:12px;font-weight:600}.user-meta{font-size:10px;color:#899ba5;margin-top:6px}.user-content{flex:1}.user-age{font-size:10px;color:#8b9ba5;text-align:right}.status-dot{height:6px;width:6px;display:inline-block;border-radius:50%;background:#b0bac0;margin-right:5px}.status-dot.fresh{background:#17a481}.status-dot.aging{background:#dfaa46}.selected-tools{padding:12px 19px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;font-size:11px;color:#078577;align-items:center}.selected-tools button{border:0;background:transparent;padding:0;color:#7e909a;font-size:10px}.empty{padding:30px 23px;color:#7c8e98;font-size:12px;line-height:1.8}.empty strong{color:#345666;display:block;margin-bottom:8px;font-size:14px}.sidebar-bottom{padding:15px 20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:9px;color:#8ea0a9}.map-area{position:relative;flex:1;min-width:0;overflow:hidden}#map{height:100%;width:100%;background:#e8ede8}.map-toolbar{position:absolute;top:20px;left:21px;right:20px;z-index:450;pointer-events:none;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}.map-toolbar>*{pointer-events:auto}.segmented{display:flex;box-shadow:0 4px 15px #1f3b4820;background:#fff;border-radius:8px;border:1px solid #e1e8e9;overflow:hidden}.segmented button{border:0;border-radius:0;border-right:1px solid #e8eeef;padding:12px 15px;font-size:10px}.segmented button:last-child{border-right:0}.segmented button.active{background:#e8f5f1;color:var(--teal)}.layer-controls{display:flex;padding:11px 13px;gap:15px;background:#ffffffed;box-shadow:0 4px 15px #1f3b4815;border-radius:7px}.layer-controls label{font-size:10px;display:flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}.layer-controls input{width:12px;height:12px;accent-color:var(--teal);margin:0}.floating-button{position:absolute;z-index:450;right:20px;top:105px;font-size:23px;padding:8px 13px;box-shadow:0 2px 10px #102d3b20}.selection-card{position:absolute;z-index:450;right:21px;bottom:147px;width:270px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;box-shadow:0 12px 30px #102d3b22}.selection-card h3{font-size:13px;margin:7px 0 12px}.selection-card p{font-size:11px;color:#7e919c;line-height:1.6}.selection-card button{margin-top:14px;width:100%}.map-legend{position:absolute;z-index:450;left:23px;bottom:135px;background:#ffffffed;border-radius:6px;padding:9px 13px;display:flex;gap:16px;flex-wrap:wrap;max-width:calc(100% - 45px);font-size:9px;color:#627985;box-shadow:0 3px 12px #102d3b10}.map-legend span{display:flex;align-items:center;gap:5px}.legend-dot{width:5px;height:5px;border-radius:50%;display:inline-block}.green{background:#21a183}.amber{background:#d8a34a}.gray{background:#9aabb4}.timeline{position:absolute;z-index:460;left:21px;right:21px;bottom:23px;background:#fffffff5;border:1px solid #dfe7e9;border-radius:10px;box-shadow:0 8px 30px #173b4920;min-height:87px;display:flex;align-items:center;gap:20px;padding:17px 23px}.timeline-label{min-width:148px;display:grid;gap:5px}.timeline-label strong{font-size:12px}.timeline-label small{font-size:8px}.play-button{border:0;background:#edf5f2;color:#087c71;width:32px;height:32px;padding:0;flex-shrink:0}.timeline-track{flex:1;min-width:40px}.timeline-track input{accent-color:var(--teal);padding:0;width:100%;height:15px;cursor:pointer}.timeline-track div{display:flex;justify-content:space-between;font-size:8px;color:#92a2aa;margin-top:9px}.live{font-size:10px;white-space:nowrap;border-color:#d4e5e0;color:#728d85;padding:9px 11px}.live.active{color:#087e71;background:#eaf6f1}.edit-hint{position:absolute;z-index:470;left:50%;top:85px;transform:translateX(-50%);background:#123847ed;color:#fff;border-radius:8px;padding:12px 18px;box-shadow:0 5px 20px #12384730;font-size:11px;text-align:center;min-width:270px}.edit-hint button{padding:6px 10px;margin:10px 5px 0;font-size:10px}.map-marker{white-space:nowrap;display:flex;align-items:center;gap:6px;padding:5px 8px 5px 5px;border-radius:25px;background:#fff;box-shadow:0 3px 9px #113c4e28;border:1.5px solid var(--marker);width:max-content;transform:translate(-50%,-50%);color:#274a5a;font-size:10px;font-weight:600}.map-marker>i{background:var(--marker);border:3px solid #fff;box-shadow:0 0 0 1px var(--marker);width:17px;height:17px;border-radius:50%;display:block}.map-marker.selected{box-shadow:0 0 0 5px #0e807332,0 3px 12px #173b4940;background:#f1faf7}.map-marker.stale{opacity:.6;border-style:dashed}.point-marker{background:#fff;color:#c98136;border:2px solid #dda35a;width:29px;height:29px;display:grid;place-items:center;font-size:16px;box-shadow:0 2px 7px #0002;border-radius:8px;transform:translate(-50%,-50%)}.point-marker.ping{background:#1f4f61;color:white;border-color:#1f4f61;border-radius:50%}.fog-tile{pointer-events:none!important}dialog{border:0;border-radius:13px;padding:0;max-width:570px;width:calc(100% - 32px);box-shadow:0 20px 100px #0c283f40;max-height:90dvh;color:var(--ink)}dialog::backdrop{background:#0c243b70;backdrop-filter:blur(3px)}.dialog-head{padding:24px 26px 20px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;gap:15px;justify-content:space-between}.dialog-head h2{font-size:19px;font-weight:600;margin-top:6px}.dialog-head button{padding:2px 7px;font-size:18px;background:transparent;border:0;color:#889ba6}.dialog-body{padding:23px 26px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.dialog-body p{color:#778b97;margin-bottom:17px}.dialog-body label{display:block;margin:16px 0 7px;font-size:11px;font-weight:600}.dialog-body input[type=checkbox]{width:14px;vertical-align:middle;margin-right:8px;accent-color:var(--teal)}.dialog-body textarea{height:70px;resize:vertical}.dialog-body small{line-height:1.6;display:block}.dialog-footer{padding:17px 26px;border-top:1px solid var(--line);display:flex;gap:10px;justify-content:flex-end}.dialog-body pre{font-family:ui-monospace,monospace;font-size:10px;background:#f2f6f6;padding:15px;border-radius:7px;white-space:pre-wrap;word-break:break-all;max-height:160px;overflow:auto}.dialog-body .qr{width:180px;display:block;margin:10px auto}.recipient-chip{display:inline-flex;align-items:center;gap:6px;background:#edf5f2;padding:5px 9px;border-radius:5px;margin:2px;font-size:10px}.dialog-error{color:#ba4655;font-size:11px;min-height:16px;margin-top:10px}.point-line{display:flex;align-items:center;justify-content:space-between;padding:8px;background:#f5f8f8;border-radius:6px;margin-bottom:7px;font-size:11px}.point-line button{padding:3px 8px}.invitation-row,.task-row{padding:16px 21px;border-bottom:1px solid var(--line);font-size:11px}.invitation-row strong,.task-row strong{display:block;font-size:12px;margin-bottom:6px}.invitation-row small,.task-row small{display:block;line-height:1.8}.invitation-row button,.task-row button{margin-top:8px;padding:7px 10px;font-size:10px}.badge{font-size:9px;padding:3px 6px;border-radius:4px;color:#7d743c;background:#f5f0d9;display:inline-block;margin-bottom:5px}.badge.active{background:#e7f5ef;color:#17866b}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:2000;padding:12px 20px;background:#143949;color:#fff;font-size:12px;border-radius:8px;box-shadow:0 7px 35px #173b4940;max-width:80vw;display:none}#toast.visible{display:block}.mono{font-family:ui-monospace,monospace}.hint-panel{background:#edf5f2;border:1px solid #d3e5df;border-radius:7px;padding:13px;margin:12px 0}.full-width{width:100%}.map-badge{font-size:10px;color:#1c716a}.mobile .topbar{height:62px;padding:0 15px;gap:10px}.mobile .brand{min-width:0}.mobile .brand strong{font-size:18px}.mobile .brand strong span{font-size:6px}.mobile .brand-icon{width:32px;height:32px;font-size:23px}.mobile .region-title{display:none}.mobile .top-actions{gap:5px}.mobile .top-actions button{font-size:10px;padding:8px}.mobile .lab-strip{padding:0 12px;height:32px;font-size:8px}.mobile .lab-strip span:first-of-type{max-width:200px}.mobile #map-status{display:none}.mobile .workspace{height:calc(100dvh - 94px)}.mobile aside{display:none}.mobile .timeline,.mobile .map-toolbar,.mobile .map-legend,.mobile .selection-card{display:none}.mobile .floating-button{top:15px;right:15px}.mobile #mobile-actions{position:absolute;left:12px;right:12px;bottom:25px;z-index:470;display:flex;gap:7px;flex-wrap:wrap;background:#fff;padding:12px;border-radius:10px;box-shadow:0 7px 25px #173b4930}.mobile #mobile-actions button{font-size:10px;padding:12px 9px;flex:1;white-space:nowrap}.mobile .edit-hint{top:15px;max-width:calc(100% - 30px)}.mobile .connection{font-size:9px}.mobile .task-phone-row{padding:13px;border:1px solid #dfe8ea;border-radius:7px;margin-bottom:10px}.mobile .task-phone-row h3{font-size:12px}.mobile .task-phone-row p{font-size:11px;margin:5px 0}.mobile .task-phone-row button{font-size:10px;padding:8px 11px;margin:7px 5px 0 0}@media(max-width:1100px){.region-title{display:none}.map-toolbar{gap:8px}.segmented button{font-size:9px;padding:11px}.layer-controls{gap:9px}.timeline{gap:12px;padding:15px}.timeline-label{min-width:125px}.selection-card{width:240px}.topbar{gap:15px}}@media(max-width:760px){.topbar{padding:0 13px;height:64px}.brand{min-width:0}.brand strong{font-size:18px}.brand strong span{font-size:6px}.brand-icon{width:32px;height:32px}.top-actions{gap:3px}.top-actions button{font-size:10px;padding:8px}.connection{display:none}.lab-strip{padding:0 13px;font-size:8px}#map-status{display:none}.workspace{height:calc(100dvh - 92px)}aside{width:235px}.sidebar-heading{padding:19px 15px}.sidebar-heading h1{font-size:16px}.search-wrap{padding:12px}.user-row{padding:12px 10px;gap:7px}.user-age{display:none}.user-name{font-size:10px}.user-dot{width:25px;height:25px;font-size:9px}.user-row input{width:11px}.map-toolbar{left:10px;right:10px;top:10px}.segmented{flex-wrap:wrap}.segmented button{padding:9px}.layer-controls{font-size:9px;flex-wrap:wrap;padding:9px}.floating-button{right:10px;top:150px}.timeline{left:10px;right:10px;bottom:15px;gap:8px;padding:10px;flex-wrap:wrap}.timeline-label{min-width:100px}.timeline-track{min-width:75px}.timeline-label strong{font-size:10px}.timeline-label small{font-size:7px}.live{font-size:8px}.map-legend{display:none}.selection-card{width:calc(100% - 20px);right:10px;bottom:135px;padding:12px}.selection-card p{font-size:10px}.selection-card h3{font-size:11px}.sidebar-bottom{font-size:8px;padding:12px}.sidebar-bottom span:last-child{display:none}}[hidden]{display:none!important}

.operations-tools{display:flex;gap:7px;padding:10px 15px;border-bottom:1px solid var(--line)}.operations-tools button{flex:1;font-size:10px;padding:9px 6px}.priority-badge{background:var(--priority);color:#fff;border-radius:4px;padding:3px 6px;display:inline-block;font-size:10px;font-weight:700;margin:4px 0}.point-marker.priority{background:var(--priority);border-color:var(--priority);color:white;font-weight:700;font-size:13px}.recipient-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;max-height:240px;overflow:auto}.recipient-option{display:flex!important;align-items:center;gap:6px;margin:5px 0!important;padding:5px}.recipient-option input{width:14px!important}.bulletin-admin,.sharing-row{padding:12px 0;border-bottom:1px solid var(--line)}.bulletin-admin strong,.sharing-row strong{display:block}.bulletin-admin button,.sharing-row button{margin:7px 6px 0 0}.persistent-messages{display:none}.mobile .persistent-messages{position:absolute;display:block;z-index:480;top:65px;left:12px;right:12px;max-height:44%;overflow:auto;box-shadow:0 5px 22px #173b4933;border-radius:9px;background:white}.persistent-message{padding:13px 15px;border-bottom:1px solid var(--line);border-left:4px solid var(--teal);font-size:12px}.persistent-message strong{font-size:10px;color:var(--teal)}.persistent-message p{white-space:pre-wrap;margin:7px 0;line-height:1.5}.persistent-message img,.persistent-message video{display:block;width:100%;max-height:190px;object-fit:contain;background:#f0f3f3}.persistent-message audio{width:100%;height:38px}.peer-marker{font-size:10px}.mobile .topbar .top-actions{min-width:0}.mobile .persistent-message small{display:block}.dialog-body input[type=file]{padding:10px 4px}.point-priority-select{width:auto;padding:6px;max-width:160px}

.mobile .gps-panel{flex-basis:100%;display:grid;gap:6px}.gps-panel strong{font-size:11px;color:#6b7c87}.gps-panel strong.active{color:#087f75}.gps-panel strong.active:before{content:'● ';color:#169b73}.gps-panel small{font-size:9px}.gps-panel label{font-size:10px}.gps-panel select{padding:8px;font-size:11px}.gps-buttons{display:flex;gap:6px}.mobile .gps-buttons button{padding:10px 5px!important}.mobile #mobile-actions{bottom:22px;padding:9px;gap:5px}.mobile .persistent-messages{max-height:35%}.mobile .gps-panel .danger{color:#ad3344}.mobile .lab-strip #profile-description{max-width:250px}

.work-panel{background:#132535;color:#e3edf6;padding:12px;border:1px solid #406078;border-radius:12px;margin:8px 0}.work-panel p{white-space:pre-line;font-size:13px;line-height:1.5;margin:8px 0}.work-panel small{display:block;color:#b8cbd9}

.mobile .work-panel{flex-basis:100%;margin:0;padding:9px}.mobile .work-panel p{font-size:11px;margin:5px 0}.mobile .work-panel summary{font-size:10px;cursor:pointer}.mobile #mobile-actions{max-height:48dvh;overflow-y:auto;overscroll-behavior:contain}

#startup-status{position:fixed;inset:78px 0 0;z-index:9000;background:#f4f6f7;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;padding:32px;text-align:center}#startup-title{font-size:22px}#startup-description{max-width:580px;line-height:1.6;white-space:pre-line}.mobile #startup-status{top:62px}

/* Terrain workspace: one map, explicit panels, local themes. */
:root{--surface:#fff;--canvas:#f4f6f7;--text:#173647;--secondary:#526a78;--focus:#218b80}
:root[data-theme=night]{color-scheme:dark;--surface:#182732;--canvas:#101c26;--text:#e1edf3;--secondary:#b1c4cf;--line:#405361;--ink:#e1edf3;--muted:#b1c4cf;--teal:#168c7d;--focus:#91d6ca}
:root[data-theme=red]{color-scheme:dark;--surface:#200707;--canvas:#100304;--text:#ebaaa0;--secondary:#cc8c85;--line:#73353a;--ink:#ebaaa0;--muted:#cc8c85;--teal:#873c38;--focus:#efad9c}
body{background:var(--canvas);color:var(--text)}button,input,select,textarea,dialog{background:var(--surface);color:var(--text)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--focus)}small{color:var(--secondary)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.field-sheet{position:absolute;inset:14px;z-index:650;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 48px #0004;overflow:auto;padding:16px;overscroll-behavior:contain;color:var(--text);max-width:760px;margin-left:auto}
.field-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.field-sheet h2{font-size:20px}.field-sheet>header button{font-size:24px;min-width:48px;min-height:48px;padding:0}.field-sheet select{margin:5px 0 10px;font-size:14px;min-height:48px}.field-sheet button{min-height:48px;font-size:13px}.work-tabs{display:flex;gap:6px;margin-bottom:8px}.work-tabs button{flex:1}.work-tabs button.active{border-color:var(--focus);box-shadow:inset 0 -3px var(--focus)}
.field-sheet .task-phone-row{border:1px solid var(--line);padding:12px;margin:10px 0;border-radius:10px}.task-phone-row>strong{display:block;margin:5px 0}.task-phone-row>small{display:block}.task-phone-row p{white-space:pre-wrap;margin:8px 0;line-height:1.5}.task-phone-row button{margin-right:6px}
#chat-items{display:flex;flex-direction:column;gap:10px;min-height:80px;margin:12px 0}.chat-item{border:1px solid var(--line);border-radius:12px;padding:12px;max-width:94%;align-self:flex-start;overflow-wrap:anywhere}.chat-item.outgoing{align-self:flex-end;border-left:4px solid var(--focus)}.chat-item strong{font-size:12px}.chat-item p{font-size:15px;line-height:1.5;white-space:pre-wrap;margin:8px 0}.chat-item small{display:block}.chat-item button{margin-top:8px}#chat-form textarea{font-size:16px;min-height:70px}.chat-compose-actions{display:flex;justify-content:space-between;gap:8px;margin:8px 0}#chat-route{display:block;line-height:1.5}
.chat-item img,.chat-item video,#capture-preview img,#capture-preview video{display:block;width:100%;max-height:260px;object-fit:contain;margin:8px 0}.chat-item audio,#capture-preview audio{width:100%;min-width:210px;max-width:100%;margin:8px 0}#capture-preview{border:2px solid var(--focus);padding:12px;border-radius:10px;margin:10px 0}#capture-preview button{margin:6px}
.map-layers{background:var(--surface);border:1px solid var(--line);border-radius:8px;box-shadow:0 4px 20px #0002;max-width:320px}.map-layers summary{padding:12px 18px;cursor:pointer;font-size:12px;font-weight:600}.map-layers .layer-controls{display:grid;grid-template-columns:1fr 1fr;max-height:55dvh;overflow:auto;box-shadow:none;background:var(--surface)}.map-layers label{white-space:normal;min-width:0;font-size:11px;align-items:flex-start;flex-wrap:wrap}.map-layers select{font-size:11px;min-width:0;padding:7px}.map-layers input[type=checkbox]{flex-shrink:0;margin-top:2px}
#desktop-theme{width:auto;max-width:95px;padding:8px;font-size:12px}.group-card{display:block;width:calc(100% - 24px);text-align:left;margin:10px 12px;padding:16px;border-left:4px solid var(--group)}.group-card strong,.group-card span{display:block}.group-card span{font-size:11px;margin-top:6px;color:var(--secondary)}.group-detail{padding:14px}.group-detail h2{font-size:20px;margin:14px 0 6px}.group-detail h3{font-size:14px;margin:16px 0}.group-detail p{font-size:12px;margin:7px 0}.group-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:16px 0}.group-member{width:100%;display:grid;grid-template-columns:16px 1fr;gap:5px;text-align:left;margin:5px 0}.group-member i{width:10px;height:10px;border-radius:50%;align-self:center}.group-member small{grid-column:2}.group-label-marker{z-index:0}.group-label-marker button{transform:translate(-50%,-140%);border:2px solid var(--group);padding:5px 8px;white-space:nowrap;background:var(--surface);font-size:11px}.group-label-marker small{display:block;font-size:9px}
.mobile .topbar{height:48px;padding:0 10px}.mobile .brand strong span,.mobile .brand-icon,.mobile .lab-strip{display:none}.mobile .brand strong{font-size:17px}.mobile .connection{display:flex;font-size:11px}.mobile .top-actions button{min-height:38px;max-width:140px;overflow:hidden;text-overflow:ellipsis}.mobile .workspace{height:calc(100dvh - 48px);min-height:0}.mobile #startup-status{top:48px}
.mobile #field-toolbar{position:absolute;bottom:calc(16px + env(safe-area-inset-bottom));left:6px;right:6px;z-index:620;display:flex;justify-content:space-between;gap:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:4px;box-shadow:0 3px 24px #0004}.mobile #field-toolbar button{position:relative;flex:1;min-width:0;min-height:56px;padding:5px 0;border:0;border-radius:10px;font-size:8px}.mobile #field-toolbar svg{display:block;width:24px;height:24px;margin:auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.mobile #field-toolbar span{display:block;margin-top:3px;white-space:nowrap}.mobile #work-count{position:absolute;right:0;top:0;min-width:18px;height:18px;border-radius:50%;background:var(--focus);color:var(--surface);font-size:10px;display:grid;place-items:center}
.mobile #field-status{position:absolute;top:10px;left:8px;right:8px;z-index:470;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:7px 10px;box-shadow:0 2px 12px #0002;font-size:11px}.mobile #field-gps{font-size:11px}.mobile #field-gps.active:before{content:'● ';color:var(--focus)}.mobile #field-queue{font-size:10px}
.mobile .coms-map-controls{top:68px;left:8px}.mobile .coms-map-controls button{min-width:48px;height:48px}.mobile .floating-button{top:68px;right:8px;min-width:48px;height:48px}.mobile .coms-map-attribution{font-size:8px;bottom:0}.mobile .coms-map-scale{bottom:89px}.mobile .field-sheet{inset:76px 7px 88px;max-width:none;border-radius:14px;padding:12px}.mobile .field-sheet>header{margin-bottom:7px}.mobile .field-sheet>header h2{font-size:18px}.mobile #field-options-content #mobile-actions{display:block;position:static;max-height:none;overflow:visible;padding:0;margin:12px 0;box-shadow:none;background:var(--surface)}.mobile #mobile-actions>button{width:100%;min-height:48px;font-size:14px;margin:6px 0}.mobile #mobile-actions .gps-panel{margin:14px 0;gap:9px}.mobile .gps-panel strong{font-size:13px}.mobile .gps-panel small{font-size:11px}.mobile .gps-panel label{font-size:12px}.mobile .gps-panel select{font-size:14px;min-height:48px}.mobile .gps-buttons{flex-wrap:wrap}.mobile .gps-buttons button{font-size:13px!important;min-height:48px}.mobile .work-panel{margin:12px 0;padding:12px}.mobile .work-panel p{font-size:13px}.mobile .work-panel summary{font-size:12px}.mobile .persistent-messages{top:59px;left:65px;right:65px;max-height:23%;z-index:500;background:var(--surface);border:1px solid var(--line)}.mobile .persistent-message{padding:8px;font-size:13px}.mobile .persistent-message p{margin:4px 0}.mobile .persistent-message strong{font-size:10px}.mobile .persistent-message img,.mobile .persistent-message video{max-height:100px}.mobile .edit-hint{top:120px;z-index:640}.mobile .edit-hint button{min-height:48px}.mobile #toast{bottom:95px}.mobile .task-phone-row button{font-size:13px;min-height:48px}
:root[data-theme=night] :is(.topbar,aside,.timeline,.map-legend,.segmented,.selection-card,.map-marker,.coms-map-popup,.coms-map-controls button,.coms-map-attribution,.coms-map-scale,.layer-controls,.persistent-messages,#startup-status),:root[data-theme=red] :is(.topbar,aside,.timeline,.map-legend,.segmented,.selection-card,.map-marker,.coms-map-popup,.coms-map-controls button,.coms-map-attribution,.coms-map-scale,.layer-controls,.persistent-messages,#startup-status){background:var(--surface);color:var(--text)}
:root:not([data-theme=day]) :is(.dialog-body p,.selection-card p,.user-meta,.user-age,.group-label,.dialog-body small,.map-legend,.connection,.empty,.empty strong,.tabs button,.sidebar-bottom,.dialog-head button){color:var(--secondary)}:root:not([data-theme=day]) :is(.dialog-body pre,.hint-panel,.recipient-chip,.point-line,.user-row.selected,.user-row:hover,.search-wrap input,.lab-strip,.live.active,.segmented button.active){background:var(--canvas);color:var(--text)}:root:not([data-theme=day]) button:hover{background:var(--canvas)}:root:not([data-theme=day]) .map-marker>i{border-color:var(--surface)}:root:not([data-theme=day]) #map{background:var(--canvas)}:root:not([data-theme=day]) button.secondary{background:var(--surface);color:var(--text);border-color:var(--focus)}

.map-editing .group-label-marker,.map-editing .group-label-marker *{pointer-events:none!important}

.mobile #work-bulletin-hint .persistent-messages{position:static;max-height:none;margin:10px 0;box-shadow:none}.mobile #work-bulletin-hint .persistent-message img,.mobile #work-bulletin-hint .persistent-message video{max-height:180px}

.priority-badge,.point-marker.priority{color:var(--priority-ink,#fff)}:root:not([data-theme=day]) .persistent-message strong,:root:not([data-theme=day]) .tabs button.active{color:var(--text)}

.zone-crosshair{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:400;color:var(--text);background:var(--surface);border-radius:7px;padding:3px 6px;font-size:9px;text-align:center}.zone-crosshair span{display:block;font-size:28px;line-height:26px}.group-focused .zone-crosshair{display:block}

#capture-preview{background:var(--surface)}

#toast{pointer-events:none}

/* Chat acknowledgements and photo viewer. */
.message-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:var(--secondary);margin:5px 0}.message-status{width:20px;height:20px;display:inline-flex;flex-shrink:0}.message-status svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.message-status.received circle{fill:currentColor}.message-status.sending svg{animation:message-spin 1s linear infinite}.message-status.sending circle{stroke-dasharray:32 15}.message-status.failed{color:#d95762}.message-read-time{font-size:10px}.message-failure{color:#d95762!important}.chat-photo-open{display:block;width:100%;padding:0;margin:8px 0;border:0;min-height:48px;cursor:zoom-in}.chat-photo-open img{margin:0!important}.chat-photo-open:focus-visible{outline:3px solid var(--focus)}
@keyframes message-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.message-status.sending svg{animation:none}}
#image-viewer{width:100dvw;height:100dvh;max-width:none;max-height:none;padding:0;margin:0;top:0;left:0;border:0;border-radius:0;background:var(--canvas);color:var(--text);overflow:hidden}#image-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}#image-viewer header,#image-viewer footer{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px;background:var(--surface);border-bottom:1px solid var(--line)}#image-viewer header strong{margin-right:auto;font-size:15px}#image-viewer button{min-width:48px;min-height:48px;font-size:14px}#image-close{font-size:26px!important}#image-viewer footer{border-top:1px solid var(--line);border-bottom:0;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.image-viewport{position:relative;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;overscroll-behavior:contain;cursor:grab}.image-viewport:active{cursor:grabbing}.image-viewport img,.image-viewport video{display:block;max-width:none;max-height:none;flex:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;touch-action:none;transform-origin:center;will-change:transform}#image-scale{min-width:52px;text-align:center;font-size:13px}.mobile #image-save{display:none}

.image-viewport [hidden]{display:none!important}#image-viewer footer{flex-wrap:wrap}#video-playback{display:flex;align-items:center;gap:8px;width:100%;max-width:700px}#video-playback[hidden]{display:none}#video-seek{flex:1;min-width:48px;width:0;min-height:48px;padding:0}#video-time{font-size:12px;white-space:nowrap}#video-mute{font-size:12px!important}.chat-video-open{display:block;margin:8px 0}

/* Operational desktop: precise points, quiet chrome, independent conversations. */
:root{--header-height:48px;--surface:#fff;--canvas:#f3f3f1;--text:#171717;--secondary:#626262;--line:#d0d0cc;--ink:#171717;--focus:#171717}
:root[data-theme=night]{--surface:#191a1c;--canvas:#101113;--text:#f0f1f2;--secondary:#afb1b5;--line:#44464b;--ink:#f0f1f2;--focus:#eceef1}
body,button,input,select,textarea{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,select,input,textarea{border-radius:4px}button.primary{background:var(--text);color:var(--surface);border-color:var(--text)}button.primary:hover{background:var(--secondary);color:var(--surface)}
.topbar{height:var(--header-height);padding:0 16px;border-bottom:1px solid var(--line);box-shadow:none;position:relative;z-index:1500;background:var(--surface)}.top-actions{width:100%;gap:10px}.top-actions #connection{margin-right:auto}.top-actions button,.top-actions select{min-height:34px;font-size:12px}.workspace{height:calc(100dvh - var(--header-height))}#startup-status{top:var(--header-height)}
.app-options{position:relative;font-size:12px}.app-options summary{padding:10px;cursor:pointer}.app-options[open]{background:var(--surface)}.app-options>div,.app-options>button{position:absolute;right:0;top:40px;min-width:240px;padding:14px;background:var(--surface);border:1px solid var(--line);font-size:11px;box-shadow:0 4px 18px #0002}.app-options>button{top:98px}
.sidebar-heading{padding:20px 16px 16px}.sidebar-heading h1{font-size:23px;letter-spacing:-.6px;font-weight:650}.sidebar-heading .team-count{border-radius:4px}.sidebar-bottom{justify-content:flex-end}.user-row{padding:13px 14px;border-left:3px solid transparent}.user-row.selected{border-left-color:var(--text);background:var(--canvas)}.user-name{font-size:12px}.user-dot{border-radius:4px}.user-row .user-meta:last-child{font-size:10px}.operations-tools button{font-size:11px}
.map-toolbar{top:16px;left:16px;right:16px;justify-content:flex-start;gap:10px;align-items:flex-start;pointer-events:none}.map-toolbar>*{pointer-events:auto}.map-layers{border-radius:4px;box-shadow:0 2px 8px #0001}.map-layers summary{padding:12px;font-size:12px}.segmented{box-shadow:0 2px 8px #0001;border-radius:4px}.segmented button{font-size:11px;border-radius:0;padding:12px}.map-legend{bottom:114px;left:16px;max-width:360px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px 12px;border:1px solid var(--line);border-radius:4px;box-shadow:none;padding:12px;font-size:10px;background:var(--surface);color:var(--text)}#coverage-legend{grid-column:1/-1;line-height:1.4}.legend-dot{width:9px;height:9px;border:1px solid #5558}.selection-card{bottom:114px;right:16px;border-radius:4px;box-shadow:0 4px 18px #0002;border:1px solid var(--line)}.timeline{left:16px;right:16px;bottom:20px;border-radius:4px;box-shadow:0 2px 12px #0001;padding:12px 16px;border:1px solid var(--line)}.floating-button{top:auto;bottom:114px;right:330px;border-radius:4px;width:40px;height:40px}.coms-map-controls{top:82px;left:16px;border-radius:4px;box-shadow:none;border:1px solid var(--line)}
.position-marker.map-marker{position:relative;display:block;width:0;height:0;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;transform:none;overflow:visible;cursor:pointer;font-size:11px}
.position-marker.map-marker>.position-dot{position:absolute;left:-6px;top:-6px;display:block;width:12px;height:12px;box-sizing:border-box;border:2px solid var(--surface);border-radius:50%;background:var(--gps);box-shadow:0 0 0 1px #3339;margin:0;transform:none}
.position-marker:after{content:"";position:absolute;left:5px;top:0;width:10px;height:1px;background:var(--marker)}.position-label{position:absolute;left:15px;top:-15px;display:flex;align-items:center;gap:8px;border:1.5px solid var(--marker);border-radius:3px;padding:6px 8px;background:var(--surface);color:var(--text);white-space:nowrap;box-shadow:0 1px 4px #0002;font-size:11px;font-weight:650}.position-label small{font-size:9px;color:var(--secondary);font-weight:400}.position-marker.selected .position-dot{outline:3px solid var(--text);outline-offset:2px}.position-marker.selected .position-label{border-width:2.5px}.position-marker:focus-visible{outline:none}.position-marker:focus-visible .position-label{outline:2px solid var(--text);outline-offset:3px}
#nearest-users{position:absolute;right:16px;top:78px;width:300px;z-index:460;background:var(--surface);border:1px solid var(--line);border-radius:4px;box-shadow:0 2px 12px #0001;padding:12px}#nearest-users header{display:flex;justify-content:space-between;gap:8px;font-size:11px;margin-bottom:7px}#nearest-mode{font-size:10px;color:var(--secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}#nearest-users ol{padding:0;margin:0;list-style:none}#nearest-users p{font-size:11px;color:var(--secondary);margin:8px 0}#nearest-users button{display:flex;align-items:center;gap:9px;width:100%;border:0;border-top:1px solid var(--line);background:var(--surface);text-align:left;padding:10px 0;border-radius:0;min-height:48px}#nearest-users button>i{width:11px;height:11px;border:2px solid;box-shadow:0 0 0 2px var(--surface);border-radius:50%;flex:none}#nearest-users strong{font-size:11px}#nearest-users small{display:block;font-size:10px;line-height:1.45;margin-top:3px;overflow-wrap:anywhere}
.conversation-window{position:absolute;z-index:700;width:370px;height:min(530px,calc(100% - 150px));min-height:280px;max-width:calc(100% - 24px);max-height:calc(100% - 56px);background:var(--surface);border:1.5px solid var(--line);border-radius:5px;box-shadow:0 8px 30px #0003;display:grid;grid-template-rows:auto auto minmax(50px,1fr) auto auto;color:var(--text)}.conversation-window.focused{border-color:var(--text)}.conversation-head{display:flex;align-items:center;gap:4px;padding:7px 9px;border-bottom:1px solid var(--line);cursor:move;touch-action:none}.conversation-head strong{font-size:13px;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.conversation-head button{font-size:20px;padding:0;min-width:32px;height:32px;border:0;background:transparent}.conversation-audience{display:flex;align-items:center;gap:8px;padding:7px 12px;border-bottom:1px solid var(--line);min-width:0}.conversation-audience small{font-size:10px;max-height:42px;overflow:auto;line-height:1.4;flex:1}.conversation-review{font-size:10px}.conversation-items{display:flex;flex-direction:column;gap:8px;overflow:auto;padding:12px;overscroll-behavior:contain}.conversation-items .chat-item{max-width:94%;padding:9px;border-radius:4px}.conversation-items .chat-item p{font-size:13px;margin:5px 0}.conversation-items .chat-item strong{font-size:10px}.conversation-items .chat-item button{font-size:10px;min-height:30px}.conversation-items .chat-item audio{min-width:0}.conversation-form{padding:10px;border-top:1px solid var(--line)}.conversation-form textarea{display:block;width:100%;font-size:13px;min-height:52px;resize:vertical;max-height:100px}.conversation-form>div{display:flex;justify-content:space-between;gap:8px;padding-top:7px}.conversation-form button{min-height:34px;font-size:11px}.conversation-preview{max-height:120px;overflow:auto;padding:0 10px}.conversation-preview:empty{display:none}.conversation-preview img,.conversation-preview video{max-height:80px;max-width:100%}.conversation-preview button{font-size:10px;display:block;margin:3px 0}.conversation-preview audio{width:100%}
#conversation-dock{position:absolute;left:16px;bottom:102px;z-index:690;display:flex;gap:5px;max-width:calc(100% - 340px);overflow-x:auto;padding:4px}#conversation-dock:empty{display:none}#conversation-dock button{font-size:11px;white-space:nowrap;border:1px solid var(--line);box-shadow:0 2px 8px #0001;min-height:34px}
.mobile{--header-height:44px}.mobile .topbar{height:var(--header-height);padding:0 8px}.mobile .workspace{height:calc(100dvh - var(--header-height))}.mobile #startup-status{top:var(--header-height)}.mobile .top-actions button{min-height:34px;font-size:11px;max-width:170px}.mobile .top-actions{gap:6px}.mobile .app-options{font-size:11px}.mobile .app-options summary{padding:10px 6px}.mobile #nearest-users{display:none}.mobile .map-legend{display:none}.mobile .floating-button{top:68px;bottom:auto;right:8px}.mobile .coms-map-controls{top:68px;left:8px}
@media(max-width:1050px){#nearest-users{width:250px}.selection-card{width:250px}.map-legend{grid-template-columns:repeat(2,1fr);max-width:240px}.floating-button{right:280px}.segmented button{font-size:10px;padding:12px 8px}}

.base-map-control{grid-column:1/-1;display:grid!important;gap:5px}.base-map-control select{width:100%}.base-map-control small{font-size:10px}

aside .sidebar-heading{background:var(--surface);color:var(--text);border-bottom:1px solid var(--line)}.timeline{background:var(--surface)}.selection-card p{color:var(--secondary)}#conversation-dock{bottom:192px}

/* Directions remain on the map border; people and targets share the same geometry. */
.map-edge-overlay{position:absolute;inset:0;z-index:480;pointer-events:none}.map-edge-button{position:absolute;height:48px;min-height:48px;pointer-events:auto;display:flex;flex-direction:column;justify-content:center;gap:2px;padding:3px 6px 3px 24px;background:var(--surface);color:var(--text);border:1.5px solid var(--edge-color);box-shadow:0 1px 6px #0002;border-radius:4px;text-align:left;line-height:1.15;overflow:hidden}.map-edge-button strong{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.map-edge-button small{font-size:10px;color:var(--secondary);white-space:nowrap}.map-edge-arrow{position:absolute;width:14px;height:14px;left:5px;top:16px;fill:none;stroke:var(--edge-color);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transform:rotate(var(--edge-angle))}.edge-right{padding:3px 24px 3px 6px;text-align:right;align-items:flex-end}.edge-right .map-edge-arrow{left:auto;right:5px}.edge-top{padding:13px 3px 2px;align-items:center;text-align:center}.edge-top .map-edge-arrow{top:1px;left:calc(50% - 7px)}.edge-bottom{padding:2px 3px 13px;align-items:center;text-align:center}.edge-bottom .map-edge-arrow{top:auto;bottom:1px;left:calc(50% - 7px)}.edge-user:after{content:"";position:absolute;right:3px;top:3px;width:5px;height:5px;border-radius:50%;background:var(--gps-color)}.edge-group{border-style:dashed}.map-edge-basis{position:absolute;left:50%;top:59px;transform:translateX(-50%);font-size:9px;white-space:nowrap;background:var(--surface);color:var(--secondary);padding:2px 5px;border-radius:3px}.mobile .map-edge-basis{top:44px;font-size:8px}.map-edge-list{position:absolute;width:280px;max-width:calc(100% - 24px);max-height:min(320px,calc(100% - 130px));overflow:auto;pointer-events:auto;overscroll-behavior:contain;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:4px;box-shadow:0 4px 22px #0004;padding:6px}.map-edge-list header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:-6px;background:var(--surface);font-size:12px;padding:3px 8px;border-bottom:1px solid var(--line)}.map-edge-list header button{min-width:44px;min-height:44px;font-size:23px;border:0}.map-edge-choice{display:flex;align-items:center;gap:9px;width:100%;min-height:48px;text-align:left;border:0;border-bottom:1px solid var(--line);font-size:12px;padding:9px}.map-edge-choice i{width:10px;height:10px;border-radius:50%;flex:none}.map-edge-choice small{display:block;color:var(--secondary);font-size:10px;margin-top:3px}.map-editing .map-edge-button{pointer-events:none;opacity:.65}.coms-map-popup{z-index:510}

#field-link.gps-warning{font-weight:700;color:#b63e23}:root[data-theme=night] #field-link.gps-warning{color:#ffad6e}:root[data-theme=red] #field-link.gps-warning{color:#ff8070}

/* Compact supervisor workspace. Field controls retain their existing touch layout. */
body:not(.mobile) #sidebar{width:320px;min-height:0;overflow:hidden;background:var(--surface)}
body:not(.mobile) #sidebar .sidebar-heading{padding:9px 12px;min-height:44px;gap:8px}
body:not(.mobile) #sidebar h1{margin:0;font-size:17px;line-height:1.3;letter-spacing:-.3px}
body:not(.mobile) #sidebar .team-count{min-width:25px;height:25px;font-size:11px;background:var(--canvas);color:var(--text);border:1px solid var(--line)}
body:not(.mobile) #sidebar .tabs{padding:0 6px;gap:0;flex:none}
body:not(.mobile) #sidebar .tabs button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:38px;padding:8px 4px;font-size:11px;white-space:nowrap;color:var(--secondary)}
body:not(.mobile) #sidebar .tabs button.active{color:var(--text);border-bottom-color:var(--text);font-weight:750}
body:not(.mobile) #sidebar [data-tab-count]{font-size:9px;line-height:15px;min-width:15px;border-radius:3px;background:var(--canvas);color:var(--secondary);font-variant-numeric:tabular-nums}
body:not(.mobile) #sidebar .operations-tools{padding:6px 10px;gap:6px}
body:not(.mobile) #sidebar .operations-tools button{padding:5px 8px;min-height:30px;font-size:11px;background:var(--surface);color:var(--text)}
body:not(.mobile) #sidebar .search-wrap{padding:8px 10px 6px}
body:not(.mobile) #sidebar .search-wrap input{padding:8px 10px;min-height:34px;font-size:12px;background:var(--canvas);color:var(--text)}
body:not(.mobile) #sidebar-task-filters{display:flex;gap:6px;padding:0 10px 8px;border-bottom:1px solid var(--line)}
body:not(.mobile) #sidebar-task-filters select{width:50%;min-width:0;min-height:30px;padding:5px 6px;font-size:11px}
body:not(.mobile) #sidebar-content{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0}
body:not(.mobile) #sidebar .group-label{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;font-size:10px;letter-spacing:.45px;line-height:1.2;color:var(--secondary);text-transform:none}
body:not(.mobile) #sidebar .group-label b{font-size:10px;font-variant-numeric:tabular-nums}
body:not(.mobile) #sidebar .selected-tools{min-height:32px;padding:5px 12px;font-size:11px;background:var(--canvas)}
body:not(.mobile) #sidebar .user-row{min-height:61px;padding:9px 10px;gap:8px;border-bottom:1px solid var(--line)}
body:not(.mobile) #sidebar .user-row input{flex:none;width:13px;height:13px;margin:0}
body:not(.mobile) #sidebar .user-dot{width:26px;height:26px;border-radius:4px;font-size:9px}
body:not(.mobile) #sidebar .user-content{min-width:0}
body:not(.mobile) #sidebar .user-name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body:not(.mobile) #sidebar .user-meta{display:flex;align-items:center;gap:4px;margin-top:5px;font-size:10px;line-height:1.2;color:var(--secondary);min-width:0;white-space:nowrap}
body:not(.mobile) #sidebar .user-meta .status-dot{margin:0;flex:none}
body:not(.mobile) #sidebar .user-session{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;border-left:1px solid var(--line);padding-left:4px}
body:not(.mobile) #sidebar .user-age{display:block;flex:none;font-size:11px;font-variant-numeric:tabular-nums;line-height:1.4;color:var(--text)}
body:not(.mobile) #sidebar .user-age small{display:block;font-size:9px;color:var(--secondary)}
body:not(.mobile) #sidebar .task-row,body:not(.mobile) #sidebar .invitation-row{padding:10px 12px;border-bottom:1px solid var(--line);font-size:11px}
body:not(.mobile) #sidebar .task-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin-bottom:5px}
body:not(.mobile) #sidebar .task-heading strong{display:block;margin:0;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body:not(.mobile) #sidebar .task-kind{font-size:10px;color:var(--secondary);white-space:nowrap}
body:not(.mobile) .task-badges{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;min-width:0}
body:not(.mobile) .task-badges :is(.badge,.priority-badge),body:not(.mobile) #sidebar .invitation-row .badge{display:inline-flex;align-items:center;white-space:nowrap;margin:0;padding:3px 6px;line-height:1.2;min-height:21px;font-size:10px;border-radius:3px}
body:not(.mobile) .task-badges .badge{color:var(--text);background:var(--canvas);border:1px solid var(--line)}
body:not(.mobile) .task-badges .status-received{background:#e7f0fc;color:#194d86;border-color:#c4d7f0}
body:not(.mobile) .task-badges .status-accepted{background:#e5f4ed;color:#216247;border-color:#b8d9cb}
body:not(.mobile) .task-badges .status-completed{background:var(--canvas);color:var(--secondary)}
body:not(.mobile) #sidebar .task-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;margin:5px 0 6px;line-height:1.4;font-size:11px;color:var(--secondary)}
body:not(.mobile) #sidebar .task-actions{display:flex;gap:6px}
body:not(.mobile) #sidebar .task-actions button{margin:0;padding:5px 9px;min-height:28px;font-size:10px}
body:not(.mobile) #sidebar .task-details{margin-top:6px;color:var(--secondary);font-size:10px}
body:not(.mobile) #sidebar .task-details summary{cursor:pointer;width:max-content;padding:3px 0;font-size:10px;min-height:22px}
body:not(.mobile) #sidebar .task-details[open]{padding-bottom:4px}
body:not(.mobile) #sidebar .task-details small{display:block;line-height:1.5;font-size:10px}
body:not(.mobile) #sidebar .task-details p{font-size:11px;line-height:1.5;margin:5px 0;overflow-wrap:anywhere}
body:not(.mobile) #sidebar .invitation-row>small{display:block;line-height:1.5;font-size:10px;color:var(--secondary)}
body:not(.mobile) #sidebar .invitation-row button{margin-top:6px;padding:5px 9px;min-height:28px;font-size:10px}
body:not(.mobile) #sidebar .invitation-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}
body:not(.mobile) #sidebar .invitation-observation{font-size:10px;color:var(--secondary)}
body:not(.mobile) #sidebar .group-card{width:calc(100% - 20px);margin:5px 10px;padding:10px;text-align:left;border-left-width:3px;min-height:57px}
body:not(.mobile) #sidebar .group-card strong{font-size:12px;overflow-wrap:anywhere}
body:not(.mobile) #sidebar .group-card span{font-size:10px;margin-top:4px}
body:not(.mobile) #sidebar .group-detail{padding:10px 12px}
body:not(.mobile) #sidebar .group-detail h2{margin:10px 0 4px;font-size:16px;overflow-wrap:anywhere}
body:not(.mobile) #sidebar .group-detail>small{font-size:10px}
body:not(.mobile) #sidebar .group-detail>button{min-height:28px;font-size:10px;padding:5px 8px}
body:not(.mobile) #sidebar .group-actions{gap:5px;margin:10px 0;grid-template-columns:1fr 1fr}
body:not(.mobile) #sidebar .group-actions button{min-height:30px;padding:5px 6px;font-size:10px}
body:not(.mobile) #sidebar .group-member{margin:3px 0;padding:8px;font-size:11px;min-height:48px;grid-template-columns:12px minmax(0,1fr)}
body:not(.mobile) #sidebar .group-member strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body:not(.mobile) #sidebar .group-member small{font-size:10px}
body:not(.mobile) #sidebar .group-detail h3{font-size:12px;margin:13px 0 8px}
body:not(.mobile) #sidebar .group-task{padding:8px 0;border-bottom:1px solid var(--line)}
body:not(.mobile) #sidebar .group-task>strong{display:block;font-size:11px;margin-bottom:5px}
body:not(.mobile) #sidebar .empty{padding:18px 12px;font-size:11px;line-height:1.6;color:var(--secondary)}
body:not(.mobile) #sidebar .empty strong{font-size:12px;color:var(--text);margin-bottom:4px}
body:not(.mobile) #sidebar .sidebar-bottom{padding:6px 12px;min-height:25px;font-size:9px;flex:none}
:root[data-theme=night] body:not(.mobile) .task-badges .status-received{background:#16334e;color:#adcef8;border-color:#30577a}
:root[data-theme=night] body:not(.mobile) .task-badges .status-accepted{background:#193b31;color:#a5dfc1;border-color:#35634f}
@media(max-width:1050px){body:not(.mobile) #sidebar{width:300px}body:not(.mobile) #sidebar .tabs button{font-size:10px}}
.mobile #field-status{flex-wrap:wrap;row-gap:2px}
.mobile #field-fix{font-variant-numeric:tabular-nums}
.mobile #field-fix.stale{font-weight:700;border:1.5px dashed currentColor;border-radius:5px;padding:0 4px}
.own-fix-label{position:absolute;left:14px;top:-11px;white-space:nowrap;font-size:12px;font-weight:600;padding:2px 6px;border-radius:5px;border:1.5px dashed var(--text,#173647);background:var(--surface,#fff);color:var(--text,#173647);pointer-events:none}
.chat-message-state{margin:2px 0}

/* A launch interlock is above every map toolbar and remains usable at small sizes. */
#startup-location-gate{position:fixed;inset:0;z-index:30000;background:var(--canvas,#f4f6f7);color:var(--text,#173647);overflow:auto;padding:max(24px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom));display:grid;place-items:center}
#startup-location-gate[hidden]{display:none}.startup-location-card{max-width:540px;width:100%;line-height:1.5}.startup-location-card h1{font-size:24px}.startup-location-card li{margin:8px 0}#startup-location-phase{font-weight:700}#startup-location-error{color:var(--danger,#a22d25);overflow-wrap:anywhere}#startup-location-start{min-height:48px;width:100%}

#registration-progress{position:fixed;inset:0;z-index:40000;max-width:calc(100% - 32px);border:0;padding:0;background:transparent}#registration-progress:not([open]){display:none}#registration-progress::backdrop{background:rgba(0,0,0,.55)}#registration-progress>div{max-width:520px;background:var(--surface,#f4f6f7);color:var(--text,#173647);padding:24px;border-radius:12px;line-height:1.5}#registration-progress p{font-size:18px}.progress-spinner{display:inline-block;width:20px;height:20px;margin-right:10px;border:3px solid currentColor;border-right-color:transparent;border-radius:50%;animation:coms-progress 1s linear infinite}@keyframes coms-progress{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.progress-spinner{animation:none;border-style:dotted}}

#startup-location-settings{min-height:48px;width:100%;margin-top:12px}

.coms-map{position:relative;overflow:hidden;background:#eeeae0;touch-action:none;cursor:grab;outline-offset:-3px}.coms-map:active{cursor:grabbing}.coms-map-tiles,.coms-map-overlays,.coms-map-grid{position:absolute;inset:0;pointer-events:none}.coms-map-tiles{z-index:0}.coms-vector-tile,.coms-raster-tile{position:absolute;left:0;top:0}.coms-map-overlays{z-index:1}.coms-map-shape{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.coms-map-marker{position:absolute;left:0;top:0;width:0;height:0;cursor:pointer}.coms-map-controls{position:absolute;left:12px;top:100px;z-index:3;display:flex;flex-direction:column;box-shadow:0 2px 12px #0002;border-radius:8px;overflow:hidden}.coms-map-controls button{font-size:24px;border-radius:0;background:white;min-width:40px;height:40px}.coms-map-attribution{position:absolute;right:0;bottom:0;z-index:2;background:#fffc;padding:2px 6px;font-size:10px;color:#59666c}.coms-map-attribution a{color:inherit}.coms-map-scale{position:absolute;bottom:22px;right:10px;width:80px;text-align:center;border:solid #5a656b;border-width:0 1px 2px;font-size:10px;z-index:2;color:#43535c;background:#fffa}.coms-map-popup{position:absolute;z-index:6;background:#fff;border-radius:10px;box-shadow:0 4px 24px #0003;padding:18px;max-width:300px;min-width:180px;transform:translate(-50%,-105%);cursor:default;font-size:12px}.coms-popup-close{position:absolute;right:2px;top:2px;border:0;padding:0 7px;min-height:20px}.coms-map-popup button{margin-top:4px}.mobile .coms-map-controls{top:12px}

/* Native supervisor workspace. Never applies to the Android WebView. */
body.desktop-workspace{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--surface:#fff;--canvas:#f3f3f1;--text:#202124;--ink:#202124;--secondary:#62656b;--muted:#62656b;--line:#dedfdf;--focus:#145ec9;--desktop-tint:#e8effd;--desktop-accent:#145ec9;--desktop-shadow:0 8px 28px #17202b18;font-size:13px}
:root[data-theme=night] body.desktop-workspace{--surface:#292c30;--canvas:#202225;--text:#f3f3f4;--ink:#f3f3f4;--secondary:#b2b6be;--muted:#b2b6be;--line:#45494e;--focus:#93baff;--desktop-tint:#30415e;--desktop-accent:#93baff;--desktop-shadow:0 8px 28px #0005}
body.desktop-workspace button,body.desktop-workspace input,body.desktop-workspace select,body.desktop-workspace textarea{font-size:13px;color:var(--text);border-color:var(--line);border-radius:6px}
body.desktop-workspace button{min-height:32px;padding:6px 10px;font-weight:500;background:var(--surface)}
body.desktop-workspace button:hover{background:var(--canvas)}
body.desktop-workspace button.primary{font-weight:600;background:var(--text);color:var(--surface);border-color:var(--text)}
body.desktop-workspace button.danger{color:#af302b}
:root[data-theme=night] body.desktop-workspace button.danger{color:#ffaaa2}
body.desktop-workspace :is(button,input,select,textarea,summary):focus-visible{outline:3px solid var(--focus);outline-offset:2px}
body.desktop-workspace :is(input,select,textarea){min-height:34px;padding:7px 9px}
body.desktop-workspace small{font-size:12px;line-height:1.45;color:var(--secondary)}
body.desktop-workspace .topbar{height:54px;min-height:54px;padding:0 12px;gap:8px;position:relative;z-index:800;background:var(--surface)}
body.desktop-workspace .desktop-map-tools{display:flex;align-items:center;gap:6px;min-width:0}
body.desktop-workspace .desktop-map-tools>button{white-space:nowrap}
body.desktop-workspace .icon-button{width:32px;min-width:32px;padding:5px!important;font-size:18px}
body.desktop-workspace .icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
body.desktop-workspace #desktop-scope{font-size:12px;font-weight:600;max-width:165px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0 4px}
body.desktop-workspace .top-actions{width:auto;flex:none;margin-left:auto;gap:8px;white-space:nowrap}
body.desktop-workspace .top-actions #connection{margin-right:0}
body.desktop-workspace .desktop-map-tools>button,body.desktop-workspace .desktop-map-tools>.map-layers{flex:none}
body.desktop-workspace #multi-button.active{background:var(--desktop-tint);color:var(--desktop-accent);border-color:var(--desktop-accent)}
body.desktop-workspace .connection{font-size:12px;color:var(--secondary);max-width:130px;overflow:hidden;text-overflow:ellipsis}
body.desktop-workspace .desktop-invite-original,body.desktop-workspace .map-toolbar,body.desktop-workspace .operations-tools{display:none}
body.desktop-workspace .workspace{height:calc(100dvh - 54px);min-height:0;position:relative;overflow:hidden}
body.desktop-workspace #startup-status{top:54px}
body.desktop-workspace #sidebar{width:var(--list-width,288px);position:relative;min-height:0;overflow:hidden;background:var(--surface);z-index:520}
body.desktop-workspace #sidebar .sidebar-heading{min-height:58px;border-bottom:0;padding:16px 14px 10px;gap:8px}
body.desktop-workspace #sidebar h1{font-size:18px;letter-spacing:-.4px;font-weight:650}
body.desktop-workspace #sidebar .team-count{display:none}
body.desktop-workspace #desktop-section-add{margin-left:auto}
body.desktop-workspace #sidebar .tabs{display:grid;grid-template-columns:1fr 1fr 1fr 1.55fr;border:0;border-radius:7px;background:var(--canvas);margin:0 12px 10px;padding:3px;gap:2px}
body.desktop-workspace #sidebar .tabs button{min-width:0;border:0;background:transparent;padding:5px 0;min-height:30px;font-size:12px;border-radius:5px;color:var(--secondary);font-weight:500}
body.desktop-workspace #sidebar .tabs button.active{background:var(--surface);box-shadow:0 1px 3px #0002;color:var(--text);font-weight:600}
body.desktop-workspace #sidebar [data-tab-count]{display:none}
body.desktop-workspace #sidebar .search-wrap{padding:0 12px 10px}
body.desktop-workspace #sidebar .search-wrap input{font-size:13px;background:var(--surface);min-height:34px;padding:7px 9px}
body.desktop-workspace #sidebar-task-filters{padding:0 12px 10px;border:0;gap:6px}
body.desktop-workspace #sidebar-task-filters select{min-height:32px;font-size:12px;padding:6px}
body.desktop-workspace #sidebar-content{padding:0 6px 10px;min-height:0;scrollbar-gutter:stable;overscroll-behavior:contain}
body.desktop-workspace #sidebar .group-label{font-size:12px;padding:7px 8px;color:var(--secondary);letter-spacing:0;font-weight:500}
body.desktop-workspace #sidebar .group-label b{font-size:12px;font-weight:500}
body.desktop-workspace #sidebar .selected-tools{padding:8px;font-size:12px;gap:6px;margin:0 0 4px;border:0;border-radius:5px}
body.desktop-workspace #sidebar .user-row{min-height:66px;padding:10px 8px;gap:9px;border:0;border-radius:6px;margin:1px 0;background:var(--surface)}
body.desktop-workspace #sidebar .user-row:hover{background:var(--canvas)}
body.desktop-workspace #sidebar .user-row.selected{background:var(--desktop-tint)}
body.desktop-workspace #sidebar .user-row.selected:before{display:none}
body.desktop-workspace #sidebar .user-row input{min-height:0;width:14px;height:14px;accent-color:var(--desktop-accent)}
body.desktop-workspace:not(.desktop-multi) #sidebar .user-row input{display:none}
body.desktop-workspace #sidebar .user-dot{width:29px;height:29px;font-size:11px;border-radius:4px;background:var(--surface)!important;color:var(--text);border:1px solid var(--line);border-left:3px solid var(--user-color)}
body.desktop-workspace #sidebar .user-name{font-size:13px;font-weight:600}
body.desktop-workspace #sidebar .user-meta{font-size:12px;line-height:1.45;gap:4px;margin-top:3px;white-space:nowrap}
body.desktop-workspace #sidebar .user-meta>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.desktop-workspace #sidebar .user-session,body.desktop-workspace #sidebar .user-age small{display:none}
body.desktop-workspace #sidebar .user-age{font-size:12px;color:var(--text)}
body.desktop-workspace #sidebar .task-row,body.desktop-workspace #sidebar .invitation-row{padding:11px 8px;border-bottom:1px solid var(--line);font-size:13px}
body.desktop-workspace #sidebar .task-heading strong{font-size:13px}
body.desktop-workspace #sidebar .task-kind{font-size:12px}
body.desktop-workspace .task-badges{display:flex;gap:6px;align-items:center;flex-wrap:nowrap;margin:8px 0}
body.desktop-workspace .task-badges :is(.badge,.priority-badge),body.desktop-workspace #sidebar .invitation-row .badge{display:inline-flex;align-items:center;font-size:12px;min-height:23px;padding:3px 6px;margin:0;line-height:1.25;white-space:nowrap;border-radius:4px}
body.desktop-workspace #sidebar :is(.task-note,.task-details,.task-details summary,.task-details small,.invitation-row>small,.invitation-observation){font-size:12px;line-height:1.5}
body.desktop-workspace #sidebar .task-note{margin:6px 0;color:var(--secondary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.desktop-workspace #sidebar .task-actions button,body.desktop-workspace #sidebar .invitation-row button{min-height:32px;font-size:12px;padding:6px 8px;margin:0}
body.desktop-workspace .task-title-button{display:block;max-width:100%;padding:0!important;border:0;background:none!important;text-align:left;white-space:normal;min-height:0;font-weight:600;font-size:13px}
body.desktop-workspace #sidebar .task-actions{gap:6px;flex-wrap:wrap;margin-top:8px}
body.desktop-workspace #sidebar .group-card{display:block;width:calc(100% - 4px);padding:11px 10px;margin:3px 2px;min-height:64px;border-radius:6px;border-left-width:3px;background:var(--surface)}
body.desktop-workspace #sidebar .group-card.active{background:var(--desktop-tint)}
body.desktop-workspace #sidebar .group-card strong{font-size:13px}
body.desktop-workspace #sidebar .group-card span{font-size:12px;line-height:1.45;margin-top:4px}
body.desktop-workspace #sidebar .empty{font-size:13px;line-height:1.5;padding:18px 8px}
body.desktop-workspace #sidebar .empty strong{font-size:13px}
body.desktop-workspace #sidebar .sidebar-bottom{min-height:34px;font-size:12px;padding:8px 14px;line-height:1.4}
body.desktop-workspace .map-area{flex:1;min-width:0;min-height:0}
body.desktop-workspace .coms-map-controls{top:14px;left:14px;border-radius:6px;background:var(--surface)}
body.desktop-workspace .coms-map-controls button{width:34px;height:34px;min-width:34px;padding:0}
body.desktop-workspace #fit-button{top:14px;left:58px;right:auto;bottom:auto;width:34px;height:34px;font-size:21px;border-radius:6px}
body.desktop-workspace .map-edge-basis{top:18px;font-size:11px;padding:3px 6px;max-width:calc(100% - 370px);text-overflow:ellipsis;overflow:hidden}
body.desktop-workspace #nearest-users{top:14px;right:14px;width:238px;padding:10px 12px;box-shadow:var(--desktop-shadow);border-radius:8px}
body.desktop-workspace #nearest-users header{font-size:12px;gap:4px;margin:0 0 6px}
body.desktop-workspace #nearest-mode{font-size:11px;max-width:100px}
body.desktop-workspace #nearest-users button{min-height:43px;padding:6px 0;gap:8px}
body.desktop-workspace #nearest-users button>i{width:9px;height:9px}
body.desktop-workspace #nearest-users strong{font-size:12px}
body.desktop-workspace #nearest-users small{font-size:11px;line-height:1.4;margin-top:2px}
body.desktop-workspace .position-label{font-size:12px;padding:5px 7px}
body.desktop-workspace .position-label small{font-size:11px}
body.desktop-workspace .map-legend{left:14px;bottom:30px;right:auto;display:block;max-width:360px;padding:0;border-radius:6px;background:var(--surface);color:var(--text);box-shadow:var(--desktop-shadow)}
body.desktop-workspace .map-legend summary{font-size:12px;padding:8px 10px;cursor:pointer}
body.desktop-workspace .gps-age-bands{padding:4px 10px 12px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px;font-size:12px}
body.desktop-workspace #coverage-legend{grid-column:1/-1;white-space:normal;line-height:1.4}
body.desktop-workspace .timeline{left:12px;right:12px;bottom:26px;padding:12px;gap:10px;border-radius:7px;box-shadow:var(--desktop-shadow);z-index:540;min-height:76px;max-width:100%;border:1px solid var(--line)}
body.desktop-workspace .timeline-label{min-width:105px;max-width:130px}
body.desktop-workspace .timeline .eyebrow{display:none}
body.desktop-workspace .timeline-label strong{font-size:12px;color:var(--text)}
body.desktop-workspace .timeline-label small{font-size:11px}
body.desktop-workspace .timeline-track{min-width:30px;flex:1}
body.desktop-workspace .timeline-track>div{font-size:11px}
body.desktop-workspace .timeline-track input{min-height:20px;padding:0}
body.desktop-workspace .live{font-size:12px;white-space:nowrap;min-width:0;padding:8px}
body.desktop-workspace.desktop-history-open .map-legend{bottom:116px}
body.desktop-workspace.desktop-historical #desktop-scope{padding:5px 7px;background:var(--desktop-tint);color:var(--desktop-accent);border-radius:4px;max-width:190px}
body.desktop-workspace.desktop-historical #desktop-history{border-color:var(--desktop-accent);color:var(--desktop-accent)}
body.desktop-workspace #desktop-inspector{width:300px;min-width:300px;min-height:0;background:var(--surface);border-left:1px solid var(--line);border-right:0;display:flex;flex-direction:column;z-index:560}
body.desktop-workspace .inspector-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px 6px;flex:none;color:var(--secondary);font-size:12px}
body.desktop-workspace .inspector-head button{font-size:21px;width:32px;padding:0}
body.desktop-workspace #inspector-body{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1;padding:8px 16px 20px}
body.desktop-workspace #selection-card{position:static;max-width:none;width:auto;padding:0;border:0;box-shadow:none;background:none;color:var(--text)}
body.desktop-workspace #selection-card p{font-size:13px;line-height:1.5;color:var(--text)}
body.desktop-workspace .inspector-heading{margin:4px 0 12px}
body.desktop-workspace #inspector-body h2{font-size:18px;line-height:1.3;font-weight:650;letter-spacing:-.3px;overflow-wrap:anywhere;margin:3px 0 12px}
body.desktop-workspace #inspector-body h3{font-size:13px;margin:18px 0 10px;padding-top:15px;border-top:1px solid var(--line)}
body.desktop-workspace #inspector-body .inspector-help{font-size:12px;color:var(--secondary);line-height:1.5;margin:10px 0}
body.desktop-workspace .inspector-actions{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}
body.desktop-workspace .inspector-actions button{margin:0!important;width:auto!important}
body.desktop-workspace .inspector-position{display:flex;gap:6px;align-items:center}
body.desktop-workspace .inspector-facts{display:grid;grid-template-columns:95px 1fr;gap:10px;font-size:12px;margin:18px 0}
body.desktop-workspace .inspector-facts dt{color:var(--secondary)}
body.desktop-workspace .inspector-facts dd{margin:0;text-align:right;overflow-wrap:anywhere;line-height:1.5}
body.desktop-workspace .inspector-task{width:100%;text-align:left;white-space:normal;display:block;border:1px solid var(--line);padding:10px!important;margin:8px 0!important}
body.desktop-workspace .inspector-task strong,body.desktop-workspace .inspector-task small{display:block;margin-top:6px;line-height:1.4}
body.desktop-workspace .inspector-task .priority-badge{margin:0;font-size:12px}
body.desktop-workspace .inspector-advanced{border-top:1px solid var(--line);margin:18px 0;padding-top:12px}
body.desktop-workspace .inspector-advanced summary{font-size:13px;cursor:pointer;padding:5px 0}
body.desktop-workspace .inspector-advanced button{margin:8px 0!important;font-size:12px}
body.desktop-workspace .recipient-summary{display:flex;gap:4px;flex-wrap:wrap}
body.desktop-workspace .recipient-chip{font-size:12px;line-height:1.4;margin:0;padding:4px 7px;border-radius:4px;background:var(--canvas)}
body.desktop-workspace .group-detail{padding:0}
body.desktop-workspace .group-detail .group-actions{display:flex;flex-wrap:wrap;margin:14px 0;gap:6px}
body.desktop-workspace .group-detail .group-actions button{font-size:12px}
body.desktop-workspace .group-member{min-height:54px;grid-template-columns:10px minmax(0,1fr);gap:5px 8px;margin:4px 0;text-align:left;padding:8px}
body.desktop-workspace .group-member strong{font-size:13px}
body.desktop-workspace .group-member small{font-size:12px}
body.desktop-workspace .group-member i{width:7px;height:7px}
body.desktop-workspace #group-member-search{margin:8px 0;font-size:13px}
body.desktop-workspace #groups-all{margin:4px 2px 8px;width:calc(100% - 4px);font-size:12px}
body.desktop-workspace .group-task{padding:10px 0;border-bottom:1px solid var(--line)}
body.desktop-workspace .group-task>strong{font-size:13px}
body.desktop-workspace .group-task p{font-size:12px;line-height:1.45}
body.desktop-workspace .point-recipient{padding:10px 0;border-bottom:1px solid var(--line)}
body.desktop-workspace .point-recipient .task-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:13px}
body.desktop-workspace .point-recipient p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;line-height:1.5}
body.desktop-workspace .point-recipient button{font-size:12px;margin:8px 0 0}
body.desktop-workspace .point-recipient .badge{font-size:11px;margin:0;white-space:nowrap}
body.desktop-workspace .inspector-note{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
body.desktop-workspace .task-details{margin-top:20px;font-size:12px;line-height:1.5}
body.desktop-workspace .task-details summary{cursor:pointer;padding:5px 0}
body.desktop-workspace .task-details p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
body.desktop-workspace .map-layers{box-shadow:none;max-width:none;border-radius:6px}
body.desktop-workspace .map-layers summary,body.desktop-workspace .app-options summary{font-size:13px;padding:7px 10px;min-height:32px;white-space:nowrap;cursor:pointer}
body.desktop-workspace .map-layers .layer-controls{position:fixed;top:62px;right:14px;width:310px;display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--line);border-radius:8px;box-shadow:var(--desktop-shadow);max-height:calc(100dvh - 80px);overflow:auto}
body.desktop-workspace .layer-controls fieldset{border:0;border-top:1px solid var(--line);padding:12px 0 0;margin:0;display:grid;gap:8px;min-width:0}
body.desktop-workspace .layer-controls legend{font-size:12px;color:var(--secondary);font-weight:600;padding:0 5px 0 0}
body.desktop-workspace .layer-controls label{font-size:13px;padding:0;display:flex;align-items:center;gap:8px;line-height:1.4;margin:0;flex-wrap:wrap}
body.desktop-workspace .layer-controls label:has(select){display:grid;gap:5px}
body.desktop-workspace .layer-controls select{font-size:13px;width:100%;max-width:none}
body.desktop-workspace .layer-controls input[type=checkbox]{width:14px;height:14px;min-height:0;margin:0}
body.desktop-workspace .app-options{position:static;font-size:13px;border:1px solid var(--line);border-radius:6px}
body.desktop-workspace .app-options[open]{position:absolute;right:12px;top:10px;z-index:810;width:270px;background:var(--surface);padding:0 12px 12px;box-shadow:var(--desktop-shadow)}
body.desktop-workspace .app-options[open]>summary{margin:0 -12px 8px}
body.desktop-workspace .app-options>label{font-size:12px;display:grid;gap:6px;margin-bottom:12px}
body.desktop-workspace .app-options #desktop-theme{max-width:none;width:100%;font-size:13px}
body.desktop-workspace .app-options #map-status{font-size:12px;white-space:normal;margin:10px 0;color:var(--secondary);line-height:1.5}
body.desktop-workspace .app-options #sharing-button{width:100%;white-space:normal;font-size:13px}
body.desktop-workspace .app-options>div,body.desktop-workspace .app-options>button{position:static;min-width:0;padding:8px;box-shadow:none}
body.desktop-workspace #conversation-dock{bottom:28px;left:12px;max-width:calc(100% - 30px);padding:2px;z-index:690}
body.desktop-workspace.desktop-history-open #conversation-dock{bottom:116px}
body.desktop-workspace #conversation-dock button{font-size:12px;min-height:32px}
body.desktop-workspace .conversation-window{width:350px;border-radius:8px;box-shadow:var(--desktop-shadow);max-height:calc(100% - 60px)}
body.desktop-workspace .conversation-audience small,body.desktop-workspace .conversation-review{font-size:12px}
body.desktop-workspace .conversation-items .chat-item strong{font-size:12px}
body.desktop-workspace .conversation-items .chat-item p{font-size:13px}
body.desktop-workspace .conversation-form button,body.desktop-workspace .conversation-items .chat-item button{font-size:12px;min-height:32px}
body.desktop-workspace .conversation-items .chat-item{border-radius:6px}
body.desktop-workspace .conversation-text{font-size:13px}
body.desktop-workspace .conversation-draft{font-size:12px;color:var(--secondary);display:none}
body.desktop-workspace .conversation-dock-unread{font-variant-numeric:tabular-nums}
body.desktop-workspace #dialog{border-radius:10px;max-width:min(620px,calc(100vw - 36px));color:var(--text)}
body.desktop-workspace .dialog-head h2{font-size:19px;line-height:1.3}
body.desktop-workspace .dialog-body{font-size:13px}
body.desktop-workspace .dialog-body p{font-size:13px;line-height:1.5;color:var(--text)}
body.desktop-workspace .dialog-body label{font-size:13px}
body.desktop-workspace .dialog-body small{font-size:12px;line-height:1.5}
body.desktop-workspace .dialog-body pre{font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}
body.desktop-workspace .dialog-footer{gap:8px}
body.desktop-workspace .dialog-footer button{font-size:13px;white-space:normal}
body.desktop-workspace .dialog-error{font-size:13px;line-height:1.5}
body.desktop-workspace #toast{max-width:calc(100vw - 40px);font-size:13px;border-radius:7px}
body.desktop-workspace .edit-hint{top:70px;left:14px;right:auto;transform:none;max-width:min(440px,calc(100% - 28px));min-width:0;font-size:13px;text-align:left;background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:var(--desktop-shadow)}
body.desktop-workspace .map-edge-button strong,body.desktop-workspace .map-edge-button small{font-size:11px}
@media(max-width:1300px){body.desktop-workspace #desktop-scope{display:none}}
@media(max-width:1180px){body.desktop-workspace #desktop-inspector{position:absolute;right:0;top:0;bottom:0;width:292px;min-width:292px;box-shadow:var(--desktop-shadow)}body.desktop-workspace.desktop-inspecting .map-area{margin-right:292px}body.desktop-workspace #nearest-users{width:218px}body.desktop-workspace.desktop-inspecting .map-edge-basis{display:none}body.desktop-workspace .timeline{flex-wrap:wrap;gap:8px}body.desktop-workspace .timeline-track{min-width:70px}body.desktop-workspace .timeline-label{min-width:95px;max-width:105px}body.desktop-workspace .timeline .live{margin-left:auto}body.desktop-workspace .live{font-size:12px}}
@media(max-width:1000px){body.desktop-workspace .topbar{gap:6px;padding:0 10px}body.desktop-workspace .top-actions{gap:6px}body.desktop-workspace .topbar button{padding:6px 8px}body.desktop-workspace .desktop-map-tools{gap:5px}body.desktop-workspace #nearest-users{width:202px}body.desktop-workspace .map-edge-basis{display:none}body.desktop-workspace .timeline-track{min-width:90px}body.desktop-workspace .timeline .eyebrow{display:none}}
@media(prefers-reduced-motion:reduce){body.desktop-workspace button{transition:none}}
body.desktop-workspace .unread-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;margin-left:6px;border-radius:10px;background:var(--desktop-accent);color:var(--surface);font-size:11px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1;vertical-align:1px}
body.desktop-workspace #messages-button{white-space:nowrap}
body.desktop-workspace #messages-button.has-unread{border-color:var(--desktop-accent);font-weight:600}
body.desktop-workspace #message-inbox{position:fixed;top:50px;right:12px;z-index:820;width:300px;max-height:min(460px,calc(100dvh - 70px));overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;box-shadow:var(--desktop-shadow);padding:8px}
body.desktop-workspace #message-inbox header{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 6px;font-size:13px}
body.desktop-workspace #message-inbox header button{width:30px;min-height:30px;padding:0;font-size:18px;border:0;background:transparent}
body.desktop-workspace .message-inbox-item{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;text-align:left;padding:8px;margin:2px 0;border:0;border-radius:6px;background:var(--surface)}
body.desktop-workspace .message-inbox-item:hover{background:var(--canvas)}
body.desktop-workspace .message-inbox-item.unread{background:var(--desktop-tint)}
body.desktop-workspace .message-inbox-item span{display:grid;gap:2px;min-width:0}
body.desktop-workspace .message-inbox-item strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.desktop-workspace .message-inbox-hint{font-size:12px;line-height:1.45;color:var(--secondary);margin:8px 4px 2px}
body.desktop-workspace #sidebar .user-name{display:flex;align-items:center;min-width:0}
body.desktop-workspace .priority-delivery{display:inline-flex;align-items:center;font-size:12px;min-height:23px;padding:2px 6px;border-radius:4px;border:1.5px dashed var(--secondary);color:var(--text);background:var(--surface);white-space:nowrap}
body.desktop-workspace .priority-delivery.partial{border-style:solid}
body.desktop-workspace .task-badges{flex-wrap:wrap;row-gap:4px}
body.desktop-workspace .priority-delivery-detail{font-size:13px;margin:8px 0 2px;color:var(--text)}
body.desktop-workspace .priority-delivery-line{display:block;margin-top:4px;color:var(--text)}
body.desktop-workspace .priority-delivery-line:is(.pending,.unknown,.outdated){font-weight:600}
.point-marker.priority-pending{outline:2px dashed var(--text,#173647);outline-offset:2px}
.coms-map-marker{z-index:2}
.coms-map-marker.position-marker-host{z-index:3}
#map-crosshair{position:absolute;left:50%;top:50%;width:34px;height:34px;margin:-17px 0 0 -17px;z-index:2;pointer-events:none;border:2px solid var(--text,#173647);border-radius:50%;box-shadow:0 0 0 2px var(--surface,#fff)}
#map-crosshair:before,#map-crosshair:after{content:"";position:absolute;background:var(--text,#173647)}
#map-crosshair:before{left:50%;top:-9px;bottom:-9px;width:2px;margin-left:-1px}
#map-crosshair:after{top:50%;left:-9px;right:-9px;height:2px;margin-top:-1px}
body.desktop-workspace .edit-hint p{margin:0 0 8px;line-height:1.45}
body.desktop-workspace .edit-actions{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
body.desktop-workspace #edit-coords{display:flex;flex-wrap:wrap;align-items:end;gap:6px;margin:6px 0}
body.desktop-workspace #edit-coords[hidden]{display:none}
body.desktop-workspace #edit-coords label{display:grid;gap:3px;font-size:12px;color:var(--secondary)}
body.desktop-workspace #edit-coords input{width:110px}
body.desktop-workspace #edit-coords #edit-radius{width:80px}
body.desktop-workspace #edit-draft-list{margin:4px 0;padding:0;list-style:none;max-height:150px;overflow:auto}
body.desktop-workspace #edit-draft-list li{display:flex;align-items:center;gap:8px;padding:3px 0;font-size:12px;font-variant-numeric:tabular-nums}
body.desktop-workspace #edit-draft-list label{display:flex;align-items:center;gap:4px;margin-left:auto;color:var(--secondary)}
body.desktop-workspace #edit-draft-list input{width:70px;min-height:28px;padding:3px 6px}
body.desktop-workspace #edit-draft-list button{min-height:28px;padding:3px 8px;font-size:12px}
body.desktop-workspace #connection-button{display:flex;align-items:center;gap:6px;min-height:32px;padding:4px 8px;border:1px solid var(--line);background:var(--surface);border-radius:6px}
body.desktop-workspace #connection-button .connection{max-width:none;color:var(--text);font-size:12px}
body.desktop-workspace #connection-panel{position:fixed;z-index:820;width:260px;padding:12px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;box-shadow:var(--desktop-shadow);display:grid;gap:6px;font-size:13px}
body.desktop-workspace #connection-panel[hidden]{display:none}
body.desktop-workspace #connection-panel p{margin:0}
body.desktop-workspace #ping-button .label-short{display:none}
body.desktop-workspace .section-add{margin-left:auto;white-space:nowrap;min-height:30px;padding:4px 9px;font-size:12px}
body.desktop-workspace #sidebar-resizer{position:absolute;top:0;right:-3px;bottom:0;width:7px;cursor:col-resize;z-index:5;touch-action:none}
body.desktop-workspace #sidebar-resizer:hover,body.desktop-workspace #sidebar-resizer:focus-visible{background:var(--desktop-accent);opacity:.55;outline:none}
body.desktop-workspace #inspector-back{font-size:12px!important;width:auto!important;padding:4px 8px!important;min-height:28px}
body.desktop-workspace #sidebar .selected-tools{color:var(--text);background:var(--desktop-tint);border-left:3px solid var(--desktop-accent)}
body.desktop-workspace #sidebar .selected-tools button{color:var(--text);font-size:12px;text-decoration:underline;text-underline-offset:2px}
@media(max-width:1100px){body.desktop-workspace #ping-button .label-long{display:none}body.desktop-workspace #ping-button .label-short{display:inline}}
body.desktop-workspace #connection-button .connection{display:flex}
