: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-screen{grid-template-rows:58px minmax(0,1fr) 74px;height:100svh;display:grid}.list-body{min-height:0;overflow-y:auto}.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}.add-chat-button{justify-self:end;place-items:center;display:grid}.add-chat-button img{filter:invert(88%);width:25px;height:25px}.search-box{color:#7b7b80;background:#191919;border-radius:4px;align-items:center;gap:8px;height:32px;margin:0 7px 16px;padding:0 10px;font-size:17px;display:flex}.search-box input{color:#d8d8d8;min-width:0;font:inherit;background:0 0;border:0;outline:0;flex:1}.search-box button{color:#171717;background:#777;border:0;border-radius:50%;width:20px;height:20px;font-size:16px;line-height:18px}.search-results{padding:0 16px 20px}.search-results h2{color:#8d8d91;border-bottom:1px solid #2b2b2b;margin:0 0 10px;padding-bottom:10px;font-size:17px;font-weight:400}.search-result>button{width:100%;color:inherit;text-align:left;background:0 0;border:0;border-bottom:1px solid #2b2b2b;grid-template-columns:50px minmax(0,1fr) minmax(96px,max-content);gap:12px;padding:12px 0;display:grid}.search-result-title{color:#dedede;margin-bottom:5px;font-size:17px}.search-result p,.search-match-list span{color:#8b8b8f;font-size:15px;line-height:1.35}.search-result span{color:#666;font-size:14px}.search-result b,.search-results mark{color:#18c86b;background:0 0;font-weight:400}.search-result time,.search-match-list time{color:#999;text-align:right;white-space:nowrap;justify-self:end;font-size:13px}.search-match-list{border-bottom:1px solid #2b2b2b;margin-left:62px}.search-match-list button{width:100%;color:inherit;text-align:left;background:0 0;border:0;grid-template-columns:minmax(0,1fr) minmax(96px,max-content);gap:10px;padding:9px 0;display:grid}.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:0}.chat-item{width:100%;height:70px;color:inherit;text-align:left;background:#1f1f1f;border:0;border-bottom:1px solid #2b2b2b;grid-template-columns:50px minmax(0,1fr) 88px;align-items:center;gap:13px;padding:7px 14px;display:grid}.avatar-wrap{width:47px;height:47px;position:relative}.unread-dot,.unread-badge{background:#fa5151;position:absolute;top:-4px;right:-4px}.unread-dot{border-radius:50%;width:10px;height:10px}.unread-badge{color:#fff;text-align:center;border-radius:999px;min-width:18px;height:18px;padding:0 6px;font-size:12px;font-weight:600;line-height:18px;top:-8px;right:-12px}.direct-avatar,.group-avatar{background:#d8d8d8;border-radius:5px;width:47px;height:47px}.direct-avatar{object-fit:cover}.group-avatar{flex-direction:column;justify-content:center;gap:1px;padding:2px;display:flex;overflow:hidden}.group-avatar-row{justify-content:center;gap:1px;display:flex}.group-avatar-tile{object-fit:cover;background:#aaa;border-radius:1px;flex:0 0 13.67px;width:13.67px;height:13.67px}.group-avatar.count-1 .group-avatar-tile{flex-basis:43px;width:43px;height:43px}.group-avatar.count-2 .group-avatar-tile,.group-avatar.count-3 .group-avatar-tile,.group-avatar.count-4 .group-avatar-tile{flex-basis:21px;width:21px;height:21px}.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;white-space:nowrap;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;height:74px;display:grid}.bottom-tabs span,.bottom-tabs button{color:#d5d5d5;font:inherit;background:0 0;border:0;justify-items:center;gap:4px;display:grid}.bottom-tabs img{filter:invert(88%);width:25px;height:25px}.bottom-tabs small{font-size:11px}.bottom-tabs .active{color:#07c160}.bottom-tabs .active img{filter:brightness(0)saturate()invert(48%)sepia(98%)saturate(1433%)hue-rotate(106deg)brightness(94%)contrast(94%)}.settings-screen{background:#111;min-height:100svh}.settings-nav{color:#d6d6d6;text-align:center;background:#101010;border-bottom:1px solid #292929;grid-template-columns:52px 1fr 52px;align-items:center;height:50px;font-size:18px;font-weight:600;display:grid}.settings-nav button{background:0 0;border:0;width:52px;height:50px;position:relative}.settings-body{background:#171717;min-height:calc(100svh - 50px);padding-top:28px}.settings-button,.logout-button{color:#ddd;text-align:center;background:#191919;border:1px solid #282828;border-left:0;border-right:0;width:100%;height:58px;padding:0 18px;font-size:17px}.logout-button{color:#fa5151}.admin-users{background:#111;min-height:calc(100svh - 50px);padding:12px;overflow-y:auto}.admin-user-card{background:#191919;border:1px solid #2a2a2a;border-radius:8px;gap:8px;margin-bottom:12px;padding:12px;display:grid}.admin-user-card div{color:#aaa;grid-template-columns:72px minmax(0,1fr);gap:8px;font-size:12px;display:grid}.admin-user-card span{overflow-wrap:anywhere;color:#ddd}.admin-user-card button{color:#fff;height:36px;font:inherit;background:#fa5151;border:0;border-radius:6px}.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}.chat-menu button.danger{color:#fa5151;border-top:1px solid #333;margin-top:4px}.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}
