@font-face{font-family:Vazirmatn;src:url('/fonts/Vazirmatn.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--bg:#f5f7fa;--surface:#fff;--surface-soft:#f6f8fb;--text:#1b2b43;--muted:#78859a;--border:#e9edf3;--green:#087f8c;--green-dark:#056471;--green-soft:#e9f6f5;--mint:#e7f5f2;--warm:#f9f4e9;--red:#cf5361;--shadow:0 16px 60px #1c345a08;--ease:cubic-bezier(.22,.7,.25,1);color-scheme:light}
:root[data-theme=dark]{--bg:#111925;--surface:#192332;--surface-soft:#202c3c;--text:#e9f0fa;--muted:#9aaabe;--border:#2c384a;--green:#72dacf;--green-dark:#0b6670;--green-soft:#173e43;--mint:#173e43;--warm:#373323;--red:#f1909a;--shadow:0 16px 60px #0002;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;height:100%;width:100%}body{font:14px/1.8 Vazirmatn,Tahoma,sans-serif;background:var(--bg);color:var(--text)}#app{min-height:100%;width:100%}button,input,textarea,select{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{border:0;background:none;cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-weight:650}input,textarea,select{min-width:0}textarea{resize:vertical}button,a,input,textarea,select{transition:background-color 150ms var(--ease),border-color 150ms var(--ease),box-shadow 150ms var(--ease),color 150ms var(--ease),transform 130ms var(--ease)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #2ab9b7;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:0;border-color:#4cafb5!important;box-shadow:0 0 0 4px #087f8c0b}::selection{background:#c1eae7;color:#184855}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:#cdd6e0;border-radius:10px}.hidden{display:none!important}.busy{opacity:.6;pointer-events:none}.icon{display:inline-block;vertical-align:middle;flex-shrink:0}.icon-btn{width:38px;height:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted)}.icon-btn:hover{background:var(--surface-soft);color:var(--green)}.icon-btn .icon{width:20px;height:20px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;min-height:44px;padding:10px 18px;font-size:13px;font-weight:550;white-space:nowrap;border:1px solid transparent}.btn .icon{width:18px;height:18px}.btn:active,.send-button:active{transform:scale(.97)}.primary{background:#087f8c;color:#fff;box-shadow:0 4px 12px #087f8c12}.primary:hover{background:#056b78;box-shadow:0 5px 15px #087f8c20}.secondary{background:var(--surface);border-color:var(--border)}.secondary:hover{border-color:#b7ced6;background:var(--surface-soft)}.full{width:100%}.large{height:50px}.danger-outline{border-color:#cf536128;color:var(--red)}.danger-outline:hover{background:#cf536108}.danger-solid{background:#c9505d;color:#fff}.danger{color:var(--red)!important}.text-btn{font-size:12px;font-weight:550;color:var(--green);padding:5px 0;white-space:nowrap}.text-btn:hover{text-decoration:underline}.muted,.subtle{color:var(--muted)}.subtle{font-size:13px;line-height:2.2}.eyebrow{font-size:11px;display:flex;align-items:center;gap:8px}.small-dot{width:6px;height:6px;background:#21b09b;display:inline-block;flex-shrink:0;border-radius:50%}.small-dot.offline{background:#d29b4c}.tag{font-size:10px;font-weight:550;padding:3px 8px;display:inline-flex;align-items:center;border-radius:7px;background:var(--green-soft);color:var(--green);white-space:nowrap}
.brand-image{display:inline-flex;position:relative;flex-shrink:0}.brand-image img{display:block;width:100%;height:100%;object-fit:contain}.brand-image.compact{width:42px;height:42px;overflow:hidden;border-radius:50%}.brand-image.compact img{position:absolute;width:79px;height:79px;max-width:none;left:-19px;top:-14px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:45px;height:45px;border-radius:16px;flex-shrink:0;font-size:15px;font-weight:600;letter-spacing:1px}.avatar.sm{width:38px;height:38px;border-radius:13px;font-size:12px}.avatar.xs{width:28px;height:28px;border-radius:10px;font-size:10px}.avatar.lg{width:76px;height:76px;border-radius:25px;font-size:24px}.color-0{background:#f4ebdb;color:#aa8651}.color-1{background:#dff2ec;color:#4b957e}.color-2{background:#eae6f7;color:#8a79b2}.color-3{background:#e1ecf7;color:#688fb6}.color-4{background:#f8e6e9;color:#b97e87}.avatar-wrap{position:relative}.online-dot{position:absolute;bottom:-1px;left:0;width:12px;height:12px;background:#21b09b;border:3px solid var(--surface);border-radius:50%}.empty-state{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:240px;padding:45px 24px;text-align:center;gap:10px}.empty-icon{width:60px;height:60px;border-radius:21px;display:grid;place-items:center;background:var(--green-soft);color:var(--green);margin-bottom:10px}.empty-icon .icon{width:25px;height:25px}.empty-state h3{font-size:16px}.empty-state p{font-size:12px;line-height:2;color:var(--muted);max-width:340px}.empty-state>.btn{margin-top:14px}.loading{display:flex;align-items:center;justify-content:center;gap:12px;padding:50px;color:var(--muted);font-size:12px}.loading>span{width:18px;height:18px;border:2px solid var(--border);border-top-color:var(--green);border-radius:50%;animation:spin 700ms linear infinite}.boot{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px}.boot-logo{width:110px;height:110px;object-fit:contain}.boot p{font-size:12px;color:var(--muted)}
/* Account access */
.auth-layout{max-width:1180px;min-height:760px;width:calc(100% - 72px);margin:clamp(24px,6vh,72px) auto;display:grid;grid-template-columns:1fr 1fr;direction:rtl;background:var(--surface);border:1px solid var(--border);border-radius:28px;overflow:hidden;box-shadow:0 25px 90px #17365509;animation:pageEnter 200ms var(--ease) both}.auth-form-side{padding:36px 50px 28px;display:flex;flex-direction:column;min-width:0}.auth-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.auth-brand{display:flex;align-items:center;gap:12px}.auth-brand>span:last-child{display:flex;flex-direction:column}.auth-brand b{font-size:21px;line-height:1.8;letter-spacing:-.8px}.auth-brand small{font-family:'Segoe UI',sans-serif;font-size:9px;letter-spacing:2.5px;color:var(--muted)}.theme-switch{border:1px solid var(--border);border-radius:50%;width:36px;height:36px}.theme-switch .icon{height:17px;width:17px}.auth-card{width:100%;max-width:360px;margin:auto;padding:48px 0}.auth-eyebrow{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);margin-bottom:14px}.auth-eyebrow>span{width:6px;height:6px;border-radius:50%;background:#20b8a8}.auth-card h2{font-size:34px;letter-spacing:-1.4px;line-height:1.65;font-weight:700}.auth-description{font-size:13px;color:var(--muted);line-height:2.2;margin:10px 0 30px}.field{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:500;margin-bottom:21px}.field>input,.field>textarea,.field>select{width:100%;padding:13px 15px;border:1px solid var(--border);background:var(--surface-soft);border-radius:12px;min-height:48px;font-size:13px;font-weight:400}.field input::placeholder,.field textarea::placeholder{color:#9da8b7;font-size:12px}.field input[dir=ltr]::placeholder{direction:rtl;text-align:right}.password-input{display:flex;align-items:center;border:1px solid var(--border);background:var(--surface-soft);border-radius:12px;padding:4px}.password-input:focus-within{border-color:#4cafb5;box-shadow:0 0 0 4px #087f8c0b}.password-input input{border:0;padding:8px 10px;min-height:38px;width:100%;background:none;outline:none!important;box-shadow:none!important}.password-input .icon-btn{width:33px;height:33px}.password-input .icon{width:17px;height:17px}.field-hint{font-size:11px;line-height:2;color:var(--muted);margin:-8px 0 22px}.auth-submit{height:50px;margin-top:6px;justify-content:space-between;padding:12px 17px;font-size:14px}.auth-note{margin-top:27px;display:flex;align-items:flex-start;gap:10px;padding-top:22px;border-top:1px solid var(--border);font-size:11px;line-height:2.2;color:var(--muted)}.auth-note>.icon{color:var(--green);height:17px;width:17px;margin-top:3px}.auth-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:9px;color:var(--muted)}.auth-bottom>span:first-child{display:flex;align-items:center;gap:7px}.auth-bottom .icon{width:13px;height:13px}.auth-bottom>span:last-child{letter-spacing:2px;font-family:'Segoe UI',sans-serif}.invitation-context{display:flex;align-items:center;gap:9px;background:var(--green-soft);border-radius:11px;padding:12px;margin:-8px 0 24px;font-size:12px;color:var(--green)}.invitation-context>.tag{margin-inline-start:auto}.auth-story{margin:12px;border-radius:20px;padding:34px 38px;color:#e6f2f6;background:#153b50;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-story:after{content:'';position:absolute;width:400px;height:400px;border:1px solid #ffffff07;border-radius:50%;left:-230px;top:-190px;pointer-events:none}.story-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.story-top>.story-mark{padding:7px;border-radius:17px;border:1px solid #ffffff15;background:#ffffff06}.story-mark .compact{width:37px;height:37px}.story-mark .compact img{left:-21px;top:-15px}.story-edition{color:#89a9bc;font-size:8px;letter-spacing:2px;font-family:'Segoe UI',sans-serif}.story-content{margin:auto 0;padding:48px 0 20px}.story-kicker{font-size:11px;color:#9bb9c6;display:block;margin-bottom:19px}.story-content h1{font-size:clamp(30px,3vw,43px);line-height:1.8;letter-spacing:-1.6px;font-weight:600}.story-content em{font-style:normal;color:#8ce0d4}.story-content>p{font-size:12px;line-height:2.4;color:#a2bdca;max-width:330px;margin-top:20px}.signal-art{position:relative;height:190px;display:grid;place-items:center;margin:30px -4px 13px;isolation:isolate}.signal-art svg{width:100%;position:absolute;inset:0;height:100%;z-index:-1}.signal-art svg path{stroke:#77c7c5;stroke-width:1.3;stroke-linejoin:round;stroke-linecap:round;opacity:.24}.signal-core{width:82px;height:82px;border-radius:25px;background:#204e63;display:grid;place-items:center;box-shadow:0 0 0 10px #ffffff02,0 12px 30px #06243840;border:1px solid #8bc8cc25;transform:rotate(-7deg)}.signal-core .compact{transform:rotate(7deg) scale(1.15)}.signal-ring{position:absolute;border:1px solid #8bc8cc17;border-radius:50%;width:150px;height:150px;z-index:-1}.ring-b{width:210px;height:210px;border-style:dashed;opacity:.5}.signal-node{position:absolute;width:7px;height:7px;border-radius:50%;background:#96d8ce}.node-a{left:23%;top:34%}.node-b{right:19%;bottom:28%;width:5px;height:5px;background:#e4ca93}.story-points{display:flex;flex-wrap:wrap;gap:13px 19px;font-size:10px;color:#a7c7d1;margin-top:28px}.story-points>span{display:flex;align-items:center;gap:6px}.story-points .icon{width:14px;height:14px}.story-bottom{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#87a8b9;gap:10px;border-top:1px solid #ffffff10;padding-top:22px}.story-number{font-family:'Segoe UI',sans-serif;font-size:8px;letter-spacing:2px}.form-error{color:var(--red);font-size:12px;background:#cf536108;border:1px solid #cf536120;border-radius:10px;padding:11px 13px;line-height:2;margin:10px 0 16px}.form-error:empty{display:none}
/* Workspace and navigation */
.app-shell{width:calc(100% - 48px);max-width:1800px;height:calc(100dvh - 48px);min-height:480px;margin:24px auto;display:grid;grid-template-columns:226px minmax(0,1fr);overflow:hidden;border:1px solid var(--border);border-radius:24px;background:var(--surface);box-shadow:var(--shadow)}.rail{display:flex;flex-direction:column;background:var(--surface);border-inline-end:1px solid var(--border);padding:30px 17px 18px;min-height:0;overflow:auto}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 6px}.sidebar-brand>span:last-child{display:flex;flex-direction:column}.sidebar-brand b{font-size:23px;letter-spacing:-.8px}.sidebar-brand small{font-family:'Segoe UI',sans-serif;font-size:7px;letter-spacing:1.7px;color:var(--muted);line-height:2}.sidebar-section{font-size:10px;color:#9aa5b5;padding:35px 14px 12px}.rail-nav{display:flex;flex-direction:column;gap:7px}.rail-btn{display:flex;align-items:center;gap:13px;padding:13px 15px;width:100%;min-height:48px;border-radius:12px;color:var(--muted);position:relative;text-align:start}.rail-btn .icon{width:21px;height:21px;stroke-width:1.65}.rail-btn>span{font-size:12px;font-weight:500}.rail-btn:hover{background:var(--surface-soft);color:var(--text)}.rail-btn.active{background:var(--green-soft);color:var(--green)}.rail-btn.active>span{font-weight:650}.nav-dot{margin-inline-start:auto;width:6px;height:6px;background:#26b4a6;border-radius:50%}.sidebar-invite{background:var(--surface-soft);border:1px solid var(--border);border-radius:15px;padding:17px;margin:28px 3px 20px}.sidebar-invite-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:var(--surface);border:1px solid var(--border);color:var(--green);margin-bottom:13px}.sidebar-invite-icon .icon{width:15px;height:15px}.sidebar-invite>b{font-size:12px;display:block}.sidebar-invite>p{font-size:10px;line-height:2.1;color:var(--muted);margin:6px 0 16px}.sidebar-invite .btn{font-size:10px;min-height:36px;padding:7px;gap:6px;background:var(--surface)}.sidebar-invite .btn .icon{height:14px;width:14px}.rail-bottom{margin-top:auto;display:flex;align-items:center;gap:7px;border-top:1px solid var(--border);padding:19px 2px 0}.sidebar-account{display:flex;align-items:center;gap:10px;min-width:0;flex:1;text-align:start;padding:0}.sidebar-account>span:not(.avatar){display:flex;flex-direction:column;gap:3px;min-width:0}.sidebar-account b{font-size:10px;font-weight:600;max-width:100px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-account small{font-size:9px;color:var(--muted)}.sidebar-account>.icon{display:none}.rail-bottom>.theme-switch{width:30px;height:30px;flex-shrink:0}.rail-bottom>.theme-switch>.icon{width:14px;height:14px}.workspace{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:18px 30px;border-bottom:1px solid var(--border);gap:20px;flex-shrink:0;background:var(--surface)}.workspace-label{display:flex;align-items:center;gap:10px;min-width:0}.workspace-label>.brand-image{display:none}.workspace-label h1{font-size:17px;letter-spacing:-.4px}.workspace-label>div>span{font-size:10px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:18px}.today{font-size:10px;color:var(--muted)}.connection{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--green);white-space:nowrap}.connection .small-dot{width:5px;height:5px}.top-notification{width:34px;height:34px;border:1px solid var(--border);border-radius:11px}.top-notification>.icon{width:17px;height:17px}.user-chip{display:flex;align-items:center;gap:9px;border-inline-start:1px solid var(--border);padding:0 18px 0 0;text-align:start}.user-chip>span:not(.avatar){display:flex;flex-direction:column;gap:2px;font-size:11px;font-weight:550}.user-chip small{font-size:9px;color:var(--muted);font-weight:400}.user-chip>.icon{width:12px;height:12px;transform:rotate(-90deg);margin-inline-start:10px;color:var(--muted)}.mobile-theme{display:none}.page-main{flex:1;min-height:0;position:relative;background:var(--bg)}.chat-page{display:grid;grid-template-columns:310px minmax(0,1fr);overflow:hidden}.conversation-panel{display:flex;flex-direction:column;background:var(--surface);border-inline-end:1px solid var(--border);min-width:0;overflow:hidden}.panel-heading{padding:27px 22px 22px;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-heading .eyebrow{font-size:10px;margin-bottom:6px}.panel-heading h2{font-size:22px;letter-spacing:-.8px;display:flex;align-items:center;gap:10px}.panel-heading h2>span{font-size:10px;background:var(--surface-soft);border:1px solid var(--border);border-radius:6px;min-width:23px;text-align:center;padding:0 5px;font-weight:500;letter-spacing:0;line-height:21px;color:var(--muted)}.new-chat{border:1px solid var(--border);border-radius:11px;width:32px;height:32px}.new-chat .icon{width:17px;height:17px}.searchbox{border:1px solid var(--border);border-radius:11px;background:var(--surface-soft);display:flex;align-items:center;gap:9px;padding:10px 12px}.searchbox>.icon{width:17px;height:17px;color:#8a99ad}.searchbox input{outline:0!important;box-shadow:none!important;border:0;background:none;width:100%;padding:0;font-size:11px}.searchbox input::placeholder{color:#9aa6b7}.searchbox kbd{display:none}.conversation-panel>.searchbox{margin:0 20px}.conversation-tabs{display:flex;align-items:center;gap:5px;margin:17px 20px 12px;padding:4px;background:var(--surface-soft);border-radius:10px}.conversation-tabs>button{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;min-height:32px;font-size:10px;color:var(--muted);border-radius:7px;padding:6px}.conversation-tabs>button.selected{background:var(--surface);color:var(--text);box-shadow:0 2px 7px #26344d06;font-weight:600}.conversation-tabs>button>span{font-size:9px;color:var(--green)}.room-list{overflow-y:auto;flex:1;padding:0 11px 10px}.conversation{width:100%;display:flex;align-items:center;gap:12px;text-align:start;padding:15px 11px;margin-bottom:3px;border-radius:13px;position:relative}.conversation:hover{background:var(--surface-soft)}.conversation.selected{background:var(--green-soft)}.conversation-text{flex:1;min-width:0}.conversation-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;line-height:1.8}.conversation-title b{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-title time{font-size:9px;color:var(--muted);flex-shrink:0}.conversation-preview{display:flex;align-items:center;justify-content:space-between;gap:9px}.conversation-preview>span{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.conversation-preview .icon{width:13px;height:13px;color:var(--green);margin-inline-end:5px}.unread-badge{display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:6px;font-size:9px;font-style:normal;color:#fff;background:#087f8c;flex-shrink:0}.panel-footer{padding:15px 22px;display:flex;align-items:center;gap:7px;font-size:9px;color:var(--muted);border-top:1px solid var(--border)}.panel-footer>.icon{color:var(--green);width:13px;height:13px}.panel-footer>.small-dot{margin-inline-start:auto;width:4px;height:4px}.room-list .empty-state{padding:35px 18px;min-height:220px}.room-list .empty-icon{width:45px;height:45px;border-radius:16px}.room-list .empty-state h3{font-size:13px}.room-list .empty-state p{font-size:11px}
/* Conversation */
.chat-panel{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;background:var(--bg);overflow:hidden}.chat-heading{min-height:80px;padding:16px 27px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}.chat-person{display:flex;align-items:center;gap:12px;min-width:0}.chat-person>div{min-width:0}.chat-person h2{font-size:14px;display:flex;align-items:center;gap:7px;font-weight:600}.person-status{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);margin-top:3px}.person-status>.small-dot{width:5px;height:5px}.chat-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.chat-actions>.icon-btn{width:32px;height:32px}.chat-actions .icon{width:18px;height:18px}.private-tag{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--muted);margin-inline-end:10px}.private-tag .icon{width:12px;height:12px}.is-pinned{background:var(--green-soft);color:var(--green)}.mobile-back{display:none}.messages{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:15px 35px 22px;scroll-behavior:smooth}.day-divider{display:flex;align-items:center;justify-content:center;gap:15px;margin:12px auto 29px;max-width:440px}.day-divider>span{border:1px solid var(--border);background:var(--surface);border-radius:20px;padding:4px 13px;line-height:1.8;font-size:10px;color:var(--muted);white-space:nowrap}.day-divider:before,.day-divider:after{content:'';height:1px;background:var(--border);flex:1}.message{display:flex;gap:9px;width:fit-content;max-width:min(78%,560px);align-items:flex-end;position:relative;margin-bottom:22px}.message.own{margin-inline-start:0;margin-inline-end:auto;flex-direction:row-reverse}.message.incoming{margin-inline-start:auto;margin-inline-end:0}.message>.avatar{margin-bottom:2px}.message-content{min-width:0;position:relative;max-width:100%}.bubble{background:var(--surface);border:1px solid var(--border);border-radius:17px 17px 17px 5px;padding:11px 15px 8px;min-width:125px;box-shadow:0 3px 8px #18304d02}.own .bubble{background:#087f8c;color:#fff;border-color:transparent;border-radius:17px 17px 5px 17px;box-shadow:0 3px 10px #087f8c0d}.bubble-name{display:block;font-size:11px;color:var(--green);font-weight:600;margin-bottom:6px}.bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:2;text-align:start}.message-meta{display:flex;justify-content:flex-end;align-items:center;gap:5px;margin-top:5px;font-size:9px;line-height:1.8;color:var(--muted)}.own .message-meta{color:#d4efee}.message-meta>.icon{width:13px;height:13px;stroke-width:1.6}.message-meta>.icon.seen{color:#aaf6de}.message-meta>span{font-size:8px}.reply-preview{border-inline-start:2px solid #43b3b5;background:var(--green-soft);padding:7px 10px;border-radius:8px;margin-bottom:9px;font-size:11px;display:flex;flex-direction:column;gap:3px;max-width:300px}.reply-preview b{font-size:10px;color:var(--green);font-weight:600}.reply-preview span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--muted)}.own .reply-preview{background:#ffffff12;border-color:#b6ece3}.own .reply-preview b,.own .reply-preview span{color:#d7f2ef}.deleted-text{font-style:italic;opacity:.6;font-size:12px!important}.message-more{position:absolute;right:-38px;top:4px;width:30px;height:30px;opacity:0}.own .message-more{right:auto;left:-38px}.message:hover .message-more,.message:focus-within .message-more{opacity:1}.message-more .icon{height:19px;width:19px;stroke-width:3}.message-actions{position:absolute;bottom:-3px;right:-74px;display:flex;gap:1px;padding:2px;background:var(--surface);border:1px solid var(--border);border-radius:9px;opacity:0;pointer-events:none;box-shadow:0 4px 15px #122b4a06}.own .message-actions{right:auto;left:-128px}.message-actions>.icon-btn{width:26px;height:26px;border-radius:6px}.message-actions .icon{height:13px;width:13px}.message:hover .message-actions,.message:focus-within .message-actions{opacity:1;pointer-events:auto}.reactions{display:flex;gap:4px;margin-top:5px;flex-wrap:wrap}.reactions:empty{display:none}.reaction{display:flex;align-items:center;gap:4px;padding:1px 7px;min-height:25px;border:1px solid var(--border);border-radius:9px;background:var(--surface);font-size:13px}.reaction>span{font-size:9px;color:var(--muted)}.reaction.mine{background:var(--green-soft);border-color:#66b6b6}.message-image{display:block;max-width:300px;overflow:hidden;border-radius:11px;margin-bottom:5px}.message-image img{display:block;max-width:100%;max-height:340px;object-fit:contain;border-radius:11px}.message-video{max-width:300px;max-height:340px;border-radius:11px;display:block;margin-bottom:5px}.audio-file{display:flex;align-items:center;gap:9px;min-width:180px;padding:8px 0}.audio-file>.icon{width:20px;height:20px}.audio-file audio{max-width:235px;height:36px}.file-attachment{display:flex;align-items:center;gap:10px;padding:10px 2px;max-width:280px}.file-attachment>.icon:first-child{width:30px;height:30px;background:var(--green-soft);color:var(--green);padding:6px;border-radius:9px}.file-attachment>span{flex:1;min-width:0}.file-attachment b{font-size:11px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-attachment small{font-size:9px;color:var(--muted);display:block;margin-top:3px}.file-attachment>.icon:last-child{width:15px;height:15px}.own .file-attachment small{color:#c2e5e1}.typing-indicator{height:23px;font-size:10px;color:var(--muted);padding:0 30px;display:flex;align-items:center;gap:7px;flex-shrink:0}.typing-dots{display:inline-flex;gap:3px}.typing-dots i{width:3px;height:3px;border-radius:50%;background:var(--green)}.composer-area{padding:0 26px 17px;flex-shrink:0}.composer{position:relative;background:var(--surface);border:1px solid #dce5ee;border-radius:20px;box-shadow:0 4px 20px #20385204}.composer:focus-within{border-color:#99c8ce;box-shadow:0 4px 20px #087f8c06}.composer-input-row{display:flex;align-items:center;gap:13px;padding:14px 15px 8px}.composer textarea{min-width:0;flex:1;resize:none;min-height:36px;max-height:145px;border:0;box-shadow:none!important;outline:0!important;background:none;padding:6px 2px;font-size:13px;line-height:1.8;overflow-y:auto}.composer textarea::placeholder{color:#a0aaba;font-size:12px}.send-button{display:grid;place-items:center;width:39px;height:39px;flex-shrink:0;border-radius:13px;background:#087f8c;color:#fff;box-shadow:0 4px 10px #087f8c15}.send-button:hover{background:#046a78}.send-button .icon{width:19px;height:19px}.composer-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px 9px}.composer-tools>div{display:flex;align-items:center;gap:2px}.composer-tools .icon-btn{width:31px;height:30px;border-radius:9px}.composer-tools .icon{width:18px;height:18px}.quick-reply{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted);padding:6px 9px;border-radius:8px}.quick-reply .icon{height:12px;width:12px}.quick-reply:hover{background:var(--surface-soft);color:var(--green)}.composer-hint{font-size:9px;color:#a9b1bf;direction:ltr;display:flex;align-items:center;gap:5px}.composer-hint>span{font-family:monospace;font-size:12px}.composer-bottom{display:flex;align-items:center;justify-content:center;gap:6px;color:#99a4b5;font-size:9px;margin-top:10px}.composer-bottom .icon{width:10px;height:10px}.composer-context{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);padding:11px 14px;border-radius:13px;margin-bottom:9px;font-size:11px}.composer-context>.icon{color:var(--green);width:17px;height:17px}.composer-context>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.composer-context b{font-size:11px}.composer-context small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.composer-context>.icon-btn{width:26px;height:26px}.composer-popup{position:absolute;right:12px;bottom:calc(100% + 10px);width:310px;max-width:calc(100vw - 40px);padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:17px;z-index:30;box-shadow:0 12px 40px #20385215;animation:pageEnter 120ms var(--ease) both}.popup-heading{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:9px}.popup-heading .icon-btn{width:23px;height:23px}.popup-heading .icon{width:14px;height:14px}.emoji-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.emoji-grid>button{font-size:22px;padding:5px;border-radius:8px}.emoji-grid>button:hover{background:var(--green-soft)}.quick-options{display:flex;flex-direction:column;gap:4px}.quick-options>button{text-align:start;font-size:11px;padding:9px 7px;border-radius:8px}.quick-options>button:hover{background:var(--surface-soft)}.chat-search{display:flex;align-items:center;gap:10px;padding:10px 25px;border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}.chat-search>.icon{color:var(--muted);width:16px;height:16px}.chat-search input{background:none;border:0;outline:0!important;box-shadow:none!important;flex:1;font-size:12px}.chat-search>.icon-btn{width:24px;height:24px}.load-older{display:block;margin:7px auto 20px;padding:6px 15px;border-radius:9px;border:1px solid var(--border);font-size:10px;background:var(--surface);color:var(--muted)}.chat-panel.dragging:after{content:'فایل را اینجا رها کنید';position:absolute;inset:10px;border:2px dashed var(--green);border-radius:22px;background:var(--surface);opacity:.95;z-index:40;display:grid;place-items:center;font-size:18px;color:var(--green)}.recording{color:var(--red)!important;background:#cf53610a!important}.recording-indicator{color:var(--red);font-size:11px;display:flex;align-items:center;gap:7px}.recording-indicator i{width:6px;height:6px;border-radius:50%;background:var(--red)}
/* Welcome and details */
.welcome{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;height:100%;padding:35px;overflow:auto}.welcome-emblem{position:relative;display:grid;place-items:center;width:100px;height:100px;border-radius:30px;background:var(--surface);box-shadow:0 15px 40px #153a5508;border:1px solid var(--border);margin-bottom:30px;transform:rotate(-5deg)}.welcome-emblem>.compact{transform:rotate(5deg) scale(1.3)}.welcome-emblem>span:last-child{position:absolute;right:-9px;bottom:-4px;background:var(--green-soft);border:4px solid var(--bg);width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:var(--green);transform:rotate(5deg)}.welcome-emblem>span:last-child .icon{width:16px;height:16px}.welcome .auth-eyebrow{font-size:10px;margin-bottom:12px}.welcome h2{font-size:25px;letter-spacing:-.9px;line-height:1.9;max-width:420px}.welcome>p{max-width:340px;font-size:12px;color:var(--muted);line-height:2.3;margin:12px 0 25px}.welcome-actions{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}.welcome-actions>.btn{font-size:11px;padding:9px 14px;min-height:41px}.welcome-summary{display:flex;align-items:center;gap:25px;margin-top:43px;padding:18px 27px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}.welcome-summary>div{display:flex;align-items:center;gap:9px;font-size:10px;color:var(--muted)}.welcome-summary .icon{height:15px;width:15px;color:#92a3b5}.welcome-summary b{font-size:16px;font-weight:550;color:var(--text)}.welcome-summary i{height:20px;width:1px;background:var(--border)}.welcome-bottom{display:flex;align-items:center;gap:7px;font-size:9px;color:#99a4b5;margin-top:29px;line-height:2}.welcome-bottom .icon{height:12px;width:12px}.details-panel{position:absolute;left:0;top:0;bottom:0;width:280px;background:var(--surface);border-inline-start:1px solid var(--border);overflow-y:auto;z-index:20;box-shadow:15px 0 40px #162f4a08;animation:drawerEnter 180ms var(--ease) both}.detail-top{display:flex;align-items:center;justify-content:space-between;padding:20px}.detail-top h3{font-size:13px}.detail-top .icon-btn{width:26px;height:26px}.detail-top .icon{width:15px;height:15px}.detail-person{display:flex;flex-direction:column;align-items:center;padding:20px}.detail-person h3{font-size:16px;margin-top:15px}.detail-person>span:not(.avatar){font-family:'Segoe UI',sans-serif;font-size:11px;color:var(--muted);margin-top:3px}.detail-person>.tag{margin-top:11px}.detail-section{padding:23px 20px;border-top:1px solid var(--border)}.label-row{display:flex;justify-content:space-between;gap:10px;font-size:10px;margin-bottom:16px}.label-row:last-child{margin:0}.label-row>span{color:var(--muted)}.label-row b{font-weight:500}.detail-section h4{display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:14px}.detail-section h4>.icon{height:15px;width:15px;color:var(--muted)}.detail-section h4>span{margin-inline-start:auto;font-size:10px;color:var(--muted)}.detail-file{display:flex;align-items:center;gap:9px;padding:10px 0}.detail-file>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.detail-file small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.detail-file>.icon:first-child{width:29px;height:29px;padding:6px;border-radius:8px;background:var(--green-soft);color:var(--green)}.detail-file>.icon:last-child{width:13px;height:13px;color:var(--muted)}.archive-btn{margin:10px 20px;min-height:39px;width:calc(100% - 40px);font-size:11px}.detail-security{text-align:center;background:var(--surface-soft);border:1px solid var(--border);border-radius:14px;margin:20px;padding:21px 15px}.detail-security>.icon{width:25px;height:25px;color:var(--green);margin-bottom:10px}.detail-security h4{font-size:11px}.detail-security p{font-size:10px;color:var(--muted);line-height:2;margin-top:8px}
/* Content views */
.content-page{overflow-y:auto;overscroll-behavior:contain;padding:35px 36px 50px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:29px;animation:pageEnter 160ms var(--ease) both}.page-heading .eyebrow{font-size:10px}.page-heading h2{font-size:27px;letter-spacing:-1px;line-height:1.8;margin-top:8px}.heading-dot{color:#39afa6;margin-inline-start:3px}.page-heading p{font-size:12px;color:var(--muted);line-height:2;margin-top:7px}.heading-buttons{display:flex;gap:9px}.heading-buttons .btn{font-size:11px}.feed-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1200px}.feed-list>.empty-state{grid-column:1/-1;border:1px dashed #d8e1e9;border-radius:19px;min-height:330px}.post-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:25px;min-width:0;animation:pageEnter 160ms var(--ease) both}.post-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.post-top time{font-size:10px;color:var(--muted)}.post-category{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--green)}.post-category .icon{width:14px;height:14px}.post-card h3{font-size:19px;line-height:1.9;letter-spacing:-.5px;margin-bottom:12px}.post-card>p{font-size:13px;color:var(--muted);line-height:2.3;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:17px}.post-card>.message-image{max-width:100%;margin:17px 0}.post-card footer{display:flex;align-items:center;gap:9px;padding-top:18px;border-top:1px solid var(--border);margin-top:22px}.post-card footer>span:not(.avatar){font-size:10px;display:flex;flex-direction:column;gap:3px}.post-card footer small{font-size:9px;color:var(--muted)}.post-card footer>.icon-btn,.post-card footer>.post-brand{margin-inline-start:auto}.post-brand{font-size:11px!important;letter-spacing:-.3px;color:#9babb9}.stats-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:23px}.stat-card{display:flex;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:20px 18px;position:relative}.stat-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:14px;color:#6a8fae;background:#edf3fa}.stat-icon.green{background:var(--green-soft);color:var(--green)}.stat-icon.amber{background:#faf0d9;color:#b79554}.stat-icon .icon{width:21px;height:21px}.stat-card>div{display:flex;flex-direction:column;gap:2px}.stat-card>div>span{font-size:11px;color:var(--muted)}.stat-card b{font-size:28px;font-weight:650;line-height:1.5}.stat-card>small{display:none}.customer-table-card{background:var(--surface);border:1px solid var(--border);border-radius:17px;overflow:hidden}.table-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px}.table-heading h3{display:flex;align-items:center;gap:10px;font-size:14px}.table-heading>.searchbox{width:220px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:start;white-space:nowrap}th{background:var(--surface-soft);font-size:10px;color:var(--muted);font-weight:500}td,th{padding:16px 23px;text-align:start;border-bottom:1px solid var(--border)}td{font-size:11px}tr:last-child td{border-bottom:0}.table-person{display:flex;align-items:center;gap:11px}.table-person b{font-size:11px;font-weight:550}.username{font-family:'Segoe UI',sans-serif;font-size:11px;color:var(--muted)}.table-actions{display:flex;align-items:center;gap:13px}.table-actions .icon-btn{height:31px;width:31px}.table-actions .icon{height:17px;width:17px}.table-actions .text-btn{font-size:10px}.status-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 8px;border-radius:6px;font-size:9px;font-weight:500;white-space:nowrap}.status-pill i{width:4px;height:4px;border-radius:50%;background:currentColor}.status-pill.active{color:#258e7a;background:#edf8f3}.status-pill.inactive{color:#ad8991;background:#fbf0f1}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1150px}.settings-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:26px;min-width:0;animation:pageEnter 160ms var(--ease) both}.card-heading{display:flex;align-items:center;gap:12px;margin-bottom:27px}.card-heading>.icon{width:39px;height:39px;padding:10px;background:var(--green-soft);border-radius:13px;color:var(--green)}.card-heading h3{font-size:15px;line-height:1.8}.card-heading p{font-size:10px;color:var(--muted);margin-top:3px}.card-heading>.status-pill{margin-inline-start:auto}.settings-card .field{font-size:12px}.settings-card .field>input:disabled{color:var(--muted);opacity:.7}.settings-card form>.btn{min-height:40px;font-size:11px}.password-details,.audit-details{font-size:12px}.password-details summary,.audit-details summary{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;cursor:pointer;color:var(--green);padding:3px 0 20px;list-style:none}.password-details summary::-webkit-details-marker,.audit-details summary::-webkit-details-marker{display:none}.password-details summary .icon,.audit-details summary .icon{width:13px;height:13px;transform:rotate(-90deg)}.password-details[open] summary .icon,.audit-details[open] summary .icon{transform:rotate(90deg)}.settings-separator{height:1px;background:var(--border);margin:25px 0}.security-feature{display:flex;align-items:flex-start;gap:11px}.security-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--surface-soft);color:var(--muted);flex-shrink:0}.security-icon .icon{width:16px;height:16px}.security-feature b{font-size:12px;font-weight:550}.security-feature p{font-size:10px;line-height:2;color:var(--muted);max-width:250px;margin-top:4px}.security-feature>.text-btn{margin-inline-start:auto;font-size:10px}.session-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.session-title h4{font-size:12px;font-weight:550;display:flex;align-items:center;gap:7px}.session-title .tag{font-size:9px}.session-title .text-btn{font-size:10px}.session{display:flex;align-items:center;gap:12px;padding:13px 0}.session>.icon{width:25px;height:25px;color:#9aaab9}.session>span:not(.small-dot){display:flex;flex-direction:column;gap:3px}.session b{font-size:11px;font-weight:550}.session small{font-size:9px;color:var(--muted)}.session>.small-dot{margin-inline-start:auto;width:5px;height:5px}.audit-details{margin-top:15px;padding-top:15px;border-top:1px solid var(--border)}.audit-details summary{color:var(--muted);font-size:10px;padding-bottom:0}.audit-row{display:flex;justify-content:space-between;gap:12px;padding-top:13px;font-size:10px;color:var(--muted)}.preference-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.preference-row b{font-size:12px;font-weight:550}.preference-row p{font-size:10px;line-height:2;color:var(--muted);margin-top:5px}.preference-row>.btn{font-size:10px;min-height:36px;padding:7px 11px}.preference-row>.btn>.icon{width:15px;height:15px}.invite-policy{display:flex;align-items:center;gap:15px;border:1px solid #d3eae7;background:var(--green-soft);padding:21px 23px;border-radius:16px;margin-bottom:25px;max-width:1150px}.invite-policy>.icon{height:25px;width:25px;color:var(--green)}.invite-policy>div{flex:1}.invite-policy b{font-size:13px}.invite-policy p{font-size:11px;color:var(--muted);line-height:2.1;margin-top:4px}.invites-list{max-width:1150px;display:flex;flex-direction:column;gap:12px}.invites-list>.empty-state{background:var(--surface);border:1px dashed #d8e1e9;border-radius:17px}.invite-card{display:flex;align-items:center;gap:16px;background:var(--surface);border:1px solid var(--border);padding:22px 24px;border-radius:15px;animation:pageEnter 160ms var(--ease) both}.invite-card-icon{width:44px;height:44px;border:1px solid var(--border);border-radius:13px;background:var(--surface-soft);display:grid;place-items:center;flex-shrink:0;color:var(--green)}.invite-card-icon .icon{width:20px;height:20px}.invite-card-main{flex:1;min-width:0}.invite-card-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.invite-card h3{font-size:14px;overflow-wrap:anywhere}.invite-card p{font-size:11px;line-height:2;color:var(--muted);margin-top:6px}.invite-card p>span{padding:0 5px}.invite-card small{font-size:9px;color:#9ca7b5}.invite-card>.btn{font-size:10px;min-height:35px;padding:7px 11px}.invite-card>.btn .icon{width:14px;height:14px}
/* Dialogs and feedback */
#toast-region{position:fixed;bottom:28px;left:28px;z-index:100;display:flex;flex-direction:column;gap:9px;pointer-events:none;max-width:calc(100vw - 40px)}.toast{display:flex;align-items:center;gap:10px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:13px;box-shadow:0 8px 35px #142f4b15;padding:13px 18px;font-size:12px;animation:pageEnter 160ms var(--ease) both}.toast .icon{width:17px;height:17px;color:var(--green)}.toast.error .icon{color:var(--red)}.modal-backdrop{position:fixed;inset:0;z-index:70;background:#0b203b60;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px;animation:fadeIn 120ms var(--ease) both}.modal{width:450px;max-width:100%;max-height:90dvh;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:23px;box-shadow:0 30px 90px #06172d20;outline:none;animation:modalEnter 160ms var(--ease) both}.modal.wide{width:650px}.modal>header{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border);padding:23px 26px}.modal h2{font-size:23px;letter-spacing:-.7px;line-height:1.8;margin-top:4px}.modal .eyebrow{font-size:10px}.modal>header>.icon-btn{width:30px;height:30px;border-radius:50%;background:var(--surface-soft)}.modal>header>.icon-btn .icon{width:15px;height:15px}.modal-body{padding:25px 26px 27px}.modal-body>.subtle{margin-bottom:22px}.modal .field{font-size:12px}.modal .btn{font-size:12px}.modal-actions{display:flex;gap:9px;margin-top:23px}.invite-intro{display:flex;align-items:flex-start;gap:11px;background:var(--green-soft);border-radius:13px;padding:15px;margin-bottom:23px}.invite-intro>.icon{height:18px;width:18px;color:var(--green);margin-top:5px}.invite-intro p{font-size:12px;line-height:2.2}.invite-result{text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px;background:var(--green-soft);border:1px solid var(--border);border-radius:15px;padding:22px;margin-top:10px}.invite-result>.icon{width:35px;height:35px;border-radius:50%;padding:8px;background:#18a68b15;color:var(--green)}.invite-result b{font-size:14px}.invite-result p{font-size:11px;color:var(--muted);line-height:2.3}.invite-result input{width:100%;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px;font-size:11px;font-family:'Segoe UI',sans-serif;margin:3px 0}.invite-result>.text-btn{font-size:11px}.totp-secret{font-family:monospace;letter-spacing:1px;text-align:center;overflow-wrap:anywhere;user-select:all;font-size:15px;line-height:2;background:var(--green-soft);border:1px dashed #9ccbc7;color:var(--green);border-radius:11px;padding:16px;margin-bottom:21px}.reaction-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.reaction-picker>button{font-size:29px;padding:10px;border-radius:13px;background:var(--surface-soft);border:1px solid var(--border)}.reaction-picker>button:hover{transform:scale(1.04);background:var(--green-soft)}.message-menu{display:flex;flex-direction:column;gap:7px}.message-menu>button{display:flex;align-items:center;gap:13px;padding:14px;border-radius:12px;text-align:start;font-size:14px}.message-menu>button>.icon{width:19px;height:19px;color:var(--muted)}.message-menu>button:hover{background:var(--surface-soft)}.message-menu>.danger>.icon{color:var(--red)}.file-field{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;padding:16px;border:1px dashed #c7d9df;border-radius:12px;color:var(--green);margin-bottom:22px}.file-field>.icon{width:16px;height:16px}.file-field>span{font-size:10px;color:var(--muted);margin-inline-start:auto}.file-field>input{width:100%;font-size:10px;margin-top:8px}
@keyframes pageEnter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes modalEnter{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes drawerEnter{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}@keyframes spin{to{transform:rotate(360deg)}}.message-enter{animation:pageEnter 150ms var(--ease) both}
@media(min-width:1550px){.chat-page.with-details{grid-template-columns:310px minmax(0,1fr) 280px}.chat-page.with-details>.details-panel{position:static;width:auto;box-shadow:none}.content-page{padding:40px 45px 55px}.messages{padding-left:50px;padding-right:50px}}
@media(max-width:1280px){.app-shell{width:calc(100% - 32px);height:calc(100dvh - 32px);margin:16px auto;grid-template-columns:196px minmax(0,1fr);border-radius:21px}.rail{padding:26px 12px 16px}.sidebar-brand{gap:10px}.sidebar-brand b{font-size:21px}.sidebar-brand small{font-size:6px;letter-spacing:1.5px}.sidebar-invite{padding:15px;margin-top:23px}.rail-btn{padding:12px 13px;gap:11px}.rail-btn>span{font-size:11px}.chat-page{grid-template-columns:280px minmax(0,1fr)}.topbar{padding:18px 24px;height:78px}.top-actions{gap:13px}.today{display:none}.chat-heading{padding:15px 22px}.private-tag{display:none}.messages{padding:14px 29px 20px}.message{max-width:85%}.composer-area{padding:0 20px 15px}.composer-hint{display:none}.content-page{padding:30px 27px 45px}.page-heading h2{font-size:25px}.settings-card{padding:22px}.stats-row{gap:11px}.stat-card{padding:18px 15px;gap:10px}.stat-icon{width:37px;height:37px;border-radius:12px}.stat-icon .icon{height:18px;width:18px}.stat-card>div>span{font-size:10px}.stat-card b{font-size:25px}.settings-grid{gap:16px}.security-feature{flex-wrap:wrap}.security-feature>.text-btn{margin-inline-start:auto}.welcome{padding:25px}.welcome h2{font-size:23px}.welcome-summary{padding:16px 20px;gap:18px}.welcome-summary>div{gap:7px;font-size:9px}.welcome-summary b{font-size:15px}.auth-layout{min-height:720px}.auth-form-side{padding:32px 35px 25px}.auth-story{padding:30px}.auth-card h2{font-size:31px}}
@media(max-width:1080px) and (min-width:761px){.app-shell{grid-template-columns:88px minmax(0,1fr)}.rail{padding:25px 10px 18px}.sidebar-brand{justify-content:center;padding:0}.sidebar-brand>span:last-child,.sidebar-section,.sidebar-invite,.rail-bottom{display:none}.rail-nav{margin-top:32px;gap:14px}.rail-btn{flex-direction:column;justify-content:center;gap:8px;padding:12px 4px;height:65px}.rail-btn>span{font-size:9px}.nav-dot{position:absolute;top:9px;left:12px}.chat-page{grid-template-columns:280px minmax(0,1fr)}.topbar{height:75px}.top-actions{gap:12px}.user-chip>span:not(.avatar),.user-chip>.icon{display:none}.user-chip{padding-right:12px}.connection{font-size:9px}.settings-grid,.feed-list,.stats-row{grid-template-columns:1fr}.page-heading{align-items:flex-start}.page-heading>.btn{margin-top:10px;font-size:11px;min-height:40px}.stat-card>div{flex-direction:row;align-items:center;flex:1;justify-content:space-between;gap:10px}.welcome-summary{padding:16px;gap:14px}.welcome-actions{flex-direction:column}.welcome-actions>.btn{width:180px}.welcome h2{font-size:23px}.welcome>p{max-width:280px}.welcome-summary>div{flex-wrap:wrap;max-width:105px;justify-content:center}.welcome-summary>div>span{flex-basis:100%;font-size:9px}.auth-story{padding:28px}.story-content h1{font-size:31px}.story-edition{font-size:7px;letter-spacing:1px}.story-points{gap:12px;font-size:9px}.story-content{padding:35px 0 20px}.auth-layout{width:calc(100% - 40px)}.auth-form-side{padding:30px}.auth-card h2{font-size:30px}}
/* Phone navigation moves below the conversation. */
@media(max-width:760px){body{background:var(--surface)}.app-shell{display:flex;flex-direction:column;width:100%;height:100dvh;min-height:320px;margin:0;border:0;border-radius:0;box-shadow:none;overflow:hidden}.rail{order:2;flex-shrink:0;display:block;overflow:visible;border:0;border-top:1px solid var(--border);padding:5px 9px calc(7px + env(safe-area-inset-bottom));background:var(--surface);z-index:25}.sidebar-brand,.sidebar-section,.sidebar-invite,.rail-bottom{display:none}.rail-nav{display:flex;flex-direction:row;align-items:center;justify-content:space-around;gap:2px;margin:0}.rail-btn{width:auto;flex:1;min-width:0;max-width:88px;min-height:52px;height:52px;flex-direction:column;justify-content:center;gap:4px;padding:5px 2px;border-radius:12px}.rail-btn>.icon{width:21px;height:21px}.rail-btn>span{font-size:10px;line-height:1.8;font-weight:500;letter-spacing:-.15px;white-space:nowrap}.rail-btn.active{background:var(--green-soft);color:var(--green)}.rail-btn.active>span{font-weight:650}.nav-dot{position:absolute;top:5px;left:calc(50% - 17px);width:5px;height:5px;margin:0;border:1px solid var(--surface)}.workspace{order:1;flex:1;width:100%;min-height:0}.topbar{height:67px;padding:11px 18px;gap:12px}.workspace-label{gap:10px}.workspace-label>.brand-image{display:inline-flex;transform:scale(.83);width:38px;height:38px;transform-origin:center}.workspace-label>.compact img{left:-20px;top:-15px}.workspace-label h1{font-size:18px;letter-spacing:-.6px;line-height:1.6}.workspace-label>div>span{font-size:9px}.top-actions{gap:7px}.connection,.today,.top-notification{display:none}.user-chip{border:0;padding:0}.user-chip>.avatar{width:34px;height:34px;border-radius:12px;font-size:11px}.user-chip>span:not(.avatar),.user-chip>.icon{display:none}.mobile-theme{display:inline-flex;width:32px;height:32px;border:none}.mobile-theme .icon{height:18px;width:18px}.chat-page,.chat-page.with-details{display:block;position:relative}.conversation-panel{height:100%;width:100%;border:0}.chat-panel{display:none;height:100%}.chat-page.room-open>.conversation-panel{display:none}.chat-page.room-open>.chat-panel{display:flex}.panel-heading{padding:24px 22px 20px}.panel-heading h2{font-size:27px}.panel-heading .eyebrow{font-size:11px;margin-bottom:7px}.new-chat{width:38px;height:38px;border-radius:12px}.new-chat .icon{height:20px;width:20px}.conversation-panel>.searchbox{margin:0 21px;padding:13px 14px}.conversation-panel>.searchbox input{font-size:12px}.conversation-tabs{margin:18px 21px 14px;padding:5px}.conversation-tabs>button{font-size:11px;min-height:34px}.room-list{padding:0 10px 15px}.conversation{padding:17px 13px;gap:13px;border-radius:14px}.conversation>.avatar-wrap>.avatar{width:48px;height:48px;font-size:16px;border-radius:17px}.conversation-title b{font-size:14px}.conversation-title time{font-size:10px}.conversation-preview>span{font-size:12px}.unread-badge{min-width:19px;height:19px;font-size:10px}.panel-footer{padding:15px 23px;font-size:10px}.room-list .empty-state{min-height:290px}.room-list .empty-state h3{font-size:15px}.room-list .empty-state p{font-size:12px}.chat-heading{min-height:74px;padding:12px 16px;gap:8px}.mobile-back{display:inline-flex;min-width:25px;width:25px;height:34px;margin-inline-start:-7px;margin-inline-end:3px;color:var(--text)}.mobile-back .icon{width:20px;height:20px}.chat-person{gap:10px}.chat-person>.avatar{width:39px;height:39px;border-radius:14px;font-size:13px}.chat-person h2{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:calc(100vw - 190px);line-height:1.9}.chat-person h2 .tag{font-size:8px;margin-inline-start:4px}.person-status{font-size:10px;line-height:1.8;margin-top:1px}.chat-actions{gap:0}.chat-actions>.icon-btn{width:30px;height:30px}.chat-actions>.icon-btn>.icon{width:18px;height:18px}.chat-actions>[data-action=pin],.private-tag{display:none}.messages{padding:10px 27px 20px}.day-divider{gap:15px;margin:10px auto 25px}.day-divider>span{font-size:10px;padding:4px 11px}.message{max-width:85%;gap:0;margin-bottom:19px}.message>.avatar{display:none}.bubble{padding:10px 13px 7px;min-width:120px;border-radius:16px 16px 16px 5px}.own .bubble{border-radius:16px 16px 5px 16px}.bubble p{font-size:14px;line-height:1.95}.bubble-name{font-size:10px;margin-bottom:5px}.message-meta{font-size:9px;gap:5px;margin-top:5px}.message-meta>span{font-size:8px}.message-meta>.icon{height:13px;width:13px}.message-more{opacity:1;right:-26px;width:23px;height:27px;top:5px;background:transparent!important}.own .message-more{left:-26px;right:auto}.message-more .icon{height:16px;width:16px;color:#a2afbd;stroke-width:2.5}.message-actions{display:none!important}.reactions{gap:4px}.reaction{font-size:13px;min-height:25px}.message-image,.message-video{max-width:230px}.audio-file audio{max-width:200px}.audio-file{gap:7px;min-width:180px}.file-attachment{max-width:220px;gap:8px}.file-attachment b{font-size:11px}.file-attachment>.icon:first-child{width:29px;height:29px}.typing-indicator{height:22px;padding:0 20px;font-size:10px}.composer-area{padding:0 12px 9px}.composer{border-radius:19px;box-shadow:0 4px 16px #17345204;border-color:#dce5ed}.composer-input-row{padding:10px 12px 4px;gap:12px;align-items:center}.composer textarea{font-size:14px;min-height:36px;padding:7px 2px;max-height:125px}.composer textarea::placeholder{font-size:12px}.send-button{width:37px;height:37px;border-radius:12px}.send-button .icon{height:18px;width:18px}.composer-tools{padding:0 8px 6px}.composer-tools>div{gap:1px}.composer-tools .icon-btn{height:30px;width:32px}.composer-tools .icon{height:18px;width:18px}.quick-reply{font-size:10px;gap:5px;padding:6px 8px}.quick-reply .icon{height:12px;width:12px}.composer-hint{display:none}.composer-bottom{font-size:8px;margin-top:7px;line-height:1.8}.composer-bottom .icon{height:9px;width:9px}.composer-context{font-size:11px;padding:10px 12px;margin-bottom:7px}.composer-popup{right:0;bottom:calc(100% + 8px);width:310px;max-width:calc(100vw - 27px)}.emoji-grid{grid-template-columns:repeat(7,1fr)}.emoji-grid>button{font-size:23px}.chat-search{padding:10px 17px}.chat-search input{font-size:12px}.details-panel{width:100%;top:0;bottom:0;border:0;z-index:24}.detail-top{padding:22px}.detail-top h3{font-size:15px}.detail-person{padding-top:15px}.detail-person h3{font-size:19px}.detail-section{padding:24px}.detail-section h4{font-size:13px}.label-row{font-size:12px}.detail-security{margin:22px}.detail-security h4{font-size:13px}.detail-security p{font-size:11px}.welcome{display:none}.content-page{padding:25px 20px 35px}.page-heading{flex-direction:column;align-items:flex-start;gap:18px;margin-bottom:24px}.page-heading .eyebrow{font-size:10px}.page-heading h2{font-size:27px;margin-top:7px}.page-heading p{font-size:12px;line-height:2.2}.page-heading>.btn{font-size:12px;min-height:42px;margin:0}.heading-buttons{width:100%;gap:8px}.heading-buttons>.btn{flex:1;min-height:41px;font-size:11px}.feed-list{grid-template-columns:1fr;gap:16px}.post-card{padding:21px;border-radius:17px}.post-card h3{font-size:20px}.post-card>p{font-size:13px}.post-top{margin-bottom:19px}.post-top time{font-size:9px}.post-category{font-size:10px}.post-card footer>span:not(.avatar){font-size:11px}.post-card footer small{font-size:9px}.stats-row{grid-template-columns:1fr;gap:10px;margin-bottom:21px}.stat-card{padding:17px 18px;gap:14px}.stat-card>div{flex-direction:row;align-items:center;flex:1;justify-content:space-between;gap:10px}.stat-card>div>span{font-size:12px}.stat-card b{font-size:26px}.stat-icon{width:39px;height:39px}.table-heading{flex-direction:column;align-items:flex-start;padding:20px;gap:16px}.table-heading h3{font-size:15px}.table-heading>.searchbox{width:100%;padding:11px 13px}.table-heading .searchbox input{font-size:12px}td,th{padding:15px 20px}.settings-grid{grid-template-columns:1fr;gap:16px}.settings-card{padding:23px;border-radius:18px}.card-heading{gap:13px;margin-bottom:26px}.card-heading h3{font-size:16px}.card-heading p{font-size:11px}.settings-card .field{font-size:13px}.settings-card .field>input{font-size:14px}.settings-card form>.btn{font-size:12px;min-height:42px}.security-feature b,.session-title h4{font-size:13px}.security-feature p{font-size:11px}.security-feature>.text-btn{font-size:11px}.session-title .text-btn{font-size:11px}.session b{font-size:12px}.session small{font-size:10px}.audit-details summary{font-size:11px}.audit-row{font-size:11px;line-height:2}.preference-row b{font-size:13px}.preference-row p{font-size:11px}.preference-row>.btn{font-size:11px}.invite-policy{padding:17px;gap:11px;align-items:flex-start;margin-bottom:20px}.invite-policy>.icon{height:21px;width:21px;margin-top:3px}.invite-policy b{font-size:13px}.invite-policy p{font-size:11px;line-height:2.2}.invite-policy>.tag{display:none}.invite-card{padding:19px;gap:13px;flex-wrap:wrap;border-radius:16px}.invite-card-main{flex-basis:calc(100% - 57px)}.invite-card-title{gap:8px}.invite-card h3{font-size:14px}.invite-card p{font-size:11px;line-height:2.2}.invite-card small{font-size:10px}.invite-card>.btn{margin-inline-start:57px;min-height:35px;font-size:11px}.modal-backdrop{padding:16px;align-items:flex-end}.modal{width:100%;border-radius:23px;max-height:90dvh;animation:modalEnter 160ms var(--ease) both}.modal>header{padding:22px 23px 20px}.modal h2{font-size:23px}.modal-body{padding:23px}.modal .eyebrow{font-size:10px}.modal .field{font-size:13px}.modal .field>input,.modal .field>select{font-size:14px;min-height:49px}.modal .btn{font-size:13px;min-height:46px}.modal .subtle{font-size:13px}.invite-intro{padding:16px}.invite-intro p{font-size:12px}.invite-result{padding:19px}.invite-result input{font-size:11px}.modal-actions{gap:9px}.modal-actions>.btn{font-size:12px;padding:10px 14px}.reaction-picker{gap:8px}.reaction-picker>button{font-size:29px;padding:9px}.totp-secret{font-size:14px}#toast-region{bottom:calc(82px + env(safe-area-inset-bottom));left:16px;right:16px;max-width:none}.toast{font-size:12px;padding:13px 16px}.auth-layout{display:block;min-height:100dvh;width:100%;margin:0;border:0;border-radius:0;box-shadow:none}.auth-story{display:none}.auth-form-side{min-height:100dvh;padding:26px 27px 23px}.auth-top{gap:15px}.auth-brand{gap:11px}.auth-brand b{font-size:23px}.auth-brand small{font-size:8px;letter-spacing:2px}.auth-brand .compact{transform:scale(1.05)}.auth-card{max-width:385px;padding:60px 0;margin:auto}.auth-card h2{font-size:36px}.auth-eyebrow{font-size:11px;margin-bottom:16px}.auth-description{font-size:14px;line-height:2.1;margin:10px 0 32px}.auth-card .field{font-size:13px;gap:10px;margin-bottom:23px}.auth-card .field>input{min-height:52px;font-size:15px;padding:14px 16px}.auth-card .password-input{min-height:52px}.auth-card .password-input input{font-size:15px}.auth-submit{height:53px;font-size:14px;margin-top:8px}.auth-note{font-size:12px;line-height:2.1;margin-top:29px;padding-top:24px}.auth-bottom{font-size:9px}.auth-bottom .icon{width:12px;height:12px}}
@media(max-width:359px){.topbar{padding:10px 14px}.workspace-label{gap:7px}.workspace-label h1{font-size:17px}.top-actions{gap:4px}.rail{padding-left:5px;padding-right:5px}.rail-btn>span{font-size:9px}.chat-heading{padding:12px}.chat-person{gap:7px}.chat-person h2{max-width:calc(100vw - 173px);font-size:13px}.messages{padding-left:25px;padding-right:25px}.message{max-width:88%}.bubble p{font-size:13px}.composer textarea{font-size:13px}.quick-reply{font-size:9px;padding:6px}.content-page{padding:24px 16px}.auth-form-side{padding:24px}.auth-card h2{font-size:34px}.preference-row{gap:9px}.preference-row>.btn{padding:7px 8px}.audio-file audio{max-width:170px}}
@media(max-height:760px) and (min-width:761px){.app-shell{margin:14px auto;height:calc(100dvh - 28px)}.sidebar-invite{margin-top:22px;margin-bottom:16px;padding:14px}.sidebar-invite-icon{display:none}.rail{padding-top:23px}.sidebar-section{padding-top:25px}.rail-nav{gap:5px}.rail-btn{min-height:44px;padding-top:11px;padding-bottom:11px}.auth-layout{margin:20px auto;min-height:650px}.auth-card{padding:32px 0}.auth-story{padding:28px}.story-content{padding:28px 0 16px}.story-content h1{font-size:33px}.story-content>p{font-size:11px;margin-top:15px}.signal-art{height:150px;margin-top:18px;margin-bottom:12px}.signal-ring{height:130px;width:130px}.ring-b{height:180px;width:180px}.story-points{margin-top:17px}.auth-card h2{font-size:30px}.auth-description{margin-bottom:24px}.auth-card .field{margin-bottom:17px}.auth-note{margin-top:22px;padding-top:18px}.welcome-emblem{width:85px;height:85px;margin-bottom:23px}.welcome h2{font-size:24px}.welcome-summary{margin-top:28px}.welcome-bottom{margin-top:22px}}
.auth-switch{display:block;margin:20px auto 0;min-height:44px}.verification-badge{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:10px;font-weight:600;padding:4px 8px;border-radius:8px;line-height:1.7;background:var(--surface-soft);color:var(--muted);border:1px solid var(--border)}.verification-badge .icon{height:12px;width:12px}.verification-badge.verified{color:var(--green);background:var(--green-soft)}.verification-badge.unverified{color:#876224;background:#c9982114}.verification-badge.trusted{color:var(--green);border-color:var(--green);margin:3px}.conversation-title .verification-badge{font-size:8px;padding:1px 4px;vertical-align:middle;margin-inline-start:5px}.conversation-title .verification-badge .icon{display:none}.conversation-title b{min-width:0}.membership-age{display:block;font-size:10px;color:var(--muted);margin-top:7px}.customer-identity{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:15px}.customer-identity p{font-size:11px;color:var(--muted);width:100%}.table-actions{flex-wrap:wrap}.modal-backdrop{animation:fadeIn 180ms ease both}.modal{animation:modalEnter 260ms cubic-bezier(.22,1,.36,1) both}.composer-popup:not(.hidden){animation:modalEnter 180ms cubic-bezier(.22,1,.36,1) both}.rail-btn{transition:background-color 160ms ease,color 160ms ease,transform 180ms ease}.rail-btn:active{transform:scale(.97)}.auth-card{animation:pageEnter 260ms cubic-bezier(.22,1,.36,1) both}.details-panel:not(.hidden){animation:drawerEnter 250ms cubic-bezier(.22,1,.36,1) both}
@media(max-width:760px){.modal{animation:modalEnter 260ms cubic-bezier(.22,1,.36,1) both}.conversation-title b{white-space:normal}.verification-badge{font-size:10px}.conversation-title .verification-badge{display:inline-flex}.table-actions .text-btn{min-height:44px}}
[data-theme=dark] .verification-badge.unverified{color:#e6c681;background:#c998211a}
@media(max-width:760px){.customer-table-card .table-scroll{overflow:visible}.customer-table-card table{display:block;width:100%;min-width:0}.customer-table-card thead{display:none}.customer-table-card tbody{display:block}.customer-table-card tr{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:20px;border-bottom:1px solid var(--border)}.customer-table-card tr:last-child{border-bottom:0}.customer-table-card td{display:block;min-width:0;padding:0;border:0;white-space:normal}.customer-table-card td:first-child,.customer-table-card td:nth-child(4),.customer-table-card td:nth-child(6){grid-column:1/-1}.customer-table-card td::before{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.customer-table-card td:nth-child(2)::before{content:'نام کاربری'}.customer-table-card td:nth-child(3)::before{content:'تاریخ عضویت'}.customer-table-card td:nth-child(4)::before{content:'احراز و اعتماد'}.customer-table-card td:nth-child(5)::before{content:'وضعیت حساب'}.customer-table-card .table-person{font-size:13px}.customer-table-card .table-actions{justify-content:flex-start;gap:12px}.customer-table-card td[colspan]{grid-column:1/-1}.customer-table-card .username{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
