.msg-page{max-width:640px;margin:0 auto;padding:8px 16px 24px}.msg-top{justify-content:space-between;align-items:center;gap:12px;min-height:56px;display:flex}.msg-top h1{letter-spacing:-.02em;margin:0;font-size:24px}.msg-compose{background:var(--accent);min-height:44px;color:var(--on-accent,#fff);border-radius:999px;justify-content:center;align-items:center;padding:0 16px;font-weight:700;text-decoration:none;display:inline-flex}.msg-list{margin:8px 0 0;padding:0;list-style:none}.msg-inbox-row,.new-chat-row{align-items:center;gap:12px;display:flex}.msg-inbox-row .msg-row,.new-chat-form{flex:1;min-width:0}.msg-avatar-link{color:inherit;flex:none;text-decoration:none;display:flex}.new-chat-action{width:100%;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0}.msg-row{min-height:64px;color:var(--ink);border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:8px 0;text-decoration:none;display:flex}.msg-avatar{border-radius:50%;flex:none;place-items:center;width:48px;height:48px;font-size:18px;font-style:normal;font-weight:700;display:grid;position:relative;overflow:hidden}.msg-avatar.sm{width:32px;height:32px;font-size:13px}.msg-avatar.club{border-radius:16px}.msg-row-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.msg-row-text strong,.msg-row-text span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.msg-row-text span{color:var(--muted);font-size:14px}.msg-row.unread .msg-row-text span{color:var(--ink);font-weight:600}.msg-row-meta{color:var(--muted);flex-direction:column;flex:none;align-items:flex-end;gap:4px;font-size:12px;display:flex}.msg-dot{background:var(--accent);min-width:20px;height:20px;color:var(--on-accent,#fff);text-align:center;border-radius:999px;padding:0 6px;font-size:12px;font-weight:700;line-height:20px}.msg-empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:8px;padding:48px 16px;display:flex}.msg-empty svg{width:40px;height:40px;color:var(--accent)}.msg-empty h2{color:var(--ink);margin:0;font-size:18px}.msg-empty p{max-width:28ch;margin:0}.chat{z-index:200;background:var(--background);height:100dvh;color:var(--ink);flex-direction:column;display:flex;position:fixed;top:0;left:0;right:0}.chat-head{min-height:56px;padding:calc(env(safe-area-inset-top) + 4px) 8px 4px;border-bottom:1px solid var(--line);background:var(--surface);flex:none;align-items:center;gap:8px;display:flex}.chat-back,.chat-head-action{min-width:44px;min-height:44px;color:var(--ink);font:inherit;background:0 0;border:0;justify-content:center;align-items:center;font-weight:600;text-decoration:none;display:inline-flex}.chat-head-title{min-width:0;color:var(--ink);flex:1;align-items:center;gap:10px;text-decoration:none;display:flex}.chat-head-title strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-head-title small{color:var(--muted);font-weight:400;display:block}.chat-scroll{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex-direction:column;flex:1;gap:4px;min-height:0;padding:12px 16px;display:flex;overflow-y:auto}.chat-more{min-height:44px;color:var(--accent);font:inherit;background:0 0;border:0;align-self:center;padding:0 16px;font-weight:600}.chat-hello{text-align:center;color:var(--muted);margin:auto;padding:24px 0}.bubble-wrap{flex-direction:column;align-self:flex-start;max-width:82%;display:flex}.bubble-wrap.mine{align-self:flex-end;align-items:flex-end}.bubble-name{color:var(--muted);margin:8px 12px 2px;font-size:12px;text-decoration:none}.bubble{background:var(--soft);width:100%;color:var(--ink);font:inherit;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;border:0;border-radius:20px;min-height:44px;padding:10px 14px;font-size:16px;line-height:1.35;display:block}.mine .bubble{background:var(--accent);color:var(--on-accent,#fff);text-align:left}.bubble.removed{border:1px dashed var(--line);color:var(--muted);background:0 0;font-style:italic}.bubble.failed{opacity:.7;outline:2px solid #ff3040}.bubble.sending{opacity:.6}.bubble-meta{color:var(--muted);margin:2px 12px 0;font-size:12px}.bubble-actions{gap:4px;margin:4px 0 8px;display:flex}.bubble-actions button{border:1px solid var(--line);background:var(--surface);min-height:30px;color:var(--ink);font:inherit;border-radius:999px;padding:0 12px;font-size:13px;font-weight:600;position:relative}.bubble-actions button:after{content:"";position:absolute;inset:-7px -4px}.bubble-actions .danger{color:#e0243a}.chat-day{color:var(--muted);align-self:center;margin:12px 0 4px;font-size:12px}.chat-composer{padding:8px 12px calc(env(safe-area-inset-bottom) + 8px);border-top:1px solid var(--line);background:var(--surface);flex:none;align-items:flex-end;gap:8px;display:flex}.chat-composer textarea{border:1px solid var(--line);background:var(--background);min-height:44px;max-height:140px;color:var(--ink);font:inherit;resize:none;border-radius:22px;flex:1;padding:11px 16px;font-size:16px;line-height:1.3}.chat-composer textarea:focus{outline:2px solid var(--accent);outline-offset:0}.chat-send{background:var(--accent);min-width:64px;min-height:44px;color:var(--on-accent,#fff);font:inherit;border:0;border-radius:22px;flex:none;padding:0 16px;font-weight:700}.chat-send:disabled{opacity:.45}.chat-note{padding:12px 16px calc(env(safe-area-inset-bottom) + 12px);border-top:1px solid var(--line);background:var(--surface);color:var(--muted);text-align:center;flex:none;margin:0}.chat-error{background:var(--soft);color:#e0243a;text-align:center;flex:none;margin:0;padding:8px 16px;font-size:14px}.sheet-back{z-index:300;background:#00000073;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{width:100%;max-width:640px;padding:16px 16px calc(env(safe-area-inset-bottom) + 16px);background:var(--surface);color:var(--ink);border-radius:20px 20px 0 0;flex-direction:column;gap:8px;margin:0 auto;display:flex}.sheet h2{margin:0 0 4px;font-size:18px}.sheet-option{align-items:center;gap:12px;min-height:44px;padding:0 4px;display:flex}.sheet-option input{width:22px;height:22px;accent-color:var(--accent)}.sheet-primary{background:var(--accent);min-height:48px;color:var(--on-accent,#fff);font:inherit;border:0;border-radius:14px;font-weight:700}.sheet-primary:disabled{opacity:.5}.sheet-secondary{min-height:44px;color:var(--muted);font:inherit;background:0 0;border:0;font-weight:600}.people-row{border-bottom:1px solid var(--line);align-items:center;gap:12px;min-height:64px;padding:8px 0;display:flex}.people-actions{flex-wrap:wrap;gap:8px;margin-top:6px;display:flex}.people-actions button{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--ink);font:inherit;border-radius:999px;padding:0 14px;font-size:14px;font-weight:600}.people-actions .danger{color:#e0243a}.people-tag{background:var(--soft);color:var(--accent);border-radius:999px;margin-left:6px;padding:1px 8px;font-size:12px;font-weight:600;display:inline-block}.msg-profile-button{justify-content:center;align-items:center;width:100%;min-height:44px;display:inline-flex}.msg-profile-form{display:contents}.chat[data-kb="1"] .chat-composer{padding-bottom:0}.bubble{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}.chat-error{align-items:center;gap:12px;display:flex}.chat-error span{overflow-wrap:anywhere;flex:1;min-width:0}.chat-error button{min-height:44px;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;flex:none;padding:8px;font-weight:600}.chat-image{object-fit:contain;border-radius:12px;width:280px;max-width:100%;max-height:360px;display:block}.chat-attach{background:var(--soft);width:44px;height:44px;color:var(--accent);font:inherit;border:0;border-radius:50%;flex:none;font-size:26px}.chat-image-preview{border-top:1px solid var(--line);background:var(--surface);align-items:center;gap:12px;padding:8px 16px;display:flex}.chat-image-preview img{object-fit:cover;border-radius:8px;width:52px;height:52px}.chat-image-preview span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:13px;overflow:hidden}.chat-image-preview button{min-height:44px;color:var(--accent);font:inherit;background:0 0;border:0;font-size:13px}.chat-image-lightbox{z-index:1000;background:#000e;justify-content:center;align-items:center;padding:60px 16px 20px;display:flex;position:fixed;inset:0}.chat-image-lightbox img{object-fit:contain;max-width:100%;max-height:100%}.chat-image-lightbox button{color:#111;min-height:44px;font:inherit;background:#fff;border:0;border-radius:12px;padding:8px 16px;position:absolute;top:16px;right:16px}.bubble.image-bubble,.mine .bubble.image-bubble{color:var(--ink);box-shadow:none;background:0 0;border-radius:12px;padding:0;overflow:hidden}.bubble.image-bubble .chat-image{object-fit:contain;width:auto;max-width:min(78vw,360px);height:auto;max-height:65vh;margin:0;display:block}.image-bubble:not(:has(img:only-child)){text-align:left}.image-message-more{min-width:44px;min-height:32px;color:var(--muted);font:inherit;background:0 0;border:0;padding:0 8px}.chat-image-lightbox img{touch-action:pinch-zoom;width:auto;height:auto}.chat-image-lightbox button{z-index:2;pointer-events:auto;top:max(16px,env(safe-area-inset-top))}.chat-image-lightbox img{z-index:1;pointer-events:none;max-height:calc(100dvh - 100px);position:relative}.bubble.image-bubble{white-space:normal;flex-direction:column;flex:none;width:auto;min-height:0;line-height:0;display:flex}.bubble.image-bubble .chat-image{object-fit:initial;width:min(70vw,300px);height:auto;max-height:none}.bubble-wrap:has(.image-bubble){flex:none;margin:2px 0}.image-bubble{-webkit-touch-callout:none}.chat-image-caption{white-space:pre-wrap;padding:8px 10px;line-height:1.35}.chat-media{background:var(--soft);border-radius:12px;min-width:180px;min-height:140px;display:block;position:relative;overflow:hidden}.chat-media.is-loaded{background:0 0;min-width:0;min-height:0}.chat-media-status{max-width:260px;min-height:140px;color:var(--muted);text-align:center;justify-content:center;align-items:center;padding:20px;font-size:13px;line-height:1.5;display:flex}.msg-search{border:1px solid var(--line);background:var(--soft);color:var(--muted);border-radius:14px;align-items:center;gap:10px;min-height:48px;margin:0 0 12px;padding:0 12px;display:flex}.msg-search:focus-within{border-color:var(--accent)}.msg-search input{width:100%;min-width:0;font:inherit;color:var(--ink);background:0 0;border:0;outline:0;flex:1;padding:12px 0;font-size:16px}.msg-search input::placeholder{color:var(--muted)}.msg-search input::-webkit-search-cancel-button{display:none}.msg-search button{width:36px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;flex:none;font-size:24px}body .chat:has(.chat-composer textarea:focus) .chat-composer{padding-bottom:0}
