.nozzle-toolbar,.nozzle-analysis,.jet-stand {
  --nz-lower:#008f4f;--nz-side:#c35110;--nz-aft:#137eb5;--nz-reaction:#7136ad;
}
html[data-theme=night] :is(.nozzle-toolbar,.nozzle-analysis,.jet-stand) {
  --nz-lower:#4ae197;--nz-side:#ffa159;--nz-aft:#64cefa;--nz-reaction:#d2b9ff;
}
.nozzle-toolbar { display:flex;gap:7px 12px;flex-wrap:wrap;align-items:end;margin:10px 0;min-width:0; }
.nozzle-toolbar label,.jet-vector-label { display:grid;gap:4px;min-width:0;font-size:.85rem;line-height:1.3; }
.nozzle-toolbar select,.jet-vector-label select { width:100%;max-width:100%;min-width:0;background:var(--paper);color:inherit;font:inherit; }
.nozzle-toolbar label:nth-child(2) { flex:1 1 14rem; }
.nozzle-analysis { container-type:inline-size;grid-column:1/-1;margin:14px 0;padding:clamp(12px,2vw,22px);border:1px solid var(--line);border-radius:8px;background:var(--card);min-width:0;scroll-margin-top:14px; }
.nozzle-analysis h2,.nozzle-analysis h3 { margin:0;letter-spacing:0;line-height:1.2; }
.nozzle-analysis h2 { font-size:clamp(1.2rem,2.8cqi,1.6rem); }
.nozzle-analysis h3 { font-size:1rem; }
.nozzle-note { color:var(--muted);font-size:.86rem;line-height:1.48;margin:7px 0; }
.nozzle-legend,.nozzle-events,.jet-presets { display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;margin:9px 0; }
.nozzle-legend span { font-size:.86rem;display:inline-flex;gap:6px;align-items:center; }
.nozzle-legend span::before { content:"";width:15px;height:3px;background:var(--nz-ink);border-radius:3px;flex:none; }
[data-family=underbody] { --nz-ink:var(--nz-lower); }
[data-family=side] { --nz-ink:var(--nz-side); }
[data-family=aft] { --nz-ink:var(--nz-aft); }
[data-family=reaction] { --nz-ink:var(--nz-reaction); }
.nozzle-status { font-size:.92rem;font-weight:750;line-height:1.4;overflow-wrap:break-word; }
.nozzle-families,.nozzle-focus dl { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(205px,100%),1fr));gap:9px; }
.nozzle-family,.nozzle-focus { min-width:0;border:1px solid var(--line);border-radius:6px;padding:10px; }
.nozzle-family { border-inline-start:3px solid var(--nz-ink); }
.nozzle-focus { margin:12px 0; }
.nozzle-analysis dl { margin:7px 0 0; }
.nozzle-analysis dl div { min-width:0;margin:4px 0; }
.nozzle-analysis dt,.nozzle-list th { font-size:.83rem;line-height:1.35;overflow-wrap:break-word; }
.nozzle-analysis dt { color:var(--muted); }
.nozzle-analysis dd { margin:0;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.nozzle-focus p { margin:6px 0;overflow-wrap:anywhere; }
.nozzle-list summary { cursor:pointer;font-weight:750;margin:0 0 6px; }
.nozzle-list table { width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:.87rem;font-variant-numeric:tabular-nums; }
.nozzle-list :is(th,td) { padding:6px;text-align:right;border-bottom:1px solid var(--line);white-space:normal; }
.nozzle-list th:first-child { width:42%;text-align:left; }
.nozzle-list th button { width:max-content;max-width:100%;padding:2px 4px;font:inherit;text-align:left;overflow-wrap:anywhere; }
.nozzle-list tbody tr[data-active=true] th:first-child { box-shadow:inset 3px 0 var(--nz-ink); }
.nozzle-list button[aria-pressed=true] { background:var(--brand);color:#082216; }
.nozzle-analysis [hidden] { display:none!important; }
.jet-presets button { min-height:34px; }
.jet-reaction-legend { color:var(--nz-reaction);font-weight:750;font-size:.85rem; }
@container(max-width:490px) {
  .nozzle-list table,.nozzle-list tbody { display:block; }
  .nozzle-list thead { position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden; }
  .nozzle-list tbody tr { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:5px;margin:5px 0; }
  .nozzle-list tbody th:first-child { width:auto;grid-column:1/-1; }
  .nozzle-list :is(th,td) { text-align:left;border:0; }
  .nozzle-list td::before { content:attr(data-label);display:block;font-size:.72rem;color:var(--muted);overflow-wrap:anywhere; }
}
@media(max-width:520px){
  .nozzle-toolbar label { flex:1 1 8rem; }
  .nozzle-toolbar label:nth-child(2) { flex-basis:100%; }
}
