.home-assistant{display:grid;grid-template-columns:164px minmax(0,1fr);align-items:center;gap:0 24px;width:min(1040px,100%);margin:76px auto 0;color:var(--ink);min-width:0}
.ha-topline{grid-column:1;grid-row:1;min-width:0;align-self:center}
.ha-label{display:flex;align-items:center;min-height:34px;padding-right:24px;border-right:1px solid #b7b7ad;white-space:nowrap;font-size:21px;line-height:30px;font-weight:400;color:var(--ink)}
.ha-label>.icon{display:none}
.ha-examples{display:none}
.ha-composer{grid-column:2;grid-row:1;display:flex;align-items:center;gap:8px;min-width:0;border:1px solid #b9b9af;border-radius:14px;background:#ffffff26;transition:border-color .2s ease,box-shadow .2s ease}
.ha-composer:focus-within{border-color:var(--green);box-shadow:0 0 0 2px #ba583914}
.ha-composer textarea{display:block;flex:1;min-width:0;min-height:58px;max-height:160px;margin:0;padding:14px 24px;border:0;border-radius:14px;box-shadow:none;background:transparent;color:var(--ink);font:inherit;font-size:21px;line-height:30px;resize:vertical;outline:none}
.ha-composer textarea::placeholder{color:#66695f;opacity:1}
.ha-composer textarea:focus{border:0;box-shadow:none;outline:none}
.ha-composer textarea[readonly]{color:var(--muted);resize:none}
.ha-send{display:grid;place-items:center;flex-shrink:0;width:56px;height:56px;padding:12px;margin-right:4px;border:0;border-radius:10px;background:transparent;color:var(--ink);cursor:pointer;transition:background .2s ease}
.ha-send>.icon{width:28px;height:28px;filter:none;transform:none}
.ha-send:hover{background:var(--lime)}
.ha-send:disabled{background:#efeee7;opacity:.5;cursor:wait}
.home-assistant button:focus-visible,.ha-text-link:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.ha-conversation{grid-column:1/-1;grid-row:2;display:flex;flex-direction:column;gap:12px;max-height:360px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;margin:20px 0 0;padding:0 4px}
.ha-message{max-width:100%;min-width:0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--white)}
.ha-message-user{align-self:flex-end;max-width:90%;background:var(--lime);border-color:#e2cfc1}
.ha-message-assistant{align-self:stretch}
.ha-role{display:block;margin-bottom:6px;font-size:13px;line-height:20px;font-weight:500;color:var(--muted)}
.ha-message p{margin:0;color:var(--ink);font-size:16px;line-height:26px;white-space:pre-wrap;overflow-wrap:anywhere;text-wrap:pretty}
.ha-status:not(.sr-only){grid-column:1/-1;grid-row:3;margin:12px 0 0;color:var(--muted);font-size:14px;line-height:22px}
.ha-error{grid-column:1/-1;grid-row:4;margin:16px 0 0;padding:16px;border:1px solid #dec6b8;border-radius:8px;background:#fffaf5}
.ha-error p{margin:0;color:#8f4835;font-size:14px;line-height:22px;text-wrap:pretty}
.ha-error-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.ha-error-actions:not(:empty){margin-top:8px}
.ha-text-button,.ha-text-link{display:inline-block;margin:0;padding:6px 8px;border:0;border-radius:4px;background:transparent;color:var(--green);font-size:14px;line-height:22px;font-weight:500;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ha-text-button:hover,.ha-text-link:hover{background:var(--lime)}
.ha-loading{display:grid;gap:8px;max-width:320px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--white)}
.ha-loading span{display:block;height:8px;border-radius:3px;background:#e4e2d8;animation:ha-breathe 1.5s ease infinite}
.ha-loading span:nth-child(2){width:88%;animation-delay:.15s}.ha-loading span:nth-child(3){width:64%;animation-delay:.3s}
@keyframes ha-breathe{0%,100%{opacity:.45}50%{opacity:1}}
@media(max-width:1279px){.home-assistant{margin-top:56px;grid-template-columns:140px minmax(0,1fr);gap:0 20px}.ha-label{font-size:18px;padding-right:20px}.ha-composer textarea{font-size:18px;padding-inline:18px}}
@media(max-width:850px){.home-assistant{margin-top:44px;display:flex;flex-direction:column;align-items:stretch;gap:12px}.ha-label{border:0;padding:0;min-height:24px;font-size:16px;line-height:24px}.ha-composer textarea{font-size:17px;line-height:26px;min-height:56px;padding:14px 16px}.ha-send{width:48px;height:48px}.ha-conversation{max-height:300px;margin-top:4px}.ha-role{font-size:14px}.ha-message p{font-size:15px;line-height:24px}}
@media(max-width:600px){.home-assistant{margin-top:32px}.ha-composer{border-radius:10px}.ha-composer textarea{font-size:16px;min-height:54px;padding:13px 14px}.ha-send{width:44px;height:44px;margin-right:2px}.ha-send>.icon{width:24px;height:24px}.ha-message-user{max-width:96%}}
@media(prefers-reduced-motion:reduce){.ha-loading span{animation:none;opacity:.7}.ha-composer,.ha-send{transition:none}}
