/* All diagram selectors are scoped; the host owns page layout and feedback. */
.boat-scene { --boat-ink:#21474b; --boat-soft:#9bb8b8; --boat-accent:#bf861b; margin:0; width:100%; min-width:0; border:1px solid #d6e2dd; border-radius:20px; background:#eef4ef; overflow:hidden; }
.boat-scene-stage { position:relative; width:100%; aspect-ratio:8/5; isolation:isolate; }
.boat-scene-svg { display:block; width:100%; height:100%; overflow:visible; }
.boat-scene-svg path,.boat-scene-svg circle,.boat-scene-svg ellipse,.boat-scene-svg rect { stroke-linejoin:round; stroke-linecap:round; }
.boat-sky { fill:#eef4ef; }
.boat-rig { fill:none; stroke:#91a8a4; stroke-width:4; }
.boat-sail { fill:#fbf7e8; stroke:#bdccc3; stroke-width:2; }
.boat-sail-small { fill:#e3ecdf; }
.boat-hull { fill:#fcfaf0; stroke:var(--boat-ink); stroke-width:4; }
.boat-hull-stripe { fill:none; stroke:#658888; stroke-width:9; }
.boat-deck { fill:#dbc6a0; stroke:var(--boat-ink); stroke-width:3; }
.boat-keel,.boat-rudder,.boat-pairs-rudder { fill:#52797b; stroke:var(--boat-ink); stroke-width:3; }
.boat-cabin-roof { fill:#faf6e9; stroke:#547270; stroke-width:3; }
.boat-window { fill:#7eaaaa; stroke:#547270; stroke-width:2; }
.boat-cockpit { fill:#6f8b85; stroke:var(--boat-ink); stroke-width:3; }
.boat-cockpit-rim { fill:none; stroke:#ebddbc; stroke-width:5; }
.boat-cabin-interior { fill:#ded4ba; stroke:#577876; stroke-width:3; stroke-dasharray:7 5; }
.boat-cabin-floor { fill:none; stroke:#8d8268; stroke-width:3; }
.boat-stair-well { fill:#385d5b; stroke:#315655; stroke-width:3; }
.boat-stair { fill:none; stroke:#f6dfaa; stroke-width:7; }
.boat-metal-line { fill:none; stroke:#355e60; stroke-width:5; }
.boat-lifeline { fill:none; stroke:#567779; stroke-width:3; }
.boat-region-wash { fill:#dbb65d; fill-opacity:.25; stroke:#bc8314; stroke-width:5; }
.boat-water { fill:none; stroke:#aac9ca; stroke-width:2; }
.boat-water-faint { opacity:.5; }
.boat-inset-bg { fill:#fffaf0; stroke:#d6dfd7; stroke-width:2; }
.boat-inset-hull { fill:#eee1c2; stroke:#426567; stroke-width:3; }
.boat-width { fill:none; stroke:#426567; stroke-width:5; }
.boat-svg-note { fill:#536e6c; font:500 18px system-ui,sans-serif; text-anchor:middle; }
.boat-svg-or { fill:#536e6c; font:600 21px system-ui,sans-serif; text-anchor:middle; }
.boat-control { fill:none; stroke:#315a5c; stroke-width:5; }
.boat-tiller { fill:none; stroke:#a17543; stroke-width:12; }
.boat-drain-hull { fill:#fff9e9; stroke:#375e60; stroke-width:5; }
.boat-drain-deck { fill:none; stroke:#c3ad7a; stroke-width:15; }
.boat-drain-water { fill:#a7d8dc; stroke:#6eb6c0; stroke-width:2; }
.boat-drain-pipe { fill:none; stroke:#b2c4bd; stroke-width:22; }
.boat-flow { fill:none; stroke:#357b89; stroke-width:5; }
.boat-context-hull { fill:#ead7b4; stroke:#476b6c; stroke-width:4; }
.boat-context-pair { fill:none; stroke:#9a885e; stroke-width:8; }
.boat-context-ring { fill:none; stroke:#b89b5b; stroke-width:2; stroke-dasharray:7 6; }
.boat-zoom-line { fill:none; stroke:#9cb8b0; stroke-width:2; stroke-dasharray:5 5; }
.boat-closeup-bg { fill:#f8f7ec; stroke:#d8decd; stroke-width:2; }
.boat-hinge-mount { fill:#dcc298; stroke:#ac9067; stroke-width:3; }
.boat-metal { fill:#8fb5b6; stroke:#315b5e; stroke-width:3; }
.boat-socket { fill:#93b9ba; stroke:#315b5e; stroke-width:4; }
.boat-socket-hole { fill:#385d61; stroke:#315b5e; stroke-width:2; }
.boat-pin { fill:#739ea1; stroke:#315b5e; stroke-width:3; }
.boat-pin-top { fill:#a8c9c6; stroke:#315b5e; stroke-width:2; }
.boat-moving-pin { transform:translate(0,0); }
.boat-moving-pin.is-joined { transform:translate(71px,93px); animation:boat-pin-seat .75s ease-out; }
.boat-assembly-guide { fill:none; stroke:#ac945c; stroke-width:3; stroke-dasharray:6 5; }
.boat-pair-outline { fill:#e9cd7833; stroke:#bb841c; stroke-width:4; }
.boat-scene.has-highlight .boat-region:not(.is-highlighted) { opacity:.64; }
.boat-region.is-highlighted > * { stroke:#aa6c00; stroke-width:5; }
.boat-region.is-highlighted > path,.boat-region.is-highlighted > rect,.boat-region.is-highlighted > ellipse { fill:#ecc977; }
.boat-region.is-highlighted .boat-stair,.boat-region.is-highlighted .boat-metal-line,.boat-region.is-highlighted .boat-lifeline,.boat-region.is-highlighted .boat-control,.boat-region.is-highlighted .boat-tiller,.boat-region.is-highlighted .boat-width,.boat-region.is-highlighted .boat-flow,.boat-region.is-highlighted .boat-drain-pipe,.boat-region.is-highlighted .boat-cabin-floor,.boat-region.is-highlighted .boat-cockpit-rim,.boat-region.is-highlighted .boat-hull-stripe { fill:none; }
.boat-region.is-highlighted .boat-socket-hole { fill:#526b62; }
.boat-callout-line { fill:none; stroke:#9c660a; stroke-width:2.5; stroke-dasharray:6 4; }
.boat-callout-dot { fill:#be891e; stroke:#fff9e8; stroke-width:3; }
.boat-callout { position:absolute; z-index:2; left:50%; top:8px; transform:translateX(-50%); max-width:calc(100% - 24px); background:#fff2cc; color:#624700; border:1px solid #d2ad53; border-radius:10px; padding:7px 12px; font:600 clamp(12px,2.1vw,17px)/1.3 system-ui,sans-serif; text-align:center; white-space:normal; box-shadow:0 2px 0 #815c1314; }
.boat-marker-line { fill:none; stroke:#325e62; stroke-width:2; }
.boat-target-dot { fill:#325e62; stroke:#f6f8ef; stroke-width:2; }
.boat-target { position:absolute; z-index:3; left:var(--boat-x); top:var(--boat-y); transform:translate(-50%,-50%); width:44px; height:44px; min-width:44px; min-height:44px; padding:0; display:grid; place-items:center; border:2px solid #3b6b6c; border-radius:50%; background:#fcfcf4; color:#204f53; box-shadow:0 3px 0 #21474b18; font:700 18px/1 system-ui,sans-serif; cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.boat-target:hover { background:#deeddf; border-color:#245859; }
.boat-target.is-selected { background:#234f53; color:#fff9e9; border-color:#234f53; box-shadow:0 0 0 4px #d0ddc9; }
.boat-target:focus-visible { outline:3px solid #c3891c; outline-offset:4px; }
.boat-scene-caption { color:#516d69; margin:0; padding:10px 16px 13px; font:500 13px/1.45 system-ui,sans-serif; text-align:center; border-top:1px solid #dce5da; }
.boat-scene-unavailable { padding:18px; background:#f5eedb; color:#644d22; border-radius:12px; }
@keyframes boat-pin-seat { from { transform:translate(0,0); } to { transform:translate(71px,93px); } }
@media (max-width:480px) { .boat-scene { border-radius:14px; } .boat-scene-caption { padding:9px 10px 10px; font-size:12px; } .boat-callout { padding:5px 8px; font-size:12px; } }
@media (prefers-reduced-motion:reduce) { .boat-moving-pin.is-joined { animation:none; } }

.boat-action-leaders { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.boat-pair-placement.is-waiting { opacity:.22; }
