.msg-link{position:relative;display:inline-flex;align-items:center;gap:6px}.msg-badge{background:#d6452b;color:#fff;border-radius:999px;font-size:11px;font-weight:700;line-height:1;padding:3px 6px;min-width:18px;text-align:center}.chat-inbox{display:flex;flex-direction:column;gap:10px}.chat-row{display:flex;gap:14px;align-items:center;padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:14px;text-decoration:none;color:var(--ink)}.chat-row:hover{border-color:var(--green);color:var(--ink)}.chat-row .meta{min-width:0;flex:1 1}.chat-row .top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.chat-row strong{font-size:16px}.chat-row .when{color:var(--muted);font-size:12.5px;white-space:nowrap}.chat-row .title{color:var(--muted);font-size:13.5px;margin-top:2px}.chat-row .preview,.chat-row .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-row .preview{font-size:14.5px;margin-top:4px}.chat-row.unread .preview{font-weight:700}.chat-dot{width:10px;height:10px;border-radius:50%;background:#d6452b;flex:none}.chat-shell{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;height:min(72vh,680px);min-height:420px}.chat-head{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);background:#fbfcfb}.chat-head .grow{min-width:0;flex:1 1}.chat-head .who{font-weight:700}.chat-head .about{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-body{flex:1 1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px;background:var(--ground)}.bubble{max-width:min(78%,480px);padding:9px 13px;border-radius:16px;font-size:15px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.bubble.me{align-self:flex-end;background:var(--green);color:#fff;border-bottom-right-radius:5px}.bubble.them{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:5px}.bubble .time{display:block;font-size:11px;opacity:.7;margin-top:3px;text-align:right}.chat-empty{margin:auto;text-align:center;color:var(--muted);max-width:280px}.chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);background:var(--surface)}.chat-form textarea{flex:1 1;resize:none;border:1px solid var(--line);border-radius:12px;padding:10px 12px;font:inherit;font-size:15px;min-height:44px;max-height:120px}.chat-form textarea:focus{outline:2px solid var(--green);border-color:transparent}.chat-safe{font-size:12.5px;color:var(--muted);text-align:center;padding:0 12px 8px}.chat-err,.chat-safe{background:var(--surface)}.chat-err{color:#a02a15;font-size:13.5px;padding:0 12px 6px}