/* Assistant only. No global breakpoints, card styles or navigation destinations change. */
header .nav .ha-trigger,.modal-head .ha-trigger{display:grid;place-items:center;flex:0 0 36px;width:36px;height:44px;padding:7px;border:0;border-radius:9px;background:transparent;color:var(--theme-text-accent, #24734f);cursor:pointer}.ha-trigger svg{width:22px;height:22px}.ha-trigger:focus-visible{outline:2px solid var(--theme-focus, #24734f);outline-offset:2px}.modal-head .ha-trigger{margin-left:auto;margin-right:8px}
.ha-panel{position:fixed;inset:72px 16px auto auto;margin:0;width:min(380px,calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(430px,50dvh);max-height:calc(100dvh - 110px);padding:0;display:flex;flex-direction:column;border:1px solid var(--theme-border-default, #bfcfc5);border-radius:16px;box-shadow:0 10px 45px var(--theme-shadow, #101f3226);background:var(--theme-bg-surface, #fff);color:var(--theme-text-primary, #101f32);overflow:hidden}.ha-panel:not([open]){display:none}.ha-panel::backdrop{background:var(--theme-overlay, #101f322b);backdrop-filter:none}.ha-panel.ha-expanded{height:min(620px,72dvh)}.ha-panel .ha-head{position:static;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 12px;border-bottom:1px solid var(--theme-border-default, #e3eae6);min-height:48px;background:var(--theme-bg-subtle, #f7faf8)}.ha-head strong{font-size:14px}.ha-head button{width:44px;height:44px;padding:0;background:transparent;font-size:24px;color:var(--theme-text-accent, #264534)}.ha-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px 12px}.ha-context{font-size:12px;color:var(--theme-text-secondary, #64766b);margin:0 0 8px;overflow-wrap:anywhere}.ha-quick{display:flex;flex-wrap:wrap;gap:5px}.ha-panel button{cursor:pointer}.ha-quick button,.ha-actions button,.ha-card>button{min-height:44px;padding:6px 10px;background:var(--theme-bg-subtle, #edf5f0);border:1px solid var(--theme-border-default, #d9e7df);color:var(--theme-text-accent, #255d41);border-radius:9px;font-size:13px;line-height:1.25}.ha-card{margin-top:12px;border-top:1px solid var(--theme-border-default, #e3eae6);padding-top:10px;min-width:0;overflow-wrap:anywhere}.ha-card>small{font-size:11px;color:var(--theme-text-secondary, #66776e)}.ha-card h3{font-size:15px;margin:6px 0 10px}.ha-card p,.ha-card li,.ha-card dt,.ha-card dd,.ha-card label{font-size:14px;line-height:1.45}.ha-card p{white-space:pre-wrap}.ha-card textarea,.ha-card select{width:100%;max-width:100%;min-width:0;border:1px solid var(--theme-border-default, #cbd8d0);border-radius:8px;padding:9px;font:inherit;font-size:16px;min-height:44px;margin-top:4px}.ha-card textarea{min-height:80px;resize:vertical}.ha-before{color:var(--theme-text-secondary, #68766e);max-height:80px;overflow:auto;margin:4px 0 10px}.ha-note{font-size:12px!important;color:var(--theme-text-secondary, #65766b);line-height:1.4}.ha-checks{list-style:none;padding:0;margin:0}.ha-checks li{padding:3px 0}.ha-checks small{display:block;margin-left:18px;color:var(--theme-text-secondary, #68766e);font-size:11px}.ha-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.ha-actions [data-ha=cancel]{color:var(--theme-danger, #945b5b);background:var(--theme-bg-subtle, #faf7f7)}.ha-input{display:flex;flex:0 0 auto;gap:5px;margin:0;border-top:1px solid var(--theme-border-default, #e3eae6);padding:6px 8px;background:var(--theme-bg-input, white)}.ha-input input{flex:1;min-width:0;min-height:44px;border:0;padding:8px;font-size:16px;background:var(--theme-bg-input, white)}.ha-input button{flex:0 0 44px;border-radius:8px;background:var(--theme-brand-green, #24734f);color:var(--theme-text-on-brand, white);font-size:21px}.ha-items{display:flex;flex-direction:column;gap:4px}.ha-items button{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;text-align:left;border:0;border-radius:7px;padding:8px;background:var(--theme-bg-subtle, #f3f7f4);font-size:14px;color:var(--theme-text-accent, #203d2d)}.ha-items label{display:flex;gap:7px;align-items:center;min-height:44px}.ha-pick{max-height:180px;overflow:auto}.ha-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;margin:0}.ha-metrics dd{margin:0;white-space:pre-wrap}.ha-metrics dd small{display:block;font-size:11px;color:var(--theme-text-secondary, #65766b)}.ha-tags{display:flex;flex-wrap:wrap;gap:5px}.ha-tags span{padding:5px 8px;border-radius:8px;background:var(--theme-bg-subtle, #edf5f0);font-size:13px}.ha-panel button:disabled{opacity:.55;cursor:wait}.ha-card details{margin:8px 0}.ha-card summary{padding:8px 0;min-height:44px;cursor:pointer}
@media(max-width:768px){.ha-panel{inset:auto 8px calc(78px + env(safe-area-inset-bottom,0px)) 8px;width:auto;max-width:none;height:44dvh;max-height:calc(100dvh - 100px - env(safe-area-inset-bottom,0px));border-radius:16px}.ha-panel.ha-expanded{height:66dvh}}
/* Assistant controls only; the existing header icon dimensions and placement stay unchanged. */
.ha-admin-form{max-width:600px}.ha-admin-form>label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0;font-size:16px}.ha-admin-form select{min-height:44px;min-width:88px;border:1px solid var(--line);border-radius:8px;padding:8px}.ha-admin-tester{border-top:1px solid var(--line);margin-top:16px;padding-top:12px}.ha-admin-tester label{display:flex;align-items:center;gap:10px;min-height:44px}.ha-admin-tester input{width:20px;height:20px}.ha-quick button small{display:inline-block;margin-left:5px;color:var(--theme-text-secondary, #637080);font-size:12px}.ha-card .ha-text-tools{display:flex;flex-wrap:wrap;gap:6px}.ha-card .ha-text-tools button{min-height:44px;padding:6px 10px;border:1px solid var(--theme-border-default, #d9e7df);border-radius:8px;background:var(--theme-bg-subtle, #edf5f0);color:var(--theme-text-accent, #255d41)}.ha-permission{display:flex;align-items:center;gap:8px;min-height:44px}.ha-permission input{width:20px;height:20px;flex:0 0 20px}
/* Compact conversation UX: scoped to the existing Assistant sheet. */
.ha-panel .ha-head{flex:0 0 auto;gap:4px}.ha-head strong{min-width:0;flex:1}.ha-head .ha-new-chat{flex:0 0 44px;font-size:14px}.ha-new-chat svg{width:21px;height:21px;vertical-align:middle}
.ha-shortcuts{margin:0 0 6px}.ha-shortcuts>summary{min-height:44px;display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font-size:12px;color:var(--theme-text-secondary, #617469);overflow-wrap:anywhere}.ha-shortcuts>summary::-webkit-details-marker{display:none}.ha-shortcuts>summary:after{content:'⌄';margin-left:auto;flex:none}.ha-shortcuts[open]>summary:after{transform:rotate(180deg)}.ha-shortcuts .ha-quick{padding-bottom:5px}.ha-shortcuts .ha-quick button{padding:5px 9px;font-size:12px}
.ha-thread{display:flex;flex-direction:column;gap:10px;min-width:0}.ha-message{max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:normal;font-size:14px;line-height:1.45}.ha-message[hidden]{display:none}.ha-user{align-self:flex-end;max-width:88%;padding:8px 11px;background:var(--theme-bg-subtle, #eaf4ed);border-radius:12px 12px 3px 12px;white-space:pre-wrap;color:var(--theme-text-accent, #183d2b)}.ha-assistant{align-self:flex-start;width:100%;padding:3px 0;color:var(--theme-text-primary, #20332a)}.ha-reply{margin:0;white-space:pre-wrap;font-size:14px;line-height:1.5}.ha-ai-hint{display:block;margin:2px 0 8px;color:var(--theme-text-secondary, #738078);font-size:10px;line-height:1.3}.ha-ai-hint[hidden]{display:none}.ha-loading{margin:4px 0;color:var(--theme-text-secondary, #6a7d70);font-size:12px;line-height:1.5}.ha-message .ha-card{margin:0;padding:0;border:0}.ha-message .ha-card h3{margin:3px 0 7px;font-size:14px}.ha-message .ha-card>small{font-size:10px}.ha-message .ha-card>small:empty{display:none}.ha-message .ha-actions{margin-top:7px}.ha-message[inert]{opacity:.8}
.ha-input{align-items:flex-end;padding:6px 8px max(6px,env(safe-area-inset-bottom,0px));box-sizing:border-box}.ha-input textarea{display:block;flex:1;min-width:0;width:0;min-height:44px;max-height:108px;height:44px;margin:0;border:0;border-radius:8px;padding:10px 8px;font:inherit;font-size:16px;line-height:22px;box-sizing:border-box;resize:none;overflow-y:hidden;overflow-wrap:anywhere;white-space:pre-wrap;background:var(--theme-bg-input, #fff);color:var(--theme-text-primary, #101f32);overscroll-behavior:contain}.ha-input textarea:focus{outline:2px solid var(--theme-focus, #b5d4c1);outline-offset:-2px}.ha-input [data-ha-send]{width:44px;height:44px;min-height:44px;padding:0;flex:0 0 44px;align-self:flex-end}.ha-input [data-ha-send]:disabled{opacity:.4;cursor:default}.ha-panel.ha-keyboard{top:var(--ha-vv-top);bottom:auto;height:var(--ha-vv-height);max-height:var(--ha-vv-height)}.ha-keyboard .ha-input{padding-bottom:6px}

/* Assistant visibility: authored button display must never override hidden. */
#review-facts[hidden],.inventory-assistant[hidden],a[href="#/assistant"][hidden]{display:none!important}
