/* Phase 3 — scoped operator and driver management UI. No backend/service changes. */
:where(.ms3-wizard,.ms3-sessions,.ms3-session-edit,.ms3-driver-auth,.ms3-vehicle-hub,.ms3-tour-detail,.ms3-operator-tour-assignments,.ms3-listing-library){--m3-deep:#173e34;--m3-teal:#166a55;--m3-coral:#df765d;--m3-line:#d7e7dd;--m3-surface:#f1f8f2;--m3-ink:#24463c;--m3-muted:#597569;--m3-shadow:0 10px 30px #133b270b}
.ms3-skip-cta,.ms3-route-shortcuts a{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:.65rem .95rem;border-radius:11px;border:1px solid var(--m3-line,#d7e7dd);background:white;color:#155c49!important;text-decoration:none;font-weight:800;font-size:.875rem}
.ms3-skip-cta:hover,.ms3-route-shortcuts a:hover{background:#e9f5ec}
.ms3-route-shortcuts{display:flex;flex-wrap:wrap;gap:.65rem;margin:1rem 0 1.25rem}
.ms3-note{font-size:.875rem;line-height:1.65;color:#526e61;margin:.75rem 0}
.ms3-info-bar{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:space-between;align-items:center;border:1px solid #cee4d5;background:#f4faf5;padding:1rem 1.2rem;border-radius:14px;margin:1rem 0 1.35rem;color:#265945;font-size:.88rem;line-height:1.6}
.ms3-info-bar strong{font-weight:850}
.ms3-chip{display:inline-flex;align-items:center;gap:.4rem;font-size:.78rem;line-height:1.4;font-weight:800;padding:.32rem .7rem;border-radius:999px;background:#eaf5ec;border:1px solid #cee4d5;color:#176046}
.ms3-chip--pending{background:#fff6e9;border-color:#f3dfb8;color:#82561b}
.ms3-chip--alert{background:#fff0ec;border-color:#edbfb4;color:#8d3829}
.ms3-step-hint{margin:0 0 1.1rem;color:#597569;font-size:.875rem;line-height:1.65}
/* Active combined four-step listing wizard. */
.ms3-wizard .oplist-page-head{margin-bottom:.9rem}
.ms3-wizard .wizard-shell{justify-content:stretch}
.ms3-wizard .wizard-card{width:100%;max-width:1060px;margin:0 auto;padding:clamp(1.1rem,3vw,2rem);border:1px solid var(--m3-line);border-radius:19px;box-shadow:var(--m3-shadow);overflow:hidden}
.ms3-wizard .wizard-header{align-items:start;padding-bottom:1rem;border-bottom:1px solid #e4eee7;margin-bottom:1.4rem}
.ms3-wizard .wizard-title{color:var(--m3-deep);font-size:clamp(1.4rem,2.8vw,1.9rem);line-height:1.25}
.ms3-wizard .wizard-subtitle{color:var(--m3-muted);line-height:1.65;font-size:.9rem}
.ms3-wizard .wizard-progress{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
.ms3-wizard .wizard-progress .bar{width:12px;background:#cce1d4}
.ms3-wizard .wizard-progress .step{width:auto;height:auto;min-width:40px;min-height:40px;display:inline-flex;gap:.42rem;align-items:center;justify-content:center;border-radius:999px;padding:.45rem .65rem;font-size:.77rem;font-weight:800}
.ms3-wizard .wizard-progress .step .ms3-step-num{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e4f0e8;color:#22634d}
.ms3-wizard .wizard-progress .step.active .ms3-step-num{background:white;color:var(--m3-teal)}
.ms3-wizard .wizard-progress .step[data-complete="true"]{background:#eef7f0;border-color:#b4d9c2;color:#17654f}
.ms3-wizard .wizard-progress .step[data-complete="true"] .ms3-step-num{background:#d0ebda;color:#175f46}
.ms3-wizard .wizard-step .field label{font-size:.9rem;line-height:1.4;color:var(--m3-ink);font-weight:750}
.ms3-wizard .wizard-step .field :is(input,select,textarea){min-height:47px;font-size:1rem;border-color:#c9ddd1}
.ms3-wizard .wizard-step .field textarea{min-height:125px}
.ms3-wizard .wizard-step .field small,.ms3-wizard .wizard-step .map-hint{font-size:.82rem;line-height:1.55;color:var(--m3-muted)}
.ms3-wizard .wizard-step .actions{padding-top:1rem;border-top:1px solid #e4eee8;flex-wrap:wrap;align-items:center}
.ms3-wizard .wizard-step .actions .btn{min-height:45px;font-size:.9rem}
.ms3-wizard .wizard-step .error-box{border:1px solid #efc5b9;background:#fff2ed;color:#873625;padding:1rem 1.2rem;border-radius:11px;margin-bottom:1rem;line-height:1.5}
.ms3-wizard .wizard-step .error-box:empty{display:none}
.ms3-wizard #uploadArea{width:100%;min-height:100px;border:2px dashed #a9ccba;background:#f6fbf7;color:#215c48;display:block;font-size:.94rem;line-height:1.65}
.ms3-wizard #uploadArea:hover,.ms3-wizard #uploadArea:focus-visible{background:#eaf6ed;border-color:#176b52}
.ms3-wizard .preview-box{border-color:#dcebe2}
.ms3-wizard .preview-box .remove-btn{min-width:30px;min-height:30px}
.ms3-wizard .ms3-preview-buttons{position:absolute;bottom:7px;right:6px;display:flex;gap:3px;z-index:2}
.ms3-wizard .ms3-preview-buttons button{border:1px solid #bcd6c7;background:white;color:#20533d;border-radius:7px;min-width:28px;min-height:28px;line-height:1;font-size:.78rem}
.ms3-wizard .ms3-preview-buttons button:disabled{opacity:.35;cursor:default}
.ms3-wizard :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--m3-coral);outline-offset:3px}
/* Operator sessions and itinerary editing. */
.ms3-sessions .sessions-grid{align-items:start}
.ms3-sessions .session-panel,.ms3-sessions .sessions-grid>.card{border-radius:18px;border:1px solid #dce9df;box-shadow:var(--m3-shadow)}
.ms3-sessions #ms3-create-session,.ms3-sessions #ms3-current-sessions{scroll-margin-top:90px}
.ms3-sessions .session-section-title{color:var(--m3-deep);font-weight:850;font-size:.99rem;line-height:1.5}
.ms3-sessions .session-form :is(input,textarea,select),.ms3-session-edit .session-edit-form :is(input,textarea,select){min-height:45px;font-size:.95rem;border-color:#c9ddd1}
.ms3-sessions .session-form label,.ms3-session-edit .session-edit-form label{font-weight:750;font-size:.88rem;line-height:1.5}
.ms3-sessions .session-hint,.ms3-session-edit .session-hint{font-size:.82rem;line-height:1.55}
.ms3-sessions .session-table th{white-space:nowrap;font-size:.8rem;color:#506a5b}
.ms3-sessions .session-table td{vertical-align:middle}
.ms3-sessions .session-actions{gap:.4rem;flex-wrap:wrap}
.ms3-sessions .session-actions a,.ms3-sessions .session-actions button{min-height:39px;display:inline-flex;align-items:center;justify-content:center}
.ms3-sessions .ms3-remove-session{color:#913d2c!important;border-color:#ebc7bf!important;background:#fff7f4!important}
.ms3-sessions .ms3-empty{border:1px dashed #c9e0d1;background:#f6fbf7;border-radius:12px;padding:1rem;margin-top:.85rem}
.ms3-session-edit .ms3-info-bar{margin-bottom:1.2rem}
.ms3-session-edit .session-edit-actions .btn{min-height:44px}
/* Driver onboarding & vehicle management. */
.ms3-driver-auth .ms3-auth-content{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,.8fr);gap:1.1rem;align-items:start}
.ms3-driver-auth .driver-auth{max-width:none}
.ms3-driver-auth .ms3-auth-aside{padding:1.4rem;background:#eaf5ee;border:1px solid #cae3d4;border-radius:17px;color:#245945;line-height:1.7}
.ms3-driver-auth .ms3-auth-aside h2{margin:0 0 .55rem;font-size:1.12rem;color:#195843}
.ms3-driver-auth .ms3-auth-aside ol{padding-left:1.3rem;margin:.7rem 0 0}
.ms3-driver-auth .ms3-auth-aside li{margin-bottom:.55rem}
.ms3-driver-auth .driver-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.ms3-driver-auth .driver-auth .primary{min-width:160px;margin-top:.7rem}
.ms3-driver-auth .driver-auth label{font-size:.88rem;margin:.65rem 0}
.ms3-driver-auth .driver-auth small{font-size:.81rem;line-height:1.5}
.ms3-vehicle-hub .ms3-vehicle-status{display:block;margin:12px 0}
.ms3-vehicle-hub .ms3-vehicle-empty{padding:1.1rem;border-radius:13px;border:1px dashed #c9dfd1;background:#f7fbf7;color:#4d6c5b}
.ms3-vehicle-hub .ms3-vehicle-add{border:1px solid #cfe2d6;background:#fff}
.ms3-vehicle-hub .ms3-vehicle-add>summary{display:flex;align-items:center;min-height:48px;font-weight:850;color:#185842;font-size:1rem}
.ms3-vehicle-hub .ms3-vehicle-add>form{margin-top:1rem}
/* Assigned tour view and operator booking-sharing queue. */
.ms3-tour-detail .ms3-tour-hero{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}
.ms3-tour-detail .driver-intro{margin:0;padding-bottom:10px}
.ms3-tour-detail .driver-grid{align-items:start}
.ms3-tour-detail .ms3-tour-actions{border:1px solid #cbe3d3;background:#f7fbf8}
.ms3-tour-detail .ms3-tour-actions .driver-inline{gap:.65rem}
.ms3-tour-detail .ms3-tour-actions button{min-width:135px}
.ms3-tour-detail .ms3-tour-maplink{display:inline-flex;min-height:42px;align-items:center;margin-top:.6rem;font-weight:800}
.ms3-operator-tour-assignments .driver-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))}
.ms3-operator-tour-assignments .ms3-assignment-editor{border-top:1px solid #deede3;padding-top:.65rem;margin-top:.95rem}
.ms3-operator-tour-assignments .ms3-assignment-editor>summary{min-height:45px;display:flex;align-items:center;justify-content:space-between;font-weight:850;color:#185d48;cursor:pointer}
.ms3-operator-tour-assignments .ms3-assignment-editor>form{padding-top:.6rem}
.ms3-operator-tour-assignments .driver-card dl{margin:.5rem 0}
.ms3-operator-tour-assignments .driver-card>h3{overflow-wrap:anywhere}
.ms3-operator-tour-assignments .driver-card form button{min-height:44px}
.ms3-listing-library .oplist-card-links a{min-height:42px;display:inline-flex;align-items:center}
.ms3-listing-library .oplist-card-cta a{min-height:44px}
@media(max-width:950px){.ms3-driver-auth .ms3-auth-content{grid-template-columns:1fr}.ms3-wizard .wizard-header{flex-direction:column;gap:.85rem}.ms3-wizard .wizard-progress{width:100%}}
@media(max-width:700px){.ms3-wizard .wizard-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.3rem}.ms3-wizard .wizard-progress .bar{display:none}.ms3-wizard .wizard-progress .step{padding:.55rem .22rem;min-width:0;flex-direction:column;line-height:1.2;text-align:center}.ms3-wizard .ms3-step-label{font-size:.65rem}.ms3-wizard .wizard-step .actions{flex-direction:column-reverse;align-items:stretch}.ms3-wizard .wizard-step .actions button{width:100%}.ms3-wizard .field-grid,.ms3-driver-auth .driver-fields{grid-template-columns:1fr}.ms3-info-bar{align-items:flex-start;flex-direction:column}.ms3-sessions .sessions-grid{grid-template-columns:1fr}.ms3-sessions .session-card{padding:1rem}.ms3-operator-tour-assignments .driver-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){:where(.ms3-wizard,.ms3-sessions,.ms3-session-edit,.ms3-driver-auth,.ms3-vehicle-hub,.ms3-tour-detail,.ms3-operator-tour-assignments) *{scroll-behavior:auto!important;transition:none!important}}

/* Listing editor buttons — navigable by keyboard, not only mouse clicks. */
.ms3-listing-editor .section-progress{display:flex;flex-wrap:wrap;gap:.4rem}
.ms3-listing-editor .section-chip{min-height:38px;display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:.82rem;font-weight:750}
.ms3-listing-editor .section-chip:focus-visible,.ms3-listing-editor .accordion-toggle:focus-visible{outline:3px solid #df765d;outline-offset:3px}
.ms3-listing-editor .panel{scroll-margin-top:120px}
.ms3-listing-editor .accordion-toggle{min-height:42px}
