:root{font-family:"Segoe UI","Yu Gothic UI","Meiryo",sans-serif;color:#233930;background:#f2f5f1;font-size:14px}*{box-sizing:border-box}body{margin:0}header{background:#153c2f;color:#fff;padding:25px max(24px,calc((100vw - 1440px)/2));display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{display:flex;align-items:center;gap:16px}.brandmark{display:grid;place-items:center;width:44px;height:44px;background:#cee992;color:#153c2f;border-radius:13px;font-size:26px;font-weight:800}small{font-size:11px;letter-spacing:.09em}h1{font-size:23px;font-weight:650;margin:5px 0 0}h2{font-size:18px;margin:5px 0}main{max-width:1488px;margin:auto;padding:18px 24px 32px}.disclaimer{font-size:12px;color:#67746c;margin:0 0 16px}.pill{display:inline-block;font-size:11px;border:1px solid #94a89b;border-radius:20px;padding:6px 10px;white-space:nowrap}.toolbar{display:flex;gap:16px;align-items:end;flex-wrap:wrap;background:#fff;border:1px solid #dce3db;padding:16px;border-radius:12px}label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600}input,select,button{font:inherit;border:1px solid #c5d0c7;border-radius:7px;padding:9px;background:#fff;color:#263e31;min-height:38px}select{max-width:360px}button{cursor:pointer;font-weight:600}button:hover{background:#eaf0e7}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #aa6414;outline-offset:3px}#reload{background:#21533d;color:white;padding:10px 24px}.presets{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0;font-size:12px}.presets button{min-height:30px;padding:5px 12px;font-size:12px}.presets span{color:#738376;margin-right:4px}#status{padding:10px 14px;border-left:3px solid #6d963f;background:#e7efe1;margin-bottom:14px;font-size:13px}#status.warning{border-color:#ad772d;background:#fff0d9}#status.error{border-color:#b8413f;background:#fce8e6}.metrics{display:grid;grid-template-columns:1fr 1fr 1.6fr;gap:16px;margin-bottom:20px}.metrics article{background:white;border:1px solid #dce3db;border-radius:10px;padding:18px;display:flex;flex-direction:column;gap:8px}.metrics strong{font-size:32px}.metrics strong.services{font-size:20px;margin:7px 0}.metrics span{font-size:11px;color:#6e7e70}.two-up{display:grid;grid-template-columns:1fr 1.25fr;gap:20px}.panel{background:white;border:1px solid #dce3db;border-radius:12px;overflow:hidden;padding:18px;margin-bottom:20px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-head button{font-size:11px;min-height:28px;padding:5px 10px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:#6b8270}.note{font-size:11px;line-height:1.7;color:#6d7d70;margin:8px 0 10px}.map-wrap{background:#f4f7f1;border-radius:9px;overflow:hidden}#map{width:100%;display:block;touch-action:none;max-height:410px}.chart-scroll{overflow-x:auto}.legend{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:10px;margin-top:12px}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:13px;height:4px;border-radius:2px;display:block}.axis text{font-size:10px;fill:#5d7163}.axis .domain{stroke:#c7d1c7}.axis line{stroke:#dce5db}.grid line{stroke:#e8ede6}.grid .domain{display:none}.route-line,.trip-line,.trip-bar{cursor:pointer}.route-line{fill:none}.trip-line{fill:none;stroke-linejoin:round}.route-line:focus,.trip-line:focus,.trip-bar:focus{outline:none;stroke:#aa6414;stroke-width:5}.chart-empty{fill:#718274;font-size:14px}.selection label{flex-direction:row;align-items:center;min-width:0}.selection select{max-width:420px}#trip-detail{font-size:13px;line-height:1.8;color:#425e4a}summary{cursor:pointer;color:#4f7058;padding:8px 0;font-size:12px}table{border-collapse:collapse;width:100%;font-size:12px}th,td{text-align:left;padding:9px 12px;border-bottom:1px solid #e7ece5}th{background:#f4f7f1;font-weight:600}footer{font-size:11px;color:#748275;line-height:1.7}footer a{color:#456c4d}#snapshot{word-break:break-all}button:disabled,input:disabled,select:disabled{opacity:.5;cursor:wait}@media(max-width:1000px){.two-up{grid-template-columns:1fr}.metrics{gap:10px}header{padding:20px 24px}.toolbar{gap:10px}.selection .panel-head{flex-wrap:wrap}}@media(max-width:600px){main{padding:16px 12px}header{padding:18px 14px;flex-wrap:wrap}h1{font-size:18px}.metrics{grid-template-columns:1fr 1fr}.metrics article:last-child{grid-column:1/-1}.toolbar label{width:100%}select{max-width:100%;width:100%}.panel{padding:12px}.selection label{width:100%;flex-direction:column;align-items:start}.selection select{width:100%}}

.map-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px}.map-tools label{flex-direction:row;align-items:center}.map-tools select{font-size:12px;max-width:180px;padding:6px;min-height:30px}#map-status{font-size:11px;color:#6d7d70}.map-credit a{color:#456c4d}.map-wrap{background:white}

