@media(min-width:761px){.operations-admin{width:min(1100px,calc(100% - 24px))!important;max-width:1100px!important}}.operations-admin .tool-body{padding:18px}.operations-tabs,.operations-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}.operations-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;padding:4px;border-radius:var(--hx-radius-segment);background:var(--hx-track)}.operations-tabs button[aria-pressed=true]{background:var(--lg-pb-234f40,#234f40)!important;color:var(--lg-pt-ffffff,#fff)!important}.operations-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px}.operations-map{height:380px;border:1px solid var(--lg-l-c8d6c3,#c8d6c3);border-radius:14px;overflow:hidden;background:var(--lg-b-e8ede6,#e8ede6)}.operations-person,.operations-route{padding:14px;border:1px solid var(--lg-l-c8d6c3,#c8d6c3);border-radius:12px;margin-bottom:12px}.operations-person p,.operations-route p{margin:8px 0;font-size:var(--hx-text-label);line-height:var(--hx-leading-body)}.operations-form{display:grid;gap:12px;margin-bottom:16px}.operations-form label{display:grid;gap:6px}.operations-form input,.operations-form select,.operations-form textarea{font:inherit;min-height:44px;padding:9px;border-radius:var(--hx-radius-card);border:1px solid var(--lg-l-c8d6c3,#c8d6c3);max-width:100%}.operations-timeline{width:100%;min-height:44px;accent-color:#234f40}.operations-note{font-size:var(--hx-text-label);line-height:var(--hx-leading-body);color:var(--lg-t-50675b,#50675b)}.operations-actions a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--lg-l-c8d6c3,#c8d6c3);border-radius:12px;background:var(--lg-b-f6f7f2,#f6f7f2);color:var(--lg-t-183d39,#183d39);text-decoration:none}.operations-actions svg{width:22px;height:22px}.route-download-notice{position:fixed;z-index:1200;bottom:20px;left:50%;transform:translateX(-50%);width:min(480px,calc(100% - 24px));padding:16px;border:1px solid var(--lg-l-688377,#688377);border-radius:16px;background:var(--lg-b-ffffff,white);box-shadow:0 4px 20px #183d3930;display:flex;flex-wrap:wrap;gap:10px}.route-download-notice p{width:100%;margin:0 0 5px;font-size:var(--hx-text-body);line-height:var(--hx-leading-body)}.route-download-notice button{flex:1;min-height:44px}@media(max-width:700px){.operations-grid{grid-template-columns:1fr}.operations-map{height:300px}.operations-admin .tool-body{padding:12px}}
.operations-admin .tool-body{padding:18px}.operations-map .maplibregl-ctrl-group button{width:36px!important;height:36px!important;min-height:0!important;padding:0!important;margin:0!important;border-radius:0!important;display:block!important}.operations-map .maplibregl-ctrl-icon{width:100%;height:100%;display:block}.operations-form .operations-check{display:flex;align-items:center;gap:10px}.operations-form input[type=checkbox]{width:22px;min-height:22px;margin:0}.operations-actions button{min-height:44px}.operations-timeline{margin:12px 0}.operations-admin .tool-body>p{margin:12px 0}@media(max-width:700px){.operations-admin .tool-body{padding:14px}.operations-tabs{gap:8px}.operations-tabs button{flex:1;min-width:90px}.operations-actions>*{flex:1}}

.operations-admin .tool-body{gap:12px}.operations-admin .tool-body>p{margin:0}.operations-tabs{margin-bottom:0}.operations-actions{display:grid;grid-template-columns:1fr 1fr}.operations-actions>*{box-sizing:border-box;text-align:center}.operations-person:last-child{margin-bottom:0}.operations-map .maplibregl-popup p{font-size:var(--hx-text-meta);margin-top:6px}
.operations-admin :is(.operations-tabs,.operations-actions,.operations-form)>button{min-height:48px;line-height:22px;display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:0}
html body dialog.operations-admin .operations-tabs button{min-height:var(--hx-target-icon)!important;margin:0!important;padding:0 8px!important;border:0!important;border-radius:calc(var(--hx-radius-segment) - 2px)!important;background:none!important;color:var(--hx-muted)!important;box-shadow:none!important}html body dialog.operations-admin .operations-tabs button[aria-pressed=true]{background:var(--hx-segment-on)!important;color:var(--hx-segment-ink)!important;box-shadow:var(--hx-shadow-raised)!important;font-weight:700}
/* Manager workflow: consistent actions and a fixed dialog heading. */
html body dialog.operations-admin[open]{display:flex!important;flex-direction:column;overflow:hidden!important;max-height:calc(100dvh - 24px)!important}
.operations-admin .tool-heading{flex:none;position:relative;z-index:2}
.operations-admin .tool-heading h2{flex:1;min-width:0}
.operations-admin .tool-body{overflow:auto;min-height:0;overscroll-behavior:contain;display:flex;flex-direction:column;gap:16px}
html body .operations-admin select,html body .operations-admin input,html body .operations-admin summary{font-family:'Horus Avenir','Avenir Next','Segoe UI',Arial,sans-serif!important;font-size:var(--hx-text-label)!important;font-weight:500!important;letter-spacing:normal!important;line-height:22px!important}
html body .operations-admin .operations-header-actions{display:flex;align-items:center;gap:8px;flex:none}
html body .operations-admin .operations-header-actions button{display:flex;align-items:center;justify-content:center;width:var(--hx-target-icon);min-width:var(--hx-target-icon);height:var(--hx-target-icon);min-height:var(--hx-target-icon);padding:0;margin:0;border-radius:var(--hx-radius-card)!important;border:1px solid #ffffff55;background:transparent;color:var(--lg-t-ffffff,#fff)}
.operations-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;flex:none}
html body .operations-admin .operations-tabs button{min-width:0;padding:8px;min-height:48px}
.worker-picker{border:1px solid var(--lg-l-c8d6c3,#c8d6c3);border-radius:12px;padding:12px;margin:12px 0 16px;min-width:0}
.worker-picker legend{font-size:var(--hx-text-body);font-weight:600;padding:0 6px}
.operations-admin .worker-choice{display:flex;align-items:center;gap:12px;padding:10px 0;cursor:pointer}
.operations-admin .worker-choice input{width:22px;height:22px;min-height:22px;padding:0;flex:none;accent-color:#234f40}
.worker-choice span{display:grid;gap:4px;overflow-wrap:anywhere}.worker-choice small{color:var(--lg-t-52695d,#52695d);font-size:var(--hx-text-meta)}
.worker-cards{display:grid;gap:12px;margin-top:16px}.worker-cards .operations-person{margin:0;overflow-wrap:anywhere}
.worker-pin{padding:5px 9px;background:#234f40;color:#fff;border:2px solid white;border-radius:12px;font-weight:500;font-size:var(--hx-text-meta);line-height:20px;font-family:var(--hx-font);box-shadow:0 2px 6px #183d3930;max-width:160px;overflow-wrap:anywhere}
.worker-pin.is-old{background:#69746c}
.operations-admin details{margin-top:12px}.operations-admin summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--lg-t-52695d,#52695d)}.operations-admin details .ui-facts{margin-top:12px}
@media(max-width:700px){.operations-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.operations-admin .tool-heading{padding:14px 16px}}
html body dialog.operations-admin .tool-heading .operations-header-actions button{background:var(--hx-card)!important;color:var(--lg-t-ffffff,#fff)!important;border:1px solid var(--hx-hairline)!important;box-shadow:none!important}
html body dialog.operations-admin .tool-body .operations-tabs button[aria-pressed=true]{background:var(--lg-pb-234f40,#234f40)!important;color:var(--lg-pt-ffffff,#fff)!important;border-color:var(--lg-pb-234f40,#234f40)!important}
html body #team-map-dialog .tool-body .operations-tabs button[aria-pressed=true]{background:var(--hx-segment-on)!important;color:var(--hx-segment-ink)!important;border-color:var(--hx-segment-on,#234f40)!important}
html body #team-map-dialog :is(select,input,summary){font-family:'Horus Avenir','Avenir Next','Segoe UI',Arial,sans-serif!important;font-size:var(--hx-text-label)!important;font-weight:500!important;letter-spacing:normal!important;line-height:22px!important}
#team-map-dialog .operations-tabs button[aria-pressed=true]{--ui-action-bg:#234f40;--ui-action-ink:#fff;--ui-action-border:#234f40}
#team-map-dialog .operations-actions a{font-family:'Horus Avenir','Avenir Next','Segoe UI',Arial,sans-serif!important;font-size:var(--hx-text-body)!important;font-weight:600!important;line-height:var(--hx-leading-tight)!important;min-height:52px;letter-spacing:normal!important}
html body #team-map-dialog .worker-contact{display:inline-flex;justify-content:flex-start;text-align:left;min-height:44px;padding:0!important;background:transparent!important;color:var(--lg-t-183d39,#183d39)!important;border:0!important;border-radius:0!important;text-decoration:underline;text-underline-offset:3px;box-shadow:none!important}
#team-map-dialog .worker-google{display:inline-flex;align-items:center;min-height:44px;color:var(--lg-t-183d39,#183d39);font-weight:500;font-size:var(--hx-text-label);line-height:22px;font-family:var(--hx-font);text-underline-offset:3px}
html body #team-map-dialog .worker-pin{background:#234f40!important;color:#fff!important;border:2px solid white!important;min-height:36px;padding:5px 9px;border-radius:12px!important}
html body #team-map-dialog .worker-pin.is-old{background:#69746c!important}
html body #team-map-dialog .worker-pin{width:auto!important;min-width:44px!important;max-width:160px!important;white-space:normal!important;overflow:visible!important}

/* Text links must not inherit the fixed square geometry of icon controls. */
html body #team-map-dialog .worker-contact{width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;flex:none!important;white-space:normal!important;overflow-wrap:anywhere;line-height:var(--hx-leading-body)!important;text-decoration:none;font-weight:600!important}
#team-map-dialog .worker-choice{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:center;border-bottom:1px solid var(--lg-l-d8ded9,#d8ded9);padding:12px 0}
#team-map-dialog .worker-choice:last-child{border-bottom:0}
#team-map-dialog .worker-choice>span{min-width:0;gap:2px}
#team-map-dialog .worker-choice small,.worker-identity small{display:block;overflow-wrap:anywhere;font-size:var(--hx-text-meta);line-height:var(--hx-leading-body);color:var(--lg-t-52695d,#52695d)}
#team-map-dialog .worker-picker{margin:0 0 16px}
html body #team-map-dialog .worker-pin{display:flex!important;align-items:center;justify-content:center;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;padding:0!important;border-radius:50%!important;white-space:nowrap!important;font-size:var(--hx-text-meta)!important;line-height:1!important;overflow:hidden!important}
#team-map-dialog .worker-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
#team-map-dialog .operations-person{min-width:0;border-left:4px solid var(--lg-l-234f40,#234f40);padding:16px;background:var(--lg-b-ffffff,white)}
#team-map-dialog .operations-person.is-old{border-left-color:var(--lg-l-69746c,#69746c)}
.worker-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.worker-identity{min-width:0;flex:1}.worker-map-number{display:block;color:var(--lg-t-52695d,#52695d);font-size:var(--hx-text-meta)}
.worker-state{flex:none;border-radius:6px;padding:6px 8px;background:var(--lg-b-edf1ed,#edf1ed);color:var(--lg-t-52695d,#52695d);font-size:var(--hx-text-meta)}
.worker-card-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--lg-l-d8ded9,#d8ded9);padding-top:12px;margin-top:16px}
#team-map-dialog .worker-google{padding:10px 14px;border:1px solid var(--lg-l-c8d6c3,#c8d6c3);border-radius:12px;background:var(--lg-b-f6f7f2,#f6f7f2);text-decoration:none}
#team-map-dialog .ui-facts{margin:0;min-width:0}#team-map-dialog .ui-facts>div{gap:12px}#team-map-dialog .ui-facts dd{min-width:0;overflow-wrap:anywhere}
@media(max-width:380px){.worker-card-head{flex-wrap:wrap}.worker-state{margin-left:auto}}

html body #team-map-dialog .worker-contact{--ui-action-bg:transparent;--ui-action-border:transparent;--ui-action-ink:#183d39;display:flex!important;align-items:center;justify-content:flex-start;text-align:left;border:0!important;background:transparent!important}
html body #team-map-dialog .worker-pin{--ui-action-bg:#234f40;--ui-action-ink:#fff;--ui-action-border:#fff}
html body #team-map-dialog .worker-pin.is-old{--ui-action-bg:#69746c}
html body .operations-admin button,html body #team-map-dialog button{font-weight:600!important}
/* Peer route choices match the shared 18px button type and keep one section gap below. */
html body .route-approval-content>.operations-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--horus-action-gap,12px)}
html body dialog.operations-admin .operations-tabs button{font-size:var(--hx-text-body)!important;font-weight:600!important;line-height:var(--hx-leading-tight)!important;min-height:52px}
html body .route-approval-content>.operations-tabs+:is(.operations-route,p){margin-top:var(--ui-section-gap,12px)!important}

/* Route identity and provenance stay readable inside phone cards. */
.operations-route .route-review-facts{margin:12px 0 16px;min-width:0}
.operations-route .route-review-facts>div{align-items:center;gap:12px}
.operations-route .route-review-facts :is(dt,dd){overflow-wrap:anywhere;min-width:0}
@media(max-width:420px){.operations-route .route-review-facts>div{display:grid;grid-template-columns:1fr;gap:4px;padding:8px 0}.operations-route .route-review-facts dd{text-align:left;margin:0}}

.operations-actions .route-delete{--ui-action-bg:#fffdf6;--ui-action-border:#688377;--ui-action-border-width:1px;grid-column:1/-1;background:var(--lg-b-fffdf6,#fffdf6)!important;border:1px solid var(--lg-l-688377,#688377)!important}
.operations-actions .route-delete[hidden]{display:none!important}
.route-delete-dialog .operations-actions>button{min-height:52px;font-size:var(--ui-button-label-size,18px);font-weight:600}
.route-delete-dialog .route-delete-confirm{--ui-action-bg:#ae2727;--ui-action-ink:#fff;--ui-action-border:#ae2727;background:var(--lg-b-ae2727,#ae2727)!important;color:var(--lg-t-ffffff,#fff)!important;border-color:var(--lg-l-ae2727,#ae2727)!important}
.route-delete-dialog .route-delete-cancel{--ui-action-bg:#fffdf6;--ui-action-border:#688377;--ui-action-border-width:1px;background:var(--lg-b-fffdf6,#fffdf6)!important;border:1px solid var(--lg-l-688377,#688377)!important}

/* Compact worker-card action: identity link with an explicit action target. */
html:root body #team-map-dialog .worker-contact{background:var(--lg-b-e8ebe8,#e8ebe8)!important;color:var(--lg-t-183d39,#183d39)!important;border:1px solid var(--lg-l-62765a,#62765a)!important;border-radius:var(--hx-radius-card)!important;padding:calc(8px + 0px) calc(12px + 0px)!important;min-height:44px!important;line-height:var(--hx-leading-body)!important}
html:root body .route-delete-dialog>.tool-body{padding:calc(16px + 0px)!important;gap:12px!important}
html:root body .route-delete-dialog>.tool-body>p{margin:0!important}

/* Separate compact contact action from adjacent route copy. */
html:root body #team-map-dialog .worker-contact{margin-top:12px!important;margin-bottom:12px!important}

/* Route details rows (PC spacing check, 5 Oct 2026): 8 px above AND below the text; the bottom was 0, so text sat 2 px over the next line. */
.operations-admin .operations-route .route-review-facts>div{padding-top:8px;padding-bottom:8px}
