.hqpsb__bridge{margin:0 0 24px;padding:22px;border:1px solid rgba(203,163,75,.45);border-radius:14px;background:rgba(10,10,10,.72);color:#f2f2f2}.hqpsb__bridge-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.hqpsb__bridge h3{margin:0 0 6px}.hqpsb__bridge p{margin:0;color:#c8c8c8}.hqpsb__status{white-space:nowrap;padding:6px 10px;border:1px solid #777;border-radius:999px;font-size:.9em}.hqpsb__status[data-state="ok"]{border-color:#7da87d}.hqpsb__status[data-state="warning"]{border-color:#c8a55a}.hqpsb__status[data-state="error"]{border-color:#b56c6c}.hqpsb__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.hqpsb__grid>div{padding:12px;border:1px solid rgba(255,255,255,.12);border-radius:9px}.hqpsb__label{display:block;color:#aaa;font-size:.82em;margin-bottom:3px}.hqpsb__message{margin-top:14px;color:#d9b96f}.hqpsb__actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:16px}.hqpsb__refresh,.hqpsb__apply{padding:10px 15px;border:1px solid #cba34b;border-radius:8px;cursor:pointer}.hqpsb__refresh{background:transparent;color:#f0d58e}.hqpsb__apply{background:#d99422;color:#fff;font-weight:600}.hqpsb__apply:disabled{opacity:.45;cursor:not-allowed}.hqpsb-dependency-error{padding:14px;border:1px solid #b56c6c;background:#241616;color:#fff}.hqpsb .hqps__result{cursor:pointer;transition:box-shadow .15s ease,border-color .15s ease}.hqpsb .hqps__result:hover{border-color:rgba(203,163,75,.65)}.hqpsb .hqps__result.hqpsb__result--selected{border-color:#d9a12b;box-shadow:0 0 0 2px rgba(217,161,43,.22)}@media(max-width:700px){.hqpsb__bridge-head{display:block}.hqpsb__status{display:inline-block;margin-top:12px}.hqpsb__grid{grid-template-columns:1fr}}

/* Keep focus for keyboard navigation without a theme outline after pointer activation. */
:is([data-hqpsb], .hqpsb__compat-overlay, .hqpsb__import-overlay, .hqpsb__bridge-diagnostic-overlay)
  :is(button, summary, [role="button"], .hqpsb__queue-item):focus:not(:focus-visible) {
  outline: none;
}
:is([data-hqpsb], .hqpsb__compat-overlay, .hqpsb__import-overlay, .hqpsb__bridge-diagnostic-overlay)
  :is(button, summary, [role="button"], .hqpsb__queue-item):focus-visible {
  outline: 2px solid #f0d58e;
  outline-offset: 2px;
}
[data-hqpsb] .hqpsb__queue-item:focus-visible {
  outline-offset: -3px;
}

/* Bridge selection: ranking #1 is not a transfer selection by itself. */
.hqpsb .hqps__result--top{border-color:var(--hqps-border)!important;border-width:1px!important}
.hqpsb .hqps__result--top .hqps__rank{border-color:var(--hqps-border)!important;color:var(--hqps-text)!important}
.hqpsb .hqps__result.hqpsb__result--selected{border-color:#d9a12b!important;border-width:2px!important;box-shadow:0 0 0 2px rgba(217,161,43,.22)}
.hqpsb .hqps__result.hqpsb__result--selected .hqps__rank{border-color:#d9a12b!important;color:#d9a12b!important}




@media(max-width:700px){}

/* 0.4.2: Bridge edition never treats ranking #1 as a user selection. */
.hqpsb .hqps__result--top{border:1px solid var(--hqps-border)!important;box-shadow:none!important}
.hqpsb .hqps__result--top .hqps__rank{border-color:var(--hqps-border)!important;color:var(--hqps-text)!important}



/* 0.4.3: contextual transfer button appears directly at the selected recommendation. */
.hqpsb__result-apply{display:inline-flex;align-items:center;justify-content:center;margin:10px 0 4px;padding:9px 14px;border:1px solid #cba34b;border-radius:8px;background:#d99422;color:#fff;font-weight:700;cursor:pointer}
.hqpsb__result-apply:hover{filter:brightness(1.06)}
.hqpsb__result-apply:disabled{opacity:.45;cursor:not-allowed}
.hqpsb__power{padding:10px 15px;border:1px solid #cba34b;border-radius:8px;cursor:pointer;background:transparent;color:#f0d58e;font-weight:600}.hqpsb__power[data-running="1"]{border-color:#b56c6c;color:#e3a1a1}.hqpsb__power:disabled{opacity:.45;cursor:not-allowed}


.hqpsb__compat-overlay{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:24px}
.hqpsb__compat-dialog{width:min(680px,100%);background:#121212;border:1px solid #9f781f;border-radius:16px;padding:24px;color:#eee;box-shadow:0 18px 60px rgba(0,0,0,.55)}
.hqpsb__compat-dialog h4{margin:0 0 14px;font-size:1.35rem;color:#fff}.hqpsb__compat-dialog p{margin:10px 0;line-height:1.55}
.hqpsb__compat-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.hqpsb__compat-actions button{border:1px solid #dca331;background:transparent;color:#f0cf83;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer}
.hqpsb__compat-actions .hqpsb__compat-primary{background:#e6a225;color:#17120a;border-color:#e6a225}


/* 1.8.9.1: compact bridge layout and footer metadata */
.hqpsb__footer-meta{margin:-10px 0 24px;padding:0 2px;color:#aaa;font-size:.9em;line-height:1.5}
.hqpsb__footer-meta p{margin:4px 0}
.hqpsb__target-link{color:inherit;text-decoration:none}
.hqpsb__target-link:hover,.hqpsb__target-link:focus-visible{color:#d9b96f;text-decoration:underline;text-underline-offset:3px}
.hqpsb__version-link{appearance:none;border:0;padding:0;background:none;color:#d9b96f;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.hqpsb__version-link:hover,.hqpsb__version-link:focus-visible{color:#f0d58e}
.hqpsb__version-dialog{max-width:650px;width:calc(100% - 32px);padding:0;border:1px solid #454545;border-radius:12px;background:#171717;color:#f2f2f2;box-shadow:0 18px 60px rgba(0,0,0,.55)}
.hqpsb__version-dialog::backdrop{background:rgba(0,0,0,.68)}
.hqpsb__version-dialog-inner{position:relative;padding:24px 28px}
.hqpsb__version-dialog h4{margin:0 2.5rem 14px 0;font-size:1.2rem}
.hqpsb__version-dialog dl{display:block;margin:16px 0}
.hqpsb__version-dialog dt{font-weight:700;margin:16px 0 4px}
.hqpsb__version-dialog dd{display:block;margin:0 0 10px;color:#c7c7c7;line-height:1.45}
.hqpsb__version-close{position:absolute;top:14px;right:16px;width:36px;height:36px;padding:0;border:1px solid #d99b2b;border-radius:50%;background:transparent;color:#f2f2f2;font-size:24px;font-weight:400;line-height:32px;text-align:center;cursor:pointer;appearance:none;-webkit-appearance:none}
@media(max-width:560px){.hqpsb__version-dialog-inner{padding:20px}.hqpsb__version-dialog dd{margin-bottom:10px}}


/* 1.8.9.3: mode change is confirmed before recommendation calculation. */
.hqpsb__mode-overlay{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:24px}
.hqpsb__mode-dialog{width:min(650px,100%);background:#171717;border:1px solid #9f781f;border-radius:16px;padding:24px;color:#eee;box-shadow:0 18px 60px rgba(0,0,0,.55)}
.hqpsb__mode-dialog h4{margin:0 0 14px;font-size:1.35rem;color:#fff}.hqpsb__mode-dialog p{margin:10px 0;line-height:1.55}
.hqpsb__mode-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:22px}.hqpsb__mode-actions button{min-width:96px;border:1px solid #dca331;background:transparent;color:#f0cf83;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer}
.hqpsb__mode-actions .hqpsb__mode-primary{background:#e6a225;color:#17120a;border-color:#e6a225}

/* Local favorites */
.hqpsb__favorites{margin-top:12px;border-top:1px solid rgba(127,127,127,.22);padding-top:10px}
.hqpsb__favorites-head{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.hqpsb__favorite-save,.hqpsb__favorites-toggle,.hqpsb__fav-action{font:inherit;border:1px solid rgba(127,127,127,.35);border-radius:7px;background:transparent;color:inherit;padding:6px 10px;cursor:pointer}
.hqpsb__favorites-panel{margin-top:10px}
.hqpsb__fav-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 0;border-top:1px solid rgba(127,127,127,.16)}
.hqpsb__fav-row:first-child{border-top:0}.hqpsb__fav-name{font-weight:600;overflow-wrap:anywhere}.hqpsb__fav-note{opacity:.78;font-size:.92em;margin-top:2px}
.hqpsb__fav-actions{display:flex;gap:5px;align-items:start;flex-wrap:wrap;justify-content:flex-end}.hqpsb__fav-action{padding:4px 7px;font-size:.9em}
.hqpsb__result-favs{display:inline-flex;gap:4px;margin-left:8px;vertical-align:middle}.hqpsb__result-fav{border:0;background:transparent;color:inherit;cursor:pointer;padding:2px 3px;font-size:1.05em;line-height:1}.hqpsb__result-fav.is-favorite{font-weight:700}

/* 1.8.9.12: monochrome note icon and favorites import/export */
.hqpsb__note-icon{display:inline-block;width:14px;height:14px;box-sizing:border-box;border:1.5px solid currentColor;border-radius:2px;position:relative;vertical-align:-2px;background:transparent}
.hqpsb__note-icon::before{content:"";position:absolute;left:3px;right:3px;top:3px;height:1px;background:currentColor;box-shadow:0 3px 0 currentColor}
.hqpsb__note-icon::after{content:"";position:absolute;width:5px;height:5px;right:-2px;bottom:-2px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;background:#171717;transform:rotate(45deg)}
.hqpsb__import-overlay{position:fixed;inset:0;z-index:1000000;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:24px}
.hqpsb__import-dialog{width:min(680px,100%);background:#171717;border:1px solid #9f781f;border-radius:16px;padding:24px;color:#eee;box-shadow:0 18px 60px rgba(0,0,0,.55)}
.hqpsb__import-dialog h4{margin:0 0 10px;font-size:1.3rem}.hqpsb__import-dialog p{color:#c8c8c8;line-height:1.5}
.hqpsb__import-options{display:grid;gap:10px;margin-top:18px}.hqpsb__import-options button{display:grid;gap:3px;text-align:left;border:1px solid rgba(203,163,75,.55);border-radius:10px;background:transparent;color:#eee;padding:12px 14px;cursor:pointer;font:inherit}.hqpsb__import-options button:hover{border-color:#dca331;background:rgba(220,163,49,.08)}.hqpsb__import-options span{color:#aaa;font-size:.9em;line-height:1.4}.hqpsb__import-cancel{display:flex;justify-content:flex-end;margin-top:16px}.hqpsb__import-cancel button{border:1px solid #777;border-radius:8px;background:transparent;color:#ddd;padding:8px 13px;cursor:pointer}

/* 1.8.9.13: Grigg Audio Solutions logo in the Bridge header */
.hqpsb__brand-logo{display:block;width:72px;height:auto;object-fit:contain;filter:none}

.hqpsb__hqplayer-fallback{margin:14px 0 4px;padding:14px;border:1px solid rgba(205,158,48,.55);border-radius:10px;background:rgba(205,158,48,.06);display:grid;grid-template-columns:auto minmax(220px,1fr) auto;gap:10px;align-items:center}.hqpsb__hqplayer-fallback[hidden]{display:none}.hqpsb__hqplayer-fallback label{font-weight:600}.hqpsb__hqplayer-fallback input{min-height:40px;padding:8px 10px;border:1px solid #454545;border-radius:7px;background:#111;color:#fff}.hqpsb__hqplayer-fallback button{min-height:40px;padding:8px 14px;border:1px solid #c99a2d;border-radius:7px;background:transparent;color:#e8c36b;font-weight:600;cursor:pointer}.hqpsb__hqplayer-fallback small{grid-column:1/-1;color:#aaa;line-height:1.45}@media(max-width:760px){.hqpsb__hqplayer-fallback{grid-template-columns:1fr}.hqpsb__hqplayer-fallback small{grid-column:auto}}

/* 1.9.5: browser-local fallback for a Windows Bridge Server when mDNS is unavailable. */
.hqpsb__bridge-fallback{margin:14px 0 4px;padding:14px;border:1px solid rgba(205,158,48,.55);border-radius:10px;background:rgba(205,158,48,.06);display:grid;grid-template-columns:auto minmax(220px,1fr) auto auto;gap:10px;align-items:center}
.hqpsb__bridge-fallback[hidden]{display:none}.hqpsb__bridge-fallback label{font-weight:600}.hqpsb__bridge-fallback input{min-height:40px;padding:8px 10px;border:1px solid #454545;border-radius:7px;background:#111;color:#fff}.hqpsb__bridge-fallback button{min-height:40px;padding:8px 14px;border:1px solid #c99a2d;border-radius:7px;background:transparent;color:#e8c36b;font-weight:600;cursor:pointer}.hqpsb__bridge-fallback small{grid-column:1/-1;color:#aaa;line-height:1.45}
@media(max-width:900px){.hqpsb__bridge-fallback{grid-template-columns:1fr}.hqpsb__bridge-fallback small{grid-column:auto}}

/* 1.9.8: Favoriten auf schmalen Displays zweizeilig über volle Breite. */
@media(max-width:700px){
  .hqpsb__fav-row{grid-template-columns:1fr;gap:10px;padding:12px 0}
  .hqpsb__fav-name,.hqpsb__fav-note{width:100%;overflow-wrap:anywhere;word-break:normal}
  .hqpsb__fav-actions{width:100%;justify-content:flex-start;align-items:center;gap:7px}
  .hqpsb__fav-actions .hqpsb__fav-action{flex:0 1 auto}
}

.hqpsb__bridge-title-row{display:flex;align-items:center;gap:9px;position:relative}.hqpsb__bridge-title-row h3{margin:0}.hqpsb__bridge-help{position:relative}.hqpsb__bridge-help summary{list-style:none;width:22px;height:22px;border:1px solid #8d8d8d;border-radius:50%;display:grid;place-items:center;color:#ddd;font-weight:700;font-size:14px;line-height:1;cursor:pointer;user-select:none}.hqpsb__bridge-help summary::-webkit-details-marker{display:none}.hqpsb__bridge-help[open] summary{border-color:#cba34b;color:#f0d58e}.hqpsb__bridge-help-panel{position:absolute;z-index:40;top:30px;left:0;width:min(620px,calc(100vw - 70px));padding:18px 20px;border:1px solid #9f781f;border-radius:12px;background:#171717;box-shadow:0 16px 50px rgba(0,0,0,.6);color:#eee;font-size:.94rem;line-height:1.5}.hqpsb__bridge-help-panel>strong{display:block;margin-bottom:8px;color:#fff;font-size:1.05rem}.hqpsb__bridge-help-panel p{margin:9px 0;color:#d0d0d0}.hqpsb__bridge-help-panel p:last-child{margin-bottom:0}@media(max-width:700px){.hqpsb__bridge-help-panel{position:fixed;left:20px;right:20px;top:18vh;width:auto;max-height:65vh;overflow:auto}}

.hqpsb__bridge-help-close{position:absolute;top:9px;right:10px;width:30px;height:30px;border:1px solid #666;border-radius:50%;background:#202020;color:#ddd;font-size:22px;line-height:25px;text-align:center;cursor:pointer;padding:0}.hqpsb__bridge-help-close:hover,.hqpsb__bridge-help-close:focus{border-color:#cba34b;color:#f0d58e;outline:none}.hqpsb__bridge-help-panel>strong:first-of-type{padding-right:38px}

.hqpsb__hqplayer-selector{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px;padding:12px;border:1px solid rgba(203,163,75,.35);border-radius:9px}.hqpsb__hqplayer-selector select{min-width:min(100%,420px);max-width:100%;padding:9px 34px 9px 10px;background:#181818;color:#eee;border:1px solid #786332;border-radius:7px}.hqpsb__hqplayer-switch-status{color:#d9b96f;font-size:.9em}@media(max-width:700px){.hqpsb__hqplayer-selector{display:block}.hqpsb__hqplayer-selector label,.hqpsb__hqplayer-selector select,.hqpsb__hqplayer-switch-status{display:block;width:100%;margin:0 0 8px}}

.hqpsb__fav-main{min-width:0}
.hqpsb__fav-table{width:100%;margin-top:8px;border-collapse:collapse;font-size:.9em}
.hqpsb__fav-table th,.hqpsb__fav-table td{padding:3px 8px 3px 0;text-align:left;vertical-align:top;border:0}
.hqpsb__fav-table th{width:150px;opacity:.72;font-weight:500;white-space:nowrap}
.hqpsb__fav-table td{font-weight:600;overflow-wrap:anywhere}
@media(max-width:700px){.hqpsb__fav-table th{width:120px}}

/* 1.9.9.11: compact, independently expandable performance details for combo favorites. */
.hqpsb__fav-details-toggle{font:inherit;border:0;background:transparent;color:inherit;opacity:.78;padding:4px 0 0;cursor:pointer;font-size:.88em}
.hqpsb__fav-details-toggle:hover{opacity:1}
.hqpsb__fav-details[hidden]{display:none}
.hqpsb__fav-details .hqpsb__fav-table{margin-top:5px}


/* 1.9.10.0: persistent Bridge controls */
.hqpsb__sticky-control{position:sticky;position:-webkit-sticky;top:0;z-index:9999;margin:-1px -1px 14px;padding:8px 1px 10px;background:#0f0f0f;border-bottom:1px solid rgba(203,163,75,.35);box-shadow:0 10px 22px rgba(0,0,0,.5);isolation:isolate}.hqpsb__sticky-control::before{content:"";position:absolute;inset:0;z-index:-1;background:#0f0f0f}
.hqpsb__sticky-control .hqpsb__hqplayer-selector{margin-top:10px}
.hqpsb__mute{display:inline-flex;align-items:center;gap:10px;margin:0 0 0 auto;padding:5px 9px 7px;border:1px solid rgba(203,163,75,.35);border-radius:7px;color:#eee;min-width:max-content}
.hqpsb__mute legend{padding:0 4px;font-weight:600;font-size:.88em;display:flex;align-items:center;gap:5px}.hqpsb__mute label{display:inline-flex;align-items:center;gap:4px;margin:0}.hqpsb__mute input{accent-color:#d7a538}.hqpsb__mute:disabled{opacity:.42}
.hqpsb__mute-help{position:relative;display:inline-block}.hqpsb__mute-help summary{list-style:none;width:17px;height:17px;border:1px solid #777;border-radius:50%;display:grid;place-items:center;font-size:11px;cursor:pointer}.hqpsb__mute-help summary::-webkit-details-marker{display:none}.hqpsb__mute-help>div{position:absolute;z-index:80;top:23px;right:0;width:min(430px,calc(100vw - 50px));padding:13px 15px;background:#171717;border:1px solid #9f781f;border-radius:9px;box-shadow:0 12px 38px rgba(0,0,0,.55);font-weight:400;line-height:1.45}.hqpsb__mute-help p{margin:6px 0 0;color:#ccc}
@media(max-width:700px){.hqpsb__sticky-control{top:0}.hqpsb__mute{margin:8px 0 0}.hqpsb__mute-help>div{position:fixed;top:20vh;left:20px;right:20px;width:auto}}

.hqpsb__mute-title{display:inline-block;color:#eee;font-weight:600}.hqpsb__mute-help summary{color:#eee;background:#151515}

/* 1.9.10.2: JS-assisted fixed header avoids WordPress/theme overflow/transform breaking CSS sticky. */
.hqpsb__sticky-placeholder{height:0}
.hqpsb__sticky-control--fixed{position:fixed!important;top:8px!important;z-index:2147483000!important;margin:0!important;padding:8px 12px 10px!important;border:1px solid rgba(203,163,75,.45);border-radius:10px;background:#0f0f0f!important;box-shadow:0 12px 34px rgba(0,0,0,.72)!important}
@media(max-width:700px){.hqpsb__sticky-control--fixed{left:6px!important;width:calc(100vw - 12px)!important;top:6px!important}}

/* 1.9.10.2: real viewport overlay; keep controls above fixed WordPress/theme headers. */
.hqpsb__sticky-control--fixed{top:0!important;z-index:2147483647!important;overflow:visible!important}
.hqpsb__sticky-control--fixed .hqpsb__bridge-head{display:flex!important}
.hqpsb__mute{position:relative;overflow:visible;padding-top:12px!important}
.hqpsb__mute legend{position:relative!important;float:none!important;width:auto!important;max-width:none!important;margin:0 0 2px!important;padding:0 5px!important;color:#eee!important;background:#0f0f0f!important;line-height:1.2!important;visibility:visible!important;opacity:1!important}
.hqpsb__mute-title{color:#eee!important;visibility:visible!important;opacity:1!important}
.hqpsb__mute-help{vertical-align:middle}
.hqpsb__mute-help summary{color:#eee!important;visibility:visible!important;opacity:1!important}
@media(max-width:700px){.hqpsb__sticky-control--fixed{top:0!important}}

/* 1.9.10.3: keep operational status/messages inside the persistent Bridge header. */
.hqpsb__sticky-control .hqpsb__message--sticky{margin:8px 10px 0;padding:0 2px;min-height:1.35em;line-height:1.35;color:#d9b96f;font-size:.92em}
.hqpsb__sticky-control--fixed .hqpsb__message--sticky{margin-top:7px}

/* One fixed row, including when empty or Power is off. Scroll only its text. */
.hqpsb__bridge-notice-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 24px;
  align-items:center;
  min-inline-size:0;
  block-size:24px;
  margin:4px 10px 2px;
  color:#d9b96f;
  font-size:.92em;
  line-height:1.35;
}
.hqpsb__bridge-notice-viewport{
  min-inline-size:0;
  padding-inline:2px;
  white-space:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
.hqpsb__bridge-notice-viewport::-webkit-scrollbar{display:none}
.hqpsb__bridge-notice-details>summary{inline-size:20px;block-size:20px}
.hqpsb__bridge-notice-details [data-bridge-notice-detail-text]{white-space:pre-line;overflow-wrap:anywhere}
.hqpsb [data-bridge-message][hidden]{display:none!important}

/* 1.9.10.5: snapshot metrics in the persistent Bridge header. */
.hqpsb__metric{display:inline-flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;margin:0;padding:12px 10px 7px;border:1px solid rgba(203,163,75,.35);border-radius:7px;color:#eee;min-width:92px;position:relative;overflow:visible}
.hqpsb__metric legend{position:relative!important;float:none!important;width:auto!important;max-width:none!important;margin:0 0 2px!important;padding:0 5px!important;color:#eee!important;background:#0f0f0f!important;line-height:1.2!important;font-weight:600;font-size:.88em;display:flex;align-items:center;gap:5px;visibility:visible!important;opacity:1!important}
.hqpsb__metric>strong{font-size:.98em;line-height:1.25;white-space:nowrap}
.hqpsb__metric .hqpsb__mute-help{position:relative;display:inline-block;vertical-align:middle}
.hqpsb__metric .hqpsb__mute-help>div{position:absolute;z-index:80;top:23px;right:0;width:min(460px,calc(100vw - 50px));padding:13px 15px;background:#171717;border:1px solid #9f781f;border-radius:9px;box-shadow:0 12px 38px rgba(0,0,0,.55);font-weight:400;line-height:1.45}
.hqpsb__metric .hqpsb__mute-help p{margin:6px 0 0;color:#ccc}
@media(max-width:700px){.hqpsb__metric{margin:8px 6px 0 0}.hqpsb__metric .hqpsb__mute-help>div{position:fixed;top:20vh;left:20px;right:20px;width:auto}}

.hqpsb__help-close{float:right;margin:-5px -7px 4px 10px;border:0;background:transparent;color:#ddd;font-size:20px;line-height:1;cursor:pointer;padding:2px 5px}.hqpsb__help-close:hover{color:#fff}

/* 2.9.10.11 integrated workspace: navigation lives inside persistent Bridge frame */
.hqpsb__view-nav{display:flex;gap:8px;flex-wrap:wrap;padding:8px 0 0;margin:8px 0 0;border:0;border-top:1px solid rgba(203,163,75,.28);border-radius:0;background:transparent}
.hqpsb__view-nav button{padding:6px 10px;border:1px solid rgba(203,163,75,.55);border-radius:7px;background:transparent;color:#f0d58e;cursor:pointer;font-size:.88em}.hqpsb__view-nav button.is-active{background:#d99422;color:#fff}
.hqpsb__brand-logo{width:46px!important;height:46px!important;max-width:46px!important}.hqpsb__bridge{padding:14px}.hqpsb__grid{gap:8px;margin-top:12px}.hqpsb__grid>div{padding:8px 10px}.hqpsb__actions{margin-top:10px}.hqpsb__hqplayer-selector{gap:8px!important}
.hqpsb__draft-note{margin:8px 0;padding:8px 10px;border:1px solid rgba(203,163,75,.35);border-radius:8px;color:#d9b96f}

/* 2.9.10.19: independent Bridge/HQPlayer connection indicators */
.hqpsb__hqplayer-dot{font-size:18px;line-height:1;flex:0 0 auto}
.hqpsb__hqplayer-dot[data-state="connected"]{color:#69b875}
.hqpsb__hqplayer-dot[data-state="disconnected"]{color:#d96b6b}
.hqpsb__hqplayer-dot[data-state="checking"]{color:#c7a75c}
.hqpsb__hqplayer-selector{grid-template-columns:auto auto minmax(240px,1fr) auto auto auto auto}
@media(max-width:900px){.hqpsb__hqplayer-selector{grid-template-columns:auto auto minmax(180px,1fr)}}

/* 2.9.10.19: larger independent connection indicators */
.hqpsb__status{font-size:1em}
.hqpsb__status::first-letter{font-size:1.45em}
.hqpsb__hqplayer-dot{font-size:28px!important;line-height:.7!important;margin-right:3px}
/* 2.9.10.20 explicit three-state connection icons */
.hqpsb__conn-icon{display:inline-flex!important;align-items:center;justify-content:center;width:22px;height:22px;border:2px solid currentColor;border-radius:50%;font-size:15px!important;font-weight:800;line-height:1!important;box-sizing:border-box;flex:0 0 22px}
.hqpsb__status{display:inline-flex;align-items:center;gap:7px}
.hqpsb__status[data-state="ok"] .hqpsb__conn-icon,.hqpsb__hqplayer-dot[data-state="connected"]{color:#69b875}
.hqpsb__status[data-state="error"] .hqpsb__conn-icon,.hqpsb__hqplayer-dot[data-state="disconnected"]{color:#d96b6b}
.hqpsb__status[data-state="checking"] .hqpsb__conn-icon,.hqpsb__hqplayer-dot[data-state="checking"]{color:#999}

/* 2.9.10.22: HQPlayer state hints use the common message line above the selector.
   Multiple discovery results open in an overlay so the control frame never shifts. */
.hqpsb__hqplayer-selector{position:relative}
.hqpsb__hqplayer-switch-status{display:none!important}
.hqpsb__hqplayer-candidates{position:absolute;z-index:1000;top:calc(100% - 6px);left:110px;width:min(520px,calc(100% - 130px));padding:6px;background:#111;border:1px solid #786332;border-radius:8px;box-shadow:0 10px 28px rgba(0,0,0,.55)}
.hqpsb__hqplayer-candidates[hidden]{display:none!important}
.hqpsb__hqplayer-candidate{display:block;width:100%;text-align:left;padding:9px 11px;margin:0;border:0;border-bottom:1px solid rgba(203,163,75,.18);background:#151515;color:#eee;cursor:pointer}
.hqpsb__hqplayer-candidate:last-child{border-bottom:0}
.hqpsb__hqplayer-candidate:hover,.hqpsb__hqplayer-candidate:focus-visible{background:#242018}
@media(max-width:700px){.hqpsb__hqplayer-candidates{left:0;width:100%;top:calc(100% - 2px)}}

/* 3.11.0 / E7 target UI: ActualState and browser-local TargetState are visually separated. */
.hqpsb__grid--e7 .hqpsb__filter-state,.hqpsb__grid--e7 .hqpsb__matrix-state,.hqpsb__grid--e7 .hqpsb__target-state{min-width:0}
.hqpsb__filter-state strong{display:block;font-weight:700}.hqpsb__filter-state small{display:block;margin-top:4px;opacity:.72;line-height:1.35;overflow-wrap:anywhere}
.hqpsb__target-state select,.hqpsb__matrix-state select{width:100%;min-height:38px;padding:7px 34px 7px 9px;background:#181818;color:#eee;border:1px solid #786332;border-radius:7px}
.hqpsb__inline-control{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center}.hqpsb__inline-control button{min-height:38px;padding:6px 9px;border:1px solid #786332;border-radius:7px;background:#171717;color:#f0d58e;cursor:pointer}.hqpsb__inline-control button:disabled{opacity:.4;cursor:default}.hqpsb__matrix-state small{display:block;margin-top:4px;opacity:.65;line-height:1.3}
.hqpsb__target-state{border-color:rgba(217,148,34,.58)!important}.hqpsb__target-state .hqpsb__label{color:#d9b96f}
@media(max-width:700px){.hqpsb__inline-control{grid-template-columns:minmax(0,1fr) auto}.hqpsb__inline-control [data-matrix-apply]{grid-column:1/-1}}
/* 3.12.0 E7 target UI: Matrix is a global fixed-frame control; target mode/rate remain paired. */
.hqpsb__view-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hqpsb__matrix-nav{margin-left:auto;display:flex;align-items:center;gap:6px;min-width:360px;justify-content:flex-end}
.hqpsb__matrix-nav label{font-size:.88em;opacity:.82;white-space:nowrap}
.hqpsb__matrix-nav select{min-width:190px;max-width:300px;min-height:34px;background:#181818;color:#eee;border:1px solid #786332;border-radius:7px;padding:5px 28px 5px 8px}
.hqpsb__matrix-nav button{min-height:34px;padding:5px 9px;border:1px solid #786332;border-radius:7px;background:#171717;color:#f0d58e;cursor:pointer}
.hqpsb__matrix-nav button:disabled,.hqpsb__matrix-nav select:disabled{opacity:.42}
.hqpsb__shaper-state small,.hqpsb__filter-state small{display:block;margin-top:4px;opacity:.72;line-height:1.3}
@media(max-width:900px){.hqpsb__matrix-nav{margin-left:0;width:100%;justify-content:flex-start;min-width:0}.hqpsb__matrix-nav select{flex:1;min-width:120px}}

/* 3.20.5: one-click output mode selector */
.hqpsb__mode-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:5px}
.hqpsb__mode-options label{display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 10px;border:1px solid #555;border-radius:7px;background:#181818;color:#eee;cursor:pointer}
.hqpsb__mode-options label:has(input:checked){border-color:#d99422;box-shadow:0 0 0 1px rgba(217,148,34,.3)}
.hqpsb__mode-options input{accent-color:#d99422;margin:0}

/* 3.20.8: compact HQPlayer selector + server diagnostic-log control. */
.hqpsb__log{margin-left:0!important}
.hqpsb__actions [data-log-read][hidden]{display:none!important}
@media(max-width:900px){.hqpsb__hqplayer-selector select{min-width:min(100%,320px)}}

/* 3.20.9: compact modern Log/Mute switches; keep all runtime metrics on one row. */
.hqpsb__hqplayer-selector{display:grid!important;grid-template-columns:minmax(300px,1fr) auto auto auto auto auto;gap:8px!important;align-items:center;flex-wrap:unset!important}
.hqpsb__hqplayer-selector>select{width:100%;min-width:0!important}
.hqpsb__compact-switch{display:inline-flex;align-items:center;gap:6px;min-width:max-content;color:#eee}
.hqpsb__switch-title{font-weight:600;font-size:.88em}
.hqpsb__switch-control{display:inline-flex!important;width:auto!important;margin:0!important;cursor:pointer}
.hqpsb__switch-control input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.hqpsb__switch-track{position:relative;display:inline-block;width:38px;height:21px;border-radius:999px;background:#3b3b3b;border:1px solid #666;transition:background .15s,border-color .15s}
.hqpsb__switch-thumb{position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:#eee;box-shadow:0 1px 3px rgba(0,0,0,.45);transition:transform .15s}
.hqpsb__switch-control input:checked+.hqpsb__switch-track{background:#d99422;border-color:#d99422}
.hqpsb__switch-control input:checked+.hqpsb__switch-track .hqpsb__switch-thumb{transform:translateX(17px)}
.hqpsb__switch-control input:focus-visible+.hqpsb__switch-track{outline:2px solid #f0d58e;outline-offset:2px}
.hqpsb__compact-switch[aria-disabled="true"]{opacity:.42}.hqpsb__compact-switch[aria-disabled="true"] .hqpsb__switch-control{cursor:not-allowed}
.hqpsb__mute-switch .hqpsb__mute-help{margin-left:-2px}
@media(max-width:1050px){.hqpsb__hqplayer-selector{grid-template-columns:minmax(240px,1fr) auto auto auto auto auto}}
@media(max-width:850px){.hqpsb__hqplayer-selector{grid-template-columns:minmax(220px,1fr) auto auto}.hqpsb__metric{margin:0!important}}
@media(max-width:700px){.hqpsb__hqplayer-selector{display:grid!important;grid-template-columns:1fr 1fr!important}.hqpsb__hqplayer-selector>select{grid-column:1/-1}.hqpsb__metric{width:auto!important}.hqpsb__compact-switch{margin:0}}


/* 3.20.10: restore HQPlayer indicator, stack Log/Mute, opaque help panel. */
.hqpsb__hqplayer-selector{grid-template-columns:auto minmax(300px,1fr) auto auto auto auto!important;gap:8px!important;align-items:center}
.hqpsb__hqplayer-dot{display:inline-flex!important;align-items:center;justify-content:center;width:22px;height:22px;border:2px solid currentColor;border-radius:50%;font-size:15px!important;font-weight:800;line-height:1!important;margin:0!important;box-sizing:border-box}
.hqpsb__switch-stack{display:grid;grid-template-columns:1fr;gap:5px;align-content:center;min-width:max-content}
.hqpsb__switch-stack .hqpsb__compact-switch{display:grid;grid-template-columns:42px 38px;gap:6px;align-items:center}
.hqpsb__switch-stack .hqpsb__switch-title{min-width:0}
.hqpsb__mute-switch{position:relative}
.hqpsb__mute-switch .hqpsb__mute-help{position:absolute;left:28px;top:50%;transform:translateY(-50%);z-index:2}
.hqpsb__mute-switch .hqpsb__switch-control{grid-column:2}
.hqpsb__mute-help>div,.hqpsb__metric .hqpsb__mute-help>div{background:#171717!important;background-color:#171717!important;opacity:1!important;color:#eee!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.hqpsb__mute-help>div p,.hqpsb__metric .hqpsb__mute-help>div p{color:#ddd!important;opacity:1!important}
@media(max-width:1050px){.hqpsb__hqplayer-selector{grid-template-columns:auto minmax(240px,1fr) auto auto auto auto!important}}
@media(max-width:850px){.hqpsb__hqplayer-selector{grid-template-columns:auto minmax(220px,1fr) auto!important}.hqpsb__metric{margin:0!important}}
@media(max-width:700px){.hqpsb__hqplayer-selector{grid-template-columns:auto 1fr!important}.hqpsb__hqplayer-selector>select{grid-column:2}.hqpsb__switch-stack{grid-column:1/-1}.hqpsb__metric{width:auto!important}}


/* 3.30.17: narrower HQPlayer selector to reserve clear space for Log/Mute and runtime metrics. */
@media(min-width:1051px){.hqpsb__hqplayer-selector{grid-template-columns:auto minmax(260px,420px) auto auto auto auto!important}}
@media(min-width:851px) and (max-width:1050px){.hqpsb__hqplayer-selector{grid-template-columns:auto minmax(220px,360px) auto auto auto auto!important}}

/* 3.40.1 / E8 monitor */
.hqpsb__monitor{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:5px 10px;border:1px solid rgba(203,163,75,.55);border-radius:999px;background:#111;color:#eee;white-space:nowrap;order:0}
.hqpsb__monitor-title{font-size:.88em;font-weight:600}.hqpsb__monitor-rates{font-size:.9em;font-weight:600;color:#f0d58e;min-width:42px;text-align:left}
.hqpsb__monitor[aria-disabled="true"]{opacity:.58}.hqpsb__monitor[data-connected="false"] .hqpsb__monitor-rates{color:#aaa}


/* 3.40.1-fixed1: freeze runtime metric geometry during fast E8 DSP updates.
   Desktop/tablet only; the existing <=700px responsive layout remains fluid. */
@media(min-width:701px){
  .hqpsb__hqplayer-selector{
    grid-template-columns:auto minmax(260px,420px) auto 172px 112px 112px!important;
  }
  .hqpsb__metric{
    box-sizing:border-box!important;
    width:112px!important;
    min-width:112px!important;
    max-width:112px!important;
    overflow:visible;
  }
  .hqpsb__metric:has([data-dsp-load]){
    width:172px!important;
    min-width:172px!important;
    max-width:172px!important;
  }
  .hqpsb__metric>strong{
    display:block;
    width:100%;
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:clip;
    font-variant-numeric:tabular-nums;
    font-feature-settings:"tnum" 1;
  }
  [data-dsp-load]{
    min-width:150px;
    font-variant-numeric:tabular-nums;
    font-feature-settings:"tnum" 1;
  }
}
@media(min-width:701px) and (max-width:1050px){
  .hqpsb__hqplayer-selector{
    grid-template-columns:auto minmax(220px,1fr) auto 172px 112px 112px!important;
  }
}


/* 3.41.0: compact E8 monitor with fixed IP/OP buffer fields. */
.hqpsb__monitor{
  font-weight:400!important;
}
.hqpsb__monitor-title,
.hqpsb__monitor-rates,
.hqpsb__monitor-buffer{
  font-weight:400!important;
}
.hqpsb__monitor-rates{
  white-space:nowrap;
}
.hqpsb__monitor-buffer{
  display:inline-block;
  box-sizing:border-box;
  width:64px;
  min-width:64px;
  max-width:64px;
  white-space:nowrap;
  text-align:left;
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
}
.hqpsb__monitor-buffer[hidden]{
  display:none!important;
}
.hqpsb__monitor-help{
  position:relative;
  flex:0 0 auto;
  font-weight:400;
}
.hqpsb__monitor-help>summary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border:1px solid currentColor;
  border-radius:50%;
  cursor:pointer;
  list-style:none;
  font-size:12px;
  line-height:1;
}
.hqpsb__monitor-help>summary::-webkit-details-marker{display:none}
.hqpsb__monitor-help>div{
  position:absolute;
  z-index:1000;
  top:28px;
  right:0;
  width:min(440px,80vw);
  padding:14px;
  border:1px solid #72581b;
  border-radius:10px;
  background:#171717;
  box-shadow:0 12px 30px rgba(0,0,0,.45);
  font-weight:400;
  line-height:1.45;
}
.hqpsb__monitor-help>div p{margin:.55em 0}

/* 3.41.0-fixed1: opaque and bounded E8 monitor help. */
.hqpsb__monitor-help>div{background:#171717!important;background-color:#171717!important;opacity:1!important;color:#eee!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow-wrap:anywhere;word-break:normal}
.hqpsb__monitor-help>div p{color:#ddd!important;opacity:1!important}
.hqpsb__monitor-help>div code{white-space:normal}
@media(max-width:900px){.hqpsb__monitor-help>div{position:fixed;top:18vh;left:20px;right:20px;width:auto;max-width:none}}


/* 3.42.0: optional Auto rate family control for combo favorites. */
.hqpsb__auto-rate-family{display:inline-flex;align-items:center;gap:7px;margin-left:2px;font:inherit;color:inherit;cursor:pointer;white-space:nowrap}
.hqpsb__auto-rate-family input{width:18px;height:18px;margin:0;accent-color:#dca331;cursor:pointer}
.hqpsb__auto-rate-family.is-automatic{color:#8f8f8f}
.hqpsb__auto-rate-family.is-automatic input{accent-color:#8f8f8f}
.hqpsb__auto-rate-family.is-manual{color:inherit}
.hqpsb__auto-rate-family.is-manual input{accent-color:#dca331}
/* Force normal wrapping in the E8 help even when theme/plugin CSS imposes nowrap. */
/* 3.42.0-fixed1: keep the popup independent from the narrow ? details element. */
.hqpsb__monitor-help>div{white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}
.hqpsb__monitor-help>div p{white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}
.hqpsb__monitor-help>div code{white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}
.hqpsb__dsp-values{display:grid;grid-template-columns:78px 64px;column-gap:6px;align-items:center;width:148px;font-weight:600;font-variant-numeric:tabular-nums}
.hqpsb__dsp-percent,.hqpsb__dsp-speed{display:block;box-sizing:border-box;white-space:nowrap;text-align:left}
.hqpsb__dsp-percent{width:78px}.hqpsb__dsp-speed{width:64px}

/* 3.43.0: high-visibility runtime warnings. The full metric field is red only
   while the existing Apod/Limiter advisory condition is active. */
.hqpsb__metric.is-runtime-warning{
  background:#a40000!important;
  border-color:#ff5a5a!important;
  color:#fff!important;
}
.hqpsb__metric.is-runtime-warning legend{
  background:#a40000!important;
  color:#fff!important;
}

/* 3.44.0 direct selection: preserve the existing status-grid geometry. */
.hqpsb__direct-line{display:flex;align-items:center;gap:.4rem;min-width:0}
.hqpsb__direct-line>strong{min-width:0}
.hqpsb__direct-line select{width:100%;max-width:100%;min-width:0;flex:1 1 100%}
.hqpsb__direct-state.is-editing .hqpsb__direct-edit{display:none}
.hqpsb__direct-state.is-editing .hqpsb__direct-line{width:100%}
.hqpsb__direct-edit{padding:.08rem .38rem;line-height:1.25;cursor:pointer}
.hqpsb__direct-lock{font-size:.85em;opacity:.75}
.hqpsb__direct-state.is-editing>small{display:none}


/* 3.44.0-fixed3: direct edit controls use the same dark visual language as output-rate selects. */
.hqpsb__direct-line select{
  min-height:38px;
  padding:7px 34px 7px 9px;
  background:#181818!important;
  background-color:#181818!important;
  color:#eee!important;
  border:1px solid #786332!important;
  border-radius:7px;
  color-scheme:dark;
}
.hqpsb__direct-line select option{background:#181818;color:#eee}
.hqpsb__direct-line select:focus{background:#181818!important;color:#fff!important}

/* 3.5.2: translation-stable monitor flow. */
.hqpsb__monitor-flow{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;font-weight:400!important}
.hqpsb__monitor-flow[hidden]{display:none!important}
.hqpsb__monitor-arrow{display:inline-block;white-space:nowrap}
.hqpsb__monitor-fill{display:inline-block;width:38px;min-width:38px;text-align:right;white-space:nowrap}

/* 3.5.2-fixed3: fixed DSP number frame; percent sign stays stationary. */
.hqpsb__dsp-percent{display:grid;grid-template-columns:6ch 1ch;column-gap:2px;align-items:center;width:78px;white-space:nowrap;text-align:left}
.hqpsb__dsp-percent [data-dsp-percent]{display:block;width:6ch;text-align:right;font-variant-numeric:tabular-nums}
.hqpsb__dsp-percent-sign{display:block;width:1ch;text-align:left}

/* 3.5.2-fixed4: four fixed monitor-flow frames: ↑↑ input  ↓↓ output. */
.hqpsb__monitor-flow{display:grid;grid-template-columns:2.2ch 4.8ch 2.2ch 4.2ch;column-gap:4px;align-items:center;white-space:nowrap}
.hqpsb__monitor-flow[hidden]{display:none!important}
.hqpsb__monitor-arrow{display:block;width:auto;min-width:0;text-align:center;white-space:nowrap}
.hqpsb__monitor-fill{display:block;width:auto;min-width:0;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.hqpsb__monitor-fill--in{text-align:left}
.hqpsb__monitor-fill--out{text-align:right}

/* 3.6.4: shared HQPlayer connection/stop icon container; selector grid unchanged. */
.hqpsb__hqplayer-icon-group{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;line-height:1!important}
.hqpsb__hqplayer-icon-group .hqpsb__hqplayer-dot{flex:0 0 22px!important}
.hqpsb__hqplayer-stop{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 22px!important;width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#d96b6b!important;cursor:pointer!important;line-height:1!important;box-sizing:border-box!important}
.hqpsb__hqplayer-stop svg{display:block!important;width:22px!important;height:22px!important;overflow:visible!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important}
.hqpsb__hqplayer-stop svg rect{fill:currentColor!important;stroke:none!important}
.hqpsb__hqplayer-stop:hover{color:#ef7777!important}
.hqpsb__hqplayer-stop:focus-visible{outline:1px solid currentColor!important;outline-offset:2px!important}
.hqpsb__hqplayer-stop[data-busy="1"]{opacity:.5!important;cursor:wait!important}

/* 3.6.6: Actual/Pending output-rate editor. */
.hqpsb__direct-rate-close{padding:.08rem .38rem;line-height:1.25;cursor:pointer}
.hqpsb__output-rate-state [data-direct-output-rate]{min-width:0;max-width:100%}

/* 3.6.6-fixed1: compact close control stays inside Filter/Shaper field line. */
.hqpsb__direct-inline-close{
  flex:0 0 28px;
  width:28px;
  height:28px;
  padding:0!important;
  display:inline-grid;
  place-items:center;
  align-self:center;
  line-height:1;
  cursor:pointer;
}
.hqpsb__direct-inline-close[hidden]{display:none!important}

/* 3.8.0 InspectorService */
.hqpsb__inspector-state{min-width:0}.hqpsb__inspector-controls{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}.hqpsb__inspector-controls select{max-width:100%;min-width:220px}.hqpsb__inspector-toggle{display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap}.hqpsb__inspector-state small{display:block;margin-top:.35rem;opacity:.78}

/* 3.8.0-fixed3: Inspector uses the same direct-editor visual language as Filter/Shaper. */
.hqpsb__inspector-state{min-width:0}
.hqpsb__inspector-controls{display:flex;gap:.55rem;align-items:center;flex-wrap:nowrap}
.hqpsb__inspector-filter-line{flex:1 1 auto;min-width:0}
.hqpsb__inspector-filter-line>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hqpsb__inspector-state.is-editing .hqpsb__inspector-filter-line{width:100%}
.hqpsb__inspector-state.is-editing [data-inspector-fallback-name],.hqpsb__inspector-state.is-editing [data-inspector-fallback-edit]{display:none!important}
.hqpsb__inspector-state [data-inspector-fallback]{width:100%;max-width:100%;min-width:0;flex:1 1 100%;min-height:38px;padding:7px 34px 7px 9px;background:#181818!important;background-color:#181818!important;color:#eee!important;border:1px solid #786332!important;border-radius:7px;color-scheme:dark}
.hqpsb__inspector-state [data-inspector-fallback] option{background:#181818;color:#eee}
.hqpsb__inspector-state [data-inspector-fallback]:focus{background:#181818!important;color:#fff!important}
.hqpsb__inspector-toggle{display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap}
.hqpsb__inspector-help{display:inline-block;margin-left:.25rem;vertical-align:middle}
.hqpsb__filter-state.is-inspector-locked [data-direct-filter-edit]{display:none!important}
.hqpsb__filter-state .hqpsb__inspector-lock{font-size:.85em;opacity:.78}


/* 3.8.0-fixed3: Inspector help remains usable on short browser/mobile viewports. */
.hqpsb__inspector-help[open] > div{
  max-height:min(62vh,520px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}


/* 3.8.0-fixed4: Inspector help is a fixed viewport panel with a real scroll container. */
.hqpsb__inspector-help[open] > div{
  position:fixed!important;
  z-index:10000!important;
  top:50%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  width:min(430px,calc(100vw - 40px))!important;
  max-width:calc(100vw - 40px)!important;
  max-height:calc(100vh - 80px)!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
  overflow-y:scroll!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y;
}
/* Inspector recovery never owns/locks the normal filter editor. */
.hqpsb__filter-state.is-inspector-locked [data-direct-filter-edit]{display:inline-grid!important}
.hqpsb__filter-state .hqpsb__inspector-lock{display:none!important}

/* 3.8.0-fixed5: Inspector active checkbox uses the established Bridge ochre accent. */
.hqpsb__inspector-toggle input[type="checkbox"]{accent-color:#dca331}

/* 3.10.1: Matrix profile row below target mode / Inspector. */
.hqpsb__matrix-row{display:flex;justify-content:flex-end;border-top:1px solid #4d4022;padding-top:10px;margin-top:10px}
.hqpsb__matrix-row .hqpsb__matrix-nav{margin-left:0}
@media(max-width:900px){.hqpsb__matrix-row{justify-content:flex-start}}

/* 3.11.0: server-owned Ranking runtime guard. */
.hqpsb.is-ranking-locked [data-view-panel="bridge"] button:disabled,.hqpsb.is-ranking-locked [data-view-panel="bridge"] select:disabled,.hqpsb.is-ranking-locked [data-view-panel="bridge"] input:disabled{cursor:not-allowed;opacity:.55}
/* 3.12.0 – dynamic benchmark annotations for combo favorites */
.hqpsb__benchmark-sort{display:inline-flex;gap:6px;align-items:center;font-size:.9em}.hqpsb__benchmark-sort select{font:inherit;background:transparent;color:inherit;border:1px solid rgba(184,135,36,.55);border-radius:6px;padding:5px 7px}.hqpsb__fav-benchmark{margin-top:3px;font-size:.88em;color:#c99a3b}

/* 3.15.0-fixed1 passive Ranking preview */
.hqpsb__ranking-panel{border-top:1px solid #4d4022;margin-top:10px;padding-top:10px}
.hqpsb__ranking-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.hqpsb__ranking-title{font-weight:600;color:#f0d58e}
.hqpsb__ranking-head small{opacity:.72;font-size:.78em}
.hqpsb__ranking-toggle{display:inline-flex;align-items:center;gap:5px;font-size:.88em}
.hqpsb__ranking-toggle input{accent-color:#dca331}
.hqpsb__ranking-values{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hqpsb__ranking-metric{border:1px solid #786332;border-radius:8px;background:#171717;padding:7px 10px;min-height:58px;display:flex;flex-direction:column;justify-content:center}
.hqpsb__ranking-metric>span{font-size:.78em;opacity:.84;margin-bottom:3px}
.hqpsb__ranking-metric>strong{font-size:1.05em;font-weight:600}
.hqpsb__ranking-metric.is-green{background:rgba(48,112,61,.34);border-color:#4d8a58}
.hqpsb__ranking-metric.is-yellow{background:rgba(151,111,24,.34);border-color:#a98432}
.hqpsb__ranking-metric.is-red{background:rgba(137,45,45,.42);border-color:#a34a4a}
@media(max-width:700px){.hqpsb__ranking-values{grid-template-columns:1fr}}

/* 3.15.0-fixed2 Ranking match transparency */
.hqpsb__ranking-info>summary{font-style:normal;font-weight:700;text-transform:lowercase}
.hqpsb__ranking-info-section{margin:.7rem 0;padding-top:.55rem;border-top:1px solid rgba(120,99,50,.45)}
.hqpsb__ranking-info-section:first-child{border-top:0;padding-top:0}
.hqpsb__ranking-info-section>b{display:block;margin-bottom:.4rem;color:#f0d58e}
.hqpsb__ranking-info-section>div{display:grid;grid-template-columns:minmax(120px,1fr) minmax(150px,2fr);gap:.6rem;margin:.2rem 0}
.hqpsb__ranking-info-section>div>span{opacity:.72}
.hqpsb__ranking-info-section>div>strong{font-weight:500;overflow-wrap:anywhere}
.hqpsb__ranking-info-section code{display:block;margin-top:.45rem;padding:.4rem .5rem;border:1px solid rgba(120,99,50,.55);border-radius:5px;white-space:normal;overflow-wrap:anywhere;color:#e8d8ad;background:#111}

/* 3.15.0-fixed4: Ranking overlays are viewport-bounded so long info never clips at page bottom. */
.hqpsb__ranking-head .hqpsb__ranking-help>div,
.hqpsb__ranking-head .hqpsb__ranking-info>div{
  position:fixed;
  left:50%;
  right:auto;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(600px,calc(100vw - 48px));
  max-width:calc(100vw - 48px);
  max-height:calc(100vh - 48px);
  overflow-y:auto;
  overflow-x:hidden;
  box-sizing:border-box;
  overscroll-behavior:contain;
  z-index:10020;
}
.hqpsb__ranking-head .hqpsb__ranking-help>div{width:min(520px,calc(100vw - 48px))}
.hqpsb__ranking-info-section code{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:700px){
  .hqpsb__ranking-head .hqpsb__ranking-help>div,
  .hqpsb__ranking-head .hqpsb__ranking-info>div{
    width:calc(100vw - 32px);
    max-width:calc(100vw - 32px);
    max-height:calc(100vh - 32px);
  }
}


/* 3.17.5: fixed-geometry passive Monitor activity LED. */
.hqpsb__monitor{position:relative}
.hqpsb__monitor-led{box-sizing:border-box;display:inline-block;flex:0 0 8px;width:8px;min-width:8px;max-width:8px;height:8px;min-height:8px;max-height:8px;padding:0;margin:0;border:0;border-radius:50%;background:#777;box-shadow:0 0 0 1px rgba(255,255,255,.16);cursor:pointer;vertical-align:middle;appearance:none;-webkit-appearance:none}
.hqpsb__monitor-led[data-state="fresh"]{background:#55b86a}
.hqpsb__monitor-led[data-state="stale"]{background:#c85757}
.hqpsb__monitor-led[data-state="none"]{background:#777}
.hqpsb__monitor-led.is-pulse{animation:hqpsb-monitor-led-pulse .34s ease-out 1}
@keyframes hqpsb-monitor-led-pulse{0%{opacity:1;box-shadow:0 0 0 1px rgba(255,255,255,.16),0 0 6px rgba(255,255,255,.85)}100%{opacity:.72;box-shadow:0 0 0 1px rgba(255,255,255,.16)}}
.hqpsb__monitor-led-popover{position:absolute;z-index:1002;top:42px;left:48px;min-width:210px;max-width:280px;padding:10px 12px;border:1px solid #72581b;border-radius:9px;background:#171717!important;color:#eee!important;box-shadow:0 10px 24px rgba(0,0,0,.42);font-size:12px;line-height:1.45;white-space:normal;font-variant-numeric:tabular-nums}
.hqpsb__monitor-led-popover[hidden]{display:none!important}
/* 3.18.0 Inspector Monitor/Analyzer architecture - reuse established Bridge styling. */
.hqpsb__inspector-controls{align-items:center}
.hqpsb__inspector-policy{display:inline-flex;gap:.55rem;align-items:center;flex-wrap:wrap}
.hqpsb__inspector-policy label,.hqpsb__inspector-trigger{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap}
.hqpsb__inspector-policy input[type="radio"],.hqpsb__inspector-trigger input,.hqpsb__inspector-toggle input[type="checkbox"]{accent-color:#dca331}
.hqpsb__inspector-trigger input{width:3.8rem;min-height:32px;padding:4px 6px;background:#181818;color:#eee;border:1px solid #786332;border-radius:7px}
.hqpsb__inspector-controls [data-inspector-status]{flex-basis:100%;margin-top:.15rem;opacity:.78}

/* 3.18.0-fixed2 Inspector layout: Matrix in E7 grid, Inspector full responsive row below Ranking. */
.hqpsb__matrix-state{min-width:0}
.hqpsb__matrix-state .hqpsb__matrix-nav{margin:0;min-width:0;width:100%;justify-content:flex-start}
.hqpsb__matrix-state .hqpsb__matrix-nav select{flex:1 1 auto;min-width:120px;max-width:none}
.hqpsb__inspector-panel{border-top:1px solid #4d4022;padding-top:10px;margin-top:10px}
.hqpsb__inspector-panel[hidden]{display:none!important}
.hqpsb__inspector-head{display:flex;align-items:center;gap:.5rem;margin-bottom:8px;color:#eee}
.hqpsb__inspector-head .hqpsb__inspector-toggle{margin-left:.1rem;font-size:.88em;gap:5px}
.hqpsb__inspector-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.hqpsb__inspector-frame{min-width:0;border:1px solid #5b4a27;border-radius:8px;padding:10px;background:#111}
.hqpsb__inspector-config{display:flex;flex-direction:column;gap:9px}
.hqpsb__inspector-policy{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.hqpsb__inspector-filter-line{display:flex;align-items:center;gap:7px;min-width:0}
.hqpsb__inspector-fallback-label{flex:0 0 auto;opacity:.82}
.hqpsb__inspector-filter-line>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hqpsb__inspector-panel.is-editing .hqpsb__inspector-filter-line{align-items:stretch}
.hqpsb__inspector-panel.is-editing [data-inspector-fallback-name],.hqpsb__inspector-panel.is-editing [data-inspector-fallback-edit]{display:none!important}
.hqpsb__inspector-panel [data-inspector-fallback]{width:100%;max-width:100%;min-width:0;flex:1 1 auto;min-height:38px;padding:7px 34px 7px 9px;background:#181818!important;color:#eee!important;border:1px solid #786332!important;border-radius:7px;color-scheme:dark}
.hqpsb__inspector-runtime{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.hqpsb__inspector-status-line{display:flex;align-items:center;gap:8px;min-height:24px}
.hqpsb__inspector-led{box-sizing:border-box;display:inline-block;flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:#777;box-shadow:0 0 0 1px rgba(255,255,255,.16)}
.hqpsb__inspector-led[data-state="ready"]{background:#55b86a}
.hqpsb__inspector-led[data-state="busy"]{background:#dca331}
.hqpsb__inspector-led[data-state="failed"]{background:#c85757}
.hqpsb__inspector-led[data-state="off"]{background:#777}
.hqpsb__inspector-runtime [data-inspector-status]{margin:0;opacity:.78;line-height:1.4}
@media(max-width:900px){.hqpsb__inspector-grid{grid-template-columns:1fr}.hqpsb__matrix-state .hqpsb__matrix-nav{flex-wrap:wrap}}


/* 3.20.2: explicit browser-side Bridge TLS/connectivity diagnosis. */
.hqpsb__bridge-fallback button:disabled{opacity:.42;cursor:not-allowed}
.hqpsb__bridge-diagnostic-overlay{position:fixed;inset:0;z-index:1000001;background:rgba(0,0,0,.74);display:flex;align-items:center;justify-content:center;padding:24px}
.hqpsb__bridge-diagnostic-dialog{width:min(720px,100%);background:#121212;border:1px solid #9f781f;border-radius:16px;padding:24px;color:#eee;box-shadow:0 18px 60px rgba(0,0,0,.58)}
.hqpsb__bridge-diagnostic-dialog h4{margin:0 0 14px;font-size:1.35rem;color:#fff}
.hqpsb__bridge-diagnostic-dialog p{margin:10px 0;line-height:1.55;color:#cfcfcf}
.hqpsb__bridge-diagnostic-dialog strong{color:#f0d58e}
.hqpsb__bridge-diagnostic-target{margin-top:16px!important;padding:10px 12px;border:1px solid rgba(203,163,75,.35);border-radius:8px;background:#0b0b0b;overflow-wrap:anywhere}
.hqpsb__bridge-diagnostic-target code{color:#e7c36d}
.hqpsb__bridge-diagnostic-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:22px}
.hqpsb__bridge-diagnostic-actions button{border:1px solid #dca331;background:transparent;color:#f0cf83;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer}
.hqpsb__bridge-diagnostic-actions .hqpsb__bridge-diagnostic-primary{background:#e6a225;color:#17120a;border-color:#e6a225}

/* 3.30.0: client-side HTTP/HTTPS transport selector in Bridge header. */
.hqpsb__https-switch{display:inline-flex;align-items:center;gap:6px;min-width:max-content;color:#eee;order:0}
.hqpsb__https-title{font-weight:600;font-size:.88em}
@media(max-width:700px){.hqpsb__https-switch{margin-top:0}}


/* 3.30.1: transport help beside HTTPS selector. */
.hqpsb__transport-help{margin-left:1px}
.hqpsb__transport-help>div{width:min(560px,calc(100vw - 50px));max-height:min(70vh,620px);overflow:auto}
.hqpsb__transport-help>div strong{color:#fff}
.hqpsb__transport-help>div ul{margin:8px 0 0 20px;padding:0;color:#ddd}
.hqpsb__transport-help>div li{margin:5px 0}
.hqpsb__transport-help>div code{color:#e7c36d;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.hqpsb__transport-help>div{position:fixed;top:16vh;left:20px;right:20px;width:auto;max-height:68vh}}
/* 3.50.0 Passive Ranking - reuses existing black/ochre Bridge design. */
.hqpsb__passive-ranking{margin:0 0 9px;border:1px solid #4d4022;border-radius:8px;background:#111}
.hqpsb__passive-ranking>summary{cursor:pointer;padding:7px 10px;color:#f0d58e;font-weight:600}
.hqpsb__passive-ranking-body{padding:0 10px 10px;display:grid;gap:7px}
.hqpsb__passive-ranking-body>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.hqpsb__passive-ranking-body>div>span:first-child{min-width:52px;opacity:.8}
.hqpsb__passive-dialog{border:1px solid #786332;border-radius:10px;background:#111;color:#eee;padding:0;max-width:min(620px,calc(100vw - 32px))}
.hqpsb__passive-dialog::backdrop{background:rgba(0,0,0,.72)}
.hqpsb__passive-dialog-card{padding:18px;display:grid;gap:9px;min-width:min(520px,calc(100vw - 64px))}
.hqpsb__passive-dialog-card>strong{color:#f0d58e;font-size:1.05em}
.hqpsb__passive-dialog-card>label{display:grid;grid-template-columns:160px 1fr;align-items:center;gap:8px}
.hqpsb__passive-dialog-card input[type=text]{background:#171717;color:#eee;border:1px solid #786332;border-radius:5px;padding:6px 8px}
.hqpsb__passive-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
.hqpsb__passive-dialog-actions button,.hqpsb__passive-ranking-body .hqpsb__btn{background:#171717;color:#f0d58e;border:1px solid #a98432;border-radius:6px;padding:6px 10px}
@media(max-width:700px){.hqpsb__passive-dialog-card>label{grid-template-columns:1fr}}
/* 3.50.0-fixed1 Passive Ranking hardware dialog refinements. */
.hqpsb__passive-ranking-body>[data-passive-ranking-hardware-save],.hqpsb__passive-ranking-body .hqpsb__btn{justify-self:start;width:auto}
.hqpsb__passive-dac{display:grid;gap:6px}
.hqpsb__passive-dac select{background:#171717;color:#eee;border:1px solid #786332;border-radius:5px;padding:6px 8px;width:100%}
/* 3.50.1 compact Inspector disclosure */
.hqpsb__inspector-disclosure{margin-left:2px;padding:1px 6px;min-width:26px;border:1px solid #786332;border-radius:6px;background:transparent;color:#f0d58e;cursor:pointer;line-height:1.25}
.hqpsb__inspector-disclosure:hover{border-color:#cba34b}
.hqpsb__inspector-grid[hidden]{display:none!important}
/* 4.0.0 Player: static DOM, existing Bridge controls are moved into slots only on view changes. */
.hqpsb__player-panel{display:grid;gap:14px}.hqpsb__player-now{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:center;border:1px solid #8f6f2f;padding:14px;background:#080808}.hqpsb__player-cover{width:150px;height:150px;border:1px solid #8f6f2f;display:grid;place-items:center;overflow:hidden}.hqpsb__player-cover img{width:100%;height:100%;object-fit:cover}.hqpsb__player-meta{display:grid;gap:6px}.hqpsb__player-meta strong{font-size:1.2rem}.hqpsb__player-transport,.hqpsb__player-seek,.hqpsb__player-apply{display:flex;align-items:center;justify-content:center;gap:10px}.hqpsb__player-seek input{flex:1}
.hqpsb__player-seek>[data-player-position],.hqpsb__player-seek>[data-player-length]{
  flex:0 0 6ch;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.hqpsb__player-seek>[data-player-length]{text-align:end}
.hqpsb__player-progress{position:relative;flex:1;min-inline-size:0;height:32px;display:flex;align-items:center}
.hqpsb__player-progress::before{content:"";position:absolute;left:0;right:0;height:4px;background:#4b4b4b;pointer-events:none}
.hqpsb__player-progress input{position:relative;width:100%;margin:0;background:transparent;z-index:1}
.hqpsb__player-direct{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hqpsb__recommend-panel{border:1px solid #8f6f2f;background:#080808;padding:12px}.hqpsb__recommend-head{display:flex;justify-content:space-between;align-items:center}.hqpsb__recommend-body{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(320px,1.2fr);gap:14px;margin-top:10px}.hqpsb__recommend-criteria{display:grid;gap:9px}.hqpsb__recommend-criteria label{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}.hqpsb__recommend-list{border:1px solid #55421d;max-height:260px;overflow:auto}.hqpsb__recommend-item{display:block;width:100%;text-align:left;padding:9px 10px;border:0;border-bottom:1px solid #332811;background:#0b0b0b;color:inherit}.hqpsb__recommend-item:hover,.hqpsb__recommend-item.is-selected{background:#211a0d}.hqpsb__recommend-item strong,.hqpsb__recommend-item small{display:block}.hqpsb__player-ranking .hqpsb__ranking-panel{margin-top:0}.hqpsb__player-apply .hqpsb__apply{min-width:220px}@media(max-width:720px){.hqpsb__player-now{grid-template-columns:100px 1fr}.hqpsb__player-cover{width:100px;height:100px}.hqpsb__player-direct,.hqpsb__recommend-body{grid-template-columns:1fr}}
.hqpsb__player-progress input{-webkit-appearance:none;appearance:none;height:100%;background:transparent;touch-action:pan-y;cursor:pointer}
.hqpsb__player-progress input:disabled{cursor:default}
.hqpsb__player-progress input[aria-busy="true"],.hqpsb__player-transport button[aria-busy="true"]{cursor:wait}
.hqpsb__player-progress input:focus-visible{outline:2px solid #dca331;outline-offset:2px}
.hqpsb__player-progress input::-webkit-slider-runnable-track{height:4px;background:transparent}
.hqpsb__player-progress input::-moz-range-track{height:4px;background:transparent}
.hqpsb__player-progress input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:50%;border:1px solid #b98936;background:#dca331;margin-top:-6px}
.hqpsb__player-progress input::-moz-range-thumb{width:16px;height:16px;border-radius:50%;border:1px solid #b98936;background:#dca331}
/* 4.1.0 Player recommendation controls mirror the Filter Settings visual language. */
.hqpsb__recommend-criteria{gap:12px}
.hqpsb__recommend-criteria>label{grid-template-columns:minmax(150px,.9fr) minmax(180px,1.1fr);gap:10px}
.hqpsb__recommend-criteria select{width:100%;background:#202024;color:inherit;border:1px solid #6f5729;border-radius:4px;padding:8px 10px}
.hqpsb__recommend-criteria select:focus{outline:2px solid #b98936;outline-offset:1px;border-color:#b98936}
.hqpsb__recommend-range{display:grid;gap:4px}
.hqpsb__recommend-range>label{display:flex;justify-content:space-between;gap:10px;align-items:center}
.hqpsb__recommend-range output{color:#b98936;font-weight:600}
.hqpsb__recommend-range input[type="range"]{display:block;width:100%;height:24px;margin:0;padding:0;background:transparent;accent-color:#b98936;cursor:pointer;-webkit-appearance:none;appearance:none}
.hqpsb__recommend-range input[type="range"]::-webkit-slider-runnable-track{height:6px;border:1px solid #777783;border-radius:999px;background:#3b3b42}
.hqpsb__recommend-range input[type="range"]::-webkit-slider-thumb{width:22px;height:22px;margin-top:-9px;border:2px solid #f0f0f0;border-radius:50%;background:#b98936;box-shadow:0 0 0 2px #222;-webkit-appearance:none;appearance:none}
.hqpsb__recommend-range input[type="range"]::-moz-range-track{height:6px;border:1px solid #777783;border-radius:999px;background:#3b3b42}
.hqpsb__recommend-range input[type="range"]::-moz-range-thumb{width:18px;height:18px;border:2px solid #f0f0f0;border-radius:50%;background:#b98936;box-shadow:0 0 0 2px #222}
.hqpsb__recommend-scale{display:grid;grid-template-columns:repeat(6,1fr);width:100%;color:#8f8f8f;font-size:.78rem;line-height:1;text-align:center}.hqpsb__recommend-scale span:first-child{text-align:left}.hqpsb__recommend-scale span:last-child{text-align:right}
.hqpsb__recommend-scale-label{min-height:1.35rem;margin-top:.2rem;color:#b98936;font-size:.86rem;font-weight:600;text-align:center}
.hqpsb__recommend-item.is-selected{background:#b98936;color:#111}.hqpsb__recommend-item.is-selected small{color:#111}.hqpsb__recommend-item.is-selected:hover{background:#c99a43;color:#111}

/* 4.1.0 Player layout: one rounded ochre control frame, ranking before recommendations. */
.hqpsb__player-now,.hqpsb__player-control-frame,.hqpsb__recommend-panel{border:1px solid #8f6f2f;border-radius:10px;background:#080808}
.hqpsb__player-control-frame{display:grid;gap:14px;padding:14px 12px}
.hqpsb__player-control-frame .hqpsb__player-direct{margin:0}
.hqpsb__player-direct :is([data-active-filter-meta],[data-active-shaper-meta]){
  display:block;
  block-size:3.9em;
  line-height:1.3;
  overflow:auto;
  overflow-wrap:anywhere;
  scrollbar-gutter:stable;
}
@media(max-width:720px){
  .hqpsb__player-direct :is([data-active-filter-meta],[data-active-shaper-meta]){block-size:2.6em}
}
.hqpsb__player-ranking{margin-top:0}
.hqpsb__recommend-list{max-height:390px;min-height:330px}
@media(max-width:720px){.hqpsb__recommend-list{min-height:260px;max-height:360px}}

/* 4.1.1 Player readability/actions */
.hqpsb__player-panel strong{color:#fff}
.hqpsb__player-apply{justify-content:flex-start}
.hqpsb__player-apply .hqpsb__apply{min-width:220px}


/* 4.1.2 Player recommendation collapse */
.hqpsb__recommend-collapse{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:#fff;font:inherit;cursor:pointer;text-align:left}
.hqpsb__recommend-collapse strong{color:#fff}
.hqpsb__recommend-collapse [data-recommend-caret]{color:#d9a12b;font-size:.9em;line-height:1}
.hqpsb__player-apply [data-player-roon-log]{min-width:0}

/* 4.2.1 Player metadata/genre split: fixed frame height, local overflow only. */
.hqpsb__player-now{grid-template-columns:150px minmax(0,1fr) minmax(0,1fr);height:180px;align-items:stretch}
.hqpsb__player-cover{align-self:center}
.hqpsb__player-scroll{min-width:0;max-height:150px;overflow:auto;align-self:center;padding-right:6px}
.hqpsb__player-meta.hqpsb__player-scroll{
  align-self:stretch;
  align-content:start;
  overflow-wrap:anywhere;
  scrollbar-gutter:stable;
}
.hqpsb__player-genres{display:grid;gap:7px;border-left:1px solid #55421d;padding-left:16px}
.hqpsb__player-genres strong{color:#fff}.hqpsb__player-genres a{color:#f0d58e;text-decoration:none}.hqpsb__player-genres a:hover{text-decoration:underline}
@media(max-width:720px){.hqpsb__player-now{grid-template-columns:100px minmax(0,1fr) minmax(0,1fr);height:140px}.hqpsb__player-scroll{max-height:110px}.hqpsb__player-genres{padding-left:10px}}

/* 4.2.1 Player controls/status spacing. */
.hqpsb__player-transport-row{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap}
.hqpsb__player-transport button,.hqpsb__player-volume button{border:1px solid #b98936;border-radius:8px;background:#080808;color:#f0d58e;min-width:58px;min-height:44px;cursor:pointer;touch-action:manipulation}
.hqpsb__player-transport button:disabled,.hqpsb__player-volume button:disabled{opacity:.45;cursor:not-allowed}
.hqpsb__player-transport button:enabled:active,.hqpsb__player-volume button:enabled:active,.hqpsb__player-transport button[aria-busy="true"]{background:#dca331;color:#111;opacity:1}
[data-player-command-status]{flex-basis:100%;color:#f0d58e;line-height:1.4}
[data-player-command-status]:empty{display:none}
[data-player-command-status][data-bridge-notice="player-control-dispatch-rejected"],[data-player-command-status][data-bridge-notice="player-control-dispatch-unconfirmed"]{color:#f6a99e}
.hqpsb__player-volume{display:flex;align-items:center;justify-content:center;gap:8px}
.hqpsb__player-volume button{min-width:44px}
.hqpsb__player-volume [data-player-volume]{min-width:64px;text-align:center;font-variant-numeric:tabular-nums;color:#fff}
.hqpsb__footer-meta{margin-top:20px}

/* 4.3.0 Administration */
.hqpsb__view-nav .hqpsb__admin-nav{margin-left:auto;min-width:38px;font-size:18px;order:100}
.hqpsb__admin-panel{display:grid;gap:14px}.hqpsb__admin-frame{border:1px solid #55421d;border-radius:8px;padding:14px;background:#080808}.hqpsb__admin-frame legend{color:#f0d58e;font-weight:700;padding:0 7px}.hqpsb__admin-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px 22px}.hqpsb__admin-grid label,.hqpsb__admin-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.hqpsb__admin-row{padding:6px 0;border-bottom:1px solid #211b10}.hqpsb__admin-row:last-child{border-bottom:0}.hqpsb__admin-row input[type=text]{flex:1;min-width:0;background:#050505;color:#fff;border:1px solid #806326;border-radius:6px;padding:7px}.hqpsb__admin-row button,.hqpsb__admin-actions button{border:1px solid #b98936;border-radius:8px;background:#080808;color:#f0d58e;padding:8px 12px;cursor:pointer}.hqpsb__admin-row button:disabled,.hqpsb__admin-actions button:disabled{opacity:.45;cursor:not-allowed}.hqpsb__admin-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-start}.hqpsb__admin-genre-head{display:flex;align-items:center;gap:8px;margin:8px 0}.hqpsb__admin-genre-target{min-width:100px;color:#f0d58e;font-weight:700}.hqpsb__admin-panel select{background:#050505;color:#fff;border:1px solid #806326;border-radius:6px;padding:6px}.hqpsb__admin-panel small{color:#aaa}@media(max-width:720px){.hqpsb__admin-grid{grid-template-columns:1fr}.hqpsb__admin-row{align-items:flex-start;flex-wrap:wrap}.hqpsb__admin-row input[type=text]{flex-basis:100%}}
.hqpsb__admin-panel[hidden]{display:none!important}

/* 4.3.2: Administration checkboxes use the canonical Bridge ochre accent. */
.hqpsb__admin-panel input[type="checkbox"]{accent-color:#dca331}

/* 4.3.2: checkbox labels stay visually attached and left-aligned. */
.hqpsb__admin-grid .hqpsb__admin-check,.hqpsb__admin-row .hqpsb__admin-check{justify-content:flex-start;gap:10px;text-align:left}.hqpsb__admin-check input[type="checkbox"]{flex:0 0 auto;margin:0}.hqpsb__admin-check span{display:inline-block;text-align:left}.hqpsb__admin-raw{margin-top:4px}
.hqpsb__admin-row .hqpsb__admin-check{display:flex;align-items:center}

/* 4.4.4 bottom manual full refresh */
.hqpsb__bottom-actions{display:flex;justify-content:flex-end;margin:18px 0 10px}

/* 4.5.4-fixed1 Inspector Filter layout – robust, overlap-free */
.hqpsb__inspector-filter{margin-top:10px}
.hqpsb__if-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch;padding:8px 0 2px}
.hqpsb__if-frame{min-width:0;width:auto;margin:0;border:1px solid #55421d;border-radius:8px;background:#080808;padding:14px 16px;box-sizing:border-box}
.hqpsb__if-ranking-frame,.hqpsb__if-limits-frame{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(34px,auto);gap:10px;align-content:center}
.hqpsb__if-frame label{min-width:0;margin:0;box-sizing:border-box}
.hqpsb__if-ranking-frame label{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:10px;white-space:normal}
.hqpsb__if-limits-frame > :is(label,.hqpsb__if-forecast-row){
  display:grid;
  grid-template-columns:minmax(0,1fr) 18px minmax(0,76px) max-content;
  align-items:center;
  column-gap:clamp(5px,1vw,9px);
  white-space:normal;
}
.hqpsb__if-limits-frame > :is(label,.hqpsb__if-forecast-row) > input[type=number]{max-width:100%}
.hqpsb__if-limits-frame > .hqpsb__if-forecast-row[hidden]{display:none}
.hqpsb__inspector-filter input[type=checkbox]{accent-color:#dca331;width:14px;height:14px;margin:0}
.hqpsb__if-grid input[type=number]{width:76px;min-width:0;box-sizing:border-box;background:#111;color:#d6ad63;border:1px solid #80652f;border-radius:4px;padding:4px 6px}
.hqpsb__if-grid input[type=number]:disabled{opacity:.45}
.hqpsb__if-status{grid-column:1/-1;display:flex;gap:24px;flex-wrap:wrap;padding:0 2px}
.hqpsb__inspector-filter table{border-collapse:collapse;font-size:.9em}.hqpsb__inspector-filter th,.hqpsb__inspector-filter td{border:1px solid #66512c;padding:4px 6px;vertical-align:top}
@media(max-width:820px){.hqpsb__if-grid{grid-template-columns:1fr}.hqpsb__if-status{grid-column:1}}
@media(max-width:520px){.hqpsb__if-grid input[type=number]{width:70px}}


/* 4.5.4-fixed3 — Inspector Filter header + scrollable help (fixed1 base) */
.hqpsb__inspector-filter > summary {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  position:relative !important;
}
.hqpsb__inspector-filter > summary > * { flex:0 0 auto !important; }
.hqpsb__inspector-filter > summary label,
.hqpsb__inspector-filter > summary .hqpsb__if-enabled,
.hqpsb__inspector-filter > summary [class*="enabled"],
.hqpsb__inspector-filter > summary [class*="active"] {
  position:static !important; inset:auto !important; margin:0 !important; transform:none !important;
}
.hqpsb__inspector-filter > summary button,
.hqpsb__inspector-filter > summary .hqpsb__help,
.hqpsb__inspector-filter > summary [class*="help"] {
  position:static !important; inset:auto !important; margin:0 !important; transform:none !important;
}
.hqpsb__if-help-popover,
.hqpsb__inspector-filter [role="dialog"],
.hqpsb__inspector-filter .hqpsb__help-popover,
.hqpsb__inspector-filter .hqpsb__help-popup {
  max-height:min(70vh,520px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
/* 4.5.5 Player filter recommendations: technical criteria added to the left selection frame. */
.hqpsb__recommend-body{grid-template-columns:minmax(330px,1fr) minmax(320px,1.15fr)}
.hqpsb__recommend-list{max-height:360px}
@media(max-width:720px){.hqpsb__recommend-body{grid-template-columns:1fr}}

/* 4.5.5-fixed1: recommendation list follows the taller technical-criteria frame. */
.hqpsb__recommend-list{min-height:500px;max-height:500px}
@media(max-width:720px){.hqpsb__recommend-list{min-height:300px;max-height:420px}}
\n\n/* 4.5.9 Player genre frame, Inspector Filter status layout and scrollable help. */
.hqpsb__player-genres{
  border:1px solid #55421d;
  border-radius:8px;
  padding:10px 12px;
  min-width:0;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:7px;
}
.hqpsb__player-genres>[data-player-genres]{min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:5px}
.hqpsb__player-genres>small{display:block;padding-top:5px;border-top:1px solid #332811;background:#080808}
.hqpsb__if-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}
.hqpsb__if-status-frame{display:flex;align-items:center}
.hqpsb__if-status{grid-column:auto;display:grid;gap:12px;align-content:center;padding:0}
.hqpsb__if-status small{display:block;line-height:1.45}
.hqpsb__inspector-filter .hqpsb__mute-help>div{
  max-height:min(70vh,520px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
@media(max-width:980px){.hqpsb__if-grid{grid-template-columns:1fr 1fr}.hqpsb__if-status-frame{grid-column:1/-1}}
@media(max-width:820px){.hqpsb__if-grid{grid-template-columns:1fr}.hqpsb__if-status-frame{grid-column:1}.hqpsb__if-status{grid-column:auto}}


/* 4.5.10: Player genre source remains visible; Inspector Filter uses full panel width. */
.hqpsb__player-genres.hqpsb__player-scroll{
  max-height:none !important;
  height:100%;
  align-self:stretch;
  overflow:hidden !important;
  box-sizing:border-box;
}
.hqpsb__player-genres>[data-player-genres]{
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
}
.hqpsb__player-genre-head{display:flex;align-items:center;gap:8px;min-width:0}
.hqpsb__player-genre-head>strong{min-width:0;overflow-wrap:anywhere}
.hqpsb__player-genre-head>.hqpsb__mute-help{flex:0 0 auto}
.hqpsb__player-genre-head>.hqpsb__mute-help summary{width:22px;height:22px;font-size:12px}
.hqpsb__player-genres>.hqpsb__player-genre-head,
.hqpsb__player-genres>small{flex:0 0 auto}
.hqpsb__inspector-filter [data-if-body]{
  grid-template-columns:minmax(0,1fr) !important;
}
.hqpsb__inspector-filter [data-if-body]>.hqpsb__if-grid{
  grid-column:1/-1;
  width:100%;
}
.hqpsb__inspector-filter .hqpsb__if-grid{
  grid-template-columns:minmax(220px,1.05fr) minmax(340px,1.45fr) minmax(220px,1fr);
}
@media(max-width:980px){
  .hqpsb__inspector-filter .hqpsb__if-grid{grid-template-columns:1fr 1.35fr}
  .hqpsb__inspector-filter .hqpsb__if-status-frame{grid-column:1/-1}
}
@media(max-width:720px){
  .hqpsb__inspector-filter .hqpsb__if-grid{grid-template-columns:1fr}
  .hqpsb__inspector-filter .hqpsb__if-status-frame{grid-column:1}
}

/* 4.7.0 Roon Queue */
.hqpsb__queue-link{appearance:none;border:0;background:transparent;color:#f0d58e;padding:0;font:inherit;cursor:pointer;text-decoration:none}.hqpsb__queue-link:hover{text-decoration:underline}.hqpsb__queue-link:disabled{color:#777;cursor:default;text-decoration:none}
.hqpsb__queue-dialog{width:min(620px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 32px));padding:0;border:1px solid #8f6f2f;border-radius:12px;background:#080808;color:#eee;box-shadow:0 18px 60px rgba(0,0,0,.62)}.hqpsb__queue-dialog::backdrop{background:rgba(0,0,0,.72)}
.hqpsb__queue-card{padding:16px;display:grid;gap:10px}.hqpsb__queue-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #55421d;padding-bottom:10px}.hqpsb__queue-head strong{color:#f0d58e;font-size:1.1rem}.hqpsb__queue-head button{border:0;background:transparent;color:#f0d58e;font-size:1.5rem;cursor:pointer}
.hqpsb__queue-state{font-size:.88rem;color:#aaa}.hqpsb__queue-list{display:grid;gap:5px;overflow:auto}.hqpsb__queue-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;border:1px solid transparent;border-bottom-color:#332811;background:#0b0b0b;color:#eee;text-align:left;padding:9px 10px;cursor:pointer}.hqpsb__queue-item:hover,.hqpsb__queue-item.is-selected{background:#211a0d;border-color:#8f6f2f}.hqpsb__queue-copy{min-width:0;display:grid;gap:2px}.hqpsb__queue-artistline{display:flex;gap:10px;justify-content:space-between;min-width:0}.hqpsb__queue-artist{font-weight:700;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hqpsb__queue-length{color:#c7c7c7;font-variant-numeric:tabular-nums;flex:none}.hqpsb__queue-title{color:#d5d5d5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hqpsb__queue-play{visibility:hidden;border:1px solid #b98936;border-radius:7px;background:#080808;color:#f0d58e;min-width:42px;min-height:36px;cursor:pointer}.hqpsb__queue-item.is-selected .hqpsb__queue-play{visibility:visible}

.hqpsb [data-bridge-version].is-version-warning{color:#d9b96f;font-weight:700}

/* 4.9.4: fixed upper compatibility warning; separate from runtime status text. */

/* 4.9.7 Player cover/track/genre frame: slightly taller to avoid incidental scrollbars. */
.hqpsb__player-now{height:200px}
.hqpsb__player-scroll{max-height:170px}
@media(max-width:720px){
  .hqpsb__player-now{height:155px}
  .hqpsb__player-scroll{max-height:125px}
}

.hqpsb__roon-library {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-end: 11px;
  z-index: 1;
  display: flex;
  gap: 3px;
}
.hqpsb__roon-library[hidden] { display: none; }
.hqpsb__roon-library-symbols { position: absolute; pointer-events: none; }
.hqpsb .hqpsb__roon-library button {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  inline-size: 31px;
  block-size: 31px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #aca8a2;
  cursor: pointer;
  touch-action: manipulation;
}
.hqpsb .hqpsb__roon-library button[data-roon-library-unknown] { color: #90877a; }
.hqpsb .hqpsb__roon-library button[aria-pressed="true"] { color: #f0d58e; }
.hqpsb .hqpsb__roon-library button[aria-disabled="false"]:hover { background: #ffffff15; }
.hqpsb .hqpsb__roon-library button:focus-visible { outline: 2px solid #f0d58e; outline-offset: 1px; }
.hqpsb .hqpsb__roon-library button[aria-disabled="true"] { cursor: not-allowed; }
.hqpsb .hqpsb__roon-library button[aria-busy="true"] { cursor: wait; }
.hqpsb__roon-library-heart { fill: none; }
.hqpsb__roon-library-unknown { display: none; }
.hqpsb__roon-library [data-roon-library-unknown] .hqpsb__roon-library-unknown { display: initial; }
.hqpsb__roon-library [data-roon-library-unknown] :is(.hqpsb__roon-library-yes, .hqpsb__roon-library-no, .hqpsb__roon-library-heart, .hqpsb__roon-library-ban) { display: none; }
.hqpsb__roon-library [aria-pressed="true"] .hqpsb__roon-library-heart { fill: currentColor; }
.hqpsb__roon-library [aria-pressed="true"] .hqpsb__roon-library-ban circle { fill: currentColor; }
.hqpsb__roon-library [aria-pressed="true"] .hqpsb__roon-library-ban path { stroke: #141311; }
.hqpsb__roon-library [aria-pressed="true"] .hqpsb__roon-library-no,
.hqpsb__roon-library [aria-pressed="false"] .hqpsb__roon-library-yes { display: none; }
.hqpsb__player-now:has(> .hqpsb__roon-library:not([hidden])) {
  --roon-library-space: 32px;
  --roon-player-frame-height: 200px;
  position: relative;
  height: calc(var(--roon-player-frame-height) + var(--roon-library-space));
  padding-block-start: calc(14px + var(--roon-library-space));
}
@media (max-width: 720px) {
  .hqpsb__player-now:has(> .hqpsb__roon-library:not([hidden])) { --roon-player-frame-height: 155px; }
}
@media (pointer: coarse) {
  .hqpsb .hqpsb__roon-library button { inline-size: 44px; block-size: 44px; }
  .hqpsb__player-now:has(> .hqpsb__roon-library:not([hidden])) { --roon-library-space: 45px; }
}

/* 4.9.9 Player recommendation/source and inline genre mapping icon. */
.hqpsb__recommend-list{min-height:560px;max-height:560px}
.hqpsb__recommend-source{margin-top:7px;color:#aaa;font-size:.82rem}.hqpsb__recommend-source a{color:#d7d7d7;text-decoration:underline}
.hqpsb__recommend-body[data-recommend-body][hidden]{display:none}
.hqpsb__recommend-current{margin-top:10px;padding:12px;border:1px solid #665321;border-radius:8px;background:#15140f;overflow-wrap:anywhere}
.hqpsb__recommend-current[hidden]{display:none}
.hqpsb__recommend-current>strong,.hqpsb__recommend-current>code,.hqpsb__recommend-current>small{display:block}
.hqpsb__recommend-current>code{margin:4px 0;color:#f0d78e;font-size:1rem}
.hqpsb__recommend-current>small{margin-top:4px;color:#bbb;line-height:1.4}
.hqpsb__genre-map-logo{display:inline-block!important;width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;object-fit:contain;vertical-align:-3px;margin:0 1px;white-space:nowrap}
.hqpsb__recommend-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.hqpsb__recommend-title>strong{display:block}.hqpsb__recommend-rating{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto}.hqpsb__recommend-rating-logo{position:relative;display:inline-block;width:20px;height:20px;overflow:hidden;flex:none}.hqpsb__recommend-rating-logo>img{position:absolute;inset:1px;width:18px;height:18px;max-width:none;object-fit:contain;opacity:.18}.hqpsb__recommend-rating-logo>span{position:absolute;left:0;top:0;height:100%;overflow:hidden}.hqpsb__recommend-rating-logo>span img{position:absolute;left:1px;top:1px;width:18px;height:18px;max-width:none;object-fit:contain}
@media(max-width:720px){.hqpsb__recommend-list{min-height:360px;max-height:460px}.hqpsb__recommend-rating-logo{width:17px;height:17px}.hqpsb__recommend-rating-logo>img,.hqpsb__recommend-rating-logo>span img{width:15px;height:15px}}

/* 4.11.0 Connection Inspector */
.hqpsb__connection-limiter{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.hqpsb__connection-limiter[hidden],.hqpsb__connection-help[hidden]{display:none}
.hqpsb__connection-frame{min-height:54px;box-sizing:border-box;border:1px solid #786332;border-radius:7px;background:#111;padding:8px 10px}
.hqpsb__connection-controls,.hqpsb__connection-stats{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.hqpsb__connection-controls label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.hqpsb__connection-controls input[type="number"]{width:54px;padding:4px 5px;border:1px solid #786332;border-radius:5px;background:#080808;color:inherit}
.hqpsb__connection-stat{display:flex;flex-direction:column;gap:2px;font-variant-numeric:tabular-nums}
.hqpsb__connection-stat small{font-size:.72rem;color:#ccc}
.hqpsb__connection-stat strong{font-size:.95rem}
.hqpsb__connection-stats{gap:18px}
.hqpsb__connection-help-button{height:22px;width:22px;border:1px solid #786332;border-radius:50%;background:transparent;color:#f0d58e;padding:0;cursor:pointer}
.hqpsb__connection-led{width:8px;height:8px;border-radius:50%;background:#777}
.hqpsb__connection-led[data-state="fresh"]{background:#69c68a}
.hqpsb__connection-led[data-state="stale"]{background:#c59d49}
.hqpsb__connection-led.is-pulse{animation:hqpsb-connection-pulse .65s ease-out}
@keyframes hqpsb-connection-pulse{from{box-shadow:0 0 0 0 #69c68a}to{box-shadow:0 0 0 5px transparent}}
@media (prefers-reduced-motion:reduce){.hqpsb__connection-led.is-pulse{animation:none}}
.hqpsb__connection-help{position:relative;flex-basis:100%;padding-right:30px}
.hqpsb__connection-help [data-ri-help-close]{position:absolute;top:5px;right:5px;color:#f0d58e;background:transparent;border:0;cursor:pointer;font-size:1.15rem}
.hqpsb__connection-help p{margin:6px 0 0}
.hqpsb__connection-telemetry{border-top:1px solid #55421d;padding-top:10px}
.hqpsb__connection-telemetry .hqpsb__admin-grid{margin:8px 0 10px}
.hqpsb__connection-summary{padding:9px 10px;border:1px solid rgba(190,143,52,.45);border-radius:6px;background:#111;line-height:1.45;font-variant-numeric:tabular-nums}
.hqpsb__connection-summary[data-state="active"]{color:#d8b35d}
.hqpsb__connection-summary[data-state="inactive"]{color:#aaa}
.hqpsb__connection-captured{flex-basis:100%;display:block;color:#aaa;font-size:.72rem;font-variant-numeric:tabular-nums}
.hqpsb__connection-captured:empty{display:none}
.hqpsb__connection-summary [data-connection-inspector-hqplayer]:not([hidden]){margin-top:4px}

/* Keep the right-hand controls together when the header wraps. */
.hqpsb__bridge-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}
.hqpsb__bridge-head-monitor { min-width: 0; max-width: 100%; }
.hqpsb__bridge-head-monitor .hqpsb__monitor {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.hqpsb__bridge-head-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-inline-start: auto;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}
.hqpsb__bridge-head-right > :not(.hqpsb__status--compact) { flex: none; }
.hqpsb__bridge-head-divider {
  height: 1em;
  border-inline-start: 1px solid rgba(203, 163, 75, .38);
}
.hqpsb__locale[hidden] + .hqpsb__bridge-head-divider { display: none; }
.hqpsb__status--compact { gap: 6px; min-width: 0; margin: 0 !important; }
.hqpsb__status--compact [data-bridge-status-text] { overflow: hidden; text-overflow: ellipsis; }
.hqpsb__status-info{width:20px;height:20px;padding:0;border:1px solid rgba(203,163,75,.6);border-radius:50%;background:transparent;color:#f0d58e;font:600 12px/18px inherit;cursor:pointer}
.hqpsb__status,.hqpsb__runtime-status{position:relative}
.hqpsb__status-popover{position:absolute;z-index:120;top:calc(100% + 7px);left:0;min-width:240px;max-width:min(420px,80vw);padding:9px 11px;border:1px solid #9f781f;border-radius:8px;background:#171717;color:#eee;box-shadow:0 10px 30px rgba(0,0,0,.5);white-space:normal;font-size:12px;line-height:1.4}
.hqpsb__status--compact .hqpsb__status-popover{left:auto;right:0}
.hqpsb__runtime-row{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:14px;margin-top:10px;padding:10px 12px;border:1px solid rgba(203,163,75,.35);border-radius:9px}
.hqpsb__playback-actions,.hqpsb__runtime-connections,.hqpsb__runtime-metrics{display:flex;align-items:center;gap:10px}
.hqpsb__playback-actions,.hqpsb__runtime-connections{justify-self:start}
.hqpsb__runtime-metrics{justify-self:end}
.hqpsb__runtime-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-weight:600}
.hqpsb__runtime-dot{font-size:11px;color:#888}.hqpsb__runtime-dot[data-state="connected"]{color:#62c77a}.hqpsb__runtime-dot[data-state="disconnected"]{color:#d56a6a}.hqpsb__runtime-dot[data-state="checking"]{color:#d5ad4e}
.hqpsb__runtime-status[data-state="connected"]{color:#eee}.hqpsb__runtime-status[data-state="disconnected"]{color:#eee}
.hqpsb__runtime-row .hqpsb__compact-switch{display:flex;align-items:center;gap:5px}
.hqpsb__runtime-row .hqpsb__metric{margin:0!important}
.hqpsb__admin-hqplayer{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid rgba(203,163,75,.2)}
.hqpsb__admin-hqplayer label{display:grid;grid-template-columns:110px minmax(260px,520px);align-items:center;gap:12px}
.hqpsb__admin-hqplayer select{width:100%;padding:8px 32px 8px 10px;background:#181818;color:#eee;border:1px solid #786332;border-radius:7px}
.hqpsb__view-nav .hqpsb__admin-nav{margin-left:auto!important}
@media(max-width:900px){.hqpsb__runtime-row{grid-template-columns:1fr}.hqpsb__runtime-metrics{justify-self:start;flex-wrap:wrap}.hqpsb__admin-hqplayer label{grid-template-columns:1fr}}

/* 4.20.0 PlaybackSourceService status. Geometry follows the compact runner connection indicator, with independent semantics. */
.hqpsb__playback-source{display:inline-block;width:24px;height:12px;border-radius:4px;border:1px solid rgba(255,255,255,.22);background:#b95b5b;box-shadow:inset 0 0 0 1px rgba(0,0,0,.25);flex:0 0 auto}
.hqpsb__playback-source[data-state="on"]{background:#58a96b}
.hqpsb__playback-source[data-state="playing"]{background:#58a96b;animation:hqpsb-playback-pulse 1.25s ease-in-out infinite}
@keyframes hqpsb-playback-pulse{0%,100%{box-shadow:0 0 0 0 rgba(88,169,107,.15),inset 0 0 0 1px rgba(0,0,0,.25)}50%{box-shadow:0 0 0 5px rgba(88,169,107,.28),inset 0 0 0 1px rgba(0,0,0,.25)}}
@media (prefers-reduced-motion:reduce){.hqpsb__playback-source[data-state="playing"]{animation:none;outline:2px solid rgba(88,169,107,.4)}}
.hqpsb__admin-zone-hqp{font-weight:600}
/* 4.21.1: explain why the effective Roon control is temporarily locked. */
.hqpsb__admin-hint{grid-column:1/-1;color:#d8b45b;font-size:12px;line-height:1.35;margin-top:-4px}

/* 4.33.0: Filter Inspector Auto Rate Family uses the proven viewport-bounded help overlay. */
.hqpsb__if-ranking-frame .hqpsb__if-arf-option{grid-template-columns:18px minmax(0,1fr) 20px}
.hqpsb__if-ranking-frame .hqpsb__if-inline-help>div{
  position:fixed;
  left:50%;
  right:auto;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(520px,calc(100vw - 48px));
  max-width:calc(100vw - 48px);
  max-height:calc(100vh - 48px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  box-sizing:border-box;
  overscroll-behavior:contain;
  z-index:10020;
}
@media(max-width:700px){.hqpsb__if-ranking-frame .hqpsb__if-inline-help>div{width:calc(100vw - 32px);max-width:calc(100vw - 32px);max-height:calc(100vh - 32px) !important}}

/* 4.34.1: Forecast Mute Force follows the Auto Rate Family inline-help design. */
.hqpsb__if-limits-frame .hqpsb__if-inline-help>div{position:fixed;left:50%;right:auto;top:50%;transform:translate(-50%,-50%);width:min(520px,calc(100vw - 48px));max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)!important;overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box;overscroll-behavior:contain;z-index:10020}
@media(max-width:700px){.hqpsb__if-limits-frame .hqpsb__if-inline-help>div{width:calc(100vw - 32px);max-width:calc(100vw - 32px);max-height:calc(100vh - 32px)!important}}

.hqpsb__if-forecast-label{display:flex;align-items:center;gap:5px;min-width:0}
.hqpsb__if-forecast-label > details{flex:0 0 auto}
.hqpsb__if-forecast-label > label{overflow-wrap:anywhere}
.hqpsb__if-limits-frame .hqpsb__if-forecast-help>div{width:min(600px,calc(100vw - 48px));min-height:260px;padding:22px 26px;line-height:1.5}
.hqpsb__if-limits-frame .hqpsb__if-forecast-help>div p{margin:10px 0}
@media(max-width:720px){.hqpsb__if-limits-frame .hqpsb__if-forecast-help>div{width:calc(100vw - 32px);min-height:0}}

/* 4.34.2-fixed2: Forecast help uses the same wrapping behavior as Auto Rate Family. */
.hqpsb__if-limits-frame .hqpsb__if-forecast-help>div,
.hqpsb__if-limits-frame .hqpsb__if-forecast-help>div p{
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
}

/* 4.50.1: selected state is independent of WordPress button focus/active rules. */
[data-hqpsb] .hqpsb__recommend-item:not(.is-selected),
[data-hqpsb] .hqpsb__recommend-item:not(.is-selected):focus,
[data-hqpsb] .hqpsb__recommend-item:not(.is-selected):active {background:#0b0b0b;color:#eee;box-shadow:none}
[data-hqpsb] .hqpsb__recommend-item:not(.is-selected):hover {background:#211a0d;color:#eee}
[data-hqpsb] .hqpsb__recommend-item.is-selected {background:#b98936;color:#111}
[data-hqpsb] .hqpsb__recommend-item:focus-visible {outline:2px solid #f0d58e;outline-offset:-3px}

/* 4.60.2: shared top-layer help; readable above fixed header at every viewport. */
.hqpsb__sticky-control--fixed{box-sizing:border-box;z-index:2147483000!important}
[data-hqpsb-help-layer][data-help-open]{position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;z-index:2147483647!important;width:min(680px,calc(100vw - 32px))!important;min-width:0!important;max-width:calc(100vw - 32px)!important;height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;overscroll-behavior:contain;box-sizing:border-box!important;padding:20px 24px!important;border:1px solid #9f781f!important;border-radius:12px!important;background:#171717!important;color:#eee!important;box-shadow:0 16px 50px #000b!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.5!important;font-size:1rem!important;text-align:left!important}
[data-hqpsb-help-layer][data-help-open] p{white-space:normal!important;color:#ddd!important}
[data-hqpsb-help-layer][data-help-open] .hqpsb__help-close,[data-hqpsb-help-layer][data-help-open] .hqpsb__bridge-help-close{position:sticky!important;top:0!important;float:right;background:#171717!important;color:#eee!important;z-index:1}
.hqpsb__runtime-unconfirmed [data-dsp-load],.hqpsb__runtime-unconfirmed [data-apod-count],.hqpsb__runtime-unconfirmed [data-limiter-state],.hqpsb__runtime-unconfirmed [data-hqplayer-rate],.hqpsb__runtime-unconfirmed [data-hqplayer-shaper],.hqpsb__runtime-unconfirmed [data-active-filter-name]{opacity:.55}

[data-hqpsb-help-layer][data-help-open] table,[data-hqpsb-help-layer][data-help-open] th,[data-hqpsb-help-layer][data-help-open] td{color:#eee!important;background:transparent!important}
[data-hqpsb-help-layer][data-help-open] th,[data-hqpsb-help-layer][data-help-open] td{padding:6px;vertical-align:top}

/* 4.70.0: shared Auto Filter, persistent logical Power and compact information marks. */
.hqpsb__runtime-row{grid-template-columns:auto auto minmax(66px,1fr) auto;gap:12px}
.hqpsb__playback-actions{flex-wrap:wrap;gap:12px}
.hqpsb__auto-filter-switch{white-space:nowrap}
.hqpsb__auto-filter-help{margin:0!important}
.hqpsb__runtime-row .hqpsb__auto-filter-help summary{width:18px;height:18px;min-width:18px;padding:0;line-height:16px;text-align:center}
.hqpsb__power-slot{display:flex;justify-content:center;align-items:center;min-width:66px}
.hqpsb .hqpsb__power-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:58px;min-height:58px;padding:6px 8px;border:2px solid #767676;border-radius:14px;background:#101410;color:#a8aaa8;box-shadow:none;cursor:pointer;font-family:inherit;font-weight:600;font-size:10px;line-height:1.2;white-space:nowrap}
.hqpsb__power-button svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.hqpsb .hqpsb__power-button[data-state="on"]{color:#7cda91;border-color:#5baa6e;background:#101d14;box-shadow:0 0 12px rgba(92,184,110,.16)}
.hqpsb .hqpsb__power-button[data-state="off"]{color:#ed8585;border-color:#c36565;background:#241313;box-shadow:0 0 12px rgba(195,78,78,.12)}
.hqpsb .hqpsb__power-button[data-state="starting"],.hqpsb .hqpsb__power-button[data-state="stopping"],.hqpsb .hqpsb__power-button[data-state="unconfirmed"]{color:#c9a14a;border-color:#c9a14a;background:#201b10}
.hqpsb .hqpsb__power-button:disabled{opacity:1;cursor:wait}
.hqpsb .hqpsb__power-button[data-state="unknown"]:disabled{opacity:.55}
.hqpsb .hqpsb__power-button:focus-visible,.hqpsb .hqpsb__status-trigger:focus-visible{outline:2px solid #f3d388;outline-offset:4px}
.hqpsb .hqpsb__status-trigger{padding:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer;min-width:22px;max-width:22px;min-height:22px;max-height:22px;margin:0!important;flex:0 0 22px}
.hqpsb__hqplayer-dot[data-state="paused"]{color:#929292}
.hqpsb__power-inactive .hqpsb__view-nav button{color:#96918a!important;border-color:#504a3e!important;background:#171717!important;opacity:.65;cursor:default;pointer-events:none}
.hqpsb__power-inactive [data-view-panel]{display:none!important}
.hqpsb__power-inactive .hqpsb__runtime-metrics{opacity:.4}
.hqpsb__power-inactive:not([data-power-state="unknown"]) [data-bridge-message]{display:none!important}
.hqpsb [data-hqplayer-stop][aria-disabled="true"]{opacity:.4;pointer-events:none;cursor:default}
.hqpsb__power-inactive [data-auto-filter-wrap],.hqpsb__power-inactive [data-mute-wrap]{opacity:.5}
/* The Admin leave dialog covers the work area; Power and Stop stay reachable. */
.hqpsb__admin-leave-overlay{z-index:2147482999;box-sizing:border-box;padding:16px;overflow:auto}
.hqpsb__admin-leave-dialog{box-sizing:border-box;max-height:100%;overflow:auto;font-family:inherit}
.hqpsb__admin-leave-dialog [data-admin-leave-status]:empty{display:none}
.hqpsb__admin-leave-dialog [data-admin-leave-status]{color:#f0cf83}
.hqpsb__admin-leave-dialog button:disabled{opacity:.5;cursor:wait}
.hqpsb__admin-leave-dialog button:focus-visible{outline:2px solid #f0d58e;outline-offset:3px}
@media(max-width:540px){.hqpsb__admin-leave-dialog{padding:16px}.hqpsb__admin-leave-dialog .hqpsb__compat-actions{gap:8px}.hqpsb__admin-leave-dialog .hqpsb__compat-actions button{width:100%}}
@media(max-width:1080px){
  .hqpsb__runtime-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 14px}
  .hqpsb__playback-actions{grid-column:1;grid-row:1}
  .hqpsb__runtime-connections{grid-column:1;grid-row:2;flex-wrap:wrap}
  .hqpsb__power-slot{grid-column:2;grid-row:1 / span 2;align-self:center}
  .hqpsb__runtime-metrics{grid-column:1 / -1;grid-row:3;justify-self:start;flex-wrap:wrap}
}
@media(max-width:540px){
  .hqpsb__bridge-head { gap: 8px; }
  .hqpsb__bridge-head-monitor { flex-basis: 100%; }
  .hqpsb__bridge-head-right, .hqpsb__https-switch, .hqpsb__status--compact { gap: 4px; }
  .hqpsb__bridge-head-right .hqpsb__locale button { padding-inline: 4px; }
  .hqpsb__status--compact { padding-inline: 6px; font-size: .875em; }
  .hqpsb__brand-logo { width: 32px !important; height: 32px !important; }
  .hqpsb__monitor { gap: 6px; border-radius: 12px; }
  .hqpsb__monitor-rates{min-width:0;max-width:100%;white-space:normal}
  .hqpsb__monitor-help{margin-left:auto}
  .hqpsb__runtime-row{padding:9px;gap:9px}
  .hqpsb__playback-actions{gap:8px}
  .hqpsb__runtime-connections{gap:10px}
  .hqpsb__runtime-status{gap:4px;font-size:12px}
  .hqpsb .hqpsb__power-button{min-width:54px;min-height:54px;padding:5px 6px}
  .hqpsb__runtime-row .hqpsb__switch-title{font-size:12px}
}
@media (max-width: 360px) {
  .hqpsb__bridge { padding-inline: 10px; }
  .hqpsb__bridge-head-right, .hqpsb__https-switch, .hqpsb__status--compact,
  .hqpsb__bridge-head-right .hqpsb__locale { gap: 2px; }
  .hqpsb__bridge-head-right .hqpsb__locale button {
    padding-inline: 2px;
    border-width: 1px;
    font-size: .75em;
  }
  .hqpsb__https-title, .hqpsb__status--compact { font-size: .8em; }
  .hqpsb__https-switch .hqpsb__switch-track { width: 32px; }
  .hqpsb__https-switch input:checked + .hqpsb__switch-track .hqpsb__switch-thumb { transform: translateX(11px); }
  .hqpsb__transport-help { margin-left: 0; }
  .hqpsb__status--compact { padding-inline: 3px; }
  .hqpsb__brand-logo { width: 28px !important; height: 28px !important; }
}

/* 4.70.2: shared Ratio-Any preference, alongside the existing activation checkbox. */
.hqpsb__recommend-options{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px 20px;margin-left:auto}
.hqpsb__ratio-option{display:inline-flex;align-items:center;gap:7px}
.hqpsb__recommend-options .hqpsb__ranking-toggle{white-space:nowrap}
.hqpsb__recommend-head{gap:12px;flex-wrap:wrap}
.hqpsb__recommend-item:disabled{cursor:default;opacity:.65}
@media(max-width:640px){.hqpsb__recommend-options{width:100%;gap:8px 14px}.hqpsb__recommend-options .hqpsb__ranking-toggle{font-size:.9em}}

@media(max-width:640px){.hqpsb__player-panel{grid-template-columns:minmax(0,1fr)}.hqpsb__recommend-panel{min-width:0;box-sizing:border-box}}

.hqpsb__metric[data-apod-metric]:has([data-apod-track]){
  gap:0;
  /* The 25px stack uses the old .98em × 1.25 line plus part of its padding. */
  padding-block-start:calc(12px - (25px - 1.225em) / 2);
  padding-block-end:calc(7px - (25px - 1.225em) / 2);
}
.hqpsb__metric[data-apod-metric]:has([data-apod-track]) :is([data-apod-track],[data-apod-count]){
  display:block;
  white-space:nowrap;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.hqpsb [data-apod-track]{font-size:14px;font-weight:600}
.hqpsb__metric[data-apod-metric]:has([data-apod-track]) [data-apod-count]{font-size:11px;font-weight:400}
@media(max-width:640px){
  .hqpsb__recommend-options [data-apod-option]{max-width:100%}
  .hqpsb__recommend-options [data-apod-option] .hqpsb__ranking-toggle{white-space:normal}
}

/* 4.72.0: visible, accessible Passive Ranking requirements and errors. */
.hqpsb__passive-required{color:#c5c5c5;font-size:.86em;margin:0 0 5px}
.hqpsb__passive-error{margin:2px 0;color:#ffaaa4;font-size:.9em}
.hqpsb__passive-dialog-card [aria-invalid="true"]{border-color:#ef7770!important;outline:1px solid #ef7770}
.hqpsb__passive-dialog-actions button:disabled{opacity:.55;cursor:wait}

/* 4.80: unavailable names stay legible and explain their transfer restriction. */
.hqpsb [data-hqpsb-availability="unavailable"],.hqpsb [data-hqpsb-availability="pending"]{color:#aaa}
.hqpsb [data-hqpsb-availability],.hqpsb__availability{display:block;font-size:.85em}
.hqpsb option:disabled{color:#888}
.hqpsb [data-passive-ranking-last-sample]{display:block;color:#aaa;margin-top:.35em}
.hqpsb [data-passive-ranking-led][data-state="error"]{background:#d65b5b}

.hqpsb__locale {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
}
.hqpsb__locale[hidden], .hqpsb__locale-message[hidden] { display: none; }
.hqpsb__locale button {
  padding: .25rem .4rem;
  line-height: 1;
}
.hqpsb .hqpsb__locale button,
.hqpsb .hqpsb__direct-edit { border-radius: 6px; }
.hqpsb__locale button[aria-pressed="true"] { font-weight: 700; text-decoration: underline; }
.hqpsb__locale-message {
  position: absolute;
  z-index: 3;
  top: 100%;
  right: 0;
  width: min(16rem, 75vw);
  padding: .45rem;
  background: #202020;
  color: #fff;
  white-space: normal;
}
.hqpsb[data-bridge-locale-loading] > :not(.hqpsb__bridge),
.hqpsb[data-bridge-locale-loading] .hqpsb__bridge > :not(.hqpsb__sticky-control),
.hqpsb[data-bridge-locale-loading] .hqpsb__sticky-control [data-gat-key] {
  visibility: hidden;
  animation: hqpsb-locale-reveal 0s linear .7s forwards;
}
@keyframes hqpsb-locale-reveal { to { visibility: visible; } }
