*{box-sizing:border-box} :root{--bg:#f4f6fb;--panel:#fff;--panel2:#f8f9fc;--text:#172033;--muted:#8992a5;--line:#e9ecf3;--accent:#5267e8;--accent2:#7889ff;--soft:#eef0ff;--green:#21b982;--shadow:0 14px 45px rgba(31,43,82,.08)}body.dark{--bg:#0b1020;--panel:#11182a;--panel2:#151e32;--text:#edf1ff;--muted:#929db5;--line:#263149;--accent:#8493ff;--accent2:#a1adff;--soft:#222b4a;--shadow:0 14px 45px rgba(0,0,0,.22)}html,body{height:100%;margin:0}body{font-family:"DM Sans",sans-serif;background:var(--bg);color:var(--text);overflow:hidden}.app-shell{height:100%;display:flex;padding:14px;gap:14px}.sidebar{width:258px;flex:none;background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:22px 15px 14px;display:flex;flex-direction:column;box-shadow:var(--shadow)}.brand{display:flex;align-items:center;gap:11px;padding:2px 8px 28px}.brand-mark{width:42px;height:42px;border-radius:14px;background:linear-gradient(140deg,#5267e8,#8b79ee);display:grid;place-items:center;color:white;font:800 20px Manrope;box-shadow:0 7px 17px #6474e83d;transform:rotate(-3deg)}.brand-mark span{transform:rotate(3deg)}.brand-name{font:800 16px Manrope;letter-spacing:-.5px}.brand-name b{color:var(--accent)}.brand-sub{font-size:10px;color:var(--muted);margin-top:3px}.side-section{margin-bottom:25px}.section-label{font-size:9px;font-weight:800;letter-spacing:1.25px;color:var(--muted)}.nav-item{width:100%;height:42px;border:0;background:none;color:var(--muted);display:flex;align-items:center;gap:12px;padding:0 12px;border-radius:11px;text-align:left;font:600 12px "DM Sans";cursor:pointer;margin-top:8px}.nav-item.active{background:var(--soft);color:var(--accent)}.nav-icon{font-size:17px}.nav-count{margin-left:auto;background:var(--accent);color:#fff;border-radius:20px;padding:3px 7px;font-size:10px}.section-heading{display:flex;align-items:center;justify-content:space-between;padding:0 8px 10px}.icon-button{width:34px;height:34px;border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:10px;cursor:pointer;font-size:17px}.channel-link{display:flex;align-items:center;gap:10px;width:100%;height:39px;padding:0 12px;border:0;background:transparent;color:var(--muted);font:600 12px "DM Sans";border-radius:10px;cursor:pointer;text-align:left}.channel-link.selected{background:var(--panel2);color:var(--text)}.channel-link .hash{font:700 17px Manrope;color:var(--accent)}.channel-link i{margin-left:auto;width:6px;height:6px;border-radius:50%;background:var(--green);opacity:0}.channel-link.selected i{opacity:1}.sidebar-bottom{margin-top:auto}.network-card{display:flex;align-items:center;gap:10px;padding:12px 10px;background:var(--panel2);border-radius:12px;margin-bottom:12px}.network-dot,.secure-dot,.status-dot{width:7px;height:7px;border-radius:50%;background:var(--green);display:inline-block;box-shadow:0 0 0 4px #21b98219}.network-card b,.network-card small{display:block}.network-card b{font-size:10px}.network-card small{font-size:9px;color:var(--muted);margin-top:4px}.profile-button{width:100%;display:flex;align-items:center;gap:10px;background:none;border:0;padding:9px 5px;color:var(--text);text-align:left;cursor:pointer}.avatar{width:34px;height:34px;border-radius:12px;background:#e9eaff;color:#5267e8;display:grid;place-items:center;font-weight:800;font-size:13px}.profile-meta{flex:1}.profile-meta b,.profile-meta small{display:block}.profile-meta b{font-size:11px}.profile-meta small{font-size:9px;color:var(--muted);margin-top:3px}.more{color:var(--muted);letter-spacing:2px}.main-panel{flex:1;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden}.topbar{height:66px;flex:none;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 26px}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:12px}.breadcrumb b{font-weight:700}.muted,.crumb-sep{color:var(--muted)}.top-actions{display:flex;align-items:center;gap:15px}.secure-label{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:8px}.secure-dot{width:6px;height:6px}.chat-layout{display:flex;flex:1;min-height:0}.chat-column{flex:1;min-width:0;display:flex;flex-direction:column}.channel-intro{display:flex;align-items:center;gap:14px;padding:23px 27px 19px;border-bottom:1px solid var(--line)}.channel-symbol{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:var(--soft);color:var(--accent);font:800 25px Manrope}.intro-copy{flex:1}.intro-copy h1{font:800 17px Manrope;margin:0 0 4px;letter-spacing:-.5px}.intro-copy p{font-size:10px;color:var(--muted);margin:0}.intro-actions{display:flex;align-items:center;gap:12px}.live-pill{display:flex;align-items:center;gap:6px;font-size:9px;color:var(--green);font-weight:700}.live-pill i{width:6px;height:6px;border-radius:50%;background:var(--green)}.soft-button{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:8px;padding:8px 10px;font:600 9px "DM Sans";cursor:pointer}.message-area{flex:1;overflow-y:auto;padding:23px 28px}.welcome-card{display:flex;align-items:center;gap:13px;background:var(--panel2);border:1px solid var(--line);padding:14px;border-radius:13px;max-width:510px;margin:0 auto 20px}.welcome-icon{width:33px;height:33px;display:grid;place-items:center;background:var(--soft);color:var(--accent);border-radius:10px}.welcome-card b{font-size:11px}.welcome-card p{font-size:10px;color:var(--muted);margin:4px 0 0}.message{display:flex;gap:11px;margin:17px 0;max-width:850px}.message-avatar{width:31px;height:31px;border-radius:11px;background:var(--soft);color:var(--accent);display:grid;place-items:center;font-size:11px;font-weight:800;flex:none}.message-content{min-width:0}.message-meta{display:flex;align-items:center;gap:9px;margin:1px 0 5px}.message-meta b{font-size:11px}.message-meta time{font-size:9px;color:var(--muted)}.message-text{font-size:12px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.notice-message{padding:7px 11px;border-radius:8px;background:var(--panel2);color:var(--muted);font-size:10px;margin:8px auto;text-align:center;max-width:90%}.typing-line{height:24px;padding:3px 28px;color:var(--muted);font-size:9px}.typing-line .status-dot{width:5px;height:5px;margin-right:7px}.composer{margin:0 26px;border:1px solid var(--line);background:var(--panel2);height:52px;border-radius:13px;display:flex;align-items:center;padding:0 8px;gap:8px}.composer input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font:12px "DM Sans"}.composer input::placeholder{color:var(--muted)}.composer-tool{border:0;background:none;color:var(--muted);font-size:19px;cursor:pointer;width:28px;height:30px}.send-button{border:0;background:var(--accent);color:#fff;border-radius:9px;padding:9px 13px;font:700 10px "DM Sans";display:flex;align-items:center;gap:10px;cursor:pointer}.send-button b{font-size:14px}.send-button:disabled{opacity:.4;cursor:not-allowed}.composer-foot{display:flex;justify-content:space-between;padding:8px 28px 13px;color:var(--muted);font-size:8px}.members-panel{width:235px;flex:none;border-left:1px solid var(--line);padding:22px 15px 14px;display:flex;flex-direction:column;min-height:0}.members-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;padding:0 3px 15px}.members-heading span{background:var(--soft);color:var(--accent);border-radius:20px;padding:3px 7px;font-size:9px}.member-search{height:34px;border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;padding:0 9px;gap:7px;color:var(--muted)}.member-search input{border:0;outline:0;background:transparent;color:var(--text);width:100%;font:10px "DM Sans"}.role-label{font-size:8px;font-weight:800;letter-spacing:1px;color:var(--muted);padding:21px 4px 9px}.member-list{overflow:auto;flex:1}.member-row{display:flex;align-items:center;gap:9px;padding:7px 4px;border-radius:8px}.member-avatar{width:27px;height:27px;border-radius:9px;background:var(--panel2);display:grid;place-items:center;color:var(--accent);font-size:9px;font-weight:800}.member-name{font-size:10px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-role{font-size:8px;color:var(--muted)}.empty-members{font-size:10px;color:var(--muted);padding:12px 4px}.members-footer{font-size:8px;color:var(--muted);padding:12px 2px 2px;border-top:1px solid var(--line)}.members-footer .status-dot{width:5px;height:5px;margin-right:6px}.mobile-brand,.mobile-only{display:none}.modal-backdrop{position:fixed;inset:0;background:rgba(9,14,29,.58);backdrop-filter:blur(7px);display:none;align-items:center;justify-content:center;padding:16px;z-index:10}.modal-backdrop.show{display:flex}.auth-card{width:min(100%,410px);background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:30px;position:relative;box-shadow:0 25px 80px #080d1e55}.modal-close{position:absolute;right:17px;top:14px;border:0;background:none;color:var(--muted);font-size:24px;cursor:pointer}.auth-brand{display:flex;align-items:center;gap:13px;margin-bottom:23px}.auth-brand h2{font:800 19px Manrope;margin:0 0 4px}.auth-brand p{font-size:10px;color:var(--muted);margin:0}.auth-tabs{display:flex;background:var(--panel2);padding:4px;border-radius:10px;margin-bottom:20px}.auth-tab{flex:1;border:0;background:transparent;color:var(--muted);padding:9px;border-radius:8px;font:700 10px "DM Sans";cursor:pointer}.auth-tab.active{background:var(--panel);color:var(--accent);box-shadow:0 2px 8px #17203a10}.field{margin:13px 0}.field label{display:flex;justify-content:space-between;font-size:10px;font-weight:700;margin-bottom:7px}.field label span{color:var(--muted);font-weight:400}.field input{width:100%;height:42px;border:1px solid var(--line);border-radius:9px;padding:0 12px;background:var(--panel2);color:var(--text);outline:none;font:11px "DM Sans"}.field input:focus{border-color:var(--accent)}.auth-choice{display:flex;gap:15px;flex-wrap:wrap;margin:15px 0;color:var(--muted);font-size:9px}.auth-choice label{display:flex;align-items:center;gap:5px}.auth-choice input{accent-color:var(--accent)}.primary-button{width:100%;height:44px;border:0;border-radius:10px;background:linear-gradient(110deg,#5267e8,#7b75ed);color:#fff;font:700 11px "DM Sans";cursor:pointer;margin-top:8px;box-shadow:0 8px 20px #5267e833}.primary-button span{float:right;font-size:17px;margin-top:-3px}.auth-note{font-size:9px;line-height:1.5;color:var(--muted);margin:12px 2px 0}.auth-bottom{border-top:1px solid var(--line);padding-top:15px;margin-top:20px;text-align:center;font-size:8px;color:var(--muted)}.auth-error{font-size:10px;color:#e15c68;min-height:15px;margin-top:10px}.confirm-icon{font-size:35px;color:var(--accent);margin:5px 0 10px}.confirm-pane h3{margin:0}.toast-region{position:fixed;right:20px;bottom:20px;z-index:20;display:grid;gap:8px}.toast{background:var(--text);color:var(--panel);padding:12px 16px;border-radius:10px;font-size:11px;box-shadow:var(--shadow);max-width:330px}.toast.error{background:#a92e43;color:white}body.dark .avatar{background:#272f52;color:#aab4ff}@media(max-width:900px){.app-shell{padding:0;gap:0}.sidebar{width:220px;border-radius:0 18px 18px 0}.main-panel{border-radius:0;border:0}.members-panel{width:190px}}@media(max-width:680px){body{overflow:hidden}.app-shell{padding:0}.sidebar{display:none;position:fixed;z-index:5;inset:0 auto 0 0;width:270px;border-radius:0 18px 18px 0;box-shadow:0 0 0 999px #07102266}.sidebar.open{display:flex}.main-panel{border-radius:0}.topbar{height:58px;padding:0 14px}.mobile-brand{display:flex;align-items:center;gap:8px;font:800 13px Manrope}.brand-mark.small{width:29px;height:29px;border-radius:9px;font-size:14px}.breadcrumb{display:none}.top-actions{gap:8px}.secure-label{font-size:0}.secure-dot{width:7px;height:7px}.mobile-only{display:block}.chat-layout{position:relative}.chat-column{width:100%}.members-panel{display:none;position:absolute;right:0;top:0;bottom:0;width:235px;background:var(--panel);z-index:3;box-shadow:-12px 0 35px #0001}.members-panel.open{display:flex}.channel-intro{padding:16px 15px;gap:10px}.channel-symbol{width:36px;height:36px}.intro-copy h1{font-size:14px}.intro-copy p{font-size:9px}.intro-actions{gap:7px}.soft-button{font-size:8px;padding:7px}.live-pill{font-size:8px}.message-area{padding:16px 14px}.composer{margin:0 10px;height:49px}.composer-foot{padding:7px 13px 10px}.composer-foot span:last-child{display:none}.typing-line{padding:3px 14px}.auth-card{padding:25px 21px}.toast-region{right:10px;bottom:10px;left:10px}.toast{max-width:none}}