/* Local bath controls share the room's opaque, compact surfaces. */
.hm-bath-fit-controls input[type=range] { display:block; width:100%; min-height:44px; accent-color:#527768; }
#tiny-home-bath-placement { --bath-bg:#f7f2ea; --bath-panel:#fffdf9; --bath-text:#54463e; --bath-muted:#75695e; --bath-line:#d8c8b7; --bath-accent:#527768; position:absolute; inset:0; z-index:2820; display:flex; flex-direction:column; color:var(--bath-text); background:var(--bath-bg); font:15px/1.5 var(--app-font-family,sans-serif); padding-top:var(--safe-area-inset-top,env(safe-area-inset-top,0px)); padding-bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)); overflow:hidden; overscroll-behavior:contain; }
body > #tiny-home-bath-placement { position:fixed; }
#tiny-home-bath-placement * { box-sizing:border-box; }
#tiny-home-bath-placement header { display:flex; gap:12px; align-items:center; padding:12px 16px; border-bottom:1px solid var(--bath-line); }
#tiny-home-bath-placement header div { min-width:0; flex:1; }
#tiny-home-bath-placement small { display:block; color:var(--bath-muted); font-size:12px; }
#tiny-home-bath-placement strong { display:block; font-size:18px; }
#tiny-home-bath-placement main { min-height:0; flex:1; overflow:auto; padding:4px 16px 18px; scrollbar-gutter:auto; }
#tiny-home-bath-placement footer { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding:10px 16px; border-top:1px solid var(--bath-line); }
#tiny-home-bath-placement p { margin:10px 0; overflow-wrap:anywhere; }
#tiny-home-bath-placement [role="status"] { min-height:24px; font-size:14px; }
#tiny-home-bath-placement button { min-width:44px; min-height:44px; padding:9px 12px; border:1px solid var(--bath-line); border-radius:10px; background:var(--bath-panel); color:var(--bath-text); font:inherit; line-height:1.35; cursor:pointer; }
#tiny-home-bath-placement button:disabled { opacity:.5; cursor:default; }
#tiny-home-bath-placement button[aria-pressed="true"],#tiny-home-bath-placement [data-bath-place="save"] { background:var(--bath-accent); border-color:var(--bath-accent); color:#fff; }
#tiny-home-bath-placement :is(button,input,select,canvas,summary):focus-visible { outline:3px solid var(--bath-accent); outline-offset:3px; }
#tiny-home-bath-placement canvas { display:block; width:100%; height:auto; border-radius:8px; background:var(--bath-panel); touch-action:manipulation; }
#tiny-home-bath-placement .hm-bath-note { color:var(--bath-muted); font-size:13px; }
#tiny-home-bath-placement .hm-bath-place-steps { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
#tiny-home-bath-placement .hm-bath-place-steps button { flex:1 1 90px; padding-inline:6px; font-size:13px; }
#tiny-home-bath-placement .hm-bath-place-options { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:12px; margin:12px 0; }
#tiny-home-bath-placement label { display:block; font-size:14px; }
#tiny-home-bath-placement :is(input:not([type="checkbox"]),select) { display:block; width:100%; min-height:44px; margin-top:5px; padding:8px; border:1px solid var(--bath-line); border-radius:8px; color:var(--bath-text); background:var(--bath-panel); font:inherit; }
#tiny-home-bath-placement .hm-bath-check { display:flex; align-items:flex-start; gap:9px; margin:16px 0; }
#tiny-home-bath-placement input[type="checkbox"] { flex:none; width:20px; height:20px; margin:1px 0; accent-color:var(--bath-accent); }
#tiny-home-bath-placement details { border-top:1px solid var(--bath-line); padding:12px 0 0; }
#tiny-home-bath-placement summary { min-height:44px; cursor:pointer; padding-block:10px; }
html[data-appearance="dark"] #tiny-home-bath-placement,html[data-theme="dark"] #tiny-home-bath-placement,body[data-theme="dark"] #tiny-home-bath-placement { --bath-bg:#242a36; --bath-panel:#303745; --bath-text:#eee9df; --bath-muted:#c1bcb5; --bath-line:#5c626b; --bath-accent:#658b79; }
@media (max-width:340px) { #tiny-home-bath-placement :is(header,footer) { padding-inline:12px; } #tiny-home-bath-placement main { padding-inline:12px; } #tiny-home-bath-placement .hm-bath-place-options { grid-template-columns:minmax(0,1fr); } }
@media (forced-colors:active) { #tiny-home-bath-placement button[aria-pressed="true"] { outline:2px solid Highlight; } }

#tiny-home-bath-panel { --bath-action-bg:#527768; --bath-bg:#f7f2ea; --bath-panel:#fffdf9; --bath-text:#54463e; --bath-muted:#75695e; --bath-line:#d8c8b7; --bath-accent:#527768; position:absolute; inset:0; z-index:2810; display:flex; flex-direction:column; overflow:hidden; overscroll-behavior:contain; padding:var(--safe-area-inset-top,env(safe-area-inset-top,0px)) 0 var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px)); background:var(--bath-bg); color:var(--bath-text); font:14px/1.5 var(--app-font-family,sans-serif); }
#tiny-home-bath-panel.hm-pair-fixed { position:fixed; }
#tiny-home-bath-panel * { box-sizing:border-box; }
#tiny-home-bath-panel [hidden] { display:none!important; }
#tiny-home-bath-panel header { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--bath-line); }
#tiny-home-bath-panel header div { min-width:0; flex:1; }
#tiny-home-bath-panel header :is(strong,small) { display:block; }
#tiny-home-bath-panel header strong { font-size:18px; }
#tiny-home-bath-panel header small { color:var(--bath-muted); }
#tiny-home-bath-panel :is(button,select,textarea) { color:inherit; font:inherit; border:1px solid var(--bath-line); border-radius:10px; background:var(--bath-panel); padding:9px 12px; min-height:44px; }
#tiny-home-bath-panel button { cursor:pointer; }
#tiny-home-bath-panel button:disabled { opacity:.5; cursor:default; }
#tiny-home-bath-panel :is(button,input,select,textarea):focus-visible { outline:3px solid var(--bath-accent); outline-offset:3px; }
#tiny-home-bath-panel main { flex:1; min-height:0; overflow:auto; padding:0 16px 20px; scrollbar-gutter:auto; }
#tiny-home-bath-panel p { overflow-wrap:anywhere; }
#tiny-home-bath-panel label { display:block; margin:12px 0; }
#tiny-home-bath-panel :is(select,textarea) { display:block; width:100%; margin-top:5px; }
#tiny-home-bath-panel .hm-pair-status { margin:0; padding:10px 16px; color:var(--bath-muted); border-bottom:1px solid var(--bath-line); overflow-wrap:anywhere; }
#tiny-home-bath-panel .hm-pair-references { display:flex; gap:12px; }
#tiny-home-bath-panel .hm-pair-references figure { flex:1; min-width:0; margin:0; text-align:center; }
#tiny-home-bath-panel .hm-pair-references img { width:100%; height:150px; object-fit:contain; border-radius:8px; background:var(--bath-panel); }
#tiny-home-bath-panel .hm-pair-note { color:var(--bath-muted); font-size:13px; }
#tiny-home-bath-panel .hm-pair-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-block:12px; }
#tiny-home-bath-panel .hm-pair-actions button { flex:0 0 auto; max-width:100%; min-height:44px; padding-inline:10px; }
#tiny-home-bath-panel .hm-pair-image { display:block; padding:0; width:100%; overflow:hidden; }
#tiny-home-bath-panel .hm-pair-image img { display:block; width:100%; max-height:440px; object-fit:contain; }
#tiny-home-bath-panel .hm-pair-preview { margin:14px 0; padding:12px; text-align:center; border-radius:10px; background:var(--bath-panel); }
#tiny-home-bath-panel .hm-pair-preview canvas { max-width:100%; height:auto!important; }
#tiny-home-bath-panel .hm-pair-check { display:flex; align-items:flex-start; gap:9px; }
#tiny-home-bath-panel .hm-pair-check input { flex:none; width:20px; height:20px; margin:1px 0; accent-color:var(--bath-accent); }
#tiny-home-bath-panel :is([data-bath="approve"],[data-bath="use-current"]) { background:var(--bath-action-bg); border-color:var(--bath-action-bg); color:#fff; }
#tiny-home-bath-panel .hm-pair-viewer { position:absolute; inset:0; z-index:4; display:flex; flex-direction:column; gap:10px; padding:12px; background:var(--bath-bg); }
#tiny-home-bath-panel .hm-pair-viewer > div { flex:1; min-height:0; overflow:auto; }
#tiny-home-bath-panel .hm-pair-viewer img { max-width:none; }
html[data-appearance="dark"] #tiny-home-bath-panel,html[data-theme="dark"] #tiny-home-bath-panel,body[data-theme="dark"] #tiny-home-bath-panel { --bath-bg:#242a36; --bath-panel:#303745; --bath-text:#eee9df; --bath-muted:#c1bcb5; --bath-line:#5c626b; --bath-accent:#658b79; }

/* Pair pose and owner-specific accessory choices. */
#tiny-home-bath-panel .hm-bath-people-row { display:grid; grid-template-columns:minmax(92px,.8fr) minmax(0,1.6fr); align-items:start; gap:12px; margin-block:16px; }
#tiny-home-bath-panel .hm-bath-front { min-width:0; margin:0; }
#tiny-home-bath-panel .hm-bath-front select { padding-inline:8px; }
#tiny-home-bath-panel .hm-bath-accessories { min-width:0; margin:0; padding:0; border:0; }
#tiny-home-bath-panel .hm-bath-accessories legend { margin-bottom:4px; padding:0; color:var(--bath-muted); font-size:12px; }
#tiny-home-bath-panel .hm-bath-accessory-person { min-width:0; margin-bottom:8px; }
#tiny-home-bath-panel .hm-bath-accessory-person > span { display:block; overflow-wrap:anywhere; font-size:12px; }
#tiny-home-bath-panel .hm-bath-accessory-person > div { display:flex; flex-wrap:wrap; gap:2px 8px; }
#tiny-home-bath-panel .hm-bath-accessory-person label { display:flex; align-items:center; gap:5px; min-height:44px; margin:0; font-size:12px; cursor:pointer; }
#tiny-home-bath-panel .hm-bath-accessory-person input { width:18px; height:18px; margin:0; accent-color:var(--bath-accent); }
#tiny-home-bath-panel .hm-bath-style { margin-block:16px; }
#tiny-home-bath-panel [data-bath="toggle-style"] { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; text-align:left; }
#tiny-home-bath-panel [data-bath="toggle-style"] strong { margin-left:auto; font-weight:500; color:var(--bath-accent); }
#tiny-home-bath-panel .hm-bath-style-tags { display:flex; gap:8px; flex-wrap:wrap; padding-top:12px; }
#tiny-home-bath-panel .hm-bath-style-tags button { flex:1 1 70px; }
#tiny-home-bath-panel .hm-bath-style-tags [aria-pressed="true"] { color:#fff; background:var(--bath-accent); border-color:var(--bath-accent); }
@media (max-width:340px) { #tiny-home-bath-panel .hm-bath-people-row { grid-template-columns:minmax(88px,.75fr) minmax(0,1.6fr); gap:8px; } #tiny-home-bath-panel .hm-bath-accessory-person > div { column-gap:6px; } }
@media (forced-colors:active) { #tiny-home-bath-panel .hm-bath-style-tags [aria-pressed="true"] { outline:2px solid Highlight; } }

/* Compact task groups keep native scrolling while hiding only the scrollbars. */
#tiny-home-bath-panel main,
#tiny-home-bath-panel .hm-pair-viewer > div,
#tiny-home-bath-placement main { scrollbar-width:none; -ms-overflow-style:none; }
#tiny-home-bath-panel main::-webkit-scrollbar,
#tiny-home-bath-panel .hm-pair-viewer > div::-webkit-scrollbar,
#tiny-home-bath-placement main::-webkit-scrollbar { display:none; width:0; height:0; }
#tiny-home-bath-panel main:focus-visible,
#tiny-home-bath-panel .hm-pair-viewer > div:focus-visible { outline:2px solid var(--bath-accent); outline-offset:-2px; }
#tiny-home-bath-panel .hm-bath-action-note { margin:8px 0; }
#tiny-home-bath-panel .hm-bath-fit-controls input[type=range] { min-width:0; max-width:100%; }
#tiny-home-bath-panel .hm-pair-actions button:not(:disabled):hover { border-color:var(--bath-accent); }
#tiny-home-bath-panel .hm-pair-actions button:not(:disabled):active { opacity:.8; }
