#tuner-tab, #tuner-drawer {
    position: fixed;
    z-index: 20;
    margin: 0;
    visibility: hidden;
}
#tuner-tab[data-positioned] { visibility: visible; }
#tuner-tab {
    z-index: 21;
    display: grid;
    justify-items: center;
    gap: 6px;
    width: 34px;
    padding: 8px 3px;
    border: 1px solid #16d4dc;
    border-radius: 0 9px 9px 0;
    background: #16d4dc;
    color: #071b34;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(0, 7, 21, .28);
}
.tuner-tab-label { writing-mode: vertical-rl; font-size: 11px; font-weight: 850; letter-spacing: .07em; }
.tuner-arrow { border-right: 2px solid currentColor; border-top: 2px solid currentColor; width: 6px; height: 6px; transform: rotate(45deg); }
#tuner-tab[aria-expanded="true"] .tuner-arrow { transform: rotate(225deg); }
.tuner-guitar { position: relative; display: block; width: 18px; height: 18px; transform: rotate(42deg); }
.tuner-guitar::before, .tuner-guitar::after { content: ""; position: absolute; background: currentColor; }
.tuner-guitar::before { width: 9px; height: 10px; bottom: 0; left: 5px; border-radius: 45% 45% 48% 48%; }
.tuner-guitar::after { left: 8px; top: 0; width: 3px; height: 11px; border-radius: 2px 2px 0 0; }
#tuner-drawer {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #16d4dc;
    border-radius: 15px;
    background: #071b34;
    box-shadow: 0 14px 40px rgba(0, 10, 23, .45);
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-10px);
    transition: clip-path 180ms ease, transform 180ms ease, opacity 150ms ease, visibility 180ms;
}
#tuner-drawer.open {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0);
    transform: translateX(0);
}
#tuner-frame { flex: 1; min-height: 0; width: 100%; border: 0; color-scheme: dark; }
#tuner-close {
    position: absolute;
    z-index: 1;
    right: 7px;
    top: 7px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #27607a;
    border-radius: 8px;
    background: #0a2844;
    color: #a9e6ed;
    font: 700 20px/1 system-ui;
    cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
    #tuner-drawer { transition: none; }
}
