/* Company demo shell: fit uploaded wordmarks without changing operations UI. */
html[data-operator] .cfi-command-brand{flex:0 0 auto;min-width:120px}
/* The selected operator logo already labels the maintenance header. */
html[data-operator] body.cfi-command-design:has(.cfi-maint-workspace) .cfi-command-brand:after{content:none!important}
html[data-operator] #cfi-command-logo{display:block!important;width:160px!important;height:58px!important;max-width:180px;object-fit:contain!important;background:#fff;border:1px solid #d8e5df;border-radius:12px;padding:6px 10px}
html[data-operator] .cfi-command-heading{min-width:0}
html[data-operator] .cfi-command-heading p{color:var(--operator-accent,#076652);font-weight:700}
html[data-operator] .cfi-brand-mark{width:130px!important;height:54px!important;object-fit:contain;background:#fff;border-radius:9px;padding:5px}
.op-brand-select select{font:inherit;font-size:11px;max-width:220px;min-height:36px;padding:6px 24px 6px 9px;background:#f6faf7;border:1px solid #cbded6;border-radius:9px;color:#163e3e}
.op-disclaimer{font-size:11px!important;line-height:1.65!important;color:#536d68!important;background:#f4f8f4;padding:10px 12px;border:1px solid #d5e4dc;border-radius:9px}
.op-model-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.op-model-grid button{display:grid;gap:7px;padding:10px;border:1px solid #d2e2d8;border-radius:12px;background:#fff;color:#123c41;text-align:left;cursor:pointer}
.op-model-grid img{width:100%;height:120px;object-fit:contain;background:#edf1ee;border-radius:8px}
.op-model-grid small{font-size:11px;color:#637b75}
/* Stage owns its controls; legacy controls remain accessible outside it. */
.op-viewer-host{position:relative!important;background:#e7eeeb!important;overflow:hidden!important;min-height:390px!important}
.op-viewer{position:absolute;inset:0;display:flex;flex-direction:column;color:#123b40;background:#edf2ef;font-family:inherit;min-height:0;z-index:12}
.op-viewer-toolbar{display:flex;gap:7px;padding:10px 12px;background:#fff;border-bottom:1px solid #cbdcd3;flex:0 0 auto;flex-wrap:wrap}
.op-view-button{border:1px solid #cbded3;border-radius:9px;padding:10px 14px;background:#f1f6f2;color:#184645;font:inherit;font-size:11px;font-weight:750;cursor:pointer;min-height:38px}
.op-view-button[aria-pressed=true]{background:#064e50;border-color:#064e50;color:#fff}
.op-view-button:focus-visible,.op-model-grid button:focus-visible{outline:3px solid #d6ad4d;outline-offset:2px}
.op-viewer-body{position:relative;flex:1;min-height:0;overflow:hidden}
.op-exterior,.op-three,.op-roof-scroll{position:absolute;inset:0}
.op-viewer [hidden]{display:none!important}
.op-exterior{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:16px;background:radial-gradient(ellipse,#fff,#d9e2df)}
.op-exterior>img{display:block;width:100%;height:calc(100% - 42px);object-fit:contain;min-height:0;border-radius:9px}
.op-viewer-caption{font-size:12px;line-height:1.45;font-weight:700;padding:9px;margin:0;color:#234e4c;text-align:center}
.op-three{background:#e6eeeb}
.op-three canvas{display:block;width:100%;height:100%;touch-action:none}
.op-model-message{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;text-align:center;z-index:2;color:#164349;background:radial-gradient(ellipse,#fff,#e1ece6)}
.op-model-message strong{font-size:24px;letter-spacing:-.5px;line-height:1.25}
.op-model-message p{font-size:12px;line-height:1.7;max-width:320px;margin-top:12px;color:#607871}
.op-roof-scroll{overflow:auto;overscroll-behavior:contain;background:#102d33;padding:12px;scrollbar-color:#688f8a #102d33}
.op-roof-note{margin:0 0 10px!important;padding:9px 12px;border:1px solid #61827a;border-radius:9px;background:#193c40;color:#e0ece6!important;font-size:10px!important;line-height:1.5!important;max-width:900px}
.op-seat-legend{display:flex;flex-wrap:wrap;gap:10px;color:#d4e5df;margin:8px 0 12px;font-size:10px}
.op-seat-legend span{display:flex;align-items:center;gap:5px}.op-seat-legend i{display:inline-block;width:10px;height:10px;border-radius:50%}
.op-roof-tools{display:flex;align-items:center;justify-content:flex-end;gap:7px;position:sticky;top:0;z-index:5;padding:6px;background:#102d33e8;border-radius:9px;color:#d9eae3;font-size:10px}
.op-roof-tools button{width:35px;height:34px;border:1px solid #658f80;border-radius:7px;background:#274d4b;color:#fff;font-size:20px;cursor:pointer}
.op-decks{--roof-zoom:1;display:grid;grid-template-columns:1fr;gap:14px;width:calc(100% * var(--roof-zoom));min-width:260px;margin:auto;align-items:start;max-width:calc(540px * var(--roof-zoom))}
.op-decks[data-decks="2"]{grid-template-columns:repeat(2,minmax(220px,1fr));min-width:460px;max-width:calc(980px * var(--roof-zoom))}
.op-deck{min-width:0;background:#f1f2ed;border:1px solid #738c7d;border-radius:12px;overflow:hidden}
.op-deck h3{padding:10px;background:#244e4d;color:#f2f8f0!important;text-align:center;font-size:12px!important;margin:0!important;border-bottom:1px solid #728d7b}
.op-roof-frame{position:relative;min-height:250px;line-height:0;background:#f1f2ed}
.op-roof-canvas{display:block;width:100%;height:auto}
.op-seat-overlay{position:absolute;inset:0;width:100%;height:100%;visibility:hidden;pointer-events:none;overflow:visible}
.op-seat-overlay g{pointer-events:auto;cursor:pointer;outline:none}.op-seat-overlay polygon{fill-opacity:.42;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round;transition:fill-opacity .12s}
.op-seat-overlay g:hover polygon,.op-seat-overlay g:focus-visible polygon{fill-opacity:.75;stroke:#fff4b0;stroke-width:3}
.op-seat-overlay text{font-size:16px;font-weight:800;font-family:Arial,sans-serif;fill:white;paint-order:stroke;stroke:#112e38;stroke-width:2;text-anchor:middle;dominant-baseline:central;pointer-events:none}
.op-seat-overlay [data-status=unconfigured]{opacity:.3;cursor:default}
.op-roof-failure{position:absolute;inset:20% 10% auto;background:#fff;padding:15px;border-radius:9px;color:#356455;line-height:1.6;font-size:12px;text-align:center}
.op-seat-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.op-seat-summary>div{display:grid;grid-template-columns:10px 1fr;align-items:center;gap:6px;padding:10px;background:#f0f7f1;border:1px solid #cfe3d6;border-radius:10px}
.op-seat-summary i{width:9px;height:9px;border-radius:50%}.op-seat-summary b{font-size:22px}.op-seat-summary span{grid-column:1/-1;font-size:10px}
.op-seat-detail{background:#e9f4ec;border:1px solid #b9dac4;border-radius:12px;padding:15px;margin:12px 0}.op-seat-detail h3{font-size:19px!important;margin:7px 0!important;color:#1c4c44!important}.op-seat-detail small,.op-seat-detail p{font-size:11px;line-height:1.5;color:#55736a}
.op-seat-detail button{background:#075353;color:white;border:0;border-radius:8px;padding:9px 13px;font-weight:700;cursor:pointer}
.op-panel-deck{margin:15px 0}.op-panel-deck h3{font-size:13px!important;color:#234c45!important;margin:0 0 10px!important}
.op-seat-buttons{display:grid;grid-template-columns:repeat(6,minmax(30px,1fr));gap:7px}.op-seat-buttons button{min-height:38px;border:1px solid #c2d1cc;border-radius:7px;background:#eef2f1;color:#31564e;font-weight:700;cursor:pointer}
.op-seat-buttons [data-status=occupied]{background:#daf0dc;border-color:#69b970}.op-seat-buttons [data-status=boarding]{background:#fff0ce;border-color:#ddb85a}.op-seat-buttons [data-status=no-show]{background:#fde2e5;border-color:#e38d98}.op-seat-buttons [aria-pressed=true]{outline:2px solid #117f76;outline-offset:1px}
html[data-operator] .fc-hero-bus{right:14px;bottom:12px;width:min(26%,390px);height:180px;object-fit:contain;background:#e3e9e5;border-radius:11px;filter:none;opacity:.84}
html[data-operator] .fc-rank-bus,html[data-operator] .fc-selected-bus{object-fit:contain;border-radius:7px;background:#edf2ed}
.bj-sample-coach .op-border-bus{width:100%;height:100%;display:block;object-fit:contain;border-radius:5px;background:#e1e7e2}
@media(max-width:800px){html[data-operator] #cfi-command-logo{width:116px!important;height:49px!important;padding:5px 7px}html[data-operator] .cfi-command-brand{min-width:0}.op-brand-select select{max-width:155px}.op-viewer-host{min-height:430px!important}.op-viewer-toolbar{padding:8px;gap:5px}.op-view-button{padding:8px 10px;font-size:10px}html[data-operator] .fc-hero-bus{opacity:.2;width:50%;right:0}}

.op-roof-scroll{display:flex;flex-direction:column;overflow:hidden;gap:6px}
.op-roof-tools,.op-roof-note,.op-seat-legend,.op-deck-tabs{flex:0 0 auto}
.op-roof-tools{position:static;justify-content:center}
.op-roof-tools button.op-fit-roof{width:auto;font-size:11px;padding:0 12px}
.op-zoom-value{font-variant-numeric:tabular-nums;min-width:40px;text-align:center}
.op-roof-viewport{flex:1;min-height:0;overflow:auto;padding:10px;overscroll-behavior:contain}
.op-roof-scroll .op-decks,.op-roof-scroll .op-decks[data-decks="2"]{display:block;min-width:0;max-width:none;margin:0 auto}
.op-roof-scroll .op-roof-frame{min-height:0}
.op-roof-scroll .op-deck h3{display:none}
@media(max-width:800px){.op-viewer-host{min-height:520px!important}}
.op-deck-tabs{display:flex;justify-content:center;gap:8px}
.op-deck-tabs button{min-height:34px;border:1px solid #61867c;border-radius:8px;background:#23484a;color:#e1eee8;padding:6px 16px;cursor:pointer}
.op-deck-tabs [aria-selected=true]{background:#cee8bb;color:#163c39}
.op-three>.op-model-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:25px 15px 110px;background:transparent}
.op-three .op-model-message{inset:auto 12px 58px;padding:12px;background:#f3f8f0e8;border-radius:10px}
.op-three .op-model-message strong{font-size:16px}
.op-three .op-model-message p{margin:4px 0 0;font-size:11px}
.op-model-retry{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:3;border:1px solid #547c67;border-radius:8px;background:#0d5152;color:white;padding:10px 18px;cursor:pointer}
@media(max-width:600px){.op-roof-scroll{padding:7px}.op-roof-note{font-size:9px!important;padding:6px;margin:0!important}.op-seat-legend{gap:6px;font-size:9px;margin:3px 0}.op-roof-tools{padding:3px}}


/* Browser QA: the brand selector must fit with the existing mobile toolbar. */
@media(max-width:800px){html[data-operator] .topbar .top-actions{min-width:0;max-width:calc(100vw - 84px);gap:5px}.op-brand-select{min-width:0;flex:1 1 120px}.op-brand-select select{width:100%;max-width:138px;min-width:0;font-size:10px}html[data-operator] .top-actions .demo-top{font-size:8px;padding:5px}html[data-operator] .top-actions .avatar{flex:0 0 26px;width:26px;height:26px}}
