:root{--text:#667085;--text-h:#101828;--bg:#f8fafc;--card-bg:#fff;--border:#e4e7ec;--muted-bg:#f2f4f7;--input-bg:#fff;--accent:#5b5bd6;--accent-bg:#5b5bd624;--shadow:0 20px 60px #0f172a14;--sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;font:16px/145% var(--sans);color:var(--text);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#0f0f0f}*{box-sizing:border-box}body{background:#0f0f0f;min-width:320px;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}h1,h2,p{margin:0}#root{min-height:100svh}.portal-shell{justify-content:center;align-items:center;width:100%;min-height:100svh;padding:24px 16px;display:flex}.portal-card{border:1px solid var(--border);background:var(--card-bg);width:min(100%,390px);box-shadow:var(--shadow);text-align:left;border-radius:28px;padding:28px 22px}.portal-header{margin-bottom:24px}.eyebrow{color:var(--accent);letter-spacing:.08em;text-transform:uppercase;font-size:13px;font-weight:700}.portal-header h1{margin:10px 0 8px}.portal-header p{color:var(--text)}.tabs{background:var(--muted-bg);border-radius:999px;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:22px;padding:4px;display:grid}.tabs button,.primary{font:inherit;cursor:pointer;border:0}.tabs button{color:var(--text);background:0 0;border-radius:999px;padding:10px 12px}.tabs button.active{color:var(--text-h);background:var(--bg);box-shadow:0 6px 18px #00000014}.auth-form{gap:16px;display:grid}.auth-form label{color:var(--text-h);gap:8px;font-size:14px;font-weight:600;display:grid}.auth-form input{width:100%;color:var(--text-h);background:var(--input-bg);border:1px solid var(--border);font:inherit;border-radius:14px;outline:none;padding:13px 14px}.auth-form input:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-bg)}.primary{color:#fff;background:var(--accent);border-radius:16px;margin-top:4px;padding:13px 16px;font-weight:700}.primary:disabled{cursor:not-allowed;opacity:.65}.message{color:var(--text-h);margin-top:16px;font-size:14px}.phone{width:min(100vw,430px);height:100svh;margin:0 auto;overflow:hidden}.wechat-dark{color:#d9d9d9;background:#101010}.list-title{grid-template-columns:58px 1fr 58px;align-items:center;height:58px;padding:0 14px;display:grid}.list-title h1{color:#cfcfcf;text-align:center;margin:0;font-size:16px;font-weight:700}.chat-title{color:#d4d4d4;letter-spacing:-.02em;text-align:center;font-size:16px;font-weight:500;line-height:1}.list-title button{color:#dcdcdc;font:inherit;background:0 0;border:0;font-size:27px}.search{color:#5f5f63;background:#191919;border-radius:4px;justify-content:center;align-items:center;height:32px;margin:0 7px 16px;font-size:17px;display:flex}.windows-line{color:#9a9a9d;background:#202020;border-top:1px solid #222;border-bottom:1px solid #252525;align-items:center;gap:20px;height:45px;padding:0 27px;font-size:14px;display:flex}.chat-list{padding-bottom:74px}.chat-item{width:100%;height:70px;color:inherit;text-align:left;background:#1f1f1f;border:0;border-bottom:1px solid #2b2b2b;grid-template-columns:50px 1fr 52px;align-items:center;gap:13px;padding:7px 14px;display:grid}.chat-item img{object-fit:cover;background:#333;border-radius:5px;width:47px;height:47px}.chat-item h2{color:#e4e4e4;white-space:nowrap;text-overflow:ellipsis;margin:0 0 5px;font-size:17px;font-weight:400;line-height:1.15;overflow:hidden}.chat-item p{color:#777;white-space:nowrap;text-overflow:ellipsis;font-size:14px;overflow:hidden}.chat-item time{color:#555;text-align:right;align-self:start;padding-top:7px;font-size:12px}.bottom-tabs{background:#181818f5;border-top:1px solid #242424;grid-template-columns:repeat(4,1fr);align-items:center;width:min(100vw,430px);height:74px;display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.bottom-tabs span{color:#d5d5d5;justify-items:center;gap:2px;font-size:23px;display:grid}.bottom-tabs small{font-size:11px}.bottom-tabs .active{color:#07c160}.chat-screen{background:#0f0f0f;grid-template-rows:50px minmax(0,1fr) 65px;height:100svh;display:grid}.chat-nav{z-index:5;background:#0f0f0ff5;border-bottom:1px solid #262626;grid-template-columns:52px 1fr 52px;align-items:center;height:50px;display:grid;position:relative}.chat-nav button{background:0 0;border:0;width:52px;height:50px;position:relative}.back-button:before{content:"";border-bottom:2px solid #d9d9d9;border-left:2px solid #d9d9d9;width:11px;height:11px;position:absolute;top:20px;left:20px;transform:rotate(45deg)}.more-button{justify-content:center;align-items:center;gap:4px;display:flex}.more-button span{background:#d6d6d6;border-radius:50%;width:3px;height:3px}.menu-wrap{width:52px;height:50px;position:relative}.chat-menu{z-index:10;background:#252525;border:1px solid #333;border-radius:8px;min-width:104px;padding:6px;position:absolute;top:46px;right:8px;box-shadow:0 10px 24px #00000059}.chat-menu button{color:#e8e8e8;background:0 0;border:0;border-radius:6px;width:100%;height:34px;font-size:14px}.chat-menu button:hover{background:#303030}.messages{min-height:0;padding:9px 11px 20px;overflow-y:auto}.time-pill{color:#707070;text-align:center;margin:18px 0;font-size:14px}.message-row{align-items:flex-start;gap:11px;margin:13px 0;display:flex}.message-row.mine{justify-content:flex-end}.message-row.theirs{justify-content:flex-start}.avatar{object-fit:cover;background:#333;border-radius:4px;flex:0 0 34px;width:34px;height:34px}.bubble{color:#e9e9e9;text-align:left;background:#2d2d2f;border-radius:4px;max-width:254px;min-height:34px;padding:7px 12px;font-size:15px;font-weight:400;line-height:1.35;display:inline-block;position:relative}.bubble-text{white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;line-break:anywhere;display:inline}.mine .bubble{color:#111;background:#20bf64}.theirs .bubble:before,.mine .bubble:after{content:"";border:4px solid #0000;position:absolute;top:13px}.theirs .bubble:before{border-right-color:#2d2d2f;left:-8px}.mine .bubble:after{border-left-color:#20bf64;right:-8px}.bubble.image{background:0 0;width:fit-content;min-height:0;padding:0;display:block}.bubble.image:before,.bubble.image:after{display:none}.bubble.image img{object-fit:cover;background:#1f1f1f;border-radius:4px;min-width:96px;max-width:158px;min-height:64px;max-height:230px;display:block}.image-link{color:#d7d7d7;background:#1f1f1f;border-radius:4px;justify-content:center;align-items:center;min-width:96px;min-height:64px;padding:9px 13px;font-size:13px;text-decoration:none;display:inline-flex}.message-stack{flex-direction:column;align-items:flex-start;gap:3px;display:flex;transform:translateY(-3px)}.mine .message-stack{align-items:flex-end;transform:none}.member-name{color:#777;font-size:12px;line-height:1}.sender-strip{gap:8px;padding-bottom:4px;display:flex;overflow-x:auto}.sender-strip button{color:#aaa;background:0 0;border:1px solid #0000;border-radius:8px;justify-items:center;gap:4px;min-width:58px;font-size:12px;display:grid}.sender-strip button.active{color:#07c160;border-color:#07c160}.sender-strip img{object-fit:cover;border-radius:4px;width:34px;height:34px}.member-editor{gap:10px;display:grid}.member-row{grid-template-columns:1fr 1fr 42px;gap:8px;display:grid}.member-row button,.member-editor>button{color:#f2f2f2;font:inherit;background:#333;border:0;border-radius:10px}.compact-tabs{margin-bottom:0}.chat-actions{z-index:5;background:#1e1e1ef5;border-top:1px solid #2b2b2b;align-items:center;gap:9px;height:65px;padding:9px 11px;display:flex;position:relative}.chat-actions button{color:#e8e8e8;height:40px;font:inherit;background:#2c2c2c;border:1px solid #3a3a3a;border-radius:7px;flex:1;font-size:14px}.message-row.selecting{cursor:pointer}.check{border:2px solid #666;border-radius:50%;width:18px;height:18px;margin-top:11px}.check.checked{background:#07c160;border-color:#07c160}.modal-backdrop{z-index:10;background:#0000008f;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.modal{background:#202020;border-radius:22px 22px 0 0;gap:12px;width:min(100vw,430px);padding:20px;display:grid}.modal h2{color:#f1f1f1;margin:0 0 4px;font-size:18px}.modal input,.modal textarea,.modal select{color:#f2f2f2;width:100%;font:inherit;background:#111;border:1px solid #333;border-radius:10px;padding:12px}.modal textarea{resize:vertical;min-height:100px}.modal-buttons{grid-template-columns:1fr 1fr;gap:10px;display:grid}.modal-buttons button{color:#fff;height:42px;font:inherit;background:#3a3a3a;border:0;border-radius:10px}.modal-buttons button:last-child{background:#07c160}