.edit-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:12px 0}.edit-controls input[type=number]{width:135px}.edit-controls button,.file-label{font-size:12px}.file-label input{max-width:230px}.conflicts{font-size:12px;color:#995b29;max-height:170px;overflow:auto}#scenario-status{font-size:12px;color:#476b50}

.operation-connection,.connection-endpoint{cursor:pointer}.operation-connection:hover,.operation-connection:focus{stroke:#ac6222;stroke-width:3}
[hidden]{display:none!important}.view-tabs{display:flex;gap:6px;border-bottom:1px solid #c5d0c7;margin:16px 0 20px}.view-tabs button{border:0;border-radius:8px 8px 0 0;background:transparent;padding:12px 20px;color:#627866}.view-tabs button[aria-selected=true]{background:#21533d;color:white}#view-route .map-wrap{max-width:940px;margin:auto}#view-timetable #diagram{min-width:800px;width:100%;height:auto}#view-timetable #operations{min-width:950px;width:100%;height:auto}@media(max-width:600px){.view-tabs button{padding:10px 12px;font-size:12px}.view-tabs{gap:2px}}
[hidden]{display:none!important}
.fleet-verdict{padding:12px 14px;border-left:3px solid #6d963f;background:#e7efe1;font-weight:600}.fleet-verdict.insufficient{border-color:#b8413f;background:#fce8e6}.fleet-list{font-size:12px;padding-left:22px;line-height:2}.fleet-list button{font-size:11px;min-height:28px;padding:4px 8px}.fleet-metrics strong{font-size:28px}.fleet-metrics{margin-top:16px}.fleet-panel input[type=number]{width:120px}
.facility-gap{background:#fff3df;border-left:3px solid #ad772d;padding:12px 16px;margin:14px 0;color:#684b27;font-size:12px;line-height:1.7}.facility-gap p{margin:6px 0}.facility-gap strong{font-size:13px}
.distance-over{background:#fff0e6;color:#995b29}#distance-segments input{width:110px}#distance-segments button{font-size:11px;padding:5px;margin:2px}
.route-line,.route-halo,.selected-route{stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}#map-opacity{width:110px;padding:0;min-height:24px}#map-opacity-value{font-size:11px;min-width:32px}

#trip-graph{display:block;max-width:none} .graph-trip{cursor:pointer}.graph-trip:focus rect{stroke:#b36a17;stroke-width:3}#graph-neighbors{display:flex;gap:20px;flex-wrap:wrap}#graph-neighbors details{flex:1;min-width:240px}#graph-neighbors button{font-size:11px;padding:5px 8px;margin:3px}#graph-summary{font-size:12px;color:#45624c}

.search-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:16px}.search-controls label{display:flex;flex-direction:row;align-items:center;gap:8px}#search-progress{width:100%;height:10px;accent-color:#218f8d}#search-status{padding:10px;background:#edf4f3;font-size:12px;min-height:42px}#trip-graph.search-active :where(path[data-from-trip]){stroke:#667580;stroke-width:1.4;opacity:0;stroke-dasharray:4 4;marker-end:url(#graph-arrow-candidate)}#trip-graph path.search-adopted{marker-end:url(#graph-arrow-replay);stroke:#128f8a;stroke-width:3;opacity:1;stroke-dasharray:none}#trip-graph path.search-current{marker-end:url(#graph-arrow-focus);stroke:#d88715;stroke-width:4;opacity:1}#trip-graph path.search-rejected{marker-end:url(#graph-arrow-reject);stroke:#cf4141;stroke-width:4;opacity:1}#trip-graph .search-visited rect{fill:#dcf4ee;stroke:#128f8a}#trip-graph .search-current rect{fill:#fff0cd;stroke:#d88715;stroke-width:3}#trip-graph .search-rejected rect{fill:#ffe3e3;stroke:#cf4141;stroke-width:3}

#trip-graph.graph-fit{width:100%;height:56vh;min-height:300px;max-height:620px}#trip-graph path.search-tried{stroke:#667580;stroke-width:1.5;opacity:.65}#trip-graph path.search-adopted{stroke:#128f8a;stroke-width:3;opacity:1}#trip-graph path.search-current{stroke:#d88715;stroke-width:4;opacity:1}#trip-graph path.search-rejected{stroke:#cf4141;stroke-width:4;opacity:1}.is-replaying>p.note,.is-replaying #graph-neighbors,.is-replaying #graph-summary{display:none}.is-replaying{scroll-margin-top:10px}

#trip-graph.search-active :where(path[data-from-trip]){opacity:.18;stroke:#92999d}#trip-graph.search-active .graph-trip rect{fill:#eee;stroke:#92999d}#trip-graph.search-active .graph-trip.search-grouped rect{fill:color-mix(in srgb,var(--duty-color) 18%,white);stroke:var(--duty-color)}#trip-graph.search-active .graph-trip.search-current rect{fill:#fff0cd;stroke:#d88715}#trip-graph.search-active .graph-trip.search-rejected rect{fill:#ffe3e3;stroke:#cf4141}#trip-graph.search-active path.search-adopted{stroke:var(--duty-color,#128f8a);opacity:1;stroke-width:3;stroke-dasharray:none}#trip-graph.search-active path.search-current{stroke:#d88715;opacity:1}#trip-graph.search-active path.search-rejected{stroke:#cf4141;opacity:1}.is-replaying #trip-graph.graph-fit{height:38vh;min-height:220px}#search-assembly{margin-top:10px;background:#f4f7f5;padding:10px;border-radius:8px}#search-assembly-status{font-size:12px;margin:0 0 8px}#search-duties{width:100%;display:block}

.graph-timings{padding:10px 12px;background:#f3f6ee;border:1px solid #dce5d4;border-radius:6px;margin:12px 0;font-size:12px;font-variant-numeric:tabular-nums}.graph-timings p{margin:3px 0}.graph-timings small{color:#697b6c;font-size:10px}

.estimated-call{background:#fff1d4} #dataset-quality-note{color:#735312;margin-top:8px}
.view-tabs{overflow-x:auto;white-space:nowrap}.planning-next,.roster-main-controls,.roster-board-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.planning-next{margin:16px 0}.planning-details{border-top:1px solid #dde5df;margin-top:16px;padding:12px 0}.planning-details>summary{cursor:pointer;color:#39584b;font-size:13px;font-weight:600}.roster-main-controls{margin:16px 0;align-items:flex-end}.roster-main-controls label,.roster-board-actions label{display:flex;gap:8px;align-items:center}.roster-board-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0 12px}.roster-board-toolbar h3,.roster-day-head h3{margin:0 0 5px;font-size:15px}#roster-board-caption,#roster-day-summary{font-size:12px;color:#66796d}.roster-board-columns{display:grid;grid-template-columns:minmax(330px,.85fr) minmax(420px,1.2fr);gap:24px}.roster-calendar,.roster-day{min-width:0}.roster-table-scroll{overflow:auto}#roster-grid{width:100%;font-size:11px;border-collapse:collapse}#roster-grid th,#roster-grid td{padding:3px;text-align:center;white-space:nowrap}#roster-grid th:first-child{position:sticky;left:0;background:#fff;z-index:1;text-align:left;min-width:65px}#roster-grid button{min-height:28px;padding:3px 7px;width:100%;font-size:11px;border:1px solid transparent;border-radius:4px}.roster-cell.operation{background:#ddede4;color:#24543d}.roster-cell.inspection,.roster-state.inspection{background:#fff0c8;color:#78561a}.roster-cell.inspection_due,.roster-state.inspection_due{background:#ffe1dc;color:#923d31}.roster-cell.spare,.roster-state.spare{background:#edf0ee;color:#68766e}#roster-grid .selected-day{border-color:#387b65}#roster-grid .selected-vehicle{outline:2px solid #245e48;outline-offset:-2px}.roster-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:#6a7a70;margin:10px 0}.roster-day-head{min-height:44px}.roster-time-axis,.roster-time-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;align-items:center;min-height:34px;border-bottom:1px solid #edf0ed}.roster-time-axis{font-size:10px;color:#738276}.roster-time-axis>div{position:relative;height:24px;margin-right:16px}.roster-time-axis>div>span{position:absolute;top:5px;transform:translateX(-50%)}.roster-time-row>button{min-height:28px;padding:3px;font-size:11px;text-align:left;border:0;background:transparent}.roster-time-track{position:relative;height:28px;margin-right:16px}.roster-time-bar{position:absolute;top:6px;height:17px;min-height:0!important;padding:0!important;border:1px solid white!important;border-radius:2px!important;background:#43866a;z-index:1}.roster-time-bar.depot{background:#db963e}.roster-duty-span{position:absolute;top:12px;height:5px;background:#dce8df}.roster-time-row.chosen{background:#f0f6f2}.roster-state{display:inline-block;font-size:11px;padding:4px 12px;border-radius:4px}.roster-month-mode .roster-board-columns{grid-template-columns:1fr}.roster-month-mode #roster-grid{min-width:1100px}.roster-tooltip{position:fixed;z-index:10000;max-width:300px;white-space:pre-line;background:#243e32;color:#fff;font-size:12px;line-height:1.7;padding:12px 15px;border-radius:7px;box-shadow:0 5px 24px #0003;pointer-events:none}.roster-tooltip[hidden]{display:none}button:focus-visible{outline:2px solid #32765d;outline-offset:2px}@media(max-width:1000px){.roster-board-columns{grid-template-columns:1fr}.roster-board-toolbar{align-items:flex-start;flex-wrap:wrap}}
.planning-guide{margin:14px 0;padding:16px 20px;background:#f4f8f5;border:1px solid #cadbd0;border-radius:10px}.guide-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.guide-top strong{flex:1;font-size:14px}.guide-top button{font-size:12px;padding:6px 10px;min-height:30px}.guide-steps,.guide-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.guide-steps button{border-radius:20px;font-size:12px;min-height:30px;padding:5px 12px}.guide-actions button{font-size:12px;padding:7px 12px}.guide-actions button:first-child{background:#245e48;color:white}.planning-guide p{font-size:13px;margin:10px 0}.planning-guide .note{font-size:11px;color:#63766a}.planning-guide details table{font-size:12px}.guide-actions button:disabled{opacity:.45}

.roster-time-bar.check{background:#7e4eb7}.roster-time-bar.refuel{background:#197fa8}.roster-cell.service_blocked,.roster-state.service_blocked{background:#ffe2c1;color:#713e00}

.roster-time-bar.waiting{background:#64748b;opacity:.65}#waiting-master input{max-width:100px}#waiting-master td:last-child{min-width:260px;font-size:12px}
#continuity-initial{display:block;width:min(100%,760px);font:12px/1.5 monospace;padding:8px}#vehicle-activities table{font-size:12px}#vehicle-activities td{vertical-align:top;min-width:100px}#vehicle-activities td:first-child{min-width:85px}#vehicle-activities .edit-controls{margin:12px 0}
#roster-depot>label{display:flex;align-items:center;gap:8px}#roster-depot-enabled{width:16px;min-width:16px;height:16px;min-height:16px;padding:0}

/* The Blazor workspace owns navigation and selected-trip details. */
body.business-embed {background:#fff;min-width:0}
.business-embed>header,.business-embed main>.disclaimer,.business-embed main>.toolbar,.business-embed #dataset-information,.business-embed .presets,.business-embed main>#status,.business-embed .view-tabs,.business-embed #planning-guide,.business-embed footer{display:none!important}
.business-embed main{max-width:none;margin:0;padding:0 12px}
.business-embed .panel{box-shadow:none;border:0;border-radius:0;margin:0;padding:12px 0}
.business-embed:not(.show-diagnostics) .panel>p.note,.business-embed:not(.show-diagnostics) .panel>.note,.business-embed:not(.show-diagnostics) .panel-head .eyebrow,.business-embed:not(.show-diagnostics) .panel-head .pill,.business-embed:not(.show-diagnostics) .graph-timings,.business-embed:not(.show-diagnostics) #graph-neighbors,.business-embed:not(.show-diagnostics) #graph-summary{display:none!important}
.business-embed #view-timetable>.selection{display:none!important}
.business-embed:not(.show-diagnostics) #roster-diagnostics,.business-embed:not(.show-diagnostics) #roster-balance,.business-embed:not(.show-diagnostics) #roster-waiting{display:none!important}
.business-embed .chart-scroll{max-width:100%}
.business-embed .panel-head h2{font-size:16px;margin:0}
.business-embed .graph-fit{width:100%}

.business-embed[data-workspace-chart="operations"] #view-timetable>.workspace-diagram,.business-embed[data-workspace-chart="diagram"] #view-timetable>.operations{display:none!important}
.business-embed .workspace-legend{font-size:11px;margin:10px 0;color:#58747e}
.business-embed .workspace-legend summary{cursor:pointer}

.business-embed #operations{width:100%;height:auto;display:block}

.business-entry{color:#d2e5de;font-size:12px;margin-left:auto;white-space:nowrap}

.business-embed[data-workspace-chart="hako"] #view-timetable>.operations,.business-embed[data-workspace-chart="hako"] #view-timetable>.workspace-diagram{display:none!important}
.hako-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.hako-toolbar label{display:flex;flex-direction:row;align-items:center}.hako-toolbar select{max-width:230px;font-size:12px}.hako-toolbar button{font-size:11px;min-height:30px}.hako-reading{font-size:11px;color:#71848d;line-height:1.7;margin:10px 0}.hako-place{writing-mode:vertical-rl;font-size:12px;fill:#3d5865}.hako-time{font-size:12px;fill:#3d5360}.hako-trip-label{font-size:11px;fill:#385c6b;font-weight:600}.hako-via-time,.hako-link-label{font-size:10px;fill:#7c8c93}.hako-trip{cursor:pointer}.hako-trip:focus{outline:none;stroke:#c27c31;stroke-width:7}#hako-summary{font-size:12px;color:#496977;margin:12px 0}.hako-panel[hidden]{display:none!important}
.business-embed .review-tool-group{display:none}.business-embed[data-review-mode=service] [data-review-group=service],.business-embed[data-review-mode=duties] [data-review-group=duties]{display:block}.review-tool{border:1px solid #dbe5e9;border-radius:8px;margin:14px 0;background:#fff}.review-tool>summary{cursor:pointer;padding:16px;color:#244c59;font-weight:600}.review-tool[open]>summary{border-bottom:1px solid #e3ebee}.review-tool>.panel{border:0;box-shadow:none;margin:0}.review-tool>section{padding:16px}

:root[data-workspace-theme] {
  background: var(--workspace-background);
  color: var(--workspace-text);
}
[data-workspace-theme] .business-embed :is(.panel,.chart-scroll,input,select,thead,th),
[data-workspace-theme] .business-embed button:not(.roster-cell,.roster-time-bar) {
  background: var(--workspace-background);
  color: var(--workspace-text);
  border-color: color-mix(in srgb, var(--workspace-text) 24%, transparent);
}
[data-workspace-theme] .business-embed :is(button:not(.roster-cell,.roster-time-bar):hover,th,summary) {
  background: var(--workspace-tint);
}
[data-workspace-theme] .business-embed svg text {
  fill: var(--workspace-text);
}
[data-workspace-theme] .business-embed svg .axis :is(path,line) {
  stroke: color-mix(in srgb, var(--workspace-text) 34%, transparent);
}
[data-workspace-theme="dark"] .business-embed :is(#operations,#diagram) rect:is([fill="white"],[fill="#fafcf8"],[fill="#e8efe6"]) {
  fill: var(--workspace-background);
}
[data-workspace-theme="dark"] .business-embed :is(.note,.eyebrow) {
  color: inherit;
}

[data-workspace-theme] .business-embed :focus-visible {
  outline-color: var(--workspace-accent);
}
[data-workspace-theme="dark"] .business-embed #operations rect[fill="#e9f1df"] {
  fill: var(--workspace-tint);
}
[data-workspace-theme] body.business-embed {
  background: var(--workspace-background);
  color: var(--workspace-text);
}

[data-workspace-theme] #roster-grid th:first-child {
  background: var(--workspace-background);
  color: var(--workspace-text);
}
[data-workspace-theme="dark"] :is(#roster-board-caption,#roster-day-summary,.roster-legend,.roster-time-axis) {
  color: #c4dbde;
}
[data-workspace-theme="dark"] .roster-time-row.chosen {
  background: #304950;
}
[data-workspace-theme="dark"] #roster-grid .selected-day {
  border-color: #a9dbca;
}

[data-workspace-theme] .business-embed #view-timetable svg {
  background-color: var(--workspace-background);
  color: var(--workspace-text);
}.roster-result-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 0;font-size:12px;font-weight:600}.roster-result-status button{min-height:28px;padding:4px 8px}

.roster-board-actions label:has(#roster-board-mode) {
  font-size: 0;
  gap: 0;
}
#roster-board-mode {
  font-size: 12px;
}
/* Diagram time and corridor filters share the compact map toolbar. */
#diagram .diagram-drag-preview{clip-path:url(#diagram-time-window)}
.business-embed .map-tools select[aria-label="時間帯"]{min-width:125px}

[data-workspace-theme="dark"] #diagram path.trip-line[pointer-events="none"] {
  filter: brightness(1.45) saturate(1.2);
}
#diagram .operation-connection{stroke-linejoin:round}
/* Diagram connections are stacked on their original side. */
/* Diagram selection shortcuts are described in workspace help. */
.business-embed .map-tools select[aria-label="系統・運行パターン"]{max-width:240px}
#diagram .diagram-time-handle{cursor:ew-resize}

.business-embed .map-tools select[aria-label="着発の移動範囲"]{min-width:105px}
.stop-timetable-link{cursor:pointer;fill:currentColor}
.stop-timetable-link:hover,.stop-timetable-link:focus{text-decoration:underline}
.stop-timetable{color:var(--workspace-text, #24352a);background:var(--workspace-background, white);border:1px solid currentColor;border-radius:8px;width:min(42rem,90%);box-sizing:border-box}
.stop-timetable::backdrop{background:#0007}
.stop-timetable h2{margin-top:0}
.stop-timetable>div{max-height:55vh;overflow:auto;margin-bottom:12px}
.stop-timetable table{width:100%}
.stop-timetable th{position:sticky;top:0;background:var(--workspace-background, white)}
.duty-ai-evaluation{margin:18px 0;padding:14px;border:1px solid #82959c66;border-radius:8px}.duty-ai-evaluation p{line-height:1.7;font-size:12px}.duty-ai-evaluation article{padding:10px 12px;margin:8px 0;border-left:3px solid #168779;background:#1687790a}.duty-ai-evaluation article.duty-ai-hypothesis{border-left-color:#c58b40;background:#c58b400a}.duty-ai-evaluation h4{margin:18px 0 8px}.duty-ai-evaluation article p{margin:6px 0}
.duty-ai-evaluation summary{color:inherit}.duty-ai-evaluation button{white-space:nowrap}
.duty-ai-evaluation pre{white-space:pre-wrap;overflow:auto;max-height:24rem;font-size:11px;border:1px solid #82959c66;border-radius:4px;padding:10px}.duty-ai-evaluation label{max-width:360px}.duty-ai-privacy-note{opacity:.85}
.selected-duty-panel{border-left:3px solid #168779;padding-left:8px}#roster-selected-scope{padding:8px 12px;border-left:3px solid #168779;font-size:12px;line-height:1.7}
#roster-selected-scope summary{color:inherit}

/* The embedded workspace has its own document and native form controls. */
:root[data-workspace-theme="dark"] {
  color-scheme: dark;
  --workspace-muted: #c4dbde;
  --workspace-dark-inset: #263b42;
}
[data-workspace-theme="dark"] .business-embed :is(.review-tool,dialog),
[data-workspace-theme="dark"] .business-embed details > summary {
  background: var(--workspace-dark-inset);
  color: var(--workspace-text);
}
[data-workspace-theme="dark"] .business-embed :is(.workspace-legend,.hako-reading,#hako-summary,#map-status,
  #graph-summary,.graph-timings small,.map-credit a,#roster-board-caption,#roster-day-summary,
  .roster-legend,.roster-time-axis) {
  color: var(--workspace-muted);
}
[data-workspace-theme="dark"] .business-embed a:not(.leaflet-container a),
[data-workspace-theme="dark"] .business-embed .map-credit a {
  color: #b3e5df;
}
[data-workspace-theme="dark"] .business-embed button.roster-cell.out_of_scope {
  background: var(--workspace-dark-inset);
  color: var(--workspace-muted);
}


#roster-grid thead .roster-date-button {
  display: grid;
  justify-items: center;
  line-height: 1.2;
}
#roster-grid .roster-date-weekday { font-size: 10px; }
#roster-grid thead .roster-date-saturday { color: #1856a3; }
#roster-grid thead .roster-date-holiday { color: #a32237; }
[data-workspace-theme="dark"] #roster-grid thead .roster-date-saturday { color: #a4d0ff; }
[data-workspace-theme="dark"] #roster-grid thead .roster-date-holiday { color: #ffb0bb; }
.reference-duty-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-block: 8px;
}
.reference-duty-heading h3 { margin: 0; }
.reference-duty-heading label {
  display: inline-flex;
  flex-direction: row;
  min-height: 26px;
  align-items: center;
  gap: 4px;
  margin: 0;
  white-space: nowrap;
}
.reference-duty-heading input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-height: 0;
  padding: 0;
  margin: 0;
}
.reference-duty-heading input[type="number"] {
  width: 48px;
  height: 26px;
  min-height: 0;
  padding: 2px 4px;
}
