:root{--accent: #f0a262;--accent-d: #e08a45;--bg: #f4f5f7;--surface: #ffffff;--text: #1f2733;--muted: #8a93a2;--border: #e6e9ef}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}.app{display:flex;flex-direction:column;height:100%}.center{display:flex;flex:1;align-items:center;justify-content:center;min-height:60vh;padding:24px}.muted{color:var(--muted);text-align:center}.spinner{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:8px;padding:14px 16px;background:var(--surface);border-bottom:1px solid var(--border)}.topbar .back{border:none;background:var(--bg);width:32px;height:32px;border-radius:10px;font-size:18px;cursor:pointer;color:var(--text)}.topbar .title{font-weight:700;font-size:17px;display:flex;flex-direction:column}.topbar .org{font-weight:500;font-size:12px;color:var(--muted)}.list{padding:12px;display:flex;flex-direction:column;gap:10px}.card{text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:14px;cursor:pointer;font:inherit;color:inherit}.card-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}.num{font-size:12px;color:var(--muted);font-weight:600}.card-title{font-weight:600;font-size:15px;line-height:1.3}.card-date{margin-top:6px;font-size:12px;color:var(--muted)}.badge{font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;background:#eef0f4;color:#5a6678}.st-in_progress{background:#fff1e3;color:#c9722b}.st-new{background:#e7f0ff;color:#2f6fd0}.st-closed{background:#e6f6ec;color:#2e9e57}.st-rejected,.st-unconfirmed{background:#f0f1f4;color:#8a93a2}.chat{display:flex;flex-direction:column;flex:1;min-height:0}.chat-head{padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--border)}.chat-head .badge{margin-left:8px}.chat-subj{margin-top:6px;font-weight:600;font-size:15px}.email-note{margin-top:8px;font-size:12px;color:#c9722b;background:#fff1e3;border-radius:8px;padding:6px 10px}.messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}.msg{display:flex;flex-direction:column;max-width:82%}.msg.resident{align-self:flex-end;align-items:flex-end}.msg.uk{align-self:flex-start;align-items:flex-start}.bubble{padding:10px 13px;border-radius:16px;font-size:15px;line-height:1.35;white-space:pre-wrap;word-break:break-word}.msg.resident .bubble{background:var(--accent);color:#fff;border-bottom-right-radius:5px}.msg.uk .bubble{background:var(--surface);border:1px solid var(--border);border-bottom-left-radius:5px}.msg-time{font-size:11px;color:var(--muted);margin-top:3px}.composer{position:sticky;bottom:0;display:flex;gap:8px;align-items:flex-end;padding:10px 12px;background:var(--surface);border-top:1px solid var(--border);padding-bottom:calc(10px + env(safe-area-inset-bottom))}.composer textarea{flex:1;resize:none;max-height:120px;border:1px solid var(--border);border-radius:14px;padding:10px 12px;font:inherit;font-size:15px;outline:none}.composer textarea:focus{border-color:var(--accent)}.send{border:none;background:var(--accent);color:#fff;width:40px;height:40px;border-radius:12px;font-size:16px;cursor:pointer;flex-shrink:0}.send:disabled{opacity:.5}.new-btn{margin-left:auto;border:none;background:var(--accent);color:#fff;border-radius:10px;padding:8px 12px;font-size:13px;font-weight:600;cursor:pointer}.badge.note{background:#eef0f4;color:#5a6678}.form{padding:16px;display:flex;flex-direction:column;gap:6px}.form-label{font-size:13px;font-weight:600;color:var(--muted);margin-top:8px}.form-input{border:1px solid var(--border);border-radius:12px;padding:11px 12px;font:inherit;font-size:15px;outline:none;resize:none}.form-input:focus{border-color:var(--accent)}.form-error{color:#d9483b;font-size:13px;margin:4px 0 0}.form-submit{margin-top:14px;border:none;background:var(--accent);color:#fff;border-radius:14px;padding:13px;font-size:15px;font-weight:700;cursor:pointer}.form-submit:disabled{opacity:.5}
