:root{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;font-size:15px;color:#17283c;background:#f3f5f8}*{box-sizing:border-box}body{margin:0}header{background:#183452;color:#fff;padding:17px max(16px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:70px}header .brand{font-weight:750;font-size:1.1rem;letter-spacing:.01em}header #me{font-size:.78rem;color:#dbe8f4;text-align:right}main{width:min(940px,100%);margin:auto;padding:16px 14px 40px}footer{text-align:center;color:#67768a;padding:14px}h1{font-size:1.45rem;margin:0 0 15px}h2{font-size:1.12rem;margin:0 0 12px}h3{font-size:1rem;margin:0 0 8px}p{margin:8px 0}.panel,.delivery{background:#fff;border:1px solid #e1e7ee;border-radius:15px;padding:16px;margin-bottom:14px;box-shadow:0 2px 7px #17283c09}.delivery{border-left:4px solid #7895b4}.delivery.available{border-left-color:#18825a}.delivery.assigned{border-left-color:#2361a9}.delivery.return_pending{border-left-color:#bd7515}.delivery.completed{opacity:.75}label{display:block;font-weight:650;font-size:.87rem;margin:11px 0}input,select,textarea{display:block;margin-top:7px;width:100%;border-radius:9px;padding:11px 10px;border:1px solid #c5cfda;background:#fff;color:#17283c;font:inherit}textarea{min-height:67px;resize:vertical}button,.btn{border:1px solid #cfdae7;border-radius:9px;padding:10px 13px;background:#e7eef5;color:#213c57;font:inherit;font-weight:650;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:5px}button:disabled{opacity:.5;cursor:not-allowed}button.primary,.btn.primary{background:#197148;color:#fff;border-color:#197148}button.warning{background:#fff0e8;border-color:#ffc8ad;color:#8d3c1c}button.outline{background:#fff}button.small,.btn.small{padding:7px 10px;font-size:.87rem}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.muted,small{color:#67768a}.meta{font-size:.86rem;color:#5c6d80;line-height:1.7}.lead{font-size:1rem;font-weight:600}.status{display:inline-block;border-radius:6px;padding:4px 8px;background:#e9eef4;font-size:.75rem;font-weight:750;margin-left:7px}.status.open{background:#def6e9;color:#12663f}.status.assigned{background:#e3edff;color:#244d97}.status.return_pending{background:#fff0d7;color:#8b580e}.layout{display:grid;grid-template-columns:1fr;gap:14px}.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.topline{display:flex;align-items:center;justify-content:space-between;gap:8px}.toolbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-bottom:15px}.boxnote{padding:10px 12px;background:#f0f5fb;border-radius:8px;margin:9px 0;font-size:.88rem}.price{font-weight:800;font-size:1.2rem;color:#174e87}.counter{font-variant-numeric:tabular-nums}#toast:not(:empty){padding:11px 13px;background:#e7f2e9;color:#204c32;border-radius:9px;margin-bottom:12px}#toast.error{background:#fee7e4;color:#a32525}a{color:#175aa2}.kv{display:grid;grid-template-columns:130px 1fr;gap:8px;margin:8px 0}.k{font-size:.82rem;color:#67768a}.rank-row,.user-row{padding:10px 0;border-bottom:1px solid #e5e9f0}.rank-row:last-child,.user-row:last-child{border:0}.tabs{display:flex;gap:8px;margin:14px 0}.tabs button.active{background:#183452;color:white;border-color:#183452}@media(min-width:760px){main{padding:22px 20px 45px}.layout{grid-template-columns:1fr 1fr}}@media(max-width:370px){.split{grid-template-columns:1fr}.topline{align-items:start;flex-direction:column}}


/* v0.1.3: in-app history timeline (responsive / keyboard accessible). */
body.history-locked{overflow:hidden}
.history-overlay{position:fixed;inset:0;z-index:1000;background:rgba(15,32,53,.66);display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(3px)}
.history-sheet{width:min(680px,100%);max-height:min(780px,90dvh);display:flex;flex-direction:column;min-height:0;background:#fff;border-radius:19px;box-shadow:0 25px 80px rgba(15,32,53,.3);overflow:hidden;color:#17283c}
.history-top{background:#fff;color:#17283c;min-height:unset;padding:24px 27px 19px;display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid #e6ecf3}
.history-heading{flex:1;min-width:0}.history-eyebrow{display:block;font-size:.72rem;letter-spacing:.11em;color:#54748d;font-weight:800;margin-bottom:5px}.history-heading h2{font-size:1.43rem;line-height:1.25;margin:0 0 6px}.history-heading p{font-size:.87rem;color:#607286;margin:0}
.history-close{min-width:38px;height:38px;border-radius:11px;padding:0;font-size:1.2rem;background:#eff3f8;flex-shrink:0}
.history-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:8px 25px 18px}
.history-timeline{list-style:none;position:relative;margin:0;padding:8px 0 6px}
.history-timeline:before{content:"";position:absolute;left:17px;top:25px;bottom:25px;width:2px;background:#e5edf5}
.history-event{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);gap:8px;padding:11px 0 15px}
.history-bullet{position:relative;z-index:1;width:36px;height:36px;border-radius:50%;background:#e8eef6;color:#4f6681;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:1.05rem;border:3px solid #fff}
.history-success .history-bullet{background:#dff3e8;color:#16744b}.history-warning .history-bullet{background:#fff0db;color:#955200}.history-info .history-bullet{background:#e2eeff;color:#2169ae}.history-danger .history-bullet{background:#ffe5e2;color:#b02e2e}
.history-event-body{background:#fff;border:1px solid #e8edf4;border-radius:13px;padding:13px 15px;min-width:0}
.history-event-header{display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:7px}.history-event-header strong{font-size:.98rem}.history-event time{font-size:.78rem;color:#607286;white-space:nowrap;font-variant-numeric:tabular-nums}
.history-actor{color:#657589;font-size:.83rem;margin-top:4px}.history-details{display:grid;gap:5px;margin-top:10px;padding:10px 12px;background:#f5f8fc;border-radius:9px}.history-detail{display:grid;grid-template-columns:minmax(105px,30%) 1fr;gap:8px;line-height:1.4;font-size:.84rem;overflow-wrap:anywhere}.history-detail span{color:#67788c}.history-detail strong{font-weight:600}.history-empty{padding:25px;text-align:center;color:#68798d}
.history-footer{background:#fff;border-top:1px solid #e6ecf3;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 26px;color:#657589;font-size:.83rem}.history-done{background:#183452;color:white;border-color:#183452}
.history-overlay button:focus-visible,.history-overlay input:focus-visible,.history-overlay textarea:focus-visible{outline:3px solid #74a9ed;outline-offset:2px}
.attention-count{background:#ffe9e7;color:#971f1f}.delivery.attention{border-left-color:#d63a35;box-shadow:0 2px 12px #a522221c}.status.attention{background:#ffdddd;color:#9a2020}.attention-banner{background:#fff0ee;border:1px solid #f4b6ad;color:#902622;border-radius:9px;padding:10px 12px;margin:12px 0;display:grid;gap:5px}.attention-banner strong{font-size:.95rem}.attention-banner span{font-size:.82rem}
.terms-sheet{width:min(610px,100%)}.terms-form{overflow-y:auto;min-height:0;padding:10px 25px 0}.terms-form .history-footer{margin:15px -25px 0}.terms-note{border-radius:8px;background:#eff5fb;padding:11px 12px;color:#315272;font-size:.84rem;line-height:1.5}
@media(max-width:600px){.history-overlay{align-items:flex-end;padding:0}.history-sheet{border-radius:17px 17px 0 0;width:100%;max-height:94dvh}.history-top{padding:18px 18px 15px}.history-scroll{padding:5px 14px 12px}.history-event-body{padding:10px 11px}.history-event-header{flex-direction:column;gap:4px}.history-footer{padding:12px 17px}.terms-form{padding:8px 16px 0}.terms-form .history-footer{margin:15px -16px 0;flex-wrap:wrap}.terms-form .history-footer button{flex:1}}

/* v0.1.3: unified refusal dialog (driver and VIP, offer/assigned/loaded). */
.decline-sheet{width:min(590px,100%)}
.decline-form{padding:14px 24px 0;overflow-y:auto;min-height:0;overscroll-behavior:contain}
.decline-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid #e3eaf3;background:#f6f9fc;border-radius:11px;padding:13px 15px;font-size:.87rem;margin-bottom:14px}
.decline-summary strong{overflow-wrap:anywhere}.decline-summary span{color:#176049;font-weight:800;font-variant-numeric:tabular-nums}
.decline-fieldset{padding:0;margin:0;border:0;min-width:0}.decline-fieldset legend{font-size:.95rem;font-weight:750;margin:0 0 10px}
.decline-fieldset legend span{color:#b74431}
.decline-options{display:grid;gap:7px}.decline-option{display:flex;align-items:center;gap:12px;margin:0;padding:11px 13px;border:1px solid #dce5ef;border-radius:10px;background:#fff;font-size:.88rem;font-weight:550;cursor:pointer;line-height:1.3}
.decline-option:hover{background:#f2f7fc}.decline-option:has(input:checked){border-color:#2b7198;background:#eaf5fb;box-shadow:inset 0 0 0 1px #2b7198}
.decline-option input{margin:0;width:17px;height:17px;flex:0 0 17px;accent-color:#176c90;cursor:pointer}
.decline-comment-label{margin:16px 0 0;font-size:.88rem}.decline-comment-label textarea{margin-top:8px;min-height:78px;resize:vertical}.decline-comment-label span{font-weight:450}
.decline-info{background:#eff5fc;border-radius:9px;padding:12px 13px;color:#345772;font-size:.85rem;line-height:1.5}
.decline-alert{background:#fff0eb;border:1px solid #ecb5a5;border-radius:9px;padding:12px;color:#8d3026;font-size:.86rem;line-height:1.5}
.decline-error{color:#b73131;font-size:.83rem;margin:9px 0}.decline-footer{margin:14px -24px 0;gap:10px;justify-content:flex-end}
.decline-footer button{min-height:42px}.decline-submit{background:#9f352c;color:#fff;border-color:#9f352c}.decline-submit:hover{background:#812c25}
@media(max-width:600px){.decline-form{padding:12px 16px 0}.decline-footer{margin:14px -16px 0}.decline-footer button{flex:1}.decline-option{padding:12px 10px}}

.rank-config-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:11px;align-items:end;margin-top:12px}.rank-config-grid .rank-field{margin:0;font-size:.78rem}.rank-config-grid input{margin-top:6px;min-width:0}.rank-config-grid button{min-height:41px}
@media(max-width:520px){.rank-config-grid{grid-template-columns:1fr 1fr}.rank-config-grid button{grid-column:1/-1}}

/* v0.1.4: compact chronological Cron events; original user actions stay separate. */
.history-repeat{display:inline-block;vertical-align:middle;background:#e9f0fb;border-radius:6px;padding:2px 6px;margin-left:4px;font-size:.78rem;color:#365f88;white-space:nowrap}
.history-repeat-period{color:#607286;font-size:.79rem;margin-top:5px;line-height:1.45}

/* v0.1.5 unified delivery-frame colors; never rely solely on color for status. */
.delivery{border:3px solid var(--delivery-frame,#7895b4)!important;border-radius:15px}
.delivery.available{border-color:var(--delivery-frame,#18825a)!important}
.admin-fieldset{margin:14px 0;border:1px solid #dae5f0;border-radius:10px;padding:12px}
.week-grid{display:flex;flex-wrap:wrap;gap:10px}
.inline-check{display:flex;align-items:center;gap:8px;font-weight:550}
.inline-check input{width:auto;margin:0;accent-color:#197148}
.color-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.color-setting{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px;background:#f5f8fc;border-radius:9px}
.color-setting input{width:48px;height:36px;padding:3px;margin:0}

.delivery .status{border:1px solid var(--delivery-frame,#7895b4);color:#213c57;background:#f8fafc}

.admin-nav{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 16px}.admin-nav a{font-size:.82rem;text-decoration:none;background:#e9f0f8;padding:8px 11px;border-radius:8px;color:#224969;font-weight:700}.admin-nav a:hover{background:#dae7f6}.audit-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid #e3e9f0;padding:9px 0;font-size:.82rem}.audit-row span{color:#627487}.audit-row strong{color:#203d5c}

/* v0.1.5 / TZ revision 3 */
a.phone-call{display:inline-flex;align-items:center;gap:.3rem;font-weight:650;text-decoration:underline;text-underline-offset:3px;min-height:36px}
#restart-modal .terms-sheet{max-width:680px}
#restart-modal textarea{min-height:80px;resize:vertical}

/* v0.1.7 RC1 */
.latest-banner{display:grid;gap:5px;margin:0 0 16px;padding:14px 16px;border:2px solid var(--delivery-frame,#7895b4);background:#f7fafe;border-radius:12px}
.latest-banner span{font-size:.84rem;color:#4a5e76}
.delivery-filters{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 14px}
.delivery-filters button.active{background:#183452;color:#fff;border-color:#183452}
.delivery .status{border:2px solid var(--delivery-frame,#7895b4);background:#f9fafc}
#scroll-top{position:fixed;right:18px;bottom:22px;width:45px;height:45px;border-radius:50%;z-index:100;box-shadow:0 4px 18px #1d33465e;font-size:1.4rem;background:#183452;color:white;border:0}
#employee-password-modal input[type=checkbox]{width:20px}

/* RC2: the configured palette controls the whole card, not a left accent. */
.delivery,.delivery.available,.delivery.assigned,.delivery.return_pending,.delivery.completed{border:3px solid var(--delivery-frame,#7895b4)!important;border-left:3px solid var(--delivery-frame,#7895b4)!important}
.delivery .status{border:2px solid var(--delivery-frame,#7895b4)!important;background:#fff!important;color:#253a4d!important}
.reward-picker{display:flex;align-items:stretch;gap:5px;margin-top:7px}.reward-picker input{margin:0;min-width:0;flex:1}.reward-picker button{white-space:nowrap;padding:8px;font-size:.85rem}
.driver-panel-actions{display:flex;flex-wrap:wrap;gap:8px}.driver-panel-row{border:1px solid #d7e2ee;border-radius:10px;padding:12px;margin:8px 0}

/* RC2 UI revised: Keenetic-inspired information hierarchy, without changing the API. */
body[data-app="dispatch"]{background:#f3f6f9;color:#26394a}
body[data-app="dispatch"]>header{background:#163a50;min-height:64px;padding:14px clamp(18px,3vw,50px);box-shadow:0 2px 10px #193d4d15}
body[data-app="dispatch"]>header .brand{font-weight:730;letter-spacing:.012em}
body[data-app="dispatch"] main{width:min(1650px,100%);padding:18px clamp(14px,2.4vw,40px) 56px;margin:0 auto}
body[data-app="dispatch"] #controls .toolbar{justify-content:flex-end;margin:0 0 14px;gap:7px}
body[data-app="dispatch"] #controls .toolbar button{font-size:.83rem;padding:8px 11px;background:#fff;border:1px solid #dce4ec;color:#34536c}
body[data-app="dispatch"] #controls .toolbar button:hover{background:#eaf2f8}
body[data-app="dispatch"] footer{border-top:1px solid #e7ebef;background:#fff}
.dispatch-shell{display:grid;grid-template-columns:235px minmax(0,1fr);gap:20px;align-items:start}
.dispatch-sidebar{min-width:0;position:sticky;top:18px;display:flex;flex-direction:column;min-height:560px;padding:20px 10px 12px;background:#fff;border:1px solid #e2e9f0;border-radius:12px;box-shadow:0 3px 16px #153f5410}
.sidebar-caption{font-size:.67rem;font-weight:800;color:#8c9baa;letter-spacing:.12em;margin:4px 13px 16px}
.sidebar-nav{display:grid;gap:4px}
body[data-app="dispatch"] .side-link{display:grid;grid-template-columns:24px 1fr 4px;align-items:center;gap:10px;min-height:44px;width:100%;border:0;border-radius:8px;background:transparent;padding:9px 12px;text-align:left;font-size:.91rem;font-weight:600;color:#516575;justify-content:stretch}
body[data-app="dispatch"] .side-link:hover{background:#f0f5f9;color:#204961}
body[data-app="dispatch"] .side-link.active{background:#e8f1f7;color:#125578}
.side-icon{font-size:1.18rem;text-align:center;color:#7493a6}
.side-link.active .side-icon{color:#1b6a90}
.side-current{width:4px;height:22px;border-radius:4px;background:#1c7caa}
.sidebar-foot{margin:auto 12px 5px;padding-top:20px;font-size:.72rem;color:#91a2af}
.sidebar-dot{display:inline-block;width:7px;height:7px;margin-right:6px;background:#2a9f71;border-radius:50%}
.dispatch-main{min-width:0}
.dashboard-title{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 16px}
.dashboard-eyebrow{display:block;font-size:.75rem;font-weight:600;color:#8395a4;margin:0 0 3px}
body[data-app="dispatch"] .dashboard-title h1{font-size:1.75rem;font-weight:740;letter-spacing:-.03em;margin:0}
.dashboard-tools{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
body[data-app="dispatch"] .create-main{background:#167a63;border-color:#167a63;padding:11px 15px;box-shadow:0 2px 6px #167a631c}
body[data-app="dispatch"] .create-main:hover{background:#11654f}
body[data-app="dispatch"] .recent-toggle{padding:10px 13px;background:#fff}
.mobile-nav-toggle{display:none}
body[data-app="dispatch"] .latest-banner{width:100%;margin:0 0 15px;padding:15px 18px;display:flex;align-items:center;text-align:left;gap:14px;border:1px solid #dce6ed;border-left:4px solid var(--delivery-frame,#7895b4);background:#fff;box-shadow:0 2px 9px #1b4e6110;border-radius:12px;color:#26394a;font-size:.95rem;font-weight:inherit;min-height:74px}
.latest-link:hover{border-color:#8ab5cb!important;background:#fbfdff!important}
.latest-icon{display:flex;align-items:center;justify-content:center;flex:none;background:#e8f3f6;color:#297392;font-weight:800;width:40px;height:40px;border-radius:10px;font-size:1.4rem}
.latest-text{display:grid;gap:5px;flex:1;min-width:0}.latest-text strong{font-size:.92rem;line-height:1.45}.latest-text>span{font-size:.79rem;color:#7a8998}
.latest-arrow{font-size:1.8rem;font-weight:400;color:#8ca2b2}
.dispatch-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:23px}
body[data-app="dispatch"] .metric-card{display:flex;flex-direction:column;align-items:stretch;gap:8px;text-align:left;min-width:0;background:#fff;border:1px solid #e0e7ee;border-radius:11px;padding:14px 16px;color:#2d4558;box-shadow:0 2px 8px #224d5e0b;font-weight:500}
body[data-app="dispatch"] .metric-card:hover{background:#fafdff;border-color:#93b5c7;transform:translateY(-1px)}
.metric-top{display:flex;align-items:center;gap:8px;font-size:.79rem;white-space:normal;color:#70808e;min-height:30px}
.metric-icon{display:flex;align-items:center;justify-content:center;background:#edf3f8;color:#4d7891;border-radius:8px;width:28px;height:28px;flex:none;font-size:1.04rem;font-weight:800}
.metric-card.attention .metric-icon{background:#fff1eb;color:#ca6b39}
.metric-card.returns .metric-icon{background:#fff2de;color:#a87526}
.metric-value{font-size:1.8rem;font-weight:750;line-height:1.1;letter-spacing:-.04em;color:#25475b}
.dashboard-body{min-width:0}
body[data-app="dispatch"] .dashboard-body .panel{border-radius:12px;box-shadow:0 2px 9px #163e540b}
body[data-app="dispatch"] .section-header{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 13px}
body[data-app="dispatch"] .section-header h2{font-size:1.16rem;margin:0;font-weight:740}
body[data-app="dispatch"] .section-header .meta{margin:3px 0 0;font-size:.78rem}
body[data-app="dispatch"] .delivery-filters{margin:0 0 15px;gap:8px}
body[data-app="dispatch"] .delivery-filters button{border-radius:8px;background:#fff;color:#56738a;border:1px solid #dbe4ec;padding:9px 13px}
body[data-app="dispatch"] .delivery-filters button.active{background:#204e69;border-color:#204e69;color:#fff}
.delivery-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}
body[data-app="dispatch"] .delivery-stack .delivery,body[data-app="dispatch"] .delivery-list>.delivery{margin:0;min-width:0;box-shadow:0 2px 9px #153f5410;padding:17px 18px}
body[data-app="dispatch"] .delivery.completed{opacity:1}
body[data-app="dispatch"] .delivery .topline{flex-wrap:wrap;align-items:flex-start}
body[data-app="dispatch"] .delivery h3{font-size:1.08rem}
body[data-app="dispatch"] .delivery .actions button{font-size:.82rem}
body[data-app="dispatch"] .delivery.focused-job{outline:4px solid #acd9ee;outline-offset:3px;margin:7px 5px 22px}
.focus-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 2px;color:#25647b;font-size:.84rem}
.recent-menu{background:#fff;border:1px solid #dce5eb;border-radius:12px;box-shadow:0 9px 26px #25485f1b;overflow:hidden;margin:-5px 0 16px}
.recent-menu-header{padding:16px 18px 12px;display:grid;gap:3px;background:#f7fafc;border-bottom:1px solid #e5edf1}
.recent-menu-header span{font-size:.78rem;color:#7a8d9c}
body[data-app="dispatch"] .recent-job{display:grid;grid-template-columns:minmax(0,1fr) auto 14px;gap:15px;align-items:center;width:100%;padding:11px 17px;text-align:left;background:white;border:none;border-radius:0;border-bottom:1px solid #edf0f3;color:#304b5c;font-size:.83rem;font-weight:500}
body[data-app="dispatch"] .recent-job:hover{background:#edf5fa}
.recent-job>span:first-child{display:grid;gap:4px;min-width:0}.recent-job small{font-size:.72rem;font-weight:400;color:#80919c}
.recent-status,.overview-status{border-radius:6px;background:#edf3f8;padding:5px 7px;font-size:.75rem;color:#577187;white-space:normal;text-align:right}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);gap:16px;align-items:start}
body[data-app="dispatch"] .overview-job,body[data-app="dispatch"] .quick-job{display:flex;justify-content:space-between;align-items:center;gap:15px;width:100%;min-width:0;padding:17px 15px;background:#fff;border:1px solid #e2eaf0;border-radius:9px;margin:0 0 8px;text-align:left;font-weight:500}
body[data-app="dispatch"] .overview-job:hover,body[data-app="dispatch"] .quick-job:hover{background:#f2f8fb;border-color:#b7d4e4}
.overview-job>span:first-child{min-width:0;display:grid;gap:5px}.overview-job small{font-size:.78rem;font-weight:400;color:#7a8997}
.overview-side h2{font-size:1.06rem}
body[data-app="dispatch"] .overview-side .quick-job{font-size:.82rem;padding:11px 12px}
.history-job{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e8eff4}
body[data-app="dispatch"] .history-job>button:first-child{flex:1;text-align:left;justify-content:start;display:grid;gap:4px;border:0;background:none;padding:5px 0;min-width:0}
.history-job>button:first-child>span{font-size:.76rem;color:#6e8290;font-weight:400}
.push-test-action{display:flex;align-items:end;padding-bottom:9px}
body[data-app="dispatch"] .driver-panel-row{background:#fafcfd}
/* Right drawer is outside the periodically replaced #content subtree. */
body.create-open{overflow:hidden}
.create-overlay{position:fixed;inset:0;z-index:1800;background:rgba(9,32,49,.45);display:flex;justify-content:flex-end}
.create-drawer{display:flex;flex-direction:column;width:min(610px,100%);height:100%;background:#fff;box-shadow:-16px 0 48px #0b30402a;min-height:0}
.create-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e2eaf0;padding:23px 26px 19px;background:#f8fbfd}
.create-heading small{font-size:.72rem;letter-spacing:.1em;color:#7e92a0;font-weight:750}
.create-heading h2{font-size:1.45rem;margin:5px 0 0}
.create-scroll{padding:15px 26px 32px;overflow:auto;flex:1;overscroll-behavior:contain}
.create-scroll form{padding-bottom:35px}
.create-scroll button.primary{min-height:45px;margin-top:12px}
body[data-app="dispatch"] button:focus-visible,body[data-app="dispatch"] a:focus-visible{outline:3px solid #70b7e6;outline-offset:2px}
@media(max-width:1280px){.dispatch-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.delivery-stack{grid-template-columns:1fr}}
@media(max-width:850px){body[data-app="dispatch"] main{padding:12px 12px 35px}.dispatch-shell{grid-template-columns:1fr;gap:10px}.dispatch-sidebar{display:none;position:static;min-height:0}.dispatch-sidebar.mobile-open{display:flex}.mobile-nav-toggle{display:inline-flex;background:#fff!important}.dashboard-title h1{font-size:1.45rem!important}.dispatch-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.overview-grid{grid-template-columns:1fr}.dashboard-title{align-items:flex-start}.latest-banner{padding:11px!important}.dashboard-tools button{font-size:.8rem}.sidebar-foot{display:none}}
@media(max-width:520px){body[data-app="dispatch"] #controls .toolbar{justify-content:flex-start}.dispatch-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{padding:9px!important}.metric-value{font-size:1.45rem}.dashboard-tools{width:100%}.dashboard-tools .create-main{flex:1}.recent-job{grid-template-columns:minmax(0,1fr) 12px!important}.recent-status{display:none}.history-job{flex-wrap:wrap}.history-job button:last-child{flex:none}.create-heading{padding:17px 16px}.create-scroll{padding:12px 17px 24px}.create-drawer .split{grid-template-columns:1fr}.delivery-stack{grid-template-columns:1fr}}
.metric-filter-note{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;background:#e9f3f8;color:#30546a;border-radius:8px;padding:9px 12px;margin-bottom:11px;font-size:.84rem}

/* UYUT34: real-time chat, mobile/desktop, 1:1 dispatcher-driver. */
.uychat-lock{overflow:hidden}
.uychat-overlay{position:fixed;inset:0;z-index:99999;background:rgba(15,37,57,.68);display:grid;place-items:center;padding:14px}
.uychat-window{width:min(1080px,100%);height:min(760px,calc(100dvh - 28px));background:#fff;border-radius:16px;display:flex;flex-direction:column;box-shadow:0 16px 58px #0004;overflow:hidden;color:#17344d}
.uychat-top{padding:15px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3ebf2;gap:16px}
.uychat-top b{font-size:19px;display:block}.uychat-top small{display:block;color:#627891;font-size:12px;margin-top:3px}
.uychat-top button{border:1px solid #d0dce9;background:#f1f6fa;border-radius:10px;min-height:38px;min-width:40px;font-size:19px;cursor:pointer}
.uychat-layout{display:grid;grid-template-columns:290px 1fr;flex:1;min-height:0}
.uychat-contacts{border-right:1px solid #dfebf2;overflow:auto;background:#f7fafc}.uychat-contacts-title{padding:17px 15px 9px;font-size:12px;font-weight:700;color:#54708c;letter-spacing:.04em}
.uychat-person{position:relative;display:flex;flex-direction:column;text-align:left;border:0;border-bottom:1px solid #e5ecf2;background:transparent;width:100%;padding:13px 42px 13px 15px;cursor:pointer;color:#17344d;min-height:66px}
.uychat-person:hover,.uychat-person.active{background:#e5f1f9}.uychat-person b{font-size:14px}.uychat-person small{color:#627891;margin-top:5px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:205px}
.uychat-count{position:absolute;right:10px;top:17px;background:#087753;color:white;border-radius:25px;padding:3px 7px;font-size:12px;font-weight:700}
.uychat-conversation{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fff}
.uychat-conversation-head{border-bottom:1px solid #e5edf2;padding:14px 20px;min-height:54px;display:flex;align-items:center;gap:10px}
.uychat-back{display:none!important}
.uychat-messages{flex:1;min-height:0;overflow-y:auto;background:#f4f8fb;padding:18px;display:flex;flex-direction:column;gap:12px}
.uychat-msg{display:flex;max-width:100%}.uychat-msg.mine{justify-content:flex-end}.uychat-msg.their{justify-content:flex-start}
.uychat-bubble{max-width:min(540px,86%);background:#fff;border:1px solid #dee9f1;border-radius:14px;padding:10px 13px;overflow-wrap:anywhere;line-height:1.45;white-space:normal}
.uychat-msg.mine .uychat-bubble{background:#ddf5e8;border-color:#a6debc}.uychat-body{white-space:pre-wrap;font-size:14px}.uychat-body a{color:#005c8f;text-decoration:underline}
.uychat-bubble img{display:block;max-width:100%;max-height:340px;width:auto;height:auto;border-radius:8px;margin-top:6px;object-fit:contain}
.uychat-bubble small{display:block;text-align:right;font-size:11px;margin-top:7px;color:#63798e}
.uychat-empty{margin:auto;color:#6a7c8d;text-align:center;padding:20px}.uychat-muted{padding:10px;color:#6a7c8d}
.uychat-form{border-top:1px solid #dce6ef;padding:12px 16px;background:white;display:flex;flex-direction:column;gap:7px}
.uychat-form textarea{width:100%;min-height:50px;max-height:155px;resize:vertical;border:1px solid #bdcfdd;border-radius:9px;padding:10px;font:inherit;box-sizing:border-box;color:#17344d;background:#fff}
.uychat-photo-preview{display:flex;align-items:center;gap:12px;border:1px solid #a9d4e2;border-radius:10px;background:#f0f8fc;padding:8px;max-width:100%;box-sizing:border-box}
.uychat-photo-preview[hidden]{display:none}
.uychat-photo-preview img{width:66px;height:56px;object-fit:contain;border-radius:5px;background:#fff;flex:0 0 auto}
.uychat-photo-preview span{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;color:#244863}
.uychat-photo-preview button{font-size:24px;line-height:1;flex:0 0 auto;width:34px;height:34px;padding:0;border:1px solid #c2d5e4;border-radius:8px;background:#fff;color:#b13a3a;cursor:pointer}
.uychat-photo-preview button:hover{background:#fdeaea}
.uychat-paste-hint{color:#708397;font-size:11px}
@media(max-width:530px){.uychat-paste-hint{display:none}}
.uychat-form-bottom{display:flex;align-items:center;gap:10px;justify-content:flex-end}.uychat-attach{cursor:pointer;margin-right:auto;padding:9px 12px;border:1px solid #d2e1ed;border-radius:8px;font-weight:600;font-size:13px}
.uychat-form-bottom small{max-width:190px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.uychat-form-bottom button{border:0;background:#067450;color:#fff;border-radius:8px;padding:10px 16px;min-height:36px;cursor:pointer;font-weight:600}
.uychat-info{font-size:11px;padding:5px 16px;border-top:1px solid #e6edf2;min-height:23px;color:#55718b}.uychat-info.bad{color:#ab3030}
.uychat-dot{width:15px;height:15px;border-radius:50%;border:1px solid #222;display:inline-block;vertical-align:middle;margin-right:4px;box-sizing:border-box}
.uychat-dot.duty{background:#ffc83d}.uychat-dot.online{background:#00c800}
@media(max-width:680px){.uychat-overlay{padding:0}.uychat-window{width:100%;height:100dvh;border-radius:0}.uychat-layout{grid-template-columns:1fr}.uychat-contacts{grid-column:1;grid-row:1}.uychat-conversation{display:none;grid-column:1;grid-row:1}.uychat-overlay.chat-selected .uychat-contacts{display:none}.uychat-overlay.chat-selected .uychat-conversation{display:flex}.uychat-back{display:inline-flex!important;background:transparent;border:0;font-size:19px;cursor:pointer}.uychat-messages{padding:12px}.uychat-bubble{max-width:91%}.uychat-top{padding:12px 14px}}

.uychat-older{align-self:center;border:1px solid #c9d8e6;background:#fff;color:#1b4967;border-radius:10px;cursor:pointer;padding:8px 16px;margin-bottom:8px}

/* P2: consistent new-message alert and sound controls for both PWAs */
.uychat-global-unread{display:inline-flex;justify-content:center;align-items:center;min-width:18px;height:18px;
 padding:0 5px;margin-left:6px;border-radius:999px;background:#b52230;color:#fff;font-size:11px;font-weight:700}
.uychat-global-unread[hidden]{display:none!important}
.uychat-sound-btn{margin-left:auto;padding:8px 10px;border:1px solid #c7d9e6;border-radius:8px;
 background:#edf5fa;color:#173c55;cursor:pointer;font-size:12px;font-weight:600}
.uychat-arrival{position:fixed;z-index:99999;bottom:24px;right:20px;max-width:min(90vw,420px);
 border:1px solid #a1d7bd;border-radius:12px;padding:14px 18px;background:#e2f7eb;color:#064b35;
 font-weight:700;box-shadow:0 6px 28px #09271e42;cursor:pointer;text-align:left}
@media(max-width:680px){.uychat-sound-btn{font-size:11px;padding:6px 7px}.uychat-arrival{bottom:10px;right:10px;left:10px;max-width:none}}

/* Messenger P3: admin-managed pair permissions */
.uychat-links{position:absolute;z-index:10;inset:10px;overflow:auto;background:#fff;border:1px solid #c9dce8;
 border-radius:14px;box-shadow:0 8px 30px #17304866;padding:18px;color:#173448}
.uychat-link-head{display:flex;align-items:center;justify-content:space-between;font-size:18px}
.uychat-link-head button{font-size:22px;cursor:pointer;background:transparent;border:0}
.uychat-links form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:12px 0;border-bottom:1px solid #dde6ec}
.uychat-links form label{display:flex;flex-direction:column;gap:4px;flex:1;min-width:160px}
.uychat-links select{max-width:100%;min-height:36px;border:1px solid #b6cbd8;border-radius:8px}
.uychat-links form button{background:#117147;color:#fff;border:0;border-radius:8px;padding:11px;cursor:pointer}
.uychat-link-list{display:grid;gap:8px;margin-top:12px}.uychat-link-row{display:flex;flex-wrap:wrap;gap:7px;align-items:center;border-bottom:1px solid #eef3f8;padding:6px}
.uychat-link-row strong{min-width:130px}.uychat-link-row button{border:1px solid #cfdae5;background:#f4f8fb;border-radius:8px;padding:5px 9px;cursor:pointer}
.uychat-bad{color:#af1f27}
@media(max-width:650px){.uychat-links{inset:4px;padding:10px}.uychat-links form{display:block}.uychat-links label{margin:8px 0}}

.uychat-window{position:relative}

/* Messenger UI1: compact shared composer, anchored history, in-chat photos. */
.uychat-overlay .uychat-window{min-height:0}
.uychat-overlay .uychat-conversation{position:relative;min-height:0}
.uychat-overlay .uychat-messages-wrap{position:relative;flex:1;display:flex;min-height:0;min-width:0}
.uychat-overlay .uychat-messages{width:100%;box-sizing:border-box;min-width:0;overscroll-behavior:contain}
.uychat-overlay .uychat-form{padding:9px 12px;gap:7px;flex:0 0 auto}
.uychat-overlay .uychat-compose-row{display:flex;align-items:flex-end;gap:9px;min-width:0;width:100%}
.uychat-overlay .uychat-compose-row textarea{flex:1;min-width:0;width:auto;min-height:40px;height:40px;max-height:132px;line-height:20px;resize:none;overflow-y:auto;border:1px solid #cbdbe4;border-radius:19px;padding:9px 13px;font:inherit;font-size:16px;box-sizing:border-box;color:#18394e;background:#f8fafb}
.uychat-overlay .uychat-compose-row textarea:focus{outline:2px solid #8ac0bd;outline-offset:0}
.uychat-overlay .uychat-compose-row .uychat-attach{display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;padding:0;width:40px;height:40px;flex:0 0 40px;font-size:23px;line-height:1;border:0;border-radius:50%;background:#f1f6f7;color:#31586e;cursor:pointer}
.uychat-overlay .uychat-compose-row .uychat-attach:hover{background:#e4eef2}
.uychat-overlay .uychat-compose-row .uychat-attach input[hidden]{display:none!important}
.uychat-overlay .uychat-compose-row .uychat-send{display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;padding:0 0 0 2px;width:40px;height:40px;min-width:40px;min-height:40px;border:0;border-radius:50%;background:#087553;color:#fff;font-size:22px;line-height:1;cursor:pointer}
.uychat-overlay .uychat-compose-row .uychat-send:disabled{opacity:.55;cursor:wait}
.uychat-overlay .uychat-photo-preview{padding:5px 7px;gap:8px;border-radius:11px}
.uychat-overlay .uychat-photo-preview img{width:46px;height:46px;object-fit:contain}
.uychat-overlay .uychat-photo-preview span{font-size:12px}
.uychat-overlay .uychat-photo-preview button{width:30px;height:30px}
.uychat-overlay .uychat-photo-open{display:block;max-width:100%;border:0;margin:7px 0 0;padding:0;cursor:zoom-in;background:transparent;border-radius:8px;overflow:hidden}
.uychat-overlay .uychat-photo-open img{display:block;width:min(235px,100%);height:160px;max-width:100%;max-height:none;margin:0;border-radius:7px;object-fit:contain;background:#edf3f6}
.uychat-overlay .uychat-newer{position:absolute;right:14px;bottom:12px;border:1px solid #b8dacc;background:#e6f9f0;color:#006242;border-radius:24px;padding:9px 14px;box-shadow:0 3px 14px #173b4e33;font-size:13px;font-weight:650;cursor:pointer;z-index:3}
.uychat-overlay .uychat-newer[hidden]{display:none!important}
.uychat-overlay .uychat-lightbox{position:fixed;inset:0;background:#060b11ef;z-index:100003;display:flex;justify-content:center;align-items:center;overscroll-behavior:contain}
.uychat-overlay .uychat-photo-close{position:absolute;z-index:2;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));width:48px;height:48px;padding:0;border:1px solid #ffffff77;border-radius:50%;color:#fff;background:#222b35de;font-size:32px;cursor:pointer}
.uychat-overlay .uychat-photo-stage{display:flex;justify-content:center;align-items:center;width:100%;height:100%;box-sizing:border-box;overflow:hidden;touch-action:none;cursor:zoom-out;padding:58px 13px 20px}
.uychat-overlay .uychat-photo-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain;transform-origin:center center;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;touch-action:none}
@media(max-width:680px){
 .uychat-overlay{box-sizing:border-box;padding:0!important;display:block}
 .uychat-overlay .uychat-window{height:100%;width:100%;max-height:none;border-radius:0}
 .uychat-overlay .uychat-top{gap:6px;padding:7px 9px;min-height:50px;box-sizing:border-box}
 .uychat-overlay .uychat-top b{font-size:15px}.uychat-overlay .uychat-top small{display:none}
 .uychat-overlay .uychat-top button{min-width:32px;min-height:34px;font-size:17px}
 .uychat-overlay .uychat-conversation-head{min-height:44px;padding:8px 12px}
 .uychat-overlay .uychat-messages{padding:10px 9px;gap:9px}
 .uychat-overlay .uychat-form{padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));gap:5px}
 .uychat-overlay .uychat-compose-row{gap:6px}
 .uychat-overlay .uychat-info{min-height:0;padding:3px 8px;font-size:10px;line-height:1.2;max-height:28px;overflow:hidden}
 .uychat-overlay .uychat-photo-close{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right))}
}

/* Messenger Voice1: compact Telegram-like microphone and recorder, both PWAs. */
.uychat-overlay [hidden]{display:none!important}
.uychat-overlay .uychat-compose-row{align-items:center}
.uychat-overlay .uychat-compose-row .uychat-attach{background:transparent;border:0;color:#5a7586;width:36px;min-width:36px;flex:0 0 36px;order:2}
.uychat-overlay .uychat-compose-row textarea{order:1;border:0;background:#f5f8fa;border-radius:23px;min-height:44px;padding:11px 13px}
.uychat-overlay .uychat-compose-row .uychat-mic,
.uychat-overlay .uychat-compose-row .uychat-send{order:3;display:flex;align-items:center;justify-content:center;flex:0 0 44px;box-sizing:border-box;width:44px;height:44px;min-height:44px;min-width:44px;padding:0;border:0;border-radius:50%;background:#2399ea;color:white;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 2px 5px #1a5e9a2a}
.uychat-overlay .uychat-compose-row .uychat-mic svg{pointer-events:none}
.uychat-overlay .uychat-compose-row .uychat-mic:focus-visible{outline:3px solid #56b8ed;outline-offset:2px}
.uychat-overlay .uychat-compose-row .uychat-mic:active{background:#1374c2}
.uychat-overlay .uychat-recording{display:flex;align-items:center;gap:8px;min-height:46px;border-radius:22px;background:#f2f8fc;padding:6px 9px;box-sizing:border-box}
.uychat-overlay .uychat-rec-dot{background:#e43c4c;width:10px;height:10px;flex:0 0 10px;border-radius:50%;animation:uychat-rec-pulse 1.5s infinite}
@keyframes uychat-rec-pulse{50%{opacity:.35}}
.uychat-overlay .uychat-recording strong{font-variant-numeric:tabular-nums;color:#1f4963;white-space:nowrap}
.uychat-overlay .uychat-recording [data-chat-record-hint]{font-size:12px;color:#647f8f;min-width:0;flex:1;line-height:1.2}
.uychat-overlay .uychat-recording button{flex:none;border:0;border-radius:16px;background:#e1edf6;color:#235d80;font-size:13px;padding:9px 10px;min-height:36px;cursor:pointer}
.uychat-overlay .uychat-recording [data-chat-record-send]{background:#2399ea;color:white}
.uychat-overlay .uychat-voice-message{display:flex;align-items:center;gap:5px;margin-top:5px;max-width:min(320px,100%);min-width:0}
.uychat-overlay .uychat-voice-symbol{font-size:18px;flex:none}
.uychat-overlay .uychat-voice-message audio{max-width:100%;width:250px;min-width:0;height:40px;flex:1}
@media(max-width:400px){.uychat-overlay .uychat-voice-message audio{width:210px}.uychat-overlay .uychat-recording{gap:5px;padding:5px 6px}.uychat-overlay .uychat-recording button{font-size:12px;padding:7px}}

/* UX2: one rounded text + attachment field, classic messenger pattern. */
.uychat-overlay .uychat-compose-box{display:flex;align-items:center;gap:2px;flex:1;min-width:0;background:#f5f8fa;border:1px solid #d7e1e7;border-radius:24px;padding:0 5px 0 2px;overflow:hidden}
.uychat-overlay .uychat-compose-box textarea{flex:1;min-width:0;background:transparent!important;border:0!important;box-shadow:none!important;outline:0!important;order:0;min-height:42px;height:42px}
.uychat-overlay .uychat-compose-box .uychat-attach{order:0;background:transparent!important;flex:none;width:37px;height:40px}
.uychat-overlay .uychat-compose-box:focus-within{border-color:#73b3c8;box-shadow:0 0 0 2px #73b3c825}
@media(max-width:680px){.uychat-overlay .uychat-compose-row{gap:6px}.uychat-overlay .uychat-compose-box textarea{font-size:16px}}
/* UX2: visible only when Push is not registered on the authenticated device. */
.ux2-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.ux2-tools>button{min-height:40px}
.ux2-tools details{position:relative;flex:1;min-width:145px}
.ux2-tools summary{list-style:none;cursor:pointer;border:1px solid #d5e0ea;background:#fff;border-radius:10px;padding:11px 12px;color:#264864;font-weight:650}
.ux2-tools summary::-webkit-details-marker{display:none}
.ux2-tools details .toolbar{margin:6px 0;background:#f9fbfc;padding:9px;border:1px solid #dce6ec;border-radius:12px}
.ux2-push-alert{display:flex;align-items:center;gap:10px;background:#fff4dd;border:1px solid #e9b751;border-radius:13px;padding:12px 14px;margin:9px 0 15px;color:#66470c}
.ux2-push-alert>div{flex:1;min-width:0}.ux2-push-alert p{margin:4px 0 0;font-size:13px;line-height:1.4}.ux2-push-alert button{flex:none}
#push-health[hidden]{display:none!important}
.ux2-mobile-nav{display:none}
@media(max-width:700px){
 body:has(#app:not([hidden])){padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
 .ux2-mobile-nav{position:fixed;bottom:0;left:0;right:0;padding:5px 8px calc(5px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #d8e2ea;box-shadow:0 -3px 16px #18364e1c;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;z-index:650}
 .ux2-mobile-nav button{background:transparent;border:0;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:21px;min-height:48px;padding:4px 3px}
 .ux2-mobile-nav button span{font-size:11px;line-height:1.1;font-weight:650;color:#254c62}
 .ux2-mobile-nav button:focus-visible{outline:2px solid #3497c4}
 .ux2-tools{gap:7px}.ux2-tools>button{flex:0 0 auto}.ux2-tools details{min-width:125px}
 .uychat-overlay{z-index:99999}
}
/* UX2: driver-only offer panel; no impact on business logic or Android system shade. */
.ux2-offer-drawer{position:fixed;top:0;left:50%;transform:translateX(-50%);width:min(620px,100%);max-height:82dvh;overflow:auto;z-index:2000;background:#fff;color:#1d3448;border:2px solid #199568;border-top:0;border-radius:0 0 19px 19px;box-shadow:0 9px 30px #122a3a55;overscroll-behavior:contain}
.ux2-offer-drawer.is-compact{max-height:70px;overflow:hidden;border-radius:0 0 12px 12px}
.ux2-offer-grip{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 9px;min-height:54px;padding:calc(8px + env(safe-area-inset-top,0px)) 10px 8px 15px;align-items:center;touch-action:pan-x;cursor:pointer;background:#effcf6}
.ux2-offer-grip strong{font-size:14px;grid-column:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ux2-offer-grip span{font-size:12px;color:#456b5a;grid-column:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ux2-offer-grip button{grid-column:2;grid-row:1/3;min-width:42px;min-height:40px;border-radius:10px;background:#d9f1e5;padding:3px;font-size:24px;color:#174f36}
.ux2-offer-body{padding:10px 15px 15px}.ux2-offer-body[hidden]{display:none!important}
.ux2-offer-meta{line-height:1.6;font-size:13px;overflow-wrap:anywhere}
.ux2-offer-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}
.ux2-offer-actions button{min-height:47px;font-size:15px}
.ux2-offer-pages{display:flex;justify-content:space-between;align-items:center;margin:0 0 8px;font-size:12px;font-weight:650}
.ux2-offer-pages button{padding:6px 14px;min-height:32px}
.ux2-offer-tip{margin-top:9px;text-align:center;color:#547268;font-size:11px}
/* UX2: compact searchable driver journal; details use native disclosure behavior. */
.ux2-switches{margin:0 0 13px}.ux2-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ux2-history-head h1{margin:0}.ux2-history-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:7px 11px;margin:12px 0}
.ux2-history-filters label{margin:0;font-size:12px;color:#527082}.ux2-history-filters input,.ux2-history-filters select{width:100%;padding:9px;margin-top:5px;min-height:40px;font-size:14px}
.ux2-history-filters label:first-child{grid-column:span 2}
.ux2-history-summary{font-size:12px;color:#667b88;padding:8px 0}.ux2-history-empty{padding:20px;color:#697b88}
.ux2-day{background:#eaf2f9;border-radius:10px;padding:9px 12px;margin:15px 0 6px;display:flex;flex-wrap:wrap;gap:4px 8px;justify-content:space-between;align-items:center;font-size:13px;color:#214867}
.ux2-day span{font-size:11px;color:#5f7588}
.ux2-history-item{border-bottom:1px solid #e3eaf0}.ux2-history-item summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 3px}
.ux2-history-item summary::-webkit-details-marker{display:none}.ux2-history-item summary>span{min-width:0;overflow-wrap:anywhere;font-size:13px}
.ux2-history-item summary small{display:block;margin-top:5px;font-size:11px}
.ux2-history-item summary>strong{white-space:nowrap;font-size:13px}
.ux2-history-item summary:after{content:'⌄';color:#7c8e9d;font-size:20px}.ux2-history-item[open] summary:after{content:'⌃'}
.ux2-history-detail{font-size:12px;line-height:1.85;background:#f5f8fb;border-radius:9px;padding:10px 12px;margin:0 0 11px;overflow-wrap:anywhere}
@media(max-width:470px){.ux2-history-filters{grid-template-columns:1fr 1fr}.ux2-history-filters label:first-child{grid-column:span 2}.ux2-push-alert{flex-wrap:wrap}.ux2-push-alert button{margin-left:auto}}

.ux2-push-ok{display:inline-block;margin:-2px 0 10px;color:#237154;font-size:12px;font-weight:700;padding:5px 9px;background:#eaf7ef;border-radius:999px}

/* UX3 - compact messenger, accessible actions and persistent driver offer */
.uychat-overlay .uychat-window{position:relative}
.uychat-overlay .uychat-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;min-height:48px;box-sizing:border-box}
.uychat-overlay .uychat-top [data-chat-topname]{font-size:15px;flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.uychat-overlay .uychat-mobile-back{display:none}
.uychat-overlay .uychat-tools-menu{position:relative;flex:none}
.uychat-overlay .uychat-tools-menu>summary{list-style:none;display:grid;place-items:center;border:1px solid #d8e1e8;background:#f5f8fa;border-radius:11px;cursor:pointer;width:38px;height:38px;font-size:23px}
.uychat-overlay .uychat-tools-menu>summary::-webkit-details-marker{display:none}
.uychat-overlay .uychat-tools-list{position:absolute;top:calc(100% + 5px);right:0;width:min(270px,80vw);z-index:12;background:#fff;box-shadow:0 5px 30px #17354b36;border:1px solid #dae5ec;border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:5px}
.uychat-overlay .uychat-tools-list button{width:100%;border:0;background:transparent;text-align:left;font-size:14px!important;padding:10px 12px;min-height:40px;white-space:normal}
.uychat-overlay .uychat-tools-list button:hover{background:#edf5f8}
.uychat-overlay .uychat-top [data-chat-close]{flex:none;width:38px;min-width:38px;height:38px;min-height:38px;font-size:24px;border-radius:11px}
.uychat-overlay .uychat-messages{gap:6px;padding:10px 9px}
.uychat-overlay .uychat-bubble{max-width:min(510px,88%);padding:7px 10px;border-radius:14px;line-height:1.35}
.uychat-overlay .uychat-body{font-size:14px}
.uychat-overlay .uychat-day{align-self:center;border-radius:18px;padding:3px 11px;margin:8px auto 3px;color:#617a87;background:#e3edf1;font-size:11px;font-weight:700}
.uychat-overlay .uychat-msg-footer{display:flex;gap:5px;justify-content:flex-end;align-items:center;margin-top:1px}
.uychat-overlay .uychat-msg-footer small{margin:0;font-size:10px;color:#6d8190}
.uychat-overlay .uychat-msg-footer button{font-size:17px;min-height:24px;min-width:24px;background:transparent;color:#8ba3b0;border:0;padding:0;cursor:pointer}
.uychat-overlay .uychat-photo-open{margin:2px 0 0}
.uychat-overlay .uychat-photo-open img{width:auto;height:auto;max-width:min(270px,72vw);max-height:min(360px,50dvh);min-height:0;background:transparent;object-fit:contain}
.uychat-overlay .uychat-info{position:absolute;z-index:16;bottom:82px;left:12px;right:12px;width:max-content;max-width:calc(100% - 24px);border:1px solid #dae6ee;border-radius:12px;background:#f5fbffed;box-shadow:0 3px 18px #20465a24;color:#415f71;padding:6px 10px;font-size:11px;line-height:1.4;pointer-events:none;min-height:0}
.uychat-overlay .uychat-info.bad{background:#fff1ee;color:#ac3232;border-color:#f2b8aa}
.uychat-overlay .uychat-info[hidden]{display:none!important}
.uychat-overlay .uychat-voice-message{gap:8px;width:min(270px,70vw);max-width:100%;margin:0;padding:0}
.uychat-overlay .uychat-voice-message audio{display:none!important}
.uychat-overlay .uychat-voice-message button[data-chat-play]{border:0;border-radius:50%;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;background:#2399e9;color:#fff;font-size:19px;cursor:pointer}
.uychat-overlay .uychat-voice-line{display:flex;flex-direction:column;flex:1;min-width:0;gap:1px}
.uychat-overlay .uychat-voice-line input{width:100%;min-width:0;accent-color:#248fd9;margin:2px 0;min-height:24px;cursor:pointer}
.uychat-overlay .uychat-voice-line span{font-size:10px;color:#627f8d;font-variant-numeric:tabular-nums}
.uychat-actions-menu{position:absolute;inset:0;background:#0c23314d;z-index:45;display:grid;place-items:center}
.uychat-actions-card{width:min(320px,calc(100vw - 36px));padding:17px;background:#fff;border-radius:16px;display:flex;flex-direction:column;gap:9px;box-shadow:0 14px 40px #152e4140}
.uychat-actions-card>b{font-size:15px;margin-bottom:4px}
.uychat-actions-card button{padding:12px;border:0;border-radius:10px;text-align:left;background:#f1f6f9;color:#28485c;cursor:pointer}
.uychat-actions-card button.danger{background:#fff0ec;color:#b33d35}
.ux3-shift-switch{display:inline-flex!important;flex-direction:column!important;align-items:center!important;gap:2px!important;vertical-align:middle!important;border:0!important;background:transparent!important;color:#637a89!important;padding:0 6px 0 0!important;min-height:31px!important;cursor:pointer!important}
.ux3-shift-switch .ux3-shift-track{position:relative;width:44px;height:24px;border-radius:99px;background:#a5aab0;display:block;transition:background .17s}
.ux3-shift-switch.is-on .ux3-shift-track{background:#f5b400}
.ux3-shift-switch .ux3-shift-track i{position:absolute;left:3px;top:3px;background:white;width:18px;height:18px;border-radius:50%;box-shadow:0 1px 2px #0002;transition:transform .17s}
.ux3-shift-switch.is-on .ux3-shift-track i{transform:translateX(20px)}
.ux3-shift-switch .ux3-shift-label{font-size:9px;font-weight:700;color:#7b858c;white-space:nowrap;line-height:1.1}
.ux3-shift-switch.is-on .ux3-shift-label{color:#b28000}
.driver-duty-line{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
/* The offer stays visible above conversation overlay while user reads chat. */
body.ux3-has-offer .ux2-offer-drawer{z-index:100020}
body.ux3-has-offer:has(#uy34-chat-overlay) .ux2-offer-drawer:not(.is-compact){z-index:100020}
/* JS visualViewport positions chat below the global offer, including keyboard height. */
.ux3-offer-handle{touch-action:none;user-select:none;-webkit-user-select:none;min-height:45px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;cursor:ns-resize;color:#698278;border-radius:12px;background:#f1f9f4;margin:8px -4px 0}
.ux3-offer-handle span{font-weight:800;letter-spacing:5px;font-size:17px;line-height:1}
.ux3-offer-handle small{font-size:11px;letter-spacing:0;text-align:center}
.ux2-offer-grip{touch-action:none}
@media(max-width:680px){
 .uychat-overlay .uychat-conversation-head{display:none}
 .uychat-overlay .uychat-mobile-back:not([hidden]){display:inline-grid!important;place-items:center;border:0;background:transparent;font-size:23px;min-width:34px;height:37px;padding:0}
 .uychat-overlay .uychat-top{padding:6px 10px;min-height:45px}
 .uychat-overlay .uychat-bubble{max-width:91%}
 .uychat-overlay .uychat-msg-footer button{font-size:19px;min-width:28px;min-height:28px}
 .uychat-overlay .uychat-info{bottom:72px}
}

/* UX3: mobile uses the persistent bottom navigation instead of duplicate top Chat */
@media(max-width:700px){.ux2-tools > button[data-act="chat_open"]{display:none!important}}

/* UX3: working-time planning, compact and touch-friendly */
.ux3-weekdays{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0 14px}
.ux3-weekdays label{display:inline-flex;align-items:center;gap:4px;background:#eff3f7;border:1px solid #d7e0e8;border-radius:9px;padding:7px 9px;margin:0;font-size:.83rem;cursor:pointer}
.ux3-weekdays input{width:16px;height:16px;margin:0;accent-color:#dba900}
.ux3-shift-driver,.ux3-driver-shift{border:1px solid #dce5ed;border-radius:11px;padding:10px;margin:9px 0;background:#fafcff}
.ux3-shift-driver>summary,.ux3-driver-shift>summary{cursor:pointer;font-weight:700;color:#244359}
.ux3-shift-fields,.ux3-my-shift{padding-top:10px;max-width:560px}
.ux3-shift-fields .split,.ux3-my-shift .split{max-width:400px}
@media(max-width:480px){.ux3-weekdays label{padding:8px 7px}.ux3-driver-shift{width:100%}}

/* UX3 scheduled driver shifts */
.ux3-shift-alert {margin:12px 0;padding:12px;border:1px solid #E2AC37;border-radius:12px;background:#FFF4CE;color:#613E00;}
.ux3-shift-alert p {margin:6px 0 10px;}

/* UX3 Chat Profiles: compact Telegram-inspired conversation list, safe personal styles. */
.uychat-overlay{--uychat-incoming:#ffffff;--uychat-outgoing:#ddf5e8;--uychat-background:#f4f8fb;--uychat-font:system-ui,sans-serif;--uychat-text-size:14px;font-family:var(--uychat-font)}
.uychat-overlay .uychat-messages{background:var(--uychat-background)!important}
.uychat-overlay .uychat-msg.their .uychat-bubble{background:var(--uychat-incoming)!important}
.uychat-overlay .uychat-msg.mine .uychat-bubble{background:var(--uychat-outgoing)!important}
.uychat-overlay .uychat-body{font-family:var(--uychat-font);font-size:var(--uychat-text-size)!important}
.uychat-overlay.uychat-is-night .uychat-msg .uychat-bubble,.uychat-overlay.uychat-is-night .uychat-body{color:#f1f6f8!important}
.uychat-overlay.uychat-is-night .uychat-msg-footer small{color:#c1d3db!important}
.uychat-overlay .uychat-contacts-title{padding:9px 10px;background:#fff;border-bottom:1px solid #e5edf2}
.uychat-overlay .uychat-contacts-title input{width:100%;border:1px solid #dae5ed;border-radius:11px;background:#f1f5f8;padding:9px 12px;min-height:40px;font-size:14px;color:#17344d}
.uychat-overlay .uychat-person{display:flex;flex-direction:row;align-items:center;gap:11px;text-align:left;min-height:71px;padding:9px 12px;border-bottom:1px solid #e6edf3}
.uychat-overlay .uychat-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#d9e9f7;color:#315874;font-size:15px;font-weight:750;overflow:hidden;user-select:none}
.uychat-overlay .uychat-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.uychat-overlay .uychat-peer-text{flex:1;min-width:0;display:grid;gap:4px}
.uychat-overlay .uychat-peer-title,.uychat-overlay .uychat-peer-bottom{display:flex;align-items:center;gap:7px;min-width:0;justify-content:space-between}
.uychat-overlay .uychat-person b{font-size:15px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uychat-overlay .uychat-person time{color:#6b8394;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.uychat-overlay .uychat-person small{font-size:13px;flex:1;min-width:0;max-width:none;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.uychat-overlay .uychat-count{position:static;flex:none;border-radius:18px;background:#2597df;color:#fff;line-height:17px;min-width:20px;text-align:center;padding:1px 6px;font-size:12px}
.uychat-preferences{position:absolute;inset:0;z-index:48;background:#10283e9c;display:flex;align-items:center;justify-content:center;padding:12px}
.uychat-prefs-card{background:#fff;color:#1e3648;width:min(490px,100%);max-height:94%;overflow:auto;padding:18px;border-radius:16px;box-shadow:0 18px 50px #10273842}
.uychat-prefs-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.uychat-prefs-head b{font-size:17px}.uychat-prefs-head button{font-size:23px;border:0;background:#edf2f7;padding:2px 10px;border-radius:9px}
.uychat-avatar-controls{display:flex;align-items:center;gap:15px;padding:8px 0 12px}
.uychat-avatar-controls .uychat-own-avatar{width:72px;height:72px;flex-basis:72px}
.uychat-avatar-controls>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.uychat-choose-avatar,.uychat-avatar-controls button{display:inline-flex;align-items:center;background:#eaf2f8;padding:7px 10px;border:1px solid #d1e2ec;border-radius:9px;cursor:pointer;font-size:12px;margin:0}
.uychat-help{display:block;color:#738797;margin-bottom:12px}
.uychat-theme-fields{display:grid;gap:12px}
.uychat-theme-fields>label{display:grid;gap:5px;font-size:13px;font-weight:650}
.uychat-theme-fields select{width:100%;min-height:40px;border:1px solid #c9d8e2;border-radius:9px;background:#fff;color:#203746;padding:5px 9px}
.uychat-theme-fields input[type=range]{width:100%}
.uychat-theme-colors{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.uychat-theme-colors label{display:grid;gap:5px;font-size:11px;text-align:center;color:#4f6b80}
.uychat-theme-colors input{width:100%;min-height:38px;padding:3px;border:1px solid #d6e1e9;border-radius:7px}
.uychat-theme-preview{background:#f4f8fb;padding:14px;border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.uychat-theme-preview span{padding:7px 11px;border-radius:10px;background:#fff;max-width:90%;color:#263e4b}
.uychat-theme-preview span+span{align-self:flex-end;background:#ddf5e8}
.uychat-prefs-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.uychat-prefs-actions button{font-size:13px;min-height:41px;border-radius:9px}
.uychat-code{overflow:hidden;border-radius:10px;background:#1d2936;color:#e6eef7;margin:7px 0;max-width:100%;border:1px solid #364d5e}
.uychat-code-head{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;background:#334557;color:#dbe9f6;font-size:11px;gap:10px}
.uychat-code-head button{border:1px solid #6b8299;background:#40566a;border-radius:7px;padding:5px 8px;color:#fff;cursor:pointer}
.uychat-code pre{margin:0;padding:10px 12px;overflow-x:auto;white-space:pre;max-width:100%;font-size:12px;line-height:1.5;tab-size:2}
.uychat-code code{font-family:ui-monospace,SFMono-Regular,Consolas,Monaco,monospace;white-space:pre}
@media(max-width:680px){.uychat-overlay .uychat-person{min-height:72px}.uychat-overlay .uychat-avatar{width:46px;height:46px;flex-basis:46px}.uychat-prefs-card{padding:14px}}

.uychat-overlay .uychat-msg.their .uychat-bubble{color:var(--uychat-incoming-text,#17344d)!important}
.uychat-overlay .uychat-msg.mine .uychat-bubble{color:var(--uychat-outgoing-text,#17344d)!important}
.uychat-overlay.uychat-is-night .uychat-msg .uychat-bubble,.uychat-overlay.uychat-is-night .uychat-body{color:inherit!important}
.uychat-overlay .uychat-msg.their .uychat-body{color:var(--uychat-incoming-text,#17344d)!important}
.uychat-overlay .uychat-msg.mine .uychat-body{color:var(--uychat-outgoing-text,#17344d)!important}
.uychat-overlay [data-chat-head-avatar] .uychat-avatar{width:32px;height:32px;flex-basis:32px;font-size:10px}
.uychat-code-keyword{color:#be9df6}.uychat-code-string{color:#a4d99e}.uychat-code-var{color:#f4bb85}

.uychat-overlay [data-chat-top-avatar] .uychat-avatar{width:31px;height:31px;flex-basis:31px;font-size:10px}
.uychat-overlay [data-chat-top-avatar]:empty{display:none}

/* UX3 Consolidated: user-visible mute state, calm color selector, Android selection. */
.uychat-overlay .uychat-muted-indicator{flex:none;display:inline-grid;place-items:center;color:#bb3a3a;background:#fff0ef;border:1px solid #e4b1ae;border-radius:10px;width:34px;min-width:34px;height:36px;padding:0;font-size:20px;cursor:pointer}
.uychat-overlay .uychat-muted-indicator[hidden]{display:none!important}
.uychat-theme-colors{grid-template-columns:repeat(3,minmax(0,1fr))}
.uychat-color-editor{min-width:0;display:grid;align-content:start;gap:7px;padding:7px;border:1px solid #dce5ed;border-radius:11px}
.uychat-color-editor>b{font-size:12px;color:#364d5d;text-align:center}
.uychat-swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.uychat-swatches button{display:block;aspect-ratio:1;min-height:20px;padding:0;border:1px solid #8fa2b1;border-radius:7px;cursor:pointer;box-shadow:0 1px 1px #00000014}
.uychat-swatches button.selected{outline:2px solid #167bd8;outline-offset:1px}
.uychat-color-editor label{display:grid;gap:4px;font-size:11px;color:#506879}
.uychat-color-editor input[type=text]{width:100%;font-family:monospace;text-transform:lowercase;min-height:31px;padding:4px;border:1px solid #cddce6;border-radius:6px;font-size:12px}
.uychat-custom-color summary{font-size:11px;cursor:pointer;color:#145989;font-weight:700}
.uychat-custom-color label{margin:5px 0;font-size:10px;text-align:left}
.uychat-custom-color input[type=range]{margin:2px 0;height:20px;min-height:20px}
.uychat-overlay .uychat-body{-webkit-user-select:text;user-select:text}
.uychat-overlay .uychat-msg-footer button{touch-action:manipulation}
.uychat-arrival{z-index:100040!important;bottom:max(12px,env(safe-area-inset-bottom,0px))!important;pointer-events:auto}
.uychat-overlay .uychat-theme-preview span{color:#162d3f}
@media(max-width:680px){.uychat-theme-colors{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.uychat-color-editor{padding:4px;gap:4px}.uychat-swatches{gap:4px}.uychat-color-editor input[type=text]{font-size:10px;padding:3px}}

/* UX3 consolidated: status toasts never move the dispatcher page; driver permission. */
#toast:not(:empty){position:fixed;z-index:100050;left:50%;bottom:calc(80px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:max-content;max-width:min(92vw,550px);margin:0!important;padding:10px 14px;box-shadow:0 10px 30px #1b365040}
.ux3-duty-permission{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:6px 0}
.ux3-duty-permission label{display:inline-flex;align-items:center;gap:7px;margin:0;font-size:12px;color:#425e72;cursor:pointer}
.ux3-duty-permission input{width:16px;height:16px;margin:0;flex:none}
.ux3-duty-permission small{color:#a65920;font-size:11px}
.ux3-deadline-fields input{min-width:0}
@media(max-width:490px){.ux3-deadline-fields{grid-template-columns:1fr}}

/* Uyut34 v0.1.9.3: one-time driver invitations */
.uy34-invite-inline{margin:8px 0;display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.uy34-invite-sheet{max-width:490px}.uy34-invite-content{padding:18px 23px 23px;overflow:auto}
.uy34-invite-qr{display:flex;justify-content:center;margin-bottom:16px}
.uy34-invite-qr svg{max-width:75vw;max-height:240px;background:#fff;padding:6px;border:1px solid #e0e5ec;border-radius:9px}
.uy34-invite-content input{font-size:.82rem;overflow-wrap:anywhere}
.uy34-legacy-driver{margin-top:20px;padding:13px;border:1px solid #d5dce7;border-radius:10px}
.uy34-legacy-driver summary{cursor:pointer;font-weight:650}

/* Developer read-only diagnostics console (admin only). */
.developer-console{display:grid;gap:15px;min-width:0}
.developer-console .dev-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:15px 0 10px}
.developer-console .dev-filters label{display:grid;gap:4px;flex:1 1 165px;min-width:130px;font-size:12px;color:#3e5569}
.developer-console .dev-filters input,.developer-console .dev-filters select{min-height:40px;width:100%}
.developer-console .dev-filters button{min-height:40px}
.developer-console .dev-source{min-width:0;overflow-wrap:anywhere}
.developer-console .dev-source h3{display:flex;align-items:center;gap:12px}
.developer-console .dev-count{font-size:13px;border-radius:14px;background:#e5eff8;color:#2c5876;padding:2px 8px}
.developer-console details{margin:5px 0;border:1px solid #d4e3ee;border-radius:9px;overflow:hidden}
.developer-console details summary{padding:9px 12px;cursor:pointer;font-size:13px;font-weight:550}
.developer-console details[open] summary{background:#eaf2f9}
.developer-console details pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;background:#172938;color:#eaf4fa;margin:0;padding:12px;max-height:320px;overflow:auto}
.developer-console .dev-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:9px;margin:12px 0}
.developer-console .dev-stat-grid>div{border:1px solid #dbe6ef;background:#f5f9fc;padding:9px 12px;border-radius:10px;display:grid;gap:2px}
.developer-console .dev-stat-grid small{font-size:11px;color:#5b7488}
.developer-console .dev-stat-grid strong{font-size:19px;color:#234a65}
.developer-console .dev-info{display:grid;grid-template-columns:minmax(115px,180px) minmax(0,1fr);gap:6px 12px;font-size:12px;margin:10px 0}
.developer-console .dev-info dt{font-weight:700;color:#546e81}
.developer-console .dev-info dd{margin:0;overflow-wrap:anywhere}
@media(max-width:620px){.developer-console .dev-info{grid-template-columns:1fr}.developer-console .dev-info dt{padding-top:7px}.developer-console .dev-filters button{flex:1 1 120px}}

/* v0.1.9.11 — compact collapsible source groups inside Developer diagnostics. */
.developer-console details.dev-group{margin:0;border:0;border-radius:0;overflow:visible}
.developer-console details.dev-group>summary.dev-group-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:40px;padding:2px 0;font-size:15px;font-weight:650;list-style:none;background:transparent;cursor:pointer}
.developer-console details.dev-group>summary.dev-group-summary::-webkit-details-marker{display:none}
.developer-console details.dev-group>summary.dev-group-summary:focus-visible{outline:2px solid #2572ba;outline-offset:4px;border-radius:5px}
.developer-console .dev-group-title{display:inline-flex;align-items:center;gap:10px;flex:1 1 180px;min-width:0;overflow-wrap:anywhere}
.developer-console .dev-group-status{font-size:12px;font-weight:500;color:#657889;flex:0 1 auto}
.developer-console .dev-group-action{color:#24658f;font-size:12px;font-weight:650;white-space:nowrap;display:flex;align-items:center;gap:5px}
.developer-console .dev-hide-label{display:none}
.developer-console details.dev-group[open] .dev-show-label{display:none}
.developer-console details.dev-group[open] .dev-hide-label{display:inline}
.developer-console details.dev-group[open] .dev-group-action>span[aria-hidden]{transform:rotate(180deg)}
.developer-console .dev-group-body{border-top:1px solid #dbe5ed;margin-top:9px;padding-top:9px}
.developer-console .dev-group-body>p.meta{margin:4px 0 9px}
@media(max-width:620px){.developer-console .dev-group-status{order:3;flex-basis:100%;margin-top:-8px}.developer-console .dev-group-action{margin-left:auto}}

/* v0.1.9.13 RC1: explicit sorting and successful reopening focus */
.delivery-sort-control{display:flex;align-items:center;gap:.5rem;margin:.6rem 0 1rem;color:var(--muted,#667);font-size:.9rem}.delivery-sort-control select{max-width:240px;padding:.45rem;border-radius:8px}.rc1-reopened-highlight{outline:3px solid #e9b53b;outline-offset:3px;transition:outline-color .8s}.terms-form [hidden]{display:none!important}

/* RC1 dispatcher view of private instructions (never shown to offer candidates) */
.private-driver-instructions{background:#fff7d9;border-left:5px solid #e4a438;border-radius:7px;padding:10px 13px;white-space:pre-wrap;overflow-wrap:anywhere;color:#3d351b;font-weight:650}

/* RC1 project index */
.project-item,.project-index-row{margin:10px 0;padding:12px;border:1px solid #dce5ef;border-radius:10px;overflow-wrap:anywhere}.project-item summary,.project-index-row summary{cursor:pointer;line-height:1.4}.project-index-row pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto;background:#f4f6f8;border-radius:9px;padding:12px;font-size:12px}


/* Uyut34 v0.1.9.14 RC5 — suggestions, dispatcher only. */
.uy34-dadata-field{position:relative;z-index:5;min-width:0}
.uy34-dadata-field label{margin-bottom:0}
.uy34-dadata-results[hidden],.uy34-dadata-status[hidden]{display:none!important}
.uy34-dadata-results{position:relative;margin-top:3px;background:#fff;border:2px solid #558db3;box-shadow:0 8px 25px rgba(30,58,86,.16);border-radius:12px;max-height:270px;overflow-y:auto;overscroll-behavior:contain;z-index:9}
.uy34-dadata-option{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;text-align:left;background:#fff;color:#1c3045;border:none;border-bottom:1px solid #e1eaf0;border-radius:0;padding:11px 13px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.uy34-dadata-option:last-child{border-bottom:0}
.uy34-dadata-option:hover,.uy34-dadata-option.is-active{background:#e6f3fd}
.uy34-dadata-option strong{font-size:15px;line-height:1.4}
.uy34-dadata-option small{color:#64788a;font-size:12px}
.uy34-dadata-status{font-weight:500;font-size:12px;line-height:1.4;color:#516b83;margin:5px 0 9px}
.uy34-dadata-status.uy34-dadata-warning{color:#a44220}
@media(max-width:420px){.uy34-dadata-option{padding:12px 10px}.uy34-dadata-results{max-height:230px}}

/* RC6: expired time fields in the atomic reopening editor. */
#reopenDelivery .uy34-expired-time{border:3px solid #c93931!important;background:#fff1ef!important;}
#reopenDelivery .uy34-reopen-warning{border:2px solid #c93931;color:#972b27;background:#fff0ed;
  border-radius:11px;padding:12px 14px;font-size:15px;font-weight:700;margin:13px 0;}
#reopenDelivery .uy34-reopen-warning[hidden]{display:none}
#reopenDelivery button[type=submit]:disabled{opacity:.55;cursor:not-allowed}

/* v0.1.9.15 RC1 — dispatcher always-visible map affordance */
.ux7-dispatch-map a{color:#1662a8;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;line-height:1.6;font-weight:650}
.ux7-dispatch-map a:hover,.ux7-dispatch-map a:focus-visible{color:#0c3e72;background:#eaf5ff}

/* UX12: customer full width, both phone inputs aligned in the same row. */
.ux12-customer-row{display:block;width:100%;min-width:0}
.ux12-phone-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:end}
.ux12-phone-row>label{min-width:0;width:100%}
.ux12-phone-row input{min-width:0;width:100%;max-width:100%;box-sizing:border-box;font-size:clamp(12px,3.4vw,16px)}
