
@media screen{
body[data-report-layout]{--control-height:36px}
body[data-report-layout]>:is(header,.portal-nav){height:auto;min-height:52px;padding:8px 24px;gap:16px}
body[data-report-layout]>main{padding:14px 24px 24px}
body[data-report-layout] :is(.heading,.report-heading,.workspace-head){gap:12px;margin-bottom:12px}
body[data-report-layout] :is(.heading,.intro,.report-heading,.workspace-head) h1{font-size:28px;line-height:1.2;margin:2px 0 4px}
body[data-report-layout] :is(.heading,.intro,.workspace-head) p{margin-top:0;line-height:1.4}
body[data-report-layout] .eyebrow{margin:0 0 3px}
body[data-report-layout] :is(.actions,.export-actions){gap:8px}
body[data-report-layout^="sjc-"]>main{max-width:1540px;margin:0 auto}
body[data-report-layout^="sjc-"] .heading{margin:8px 0 12px}
body[data-report-layout^="sjc-"] button{min-height:36px;padding:6px 12px;line-height:22px}
body[data-report-layout^="sjc-"] .controls select{height:36px;padding-left:10px;padding-right:32px;font-size:14px}
body[data-report-layout^="sjc-"] .controls :is(label,legend){line-height:20px}
body[data-report-layout^="sjc-"] #message{margin:8px 0;font-size:13px;line-height:1.4}
body[data-report-layout^="sjc-"] #message:empty{display:none}
body[data-report-layout^="sjc-"] .resultbar{padding:8px 0;gap:10px}
body[data-report-layout^="sjc-"] .resultbar p{margin:3px 0 0}
body[data-report-layout^="sjc-"] .notice{margin-bottom:8px;line-height:1.4}
body[data-report-layout="sjc-oso"] .selection-fields{padding:12px;gap:12px 16px;align-items:start;grid-template-columns:minmax(0,1fr)}
body[data-report-layout="sjc-oso"] :is(.line-control,#saturday-control)>label{margin-bottom:4px}
body[data-report-layout="sjc-oso"] .select-wrap:after{top:13px;right:14px}
body[data-report-layout="sjc-oso"] #scenario-list{gap:6px;padding:0;max-height:200px}
body[data-report-layout="sjc-oso"] #scenario-list label{min-height:36px;padding:6px 10px;gap:8px;border-radius:6px}
body[data-report-layout="sjc-oso"] #scenario-list input{width:17px;height:17px;flex-basis:17px;border-radius:4px}
body[data-report-layout="sjc-oso"] #scenario-list input:checked:after{top:1px;left:4px}
body[data-report-layout="sjc-oso"] .scenario-content{gap:4px 10px}
body[data-report-layout="sjc-oso"] .scenario-name{font-size:14px;line-height:22px}
body[data-report-layout="sjc-oso"] .scenario-meta{gap:8px}
body[data-report-layout="sjc-oso"] .day-badge{padding:0 6px;font-size:11px}
body[data-report-layout="sjc-oso"] .control-actions{grid-column:1/-1}
body[data-report-layout="sjc-oso"] #saturday-control{grid-column:1/-1}
body[data-report-layout="sjc-infobus"] .controls{padding:12px;gap:10px 16px}
body[data-report-layout="sjc-infobus"] .controls label{margin-bottom:4px}
body[data-report-layout="sjc-infobus"] #scenario legend{margin-bottom:2px}
body[data-report-layout="sjc-infobus"] #programs>label{margin:4px 0;gap:8px;min-height:36px}
body[data-report-layout="sjc-infobus"] input:not([type=checkbox]){height:36px;padding:6px 10px}
body[data-report-layout="sjc-infobus"] #programs input[type=date]{width:150px}
body[data-report-layout="sjc-infobus"] details{margin:10px 0;padding:10px 12px}
body[data-report-layout="sjc-infobus"] summary{font-size:15px;line-height:22px}
body[data-report-layout="sjc-infobus"] details[open] summary{margin-bottom:10px}
body[data-report-layout="sjc-infobus"] h2{margin:16px 0 8px}
body[data-report-layout="sjc-infobus"] :is(.formgrid,.editbar,.mapping-row){gap:10px}
body[data-report-layout="sjc-infobus"] .editbar{margin-bottom:10px}
body[data-report-layout="sjc-infobus"] :is(.formgrid label,.editbar label){gap:4px}
body[data-report-layout="sjc-infobus"] .route-card{padding:10px;margin:8px 0}
body[data-report-layout="sjc-infobus"] #mapping>.actions{margin-top:12px}
body[data-report-layout="sjc-infobus"] #coverage{padding:10px 12px;margin:8px 0}
body[data-report-layout="sjc-infobus"] :is(th,td){padding:7px 10px}
body[data-report-layout="sjc-infobus"] td:last-child{line-height:1.45}
body[data-report-layout="sjc-resumo"] .intro{margin-bottom:12px;gap:12px}
body[data-report-layout="sjc-resumo"] .intro p{margin:0;line-height:1.4}
body[data-report-layout="sjc-resumo"] .card{padding:12px;margin-bottom:10px}
body[data-report-layout="sjc-resumo"] .top-filters{gap:10px}
body[data-report-layout="sjc-resumo"] label{gap:4px}
body[data-report-layout="sjc-resumo"] .days{gap:10px;margin:12px 0}
body[data-report-layout="sjc-resumo"] .day{padding:10px}
body[data-report-layout="sjc-resumo"] .day h2{margin-bottom:8px}
body[data-report-layout="sjc-resumo"] .day label+label{margin-top:8px}
body[data-report-layout="sjc-resumo"] .day .coverage{margin:6px 0 0;min-height:0;line-height:1.4}
body[data-report-layout="sjc-resumo"] .actions{padding-top:10px;gap:8px}
body[data-report-layout="sjc-resumo"] :is(.meta-fields,.labels-header){margin-top:12px;gap:10px}
body[data-report-layout="sjc-resumo"] .hint{margin:6px 0}
body[data-report-layout="sjc-resumo"] iframe{margin-top:6px}
body[data-report-layout="urbs"]>main{padding:0;min-height:calc(100vh - 52px)}
body[data-report-layout="urbs"] .topbar{height:52px;min-height:52px}
body[data-report-layout="urbs"] .portal-urbs-logo{height:32px}
body[data-report-layout="urbs"] .content{padding:16px 24px 0}
body[data-report-layout="urbs"] .scenario-bar{min-height:52px;padding:8px 24px;gap:10px;display:grid;grid-template-columns:minmax(240px,660px) auto auto 36px;justify-content:start}
body[data-report-layout="urbs"] .scenario-control{gap:10px;width:auto;min-width:0}
body[data-report-layout="urbs"] .scenario-control label{font-size:13px;font-weight:600}
body[data-report-layout="urbs"] #scenario-selector{appearance:none;-webkit-appearance:none;height:36px;min-height:36px;width:100%;min-width:0;padding:6px 34px 6px 10px;font-size:14px;font-weight:400;line-height:22px;border-radius:6px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b6c5d5' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;background-size:16px}
body[data-report-layout="urbs"] :is(.generate-report,.report-actions button,.button-link){height:36px;min-height:36px;padding:6px 12px;font-size:14px;line-height:22px;border-radius:6px}
body[data-report-layout="urbs"] .icon-button{width:36px;height:36px;border-radius:6px}
body[data-report-layout="urbs"] .icon-button svg{width:19px;height:19px}
body[data-report-layout="urbs"] .published-badge{padding-left:10px;font-size:12px}
body[data-report-layout="urbs"] .rail{top:52px;padding-top:12px}
body[data-report-layout="urbs"] .rail-link{width:36px;height:36px;border-radius:6px}
body[data-report-layout="urbs"] .page-heading{margin-bottom:12px;gap:16px}
body[data-report-layout="urbs"] .page-heading h1{margin-bottom:4px;font-size:28px;font-weight:700}
body[data-report-layout="urbs"] .page-heading p{font-size:14px;line-height:1.4}
body[data-report-layout="urbs"] .orange-tag{padding:4px 8px;font-size:11px}
body[data-report-layout="urbs"] .reports-panel{border-radius:8px}
body[data-report-layout="urbs"] .panel-heading{padding:12px 16px}
body[data-report-layout="urbs"] .catalog th{padding:10px 14px}
body[data-report-layout="urbs"] .catalog td{padding:12px 14px}
body[data-report-layout="urbs"] .catalog-foot{padding:10px 14px}
body[data-report-layout="urbs"] .generation-status{margin:10px 0}
body[data-report-layout="urbs"] .report-toolbar{padding:10px 0;gap:12px}
body[data-report-layout="urbs"] .report-toolbar h2{font-size:22px;font-weight:700}
body[data-report-layout="urbs"] .paper{padding:16px 20px;margin-bottom:12px}
body[data-report-layout="urbs"] :is(.paper-header,.template-header){margin-bottom:14px;padding-bottom:12px}
body[data-report-layout="urbs"] .vehicle-block{margin-bottom:18px}
body[data-report-layout="urbs"] .schedule-table :is(th,td){padding:6px 10px}
body[data-report-layout="urbs"] footer{margin-top:16px;padding:12px 0}
body[data-report-layout="blocks"] :is(.metrics,.service-switch,.service-summary){margin:12px 0}
body[data-report-layout="blocks"] :is(.filters,.service-switch){padding:12px;gap:10px 14px}
body[data-report-layout="blocks"] .metric{padding:10px 14px}
body[data-report-layout="blocks"] :is(.filters,.service-switch) select,body[data-report-layout="blocks"] .filters input[type=search]{height:36px;min-height:36px;padding:6px 10px;font-size:14px}
body[data-report-layout="blocks"] .service-switch p{margin-bottom:0}
body[data-report-layout="blocks"] .results{margin:10px 0 8px}
body[data-report-layout="blocks"] .block{margin-bottom:12px}
body[data-report-layout="blocks"] .block-head{padding:10px 12px}
body[data-report-layout="blocks"] .block-metrics{padding:7px 12px;gap:14px}
body[data-report-layout="blocks"] :is(th,td){padding:6px 8px}
body[data-report-layout="blocks"] .notes{padding:12px;margin-top:14px}
body:is([data-report-layout="energy"],[data-report-layout="drivers"]) :is(.context-line,.metrics){margin:10px 0}
body:is([data-report-layout="energy"],[data-report-layout="drivers"]) .filter-bar{padding:12px;gap:12px}
body:is([data-report-layout="energy"],[data-report-layout="drivers"]) .filter-bar :is(select,input){height:36px}
body:is([data-report-layout="energy"],[data-report-layout="drivers"]) .metrics{padding:10px 0}
body:is([data-report-layout="energy"],[data-report-layout="drivers"]) .metrics>div{padding:0 14px}
body:is([data-report-layout="energy"],[data-report-layout="drivers"]) :is(th,td){padding:7px 10px}
body:is([data-report-layout="energy"],[data-report-layout="drivers"]) .detail-row>td{padding:0}
body:is([data-report-layout="energy"],[data-report-layout="drivers"]) :is(.block-detail,.driver-detail,.insight-card,.insight-review){padding:12px}
body[data-report-layout="energy"] .insight-cards{gap:10px}
body[data-report-layout="energy"] .insight-scope{margin:8px 0 10px}
body[data-report-layout="energy"] .insight-card p{margin-top:6px}
body[data-report-layout="drivers"] .driver-assignment-cards{gap:10px}
body[data-report-layout="drivers"] .driver-assignment-card{padding:12px}
body[data-report-layout="drivers"] .driver-assignment-card header{margin-bottom:10px}
body[data-report-layout="drivers"] .driver-journey{gap:14px}
body[data-report-layout="drivers"] .driver-journey p{margin:6px 0}
body[data-report-layout="drivers"] .driver-section-status{margin-top:10px;padding-top:10px}
body:is([data-report-layout="node"],[data-report-layout="node-original"]) .filter-card{padding:10px 12px}
body:is([data-report-layout="node"],[data-report-layout="node-original"]) .filters{gap:8px 12px}
body:is([data-report-layout="node"],[data-report-layout="node-original"]) .schedule-summary{margin-top:6px}
body:is([data-report-layout="node"],[data-report-layout="node-original"]) .panel{margin:8px 0}
body[data-report-layout="node"] .section-heading{padding:10px 12px 6px}
body[data-report-layout="node"] .comparison{padding:10px;margin-top:4px}
body[data-report-layout="tips"] .scope{padding:8px 12px;margin-bottom:10px;gap:10px}
body[data-report-layout="tips"] .workspace{gap:12px}
body[data-report-layout="tips"] .settings summary{padding:10px 12px}
body[data-report-layout="tips"] .fields{padding:0 12px 12px;gap:10px}
body[data-report-layout="tips"] :is(.fields,.settings-bottom) :is(input:not([type=checkbox]),select){min-height:36px;height:36px;padding:6px 9px}
body[data-report-layout="tips"] .settings-bottom{padding:10px 12px}
body[data-report-layout="tips"] .export-actions>button,body[data-report-layout="tips"] .download-menu>button{min-height:36px;padding:6px 12px}
}
@media screen and (min-width:800px){
body[data-report-layout="sjc-oso"] .selection-fields{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
}
@media screen and (min-width:1100px){
body[data-report-layout="sjc-oso"] .selection-fields{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr) auto}
body[data-report-layout="sjc-oso"] .control-actions{grid-column:3;grid-row:1;padding-top:24px}
body[data-report-layout="sjc-oso"] #saturday-control{grid-column:1/3}
}
@media screen and (max-width:900px){
body[data-report-layout="urbs"] .scenario-bar{grid-template-columns:minmax(0,1fr) auto 36px;gap:8px}
body[data-report-layout="urbs"] .scenario-control{grid-column:1/-1;flex-direction:row;align-items:center}
body[data-report-layout="urbs"] .scenario-bar #open-scenario{grid-column:1;grid-row:2;width:auto;justify-self:start;order:0}
body[data-report-layout="urbs"] .published-badge{grid-column:2;grid-row:2;order:0;border:0;padding:0}
body[data-report-layout="urbs"] #refresh-scenarios{grid-column:3;grid-row:2;align-self:center}
}
@media screen and (max-width:600px){
body[data-report-layout="urbs"] .topbar :is(.brand-divider,.workspace-name,.portal-urbs-logo){display:none}
body[data-report-layout="urbs"] .topbar form{margin-left:auto}
body[data-report-layout="urbs"] .scenario-bar{padding:8px 12px}
body[data-report-layout="urbs"] .page-heading h1{font-size:24px}
}
@media screen and (max-width:700px){
body[data-report-layout]>:is(header,.portal-nav){padding:8px 12px;gap:12px}
body[data-report-layout]>main{padding:12px}
body[data-report-layout="urbs"]>main{padding:0}
body[data-report-layout="urbs"] .content{padding:12px}
body[data-report-layout] :is(.heading,.intro,.report-heading,.workspace-head) h1{font-size:24px}
body[data-report-layout^="sjc-"] .control-footer{gap:8px}
body[data-report-layout="sjc-infobus"] #programs>label{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start}
body[data-report-layout="sjc-infobus"] #programs input[type=date]{grid-column:2;margin-left:0}
}
@media screen and (pointer:coarse){
body[data-report-layout]{--control-height:44px}
body[data-report-layout^="sjc-"] button,body[data-report-layout^="sjc-"] .controls select,body[data-report-layout="sjc-infobus"] input:not([type=checkbox]){min-height:44px;height:44px}
body[data-report-layout="sjc-oso"] #scenario-list label{min-height:44px}
body[data-report-layout="sjc-oso"] .control-actions #refresh{width:44px;min-width:44px}
}

/* Workspace themes only. Document previews and printed/exported layouts retain their own palettes. */
@media screen {
html[data-portal-theme]{color-scheme:dark}
html[data-portal-theme][data-theme=light]{color-scheme:light;--bg:#f2f5f8;--surface:#fff;--raised:#e8eef3;--top:#162131;--ink:#203548;--muted:#526779;--line:#cbd6df;--panel:#fff;--teal:#244d73;color:#203548;background:#f2f5f8}
html[data-portal-theme][data-theme=light] body{color:#203548;background:#f2f5f8}
html[data-portal-theme] .heading :is(#energy-theme,#driver-theme){display:none}
html[data-portal-theme] body>:is(header,.portal-nav){background:#162131;color:#edf2f8}
html[data-portal-theme] body>:is(header,.portal-nav) a{color:#edf2f8}
html[data-portal-theme] body>:is(header,.portal-nav) form button{background:transparent;color:#edf2f8}
/* SJC: controls and supporting configuration. Printed previews are in separate documents. */
html[data-theme=light] body[data-report-layout^="sjc-"] :is(.controls,.card,details){background:#fff;color:#203548;border-color:#cbd6df;box-shadow:none}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(select,input,textarea,button:not(.portal-theme-toggle)){color:#203548;background-color:#fff;border-color:#94a8ba;color-scheme:light}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(input,textarea)::placeholder{color:#657889}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(label,legend,.scenario-title,.day h2,.intro h1){color:#203548}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(.heading p,.intro p,.hint,.coverage,.notice,.field-help,.selection-summary,.scenario-id,.back,#message,#config-status,.route-card small){color:#526779}
html[data-theme=light] body[data-report-layout^="sjc-"] .eyebrow{color:#244d73}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(.control-footer,.day){background:#f6f8fa;border-color:#d6e0e8}
html[data-theme=light] body[data-report-layout^="sjc-"] #scenario-list label{background:#f6f8fa;border-color:#cbd6df}
html[data-theme=light] body[data-report-layout^="sjc-"] #scenario-list label:has(input:checked){background:#e7eef5;border-color:#8ca6bf}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(.day-badge,.scenario-day,.tag,#coverage){background:#e7eef5;color:#244d73;border-color:#8ca6bf}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(.route-card,.actions,.label-row){border-color:#cbd6df}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(button.primary,#generate,#download){background:#244d73;color:#fff;border-color:#244d73}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(button.primary,#generate,#download):hover{background:#1a3854}
html[data-theme=light] body[data-report-layout^="sjc-"] #message.error{color:#ad293e}
html[data-theme=light] body[data-report-layout^="sjc-"] .select-wrap:after{border-color:#526779}
/* Catalog and URBS. */
html[data-theme=light] body[data-report-layout=catalog] :is(article,.client-card){background:#fff;border-color:#cbd6df;color:#203548}
html[data-theme=light] body[data-report-layout=catalog] :is(p,.tenant,.formats,.client-card-footer){color:#526779}
html[data-theme=light] body[data-report-layout=catalog] :is(.client-directory,.directory-main){background:#f2f5f8}
html[data-theme=light] body[data-report-layout=catalog] :is(input,select){background:#fff;color:#203548;border-color:#94a8ba}
html[data-theme=light] body[data-report-layout=catalog] .client-card:hover{background:#f3f6fa;border-color:#244d73}
html[data-theme=light] body[data-report-layout=urbs] :is(.scenario-bar,.reports-panel,.paper:not(.interval-paper),.catalog-foot){background:#fff;color:#203548;border-color:#cbd6df}
html[data-theme=light] body[data-report-layout=urbs] :is(.panel-heading,.catalog th,.schedule-table th){background:#e8eef3;color:#203548;border-color:#cbd6df}
html[data-theme=light] body[data-report-layout=urbs] :is(.catalog td,.schedule-table td,.paper-header,.template-header,.route-label,.interval-row){border-color:#cbd6df}
html[data-theme=light] body[data-report-layout=urbs] :is(.catalog td:nth-child(2),.vehicle-block p,.interval-key,.intervals,.catalog-foot,.generation-status,.scenario-context,.published-badge){color:#526779}
html[data-theme=light] body[data-report-layout=urbs] .schedule-table tr:nth-child(even) td{background:#f1f5f8}
html[data-theme=light] body[data-report-layout=urbs] :is(select,.secondary,.icon-button,.generate-report){background:#fff;color:#203548;border-color:#94a8ba;color-scheme:light}
html[data-theme=light] body[data-report-layout=urbs] :is(.badge,.report-id){background:#e8eef3;color:#314c61;border-color:#a7b7c5}
html[data-theme=light] body[data-report-layout=urbs] :is(.data-notes,.badge.pending,.generation-status.error){background:#fff3df;color:#85510b;border-color:#c79b54}
/* Trip Through Node: preserve the Original Format table and its selection colours. */
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(button,input,select,#depot-options label){background:#fff;color:#203548;border-color:#94a8ba;color-scheme:light}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(.primary){background:#244d73;color:#fff;border-color:#244d73}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(.comparison,.selection-comparison){background:#e7eef5;color:#203548;border-color:#8ca6bf}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(#node-options,#bay-options){background:#fff;color:#203548;border-color:#94a8ba}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(#node-options,#bay-options) button:hover{background:#e7eef5}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(#node-options,#bay-options) button small{color:#526779}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(.reading summary,.table-tools,.pager,.count){color:#526779}
html[data-theme=light] body[data-report-layout=node] :is(th,.count,.column-settings>span){background:#e8eef3;border-color:#cbd6df}
html[data-theme=light] body[data-report-layout=node] td{color:#203548;border-color:#d6e0e8}
html[data-theme=light] body[data-report-layout=node] tbody tr:nth-child(even){background:#f3f6f9}
html[data-theme=light] body[data-report-layout=node] tbody tr.selectable:hover{background:#e6f0f4}
html[data-theme=light] body[data-report-layout=node] tbody tr.selected{background:#dbe8f4}
html[data-theme=light] body[data-report-layout=node] tbody tr.current{background:#dbeaf7}
/* TransLink reports that were originally light: dark workspace, intact document artwork. */
html[data-theme=dark] body:is([data-report-layout=blocks],[data-report-layout=tips]){color:#edf2f8;background:#0b1220;--line:#384b61;--blue:#73d8c5;--navy:#162131}
html[data-theme=dark] body:is([data-report-layout=blocks],[data-report-layout=tips]) :is(.metric,.filters,.service-switch,.service-summary,.block,.settings,.settings-bottom,.scope,.notes,.messages,.map-settings){background:#162131;color:#edf2f8;border-color:#384b61;box-shadow:none}
html[data-theme=dark] body:is([data-report-layout=blocks],[data-report-layout=tips]) :is(input,select,textarea,button,.button){background-color:#0e192a;color:#edf2f8;border-color:#52677d;color-scheme:dark}
html[data-theme=dark] body:is([data-report-layout=blocks],[data-report-layout=tips]) :is(.heading p,.metric span,.service-switch p,.service-summary,.results,.block-metrics,.notes,.settings small,.scope p,.scope span,.fields label,.setting-hint){color:#b6c5d5}
html[data-theme=dark] body[data-report-layout=blocks] :is(.block-head,th,.block-metrics){background:#203047;color:#edf2f8;border-color:#384b61}
html[data-theme=dark] body[data-report-layout=blocks] td{color:#edf2f8;border-color:#384b61}
html[data-theme=dark] body[data-report-layout=blocks] tbody tr:nth-child(even){background:#1b2a3c}
html[data-theme=dark] body[data-report-layout=blocks] :is(.deadhead,.deadhead td){background:#263144;color:#c6d2df}
html[data-theme=dark] body[data-report-layout=tips] :is(.settings summary,.settings-bottom){background:#203047;color:#edf2f8;border-color:#384b61}
html[data-theme=dark] body[data-report-layout=tips] .preview-area{background:#0b1220}
html[data-theme=light] body:is([data-report-layout=energy],[data-report-layout=drivers]){background:var(--page-bg);color:var(--ink)}
html[data-portal-theme][data-theme=dark]{background:#0b1220;color:#edf2f8}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(.resultbar p,#status,#metadata-status,#selection-summary,details p,.empty){color:#526779}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(.heading,.intro) .eyebrow{color:#244d73}
html[data-theme=light] body[data-report-layout^="sjc-"] .error{color:#ad293e!important}
html[data-theme=light] body[data-report-layout^="sjc-"] summary::marker{color:#244d73}
html[data-theme=light] body[data-report-layout^="sjc-"] :is(button:hover:enabled,input::file-selector-button){background:#e8eef3;color:#203548;border-color:#94a8ba}
html[data-theme=light] body[data-report-layout="sjc-resumo"] select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526779' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
html[data-theme=dark] body[data-report-layout=blocks] :is(.index,.empty){background:#162131;border-color:#384b61;color:#edf2f8}
html[data-theme=dark] body[data-report-layout=blocks] :is(.subtitle,.snapshot-note,.block-head p,.block-metrics b,.node .node-name,.deadheads summary,.notes p,.notes li,.glossary b,.footer){color:#b6c5d5}
html[data-theme=dark] body[data-report-layout=blocks] :is(.eyebrow,.line-cell,.index-links a){color:#73d8c5}
html[data-theme=dark] body[data-report-layout=blocks] .metrics{background:#162131;border-color:#384b61}
html[data-theme=dark] body[data-report-layout=tips] :is(.stop-results-panel,.stop-results-panel>.help,.selected-stop,.download-options,.coverage,.warnings,.format-tag){background:#203047;color:#b6c5d5;border-color:#384b61}
html[data-theme=dark] body[data-report-layout=tips] :is(.workspace-head p,.help,.selected-stop>span,.download-options small,.coverage summary,.settings summary>span,.scope strong){color:#b6c5d5}
html[data-theme=dark] body[data-report-layout=tips] :is(.stop-option:hover,.stop-option.active){background:#284d50}
html[data-portal-theme] body[data-report-layout]>:is(header,.portal-nav) :is(.back,.client-name){color:#b6c5d5}
html[data-portal-theme] body[data-report-layout]>:is(header,.portal-nav) form button:not(.portal-theme-toggle){background:transparent;color:#edf2f8;border-color:#64748b}

html[data-theme=light] body[data-report-layout=urbs] main{background:#f2f5f8}
html[data-theme=light] body[data-report-layout=urbs] .rail{background:#e8eef3;border-color:#cbd6df}
html[data-theme=light] body[data-report-layout=urbs] .rail-link{color:#314c61}
html[data-theme=light] body[data-report-layout=urbs] .rail-link.active{background:#fff;border-color:#94a8ba}
html[data-theme=light] body[data-report-layout=catalog] :is(.reports,li){background:#fff;border-color:#cbd6df}
html[data-theme=light] body[data-report-layout=catalog] :is(li,.client-search,.directory-totals span,.client-report-count,.client-report-count strong){color:#526779}
html[data-theme=light] body[data-report-layout=catalog] :is(.number,.report-name,.tenant-label){color:#244d73}
html[data-theme=light] body[data-report-layout=catalog] .open{background:#244d73;border-color:#244d73;color:white}

/* Shared readable states; kept outside report sources and print styles. */
html[data-theme=light] body[data-report-layout] {--mint:#244d73;--teal:#244d73;--orange:#244d73;--blue:#244d73}
html[data-theme=light] body[data-report-layout] :is(button,a,input,select,textarea,summary):focus-visible{outline-color:#244d73}
html[data-theme=light] body[data-report-layout] input:is([type=checkbox],[type=radio]){accent-color:#244d73}
html[data-theme=light] body[data-report-layout] :is(input,textarea)::placeholder{color:#657889;opacity:1}
html[data-theme=light] body[data-report-layout] :is(input,select,textarea):disabled{opacity:1;background-color:#eef2f6;color:#526779;border-color:#cbd6df}
html[data-theme=light] body[data-report-layout^="sjc-"] .empty{background:#f1f5f9;border-color:#cbd6df}
html[data-portal-theme] body[data-report-layout]>:is(header,.portal-nav) .back{color:#d8e1eb!important}
html[data-theme=light] body[data-report-layout=urbs] :is(footer,.rail-caption){color:#526779}
html[data-theme=light] body[data-report-layout=urbs] :is(.primary,.button-link.primary){background:#244d73;border-color:#244d73;color:#fff}
html[data-theme=light] body[data-report-layout=urbs] :is(.page-message,.schedule-pending){color:#85510b}
html[data-theme=light] body[data-report-layout=urbs] .interval-paper{border-top-color:#244d73}
html[data-theme=light] body[data-report-layout=catalog] :is(.client-breadcrumb a,.client-card-footer span,.report-name:hover){color:#244d73}
html[data-theme=light] body[data-report-layout=blocks] .footer{color:#526779}
html[data-theme=light] body[data-report-layout=tips] .settings summary>span{color:#526779}
html[data-theme=light] body:is([data-report-layout=energy],[data-report-layout=drivers]) :is(.eyebrow,.block-select[aria-expanded=true],.driver-trip-stops summary,.insight-link){color:#244d73}
html[data-theme=light] body:is([data-report-layout=energy],[data-report-layout=drivers]) .block-select[aria-expanded=true] .chevron{color:#244d73;background:#e7eef5;border-color:#8ca6bf}
html[data-theme=light] body:is([data-report-layout=energy],[data-report-layout=drivers]) .operational-summary{--insight-accent:#244d73;--route-bar:#6a819b;--depot-bar:#244d73}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(.count,.column-settings>span){background:#e8eef3;color:#203548}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(.overview-tabs,.bus-summary){background:#e8eef3;color:#203548;border-color:#a7b7c5}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) .overview-tab[aria-selected=true]{background:#dbe8f4;color:#244d73}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(.bus-count-main,.bus-count-detail p:last-child,.bus-count-scope,.overview-toggle:has(input:checked)){color:#203548}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(#message,.status-pending){color:#85510b}
html[data-theme=light] body[data-report-layout=node] .comparison-panes td.time-anchor{background:#f1f5f9;color:#203548}
html[data-theme=light] body[data-report-layout=node] :is(tr.scheduled,tr.scheduled td.time-anchor,.scheduled-label){background:#fff0d5;color:#70430b}
html[data-theme=light] body[data-report-layout=node] :is(tr.alternative,tr.alternative td.time-anchor,.alternative-label){background:#e0efe5;color:#215438}
html[data-theme=light] body[data-report-layout=node] .scheduled .row-label{color:#70430b}
html[data-theme=light] body[data-report-layout=node] :is(.alternative .row-label,.change-less){color:#215438}
html[data-theme=light] body[data-report-layout=node] .change-more{color:#70430b}
html[data-theme=light] body[data-report-layout=node] .comparison-panes tr:is(.candidate-selectable:hover,.candidate-selected){background:#cfe3d6}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) #node-options button.active{background:#dbe8f4}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(#node-options,#bay-options) button:disabled{color:#526779;background:#eef2f6}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) :is(#node-options,#bay-options) button:disabled small{color:#70430b}
html[data-theme=dark] body[data-report-layout="sjc-infobus"] :is(.table-scroll,td){background:#162131;color:#edf2f8;border-color:#384b61}
html[data-theme=dark] body[data-report-layout="sjc-infobus"] th{background:#203047;color:#edf2f8;border-color:#52677d}
html[data-theme=dark] body[data-report-layout="sjc-infobus"] tbody tr:nth-child(even) td{background:#1b2a3c}

html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) .selection-summary :is(strong,.summary-value){color:#203548}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) .selection-summary .summary-label{color:#526779}
html[data-theme=light] body:is([data-report-layout=node],[data-report-layout=node-original]) .selection-summary .current-flag{color:#70430b}
html[data-theme=light] body[data-report-layout="sjc-resumo"] #day-tabs [aria-selected=true]{background:#244d73;border-color:#244d73;color:#fff}
html[data-theme=light] body[data-report-layout="sjc-resumo"] button[type=submit]{background:#244d73;border-color:#244d73;color:#fff}

html[data-theme=light] body[data-report-layout=urbs] :is(.skip-link,.orange-tag){color:#fff}

html[data-theme=dark][data-portal-theme]{--bg:#0b1220;--surface:#162131;--raised:#203047;--panel:#162131;--ink:#edf2f8;--muted:#b6c5d5;--line:#384b61}
html[data-theme=dark] body[data-report-layout]{background:#0b1220;color:#edf2f8}
html[data-theme=dark] body[data-report-layout] :is(input,select,textarea):disabled{opacity:1;background-color:#203047;color:#b6c5d5;border-color:#52677d}
html[data-theme=dark] body[data-report-layout=catalog] :is(article,.client-card,.reports){background:#162131;border-color:#384b61}
html[data-theme=dark] body[data-report-layout=catalog] .client-directory{background:#0b1220}
html[data-theme=dark] body[data-report-layout=urbs] main{background:#0b1220}
html[data-theme=dark] body[data-report-layout=tips] .band-layout-toggle{background:#162131;border-color:#52677d}
html[data-theme=dark] body[data-report-layout=tips] .band-layout-toggle span{background:#162131;color:#b6c5d5}
html[data-theme=dark] body[data-report-layout=tips] .band-layout-toggle input:checked+span{background:#203047;color:#edf2f8}
html[data-theme=light] body[data-report-layout=energy] :is(.cc-segment:not(.cc-over):not(.cc-at),.route-charge){color:#071522;border-color:#526779}

html[data-theme=light] body[data-report-layout="sjc-oso"] #scenario-list input:checked{background:#244d73;border-color:#244d73}
html[data-theme=light] body[data-report-layout="sjc-oso"] #scenario-list input:checked:after{border-color:#fff}
html[data-theme=light] body[data-report-layout="sjc-oso"] :is(legend small,.selection-status,.line-description){color:#526779}
html[data-theme=light] body[data-report-layout="sjc-oso"] #scenario-list :is(label.unavailable,small){color:#526779}

/* URBS controls and report tables share the portal palette on screen. */
html[data-theme=light] body[data-report-layout=urbs] #scenario-selector{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23526779' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
html[data-theme=light] body[data-report-layout=urbs] .generate-report:enabled{background:#244d73;border-color:#244d73;color:#fff}
html[data-theme=light] body[data-report-layout=urbs] :is(.generate-report,.primary):enabled:hover{background:#1a3854;color:#fff}
html[data-theme=light] body[data-report-layout=urbs] :is(.secondary,.icon-button):enabled:hover{background:#e8eef3;color:#203548}
html[data-theme=light] body[data-report-layout=urbs] button:disabled{opacity:1;background:#eef2f6;color:#526779;border-color:#cbd6df;cursor:not-allowed}
html[data-theme=light] body[data-report-layout=urbs] footer{border-color:#cbd6df}
html[data-theme=light] body[data-report-layout=urbs] .interval-paper .interval-row:nth-child(even){background:#f1f5f8}
html[data-theme=dark] body[data-report-layout=urbs]{--orange:#73d8c5}
html[data-theme=dark] body[data-report-layout=urbs] :is(.rail,.scenario-bar,.reports-panel,.paper,.catalog-foot){background:#162131;color:#edf2f8;border-color:#384b61}
html[data-theme=dark] body[data-report-layout=urbs] :is(.panel-heading,.catalog th,.schedule-table th,.rail-link.active){background:#203047;color:#edf2f8;border-color:#52677d}
html[data-theme=dark] body[data-report-layout=urbs] :is(.catalog td,.schedule-table td,.template-header,.interval-meta,.interval-paper .route-label,.interval-paper .interval-row,footer){border-color:#384b61}
html[data-theme=dark] body[data-report-layout=urbs] :is(.catalog td:nth-child(2),.vehicle-block p,.catalog-foot,.generation-status,.published-badge,.rail-caption,footer,.interval-paper .route-label,.interval-paper .intervals){color:#b6c5d5}
html[data-theme=dark] body[data-report-layout=urbs] :is(select,.secondary,.icon-button){background-color:#0e192a;color:#edf2f8;border-color:#52677d}
html[data-theme=dark] body[data-report-layout=urbs] :is(.secondary,.icon-button):enabled:hover{background:#203047}
html[data-theme=dark] body[data-report-layout=urbs] :is(.generate-report,.primary):enabled{background:#73d8c5;color:#102b30;border-color:#73d8c5}
html[data-theme=dark] body[data-report-layout=urbs] :is(.generate-report,.primary):enabled:hover{background:#96e5d6}
html[data-theme=dark] body[data-report-layout=urbs] button:disabled{opacity:1;background:#203047;color:#b6c5d5;border-color:#52677d;cursor:not-allowed}
html[data-theme=dark] body[data-report-layout=urbs] :is(.badge,.report-id){background:#203047;color:#d5e2ed;border-color:#52677d}
html[data-theme=dark] body[data-report-layout=urbs] :is(.data-notes,.badge.pending,.generation-status.error){background:#3c2d1a;color:#ffdda6;border-color:#9b763e}
html[data-theme=dark] body[data-report-layout=urbs] :is(.schedule-table tr:nth-child(even) td,.interval-paper .interval-row:nth-child(even)){background:#1b2a3c}
html[data-theme=dark] body[data-report-layout=urbs] .interval-paper .departures{color:#edf2f8}
html[data-theme=dark] body[data-report-layout=urbs] .interval-paper{border-top-color:#73d8c5}
html[data-theme=dark] body[data-report-layout=urbs] .report-brand img{background:#fff;border-radius:4px;padding:4px}
}

.portal-theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;flex-shrink:0;width:auto!important;min-height:32px!important;height:32px!important;padding:5px 9px!important;border:1px solid #64748b!important;border-radius:7px!important;background:#162131!important;color:#edf2f8!important;font:500 12px/20px Arial,Helvetica,sans-serif!important;cursor:pointer;white-space:nowrap}
.portal-theme-toggle:hover{border-color:#d2e2f2!important}.portal-theme-toggle:focus-visible{outline:3px solid #d2e2f2;outline-offset:3px}
.portal-theme-track{display:inline-flex;align-items:center;width:27px;height:16px;padding:2px;border-radius:10px;background:#64748b}.portal-theme-track>span{display:block;width:12px;height:12px;border-radius:50%;background:#fff;transform:translateX(0)}
.portal-theme-toggle[aria-checked=true] .portal-theme-track{background:#244d73}.portal-theme-toggle[aria-checked=true] .portal-theme-track>span{transform:translateX(11px)}
@media screen and (max-width:520px){.portal-theme-toggle{gap:5px;padding:5px 7px!important}}
@media print{.portal-theme-toggle{display:none!important}}
.brand.portal-brand,.login-top>a{display:inline-flex;align-items:center;flex-shrink:0;line-height:1}.brand.portal-brand>img,.login-top>a>img{display:block;width:116px;height:auto;max-width:none;object-fit:contain}@media(max-width:520px){.brand.portal-brand>img,.login-top>a>img{width:100px}}