/* T501 pressure/flow duty map (local preview) */
.duty-map{margin:1rem 0;border:1px solid #cedbd2;border-radius:.9rem;background:#fbfcf9;padding:clamp(1rem,3vw,2rem);color:#1b3431}
.duty-map .source-index{margin:0;font-size:.75rem;letter-spacing:.13em;text-transform:uppercase;color:#426657;font-weight:700}
.duty-map h2{margin:.35rem 0 .6rem;font-size:clamp(1.3rem,2vw,1.75rem);color:#1b4035}
.duty-map h3{margin:1.6rem 0 .5rem;font-size:1.15rem;color:#1b4035}
.duty-map .dm-lead{max-width:80ch;line-height:1.65;color:#36564b;margin:0 0 .8rem}
.dm-status{margin:.6rem 0 1rem;padding:.8rem 1rem;border-left:4px solid #597c68;background:#eef4ee;line-height:1.6;font-size:1.02rem}
.dm-status[data-state=compared]{border-color:#1d6b3f;background:#e6f2e9}
.dm-status[data-state=pending]{border-color:#9a6400;background:#fdf3dd}
.dm-status strong{font-variant-numeric:tabular-nums}
.dm-controls{display:flex;flex-wrap:wrap;gap:.8rem 1.5rem;align-items:end;margin:.4rem 0 .6rem}
.dm-controls label{display:block;font-weight:700;font-size:.88rem;margin-bottom:.3rem}
.dm-controls select{font:inherit;padding:.45rem .6rem;border:1px solid #8ea89a;border-radius:.45rem;background:#fff;color:#1b3431;min-height:44px}
.dm-chart-wrap{border:1px solid #d3dfd7;border-radius:.7rem;background:#fff;padding:.5rem}
.dm-svg{display:block;width:100%;height:auto}
.dm-grid line{stroke:#e3e9e4;stroke-width:1}
.dm-grid text{fill:#4e6559;font-size:13px;font-variant-numeric:tabular-nums}
.dm-axis-title{fill:#1b4035;font-size:14px;font-weight:700}
.dm-pt{fill:#fff;stroke:#6b7b77;stroke-width:1.5}
.dm-pt.is-cover{fill:#1d6b3f;stroke:#0f3f24}
.dm-pt.is-dim{opacity:.15}
.dm-quadrant{fill:#1d6b3f;fill-opacity:.08;stroke:none}
.dm-target-line{stroke:#9a3d00;stroke-width:1.5;stroke-dasharray:6 5}
.dm-target-cross{stroke:#9a3d00;stroke-width:3}
.dm-target-dot{fill:none;stroke:#9a3d00;stroke-width:2.5}
.dm-target-label{fill:#9a3d00;font-size:14px;font-weight:700}
.dm-legend{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin:.5rem 0 0;padding:0;list-style:none;font-size:.86rem;color:#36564b}
.dm-legend i{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:.35rem;vertical-align:-1px;border:1.5px solid #6b7b77;background:#fff}
.dm-legend i.c{background:#1d6b3f;border-color:#0f3f24}.dm-legend i.t{border-radius:0;border:0;border-top:2px dashed #9a3d00;height:0;width:16px;vertical-align:3px}
.dm-chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:.6rem 0}
.dm-chip{font:inherit;font-size:.85rem;min-height:36px;padding:.3rem .7rem;border:1px solid #8ea89a;border-radius:999px;background:#fff;color:#1b3431;cursor:pointer}
.dm-chip.is-cover{border-color:#1d6b3f;color:#0f3f24;background:#e6f2e9}
.dm-chip.is-on{outline:3px solid #9a3d00;outline-offset:1px}
.dm-chip:focus-visible,.dm-sort:focus-visible,.dm-scroll:focus-visible{outline:3px solid #0d4f9e;outline-offset:2px}
.dm-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #d3dfd7;border-radius:.6rem;background:#fff}
.dm-table,.dm-grid-table{border-collapse:collapse;width:100%;font-size:.9rem;min-width:760px}
.dm-grid-table{min-width:0}
.dm-table caption{caption-side:top;text-align:left;padding:.6rem .8rem;color:#4e6559;font-size:.85rem}
.dm-table th,.dm-table td,.dm-grid-table th,.dm-grid-table td{padding:.5rem .6rem;border-bottom:1px solid #e3e9e4;text-align:left;vertical-align:top}
.dm-table thead th,.dm-grid-table thead th{background:#eef1ec;position:sticky;top:0;font-size:.82rem;color:#1b4035;white-space:nowrap}
.dm-table tbody th{white-space:nowrap}
.dm-sort{font:inherit;font-weight:700;color:inherit;background:none;border:0;padding:0;cursor:pointer;min-height:32px}
.dm-num{font-variant-numeric:tabular-nums;white-space:nowrap}
.dm-num small,.dm-table small{color:#4e6559}
.dm-row-first th,.dm-row-first td{border-top:2px solid #c9d8ce}
.dm-row-covers{background:#f1f8f2}
.dm-state{display:inline-block;line-height:1.45}
.dm-state-covers{color:#0f5a30;font-weight:700}
.dm-state-pressure-exceeds,.dm-state-flow-not-reached{color:#5b4a3e}
.dm-state-basis-pending{color:#7a5200}
.dm-src{white-space:nowrap}
.dm-model{border:1px solid #d3dfd7;border-radius:.6rem;background:#fff;margin:.5rem 0;padding:.2rem .9rem}
.dm-model.is-cover{border-color:#1d6b3f}
.dm-model summary{cursor:pointer;font-weight:700;padding:.6rem 0;min-height:24px}
.dm-model .dm-source,.dm-model .dm-note{font-size:.86rem;line-height:1.6;color:#36564b;margin:.3rem 0}
.dm-grid-table td.is-first{background:#1d6b3f;color:#fff;font-weight:700}
.dm-grid-table td.is-also{background:#d8ecdd}
.dm-pending{line-height:1.8;padding-left:1.2rem}
.dm-conv,.dm-boundary{font-size:.84rem;color:#4e6559;line-height:1.6}
.dm-boundary{border-top:1px solid #e3e9e4;padding-top:.8rem;margin-top:1.2rem}
@media (max-width:640px){
  .duty-map{padding:1rem .8rem}
  .dm-grid text{font-size:18px}.dm-axis-title,.dm-target-label{font-size:19px}
  .dm-controls{flex-direction:column;align-items:stretch}
  .dm-controls select{width:100%}
  .dm-chart-wrap{padding:.2rem}
  .dm-table{min-width:0;font-size:.92rem}
  .dm-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .dm-table,.dm-table tbody,.dm-table tr,.dm-table th,.dm-table td{display:block;width:auto}
  .dm-table tr{border-bottom:2px solid #c9d8ce;padding:.4rem 0}
  .dm-table tbody th{border:0;padding:.4rem .8rem .1rem;font-size:1rem}
  .dm-table caption{display:block;padding:.2rem 0 .6rem}
  .dm-table td{display:grid;grid-template-columns:7.5em 1fr;gap:.6rem;align-items:baseline;border:0;padding:.15rem .8rem}
  .dm-table td::before{content:attr(data-label);font-weight:700;color:#4e6559;font-size:.82rem}
  .dm-table td br{display:none}
  .dm-table td small{margin-left:.3rem}
  .dm-row-first th,.dm-row-first td{border-top:0}
  .dm-scroll:has(.dm-table){border:0;background:none;overflow:visible}
}
