.monitor-controls{padding:16px 20px;margin-bottom:16px}
.ops-main:has(.monitor-grid)>.ops-title{margin-bottom:16px}
.monitor-controls-head,.monitor-board-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.monitor-controls-head h2,.monitor-board-head h2{font-size:1.2rem;font-weight:650}
.monitor-controls-head .source-checks{margin:8px 0 12px}
.monitor-controls .collect-fields{max-width:760px;grid-template-columns:minmax(0,1.5fr) minmax(0,.9fr) minmax(0,.66fr)}
.monitor-grid{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(290px,1fr);gap:16px;align-items:start}
.monitor-board{padding:16px;overflow:hidden}
.monitor-board-head{margin:0 0 12px;align-items:center}
.monitor-board-head p,.monitor-caption{color:var(--muted);font-size:.86rem;line-height:1.45;margin-top:4px}
.monitor-caption{margin:12px 0 0}
.monitor-job{display:grid;gap:4px;flex:none;color:var(--muted);font-size:.76rem}
.monitor-job select{font-size:.86rem;min-height:36px;padding-block:6px}
.monitor-stats{grid-template-columns:repeat(auto-fit,minmax(84px,1fr));gap:0;border:1px solid #e2e9df;border-radius:8px;overflow:hidden;margin:0 0 12px;background:#f2f6f0}
.monitor-stats>div{padding:8px 12px;background:transparent;border:0;border-radius:0;min-width:0}
.monitor-stats>div:not(:last-child){border-right:1px solid #e1e9de}
.monitor-stats strong{font-size:1.45rem;line-height:1.32;font-weight:620;white-space:nowrap;color:#1d4334}
.monitor-stats small{font-size:.82rem}
.pipeline-lanes{border-top:1px solid #e4ebe1}
.pipeline-lane{display:grid;grid-template-columns:minmax(86px,.8fr) minmax(0,3fr) minmax(64px,.7fr);align-items:center;gap:8px;padding:12px 4px;border-bottom:1px solid #e4ebe1;min-width:0}
.pipeline-lane.working{background:#f7faf4}
.pipeline-lane.skipped{background:#fbfbf9}
.pipeline-source,.pipeline-result{min-width:0}
.monitor-platform{display:inline-flex;background:transparent;border:1px solid transparent;padding:2px 4px;border-radius:6px;min-width:0;align-items:center;text-align:left}
.monitor-platform:hover,.monitor-platform[aria-pressed=true]{background:#e9f2e8;border-color:#bcd3c0;color:#214f3d}
.monitor-platform>.platform{font-size:.88rem;white-space:normal;line-height:1.2}
.pipeline-source>small,.pipeline-result>small{display:block;font-size:.73rem;line-height:1.35;padding-inline:4px}
.pipeline-source .pipeline-error{color:#9e4335}
.pipeline-result{display:grid;justify-items:end;gap:3px;text-align:right}
.pipeline-result>strong{font-size:1.2rem;color:#285d47;line-height:1.16}
.pipeline-result>small{padding-inline:0}
.pipeline-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:0;min-width:0}
.pipeline-step{display:grid;justify-items:center;align-content:start;gap:5px;position:relative;color:#6a7e70;min-width:0;text-align:center}
.pipeline-step:not(:last-child):after{content:"";position:absolute;top:8px;left:calc(50% + 10px);right:calc(-50% + 10px);height:1px;background:#d7e1d7}
.pipeline-step.done:not(:last-child):after{background:#aac6b2}
.pipeline-dot{width:17px;height:17px;border-radius:50%;border:1px solid #c5d6c8;background:#f7faf5;display:grid;place-items:center}
.pipeline-step.done .pipeline-dot{color:white;background:#285e47;border-color:#285e47}
.pipeline-step.active .pipeline-dot{background:#e9bf70;border-color:#9c7228;box-shadow:0 0 0 3px #f2e5cc}
.pipeline-step.failed .pipeline-dot{background:#f0c8bd;border-color:#ae5144}
.pipeline-step small{font-size:.72rem;line-height:1.25;overflow-wrap:anywhere}
.pipeline-step.active small,.pipeline-step.done small{color:#28513e}
.pipeline-step.active small{font-weight:700}
.pipeline-step.failed small{color:#943c31}
.monitor-board-foot{display:flex;justify-content:flex-end;margin-top:12px}
.monitor-stream{position:sticky;top:16px}
.monitor-stream .events-head{min-height:46px;padding:10px 12px;flex-wrap:wrap}
.monitor-stream .events-head h2{font-size:1rem;letter-spacing:0}
.monitor-stream .flow-state{font-size:.78rem}
.monitor-stream .flow-state.warning i{background:#df9f68}
.stream-current{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;background:#1c342a;border-bottom:1px solid #3b5146;padding:12px}
.stream-current div{display:grid;gap:3px;min-width:0}
.stream-current div>span,.stream-current time{font-size:.78rem;color:#adcbba}
.stream-current strong{color:#fff0d0;font-weight:650;font-size:1rem;line-height:1.35}
.stream-current small{font-size:.78rem;color:#cdded3;line-height:1.35}
.stream-filter,.stream-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;color:#bad0c4;font-size:.8rem;border-bottom:1px solid #344a3f;flex-wrap:wrap}
.stream-filter .mono{white-space:normal;overflow-wrap:anywhere}
.stream-filter .control>select{font-size:.82rem;min-height:29px}
.stream-controls>div{display:flex;flex-wrap:wrap;gap:4px}
.monitor-stream .event-button{font-weight:600;color:#f3ebd9;font-size:.78rem;min-height:29px;padding:3px 6px}
.monitor-stream .event-log{list-style:none;padding:0;margin:0;height:clamp(360px,48vh,560px)}
.monitor-stream .event-row{grid-template-columns:60px minmax(57px,.9fr) minmax(0,1.65fr);letter-spacing:0;padding:8px 10px;gap:6px;font-size:.83rem}
.monitor-stream .event-row.latest{background:#1f342b}
.monitor-stream .event-row :is(time,b){padding-top:1px}
.monitor-stream .event-row span{min-width:0}
.monitor-stream .event-row span>small{display:block;color:#adc7ba;line-height:1.35;font-size:.75rem;overflow-wrap:anywhere;margin-top:3px}
.monitor-stream .event-row.warning span>small{color:#e4be84}
.quote-controls p{margin-top:5px;font-size:.86rem}
.quote-highlights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 12px}
.quote-highlight{padding:12px;min-width:0;background:#eff5ed;border:1px solid #e1ebdf;border-radius:8px}
.quote-highlight:nth-child(2){background:#f7f2e7;border-color:#ece3cf}
.quote-highlight-head{display:flex;align-items:center;gap:8px;color:#3e5d4d;font-weight:640;font-size:.88rem}
.quote-highlight:nth-child(2) .quote-highlight-head{color:#795f34}
.quote-highlight-value{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:4px 0;color:#214b3b}
.quote-highlight-value>strong{font-size:1.7rem;line-height:1.15;font-weight:650;font-variant-numeric:tabular-nums}
.quote-highlight-value .platform-mark{width:20px;height:20px;font-size:.61rem}
.quote-highlight small{font-size:.8rem;line-height:1.4}
.quote-compare{font-size:.85rem}
.quote-compare td,.quote-compare th{padding:6px 5px}
.quote-compare th{line-height:1.28;background:#edf3ed}
.quote-compare :is(.quote-eta-cell,.quote-action-cell){white-space:nowrap}
.quote-compare .quote-cost-cell{min-width:90px}
.quote-compare .quote-constraints{min-width:49px}
.quote-compare .quote-status-cell{min-width:76px}
.quote-compare .quote-cell-label{display:none}
.quote-total{font-size:1.04rem;color:#214f3d;font-variant-numeric:tabular-nums;line-height:1.28;white-space:nowrap}
.quote-cost-breakdown{color:var(--muted);font-size:.74rem;white-space:nowrap}
.quote-cost-bar{display:flex;width:min(116px,100%);height:4px;border-radius:4px;overflow:hidden;background:#e7eee6;margin:4px 0}
.quote-cost-bar i:first-child{background:#408568}
.quote-cost-bar i:nth-child(2){background:#c8a96f}
.quote-cost-bar.excluded i:first-child{background:#8c9a8e}
.quote-cost-bar.excluded i:nth-child(2){background:#cebda2}
.quote-result{display:grid;justify-items:start;gap:2px}
.quote-result small{font-size:.72rem}
.quote-result .badge{padding-inline:5px}
.quote-chosen{background:#edf5ec}
.quote-chosen td:first-child{box-shadow:inset 2px 0 #40866b}
.quote-excluded{background:#fbfbf8}
.quote-revealed-now{background:#f5eddc}
.quote-waiting{color:#64796b}
.quote-selection-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 12px;background:#edf4ec;border:1px solid #dfebdc;border-radius:8px;font-size:.9rem}
.quote-selection-summary>strong{color:#2b5946}
@media(max-width:1150px){
  .monitor-grid{grid-template-columns:minmax(0,1fr)}
  .monitor-stream{position:static}
  .monitor-stream .event-log{height:340px}
}
@media(max-width:680px){
  .monitor-controls,.monitor-board{padding:12px}
  .monitor-controls-head{flex-wrap:wrap;align-items:center;gap:8px}
  .monitor-controls-head .source-checks{margin:6px 0 0}
  .monitor-controls .collect-fields{margin-top:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .monitor-board-head{gap:6px}
  .monitor-board-head h2,.monitor-controls-head h2{font-size:1.04rem}
  .monitor-board-head p{font-size:.79rem}
  .monitor-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .monitor-stats>div{padding:6px 8px}
  .monitor-stats>div:nth-child(2){border-right:0}
  .monitor-stats>div:nth-child(n+3){border-top:1px solid #e1e9de}
  .monitor-stats strong{font-size:1.18rem}
  .quote-controls+.monitor-grid .monitor-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .quote-controls+.monitor-grid .monitor-stats>div{border-top:0}
  .quote-controls+.monitor-grid .monitor-stats>div:nth-child(2){border-right:1px solid #e1e9de}
  .pipeline-lane{grid-template-columns:1fr auto;padding:8px 2px;gap:5px 8px}
  .pipeline-source{display:flex;align-items:center;gap:4px}
  .pipeline-source>small{padding:0}
  .pipeline-result{grid-column:2;grid-row:1}
  .pipeline-steps{grid-column:1/-1}
  .quote-highlight{padding:8px}
  .quote-highlight-value{gap:4px}
  .quote-highlight-value>strong{font-size:1.4rem}
  .quote-compare thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .quote-compare,.quote-compare tbody{display:block}
  .quote-compare tr{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);gap:3px 6px;padding:8px;border:1px solid #e6ece3;border-radius:8px;margin-top:5px;align-items:end}
  .quote-compare td{min-width:0;border:0;padding:0;display:block}
  .quote-compare .quote-cell-label{display:block;color:var(--muted);font-size:.72rem;line-height:1.2;margin-bottom:3px}
  .quote-compare .quote-platform-cell{grid-column:1/-1}
  .quote-compare .quote-platform-cell .quote-cell-label{display:none}
  .quote-compare .quote-status-cell{grid-column:1/3;min-width:0}
  .quote-compare .quote-action-cell{text-align:right}
  .quote-chosen td:first-child{box-shadow:none}
  .monitor-stream .event-log{height:320px}
}
