.ha-widget{--ha-orange:#ff980f;--ha-ink:#252220;position:fixed;right:22px;bottom:var(--ha-bottom,22px);z-index:1040;font-family:Poppins,Arial,sans-serif;color:var(--ha-ink);font-size:14px;line-height:1.6}.ha-widget *{box-sizing:border-box}.ha-launch{display:flex;gap:10px;align-items:center;border:1px solid #ed900f;border-radius:30px;background:linear-gradient(115deg,#ffb434,#ff951c);color:#252220;padding:14px 20px;box-shadow:0 6px 22px #44301925;font:600 14px Poppins,Arial,sans-serif;cursor:pointer}.ha-launch:hover{filter:brightness(.97)}.ha-launch:focus-visible,.ha-widget button:focus-visible,.ha-widget a:focus-visible,.ha-widget summary:focus-visible{outline:3px solid #9a4d00;outline-offset:3px}.ha-panel{position:absolute;bottom:65px;right:0;width:390px;max-width:calc(100vw - 28px);height:min(650px,calc(100dvh - var(--ha-bottom,22px) - 95px));min-height:300px;background:white;border:1px solid #e8d9c9;border-radius:12px;box-shadow:0 14px 60px #33221129;overflow:hidden;display:flex;flex-direction:column}.ha-panel[hidden]{display:none!important}.ha-head{background:linear-gradient(110deg,#ffba4c,#ff980f);display:flex;justify-content:space-between;gap:10px;padding:18px 20px;color:#252220;flex-shrink:0}.ha-head h2{font-size:18px!important;line-height:1.4;margin:3px 0 0;font-weight:600}.ha-eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:600}.ha-head p{font-size:11px;margin:4px 0 0;color:#624424}.ha-head button{border:0;background:transparent;font:28px Arial;align-self:flex-start;color:#392711;cursor:pointer;padding:0 3px}.ha-context{padding:12px 14px;display:grid;grid-template-columns:auto minmax(0,1fr) 55px;gap:7px;align-items:center;background:#fffaf3;border-bottom:1px solid #eee3d7;flex-shrink:0}.ha-context label{font-size:11px;margin:0}.ha-context select,.ha-topics select{font:12px Poppins,Arial,sans-serif;min-width:0;max-width:100%;border:1px solid #e1d7cb;border-radius:5px;padding:8px;background:white;color:#3e332a}.ha-messages{flex:1;overflow:auto;padding:14px;min-height:70px;overscroll-behavior:contain;scroll-behavior:smooth}.ha-message{border:1px solid #ede7df;background:#faf9f7;border-radius:8px;padding:12px;margin-bottom:12px;overflow-wrap:anywhere}.ha-message p{white-space:pre-wrap;font-size:13px;line-height:1.8;margin:5px 0 0;color:#423d37}.ha-sender{font-size:10px;font-weight:600;color:#a35a0c}.ha-user{background:#fff2dd;border-color:#f2d5a8;margin-left:30px}.ha-user .ha-sender{color:#80520f}.ha-source,.ha-hint{display:block;color:#8b7764;font-size:10px;line-height:1.7;margin-top:8px}.ha-hint{font-size:12px;color:#99510c}.ha-links{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.ha-links:empty{display:none}.ha-links a{display:inline-block;font-size:12px;color:#8e4900;text-decoration:underline;line-height:1.7}.ha-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.ha-chips button{font:11px Poppins,Arial,sans-serif;text-align:left;border:1px solid #e6cda9;border-radius:5px;padding:7px 9px;background:white;color:#82531a;cursor:pointer}.ha-chips button:hover{background:#fff2dd}.ha-answer-tools{margin-top:12px;border-top:1px solid #e8e0d6;padding-top:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:10px;color:#8b7764}.ha-answer-tools button{font:11px Poppins,Arial,sans-serif;border:0;background:transparent;padding:3px;color:#8c520e;text-decoration:underline;cursor:pointer}.ha-answer-tools button:disabled{opacity:.6;cursor:default}.ha-support-button{margin-left:auto}.ha-topics{padding:7px 14px;border-top:1px solid #eee6dd;max-height:160px;overflow:auto;flex-shrink:0}.ha-topics summary{font-size:11px;cursor:pointer;color:#82531a}.ha-topics select{width:100%;margin:8px 0}.ha-topic{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #eee6dd;background:white;color:#4c4338;padding:8px 0;font:11px Poppins,Arial,sans-serif;cursor:pointer}.ha-privacy{margin:0;padding:5px 14px;color:#8c8174;font-size:9px;line-height:1.6;flex-shrink:0}.ha-form{display:flex;align-items:center;gap:8px;padding:9px 14px;margin:0!important;flex-shrink:0}.ha-form input{flex:1;min-width:0;width:auto;border:1px solid #ddd4c8;border-radius:6px;padding:10px;font:13px Poppins,Arial,sans-serif;background:white;color:#252220}.ha-form button{width:38px;height:38px;flex-shrink:0;border:0;border-radius:6px;background:#ffab2b;color:#2d2416;font-size:23px;cursor:pointer}.ha-form button:disabled{opacity:.5;cursor:wait}.ha-foot{display:flex;justify-content:space-between;gap:12px;padding:4px 14px 12px;flex-shrink:0}.ha-foot button,.ha-foot a{border:0;background:none;padding:0;font:10px Poppins,Arial,sans-serif;color:#87715a;text-decoration:underline;cursor:pointer}.ha-widget .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ha-admin{padding:28px;background:white;border:1px solid #e6dfd7;border-top:4px solid #ff980f;border-radius:7px}.ha-admin h2{font-size:28px;margin:0 0 8px}.ha-admin h3{font-size:19px;margin:0 0 14px}.ha-admin p{line-height:1.8}.ha-admin .ha-muted{color:#87715a;font-size:13px}.ha-tabs{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0}.ha-tabs a,.ha-admin .ha-button{display:inline-flex;align-items:center;gap:6px;border:1px solid #e5d4bc;border-radius:5px;padding:9px 13px;color:#8d4b00;background:#fff8ed;text-decoration:none;font:13px Poppins,Arial,sans-serif;cursor:pointer}.ha-tabs a[aria-current=page],.ha-admin .ha-primary{background:#ffac2c;color:#332211;border-color:#ffac2c}.ha-stats{display:flex;flex-wrap:wrap;gap:15px;margin:20px 0;font-size:12px;color:#87715a}.ha-stats strong{color:#6d4110}.ha-admin label{display:block;font-size:13px;color:#62564a;line-height:1.7;margin-bottom:14px}.ha-admin input:not([type=checkbox]):not([type=hidden]),.ha-admin textarea,.ha-admin select{width:100%;border:1px solid #ddd3c6;border-radius:5px;padding:10px 12px;background:#fdfcfb;color:#332a20;font:14px Poppins,Arial,sans-serif;line-height:1.7;margin-top:6px}.ha-admin input[type=checkbox]{width:16px;height:16px;accent-color:#ed951f;margin-right:7px}.ha-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.ha-wide{grid-column:1/-1}.ha-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:15px 0}.ha-actions form{margin:0}.ha-admin table{font-size:12px;line-height:1.8;width:100%;border-collapse:collapse}.ha-admin th,.ha-admin td{padding:12px 9px;border-bottom:1px solid #eee5d9;vertical-align:top}.ha-admin th{background:#fff6e7;color:#7c4b11;text-align:left;font-weight:600}.ha-admin td p{margin:0}.ha-admin .ha-table-wrap{overflow:auto}.ha-badge{font-size:10px;display:inline-block;padding:3px 6px;background:#fff0d5;border:1px solid #efd9b3;border-radius:4px;white-space:nowrap}.ha-preview{white-space:pre-wrap;background:#faf7f2;border:1px solid #e6d7c1;border-radius:5px;padding:16px;line-height:1.8;font-size:14px}.ha-admin details{margin:14px 0}.ha-admin details summary{cursor:pointer;color:#8d4b00;font-size:13px}.ha-admin pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-height:350px;overflow:auto}.ha-danger{color:#a53227!important}.ha-admin .ha-alert{padding:13px 16px;background:#fff4dc;border:1px solid #eed5a7;border-radius:5px;margin:15px 0;font-size:14px}.ha-admin .ha-error{background:#fff0ed;color:#9c3a2c;border-color:#ebc8be}
@media(max-width:600px){.ha-widget{right:12px;bottom:var(--ha-bottom,16px)}.ha-panel{right:0;width:calc(100vw - 24px);height:min(620px,calc(100dvh - var(--ha-bottom,16px) - 82px));bottom:59px;min-height:220px}.ha-launch{padding:12px 15px}.ha-context{grid-template-columns:1fr 55px}.ha-context label{grid-column:1/-1}.ha-head{padding:13px 16px}.ha-head h2{font-size:16px!important}.ha-admin{padding:20px 16px}.ha-grid{grid-template-columns:1fr}.ha-admin h2{font-size:24px}.ha-tabs{gap:6px}.ha-tabs a{padding:8px;font-size:12px}.ha-admin th,.ha-admin td{padding:9px 6px}.ha-privacy{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ha-messages{scroll-behavior:auto}}
.ha-admin{min-width:0;box-sizing:border-box;overflow-wrap:anywhere}.ha-admin form,.ha-admin label,.ha-admin .ha-grid,.ha-admin .ha-preview{min-width:0;max-width:100%}.ha-admin input,.ha-admin select,.ha-admin textarea{box-sizing:border-box;min-width:0;max-width:100%}.ha-admin .ha-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ha-admin .hk-box{white-space:normal;margin:18px 0}.ha-admin .ha-table-wrap{max-width:100%;min-width:0}.ha-admin .ha-table-wrap table{min-width:630px}.ha-admin .hk-box h4{margin:0 0 16px;color:#8d4b00;font-size:16px}.ha-admin .hk-box details{padding:10px 12px;border:1px solid #eadac4;border-radius:5px;background:#fff}.ha-admin .hk-box details p{overflow-wrap:anywhere}
@media(max-width:600px){.ha-admin .ha-grid{grid-template-columns:minmax(0,1fr)}.ha-admin .ha-button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.ha-admin .ha-preview{box-sizing:border-box}}
.ha-panel{width:400px;height:min(630px,calc(100dvh - var(--ha-bottom,22px) - 95px));min-height:0;animation:ha-chat-open .18s ease-out;transform-origin:bottom right}.ha-messages{background:linear-gradient(#fff,#fffaf3)}.ha-message{max-width:94%;border-radius:15px 15px 15px 4px;box-shadow:0 2px 5px #43321c05}.ha-user{max-width:88%;margin-left:auto;border-radius:15px 15px 4px 15px;background:#fff0d5}.ha-typing{width:max-content;min-width:150px}.ha-typing p{display:flex;align-items:center;gap:10px;color:#9a6b35;font-size:12px}.ha-typing-dots{display:inline-flex;align-items:center;gap:4px}.ha-typing-dots i{display:block;width:6px;height:6px;background:#e88d18;border-radius:50%;animation:ha-writing 1.1s ease-in-out infinite}.ha-typing-dots i:nth-child(2){animation-delay:.15s}.ha-typing-dots i:nth-child(3){animation-delay:.3s}.ha-question:disabled{opacity:.7}.hc-history-item{padding:18px;margin:16px 0;border:1px solid #eadac4;border-left:3px solid #ff9818;border-radius:7px}.hc-history-item header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#8a7359}.hc-history-item header a{color:#a05400}.hc-history-item .hc-question{background:#fff3df;padding:13px;border-radius:8px;white-space:pre-wrap}.hc-history-item .hc-answer{white-space:pre-wrap;background:#faf8f4;padding:13px;border-radius:8px}.hc-history-item small{color:#8a7359;line-height:1.7}
@keyframes ha-writing{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}@keyframes ha-chat-open{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:600px){.ha-panel{width:calc(100vw - 24px);height:min(630px,calc(100dvh - var(--ha-bottom,16px) - 82px))}.hc-history-item{padding:14px}}@media(prefers-reduced-motion:reduce){.ha-panel,.ha-typing-dots i{animation:none}.ha-messages{scroll-behavior:auto}}
.ha-head{align-items:center;padding:13px 16px}.ha-head h2{margin:0!important;font-size:17px!important}.ha-head button{align-self:center;font-size:27px;line-height:1}.ha-privacy a{color:#8c520e;text-decoration:underline}
.hc-history-item{scroll-margin-top:120px}.hc-history-item:target{border-color:#ff9818;box-shadow:0 0 0 3px #ff9f1f22}

.ha-ai-option{padding:5px 14px 0;flex-shrink:0}.ha-ai-option[hidden],.ha-ai-option small[hidden]{display:none!important}.ha-ai-option label{display:flex;align-items:flex-start;gap:6px;margin:0;font-size:10px;line-height:1.6;color:#795126;cursor:pointer}.ha-ai-option input{width:14px;height:14px;min-width:14px;margin:2px 0 0;accent-color:#e78c11}.ha-ai-option small{display:block;font-size:9px;line-height:1.5;color:#8c8174;margin:4px 0 0 20px}
