#home-bruno-qa{position:fixed;inset:0;z-index:55;pointer-events:none;font-family:Georgia,serif;color:#50371f}#home-bruno-qa .home-bruno-avatar{position:absolute;pointer-events:auto}#home-bruno-qa canvas{display:block;width:100%;height:100%;touch-action:pan-y}#home-bruno-qa .model-status{font:14px/1.4 'Segoe UI',sans-serif;padding:16px}#home-bruno-qa .home-bruno-bar{position:absolute;display:flex;align-items:center;justify-content:center;gap:8px;pointer-events:auto;min-height:42px}#home-bruno-qa button,.home-bruno-chat button{border:1px solid #c5a572;border-radius:14px;background:linear-gradient(#fff9ec,#ead6b3);color:#50371f;min-height:42px;padding:9px 15px;font:600 15px/1.25 'Segoe UI',sans-serif;cursor:pointer;box-shadow:0 3px 9px #46301d15}#home-bruno-qa .talk,.home-bruno-chat .record{background:linear-gradient(#63764c,#405736);border-color:#597145;color:#fff9e9}#home-bruno-qa button:disabled,.home-bruno-chat button:disabled{opacity:.55;cursor:wait}.home-bruno-chat{position:fixed;left:var(--bruno-panel-left,24px);bottom:clamp(22px,12vh,130px);z-index:10000;box-sizing:border-box;width:min(410px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #b99a66;border-radius:22px;padding:20px;background:linear-gradient(135deg,#fffaf0,#f1e5cf);box-shadow:0 18px 65px #2e221b4d;color:#50371f;font:14px/1.5 'Segoe UI',sans-serif}.home-bruno-chat[hidden]{display:none}.home-bruno-chat header{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #d8c8aa;padding-bottom:12px}.home-bruno-chat header small{font-size:10px;letter-spacing:1.5px;color:#92734d}.home-bruno-chat h2{font:600 23px/1.2 Georgia,serif;margin:3px 0}.home-bruno-chat .close{font-size:24px;min-width:42px;padding:3px}.home-bruno-chat .state{color:#526547;min-height:21px}.home-bruno-chat .suggestions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.home-bruno-chat .suggestions button{padding:6px 10px;min-height:34px;font-size:12px;background:#fff9ec}.home-bruno-chat .transcript{white-space:pre-wrap;overflow-wrap:anywhere;max-height:190px;overflow:auto;line-height:1.6;margin:12px 0;color:#4b3926}.home-bruno-chat .transcript:empty{display:none}.home-bruno-chat .talk-row,.home-bruno-chat form{display:flex;gap:8px;margin:10px 0}.home-bruno-chat .record{flex:1}.home-bruno-chat form input{min-width:0;flex:1;border:1px solid #cfbd9b;border-radius:12px;background:#fffdf6;padding:11px;font:inherit;color:#49351f}.home-bruno-chat .home-context-toggle{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:13px}.home-bruno-chat input[type=checkbox]{width:18px;height:18px;accent-color:#526746}.home-bruno-chat .context-info,.home-bruno-chat details{font-size:11px;color:#806b50}.home-bruno-chat summary{cursor:pointer;padding:4px 0}.home-bruno-chat button:focus-visible,#home-bruno-qa button:focus-visible,.home-bruno-chat input:focus-visible{outline:3px solid #627c46;outline-offset:3px}@media(max-width:700px){.home-bruno-chat{left:12px!important;bottom:12px;padding:16px}.home-bruno-chat h2{font-size:21px}#home-bruno-qa .home-bruno-bar{flex-wrap:wrap;gap:4px}#home-bruno-qa button{font-size:12px;padding:7px 9px;min-height:36px}}@media(prefers-reduced-motion:reduce){.home-bruno-chat{scroll-behavior:auto}}

#home-bruno-qa .talk,.home-bruno-chat .record{display:inline-flex;align-items:center;justify-content:center;gap:7px}#home-bruno-qa svg,.home-bruno-chat svg{flex:none}

