/* Scoped to the new live operations only. */
#v217Operations,#v217Team{--navy:#12233e;--gold:#ffda4a;box-sizing:border-box;color:var(--navy);font-family:Arial,sans-serif;border:1px solid #d7e0ec;border-radius:22px;padding:24px;background:#f6f8fb;max-height:94dvh;overflow:auto;width:min(96vw,1000px)}
#v217Operations *,#v217Team *{box-sizing:border-box}#v217Operations::backdrop,#v217Team::backdrop{background:#12233e70}#v217Operations button,#v217Operations a,#v217Team button{font:600 14px/1.35 Arial,sans-serif;cursor:pointer;color:var(--navy)}#v217Operations button,#v217Team button{border:1px solid #c4d0e1;border-radius:10px;background:white;min-height:42px;padding:10px 13px}#v217Operations button:disabled,#v217Team button:disabled{opacity:.5;cursor:default}#v217Operations button:focus-visible,#v217Operations a:focus-visible,#v217Team button:focus-visible,#v217Team input:focus-visible{outline:3px solid #176ad6;outline-offset:2px}#v217Operations svg,#v217Team svg{flex-shrink:0;vertical-align:middle}#v217Operations .gold,#v217Team .gold{background:linear-gradient(115deg,#ffde58,#ffd13f);border-color:#f0c735;color:#0c1a30}.op-top{display:flex;justify-content:space-between;gap:12px;margin-bottom:20px}.op-top button{display:flex;align-items:center;gap:7px}.op-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:20px}.op-heading h2{font-size:30px;letter-spacing:-.7px;margin:0 0 8px}.op-heading p{font-size:14px;color:#5f6e85;margin:0;line-height:1.6}.op-live{font-size:10px;font-weight:700;letter-spacing:1px;color:#326348;border-radius:6px;background:#e5f3eb;padding:6px 8px}.op-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}#v217Operations .op-counts button{display:flex;align-items:center;gap:12px;text-align:left;padding:16px 12px;border-color:#e1e6ef;box-shadow:0 3px 10px #14253b06}.op-counts button>span{width:44px;height:44px;border-radius:50%;display:grid;place-items:center}.op-counts button>div{font-size:12px}.op-counts strong{display:block;font-size:27px;margin-top:4px}.op-counts .op-pickup{color:#0757bf!important}.op-counts .op-pickup>span{background:#e6f1ff}.op-counts .op-return{color:#08734c!important}.op-counts .op-return>span{background:#e3f6eb}.op-counts .op-overdue{color:#c72f40!important}.op-counts .op-overdue>span{background:#ffe9ed}.op-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:5px;background:#edf1f6;border:1px solid #dbe2ec;border-radius:12px;margin-bottom:18px}#v217Operations .op-tabs button,#v217Team .op-tabs button{border:0;background:transparent;font-weight:500}#v217Operations .op-tabs [aria-pressed=true],#v217Team .op-tabs [aria-pressed=true]{background:var(--gold);font-weight:700;box-shadow:0 1px 4px #13213b10}.op-list{display:grid;grid-template-columns:1fr 1fr;gap:18px}.op-card{background:white;border:1px solid #dce5f0;border-radius:16px;overflow:hidden;box-shadow:0 3px 10px #12233e08;min-width:0}.op-card>header{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#e8f2ff;color:#095cc4;padding:13px 15px;font-size:12px}.op-card>header strong{display:flex;align-items:center;gap:8px}.op-card>header>span{white-space:nowrap;font-weight:600}.op-card.op-return>header{background:#e3f7eb;color:#087847}.op-card.op-overdue>header{background:#fff0f2;color:#bf293d}.op-vehicle{display:grid;grid-template-columns:42% 1fr;align-items:center;gap:10px;padding:18px 14px 14px}.op-vehicle img{width:100%;height:130px;object-fit:contain;mix-blend-mode:multiply}.op-vehicle h3{font-size:18px;line-height:1.4;margin:0 0 9px;overflow-wrap:anywhere}.op-vehicle p{display:flex;align-items:flex-start;gap:7px;font-size:13px;margin:8px 0;color:#42506a;line-height:1.45;overflow-wrap:anywhere}.op-vehicle p svg{margin-top:1px}.op-status{display:inline-block;font-size:11px;color:#0757bf;background:#eaf3ff;border-radius:7px;padding:5px 7px;line-height:1.5}.op-return .op-status{background:#e6f7ed;color:#0b7849}.op-overdue .op-status{background:#ffe4e9;color:#bf293d}.op-no-photo{font-size:12px;color:#68778c}.op-team{margin:0 14px;display:flex;gap:10px;align-items:center;background:#f4f7fb;border-radius:10px;padding:12px}.op-avatar{width:42px;height:42px;border-radius:50%;background:#142b48;color:white;display:grid;place-items:center;flex-shrink:0;font-weight:700;font-size:15px}.op-avatar.unassigned{background:#ffda4a;color:#132540}.op-team>div{flex:1;min-width:0}.op-team small{font-size:11px;color:#66758c;display:block;margin-bottom:4px}.op-team strong{font-size:13px;display:block;overflow-wrap:anywhere}#v217Operations .op-team button{min-height:36px;font-size:11px;padding:8px;color:#0964cc;border-color:#c2d6ef}#v217Operations .op-team button.gold{color:#17253b;border-color:#efc82f}.op-actions{display:grid;grid-template-columns:1fr 1.25fr 1.45fr;gap:7px;padding:14px}.op-actions>a,.op-actions>button{border:1px solid #172a48;border-radius:9px;background:white;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px!important;min-height:42px;padding:8px 5px!important}.op-actions>a.gold{border-color:#edc52d}.op-trip{margin:0 14px 14px;border-top:1px solid #e7ecf3;padding-top:10px;font-size:11px;color:#617189}.op-trip summary{cursor:pointer}.op-trip p{font-size:12px;line-height:1.6;color:#42536a}.op-card-warning{display:flex;gap:7px;font-size:11px;color:#995b00;background:#fff3da;margin:10px 14px 0;padding:9px;border-radius:8px}.op-checked,.op-foot{font-size:12px;color:#6c7a90;line-height:1.6;margin:18px 0 0}.op-empty{grid-column:1/-1;padding:24px 12px;text-align:center;color:#66748c;font-size:14px;line-height:1.6}.op-error{background:#fff0f2;color:#a62d40;border:1px solid #efc9cf;padding:13px;border-radius:10px;font-size:13px;line-height:1.6}.op-notice{background:#e6f6ec;padding:12px;border-radius:10px;color:#176541;font-size:13px}.op-filter-note{font-size:13px;color:#66758a}#v217Operations .op-demo{margin-top:20px;border:0;background:transparent;color:#64748b;font-size:12px;padding-left:0}.op-contact-form{margin:0 14px 14px;padding:14px;border:1px solid #cfdaea;border-radius:10px;font-size:13px}.op-contact-form p{font-size:12px;line-height:1.6}.op-contact-form input{display:block;border:1px solid #b9c7db;border-radius:7px;width:100%;padding:10px;font-size:16px;margin-bottom:10px}
#v217Team{position:fixed;width:min(94vw,510px);padding:28px;background:white;border-radius:24px;max-height:92dvh}#v217Team h2{font-size:28px;letter-spacing:-.5px;margin:8px 36px 8px 0}#v217Team .op-modal-close{position:absolute;right:18px;top:18px;border:0;font-size:27px;color:#62718b;background:transparent}.op-modal-ref{font-size:14px;color:#65738a;line-height:1.5;margin:0 0 18px}.op-context{display:flex;gap:12px;align-items:center;background:#e9f3ff;color:#075abe;border-radius:11px;padding:15px;margin-bottom:20px;font-size:14px}.op-context.op-return{background:#e4f7ec;color:#14774c}.op-context p{font-size:12px;margin:8px 0 0;color:#65768f}#v217Team .op-tabs{grid-template-columns:1fr 1fr}.op-search{display:flex;align-items:center;gap:10px;border:1px solid #d4dce8;background:#f7f9fb;border-radius:10px;padding:0 12px;margin:16px 0}.op-search input{font:16px Arial;border:0;min-height:46px;background:transparent;color:#243852;width:100%;min-width:0;outline:none}.op-staff-list{display:grid;gap:12px;max-height:320px;overflow:auto;margin-bottom:16px}.op-staff-option{display:flex;align-items:center;gap:12px;border:1px solid #d8e1ed;border-radius:11px;padding:14px;cursor:pointer}.op-staff-option>div{flex:1;min-width:0}.op-staff-option strong{display:block;font-size:15px;overflow-wrap:anywhere}.op-staff-option small{display:block;font-size:12px;margin-top:7px}.op-staff-option .available{color:#098343}.op-staff-option .conflict{color:#b66c00}.op-staff-option p{font-size:11px;line-height:1.6;color:#64748a;margin:7px 0 0}.op-staff-option input{accent-color:#172c4a;width:19px;height:19px;flex-shrink:0}.op-conflict:not(:empty){display:flex;align-items:center;gap:10px;background:#fff3da;border:1px solid #f5d696;border-radius:9px;padding:13px;font-size:12px;line-height:1.6;color:#a65a00;margin-bottom:13px}.op-allow-conflict{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6;color:#8d5e12;margin-bottom:16px}.op-allow-conflict[hidden]{display:none!important}.op-save-status{font-size:12px;line-height:1.6;color:#9e3944;white-space:pre-wrap}#v217Team .op-save,#v217Team .op-cancel{display:block;width:100%;margin-top:10px;font-size:15px;min-height:48px}#v217Team .op-remove{display:block;margin:14px auto;color:#a43c46;border:0;font-size:12px}.op-add{margin-top:20px;font-size:12px;color:#566881}.op-add summary{cursor:pointer}.op-add form{padding:14px 0}.op-add label{font-size:13px}.op-add input{display:block;width:100%;font-size:16px;border:1px solid #c1cfe0;padding:11px;border-radius:8px;margin:9px 0}.op-add p{font-size:12px;line-height:1.5}.op-contact-slot:empty{display:none}
@media(max-width:650px){#v217Operations{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border:0;border-radius:0;padding:18px 12px max(24px,env(safe-area-inset-bottom));margin:0}#v217Operations .op-heading h2{font-size:27px}.op-heading p{font-size:12px}.op-list{grid-template-columns:1fr;gap:16px}.op-counts{gap:7px}.op-counts button>span{width:35px;height:35px}.op-counts strong{font-size:25px}#v217Operations .op-counts button{gap:7px;padding:13px 8px}.op-counts button>div{font-size:11px}.op-vehicle{grid-template-columns:43% 1fr;padding:14px 12px}.op-vehicle h3{font-size:17px}.op-vehicle p{font-size:12px}.op-vehicle img{height:125px}.op-team{margin:0 12px;padding:10px;gap:8px}.op-team .op-avatar{width:37px;height:37px;font-size:13px}.op-team strong{font-size:12px}.op-team small{font-size:10px}.op-actions{padding:12px;gap:6px}.op-card>header{font-size:11px;padding:12px}.op-card>header svg{width:18px;height:18px}.op-top{margin-bottom:17px}#v217Team{padding:24px 18px;border-radius:20px}.op-staff-option{padding:12px 10px}.op-staff-option strong{font-size:14px}}
.op-brand{display:flex;align-items:center;justify-content:space-between;background:#102039;border-radius:12px;padding:10px 14px;margin:-10px -10px 20px;min-height:80px}.op-brand img{width:155px;height:65px;object-fit:contain}#v217Operations .op-brand button{background:transparent;color:white;border:0;font-size:24px}.op-bottom{display:flex;justify-content:space-around;border-top:1px solid #dce4ef;background:white;margin:20px -12px -24px;padding:10px 4px max(14px,env(safe-area-inset-bottom));gap:4px}#v217Operations .op-bottom button{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;font-size:10px;background:transparent;padding:8px 4px;min-width:52px}.op-bottom button:first-child{color:#a77c00!important}.op-bottom svg{margin-bottom:2px}@media(max-width:650px){.op-brand{margin:-18px -12px 18px;border-radius:0;padding:12px 18px;min-height:90px}.op-bottom{margin-bottom:-24px}}

.op-card.op-pickup>header{background:#147dea;color:white}.op-card.op-return>header{background:#0ba64e;color:white}
.op-signin{max-width:430px;margin:24px auto 38px;padding:28px 24px;text-align:center;border:1px solid #dbe3ed;border-radius:18px;background:white;box-shadow:0 4px 16px #13233c07}.op-signin-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;margin:0 auto 18px;background:#fff4c4;color:#172b46}.op-signin h3{font-size:21px;line-height:1.4;margin:0 0 12px}.op-signin p{font-size:14px;color:#65748b;line-height:1.6}.op-signin small{display:block;font-size:12px;color:#728096;line-height:1.65;margin-top:18px}#v217Operations .op-signin>button,#v217Operations .op-signin form button{width:100%;min-height:48px;font-size:16px;margin-top:10px}.op-signin form{text-align:left;margin-top:22px}.op-signin form label{display:block;font-size:13px;font-weight:600;margin-top:16px}.op-signin form input{display:block;width:100%;border:1px solid #becde0;border-radius:9px;padding:13px;margin-top:8px;background:white;color:#182b45;font:16px Arial}.op-signin [role=status]{font-size:13px;color:#9e3944}
/* V219 Team tab: scoped summary using the same live assignments. */
.team219-panel{background:white;border:1px solid #dbe3ed;border-radius:18px;padding:18px;box-shadow:0 3px 12px #13243c06;margin:8px 0 10px}.team219-panel>header{display:flex;align-items:center;gap:12px;margin-bottom:15px}.team219-panel>header>span{display:grid;place-items:center;width:50px;height:50px;border-radius:13px;background:#fff0b7;color:#17314d}.team219-panel h3{font-size:22px;margin:0 0 7px;letter-spacing:-.3px}.team219-panel header p{font-size:13px;line-height:1.5;color:#69788d;margin:0}.team219-rows{border:1px solid #e1e7f0;border-radius:13px;overflow:hidden}#v217Operations .team219-row{display:flex;align-items:center;gap:12px;width:100%;padding:15px 12px;border:0;border-radius:0;text-align:left;background:white;border-bottom:1px solid #e4eaf2;font-weight:400}#v217Operations .team219-row:last-child{border-bottom:0}#v217Operations .team219-row[aria-pressed=true]{background:#f4f7fc;box-shadow:inset 3px 0 #e7bc28}.team219-name{flex:1;min-width:0}.team219-name strong{font-size:15px;line-height:1.45;display:block;overflow-wrap:anywhere}.team219-name small{display:block;color:#6a778c;font-size:12px;margin-top:4px;line-height:1.6}.team219-total{color:white;background:#142c48;border-radius:20px;padding:6px 11px;font-size:12px;font-weight:700;white-space:nowrap}.team219-unassigned .team219-total{background:#ffda4a;color:#14243b}.team219-clear{font-size:12px;color:#6d7a8e;margin:14px 0 0;line-height:1.6}#v217Operations .team219-conflicts{width:100%;display:flex;align-items:center;gap:8px;padding:12px;margin-top:12px;background:#fff5db;border:0;color:#966500;font-size:13px;text-align:left}#v217Operations .team219-conflicts>span{margin-left:auto;color:#0764c9;font-weight:700}.team219-hint{font-size:12px;line-height:1.6;color:#728098;margin:10px 0 16px}.team219-tabs{display:flex;padding:5px;gap:4px;border:1px solid #dce4ee;background:#f0f3f7;border-radius:12px;overflow-x:auto;margin:17px 0 12px}#v217Operations .team219-tabs button{flex:1;flex-shrink:0;border:0;background:transparent;white-space:nowrap;min-width:80px;font-size:13px;font-weight:400}#v217Operations .team219-tabs [aria-pressed=true]{background:#ffda4a;font-weight:700}.team219-jobs{font-size:23px;margin:20px 0 13px;overflow-wrap:anywhere}.team219-manage{font-size:13px;color:#596e8a;margin:14px 0 18px}.team219-manage summary{cursor:pointer}.team219-manage form{padding:14px;border:1px solid #dbe3ef;background:white;border-radius:12px;margin-top:10px}.team219-manage label{font-size:13px;font-weight:600}.team219-manage input{width:100%;display:block;font:16px Arial;padding:12px;border-radius:8px;border:1px solid #bdcde0;margin:9px 0}.team219-manage [role=status]{font-size:12px;color:#9b3b48}.team219-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px}#v217Operations .team219-links button{border:0;background:transparent;color:#245f9d;padding-left:0;font-size:13px}#v217Operations .op-bottom button[aria-current=page]{color:#a77c00!important;background:#fffae6}#v217Operations .op-bottom button:not([aria-current=page]){color:#263b58!important;background:white}@media(max-width:650px){.team219-panel{padding:14px 10px}.team219-panel h3{font-size:20px}.team219-panel header p{font-size:12px}#v217Operations .team219-row{gap:8px;padding:13px 9px}.team219-row .op-avatar{width:38px;height:38px;font-size:13px}.team219-name strong{font-size:14px}.team219-name small{font-size:11px}.team219-total{font-size:11px;padding:6px 9px}.team219-conflicts strong{font-size:12px}.team219-panel>header>span{width:44px;height:44px}}
#v217Operations .team219-panel>header{height:auto;min-height:0;padding:0;background:transparent;border:0;box-shadow:none;margin:0 0 15px;color:#142640}#v217Operations .team219-panel>header h3{margin:0 0 7px}#v217Operations .team219-panel>header p{margin:0}@media(max-width:650px){#v217Operations{padding-bottom:105px}#v217Operations .op-bottom{position:fixed;bottom:0;left:0;right:0;margin:0;z-index:4;padding-bottom:max(12px,env(safe-area-inset-bottom));box-shadow:0 -3px 12px #14253b0a}}
/* V220 date planning follows the approved Team design. */
.team220-dates{background:white;border:1px solid #dce4ee;border-radius:14px;padding:12px;margin:0 0 17px}.team220-shortcuts{display:grid;grid-template-columns:1fr 1fr 1.25fr;border:1px solid #dbe3ed;border-radius:11px;background:#f5f7fa;padding:4px;gap:4px}#v217Operations .team220-shortcuts button{border:0;background:transparent;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 5px;font-size:14px}#v217Operations .team220-shortcuts button[aria-pressed=true]{background:linear-gradient(115deg,#ffe270,#ffd447);box-shadow:0 1px 3px #152a4310}.team220-day{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 4px}.team220-day strong{font-size:17px;text-align:center;line-height:1.5;flex:1}#v217Operations .team220-day button{font-size:27px;border:0;background:transparent;min-width:35px;min-height:38px;padding:0 5px}.team220-dates>p{font-size:12px;text-align:center;margin:7px 0 1px;line-height:1.6;color:#738098}.team220-date-input{display:flex;align-items:center;gap:12px;font-size:13px;margin:13px 0;color:#5f6f88}.team220-date-input input{min-width:0;flex:1;width:100%;font:16px Arial,sans-serif;background:white;border:1px solid #b9c9df;border-radius:8px;padding:10px;color:#152944}.team220-dates .team220-date-error{color:#b0404b;font-size:12px}.team220-date-error:empty{display:none}#v217Operations.team220 .op-heading h2{font-size:32px}#v217Operations.team220 .op-heading>div>p{font-size:14px}#v217Operations.team220 .op-heading{margin-bottom:15px}#v217Operations.team220 .op-live{align-self:flex-start;margin-top:8px}#v217Operations.team220 .op-counts{display:none}#v217Operations.team220 .team220-total-note{display:none}.team220-job-count{font-size:13px;color:#63738c;margin:-6px 0 16px;line-height:1.6}#v217Operations.team220 .team219-panel{box-shadow:none;border-radius:14px}#v217Operations.team220 .team219-rows{border:0}#v217Operations.team220 .team219-row{padding:13px 4px}#v217Operations.team220 .team219-row[aria-pressed=true]{box-shadow:none;background:#f5f8fc}.team220 .team219-total{background:#f0f2f6;color:#142640}.team220 .team219-unassigned .team219-total{background:#ffda4a}.team220 .team219-clear{display:flex;align-items:center;gap:10px;padding:12px;background:#e9f7e8;border-radius:9px;font-size:13px;font-weight:600;color:#0b632b}.team220 .team219-clear>span{display:grid;place-items:center;background:#076d31;color:white;width:22px;height:22px;border-radius:50%}#v217Operations.team220 .team219-tabs{background:transparent;border:0;padding:0;gap:7px}#v217Operations.team220 .team219-tabs button{border-radius:30px;background:#edf0f5;min-width:74px;font-size:12px;padding:9px}#v217Operations.team220 .team219-tabs [aria-pressed=true]{background:#ffdc50}.team220 .team219-hint{margin-bottom:10px}.team220 .team219-manage{margin:12px 0}.team220 .team219-jobs{margin-top:20px}.team220 .op-card.op-pickup>header{background:#e4f1ff;color:#0765bf}.team220 .op-card.op-return>header{background:#e4f6e7;color:#106526}.team220 .op-card .op-team:has(.unassigned){background:#fff6d9}.team220 .op-actions a[href^="https://wa.me"] svg{color:#08a54d}.team220 .op-actions a{border-color:#d5dfed}.team220 .op-actions a.gold{border-color:#f0c934}.team220 .op-actions button{border-color:#d5dfed!important}@media(max-width:650px){.team220-day strong{font-size:15px}.team220-shortcuts button{font-size:12px!important}.team220-shortcuts{gap:3px}.team220-dates{padding:10px 8px}.team220-date-input{flex-direction:column;align-items:stretch;gap:7px}.team220 .team219-panel{padding:14px 12px}.team220 .op-vehicle img{height:140px}.team220 .op-vehicle{grid-template-columns:44% 1fr;gap:8px}}
/* Neutralize legacy global mobile header rules within this live workspace. */
@media(max-width:700px){#v217Operations .op-brand{padding:12px 18px!important;min-height:90px!important}#v217Operations .op-card>header{padding:12px!important;min-height:0!important}#v217Operations .team219-panel>header{min-height:0!important;height:auto!important;padding:0!important}}
#v217Operations.team220 .op-top{display:none}#v217Operations .team220-refresh{display:inline-flex;align-items:center;gap:5px;min-height:36px;font-size:12px;background:transparent;border:0;color:#2566a5;margin-left:6px;padding:4px}
