/* Operations hierarchy; retain the reference palette, font and motion. */
.ops-flow{display:flex;gap:12px;margin:24px 32px 12px;align-items:stretch}
.ops-flow button{flex:1;display:flex;align-items:center;gap:12px;text-align:left;background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:12px 16px;transition:border-color .2s}
.ops-flow button:hover,.ops-flow button:focus-visible{border-color:var(--accent)}
.ops-flow svg{width:26px;height:26px;flex:none;stroke:var(--accent);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ops-flow button[aria-current=step]{border-color:var(--accent);background:var(--accent-soft)}
.ops-flow small{display:block;color:var(--ink-2);font-size:12px}
.ops-controls{display:flex;flex-wrap:wrap;gap:12px;margin:0 32px 8px}
.ops-controls label{display:grid;gap:4px;font-size:12px;color:var(--ink-2);flex:1;min-width:145px}
.ops-controls select{font:inherit;font-size:14px;color:var(--ink);background:var(--panel-solid);border:1px solid var(--border);border-radius:6px;padding:9px;width:100%}
.ops-controls+.sub{margin:0 32px 14px}
.ops-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.ops-summary .kpi{background:transparent;box-shadow:none;border:0;border-right:1px solid var(--border);border-radius:0}
.ops-summary .kpi:last-child{border-right:0}
.ops-summary .k-value{font-size:32px;line-height:1.25}
.ops-focus{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px;margin-bottom:20px;align-items:stretch}
.ops-focus>.card{margin:0;min-width:0}
.ops-focus .note-panel{display:flex;flex-direction:column;gap:14px;justify-content:flex-start;margin:0}
.ops-focus .note-panel .ops-peak-time{font-size:36px;line-height:1.1;font-weight:600;color:var(--accent)}
.ops-focus .note-panel .btn-primary{margin-top:auto;align-self:flex-start}
.ops-secondary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.ops-secondary>.card{min-width:0;margin:0 0 20px}
.ops-heat-card>.ops-details{padding:0;margin:10px 0 0;box-shadow:none;border:0;background:none}
.ops-details summary{cursor:pointer;font-weight:500;font-size:15px;list-style-position:inside;padding:4px 0}
.ops-details[open]>summary{margin-bottom:16px}
.ops-details p{margin:12px 0;max-width:75ch}
.ops-details .card{padding:8px 0;margin:0;background:none;box-shadow:none;border:0}
.ops-details .heatmap{overflow-x:auto;margin-top:12px}
.ops-heat-card .ops-details{overflow-x:auto}
.ops-heat-card .heatmap{min-width:640px}
.ops-details>div{overflow-x:auto}
.ops-focus .chart-wrap{overflow-x:auto}
.ops-focus svg.chart{min-width:760px}
.ops-focus svg.chart text{font-size:18px}
.ops-mini-heat{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:3px;margin:16px 0}
.ops-mini-heat span{height:9px;border-radius:2px}
.ops-table-wrap{overflow-x:auto;margin:16px 0;max-width:100%}
.ops-table{width:100%;border-collapse:collapse;font-size:14px;text-align:left;font-variant-numeric:tabular-nums}
.ops-table th{font-weight:500;color:var(--ink-2);white-space:nowrap}
.ops-table th,.ops-table td{border-bottom:1px solid var(--border);padding:12px 10px;vertical-align:top}
.ops-cost-value{font-size:44px;font-weight:600;line-height:1.4;margin:12px 0}
.ops-cost-value small{font-size:16px;font-weight:400;color:var(--ink-2)}
[hidden]{display:none!important}
@media(min-width:1100px){.ops-focus .chart-wrap{min-height:240px;display:flex;align-items:center}}
@media(max-width:1100px){.ops-focus{grid-template-columns:minmax(0,1fr)}.ops-focus .note-panel{display:grid;grid-template-columns:1fr 1fr;align-items:center}.ops-focus .note-panel h2{grid-column:1/-1}.ops-focus .note-panel .sub{grid-column:1/-1}.ops-secondary{grid-template-columns:1fr}}
@media(max-width:650px){.ops-flow{margin:16px 16px 12px;gap:6px;display:grid;grid-template-columns:1fr 1fr}.ops-flow button{padding:9px}.ops-controls{margin:0 16px 8px}.ops-controls+.sub{margin:0 16px 12px}.ops-summary{grid-template-columns:1fr!important}.ops-summary .kpi{border-right:0;border-bottom:1px solid var(--border);padding:12px 0}.ops-summary .k-value{font-size:28px}.ops-focus .note-panel{display:flex}.ops-table th,.ops-table td{padding:10px 6px;font-size:13px}}
/* Raw history retains the existing table and capsule controls. */
#screen-lichsu .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){#screen-lichsu .kpis{grid-template-columns:1fr}}
.history-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:16px}
.history-pagination span{font-size:13px}
#screen-lichsu .toolbar select{font:inherit;border:0;background:transparent;color:inherit;max-width:100%;cursor:pointer}
#hist-table{max-height:65vh;overflow:auto}
#hist-table .head{position:sticky;top:0;z-index:1;background:var(--control-surface,#efefed)}
.comparison-result{font-size:18px;font-weight:700;line-height:1.5;margin:12px 0}
.comparison-legend{display:flex;gap:18px;flex-wrap:wrap;margin:16px 0;font-size:13px}
.comparison-legend span{display:inline-flex;align-items:center;gap:7px}
.comparison-legend i{width:32px;height:0;display:inline-block;border-top:4px solid;flex:none}
.comparison-legend .comparison-key-actual{border-color:#111}
.comparison-legend .comparison-key-prophet{border-color:#7651d4;border-top-style:dashed}
.comparison-legend .comparison-key-sarimax{border-color:#087e8b;border-top-style:dashed}
.comparison-legend .comparison-key-lstm{border-color:#c55521;border-top-style:dashed}
#model-day-comparison .ops-table .btn-ghost{white-space:nowrap}
