/* Presentation rules from approved Willow 945c208. Shared report primitives; no simulator rules. */
.chart-toolbar{display:flex;gap:10px;align-items:start;justify-content:space-between}
.chart-toolbar h3,.analysis-scroll h3{font-size:13px;font-weight:600;letter-spacing:-.15px;margin:0 0 5px}
.chart-toolbar p{font-size:9px;color:#81917f;line-height:1.6;margin:0;max-width:290px}
.analysis-modes{display:flex;flex-shrink:0;gap:2px;border:1px solid #dce4d5;border-radius:7px;padding:3px;background:#f6f8f1}
.analysis-modes button{border:0;background:transparent;padding:6px 8px;font-size:9px;border-radius:4px;white-space:nowrap}
.analysis-modes .active{background:white;color:#d4005b;box-shadow:0 1px 5px #253d2215}
.analysis-legend{display:flex;flex-wrap:wrap;gap:9px 13px;margin:16px 0;font-size:8px;color:#758570}
.analysis-legend span{display:flex;align-items:center;gap:4px;white-space:nowrap}
.analysis-legend i,.observation-table i,.step-aggregate h4 i{width:7px;height:7px;display:inline-block;border-radius:2px;flex-shrink:0}
.journey-board{border:1px solid #dfe6d8;border-radius:8px;max-height:365px;overflow:auto;scrollbar-gutter:stable;background:white}
.gantt-axis,.gantt-row{display:grid;grid-template-columns:106px minmax(290px,1fr) 71px;min-width:485px;gap:0;align-items:center}
.gantt-axis{position:sticky;top:0;background:#f6f8f0;height:34px;z-index:3;color:#8b9884;font-size:8px;border-bottom:1px solid #e5eade}
.gantt-axis>span:first-child{padding-left:10px}
.gantt-axis>span:last-child{text-align:right;padding-right:10px}
.gantt-axis>div{position:relative;height:18px}
.gantt-axis>div span{position:absolute;top:4px;transform:translateX(-50%);white-space:nowrap}
.gantt-axis>div span:first-child{transform:none}
.gantt-axis>div span:last-child{transform:translateX(-100%)}
.gantt-row{height:36px;border-bottom:1px solid #eff2e8}
.gantt-row:last-child{border-bottom:0}
.gantt-row:nth-child(odd){background:#fbfcf8}
.gantt-row.is-selected{background:#fff4f8;box-shadow:inset 3px 0 #ff006e}
.gantt-patient,.gantt-total{border:0;background:transparent;border-radius:0;text-align:left;padding:4px 10px;line-height:1.2;height:35px}
.gantt-patient b{display:block;font-size:10px;font-weight:600}
.gantt-patient span{display:block;font-size:7px;font-weight:400;color:#85947e;margin-top:2px}
.gantt-total{text-align:right;font-size:10px;font-weight:550;font-variant-numeric:tabular-nums}
.gantt-total small{display:block;font-size:7px;color:#87947e;font-weight:400;margin-top:2px}
.gantt-track{height:22px;position:relative;background-image:linear-gradient(to right,#e8eddf 1px,transparent 1px);background-size:25% 100%}
.journey-segment{position:absolute;top:2px;height:18px;min-width:0;border:0;border-radius:1px;padding:0;transition:none}
.journey-segment:hover{filter:brightness(.9);outline:1px solid #243e39;z-index:2}
.journey-segment:focus-visible{z-index:3;outline-offset:1px}
.journey-segment.paused-segment{background-image:repeating-linear-gradient(45deg,transparent 0,transparent 3px,#ffffffb0 3px,#ffffffb0 5px)}
.live-end{position:absolute;top:5px;color:#384b47;font-size:9px;line-height:12px;transform:translateX(-50%);pointer-events:none}
.analysis-empty{padding:32px 20px;font-size:12px;color:#86927d;line-height:1.7}
.segment-detail{border:1px solid #efd3df;border-left:3px solid #ff006e;background:#fff8fb;border-radius:6px;padding:11px 13px;margin-bottom:16px;font-size:10px}
.segment-detail b{display:block;font-weight:600;margin-bottom:4px}
.segment-detail span{font-size:9px;color:#917683;line-height:1.6;display:block}
.patient-detail-head{display:flex;align-items:center;justify-content:space-between;margin:21px 0 12px}
.patient-detail-head h3{margin:0}
.observation-card{border:1px solid #dbe5d4;border-radius:11px;background:#fbfcf8;overflow:hidden}
.observation-card header{display:flex;align-items:center;gap:9px;padding:13px 16px;border-bottom:1px solid #e6ecdf;font-size:10px;font-weight:550}
.mini-brand{background:#ff006e;color:white;border-radius:7px;width:27px;height:27px;display:grid;place-items:center;font-size:17px;letter-spacing:-2px;padding-right:2px}
.observation-card header small{display:block;font-weight:400;font-size:8px;color:#86947c;margin-top:3px}
.record-status{font-size:8px;color:#78936e;background:#edf4e5;border-radius:10px;padding:5px 8px;margin-left:auto;font-weight:500}
.observation-time{padding:17px 16px;display:flex;align-items:center;gap:18px}
.observation-time>b{font-size:28px;font-weight:500;letter-spacing:-1px}
.observation-time>b small{font-size:12px;font-weight:400;letter-spacing:0}
.observation-time>span{font-size:10px;color:#6f826a;line-height:1.5;margin-left:auto;text-align:right}
.observation-time>span small{display:block;font-size:8px;color:#8d9a82}
.observation-stripe{display:flex;height:12px;margin:0 16px;border-radius:3px;overflow:hidden;background:#eef2e7}
.observation-stripe i{height:12px;display:block}
.activity-totals{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;padding:15px 16px}
.activity-totals>div{display:flex;flex-direction:column;gap:5px}
.activity-totals span{font-size:8px;color:#8b9880}
.activity-totals b{font-size:11px;font-weight:550}
.step-table-wrap{overflow:auto;margin-top:18px}
.observation-table{width:100%;border-collapse:collapse;font-size:9px;font-variant-numeric:tabular-nums}
.observation-table caption{text-align:left;font-size:10px;color:#64795c;margin:0 0 10px;font-weight:550}
.observation-table th,.observation-table td{padding:9px 6px;border-bottom:1px solid #e8edde;text-align:right;white-space:nowrap;font-weight:400}
.observation-table th:first-child{text-align:left;padding-left:0}
.observation-table thead{color:#8e9a82;font-size:8px}
.observation-table tbody th{color:#54704c}
.observation-table th small{display:block;font-size:8px;color:#90a084;margin-top:3px}
.observation-table th i{margin-right:6px}
.observation-table tfoot{background:#f7f9f1;font-weight:550}
.observation-table tfoot th{padding-left:6px}
.record-events{margin-top:16px;font-size:10px;color:#708666}
.record-events summary{cursor:pointer;padding:8px 0}
.record-events table{margin-top:5px}
.analysis-note{font-size:10px;line-height:1.8;color:#839276;margin:10px 0 18px}
.control-card button,.control-card select,.wide-button,.tabs button,.stat-row,.patient-row,.journey-step{font-size:14px}
.analysis-scroll h3,.chart-toolbar h3{font-size:19px;margin:0 0 6px;font-weight:650}
.chart-toolbar p,.chart-caption,.analysis-note,.analysis-plot p,.value-note,.report-details{font-size:13px;line-height:1.6;color:#64748b;max-width:none}
.analysis-note{margin:8px 0 16px}
.chart-toolbar{gap:12px;align-items:center;flex-wrap:wrap}
.analysis-modes{padding:4px;border-radius:11px}
.analysis-modes button{font-size:13px;padding:8px 11px}
.colour-toggle{font-size:13px;gap:8px;margin:16px 0}
.colour-toggle button{font-size:13px;padding:7px 12px}
.analysis-legend{font-size:12px;gap:9px 15px;margin:14px 0}
.analysis-legend i{width:9px;height:9px}
.journey-board{max-height:none;overflow:visible;border-radius:12px}
.gantt-axis,.gantt-row{grid-template-columns:75px minmax(200px,1fr) 62px;min-width:0}
.gantt-axis{height:38px;font-size:12px;position:relative}
.gantt-axis>span:first-child{padding-left:12px}
.gantt-row{height:34px;border-bottom:1px solid #f1f5f9}
.gantt-patient,.gantt-total{height:33px;font-size:13px;padding:4px 10px}
.gantt-patient{display:flex;gap:7px;align-items:center}
.gantt-patient b{font-size:13px;display:inline}
.patient-state{width:7px;height:7px;border-radius:50%;display:inline-block;flex-shrink:0;background:#111827}
.patient-state.complete{background:#00aa72}
.patient-state.live{background:#ff006e}
.gantt-total{font-size:13px}
.gantt-track{height:28px}
.journey-ribbon{top:5px;height:18px}
.journey-ribbon .journey-segment{border-radius:0}
.patient-detail-head{margin:0 0 16px;gap:12px;flex-wrap:wrap}
.patient-detail-head p{font-size:13px;color:#64748b;margin:5px 0}
.patient-actions{display:flex;gap:8px}
.patient-actions button{font-size:13px;padding:8px 10px;display:flex;align-items:center;gap:6px}
.patient-actions button[aria-pressed=true]{background:#111827;color:white}
.segment-detail,.segment-detail span{font-size:13px;line-height:1.6}
.observation-card header{font-size:14px}
.observation-card header small,.observation-time>span small,.record-status,.activity-totals span{font-size:12px}
.observation-time>span{font-size:14px}
.activity-totals b{font-size:16px}
.observation-table,.observation-table thead,.observation-table caption{font-size:13px}
.observation-table th small{font-size:12px}
.record-events{font-size:13px}
.step-table-wrap{overflow-x:auto}
.live-patient-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.live-patient{border:1px solid #e5e7eb;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px;text-align:left;background:white;font-weight:400}
.live-patient>span{display:flex;align-items:center;justify-content:space-between}
.live-patient b{font-size:15px}
.live-patient strong{font-size:13px;font-weight:500}
.live-patient small{font-size:12px;line-height:1.4;color:#64748b}
.live-patient.selected{border-color:#00c984;background:#eafff5}
.patient-detail-head{margin-bottom:8px}
.patient-actions{margin-left:auto}
#patient-selection .patient-detail-head{margin:0;align-items:center}
#patient-selection .segment-detail{margin-top:8px;margin-bottom:8px}
.chart-toolbar p{margin:0}
.colour-toggle{margin:10px 0}
.analysis-legend{margin:12px 0}
.analysis-modes button{padding:7px 10px}
.live-patient-grid{margin-top:12px}
#analysis-journeys .chart-toolbar{display:inline-flex}
#analysis-journeys .chart-toolbar>div:first-child{display:none}
#analysis-journeys .colour-toggle{display:inline-flex;float:right;margin:0}
#analysis-journeys .analysis-legend{clear:both;padding-top:12px;margin:0 0 12px}
.chart-options{float:right;font-size:12px;max-width:100%}
.chart-options>summary{cursor:pointer;padding:9px;color:#64748b}
.chart-options[open]{float:none;background:#f8fafc;padding:8px 12px;border-radius:10px;margin:10px 0}
.chart-options[open] .colour-toggle{float:none!important;display:flex!important}
.chart-options[open] .analysis-legend{padding-top:8px!important}
.journey-board{clear:both;margin-top:14px}
#analysis-journeys .analysis-modes button[data-analysis-mode=totals]{display:none}
#analysis-journeys:has(.chart-options[open]) .analysis-modes button[data-analysis-mode=totals]{display:block}
.patient-detail-head{clear:both}
.history-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.history-toolbar label{font-size:13px;margin-right:auto}
.history-toolbar select{margin-left:8px;font:inherit;padding:8px;border:1px solid #e5e7eb;border-radius:9px;background:#fff}
.history-toolbar button,.history-results button{font-size:13px;padding:8px 12px}
.history-list article{padding:18px 0;border-top:1px solid #e5e7eb}
.history-name{display:flex;justify-content:space-between;gap:12px;align-items:center}
.history-name span,.history-key,#history-status{font-size:12px;color:#64748b}
.history-bar{display:flex;height:12px;margin:12px 0;border-radius:20px;overflow:hidden;background:#f8fafc}
.history-bar i{background:#00d88c}
.history-bar span{background:#e2e8f0}
.history-results{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.history-results span{font-size:13px;color:#64748b}
.history-results button{margin-left:auto}
.history-empty{padding:28px 0}
.flow-card{padding:22px;background:white;border:1px solid #e3e8ee;border-radius:18px;margin:16px 0;box-shadow:0 2px 5px #11182703}
.flow-card-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:16px}
.flow-card h3,.flow-aim h3{margin:5px 0 0;font-size:18px;line-height:1.35;letter-spacing:-.4px;color:#111827}
.flow-eyebrow{font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:650;color:#64748b}
.flow-card-head button{border:1px solid #e5e7eb;background:white;font-size:12px;white-space:nowrap;padding:8px 12px}
.flow-unit,.flow-chart-note{font-size:12px;color:#64748b}
.flow-chart-note{margin-top:8px}
.flow-card svg{display:block;width:100%;height:auto;overflow:visible}
.flow-card svg text{fill:#64748b;font:12px Inter,system-ui,sans-serif}
.flow-card svg circle:not(.plan-dot):not(.plan-hit){transition:r .12s}
.flow-card svg circle:not(.plan-dot):not(.plan-hit):hover{r:6;stroke:#111827;stroke-width:1}
.flow-aim{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 18px;padding:4px 0 8px}
.flow-aim h3{font-size:16px;max-width:460px}
.flow-aim label{color:#64748b;font-size:11px;display:flex;flex-direction:column;gap:5px;flex-shrink:0}
.flow-aim select{padding:9px 12px;border-radius:10px;border:1px solid #dce3e9;background:white;font:13px Inter,system-ui,sans-serif;color:#111827;max-width:210px}
.flow-lead-numbers{display:grid;grid-template-columns:1fr 1fr 1fr;margin:12px 0 20px;gap:16px}
.flow-lead-numbers>div{border-right:1px solid #e9edf2}
.flow-lead-numbers>div:last-child{border:0}
.flow-lead-numbers b{font-size:32px;display:block;letter-spacing:-1px;color:#111827}
.flow-lead-numbers b small{font-size:13px;font-weight:400;letter-spacing:0}
.flow-lead-numbers span{font-size:12px;color:#64748b;display:block;margin-top:4px}
.flow-stream-ribbon{display:flex;overflow:hidden;border-radius:99px;height:24px;background:#f1f5f9}
.flow-stream-labels,.flow-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:#64748b;align-items:center;margin-top:12px}
.flow-stream-labels span,.flow-legend span{display:flex;align-items:center;gap:6px}
.flow-stream-labels i,.flow-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}
.flow-stream-labels b{color:#334155;font-weight:600}
.flow-legend{margin:0 0 12px}
.flow-balancing{padding:18px 0 0}
.flow-balancing>div{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}
.flow-balancing article{background:#fff;padding:15px;border:1px solid #e3e8ee;border-radius:14px}
.flow-balancing article>span{color:#64748b;font-size:12px;display:block}
.flow-balancing b{font-size:24px;display:block;margin-top:8px}
.flow-balancing small{font-size:11px;font-weight:400}
.flow-balancing .unmodelled{font-size:14px;color:#64748b;margin-top:13px}
.flow-empty{padding:40px 12px;text-align:center;color:#94a3b8;font-size:14px}
.live-table{width:100%}
.live-table-head,.live-patient-row{display:grid;grid-template-columns:70px 1fr 100px 85px;gap:16px;align-items:center;width:100%;text-align:left}
.live-table-head{font-size:11px;color:#64748b;padding:10px 14px}
.live-patient-row{padding:13px 14px;border:0;border-bottom:1px solid #e9edf2;border-radius:0;background:white;font-size:13px}
.live-patient-row:hover,.live-patient-row.selected{background:#e9fff5}
.live-state{font-size:11px;width:fit-content;border-radius:20px;padding:4px 9px}
.live-state.care{background:#dcfce7;color:#047857}
.live-state.waiting{background:#fff0f6;color:#be185d}
.live-state.walking{background:#f5e8ed;color:#800020}
.history-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.history-chart-grid .flow-card{margin:0}
.history-chart-grid h3{font-size:16px}
.history-chart-grid .flow-card-head{margin-bottom:10px}
.history-chart-grid svg text{font-size:12px}
.history-toolbar{padding:18px 28px 0;gap:12px}
.history-toolbar label{margin:0;display:flex;align-items:center;gap:8px}
.history-toolbar select{margin:0}
.history-toolbar #history-cycles{margin-left:auto}
.history-toolbar button{background:white;border:1px solid #e5e7eb}
.history-dashboard{padding:0 28px 24px}
.history-dashboard .flow-aim{padding-top:12px}
.history-source-note{font-size:12px;color:#64748b}
.history-driver .flow-lead-numbers{grid-template-columns:1fr 1fr 1fr;max-width:650px}
.history-driver .flow-card-head{margin-bottom:0}
.history-records{margin:20px 0 0;font-size:13px;color:#64748b}
.history-records table{width:100%;border-collapse:collapse;margin-top:12px;background:white}
.history-records td,.history-records th{padding:12px;text-align:left;border-bottom:1px solid #e5e7eb;font-size:12px}
.history-records button{font-size:12px;padding:5px 10px}
.history-records summary{padding:12px 0}
.history-note{padding:12px 28px 24px;font-size:12px;color:#64748b}
.history-safety{display:flex;align-items:center;gap:12px;padding:18px;border:1px dashed #cbd5e1;border-radius:14px;margin-top:18px;background:white}
.history-safety b{font-size:13px}
.history-safety span{font-size:12px;color:#64748b}
.history-dashboard .flow-aim{padding:0;margin:12px 0}
.history-dashboard .flow-aim h3{font-size:14px}
.history-driver .flow-lead-numbers{margin:12px 0 10px}
.history-driver .flow-lead-numbers b{font-size:29px}
.history-driver .flow-card-head{margin-bottom:8px}
.history-driver{padding:20px}
.history-toolbar{padding-top:14px}
.flow-aim{margin-bottom:8px;padding:0}
.flow-lead-numbers{margin:8px 0 14px}
.flow-lead-numbers b{font-size:28px}
.stream-summary .flow-card-head{margin-bottom:10px}
.flow-aim h3{font-size:14px}
.flow-card-head .flow-eyebrow{font-size:10px}
.flow-card svg{max-height:280px}
.flow-paired{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.flow-paired>.flow-card{margin:0}
.flow-paired .flow-card-head h3{font-size:15px}
.flow-paired .flow-card{padding:16px}
.flow-paired .flow-legend{gap:8px;font-size:11px}
.history-chart-grid svg text{font-size:18px}
.flow-paired svg text{font-size:20px}
.history-phase-key{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;color:#64748b;margin:12px 0}
.history-phase-key span{display:flex;align-items:center;gap:7px}
.history-phase-key i{width:9px;height:9px;border-radius:50%;background:#94a3b8}
.history-phase-key span+span i{background:#00a979}
.history-annotations,.history-method{margin:14px 0;color:#475569;font-size:13px}
.history-annotations summary{font-weight:650;cursor:pointer}
.history-annotations summary>span{margin-left:8px;border-radius:20px;padding:2px 8px;background:#e8fff5;color:#007a55}
.history-annotations>div{display:grid;gap:8px;margin-top:12px}
.history-annotations button,.history-annotations article{display:grid;grid-template-columns:90px 1fr;text-align:left;gap:4px 12px;border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:white;color:#111827;font:inherit}
.history-annotations small{grid-column:2;color:#64748b;line-height:1.5}
.history-annotations button:hover{border-color:#00b981}
.history-method p{line-height:1.65}
.observation-report>small{color:#64748b}
.drawer .history-chart-grid{grid-template-columns:1fr}
.drawer .flow-card{padding:17px;margin:14px 0;border-radius:16px}
.drawer .flow-card h3{font-size:17px;letter-spacing:-.3px}
.drawer .flow-card-head{margin-bottom:12px;align-items:baseline}
.drawer .flow-balancing>div{grid-template-columns:repeat(3,minmax(0,1fr))}
.drawer .flow-balancing{padding-top:4px}
.drawer .flow-balancing article{padding:12px}
.drawer .flow-lead-numbers{margin:14px 0}
.drawer .flow-lead-numbers b{font-size:28px}
.drawer .flow-legend{gap:12px}
.drawer .flow-stream-labels{gap:8px 14px}
.drawer .gantt-axis,.drawer .gantt-row{grid-template-columns:48px minmax(0,1fr) 62px}
.drawer .gantt-patient{gap:7px}
.drawer .gantt-row{min-height:44px;padding-top:4px;padding-bottom:4px}
.drawer .gantt-patient b{font-size:14px}
.drawer .patient-detail-head{gap:10px;align-items:center}
.drawer .patient-detail-head h3{font-size:16px;margin:0}
.drawer .patient-detail-head p{font-size:12px;margin:4px 0}
.drawer .patient-actions{display:flex;gap:5px;flex-wrap:wrap}
.drawer .patient-actions button{padding:7px 9px;font-size:12px}
.drawer.history-view>#learn-status{display:none}
.drawer.history-view #learn-content{padding-top:4px}
.history-priority{display:flex;align-items:flex-end;gap:12px;justify-content:space-between}
.history-priority>label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#64748b;flex:1}
.history-priority select{width:100%;max-width:340px;font-size:15px;padding:10px;border:1px solid #dce4e9;border-radius:10px;background:white;color:#111827}
.history-measures{position:relative;flex-shrink:0}
.history-measures summary{font-size:13px;cursor:pointer;border:1px solid #dce4e9;border-radius:10px;background:white;padding:11px}
.history-measures>div{position:absolute;right:0;top:44px;width:280px;max-width:65vw;padding:12px;background:white;border:1px solid #dce4e9;box-shadow:0 8px 25px #11182718;border-radius:12px;z-index:5}
.history-measures label{display:flex!important;flex-direction:row!important;gap:10px;align-items:center;padding:8px 0;font-size:13px!important}
.history-measures input{width:16px!important;accent-color:#00a979}
.history-goal{font-size:13px;color:#475569;line-height:1.5;margin:12px 0}
.history-goal span{color:#64748b}
.history-notes{font-size:13px;color:#64748b}
.history-notes summary{cursor:pointer}
.history-notes p{line-height:1.5}
.history-chart-grid .flow-card{margin-top:0}
.drawer.history-view #learn-close{position:absolute;right:16px;top:13px;width:32px;height:32px;padding:2px;font-size:21px}
.drawer.history-view #learn-content{padding-top:14px}
.drawer.history-view .flow-card{padding:17px}
.drawer.history-view .flow-lead-numbers{margin:12px 0 14px}
.drawer.history-view .flow-lead-numbers b{font-size:28px}
.drawer #analysis-journeys .chart-toolbar{margin:0}
.drawer #analysis-journeys .journey-board{margin-top:10px}
.drawer #patient-selection .patient-detail-head{clear:none}
.drawer #patient-selection .patient-actions{padding-right:8px}
.drawer.history-view .priority-chart .flow-lead-numbers{display:flex;gap:22px;margin:10px 0 14px}
.drawer.history-view .priority-chart .flow-lead-numbers>div{display:flex;align-items:baseline;gap:7px;border:0}
.drawer.history-view .priority-chart .flow-lead-numbers b{font-size:21px;letter-spacing:-.4px}
.drawer.history-view .priority-chart .flow-lead-numbers span{font-size:11px;margin:0}
.drawer.history-view .priority-chart .flow-card-head{margin-bottom:8px}
.flow-interval-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;font-size:13px;color:#475569}
.flow-interval-setting select{padding:7px;border:1px solid #dce4e9;border-radius:8px;background:white;font-size:13px}
.drawer.history-view .priority-chart{border:1px solid #e3e8ee}
.drawer.history-view .priority-badge{display:inline-block;padding:5px 8px;border-radius:6px;background:#f1efff;color:#6450a6;letter-spacing:.5px}
.drawer.history-view .flow-card svg text{font:12px Inter,system-ui,sans-serif}
.drawer.history-view .flow-card h3{font-size:18px}
.drawer.history-view .flow-lead-numbers{display:flex;gap:22px;margin:10px 0 14px;flex-wrap:wrap}
.drawer.history-view .flow-lead-numbers>div{display:flex;align-items:baseline;gap:7px;border:0}
.drawer.history-view .flow-lead-numbers b{font-size:21px;letter-spacing:-.4px}
.drawer.history-view .flow-lead-numbers span{font-size:11px;margin:0}
.drawer.history-view .flow-card-head{margin-bottom:8px}
.history-measures>div{max-height:50vh;overflow:auto}
.change-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
.change-heading h3{margin:0;font-size:20px;letter-spacing:-.4px}
.change-heading p{margin:4px 0 0;font-size:13px;color:#64748b}
.drawer .change-heading button{font-size:12px;padding:7px 9px;white-space:nowrap}
.change-list{border:1px solid #e2e8f0;background:#fff;border-radius:14px;overflow:hidden}
.change-row{display:grid;grid-template-columns:25px minmax(0,1fr) 30px;gap:10px;padding:14px;border-bottom:1px solid #edf1f4;align-items:start}
.change-row:last-child{border-bottom:0}
.change-number{font-size:12px;color:#64748b;background:#f1f5f9;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;margin-top:5px}
.drawer .change-row select{width:100%;font-size:14px;padding:7px 9px}
.drawer .change-row>button{padding:2px;border:0;background:none;font-size:22px;color:#64748b}
.change-price{display:block;color:#64748b;font-size:12px;margin:5px 0}
.idea-detail summary{font-size:12px;color:#475569;cursor:pointer}
.idea-detail p{font-size:13px;color:#475569;line-height:1.5;margin:8px 0}
.change-empty{padding:14px;font-size:14px;color:#64748b;margin:0}
.change-apply{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0 16px;border-bottom:1px solid #dce4e9;font-size:13px;color:#475569}
.change-apply b{color:#111827}
.change-apply small{display:block;font-size:12px;color:#64748b;margin-top:3px}
.change-apply button{font-size:14px!important;white-space:nowrap}
.change-budget,.change-batch,.change-coaching,.test-checks,.change-history{border-bottom:1px solid #e2e8f0;padding:12px 0;font-size:13px;color:#475569}
.change-budget summary,.change-batch summary,.change-coaching summary,.test-checks summary,.change-history summary{cursor:pointer;font-weight:600}
.change-budget p,.change-batch p,.change-coaching p,.decision-help{font-size:12px;line-height:1.5;color:#64748b}
.change-coaching>div{padding-top:14px}
.change-coaching b{font-size:13px;color:#334155}
.change-last{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;padding:14px 0}
.change-last>span{color:#64748b}
.change-last b{font-weight:550}
.drawer .change-last button{margin-left:auto;font-size:12px;padding:7px 9px}
.change-result{background:white;border:1px solid #e2e8f0;border-radius:14px;padding:16px;margin-bottom:12px}
.change-result h4{margin:0 0 10px;font-size:15px}
.change-result>div{display:flex;justify-content:space-between;padding:8px 0;font-size:14px;border-bottom:1px solid #f1f5f9}
.change-result small{display:block;font-size:11px;color:#64748b;margin-top:12px}
.change-history article{background:white;border:1px solid #e2e8f0;border-radius:12px;padding:14px;margin-top:12px}
.change-history h4{margin:6px 0;font-size:14px}
.change-history p,.change-history small{font-size:12px;color:#64748b}
.change-decisions{display:flex;gap:8px;margin:10px 0}
.drawer .change-decisions button{font-size:12px;padding:7px 10px}
.experiment-setup{border:1px solid #dce5ea;border-radius:14px;padding:12px;background:#fff;margin-bottom:18px}
.experiment-slots{display:flex;flex-wrap:wrap;gap:8px}
.idea-chip{display:flex;align-items:center;gap:10px;flex:1 1 200px;background:#f0fcf6;border:1px solid #bcebd8;border-radius:10px;padding:10px}
.idea-chip b{display:block;font-size:14px}
.idea-chip small{display:block;font-size:12px;color:#64748b;margin-top:4px}
.drawer .idea-chip button{border:0;background:transparent;padding:2px 6px;margin-left:auto;font-size:20px}
.setup-status{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#526579;padding-top:10px}
.setup-status small{font-size:12px}
.idea-catalog{margin-top:12px;border-top:1px solid #e2e8f0;padding-top:10px}
.idea-themes{display:flex;gap:6px;flex-wrap:wrap}
.idea-themes #close-ideas{margin-left:auto}
.drawer .idea-themes button{font-size:12px;padding:7px 9px;border-radius:8px}
.drawer .idea-themes button[aria-pressed=true]{background:#172033;color:white}
.idea-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 0}
.drawer .idea-options button{text-align:left;white-space:normal;border:1px solid #dce5ea;background:#fff;padding:12px;border-radius:10px;display:flex;flex-direction:column;gap:6px}
.drawer .idea-options button:hover{border-color:#00b57b;background:#f4fff9}
.idea-options b{font-size:14px}
.idea-options span{font-size:12px;line-height:1.4;color:#475569}
.idea-options small{font-size:11px;line-height:1.4;color:#64748b}
.prediction-inline{font-size:12px!important;margin:14px 0 0!important}
.prediction-inline>span{color:#94a3b8;font-weight:400}
.prediction-inline input{font-size:13px!important;width:100%;box-sizing:border-box;margin-top:6px}
.experiment-setup .change-apply{padding:10px 0 0;border:0}
.experiment-table{border:1px solid #dce5ea;border-radius:14px;background:white;overflow:hidden}
.experiment-columns,.experiment-row{display:grid;grid-template-columns:minmax(0,2.1fr) 45px minmax(0,1.2fr) 70px;gap:12px;align-items:center;padding:12px 14px}
.experiment-columns{background:#f1f5f9;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#64748b;font-weight:650}
.experiment-entry+.experiment-entry{border-top:1px solid #e2e8f0}
.experiment-row{min-height:76px;font-size:14px}
.experiment-row small{display:block;font-size:11px;color:#64748b;line-height:1.4;margin-top:4px}
.experiment-row>span>b{font-size:18px}
.drawer .experiment-row button{border:0;background:transparent;padding:0;white-space:normal;text-align:left;font-size:14px;line-height:1.4;border-radius:4px}
.drawer .experiment-row button:hover{color:#00845d}
.experiment-name b{font-weight:600}
.experiment-result b{font-size:18px}
.experiment-decision{font-size:12px;color:#64748b;text-transform:capitalize}
.experiment-act{padding:0 14px 12px;display:flex;justify-content:flex-end;gap:6px}
.drawer .experiment-act button{font-size:12px;padding:7px 12px;border-radius:8px;background:#f8fafc}
.experiment-detail{border-top:1px solid #edf1f4;background:#f8fafc;padding:12px 14px;max-height:300px;overflow:auto}
.experiment-detail p{font-size:13px!important;margin:0 0 4px!important}
.experiment-detail>small{font-size:11px;color:#64748b}
.experiment-detail table{width:100%;border-collapse:collapse;font-size:12px;margin-top:12px}
.experiment-detail th,.experiment-detail td{text-align:right;padding:8px;border-bottom:1px solid #e2e8f0}
.experiment-detail th:first-child,.experiment-detail td:first-child{text-align:left}
.experiment-detail th{font-weight:600;color:#64748b}
.experiment-footnote{font-size:11px!important;line-height:1.5!important;color:#64748b!important;margin:12px 0!important}
.history-budget{margin-bottom:14px}
.history-budget .play-budget{margin:8px 0}
.history-budget small{font-size:11px;color:#64748b}
.experiment-setup:has(#edit-setup){padding:8px 12px}
.experiment-setup:has(#edit-setup) .setup-status{padding:0}
.plan-number{display:inline-grid;place-items:center;background:#111827;color:white;border-radius:50%;min-width:24px;height:24px;padding:0 4px;font-size:11px;margin-right:4px;vertical-align:middle}
.hint-grid{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.drawer .hint-grid button{font-size:13px;padding:9px 12px;border-radius:9px}
.drawer .hint-grid button[aria-pressed=true]{background:#111827;color:white}
.hint-card{background:white;border:1px solid #dce5ea;border-radius:14px;padding:20px}
.hint-card h3{font-size:21px;margin:8px 0 12px}
.hint-card p{font-size:15px!important;line-height:1.65!important;color:#475569!important}
.hint-card button{font-size:13px!important;margin-top:10px}
.hint-example,.hint-checks{padding:16px 0;border-bottom:1px solid #e2e8f0;font-size:13px}
.hint-example p{font-size:14px!important}
.hint-example summary,.hint-checks summary{cursor:pointer;font-weight:600}
#report-options .flow-interval-setting{min-width:135px}
.back-overview{border:0;background:none;color:#475569;padding:5px 0 14px;cursor:pointer;font-size:14px}
.value-stream-link .flow-card-head{margin-bottom:0}
.resource-legend{display:flex;flex-wrap:wrap;gap:10px 15px;font-size:12px;color:#475569;margin:15px 0 20px}
.resource-legend span{display:flex;align-items:center;gap:6px}
.resource-legend i{width:10px;height:10px;display:block;border-radius:50%;border:1px solid #dce3e9}
.resource-chart{border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;background:white}
.resource-axis,.resource-row{display:grid;grid-template-columns:120px minmax(0,1fr) 70px;gap:14px;padding:15px 16px;align-items:center}
.resource-axis{background:#f1f5f9;font-size:12px;color:#64748b;padding-top:17px;padding-bottom:17px}
.resource-axis>div{position:relative;height:16px;margin-right:3px}
.resource-axis>div span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.resource-axis>div span:first-child{transform:none}
.resource-axis>div span:last-child{transform:translateX(-100%)}
.resource-row{border-top:1px solid #edf1f4;min-height:62px;font-size:13px}
.resource-row b{font-weight:600}
.resource-row small{display:block;color:#64748b;font-size:11px;margin-top:4px}
.resource-track{height:24px;position:relative;background:#fafbfd;border-radius:99px;overflow:hidden}
.resource-segment{position:absolute;top:0;height:100%;border-radius:0}
.resource-segment:focus{outline:2px solid #111827;outline-offset:-2px;z-index:1}
.resource-paused{background-image:repeating-linear-gradient(45deg,transparent,transparent 4px,#ffffff88 4px,#ffffff88 6px)}
.resource-percent{text-align:right}
.resource-definition{font-size:12px;color:#64748b;margin-top:15px}
.resource-definition summary{cursor:pointer}
.resource-definition p{font-size:13px;line-height:1.5}
.resource-row{min-height:54px;padding-top:10px;padding-bottom:10px}
.resource-legend{margin:12px 0 15px}
.resource-axis{padding-top:14px;padding-bottom:14px}
.flow-tag-mark{display:block;width:29px;height:auto;object-fit:contain;flex-shrink:0}
.carried-setup{margin-top:10px;font-size:13px;color:#475569}
.carried-setup summary{cursor:pointer}
.carried-setup>div{padding-top:6px}
.carried-idea{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #edf1f4}
.carried-idea small{font-size:11px;color:#64748b}
.drawer .carried-idea button,.drawer #reset-baseline{font-size:12px;border:0;background:transparent;padding:5px 7px;color:#64748b}
.drawer .next-plan{margin-top:12px;width:100%;padding:12px;background:#ecfff6;border:1px solid #bcebd8;border-radius:10px;font-size:14px;text-align:left}
.plan-draft-heading{display:flex;align-items:center;gap:12px;margin:18px 0 10px;font-size:13px}
.plan-draft-heading>span{color:#64748b}
.plan-draft-note{font-size:12px!important;color:#64748b!important;margin:12px 0 0!important}
.comms-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px}
.comms-metrics>div{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
.comms-metrics span,.comms-metrics small{font-size:12px;color:#64748b}
.comms-metrics b{font-size:28px;color:#111827}
.comms-metrics b small{font-size:16px}
.comms-filter{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.comms-filter button{border:1px solid #e2e8f0;border-radius:20px;padding:7px 13px;background:#fff;font-size:13px;color:#475569}
.comms-filter button[aria-pressed=true]{background:#111827;border-color:#111827;color:#fff}
.comms-filter>span{margin-left:auto;color:#64748b;font-size:12px}
.comms-log{display:grid;gap:10px}
.comms-entry{border:1px solid #e2e8f0;border-left:3px solid #cbd5e1;border-radius:12px;padding:14px 16px;background:#fff}
.comms-entry.positive{border-left-color:#00bd83}
.comms-entry.pressure,.comms-entry.safety{border-left-color:#ff006e}
.comms-entry.idea{border-left-color:#8b5cf6}
.comms-entry-head{display:flex;align-items:center;gap:8px;font-size:12px;color:#64748b;flex-wrap:wrap}
.comms-entry-head b{color:#111827;font-size:14px}
.comms-entry time{margin-left:auto;font-variant-numeric:tabular-nums}
.comms-entry p{font-size:14px;line-height:1.6;margin:10px 0;color:#334155}
.comms-entry footer{display:flex;align-items:center;gap:10px;font-size:12px;flex-wrap:wrap}
.comms-basis{background:#f1f5f9;color:#475569;padding:3px 8px;border-radius:6px}
.comms-entry footer button{margin-left:auto;background:transparent;border:0;font-size:12px;color:#334155;padding:5px 0}
.comms-notes{margin-top:18px;font-size:12px;color:#64748b;line-height:1.65}
.comms-notes summary{cursor:pointer}
.patient-feedback{padding:14px;background:#f8fafc;border-radius:12px;display:grid;gap:6px;font-size:13px;margin-bottom:12px}
/* Bind the common primitives to the standalone report's semantic controls. */
.rail-choice-menu{display:flex;width:max-content;align-items:center;gap:4px;padding:6px}.rail-choice-menu>span{font-size:12px;color:#64748b;padding:0 8px}.control-rail .rail-choice-menu button{width:42px;min-height:42px;justify-content:center;padding:6px}.rail-choice-menu button[aria-pressed=true]{background:#e7fff4;color:#07563d}.report-tabs{gap:12px;flex-wrap:wrap}.report-tabs #filters-toggle{margin-left:auto;font-size:12px;display:flex;align-items:center;gap:4px;padding:7px 2px;color:#475569}.report-tabs #filters-toggle .ph-icon{width:15px;height:15px}.report-tabs #archive-toggle{margin-left:0}.report-tabs .ph-icon{color:#000}.archive-tools label.flow-interval-setting{display:flex;align-items:center;justify-content:space-between;gap:12px}.flow-interval-setting select{width:auto;max-width:170px}.report-stat{display:flex;gap:5px}.report-stat button[aria-pressed=true]{background:#e7fff4;color:#07563d}.report-export>summary{font-size:13px}.report-export[open]{display:grid;gap:12px}.report-export>*:not(summary){margin-top:10px}.drawer-foot{flex-shrink:0;border-top:1px solid #e2e8f0;background:#fff;padding:8px 20px;font-size:11px;color:#64748b}.drawer-foot details{margin:0;font-size:12px}.drawer-foot button{margin:8px 6px 0 0}.report-summary>div{min-height:78px;padding:11px 12px;gap:6px}.report-summary header{display:flex;align-items:center;justify-content:space-between;gap:6px}.report-summary header .ph-icon{width:15px;height:15px}.saved-context{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.saved-context h2{font-size:16px;margin:0}.flow-card{padding:17px;margin:14px 0;border-radius:16px}.flow-card h3{font-size:17px;letter-spacing:-.3px}.flow-card-head{margin-bottom:12px;align-items:baseline}.flow-card svg{display:block;width:100%;height:auto;max-height:280px}.flow-card svg text{font:12px Inter,system-ui,sans-serif;fill:#64748b}.flow-card svg [role=button]{cursor:pointer}.flow-card svg [role=button]:focus{outline:2px solid #111827}.flow-balancing>div{grid-template-columns:repeat(3,minmax(0,1fr))}.flow-balancing article{padding:12px}.flow-lead-numbers{margin:14px 0;display:flex;gap:22px;flex-wrap:wrap}.flow-lead-numbers>div{border:0}.flow-lead-numbers b{font-size:28px}.flow-legend{gap:12px}.priority-chart .flow-lead-numbers{margin:10px 0 14px}.priority-chart .flow-lead-numbers>div{display:flex;align-items:baseline;gap:7px}.priority-chart .flow-lead-numbers b{font-size:21px;letter-spacing:-.4px}.priority-chart .flow-lead-numbers span{font-size:11px;margin:0}.priority-badge{display:inline-block;padding:5px 8px;border-radius:6px;background:#f1efff;color:#6450a6;letter-spacing:.5px}.priority-chart .flow-card-head{margin-bottom:8px}.history-chart-grid{display:grid;grid-template-columns:1fr;gap:16px}.history-priority{margin:2px 0 24px}.history-priority select{font-size:13px;padding:10px 12px}.history-measures>div{z-index:8;max-height:50vh;overflow:auto}.history-measures button{margin-left:auto;display:block}.play-budget{display:flex;gap:30px;background:#ecfff6;border:1px solid #96e3c5;border-radius:14px;padding:20px}.play-budget>div{flex:1}.play-budget b{font-size:24px;display:block}.play-budget span{display:block;margin-top:6px;font-size:12px;color:#475569}.history-records{overflow:auto}.analysis-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 0;margin-bottom:12px}.analysis-filters label{font-size:12px;color:#64748b;display:grid;gap:5px}.analysis-filters input,.analysis-filters select{width:100%;min-width:0;border:1px solid #dce4e9;border-radius:8px;padding:8px;font-size:12px}.filter-scope{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#64748b;margin-bottom:12px}.filter-scope button{font-size:11px;padding:5px 8px}.journey-panel{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:12px 14px}.chart-toolbar h3{font-size:16px;margin:0}.chart-toolbar p{font-size:12px;color:#64748b;max-width:300px;line-height:1.5}.analysis-modes button{font-size:12px;padding:7px 9px;color:#475569}.analysis-modes button.active,.colour-toggle button[aria-pressed=true]{background:#e7fff4;color:#07563d}.chart-options summary{font-size:12px;color:#64748b}.colour-toggle{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:12px;margin:12px 0}.colour-toggle button{font-size:12px}.journey-board{margin-top:12px;max-height:400px;border-color:#e2e8f0;scrollbar-gutter:auto}.gantt-axis,.gantt-row{grid-template-columns:65px minmax(0,1fr) 62px;min-width:0;gap:8px}.gantt-axis{font-size:11px;background:#f1f5f9;padding:0 8px}.gantt-row{min-height:44px;height:44px;padding:4px 8px;background:#fff}.gantt-patient{display:flex;align-items:center;gap:6px;padding:4px 0}.gantt-patient b{font-size:12px}.patient-state{width:6px;height:6px;border-radius:50%;background:#94a3b8}.patient-state.complete{background:#00a979}.gantt-total{font-size:12px;padding:4px 0}.gantt-track{background-image:linear-gradient(to right,#e8edf1 1px,transparent 1px)}.chart-caption{font-size:12px;color:#64748b;line-height:1.6}.patient-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.patient-detail-head h3{font-size:16px}.patient-detail-head p{font-size:12px;color:#64748b}.patient-actions{display:flex;gap:5px}.patient-actions button{font-size:12px}.observation-card{background:#fff;border-color:#dce4e9}.observation-card header{font-size:14px;color:#111827}.observation-card header img{width:30px;height:30px;object-fit:contain}.observation-card header small{font-size:11px;color:#64748b}.observation-time{color:#111827}.observation-time>span{font-size:13px}.observation-stripe{height:16px}.observation-stripe i{height:16px}.activity-totals{grid-template-columns:repeat(3,1fr)}.activity-totals span{font-size:12px;color:#64748b}.activity-totals b{font-size:14px}.observation-table{font-size:12px;color:#334155}.observation-table caption{font-size:12px;color:#64748b;margin-top:14px}.observation-table thead{font-size:11px;color:#64748b}.observation-table th:first-child{white-space:normal}.observation-table th small{font-size:11px;color:#64748b}.observation-table tbody th{color:#334155}.record-status{font-size:11px}.segment-detail{font-size:13px}.segment-detail span{font-size:12px}.live-table{background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden}.live-table-head,.live-patient-row{grid-template-columns:65px minmax(0,1fr) 100px 80px;gap:12px}.live-state.service{background:#dcfce7;color:#047857}.live-state.wait{background:#fff0f6;color:#be185d}.live-state.travel{background:#f5e8ed;color:#800020}.resource-track>span{position:absolute;top:0;height:100%;display:block}.resource-track>span:focus{outline:2px solid #111827;outline-offset:-2px}.value-stream{display:flex;gap:12px;overflow:auto}.value-stream article{min-width:170px;flex:1;border:1px solid #e2e8f0;border-radius:12px;padding:12px}.value-stream h4{border-top:4px solid;padding-top:10px;margin:6px 0 12px;font-size:14px}.value-stream article>span{font-size:11px;color:#64748b}.value-stream p{display:flex;gap:6px;align-items:center;font-size:12px}.value-stream p b{margin-left:auto}.value-stream i{width:8px;height:8px;border-radius:50%}.comms-entry{background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin:10px 0;padding:14px}.comms-entry header{display:flex;justify-content:space-between;font-size:12px}.comms-entry time{color:#64748b}.comms-entry p{font-size:14px}.change-heading h3{font-size:20px;margin:0}.change-heading p{font-size:13px;color:#64748b;margin:6px 0 0}.change-apply .primary{background:#00f5a0}.prediction-inline input{font-size:13px;width:100%;padding:9px;border:1px solid #dce4e9;border-radius:8px;margin-top:6px}.experiment-table button{font:inherit;color:inherit}.experiment-columns,.experiment-row{grid-template-columns:minmax(0,2.1fr) 45px minmax(0,1.2fr) 70px}.experiment-footnote{font-size:11px;color:#64748b;line-height:1.5}.hint-grid{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}.hint-grid button{font-size:13px;padding:9px 12px}.hint-grid button[aria-pressed=true]{background:#111827;color:#fff}.hint-card{background:white;border:1px solid #dce5ea;border-radius:14px;padding:20px}.hint-card p{color:#475569;font-size:15px;line-height:1.65}.hint-example,.hint-checks{padding:16px 0;border-bottom:1px solid #e2e8f0;font-size:13px}.hint-example p{font-size:14px}
@media(max-width:700px){.report-tabs{gap:8px;padding:0 10px}.report-tabs>button{font-size:12px}.report-tabs #filters-toggle{font-size:11px}.report-tabs #filters-toggle .ph-icon{display:none}.chart-toolbar{flex-wrap:wrap}.analysis-modes button{font-size:11px;padding:7px}.flow-card{padding:14px}.flow-card h3{font-size:16px}.flow-unit{font-size:11px}.flow-balancing>div{gap:6px}.flow-balancing article{padding:9px}.flow-balancing b{font-size:21px}.analysis-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-detail-head{flex-wrap:wrap}.live-table-head,.live-patient-row{grid-template-columns:50px minmax(80px,1fr) 65px 55px;gap:6px;font-size:12px}.resource-axis,.resource-row{grid-template-columns:80px minmax(0,1fr) 55px;padding:12px 8px;gap:8px}.experiment-columns,.experiment-row{grid-template-columns:minmax(0,1.6fr) 36px minmax(0,1fr) 55px;gap:8px;padding:10px}.idea-options{grid-template-columns:1fr}.history-priority select{font-size:12px}.history-measures summary{font-size:12px;padding:10px}.play-budget{padding:14px}.history-chart-grid svg text{font-size:12px}}

/* Willow's plan picker stays a full-width slot, with the same compact cancel action. */
.experiment-slots{display:flex;flex-wrap:wrap;gap:8px}
.drawer #idea-picker{border:1px dashed #b6c4ce;background:#f8fafc;padding:12px;font-size:14px;flex:1;min-height:58px;text-align:left;border-radius:10px;font-weight:400}
.plan-draft-heading [data-action=cancel-plan]{margin-left:auto;border:0;background:transparent;padding:5px 7px;font-size:12px;font-weight:400;color:#64748b}
.idea-options button span,.idea-options button small{font-weight:400}
/* Keep the approved drawer rhythm, including inherited control line height. */
#panel{padding:16px 20px 20px;line-height:1.5}
#panel button,#panel input,#panel select{line-height:1.5}
#panel button{font-weight:400}
#panel button[aria-pressed=true],#panel button.primary{font-weight:650}
#panel .hint-card button{padding:10px 14px;border-radius:11px}
#panel .hint-grid button[aria-pressed=true]{border-color:#00e394}
#drawer-close{border:1px solid #dce5e9;border-radius:9px;background:#fff}
@media(max-width:700px){#panel{padding:14px 12px 20px}}
.journey-board{overflow:auto;isolation:isolate}
/* Stable report navigation: five destinations and a fixed action group on every view. */
.report-tabs{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:48px}
.report-pages,.report-actions{display:flex;align-items:center;gap:12px;min-width:0}
.report-pages button{border:0;border-bottom:3px solid transparent;border-radius:0;padding:12px 0;font-size:14px;color:#64748b;white-space:nowrap;background:transparent}
.report-pages button[aria-current=page]{color:#111827;border-bottom-color:#00f5a0}
.report-actions{justify-content:flex-end;gap:12px}
.report-actions button{border:0;background:transparent;white-space:nowrap}
.report-tabs #filters-toggle,.report-tabs #archive-toggle{margin-left:0;padding:7px 0}
#filter-count{display:inline-block;min-width:9px;font-variant-numeric:tabular-nums}
.report-context{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;border-bottom:1px solid #e2e8f0;padding:9px 20px;background:#f6f9fa}
.report-context h2{font-size:13px;line-height:1.4;margin:0;color:#111827}
.report-context span{font-size:11px;line-height:1.4;color:#64748b}
.report-context button{font-size:11px;padding:6px 8px;flex-shrink:0}
.filter-explanation{font-size:12px;color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:12px;margin-bottom:12px}
.journey-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.journey-mode-description{display:none}.journey-toolbar .chart-toolbar{margin:0}.journey-toolbar .chart-options{margin:0;float:none;min-width:110px;text-align:right}
.journey-toolbar .chart-options[open]{text-align:left;max-width:60%}.journey-toolbar .chart-options .flow-legend{margin-top:12px}
.journey-toolbar .analysis-modes{background:#f1f5f9;border:1px solid #e2e8f0}.journey-toolbar .analysis-modes button.active{background:white;color:#111827}
.journey-ribbon{position:absolute;top:5px;height:18px;border-radius:999px;overflow:hidden;isolation:isolate}
.journey-ribbon .journey-segment{top:0;height:100%;border:0;border-radius:0;box-shadow:none}
.journey-ribbon .journey-segment:focus-visible{outline:2px solid #111827;outline-offset:-2px}
.resource-row>div:first-child{min-width:0}.resource-row>div:first-child b{font-size:12px;overflow-wrap:anywhere}.resource-row small{display:block;font-size:10px;color:#64748b}
.chart-tooltip{position:fixed;z-index:150;max-width:min(310px,calc(100vw - 16px));padding:12px 14px;border:1px solid #dce4e9;border-radius:12px;background:#fff;color:#111827;box-shadow:0 8px 30px #0f172a25;font-size:12px;line-height:1.65;white-space:pre-line;pointer-events:none}
[data-chart-detail]:not(.plan-marker):hover,[data-chart-detail]:not(.plan-marker):focus{stroke:#111827;stroke-width:2}
@media(max-width:700px){.report-tabs{grid-template-columns:1fr;gap:0}.report-pages{justify-content:space-between;gap:8px}.report-pages button{font-size:12px}.report-actions{justify-content:flex-end;min-height:35px}.report-context{padding:8px 12px}.report-context span{font-size:10px}.report-context button{max-width:120px;white-space:normal}.journey-toolbar{gap:6px}.journey-toolbar .analysis-modes button{padding:6px}.journey-toolbar .chart-options{min-width:90px}}

@media(max-width:700px){.resource-axis>div span:not(:first-child):not(:last-child){display:none}}

#world-playback{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:35;background:#fffef8;border:1px solid #cbd5cf;border-radius:14px;padding:8px 12px;display:flex;gap:8px;align-items:center;max-width:calc(100vw - 24px);box-shadow:0 3px 18px #20332d22;font-size:12px}#world-playback[hidden]{display:none}#world-playback input{width:120px}#world-playback button{white-space:nowrap} @media(max-width:600px){#world-playback{flex-wrap:wrap;width:calc(100vw - 30px)}#world-playback span{flex-basis:100%}}

/* Optional capacity detail stays within the existing report at phone widths. */
.capacity-calculation .observation-table{table-layout:fixed}
.capacity-calculation .observation-table th,.capacity-calculation .observation-table td{white-space:normal;overflow-wrap:anywhere}
