.bh-find{display:flex;flex-direction:column;gap:10px}.bh-row{display:grid;grid-template-columns:7.5em 1fr;align-items:center;gap:10px}.bh-label{color:var(--text-dim);font-size:14px}.bh-label .bb-info{display:inline-grid;margin-left:6px;vertical-align:middle}.bh-go{display:flex;gap:8px;flex-wrap:wrap;margin-top:2px}.bh-go #bh-flip{margin-left:auto}.bh-status{min-height:1.5em;margin:0;font-size:14px;color:var(--text-dim)}.bh-status[data-error=true]{color:var(--danger)}.bh-result{margin-top:12px;padding-top:12px;border-top:1px solid var(--border);min-height:0;overflow-y:auto}.bh-evaluation{margin:0 0 8px;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.bh-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.bh-table th{color:var(--text-dim);font-size:12px;font-weight:600;text-align:left;padding:4px 8px 6px;border-bottom:1px solid var(--border)}.bh-table td{font-family:var(--mono);font-size:14px;padding:0 8px;height:32px;border-bottom:1px solid var(--bg-raised)}.bh-table td:first-child{font-family:var(--sans);color:var(--text-dim);font-size:13px}.bh-table tbody tr{cursor:pointer}.bh-table tbody tr:hover td,.bh-table tbody tr:focus-visible td{background:var(--bg-raised)}.bh-table tbody tr:focus-visible{outline:none}.bh-note{margin:8px 0 0;font-size:13px}.bh-links{margin:auto 0 0;padding-top:12px;font-size:12px}#bh-promotion{margin:auto;padding:24px;background:var(--bg-card);color:var(--text);border:1px solid var(--border);border-radius:var(--radius)}#bh-promotion::backdrop{background:#0009}#bh-promotion h2{margin-bottom:16px;font-size:1.1rem}.bh-promotion-options{display:flex;gap:8px;margin-bottom:16px}body:has(#bughouse-lab){height:auto!important;min-height:100dvh!important}#bughouse-lab{--board: min(420px, calc((100vw - 430px)/2) );grid-template-columns:minmax(0,1fr) 330px;align-items:start}.bh-toolbar{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.bh-toolbar h1{font-size:20px;margin:0}.bh-toolbar .dim{font-size:13px}.bh-tools,.bh-actions{display:flex;gap:8px;flex-wrap:wrap}.bh-toolbar svg{width:18px;height:18px}#bh-copy-status:empty{display:none}#bughouse-lab .bb-boards{justify-content:center}#bughouse-lab[data-editing=false] .bb-setup,#bughouse-lab[data-editing=false] .bb-outstanding{display:none}#bughouse-lab .bh-row{grid-template-columns:66px minmax(0,1fr);gap:8px;margin-top:8px}#bughouse-lab .choice-row{gap:6px}#bughouse-lab .choice span{padding:6px 9px;font-size:12px}#bughouse-lab .bh-label{font-size:13px}.bh-actions .btn{padding:8px 10px;font-size:13px}.bh-settings summary,.bh-keyboard summary{cursor:pointer;font-size:14px;color:var(--text-dim)}#bughouse-lab .bh-go{position:sticky;top:0;z-index:5;background:var(--bg);padding:8px 0}#bughouse-lab .bh-go .btn{flex:1}#bughouse-lab .bh-result{overflow:visible}#bh-availability:empty{display:none}.bh-table tbody tr[aria-disabled=true]{cursor:progress}.bh-move-entry{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px}.bh-move-entry input{flex:1;width:100px;min-width:80px}.bh-move-entry select{width:auto;flex:1;padding:8px;background:var(--bg-raised);color:var(--text);border:1px solid var(--border);border-radius:4px}.bh-move-entry p{margin:0;font-size:13px}#bh-copy-dialog{margin:auto;padding:24px;width:min(90vw,700px);background:var(--bg-card);color:var(--text);border:1px solid var(--border);border-radius:var(--radius)}#bh-copy-dialog::backdrop{background:#0009}#bh-copy-text{width:100%;height:240px;margin:16px 0;font-family:var(--mono)}@media(max-width:1100px){#bughouse-lab{--board: min(420px, calc((100vw - 76px)/2) );grid-template-columns:minmax(0,1fr)}#bughouse-lab .bb-boards{flex-direction:row}#bughouse-lab .bb-left{grid-row:2}#bughouse-lab .bh-panel{grid-row:3}#bughouse-lab .bh-row{grid-template-columns:100px 1fr}}@media(max-width:560px){#bughouse-lab{--board: min(420px, calc(100vw - 48px) );gap:16px}#bughouse-lab .bb-boards{flex-direction:column}#bughouse-lab .bh-row{grid-template-columns:66px minmax(0,1fr)}body:has(#bughouse-lab){padding-bottom:78px}#bughouse-lab .bh-go{position:fixed;inset:auto 0 0;z-index:50;margin:0;padding:12px 24px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--border)}#bughouse-lab #bh-jump:not([hidden]){display:inline-flex}#bh-result{scroll-margin-top:135px}.bh-tools{width:100%}.bh-tools .btn{padding:8px 10px}.bh-promotion-options{flex-wrap:wrap}}#bh-jump{display:none}.bh-keyboard{margin-top:16px}.bh-result:empty{display:none}#bh-undo-reset{border-color:transparent;color:var(--accent)}
