#virtual-command.unified-command{width:min(480px,calc(100vw - 32px))}#housekeeper-dialogue{max-height:32dvh;overflow:auto;overscroll-behavior:contain;padding:6px 0;scroll-behavior:smooth}.housekeeper-intro{color:#887b6e;font-size:12px;line-height:1.7}.housekeeper-message{padding:12px 14px;margin:10px 0;border-radius:15px;background:#f4eee6;font-size:13px;line-height:1.7}.housekeeper-message.user{background:#fff0dd;margin-left:30px}.housekeeper-message.assistant{margin-right:12px;background:#edf2ec}.housekeeper-message strong{font-size:11px;color:#687864}.housekeeper-message p{white-space:pre-wrap;margin:5px 0}.housekeeper-message details{font-size:11px}.housekeeper-choices{display:flex;flex-direction:column;gap:6px;margin-top:8px}.housekeeper-choices button,.housekeeper-play,#housekeeper-memory button{background:#fffaf3;border:1px solid #d8cfbf;border-radius:9px;padding:8px 10px;font:inherit;color:inherit;text-align:left}.housekeeper-play{font-size:11px;margin-top:8px}#housekeeper-activity{font-size:11px;color:#55745f;line-height:1.6}#housekeeper-memory{border-top:1px solid #e8ddcf;margin-top:12px;padding-top:10px;font-size:12px;line-height:1.7}#housekeeper-memory label{display:flex;align-items:center;gap:8px;margin:9px 0}#housekeeper-memory input{width:auto}#housekeeper-memory [data-memories]{max-height:220px;overflow:auto}#housekeeper-memory article{padding:8px;border-radius:8px;background:#f3efe8;margin-top:8px}#housekeeper-memory>p{color:#7d7469;font-size:11px}@media(max-width:767px){#housekeeper-dialogue{max-height:25dvh}.housekeeper-message{font-size:13px}.housekeeper-message.user{margin-left:15px}}

/* A single scroll area, with a stable heading and composer. Scope overrides
   above legacy vacuum/mobile styles, which are loaded at runtime. */