.home-bruno-chat .voice-draft{margin:12px 0;padding:12px;border:1px solid #cdb586;border-radius:14px;background:#fff9eb}.home-bruno-chat .voice-draft[hidden]{display:none}.home-bruno-chat .voice-draft p{font-size:12px;color:#6d573d;margin:0 0 7px}.home-bruno-chat .voice-original{margin:0 0 10px;padding-left:10px;border-left:3px solid #8b9c6a;max-height:100px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.home-bruno-chat .voice-draft-actions{display:flex;flex-wrap:wrap;gap:7px}.home-bruno-chat .voice-draft-actions button{font-size:12px;padding:7px 9px;min-height:36px}.home-bruno-chat .voice-auto-toggle{display:flex;align-items:center;gap:8px;font-size:13px;margin-top:13px}.home-bruno-chat .voice-choice-note{font-size:11px;color:#806b50;margin:4px 0 10px}.home-bruno-chat .voice-auto-toggle input{flex:none}

.home-bruno-chat{--bruno-panel-bottom:clamp(22px,12vh,130px);bottom:var(--bruno-panel-bottom);max-height:calc(100dvh - var(--bruno-panel-bottom) - 16px)}.home-bruno-chat header{position:sticky;top:0;background:#f8efdf;z-index:2}@media(max-width:700px){.home-bruno-chat{--bruno-panel-bottom:12px}}

/* HOME conversation and quick menu are separate surfaces, independent of the model. */
.home-bruno-menu{position:fixed;z-index:10001;box-sizing:border-box;width:258px;max-width:calc(100vw - 24px);padding:12px;border:1px solid #d1b887;border-radius:18px;background:linear-gradient(145deg,#fffaf0,#efe1c8);box-shadow:0 14px 44px #30231340;color:#50371f;font:14px/1.4 'Segoe UI',sans-serif;animation:bruno-open .18s ease-out}.home-bruno-menu[hidden]{display:none}.home-bruno-menu .menu-eyebrow{margin:2px 8px 9px;font-size:11px;color:#89704e;letter-spacing:.5px}.home-bruno-menu button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:11px 12px;border:0;border-radius:11px;background:transparent;color:inherit;text-align:left;font:600 14px 'Segoe UI',sans-serif;cursor:pointer}.home-bruno-menu button:hover{background:#e6d4ae66}.home-bruno-menu button:focus-visible{outline:3px solid #6d8356}.home-bruno-menu button span{color:#78905d}.home-bruno-menu .menu-separator{height:1px;background:#dac7a5;margin:7px}.home-bruno-chat{width:min(410px,calc(100vw - 24px));padding:18px 20px 14px;bottom:28px;max-height:calc(100dvh - 76px);box-shadow:0 14px 50px #2e221b40;animation:bruno-open .22s ease-out}.home-bruno-chat header{background:transparent;padding-bottom:12px}.home-bruno-chat h2{font-size:25px}.home-bruno-chat .conversation-tabs{display:flex;gap:4px;background:#e8dbc32e;border:1px solid #ddc9a5;border-radius:12px;padding:3px;margin:12px 0}.home-bruno-chat .conversation-tabs button{flex:1;border:0;min-height:34px;box-shadow:none;background:transparent;font-size:13px;padding:7px}.home-bruno-chat[data-mode=text] [data-mode=text],.home-bruno-chat[data-mode=voice] [data-mode=voice]{background:#fffaf0;box-shadow:0 2px 7px #34231018}.home-bruno-chat .state{font-size:13px;margin:10px 0}.home-bruno-chat .transcript{max-height:240px;min-height:80px;white-space:normal;display:flex;flex-direction:column;gap:10px;padding:4px 2px;margin:8px 0}.home-bruno-chat .transcript:empty{display:block;min-height:48px}.home-bruno-chat .message{box-sizing:border-box;max-width:94%;padding:10px 13px;margin:0;border-radius:15px;white-space:pre-wrap;font-size:14px;line-height:1.5}.home-bruno-chat .message.you{align-self:flex-end;background:#dce4ce;color:#35432d;border-bottom-right-radius:5px}.home-bruno-chat .message.bruno{align-self:flex-start;background:#fffdf7;border:1px solid #e1cfad;border-bottom-left-radius:5px}.home-bruno-chat .message.action{font-size:12px;color:#4b6640;align-self:center;text-align:center;padding:4px;background:none}.home-bruno-chat .conversation-hint{font-size:11px;color:#857153;margin:7px 0 12px}.home-bruno-chat .conversation-settings{border-top:1px solid #deceb0;padding-top:8px}.home-bruno-chat .conversation-settings summary{font-size:12px}.home-bruno-chat .voice-choice-note{line-height:1.5}.home-bruno-chat .voice-presence{display:none;justify-content:center;gap:6px;margin:15px 0 12px}.home-bruno-chat[data-mode=voice] .voice-presence{display:flex}.home-bruno-chat .voice-presence span{width:9px;height:24px;border-radius:9px;background:#748b57;transform:scaleY(.45)}.home-bruno-chat[data-conversation=true] .voice-presence span{animation:bruno-listen 1s ease-in-out infinite}.home-bruno-chat .voice-presence span:nth-child(2){animation-delay:.15s}.home-bruno-chat .voice-presence span:nth-child(3){animation-delay:.3s}.home-bruno-chat[data-mode=text] .talk-row{display:none}.home-bruno-chat .voice-draft{font-size:12px}.home-bruno-chat .home-context-toggle{font-size:12px}.home-bruno-chat form{margin:10px 0 4px}.home-bruno-chat form button{font-size:13px;padding:9px 12px}.home-bruno-chat .talk-row button{font-size:13px}.home-bruno-avatar[role=button]{cursor:pointer}.home-bruno-avatar:focus-visible{outline:2px dashed #e8cf8b;outline-offset:4px;border-radius:40%}
@keyframes bruno-open{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:none}}@keyframes bruno-listen{0%,100%{transform:scaleY(.45)}50%{transform:scaleY(1)}}@media(max-width:700px){.home-bruno-chat{bottom:12px;max-height:calc(100dvh - 24px)}.home-bruno-menu{width:240px}}@media(prefers-reduced-motion:reduce){.home-bruno-chat,.home-bruno-menu,.home-bruno-chat .voice-presence span{animation:none!important}}

#home-bruno-qa[data-home-modal=true]{z-index:9998}#home-bruno-qa[data-home-modal=true] .home-bruno-avatar{display:none}#home-bruno-qa[data-home-modal=true] .home-bruno-bar{position:fixed;left:auto!important;top:auto!important;right:24px;bottom:22px;width:auto!important;z-index:9999;padding:3px;border-radius:16px;background:#f8eedc;box-shadow:0 3px 12px #251a1633}dialog[open] .home-bruno-chat{left:auto!important;right:24px;bottom:84px;max-height:calc(100dvh - 120px)}dialog[open] .home-bruno-menu{left:auto!important;right:24px;bottom:84px!important}

/* Persistent compact conversation controls outside the wooden book scene. */
#home-bruno-qa[data-compact=true] .home-bruno-avatar{display:none}#home-bruno-qa[data-compact=true] .home-bruno-bar{position:fixed;left:auto!important;top:auto!important;right:22px;bottom:18px;width:auto!important;padding:4px;border-radius:18px;background:#f8eedc;box-shadow:0 3px 14px #251a1633}.home-bruno-chat .shopping-review{padding:12px;border:1px solid #c6d0b6;border-radius:15px;background:#e7eddf}.home-bruno-chat .shopping-review[hidden]{display:none}.shopping-review h3{font:600 22px Georgia,serif;margin:5px 0}.shopping-review p{margin:4px 0}.shopping-review .review-count{font-size:12px;color:#526547}.shopping-review div{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.shopping-review button{font-size:12px;padding:7px;min-height:36px}

/* Explicit HOME-owned local wake control. */
.home-bruno-chat .wake-mode{border:1px solid #d7bd8a;border-radius:16px;background:#f8efd9;padding:12px 14px;margin:8px 0 12px;display:grid;grid-template-columns:1fr;gap:6px}
.home-bruno-chat .wake-toggle{padding:12px 16px;border:1px solid #677e43;border-radius:12px;background:#fffaf0;color:#3d512e;font:600 15px inherit;cursor:pointer;min-height:44px}
.home-bruno-chat .wake-toggle[aria-pressed=true]{background:#425c34;color:white}
.home-bruno-chat .wake-status{margin:0;font-size:13px;font-weight:600;color:#3d512e}
.home-bruno-chat .wake-mode small{font-size:11px;line-height:1.45;color:#725f46}
.home-bruno-chat[data-mode=text] .wake-mode{display:none}

/* H35: modal application touch shield; no business state or microphone restart. */
.home-screen-cleaning:not([open]){display:none}
.home-screen-cleaning[open]{position:fixed;inset:0;margin:0;padding:clamp(20px,4vh,56px);width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;border:0;box-sizing:border-box;display:grid;place-items:center;background:#201e17;color:#f6eedc;touch-action:none;overscroll-behavior:none;overflow:hidden;font-family:Arial,sans-serif}
.home-screen-cleaning::backdrop{background:#201e17}
.home-screen-cleaning .cleaning-card{width:min(760px,100%);text-align:center;display:grid;justify-items:center;gap:clamp(12px,2vh,24px)}
.home-screen-cleaning .cleaning-brand{display:flex;align-items:center;gap:12px;color:#d8bc7c;letter-spacing:.15em;font-size:14px}
.home-screen-cleaning .cleaning-brand img{display:block;width:40px;height:40px;object-fit:contain}
.home-screen-cleaning .cleaning-symbol{display:grid;place-items:center;border:1px solid #81704b;border-radius:50%;width:72px;height:72px;font-size:46px;line-height:1;color:#e4c784;background:#302b20}
.home-screen-cleaning h2{font:600 clamp(34px,4.5vw,58px)/1.12 Georgia,serif;margin:0;color:#fff4d9}
.home-screen-cleaning p{margin:0;line-height:1.5}
.home-screen-cleaning .cleaning-description{font-size:clamp(18px,1.8vw,24px);color:#e4ddcd}
.home-screen-cleaning .cleaning-voice{font-size:16px;max-width:620px;color:#c9c9ad}
.home-screen-cleaning .cleaning-return{width:min(480px,100%);display:grid;gap:10px;margin-top:8px}
.home-screen-cleaning .cleaning-exit{width:100%;min-height:80px;box-sizing:border-box;border:1px solid #dfc27d;border-radius:18px;background:#536342;color:#fff9ed;display:grid;place-items:center;gap:4px;padding:16px 24px;touch-action:none;user-select:none;-webkit-user-select:none;font-family:Arial,sans-serif;cursor:pointer}
.home-screen-cleaning .cleaning-exit span{font-size:21px;font-weight:700}
.home-screen-cleaning .cleaning-exit small{font-size:14px;font-weight:400;color:#f0eedc}
.home-screen-cleaning .cleaning-exit.ready{background:#6a783f}
.home-screen-cleaning .cleaning-exit:focus-visible{outline:3px solid #f2d58f;outline-offset:5px}
.home-screen-cleaning progress{display:block;width:100%;height:8px;border:0;border-radius:5px;overflow:hidden;appearance:none;-webkit-appearance:none;background:#413e30;color:#d8bd7b}
.home-screen-cleaning progress::-webkit-progress-bar{background:#413e30}
.home-screen-cleaning progress::-webkit-progress-value{background:#d8bd7b}
.home-screen-cleaning .cleaning-hint{min-height:24px;font-size:14px;color:#dfcc9c}
.home-screen-cleaning .cleaning-footnote{max-width:620px;font-size:13px;color:#b3ad9d}
@media(max-height:650px){.home-screen-cleaning .cleaning-card{gap:10px}.home-screen-cleaning .cleaning-symbol{width:48px;height:48px;font-size:32px}.home-screen-cleaning .cleaning-exit{min-height:68px}.home-screen-cleaning h2{font-size:34px}}

/* H21: readonly HOME beginner reference. */
dialog.home-beginner-guide{box-sizing:border-box;width:min(1056px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:30px;border:1px solid #b88c4c;border-radius:24px;background:#f8efde;color:#49331f;box-shadow:0 24px 90px #0009;overflow:auto;font:17px/1.5 system-ui,sans-serif}
dialog.home-beginner-guide:not([open]){display:none}dialog.home-beginner-guide[open]{display:block}dialog.home-beginner-guide::backdrop{background:#211b14b8;backdrop-filter:blur(4px)}
.home-beginner-guide *{box-sizing:border-box}.home-beginner-guide .beginner-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.home-beginner-guide .beginner-eyebrow{margin:0;color:#886333;font-size:12px;font-weight:700;letter-spacing:2px}.home-beginner-guide h2{margin:6px 0 8px;font:700 38px/1.15 Georgia,serif}.home-beginner-guide .beginner-intro{margin:0;max-width:700px;color:#755f48;font-size:16px}.home-beginner-guide button{font:inherit;cursor:pointer;touch-action:manipulation}.home-beginner-guide button:focus-visible,.home-beginner-guide .beginner-content:focus-visible{outline:3px solid #667a44;outline-offset:3px}
.home-beginner-guide .beginner-close{flex:0 0 48px;height:48px;border:1px solid #c6a577;border-radius:15px;color:#5a3c22;background:#fff8eb;font-size:28px}.home-beginner-guide .beginner-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:28px;margin-top:26px}.home-beginner-guide .beginner-topics{display:flex;flex-direction:column;gap:8px}.home-beginner-guide .beginner-topics button{min-height:52px;padding:12px 15px;text-align:left;border:1px solid #d8c3a1;border-radius:12px;background:#fffbf2;color:#5d452c;font-size:16px}.home-beginner-guide .beginner-topics button[aria-current]{border-color:#617349;background:#586b40;color:#fff9ed;box-shadow:0 4px 10px #42522b20}
.home-beginner-guide .beginner-content{min-width:0;padding:23px 26px;border:1px solid #decaaa;border-radius:18px;background:#fffaf0;overflow:auto;max-height:min(450px,calc(100dvh - 290px))}.home-beginner-guide .beginner-position{margin:0 0 10px;color:#7e775c;letter-spacing:1.6px;font-size:11px;font-weight:700}.home-beginner-guide h3{margin:0 0 20px;font:700 28px/1.2 Georgia,serif}.home-beginner-guide ol{margin:0;padding-left:26px}.home-beginner-guide li{padding-left:6px;margin:0 0 17px;font-size:18px;line-height:1.6}.home-beginner-guide li::marker{color:#71814a;font-weight:700}.home-beginner-guide .beginner-pages{display:flex;gap:10px;justify-content:space-between;margin-top:24px;flex-wrap:wrap}.home-beginner-guide .beginner-pages button{border:1px solid #cdb58d;border-radius:10px;padding:10px 13px;min-height:44px;background:#f4e7cf;color:#5a4128;font-size:14px}.home-beginner-guide button:disabled{cursor:default;opacity:.45}.home-beginner-guide .beginner-note{margin:22px 0 0;padding-top:16px;border-top:1px solid #decaaa;color:#856e51;font-size:13px;line-height:1.5}
@media(max-width:760px){dialog.home-beginner-guide{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:20px;border-radius:18px}.home-beginner-guide h2{font-size:30px}.home-beginner-guide .beginner-layout{grid-template-columns:1fr;gap:16px}.home-beginner-guide .beginner-topics{display:grid;grid-template-columns:1fr 1fr}.home-beginner-guide .beginner-content{max-height:45dvh;padding:20px}.home-beginner-guide .beginner-topics button{font-size:14px;min-height:48px}}

.home-beginner-guide .beginner-body{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;display:block!important;padding:0!important}

/* H07: own read-only family preference view; existing touch custom-body contract. */
dialog.home-family-preferences{box-sizing:border-box;width:min(1100px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:28px;border:1px solid #b68b4a;border-radius:24px;background:#f8efde;color:#49331f;box-shadow:0 24px 90px #0009;overflow:auto;font:17px/1.5 system-ui,sans-serif}
dialog.home-family-preferences:not([open]){display:none}dialog.home-family-preferences[open]{display:block}dialog.home-family-preferences::backdrop{background:#211b14b8;backdrop-filter:blur(4px)}
.home-family-preferences *{box-sizing:border-box}.home-family-preferences .hfp-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.home-family-preferences .hfp-eyebrow{margin:0;color:#886333;font-size:12px;font-weight:700;letter-spacing:2px}.home-family-preferences h2{margin:6px 0 4px;font:700 34px/1.2 Georgia,serif}.home-family-preferences .hfp-family{margin:0;color:#755f48}.home-family-preferences button{font:inherit;cursor:pointer;touch-action:manipulation}.home-family-preferences button:focus-visible,.home-family-preferences .hfp-detail:focus-visible{outline:3px solid #667a44;outline-offset:3px}
.home-family-preferences .hfp-close{flex:0 0 48px;height:48px;border:1px solid #c6a577;border-radius:15px;color:#5a3c22;background:#fff8eb;font-size:28px}.home-family-preferences .hfp-body{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;display:block!important;padding:0!important}.home-family-preferences .hfp-status{margin:16px 0;font-size:14px;color:#806b4d}.home-family-preferences .hfp-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px}.home-family-preferences .hfp-people{display:flex;flex-direction:column;gap:9px;max-height:430px;overflow:auto}.home-family-preferences .hfp-people:empty,.home-family-preferences .hfp-detail:empty{display:none}.home-family-preferences .hfp-people button{min-height:52px;padding:12px 15px;text-align:left;border:1px solid #d8c3a1;border-radius:12px;background:#fffbf2;color:#5d452c;font-size:16px;overflow-wrap:anywhere}.home-family-preferences .hfp-people button[aria-pressed=true]{border-color:#617349;background:#586b40;color:#fff9ed}
.home-family-preferences .hfp-detail{min-width:0;padding:22px 24px;border:1px solid #decaaa;border-radius:18px;background:#fffaf0;overflow:auto;max-height:min(450px,calc(100dvh - 300px))}.home-family-preferences h3{margin:0 0 8px;font:700 27px/1.2 Georgia,serif;overflow-wrap:anywhere}.home-family-preferences .hfp-selected{margin:0 0 20px;color:#7c785d;font-size:13px}.home-family-preferences .hfp-groups{display:grid;grid-template-columns:1fr 1fr;gap:18px}.home-family-preferences h4{margin:0 0 7px;font-size:15px;font-weight:650}.home-family-preferences ul{padding-left:20px;margin:0;font-size:17px}.home-family-preferences li{margin:0 0 5px;overflow-wrap:anywhere}.home-family-preferences .hfp-empty{font-size:14px;color:#8c7a63;margin:0}.home-family-preferences .hfp-meta{font-size:12px;color:#8c7a63;border-top:1px solid #e6d7bc;padding-top:14px;margin-top:22px}.home-family-preferences .hfp-unknown{padding:12px 14px;border-radius:10px;background:#f6e5c9;color:#765326;font-size:15px}.home-family-preferences .hfp-note{font-size:13px;color:#856e51;margin:20px 0 12px;padding-top:14px;border-top:1px solid #decaaa}.home-family-preferences .hfp-refresh{min-height:44px;padding:10px 16px;border:1px solid #cdb58d;border-radius:11px;background:#fff8eb;color:#5a4128;font-size:14px}
.family-profiles-summary [data-home-family-preferences-read]{margin-top:10px}
@media(max-width:760px){dialog.home-family-preferences{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:20px;border-radius:18px}.home-family-preferences h2{font-size:28px}.home-family-preferences .hfp-layout{grid-template-columns:1fr;gap:16px}.home-family-preferences .hfp-people{flex-direction:row;max-height:none}.home-family-preferences .hfp-people button{flex:0 0 160px}.home-family-preferences .hfp-groups{grid-template-columns:1fr}.home-family-preferences .hfp-detail{max-height:45dvh}}

.home-planned-products{width:min(1100px,calc(100vw - 48px));max-height:calc(100vh - 48px);padding:28px;border:1px solid #c99d5b;border-radius:24px;background:#f8efdd;color:#50351e;box-shadow:0 22px 75px #0007;box-sizing:border-box}.home-planned-products::backdrop{background:#21180dc2;backdrop-filter:blur(5px)}.home-planned-products .hpp-head{display:flex;gap:24px;justify-content:space-between;align-items:flex-start}.home-planned-products h2{font:700 clamp(25px,3vw,38px)/1.2 Georgia,serif;margin:8px 0 16px}.home-planned-products .hpp-eyebrow{font-size:13px;font-weight:700;letter-spacing:.13em;color:#8c612e;margin:0}.home-planned-products button{min-height:44px;border:1px solid #c99d5b;border-radius:12px;background:#fff9ef;color:#50351e;padding:10px 16px;font:inherit;cursor:pointer}.home-planned-products .hpp-close{min-width:48px;font-size:28px;padding:5px}.home-planned-products :focus-visible{outline:3px solid #61734a;outline-offset:3px}.home-planned-products .hpp-body{overflow:auto;max-height:calc(100vh - 190px);height:auto!important}.home-planned-products .hpp-filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.home-planned-products label{display:grid;gap:6px}.home-planned-products input,.home-planned-products select{min-height:44px;border:1px solid #c99d5b;border-radius:10px;background:#fff9ef;color:#50351e;padding:8px;font:inherit;box-sizing:border-box}.home-planned-products .hpp-note{font-size:15px;line-height:1.5}.home-planned-products .hpp-coverage{font-size:13px;line-height:1.5;color:#806d4d}.home-planned-products .hpp-status{margin:18px 0;color:#76542d}.home-planned-products .hpp-list{display:grid;grid-template-columns:1fr 1fr;gap:14px}.home-planned-products .hpp-product{border:1px solid #e0c49a;border-radius:16px;padding:18px;background:#fff9ee}.home-planned-products .hpp-product-head{display:flex;justify-content:space-between;gap:14px;align-items:baseline}.home-planned-products h3{margin:0 0 12px;font:700 23px/1.2 Georgia,serif}.home-planned-products strong{white-space:nowrap}.home-planned-products summary{min-height:30px;cursor:pointer}.home-planned-products li{margin:10px 0;line-height:1.45}.home-planned-products .hpp-review{grid-column:1/-1;color:#865129}.home-planned-products .touch-dialog-body{padding:0!important}@media(max-width:800px){.home-planned-products .hpp-list{grid-template-columns:1fr}.home-planned-products{padding:18px}}

.home-planned-products .hpp-list{display:block}.home-planned-products .hpp-product{padding:14px 18px}.home-planned-products .hpp-product h4{margin:2px 0 8px}.home-planned-products .hpp-product ul{margin:0;padding-left:22px}.home-planned-products .hpp-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 0}.home-planned-products .hpp-pager output{text-align:center}.home-planned-products .hpp-pager button:disabled{opacity:.5;cursor:default}.home-planned-products .hpp-note{margin:12px 0 6px}.home-planned-products .hpp-coverage{margin:6px 0}.home-planned-products .hpp-status{margin:12px 0}.home-planned-products .hpp-product li{margin:6px 0}

/* Readonly-window command entry is explicit; closing never starts capture. */
.home-window-bruno{flex:0 0 auto;margin:10px 16px;padding:8px 12px;border:1px solid #d9c5a3;border-radius:12px;background:#f9f0df;color:#59432e;max-width:100%;box-sizing:border-box}
.home-window-bruno>p{font-size:12px;line-height:1.35;margin:0 0 6px}.window-bruno-entry{display:flex;gap:8px;flex-wrap:wrap}.window-bruno-entry button{font:inherit;font-size:13px;border:1px solid #bca178;border-radius:9px;background:#fff8e9;color:#4c3b27;padding:7px 12px;cursor:pointer}
.home-window-bruno .home-bruno-chat[data-window-mode]{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;max-height:250px!important;min-height:0!important;margin:8px 0 0!important;padding:10px!important;border-radius:10px!important;box-shadow:none!important;overflow:auto!important;box-sizing:border-box!important}
.home-bruno-chat[data-window-mode]>header,.home-bruno-chat[data-window-mode]>.conversation-settings,.home-bruno-chat[data-window-mode]>.conversation-hint,.home-bruno-chat[data-window-mode]>.wake-mode,.home-bruno-chat[data-window-mode]>.shopping-review{display:none!important}
.home-bruno-chat[data-window-mode] .transcript{max-height:70px!important;min-height:0!important}.home-bruno-chat[data-window-mode] .message{margin:4px 0!important;padding:5px 8px!important}.home-bruno-chat[data-window-mode] .mode-tabs{margin-bottom:4px!important}.home-bruno-chat[data-window-mode] .state{margin:4px 0!important}
.home-bruno-chat[data-window-mode] form{margin-top:5px!important}.home-bruno-chat[data-window-mode] .voice-controls{margin:5px 0!important}.home-bruno-chat[data-window-mode] .voice-draft{font-size:12px}

/* Keep the explicit window exit visible while its command input has focus. */
dialog.home-window-with-bruno[open]{display:flex!important;flex-direction:column!important;height:min(1000px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)!important;overflow:hidden!important;padding:20px!important}
dialog.home-window-with-bruno[open]>header{flex:0 0 auto}
/* Bound our viewport, leaving the existing touch body at its natural measured height. */
dialog.home-window-with-bruno[open]>.home-window-scroll{flex:1 1 auto;min-height:85px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-width:0}
dialog.home-window-with-bruno[open]>.home-window-scroll>.touch-dialog-body{flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;display:block!important;padding:0!important}
dialog.home-window-with-bruno[open]>.home-window-bruno{flex:0 0 auto;margin:8px 0 0;max-height:min(300px,42dvh);overflow:auto}
.home-window-bruno .home-bruno-chat[data-window-mode]{max-height:180px!important}

/* The explicit entry above already selects text or voice; keep the command field in view. */
.home-bruno-chat[data-window-mode]>.conversation-tabs{display:none!important}
.home-bruno-chat[data-window-mode][data-mode=text]>.talk-row{display:none!important}
.home-bruno-chat[data-window-mode] form{position:sticky;bottom:0;background:#f9f0df;z-index:1;padding-top:4px}
