/* Bed builder (Nov 10, 2026 preview): sidebar >=1100px, bottom sheet below. */
.bb{background:var(--paper);color:var(--ink);font-size:.95rem;line-height:1.5;z-index:8}
.bb-in{padding:16px 18px 22px}
.bb-hd{display:flex;align-items:center;justify-content:space-between;gap:10px}
.bb-hd h2{margin:0;font-size:1.35rem}.bb-hd h2:focus{outline:none}
.bb-x,.bb-t,.bb-s,.bb-link,.bb-use,.bb-buy,.bb-bar{font:inherit;cursor:pointer;min-height:44px}
.bb-x{background:none;border:1.5px solid var(--oat);border-radius:999px;padding:0 16px;color:var(--slate);font-weight:600}
.bb-x:hover{border-color:var(--coral);color:var(--coral-d)}
.bb-lead{margin:6px 0 10px;color:var(--muted);font-size:.88rem}
.bb-sz{border:0;margin:0;padding:0;min-width:0}.bb-sz legend{font-weight:700;font-size:.85rem;color:var(--slate);padding:0;margin-bottom:6px}
.bb-szs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.bb-s{background:var(--cream);border:1.5px solid var(--line);border-radius:12px;padding:6px 4px;color:var(--ink);font-weight:600;font-size:.86rem;line-height:1.2;display:flex;flex-direction:column;align-items:center;justify-content:center}
.bb-s small{font-weight:500;color:var(--muted);font-size:.72rem}
.bb-s:hover{border-color:var(--coral)}.bb-s.on{background:var(--ink);border-color:var(--ink);color:#fff}.bb-s.on small{color:#dfe5f0}
.bb-hint{margin:10px 0 0;font-size:.88rem;background:var(--mist);border-radius:12px;padding:6px 10px}
.bb-link{background:none;border:0;padding:0 4px;color:var(--coral-d);font-weight:700;text-decoration:underline;text-decoration-color:var(--oat);text-underline-offset:3px}
.bb-empty{margin:14px 0 0;color:var(--muted)}
.bb-h3{margin:16px 0 6px;font-size:1.05rem}
.bb-ps{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.bb-p{padding:8px 0;border-bottom:1px solid var(--line)}
.bb-pr{display:flex;align-items:center;gap:8px 10px;justify-content:space-between;flex-wrap:wrap}
.bb-pt{flex:1 1 150px}
.bb-pb{display:flex;gap:6px;flex:none;margin-left:auto}
.bb-pt{min-width:0;display:flex;flex-direction:column}
.bb-pt b{font-weight:700}.bb-p.on .bb-pt b::before{content:"✓ ";color:var(--ok)}
.bb-opt{font-size:.74rem;color:var(--muted)}
.bb-it{font-size:.8rem;color:var(--slate);overflow-wrap:anywhere}
.bb-no{font-size:.8rem;color:var(--no);overflow-wrap:anywhere}
.bb-off{font-size:.76rem;color:var(--muted)}
.bb-t{flex:none;background:var(--paper);border:1.5px solid var(--oat);border-radius:999px;padding:0 16px;font-weight:700;color:var(--ink)}
.bb-t:hover{border-color:var(--coral);color:var(--coral-d)}
.bb-p.on .bb-t{color:var(--slate);font-weight:600}
.bb-t.pri{background:var(--sage-l);border-color:var(--sage)}
.bb-ask{margin:12px 0 0;background:var(--sage-l);border-radius:14px;padding:10px 12px}
.bb-ask p{margin:0 0 6px;font-weight:700}.bb-ask p span{display:block;font-weight:500;font-size:.8rem;color:var(--slate);overflow-wrap:anywhere}
.bb-askb{display:flex;flex-wrap:wrap;gap:8px}
.bb-sum{margin-top:12px}.bb-sum>p{margin:0 0 6px}
.bb-note{font-size:.85rem;color:var(--no)}
.bb-buy{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin:8px 0 6px;padding:10px 18px;border:0;border-radius:999px;background:var(--coral);color:#fff;font-weight:700;font-size:1.05rem;text-align:center;text-decoration:none;box-shadow:0 8px 18px rgba(208,105,74,.22)}
.bb-buy:hover{background:var(--coral-d);color:#fff}
.bb-buy[disabled]{background:var(--oat);color:var(--slate);box-shadow:none;cursor:not-allowed}
.bb-fine{font-size:.8rem;color:var(--muted);margin:0 0 4px}
.bb .amz-n{font-size:.78rem;color:var(--muted);margin:0}
.bb-reset{margin:10px 0 0;font-size:.88rem}
.bb-usep{margin:10px 0}
.bb-use{background:var(--ink);color:#fff;border:0;border-radius:999px;padding:8px 20px;font-weight:700;font-size:.95rem;line-height:1.25;text-align:left;max-width:100%}
.bb-use:hover{background:var(--coral-d)}
.bb-bar{position:fixed;z-index:7;left:12px;right:12px;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:6px 20px;border:0;border-radius:999px;background:var(--ink);color:#fff;box-shadow:0 10px 24px rgba(31,45,74,.28);font-weight:700}
.bb-bs{font-weight:500;font-size:.9rem;color:#dfe5f0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.bb-on{padding-bottom:80px}
@media(max-width:1099px){
.bb{position:fixed;left:0;right:0;bottom:0;max-height:86vh;overflow-y:auto;overscroll-behavior:contain;border-radius:22px 22px 0 0;border-top:5px solid var(--coral);box-shadow:0 -14px 40px rgba(31,45,74,.25)}
body.bb-open .bb-bar{display:none}
}
@media(min-width:1100px){
.bb{position:fixed;top:0;right:0;bottom:0;width:340px;overflow-y:auto;border-left:1px solid var(--line);box-shadow:-10px 0 30px rgba(31,45,74,.06)}
body.bb-open{padding-right:340px}
body.bb-on{padding-bottom:0}
.bb-bar{left:auto;right:18px;bottom:18px;width:auto;max-width:300px}
}
@media(prefers-reduced-motion:no-preference){.bb-bar,.bb-buy{transition:background .15s}}
/* v2: choose / swap options */
.bb-ol{margin:8px 0 2px;background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:8px}
.bb-olh{margin:0 0 6px;font-size:.82rem;font-weight:700;color:var(--slate)}
.bb-ol ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.bb-o{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:44px;padding:8px 12px;font:inherit;text-align:left;cursor:pointer;background:var(--paper);border:1.5px solid var(--line);border-radius:12px;color:var(--ink)}
.bb-o:hover{border-color:var(--coral)}
.bb-o.on{border-color:var(--sage);background:var(--sage-l)}
.bb-ot{font-size:.84rem;line-height:1.35;overflow-wrap:anywhere}
.bb-os{font-size:.74rem;font-weight:700;color:var(--coral-d)}.bb-o.on .bb-os{color:var(--ok)}
.bb-o.on .bb-os::before{content:"✓ "}
/* Nov 10, 2026, 12:10 PM ET (CSS-only fix after Captain QA of 956685f9): with the 340px sidebar open, the home finder's
   5-column row (style.css, min-width:1040px) starved the ft/in inputs to ~26px at 1100-1400px. Math (content = viewport
   - 340 sidebar - ~15 scrollbar - 36 main padding - ~30 finder padding): the 5-column row would need ~1680px+ before each
   ft/in box got ~76px, and main caps at 1180px, so while the sidebar is open the finder never uses it:
   - 1100-1479px: two columns (like the 760px layout); "Who sleeps" spans the row. 1100px -> ~334px per column.
   - 1480px+: three columns (~346px+ each).
   Each number box keeps at least 4.25em (two digits + padding + spinner). Scoped to body.bb-open, so hiding the sidebar
   restores the original finder exactly. Below 1100px (bottom sheet) nothing changes. */
@media(min-width:1100px){
 body.bb-open .fgrid,body.bb-open .fit.mf .fgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.bb-open .fit.mf .fgrid>fieldset:first-child{grid-column:1/-1}
 body.bb-open .pair input[type=number]{min-width:4.25em;flex:1 1 4.25em}
}
@media(min-width:1480px){
 body.bb-open .fgrid,body.bb-open .fit.mf .fgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.bb-open .fit.mf .fgrid>fieldset:first-child{grid-column:auto}
}
