.mbus{--bink:#123c33;--bgreen:#08745b;--bmuted:#60786f;--bline:#dae7e0;--bbg:#f5f9f6;color:var(--bink);max-width:1210px;margin:0 auto;padding:22px clamp(12px,3vw,30px) 64px;font-family:inherit}
.mbus *{box-sizing:border-box}.mbus-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px;flex-wrap:wrap}.mbus-head h1{font-size:clamp(25px,3.3vw,39px);line-height:1.15;margin:4px 0 6px}.mbus-head p{margin:0;color:var(--bmuted)}.mbus-kicker{font-size:11px;letter-spacing:.13em;font-weight:800;color:#13755e}
.mbus-panel{background:white;border:1px solid var(--bline);border-radius:18px;padding:clamp(14px,2vw,22px);margin-bottom:20px;min-width:0;box-shadow:0 4px 15px rgba(13,58,44,.035)}.mbus-panel h2{font-size:19px;margin:0 0 15px}.mbus-grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.mbus-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mbus-form{display:grid;gap:11px}.mbus label:not(.mbus-seat):not(.mbus-check){display:grid;gap:5px;font-size:13px;font-weight:700;color:#32564d;min-width:0}.mbus input:not([type=checkbox]),.mbus select{width:100%;min-width:0;border:1px solid #b9d0c6;border-radius:10px;padding:10px 11px;font:inherit;color:#1d4037;background:#fff}.mbus input:focus-visible,.mbus select:focus-visible,.mbus button:focus-visible,.mbus a:focus-visible{outline:3px solid #e8ad78;outline-offset:2px}.mbus-btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;background:var(--bgreen);border:1px solid var(--bgreen);color:#fff!important;text-decoration:none;border-radius:10px;padding:10px 15px;font:inherit;font-size:13px;font-weight:750;cursor:pointer;min-height:42px;white-space:normal}.mbus-btn.ghost{color:var(--bgreen)!important;background:#fff;border-color:#aaccc0}.mbus-hint,.mbus-muted{font-size:12px;color:var(--bmuted);line-height:1.5}.mbus-hint{margin:7px 0 10px}.mbus-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.mbus-mini,.mbus-route,.mbus-result{border:1px solid var(--bline);padding:14px;border-radius:13px;background:#fff}.mbus-mini{display:grid;gap:3px}.mbus-mini span{font-size:12px;color:var(--bmuted)}.mbus-route{margin-bottom:10px}.mbus-section-top,.mbus-result{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.mbus-section-top strong{font-size:15px}.mbus-state,.mbus-count{border-radius:25px;padding:5px 10px;background:#e9f5ec;color:#14634d;font-size:11px;font-weight:800;white-space:nowrap}.mbus-notice{background:#e8f6f0;border:1px solid #badfcb;border-radius:12px;padding:12px 15px;color:#155945;margin-bottom:16px}.mbus-notice.error{background:#fff0ed;color:#9b3d35;border-color:#f7cbc6}.mbus-notice ul{margin:4px 0}.mbus-inline-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:12px 0}.mbus-inline-form>label{flex:1 1 160px}.mbus-fare-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.mbus-fare-list span{font-size:12px;border-radius:30px;padding:5px 9px;background:#eff5f2}.mbus details{margin:12px 0}.mbus summary{cursor:pointer;color:var(--bgreen);font-weight:750}.mbus-table-wrap{width:100%;overflow-x:auto}.mbus-table{width:100%;border-collapse:collapse;font-size:12px;min-width:630px}.mbus-table td,.mbus-table th{padding:11px;border-bottom:1px solid #e1ebe6;text-align:left;vertical-align:top}.mbus-table th{color:var(--bmuted)}.mbus-table small{display:block;margin-top:4px;color:var(--bmuted)}.mbus-actions{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.mbus-actions .mbus-btn{min-height:35px;padding:6px 9px}.mbus-check{font-size:12px;display:flex;align-items:flex-start;gap:8px;line-height:1.45;color:var(--bink)}.mbus-check input{margin-top:3px}.mbus-boarding{padding:14px 0 0}.mbus-search{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end;background:#fff;padding:16px;border:1px solid var(--bline);border-radius:16px;margin-bottom:20px}.mbus-result{align-items:center;margin:10px 0}.mbus-result h3{margin:7px 0;font-size:20px}.mbus-result p{margin:3px 0}.mbus-result-action{display:grid;justify-items:end;gap:4px}.mbus-result-action strong{font-size:20px}.mbus-result-action small{color:var(--bmuted)}.mbus-empty{padding:34px 12px;text-align:center}.mbus-crumb{margin-bottom:12px;color:var(--bmuted);font-size:13px}.mbus-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:18px;align-items:start}.mbus-guide p{font-size:13px;line-height:1.6}.mbus-fare-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;border-radius:12px;background:#e6f6ec;margin:16px 0}.mbus-fare-banner strong{font-size:23px}.mbus-fare-banner small{width:100%;color:var(--bmuted)}
.mbus-bus{background:#f5f8f6;border:2px solid #bccfc5;border-radius:26px;padding:20px;max-width:330px;margin:15px 0}.mbus-front{display:flex;justify-content:space-between;font-size:11px;color:var(--bmuted);padding:0 0 13px;border-bottom:1px dashed #cadcd2}.mbus-seat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:14px 0}.mbus-seat{display:block;cursor:pointer;position:relative}.mbus-seat input{position:absolute;opacity:0;width:100%;height:100%;cursor:pointer}.mbus-seat span{display:grid;place-items:center;border:1px solid #9bbbaa;background:#fff;border-radius:8px;min-height:39px;font-size:12px;font-weight:800}.mbus-seat input:checked+span{background:#0b775c;color:white;border-color:#0b775c}.mbus-seat input:focus-visible+span{outline:3px solid #e6ad6d}.mbus-seat.is-taken{cursor:not-allowed}.mbus-seat.is-taken span{background:#d9e2dc;color:#64746e;text-decoration:line-through}.mbus-legend{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;margin-bottom:15px}.mbus-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mbus-summary>div{display:grid;gap:5px}.mbus-summary small{color:var(--bmuted)}.mbus-ticket{padding:18px;background:#e8f6ed;border:1px dashed #0e8665;border-radius:14px;display:grid;gap:8px;margin-top:16px}.mbus-ticket strong{font-size:24px;letter-spacing:.06em;overflow-wrap:anywhere}.mbus-ticket span{font-size:11px;color:var(--bgreen);font-weight:800}
@media(max-width:930px){.mbus-grid-form,.mbus-detail-layout{grid-template-columns:1fr}.mbus-search{grid-template-columns:repeat(2,minmax(0,1fr))}.mbus-search .mbus-btn{width:100%}}@media(max-width:580px){.mbus{padding:16px 12px 48px}.mbus-two,.mbus-search,.mbus-summary{grid-template-columns:1fr}.mbus-result-action{justify-items:start}.mbus-head h1{font-size:27px}.mbus-panel{padding:14px}.mbus-result{display:grid}.mbus-fare-banner strong{font-size:20px}}

.mbus-qr{display:block;width:min(230px,100%);height:auto;margin:12px auto;padding:10px;border:1px solid #d9e9df;border-radius:14px;background:white}.mbus-ticket{text-align:center}.mbus-ticket strong{overflow-wrap:anywhere}

.mbus-camera-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0}.mbus-camera-controls [data-bus-scan-status]{font-size:12px;color:#567668}.mbus-camera-controls video{background:#143b30}

/* Phase 28 — operator weekly services and safe coach-layout editor */
.mbus .mbus-3col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mbus .mbus-days{min-width:0;padding:12px;border:1px solid var(--bline);border-radius:12px}
.mbus .mbus-days legend{font-size:13px;font-weight:750;padding:0 6px}
.mbus .mbus-days>div{display:flex;gap:7px;flex-wrap:wrap}
.mbus .mbus-day{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #c7ddd2;border-radius:999px;font-size:12px;font-weight:650;cursor:pointer}
.mbus .mbus-day input{accent-color:var(--bgreen)}
.mbus .mbus-schedule-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mbus .mbus-schedule-list{display:grid;gap:8px;margin-top:18px}
.mbus .mbus-schedule-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid var(--bline);border-radius:12px;padding:10px 14px}
.mbus .mbus-schedule-row .mbus-hint{margin:3px 0}
.mbus textarea.mbus-map-editor{width:100%;min-height:120px;resize:vertical;border:1px solid #b9d0c6;border-radius:10px;padding:10px;font:12px/1.4 monospace;color:var(--bink)}
@media(max-width:760px){.mbus .mbus-3col{grid-template-columns:1fr}.mbus .mbus-schedule-actions .mbus-btn{width:100%}}

/* Phase 29: private individual passenger tickets */
.mbus-passenger-tickets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin:16px 0}.mbus-passenger-ticket{background:#fff;border:1px solid #d2e5dc;border-radius:15px;padding:15px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.mbus-passenger-ticket code{font-size:11px;overflow-wrap:anywhere;max-width:100%}.mbus-passenger-ticket .mbus-qr{width:170px;height:170px;object-fit:contain}.mbus-passenger-ticket small{color:#527669}.mbus-passenger-ticket span{color:#0c6755}

/* Phase 31 — consistent compact customer/operator Bus UI, no booking logic changes. */
.mbus{--bink:#153e36;--bgreen:#0b7059;--bmuted:#648078;--bline:#dfebe4}
.mbus .mbus-head{margin-bottom:18px}
.mbus .mbus-head h1{font-weight:800;letter-spacing:-.035em;line-height:1.12}
.mbus .mbus-panel{border-radius:17px;box-shadow:0 7px 22px rgba(22,68,50,.045)}
.mbus .mbus-btn{transition:background-color .16s,border-color .16s,box-shadow .16s}
.mbus .mbus-btn:hover{background:#08533f;border-color:#08533f}
.mbus .mbus-btn.ghost:hover{background:#ecf7f0;color:#0a6e54!important}
.mbus .mbus-result{padding:15px 17px;border-radius:15px;box-shadow:0 6px 17px rgba(15,63,45,.035)}
.mbus .mbus-result h3{font-size:17px;letter-spacing:-.025em;line-height:1.2;margin:5px 0}
.mbus .mbus-result-action strong{font-weight:850;color:#0e5f4d;letter-spacing:-.02em}
.mbus .mbus-search{border-radius:17px;box-shadow:0 9px 24px rgba(14,65,47,.045)}
.mbus .mbus-search input:not([type=checkbox]),.mbus .mbus-search select{min-height:42px}
.mbus .mbus-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr))}
.mbus .mbus-mini{border-radius:13px;background:linear-gradient(135deg,#fff,#f8fcf9)}
.mbus .mbus-table-wrap{border:1px solid #e0ebe4;border-radius:13px;background:#fff;scrollbar-width:thin}
.mbus .mbus-table th{background:#f1f8f4;font-size:11px;font-weight:800}
.mbus .mbus-table td{border-bottom-color:#edf2ef}
.mbus .mbus-section-top h2{font-size:18px;letter-spacing:-.02em}
.mbus :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #eea581;outline-offset:2px}
@media(max-width:580px){.mbus .mbus-result{padding:14px}.mbus .mbus-search{gap:10px;padding:14px}.mbus .mbus-head{gap:10px}}

/* Phase 32 — customer bus search, seat booking and operator workspace refinement.
   Scoped to bus pages. No changes to global navigation, footer or service logic. */
.mbus{scroll-margin-top:110px}
.mbus [id^="bus-"]{scroll-margin-top:110px}
.mbus-public-heading{padding:3px 0 7px}
.mbus .mbus-search-phase32{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr) minmax(170px,.9fr) auto;gap:10px;align-items:end;padding:18px;box-shadow:0 12px 27px rgba(14,65,47,.055)}
.mbus .mbus-search-phase32 label{min-width:0;font-size:12px}
.mbus .mbus-search-phase32 input{height:46px;border-radius:11px}
.mbus .mbus-search-phase32 .mbus-search-go{height:46px;white-space:nowrap;background:#f47d68;border-color:#f47d68;padding:0 18px}
.mbus .mbus-search-phase32 .mbus-search-go:hover{background:#e36a55;border-color:#e36a55}
.mbus .mbus-swap{height:44px;width:42px;padding:0;border-radius:12px;border:1px solid #d7e6de;background:#f5faf7;color:#0d7159;display:grid;place-items:center;cursor:pointer;transition:background .15s}
.mbus .mbus-swap:hover{background:#e4f3ec}
.mbus .mbus-results-panel{background:transparent;border:0;padding:0;box-shadow:none}
.mbus .mbus-results-top{align-items:center;margin-bottom:16px}
.mbus .mbus-results-top h2{margin:0}
.mbus .mbus-results-top .mbus-hint{margin:4px 0 0}
.mbus .mbus-result-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(154px,190px);gap:22px;padding:20px 22px;margin:0 0 13px;border:1px solid #ddebe3;border-radius:18px;background:#fff;box-shadow:0 9px 22px rgba(18,65,48,.047)}
.mbus .mbus-trip-main{min-width:0}
.mbus .mbus-trip-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:#55766a;font-size:11px;font-weight:700}
.mbus .mbus-class-tag{padding:5px 10px;background:#e9f5ec;border:1px solid #d8e9df;color:#12624d;border-radius:30px}
.mbus .mbus-result-card h3{font-size:19px;letter-spacing:-.02em;margin:10px 0}
.mbus .mbus-journey-line{display:flex;align-items:center;gap:14px;max-width:590px}
.mbus .mbus-journey-line>div{display:flex;flex-direction:column;gap:3px;min-width:92px;max-width:40%}
.mbus .mbus-journey-line>div:last-child{text-align:right;align-items:flex-end}
.mbus .mbus-journey-line strong{font-size:23px;letter-spacing:-.04em;line-height:1.15}
.mbus .mbus-journey-line span:not(.mbus-journey-track){font-size:12px;color:#547469;overflow-wrap:anywhere}
.mbus .mbus-journey-track{position:relative;display:block;flex:1;min-width:28px;border-top:2px dashed #9ac7b1;margin-top:-12px}
.mbus .mbus-journey-track:before,.mbus .mbus-journey-track:after{content:"";position:absolute;top:-5px;width:7px;height:7px;border-radius:50%;border:1px solid #23735b;background:white}
.mbus .mbus-journey-track:before{left:0}.mbus .mbus-journey-track:after{right:0;background:#23735b}
.mbus .mbus-trip-day{font-size:11px!important;color:#627c71!important;margin:11px 0 0!important}
.mbus .mbus-result-card .mbus-result-action{align-content:center;justify-items:stretch;gap:7px;padding-left:20px;border-left:1px solid #e3ede6}
.mbus .mbus-result-card .mbus-result-action small{font-size:11px}
.mbus .mbus-result-card .mbus-result-action strong{font-size:21px}
.mbus .mbus-result-card .mbus-fare-unset{font-size:13px!important}
.mbus .mbus-result-card .mbus-result-action .mbus-btn{width:100%;min-height:43px;white-space:nowrap}
.mbus .mbus-steps{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 15px}
.mbus .mbus-steps span{font-size:11px;font-weight:750;border:1px solid #dce9e1;background:white;border-radius:30px;padding:8px 13px;color:#577468}
.mbus .mbus-steps .is-current{background:#e3f5eb;color:#0a6b53;border-color:#c3e3d2}
.mbus .mbus-booking-main>.mbus-section-top{align-items:center}
.mbus .mbus-booking-main>.mbus-section-top h2{margin-bottom:0}
.mbus .mbus-seat-layout{display:flex;gap:16px;flex-wrap:wrap;align-items:center;padding:14px;margin:16px 0 22px;background:#f8fbf9;border:1px solid #e1ebe5;border-radius:18px}
.mbus .mbus-seat-layout .mbus-bus{margin:0;background:#fff;max-width:325px;width:min(100%,325px);flex:0 1 325px}
.mbus .mbus-seat-legend{display:flex;flex-direction:column;gap:10px;font-size:12px;font-weight:650;color:#536f64}
.mbus .mbus-seat-legend>span{display:flex;align-items:center;gap:8px}
.mbus .mbus-legend-seat{display:block;width:23px;height:23px;background:#fff;border:1px solid #a1bdad;border-radius:6px}
.mbus .mbus-legend-seat.is-selected{background:#08745b;border-color:#08745b}
.mbus .mbus-legend-seat.is-occupied{background:#d9e2dc;border-color:#b4c5bc;position:relative}
.mbus .mbus-legend-seat.is-occupied:after{content:"";position:absolute;left:4px;right:4px;top:10px;border-top:1.5px solid #7b8e84;transform:rotate(-35deg)}
.mbus .mbus-selection-summary{margin:0 0 5px;font-weight:800;color:#135b48;min-height:45px}
.mbus .mbus-passenger-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mbus .mbus-passenger-fields:empty{display:none}
.mbus .mbus-passenger-fields>label{padding:12px;border:1px solid #e2ede5;border-radius:12px;background:#fbfdfb}
.mbus .mbus-passenger-form h3,.mbus .mbus-guide h3{margin:10px 0 0;font-size:15px}
.mbus .mbus-request-submit{justify-self:start;min-width:195px}
.mbus .mbus-request-submit:disabled{opacity:.56;cursor:not-allowed}
.mbus .mbus-guide{position:sticky;top:95px}
.mbus .mbus-guide h2{margin-bottom:6px}
.mbus .mbus-guide-rule{border-top:1px solid #e4eee7;margin:13px 0}
.mbus .mbus-guide p{margin:7px 0}
.mbus .mbus-ticket-detail h2{margin-bottom:18px}
.mbus .mbus-ticket-detail .mbus-summary{padding:15px;background:#f7faf8;border:1px solid #e4eee7;border-radius:14px}
.mbus .mbus-booking-row{border-radius:15px;padding:17px}
.mbus .mbus-booking-row-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mbus .mbus-workspace-nav{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 20px;padding:9px;background:#f2f8f4;border:1px solid #dceae0;border-radius:14px}
.mbus .mbus-workspace-nav a{color:#286453;text-decoration:none;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:750;line-height:1.25}
.mbus .mbus-workspace-nav a:hover,.mbus .mbus-workspace-nav a:focus-visible{background:white;color:#0c654e}
.mbus.mbus-operator-workspace .mbus-panel{min-width:0}
.mbus.mbus-operator-workspace .mbus-table-wrap{overscroll-behavior-x:contain}
.mbus.mbus-operator-workspace .mbus-route{background:#fcfefc}
.mbus .mbus-operator-workspace summary{padding:5px 0}
@media(max-width:1050px){
 .mbus .mbus-search-phase32{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr) minmax(0,1fr)}
 .mbus .mbus-search-phase32 .mbus-search-go{grid-column:1/-1;width:100%}
}
@media(max-width:930px){.mbus .mbus-guide{position:static}}
@media(max-width:650px){
 .mbus .mbus-search-phase32{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);gap:9px}
 .mbus .mbus-search-phase32 .mbus-date,.mbus .mbus-search-phase32 .mbus-search-go{grid-column:1/-1}
 .mbus .mbus-search-phase32 .mbus-from,.mbus .mbus-search-phase32 .mbus-to{min-width:0}
 .mbus .mbus-search-phase32 .mbus-from input,.mbus .mbus-search-phase32 .mbus-to input{font-size:13px;padding:8px}
 .mbus .mbus-result-card{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px}
 .mbus .mbus-result-card .mbus-result-action{border-left:0;border-top:1px solid #e2ece5;padding:12px 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;justify-items:start}
 .mbus .mbus-result-card .mbus-result-action small{grid-column:1;grid-row:1}
 .mbus .mbus-result-card .mbus-result-action strong{grid-column:1;grid-row:2;font-size:19px}
 .mbus .mbus-result-card .mbus-result-action .mbus-btn{grid-column:2;grid-row:1/3;min-width:120px;width:auto}
 .mbus .mbus-passenger-fields{grid-template-columns:1fr}
 .mbus .mbus-seat-layout{display:block;padding:10px}
 .mbus .mbus-seat-layout .mbus-bus{margin:0 auto;max-width:100%}
 .mbus .mbus-seat-legend{flex-direction:row;flex-wrap:wrap;justify-content:center;margin-top:13px}
 .mbus .mbus-request-submit{width:100%;justify-self:stretch}
 .mbus .mbus-workspace-nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
 .mbus .mbus-workspace-nav a{white-space:nowrap}
}
@media(max-width:390px){
 .mbus .mbus-journey-line{gap:9px}
 .mbus .mbus-journey-line>div{min-width:77px}
 .mbus .mbus-journey-line strong{font-size:20px}
 .mbus .mbus-result-card .mbus-result-action .mbus-btn{font-size:12px;padding:10px}
 .mbus .mbus-search-phase32{padding:12px}
 .mbus .mbus-seat-grid{gap:5px}
}
