/* app.css */
:root{--navy:#1e2d3a;--navy2:#14212d;--yellow:#ebd01c;--muted:#647784;--line:#dbe3e8;--paper:#f3f6f7;--red:#bd3346;--teal:#177466}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--navy);font:14px system-ui,Arial,sans-serif}header{height:88px;background:var(--navy);color:white;display:flex;align-items:center;gap:42px;padding:0 34px;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:15px;color:white;text-decoration:none}.brand img{width:67px;height:67px;object-fit:contain}.brand b{font-size:24px;letter-spacing:-.7px}.brand small{display:block;font-size:8px;letter-spacing:1.6px;color:var(--yellow);margin-top:5px}nav{display:flex;gap:8px}nav[hidden]{display:none}button{cursor:pointer;font:inherit;border:1px solid var(--line);border-radius:7px;background:white;color:var(--navy);padding:9px 14px}button:disabled{cursor:not-allowed;opacity:.55}nav button{border:none;background:transparent;color:#c3cdd4}nav button.active{background:#344650;color:white}#identity{margin-left:auto;font-size:12px;display:flex;gap:16px;align-items:center}#identity button{background:transparent;color:white;border-color:#536570}main{max-width:1450px;margin:auto;padding:30px 34px 70px}h1{font-size:32px;line-height:1.2;letter-spacing:-1px;margin:9px 0 10px}h2{font-size:19px;letter-spacing:-.3px;margin:0 0 18px}p{line-height:1.6;color:var(--muted)}small,.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2px;color:#72828c;font-weight:750}.topline{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.topline p{margin:0}.primary{background:var(--yellow);border-color:var(--yellow);font-weight:650}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:23px}.login{max-width:470px;margin:60px auto}label{display:block;font-size:12px;font-weight:650;margin-bottom:15px}input,select,textarea{display:block;width:100%;padding:11px 12px;border:1px solid #b7c5cf;border-radius:6px;font:14px system-ui;color:var(--navy);margin-top:6px;background:white}input[type=checkbox]{display:inline;width:auto;margin-right:8px}textarea{min-height:80px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:23px}.stat{padding:17px 20px;border-radius:9px;background:white;border:1px solid var(--line)}.stat b{font-size:31px;display:block;margin-top:7px}.stat small{font-size:12px}.fleet-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);gap:20px}.mapbox{padding:0;overflow:hidden;min-height:440px}.panel-title{padding:20px 23px 0;display:flex;justify-content:space-between;align-items:center}.panel-title h2{margin:0}.mapbox svg{width:100%;height:auto;display:block}.state{fill:#e8edf0;stroke:#fff;stroke-width:1.1}.state:hover{fill:#dce4e9}.pin{cursor:pointer;stroke:white;stroke-width:3}.pin:hover{stroke:var(--navy);stroke-width:4}.pin-label{font:11px system-ui;fill:var(--navy);paint-order:stroke;stroke:white;stroke-width:4px;stroke-linejoin:round;pointer-events:none}.mapnote{padding:0 23px 17px;font-size:11px;color:var(--muted)}.asset-list{display:grid;gap:12px;align-content:start}.asset{display:block;text-align:left;padding:20px;background:white;border:1px solid var(--line);border-radius:10px;width:100%}.asset:hover{border-color:#8c9da9;box-shadow:0 3px 10px #1e2d3a09}.asset .title{display:flex;justify-content:space-between;gap:10px;align-items:center}.asset h3{font-size:15px;margin:0}.asset .site{font-size:12px;margin:7px 0 16px;color:var(--muted)}.badge{display:inline-block;padding:4px 8px;background:#eef2f5;color:#546774;border-radius:4px;font-size:10px;font-weight:700;white-space:nowrap}.badge.Reporting{background:#deefe9;color:#146454}.badge.Trip,.badge.offline{background:#f9e3e5;color:#a42739}.badge.Warning{background:#fff0d5;color:#80540e}.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mini-grid small{font-size:10px;display:block}.mini-grid b{display:block;margin-top:4px;font-size:15px}.filters{display:flex;gap:12px;align-items:center;margin:20px 0}.filters input{max-width:330px;margin:0}.filters select{width:180px;margin:0}.empty{padding:35px;text-align:center;color:var(--muted)}.back{margin-bottom:20px;padding-left:0;background:none;border:none;color:#52717e}.detail-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.metric{border-left:3px solid #d8e0e5;padding:10px 14px;background:#f7f9fa;border-radius:4px}.metric small{font-size:11px;display:block}.metric b{font-size:24px;display:block;margin:7px 0}.metric span{font-size:10px;color:var(--muted)}.section{margin-top:22px}.tabs{display:flex;gap:8px;margin:24px 0 18px}.tabs button.active{background:var(--navy);color:white;border-color:var(--navy)}.range{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.range label{margin:0}.range input{width:220px}.charts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.chart{padding:20px;border:1px solid var(--line);border-radius:9px}.chart h3{font-size:13px;margin:0 0 8px}.chart svg{width:100%;height:190px}.chart path{fill:none;stroke-width:2}.chart .axis{stroke:#dce4e9;stroke-width:1}.chart text{font:10px system-ui;fill:#657986}.chart-legend{font-size:11px;color:var(--muted)}.notice{border-left:3px solid var(--yellow);padding:13px 17px;background:#faf9ef;line-height:1.6;font-size:12px;margin:15px 0}.error{border-color:var(--red);background:#fff0f0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{color:var(--muted);font-weight:600;background:#f7f9fa;white-space:nowrap}td,th{padding:13px 12px;border-bottom:1px solid var(--line)}td{max-width:400px;overflow-wrap:anywhere}td button{font-size:11px;padding:6px 10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .wide{grid-column:1/-1}.form-grid label{margin:0}.actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;padding:14px 22px;border-radius:8px;z-index:100;display:none;max-width:80vw}dialog{border:1px solid var(--line);border-radius:14px;padding:30px;max-width:650px;width:90vw;color:var(--navy)}dialog::backdrop{background:#16212c88}.close{position:absolute;right:12px;top:10px;border:none;font-size:24px;padding:3px 9px}pre{white-space:pre-wrap;word-break:break-all;background:#f1f4f6;padding:14px;border-radius:7px;font-size:12px}.checklist{max-height:190px;overflow:auto;border:1px solid var(--line);border-radius:5px;padding:12px}.checklist label{margin:5px 0;font-weight:400}.pill-row{display:flex;gap:10px;flex-wrap:wrap}.danger{color:var(--red);border-color:#e4b4bc}a{color:#286d82}#login-error{color:var(--red)}.caption{font-size:11px;color:var(--muted);line-height:1.5}@media(max-width:1000px){header{gap:20px;padding:0 18px}main{padding:24px 18px}.fleet-grid,.detail-grid{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(3,1fr)}.asset-list{grid-template-columns:1fr 1fr}nav{gap:0}nav button{padding:9px}}@media(max-width:660px){header{height:auto;min-height:85px;flex-wrap:wrap;padding:12px 16px;gap:12px}.brand img{width:48px;height:48px}.brand b{font-size:20px}nav{order:3;width:100%}#identity{font-size:10px}.stats,.charts,.asset-list,.form-grid{grid-template-columns:1fr 1fr}.stats{gap:8px}.stat{padding:13px}.stat b{font-size:24px}.metrics{grid-template-columns:1fr 1fr}.charts,.form-grid{grid-template-columns:1fr}.topline{align-items:start}h1{font-size:26px}.filters{flex-wrap:wrap}.asset-list{grid-template-columns:1fr}.mini-grid b{font-size:13px}.panel{padding:17px}.mapbox{padding:0;min-height:300px}.range input{width:190px}nav button{font-size:12px}}

/* trends.css */
.source-toolbar{max-width:1450px;margin:auto;padding:14px 34px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dbe3e8;background:#eaf0f3}.source-toolbar>div:first-child{display:flex;align-items:center;gap:22px}.source-toolbar label{margin:0;min-width:210px}.source-toolbar p{margin:0;font-size:12px;max-width:570px}.simulation-mode{background:#fff4d2;border-bottom-color:#dfc879}.sim-tag{display:block;color:#9b6e04!important;font-size:9px!important;letter-spacing:1px;margin-top:5px}.series-picker{border:1px solid #c6d2d9;background:#f8fafb;border-radius:8px;padding:12px 16px;margin:16px 0}.series-picker summary{cursor:pointer;font-weight:650}.series-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-top:18px}.series-options label{margin:0;font-size:13px;font-weight:500}.series-options small{font-weight:400}.trend-legend{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.legend-chip{display:flex;align-items:center;gap:7px;font-size:12px;padding:8px 10px;border-radius:20px}.legend-chip:hover{background:#eef4f6}.swatch{width:20px;height:8px;flex-shrink:0}.combined-chart{overflow-x:auto;background:white;border:1px solid #e0e7eb;border-radius:9px}.combined-chart>svg{width:100%;min-width:660px;display:block}.plot-background{fill:#f8fafb}.trend-grid{stroke:#dee7eb;stroke-width:1}.axis-text{font:11px system-ui;fill:#647784}.combined-chart [data-event]{cursor:pointer}.combined-chart [data-event]:hover circle{fill:#881f35}.trend-ranges{display:flex;gap:12px;flex-wrap:wrap;padding:14px 0}.trend-ranges>div{background:#eef3f5;border-radius:6px;padding:9px 14px;min-width:145px;font-size:12px;display:grid;gap:3px}.trend-ranges small{font-size:10px}.cursor-readings{border-left:3px solid #238379;background:#f2f8f7;padding:14px 18px;min-height:85px;font-size:12px}.cursor-readings>div{display:flex;flex-wrap:wrap;gap:12px 25px;margin-top:10px}.cursor-readings span{display:flex;align-items:center;gap:6px}.event-title{margin:25px 0 0}.event-title h2{margin:0}.event-time{font-size:12px;color:#24697b;background:#eef6f8;white-space:nowrap}.live-toggle{white-space:nowrap;align-self:center;margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.range select{width:auto;min-width:160px}.range{align-items:end}#trend-events td{font-size:12px}#trend-events small{font-size:10px}#trend-limit[hidden]{display:none}.badge.Notice{background:#fff0d5;color:#80540e}@media(max-width:850px){.source-toolbar,.source-toolbar>div:first-child{align-items:start;flex-direction:column;gap:10px}.source-toolbar .actions{margin:0}.series-options{grid-template-columns:1fr 1fr}.source-toolbar{padding:14px 18px}.live-toggle{margin-top:0}.event-title{align-items:center}}@media(max-width:500px){.series-options{grid-template-columns:1fr}.trend-ranges>div{min-width:120px}.cursor-readings>div{display:grid;gap:8px}.event-title{display:block}.event-title button{margin-top:10px}}

/* BERCO trend presentation: compact legends and explicit independent unit scales. */
body .trend-legend{display:flex;align-items:center;gap:8px;margin:14px 0 12px}
body .trend-legend-heading{flex-basis:100%;font-size:12px;color:#e2edf2;letter-spacing:.02em}
body .trend-legend .legend-chip{border-radius:6px;border:1px solid #425c6b;background:#1b3341;color:#edf4f7;padding:9px 12px;line-height:1.4;font-size:12px;text-align:left;flex-wrap:wrap;min-height:38px}
body .trend-legend .legend-chip small{color:#bdcfda;font-size:11px}
body .trend-legend i{display:inline-block;width:22px;height:3px;flex:none}
body .trend-ranges{display:block;background:transparent;padding:12px 0;margin:0}
body .trend-ranges>.trend-scale-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;background:transparent;padding:0;margin:0 0 10px;min-width:0}
body .trend-scale-heading b{font-size:12px;color:#e4eef3}
body .trend-scale-heading span{font-size:11px;color:#adc3cf}
body .trend-ranges>.trend-scale-list{display:flex;flex-wrap:wrap;gap:8px;background:transparent;padding:0;min-width:0}
body .trend-scale-choice{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;align-items:center;min-width:160px;padding:10px 12px;text-align:left;background:#192e3b;border:1px solid #405967;border-radius:7px;color:#e2eef4}
body .trend-scale-choice.selected{border-color:#edd020;background:#263c40;box-shadow:inset 3px 0 #edd020}
body .trend-scale-choice>span:not(.scale-colors),body .trend-scale-choice>small{grid-column:2;font-size:11px;color:#c3d5df}
body .scale-colors{grid-row:1/4;display:flex;flex-direction:column;gap:4px;max-height:52px;overflow:hidden}
body .scale-colors svg{display:block;width:20px;height:8px;flex:none}
body .trend-manual-scales{margin-top:12px;border-top:1px solid #354d5b;padding-top:10px}
body .trend-manual-scales summary{cursor:pointer;font-size:12px;color:#c7d9e3}
body .trend-manual-scales>div{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
body .chart-scale{display:flex;flex-wrap:wrap;align-items:end;gap:8px;background:#192e3b;border:1px solid #405967;border-radius:7px;padding:12px}
body .chart-scale>b{flex-basis:100%;color:#edf4f7;font-size:12px}
body .chart-scale label{font-size:11px;color:#bdcfd9;display:grid;gap:5px;margin:0}
body .chart-scale input{width:105px;min-height:36px}
body .trend-scale-hint{display:block;margin-top:10px;color:#9eb7c6;font-size:11px}
body .studio-chart,body .combined-chart{background:#102633;border-color:#405b6b}
body .studio-chart .plot-background,body .combined-chart .plot-background{fill:#102633}
body .studio-chart .trend-grid,body .combined-chart .trend-grid{stroke:#304957;stroke-dasharray:3 5}
body .studio-chart .axis-text,body .combined-chart .axis-text{fill:#c5d6e0;font-size:11px}
body .trend-axis-unit{font-weight:600}
@media(max-width:600px){body .trend-scale-choice{min-width:0;flex:1 1 140px}body .trend-legend .legend-chip{flex:1 1 180px}body .chart-scale{width:100%;box-sizing:border-box}}

/* operations.css */
.brand b{font-size:23px;letter-spacing:-.7px}.quick-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin:20px 0}.quick{background:#fff;border:1px solid #dbe5e8;border-top:3px solid #296e7d;border-radius:10px;padding:18px 16px;min-width:0}.quick small{display:block;font-size:12px;color:#576e79;min-height:28px}.quick b{font-size:30px;font-weight:650;line-height:1.2;letter-spacing:-.8px;display:block;color:#163744}.quick span{font-size:11px;color:#617581}.quick .metric-note{font-size:11px;color:#56727d;margin:10px 0 0;line-height:1.4}.quick.target{background:#173d4b;border-color:#173d4b}.quick.target b,.quick.target span{color:#fff}.quick.target small,.quick.target .metric-note{color:#b6d4de}.dose-visual{width:100%;height:34px;display:block;margin-top:4px}.dose-visual text{font:10px system-ui;fill:#506b76}.flow-line{font-size:20px;letter-spacing:6px;color:#92b9be;margin-top:5px;overflow:hidden;white-space:nowrap}.flowing{color:#15878b}.flowing{animation:flowpulse 2s ease-in-out infinite}@keyframes flowpulse{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.flowing{animation:none}}.tank-content{display:flex;align-items:center;justify-content:space-between}.tank-visual{height:56px;width:55px;flex-shrink:0}.tank-visual text{font:18px system-ui;fill:#678391}.quick.remaining{border-top-color:#7b70a3}.quick.measured{border-top-color:#209d9c}.quick-metrics.compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:13px 0}.compact .quick{border-top-width:2px;padding:11px 10px;border-radius:7px}.compact .quick b{font-size:22px}.compact .quick small{font-size:10px;min-height:24px}.compact .quick .metric-note{font-size:10px;margin:5px 0 0}.compact .remaining{grid-column:2/4}.compact .dose-visual{height:26px}.compact .tank-visual{height:39px;width:34px}.compact .quick span{font-size:10px}.compact .flow-line{font-size:15px;letter-spacing:4px;margin:3px 0}.asset-open{border:0;padding:0;background:transparent;text-align:left}.asset-open h3{font-size:20px}.asset .site{margin:4px 0 9px}.asset-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}.asset-footer small{font-size:10px;color:#647d89}.asset-footer button{font-size:11px;white-space:nowrap}.job-line{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:12px;margin:10px 0}.mobility{display:inline-block;font-size:10px;font-weight:650;padding:5px 8px;border-radius:20px;background:#eaf0f3;color:#4c6878}.mobility.moving{background:#e2effd;color:#285d96}.mobility.job{background:#dcefe8;color:#266455}.mobility.unknown{background:#f4eee0;color:#7f682f}.panel-title-inline{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-title-inline h2{margin:0}.maps-link{display:inline-block;font-size:15px;font-weight:650;overflow-wrap:anywhere}.maps-link small{display:block;font-weight:400;font-size:12px;margin-top:5px}.location-health{border-top:1px solid #dfE6E9;display:flex;gap:24px;padding-top:15px;margin-top:18px;font-size:11px;color:#637b89}.location-health b{display:block;font-size:16px;color:#2a495a;margin-top:4px}.cluster-count{font:700 14px system-ui;fill:#fff;pointer-events:none}.cluster-list{display:grid;gap:12px;max-height:65vh;overflow:auto}.cluster-list .quick-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.signal-route{display:flex;gap:15px;justify-content:space-between;align-items:center;background:#edf5f6;padding:23px;border-radius:10px;margin:22px 0}.signal-route span{font-size:13px}.signal-route b{color:#29858b;font-size:25px}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.control-card{border:1px solid #d9e5e9;border-radius:10px;padding:23px}.control-value{font-size:25px;font-weight:650}.control-value small{font-size:12px;font-weight:400}.control-card button{margin-top:10px}button:disabled{opacity:.48;cursor:not-allowed}.tabs{flex-wrap:wrap}.detail-grid{grid-template-columns:1.2fr 1fr}.status-copy{font-size:13px;line-height:1.7}.status-copy strong{display:block;margin-bottom:7px}.mapbox{align-self:start;position:sticky;top:18px}.fleet-grid{grid-template-columns:minmax(0,1.4fr) minmax(400px,1fr)}
@media(max-width:1100px){.quick-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-metrics>.remaining{grid-column:2/4}.fleet-grid{grid-template-columns:1fr}.mapbox{position:static}.asset-list{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr 1fr}}@media(max-width:700px){.quick-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-metrics>.remaining{grid-column:1/-1}.quick-metrics.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.compact>.remaining{grid-column:2/4}.asset-list,.detail-grid,.control-grid{grid-template-columns:1fr}.quick b{font-size:26px}.quick{padding:14px}.brand b{font-size:20px}.signal-route{gap:8px;padding:12px}.signal-route span{font-size:11px}.tabs{gap:5px}.tabs button{font-size:11px;padding:10px}.mapbox{min-height:250px}}
.clean-toolbar{padding:10px 28px;display:flex;align-items:center;justify-content:flex-start;gap:15px;background:#fff;border-bottom:1px solid #dce5e9}.clean-toolbar .source-select{display:block}.clean-toolbar label{display:flex;align-items:center;gap:10px;font-size:11px;margin:0}.clean-toolbar select{margin:0;min-width:125px;width:auto}.source-state{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#647b88;background:#edf3f6;border:1px solid #dce6ea;padding:5px 9px;border-radius:5px}.clean-toolbar .preview-actions{display:flex;gap:7px}.clean-toolbar button{font-size:11px;padding:9px 12px}#presentation-toggle{margin-left:auto}.presentation header nav,.presentation #identity,.presentation .source-select,.presentation .preview-actions{display:none}.presentation .mapnote,.presentation #equipment-data-note,.presentation .connection-state{display:none}.presentation .clean-toolbar{padding-top:7px;padding-bottom:7px}.presentation header{height:90px;min-height:90px}.presentation #presentation-toggle{opacity:.65}.process-panel{margin-bottom:20px;padding-bottom:12px}.process-svg{width:100%;height:auto;display:block;margin-top:10px}.pid-tag{font:700 12px system-ui;fill:#254e60}.pid-label{font:11px system-ui;fill:#567482}.pid-value{font:650 13px system-ui;fill:#254e60}.pid-big{font:650 24px system-ui;fill:#254e60}.flow-setup{display:flex;gap:12px;align-items:end;margin:22px 0}.flow-setup label{flex:1;margin:0}.flow-setup select{margin:6px 0 0}.source-card{padding:20px 24px;border:1px solid #d4e6e9;background:#f2f8f9;border-radius:10px}.source-card h3{margin:0}.flow-source-value{font-size:28px;display:block;margin-top:15px}.flow-source-value small{font-size:12px;font-weight:400}.unit-comparison{display:grid;grid-template-columns:1fr 1fr;gap:22px}.unit-comparison h3{font-size:20px}.unit-comparison h3 small{font-size:11px;color:#68828e;margin-left:10px;font-weight:400}.compare-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:28px}.compare-heading p{font-size:12px}.compare-svg{width:100%;height:auto}.compare-svg text{font:11px system-ui;fill:#617c87}.compare-legend{display:flex;gap:18px;align-items:center;font-size:12px}.compare-legend span:first-child{color:#167d88}.compare-legend span:nth-child(2){color:#aa71b0}.compare-legend small{color:#718995}.combined-chart{position:relative}.alarm-hover{position:absolute;right:25px;top:10px;max-width:340px;display:grid;gap:7px;background:#253f4f;color:#fff;padding:15px 18px;border-radius:9px;box-shadow:0 6px 20px #19334030;pointer-events:none;z-index:5}.alarm-hover[hidden]{display:none}.alarm-hover strong{font-size:14px}.alarm-hover span,.alarm-hover small{font-size:11px;color:#d3e4ec}.delivery-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.checklist small{display:block;margin:4px 0 10px 23px;color:#68818e}.sign-in-code{font-size:26px;letter-spacing:4px}blockquote{margin:15px 0;border-left:3px solid #aecbd3;padding:12px 18px;background:#f2f6f7}#dialog li{margin:12px 0;line-height:1.55}
@media(max-width:700px){.clean-toolbar{padding:10px 16px;flex-wrap:wrap;gap:9px}.clean-toolbar .preview-actions{flex-wrap:wrap}.clean-toolbar .source-select{flex:1}.clean-toolbar .source-state{font-size:9px}.unit-comparison,.delivery-grid{grid-template-columns:1fr}.flow-setup{flex-wrap:wrap}.flow-setup label{flex-basis:100%}.compare-heading{display:block}.alarm-hover{right:5px;top:0;max-width:260px;padding:10px}.pid-label{font-size:12px}.pid-value{font-size:14px}}

.source-toolbar.clean-toolbar{flex-direction:row;flex-wrap:wrap}.source-toolbar.clean-toolbar>.source-select{display:block;min-width:0}.source-toolbar.clean-toolbar label{min-width:0}.presentation .source-toolbar.clean-toolbar>.source-select,.presentation .source-toolbar.clean-toolbar>.preview-actions{display:none}

/* Shared-flow proximity remains visible in presentation mode. */
.source-card.shared-flow-source{background:#17313f;color:#e5eef3;border-color:#46626e}.shared-flow-source .flow-source-value{color:#eef5f7}.shared-flow-source .panel-title-inline{flex-wrap:wrap}.shared-flow-source .mobility{margin-top:10px}.source-card.shared-flow-source.far{border:2px solid #e1c329;box-shadow:inset 4px 0 0 #e1c329}.source-distance-badge{font-size:12px;font-weight:650;border:1px solid #59717b;border-radius:6px;padding:7px 10px;white-space:normal}.source-distance-badge.far{color:#ffe49a;background:#54471e;border-color:#bfa22e}.source-distance-badge.unverified{color:#c4ced4;background:#263b48}.source-distance-badge.near{color:#dbe7ed;background:#294652}.flow-distance-warning{display:flex;align-items:flex-start;gap:13px;padding:15px;margin-top:18px;border:1px solid #ae9231;border-radius:7px;background:#433c21}.flow-distance-warning strong{color:#ffe49a;font-size:14px}.shared-flow-source .flow-distance-warning p{margin:7px 0 0;color:#f0ddb1;font-size:13px;line-height:1.6}.distance-warning-icon{font-size:25px;color:#f5ce49}.flow-distance-unverified{padding:13px 15px;background:#243b48;border-left:3px solid #91a5b0;margin-top:16px}.flow-distance-unverified p{font-size:12px;margin-bottom:0}#flow-source.distant-source{border:2px solid #e1c329;background:#453f28;color:#ffebb5}.flow-setup{flex-wrap:wrap}.flow-setup label{min-width:230px}.flow-setup button{white-space:nowrap}

/* Compact notification dashboard: all category choices remain visible. */
#notification-preferences .checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));max-height:none;overflow:visible;gap:8px;padding:12px}
#notification-preferences .checklist label{display:flex;align-items:center;gap:8px;margin:0;min-height:28px}
#notification-preferences h3{margin:18px 0 8px}
#notification-preferences .form-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
@media(max-width:600px){#notification-preferences .checklist{grid-template-columns:1fr 1fr;gap:8px}#notification-preferences .checklist label{font-size:13px;line-height:1.4}#notification-preferences .form-grid{grid-template-columns:1fr}}

/* gps_access.css */
#gps-required{position:fixed;inset:0;z-index:10010;background:#0b202df5;overflow:auto;display:flex;align-items:center;justify-content:center;padding:28px 16px;backdrop-filter:blur(6px);margin:0;width:100%;max-width:none;height:100%;max-height:none;border:0;box-sizing:border-box}
#gps-required[hidden]{display:none}.gps-recovery{width:min(700px,100%);color:#eef7fa;background:#102b3a;border:1px solid #8eb6c7;padding:28px;border-radius:14px;box-shadow:0 12px 40px #0005}.gps-recovery h1{font-size:clamp(24px,4vw,34px)}.gps-recovery p{line-height:1.55}.gps-recovery details{margin-top:20px}.gps-recovery .primary{background:#a6f1de;color:#092b26}.gps-recovery a{color:#a6f1de}.gps-table-wrap{overflow:auto;max-height:52vh;margin:16px 0}.gps-table-wrap table{width:100%;border-collapse:collapse;text-align:left}.gps-table-wrap th{position:sticky;top:0;background:#163645;color:#fff;z-index:1}.gps-table-wrap td,.gps-table-wrap th{padding:12px;border-bottom:1px solid #809ca655;vertical-align:top}.gps-audit-table{min-width:820px}.gps-audit-table small{font-size:12px}.gps-review{border-left:4px solid #e6a900;padding:8px;background:#ffd45a20;color:inherit}.gps-plot{width:100%;max-height:340px;border-radius:10px;display:block}#gps-audit-open{margin:0 0 14px}
@media(max-width:650px){#gps-required{inset:0;padding:16px 10px;align-items:center}.gps-recovery{padding:18px}.gps-recovery .actions{display:grid}.gps-table-wrap{max-height:48vh}}
#dialog:has(.gps-audit-table),#dialog:has(#gps-ticket-list){width:min(1180px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
#dialog:has(.gps-audit-table) .gps-plot{max-height:190px}
#dialog:has(.gps-audit-table) .gps-table-wrap{max-height:42vh}
.gps-loading{text-align:center;max-width:400px}.gps-other{font-size:14px}.gps-other summary{cursor:pointer;color:#c9dce5;min-height:32px;display:list-item}.gps-fallback-link{display:block;background:transparent!important;color:#d7e9f0!important;border:0!important;text-decoration:underline;font-size:14px;padding:8px 0;min-height:40px}.gps-fallback-link:focus-visible,.gps-other summary:focus-visible{outline:2px solid #f4d447;outline-offset:4px}

/* berco.css */
:root{--bps-gold:#e1c329;--bps-navy:#1e2d3a;--bps-ink:#203c48}
.brand b{letter-spacing:3px;font-size:27px}.brand small{letter-spacing:2px}.primary{background:var(--bps-gold);border-color:var(--bps-gold)}
.fleet-grid{display:block}.mapbox{position:relative;top:auto;margin-bottom:26px;min-height:0;border-top:3px solid var(--bps-gold)}.asset-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.asset{padding:12px 16px 14px;transition:box-shadow .25s,border-color .25s}.asset:hover{box-shadow:0 6px 24px #1e2d3a10;border-color:#b4a351}
.quick-metrics.asset-six{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0}.asset-six>.remaining{grid-column:auto!important}.quick.identity{background:var(--bps-navy);border-color:var(--bps-navy);border-top-color:var(--bps-gold);display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.quick.identity>small{color:#b8c6ca;min-height:0;font-size:9px;letter-spacing:.8px}.quick.identity .asset-open{color:#fff;margin-top:8px}.quick.identity h3{font-size:23px;letter-spacing:-.5px}.quick.identity .unit-job{font-size:12px;line-height:1.3;color:#e0dcbf;margin:7px 0}.identity-status{display:flex;flex-wrap:wrap;gap:5px}.identity-status .badge,.identity-status .mobility{font-size:8px;padding:4px 5px}.compact .quick{min-height:138px}.compact .quick b{font-size:25px}.quick.remaining{border-top-color:#b09834}.quick.target{background:#284451;border-color:#284451}.quick small{font-weight:600}.asset-six .quick.target{background:white;border-color:#dbe5e8;border-top-color:#ae9b44}.asset-six .quick.target b{color:var(--bps-ink)}.asset-six .quick.target span,.asset-six .quick.target small,.asset-six .quick.target .metric-note{color:#617581}
.flow-track{height:20px;position:relative;overflow:hidden;margin-top:7px;border-radius:4px;background:linear-gradient(90deg,#ebf1f3,#e0edef,#ebf1f3)}.flow-track i{position:absolute;top:6px;left:-12%;width:9px;height:9px;border-top:2px solid #b99c29;border-right:2px solid #b99c29;transform:rotate(45deg);opacity:0}.flow-track.is-flowing i{animation:bercoFlow 2.7s linear infinite}.flow-track i:nth-child(2){animation-delay:.9s}.flow-track i:nth-child(3){animation-delay:1.8s}@keyframes bercoFlow{0%{left:-10%;opacity:0}15%{opacity:1}85%{opacity:1}100%{left:110%;opacity:0}}
.dose-visual rect,.tank-visual rect{transition:width .8s ease,height .8s ease,y .8s ease}.tank-visual rect:nth-child(2){fill:#bfa727}.process-gas-path{stroke-dasharray:20 4}.gas-moving .process-gas-path{animation:processFlow 2s linear infinite}.process-odorant-path{stroke:#bfa32c;stroke-dasharray:12 4}.odorant-moving .process-odorant-path{animation:processFlow 2.5s linear infinite}@keyframes processFlow{to{stroke-dashoffset:-48}}
#map{position:relative;background:radial-gradient(ellipse at 50% 45%,#fff,#e9eff2);overflow:hidden;border-radius:0 0 12px 12px}.map-actions{position:absolute;top:15px;right:20px;display:flex;gap:6px;align-items:center;z-index:2}.map-actions button{box-shadow:0 2px 7px #1e2d3a12;font-size:12px}.map-actions span{padding:7px;color:#607584;font-size:11px}.mapbox #fleet-map-svg{height:535px;min-height:340px;width:100%;cursor:grab;touch-action:none;display:block}.mapbox #fleet-map-svg.dragging{cursor:grabbing}.map-marker{cursor:pointer}.map-marker .pin-label{font-size:inherit;stroke-width:1px}.map-marker text{pointer-events:none}.map-halo{opacity:.28}.map-alarm .map-halo{animation:mapAlarm 2.8s ease-in-out infinite}@keyframes mapAlarm{50%{opacity:.8}}.map-selection-title{display:flex;align-items:center;justify-content:space-between}.map-selection-title h3{margin:0}.map-selection-cards{display:grid;gap:12px}.map-selection-cards .asset{background:white}#map-selection:not(:empty){position:absolute;right:18px;bottom:20px;width:min(550px,95%);max-height:440px;overflow:auto;padding:15px;border:1px solid #b7c9cf;border-top:3px solid var(--bps-gold);border-radius:10px;background:#edf3f5;box-shadow:0 12px 36px #1e2d3a25}.map-selection-cards .quick{min-height:108px}.map-selection-cards .quick b{font-size:20px}.map-selection-cards .unit-job{font-size:11px}
.setpoint-row{display:flex;align-items:center;gap:30px;padding:20px;background:#f2f6f7;border:1px solid #d8e2e7;border-radius:10px}.setpoint-row h3{margin-top:0}.setpoint-row p{margin-bottom:0}#quick-setpoint{display:flex;align-items:end;gap:12px;flex:1}#quick-setpoint label{margin:0;flex:1}.run-setting{display:flex;gap:16px;align-items:center;margin:20px 0}.run-setting span{margin-right:auto;font-size:13px}.alarm-rule-list{display:grid;gap:12px}.alarm-rule{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr .7fr;align-items:center;gap:16px;border:1px solid #d9e3e7;border-radius:8px;padding:16px}.alarm-rule label{margin:0}.rule-enable{font-size:13px}.alarm-rule details{font-size:11px}.review-value{font-size:25px;color:var(--bps-ink)}hr{border:0;border-top:1px solid #dbe5e9;margin:28px 0}.sms-setup-note{font-size:12px}.notification-steps{display:flex;gap:15px;flex-wrap:wrap;margin:18px 0}
@media(min-width:1700px){.asset-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.setpoint-row{display:block}#quick-setpoint{flex-wrap:wrap}.alarm-rule{grid-template-columns:1fr 1fr}.rule-enable{grid-column:1/-1}.mapbox #fleet-map-svg{height:430px}}
@media(max-width:720px){.asset-list{grid-template-columns:1fr}.mapbox #fleet-map-svg{height:390px}.map-actions{top:8px;right:8px}.map-actions button{padding:7px 10px}.asset-six .quick b{font-size:22px}.map-selection-cards .quick b{font-size:17px}.compact .quick{min-height:126px}.map-selection-cards .quick{min-height:118px}.run-setting{flex-wrap:wrap}.brand b{font-size:24px}.setpoint-row{padding:15px}#quick-setpoint label{flex-basis:40%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Continuous fleet Google map preserves its viewport while telemetry refreshes. */
#fleet-inline-frame{width:100%;height:350px;border:0;display:block}.fleet-map-options{padding:6px 12px;font-size:11px}.fleet-map-options button{margin-top:8px}@media(max-width:660px){#fleet-inline-frame{height:320px}}
/* Google detail map is loaded only on demand. */
dialog:has(#fleet-street-frame){width:min(1280px,calc(100vw - 24px));max-width:calc(100vw - 24px)}#fleet-street-frame{width:100%;height:min(65dvh,680px);min-height:320px;border:0;border-radius:10px;display:block}.fleet-street-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}

/* Keep the original blue overview and detailed map at the same size. */
#map:has(#fleet-map-svg){background:radial-gradient(ellipse at 50% 45%,#203c4b,#152934)}
#fleet-map-svg .state{fill:#2b4452;stroke:#49616e;vector-effect:non-scaling-stroke;stroke-width:.7px}#fleet-map-svg .state:hover{fill:#3e5e6d}
.personal-fleet #fleet-inline-frame{height:280px}.map-actions{flex-wrap:wrap;max-width:calc(100% - 16px);padding:5px;border-radius:9px;background:#152934e8}.map-actions button{min-width:34px;min-height:34px}.map-state-name{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:660px){.personal-fleet #fleet-inline-frame{height:220px}}

/* Fade only after Google's first detailed tiles are ready; never expose an empty layer. */
#map .fleet-transition-outline{position:absolute;inset:0;z-index:1;pointer-events:none;background:#152934;opacity:1;transition:opacity .18s ease}
#map:has(.fleet-transition-outline) #fleet-inline-frame{opacity:0;transition:opacity .18s ease}
#map.fleet-detail-ready #fleet-inline-frame{opacity:1}#map.fleet-detail-ready .fleet-transition-outline{opacity:0}
#map .fleet-map-options{position:absolute;z-index:3;right:8px;top:7px;padding:4px 8px;border-radius:5px;background:#152934;color:#e5eef3}
#map .fleet-return-outline{position:absolute;inset:0;z-index:4;background:#152934;animation:fleetReturn .18s ease forwards}
@keyframes fleetReturn{from{opacity:0}to{opacity:1}}

/* A tighter national canvas and consistent map heights keep the blue-to-street handoff still. */
#map #fleet-map-svg,#map #fleet-inline-frame{height:clamp(300px,28vw,400px);min-height:0}
#map .map-actions{top:10px;left:10px;right:auto;max-width:calc(100% - 76px)}
#map .fleet-map-zoom{position:absolute;right:10px;bottom:38px;z-index:2;width:40px;border-radius:2px;background:#fff;box-shadow:0 1px 4px #0005;overflow:hidden;display:flex;flex-direction:column}
#map .fleet-map-zoom button{width:40px;height:40px;min-height:40px;min-width:40px;padding:0;border:0;border-radius:0;background:#fff;color:#666;font:26px/40px Arial,sans-serif;box-shadow:none;display:block}
#map .fleet-map-zoom button+button{border-top:1px solid #e6e6e6}#map .fleet-map-zoom button:hover{color:#222;background:#fafafa}#map .fleet-map-zoom button:disabled{color:#c5c5c5}#map .fleet-map-zoom button:focus-visible{outline:2px solid #1a73e8;outline-offset:-3px}
@media(max-width:660px){#map #fleet-map-svg,#map #fleet-inline-frame{height:240px}}

.fleet-tools-menu{display:flex;flex-direction:column;gap:6px;padding-top:8px}.fleet-tools-menu button{text-align:left}.fleet-point-picker{width:100%;height:280px;border:0;border-radius:8px;display:block;margin:12px 0}.fleet-point-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.fleet-point-row small{display:block;margin-top:5px}.fleet-saved-points{max-height:55vh;overflow:auto}dialog:has(.fleet-point-picker){width:min(900px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
@media(max-width:660px){.fleet-point-row{display:block}.fleet-point-row .actions{margin-top:8px}.fleet-point-picker{height:240px}}
.analyzer-fleet-tools{position:relative}.analyzer-fleet-tools .fleet-tools-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:220px;max-width:80vw;padding:10px;background:#182f3c;border:1px solid #54707d;border-radius:8px;box-shadow:0 10px 28px #0005}


/* Address results use native-sized touch targets and the same readable surface as the form. */
#fleet-address-results{border:1px solid #63808e;border-radius:8px;background:#19323f;padding:4px;margin-top:4px;max-height:230px;overflow:auto}
#fleet-address-results[hidden]{display:none}#fleet-address-results button{display:block;text-align:left;width:100%;border:0;background:transparent;color:#f2f6f8;padding:12px;white-space:normal;line-height:1.4}
#fleet-address-results button:hover,#fleet-address-results button[aria-selected="true"]{background:#305663;color:#fff}
.fleet-point-coordinates{margin:12px 0}#fleet-point-remove{margin-left:auto;color:#ffd0d0;border-color:#bb7780}

/* industrial.css */
:root{--paper:#101b25;--navy:#dbe7ed;--muted:#a5b7c3;--line:#354957;--bps-ink:#dbe7ed;--teal:#64c4af}body{font-variant-numeric:tabular-nums}header{background:#13232e;border-bottom:1px solid #5d5524}.panel,.asset,.stat,dialog{background:#1a2b37;color:#e5eef3}.panel p,p,small,.caption{color:#aabcc8}button,input,select,textarea{background:#223743;color:#e4edf1;border-color:#45606f}.primary{color:#172a32;background:#e1c329}button:hover{border-color:#dfc843}.source-toolbar{background:#182a35;color:#d7e4eb;border-color:#40525c}.source-state{background:#263e4a;color:#d8e4ea}.quick,.asset-six .quick.target{background:#213641!important;border-color:#3a505d!important}.quick b,.asset-six .quick.target b,.quick.target b{color:#f0f6f8}.quick small,.quick span,.quick .metric-note,.asset-six .quick.target small,.asset-six .quick.target span,.asset-six .quick.target .metric-note{color:#aec1ca}.quick.identity{background:#14242e!important;border-top-color:#d6be30!important}.quick.identity h3{color:#fff}.badge{background:#334856;color:#c9d8e1}.badge.Reporting{background:#1d4b42;color:#9be1c3}.badge.Trip,.badge.CRITICAL,.badge.offline{background:#6a303d;color:#ffc9d0}.badge.Warning,.badge.WARNING,.badge.MAJOR{background:#615224;color:#ffe597}.notice,.setpoint-row,.alarm-rule{background:#233742;color:#d5e3e9;border-color:#776a2e}.error{background:#472932;color:#ffe0e3}.process-svg text{fill:#dbe6eb}.process-svg .pid-label{fill:#a8c0cd}.process-svg rect,.process-svg circle{stroke:#93b1bd}.process-svg .pid-device{fill:#243f4c}.process-svg .pid-reading-box{fill:#1e3441}.tabs{flex-wrap:wrap}.tabs button.active{background:#e1c329;border-color:#e1c329;color:#182b34}table th{background:#233946;color:#acc4d1}pre{background:#12232d;color:#d4e3ed}a{color:#e6d674}.state{fill:#2b4452;stroke:#49616e}.state:hover{fill:#3e5e6d}.pin-label{fill:#eaf4f6;stroke:#172e3a}#map{background:radial-gradient(ellipse at 50% 45%,#203c4b,#152934)}#map-selection:not(:empty){background:#182e3b}.map-selection-cards .asset{background:#1a2b37}.map-actions span{color:#b1c6d1}.map-marker .pin-label{stroke:#192e39;stroke-width:2px}.connection-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;border-top:1px solid var(--line);margin-top:12px;padding-top:13px}.connection-item{font-size:9px;min-width:0;color:#a9bdc9}.connection-item i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#758895;margin-right:5px}.connection-item small{display:block;font-size:9px;margin-top:5px}.connection-item.online i{background:#72ceb3}.connection-item.offline i{background:#ee7584}.connection-item.partial i,.connection-item.preview i{background:#d8c762}.asset-condition{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#b7cbd5;padding:13px 0 0}.asset-condition span:last-child{text-align:right}.fleet-filter-panel{margin-bottom:18px;padding:14px 18px;border:1px solid var(--line);border-radius:8px}.fleet-filter-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:17px}.fleet-filter-grid label{margin:0}.readiness-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.readiness-grid article{padding:15px;border:1px solid var(--line);border-radius:7px}.readiness-grid article b{display:block;text-transform:capitalize}.readiness-grid article span{display:block;color:#dac864;margin-top:8px}.case-history{max-height:220px;overflow:auto}.case-history p{border-bottom:1px solid var(--line);padding-bottom:10px}.pid-note{font-size:11px;fill:#a2bcc9}.process-status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding-top:10px}.process-status-grid small{display:block;font-size:10px}.process-status-grid b{display:block;font-size:12px;margin-top:7px}.editable-value{cursor:pointer}.editable-value rect{stroke:#e0c940!important}.editable-value:hover rect{fill:#354b4e!important}.combined-chart,.trend-ranges,.cursor-readings,.range,.series-picker{background:#1c303c;color:#deedf3}.combined-chart svg text,.compare-svg text{fill:#acbeca}.trend-legend button{background:#233b47;color:#d3e4ed}.flow-track{background:#182d36}.tank-visual text{fill:#b7c9d1}.dose-visual text{fill:#b5c7d1}#toast{background:#e1c329;color:#162a34}.form-grid input:disabled{background:#1a2e39}.review-value{color:#e9d96b}@media(max-width:900px){.fleet-filter-grid{grid-template-columns:repeat(2,1fr)}.readiness-grid{grid-template-columns:repeat(2,1fr)}.process-status-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:550px){.connection-strip{gap:4px}.connection-item{font-size:8px}.readiness-grid{grid-template-columns:1fr}}

.location-health span{color:#aabfc9}.location-health b{color:#e5f0f4}.process-svg circle[fill="#fff"],.process-svg rect[fill="#fff"]{fill:#24414f}.process-svg .pid-tag{fill:#e5edf3}.process-svg path[fill="#fff"]{fill:#23404c}

.qr-preview{background:#fff!important;width:260px;max-width:100%;padding:16px;margin:12px auto}.qr-preview svg{display:block;width:100%;height:auto;background:#fff!important}

.security-key{user-select:all;overflow-wrap:anywhere;white-space:pre-wrap}#identity{gap:10px;flex-wrap:wrap}#identity button{font-size:11px}

/* job_modeler.css */
:root{--model-yellow:#d7bd2a;--model-green:#44c4a0}.capacity-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px 18px;border-top:1px solid #314954;background:#102934}.capacity-strip span{min-width:0}.capacity-strip small,.capacity-strip b{display:block;overflow-wrap:anywhere}.capacity-strip small{font-size:10px;color:#a3b8c1;letter-spacing:.03em;margin-bottom:5px}.capacity-strip b{font-size:12px;color:#ebf1f3}.capacity-state{font-size:12px;color:#b0c2cb}.capacity-state.available,.model-fit{color:var(--model-green)}.capacity-state.planned,.capacity-state.reserved{color:var(--model-yellow)}.capacity-pending{display:block;padding:4px 18px;color:#d7bd2a}.model-layout{display:grid;grid-template-columns:minmax(300px,370px) minmax(0,1fr);gap:22px;align-items:start}.model-inputs{position:sticky;top:18px}.model-inputs form{display:grid;gap:16px}.model-inputs .form-grid{gap:14px}.model-inputs input,.model-inputs select{width:100%;min-width:0}.model-inputs .form-grid>div label{height:100%}.model-inputs .primary{padding:13px;font-weight:700}.model-empty{padding:32px}.model-methods,.model-demand{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.model-methods article{border-top:2px solid var(--model-yellow);padding:20px 0;display:grid;gap:10px}.model-methods b{font-size:32px;font-variant-numeric:tabular-nums}.model-methods span{color:#adc2ca;font-size:12px;line-height:1.5}.model-results{display:grid;gap:16px}.model-verdict{border-top:4px solid var(--model-yellow);background:linear-gradient(120deg,#193f4b,#142d39)}.model-verdict.match{border-top-color:var(--model-green)}.model-verdict h2{font-size:34px;margin:12px 0}.model-selection{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.model-selection b{font-size:26px;display:inline-block}.model-selection small{display:block;color:#aec3cc;font-size:12px;margin-top:4px}.model-demand{grid-template-columns:repeat(4,minmax(0,1fr))}.model-demand article{padding:18px 14px;background:#152e39;border:1px solid #304953;border-radius:8px;display:grid;gap:8px}.model-demand small{color:#9fb4bd;font-size:11px}.model-demand b{font-size:23px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.model-demand span{font-size:11px;color:#bbccd2}.model-candidates{display:grid;gap:12px;max-height:700px;overflow:auto;padding-right:3px}.model-candidate{background:#112935;border:1px solid #314b57;border-radius:8px;padding:17px}.model-candidate.selected{border-color:var(--model-yellow)}.model-candidate .topline{margin:0 0 12px;gap:12px}.model-candidate small{display:block;color:#a8bdc6;font-size:11px;margin:5px 0}.model-candidate p{font-size:12px;line-height:1.6;margin:8px 0}.model-candidate p span{float:right;color:#c8d5da}.model-candidate button{font-size:11px;padding:7px 10px;margin-top:8px}.model-bar{height:7px;background:#243e4a;border-radius:6px;overflow:hidden}.model-bar i{height:100%;display:block;background:var(--capacity-color);border-radius:6px;transition:width .35s ease}.model-reasons{color:#d7c687}.model-registry{margin-top:24px}.model-registry td{vertical-align:top}.model-registry input{max-width:300px}.capacity-intro .capacity-strip{border:1px solid #314954;border-radius:8px;margin:18px 0}.capacity-intro p{font-size:13px;color:#bacbd2}.model-results.outdated .model-verdict{opacity:.55}@media(max-width:1050px){.model-layout{grid-template-columns:1fr}.model-inputs{position:static}.model-demand{grid-template-columns:repeat(2,minmax(0,1fr))}.capacity-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.model-inputs .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.model-inputs .form-grid{grid-template-columns:1fr}.model-methods{grid-template-columns:1fr}.model-methods article{display:flex;align-items:center;gap:20px}.model-selection b{font-size:21px}.model-registry .topline{display:block}.model-registry input{margin-top:12px;width:100%}}@media(prefers-reduced-motion:reduce){.model-bar i{transition:none}}

#job-model-form [hidden],#capacity-rows tr[hidden]{display:none!important}

/* operator_workspace.css */
/* BPS navy and yellow with compact, personal operator layouts. */
header .brand{min-width:230px;max-width:335px;gap:12px}header .brand-symbol{display:block;position:relative;width:43px;height:60px;overflow:hidden;flex:none}header .brand-symbol img{position:absolute;left:0;top:0;width:168px;height:60px;max-width:none;object-fit:contain;border-radius:0;background:transparent;border:0;box-shadow:none}header .brand>span:last-child{min-width:0}header .brand small{white-space:normal;font-size:9px;line-height:1.45;letter-spacing:.1px;max-width:210px}header nav{flex-wrap:wrap}header{height:auto;min-height:100px;padding-top:14px;padding-bottom:14px}header .brand b{font-size:25px}header #identity{flex-shrink:0}
.personal-toolbar,.studio-toolbar,.studio-navigation{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:15px 0}.personal-toolbar label,.studio-toolbar label,.studio-navigation label{margin:0}.personal-toolbar select{min-width:140px;margin-bottom:0}.personal-toolbar>small{color:#9cb4c1;align-self:center}.personal-fleet{grid-template-columns:minmax(350px,.8fr) minmax(440px,1.2fr);align-items:start}.personal-fleet .mapbox{position:sticky;top:10px;min-height:0}.personal-fleet .asset-list{grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px}.personal-fleet.density-dense .asset-list{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.personal-fleet.density-comfortable .asset-list{grid-template-columns:1fr}.personal-fleet.map-hidden{grid-template-columns:1fr}.personal-fleet.map-hidden>.mapbox{display:none}.personal-fleet.map-hidden.density-comfortable .asset-list{grid-template-columns:repeat(auto-fit,minmax(480px,1fr))}
.asset.small-unit{padding:13px;min-width:0;border-radius:10px;background:#132a39;border:1px solid #345061}.small-unit-title{display:flex;align-items:start;justify-content:space-between;gap:6px;padding-bottom:11px;border-bottom:1px solid #345061}.small-unit-title .asset-open{padding:0;text-align:left;background:transparent;border:0}.small-unit-title h3{font-size:19px;color:#f2d643;margin:0}.small-unit-title p{font-size:12px;color:#edf2f5;margin:3px 0;line-height:1.25}.small-unit-title small{font-size:10px;color:#a7bdc9}.small-unit .badge{font-size:9px;white-space:normal;text-align:center;max-width:85px}.small-unit-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 7px;padding:12px 0}.small-unit-metrics small{display:block;font-size:10px;line-height:1.2;min-height:23px;color:#a5bdc9}.small-unit-metrics b{display:block;font-size:21px;line-height:1.15;color:#eef5f7;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.small-unit-metrics span{font-size:9px;color:#b9c9d1}.small-unit-bars{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:9px}.small-unit-bars>div{display:flex;align-items:center;gap:4px;font-size:9px;color:#a6c1cd}.small-unit-bars progress{appearance:none;height:4px;border:0;border-radius:3px;width:100%;min-width:10px;background:#304d5e}.small-unit-bars progress::-webkit-progress-bar{background:#304d5e}.small-unit-bars progress::-webkit-progress-value{background:#eed139;border-radius:3px}.small-unit-bars>div:first-child progress::-webkit-progress-value{background:#67d4c0}.small-unit-foot{display:flex;align-items:center;flex-wrap:wrap;gap:6px;border-top:1px solid #345061;padding-top:8px}.small-unit-foot small{font-size:9px;color:#a1b6c3;margin-left:auto}.small-unit-foot button{font-size:11px;padding:5px 7px}.small-unit-foot .mobility{font-size:9px;padding:3px 5px}.small-unit.dense{padding:9px}.dense .small-unit-title h3{font-size:17px}.dense .small-unit-metrics{gap:7px 5px;padding:8px 0}.dense .small-unit-metrics b{font-size:18px}.dense .small-unit-metrics small{font-size:9px;min-height:20px}.dense .small-unit-title{padding-bottom:7px}.dense .small-unit-bars{display:none}.dense .small-unit-foot .mobility{max-width:125px;white-space:normal}
.unit-arrange-list{max-height:50vh;overflow:auto;margin:16px 0;border:1px solid #3b5362;border-radius:6px}.arrange-unit{display:flex;gap:8px;padding:9px;border-bottom:1px solid #35505e;align-items:center;background:#19313f}.arrange-unit label{display:flex;align-items:center;gap:8px;flex:1;margin:0;min-width:0}.arrange-unit small{display:block;font-size:10px;color:#a8bdc8}.arrange-unit .drag-handle{cursor:grab;color:#a1b6c3;font-size:22px}.arrange-unit button{padding:5px 9px}.person-units{max-height:220px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px;border:1px solid #456071;padding:12px}.person-units label{display:block}.person-units small{display:block;color:#9db5c3;margin-left:20px}.show-deleted{margin:12px 0}.invitation-message{line-height:1.55;max-height:42vh;overflow:auto;word-break:normal;overflow-wrap:anywhere}.saved-view-row{display:flex;align-items:center;gap:15px;padding:12px 0;border-bottom:1px solid #3b5261}.saved-view-row>b{flex:1}
.process-quickbar{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:14px 16px;background:#1b3949;border:1px solid #4e6c7d;border-top:3px solid #f0d334;border-radius:8px;margin-bottom:12px}.process-quickbar>div{flex:1;min-width:150px}.process-quickbar small{display:block;font-size:11px;color:#c0d2dc}.process-quickbar b,.process-quickbar strong{display:block;color:#f1f6f8;font-size:19px;margin:4px 0}.process-quickbar b span{font-size:11px;font-weight:400}.process-quickbar .actions{margin:6px 0 0;gap:7px}.process-quickbar button{padding:7px 11px}.process-quickbar .start-button{background:#246858;color:#fff;border:1px solid #62bd9e}.process-quickbar .stop-button{background:#963e4d;color:#fff;border:1px solid #ed97a0}.process-quickbar button:disabled{opacity:.45;cursor:not-allowed}.process-control-hint{margin:0 0 22px!important}.state[data-map-state]{cursor:pointer}.state[data-map-state]:focus{outline:none;fill:#758695;stroke:#e8cf42;stroke-width:2}.map-state-name{color:#ebd449;font-weight:650}
.studio-panel{padding:22px}.studio-toolbar label{font-size:11px}.studio-toolbar input[type=datetime-local]{width:185px}.studio-toolbar select{min-width:130px}.studio-live,.studio-navigation label{align-self:center}.studio-navigation{align-items:center;margin-bottom:10px}.studio-navigation>span{font-size:11px;color:#b1c4cf;margin-left:auto}.studio-chart{position:relative;width:100%;border:1px solid #3c5667;border-radius:8px;background:#102635;overflow:hidden}.studio-chart svg{width:100%;display:block;touch-action:none;user-select:none}.studio-chart .plot-background{fill:#102635;stroke:#506b7c;stroke-width:1}.studio-chart .trend-grid{stroke:#304c5e;stroke-width:1}.studio-chart .axis-text{fill:#b9cdd8;font:11px system-ui}.studio-chart [data-studio-event]{cursor:pointer}.studio-chart [data-studio-event]:focus{outline:none;filter:brightness(1.5)}.studio-alarm-hover{position:absolute;left:16px;top:10px;max-width:min(520px,calc(100% - 32px));z-index:2;pointer-events:none;background:#381f2ef2;border:1px solid #e8788f;border-radius:7px;padding:10px 14px;box-shadow:0 6px 25px #0006;color:#fff}.studio-alarm-hover>*{display:block;line-height:1.45}.studio-alarm-hover span{font-size:12px}.studio-alarm-hover small{font-size:10px;color:#dfc2ce}#studio-legend i,#studio-cursor i{display:inline-block;width:20px;height:3px;flex:none}#studio-legend .legend-chip{gap:7px;padding:7px 9px;color:#dceaf0;font-size:11px}#studio-legend .legend-chip small{color:#a7bbc7}#studio-cursor>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}#studio-cursor span{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:11px}#studio-cursor small{font-size:10px;color:#abc0ce}#studio-scales{margin-top:12px}#studio-scales>div{min-width:140px}#studio-events table{font-size:11px}#studio-events td{padding:10px}.quick-trend-panel #operating-events,.quick-trend-panel #trend-events{max-height:340px;overflow:auto}
@media(min-width:1600px){.personal-fleet{grid-template-columns:minmax(440px,.72fr) minmax(650px,1.28fr)}}
@media(max-width:1050px){.personal-fleet{grid-template-columns:1fr}.personal-fleet .mapbox{position:static}.personal-fleet .asset-list{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}.personal-fleet.density-dense .asset-list{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}header{flex-wrap:wrap}header nav{order:3;width:100%}}
@media(max-width:660px){header .brand{min-width:185px;max-width:260px;gap:8px}header .brand small{max-width:185px;font-size:8px}header nav{flex-wrap:nowrap;overflow-x:auto}header nav button{flex:none}.personal-toolbar>label{flex:1}.personal-toolbar select{width:100%;min-width:110px}.personal-toolbar>small{width:100%;font-size:10px}.personal-fleet .asset-list{grid-template-columns:repeat(auto-fit,minmax(235px,1fr))}.personal-fleet.density-dense .asset-list{grid-template-columns:repeat(2,minmax(0,1fr))}.small-unit.dense .small-unit-title{flex-wrap:wrap}.small-unit.dense .small-unit-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.dense .small-unit-foot{gap:4px}.person-units{grid-template-columns:1fr}.studio-panel{padding:14px}.studio-toolbar>label{flex:1}.studio-toolbar input[type=datetime-local]{width:100%;min-width:160px}.studio-navigation>span{margin-left:0;width:100%}.process-quickbar{padding:12px;gap:12px}.process-quickbar>div{min-width:140px}.process-quickbar button{font-size:12px}.studio-chart .axis-text{font-size:12px}}
@media(prefers-reduced-motion:reduce){.small-unit *,.process-quickbar *{animation:none!important;transition:none!important}}

.small-unit-capacity{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#b4c6cf;margin-bottom:8px;flex-wrap:wrap}header nav{scrollbar-width:thin;scrollbar-color:#496575 #122531}#quick-summary .quick{padding:14px;min-height:115px}#quick-summary .quick b{font-size:27px}#quick-summary .quick-metrics{gap:10px}#quick-summary .quick .metric-note{font-size:10px;margin:5px 0}#quick-summary .tank-visual{height:48px}#quick-summary .quick .dose-visual{max-height:27px}

.trend-ranges>div{background:#1b3444;border:1px solid #435f70;color:#dceaf1}.trend-ranges b{color:#f1d844}.trend-ranges span{color:#ebf3f7}.trend-ranges small{color:#a9c0cc}@media(max-width:660px){.studio-chart .axis-text{font-size:20px}}
[hidden]{display:none!important}

.quick-trend-tools{padding:12px 0;border-bottom:1px solid #3c5362;margin-bottom:12px}.quick-trend-tools>summary{cursor:pointer;font-size:12px;color:#b6cbd7}.quick-trend-tools .range{padding:14px 0}.quick-trend-tools input{max-width:220px}

/* GPS and automatic record details */
.auto-location{color:#b9d3d8;font-size:12px;margin:5px 0 8px;overflow-wrap:anywhere}.small-unit>.auto-location{margin:0 0 7px;font-size:11px}.gps-area{margin:12px 0;padding:12px;border:1px solid #355563;border-radius:10px;background:#15303e}.gps-area strong{display:inline-block;margin-right:8px}.gps-area small{font-size:11px;color:#b9cdd3}.gps-area a{color:#b9cdd3}.auto-tag{font-size:10px;color:#e9d34b}.auto-record-field{min-width:0}.auto-record-field small{display:block;color:#a8c6ce;font-size:11px;line-height:1.5;margin-top:5px}.auto-switch{display:flex!important;align-items:center;gap:7px;font-size:12px;margin-top:7px}.auto-switch input{width:auto!important;margin:0}.job-shortcuts{padding:14px;border:1px solid #355563;border-radius:10px}.job-shortcuts h3{margin-top:0}.job-shortcuts button{margin-bottom:10px}

/* Fleet controls follow the map and remain reachable when it is hidden. */
.fleet-grid>.personal-toolbar{grid-column:1;grid-row:2;margin:0;align-self:start}.fleet-grid>.asset-list{grid-column:2;grid-row:1 / span 2}.fleet-grid.map-hidden>.personal-toolbar{grid-column:1;grid-row:1}.fleet-grid.map-hidden>.asset-list{grid-column:1;grid-row:2}
#map{position:relative}#map-selection:not(:empty){position:absolute;z-index:5;left:12px;bottom:12px;width:min(300px,calc(100% - 24px));max-height:230px;overflow:auto;padding:12px;border:1px solid #465465;border-radius:10px;background:#17212bef;box-shadow:0 5px 22px #0008}#map-selection .map-selection-cards{display:block}#map-selection p{margin:4px 0}#map-selection small{display:block;margin-top:6px}.tile-radio{display:flex;justify-content:space-between;gap:8px;font-size:12px;padding:8px 12px;border-top:1px solid #344250}.tile-radio .signal-bars{height:15px}.calendar-track{min-height:42px;overflow:hidden}.calendar-bar{position:absolute;white-space:nowrap;overflow:hidden;min-width:0!important}.calendar-free{font-size:12px;color:#9ba9b8;margin:10px;display:block}
@media(max-width:850px){.fleet-grid>.personal-toolbar{grid-column:1;grid-row:2}.fleet-grid>.asset-list{grid-column:1;grid-row:3}}

.combined-chart,.studio-chart{position:relative;overflow:hidden}.chart-xtrace{position:absolute;top:65px;width:min(320px,90%);max-height:230px;overflow:hidden;background:#17212bf2;border:1px solid #5c6b79;border-radius:8px;padding:10px;z-index:6;pointer-events:none;font-size:12px;box-shadow:0 4px 18px #0006}.chart-xtrace[hidden]{display:none}.chart-xtrace>div{display:flex;flex-direction:column;gap:4px}.chart-scale{display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding:6px}.chart-scale label{font-size:11px}.chart-scale input{width:100px}.chart-scale button{font-size:12px}

/* Compact process controls and grouped native/notification limits. */
.alarm-hub{padding-top:8px}.alarm-category{border:1px solid var(--line,#29434c);border-radius:10px;margin:10px 0;padding:12px}.alarm-category>summary{font-weight:650;cursor:pointer}.alarm-category>summary small{font-weight:400;opacity:.7;margin-left:8px}.alarm-category .alarm-rule-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.alarm-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.start-blocked{border-left:3px solid #f2c94c;padding:10px 14px;background:rgba(242,201,76,.06)}.native-shortcuts{flex-wrap:wrap;margin:14px 0}.alarm-rule>.rule-enable{display:flex;align-items:center;gap:8px}.rule-enable input{width:auto}.alarm-hub .section{margin:12px 0}.alarm-rule details{margin-top:8px}@media(max-width:700px){.alarm-category .alarm-rule-list,.alarm-pair{grid-template-columns:1fr}}

#native-group-form .alarm-rule-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#field-hmc-setpoint{display:grid;grid-template-columns:1fr 1fr 2fr auto;align-items:end;gap:12px;margin:16px 0}#native-group-form>label{margin-top:12px}@media(max-width:700px){#native-group-form .alarm-rule-list,#field-hmc-setpoint{grid-template-columns:1fr}}

/* One everyday operating panel, with service settings collapsed. */
.operator-control-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.operator-control-heading h3{margin:5px 0}.control-connection{font-size:12px;border:1px solid #47606a;border-radius:20px;padding:6px 12px}.control-connection.ready{color:#6cdfbd;border-color:#2b806c}.operator-control-grid{display:grid;grid-template-columns:1.15fr 1fr 1.3fr;gap:14px}.operator-control-card{border:1px solid #354d55;border-radius:12px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;background:rgba(255,255,255,.025)}.operator-control-card>span{font-size:13px;color:#a8bec6}.operator-control-card>strong{font-size:26px;line-height:1.15}.operator-control-card strong small{font-size:12px;font-weight:400;color:#a8bec6}.operator-control-card .actions{margin-top:auto;flex-wrap:wrap}.operator-control-card>button{margin-top:auto}.control-history,.advanced-controls{margin:14px 0;padding:12px 0;border-top:1px solid #354d55}.advanced-controls>summary,.control-history>summary{cursor:pointer;font-weight:600}#hmc-control-center>.native-shortcuts:empty{display:none}.flow-source-choices{display:grid;gap:12px}.flow-source-choices button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:16px}.flow-source-choices small{color:#a8bec6;text-align:left}@media(max-width:850px){.operator-control-grid{grid-template-columns:1fr}.operator-control-card{padding:14px}.operator-control-heading{align-items:flex-start}}

.hmc-settings-pages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.hmc-settings-pages button{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:14px}.hmc-settings-pages button small{color:#a8bec6;font-size:11px}.hmc-settings-pages button.selected{border-color:#efd024;background:rgba(239,208,36,.09)}.hmc-page-selector{display:none}.hmc-settings-title{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #354d55;margin-bottom:14px}.hmc-settings-title h4{font-size:18px}#native-group-form .alarm-rule-list label{padding:12px;border:1px solid #354d55;border-radius:8px}#native-group-form [type=checkbox]{width:20px;height:20px;margin-top:8px}@media(max-width:700px){.hmc-settings-pages{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* project_board.css */
/* Fleet map stays in document flow and leaves room for the unit grid. */
.personal-fleet{grid-template-columns:minmax(0,1fr)}
.personal-fleet .mapbox{position:static;top:auto;min-height:0;width:100%;box-sizing:border-box}
.personal-fleet #fleet-map-svg{height:280px;min-height:0;width:100%}
.personal-fleet #map-selection:not(:empty){position:absolute;left:12px;right:auto;bottom:12px;width:min(300px,calc(100% - 24px));max-height:230px;margin:0;overflow:auto;box-sizing:border-box}
.personal-fleet .asset-list{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.personal-fleet.density-dense .asset-list{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
header .brand-symbol{width:80px;height:75px}
header .brand-symbol img{width:176.2px;height:176.2px;left:-48.1px;top:-50.8px;object-fit:contain}
.town-search{position:relative;margin:14px 0}.town-search label{margin:0}.town-results{display:grid;gap:4px;max-height:220px;overflow:auto;background:#172f3e;border-radius:7px}.town-results:not(:empty){border:1px solid #527587;padding:6px;margin-top:5px}.town-results button{text-align:left;padding:9px 12px}.town-results button:hover,.town-results button:focus{background:#345362;color:#f5dc40}.model-town{margin:18px 0 10px}
.board-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}.board-summary>div{display:flex;align-items:center;gap:14px;background:#1a3443;border:1px solid #436171;border-radius:10px;padding:18px}.board-summary b{font-size:32px;color:#edd020}.board-summary span{font-size:12px;color:#c3d8df}.project-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;margin:20px 0}.project-card{margin:0;min-width:0}.project-card h2{font-size:20px}.project-card>p{font-size:13px}.panel-title-inline{display:flex;align-items:center;justify-content:space-between;gap:14px}.panel-title-inline h2{margin:0 0 10px}.project-state{font-size:11px;padding:5px 10px;border-radius:12px;text-transform:capitalize;background:#345061}.project-state.active{background:#235e50;color:#b3f4de}.project-state.scheduled{color:#f6df62;background:#534a26}.project-issues{padding-left:19px;font-size:12px;line-height:1.6}.project-issues li{margin:6px 0}.project-issues .error{color:#ff9fae}.project-issues .warning{color:#ead778}.project-issues .attention{color:#96cfff}.project-ok{color:#83dfbf;font-size:12px}.project-health-pills{display:flex;flex-wrap:wrap;gap:8px;font-size:12px}.project-health-pills>span{padding:7px;border:1px solid #365765;border-radius:8px}.project-health-pills .badge{margin-left:5px}.board-calendar{overflow-x:auto;padding:12px 0}.calendar-range{display:flex;justify-content:space-between;margin-left:200px;font-size:11px;color:#b6cdd8}.calendar-row{display:grid;grid-template-columns:190px minmax(280px,1fr);align-items:center;gap:10px;margin:12px 0;min-width:530px}.calendar-row>button{justify-self:start;width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis;text-align:left;white-space:nowrap}.calendar-track{position:relative;height:38px;background:repeating-linear-gradient(90deg,#152c3b 0,#152c3b calc(14.285% - 1px),#345361 calc(14.285% - 1px),#345361 14.285%);border-radius:5px}.calendar-bar{position:absolute;top:3px;height:32px;padding:0 9px;white-space:nowrap;overflow:hidden;border:0;border-radius:4px;background:#4e6878;color:#f4f8fa}.calendar-bar.scheduled{background:#dbc22c;color:#182b32}.calendar-bar.active{background:#69cfae;color:#112f28}.calendar-bar.conflict{background:#f0919f;color:#351922}.calendar-bar span{font-size:10px}.project-process{display:block;width:100%;min-width:700px;max-height:650px;background:#102633;border:1px solid #436374;border-radius:10px;margin:16px 0}.project-detail{overflow:auto;scroll-margin-top:20px}.project-process text{font:11px system-ui;fill:#c7dce5}.project-process .project-node-title{font-size:14px;fill:#f1d843;font-weight:650}.project-process .project-node-name{font-size:15px;fill:#f4f8fa;font-weight:650}.project-process .project-pipe{fill:none;stroke:#69bfd5;stroke-width:4}.project-process [data-open]{cursor:pointer}.project-process [data-open]:hover rect,.project-process [data-open]:focus rect{stroke:#edd020;stroke-width:3}.project-capacity-review{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;padding:12px;background:#162d3c;border-radius:7px;font-size:12px}dialog:has(#project-form){width:min(1200px,95vw);max-width:95vw}.point-editor{min-width:920px}.point-editor td{padding:8px}.point-editor input,.point-editor select{margin:3px 0;box-sizing:border-box;width:100%;min-width:80px}.point-editor td:first-child{width:200px}.point-editor td:nth-child(5){width:250px}.point-editor input{font-size:12px}.point-editor select{font-size:12px}.table-wrap td>small{display:block;margin-top:4px}
.combined-chart,.studio-chart{background:#102633;border-color:#4a6575}.combined-chart .plot-background,.studio-chart .plot-background{fill:#102633}.combined-chart .trend-grid,.studio-chart .trend-grid{stroke:#345463;stroke-width:1}.combined-chart .axis-text,.studio-chart .axis-text{fill:#c1d6e0;font-size:12px}.combined-chart path[fill="none"],.studio-chart path[fill="none"],.compare-svg path{vector-effect:non-scaling-stroke}.compare-svg{background:#102633;border:1px solid #456372;border-radius:8px;padding:8px;box-sizing:border-box}.compare-svg text{fill:#c5d9e3}.compare-legend span:first-child{color:#6ee0c1}.compare-legend span:nth-child(2){color:#edd020}.combined-chart #trend-crosshair{stroke:#d6e7ed}.trend-legend .legend-chip{color:#d9e8ed}.trend-legend .legend-chip:hover{background:#2b4657}
@media(max-width:660px){.personal-fleet #fleet-map-svg{height:220px;min-height:0}.personal-fleet.density-dense .asset-list{grid-template-columns:repeat(2,minmax(0,1fr))}.board-summary{grid-template-columns:1fr;gap:8px}.board-summary>div{padding:12px}.project-cards{grid-template-columns:1fr}.panel-title-inline{flex-wrap:wrap}.project-process{max-height:none}.brand-symbol{flex:none}.studio-chart{overflow-x:auto}.studio-chart svg{min-width:760px}.studio-chart .axis-text{font-size:12px}.combined-chart .axis-text{font-size:12px}}
@media print{.project-process{background:white}.project-process text{fill:#172c37}.calendar-track{background:#eee}.calendar-bar{print-color-adjust:exact}}

/* Date positions are applied through validated CSSOM properties. */
.calendar-axis{position:relative;height:24px;margin:12px 0 0 200px;min-width:330px;font-size:11px;color:#b6cdd8}
.calendar-axis span{position:absolute;top:0;white-space:nowrap}
.calendar-track{background-color:#152c3b;background-image:linear-gradient(to right,#345361 1px,transparent 1px);background-repeat:repeat}

.rpl-lineup{display:flex;gap:12px;flex-wrap:wrap;padding:12px;background:#193747;border-radius:9px;margin:12px 0}.rpl-lineup span{font-size:13px}.rpl-open{color:#6ee0c1}.rpl-closed{color:#ff8593}.rpl-diagram-scroll{overflow:auto}.rpl-process{min-width:780px}.rpl-process text,.rpl-route svg text{font-family:inherit;fill:#dceaf0;font-size:13px}.rpl-process .rpl-small,.rpl-route svg .rpl-small{font-size:11px;fill:#a8c0cf}.rpl-process .rpl-heading,.rpl-route svg .rpl-heading{font-size:20px;fill:#edd020;font-weight:700}.rpl-building{font-weight:700}.rpl-estimated-pipe{fill:none;stroke:#73919f;stroke-width:5;stroke-dasharray:9 5}.rpl-route{border-top:1px solid #365362;margin-top:15px;padding-top:15px}.rpl-route summary{cursor:pointer;font-weight:600}.rpl-route svg{width:100%;min-width:600px;background:#112b3a;border-radius:8px;margin-top:12px}

.rpl-process .rpl-valve-closed text{fill:#ff8593}.rpl-process .rpl-valve-open text{fill:#6ee0c1}.rpl-process .rpl-valve-unknown text{fill:#9eafbe}

.project-process.rpl-process{max-height:none;height:auto;min-width:1000px}.rpl-route svg{max-width:720px;display:block;margin:12px auto}
#project-form [hidden]{display:none!important}

.calendar-section-heading{padding:10px 12px;background:#294653;border-left:4px solid #edd020}.board-calendar>h3:not(.calendar-section-heading){padding:10px 12px;background:#183d36;border-left:4px solid #69cfae}.calendar-row>b{padding-left:10px}
/* Job design and calendar editing */
.calendar-project-label{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding-left:10px;min-width:0}.calendar-project-label b{overflow-wrap:anywhere}.calendar-date-edit{margin:0;width:auto;font-size:12px;padding:4px 7px}.calendar-unit-link{min-height:24px;padding:3px 0;border:0;background:transparent;color:#9ee8ff;font-size:13px}.calendar-unit-link:hover{color:#f5de6a;text-decoration:underline}.flow-design{border:1px solid #557386;border-radius:9px;padding:18px;margin:18px 0;background:#152f3d}.flow-plan-summary{background:#153c40;border:1px solid #528e87;border-radius:9px;padding:18px;margin:16px 0}.flow-plan-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.flow-plan-metrics article{display:grid;gap:8px;padding:14px;background:#16303d;border-radius:8px}.flow-plan-metrics b{font-size:20px;color:#94f0d4}.flow-plan-metrics small{color:#ccdde4}.flow-plan-summary a{color:#9ee8ff}.point-geometry td{padding:10px 16px;background:#163544;border-bottom:2px solid #50717e}.point-geometry .form-grid{grid-template-columns:repeat(3,minmax(180px,1fr))}.designed-process{min-width:900px;max-height:none}.flow-design [hidden]{display:none!important}
@media(max-width:660px){.calendar-date-edit{text-align:left}.flow-design,.flow-plan-summary{padding:12px}.flow-plan-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-plan-metrics b{font-size:16px}.flow-design .form-grid{grid-template-columns:1fr}.point-geometry .form-grid{grid-template-columns:1fr}.point-editor{min-width:840px}}
.flow-design,.flow-plan-summary,.point-geometry{color:#e9f3f7}#project-form .flow-design label,#project-form .point-geometry label,.flow-plan-summary h3,.flow-plan-summary summary,.flow-plan-summary td{color:#e9f3f7}#project-form .flow-design h3{color:#f5de6a}.flow-design p,.flow-plan-summary p{color:#bfd3df}.flow-plan-summary th{background:#234958;color:#f0f7fa}.flow-plan-summary td{background:#18383d}.calendar-section-heading,.board-calendar>h3{color:#e9f3f7}
.calendar-bar.draft{background:#354f66;color:#eef6ff;border:2px dashed #94b9db}.calendar-bar.draft.conflict{border-color:#ffb0b8}
.unit-calendar-key{display:flex;flex-wrap:wrap;gap:12px 20px;margin:16px 0;padding:12px;border-top:1px solid #648292;color:#dcebf4;font-size:12px;min-width:530px}
.unit-calendar-key span{display:inline-flex;align-items:center;gap:8px}.unit-calendar-key i{width:24px;height:14px;border-radius:3px;background:#354f66;display:inline-block}.unit-calendar-key .active{background:#69cfae}.unit-calendar-key .scheduled{background:#dbc22c}.unit-calendar-key .draft{border:2px dashed #94b9db}.unit-calendar-key .conflict{background:#f0919f}

/* monitoring.css */
.power-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0;padding:14px;background:#213641;border:1px solid var(--line);border-left:4px solid #edd019;border-radius:10px}.power-summary>div{display:flex;flex-direction:column;gap:5px}.power-summary strong{font-size:20px}.power-summary small,.power-summary span{font-size:12px;color:var(--muted)}.power-summary p{grid-column:1/-1;margin:0}.inline{display:inline-flex!important;align-items:center;gap:5px;margin-right:12px}#monitoring-form fieldset{border:1px solid var(--line);border-radius:8px}@media(max-width:700px){.power-summary{grid-template-columns:1fr}}

.battery-charge{width:100%;height:16px;accent-color:#edd020}

/* unit_workspace.css */
.unit-navigation{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin:20px 0 12px;padding:12px;background:#172b36;border:1px solid var(--line);border-radius:12px}.unit-main-tabs,.unit-tool-groups{display:flex;gap:8px;flex-wrap:wrap}.unit-main-tabs button.active{background:#edd020;color:#142530;border-color:#edd020}.unit-tool{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}.unit-tool select{max-width:220px;min-height:36px;font-size:13px}.signal-panel{padding:16px;border:1px solid var(--line);border-radius:12px;background:#172b36;margin:12px 0}.signal-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}.signal-heading h3{display:flex;align-items:center;gap:10px;margin:8px 0}.signal-heading h3 small,.signal-carrier small{font-size:12px;color:var(--muted);font-weight:400}.signal-carrier{font-size:13px}.signal-bars{display:inline-flex;gap:3px;align-items:end;height:30px}.signal-bars i{width:7px;border-radius:2px;background:#455660}.signal-bars i.lit{background:#edd020}.radio-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.radio-grid article{padding:12px;border-radius:8px;background:#213641;display:flex;flex-direction:column;gap:6px}.radio-grid strong{font-size:23px}.radio-grid strong small{font-size:12px;font-weight:400}.radio-grid p{font-size:12px;color:var(--muted);margin:0;line-height:1.5}.sample-state{font-size:11px;color:var(--muted)}.sample-state.stale{color:#ffd98d}.unit-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.data-section{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#172b36}.data-section h3{padding:14px;margin:0;border-bottom:1px solid var(--line);font-size:16px}.data-section table{margin:0;width:100%;font-size:13px}.reading-value{font-weight:600;overflow-wrap:anywhere}.reading-value small{font-weight:400;color:var(--muted)}.additional-data{margin-top:16px}.additional-data summary{cursor:pointer;padding:12px;color:var(--muted)}@media(max-width:1000px){.radio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.unit-data-grid{grid-template-columns:1fr}.unit-navigation{display:block}.unit-tool-groups{margin-top:12px}.unit-tool{flex:1;min-width:130px}.unit-tool select{width:100%;max-width:none}.unit-main-tabs{display:grid;grid-template-columns:repeat(2,1fr)}.radio-grid strong{font-size:20px}.radio-grid article{padding:10px}.signal-panel{padding:12px}}

.unit-process-details{margin:18px 0;border:1px solid var(--line);border-radius:12px;padding:12px}.unit-process-details>summary{cursor:pointer;color:#edd020;font-weight:600;padding:6px}.unit-process-details[open]>summary{margin-bottom:12px}.power-summary strong{font-size:18px}.data-section td{vertical-align:top}.data-section th{white-space:normal}

.signal-bars i{display:block;flex-shrink:0}.signal-bars i:nth-child(1){height:11px}.signal-bars i:nth-child(2){height:16px}.signal-bars i:nth-child(3){height:21px}.signal-bars i:nth-child(4){height:26px}
.data-section td{padding:8px 12px}.data-section td small{font-size:11px}.data-section th{padding:10px 12px}

#detail-connections{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}#detail-connections>.connection-strip{flex:1;min-width:300px}#detail-connections>.quick-battery,#detail-connections>.quick-signal{display:flex;gap:9px;align-items:center;background:#213641;border:1px solid var(--line);border-radius:9px;padding:8px 12px;font-size:13px}.quick-battery small,.quick-signal small{color:var(--muted);font-size:11px}.quick-battery button,.quick-signal button{font-size:11px;padding:5px 8px}.quick-battery>span{color:var(--muted)}.process-panel .process-svg{display:block;width:100%;max-width:650px;max-height:290px;margin:0 auto}.process-panel{padding:12px 16px}.process-panel h2{font-size:18px;margin:4px 0}.process-panel .process-status-grid,.process-panel>p.caption{display:none}.advanced-connection{margin-top:16px}.advanced-connection>summary{cursor:pointer;padding:12px;color:var(--muted)}@media(max-width:700px){#detail-connections>.quick-battery,#detail-connections>.quick-signal{flex:1;flex-wrap:wrap;gap:6px;min-width:130px}.process-panel .process-svg{max-height:240px}.process-panel{padding:10px}.quick-signal .signal-bars{height:26px}.quick-battery small,.quick-signal small{flex-basis:100%}}
.process-panel .pid-label{font-size:20px}.process-panel .pid-tag{font-size:24px}.process-panel .pid-value{font-size:22px}.process-panel .pid-note{font-size:17px}.process-panel .pid-big{font-size:32px}

.unit-top-columns{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr);gap:14px;align-items:start}.unit-top-columns>section,.unit-top-readings{min-width:0}.unit-top-columns .process-svg{max-width:100%;margin:0;max-height:270px}.unit-top-readings #detail-connections{margin-top:0}.unit-top-readings .quick-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.unit-top-readings .quick{min-height:100px;padding:12px}.unit-top-readings .quick b{font-size:25px}.unit-top-readings .quick.remaining{grid-column:auto}.unit-top-columns .process-quickbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.unit-top-columns .process-panel{margin:0}@media(max-width:900px){.unit-top-columns{grid-template-columns:1fr}.unit-top-columns .process-svg{max-width:540px;margin:0 auto}.unit-top-readings .quick-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

.unit-top-readings{display:flex;flex-direction:column;gap:8px}.unit-top-readings>section.panel{padding:10px 12px;margin:0}.unit-top-readings>section.panel h2{font-size:15px;margin:0 0 5px}.unit-top-readings>section.panel p{font-size:12px;margin:5px 0}.unit-top-readings>section.panel>.caption{display:none}.unit-top-readings #equipment-location{order:-1}.unit-top-readings #equipment-location h3{font-size:18px;margin:6px 0}.unit-top-readings #equipment-location h2{display:none}.unit-top-readings #detail-capacity{margin:0}.unit-top-readings #detail-connections>.connection-strip{flex-basis:100%}.unit-top-readings #detail-connections{margin:0}.unit-top-columns .process-quickbar{grid-template-columns:repeat(2,minmax(0,1fr))}.unit-top-columns .process-quickbar .actions{flex-wrap:wrap}.unit-top-readings #equipment-location .location-detail-map{max-height:120px}
.unit-top-columns .process-quickbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:10px}.unit-top-columns .process-quickbar>div{min-width:0}.unit-top-columns .process-quickbar strong,.unit-top-columns .process-quickbar b{font-size:16px}.unit-top-columns .process-quickbar .actions{display:flex;gap:5px}.unit-top-columns .process-quickbar button{padding:6px 8px;font-size:12px}.unit-top-columns .pid-label{font-size:17px}.unit-top-readings #equipment-location{position:relative}.unit-top-readings #equipment-location #edit-job{position:absolute;right:10px;top:10px;padding:6px 9px;font-size:12px}.unit-top-readings #equipment-location .panel-title-inline{height:0;margin:0}.unit-top-readings #equipment-location h3{padding-right:90px}.unit-top-readings #equipment-location .job-line{margin:0;padding-right:90px}.unit-top-readings #equipment-location .location-health{margin-top:6px;padding-top:6px;gap:18px}.unit-top-readings #equipment-location .location-health b{display:inline;font-size:12px;margin-left:6px}

/* field_tools.css */
.report-issue{position:fixed;right:16px;bottom:12px;z-index:40;font-size:11px;padding:5px 10px;opacity:.8;border-color:#756d37;background:#17252a;color:#e8d33b}.report-issue:hover{opacity:1}.issue-list{max-height:48vh;overflow:auto;margin-top:14px}.issue-list article{border-top:1px solid #344750;padding:12px 0}.issue-list small{display:block;margin-top:4px}.issue-list p{white-space:pre-wrap;font-size:13px}.checksum{overflow-wrap:anywhere}

/* solve.css */
.carrier-settings{margin-top:24px}.carrier-settings form{margin:12px 0;max-width:600px}.carrier-settings .solve-map{display:flex;gap:12px;align-items:end}.solve-map label{flex:1}.carrier-unit{margin-top:16px}.carrier-unit>strong{font-size:1.6rem;color:var(--accent,#eed41b)}.carrier-settings small{display:block}

/* Focused carrier history presentation. */
.carrier-studio .carrier-measure-tabs{display:flex;gap:4px;flex-wrap:wrap;padding:4px;background:#0d202b;border:1px solid #344c5b;border-radius:8px;width:fit-content;margin:18px 0}
.carrier-studio .carrier-measure-tabs button{background:transparent;color:#b8cbd7;border:0;box-shadow:none;padding:9px 14px;font-size:13px}
.carrier-studio .carrier-measure-tabs button[aria-pressed="true"]{background:#29485b;color:#fff}
.carrier-studio .carrier-summary{display:flex;gap:32px;flex-wrap:wrap;margin-bottom:12px}
.carrier-studio .carrier-summary>div{display:grid;gap:4px}.carrier-studio .carrier-summary small{color:#aebfca;font-size:12px}
.carrier-studio .carrier-summary strong{font-size:29px;font-weight:600;color:#edf4f8;font-variant-numeric:tabular-nums;letter-spacing:-.6px}.carrier-studio .carrier-summary strong span{font-size:14px;color:#aebfca;letter-spacing:0}
body .carrier-studio .studio-chart{background:#10232f;border:1px solid #344c5b;border-radius:8px;box-shadow:none}
body .carrier-studio .plot-background{fill:#10232f}body .carrier-studio .trend-grid{stroke:#29404f;stroke-dasharray:none;stroke-width:1}
body .carrier-studio .axis-text{fill:#aebfca;font-family:inherit}
body .carrier-single #studio-svg>path[fill="none"],body .carrier-single .swatch path{stroke:#76b5db}body .carrier-single #studio-svg>circle{fill:#76b5db}
body .carrier-studio .legend-chip{background:transparent;border:0;box-shadow:none;min-height:28px;padding:3px 8px;font-size:12px}
.carrier-studio .trend-legend-heading{display:none}.carrier-studio .studio-navigation label:has(#studio-alarms){display:none}
.carrier-studio .carrier-summary+p{max-width:900px;line-height:1.5}.analyzer-connection-help{padding:12px;border:1px solid #405b6b;border-radius:6px;margin:12px 0}.analyzer-connection-help p{margin:5px 0;font-size:13px}

.carrier-studio #studio-alarm-note{display:none}

/* layout.css */
/* Final shared layout layer. Keep equipment density and chart behavior intact. */
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--radius:10px}
body{line-height:1.45}button,input,select,textarea{font:inherit}button{min-height:36px;line-height:1.25}input,select{min-height:40px}textarea{line-height:1.5}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}
body>header{display:grid;grid-template-columns:minmax(220px,1fr) auto;grid-template-areas:'brand identity' 'nav nav';align-items:center;gap:8px 24px;padding:12px max(24px,calc((100vw - 1402px)/2));min-height:0;height:auto}
body>header .brand{grid-area:brand;min-width:0;max-width:330px;gap:12px}body>header #identity{grid-area:identity;margin-left:0;justify-content:flex-end;gap:8px;flex-wrap:wrap}body>header #nav{grid-area:nav;display:flex;width:100%;flex-wrap:nowrap;gap:4px;overflow-x:auto;padding:2px 0;align-items:center;scrollbar-width:thin}body>header #nav button{flex:none;padding:8px 13px;min-height:34px;white-space:nowrap}body>header .brand-symbol{width:64px;height:60px}body>header .brand-symbol img{width:141px;height:141px;left:-38.5px;top:-40.6px}body>header .brand b{font-size:24px}body>header .brand small{font-size:9px;line-height:1.35;margin-top:3px}body>header #identity small{display:block;margin-top:2px}
main{padding:24px 24px 64px;min-width:0}h1{font-size:30px;line-height:1.2;margin:6px 0 12px}h2{font-size:19px;line-height:1.3;margin:0 0 12px}h3{line-height:1.35;margin:0 0 10px}p{margin:8px 0 16px;line-height:1.55}.caption{line-height:1.55}.topline{align-items:flex-start;gap:16px;margin-bottom:20px;flex-wrap:wrap}.topline>div{min-width:0;flex:1}.topline>button,.topline>.actions{align-self:center}.topline p{max-width:80ch}.topline .actions{margin:0}
.panel{padding:20px;border-radius:var(--radius);min-width:0}main>.panel+ .panel,main>section.panel+section,main>section+section.panel{margin-top:20px}main>h2{margin-top:28px}main>h1+.panel,main>h1+.delivery-grid,main>h1+.readiness-grid{margin-top:20px}.panel>h2+.caption,.panel>h3+.caption{margin-top:0}.panel>:last-child{margin-bottom:0}.section{margin-top:24px}.panel-title{padding:16px 20px 0;gap:12px}.panel-title-inline{gap:12px;align-items:center}.panel-title-inline h2{margin-bottom:0}
label{margin-bottom:14px;line-height:1.45}input,select,textarea{margin-top:6px;padding:9px 11px;min-width:0}.form-grid{gap:16px}.form-grid label{margin:0}.form-grid>button{align-self:end}.form-grid>.wide{grid-column:1/-1}.actions{gap:8px;margin-top:16px;align-items:center}.filters,.range,.personal-toolbar,.studio-toolbar,.studio-navigation{gap:10px}.range{padding:12px;border-radius:8px}.range label{min-width:0}.range input{max-width:100%}.filters{margin:16px 0}.filters>small{line-height:1.5}.personal-toolbar{padding:12px 0;margin:0 0 16px}.personal-toolbar label{margin:0}.unit-tool{margin:0}.unit-tool select{margin-top:0}.unit-navigation{margin:20px 0 16px;gap:12px;padding:12px}.unit-main-tabs,.unit-tool-groups{gap:8px;align-items:end}
.table-wrap{max-width:100%;min-width:0;border-radius:8px}.table-wrap.panel{padding:0}td,th{padding:12px 14px;vertical-align:top;line-height:1.5}td p{margin:4px 0 10px}td p:last-child{margin-bottom:0}td button{margin:2px 4px 2px 0}th{font-size:11px;letter-spacing:.2px}td small{line-height:1.5}.table-wrap td>small{margin-top:4px}table input[type=checkbox]{margin:5px 0;min-height:0}
.stats{gap:12px;margin-bottom:16px}.stat{padding:14px 16px}.stat b{font-size:28px;margin-top:4px}.fleet-filter-panel{margin-bottom:16px;padding:12px 16px}.fleet-filter-grid{gap:12px}.personal-fleet{display:block}.personal-fleet .mapbox{margin-bottom:12px}.personal-fleet #fleet-map-svg{height:240px;min-height:0}.personal-fleet>.personal-toolbar{margin:0 0 16px}.personal-fleet .asset-list{gap:12px}.personal-fleet.density-dense .asset-list{gap:8px}.asset.small-unit{padding:14px}.small-unit.dense{padding:10px}.small-unit-title{padding-bottom:10px}.small-unit-metrics{padding:12px 0;gap:12px 8px}.tile-radio{padding:8px 0}.small-unit-foot{min-height:34px}.map-actions{top:12px;right:12px}.mapnote{padding:8px 20px 14px;margin:0}.mapbox .panel-title{padding-top:14px}
.unit-top-columns{gap:16px;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr)}.unit-top-readings{gap:10px}.unit-top-readings>section.panel{padding:12px 14px}.unit-top-columns .process-panel{padding:14px}.unit-top-columns .process-quickbar{margin:12px 0 0;padding:12px;gap:12px}.unit-data-grid{gap:16px}.data-section h3{padding:12px 14px}.data-section td,.data-section th{padding:10px 12px}.advanced-connection,.additional-data{border:1px solid var(--line);border-radius:8px;margin-top:16px}.advanced-connection>summary,.additional-data>summary{padding:12px 14px}.advanced-connection[open],.additional-data[open]{padding-bottom:12px}.advanced-connection>.power-summary,.advanced-connection>.signal-panel{margin:12px}.carrier-unit>strong,.carrier-unit>p,.carrier-unit>small{display:block;margin:12px 14px}
.board-summary{gap:12px;margin:16px 0 20px}.board-summary>div{padding:14px 16px}.board-summary b{font-size:28px}.project-cards{gap:16px;margin:20px 0}.project-card p{margin:10px 0}.project-health-pills{gap:8px}.readiness-grid{gap:12px;margin:16px 0 24px}.readiness-grid article{padding:16px}.readiness-grid article h3{margin:8px 0}.readiness-grid article span{margin-top:6px}.delivery-grid{gap:16px}.carrier-settings{margin-top:24px}.carrier-settings details{padding:12px 0}.carrier-settings .solve-map{gap:12px}.carrier-settings .solve-map label{margin:0}.carrier-settings .solve-map button{flex:none}
.studio-panel{padding:20px}.studio-toolbar,.studio-navigation{margin:12px 0}.studio-toolbar label{min-width:0}.studio-chart,.combined-chart{border-radius:8px}.series-picker{padding:12px 14px;margin:16px 0}.series-options{gap:12px;padding-top:14px}.trend-legend{margin:12px 0;gap:8px}.trend-ranges{padding:12px 0;gap:8px}.chart-scale label{margin:0}.chart-scale{gap:8px;padding:8px 0}.chart-scale input{min-height:36px}.event-title{margin:24px 0 12px}
dialog{padding:24px;max-height:calc(100dvh - 40px);overflow:auto;max-width:720px;border-radius:12px}dialog h2{padding-right:32px}.close{min-height:32px;width:32px;padding:0;right:12px;top:12px}dialog .actions{padding-top:4px}.checklist{padding:12px}.checklist label{line-height:1.5}.notice{margin:16px 0;padding:12px 16px}.empty{padding:28px 20px}.login{margin:40px auto}.login h1{margin-bottom:16px}#toast{line-height:1.5;max-width:min(600px,calc(100vw - 32px))}
label:has(>input[type=checkbox]){display:flex;align-items:center;gap:8px}label>input[type=checkbox]{flex:none;width:16px;height:16px;min-height:0;margin:0}.studio-toolbar>#studio-views{width:180px;flex:0 1 180px;margin-top:0}.studio-toolbar>.studio-live{align-self:end;min-height:40px}.studio-navigation>label{margin:0}.studio-navigation>span{line-height:1.45}.studio-toolbar>button{min-height:40px}.board-calendar .calendar-bar{min-height:0}.topline>div:not(:first-child){flex:0 0 auto}.person-units:empty,h3:has(+.person-units:empty){display:none}
@media(min-width:1800px){body>header{grid-template-columns:270px minmax(0,1fr) auto;grid-template-areas:'brand nav identity';gap:20px}body>header #nav{justify-content:center}}
@media(max-width:900px){.unit-top-columns{grid-template-columns:1fr}.topline>div{flex-basis:100%}.topline>button{align-self:start}.unit-navigation{align-items:start}.readiness-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.unit-top-readings #detail-connections>.connection-strip{min-width:0}.series-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){body>header{padding:10px 16px;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}body>header .brand{max-width:230px;gap:8px}body>header .brand-symbol{width:48px;height:45px}body>header .brand-symbol img{width:106px;height:106px;left:-29px;top:-30.5px}body>header .brand b{font-size:20px}body>header .brand small{font-size:8px;max-width:155px}body>header #identity{font-size:10px;gap:6px;max-width:180px}body>header #identity>span{width:100%;text-align:right}body>header #identity button{font-size:10px;padding:6px 8px;min-height:30px}body>header #nav button{font-size:12px;padding:8px 11px}main{padding:20px 16px 64px}h1{font-size:26px}.panel{padding:16px}.topline{margin-bottom:16px}.stats{gap:8px}.stat{padding:12px}.stat b{font-size:24px}.filters>*{min-width:0}.filters input,.filters select{max-width:none;flex:1 1 150px;width:auto}.personal-fleet #fleet-map-svg{height:210px}.personal-fleet.map-hidden.density-comfortable .asset-list{grid-template-columns:1fr}.personal-toolbar>label{flex:1 1 130px}.personal-toolbar>button{flex:1 1 auto}.small-unit.dense .small-unit-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.small-unit-metrics b{font-size:19px}.dense .small-unit-metrics b{font-size:17px}.small-unit-foot small{margin-left:0}.tile-radio{flex-wrap:wrap;font-size:11px}.readiness-grid,.delivery-grid,.form-grid{grid-template-columns:1fr}.unit-tool-groups{width:100%}.unit-tool{flex:1 1 130px}.unit-top-columns .process-quickbar{gap:10px}.range>label,.studio-toolbar>label{flex:1 1 140px}.range input{width:100%}.series-options{grid-template-columns:1fr}.carrier-settings .solve-map{flex-wrap:wrap}.carrier-settings .solve-map label{flex-basis:100%}.board-summary{grid-template-columns:1fr}.studio-panel{padding:14px}.studio-toolbar input[type=datetime-local]{min-width:0;width:100%}dialog{padding:20px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.table-wrap table{min-width:520px}.data-section table{min-width:0}.data-section th,.data-section td{padding:8px}.signal-heading{align-items:start}.quick-signal .signal-bars{flex:none}.quick-signal .signal-bars i{width:5px}.project-process{min-width:700px}}
@media(max-width:380px){body>header .brand small{display:none}body>header #identity{max-width:155px}.personal-fleet.density-dense .asset-list{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:no-preference){button,a,summary{transition:background-color .15s,border-color .15s}}

.tile-radio>span{display:inline-flex;align-items:center;gap:6px;min-height:24px}.tile-radio .signal-bars{height:20px;vertical-align:middle;align-items:flex-end}.tile-radio .signal-bars i:nth-child(1){height:5px}.tile-radio .signal-bars i:nth-child(2){height:9px}.tile-radio .signal-bars i:nth-child(3){height:14px}.tile-radio .signal-bars i:nth-child(4){height:19px}
.project-save-error{padding:12px;border:1px solid #ea6d75;background:#422b32;color:#ffe0e2;border-radius:8px}.project-invalid{outline:2px solid #ea6d75;outline-offset:2px}.nearest-note{color:var(--muted);font-size:12px}

/* Respect operator and device motion preferences without hiding process values. */
@media (prefers-reduced-motion: reduce){.process-svg *,.flow-track *{animation:none!important;transition:none!important}}
.process-status-grid>div{min-width:0}.process-status-grid small{display:block;line-height:1.4}

.bench-passed{color:#70dbc4;font-weight:700}.bench-failed,.bench-timeout,.bench-uncertain{color:#ff8998;font-weight:700}.bench-waiting,.bench-sending,.bench-blocked{color:var(--bps-yellow,#edd020)}#detail-body progress{width:100%;accent-color:var(--bps-yellow,#edd020)}

/* samples.css */
.sample-locations{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.sample-locations article{padding:14px;border:1px solid var(--border,#d8dee3);border-radius:10px}.sample-locations small{display:block}.sample-injection{padding:14px;border:1px solid #d8dee3;border-radius:8px;margin:12px 0}.sample-void{opacity:.65}.sample-report article{break-inside:avoid}.sample-report img{object-fit:contain}@media(max-width:600px){#gas-sample-form{grid-template-columns:1fr}#gas-sample-form .wide{grid-column:auto}.sample-locations{grid-template-columns:1fr}.sample-report .topline{flex-wrap:wrap}}@media print{body:has(.sample-report) header,body:has(.sample-report) #report-issue,body:has(.sample-report) button,body:has(.sample-report) #runtime-status{display:none!important}.sample-report{border:0;box-shadow:none;background:white!important;color:black!important}.sample-report table{font-size:10px}.sample-report .table-wrap{overflow:visible}}

.preserve-lines{white-space:pre-wrap}.learning-content{max-width:850px;margin:24px auto;line-height:1.65}.learning-content p{overflow-wrap:anywhere}.learning-content p:empty{display:none}

#gas-sample-form [hidden]{display:none!important}[data-sample-photo-preview]{max-width:100%;max-height:240px;object-fit:contain;border-radius:8px}.sample-evidence-image{max-width:100%;max-height:75dvh;object-fit:contain}

.pressure-check-panel th,.pressure-check-panel td{color:#eaf3f7}.pressure-check-panel .table-wrap{margin:12px 0}.pressure-check-panel [data-pressure-void]{margin-left:6px}

.sample-draft-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 12px;border:1px solid #597581;border-radius:10px;background:#203b47;color:#edf5f8;font-size:.9rem}.sample-draft-tools button{min-height:34px;padding:6px 10px}.sample-draft-tools [role=status]{flex:1;min-width:190px}

.sample-history{max-width:1440px;margin:auto}.sample-history-project{max-width:620px;margin-bottom:18px}.sample-history-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.sample-history-head h1{font-size:1.7rem;margin:4px 0}.sample-history-head p{margin:5px 0;color:#afc5d0;font-size:.9rem}.sample-history-head .actions{flex-shrink:0;flex-wrap:wrap;margin:0}.sample-history-readings{padding:16px 20px}.sample-history-toolbar{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:14px}.sample-history-toolbar label{margin:0;min-width:155px;flex:1}.sample-history-toolbar .sample-history-search{flex:1.5;min-width:190px}.sample-history-toolbar button{min-height:42px}.sample-day{display:flex;align-items:center;gap:10px;font-size:.95rem;margin:18px 0 8px;color:#e7f1f5}.sample-day small{font-size:.75rem;font-weight:400;color:#9cb6c2}.sample-record{border:0;border-bottom:1px solid #304b58;border-radius:0;background:transparent;margin:0;padding:0}.sample-record>summary{list-style:none;display:grid;grid-template-columns:132px minmax(160px,1fr) minmax(110px,.55fr) 125px 64px;gap:14px;align-items:center;min-height:52px;padding:8px 10px;font-size:.92rem;cursor:pointer;background:transparent}.sample-record>summary::-webkit-details-marker{display:none}.sample-record>summary:hover,.sample-record[open]>summary{background:#1c3542}.sample-record>summary:focus-visible{outline:2px solid #d9c739;outline-offset:-2px}.sample-history-time{font-variant-numeric:tabular-nums;color:#bad0da;white-space:nowrap}.sample-history-location{overflow-wrap:anywhere}.sample-history-value{display:flex;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums}.sample-history-value small{font-size:.75rem;color:#a6bfca}.sample-match{border:1px solid #456170;border-radius:20px;padding:3px 9px;font-size:.73rem;justify-self:start;white-space:nowrap}.sample-match-good{color:#b7e8d0;border-color:#3d7764;background:#183d33}.sample-match-review{color:#f1db9c;border-color:#8e7741;background:#493c20}.sample-match-muted{color:#b0c3cd}.sample-expand{font-size:.78rem;color:#d8c84b;text-align:right}.sample-expand:after{content:' +';font-size:1rem}.sample-record[open] .sample-expand:after{content:' −'}.sample-record-body{display:grid;grid-template-columns:1fr 1fr;gap:20px;background:#142a36;padding:16px 20px;font-size:.88rem}.sample-record-body p{margin:5px 0 12px}.sample-record-body small{color:#bed0d9}.sample-record-body button{font-size:.8rem;min-height:34px;padding:6px 10px;margin:5px 6px 0 0}.sample-record-body>div>b{font-size:.76rem;text-transform:uppercase;letter-spacing:.05em;color:#a3bdc9}.sample-record-actions{display:flex;gap:6px;flex-wrap:wrap}.sample-record-void{opacity:.65}.sample-history-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;font-size:.85rem;color:#bad0da}.sample-history-pager>div{display:flex;gap:8px}.sample-history-pager button{min-height:36px;padding:6px 12px}.sample-history-empty{padding:24px 8px;color:#b7cbd5}.sample-history-tools{border:1px solid #35505d;border-radius:9px;margin-top:12px;background:#122630}.sample-history-tools>summary{padding:12px 16px;font-size:.9rem;cursor:pointer}.sample-history-tool-body{padding:0 16px 16px}.sample-void-toggle{display:flex;align-items:center;gap:8px;font-size:.85rem}.sample-void-toggle input{width:auto}.sample-history .sample-locations article{padding:10px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.sample-history .sample-locations article b{flex:1;min-width:140px}.sample-history .sample-locations button{min-height:34px;padding:6px 10px;font-size:.8rem}.sample-history [data-sample-process-host]>.panel{margin:0;border:0}.sample-history-tool-body>.actions{margin-bottom:14px}
@media(max-width:760px){.sample-history-head{align-items:flex-start;flex-direction:column}.sample-history-head .actions{width:100%}.sample-history-head .actions button{flex:1}.sample-history-readings{padding:12px}.sample-record>summary{grid-template-columns:110px 1fr 110px;gap:5px 10px;padding:9px 6px}.sample-history-time{font-size:.8rem}.sample-history-location{font-size:.85rem}.sample-history-value{justify-self:end;gap:4px}.sample-match{grid-column:2;grid-row:2;font-size:.67rem}.sample-expand{grid-column:3;grid-row:2}.sample-record-body{grid-template-columns:1fr;gap:12px;padding:12px}.sample-history-toolbar label{min-width:120px}.sample-history-toolbar .sample-history-search{min-width:170px}.sample-history-toolbar button{min-height:40px;font-size:.8rem}.sample-history-project{max-width:none}}@media(max-width:430px){.sample-record>summary{grid-template-columns:95px 1fr 90px;column-gap:5px;font-size:.8rem}.sample-history-value{flex-wrap:wrap;gap:1px;justify-content:flex-end}.sample-history-head .actions{gap:6px}.sample-history-head .actions button{padding:8px;font-size:.8rem}.sample-history-pager{font-size:.75rem}.sample-history-toolbar{gap:8px}.sample-history-toolbar label{min-width:110px}}
#sample-history-list{scroll-margin-top:90px}

/* workforce.css */
.staff-calendar-controls{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:end;margin-bottom:14px}.staff-calendar-controls label{display:grid;gap:5px}.staff-calendar-controls .actions{align-items:end}.staff-calendar-scroll{max-height:70vh;overflow:auto;border:1px solid #3b4d54;border-radius:10px}.staff-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));min-width:1050px;gap:1px;background:#3b4d54}.staff-weekday{position:sticky;top:0;z-index:2;padding:12px 8px;background:#26363d;font-weight:650;text-align:center}.staff-calendar-day{padding:10px;background:#13262d;min-height:165px;display:flex;flex-direction:column;gap:7px}.staff-calendar-day time{font-weight:700;color:#e8edf0;margin-bottom:3px}.staff-calendar-day.today{box-shadow:inset 0 0 0 2px #eed41c;background:#26342a}.staff-calendar-day.outside{background:#102027}.staff-calendar-day.outside time{color:#82939a}.staff-shift{text-align:left;display:grid;gap:3px;width:100%;padding:8px;border:1px solid #76672a;border-left:4px solid #ecd321;background:#342f16;color:#fff;border-radius:6px;white-space:normal;overflow-wrap:anywhere;font-size:12px}.staff-shift span,.staff-shift small{font-size:11px}.staff-shift-night{border-color:#3975a1;border-left-color:#73c3f2;background:#16374b}.staff-shift-pm{border-color:#35806c;border-left-color:#71d8b8;background:#183e36}.staff-shift-travel{border-color:#8263b0;border-left-color:#c0a0ec;background:#342a4a}.staff-empty{color:#899ca5}.staff-calendar-warning{color:#ffac85}.staff-safety-alert{border-left:3px solid #ef9a70!important}.jsa-steps{display:grid;gap:12px}.jsa-step{border:1px solid #3c525b;border-radius:8px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.jsa-step .wide{grid-column:1/-1}.jsa-step textarea{min-height:72px}.jsa-ppe{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.jsa-ppe label{display:flex;align-items:center;gap:8px}.jsa-ppe input{width:auto}.jsa-summary{white-space:pre-wrap}.staff-jsa-table td{white-space:pre-wrap;vertical-align:top}.staff-jsa-header{display:flex;flex-wrap:wrap;gap:8px 20px}.staff-jsa-header span{color:#a9bfc9}@media(max-width:650px){.jsa-step{grid-template-columns:1fr}.staff-calendar-controls{align-items:stretch}.staff-calendar-controls .actions{gap:6px}}

/* Staff training uses the same BPS dark panels and compact field layout. */
.learning-stats{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.learning-team{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.learning-person{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;text-align:left;background:#151b24;border:1px solid #384252;border-radius:10px}.learning-person progress{width:100%;height:8px;accent-color:#edd419}.learning-person span,.learning-person small{color:#bdc6d5}.learning-filters{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}.learning-filters label{flex:1 1 180px}.learning-state{display:inline-block;padding:4px 8px;border-radius:6px;background:#283240;font-size:12px}.learning-state.good{color:#9ce4bc;background:#17382c}.learning-state.attention{color:#ffd49b;background:#483421}#learning-records td small{display:inline-block;max-width:38rem;color:#aab5c5;margin-top:4px}.learning-content{max-width:900px;line-height:1.7}.learning-content p{white-space:pre-wrap}@media(max-width:600px){.learning-filters{display:grid;grid-template-columns:1fr}.learning-team{grid-template-columns:1fr}.learning-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.learning-course{max-width:1000px;margin:0 auto}.learning-cover{width:100%;height:220px;object-fit:cover;border-radius:10px;margin:12px 0}.learning-course-meta{display:flex;gap:16px;flex-wrap:wrap;color:#bdc6d5;margin:12px 0}.learning-course>progress{width:100%;height:8px;accent-color:#edd419}.learning-question{border:1px solid #384252;border-radius:10px;padding:18px;margin:20px 0}.learning-question legend{font-weight:600;padding:0 8px}.learning-question label{display:flex;align-items:flex-start;gap:10px;padding:10px 8px;border-radius:6px;cursor:pointer}.learning-question label:has(input:checked){background:#303626}.learning-question input{width:auto;margin:4px 0 0;flex:0 0 auto}@media(max-width:600px){.learning-cover{height:150px}.learning-question{padding:12px}}

.learning-header{flex-wrap:wrap;align-items:flex-start;gap:16px}.learning-header>div:first-child{flex:1 1 300px;min-width:240px}.learning-header>.actions{flex:1 1 560px;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}@media(max-width:900px){.learning-header>.actions{justify-content:flex-start}.learning-header>div:first-child{min-width:0}}

.staff-timeline{display:grid;min-width:2940px;gap:1px;background:#3b4d54}.staff-timeline-label{position:sticky;left:0;z-index:2;background:#20343e;padding:12px;display:grid;align-content:center;gap:5px}.staff-timeline-label small{color:#a9bbc4}.staff-timeline-cell{background:#13262d;padding:7px;min-height:75px;display:flex;flex-direction:column;gap:5px}.staff-timeline-header{position:sticky;top:0;z-index:3;background:#263a44;font-weight:700;min-height:60px}.staff-timeline-header.staff-timeline-label{z-index:4}.staffing-issue{background:#49292d;box-shadow:inset 0 0 0 1px #a74e55}.staff-timeline-cell.today{border-top:3px solid #eed41c}.staff-shift-shop{background:#193c30;border-color:#427d62;border-left-color:#7ed79e}.staff-shift-time_off{background:#452943;border-left-color:#e4a2d0}.staff-shift-sick{background:#173d44;border-left-color:#78d4dc}.staff-shift.requested{border-style:dashed;opacity:.85}.live-time-card{border-left:4px solid #eed41c}.live-time-card .actions{flex-wrap:wrap}.time-exception{color:#ffbd95}

.staff-timeline{grid-template-columns:210px repeat(21,130px)}

.storage-chart{width:100%;max-height:240px}.storage-chart text{fill:#c3d8df;font:12px system-ui}.project-file{padding:12px 0;border-bottom:1px solid #365362;display:flex;flex-wrap:wrap;align-items:center;gap:10px}.project-file small{flex:1;min-width:140px}.panel>details>summary{cursor:pointer;font-weight:650;padding:8px 0}

.staff-labor-menu{margin:12px 0;padding:10px 12px;border:1px solid #365362;border-radius:8px}.staff-labor-menu>summary{font-size:14px;cursor:pointer}.staff-labor-menu label{display:grid;gap:6px;max-width:320px;margin:10px 0}.staff-labor-menu nav{display:flex;flex-wrap:wrap;gap:8px 18px;margin:12px 0}.staff-labor-menu a{font-size:13px;line-height:1.6}.staff-labor-menu .caption{margin-bottom:0;max-width:65rem}

/* Time punches come before scheduling and other workday tools. */
#staff-live-ticket{scroll-margin-top:150px;padding:22px;border-left:4px solid #eed41c}
#staff-live-ticket h2{font-size:28px;margin:4px 0 0}
#staff-live-ticket .topline{gap:16px;flex-wrap:wrap}
.time-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.time-totals>div{padding:14px;background:#13262d;border:1px solid #365362;border-radius:9px;display:grid;gap:8px}
.time-totals span{font-size:13px;color:#c3d8df}
.time-totals strong{font-size:28px;color:#fff}
.time-punch-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}
.time-punch-actions button,.time-submit{min-height:52px;padding:14px 24px;font-size:17px;font-weight:650}
.time-punch-actions button.primary,.time-submit.primary{color:#152832;background:#eed41c}
.time-current-job{font-size:19px;overflow-wrap:anywhere}
.time-recent,.time-review-notes,.time-other-tools{margin:18px 0 8px}
.time-recent>summary,.time-review-notes>summary,.time-other-tools>summary,.time-location-details>summary,#time-briefing-details>summary{cursor:pointer;padding:12px 0;font-weight:600}
.time-ticket-list article{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #365362;padding:14px 0}
.time-ticket-list article>div{flex:1;min-width:180px;display:grid;gap:5px;overflow-wrap:anywhere}
.time-ticket-list span{font-size:13px;color:#c3d8df}
.time-ticket-list button{min-height:44px}
.time-other-tools>.actions{margin-top:12px}
.time-start-form{display:grid;gap:14px}
.time-start-form select,.time-start-form input:not([type=checkbox]){min-height:48px}
.time-start-form .form-grid{margin:0}
.time-start-form .time-acknowledgement{display:flex;align-items:flex-start;gap:12px;line-height:1.5;padding:14px;background:#1b3643;border:1px solid #436575;border-radius:8px}
.time-start-form .time-acknowledgement input{width:22px;height:22px;flex:0 0 22px;margin:2px 0}
.time-signed{border-left:3px solid #7ed79e;padding:10px 14px;margin:0}
.time-start-form details{min-width:0}
.time-start-form .caption{margin:0}
#staff-live-ticket button:focus-visible,.time-start-form :focus-visible{outline:3px solid #eed41c;outline-offset:3px}
@media(max-width:650px){#staff-live-ticket{padding:16px}.time-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.time-totals>div:last-child{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}.time-totals strong{font-size:25px}.time-punch-actions{display:grid;grid-template-columns:1fr}.time-punch-actions button{width:100%}.time-start-form .form-grid{grid-template-columns:1fr}.time-ticket-list article>div{min-width:0;flex-basis:65%}}
.staff-timeline-cell[tabindex]{cursor:pointer;min-height:88px}.staff-timeline-cell[tabindex]:hover{outline:2px solid #8bb9c9;outline-offset:-2px}.staff-timeline-cell[tabindex]:focus-visible{outline:3px solid #eed41c;outline-offset:-3px}.staff-timeline-cell small{overflow-wrap:anywhere}.staff-calendar-key{display:flex;gap:12px 20px;flex-wrap:wrap;align-items:center;margin-top:16px;padding:14px;background:#20343e;border:1px solid #48616b;border-radius:8px}.staff-calendar-key span{display:inline-flex;gap:7px;align-items:center;font-size:13px}.staff-key-swatch{display:inline-block;width:24px;height:19px;border:1px solid #76672a;border-left:5px solid #ecd321;background:#342f16;border-radius:3px}.staff-key-night{background:#16374b;border-color:#3975a1;border-left-color:#73c3f2}.staff-key-pm{background:#183e36;border-color:#35806c;border-left-color:#71d8b8}.staff-key-shop{background:#193c30;border-color:#427d62;border-left-color:#7ed79e}.staff-key-travel{background:#342a4a;border-color:#8263b0;border-left-color:#c0a0ec}.staff-key-time_off{background:#452943;border-left-color:#e4a2d0}.staff-key-sick{background:#173d44;border-left-color:#78d4dc}.staff-key-requested{background:#452943;border:2px dashed #e4a2d0}.staff-key-attention{background:#49292d;border:1px solid #a74e55}.staff-key-today{background:#13262d;border:1px solid #48616b;border-top:3px solid #eed41c}.staff-person-choices{display:grid;gap:10px;margin:16px 0}.staff-person-choices label{display:flex;align-items:center;gap:12px;padding:12px;background:#20343e;border:1px solid #48616b;border-radius:8px;cursor:pointer}.staff-person-choices input,.staff-weekdays input{width:auto;min-width:22px;min-height:22px}.staff-person-choices span{display:grid;gap:4px}.staff-person-choices small{color:#c3d6df}.staff-weekdays{display:flex;gap:12px;flex-wrap:wrap}.staff-weekdays label{display:flex;gap:5px;align-items:center}.staff-rotation-preview th,.staff-rotation-preview td{white-space:nowrap;padding:8px}.rotation-on{background:#342f16;color:#ffe57a}.rotation-off{background:#263a44;color:#d9e5e9}.learning-closeout{margin:18px 0;border-left:4px solid #eed41c;padding:16px}.learning-closeout p{margin:7px 0}.learning-closeout button{margin-top:6px}
@media(max-width:650px){.staff-calendar-key{gap:12px}.staff-calendar-controls>button{flex:1}.staff-calendar-key span{min-width:120px}}
.staff-timeline-label,.staff-timeline-header,.staff-calendar-key,.staff-person-choices label{color:#f3f7fa}.staff-timeline-cell small{color:#c5dae5}.staff-timeline-cell time{color:#f3f7fa}.staff-calendar-key b,.staff-person-choices b{color:inherit}


.ticket-proposal,.ticket-meal{background:#f4f8fa;color:#15394a;border:2px solid #7895a4;border-radius:12px;padding:16px;margin:14px 0}.ticket-summary p{line-height:1.5}.ticket-history{margin:18px 0}#ticket-change-form textarea,#ticket-change-form input,#ticket-change-form select{font-size:16px;min-height:44px}#ticket-change-form textarea{min-height:70px}#ticket-change-review input[type=checkbox],#ticket-review input[type=checkbox]{appearance:auto;width:20px;height:20px}
.day-work{color:#183e50;background:#fff}.day-work p,.day-work label,.day-work h2,.day-work h3,.day-work .jsa-summary{color:#183e50}.day-work form{display:grid;gap:14px;margin:20px 0}.day-work label{display:flex;flex-direction:column;gap:6px;font-size:16px}.day-work input,.day-work textarea,.day-work select{font:inherit;font-size:16px;background:#fff;color:#183e50;border:1px solid #52788c;min-height:44px;padding:10px;max-width:100%;width:100%;box-sizing:border-box}.day-work textarea{min-height:75px;resize:vertical}.day-work button{min-height:44px;font-size:16px}.day-work .day-check{display:flex;flex-direction:row;align-items:flex-start}.day-work .day-check input{width:22px;min-height:22px;flex:0 0 22px;appearance:auto}.day-change-alert{color:#762c13!important;background:#fff3d5;border-left:4px solid #ad7422;padding:14px}.day-jsa-status{padding:14px;background:#e5f1f6;margin:16px 0}.day-task-row{display:grid;grid-template-columns:minmax(180px,1fr) 2fr;gap:16px;padding:16px 0;border-bottom:1px solid #bdd0d9}.day-task-row span{display:block;margin-top:5px}.day-task-row p{margin:0 0 8px;white-space:pre-wrap}.day-clock{font-size:18px}.day-work [role=alert]{color:#912a1b;font-weight:600}.day-work .caption{color:#36596c}.day-work .staff-jsa-table{min-width:0;width:100%;table-layout:fixed}.day-work .staff-jsa-table td,.day-work .staff-jsa-table th{overflow-wrap:anywhere;color:#183e50}.day-work .staff-jsa-header{color:#183e50;flex-wrap:wrap}.day-work button:focus-visible,.day-work input:focus-visible,.day-work select:focus-visible,.day-work textarea:focus-visible{outline:3px solid #217296;outline-offset:2px}@media(max-width:650px){.day-task-row{grid-template-columns:1fr;gap:8px}.day-work .form-grid{grid-template-columns:1fr}.day-jsa-open .staff-jsa-table,.day-jsa-open .staff-jsa-table tbody,.day-jsa-open .staff-jsa-table tr,.day-jsa-open .staff-jsa-table td{display:block;width:100%;box-sizing:border-box}.day-jsa-open .staff-jsa-table th{display:none}.day-jsa-open .staff-jsa-table tr{border-bottom:2px solid #bdd0d9;margin:8px 0;padding:8px}.day-jsa-open .staff-jsa-table td:before{display:block;font-weight:700}.day-jsa-open .staff-jsa-table td:nth-child(1):before{content:'Job step'}.day-jsa-open .staff-jsa-table td:nth-child(2):before{content:'Hazards'}.day-jsa-open .staff-jsa-table td:nth-child(3):before{content:'Controls'}.day-jsa-open .staff-jsa-table td:nth-child(4):before{content:'Responsible'}}
.ticket-task-change{padding:16px;margin:12px 0;border:1px solid #b8c4d3;border-radius:10px;background:#f7fafc}.ticket-task-change label{display:block;margin:10px 0}

/* Four to twelve weeks, with fixed compact columns and frozen operator labels. */
.staff-timeline{min-width:100%;width:max-content;user-select:none}
.staff-outlook-28{grid-template-columns:170px repeat(28,72px)}
.staff-outlook-42{grid-template-columns:170px repeat(42,72px)}
.staff-outlook-56{grid-template-columns:170px repeat(56,72px)}
.staff-outlook-84{grid-template-columns:170px repeat(84,72px)}
.staff-timeline-label{padding:8px;font-size:12px;max-width:170px;overflow-wrap:anywhere}
.staff-timeline-label small{font-size:10px}
.staff-timeline-cell,.staff-timeline-cell[tabindex]{padding:4px;min-height:56px;gap:3px;min-width:0;overflow:hidden}
.staff-timeline-cell small{font-size:10px;line-height:1.3}
.staff-timeline-header{min-height:70px;font-size:11px}
.staff-timeline-cell .staff-shift{padding:4px 3px;font-size:10px;border-left-width:3px;min-height:30px;min-width:0;line-height:1.25}
.staff-timeline-cell .staff-shift b{max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.staff-timeline-cell .staff-shift small{font-size:9px}
.staff-day-unavailable{background:#0c1c23;color:#718590}
.staff-range-selected{outline:3px solid #a7ddec!important;outline-offset:-3px;background:#244c5f!important}
.staff-calendar-scroll{max-height:65vh}
.calendar-pay-summary{font-size:12px;color:#cce3ed;margin:10px 0}
.staff-pay-marker{border-radius:3px;padding:3px 2px;line-height:1.2;font-weight:700}
.staff-cycle{background:#39324b;color:#e6d9ff!important}
.staff-payday{background:#ead256;color:#15313c!important}
.staff-key-cycle{background:#39324b;border-color:#b599df;border-left-color:#b599df}
.staff-key-payday{background:#ead256;border-color:#ead256;border-left-color:#ead256}
.calendar-request{display:flex;gap:12px;flex-wrap:wrap;align-items:center;border-bottom:1px solid #46636f;padding:12px 0}
.calendar-request span{flex:1;font-size:13px}
#staff-pay-form input[type=checkbox]{width:22px;min-height:22px;appearance:auto}
@media(max-width:650px){.staff-calendar-controls{gap:10px}.staff-calendar-controls .actions{flex-wrap:wrap}.staff-calendar-controls input,.staff-calendar-controls select{min-height:40px}.staff-timeline-label{font-size:11px}.staff-outlook-28{grid-template-columns:120px repeat(28,68px)}.staff-outlook-42{grid-template-columns:120px repeat(42,68px)}.staff-outlook-56{grid-template-columns:120px repeat(56,68px)}.staff-outlook-84{grid-template-columns:120px repeat(84,68px)}.staff-calendar-controls>label{max-width:100%;width:100%}.staff-calendar-controls select{max-width:100%}}

@media(max-width:650px){.staff-calendar-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.staff-calendar-controls>.actions{grid-column:1/-1;margin-top:0;gap:6px}.staff-calendar-controls>label{width:auto;margin-bottom:0}.staff-calendar-controls>button{font-size:12px;min-height:40px;padding:6px}.staff-calendar-controls label{font-size:11px;margin-bottom:0}.staff-calendar-controls .actions label{flex:1 1 110px}.staff-calendar-controls .actions input,.staff-calendar-controls .actions select{min-width:0;width:100%}}
.jsa-ink-box{background:#f5f8fa;color:#173d50;border:1px solid #b7c8d2;border-radius:12px;padding:12px}.jsa-ink-box canvas{display:block;width:100%;height:auto;aspect-ratio:720/400;background:#fff;border:2px solid #4b6979;border-radius:8px;touch-action:none;cursor:crosshair}.jsa-signed-card{padding:14px;border:1px solid var(--line);border-radius:12px;margin:12px 0}.jsa-signed-ink{display:block;background:white;border-radius:6px;width:min(100%,360px);height:auto}.jsa-register-table{min-width:650px}.jsa-register-table small{display:block;white-space:normal}.jsa-archive-preview{border-top:3px solid #b99a45;padding-top:18px;margin-top:20px}.jsa-record-number{font-variant-numeric:tabular-nums}

.time-start-form .time-acknowledgement{color:#fff!important;background:#173d50}.time-start-form .time-acknowledgement input{accent-color:#e8cd38}
/* Customer job plans and the daily task-to-ticket handoff. */
.job-task-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px;margin:16px 0}
.job-task-card,.job-template-row{border:1px solid #607484;border-radius:12px;padding:14px;min-width:0;background:#142632;color:#eef6fb}
.job-task-card p{overflow-wrap:anywhere}.day-work .job-task-card p,#dialog .job-task-card p{color:#e0edf5}.day-work .job-task-card p.caption,#dialog .job-task-card p.caption{color:#b9cedd}.job-task-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}.job-task-heading strong{font-size:1.05rem}
.job-task-state{display:inline-flex;align-items:center;gap:5px;border:1px solid #8bafc4;border-radius:20px;padding:4px 9px;color:#eff8ff;background:#243d4d;font-size:.86rem;white-space:nowrap}
.job-task-state.completed{background:#163e31;border-color:#69d4a9}.job-task-state.blocked{background:#572c24;border-color:#ffa78d}.job-task-state.in_progress{background:#13436a;border-color:#8bd1ff}.job-task-state.not_needed{background:#353e49;border-color:#b0bdc9}
.job-task-counts{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.job-task-link{border:2px solid #7fceef;border-radius:10px;padding:12px;margin:10px 0;display:grid;gap:8px;background:#173443}
.job-plan-entry{border-top:1px solid #607484;margin-top:20px;padding:14px 0}.job-template-row{margin:12px 0;display:grid;gap:10px}
#job-tasks-day select,#job-tasks-day label{max-width:100%;min-width:0}#job-tasks-day .actions>label{flex:1 1 260px}#job-task-apply ol{padding-left:24px}#job-task-apply li{margin:12px 0}
.job-task-card details{margin:10px 0}.job-task-card summary{cursor:pointer}.job-task-card button{white-space:normal}
@media(max-width:600px){#job-tasks-day .actions{display:flex;flex-wrap:wrap}#job-tasks-day button{max-width:100%}.job-task-grid{grid-template-columns:1fr}.job-template-row .form-grid{grid-template-columns:1fr}.job-task-card{padding:12px}}

@media screen {
  /* Briefings appear on the JSA page and in dialogs, outside .day-work. */
  body .staff-jsa-table { color: #e5eef3; background: #1a2b37; }
  body .staff-jsa-table :is(th,td) {
    color: #e5eef3 !important;
    border-color: #557181;
    line-height: 1.6;
  }
  body .staff-jsa-table th {
    background: #294553;
    font-weight: 700;
  }
  body .staff-jsa-table td { background: #1a2b37; }
  body .staff-jsa-table tr:nth-child(even) td { background: #203440; }
  body .staff-jsa-table td::before { color: #f3dc68; }
}


/* JSA review status: readable on the dark workspace, including rebrief warnings. */
@media screen {
 body .day-jsa-status {
  background:#223743;color:#e5eef3;border:1px solid #607f90;
  border-left:4px solid #71d8b8;border-radius:8px;padding:16px;
 }
 body .day-jsa-status b {color:#e5eef3;font-size:15px;}
 body .day-jsa-status p {color:#c5d8e2;margin:7px 0 12px;}
 body .day-jsa-status button {
  color:#f0f6fa;background:#294b5c;border-color:#93b4c6;font-weight:650;
 }
 body .day-jsa-status button:hover {background:#365d70;}
 body .day-jsa-status button:focus-visible {outline:3px solid #f3dc68;outline-offset:3px;}
 body .day-jsa-status.day-change-alert {
  background:#443b22;color:#ffe3a5!important;border-color:#c5a958;
 }
 body .day-jsa-status.day-change-alert :is(b,p) {color:#ffe3a5!important;}
 body #day-jsa-panel .staff-jsa-header span {color:#c5d8e2;}
}

.staff-holiday-marker{display:block;background:#403c16;color:#fff0a1!important;border-left:3px solid #eed41c;border-radius:3px;padding:3px;font-size:9px;line-height:1.3;overflow-wrap:anywhere}.staff-key-holiday{background:#403c16;border-color:#eed41c;border-left-color:#eed41c}

/* Printable calendar uses a same-origin stylesheet under BERCO's existing CSP. */
body.export-calendar{background:#10252f;color:#f3f7fa;font:13px Arial,sans-serif;margin:24px}
.export-calendar h1{color:#fff;font-size:26px}.export-calendar h2{font-size:18px;color:#f3f7fa}.export-calendar p{line-height:1.5}
.export-calendar .export-week{margin:24px 0;break-before:page}.export-calendar .export-week:first-of-type{break-before:auto}
.export-calendar .export-grid{width:100%;min-width:0;user-select:auto;background:#46616c;gap:1px}
.export-calendar .export-grid>*{position:static!important;max-width:none;box-sizing:border-box}
.export-calendar .staff-timeline-label{background:#20343e;color:#f3f7fa;display:grid;gap:5px;padding:8px;font-size:12px}
.export-calendar .staff-timeline-cell{background:#13262d;display:flex;flex-direction:column;gap:4px;padding:5px;min-height:56px;overflow:visible;color:#f3f7fa}
.export-calendar .staff-timeline-header{background:#263a44;font-weight:bold;min-height:70px}
.export-calendar .staff-timeline-label small,.export-calendar .staff-timeline-cell small{color:#c5dae5;font-size:10px;display:block}
.export-calendar .staffing-issue{background:#49292d;box-shadow:inset 0 0 0 1px #a74e55}
.export-calendar .staff-day-unavailable{background:#0c1c23}
.export-calendar .staff-shift{display:block;border:1px solid #76672a;border-left:4px solid #ecd321;border-radius:4px;padding:5px;color:#f3f7fa;background:#342f16;white-space:normal;line-height:1.3}
.export-calendar .staff-shift b{display:block;-webkit-line-clamp:unset;overflow:visible}
.export-calendar .staff-shift-night{background:#16374b;border-color:#3975a1;border-left-color:#73c3f2}
.export-calendar .staff-shift-pm{background:#183e36;border-color:#35806c;border-left-color:#71d8b8}
.export-calendar .staff-shift-shop{background:#193c30;border-color:#427d62;border-left-color:#7ed79e}
.export-calendar .staff-shift-travel{background:#342a4a;border-color:#8263b0;border-left-color:#c0a0ec}
.export-calendar .staff-shift-time_off{background:#452943;border-left-color:#e4a2d0}
.export-calendar .staff-shift-sick{background:#173d44;border-left-color:#78d4dc}
.export-calendar .export-toolbar{display:flex;gap:16px;align-items:center}
.export-calendar button{background:#284753;color:#fff;border:1px solid #829ca7;border-radius:6px;padding:10px 16px;cursor:pointer}
.export-calendar .staff-calendar-key{break-inside:avoid}
.export-calendar .export-columns-1{grid-template-columns:160px repeat(1,minmax(0,1fr))}
.export-calendar .export-columns-2{grid-template-columns:160px repeat(2,minmax(0,1fr))}
.export-calendar .export-columns-3{grid-template-columns:160px repeat(3,minmax(0,1fr))}
.export-calendar .export-columns-4{grid-template-columns:160px repeat(4,minmax(0,1fr))}
.export-calendar .export-columns-5{grid-template-columns:160px repeat(5,minmax(0,1fr))}
.export-calendar .export-columns-6{grid-template-columns:160px repeat(6,minmax(0,1fr))}
.export-calendar .export-columns-7{grid-template-columns:160px repeat(7,minmax(0,1fr))}

@page{size:landscape;margin:10mm}
@media print{body.export-calendar{margin:0;font-size:11px;-webkit-print-color-adjust:exact;print-color-adjust:exact}.export-calendar .export-toolbar{display:none}.export-calendar .export-week{margin:0}.export-calendar .staff-timeline-label,.export-calendar .staff-timeline-cell{break-inside:avoid}.export-calendar h1{font-size:20px}}

.staff-timeline-label .staff-utilization{width:fit-content;max-width:100%;padding:2px 5px;border-radius:4px;color:#c5dae5;background:#344953;font-size:10px;line-height:1.35}
.staff-timeline-label .staff-utilization-open{color:#ffecac;background:#634b12}
.staff-timeline-label .staff-utilization-target{color:#c9ffda;background:#204b34}
.staff-timeline-label .staff-utilization-over{color:#ffd4d4;background:#643131}
#staff-quick-dates .actions{margin-top:12px}

.staff-calendar-scroll{overflow-anchor:none}

.staff-timeline-label .staff-utilization{white-space:nowrap}
.staff-missing-ticket{border:1px solid #8f6b25;border-radius:4px;background:#3e2e12;color:#ffecac;padding:2px 3px;font-size:10px;line-height:1.2;overflow-wrap:normal}
.staff-timeline-label .staff-missing-ticket{width:fit-content;text-align:left}
.staff-timeline-cell small.staff-missing-ticket{color:#ffecac}

.staff-shift-call_out,.staff-key-call_out{background:#8a5a13;color:#fff;border-color:#d9a14d}.staff-shift-no_call_no_show,.staff-key-no_call_no_show{background:#922d39;color:#fff;border-color:#ec8792}

/* your_job.css */
.your-job-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}
.your-job-metrics article{padding:12px;border:1px solid #cfdde0;border-radius:10px;display:flex;flex-direction:column;gap:6px}
.your-job-metrics strong{font-size:1.2rem}.your-job-clock progress{width:100%;height:24px;accent-color:#c0a500}
@media(max-width:700px){.your-job-metrics{grid-template-columns:1fr}.your-job-metrics article{padding:10px}.your-job-clock .actions button{flex:1}}

/* Fountain Inn planning and measured-sample replay; inherits the BPS palette. */
.fountain-playback{border-top:1px solid var(--border,#55717e);margin-top:18px;padding-top:14px;min-width:0}
.fountain-replay-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.fountain-replay-controls label{flex:1 1 220px}.fountain-replay-controls button{margin-bottom:0}
.fountain-playback input[type=range]{width:100%;padding:0;accent-color:#68ddbd;min-height:36px}.fountain-playback h4{margin:16px 0 8px}
.fountain-transit-bar{height:10px;background:#2c4653;border:1px solid #67818d;border-radius:8px;overflow:hidden;margin:10px 0 16px}.fountain-transit-bar>div{height:100%;background:#68ddbd;transition:width .2s}
.fountain-sample-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.fountain-sample-cards article{padding:12px;border:1px solid #55717e;border-radius:10px;background:#193440;color:#eff7fa}.fountain-sample-cards strong,.fountain-sample-cards small{display:block;margin-top:6px}.fountain-sample-cards small{color:#c1d5df}
.fountain-playback .your-job-metrics strong{font-size:clamp(1rem,2vw,1.25rem);overflow-wrap:anywhere}.fountain-playback .your-job-metrics article{min-width:0}.fountain-playback .badge{color:#eff7fa;background:#244651;border:1px solid #718c96}
@media(max-width:700px){.fountain-replay-controls label{flex-basis:100%}.fountain-replay-controls button{flex:1 1 45%}.fountain-playback .your-job-metrics{grid-template-columns:1fr}.fountain-playback .panel-title-inline{align-items:start;flex-wrap:wrap}}

#fountain-site .fountain-map-grid{grid-template-columns:minmax(0,1fr)}#fountain-site .fountain-map-grid>details{margin-top:8px}#fountain-site .fountain-reference{max-width:656px}
.fountain-cycle{margin-top:1rem;padding:1rem;border:1px solid #55717f;border-radius:12px;background:#183440;color:#eff6fa}.fountain-cycle p{color:#c8dce5}.fountain-cycle .actions{display:flex;flex-wrap:wrap;gap:.5rem}.fountain-cycle strong{font-size:1rem}.fountain-cycle details{margin-top:.75rem}
.fountain-playback{border-top:1px solid #45606d;padding-top:1.1rem;margin-top:1rem}.fountain-replay-controls,.fountain-point-selectors{display:flex;flex-wrap:wrap;gap:.7rem;align-items:end}.fountain-replay-controls label,.fountain-point-selectors label{flex:1;min-width:160px}.fountain-replay-controls button{margin-bottom:.15rem}.fountain-color-key,.fountain-now,.fountain-series-key,.fountain-chart-tools{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;margin:.85rem 0;color:#d4e5ed}.fountain-color-key>i{display:inline-block;width:180px;max-width:35vw;height:10px;border-radius:8px;background:linear-gradient(90deg,#2563eb,#7c3aed,#db2777,#f97316,#fde047)}.fountain-unknown{margin-left:auto;color:#b2c4cf}.fountain-now{justify-content:space-between}.fountain-now>span{border:1px solid #6b8d94;border-radius:6px;padding:.25rem .6rem;color:#68ddbd}.fountain-series-key span{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem}.fountain-series-key i{width:20px;height:3px;display:inline-block}.fountain-series-key i.estimate{background:repeating-linear-gradient(90deg,#edd020 0 5px,transparent 5px 8px)}.fountain-chart{background:#102631;border:1px solid #486674;border-radius:10px;overflow:hidden}.fountain-chart svg{display:block;width:100%;touch-action:none;cursor:crosshair}.fountain-chart-tools>span{font-size:.8rem;margin-right:auto;color:#b9cfda}.fountain-chart-tools button{min-width:36px;padding:.35rem .7rem}.fountain-sample-cards article{background:#1c3946;border:1px solid #526f7c;border-radius:8px;padding:.7rem;min-width:150px}.fountain-sample-cards strong,.fountain-sample-cards small{display:block;margin-top:.3rem}.fountain-model{margin:.8rem 0;background:#193440;border:1px solid #476470;border-radius:8px;padding:.75rem}.fountain-model summary{color:#e5eef5;cursor:pointer}@media(max-width:600px){.fountain-replay-controls label,.fountain-point-selectors label{min-width:135px}.fountain-replay-controls{gap:.5rem}.fountain-unknown{margin-left:0}.fountain-now strong{font-size:.95rem}.fountain-sample-cards{display:grid;grid-template-columns:1fr 1fr}.fountain-sample-cards article{min-width:0}.fountain-chart-tools>span{width:100%}}

.fountain-journey-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:1rem;align-items:start}.fountain-journey-layout>.fountain-map-grid{min-width:0;position:sticky;top:80px}.fountain-journey-layout .fountain-map-frame{height:570px;min-height:0}.fountain-journey-layout>.fountain-playback{min-width:0;margin-top:0;padding-top:0;border-top:0}.fountain-journey-layout .fountain-replay-controls label{min-width:135px}.fountain-journey-layout .fountain-point-selectors label{min-width:180px}@media(max-width:1100px){.fountain-journey-layout{grid-template-columns:1fr}.fountain-journey-layout>.fountain-map-grid{position:static}.fountain-journey-layout .fountain-map-frame{height:380px}}@media(max-width:600px){.fountain-journey-layout .fountain-map-frame{height:310px}.fountain-journey-layout .fountain-point-selectors label{min-width:125px}}

.fountain-color-key>i{height:14px;border:1px solid #9ab3c2;box-shadow:0 0 0 2px #102631}.fountain-replacement{padding:.5rem .7rem;border-left:3px solid #fde047;background:#172f3c;color:#eaf3fa;font-size:.85rem;min-height:2.5em;box-sizing:border-box}

/* Customer overview: equipment is outside the map, never over the route. */
.fountain-equipment-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.65rem;margin:0 0 .8rem}.fountain-equipment-strip article{background:#153441;border:1px solid #58717e;border-left:3px solid #f1cb38;border-radius:10px;padding:.8rem;color:#edf6fa;font-size:.85rem}.fountain-equipment-strip h4{margin:0 0 .3rem;font-size:1rem}.fountain-equipment-strip small{display:block;color:#b8cdd7;font-size:.7rem;margin-bottom:.4rem}.fountain-equipment-strip article:last-child{border-left-color:#bd9aff}.fountain-timing{font-size:.78rem;color:#b8cdd7}.fountain-presentation #fountain-locate,.fountain-presentation #fountain-sample,.fountain-presentation #fountain-import,.fountain-presentation #fountain-location,.fountain-presentation #fountain-reload-map,.fountain-presentation .fountain-map-grid>details,.fountain-presentation .fountain-point-selectors,.fountain-presentation .fountain-model,.fountain-presentation .fountain-method,.fountain-presentation #fountain-basis,.fountain-presentation .fountain-cycle,.fountain-presentation .fountain-chart-tools,.fountain-presentation .fountain-replay-controls label:has(#fountain-sample-kind),.fountain-presentation .fountain-replay-controls label:has(#fountain-speed){display:none}.fountain-presentation .fountain-map-grid>div>p.caption{font-size:.75rem}.fountain-presentation .fountain-chart{height:300px}.fountain-presentation .fountain-replacement{font-size:.9rem}.fountain-presentation .fountain-map-frame{height:530px}.fountain-presentation .fountain-playback>p:first-of-type{color:#c6dae3}.fountain-presentation .fountain-journey-layout{align-items:start}.fountain-presentation .fountain-map-grid{position:static}.fountain-presentation .fountain-equipment-strip article div:last-child{color:#b8cdd7}@media(max-width:600px){.fountain-presentation .fountain-map-frame{height:350px}.fountain-equipment-strip{grid-template-columns:1fr 1fr}.fountain-equipment-strip article{padding:.65rem;font-size:.75rem}}

.fountain-presentation{padding:1.1rem}.fountain-presentation>.panel-title{margin-bottom:.7rem}.fountain-presentation .fountain-playback p{margin:.4rem 0;line-height:1.4}.fountain-presentation .fountain-playback h3{margin:0}.fountain-presentation .fountain-playback .panel-title-inline{margin:0 0 .5rem}.fountain-presentation .fountain-equipment-strip article{padding:.65rem .8rem}.fountain-presentation .fountain-equipment-strip small{margin-bottom:.25rem}.fountain-presentation .fountain-map-frame{height:470px}.fountain-presentation .fountain-map-grid>div>p.caption{display:none}.fountain-presentation .fountain-replay-controls{margin:.5rem 0}.fountain-presentation .fountain-replay-controls label{margin:0}.fountain-presentation .fountain-presentation-note{font-size:.75rem;color:#bdcfd8}.fountain-presentation .fountain-timing{font-size:.7rem}.fountain-presentation .fountain-color-key{margin:.55rem 0}.fountain-presentation .fountain-now{margin:.4rem 0}.fountain-presentation .fountain-replacement{padding:.5rem .65rem;font-size:.8rem}.fountain-presentation .fountain-series-key{margin:.45rem 0}.fountain-presentation .fountain-sample-cards{display:none}.fountain-presentation .fountain-chart{height:260px}@media(max-width:1100px){.fountain-presentation .fountain-map-frame{height:380px}}@media(max-width:600px){.fountain-presentation{padding:.8rem}.fountain-presentation .fountain-map-frame{height:350px}.fountain-presentation .fountain-chart{height:280px}}

/* Static pickling project overview */


 .sp-dashboard{--sp-ink:#edf5fa;--sp-muted:#b5cbd7;--sp-edge:#3a5665;color:var(--sp-ink);margin:14px 0 24px}.sp-dashboard *{box-sizing:border-box}.sp-header{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:15px}.sp-header h2{margin:4px 0;font-size:25px}.sp-eyebrow{color:#e9c635;letter-spacing:.13em;font-size:11px;font-weight:700}.sp-pill{display:inline-flex;align-items:center;gap:7px;background:#244c48;color:#9ff0ce;padding:7px 11px;border-radius:99px;font-size:12px;white-space:nowrap}.sp-pill::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}.sp-pill.neutral{background:#304652;color:#d3e1e9}.sp-arrival{padding:22px;border:1px solid var(--sp-edge);border-radius:17px;background:linear-gradient(125deg,#233f50,#142b38);margin-bottom:15px}.sp-arrival-top{display:flex;align-items:start;justify-content:space-between;gap:14px}.sp-clock{font-size:clamp(28px,4vw,42px);font-weight:750;letter-spacing:-.03em;margin:6px 0}.sp-sub{color:var(--sp-muted);font-size:12px;line-height:1.5}.sp-arrival progress{appearance:none;width:100%;height:13px;overflow:hidden;border:none;border-radius:99px;background:#354e5a;margin:15px 0 5px}.sp-arrival progress::-webkit-progress-bar{background:#354e5a}.sp-arrival progress::-webkit-progress-value{background:linear-gradient(90deg,#7fdbc5,#edd020);border-radius:99px}.sp-arrival progress::-moz-progress-bar{background:#edd020}.sp-progress-labels{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--sp-muted)}.sp-overview-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:15px}.sp-map-card,.sp-unit{border:1px solid var(--sp-edge);background:#183340;border-radius:17px;overflow:hidden}.sp-map-title{padding:15px 17px 10px;font-weight:700}.sp-map-card iframe{display:block;width:100%;height:360px;border:0;background:#122a35}.sp-map-card svg{display:block;width:100%;height:230px}.sp-map-caption{padding:10px 16px;color:var(--sp-muted);font-size:11px;line-height:1.5}.sp-unit{padding:18px;margin-bottom:12px}.sp-unit-top{display:flex;align-items:start;justify-content:space-between;gap:10px}.sp-unit h3{font-size:24px;margin:3px 0 5px}.sp-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.sp-metric{padding:11px;border-radius:10px;background:#213e4c;min-width:0}.sp-metric small{display:block;color:var(--sp-muted);font-size:11px;margin-bottom:7px}.sp-metric strong{display:block;font-size:21px;line-height:1.2}.sp-metric span{font-size:11px;color:var(--sp-muted);display:block;margin-top:5px}.sp-unit-times{margin-top:13px;border-top:1px solid var(--sp-edge);padding-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px}.sp-field-log{font-size:11px;color:var(--sp-muted);margin-top:7px}.sp-hold-mini{padding:12px 0 3px;font-size:13px}.sp-hold-mini b{color:#f0d43d}.sp-dashboard .sp-primary-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.sp-dashboard .sp-primary-actions button{min-height:48px;border-radius:10px;padding:12px 20px}.sp-dashboard .sp-secondary-actions{display:flex;gap:8px;flex-wrap:wrap}.sp-dashboard .sp-secondary-actions button{font-size:12px}.sp-refresh{font-size:11px;color:var(--sp-muted);margin-top:10px}

 @media(max-width:500px){.sp-header{flex-direction:column;align-items:stretch}.sp-header>.sp-pill{white-space:normal;align-self:flex-start}.sp-progress-labels{font-size:11px;text-align:center}}@media(max-width:850px){.sp-overview-grid{grid-template-columns:1fr}.sp-map-card iframe{height:310px}.sp-arrival{padding:16px}.sp-header{align-items:start}.sp-arrival-top{display:block}}@media(prefers-reduced-motion:reduce){.sp-dashboard *{animation:none!important;transition:none!important}}

 
.sp-dashboard .sp-header{height:auto!important;min-height:0;background:transparent!important;padding:0!important}.sp-dashboard .sp-map-card iframe{width:100%!important;height:360px!important}.sp-dashboard .sp-overview-grid{display:grid!important}@media(max-width:850px){.sp-dashboard .sp-map-card iframe{height:310px!important}}

.sp-math{margin:0 0 15px;padding:13px 17px;border:1px solid #3a5665;border-radius:13px;background:#183340}.sp-math summary{font-weight:650;cursor:pointer}.sp-math ol{padding-left:22px;line-height:1.7;font-size:12px}.sp-math li{margin:10px 0;overflow-wrap:anywhere}

/* Field operation controls */
.sp-dashboard .sp-field-control{padding-top:13px;margin-top:13px;border-top:1px solid var(--sp-edge)}.sp-dashboard .sp-control-heading h4{margin:4px 0 12px;color:#edf5fa;font-size:20px}.sp-dashboard .sp-run-buttons{display:flex;gap:8px}.sp-dashboard .sp-run-buttons button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:48px;min-width:94px;padding:10px 15px;border-radius:10px;font-size:15px;font-weight:600}.sp-dashboard button.sp-start{background:#25615c;border:1px solid #4aa895;color:#effff9}.sp-dashboard button.sp-stop{background:#99404d;border:1px solid #d67c89;color:#fff}.sp-dashboard .sp-run-buttons button:disabled{opacity:.38;cursor:not-allowed}.sp-dashboard .sp-run-buttons button:focus-visible,.sp-dashboard .sp-setup:focus-visible{outline:3px solid #edd020;outline-offset:3px}.sp-control-times{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px;font-size:11px;color:var(--sp-muted)}.sp-control-times b{display:block;margin-top:4px;color:#edf5fa;font-weight:500}.sp-dashboard .sp-delivery{grid-column:1/-1}.sp-delivery-values{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sp-delivery-values>div+div{border-left:1px solid var(--sp-edge);padding-left:14px}.sp-delivery-values span{margin:0 0 6px}.sp-dashboard .sp-footer{display:flex;align-items:center;gap:12px;margin-top:12px}.sp-dashboard .sp-setup{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 18px;background:#244552;border:1px solid #587682;border-radius:10px;color:#edf5fa;font-weight:650}.sp-dashboard .sp-setup>span{font-size:19px}.sp-dashboard .sp-combustor h3{font-size:20px}.sp-dashboard .sp-combustor .sp-field-control{border:0;margin-top:0;padding-top:2px}.sp-dashboard .sp-map-card{display:flex;flex-direction:column}.sp-dashboard .sp-map-card iframe{flex:1;min-height:360px}.sp-setup-heading h2{margin:5px 0}.sp-setup-heading p{color:#b5cbd7}.sp-setup-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.sp-setup-tools button{text-align:left;min-height:52px;border-radius:10px;padding:12px;background:#244552;color:#edf5fa;border:1px solid #587682}@media(max-width:500px){.sp-setup-tools{grid-template-columns:1fr}.sp-control-times{font-size:11px}.sp-dashboard .sp-run-buttons button{flex:1}.sp-dashboard .sp-map-card iframe{min-height:310px}}

.sp-dashboard .sp-edit-times{padding:4px 0;margin:8px 0 0;border:0;background:transparent;color:#b9ded7;font-size:12px;text-decoration:underline;text-underline-offset:3px;min-height:28px}.sp-dashboard .sp-edit-times:disabled{opacity:.38}.sp-dashboard .sp-edit-times:focus-visible{outline:2px solid #edd020;outline-offset:3px}.sp-setup-heading{display:block!important;height:auto!important;min-height:0;background:transparent!important;padding:0!important;border:0!important}.sp-setup-heading .sp-eyebrow{color:#e9c635}

.your-job-picker{display:block;margin:0 0 16px;padding:14px 16px;border:1px solid #3a5665;border-radius:12px;background:#183340;color:#c4d8e1;font-size:12px;font-weight:650}.your-job-picker select{display:block;width:100%;margin-top:7px;min-height:44px}

.sp-batches{margin-top:16px;padding:18px;border:1px solid #365562;border-radius:14px;background:#102d3a}.sp-batches p{margin:10px 0}.sp-batches small{color:#a9c2cc}.sp-batches details{margin-top:14px}.sp-batches summary{cursor:pointer}

/* Analyzer upload progress */
#dialog #analyzer-upload-progress{padding:14px;margin:14px 0;border:1px solid #668595;border-radius:10px;background:#193541;color:#f0f7fa}#dialog #analyzer-upload-progress header{display:flex;justify-content:space-between;gap:12px;font-weight:700}#dialog #analyzer-upload-progress progress{display:block;width:100%;height:16px;margin:10px 0;accent-color:#ebce24}#dialog #analyzer-upload-progress p{margin:5px 0}#dialog #analyzer-upload-progress small{display:block;line-height:1.5}#dialog #analyzer-upload-progress[data-state="success"]{border-color:#6ee0c1}#dialog #analyzer-upload-progress[data-state="attention"]{border-color:#e5b92d}#dialog #analyzer-upload-progress[data-state="error"]{border-color:#ff8593}
#dialog #analyzer-upload-progress header{position:static!important;padding:0!important;min-height:0!important;background:transparent!important;border:0!important;width:100%!important;box-shadow:none!important}#dialog #analyzer-upload-progress progress{width:100%!important;height:16px!important}#dialog #analyzer-upload-progress small{margin-top:6px}

/* Compact field sample preview: full evidence remains in sample history. */
#your-job-gas-samples .panel-title-inline{align-items:center;gap:12px;margin-bottom:10px}#your-job-gas-samples h2{margin:0}#your-job-gas-samples h2 small{display:inline-block;margin-left:8px;font-size:12px;font-weight:400;color:#adc4cf}#your-job-gas-samples .your-sample-actions{margin:8px 0 12px}#your-job-gas-samples .your-sample-preview{width:100%;table-layout:fixed;margin:0;font-size:14px}#your-job-gas-samples .your-sample-preview th,#your-job-gas-samples .your-sample-preview td{padding:9px 10px!important;vertical-align:middle;overflow-wrap:anywhere}#your-job-gas-samples .your-sample-preview th:first-child{width:37%}#your-job-gas-samples .your-sample-preview th:nth-child(2){width:33%}#your-job-gas-samples .your-sample-preview th:last-child{width:30%}#your-job-gas-samples .your-sample-preview small{display:block;margin-top:2px;font-size:11px;color:#adc4cf}#your-job-gas-samples .your-sample-setup{margin-top:12px}#your-job-gas-samples .your-sample-setup summary{cursor:pointer;font-size:13px;color:#b7cdd7}#your-job-gas-samples .your-sample-setup p{font-size:13px}#your-job-gas-samples .your-sample-empty{margin:12px 0;font-size:14px}@media(max-width:600px){#your-job-gas-samples .panel-title-inline{flex-wrap:wrap}#your-job-gas-samples .your-sample-preview{font-size:12px}#your-job-gas-samples .your-sample-preview th,#your-job-gas-samples .your-sample-preview td{padding:8px 6px!important}#your-job-gas-samples .your-sample-actions button{flex:1}}

/* rpl_lineup.css */
.rpl-line{fill:none;stroke-width:6;stroke-linecap:round;stroke-linejoin:round}.rpl-line.unconfirmed{stroke-dasharray:10 8}.rpl-line.isolated{opacity:.55}.rpl-record-control{cursor:pointer}.rpl-record-control:hover rect,.rpl-record-control:focus rect{stroke:#fff;stroke-width:3}.rpl-lineup-summary,.rpl-legend{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0}.rpl-connected{color:#6ee0c1}.rpl-unconfirmed{color:#edd020}.rpl-lineup-summary span{padding:8px 12px;background:#152e3b;border-radius:7px}.rpl-control-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.rpl-live-topology{min-width:0!important;max-width:none!important;width:100%!important;height:min(720px,calc(100dvh - 180px))!important;display:block}.rpl-lineup-widget>.rpl-diagram-scroll{max-height:none!important;overflow:hidden;border:1px solid #34515f;border-radius:10px}.rpl-live-topology text{font-size:14px!important}.rpl-live-topology .rpl-heading{font-size:22px!important}.rpl-live-topology .rpl-small{font-size:12px!important}@media(max-width:700px){.rpl-control-grid{grid-template-columns:1fr}.rpl-lineup-widget>.rpl-diagram-scroll{max-height:none}}

.rpl-expanded-diagram{height:calc(100dvh - 130px)}.rpl-expanded-diagram .rpl-live-topology{height:100%!important}#dialog:has(.rpl-expanded-diagram){width:min(1450px,96vw);max-width:96vw}.rpl-lineup-widget .actions label{min-width:220px}.rpl-lineup-widget input{width:100%}

.rpl-flow-card{margin:12px 0;padding:16px;border:1px solid #34515f;border-radius:10px;background:#102b38}.rpl-flow-title{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.rpl-flow-title h3{margin:0}.rpl-flow-title>span{color:#c5d2d8;font-size:12px}.rpl-flow-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:14px 0}.rpl-flow-metrics small{display:block;color:#adbdc7}.rpl-flow-metrics b{display:block;font-size:21px;margin:5px 0;color:#6ee0c1}.rpl-flow-card summary{cursor:pointer}.rpl-flow-card .rpl-control-grid{align-items:end}.rpl-flow-card table{min-width:520px}@media(max-width:700px){.rpl-flow-metrics{grid-template-columns:1fr;gap:12px}.rpl-flow-metrics b{font-size:19px}}

.rpl-zoom-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;background:#152e3b;border-bottom:1px solid #34515f}.rpl-zoom-toolbar button{min-width:40px;min-height:40px;margin:0;padding:5px 12px}.rpl-zoom-toolbar button[data-rpl-zoom="in"],.rpl-zoom-toolbar button[data-rpl-zoom="out"]{font-size:24px;line-height:1}.rpl-zoom-toolbar output{min-width:50px;text-align:center;font-size:13px;color:#edd020}.rpl-zoom-toolbar span{font-size:12px;color:#adbdc7}.rpl-live-topology{touch-action:pan-y}.rpl-live-topology.rpl-can-pan{cursor:grab;touch-action:none;user-select:none}.rpl-live-topology.rpl-panning,.rpl-live-topology.rpl-panning *{cursor:grabbing!important}.rpl-expanded-diagram{display:flex;flex-direction:column}.rpl-expanded-diagram .rpl-live-topology{flex:1;min-height:0;height:auto!important}.rpl-expanded-diagram .rpl-zoom-toolbar{flex:none}
.rpl-odorizer-card{margin:16px 0;padding:18px;border:1px solid #668595;border-top:3px solid #e1c329;border-radius:12px;background:#1a2b37;color:#e5eef3}.rpl-odorizer-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.rpl-odorizer-heading>div{flex:1;min-width:200px}.rpl-odorizer-heading h3{margin:5px 0;font-size:20px}.rpl-odorizer-heading p{margin:0;color:#b5c9d5;font-size:12px}.rpl-odorizer-state{padding:7px 11px;border-radius:20px;border:1px solid #b8a74c;background:#4b4025;color:#ffe3a5;font-size:12px;font-weight:650}.rpl-odorizer-state.enabled{background:#214a40;color:#a9efd2;border-color:#70c9ad}.rpl-odorizer-state.stopped{background:#294553;color:#dcebf2;border-color:#7895a5}.rpl-odorizer-readings{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}.rpl-odorizer-readings>div{padding:12px;background:#142632;border:1px solid #405e70;border-radius:8px;min-width:0}.rpl-odorizer-readings small{display:block;color:#b5c9d5;font-size:12px}.rpl-odorizer-readings strong{display:block;color:#e5eef3;font-size:17px;margin-top:8px;overflow-wrap:anywhere}.rpl-odorizer-card>.caption{margin:14px 0 0;color:#b5c9d5}@media(max-width:900px){.rpl-odorizer-readings{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:550px){.rpl-odorizer-card{padding:14px}.rpl-odorizer-readings{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rpl-odorizer-readings strong{font-size:16px}.rpl-odorizer-heading>div{flex-basis:100%}}

/* time_audit.css */
.audit-toolbar,.audit-period{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:14px 0}.audit-toolbar label,.audit-period label{display:grid;gap:4px;font-size:12px}.audit-toolbar select{max-width:250px}.audit-toolbar input{width:150px}.audit-totals{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.audit-totals>div{background:#102936;border:1px solid #34505d;border-radius:10px;padding:14px;display:grid;gap:4px;font-size:12px;color:#b7cbd5}.audit-totals b{font-size:25px;color:#f0d427}.audit-legend{display:flex;flex-wrap:wrap;gap:15px;font-size:12px}.audit-legend span:before{content:'';display:inline-block;width:12px;height:12px;background:#31414b;margin-right:5px}.audit-legend .work:before{background:#56cbb1}.audit-legend .lunch:before{background:#efc34c}.audit-legend .paidmeal:before{background:#b392f0}.audit-legend .running:before{background:#76adf0}.audit-day{display:grid;grid-template-columns:130px 1fr;gap:5px 14px;padding:12px 0;border-bottom:1px solid #2d4552}.audit-day small{display:block;color:#b7cbd5;font-size:11px;margin-top:4px}.audit-track{position:relative;min-height:28px;border-radius:5px;background:repeating-linear-gradient(to right,#233844 0,#233844 calc(100% / 24 - 1px),#455763 calc(100% / 24 - 1px),#455763 calc(100% / 24));overflow:hidden}.audit-segment{position:absolute;top:1px;bottom:1px;min-width:3px;border:0;padding:0;border-radius:2px;cursor:pointer}.audit-segment.work{background:#56cbb1}.audit-segment.lunch{background:#efc34c}.audit-segment.paidmeal{background:#b392f0}.audit-segment.running{background:repeating-linear-gradient(45deg,#76adf0 0 5px,#4679ad 5px 10px)}.audit-segment:hover{filter:brightness(1.2);outline:2px solid white;z-index:2}.audit-day-labels{grid-column:2;display:flex;justify-content:space-between;color:#9bb4c1;font-size:10px}.audit-ticket{display:flex;justify-content:space-between;gap:20px;padding:16px;margin:10px 0;border:1px solid #375261;border-radius:10px;background:#112b39}.audit-ticket.flagged{border-left:4px solid #efc34c}.audit-ticket p{margin:8px 0;font-size:13px}.audit-ticket-actions{display:flex;flex-direction:column;gap:8px;justify-content:center;min-width:190px}.audit-status{font-size:11px;padding:4px 8px;border-radius:12px;background:#294553;margin-left:10px}.audit-flags{font-size:12px;color:#f2cf6c;margin:8px 0;padding-left:18px}.audit-ticket small{color:#80d7b6}.time-audit .caption{font-size:12px;max-width:1000px}@media(max-width:650px){.audit-totals{grid-template-columns:repeat(2,1fr)}.audit-ticket{display:block}.audit-ticket-actions{margin-top:12px}.audit-day{grid-template-columns:88px 1fr;gap:5px}.audit-day b{font-size:12px}.audit-toolbar label{flex:1}.audit-toolbar select,.audit-toolbar input{width:100%;max-width:100%;min-width:120px}}
.ticket-map-layout{display:grid;grid-template-columns:minmax(280px,1.4fr) minmax(260px,1fr);gap:18px}.ticket-google-map{height:420px;border:1px solid #45616f;border-radius:10px;background:#132e3b;color:#dce8ee;overflow:hidden}.ticket-google-map>p{padding:20px}.ticket-map-list{max-height:490px;overflow:auto}.ticket-map-list section{border:1px solid #45616f;border-radius:10px;padding:14px;margin-bottom:12px}.ticket-map-list h3{margin:0 0 8px}.ticket-map-list article{border-top:1px solid #45616f;padding-top:10px;margin-top:10px}.ticket-map-list article p{font-size:12px}.ticket-map-list article button{margin-right:6px}.ticket-map-info{color:#172d38;white-space:pre-line;max-width:300px;font:13px/1.5 sans-serif}@media(max-width:720px){.ticket-map-layout{grid-template-columns:1fr}.ticket-google-map{height:300px}.ticket-map-list{max-height:320px}}
.ticket-map-frame{width:100%;height:100%;border:0;display:block}

/* Geometry is SVG attributes so strict CSP cannot move bars to midnight. */
body .time-workspace .audit-chart-scroll{overflow-x:auto;border:1px solid #496777;border-radius:9px;background:#142733;}
body .time-workspace .audit-chart{min-width:680px;padding:0 12px;}
body .time-workspace .audit-axis,body .time-workspace .audit-day{display:grid;grid-template-columns:110px minmax(0,1fr);gap:0 10px;align-items:center;}
body .time-workspace .audit-axis{padding:9px 0 7px;border-bottom:1px solid #496777;position:sticky;top:0;background:#142733;z-index:1;}
body .time-workspace .audit-axis>b{font-size:10px;color:#b7cbd5;font-weight:500;}
body .time-workspace .audit-axis svg{width:100%;height:24px;overflow:visible;}
body .time-workspace .audit-axis text{font-size:11px;fill:#c5d6df;}
body .time-workspace .audit-day{padding:7px 0;min-height:46px;border-bottom:1px solid #34515f;}
body .time-workspace .audit-day-name b{font-size:12px;}
body .time-workspace .audit-day small{font-size:10px;line-height:1.2;margin-top:3px;color:#adbfca;}
body .time-workspace svg.audit-track{display:block;width:100%;min-height:28px;height:auto;overflow:visible;background:#213541;border-radius:4px;}
body .time-workspace .audit-track .audit-hour-grid{stroke:#425764;stroke-width:1;vector-effect:non-scaling-stroke;opacity:.6;}
body .time-workspace .audit-track .audit-segment{position:static;cursor:pointer;}
body .time-workspace .audit-segment rect{stroke:none;}
body .time-workspace .audit-segment.work rect{fill:#56cbb1;}
body .time-workspace .audit-segment.running rect{fill:#76adf0;}
body .time-workspace .audit-segment.lunch rect{fill:#efc34c;}
body .time-workspace .audit-segment.paidmeal rect{fill:#b392f0;}
body .time-workspace .audit-segment:hover,body .time-workspace .audit-segment:focus{filter:brightness(1.2);outline:none;}
body .time-workspace .audit-segment:focus rect{stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke;}
body .time-workspace .audit-scheduled rect{fill:#b3c9d640;stroke:#aec8d7;stroke-width:1;stroke-dasharray:4 2;vector-effect:non-scaling-stroke;}
body .time-workspace .audit-scheduled path{stroke:#aec8d7;stroke-width:2;vector-effect:non-scaling-stroke;}
body .time-workspace .audit-deadline path{stroke-width:1;stroke-dasharray:2 2;vector-effect:non-scaling-stroke;}
body .time-workspace .audit-deadline.meal path{stroke:#efc34c;}
body .time-workspace .audit-deadline.rest path{stroke:#dbbaff;}
body .time-workspace .audit-deadline text{font-size:8px;font-weight:800;paint-order:stroke;stroke:#142733;stroke-width:3;fill:#efc34c;}
body .time-workspace .audit-deadline.rest text{fill:#dbbaff;}
body .time-workspace .audit-day-note{grid-column:2;margin:3px 0 0;color:#eac875;font-size:10px;}
body .time-workspace .audit-legend .scheduled:before{background:#b3c9d640;border:1px dashed #aec8d7;}
body .time-workspace .audit-legend .meal:before{background:#efc34c;}
body .time-workspace .audit-legend .rest:before{background:#dbbaff;}
body .time-workspace .audit-legend{gap:12px;margin-bottom:8px;}

body .time-workspace .audit-axis,body .time-workspace .audit-day{grid-template-columns:110px minmax(0,1fr) 155px;}
body .time-workspace .audit-row-actions{grid-column:3;grid-row:1;display:flex;flex-direction:column;gap:5px;padding-left:5px;}
body .time-workspace .audit-row-ticket{display:flex;flex-direction:column;align-items:flex-start;gap:2px;}
body .time-workspace button.audit-ticket-link{background:none;border:0;box-shadow:none;color:#c2ddf5;padding:2px 0;min-height:0;font-size:11px;line-height:1.25;text-align:left;text-decoration:underline;text-underline-offset:3px;}
body .time-workspace button.audit-ticket-link.approve{color:#6cdfc2;}
body .time-workspace .audit-row-ticket small{margin:0;font-size:9px;}
body .time-workspace .audit-pay-range{display:flex;flex-direction:column;gap:4px;min-width:230px;}
body .time-workspace .audit-pay-range small{color:#afc7d3;font-size:11px;}
body .time-workspace .audit-pay-range strong{font-size:14px;color:#edf6fa;}

body .audit-approval-queue{margin:0 0 18px;padding:16px;background:#303a29;border:1px solid #e4bf49;border-left:5px solid #f2c64e;border-radius:12px;color:#f6f8ed}body .audit-approval-heading strong{font-size:20px;color:#ffe190}body .audit-approval-heading p{color:#d6dfd1;font-size:13px;margin:6px 0 12px}body .audit-approval-items{display:grid;gap:8px}body .audit-approval-items article{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#1d3440;padding:10px 12px;border:1px solid #6c806c;border-radius:8px}body .audit-approval-items article div{display:grid;gap:4px}body .audit-approval-items b{color:#f5f8fa;font-size:14px}body .audit-approval-items span{color:#c6d8e1;font-size:12px}body .audit-approval-items small{color:#ffe190;font-size:11px}body .audit-approval-items button{flex-shrink:0;background:#f1cd58;color:#172c37;border-color:#f1cd58;font-weight:700}body .audit-approval-clear{display:flex;gap:12px;flex-wrap:wrap;border-left:3px solid #68ddbd;padding:10px 14px;margin-bottom:14px;background:#173b3c;color:#d6eee7}body .audit-approval-clear span{font-size:12px;color:#b4d3ce}body .time-workspace .audit-ticket-pending{background:#3a3828;border-left:3px solid #f2c64e;padding:6px 8px;border-radius:5px}body .time-workspace .audit-ticket-pending small{color:#ffe190;font-size:10px;font-weight:700}body .time-workspace .audit-ticket-pending button.approve{padding:5px 8px;background:#f1cd58;color:#172c37;text-decoration:none;border-radius:5px;font-weight:700;font-size:12px}@media(max-width:600px){body .audit-approval-items article{align-items:stretch;flex-direction:column;gap:8px}body .audit-approval-items button{align-self:flex-start}}

body .time-workspace .audit-day.audit-day-returned{background:linear-gradient(100deg,rgba(154,47,65,.26),rgba(107,37,52,.14));border:1px solid #ba6c79;border-left:5px solid #f17f91;border-radius:10px;box-shadow:0 0 0 1px rgba(241,127,145,.08);margin:7px 0;padding:9px}body .audit-day-returned .audit-day-name b{color:#ffe7ec}body .audit-day-returned .audit-day-name small{color:#ffc3ce}body .audit-return-note{grid-column:1/-1;background:#472e39;border:1px solid #ac6b7b;border-radius:8px;padding:11px 14px;margin:7px 0;color:#fff0f3}body .audit-return-note>div{display:flex;gap:10px;flex-wrap:wrap;align-items:center}body .audit-return-note strong{font-size:13px;color:#ffc4d0}body .audit-return-note span{font-size:12px;color:#e5cdd5}body .audit-return-note p{margin:8px 0;color:#fff1f5;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:13px}body .time-workspace .audit-return-note button.audit-ticket-link{color:#ffccd8;font-weight:700;font-size:12px}body .audit-return-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;background:#462d38;border-left:4px solid #f17f91;border-radius:8px;padding:12px 15px;margin:12px 0;color:#ffd5de}body .audit-return-summary button{background:#663d4d;color:#fff1f6;border:1px solid #bb7f91}

body .time-workspace .audit-day.audit-day-approval{background:linear-gradient(100deg,rgba(155,119,34,.22),rgba(122,93,29,.08));border:1px solid #927b47;border-left:4px solid #efca62;border-radius:8px;margin:6px 0;padding:8px}body .time-workspace .audit-day-approval .audit-day-name b{color:#ffe4a0}body .time-workspace .audit-row-ticket .audit-review-status{font-size:11px;font-weight:750;line-height:1.5;color:#d6e4e9}body .time-workspace .audit-ticket-pending .audit-review-status{display:block;background:#4c4328;color:#ffe29a;padding:4px 7px;border-radius:5px;margin:4px 0}body .time-workspace .audit-day-returned .audit-review-status{color:#ffc7d4}body .time-workspace .audit-ticket-pending{background:transparent;border:0;padding:2px}

body .audit-return-note{display:flex;align-items:baseline;gap:10px;grid-column:1/-1;background:rgba(112,47,64,.25);border:0;border-top:1px solid rgba(220,138,159,.3);border-radius:0;padding:7px 3px 2px;margin:5px 0 0;box-shadow:none}body .audit-return-note>strong{flex-shrink:0;font-size:12px;line-height:1.45;color:#ffbfce}body .audit-return-note .audit-return-text{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.45;color:#ffe7ee}body .time-workspace .audit-return-note button.audit-ticket-link{flex-shrink:0;min-height:0;padding:0;background:none;border:0;box-shadow:none;font-size:11px;color:#ffcfdb;text-decoration:underline}body .time-workspace .audit-day.audit-day-returned{border-left-width:3px;padding:6px 8px;margin:5px 0;box-shadow:none;background:linear-gradient(100deg,rgba(154,47,65,.19),rgba(107,37,52,.08))}@media(max-width:600px){body .audit-return-note{flex-wrap:wrap;gap:5px 8px}body .audit-return-note .audit-return-text{flex-basis:70%}body .time-workspace .audit-return-note button.audit-ticket-link{margin-left:auto}}

/* Compact, accessible manual refresh; a quiet dot indicates newer records. */
.audit-toolbar .audit-refresh-icon{position:relative;flex:0 0 34px;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;font-size:23px;line-height:1;align-self:end;border-radius:9px}
.audit-refresh-icon.has-updates::after{content:'';position:absolute;top:3px;right:3px;width:7px;height:7px;border-radius:50%;background:#f4ce50;box-shadow:0 0 0 2px #19313d}
.audit-refresh-icon:disabled{opacity:.55}

#ticket-vehicle-audit{border:1px solid #536b78;border-left:4px solid #e1bd48;padding:16px;margin:18px 0;border-radius:8px}.ticket-vehicle-interval{border-top:1px solid #536b78;padding:14px 0}.ticket-vehicle-interval dl{display:grid;grid-template-columns:minmax(180px,1fr) 2fr;gap:7px}.ticket-vehicle-interval dd{margin:0}.ticket-vehicle-route{width:100%;height:420px;border:0}.ticket-evidence-hash{overflow-wrap:anywhere;white-space:normal}#ticket-vehicle-audit pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto}.ticket-vehicle-signoff{border:1px solid #bca348;padding:14px;margin-top:14px}#ticket-vehicle-audit details{margin:12px 0}#ticket-vehicle-audit nav{display:flex;gap:12px;align-items:center}@media(max-width:640px){.ticket-vehicle-interval dl{display:block}.ticket-vehicle-interval dd{margin:5px 0 12px}.ticket-vehicle-route{height:300px}}

.ticket-position-plot{display:block;width:100%;max-height:420px;background:#112731;border:1px solid #536b78;border-radius:6px}

/* notification_popout.css */
#notification-popout{position:fixed;right:16px;top:78px;width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 94px);z-index:80;background:#142a36;border:1px solid #405460;border-radius:14px;box-shadow:0 18px 55px #0009;display:flex;flex-direction:column;color:#eaf0f3;overflow:hidden}
.notification-popout-header{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;padding:18px;border-bottom:1px solid #405460}.notification-popout-header h2{margin:0 0 4px;font-size:20px}.notification-popout-header small{color:#adc1cd}.notification-popout-header button{font-size:22px;line-height:1;padding:8px 12px}
#notification-popout-content{overflow:auto;padding:0 16px 16px;overscroll-behavior:contain;min-height:0}#notification-popout-content h3{font-size:14px;margin:20px 0 10px;display:flex;justify-content:space-between;gap:8px}#notification-popout-content h3 span{color:#b8c6ce;font-weight:400}
.notification-card{background:#1c3441;border:1px solid #354f5d;border-radius:10px;padding:13px;margin:10px 0;overflow-wrap:anywhere}.notification-card strong{display:block;font-size:15px;line-height:1.4}.notification-card p{font-size:13px;line-height:1.5;margin:8px 0}.notification-card small{font-size:12px;color:#b9c8d1}.notification-label{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}.notification-label span{font-size:11px;color:#e7cf29}.notification-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.notification-card button,.notification-popout-footer button{font-size:12px;min-height:34px;padding:7px 11px}.notification-card>button{margin-top:8px}.notification-new{border-left:3px solid #e5cb20}.notification-overdue{border-left:3px solid #f8a778}.notification-empty{font-size:13px;color:#adbfca;line-height:1.5}
.notification-popout-footer{padding:12px 16px;display:flex;gap:8px;border-top:1px solid #405460;background:#142a36}#required-action-badge[aria-expanded=true]{border-color:#e5cb20}
@media(max-width:600px){#notification-popout{right:12px;top:12px;max-height:calc(100dvh - 24px)}.notification-popout-header{padding:14px}}
/* A slow glow keeps the label readable while drawing attention to pending items. */
#required-action-badge.notification-active,#required-action-badge.notification-active[aria-expanded=true]{background:#52232e;color:#fff1f3;border-color:#ef6478;animation:notification-red-pulse 2.4s ease-in-out infinite}
@keyframes notification-red-pulse{0%,100%{box-shadow:0 0 0 0 #ed526b00}50%{box-shadow:0 0 0 3px #ed526b35,0 0 15px #ed526b45}}
@media(prefers-reduced-motion:reduce){#required-action-badge.notification-active{animation:none;box-shadow:0 0 0 2px #ed526b35}}

.notification-inbox-tabs{display:flex;gap:8px;position:sticky;top:0;z-index:1;background:#142a36;padding:12px 0 8px}.notification-inbox-tabs button{font-size:13px;padding:7px 12px;min-height:34px}.notification-inbox-tabs button[aria-pressed=true]{background:#244c5c;border-color:#77d6bf;color:#f5fbfd}.notification-inbox-hint{display:block;color:#b9c8d1;font-size:11px;line-height:1.5}.notification-receipt{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid #405460}.notification-receipt small{font-size:11px;color:#a7ddca}.notification-receipt button{margin:0}.notification-receipt button[data-inbox-action=inbox_acknowledge]{background:#234e54;border-color:#70bfae;color:#f2fffb}

/* time_workspace.css */
/* A single BPS palette, clear hierarchy and usable controls for time and safety. */
body #main.time-workspace{max-width:1440px;margin-inline:auto;}
.time-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px;}
.time-workspace-heading h1{font-size:clamp(26px,3vw,36px);line-height:1.2;margin:6px 0 8px;}
.time-workspace-heading p,.time-review-heading p{margin:0;color:#c4d5df;line-height:1.6;}
.time-workspace-tools{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 28px;}
.time-workspace .panel{background:#192d3a;border:1px solid #486575;border-radius:14px;padding:24px;margin-bottom:24px;box-shadow:0 4px 16px #07151d20;}
body .time-workspace #staff-live-ticket{padding:24px;border-left:4px solid #e1c329;}
.time-workspace .time-totals{margin:20px 0;gap:12px;}
.time-workspace .time-totals>div{background:#223b49;border:1px solid #506f80;border-radius:10px;padding:16px;color:#c4d5df;}
.time-workspace .time-totals strong{color:#f2d73d;font-variant-numeric:tabular-nums;}
body .time-workspace :is(p,small,.caption,.audit-day small,.audit-day-labels,.audit-legend){color:#c4d5df;}
body .time-workspace :is(h1,h2,h3,strong,b,label){color:#edf4f8;}
body .time-workspace :is(input,select,textarea){background:#233d4c;color:#f2f6f9;border:1px solid #839dac;border-radius:7px;min-height:44px;padding:10px 12px;font-size:14px;box-sizing:border-box;}
body .time-workspace :is(input,textarea)::placeholder{color:#becfda;}
body .time-workspace button:not(.audit-segment){background:#263f4d;color:#edf4f8;border:1px solid #7895a5;border-radius:8px;min-height:44px;padding:10px 15px;line-height:1.35;font-weight:600;}
body .time-workspace button.primary{background:#e1c329;color:#142632;border-color:#e1c329;}
body .time-workspace button:not(.audit-segment):hover{background:#355667;}
body .time-workspace button.primary:hover{background:#f1d43b;}
body .time-workspace :is(button,input,select,textarea,summary):focus-visible{outline:3px solid #f2d73d;outline-offset:3px;}
body .time-workspace button:disabled{background:#263641;color:#b5c8d3;border-color:#6f8795;cursor:not-allowed;}
.time-workspace .time-recording-notice,.time-workspace .time-recent{border-top:1px solid #496777;margin-top:16px;padding-top:14px;}
.time-workspace summary{color:#c4d5df;cursor:pointer;min-height:32px;line-height:1.6;}
.time-workspace .time-review-heading{border-bottom:1px solid #496777;padding-bottom:18px;margin-bottom:20px;}
.time-workspace .time-review-heading h2{font-size:24px;margin:6px 0;}
.time-workspace .audit-toolbar{display:flex;align-items:end;gap:12px;margin:0 0 16px;padding:16px;background:#142733;border:1px solid #496777;border-radius:10px;}
.time-workspace .audit-toolbar label,.time-workspace .audit-period label{font-size:13px;line-height:1.5;gap:6px;}
.time-workspace .audit-toolbar input{width:158px;}
.time-workspace .audit-toolbar select{max-width:260px;}
.time-workspace .audit-employee-picker{display:flex;align-items:end;gap:10px;min-width:0;}
.time-workspace .audit-employee-picker label{flex:1;min-width:0;}
.time-workspace .audit-employee-picker select{width:100%;}
.time-workspace .audit-employee-picker button{flex:0 0 44px;}
@media(max-width:720px){.time-workspace .audit-employee-picker,.time-workspace .audit-zone-label{grid-column:1/-1;}}
.time-workspace .audit-period{gap:12px;margin:0 0 20px;}
.time-workspace .audit-totals{gap:12px;margin:20px 0;}
.time-workspace .audit-totals>div{background:#223b49;border-color:#506f80;color:#c4d5df;padding:18px;font-size:13px;}
body .time-workspace .audit-totals b{color:#f2d73d;font-size:28px;font-variant-numeric:tabular-nums;}
.time-workspace .audit-days{border:1px solid #496777;border-radius:10px;padding:4px 16px;background:#142733;}
.time-workspace .audit-day{padding:16px 0;border-color:#496777;grid-template-columns:140px minmax(0,1fr);}
.time-workspace .audit-day:last-child{border-bottom:0;}
.time-workspace .audit-day small{font-size:12px;line-height:1.5;}
.time-workspace .audit-day-labels{font-size:11px;}
body .time-workspace .audit-segment{height:26px!important;max-height:26px!important;min-height:0!important;bottom:auto!important;border:0!important;padding:0!important;}
.time-workspace #time-audit-pane{scroll-margin-top:160px;}
body .time-workspace .audit-segment.work{background:#56cbb1;}
body .time-workspace .audit-segment.lunch{background:#efc34c;}
body .time-workspace .audit-segment.paidmeal{background:#b392f0;}
.time-workspace .audit-ticket{background:#203846;border-color:#557585;padding:20px;gap:24px;}
.time-workspace .audit-ticket p{font-size:14px;line-height:1.6;}
.time-workspace .audit-ticket small{color:#a0e6ce;line-height:1.5;}
.time-workspace .audit-status{display:inline-block;background:#355567;color:#edf4f8;margin:6px 0 6px 10px;font-size:12px;}
body .time-workspace .audit-flags{color:#ffe193;line-height:1.6;background:#453b25;border-radius:7px;padding:12px 12px 12px 30px;}
.time-workspace .audit-ticket-actions{min-width:180px;gap:10px;}
.time-workspace .jsa-saved .sample-locations{gap:14px;}
body .time-workspace .day-work{background:#192d3a;color:#edf4f8;}
body .time-workspace #staff-live-ticket[hidden]{display:none;}
@media(max-width:720px){.time-workspace-heading{align-items:flex-start;flex-direction:column;gap:12px;}.time-workspace .panel,body .time-workspace #staff-live-ticket{padding:18px;}.time-workspace .audit-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;}.time-workspace .audit-toolbar label{min-width:0;}.time-workspace .audit-toolbar :is(input,select){width:100%;max-width:100%;min-width:0;}.time-workspace .audit-totals{grid-template-columns:repeat(2,minmax(0,1fr));}.time-workspace .audit-day{grid-template-columns:90px minmax(0,1fr);gap:6px;}.time-workspace .audit-days{padding:4px 10px;}.time-workspace .audit-ticket{display:block;padding:16px;}.time-workspace .audit-ticket-actions{min-width:0;margin-top:16px;}.time-workspace .time-punch-actions{display:grid;grid-template-columns:1fr;}.time-workspace-tools button{flex:1 1 auto;}.time-workspace .audit-status{margin-left:0;}}

/* xtrace.css */
/* Compact per-unit X-trace; graph rules must never stretch color swatches. */
body .chart-xtrace{width:min(300px,calc(100% - 16px));min-height:0;max-height:280px;overflow:auto;padding:8px 10px;pointer-events:auto;font-size:11px;box-sizing:border-box}
body .chart-xtrace>strong{display:block;font-size:11px;line-height:1.3;margin-bottom:5px;color:#e5eef3}
body .chart-xtrace>div{display:flex;flex-direction:column;gap:4px;margin-top:0}
body .chart-xtrace .xtrace-row{display:grid;grid-template-columns:16px minmax(0,1fr) auto auto;gap:5px;align-items:center;margin:0;line-height:1.25}
body .chart-xtrace .xtrace-label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body .chart-xtrace .swatch{display:inline-block;width:16px!important;min-width:16px!important;max-width:16px;height:8px!important;flex:none;margin:0}
body .chart-xtrace small{font-size:10px;white-space:nowrap;color:#bed0dc}
body .chart-xtrace .xtrace-event{display:block;white-space:normal;margin-bottom:5px}
.xtrace-toolbar{display:flex;justify-content:flex-end;margin:6px 0 8px}.xtrace-toolbar label{display:flex;align-items:center;gap:8px;margin:0;font-size:12px}.xtrace-toolbar select{width:auto;max-width:220px;min-height:32px;padding:5px 8px;margin:0;font-size:12px}

.xtrace-toolbar select{min-width:120px}

/* browser_identity.css */
.remember-browser{display:flex!important;align-items:center;gap:.65rem;margin:.9rem 0;line-height:1.4}.remember-browser input{width:1.1rem!important;min-width:1.1rem;height:1.1rem;margin:0}.identity-device-list{display:grid;gap:.6rem;margin:.75rem 0 1rem}.identity-device-list article{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid var(--line,#dbe3e8);border-radius:10px;background:var(--paper,#f3f6f7)}.identity-device-list small{display:block;margin-top:.3rem;color:var(--muted,#647784)}.identity-device-list button{flex-shrink:0}#identity-security h3{margin-top:1.5rem}#passkey-signin{width:100%;margin-top:.25rem}@media(max-width:560px){.identity-device-list article{align-items:flex-start;flex-direction:column}.identity-device-list button{align-self:flex-end}}

/* task_workflow.css */
body #dialog.workflow-dialog{background:#192e3b;color:#f2f6f9;border:1px solid #708b9b;max-width:920px;}
body #dialog.workflow-dialog :is(h2,h3,h4,label,strong,b,summary){color:#f2f6f9;}
body #dialog.workflow-dialog :is(p,small,.caption,span){color:#cedde5;line-height:1.55;}
body #dialog.workflow-dialog :is(input,select,textarea){background:#243e4c;color:#f4f7fa;border:1px solid #90a7b4;border-radius:7px;min-height:44px;padding:10px 12px;box-sizing:border-box;}
body #dialog.workflow-dialog :is(input,textarea)::placeholder{color:#bdcfd9;}
body #dialog.workflow-dialog :is(button,summary){min-height:44px;}
body #dialog.workflow-dialog button{background:#294956;color:#f3f7fa;border:1px solid #809aa8;}
body #dialog.workflow-dialog button.primary{background:#e3c52c;color:#132631;border-color:#e3c52c;}
body #dialog.workflow-dialog button:disabled{background:#2b3c47;color:#becfd8;opacity:1;}
body #dialog.workflow-dialog :is(input,select,textarea,button,summary):focus-visible{outline:3px solid #f1d33a;outline-offset:3px;}
body #dialog.workflow-dialog [role=alert]{color:#ffdab2;}
body #dialog.workflow-dialog form>label{display:block;margin:14px 0;}
body #dialog.workflow-dialog .form-grid{gap:16px;margin:14px 0;}
body #dialog.workflow-dialog .day-check{display:flex;align-items:center;gap:10px;}
body #dialog.workflow-dialog input[type=checkbox]{min-height:0;width:20px;height:20px;padding:0;flex:0 0 20px;}
.workflow-step-summary,.workflow-add-task,.workflow-pending{background:#213d4a;border:1px solid #628291;border-radius:9px;padding:14px;margin:14px 0;}
.workflow-step-summary p{margin:6px 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;}
.workflow-add-task summary{cursor:pointer;font-weight:650;color:#f1d33a!important;}
#workflow-ticket-tasks{border-top:1px solid #557887;margin-top:20px;padding-top:16px;}
body :is(.ticket-task-change,.ticket-meal){background:#223c49;border:1px solid #668695;border-radius:10px;margin:12px 0;padding:16px;}
body .workflow-dialog .day-task-row{background:#223c49;color:#f2f6f9;border:1px solid #668695;padding:14px;gap:14px;}
@media(max-width:640px){body #dialog.workflow-dialog{width:calc(100vw - 24px);padding:18px;}.workflow-dialog .form-grid{grid-template-columns:1fr;}.workflow-dialog .day-task-row{display:block;}.workflow-dialog .day-task-row>div{min-width:0;overflow-wrap:anywhere;}}

body #dialog .ticket-adjustment-summary{background:#193f4d!important;color:#f5f9fb!important;border:1px solid #74b9ca;border-left:4px solid #64ddbc;padding:12px 15px;border-radius:9px;margin:10px 0 18px}body #dialog .ticket-adjustment-summary p{color:#c7dfe7!important;margin:.4rem 0 0}body #dialog .ticket-adjustment-summary.ticket-time-error{border-color:#ff9c97;background:#512a34!important}body #dialog .ticket-time-start,body #dialog .ticket-time-end{font-weight:700;color:#f2f8fc!important;padding:10px;border-radius:8px;background:#172f3c!important;border-top:3px solid #68ddbd}body #dialog .ticket-time-end{border-top-color:#c2a5ff}body #dialog input.ticket-time-changed{border:2px solid #f3cc57!important;background:#3e3b25!important;color:#fff7da!important}body #dialog .ticket-time-diff{display:block;color:#ffdf7d!important;font-size:.85rem;font-weight:500;margin-top:6px;line-height:1.5}body #dialog .ticket-pending-row{border-left:4px solid #f3cc57!important}body #dialog .ticket-split-note{color:#ffdf7d!important;font-weight:700}body #dialog .ticket-task-change .form-grid,body #dialog .ticket-meal .form-grid{gap:14px}body #dialog #ticket-change-form input[type=datetime-local]{font-size:17px;min-height:48px;font-variant-numeric:tabular-nums}

body #dialog .ticket-rejection-banner{background:#482b37!important;color:#fff1f5!important;border:1px solid #d38498!important;border-left:5px solid #ff819e!important;border-radius:10px;padding:16px 18px;margin:12px 0 20px;box-shadow:0 2px 10px rgba(0,0,0,.12)}body #dialog .ticket-rejection-heading{display:block;color:#ffb8cc!important;font-size:13px;font-weight:800;letter-spacing:.04em;margin-bottom:9px}body #dialog .ticket-rejection-text{font-size:18px;line-height:1.55;font-weight:750;color:#fff6f9!important;white-space:pre-wrap;overflow-wrap:anywhere}body #dialog .ticket-rejection-banner small{display:block;color:#e6bbc8!important;margin-top:10px;font-size:12px}body #dialog .ticket-rejection-banner.ticket-rejection-resubmitted{background:#3d3927!important;border-color:#d4ba6b!important;border-left-color:#f2ce66!important}body #dialog .ticket-rejection-resubmitted .ticket-rejection-heading{color:#ffe4a0!important}@media(max-width:600px){body #dialog .ticket-rejection-banner{padding:13px 14px}body #dialog .ticket-rejection-text{font-size:17px}}

/* staff_flow.css */
#dialog-body .flow-jsa-number,#dialog-body .flow-ready,#dialog-body .flow-signoff{padding:1rem;border:1px solid #4c7788;border-radius:10px;background:#142e3b;color:#edf6fa;margin:.6rem 0;}
#dialog-body .flow-jsa-number{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;border-left:4px solid #ecd119;}
#dialog-body .flow-jsa-number strong{color:#ecd119;font-size:1.2rem;}
#dialog-body .flow-jsa-number small{flex-basis:100%;}
#dialog-body .flow-jsa-number small,#dialog-body .flow-signoff .caption,#dialog-body .flow-ready .caption{color:#c8dbe6;}
#dialog-body [hidden]{display:none!important;}
#dialog:has(#staff-jsa-form),#dialog:has(#staff-start-form),#dialog:has(.staff-jsa-table),#dialog:has(#contractor-form),#dialog:has(.flow-team){background:#102a38;color:#edf5f9;border:1px solid #587d8e;}
#dialog-body :is(#staff-jsa-form,#staff-start-form,#contractor-form) :is(label,h3,summary){color:#edf5f9;}
#dialog:has(.staff-jsa-table) #dialog-body :is(h2,h3,summary,p),#dialog:has(#staff-jsa-form) #dialog-body h2,#dialog:has(#staff-start-form) #dialog-body h2{color:#edf5f9;}
#dialog-body :is(#staff-jsa-form,#staff-start-form,#contractor-form) :is(input:not([type=checkbox]),select,textarea){color:#edf5f9;background:#153746;border:1px solid #799ba9;min-height:44px;}
#dialog-body :is(#staff-jsa-form,#staff-start-form,#contractor-form) input[type=checkbox]{accent-color:#ecd119;}
#dialog-body :is(#staff-jsa-form,#staff-start-form,#contractor-form) :is(.caption,small){color:#bfd2dd;}
#dialog-body :is(#staff-jsa-form,#staff-start-form,#contractor-form) [role=alert]:empty{display:none;}
#dialog-body :is(#staff-jsa-form,#staff-start-form,#contractor-form) [role=alert]:not(:empty){background:#522633;color:#fff1f2;border-color:#ff8a98;padding:.75rem;}
#dialog-body .jsa-ink-box p{color:#15394d;}
#dialog-body :is(#staff-jsa-form,#staff-start-form,#contractor-form) :is(input,select,textarea,button):focus-visible{outline:3px solid #ecd119;outline-offset:2px;}
#dialog-body .flow-check{display:flex;align-items:flex-start;gap:.65rem;line-height:1.5;}
#dialog-body .flow-check input{width:20px;min-width:20px;margin-top:.25rem;}
#dialog-body .flow-signoff label,#dialog-body .flow-ready label{color:#edf6fa;}
#dialog-body .flow-signoff input:not([type=checkbox]),#dialog-body .flow-team select{color:#f3f9fc;background:#0c2634;border:1px solid #7293a1;}
.flow-team{display:grid;gap:.7rem;}.flow-team article{padding:1rem;background:#15323f;border:1px solid #648493;border-radius:8px;}
.audit-segment.jsa rect{fill:#ecd119;}.audit-segment.training rect{fill:#bba2ff;}.audit-segment.inspection rect{fill:#65c4f0;}.audit-segment.maintenance rect{fill:#f5a769;}.audit-segment.sampling rect{fill:#75dba4;}
#dialog-body .staff-jsa-table th{background:#274b5d;color:#fff;}#dialog-body .staff-jsa-table td{color:#e7f1f7;}#dialog-body .staff-jsa-table tr:nth-child(even){background:#193744;}
@media(max-width:600px){#dialog-body .flow-jsa-number{gap:.5rem;}#dialog-body .flow-signoff,#dialog-body .flow-ready{padding:.75rem;}.flow-team button{width:100%;min-height:44px;}}
@media(max-width:600px){#dialog-body :is(#staff-jsa-form,#staff-start-form) .form-grid,#dialog-body #staff-jsa-form{grid-template-columns:minmax(0,1fr);}#dialog-body :is(#staff-jsa-form,#staff-start-form) label{min-width:0;}#dialog-body :is(#staff-jsa-form,#staff-start-form) input,#dialog-body :is(#staff-jsa-form,#staff-start-form) select{max-width:100%;}}

input[data-flow-person][hidden]{display:none!important;}

.completion-summary,.completion-next-action{background:#3b242b!important;color:#fff5f5!important;border:1px solid #fa9ba8;border-left:4px solid #ff8b9e;border-radius:10px;padding:14px;margin:12px 0;grid-column:1/-1}
.completion-summary h3,.completion-next-action h3{color:#fff5f5!important;margin:0 0 8px}
.completion-summary p,.completion-next-action p{color:#ffe3e7!important;margin:6px 0}
.completion-summary ul{margin:8px 0 0;padding-left:20px}
.completion-summary li{margin:5px 0}
.completion-summary button{background:transparent!important;border:0!important;color:#fff5f5!important;text-align:left;text-decoration:underline;padding:6px 0;white-space:normal}
#dialog .completion-missing{border:2px solid #ff8b9e!important;outline-offset:3px}
.completion-field-error{display:block;color:#ffd2db!important;background:#3b242b;padding:6px 8px;margin-top:4px;border-radius:4px;font-size:.9rem;line-height:1.4}
.completion-notification-hint{color:#ecf4f7!important;background:#203f4b;border-left:3px solid #edcd32;padding:9px 11px;font-size:.92rem;line-height:1.5}
@media(max-width:760px){.completion-summary button{min-height:44px}.completion-summary,.completion-next-action{padding:11px}}

.device-alert-reminder{padding:12px 15px;border:1px solid #667f8a;border-radius:10px;background:#203b47;color:#f1f6f8;margin:0 0 16px;display:flex;gap:12px;align-items:center;justify-content:space-between}
.device-alert-reminder strong{color:#f1f6f8}.device-alert-reminder p{margin:5px 0 0;color:#d2e1e8;font-size:.9rem;max-width:650px}.device-alert-reminder .actions{flex-wrap:wrap;margin:0;flex-shrink:0}.device-alert-reminder button{white-space:normal;font-size:.9rem}
@media(max-width:1000px){.device-alert-reminder{display:block}.device-alert-reminder .actions{margin-top:10px}}

.jsa-draft-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid #597581;border-radius:10px;background:#203b47;color:#edf5f8;font-size:.9rem}.jsa-draft-tools button{padding:6px 12px;min-height:36px;white-space:nowrap}.jsa-draft-tools [role=status]{flex:1;min-width:190px}

/* ui_cleanup.css */
/* BPS contrast, compact selectors and readable issue review. */
body .mobility,body .mobility.job,body .mobility.unknown,body .mobility.transit{background:#203e4a!important;color:#eff8fc!important;border:1px solid #7295a5;}
body .mobility a,body .mobility a:visited{color:#eff8fc;text-decoration:underline;text-underline-offset:3px;}
body .mobility a:hover{color:#ffdf4d;}
body .learning-programs button{background:#193d50;color:#f4f9fb;border:1px solid #7b9aaa;}
body .learning-programs button small{color:#d1e2eb;opacity:1;}
body .learning-programs button[aria-current=page]{background:#234d60;border-bottom:4px solid #edd020;}
body .learning-stats .stat,body .learning-person{background:#193b4d;color:#f2f8fb;}
body .learning-stats .stat small,body .learning-person small,body .learning-person span{color:#ccdee7;opacity:1;}
body .calendar-unit-link{display:inline-flex;align-self:start;justify-self:start;align-items:center;width:max-content;max-width:100%;min-height:36px;padding:7px 12px;border:1px solid #7897a3;border-radius:9px;background:#243e4c;color:#f1f7fa;text-align:left;text-decoration:none;font-weight:500;}
body .calendar-unit-link:hover{background:#31596b;border-color:#edd020;}
body .chart-xtrace{pointer-events:none!important;max-height:min(260px,75%);background:#102b3af5;color:#f5fafc;border-color:#7f9dab;}
body .chart-xtrace .xtrace-row{color:#f5fafc;}
.jsa-saved .sample-locations,.sample-locations[data-cleanup-compact]{display:block;}
[data-cleanup-compact] select{width:100%;max-width:700px;min-height:42px;background:#19394a;color:#f3f8fa;border:1px solid #7492a2;}
nav button[hidden]{display:none!important;}
.issue-inbox-tools{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr);gap:12px;margin:16px 0;}
.issue-list{display:grid;gap:10px;}.issue-card{padding:12px 14px;border:1px solid #647f8e;border-left:4px solid #edd020;border-radius:9px;background:#173848;color:#f1f8fb;}
.issue-card-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;}.issue-card-heading button{text-align:left;font-weight:650;color:#f1f8fb;background:transparent;border:0;padding:0;min-height:30px;}
.issue-card p{margin:7px 0 0;color:#d6e7ef;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.issue-card small{color:#c3d7e3;}.issue-status-badge{white-space:nowrap;background:#4b431c;color:#ffe668;border-radius:5px;padding:3px 7px;font-size:12px;}
.issue-status-investigating{border-left-color:#87bdff;}.issue-status-investigating .issue-status-badge{background:#254967;color:#d4eaff;}
.issue-status-fixed{border-left-color:#70d4b7;}.issue-status-fixed .issue-status-badge{background:#214d43;color:#bcf5df;}
.issue-archive{margin-top:20px;border-top:1px solid #738d9b;padding-top:14px;}.issue-archive summary{cursor:pointer;color:#d8e6ee;font-weight:650;padding:10px 0;}
.issue-editor-heading,.issue-review-navigation{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:15px;}
.issue-archived-notice{padding:10px 14px;background:#24483d;color:#c8f5e2;border-radius:7px;}
#dialog:has(.issue-inbox-tools),#dialog:has(#issue-form){background:#102b38;color:#f2f8fb;}
#dialog:has(.issue-inbox-tools) label,#dialog:has(#issue-form) label{color:#e2edf3;}
#dialog:has(.issue-inbox-tools) input,#dialog:has(.issue-inbox-tools) select,#issue-form input,#issue-form textarea,#issue-form select,#issue-review-note{background:#203e4f;color:#f6fafc;border:1px solid #819dab;}
@media(max-width:600px){.issue-inbox-tools{grid-template-columns:1fr;}.issue-card-heading{gap:7px;}.issue-review-navigation button{min-height:40px;}}

/* Dialog text follows the surface it is on, including intentional paper previews.
   Work-task forms previously combined a white .day-work surface with pale text. */
@media screen {
 body #dialog {background:#192e3b;color:#f2f6f9;border-color:#7895a5;color-scheme:dark;}
 body #dialog #dialog-body {color:#f2f6f9;}
 body #dialog #dialog-body :is(h1,h2,h3,h4,h5,label,strong,b,summary,p,small,span,li,legend,dt,dd) {color:inherit!important;}
 body #dialog #dialog-body :is(.day-work,.day-jsa-status,.workflow-step-summary,.workflow-add-task,.workflow-pending,.ticket-proposal,.ticket-meal,.ticket-task-change,.ticket-summary,.jsa-ink-box) {background:#213d4a!important;color:#f2f6f9!important;border-color:#7895a5;}
 body #dialog #dialog-body :is(input,textarea,select) {background:#243e4c!important;color:#f4f7fa!important;border-color:#90a7b4;opacity:1;}
 body #dialog #dialog-body :is(input,textarea)::placeholder {color:#c6d6df!important;opacity:1;}
 body #dialog #dialog-body :is(input,textarea,select):disabled {color:#c6d6df!important;background:#2b3c47!important;opacity:1;}
 body #dialog #dialog-body button {background:#294956;color:#f3f7fa;border-color:#90a7b4;}
 body #dialog #dialog-body button.primary {background:#e3c52c;color:#132631;border-color:#e3c52c;}
 body #dialog #dialog-body button.danger {background:#66303d;color:#fff1f3;border-color:#de8998;}
 body #dialog #dialog-body button:disabled {background:#2b3c47;color:#c6d6df;opacity:1;}
 body #dialog #dialog-body a {color:#9fe3ff;text-decoration:underline;text-underline-offset:3px;}
 body #dialog #dialog-body :is(th,td) {background:#1a3544;color:#f2f6f9!important;border-color:#7895a5;}
 body #dialog #dialog-body th {background:#294b5d;}
 body #dialog #dialog-body [role=alert]:not(:empty) {background:#522633;color:#fff1f2!important;border:1px solid #ff8a98;padding:10px;border-radius:6px;}
 body #dialog #dialog-body .day-change-alert {background:#493c19!important;color:#ffe5a2!important;border-color:#e1bc63;}
 body #dialog #dialog-body :is(input,textarea,select,button,a,summary):focus-visible {outline:3px solid #f1d33a;outline-offset:3px;}
 /* Ink and QR pixels need a white surface for legibility and scanning. */
 body #dialog :is(.jsa-ink-box canvas,.jsa-signed-ink,.qr-preview,.qr-preview svg) {background:#fff!important;}
}

#dialog .popup-navigation{position:sticky;top:-24px;z-index:6;box-sizing:border-box;background:#192e3b;padding:12px 76px 12px 24px;margin:-24px -24px 16px;border-bottom:1px solid #7895a5;isolation:isolate;}#dialog .popup-navigation button{background:#294956;color:#f3f7fa;border-color:#90a7b4;min-height:42px;white-space:normal;}#dialog .popup-navigation button:focus-visible{outline:3px solid #edd020;outline-offset:3px;}
@media(max-width:600px){#dialog .popup-navigation{top:-14px;margin:-14px -14px 14px;padding:10px 66px 10px 14px;}#dialog .popup-navigation button{min-height:44px;}}

.quick-trend-navigation{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.quick-trend-navigation small{color:#cadbe4;flex-basis:100%;margin-top:3px}

.ticket-test-evidence article{margin:12px 0;padding:12px;border:1px solid #7895a5;border-radius:8px}.ticket-test-record{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;max-width:100%}

/* rpl_survey.css */
.rpl-survey-tabs{display:flex;gap:8px;margin:16px 0}.rpl-survey-tabs button[aria-pressed=true]{border-color:#edd020;color:#edd020;background:#263e49}.rpl-survey-panel{background:#10232f;border:1px solid #526b77;border-radius:12px;padding:14px;margin:10px 0}.rpl-survey-tools{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.rpl-survey-tools strong,.rpl-survey-tools span{display:block}.rpl-survey-tools span{font-size:12px;color:#b5cbd6;margin-top:5px}.rpl-survey-tools label{display:flex;align-items:center;gap:6px;font-size:13px}.rpl-survey-tools input{width:auto}.rpl-survey-tools button{min-width:40px;padding:8px 12px}.rpl-survey-stage{height:440px;position:relative;margin:14px 0;background:linear-gradient(90deg,#25404a44 1px,transparent 1px),linear-gradient(#25404a44 1px,transparent 1px);background-size:32px 32px;border:1px solid #3f5967;border-radius:8px;overflow:hidden}.rpl-survey-svg{width:100%;height:100%;touch-action:none;cursor:grab}.rpl-survey-svg:active{cursor:grabbing}.rpl-survey-lines path{fill:none;stroke:#ead123;stroke-width:3;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round;cursor:pointer}.rpl-survey-lines path:hover,.rpl-survey-lines path.selected,.rpl-survey-lines path:focus{stroke:#79dbef;stroke-width:6;outline:none}.rpl-survey-points circle{fill:#9ed0e4;stroke:#10232f;stroke-width:1;cursor:pointer}.rpl-survey-points[hidden]{display:none}.rpl-survey-north,.rpl-survey-scale{position:absolute;background:#10232fee;padding:6px 10px;border-radius:6px;color:#dfedf3;pointer-events:none}.rpl-survey-north{top:10px;right:12px;font-weight:700}.rpl-survey-scale{bottom:8px;left:8px;font-size:12px}.rpl-survey-select{display:flex;gap:12px;align-items:center;color:#dce9ef}.rpl-survey-select select{width:auto;max-width:100%;flex:1}.rpl-survey-detail{padding:12px;margin-top:10px;background:#203a48;border-radius:8px;color:#e6f1f5;font-size:13px}.rpl-survey-detail strong,.rpl-survey-detail span{display:block}.rpl-survey-detail span{margin-top:5px}.rpl-lineup-widget [hidden]{display:none!important}@media(max-width:600px){.rpl-survey-stage{height:350px}.rpl-survey-select{display:block}.rpl-survey-select select{width:100%;margin-top:5px}.rpl-survey-tools .actions{gap:6px;flex-wrap:wrap}.rpl-survey-panel{padding:10px}}

/* rpl_geo.css */
.rpl-geo-tools{margin:12px 0;gap:8px;flex-wrap:wrap}.rpl-geo-tools span{font-size:12px;color:#c0d4df;flex-basis:100%}.rpl-geo-tools button[aria-pressed=true]{border-color:#edd020;color:#edd020}.rpl-satellite-frame{height:440px;width:100%;border:1px solid #526b77;border-radius:8px;background:#10232f;margin:14px 0}.rpl-survey-self{pointer-events:none}@media(max-width:600px){.rpl-satellite-frame{height:350px}}

/* Combined site/process workspace and shared phone ergonomics. */
.rpl-combined{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start;margin:16px 0}
.rpl-combined>*{min-width:0;margin:0}.rpl-combined-process{padding:16px;background:#10232f;border:1px solid #526b77;border-radius:12px;color:#e7f1f5}
.rpl-combined-process .rpl-odorizer-card{margin:12px 0;padding:12px}.rpl-combined-process .rpl-odorizer-heading{gap:8px}
.rpl-combined-process .rpl-odorizer-heading>div{min-width:0}.rpl-combined-process .rpl-odorizer-readings{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.rpl-combined-process .rpl-odorizer-readings>div{padding:9px}.rpl-combined-process .rpl-odorizer-readings strong{font-size:16px;margin-top:4px}
.rpl-combined-schematic summary{padding:12px 4px;cursor:pointer;color:#e7f1f5;font-weight:650}
.rpl-combined .rpl-live-topology{height:500px!important}.rpl-combined .rpl-satellite-frame{height:610px;margin:10px 0}
.rpl-combined .rpl-geo-tools [data-geo-sample]{background:#edd020;color:#142832;border-color:#edd020;font-weight:700}
.rpl-combined .rpl-geo-tools span{padding:10px;border:1px solid #405e70;border-radius:8px;background:#1a3341;color:#e7f1f5;font-size:13px}
.berco-phone-nav,.berco-phone-menu-close{display:none}
@media(max-width:999px){.rpl-combined{grid-template-columns:minmax(0,1fr)}.rpl-combined .rpl-satellite-frame{height:360px}.rpl-combined .rpl-live-topology{height:470px!important}}
@media(max-width:760px){
 html{scroll-padding-bottom:90px}body.berco-phone-active{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
 body>header{padding:10px 12px;gap:8px;grid-template-columns:minmax(0,1fr);grid-template-areas:'brand' 'identity';position:relative}
 body>header .brand{max-width:100%;gap:8px}body>header .brand small{max-width:260px}body>header #identity{justify-content:flex-start;font-size:12px;gap:8px}
 body>header #identity button{min-height:40px;padding:8px 10px;font-size:12px}
 body.berco-phone-active>header #nav{display:none}
 body.berco-phone-menu-open>header #nav{display:flex;position:fixed;inset:12px 12px calc(82px + env(safe-area-inset-bottom,0px)) 12px;z-index:1001;flex-direction:column;align-items:stretch;width:auto;background:#152c38;border:1px solid #668595;border-radius:14px;padding:12px;overflow:auto;box-shadow:0 12px 70px #000b}
 body.berco-phone-menu-open #nav button{flex:none;text-align:left;min-height:46px;white-space:normal}
 .berco-phone-menu-open .berco-phone-menu-close{display:block!important;background:#294653;color:#eef5f8}
 .berco-phone-active .berco-phone-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:1002;gap:4px;background:#10232ff5;border-top:1px solid #526b77;padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));box-shadow:0 -3px 15px #0004}
 .berco-phone-nav button{flex:1;min-width:0;min-height:48px;padding:9px 5px;border:0;border-radius:8px;background:transparent;color:#c7dce7;font-size:13px}
 .berco-phone-nav button[aria-current=page],.berco-phone-nav button[aria-expanded=true]{background:#2d3e37;color:#edd020;box-shadow:inset 0 -3px #edd020}
 main{padding:16px 12px 24px;max-width:100%;min-width:0}h1{font-size:25px;overflow-wrap:anywhere}h2{font-size:20px}
 button,summary,input,select{min-height:44px}input,select,textarea{font-size:16px;max-width:100%;box-sizing:border-box}
 .panel,.stat,.topline,.actions,form,label{min-width:0}.actions{flex-wrap:wrap;gap:8px}.actions>button{white-space:normal}
 .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}table{max-width:none}
 #dialog{box-sizing:border-box;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 24px);padding:14px;overflow:auto}
 #dialog-body{min-width:0;overflow-wrap:anywhere}#dialog .close{min-width:44px;min-height:44px}
 #dialog form{grid-template-columns:minmax(0,1fr)!important}#dialog label{min-width:0}#dialog .form-grid{grid-template-columns:minmax(0,1fr)!important}
 .rpl-combined{gap:12px}.rpl-combined-process{padding:12px}.rpl-combined .rpl-satellite-frame{height:320px}.rpl-combined .rpl-geo-tools button{flex:1}
 .rpl-combined .rpl-survey-tools span{font-size:11px}.rpl-combined .rpl-odorizer-heading h3{font-size:18px}.rpl-combined .rpl-odorizer-heading>div{flex-basis:100%}
 .rpl-odorizer-card>.caption{font-size:11px}.rpl-combined-schematic summary{min-height:44px;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce){.berco-phone-nav *{transition:none}}

.rpl-reading-notes{margin-top:10px}.rpl-reading-notes summary{cursor:pointer;color:#b5c9d5;font-size:12px;padding:8px 0}.rpl-reading-notes .caption{font-size:12px;line-height:1.5}
@media(max-width:760px){
 .td-focus .berco-phone-nav{display:none!important}
 input[type=checkbox],input[type=radio]{min-height:0;flex-shrink:0}
 #notification-popout{max-height:calc(100dvh - 100px)!important;bottom:calc(78px + env(safe-area-inset-bottom,0px))}
 .rpl-combined .rpl-satellite-frame{height:320px}
}

@media(max-width:760px){.berco-phone-active #report-issue,.berco-phone-active #toast{bottom:calc(82px + env(safe-area-inset-bottom,0px))}}

@media(max-width:760px){.topline>.actions{width:100%;max-width:100%;flex:1 1 100%;}.learning-header{flex-wrap:wrap}.learning-header>.actions button{max-width:100%}}

.rpl-compact-process{margin:12px 0;color:#e7f1f5}.rpl-compact-supplies,.rpl-compact-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rpl-compact-supplies>div,.rpl-compact-groups>div{border:1px solid #526b77;border-radius:8px;background:#1a3341;padding:10px;min-width:0}
.rpl-compact-process strong,.rpl-compact-process small,.rpl-compact-process span{display:block}.rpl-compact-process small,.rpl-compact-process span{font-size:12px;color:#bdd0db;margin-top:4px}
.rpl-compact-header{margin:12px 0;border-top:3px solid #68ddbd;padding:8px;text-align:center;background:#1a3341;border-radius:4px;font-size:13px}
.rpl-compact-groups>div{border-top:3px solid #6f8390}.rpl-compact-groups .connected{border-top-color:#68ddbd}.rpl-compact-groups .unknown{border-top-color:#edd020}
.rpl-source-open strong{color:#68ddbd}.rpl-source-closed strong{color:#ff8593}.rpl-source-unknown strong{color:#edd020}.rpl-compact-groups strong{font-size:14px}

/* Satellite and schematic above the full-width live odorizer card. */
.rpl-maps-only{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.rpl-maps-only>.rpl-survey-panel{padding:16px;background:#10232f;border:1px solid #526b77;border-radius:12px;box-sizing:border-box}
.rpl-maps-only h3{margin:0 0 12px;color:#e7f1f5}
.rpl-maps-only .rpl-live-topology{height:610px!important;width:100%}
.rpl-maps-only .rpl-satellite-frame{height:610px;box-sizing:border-box}
.rpl-maps-only .rpl-diagram-scroll{overflow:hidden;min-width:0}
.rpl-maps-only+.rpl-odorizer-card{margin:0 0 16px;width:100%;box-sizing:border-box}
.rpl-maps-only+.rpl-odorizer-card .rpl-odorizer-readings{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
@media(max-width:999px){.rpl-maps-only{grid-template-columns:minmax(0,1fr)}.rpl-maps-only .rpl-satellite-frame{height:360px}.rpl-maps-only .rpl-live-topology{height:470px!important}}
@media(max-width:760px){.rpl-maps-only>.rpl-survey-panel{padding:12px}.rpl-maps-only .rpl-satellite-frame{height:320px}.rpl-maps-only+.rpl-odorizer-card .rpl-odorizer-readings{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Labelled phone navigation with consistent touch targets. */
.berco-nav-icon{width:22px;height:22px;flex-shrink:0;vertical-align:middle}
#nav .berco-menu-item .berco-nav-icon{display:none}
@media(max-width:760px){
 .berco-phone-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:58px;padding:6px 2px;font-size:11px;font-weight:650;line-height:1.2}
 .berco-phone-nav .berco-nav-icon{width:23px;height:23px}
 body.berco-phone-active{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
 body.berco-phone-menu-open>header #nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:9px;inset:12px 12px calc(94px + env(safe-area-inset-bottom,0px))}
 body.berco-phone-menu-open #nav .berco-menu-item{display:flex;align-items:center;gap:10px;padding:13px 10px;min-height:66px;background:#203c4a;border:1px solid #617d8c;color:#f0f6fa;font-size:13px;border-radius:10px;text-align:left;line-height:1.35}
 body.berco-phone-menu-open #nav .berco-menu-item .berco-nav-icon{display:block;color:#bcd5e1}
 body.berco-phone-menu-open #nav button[data-page].active{background:#3c4332;border-color:#edd020;color:#fff4a3}
 body.berco-phone-menu-open #nav button[data-page].active .berco-nav-icon{color:#edd020}
 .berco-phone-menu-close{grid-column:1/-1;position:sticky;top:0;z-index:1;font-size:15px;font-weight:700;min-height:48px!important}
 .berco-phone-nav button:focus-visible,#nav button:focus-visible{outline:3px solid #f1d232;outline-offset:2px}
}

@media(max-width:760px){body.berco-phone-active #report-issue{bottom:calc(92px + env(safe-area-inset-bottom,0px));right:14px;min-height:40px;padding:8px 12px;font-size:12px}body.berco-phone-menu-open #report-issue{display:none!important}}

/* Compact branded phone header, with account actions in a dropdown. */
.berco-preview-chip,.berco-account-icon{display:none}
@media(max-width:760px){
 body>header{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:12px;min-height:64px;height:auto;padding:10px 14px;background:#10232f;border-bottom:1px solid #36515e;position:sticky;top:0;z-index:25}
 body>header .brand{flex:1;min-width:0;max-width:none;gap:9px}
 body>header .brand .brand-symbol{width:35px;height:40px;flex-shrink:0}
 body>header .brand .brand-symbol img{width:88px;height:88px;left:-26.5px;top:-23.5px}
 body>header .brand b{font-size:22px;letter-spacing:2.5px;line-height:1.1}
 body>header .brand small{display:none}
 body>header #identity{flex:0 0 auto;max-width:none;margin:0;gap:9px;flex-wrap:nowrap;justify-content:flex-end}
 body>header #required-action-badge{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:10px;border-radius:12px;border:1px solid #486672;background:#1a3543;color:#e8f2f6;flex-shrink:0}
 #required-action-badge svg{width:23px;height:23px;display:block}
 .berco-bell-count{position:absolute;top:-5px;right:-4px;min-width:18px;height:18px;line-height:18px;padding:0 4px;border-radius:9px;background:#ef6077;color:#fff;font-size:10px;font-weight:750;border:1px solid #10232f}
 #berco-mobile-account{position:relative;flex-shrink:0}
 #berco-mobile-account>summary{list-style:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;border:1px solid #86792e;border-radius:50%;background:#26392f;cursor:pointer;padding:0;color:#f2da43}
 #berco-mobile-account>summary::-webkit-details-marker{display:none}
 #berco-mobile-account[open]>summary{border-color:#f2da43;box-shadow:0 0 0 3px #f2da4320}
 .berco-account-avatar{font-size:14px;font-weight:750;letter-spacing:.5px}
 .berco-account-content{position:absolute;right:0;top:calc(100% + 12px);width:min(285px,calc(100vw - 28px));padding:10px;background:#18313e;color:#edf5f8;border:1px solid #607e8d;border-radius:14px;box-shadow:0 14px 45px #0008;z-index:110}
 .berco-account-content>span{display:block;padding:10px 10px 13px;border-bottom:1px solid #496575;margin-bottom:8px;font-size:16px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
 body>header .berco-account-content small{font-size:12px;color:#b6cbd7;font-weight:400;margin-top:3px}
 body>header #identity .berco-account-content button{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:11px 10px;margin:3px 0;border:0;border-radius:8px;background:transparent;color:#eaf3f8;text-align:left;font-size:14px}
 body>header #identity .berco-account-content button:hover{background:#274755}
 body>header #identity .berco-account-content #logout{color:#ffbec7}
 .berco-account-icon{display:block;width:21px;height:21px;flex-shrink:0}
 .berco-preview-chip{display:inline-block;font-size:10px;font-weight:750;letter-spacing:.3px;padding:3px 5px;background:#584629;color:#ffdf92;border-radius:4px;margin-left:2px}
 body>header #nav{grid-area:unset}
 body.berco-phone-menu-open>header #nav{z-index:1001}
 #notification-popout{top:74px;right:12px;max-height:calc(100dvh - 170px)!important;bottom:auto}
 .notification-popout-header{padding:14px}
 body.berco-phone-menu-open>header{z-index:1001}
 #berco-mobile-account summary:focus-visible{outline:2px solid #f2da43;outline-offset:3px}
}
@media(max-width:359px){body>header{gap:8px;padding-inline:10px}body>header .brand b{font-size:19px;letter-spacing:2px}body>header #identity{gap:7px}}

@media(max-width:760px){html{scrollbar-gutter:stable}}


/* operator_ui.css */
body>header .brand .brand-symbol{width:46px!important;height:46px!important;overflow:visible!important;flex-shrink:0}

body>header .brand .brand-symbol img{position:static!important;width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important;inset:auto!important}

.time-punch-actions .operator-finish{border-color:#e6ce45;color:#fff2a0;background:#263a41}

.time-punch-actions .meal-due{outline:2px solid #efaa59;outline-offset:2px}

.operator-install-notice,.operator-mfa-help{background:#203b49;color:#edf5fa;border:1px solid #718d99;border-radius:12px;padding:18px;margin:0 0 18px}

.operator-install-notice{display:flex;align-items:center;justify-content:space-between;gap:16px}

.operator-install-notice p{margin:5px 0 0;color:#c5dce7}

.operator-mfa-help li{margin:10px 0;line-height:1.6}

.operator-shift-details p{margin:10px 0}

@media(max-width:760px){.operator-install-notice{align-items:stretch;flex-direction:column}.operator-install-notice .actions{flex-wrap:wrap}.time-punch-actions{display:flex;gap:10px;flex-wrap:wrap}.time-punch-actions button{flex:1 1 135px;min-height:48px}}

@media(min-width:761px){

 body.berco-phone-active>header{display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;position:sticky;top:0;z-index:30;min-height:70px;padding:12px 24px}

 body.berco-phone-active>header #nav{display:none}

 body.berco-phone-active>header .brand{display:flex;align-items:center;min-width:0;gap:12px}

 body.berco-phone-active #identity{display:flex;align-items:center;gap:14px;flex-wrap:nowrap}

 body.berco-phone-active .berco-phone-nav{display:flex;position:sticky;top:70px;z-index:24;gap:8px;padding:8px 24px;background:#10232f;border-bottom:1px solid #506a76}

 .berco-phone-nav button{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 18px;border:1px solid transparent;background:transparent;color:#d5e7ed;border-radius:9px}

 .berco-phone-nav .berco-nav-icon{width:22px;height:22px}

 .berco-phone-nav button[aria-current=page],.berco-phone-nav button[aria-expanded=true]{background:#304337;border-color:#c4ae32;color:#f7df43}

 body.berco-phone-menu-open>header #nav{display:grid;position:fixed;top:126px;right:24px;width:400px;max-height:calc(100dvh - 150px);overflow:auto;grid-template-columns:1fr 1fr;gap:8px;padding:14px;background:#18313e;border:1px solid #6c8996;border-radius:12px;box-shadow:0 15px 50px #0008;z-index:1001}

 body.berco-phone-menu-open .berco-phone-menu-close{display:block;grid-column:1/-1}

 body.berco-phone-menu-open #nav .berco-menu-item{display:flex;align-items:center;gap:8px;min-height:54px;text-align:left;white-space:normal}

 body.berco-phone-menu-open #nav .berco-nav-icon{display:block;width:21px;height:21px}

 #berco-mobile-account{position:relative}

 #berco-mobile-account>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:44px;height:44px;border:1px solid #ae9e3f;border-radius:50%;background:#2a3d32;color:#f1d943;cursor:pointer}

 #berco-mobile-account>summary::-webkit-details-marker{display:none}

 .berco-account-content{position:absolute;right:0;top:calc(100% + 12px);width:290px;padding:12px;background:#18313e;color:#edf5fa;border:1px solid #6c8996;border-radius:12px;box-shadow:0 15px 45px #0008;z-index:110}

 .berco-account-content>span{display:block;padding:10px;border-bottom:1px solid #536e7c;margin-bottom:8px}

 .berco-account-content button{display:flex!important;align-items:center;gap:10px;width:100%;min-height:44px;text-align:left;margin-top:6px}

 .berco-account-icon{display:block;width:21px;height:21px;flex-shrink:0}

 #required-action-badge{display:flex;align-items:center;justify-content:center;position:relative;width:44px;height:44px;padding:10px!important}

 #required-action-badge svg{width:23px;height:23px}

 .berco-bell-count{position:absolute;top:-5px;right:-4px;background:#df4b65;color:#fff;border-radius:9px;min-width:18px;padding:2px 4px;font-size:11px}

}



.berco-phone-nav button[hidden]{display:none!important}

@media(min-width:761px){.berco-phone-nav{width:100%;box-sizing:border-box;flex-wrap:nowrap;overflow:hidden}.berco-phone-nav button{flex:0 0 auto;white-space:nowrap}body.berco-phone-menu-open #nav button[data-desktop-inline]{display:none!important}}



.operator-ticket-tools{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.operator-workday-warning{flex-basis:100%;background:#423620;color:#ffe1a1;border-left:4px solid #e7ae44;padding:12px}.operator-admin-label{color:#bedaf0;background:#1e3c50;border:1px solid #668499;border-radius:8px;padding:10px;font-weight:700;font-size:.85rem;letter-spacing:.05em}#operator-jsa-edit .jsa-step{background:#203b49;color:#edf5fa}


/* Desktop: title, navigation and account share a single compact row. */
@media(min-width:761px){
 body.berco-phone-active>header{height:64px;min-height:64px;box-sizing:border-box;padding:8px 16px;gap:14px;overflow:visible}
 body.berco-phone-active>header .brand{flex:0 0 auto;max-width:none;gap:8px}
 body.berco-phone-active>header .brand small{display:none!important}
 body.berco-phone-active>header .brand .brand-symbol{display:flex!important;width:42px!important;height:42px!important;align-items:center}
 body.berco-phone-active>header .brand img{display:block!important}
 body.berco-phone-active>header .brand b{display:block;font-size:21px;line-height:1;letter-spacing:2px;color:#fff}
 body.berco-phone-active>header>.berco-phone-nav{position:static;top:auto;flex:1 1 0;min-width:0;width:auto;max-width:none;margin:0;padding:0;border:0;gap:3px;align-items:center;background:transparent;overflow:hidden}
 body.berco-phone-active>header>.berco-phone-nav button{min-height:40px;padding:8px 10px;gap:6px;font-size:13px}
 body.berco-phone-active>header>.berco-phone-nav .berco-nav-icon{width:18px;height:18px}
 body.berco-phone-active>header #identity{flex:0 0 auto;gap:8px;margin-left:0}
 body.berco-phone-menu-open>header #nav{top:70px;right:16px;max-height:calc(100dvh - 86px);width:min(400px,calc(100vw - 32px));box-sizing:border-box}
}

/* Explicit paired colors keep the comparison legible inside every popup. */
body .berco-changes{background:#142c38;color:#f4f7fa;border:1px solid #6c8b9b;border-radius:10px;padding:14px;margin:16px 0;min-width:0;}
body .berco-changes h3{color:#fff!important;font-size:1rem;margin:0 0 12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
body .berco-changes .berco-change-count{color:#f3d441!important;font-size:.8rem;font-weight:600;}
body .berco-change-head,body .berco-change-row{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start;}
body .berco-change-head{font-size:.8rem;color:#d5e2e9;padding:0 10px 8px;}
body .berco-change-row{padding:12px 10px;border-top:1px solid #526e7e;}
body .berco-change-row>strong{color:#f4f7fa!important;overflow-wrap:anywhere;font-size:.9rem;}
body .berco-change-row :is(span,small){display:block;color:inherit!important;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;}
body .berco-change-row small{font-size:.75rem;font-weight:700;margin-bottom:4px;}
body .berco-change-from{background:#263f4c;color:#dfebf1;padding:8px 10px;border-radius:6px;min-width:0;}
body .berco-change-to{background:#173f39;color:#e9fff7;padding:8px 10px;border-left:3px solid #72d9b7;border-radius:6px;min-width:0;}
body .berco-change-empty{color:#cfdee7!important;margin:0;}
@media(max-width:640px){body .berco-change-head{display:none;}body .berco-change-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:12px 0;}body .berco-change-row>strong{grid-column:1/-1;}body .berco-changes{padding:12px;}body .berco-change-row small{display:block;}}

/* training_enhanced.css */
.td-focus{overflow:hidden!important}.td-player{position:fixed;inset:0;z-index:100;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;background:#f2f6f8;color:#173d50;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-weight:400;box-sizing:border-box;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);height:100dvh;overflow:hidden}
.td-player *{box-sizing:border-box}.td-player button,.td-player select,.td-player input,.td-player textarea{font:inherit;color:#173d50;background:#fff;border:1px solid #a6bdc9;border-radius:8px}.td-player button{min-height:42px;padding:7px 13px;white-space:normal;cursor:pointer}.td-player button:disabled{opacity:.55;cursor:default}.td-player button.primary{background:#e8b83d;color:#173447;border-color:#c79820;font-weight:650}.td-player button:focus-visible,.td-player select:focus-visible,.td-player input:focus-visible,.td-player textarea:focus-visible{outline:3px solid #216f9d;outline-offset:2px}.td-player [hidden]{display:none!important}
.td-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:14px max(18px,calc((100vw - 1100px)/2));background:#173d50;color:#fff}.td-header h1{font-size:clamp(17px,2vw,24px);line-height:1.22;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#fff}.td-header .td-kicker{font-size:12px;color:#e8c35e;letter-spacing:.04em}.td-header button{background:#244e64;color:#fff;border-color:#638496}.td-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px max(18px,calc((100vw - 1100px)/2));border-bottom:1px solid #cfdee5;font-size:14px}.td-lesson-label{display:flex;align-items:center;gap:8px;min-width:0}.td-lesson-label select{width:min(430px,48vw);max-width:100%;min-height:38px;padding:5px}.td-toolbar #td-progress{white-space:nowrap;font-size:13px}
.td-stage{position:relative;min-width:0;min-height:0;width:min(1100px,100%);margin:auto;align-self:stretch;height:100%;padding:12px 18px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.td-card{height:auto;min-height:0;width:100%;max-width:980px;margin:0 auto;padding:clamp(16px,3vw,32px);border:1px solid #d3e1e7;border-radius:16px;background:#fff;box-shadow:0 6px 22px #1435490b;color:#173d50;font-size:clamp(17px,1.7vw,21px);line-height:1.55}.td-card h2{font-size:clamp(22px,2.3vw,29px);line-height:1.2;margin:0 0 18px;color:#173d50}.td-card p{margin:0 0 14px}.td-card p:last-child{margin-bottom:0}.td-probe{position:absolute;top:12px;left:18px;right:18px;visibility:hidden;pointer-events:none}.td-probe .td-card{box-shadow:none}.td-stage.oq-reading .td-card{background:#fff8df;border-color:#c79929}
.td-visual{height:100%;display:flex;flex-direction:column;gap:10px;padding:16px}.td-visual h2{margin:0}.td-visual img{width:100%;flex:1;min-height:0;object-fit:contain}.td-visual .td-picture-caption{font-size:13px;margin:0;line-height:1.35}.td-picture-points{display:flex;gap:8px;justify-content:center}.td-picture-points button{min-width:42px;background:#e5f0f5}.td-audio{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:8px 18px;background:#e6eff3;border-top:1px solid #ccdce4;font-size:14px}.td-audio #oq-audio-status{font-size:12px;color:#36596c;flex-basis:100%;text-align:center}.td-audio button{min-height:36px;padding:5px 12px}.td-footer{width:100%;background:#fff;border-top:1px solid #cadbe3;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px max(18px,calc((100vw - 1100px)/2))}.td-page-info{min-width:0;display:flex;flex-direction:column;gap:3px;font-size:14px;font-weight:600}.td-page-info small{font-size:11px;font-weight:400;color:#456879}.td-navigation{display:flex;gap:8px}.td-navigation button{min-width:90px}.td-test .learning-question{border:0;padding:0;margin:0;font-size:17px}.td-test legend{margin-bottom:15px;font-weight:600}.td-test .learning-question label{display:flex;align-items:flex-start;gap:12px;background:#edf4f7;border:1px solid #d2e0e7;border-radius:10px;padding:12px;margin:8px 0;line-height:1.4;color:#173d50;cursor:pointer}.td-test input[type=radio]{flex:0 0 auto;appearance:auto;width:20px;height:20px;margin:2px 0;accent-color:#21688a}.td-card label{color:#173d50}.td-card textarea{display:block;width:100%;margin:8px 0 14px;resize:vertical;font-size:16px;padding:10px;min-height:75px}.td-check{display:flex;gap:10px;font-size:16px;line-height:1.4}.td-check input{flex:0 0 auto;appearance:auto;width:20px;height:20px}.td-card [role=alert]{color:#a73023;font-size:15px;margin:8px 0}.oq-catalog-note{color:inherit;opacity:.85}
@media(max-width:650px){.td-header{padding:8px 10px;gap:9px}.td-header #learning-back{font-size:13px;padding:5px 8px;min-height:38px}.td-header #td-info{min-height:36px;min-width:36px;padding:4px}.td-header h1{font-size:17px}.td-header .td-kicker{font-size:10px}.td-toolbar{padding:6px 10px;gap:8px}.td-lesson-label{font-size:0}.td-lesson-label select{font-size:13px;width:60vw;min-height:34px}.td-toolbar #td-progress{font-size:11px}.td-stage{padding:8px 10px;scrollbar-gutter:auto}.td-probe{top:8px;left:10px;right:10px}.td-card{font-size:17px;padding:16px;border-radius:12px;line-height:1.5}.td-card h2{font-size:22px;margin-bottom:12px}.td-card p{margin-bottom:10px}.td-audio{padding:6px 8px;gap:5px}.td-audio button{font-size:12px;min-height:34px;padding:5px 9px}.td-audio #oq-audio-status{font-size:10px}.td-footer{padding:8px 10px;display:grid;gap:6px}.td-page-info{flex-direction:row;justify-content:space-between;gap:6px;font-size:12px}.td-page-info small{font-size:10px;max-width:48%;text-align:right}.td-navigation{justify-content:space-between}.td-navigation button{flex:1;min-width:0;min-height:42px;font-size:14px}.td-test .learning-question{font-size:15px}.td-test legend{margin-bottom:8px}.td-test .learning-question label{padding:9px;gap:8px;margin:6px 0;line-height:1.35}.td-visual{gap:6px;padding:12px}.td-visual .td-picture-caption{font-size:11px}.td-card textarea{min-height:60px;margin:6px 0 10px}.td-check{font-size:14px}.td-picture-points button{min-height:36px;min-width:36px}}
@media(max-height:500px){.td-header{padding-top:4px;padding-bottom:4px}.td-header h1{font-size:16px;-webkit-line-clamp:1}.td-header .td-kicker{display:none}.td-header button{min-height:32px;font-size:12px}.td-toolbar{padding-top:3px;padding-bottom:3px}.td-lesson-label select{min-height:30px}.td-audio{padding:3px 8px;gap:4px}.td-audio #oq-audio-status{flex-basis:auto;max-width:35%;text-align:left}.td-audio button{min-height:30px;font-size:12px}.td-footer{padding-top:5px;padding-bottom:5px;display:flex}.td-navigation button{min-height:34px}.td-page-info small{display:none}.td-card{padding:10px 16px;font-size:16px;line-height:1.4}.td-card h2{font-size:20px;margin-bottom:8px}.td-card p{margin-bottom:6px}.td-stage{padding-top:5px;padding-bottom:5px}.td-picture-caption{display:none}.td-test .learning-question label{padding:5px;margin:4px 0}.td-test legend{margin-bottom:5px}}
@media(prefers-reduced-motion:reduce){.td-player *{scroll-behavior:auto!important}}
.td-practice button{display:block;width:100%;text-align:left;margin:8px 0;font-size:16px;background:#edf4f7;padding:10px}
.td-card h2:focus{outline:none}.td-visual button{font-weight:650}
.td-finish textarea{resize:none;min-height:48px;max-height:70px}.td-finish form{margin:0}.td-finish [role=alert]:empty{display:none}
.td-test .td-option-select label{font-size:14px;padding:5px;margin:4px 0;line-height:1.3}.td-test [role=alert]:empty{display:none}
@media(max-height:500px){.td-finish label{font-size:14px;line-height:1.25}.td-finish textarea{height:48px;min-height:48px;margin:5px 0 0}.td-finish .td-check{font-size:14px}}

/* One complete question; all answer choices remain on the same page. */
.td-quiz .td-toolbar{display:none}.td-quiz{grid-template-rows:auto minmax(0,1fr) auto auto}.td-quiz .td-test{padding:16px 20px;max-width:1050px}.td-quiz .td-test h2{font-size:20px;margin:0 0 10px}.td-quiz .learning-question{font-size:16px;line-height:1.4}.td-quiz .learning-question legend{color:#112e3c;font-size:18px;margin-bottom:10px}.td-quiz .learning-question label{color:#102f40;background:#fff;border:2px solid #527a90;padding:10px;gap:10px;margin:7px 0;font-weight:500;min-height:46px}.td-quiz .learning-question label:has(input:checked){background:#164865;color:#fff;border-color:#09283a;box-shadow:0 0 0 2px #e8b83d}.td-answer-letter{font-weight:750;flex:0 0 auto}.td-quiz input[type=radio]{accent-color:#1e648b}.td-quiz .learning-question label:has(input:focus-visible){outline:3px solid #c18a00;outline-offset:3px}
@media(max-width:650px){.td-quiz .td-test{padding:12px}.td-quiz .learning-question legend{font-size:17px}.td-quiz .learning-question label{font-size:16px;padding:9px;line-height:1.35}}
@media(min-width:700px) and (max-height:550px){.td-quiz .learning-question{display:grid;grid-template-columns:1fr 1fr;gap:7px}.td-quiz .learning-question legend{grid-column:1/-1;float:left;width:100%}.td-quiz .learning-question label{margin:0;font-size:15px;padding:7px}.td-quiz .td-audio #oq-audio-status{display:none}}

@media(max-width:650px){.td-quiz .td-header{padding:5px 8px}.td-quiz .td-header h1{font-size:15px;-webkit-line-clamp:1}.td-quiz .td-header .td-kicker{display:none}.td-quiz .td-test h2{display:none}.td-quiz .td-test{padding:8px}.td-quiz .td-audio #oq-audio-status{display:none}.td-quiz .td-stage{padding:6px 8px}.td-quiz .learning-question label{padding:6px;margin:5px 0;line-height:1.3}.td-quiz .td-footer .td-page-info small{display:none}.td-quiz .td-footer{gap:3px;padding:5px 8px}}

@media(min-width:700px) and (max-height:550px){.td-quiz .td-test h2{display:none}.td-quiz .td-test{padding:8px}.td-quiz .td-stage{padding:4px 8px}.td-quiz .td-footer .td-page-info small{display:none}.td-quiz .learning-question legend{font-size:16px;line-height:1.25;margin-bottom:6px}.td-quiz .learning-question label{font-size:15px;line-height:1.25;min-height:42px}}

@media(max-height:550px){.td-quiz .td-header{height:46px;min-height:0;padding:4px 8px}.td-quiz .td-header h1{font-size:15px;line-height:1.2;margin:0;-webkit-line-clamp:1}.td-quiz .td-header .td-kicker{display:none}.td-quiz .td-header button{min-height:32px;padding:4px 8px}.td-quiz .td-audio{min-height:0}.td-quiz .td-footer{min-height:0}}

.td-quiz .td-header{height:48px;padding:4px 8px}.td-quiz .td-header h1{font-size:15px;line-height:1.2;margin:0;-webkit-line-clamp:1}.td-quiz .td-header .td-kicker{display:none}.td-quiz .td-test legend{font-weight:650}

.td-quiz .td-header{min-height:0;height:48px}.td-quiz .td-header button{min-height:34px}.td-quiz .td-footer{display:flex;flex-wrap:wrap}.td-quiz .td-navigation button{white-space:nowrap}.td-quiz .td-page-info small{display:none}
@media(max-width:650px){.td-quiz .td-page-info{flex-basis:100%}.td-quiz .td-navigation{width:100%}.td-quiz .td-navigation button{flex:1;min-width:0;min-height:40px;padding:4px 8px;font-size:14px}.td-quiz .td-footer{gap:3px;padding:4px 8px}}

.td-quiz .learning-question legend{padding:0;line-height:1.25}.td-quiz .learning-question label{font-weight:400}
@media(max-width:650px){.td-quiz .learning-question legend{font-size:16px;margin-bottom:6px}.td-quiz .learning-question label{line-height:1.25;gap:8px}}

.td-quiz .td-page-info{flex-direction:row;align-items:center;justify-content:space-between}.td-quiz #td-audio-settings{font-size:12px;min-height:28px;padding:3px 8px}.td-quiz .td-navigation{gap:5px}.td-quiz #oq-listen{font-size:13px}

.td-quiz .td-header{grid-template-columns:auto minmax(0,1fr) auto auto;gap:6px}.td-quiz #td-page-count{display:block;color:#fff;font-size:12px;margin-top:2px}.td-quiz #td-audio-settings{color:#fff;background:#244e64;border-color:#638496;min-height:34px}.td-quiz .td-footer{justify-content:flex-end}.td-quiz .td-navigation{width:auto}
@media(max-width:650px){.td-quiz .td-navigation{width:100%}.td-quiz .td-header #learning-back{font-size:12px;padding:4px 6px}}

@media(max-width:360px){.td-quiz .learning-question label{font-size:15px;line-height:1.25;padding:5px;min-height:44px}.td-quiz .learning-question legend{font-size:16px}.td-quiz .td-test{padding:6px}}

/* Keep lesson paragraphs readable over the global dark-theme paragraph color. */
.td-player .td-card p{color:#173d50}.td-player .td-card .td-picture-caption{color:#36596c}

/* Professional study workspace: reference remains visible on every lesson page. */
.learning-programs{display:flex;gap:10px;margin:16px 0 20px}.learning-programs button{flex:1;text-align:left;padding:14px 18px;border:1px solid #9eb8c6;border-radius:10px;background:#edf4f7;color:#173d50;font-weight:650;font-size:16px}.learning-programs small{display:block;font-size:12px;font-weight:400;margin-top:4px}.learning-programs [aria-current=page]{background:#173d50;color:#fff;border-bottom:4px solid #e8b83d}.learning-header .actions{flex-wrap:wrap}.learning-header p{max-width:720px}
.td-study-grid{min-width:0;min-height:0;display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.35fr);width:min(1440px,100%);margin:0 auto;overflow:hidden}.td-reference{display:grid;grid-template-rows:auto minmax(0,1fr) minmax(0,.85fr);min-height:0;min-width:0;padding:12px 6px 12px 18px;gap:8px;overflow:hidden}.td-reference-title{display:flex;justify-content:space-between;gap:8px;font-size:11px;font-weight:700;letter-spacing:.04em}.td-reference-title small{font-size:10px;letter-spacing:0;font-weight:400}.td-player button.td-reference-figure,.td-player button.td-map-figure{display:flex;flex-direction:column;min-height:0;padding:7px;background:#fff;border:1px solid #ccdce4;border-radius:12px;overflow:hidden;text-align:left;white-space:normal;gap:4px}.td-reference img{min-height:0;height:100%;width:100%;object-fit:contain;flex:1}.td-reference-figure span,.td-map-figure span{font-size:11px;font-weight:600;line-height:1.2;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;flex-shrink:0}.td-map-figure{border-left:3px solid #216f9d!important}.td-stage{width:100%;padding:12px 18px;height:100%;margin:0;scrollbar-gutter:auto}.td-card{font-size:15.5px;line-height:1.46;padding:20px;max-width:none;border-radius:12px}.td-card h2{font-size:21px;margin-bottom:12px;line-height:1.22}.td-card p{margin-bottom:10px}.td-header{padding:10px 18px}.td-header h1{font-size:21px}.td-toolbar{padding:6px 18px}.td-audio{padding:6px 12px}.td-footer{padding:8px 18px}.td-zoom-image{display:block;width:100%;height:min(55dvh,540px);object-fit:contain;background:#f3f7fa;margin:10px 0}.td-test-grid{display:block;width:min(1100px,100%)}.td-quiz .td-card{font-size:16px}
@media(max-width:650px){.learning-programs{gap:5px}.learning-programs button{font-size:13px;padding:10px 8px}.learning-programs small{font-size:10px}.td-study-grid{grid-template-columns:1fr;grid-template-rows:126px minmax(0,1fr)}.td-reference{padding:5px 10px 0;gap:5px;grid-template-columns:1fr 1.15fr;grid-template-rows:14px minmax(0,1fr)}.td-reference-title{grid-column:1/-1;font-size:9px}.td-reference-title small{font-size:9px}.td-player button.td-reference-figure,.td-player button.td-map-figure{padding:3px;border-radius:7px}.td-reference-figure span,.td-map-figure span{font-size:9px}.td-stage{padding:6px 10px}.td-card{font-size:14.5px;line-height:1.42;padding:12px}.td-card h2{font-size:18px;margin-bottom:9px}.td-card p{margin-bottom:8px}.td-header{padding:6px 10px}.td-header h1{font-size:15px;-webkit-line-clamp:2}.td-toolbar{padding:4px 10px}.td-footer{padding:5px 10px;gap:4px}.td-audio{padding:4px 7px;gap:4px}.td-audio button{min-height:30px;padding:4px 7px}.td-audio #oq-audio-status{font-size:9px;line-height:1.15}.td-page-info small{font-size:9px}.td-test-grid{display:block}.td-quiz .td-card{font-size:16px}}
@media(max-height:550px) and (min-width:651px){.td-study-grid{grid-template-columns:minmax(200px,.7fr) minmax(0,1.4fr)}.td-reference{padding:4px 5px 4px 12px;gap:4px;grid-template-rows:14px minmax(0,1fr) minmax(0,.65fr)}.td-card{font-size:14.5px;line-height:1.35;padding:10px 14px}.td-card h2{font-size:18px;margin-bottom:7px}.td-card p{margin-bottom:6px}.td-stage{padding:4px 12px}.td-header{padding:4px 10px}.td-header h1{font-size:15px}.td-footer{padding:4px 10px}.td-reference-title small{display:none}.td-test-grid{display:block}}
@media(max-width:350px){.td-study-grid{grid-template-rows:112px minmax(0,1fr)}.td-header h1{-webkit-line-clamp:1}.td-card{font-size:14px;padding:10px}.td-card h2{font-size:17px}.td-page-info small{display:none}.td-lesson-label select{width:62vw}.td-player .td-audio button{font-size:11px}.td-reference-title small{display:none}}
.td-card h3{font-size:15px;line-height:1.3;margin:12px 0 5px;color:#1b607f}@media(max-width:650px){.td-card h3{font-size:14px;margin:8px 0 4px}}
.td-player{grid-template-columns:minmax(0,1fr)}.td-header,.td-toolbar,.td-audio,.td-footer{min-width:0}.td-audio #oq-audio-status{height:16px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.td-page-info #td-page-count{white-space:nowrap}
@media(max-width:650px){.td-page-info{height:24px;min-height:24px;overflow:hidden}.td-page-info small{line-height:1.2}.td-audio #oq-audio-status{height:12px;line-height:12px}.td-header>div{min-width:0}.td-reference-title{overflow:hidden}}
@media(max-width:350px){.td-page-info{height:20px;min-height:20px}}
@media(max-width:650px){.td-navigation button{height:44px;min-height:44px;padding:4px 8px;font-size:13px;line-height:1.15}.td-closeout .td-study-grid{grid-template-rows:74px minmax(0,1fr)}}

#dialog #policy-document{background:#fff!important;color:#142d3a!important;padding:24px!important;max-height:60vh!important;overflow:auto!important;font-size:16px;line-height:1.6;box-sizing:border-box}
#dialog #policy-document *{color:#142d3a!important}
#dialog #policy-document p{font-size:inherit!important;line-height:1.6!important}
#dialog #policy-document header{position:static!important;display:flex!important;align-items:center;gap:16px;min-height:0!important;height:auto!important;width:auto!important;margin:0 0 18px!important;padding:0 0 14px!important;border:0!important;border-bottom:3px solid #dcc522!important;background:transparent!important;box-shadow:none!important;grid-template-columns:none!important}
#dialog #policy-document header img{width:96px!important;height:96px!important;max-width:96px!important;min-width:0!important;object-fit:contain!important;background:#10232f!important;position:static!important}
#dialog #policy-document header div{min-width:0;flex:1;font-size:14px}

/* Original BPS letterhead documents: all pages, responsive zoom. */
#td-stage:has(.td-policy-original){overflow:auto;display:block}.td-policy-original{padding:12px!important;height:auto!important;max-height:none!important}.td-policy-original .actions{flex-wrap:wrap;margin-bottom:10px}.td-policy-scroll{max-height:58vh;overflow:auto;background:#c7d2d8;border-radius:8px;padding:10px}.td-policy-pages{width:100%;min-width:0;margin:auto}.td-policy-pages figure{margin:0 0 12px}.td-policy-pages img{display:block;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;object-fit:contain;background:#fff}.td-policy-pages figcaption{color:#142d3a;text-align:center;padding:5px}.td-policy-original details p{white-space:pre-wrap;color:#e6f0f4}.td-policy-original details{margin-top:10px}@media(max-width:600px){.td-policy-scroll{padding:4px;max-height:55vh}.td-policy-original{padding:6px!important}}

.td-policy-reader .td-study-grid{display:block;width:min(1060px,100%);height:100%}.td-policy-reader .td-stage{height:100%;width:100%}.td-policy-reader .td-reference{display:none!important}.td-policy-reader .td-card{background:#fff;color:#173d50}.td-policy-reader .caption{color:#36596c}.td-policy-original details p{color:#173d50!important}.td-policy-reader .td-policy-scroll{max-height:calc(100dvh - 310px)}@media(max-width:650px){.td-policy-reader .td-study-grid{display:block}.td-policy-reader .td-policy-scroll{max-height:calc(100dvh - 275px)}}

/* Explicit foreground/background pairs across training and sign-off. */
.td-player{background:#edf3f6!important;color:#123242!important;color-scheme:light}
.td-player .td-card{background:#ffffff!important;color:#123242!important;border:1px solid #829ca9!important}
.td-player .td-card :is(h2,h3,h4,p,small,label,legend,span,summary,strong,li){color:#123242!important}
.td-player :is(.td-toolbar,.td-audio,.td-footer){background:#e4edf2!important;color:#123242!important}
.td-player :is(.td-toolbar,.td-audio,.td-footer) :is(span,small,label){color:#123242!important}
.td-player .td-header{background:#153442!important;color:#fff!important}
.td-player .td-header :is(h1,span,button){color:#fff!important}
.td-player .td-header button{background:#244d60!important;border-color:#88a4b1!important}
.td-player :is(button,select,input,textarea){background:#fff!important;color:#123242!important;border-color:#6b8898!important}
.td-player button.primary{background:#efd126!important;color:#102b39!important;border-color:#9a8304!important;font-weight:700}
.td-player button:disabled{opacity:1!important;background:#e0e7eb!important;color:#536775!important;border-color:#9cafba!important}
.td-player .td-card :is(input,textarea,select){background:#f8fbfd!important;color:#123242!important}
.td-player .td-check{display:flex;align-items:flex-start;gap:10px;padding:14px;background:#e6f0f5!important;border:1px solid #829ca9;border-radius:8px;font-size:16px!important;line-height:1.5!important}
.td-player .td-check input{width:20px;height:20px;flex:0 0 20px;margin:3px 0;accent-color:#174e69}
.td-player .td-card .notice.error{background:#fce9eb!important;color:#8b1829!important}
.td-player .learning-question label:has(input:checked){background:#174d66!important;color:#fff!important}
.td-player .learning-question label:has(input:checked) :is(span,strong){color:#fff!important}
.td-player .td-reference-title,.td-player .td-reference-title small{color:#123242!important}
.td-player :is(.td-reference-figure,.td-map-figure){background:#fff!important;color:#123242!important}
.td-player .td-policy-scroll{background:#d5dfe5!important}.td-policy-pages img{filter:none!important;opacity:1!important}
.learning-programs button{background:#e8f0f4!important;color:#123242!important;border-color:#87a2b1!important}
.learning-programs button :is(small,span){color:inherit!important}
.learning-programs button[aria-current=page]{background:#183e52!important;color:#fff!important;border-bottom:4px solid #edd026!important}
.learning-team-card,.learning-stat,.learning-course-meta{color:#edf4f8}

/* BPS training workspace: navy surfaces, white text and yellow actions. */
.td-player{background:#10232f!important;color:#edf4f8!important;color-scheme:dark}
.td-player .td-card{background:#18323f!important;color:#edf4f8!important;border-color:#55717e!important;box-shadow:0 8px 24px #0003}
.td-player .td-card :is(h2,h3,h4,p,small,label,legend,span,summary,strong,li){color:#edf4f8!important}
.td-player .td-card h2{border-bottom:2px solid #e1c329;padding-bottom:12px}
.td-player :is(.td-toolbar,.td-audio,.td-footer){background:#1e2d3a!important;color:#edf4f8!important;border-color:#55717e}
.td-player :is(.td-toolbar,.td-audio,.td-footer) :is(span,small,label){color:#d1e1eb!important}
.td-player .td-header{background:#10232f!important;border-bottom:3px solid #e1c329}
.td-player .td-header .td-kicker{color:#e1c329!important}
.td-player :is(button,select,input,textarea),.td-player .td-card :is(input,textarea,select){background:#203b49!important;color:#edf4f8!important;border-color:#73909e!important}
.td-player .td-header button{background:#203b49!important;border-color:#73909e!important}
.td-player button.primary{background:#e1c329!important;color:#10232f!important;border-color:#e1c329!important}
.td-player button:disabled{background:#253b47!important;color:#a7bcc8!important;border-color:#55717e!important}
.td-player :is(button,select,input,textarea):focus-visible{outline:3px solid #e1c329;outline-offset:3px}
.td-player .td-check{background:#203b49!important;border-color:#73909e!important}
.td-player .td-check input,.td-player input[type=radio]{accent-color:#e1c329}
.td-player .learning-question label{background:#203b49!important;color:#edf4f8!important;border-color:#73909e!important}
.td-player .learning-question label:has(input:checked){background:#294a5a!important;color:#fff!important;border-color:#e1c329!important;box-shadow:0 0 0 1px #e1c329}
.td-player .td-reference-title,.td-player .td-reference-title small{color:#d1e1eb!important}
.td-player :is(.td-reference-figure,.td-map-figure){background:#fff!important;color:#123242!important;border-color:#73909e!important}
.td-player .td-policy-scroll{background:#c7d2d8!important;color:#123242!important}
.td-player .td-policy-pages figcaption{color:#123242!important}
.td-player .td-policy-original details p{color:#edf4f8!important}
.learning-programs button{background:#18323f!important;color:#edf4f8!important;border-color:#55717e!important}
.learning-programs button[aria-current=page]{background:#203b49!important;color:#fff!important;border-color:#73909e!important;border-bottom:4px solid #e1c329!important}
.learning-programs button:focus-visible{outline:3px solid #e1c329;outline-offset:3px}

/* analyzer_tracking.css */
.analyzer-fleet-tools{position:relative;align-self:flex-start;min-width:170px}.analyzer-fleet-tools summary{cursor:pointer;padding:10px 14px;border:1px solid var(--line,#46606b);border-radius:7px}.analyzer-fleet-tools button{margin-top:8px;width:100%}.analyzer-track-grid{display:grid;grid-template-columns:minmax(230px,1fr) minmax(330px,2fr);gap:20px}.analyzer-device-card{display:flex;flex-direction:column;text-align:left;gap:8px;width:100%;margin:10px 0;padding:18px}.analyzer-device-card span{font-size:.9rem}.analyzer-live-value{display:flex;align-items:baseline;gap:12px;margin:20px 0}.analyzer-live-value strong{font-size:3.4rem;line-height:1.1;font-variant-numeric:tabular-nums}#analyzer-live-trace{width:100%;height:110px;color:#76c4cf;border-bottom:1px solid #46606b}.analyzer-guided{margin-top:20px}.analyzer-steps{display:flex;flex-wrap:wrap;gap:28px;padding-left:22px;color:#b5c9cf}.analyzer-guided form{display:grid;gap:14px;max-width:760px}.analyzer-guided label{display:grid;gap:6px}.analyzer-guided label.check{display:flex;align-items:flex-start;gap:10px}.analyzer-guided label.check input{width:auto;margin-top:4px}.analyzer-run{padding:15px 0;border-bottom:1px solid #46606b}.analyzer-guided table{width:100%;margin:20px 0;font-variant-numeric:tabular-nums}.analyzer-guided th,.analyzer-guided td{text-align:left;padding:10px 8px}@media(max-width:700px){.analyzer-track-grid{grid-template-columns:1fr}.analyzer-steps{gap:16px}.analyzer-guided{overflow-x:auto}.analyzer-fleet-tools{width:100%}}

#analyzer-live-trace,#analyzer-history-trace{height:auto;min-height:200px;background:#fff;border:1px solid #d9e3e9;border-radius:8px;width:100%}.analyzer-trend-header{display:flex;justify-content:space-between;margin:14px 0;font-size:.9rem}.analyzer-live-value strong{font-size:3rem}.analyzer-connected-card dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}.analyzer-connected-card dt{color:var(--muted)}.analyzer-device-history{margin-top:20px}.analyzer-device-history label{display:grid;gap:5px}.analyzer-device-history table{width:100%;font-variant-numeric:tabular-nums}.analyzer-device-history td,.analyzer-device-history th{padding:8px;text-align:left;border-bottom:1px solid var(--line)}#analyzer-history-rows{max-height:380px;overflow:auto}
.analyzer-icon{width:20px;height:20px;vertical-align:middle;margin-right:7px;flex-shrink:0}#dialog form[id^=analyzer-]{display:grid;gap:12px}#dialog form[id^=analyzer-] label{display:grid;gap:5px}#dialog form[id^=analyzer-] label.check{display:flex;gap:8px}#dialog form[id^=analyzer-] input[type=checkbox]{width:auto}.analyzer-live-value strong{overflow-wrap:anywhere}

.analyzer-track-grid{align-items:start}#analyzer-live-trace{height:240px}.analyzer-live-value strong.is-disconnected{font-size:1.7rem}

.analyzer-chart{background:#102633;border:1px solid #4a6575;position:relative;overflow:hidden}.analyzer-chart #analyzer-live-trace,.analyzer-chart #analyzer-history-trace{background:transparent;border:0;border-radius:0;min-width:0}.analyzer-chart .plot-background{fill:#102633;stroke:#506b7c}.analyzer-chart .trend-grid{stroke:#345463}.analyzer-chart .axis-text{fill:#c5d6e0;font:12px system-ui}.analyzer-chart svg{cursor:crosshair}.analyzer-chart .analyzer-xtrace{color:#f5fafc}.analyzer-chart .swatch{cursor:default}

.analyzer-device-history{padding:16px;margin-top:16px}.analyzer-device-history h2{font-size:1.15rem;margin:0 0 8px}.analyzer-device-history>p{margin:6px 0;font-size:12px}.analyzer-device-history .actions{gap:8px;align-items:end}.analyzer-device-history label{font-size:11px}.analyzer-device-history input[type=date]{width:155px;padding:7px}.analyzer-device-history button{padding:8px 12px;font-size:12px}.analyzer-chart #analyzer-history-trace{height:180px;min-height:0}#analyzer-history-rows{max-height:none;overflow:visible}.analyzer-history-table{margin-top:8px;font-size:12px}.analyzer-history-table summary{cursor:pointer;padding:8px;border:1px solid var(--line);border-radius:6px}.analyzer-history-table-scroll{max-height:170px;overflow:auto}.analyzer-device-history td,.analyzer-device-history th{padding:5px 8px}.analyzer-device-history .analyzer-chart{margin-top:8px}

/* Guided analyzer calibration */
#analyzer-guided-progress {--bps-navy:#1b2a36;--bps-gold:#edca14;--bps-ink:#223442;margin:1rem 0;padding:1rem;border:1px solid #c9d3da;border-top:4px solid var(--bps-gold);border-radius:.65rem;background:#f4f6f7;color:var(--bps-ink)}
#analyzer-guided-progress p {margin:.55rem 0 .2rem;color:var(--bps-ink)}
#analyzer-guided-step {color:var(--bps-navy)}
.analyzer-progress-track {display:block;width:100%;height:.55rem;accent-color:#9a7500}
#analyzer-guided-flow,#analyzer-capture-samples ol {display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:1rem;margin:0;padding:0;list-style:none}
#analyzer-guided-flow li {position:relative;display:flex;align-items:center;gap:.4rem;padding:.52rem .42rem;border:1px solid #c9d3da;border-radius:.42rem;background:#fff;color:var(--bps-navy);font-size:.8rem;line-height:1.25;min-width:0}
#analyzer-guided-flow li:not(:last-child)::after {content:'→';position:absolute;left:100%;width:1rem;text-align:center;color:#536b7b;font-weight:700}
#analyzer-guided-flow .analyzer-flow-index {display:grid;place-items:center;flex:none;min-width:1.35rem;height:1.35rem;padding:0 .15rem;border-radius:50%;background:#e9eef1;font-weight:700}
#analyzer-guided-flow li[data-complete=true] {background:var(--bps-navy);border-color:var(--bps-navy);color:#fff}
#analyzer-guided-flow li[data-complete=true] .analyzer-flow-index {background:#3b5163;color:#fff}
#analyzer-guided-flow li[aria-current=step] {background:var(--bps-gold);border-color:#a58000;font-weight:700;color:#172733}
#analyzer-guided-flow li[aria-current=step] .analyzer-flow-index {background:var(--bps-navy);color:#fff}
#analyzer-capture-samples {margin-top:.85rem;padding:.65rem .7rem;background:#fff;border:1px solid #c9d3da;border-radius:.45rem;color:var(--bps-navy)}
#analyzer-capture-samples[hidden] {display:none}
#analyzer-capture-samples ol {gap:.35rem;margin-top:.48rem}
#analyzer-capture-samples li {padding:.3rem .18rem;text-align:center;border-radius:.3rem;background:#e9eef1;font-size:.75rem;line-height:1.2}
#analyzer-capture-samples li[aria-current=step] {background:var(--bps-gold);font-weight:700;color:#172733}
#analyzer-capture-samples li[data-complete=true] {background:var(--bps-navy);color:#fff}
@media(max-width:850px){#analyzer-guided-flow {grid-auto-flow:row;grid-auto-columns:auto;gap:.65rem}#analyzer-guided-flow li:not(:last-child)::after {content:'↓';top:100%;left:1.2rem;line-height:.65rem}#analyzer-guided-flow li {font-size:.84rem}}

/* system_ui.css */
.system-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.system-summary article{background:#203b49;border:1px solid #55717e;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:7px}.system-summary strong{font-size:clamp(18px,2vw,27px);color:#fff}.system-summary small{color:#d1e1eb}.system-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.system-chart{min-width:0;padding:12px;border:1px solid #55717e;border-radius:10px;background:#18323f;margin:12px 0}.system-chart h3{display:flex;justify-content:space-between;gap:12px;font-size:16px;color:#edf4f8}.system-chart h3 small{color:#e1c329}.system-chart svg{width:100%;display:block}.system-chart svg text{fill:#d1e1eb;font:12px system-ui}.system-chart-grid .system-chart{margin:0}.system-budget-form,#system-budget-form{display:flex;flex-wrap:wrap;gap:14px;align-items:end}.carrier-settings>details{margin:14px 0}.system-settings-fold{margin:18px 0}#system-health,#system-budget{margin:16px 0}#system-health .panel-title label{min-width:110px}.system-page-title{margin:8px 0 18px}@media(max-width:650px){.system-summary{grid-template-columns:1fr 1fr;gap:8px}.system-summary article{padding:10px}.system-chart-grid{grid-template-columns:1fr}.system-chart h3{font-size:14px}.system-summary strong{font-size:18px}#system-budget-form{display:grid;grid-template-columns:1fr}}

.fountain-map-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(230px,.8fr);gap:16px}.fountain-map-frame{width:100%;height:520px;border:1px solid #55717e;border-radius:12px}.fountain-reference{display:block;width:100%;max-height:550px;object-fit:contain;background:white;border-radius:8px;margin:10px 0}@media(max-width:700px){.fountain-map-grid{grid-template-columns:1fr}.fountain-map-frame{height:420px}}

@media(max-width:700px){#main .project-process.designed-process{min-width:0!important;width:100%;max-width:100%;height:auto}#main .table-wrap{max-width:100%;overflow-x:auto}}

.carrier-budget-tools{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.carrier-budget-tools button{font-size:12px;padding:8px 12px}.carrier-budget-tools [aria-pressed=true]{background:#286052;border-color:#68ddbd;color:#fff}.carrier-budget-chart svg{min-width:0!important;width:100%;touch-action:pan-y}.carrier-budget-chart svg path{vector-effect:non-scaling-stroke}.carrier-budget-chart .axis-text{font-size:12px!important}.carrier-budget-chart .trend-grid{stroke:#304957;stroke-dasharray:3 5}.carrier-budget-chart .carrier-budget-xtrace{pointer-events:none!important;max-width:280px}.carrier-budget-xtrace span{display:block;margin-top:4px}#carrier-budget-trend .trend-legend{margin:10px 0}#carrier-budget-trend .legend-chip{font-size:12px}#carrier-budget-trend h3{margin:8px 0}@media(max-width:660px){.carrier-budget-chart svg{min-width:650px!important}.carrier-budget-chart{overflow-x:auto}.carrier-budget-tools{gap:6px}.carrier-budget-tools button{padding:7px 9px}.carrier-budget-tools button:nth-child(1),.carrier-budget-tools button:nth-child(4){display:none}}

/* workday_experience.css */
.workday-focus,.manager-work-queue,.workspace-performance,.equipment-freshness{background:#142f3c;color:#edf6fa;border:1px solid #527786;border-radius:12px;padding:1rem;margin:1rem 0}
.workday-focus h2,.manager-work-queue h2,.workspace-performance h2{margin:0;color:#fff;font-size:1.2rem}
.workday-focus p,.manager-work-queue p,.workspace-performance p{color:#cbdde5;margin:.5rem 0}
.workday-focus-heading,.workday-focus-meta,.workday-next-actions,.manager-queue-tools,.equipment-freshness{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.workday-focus-heading{justify-content:space-between}.workday-focus-meta>span{padding:.3rem .6rem;background:#203e4c;border-radius:6px;color:#edf6fa}
.workday-next-actions{margin-top:.8rem}.workday-next-actions button{min-height:44px}
.workday-streamlined>.topline,.workday-streamlined>.time-current-job,.workday-streamlined>.time-punch-actions{display:none}.workday-streamlined>.workday-focus{margin-top:0}.save-evidence button{padding:.25rem .5rem;min-height:36px}
.workday-progress{display:flex;list-style:none;padding:0;gap:.5rem;margin:.9rem 0;flex-wrap:wrap}.workday-progress li{font-size:.85rem;padding:.35rem .65rem;border-radius:20px;background:#203b48;color:#c8dce5}.workday-progress .done{color:#9ee8d1}.workday-progress .current{background:#ecd119;color:#132a35;font-weight:700}
.save-evidence{display:block;border-left:3px solid #80d9bd;padding:.45rem .6rem;color:#d5eee5;background:#173d39;font-size:.88rem;margin:.6rem 0}.save-evidence[data-state=error]{border-color:#ff8b9a;background:#452a33;color:#ffe0e5}.save-evidence[data-state=pending]{border-color:#ecd119;background:#3b3823;color:#fff2ae}
.connection-hint{background:#3f3320;color:#ffe6aa;border:1px solid #cba158;border-radius:8px;padding:.6rem 1rem;margin:.7rem 0}.connection-hint[hidden]{display:none}
.manager-queue-tools label{display:flex;gap:.5rem;align-items:center}.manager-queue-list{display:grid;gap:.55rem;margin-top:.8rem}.manager-queue-item{display:flex;gap:1rem;align-items:center;justify-content:space-between;background:#1c3947;padding:.75rem;border-radius:8px;border-left:3px solid #e9cd31}.manager-queue-item>div{min-width:0}.manager-queue-item strong,.manager-queue-item small{display:block;overflow-wrap:anywhere}.manager-queue-item small{color:#bfd4df;margin-top:.25rem}.manager-queue-item button{flex-shrink:0}.manager-queue-summary{color:#f2d94b;font-weight:700}.manager-queue-item.overdue{border-left-color:#ff8395}
.equipment-freshness{padding:.6rem .8rem;font-size:.88rem}.equipment-freshness strong{color:#fff}.freshness-chip{padding:.25rem .6rem;border:1px solid #6ba68f;border-radius:20px;color:#b4f2d9}.freshness-chip.stale,.freshness-chip.unavailable{border-color:#ba9b61;color:#ffe0a5}
.ticket-proposal-timeline{margin:.8rem 0;padding:.75rem;border:1px solid #7393a1;border-radius:8px;background:#142f3c;color:#edf6fa}.ticket-proposal-bar{display:block;width:100%;height:24px;background:#0c202b;border-radius:4px;overflow:hidden;margin:.55rem 0}.ticket-proposal-block{fill:#75c9a7;stroke:#142f3c;stroke-width:1px}.ticket-proposal-block.lunch{fill:#eacf40}.ticket-proposal-block.error{fill:#e66f83}.ticket-proposal-times{display:flex;justify-content:space-between;gap:.7rem;font-size:.85rem}.ticket-proposal-key{font-size:.83rem;color:#cadfe8}.ticket-proposal-timeline [role=alert]{color:#ffabb8}
.workspace-performance table{width:100%;border-collapse:collapse;color:#edf6fa}.workspace-performance th,.workspace-performance td{padding:.55rem;border-bottom:1px solid #476673;text-align:left}.workspace-performance th{background:#214654;color:#fff}.workspace-performance small{color:#c4dbe5}.workspace-performance .table-wrap{overflow:auto}.workspace-performance .slow-response{color:#ffe18d}
.manager-queue-empty{padding:1rem;border:1px dashed #668894;border-radius:8px}
@media(max-width:650px){.manager-queue-item{align-items:flex-start;flex-direction:column;gap:.6rem}.manager-queue-item button{align-self:flex-end}.workday-focus-meta{font-size:.85rem}.workday-next-actions>*{flex:1 1 140px}.manager-queue-tools label{flex:1 1 100%}.manager-queue-tools select{flex:1;min-width:0}}

.manager-queue-bulk{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap;margin:.8rem 0}.manager-queue-bulk label{display:flex;align-items:center;gap:.5rem}.manager-queue-select{flex:0 0 44px;display:flex;align-items:center;justify-content:center;min-height:44px;margin:0}.manager-queue-select input,.manager-queue-bulk input{width:20px;height:20px;margin:0}.manager-queue-item>div{flex:1}.manager-queue-tools{flex-wrap:wrap}.manager-queue-bulk button{min-height:44px}@media(max-width:650px){.manager-queue-item{display:grid;grid-template-columns:44px minmax(0,1fr)}.manager-queue-item>button{grid-column:2;justify-self:end}.manager-queue-bulk button{flex:1 1 145px}.manager-queue-bulk>label{flex-basis:100%}}

/* Field workflow hierarchy. Scoped to content; navigation order and menu remain unchanged. */
.field-next{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-left:3px solid #d6c535;padding:8px 12px;margin:8px 0 16px;background:#172e39;color:#c7dce5;font-size:.9rem;line-height:1.5}
.field-next button{min-height:40px;font-size:.85rem;padding:7px 12px}
.field-disclosure{border:1px solid #365260;background:#122630;border-radius:9px;margin:12px 0;color:#dcebf2;min-width:0}
.field-disclosure>summary{cursor:pointer;min-height:44px;box-sizing:border-box;padding:12px 15px;font-size:.9rem;font-weight:600;color:#dcebf2}
.field-disclosure>summary:focus-visible{outline:2px solid #e8cf30;outline-offset:2px}
.field-disclosure>section,.field-disclosure>div:not(.actions){margin:0;padding:12px 15px;border:0;box-shadow:none}
.field-tools{display:inline-block;vertical-align:top;margin:6px 8px 6px 0;max-width:100%}
.field-tools[open]{display:block;padding-bottom:8px}
.field-tools>button{margin:4px 6px 4px 12px;min-height:40px}
.field-workspace .field-disclosure[open]>summary{border-bottom:1px solid #365260;margin-bottom:6px}
.field-workspace .field-disclosure>.personal-toolbar{display:flex;flex-wrap:wrap}
.field-workspace .field-disclosure>.time-audit{max-width:100%}
.field-workspace .workday-focus.field-workday-inline{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 12px;margin:8px 0 12px;background:transparent;border:1px solid #365260;border-radius:8px}
.field-workday-inline .workday-focus-heading{display:flex;gap:12px;font-size:.9rem}
.field-workday-inline h2{font-size:.95rem}.field-workday-inline .workday-next-actions{margin:0}.field-workday-inline button{min-height:38px;padding:6px 12px}
.field-workspace #learning-records,.field-workspace #your-daily-tasks,.field-workspace #time-audit-pane{scroll-margin-top:150px}
@media(max-width:760px){.field-next{font-size:.85rem;padding:8px 10px}.field-disclosure>summary{padding:12px}.field-tools{display:block;margin:8px 0}.field-tools>button{max-width:calc(100% - 24px)}.field-workspace .workday-focus.field-workday-inline{align-items:flex-start}.field-workspace .workday-focus.field-workday-inline .workday-next-actions{margin-left:auto}.field-workspace #learning-records,.field-workspace #your-daily-tasks{scroll-margin-top:80px}}
@media print{.field-next,.field-disclosure>summary{display:none}.field-disclosure{border:0}.field-disclosure>*:not(summary){display:block!important}}

/* Keep familiar menu icons in the restored full desktop menu. */
@media(min-width:761px){
 body>header #nav .berco-menu-item{display:inline-flex;align-items:center;gap:7px}
 body>header #nav .berco-menu-item .berco-nav-icon{display:block;width:18px;height:18px;flex:0 0 18px}
}
/* A project heading belongs to its card, never the global sticky navigation. */
#main .sp-dashboard>.sp-header{position:static;top:auto;z-index:auto;height:auto;min-height:0;padding:0 0 16px}

/* Compact brand mark; keep the complete navigation menu. */
body>header .brand small{display:none!important}
body>header .brand{gap:9px!important}
body>header .brand .brand-symbol{width:35px!important;height:40px!important;flex:0 0 35px!important}
body>header .brand .brand-symbol img{width:100%!important;height:100%!important;object-fit:contain!important;position:static!important;transform:none!important}
body>header .brand b{font-size:22px!important;letter-spacing:2.5px!important;line-height:1.1}

/* One full-width row with measured overflow under More. */
@media(min-width:761px){body.berco-phone-active>header{display:flex!important;flex-wrap:nowrap!important;width:100%;max-width:none}body.berco-phone-active>header .brand{flex:0 0 auto!important}body.berco-phone-active>header>.berco-phone-nav{display:flex;flex-wrap:nowrap!important;overflow:hidden}body.berco-phone-active>header #identity{flex:0 0 auto}}

/* vehicle_fleet.css */
.vehicle-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);gap:18px;margin:18px 0}.vehicle-cards{display:grid;gap:14px;align-content:start}.vehicle-card{background:#183442;color:#f2f7fa;border:1px solid #63808e;border-radius:14px;padding:20px}.vehicle-card h2{margin:0;color:#fff}.vehicle-card p,.vehicle-card dt{color:#bcd0db}.vehicle-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.vehicle-status{color:#ffe477;background:#293d43;border:1px solid #9c8a4b;padding:5px 9px;border-radius:20px;font-size:.85rem}.vehicle-status.vehicle-current{color:#c0ffe6;background:#154638;border-color:#5dba9e}.vehicle-card dl{display:grid;grid-template-columns:1fr 1fr;gap:16px}.vehicle-card dl div:last-child{grid-column:1/-1}.vehicle-card dd{margin:4px 0 0;font-size:1.1rem}.vehicle-card a{color:#8cdeff}.vehicle-card button{margin:12px 0 0 12px}.vehicle-map-panel iframe{width:100%;height:460px;border:0;border-radius:10px}.vehicle-integration{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.vehicle-integration>strong{color:#ffe477}.vehicle-integration>details{width:100%}#vehicle-events button{min-height:44px}.vehicle-map-panel{min-width:0}@media(max-width:850px){.vehicle-layout{grid-template-columns:1fr}.vehicle-map-panel iframe{height:340px}.vehicle-card{padding:16px}.vehicle-card-title h2{font-size:1.2rem}}

.vehicle-health{margin-top:14px;border-top:1px solid #63808e;padding-top:12px}.vehicle-health summary{cursor:pointer}.vehicle-health dl{font-size:.9rem}.vehicle-health dd{overflow-wrap:anywhere}#vehicle-refresh-status{display:block;margin-top:8px;max-width:300px}
.vehicle-site-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.vehicle-site-filters label{display:flex;flex-direction:column;flex:1 1 160px;min-width:0}.vehicle-site-filters input,.vehicle-site-filters select{width:100%;box-sizing:border-box}.vehicle-site-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.vehicle-site-item{padding:16px;border:1px solid #71818e;border-radius:12px}.vehicle-jobsite-panel{margin-top:20px}#vehicle-daily-results .table-wrap{max-width:100%;overflow:auto}#vehicle-site-form{max-width:650px}#vehicle-daily-results .caption{margin-top:20px}

/* report-editor.css */

#report-workspace{max-width:1600px;margin:auto}#report-workspace h1{font-size:28px;margin:4px 0}#report-workspace h2{font-size:19px}.report-toolbar,.report-actions,.report-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.report-toolbar p{margin:4px 0 12px}.report-actions{position:sticky;top:0;z-index:6;background:#132a36;padding:12px;border:1px solid #405e70;border-radius:10px;margin:12px 0}.report-actions .actions{margin:0;display:flex;flex-wrap:wrap;gap:8px}.report-actions button{margin:0}.report-layout{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);gap:20px;align-items:start}.report-tools{position:sticky;top:82px;max-height:calc(100vh - 110px);overflow:auto;padding:16px;background:#193541;border:1px solid #405e70;border-radius:10px}.report-tools h2{margin-top:0}.report-section{margin:8px 0;border:1px solid #405e70;border-radius:8px}.report-section>summary{padding:12px;display:flex;justify-content:space-between;gap:6px;cursor:pointer}.report-section>summary:before{content:'+';color:#e5b92d}.report-section[open]>summary:before{content:'−'}.report-section summary small{color:#d4c16b;font-size:11px}.report-section-body{padding:0 12px 12px}.report-section-actions{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}.report-section-actions button,.report-item button{padding:6px 9px;font-size:12px}.report-tools textarea{min-height:80px}.report-tools label{margin:10px 0}.report-tools [hidden],#report-workspace [hidden]{display:none!important}.report-paper{background:#dce3e6;border:1px solid #8398a2;border-radius:10px;overflow:hidden}.report-preview-heading{padding:12px 16px;color:#193e50;background:#edf3f5;font-size:12px}.report-preview-heading a{color:#193e50;text-decoration:underline}.report-paper iframe{display:block;width:100%;height:max(760px,calc(100vh - 200px));border:0;background:white}.report-library{padding:20px;border:1px solid #405e70;border-radius:10px;margin:14px 0}.report-search-grid{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end}.report-search-grid label{margin:0}.report-library-card{display:flex;text-align:left;align-items:start;flex-direction:column;gap:5px;width:100%;padding:14px;margin:8px 0;border:1px solid #405e70;border-left:3px solid #e5b92d}.report-library-card small{color:#b7cbd3}.report-revision-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px;border-bottom:1px solid #405e70}.report-revision-row span{flex:1}.report-more{position:relative;align-self:center}.report-more summary{padding:10px;cursor:pointer}.report-more[open]{background:#193541;border:1px solid #405e70;padding:4px}.report-more button{display:block;width:100%;margin:5px!important}.report-item{padding:10px 0;border-bottom:1px solid #405e70;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.report-item small{display:block}.report-item label{flex-basis:100%}.report-notice{padding:10px;border-left:3px solid #e5b92d}.report-item-list summary{cursor:pointer;padding:8px 0}#report-save-state{font-size:13px;color:#e5cf83}#report-workspace button:focus-visible,#report-workspace summary:focus-visible{outline:2px solid #e5b92d;outline-offset:3px}@media(max-width:900px){.report-layout{grid-template-columns:1fr}.report-tools{position:static;max-height:none}.report-search-grid{grid-template-columns:1fr 1fr}.report-actions{position:static}.report-paper iframe{height:700px}}@media(max-width:500px){.report-search-grid{grid-template-columns:1fr}.report-toolbar .actions{width:100%}.report-toolbar button{flex:1}.report-library{padding:12px}.report-paper iframe{height:600px}}
#report-workspace>.report-toolbar{position:static;height:auto;min-height:0;padding:0;background:transparent;box-shadow:none;color:inherit}#report-frame{padding:14px;display:grid;gap:18px;max-height:calc(100vh - 190px);overflow:auto}.report-page-image{display:block;width:100%;height:auto;background:white;box-shadow:0 2px 8px #0003}#report-more-pages{display:block;margin:10px auto}.report-tools[hidden]+.report-paper{grid-column:1/-1}@media(max-width:900px){#report-frame{max-height:none;padding:7px}}

.workspace-nav-group{position:relative;align-self:center}.workspace-nav-group>summary{padding:10px 12px;cursor:pointer;border-radius:7px;font-size:14px;white-space:nowrap}.workspace-nav-group[open]>summary{background:#294959}.workspace-nav-menu{position:absolute;top:100%;right:0;min-width:205px;padding:8px;background:#193541;border:1px solid #526d7b;border-radius:9px;box-shadow:0 10px 30px #0005;z-index:50}.workspace-nav-menu button{display:block;width:100%;text-align:left;margin:3px 0!important}.workspace-nav-group[hidden]{display:none!important}@media(max-width:700px){.workspace-nav-menu{position:fixed;top:130px;left:12px;right:12px;max-height:65vh;overflow:auto}}

/* Existing responsive navigation owns the main toolbar. Groups live in its More menu. */
#nav .workspace-nav-group{grid-column:1/-1;width:100%;align-self:stretch}
#nav .workspace-nav-group>summary{padding:13px;border:1px solid #526d7b;background:#203c4a;font-weight:650}
#nav .workspace-nav-menu{position:static;inset:auto;box-shadow:none;width:100%;max-height:none;display:grid;grid-template-columns:1fr 1fr;margin-top:6px;gap:6px}
#nav .workspace-nav-menu button[hidden]{display:none!important}
@media(max-width:400px){#nav .workspace-nav-menu{grid-template-columns:1fr}}

@media(min-width:901px){#report-workspace .report-actions{top:76px}#report-workspace .report-tools{top:156px;max-height:calc(100vh - 176px)}}

@media(min-width:901px){#report-edit-toggle{display:none!important}}
@media(max-width:900px){#report-tools:not([data-open="true"]){display:none!important}#report-tools{max-height:55vh;overflow:auto}#report-layout{gap:12px}}


.final-report-intro{display:flex;justify-content:space-between;gap:16px;align-items:start;flex-wrap:wrap}.final-report-intro h2{margin:4px 0}.final-report-period{padding:8px 12px;border:1px solid #6f7a3e;border-radius:7px;color:#f0d968}.final-report-setup{max-width:780px}.final-report-status{padding:14px;border-left:4px solid #d4bc31;background:#203b43;border-radius:6px;margin:12px 0}.final-report-status p{margin:6px 0 0;line-height:1.5}.final-report-check{display:flex!important;align-items:flex-start;gap:10px;line-height:1.5}.final-report-check input[type=checkbox]{width:18px!important;min-width:18px;height:18px;margin-top:3px}.final-report-dates{margin:16px 0;padding:10px;border:1px solid #405e70;border-radius:8px}.final-report-dates summary{cursor:pointer}.final-report-dates .report-search-grid{margin-top:10px}.final-report-preview{padding:14px;max-width:940px;margin:16px auto;background:#dce3e6;display:grid;gap:14px;border-radius:9px}.final-report-preview img{width:100%;height:auto}.report-tools .final-report-status{font-size:12px}.report-tools .final-report-check{font-size:12px}.report-tools .final-report-check input{flex:0 0 18px}#report-workspace .report-toolbar .actions{flex-wrap:wrap}
