/* One global selector with its own DOM; the live quote sidebar keeps its place. */
#bh-symbol-modal{z-index:1470!important;color:var(--bh-text);font-family:var(--bh-font)}
body .modal-backdrop.bh-symbol-backdrop{z-index:1460!important;background:#000;opacity:.42}
#bh-symbol-modal .modal-dialog{width:min(760px,calc(100vw - 32px));max-width:760px;margin:16px auto;min-height:calc(100% - 32px)}
#bh-symbol-modal .modal-content{max-height:80dvh;display:flex;flex-direction:column;background:var(--bh-surface);border:1px solid var(--bh-border);border-radius:10px;box-shadow:0 20px 70px #0004;overflow:hidden}
.bh-symbol-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid var(--bh-border);flex:none}
.bh-symbol-modal-head h2{font-size:15px;line-height:1.4;margin:0;font-weight:600;color:var(--bh-text)}
.bh-symbol-modal-close{border:0;background:transparent;color:var(--bh-muted);min-width:40px;min-height:40px;font-size:24px;border-radius:5px}
.bh-symbol-controls{padding:14px 18px 12px;flex:none}
.bh-symbol-search-wrap{display:flex;align-items:center;gap:10px;border:1px solid var(--bh-border);border-radius:6px;background:var(--bh-bg);padding:0 12px;color:var(--bh-muted);width:100%}
#bh-symbol-modal-search{min-width:0;width:100%;height:42px;padding:8px 0;border:0;background:transparent;color:var(--bh-text);font-size:13px}
.bh-symbol-selectors{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.bh-symbol-selectors select,.bh-symbol-filters button{min-height:32px;border:1px solid var(--bh-border);border-radius:5px;background:var(--bh-surface);color:var(--bh-muted);padding:5px 9px;font:inherit;font-size:12px;max-width:200px}
.bh-symbol-selectors select{max-width:180px}.bh-symbol-filters{display:flex;gap:5px;flex-wrap:wrap}.bh-symbol-filters button[aria-pressed=true]{color:var(--bh-text);background:var(--bh-surface-2);border-color:var(--bh-muted)}
.bh-symbol-columns{display:grid;grid-template-columns:34px minmax(130px,1fr) minmax(100px,.65fr) minmax(100px,.65fr) 100px 90px;gap:8px;padding:8px 18px;color:var(--bh-muted);font-size:10px;border-top:1px solid var(--bh-border);border-bottom:1px solid var(--bh-border);flex:none}.bh-symbol-columns>span:nth-child(n+3){text-align:right}
.bh-symbol-results{overflow:auto;overscroll-behavior:contain;min-height:110px;flex:1;scrollbar-width:thin;scrollbar-color:var(--bh-border) transparent}
.bh-symbol-row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;margin:0 10px;padding:0 8px;border-bottom:1px solid var(--bh-border)}
.bh-symbol-row:hover{background:var(--bh-surface-2)}
.bh-symbol-favorite{border:0;border-radius:4px;background:transparent;color:var(--bh-muted);padding:0;width:34px;min-height:50px;font-size:17px}
.bh-symbol-favorite[aria-pressed=true]{color:var(--bh-warning,#d9a441)}
.bh-symbol-select{display:grid;grid-template-columns:minmax(130px,1fr) minmax(100px,.65fr) minmax(100px,.65fr) 100px 90px;align-items:center;gap:8px;min-height:58px;width:100%;border:0;border-radius:4px;padding:7px 0;background:transparent;color:var(--bh-text);font:inherit;text-align:left;font-size:12px}
.bh-symbol-select:disabled{cursor:default;color:var(--bh-muted)}
.bh-symbol-name{display:flex;align-items:center;gap:9px;min-width:0}.bh-symbol-icon{display:flex;flex:none;align-items:center;justify-content:center;width:24px;height:24px}.bh-symbol-icon img{max-width:24px;max-height:24px}
.bh-symbol-words{min-width:0}.bh-symbol-words strong,.bh-symbol-words small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bh-symbol-words strong{font-size:12px;font-weight:600}.bh-symbol-words small{font-size:10px;color:var(--bh-muted);margin-top:3px}
.bh-symbol-bid,.bh-symbol-ask{font-family:var(--bh-number-font);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;font-size:11px}
.bh-symbol-change{text-align:right;font-size:11px;font-variant-numeric:tabular-nums;line-height:1.3;min-width:0;overflow-wrap:anywhere}.bh-symbol-change[data-direction=up]{color:var(--bh-positive)}.bh-symbol-change[data-direction=down]{color:var(--bh-negative)}.bh-symbol-change[data-direction=closed]{font-size:10px;color:var(--bh-muted)}
.bh-symbol-mark{text-align:right;color:var(--bh-muted);font-size:10px;line-height:1.3;overflow-wrap:anywhere}.bh-symbol-select[aria-pressed=true] .bh-symbol-mark{color:var(--bh-accent)}
.bh-symbol-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-top:1px solid var(--bh-border);flex:none;min-height:44px;font-size:11px;color:var(--bh-muted)}
.bh-symbol-more{background:transparent;border:1px solid var(--bh-border);border-radius:4px;color:var(--bh-text);padding:5px 9px;font-size:11px;min-height:30px}.bh-symbol-more[hidden]{display:none}.bh-symbol-empty{text-align:center;padding:30px 16px;color:var(--bh-muted);font-size:13px}
/* Keep text entry calm: no coloured glow on click or automatic focus. */
#search:focus,#search:focus-visible,#bh-symbol-modal-search:focus,#bh-symbol-modal-search:focus-visible{outline:none!important;box-shadow:none!important;background:transparent!important}
.marc-search__head:focus-within,.bh-symbol-search-wrap:focus-within{box-shadow:none!important}
/* Text fields may match focus-visible on a pointer click too: use a quiet
   underline on the existing container, never a bright rectangle around text. */
.marc-search__head:has(#search:focus-visible){border-bottom-color:var(--bh-muted)}
.bh-symbol-search-wrap:has(#bh-symbol-modal-search:focus-visible){border-bottom-color:var(--bh-muted)}
#bh-symbol-modal :is(button,select):focus-visible{outline:1px solid var(--bh-muted)!important;outline-offset:1px}
@media(max-width:767px){
 #bh-symbol-modal .modal-dialog{width:calc(100vw - 16px);margin:8px auto;min-height:calc(100% - 16px)}
 #bh-symbol-modal .modal-content{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:8px}
 .bh-symbol-modal-head{padding:8px 12px}.bh-symbol-modal-head h2{font-size:13px}.bh-symbol-controls{padding:10px 12px}.bh-symbol-modal-close{min-width:44px;min-height:44px}
 .bh-symbol-selectors{gap:7px}.bh-symbol-filters{order:3;width:100%}.bh-symbol-filters button{flex:1;min-height:36px;font-size:11px}.bh-symbol-selectors select{flex:1;max-width:none;min-width:0}
 .bh-symbol-columns{grid-template-columns:30px minmax(0,1fr) minmax(0,1fr) 86px;gap:6px;padding:8px 12px}.bh-symbol-columns>span:nth-child(2),.bh-symbol-columns>span:nth-child(6){display:none}.bh-symbol-columns>span:nth-child(3){grid-column:2;text-align:left}.bh-symbol-columns>span:nth-child(4){grid-column:3;text-align:left}.bh-symbol-columns>span:nth-child(5){grid-column:4}
 .bh-symbol-row{grid-template-columns:30px minmax(0,1fr);gap:6px;margin:0 6px;padding:0 6px}
 .bh-symbol-favorite{width:30px;align-self:start;min-height:46px}
 .bh-symbol-select{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 86px;gap:6px;min-height:78px;padding:8px 0}
 .bh-symbol-name{grid-column:1 / 3;grid-row:1}.bh-symbol-mark{grid-column:3;grid-row:1}.bh-symbol-bid{grid-column:1;grid-row:2;text-align:left}.bh-symbol-ask{grid-column:2;grid-row:2;text-align:left}.bh-symbol-change{grid-column:3;grid-row:2}
 .bh-symbol-bid,.bh-symbol-ask{font-size:10px}.bh-symbol-words small{max-width:180px}.bh-symbol-change{font-size:10px}
 .bh-symbol-modal-footer{padding:8px 12px}.bh-symbol-message{max-width:60%}
}
