.hu-instrument{
  --hu-lead:#9c5712;--hu-bass:#236b74;--hu-roll:#734b8d;
  box-sizing:border-box;container-type:inline-size;min-width:0;width:100%;
  color:var(--ink,#272523);font-family:inherit
}
.hu-instrument *,.hu-instrument *::before,.hu-instrument *::after{box-sizing:border-box}
.hu-instrument-tools,.hu-context,.hu-lower{width:min(100%,700px);margin:auto}
.hu-instrument-tools{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 1px;color:var(--sub,#67616b);font-size:.76rem}
.hu-instrument-name{color:var(--ink,#29242c);font-weight:660;font-size:.9rem}
.hu-zoom{display:none;margin-left:auto;min-height:36px;border:0;border-radius:5px;padding:0 8px;font:inherit;color:var(--accent,#694d73);background:transparent;cursor:pointer}
.hu-zoom[aria-pressed=true]{background:var(--tint,#f1eaf2)}
.hu-viewport{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;min-width:0;width:100%;padding:2px 0 5px}
.hu-board{
  position:relative;isolation:isolate;container-type:inline-size;width:min(100%,700px);margin:0 auto;aspect-ratio:2.44;
  border:1px solid #8f6440;border-radius:7% 7% 13% 13% / 11% 11% 23% 23%;
  background:
    radial-gradient(ellipse at 52% 3%,#ffffff18 2%,transparent 73%),
    repeating-linear-gradient(95deg,transparent 0 7.5%,#63361112 8%,transparent 8.4% 16.5%,#ffe4bb23 16.8%,transparent 17.3% 25%),
    repeating-linear-gradient(87deg,#7853310c 0 .35%,transparent .7% 2.2%,#f9d7a112 2.6% 3.1%,transparent 3.5% 4.1%),
    linear-gradient(112deg,#b68053,#c69968 29%,#c49a6b 52%,#bd8855 80%,#a97146);
  box-shadow:inset 0 2px 1px #f5d7ad80,inset 2px 0 3px #f8cc9c65,inset -2px -4px 4px #6d42254a,0 3px 4px -3px #3220188c
}
.hu-hole{
  position:absolute;z-index:0;left:50%;bottom:4.8%;transform:translateX(-50%);width:10%;aspect-ratio:1;
  border-radius:50%;background:radial-gradient(circle at 42% 62%,#553823,#30231d 67%,#241a17 85%);
  border:1px solid #8a5e36;box-shadow:0 0 0 2px #d6a975,0 0 0 3px #875d35,inset 0 4px 5px #21140e8f;opacity:.9
}
.hu-keybed{position:absolute;z-index:1;inset:7.5% 4.1% 10.5%;display:flex;align-items:flex-start;justify-content:center}
.hu-key{
  --steel-left:#9fa5a6;--steel:#cdd0cd;--steel-light:#f7f5e9;--stroke:#707474;
  appearance:none;position:relative;display:block;flex:0 0 calc(100% / 21);
  height:var(--hu-length);min-width:0;max-width:none;margin:0;border:0;padding:0;
  color:#25272a;background:transparent;font-family:inherit;line-height:1;cursor:pointer;touch-action:manipulation;
  -webkit-user-select:none;user-select:none
}
.hu-key::before{
  content:"";position:absolute;inset:0 6.6%;border:1px solid var(--stroke);border-radius:2px 2px 34% 34% / 2px 2px 4px 4px;
  background:linear-gradient(180deg,#ffffff32 0%,transparent 12%,#1f263039 23%,transparent 33%,#ffffff2b 79%,#f8f7ed7a 95%,#7077787d 100%),
    linear-gradient(94deg,var(--steel-left),var(--steel-light) 23%,var(--steel) 65%,var(--steel-left));
  box-shadow:inset 1px 0 1px #fff8,inset -1px 0 1px #4d53513b,1px 3px 2px #38291863
}
.hu-bridge{
  z-index:2;position:absolute;pointer-events:none;top:18.5%;left:2.3%;right:2.3%;height:6%;
  display:flex;justify-content:space-between;align-items:center;padding:0 .9%;border:1px solid #5e5d56;border-radius:2.5px;
  background:linear-gradient(#514f49 0%,#b6b8b2 10%,#e3e4dc 24%,#c6c7c2 52%,#9d9e97 82%,#66665d 100%);box-shadow:0 2px 2px #39281966
}
.hu-bridge>i{
  width:1.05%;aspect-ratio:1;border-radius:50%;border:1px solid #6e706c;
  background:linear-gradient(40deg,#afafaa 30%,#6e706a 36% 51%,#d6d4ca 59%);box-shadow:0 1px 0 #fff7
}
.hu-engraving{position:absolute;inset:auto 0 7%;display:flex;flex-direction:column;align-items:center;gap:7px;pointer-events:none;color:inherit}
.hu-degree{position:relative;font:660 clamp(11px,2.75cqw,20px)/1 Georgia,"Times New Roman",serif;font-variant-numeric:lining-nums}
.hu-oct{position:absolute;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:1px}
.hu-above{bottom:calc(100% + 1px)}.hu-below{top:100%}
.hu-oct i{width:2.1px;height:2.1px;border-radius:50%;background:currentColor;display:block}
.hu-letter{font:550 clamp(9px,1.65cqw,12px)/1 system-ui;letter-spacing:-.035em}
.hu-key[data-retuned] .hu-letter{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.hu-key[data-retuned]::after{content:"";position:absolute;bottom:1.2%;left:39%;right:39%;height:2px;background:#8b3e21}
.hu-key[data-role=lead]{--steel-left:#b87825;--steel:#e6ac55;--steel-light:#ffe5ad;--stroke:#8d5615;color:#35230f}
.hu-key[data-role=bass]{--steel-left:#539296;--steel:#9cc7c1;--steel-light:#dbf3e5;--stroke:#357476;color:#123d40}
.hu-key[data-role=delayed]{--steel-left:#9372a5;--steel:#c3a4cf;--steel-light:#f2e0ed;--stroke:#795786;color:#3c254c}
.hu-role-mark{display:none;position:absolute;top:41%;left:50%;transform:translate(-50%,-50%);background:currentColor}
.hu-key[data-role] .hu-role-mark{display:block}
.hu-key[data-role=lead] .hu-role-mark{height:4px;width:4px;border-radius:50%}
.hu-key[data-role=bass] .hu-role-mark{height:3px;width:7px;border-radius:2px}
.hu-key[data-role=delayed] .hu-role-mark{height:5px;width:5px;transform:translate(-50%,-50%) rotate(45deg)}
.hu-key:focus{outline:0}.hu-key:focus-visible::before{outline:2px solid #284f92;outline-offset:1px}
.hu-key:active::before,.hu-key.hu-plucked::before{box-shadow:inset 0 -4px 6px #fff7,0 0 0 1px var(--stroke)}
.hu-key:not([data-role]).hu-plucked{--steel:#e6c690;--steel-light:#fff1ce;--stroke:#805a28}
.hu-hands{position:absolute;inset:auto 6.8% 6%;display:flex;align-items:center;justify-content:space-between;pointer-events:none;color:#553620;font-size:clamp(9px,2cqw,12px);font-weight:590;letter-spacing:.08em}
.hu-context{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;min-height:41px;padding:6px 0}
.hu-legend-item{display:inline-flex;align-items:center;gap:5px;font-size:.76rem;line-height:1.4;color:var(--sub,#635b67)}
.hu-legend-pitch{color:var(--ink,#25232a);font-weight:630;font-variant-numeric:tabular-nums}
.hu-dot{display:inline-block;width:9px;height:9px}
.hu-dot-lead{border-radius:50%;background:var(--hu-lead)}
.hu-dot-bass{height:4px;border-radius:2px;background:var(--hu-bass)}
.hu-dot-delayed{width:7px;height:7px;transform:rotate(45deg);background:var(--hu-roll)}
.hu-lower{display:flex;gap:6px 12px;justify-content:space-between;align-items:flex-start;border-top:1px solid var(--line,#dedadf)}
.hu-tuning{min-width:0;font-size:.76rem;color:var(--sub,#625b64);line-height:1.55}
.hu-tuning summary{cursor:pointer;padding:8px 0}.hu-tuning p{margin:0 0 6px}
.hu-changes{display:flex;gap:4px 12px;flex-wrap:wrap;list-style:none;margin:4px 0;padding:0}
.hu-sources{display:flex;flex-wrap:wrap;gap:6px 14px;margin:6px 0}
.hu-sources a{color:var(--accent,#665179);text-decoration:underline;text-underline-offset:2px}
.hu-inspected{flex-shrink:0;font-size:.75rem;padding:8px 0;line-height:1.5;color:var(--sub,#625b64);font-variant-numeric:tabular-nums}
.hu-zoom:focus-visible,.hu-tuning summary:focus-visible,.hu-sources a:focus-visible{outline:2px solid #326ab2;outline-offset:2px}
@container (max-width:520px){
  .hu-zoom{display:inline-block}.hu-zoomed .hu-board{min-width:630px}
  .hu-board{aspect-ratio:2.12}
  .hu-key:not(:disabled)::before{inset-inline:4%}
  .hu-context{gap:4px 12px}.hu-lower{flex-wrap:wrap}.hu-inspected:empty{display:none}
}
@container (max-width:460px){
  .hu-letter{writing-mode:vertical-rl;transform:rotate(180deg);font:600 9px/1 system-ui;letter-spacing:0}
  .hu-engraving{gap:5px;bottom:5%}.hu-role-mark{top:46%}
}
@media(prefers-reduced-motion:no-preference){
  .hu-key.hu-plucked .hu-engraving{animation:hu-strike .19s ease-out}
  @keyframes hu-strike{0%{transform:translateY(1.5px)}100%{transform:translateY(0)}}
}
@media(forced-colors:active){
  .hu-key::before,.hu-bridge,.hu-board{border-color:ButtonText}.hu-key[data-role]::before{outline:2px solid Highlight}
  .hu-key[data-role] .hu-role-mark,.hu-oct i,.hu-dot{forced-color-adjust:none}
}
@media print{.hu-instrument{display:none!important}}
