.hydro-instrument {--hp-ivory:#f4e7c4;--hp-brass:#d3b67d;box-sizing:border-box;position:fixed;inset:0;width:min(640px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:3px;margin:auto;border:1px solid #d0b37d;border-radius:8px;background:linear-gradient(125deg,#a08a5f,#e0c28d 24%,#70654d 55%,#bead83 82%,#79674c);box-shadow:0 12px 52px #061b21a6,0 1px 4px #031b1be0;color:var(--hp-ivory);color-scheme:dark;overflow:auto;overscroll-behavior:contain;text-align:left;font:500 13px/1.45 system-ui,"PingFang SC","Microsoft Yahei",sans-serif}
.hydro-instrument *, .hydro-instrument *::before,.hydro-instrument *::after {box-sizing:border-box}
.hydro-instrument [hidden] {display:none}
.hydro-instrument::backdrop {background:#031b226e}
.hydro-shell {position:relative;isolation:isolate;overflow:hidden;border:1px solid #132f2f;border-radius:5px;background:repeating-linear-gradient(118deg,transparent 0 3px,#d3c08a05 3px 4px),linear-gradient(105deg,#254441 0%,#183632 49%,#122e2f 100%);box-shadow:inset 0 0 18px #0b2221}
.hydro-header,.hydro-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 17px}
.hydro-header {position:relative;min-height:55px;border-bottom:3px double #8c84676e}
.hydro-header h2 {display:flex;align-items:center;gap:10px;margin:0;font:700 22px/1.25 "Songti SC","Noto Serif CJK SC",Georgia,serif;letter-spacing:.10em;color:#f4e6c6}
.hydro-header h2::before {content:"";display:block;width:6px;height:18px;background:linear-gradient(to right,#82663e,#dcb77b 47%,#6e5c40);border:1px solid #b5a176}
.hydro-instrument button,.hydro-wheel {font:inherit;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.hydro-instrument button:focus-visible,.hydro-wheel:focus-visible {outline:2px solid #ffdb8e;outline-offset:1px}
.hydro-close {width:44px;height:44px;flex:none;font:400 26px/1 Georgia,serif!important;color:#ebdfbf;border:0;border-radius:3px;background:transparent}
.hydro-console {display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:20px;padding:15px 23px 16px;align-items:center}
.hydro-bearing,.hydro-listen {min-width:0}
.hydro-wheel {position:relative;width:100%;max-width:298px;aspect-ratio:1;display:block;margin:0 auto 8px;border-radius:50%;touch-action:none;cursor:crosshair}
.hydro-wheel canvas {position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.hydro-adjust {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;max-width:238px;margin:auto;border:1px solid #867e61;border-radius:4px;background:linear-gradient(0deg,#203a36,#142d2c);box-shadow:inset 0 1px 3px #0c2626}
.hydro-adjust button {height:44px;border:0;background:transparent;color:#eed7a3;font:500 20px/1 system-ui,sans-serif}
.hydro-readout {display:grid;gap:1px;justify-items:center;border-inline:1px solid #8e8c6b63;color:#efe2bd;line-height:1.2}
.hydro-readout span {font-size:10px;color:#c7c8b2}
.hydro-readout output {font:650 15px/1.45 ui-monospace,"PingFang SC",monospace;font-variant-numeric:tabular-nums;white-space:nowrap}
.hydro-listen {position:relative;border:1px solid #827c5e;border-radius:4px;background:linear-gradient(130deg,#153432,#173c37);box-shadow:0 2px 4px #092825b8,inset 0 0 0 2px #27453d}
.hydro-plate {display:flex;align-items:center;justify-content:space-between;gap:7px;margin:0 11px;padding:10px 0 7px}
.hydro-plate h3 {margin:0;color:#ecddb8;font:700 15px/1.35 "Songti SC","Noto Serif CJK SC",Georgia,serif;letter-spacing:.07em}
.hydro-mode {color:#d1d4b6;font-size:11px}
.hydro-screen {padding:3px;margin:0 10px;border:1px solid #97835a;border-radius:3px;background:#0c241f;box-shadow:inset 0 1px 4px #051915}
.hydro-screen canvas {display:block;width:100%;height:72px;background:radial-gradient(ellipse at center,#1c3e33,#122e28)}
.hydro-level {display:grid;grid-template-columns:auto minmax(0,1fr) 3.5ch;align-items:center;gap:8px;padding:9px 11px;color:#d6d6b9;font-size:11px}
.hydro-level meter {width:100%;height:8px;appearance:none;-webkit-appearance:none;background:#0d2925;border:1px solid #6b7a61;border-radius:0}
.hydro-level meter::-webkit-meter-bar {height:7px;border:0;border-radius:0;background:#102b27}
.hydro-level meter::-webkit-meter-optimum-value {border-radius:0;background:#d1b77e}
.hydro-level meter::-moz-meter-bar {background:#d1b77e}
.hydro-level span {text-align:right;color:#f0e4be;font:600 11px/1.3 ui-monospace,monospace}
.hydro-note {min-height:58px;padding:9px 12px 10px;border-top:3px double #a59a746e;color:#d9dac0}
.hydro-note:empty {display:none}
.hydro-species {color:#f1d49b;font:700 15px/1.35 "Songti SC","Noto Serif CJK SC",Georgia,serif}
.hydro-hint {margin:0;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.hydro-species:not([hidden]) + .hydro-hint {margin-top:4px}
.hydro-footer {min-height:55px;border-top:3px double #8c84676e}
.hydro-footer>span {color:#bdc6b4;font-size:11px}
.hydro-sound {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:4px 7px;border:0;background:transparent;color:#eedab1;font-weight:600!important;white-space:nowrap}
.hydro-sound i {position:relative;width:29px;height:15px;border:1px solid #b59b68;border-radius:9px;background:#102c2b;box-shadow:inset 0 1px 2px #092020}
.hydro-sound i::before {content:"";position:absolute;top:2px;left:2px;width:9px;height:9px;border-radius:50%;background:linear-gradient(135deg,#f4d8a1,#a58a59)}
.hydro-sound[aria-pressed=true] i {background:#496a50}
.hydro-sound[aria-pressed=true] i::before {left:16px}
@media(max-width:540px) and (min-height:481px) {
  .hydro-instrument {width:min(368px,calc(100vw - 18px))}
  .hydro-console {grid-template-columns:1fr;gap:12px;padding:10px 15px 11px}
  .hydro-wheel {max-width:clamp(178px,34dvh,254px);margin-bottom:4px}
  .hydro-adjust {max-width:224px}.hydro-header,.hydro-footer {margin:0 13px;min-height:47px}
  .hydro-header h2 {font-size:20px}.hydro-screen canvas {height:46px}
  .hydro-plate {padding-block:6px 4px}.hydro-level {padding-block:5px}.hydro-note {min-height:35px;padding-block:5px}
}
@media(max-height:480px) {
  .hydro-instrument {width:min(610px,calc(100vw - 20px))}
  .hydro-header,.hydro-footer {min-height:44px}
  .hydro-console {grid-template-columns:minmax(0,.87fr) minmax(0,1fr);gap:16px;padding:4px 16px}
  .hydro-wheel {max-width:clamp(108px,calc(100dvh - 190px),205px);margin-bottom:0}
  .hydro-screen canvas {height:42px}.hydro-plate {padding-block:5px}.hydro-level {padding-block:5px}.hydro-note {min-height:35px;padding-block:4px}
}