body.command-open #virtual-command.unified-command[data-housekeeper-mounted]{display:flex!important;flex-direction:column;overflow:hidden;padding:0;width:min(440px,calc(100vw - 32px));height:min(680px,calc(100dvh - 160px));max-height:calc(100dvh - 160px);border:1px solid #e5e2db;border-radius:22px;background:#fcfbf8;box-shadow:0 18px 60px #24382d26}
#virtual-command[data-housekeeper-mounted] .virtual-heading{flex:none;min-height:64px;padding:14px 18px;margin:0;border-bottom:1px solid #e9e7e0;gap:9px}
#virtual-command[data-housekeeper-mounted] .virtual-heading strong{font-size:16px;letter-spacing:0}
#virtual-command[data-housekeeper-mounted] .virtual-badge{font-size:10px;max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#virtual-command[data-housekeeper-mounted] #virtual-collapse{min-width:36px;min-height:36px;padding:4px;border:0;background:transparent;font-size:22px}
#virtual-command[data-housekeeper-mounted] #virtual-content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;padding:0}
#housekeeper-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:16px 18px;scrollbar-width:thin;scrollbar-color:#c6cec3 transparent}
#virtual-command #housekeeper-dialogue{max-height:none;overflow:visible;padding:0;min-height:120px;scroll-behavior:auto}
.housekeeper-intro{margin:12px 0 24px;font-size:13px;line-height:1.7;color:#787e73}
#virtual-command .housekeeper-message{margin:0 0 16px;padding:12px 14px;border-radius:14px;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
#virtual-command .housekeeper-message.user{margin-left:36px;background:#f1eee7;border-bottom-right-radius:4px}
#virtual-command .housekeeper-message.assistant{margin-right:20px;background:#edf2ec;border-bottom-left-radius:4px}
.housekeeper-message>strong{display:block;font-size:10px;font-weight:500;color:#788171;margin-bottom:5px}
#virtual-command .housekeeper-message p{margin:0;color:#293b30}
#virtual-command .housekeeper-message summary{min-height:32px;font-size:11px;font-weight:400;color:#657461}
#virtual-command .housekeeper-message details{margin-top:8px;border-top:1px solid #dce4d8;padding-top:4px}
#virtual-command .housekeeper-message details p{font-size:12px;color:#687261;margin:6px 0}
#virtual-command .housekeeper-play{min-height:32px;font-size:11px;padding:5px 9px;border:0;background:#ffffff80;color:#526a51;margin-top:8px}
#virtual-command #housekeeper-composer{flex:none;padding:12px 16px 10px;border-top:1px solid #e5e7df;background:#fcfbf8}
#virtual-command.unified-command[data-housekeeper-mounted] #virtual-form{display:grid;grid-template-columns:1fr auto;gap:6px;margin:0;padding:8px;background:#fff;border:1px solid #d9dfd4;border-radius:16px;outline:none;box-shadow:none}
#virtual-command.unified-command[data-housekeeper-mounted] #virtual-form:focus-within{border-color:#78916e;outline:none;box-shadow:0 0 0 2px #78916e1c}
#virtual-command.unified-command[data-housekeeper-mounted] #virtual-input{grid-column:1/-1;width:100%;min-width:0;min-height:44px;padding:8px 6px;font-size:16px;border:0;outline:none;box-shadow:none;border-radius:0;background:transparent;color:#293b30}
#virtual-command.unified-command[data-housekeeper-mounted] #virtual-input::placeholder{color:#92968b;font-size:14px}
#virtual-command.unified-command[data-housekeeper-mounted] #vacuum-voice{justify-self:start;min-height:40px;padding:6px 12px;font-size:12px;background:#f3f5ef;border:0;border-radius:10px;color:#526a51}
#virtual-command.unified-command[data-housekeeper-mounted] #virtual-send{justify-self:end;min-width:68px;width:auto;min-height:40px;padding:7px 16px;font-size:13px;border:0;border-radius:10px;background:#536d50;color:white}
#virtual-command #housekeeper-activity{margin:7px 4px 0;font-size:11px;line-height:1.5;color:#75816d}
#virtual-command #housekeeper-activity:empty{display:none}
#virtual-command.unified-command #vacuum-voice-status{font-size:11px;line-height:1.5;min-height:0;margin:4px 4px 0;color:#75816d}
#virtual-command[data-housekeeper-mounted] #housekeeper-memory,#virtual-command[data-housekeeper-mounted] #command-input-settings,#virtual-command[data-housekeeper-mounted] #command-device-details{margin:8px 0 0;padding:4px 0 0;border-top:1px solid #e6e8df}
#virtual-command[data-housekeeper-mounted] summary::before{content:'›';font-size:17px;line-height:1;transition:transform .15s}
#virtual-command[data-housekeeper-mounted] details[open]>summary::before{transform:rotate(90deg)}
#virtual-command[data-housekeeper-mounted] summary{list-style:none;font-weight:400;color:#63705c}
#virtual-command[data-housekeeper-mounted] summary::-webkit-details-marker{display:none}
#virtual-command .command-shortcuts{margin:12px 0 4px;font-size:10px;color:#95998f}
#virtual-command #housekeeper-memory [data-memories]{max-height:none;overflow:visible}
@media(max-width:767px){body.mobile-ui.command-open #virtual-command.unified-command[data-housekeeper-mounted]{left:10px;right:10px;bottom:calc(88px + var(--mobile-bottom,0px));width:auto;height:min(620px,calc(var(--mobile-vh,100dvh) - 170px));max-height:calc(var(--mobile-vh,100dvh) - 170px);padding:0;border-radius:20px}body.mobile-ui.mobile-keyboard.command-open #virtual-command.unified-command[data-housekeeper-mounted]{bottom:calc(8px + var(--mobile-bottom,0px));height:calc(var(--mobile-vh,100dvh) - 20px);max-height:calc(var(--mobile-vh,100dvh) - 20px)}#housekeeper-scroll{padding:12px 14px}#virtual-command .housekeeper-message.user{margin-left:24px}#virtual-command .housekeeper-message.assistant{margin-right:12px}}
@media(prefers-reduced-motion:reduce){#virtual-command[data-housekeeper-mounted] summary::before{transition:none}}

.housekeeper-uploads{padding:6px 10px}.housekeeper-uploads[hidden]{display:none}.housekeeper-image-previews{display:flex;gap:8px;flex-wrap:wrap}.housekeeper-image-previews span{display:flex;align-items:center;gap:4px}.housekeeper-image-previews img,.housekeeper-uploaded-image{width:72px;height:72px;object-fit:contain;border-radius:6px}.housekeeper-uploaded-image{width:140px;height:100px}

.housekeeper-plan{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.housekeeper-uploads>label{font-size:12px;margin-left:8px;display:inline-flex;align-items:center;gap:6px;vertical-align:middle;cursor:pointer}.housekeeper-uploads>label>input{margin:0;width:16px;height:16px;accent-color:#2f6544}

/* Live process overview, derived from recorded backend events. */
#virtual-command .command-process{margin-top:12px;padding:12px;border:1px solid #cddbc9;border-radius:12px;background:#ffffffa6}
#virtual-command .command-process>strong{display:flex;align-items:center;gap:8px;font-size:14px;color:#31583c}
.command-process[data-state="working"]>strong:before{content:"";width:8px;height:8px;border-radius:50%;background:#5d895e;animation:command-breathe 1.5s ease-in-out infinite}
#virtual-command .command-process>p{font-size:12px;color:#6b7569;margin:7px 0;line-height:1.6}
.command-process ol{padding-left:20px;margin:8px 0;font-size:12px;color:#75816f}.command-process li{padding:3px 0}.command-process li:last-child{color:#304e36;font-weight:600}
#virtual-command .command-process>div p{font-size:12px;margin-top:5px}.command-process [data-result="accepted"]{color:#976b25!important}.command-process[data-phase="unconfirmed"]{border-color:#d9bb85}
@keyframes command-breathe{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.command-process[data-state="working"]>strong:before{animation:none}}
