/* Electron Configuration Boarding: the house (rooms) and the front desk inside the practice shell's stage.
   Fits the 1366×768 stage (about 1066 × 628) with no scroll for a row-4 atom (8 sublevels). */
.bh { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; padding: 8px 10px; }
.bh--code { grid-template-columns: minmax(0, 620px); grid-template-rows: auto minmax(0, 1fr); justify-content: center; align-content: start; }
.bh--choice { grid-template-columns: minmax(0, 1fr) 340px; }
.bh--rooms { grid-template-columns: minmax(0, 1fr) 300px; }

/* the house */
.bh-house { display: flex; flex-direction: column; min-height: 0; min-width: 0; border: 3px solid var(--tlg-border-strong); border-radius: 12px; background: var(--tlg-surface); overflow: hidden; }
.bh-roof { position: relative; flex: none; background: #8a4b00; color: #fff; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: 16px; text-align: center; padding: 7px 10px; border-bottom: 3px solid var(--tlg-border-strong); }
html[data-theme="dark"] .bh-roof { background: #6b3a00; color: #fff3cf; }
.bh-roof--desk { border: 3px solid var(--tlg-border-strong); border-radius: 12px; }
.bh-floors { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 6px 8px 8px; }
.bh-floors .pob-rows { border: 2px solid var(--tlg-border); border-radius: 10px; }
.bh-floors .pob-row { padding: 6px 10px; }
.bh .pob { --pob-up: #0a5fc0; --pob-down: #6b2fa3; --pob-box-w: 48px; --pob-bunk-h: 32px; --pob-gap: 5px; gap: 6px; }
.bh .pob-rowlbl { width: 56px; }
.bh .pob-subs { gap: 4px 12px; }
.bh .pob-dot { width: 20px; height: 20px; font-size: 13px; border-width: 2px; }
.bh .pob-res-dots { gap: 3px; }
html[data-theme="dark"] .bh .pob, html[data-theme="dark"] .bh-example .pob { --pob-up: #7db8ff; --pob-down: #d1a6ff; }
.bh-example .pob { --pob-up: #0a5fc0; --pob-down: #6b2fa3; }
.bh-core { flex: none; margin: 0 8px 8px; padding: 6px 10px; border: 2px dashed var(--tlg-border); border-radius: 8px; background: var(--tlg-surface-2); font-size: 16px; }
.bh-house.is-answer .pob-rows { border-color: var(--tlg-status-done-solid, #15803d); border-style: solid; }
.bh-swapbar { display: flex; justify-content: flex-end; padding: 6px 8px 0; }
.bh-swap { min-height: 40px; padding: 4px 14px; font-size: 16px; }

/* the front desk */
.bh-desk { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding-bottom: 4px; }
.bh-card { border: 3px solid var(--tlg-border-strong); border-radius: 12px; background: var(--tlg-surface); padding: 10px 14px; }
.bh-h { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.bh-tagline { font-size: 16px; font-weight: 700; color: var(--tlg-text-muted); }
.bh-live { margin: 0 0 6px; min-height: 30px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bh-note { margin: 6px 0 0; font-size: 16px; color: var(--tlg-text-muted); line-height: 1.4; }
.bh-note code { font-size: 16px; }
.bh-clear { margin-top: 8px; min-height: 40px; padding: 4px 14px; font-size: 16px; }
.bh-input { display: block; width: 100%; min-height: 52px; padding: 6px 12px; font: inherit; font-size: 22px; font-weight: 700; border: 3px solid var(--tlg-border-strong); border-radius: 8px; background: var(--tlg-surface); color: var(--tlg-text); }
.bh-input.is-ok { border-color: var(--tlg-status-done-solid, #15803d); }
.bh-input.is-bad { border-color: var(--tlg-danger-fg, #b91c1c); border-style: dashed; }
.bh-keypad { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bh-keyrow { display: flex; flex-wrap: wrap; gap: 5px; }
.bh-key { min-width: 28px; flex: 1 1 28px; min-height: 42px; padding: 0 4px; border: 2px solid var(--tlg-border-strong); border-radius: 8px; background: var(--tlg-surface); color: var(--tlg-text); font: inherit; font-size: 30px; line-height: 1; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.bh-key:hover:not(:disabled) { background: var(--tlg-surface-2); }
.bh-key:disabled { opacity: .45; cursor: default; }
.bh-key--core, .bh-key--wide { font-size: 16px; flex: 1 1 52px; }
.bh-chips { margin-top: 6px; }
.bh-chiplist { display: flex; flex-wrap: wrap; gap: 5px; }
.bh-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 9px; border-radius: 999px; border: 2px solid; font-weight: 800; font-size: 16px; }
.bh-chip small { font-size: 14px; font-weight: 700; }
.bh-chip.is-ok { border-color: var(--tlg-status-done-solid, #15803d); background: var(--tlg-status-done-bg); color: var(--tlg-status-done-fg); }
.bh-chip.is-bad { border-color: var(--tlg-danger-fg, #b91c1c); background: var(--tlg-danger-bg); color: var(--tlg-danger-fg); }
.bh-chip.is-miss { border-color: var(--tlg-border-strong); border-style: dashed; }
.bh-right { margin: 6px 0 0; font-size: 17px; }

/* choices (identify, valence, magnet) */
.bh-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bh-choices--valence { grid-template-columns: repeat(4, 1fr); }
.bh-choices--magnet { grid-template-columns: 1fr; }
.bh-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 8px; border: 3px solid var(--tlg-border-strong); border-radius: 10px; background: var(--tlg-surface); color: var(--tlg-text); font: inherit; cursor: pointer; }
.bh-opt b { font-size: 22px; line-height: 1.1; }
.bh-opt span { font-size: 16px; color: var(--tlg-text-muted); }
.bh-opt:hover:not(:disabled) { background: var(--tlg-surface-2); }
.bh-opt[aria-checked="true"] { background: var(--ps-accent, #0a5fc0); border-color: var(--ps-accent, #0a5fc0); color: #fff; }
.bh-opt[aria-checked="true"] span { color: #fff; }
.bh-opt:disabled { cursor: default; }
.bh-opt.is-right { border-color: var(--tlg-status-done-solid, #15803d); box-shadow: inset 0 0 0 3px var(--tlg-status-done-solid, #15803d); }
.bh-opt.is-right::after { content: '✓ right'; font-size: 16px; font-weight: 800; color: var(--tlg-status-done-fg); }
.bh-opt.is-wrong { border-style: dashed; border-color: var(--tlg-danger-fg, #b91c1c); }
.bh-opt[aria-checked="true"].is-right::after { color: #fff; }
.bh-board .bh-floors { flex: 1 1 auto; }
.bh-cfgboard { margin: auto; padding: 24px 20px; font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bh-cfgline { margin: 0 10px 10px; font-size: 20px; font-weight: 700; text-align: center; }

/* the Briefing's worked example */
.bh-example .bh-house { border-width: 2px; }
.bh-example .bh-roof { font-size: 11px; padding: 4px 6px; }
.bh-example .bh-floors { padding: 4px; overflow: visible; }
.bh-example .bh-floors .pob-row { padding: 4px 6px; }
.bh-example .bh-core { margin: 0 4px 4px; font-size: 13px; }
.bh-example-code { margin: 6px 0 0; font-size: 15px; }

/* the customer's luggage tag */
.bh-tag-svg { display: block; width: 100%; height: 100%; }

@media (max-width: 1100px) { .bh { grid-template-columns: minmax(0, 1fr) 320px; } .bh .pob { --pob-box-w: 44px; } }
@media (max-width: 900px) {
  .bh, .bh--choice { position: static; grid-template-columns: 1fr; }
  .bh-floors { overflow: visible; }
  .bh-desk { overflow: visible; }
}
