.house-support[hidden], .house-support-panel[hidden], .house-support-error[hidden] { display: none !important; }
.house-support { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 1060; font: 15px/1.45 system-ui, sans-serif; color: #302c29; }
.house-support-launch { display: block; margin-left: auto; border: 0; border-radius: 999px; padding: 12px 19px; color: #fff; background: #e8454c; font-weight: 700; box-shadow: 0 7px 25px #0003; }
.house-support-launch:focus-visible, .house-support button:focus-visible, .house-support textarea:focus-visible, .house-support a:focus-visible { outline: 3px solid #315ecf; outline-offset: 2px; }
.house-support-panel { width: min(390px, calc(100vw - 24px)); height: min(570px, calc(100dvh - 100px)); min-height: 310px; display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 18px; border: 1px solid #e7ded8; box-shadow: 0 18px 60px #0004; margin-bottom: 10px; }
.house-support-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: #faf4f2; border-bottom: 1px solid #eee1dc; }
.house-support-icon { border: 0; background: transparent; font-size: 25px; line-height: 1; }
.house-support-intro { margin: 0; padding: 10px 15px; color: #6b625e; font-size: 13px; }
.house-support-messages { flex: 1; overflow-y: auto; padding: 10px 13px; display: flex; flex-direction: column; gap: 9px; overscroll-behavior: contain; }
.house-support-message { max-width: 88%; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.house-support-message--user { align-self: flex-end; background: #e8454c; color: #fff; border-bottom-right-radius: 4px; }
.house-support-message--assistant { align-self: flex-start; background: #f2efeb; border-bottom-left-radius: 4px; }
.house-support-message--failed { opacity: .65; }
.house-support-message--typing:empty::after { content: '\2022\2022\2022'; letter-spacing: 2px; color: #9a8f89; animation: house-support-typing 1s infinite alternate; }
@keyframes house-support-typing { from { opacity: .3; } to { opacity: 1; } }
.house-support-error { color: #a52b32; font-size: 13px; margin: 3px 14px; }
.house-support-form { display: flex; align-items: end; gap: 8px; padding: 10px 12px; border-top: 1px solid #eee1dc; }
.house-support-form textarea { flex: 1; min-width: 0; max-height: 100px; resize: vertical; border: 1px solid #d8d0ca; border-radius: 10px; padding: 8px; }
.house-support-form button { border: 0; border-radius: 9px; padding: 9px 13px; background: #e8454c; color: #fff; font-weight: 700; }
.house-support-form button:disabled { opacity: .6; }
.house-support-links { display: flex; justify-content: space-between; padding: 0 14px 12px; font-size: 13px; }
.house-support-links button { border: 0; background: none; color: #635852; padding: 0; }
.house-support-links a { color: #a52b32; }
@media (max-width: 600px) { .house-support { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); } .house-support-panel { height: min(70dvh, 540px); } }
