/* WEB4: incumbent navy/orange interface, accessible states and bounded motion. */
:root{--ux-accent:#ff8800;--ux-focus:#ffb45c;--ux-surface:#142536;--ux-line:#385065;--ux-text:#eef3f8;--ux-muted:#b6c6d5;--ux-ease:cubic-bezier(.16,1,.3,1);color-scheme:dark;scroll-padding-block:6rem 7rem}
::selection{background:#ff8800;color:#071522}
input,textarea{caret-color:var(--ux-accent)}
:focus-visible{outline:3px solid var(--ux-focus)!important;outline-offset:3px}
button:disabled,[aria-disabled=true]{cursor:not-allowed}
[aria-busy=true]{cursor:progress}
a{text-underline-offset:.2em}
button,a.button,[role=button]{touch-action:manipulation}
button,.button{transition:background-color 120ms ease,border-color 120ms ease,color 120ms ease,box-shadow 120ms ease}
@media(hover:hover) and (pointer:fine){button:not(:disabled):hover,.button:hover{box-shadow:inset 0 0 0 1px currentColor}}
dialog{overscroll-behavior:contain;max-height:calc(100dvh - 32px);scrollbar-gutter:stable}
dialog[open]:not(.ag-viewer){animation:ux-dialog-in 190ms var(--ux-ease)}
dialog::backdrop{animation:ux-backdrop-in 150ms ease-out}
@keyframes ux-dialog-in{from{opacity:.65;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}
@keyframes ux-backdrop-in{from{background-color:transparent}}
.dialoghead{position:sticky;top:0;z-index:3;background:var(--panel,#142536);padding-block:.4rem .8rem}
.dialoghead h2{overflow-wrap:anywhere}
.workheading,.catalogsearch537,.catalogfilters537{gap:1rem;flex-wrap:wrap}
.workheading>div,.topsearch{min-width:0}
.songtitle537{white-space:normal;overflow-wrap:anywhere;text-align:left}
.table-scroll537,.table-wrap{scrollbar-color:#526e85 #0b1927;scrollbar-width:thin;overscroll-behavior-inline:contain}
.table-scroll537:focus-visible,.table-wrap:focus-visible{outline-offset:2px}
table{font-variant-numeric:tabular-nums}
.empty p{max-width:52ch;margin:.6rem auto;color:var(--ux-muted)}
.empty strong{display:block;font-size:1.1rem;color:var(--ux-text)}
.loading{display:flex;align-items:center;gap:.75rem;min-height:100px;color:var(--ux-muted)}
.loading::before,[aria-busy=true]>.ux-busy-mark{content:'';display:inline-block;width:18px;height:18px;border:2px solid #506479;border-top-color:var(--ux-accent);border-radius:50%;animation:ux-spin 900ms linear infinite;flex:none}
@keyframes ux-spin{to{transform:rotate(360deg)}}
.ux-skip{position:fixed;top:8px;left:8px;z-index:10000;transform:translateY(-150%);background:#ff8800;color:#071522;padding:.7rem 1rem;border-radius:8px}
.ux-skip:focus{transform:none}
.ux-search-field{display:grid;gap:.4rem;flex:1;min-width:0;font-weight:600;color:var(--ux-muted)}
.ux-search-field input{width:100%;min-width:0}
#results[aria-busy=true]{opacity:.65}
#searchStatus{min-height:1.5em;color:var(--ux-muted);font-variant-numeric:tabular-nums}
#requestStatus{min-height:1.5em}
#publicSongs:empty{min-height:40px}
.hero-carousel .hero-devices{animation:ux-device-focus 650ms var(--ux-ease)}
@keyframes ux-device-focus{from{clip-path:inset(0 0 10% 0);opacity:.65}to{clip-path:inset(0);opacity:1}}
@media(max-width:600px){.actions>button,.actions>.button{min-height:44px}.workheading{align-items:flex-start}.catalogsearch537>input{width:100%}.pagination537{flex-wrap:wrap;gap:1rem}.dialoghead h2{font-size:1.25rem}dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:1rem}.ux-search-field{width:100%}#search{flex-wrap:wrap}#search>button{align-self:end}.locationBar{align-items:end;flex-wrap:wrap}.locationBar .ux-search-field{flex-basis:100%}.selection537{gap:.65rem;flex-wrap:wrap}#notice,.toast{max-width:calc(100vw - 24px);overflow-wrap:anywhere;bottom:calc(76px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){dialog[open],dialog::backdrop,.hero-carousel .hero-devices,.loading::before{animation:none!important}button,.button{transition:none!important}.chord-demo.changing{animation:none!important}html{scroll-behavior:auto!important}}

html[data-ux-input=keyboard] dialog[open]{animation:none}
summary{cursor:pointer;min-height:36px}summary::marker{color:var(--ux-accent)}

/* The demonstration ad has a fixed 320px creative; do not crop it on smaller viewports. */
@media(max-width:349px){#advertisement{display:none!important}}

.ag-viewer[open]{animation:none} /* A gallery must keep a fixed full-screen canvas. */

/* Retain approved labels while making small supporting text legible. */
.hero-carousel .screen-note{font-size:11px}.eyebrow,.mini-label{font-size:12px}.site-footer nav{font-size:12px}.bottomnav>button{font-size:11px}

/* An empty result is guidance, not a wide data table. */
.songtable537:has(tbody .empty){min-width:0!important;width:100%;table-layout:fixed}
.songtable537:has(tbody .empty) thead{display:none}
.songtable537 td.empty{white-space:normal!important;overflow-wrap:anywhere;padding:2rem 1rem}
.songtable537 td.empty p{max-width:52ch;white-space:normal}
