.chat-main{max-width:1200px;margin:auto;padding:20px 32px 50px}.chat-main h1{font-size:38px;letter-spacing:-1.5px;margin:0}.chat-layout{display:grid;grid-template-columns:300px minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;min-height:570px}.chat-inbox{border-right:1px solid var(--line);padding:20px 12px}.chat-inbox>h2{font-size:17px;margin:0 10px 20px}.chat-person{width:100%;display:flex;gap:12px;align-items:center;text-align:left;border:0;border-radius:12px;padding:14px 10px;background:transparent;color:var(--ink);margin-bottom:5px}.chat-person[aria-pressed=true]{background:#fff0f2}.chat-person>span:nth-child(2){flex:1 1;min-width:0}.chat-person small,.chat-person strong{display:block;overflow-wrap:anywhere}.chat-person small{font-size:12px;line-height:1.4;color:var(--muted);margin-top:4px}.chat-avatar{width:39px;height:39px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:#f7d9df;color:#ab2643;font-weight:700}.chat-conversation{min-width:0;display:flex;flex-direction:column}.chat-welcome{margin:auto;padding:40px;text-align:center;color:var(--muted);max-width:470px}.chat-welcome>span{color:var(--coral);font-size:70px}.chat-welcome h2{font-size:26px;line-height:1.3;color:var(--ink)}.chat-heading{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;gap:15px;align-items:center;flex-wrap:wrap}.chat-heading>div:first-of-type{flex:1 1;min-width:0}.chat-heading h2{font-size:19px;overflow-wrap:anywhere;margin:0}.chat-heading p{font-size:12px;color:var(--muted);margin:3px 0 0;overflow-wrap:anywhere}.chat-tools{display:flex;gap:14px}.chat-tools button{background:none;border:none;font-size:12px;color:var(--muted);padding:8px 0}.chat-back{display:none}.chat-history{padding:18px 22px;min-height:280px;height:420px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px}.chat-private{font-size:11px;color:var(--muted);text-align:center;max-width:370px;align-self:center}.chat-bubble{max-width:85%;align-self:flex-start;border-radius:14px 14px 14px 3px;background:#f4f1ef;padding:10px 14px;overflow-wrap:anywhere;flex-shrink:0}.chat-mine{align-self:flex-end;background:#ffedf0;border-radius:14px 14px 3px 14px}.chat-sender{font-size:11px;font-weight:700;color:#92515f}.chat-bubble p{white-space:pre-wrap;margin:3px 0 7px;line-height:1.5;font-size:14px}.chat-bubble time{font-size:10px;color:var(--muted);display:block;text-align:right}.chat-composer{border-top:1px solid var(--line);padding:16px 22px;margin-top:auto}.chat-composer label{display:block;font-size:12px;font-weight:700;margin-bottom:7px}.chat-composer textarea{width:100%;resize:vertical;max-height:220px;border:1px solid #dcd4d7;border-radius:10px;padding:10px;color:var(--ink);background:#fff}.chat-composer>div{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:10px}.chat-composer small{color:var(--muted);font-size:10px}.chat-composer button{flex-shrink:0}.chat-empty{font-size:14px;padding:15px;color:var(--muted)}.chat-empty a{color:#b92343}.chat-footer{margin-top:20px}@media(max-width:700px){.chat-main{padding:15px 16px 30px}.chat-layout{grid-template-columns:minmax(0,1fr);min-height:380px}.chat-inbox{border-right:0}.chat-conversation,.chat-open .chat-inbox{display:none}.chat-open .chat-conversation{display:flex}.chat-back{display:block;padding:7px 10px;font-size:12px}.chat-heading{padding:14px}.chat-history{height:45vh;min-height:250px;padding:14px}.chat-composer{padding:14px}.chat-composer>div{flex-wrap:wrap}.chat-composer button{margin-left:auto}.chat-bubble{max-width:92%}.chat-tools{width:100%;justify-content:flex-end}.chat-app .housing-nav{padding:18px 16px;gap:10px;flex-wrap:wrap}.chat-app .housing-brand{font-size:21px}.chat-app .housing-nav nav{gap:15px}.chat-main h1{font-size:32px}.chat-app.chat-active{position:fixed;inset-inline:0;top:var(--chat-window-top,0);height:var(--chat-window-height,100dvh);min-height:0;display:flex;flex-direction:column;z-index:20;overflow:hidden}.chat-active>.housing-nav{width:100%;padding:10px 16px;flex-shrink:0}.chat-active .chat-main{width:100%;padding:0 8px max(8px,env(safe-area-inset-bottom));flex:1 1;min-height:0;display:flex;flex-direction:column}.chat-active .chat-main>.housing-help,.chat-active .chat-main>.housing-section-heading{display:none}.chat-active .chat-main>.housing-error,.chat-active .chat-main>.housing-notice{margin:4px 0;max-height:64px;overflow-y:auto;flex-shrink:0}.chat-active .chat-layout{flex:1 1;min-height:0;grid-template-rows:minmax(0,1fr);border-radius:12px}.chat-active .chat-conversation{min-height:0;overflow:hidden}.chat-active .chat-heading{padding:8px 10px;flex-shrink:0;gap:8px}.chat-active .chat-heading h2{font-size:16px}.chat-active .chat-tools{width:auto;margin-left:auto;gap:10px}.chat-active .chat-history{flex:1 1;height:auto;min-height:0;padding:10px;overflow-y:auto}.chat-active .chat-composer{flex-shrink:0;margin:0;padding:8px 10px;background:#fff}.chat-active .chat-composer textarea{display:block;height:64px;min-height:44px;max-height:100px;resize:none;font-size:16px}.chat-active .chat-composer>div{margin-top:6px;gap:6px}.chat-active .chat-composer .housing-primary{padding:9px 14px;min-height:44px}}