/* Dark, brass instruments; fixed, reusable geometry driven by vessel telemetry. */
/* Switches are part of the helm panel, with no floating text-button stack. */
body #gauges #sw { position:static; display:flex; flex-flow:row wrap; gap:6px; margin-top:8px; padding-top:8px; border-top:1px solid #b4966340; pointer-events:auto; }
body #gauges #sw button { position:relative; flex:0 0 42px; width:42px; height:44px; padding:6px 7px 10px; display:flex; justify-content:center; align-items:center; border:1px solid #8a7957; border-radius:7px; color:var(--helm-ink); background:linear-gradient(#28372e,#17231d); box-shadow:inset 0 1px #e1d0a22b,0 2px 3px #0006; }
body #gauges #sw button[hidden] { display:none!important; }
body #gauges #sw button:hover { border-color:var(--helm-brass); background:#354638; }
body #gauges #sw button:focus-visible { outline:2px solid var(--helm-brass); outline-offset:2px; }
body #gauges #sw button svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
body #gauges #sw button i { position:absolute; bottom:3px; left:calc(50% - 6px); width:12px; height:3px; border:0; border-radius:2px; }
body #gauges #sw button[aria-pressed="true"] { color:#d9f4bd; border-color:#9b9d6a; background:linear-gradient(#354b39,#273b2c); }
body #gauges #sw button[aria-pressed="true"] i { background:#98db8d; box-shadow:0 0 7px #8fdb8070; }
#sw .helm-count { position:absolute; right:-3px; top:-5px; min-width:16px; padding:1px 3px; border-radius:8px; background:var(--helm-brass); color:#1c2924; font-size:10px; font-weight:800; }
#sw .helm-count[hidden] { display:none; }
@media(max-width:959px){
 body #chat { left:calc(var(--gauge-right,282px) + 14px); right:12px; width:min(340px,calc(100vw - var(--gauge-right,282px) - 26px)); top:54px; }
}
#instrumentStrip { --is-brass:var(--helm-brass,#d3af70); --is-muted:var(--helm-muted,#b6bbb0); font-size:11px; line-height:1.3; }
#instrumentStrip [hidden] { display:none!important; }
#instrumentStrip svg { display:block; width:100%; overflow:visible; }
#instrumentStrip svg text { fill:var(--is-muted); font:10px "Segoe UI",sans-serif; }
#instrumentStrip .is-caption { display:block; color:var(--is-muted); text-align:center; font-size:10px; letter-spacing:.055em; }
#instrumentStrip .is-primary,#instrumentStrip .is-drives { display:grid; grid-auto-columns:minmax(0,1fr); grid-auto-flow:column; gap:12px; border-top:1px solid #b4966340; margin-top:8px; padding-top:7px; }
#instrumentStrip .is-dial { min-width:0; max-width:125px; width:100%; justify-self:center; }
#instrumentStrip .is-dial svg { height:68px; }
#instrumentStrip .is-track { fill:none; stroke:#eef1e319; stroke-width:7; stroke-linecap:round; }
#instrumentStrip .is-thin { stroke-width:4; }
#instrumentStrip .is-needle,#instrumentStrip .is-mark,#instrumentStrip .is-boom { fill:none; stroke:var(--is-brass); stroke-width:3; stroke-linecap:round; }
#instrumentStrip .is-command { stroke:var(--helm-warning); stroke-width:2; stroke-dasharray:2 2; }
#instrumentStrip .is-pivot { fill:var(--helm-ink); }
#instrumentStrip .is-drive { min-width:0; }
#instrumentStrip .is-drive svg { height:68px; }
#instrumentStrip .is-waterline { stroke:#588997; stroke-width:1; }
#instrumentStrip .is-hull { fill:#fff1; stroke:#b8c5bb; stroke-width:1.6; stroke-linejoin:round; }
#instrumentStrip .is-machinery { fill:none; stroke:var(--is-brass); stroke-width:2.5; stroke-linecap:round; }
#instrumentStrip .is-engine-block { fill:#a3ada5; }
#instrumentStrip .is-drive[data-raised="true"] .is-machinery,#instrumentStrip .is-drive[data-low="true"] .is-mark { stroke:var(--helm-warning); }
#instrumentStrip .is-drive[data-raised="true"] [data-tilt-label] { color:var(--helm-warning); }
#instrumentStrip .is-tabs { border-top:1px solid #b4966340; margin-top:7px; padding-top:6px; }
#instrumentStrip .is-tabs svg { height:57px; }
#instrumentStrip .is-tab-track { stroke:#eef1e319; stroke-width:7; stroke-linecap:round; }
#instrumentStrip .is-tab-fill { stroke:var(--is-brass); stroke-width:5; stroke-linecap:round; }
#instrumentStrip .is-warning { color:var(--helm-warning); margin-top:5px; font-size:11px; overflow-wrap:anywhere; }
#instrumentStrip .is-rig { border-top:1px solid #b4966340; margin-top:7px; padding-top:7px; }
#instrumentStrip .is-group { display:flex; align-items:center; justify-content:space-between; gap:6px; color:var(--is-muted); }
#instrumentStrip .is-group select { min-width:0; width:75%; padding:3px 5px; font-size:11px; border-radius:4px; }
#instrumentStrip .is-sails { display:flex; gap:4px; margin:6px 0; }
#instrumentStrip .is-sail { flex:1; min-width:0; padding-bottom:3px; border-bottom:2px solid transparent; }
#instrumentStrip .is-sail[data-selected="true"] { border-bottom-color:var(--is-brass); }
#instrumentStrip .is-sail svg { height:66px; }
#instrumentStrip .is-sail .is-caption { text-transform:uppercase; }
#instrumentStrip .is-mast { fill:none; stroke:#9aaba0; stroke-width:1.5; }
#instrumentStrip .is-cloth { fill:#e7e6d5; stroke:none; }
#instrumentStrip .is-furled { fill:none; stroke:#b3bcb5; stroke-width:3; }
#instrumentStrip .is-sail[data-luff="true"] .is-cloth { fill:var(--helm-warning); stroke:var(--helm-inset); stroke-width:2; stroke-dasharray:3 3; }
#instrumentStrip .is-sheet { stroke:#b3bcb5; stroke-width:2; stroke-dasharray:3 3; }
#instrumentStrip .is-sail[data-up="false"] .is-boom,#instrumentStrip .is-sail[data-up="false"] .is-sheet { opacity:.4; }
#instrumentStrip .is-sail-state { display:block; text-align:center; font-size:9px; color:var(--is-muted); margin-top:2px; }
#instrumentStrip .is-sail-actions { display:flex; gap:6px; }
#instrumentStrip .is-sail-actions button { flex:1; padding:5px; font-size:11px; box-shadow:none; background:#26352d; color:var(--helm-ink); }
#instrumentStrip .is-sail-actions button[aria-pressed="true"] { border-color:var(--is-brass); }
#instrumentStrip .is-rig-legend { display:flex; justify-content:space-between; gap:5px; margin-top:5px; color:var(--is-muted); font-size:9px; }
#instrumentStrip .is-fuel { display:flex; align-items:center; gap:7px; margin-top:9px; padding:8px 0; border-top:1px solid #b4966340; color:var(--is-muted); }
#instrumentStrip .is-fuel-track { height:7px; border-radius:4px; background:#eef1e319; overflow:hidden; flex:1; }
#instrumentStrip .is-fuel-track i { display:block; height:100%; background:var(--is-brass); }
#instrumentStrip .is-weather { display:flex; gap:6px; align-items:center; border-top:1px solid #b4966340; margin-top:5px; padding-top:7px; }
#instrumentStrip .is-wind { width:76px; flex:none; }
#instrumentStrip .is-compass { fill:var(--helm-inset); stroke:#7e785e; stroke-width:1; }
#instrumentStrip .is-bow { fill:#b3bcb5; }
#instrumentStrip [data-barb] { fill:none; stroke:var(--is-brass); stroke-width:1.8; stroke-linecap:round; }
#instrumentStrip .is-pennant { fill:var(--is-brass); }
#instrumentStrip .is-calm { stroke-width:1.5; }
#instrumentStrip .is-weather-values { min-width:0; flex:1; font-variant-numeric:tabular-nums; }
#instrumentStrip #isWindMode { background:transparent; color:var(--is-muted); padding:3px 0; border:0; border-bottom:1px dotted #8c8469; border-radius:0; box-shadow:none; font-size:9px; white-space:nowrap; }
#instrumentStrip #isWindSpeed { font-size:14px; margin:3px 0; }
#instrumentStrip .is-seas { display:flex; align-items:center; gap:4px; white-space:nowrap; }
#instrumentStrip .is-seas svg { width:21px; height:16px; stroke:var(--is-muted); fill:none; stroke-width:1.5; }
#instrumentStrip .is-attitude { width:60px; flex:none; }
#instrumentStrip .is-attitude svg { height:36px; }
#instrumentStrip .is-attitude .is-caption { font-size:9px; }
@media(max-width:600px){
 #instrumentStrip .is-primary,#instrumentStrip .is-drives { gap:4px; }
 #instrumentStrip .is-dial svg { height:61px; }
 #instrumentStrip .is-drive svg { height:61px; }
 #instrumentStrip .is-wind { width:62px; }
 #instrumentStrip .is-attitude { width:42px; }
 #instrumentStrip .is-weather { gap:4px; }
 #instrumentStrip .is-fuel { gap:4px; }
}
@media(pointer:coarse){#instrumentStrip button,#instrumentStrip select{min-height:36px}}
