:root{--bg: #f8fbff;--surface: #ffffff;--raised: #eaf5ff;--border: #e7eef8;--text: #07153b;--text2: #7181a6;--text3: #91a1ba;--brand: #0878f9;--brand-pressed: #0052d6;--out: #168ef7;--out-text: #ffffff;--in: #ffffff;--chat-bg: #edf8ff;--danger: #ff0a43;--success: #00c96b;--read: #13c7f5;--shadow: 0 1px 2px rgba(7, 21, 59, .08)}@media (prefers-color-scheme: dark){:root{--bg: #111b21;--surface: #202c33;--raised: #2a3942;--border: #313d45;--text: #e9edef;--text2: #8696a0;--text3: #667781;--in: #202c33;--chat-bg: #0b141a;--out: #1f6fd0;--read: #53bdeb;--shadow: 0 1px 2px rgba(0, 0, 0, .45)}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,Segoe UI,Roboto,Noto Sans Arabic,Helvetica Neue,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:15px;line-height:1.4}button{font:inherit;cursor:pointer}input,textarea{font:inherit;color:var(--text)}.muted{color:var(--text2)}.hint{color:var(--text3);font-size:13px;margin:4px 0 0}.error{color:var(--danger);font-size:13px}.spacer{flex:1}.boot{height:100%;background:var(--bg)}.login{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px;gap:20px}.login-card{width:min(420px,100%);background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:28px 24px;display:flex;flex-direction:column;align-items:center;gap:10px;box-shadow:var(--shadow)}.login-card .form{width:100%;display:flex;flex-direction:column;gap:10px;margin-top:10px}.login-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--text2)}.login-card input{height:48px;border:1px solid var(--border);background:var(--raised);border-radius:12px;padding:0 14px;font-size:18px}.login-card input:focus{outline:2px solid var(--brand);border-color:transparent}.login-note{max-width:420px;text-align:center;color:var(--text3);font-size:13px}button.primary{height:46px;border:0;border-radius:999px;background:var(--brand);color:#fff;font-weight:700;padding:0 20px}button.primary:hover:not(:disabled){background:var(--brand-pressed)}button.primary:disabled{opacity:.5;cursor:default}button.link{background:none;border:0;color:var(--brand);font-weight:600;padding:8px}button.link.small{font-size:13px}button.link.center{display:block;margin:6px auto}.shell{height:100%;height:100dvh;display:grid;grid-template-columns:minmax(300px,30%) 1fr;grid-template-rows:minmax(0,1fr);overflow:hidden}.sidebar{display:flex;flex-direction:column;min-width:0;min-height:0;border-inline-end:1px solid var(--border);background:var(--surface)}.sidebar-header{height:60px;display:flex;align-items:center;gap:10px;padding:0 14px;border-bottom:1px solid var(--border)}.icon-button{width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:var(--text2);font-size:18px}.icon-button:hover{background:var(--raised)}.icon-button.back{display:none}.search{padding:8px 12px;border-bottom:1px solid var(--border)}.search input{width:100%;height:38px;border:0;border-radius:10px;background:var(--raised);padding:0 14px}.banner{padding:8px 14px;font-size:13px;background:var(--raised);color:var(--text2)}.banner.error{color:var(--danger)}.list-state{padding:24px 16px;color:var(--text2);text-align:center}.chat-list{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1}.chat-list li button{width:100%;display:flex;gap:12px;align-items:center;padding:10px 14px;border:0;background:transparent;color:inherit;text-align:start;border-bottom:1px solid var(--border)}.chat-list li button:hover,.chat-list li.selected button{background:var(--raised)}.chat-row-text{flex:1;min-width:0}.chat-row-top,.chat-row-bottom{display:flex;align-items:center;gap:8px}.chat-title{flex:1;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-time{font-size:12px;color:var(--text3)}.chat-preview{flex:1;font-size:13.5px;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge{min-width:20px;height:20px;border-radius:10px;background:var(--brand);color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}.muted-icon{font-size:12px}.avatar{border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:700;flex:none}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.main{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--chat-bg)}.empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center}.chat{height:100%;display:flex;flex-direction:column;min-height:0}.chat-header{height:60px;display:flex;align-items:center;gap:12px;padding:0 14px;background:var(--surface);border-bottom:1px solid var(--border)}.chat-header-text{min-width:0}.chat-subtitle{font-size:12px;color:var(--text2)}.messages{flex:1;min-height:0;overflow-y:auto;padding:12px 6%;display:flex;flex-direction:column;gap:4px}.day{align-self:center;margin:10px 0 6px}.day span{background:var(--surface);color:var(--text2);font-size:12px;padding:4px 10px;border-radius:10px;box-shadow:var(--shadow)}.day.system span{color:var(--text3)}.bubble-row{display:flex}.bubble-row.mine{justify-content:flex-end}.bubble{max-width:min(560px,80%);background:var(--in);border-radius:14px;padding:7px 10px 5px;box-shadow:var(--shadow);position:relative}.bubble-row.mine .bubble{background:var(--out);color:var(--out-text)}.sender{font-size:12.5px;font-weight:700;color:var(--brand);margin-bottom:2px}.text{white-space:pre-wrap;word-break:break-word}.text.deleted{font-style:italic;opacity:.7}.text.caption{margin-top:6px}.meta{display:flex;justify-content:flex-end;gap:6px;font-size:11px;opacity:.75;margin-top:2px}.ticks.read{color:var(--read);opacity:1}.bubble-row.mine .ticks.read{color:#bff2ff}.media{max-width:100%;max-height:360px;border-radius:10px;display:block}.media.thumb{filter:blur(4px)}.media.sticker{max-height:160px}.media-button,.document{background:none;border:0;padding:0;color:inherit;display:flex;flex-direction:column;gap:6px;text-align:start}.document{background:#00000014;border-radius:10px;padding:10px 12px;text-decoration:none;display:inline-block}.bubble-row.mine .document{background:#ffffff2e}.placeholder{opacity:.8;font-size:14px;display:flex;flex-direction:column;gap:6px}audio{max-width:280px}.composer{display:flex;gap:8px;align-items:flex-end;padding:10px 12px;background:var(--surface);border-top:1px solid var(--border)}.composer textarea{flex:1;min-height:44px;max-height:160px;resize:none;border:1px solid var(--border);background:var(--raised);border-radius:14px;padding:11px 14px}.composer textarea:focus{outline:2px solid var(--brand);border-color:transparent}.composer .send{height:44px}.composer-note{padding:8px 14px;font-size:13px;color:var(--text2);background:var(--surface);border-top:1px solid var(--border)}@media (max-width: 760px){.shell{grid-template-columns:1fr}.shell.has-chat .sidebar{display:none}.shell:not(.has-chat) .main{display:none}.icon-button.back{display:inline-flex;align-items:center;justify-content:center}.messages{padding:10px}.bubble{max-width:88%}}.login{min-height:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:18px;padding:24px 16px 40px;max-width:980px;margin:0 auto}.login-top{display:flex;align-items:center;justify-content:space-between;padding:4px 8px}.card{background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow)}.download-card{display:flex;align-items:center;gap:22px;padding:22px 28px}.download-art{width:72px;height:72px;border-radius:18px;flex:none}.download-text{flex:1;min-width:0}.download-text h2{margin:0 0 4px;font-size:20px}.download-text p{margin:0;font-size:14px}a.button.primary{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 26px;border-radius:999px;background:var(--brand);color:#fff;font-weight:700;text-decoration:none}a.button.primary:hover{background:var(--brand-pressed)}.scan-card{display:flex;align-items:center;gap:32px;padding:40px 44px}.scan-text{flex:1;min-width:0}.scan-text h1{margin:0 0 26px;font-size:30px;font-weight:400}.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px;position:relative}.steps li{display:flex;align-items:center;gap:14px;font-size:16px;position:relative}.steps li+li:before{content:"";position:absolute;inset-inline-start:13px;top:-22px;height:22px;border-inline-start:1px solid var(--border)}.step-number{width:28px;height:28px;border-radius:50%;border:1px solid var(--text2);display:inline-flex;align-items:center;justify-content:center;font-size:13px;flex:none;background:var(--surface)}.inline-icon{vertical-align:middle;border-radius:5px}.help-link{padding:0;margin-top:22px;text-decoration:underline;color:var(--brand)}.help-text{margin-top:8px;max-width:420px}.status{margin-top:14px}.qr-box{position:relative;width:284px;height:284px;flex:none;background:#fff;border-radius:16px;padding:10px;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center}.qr-box .qr{width:264px;height:264px;display:block}.qr-placeholder{width:264px;height:264px;border-radius:12px;background:var(--raised)}.qr-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #fff}.qr-logo img{border-radius:12px}.login-note{text-align:center;color:var(--text3);font-size:13px}@media (max-width: 760px){.download-card{flex-wrap:wrap;justify-content:center;text-align:center}.scan-card{flex-direction:column-reverse;padding:28px 22px}.scan-text h1{font-size:26px}}.composer-wrap{background:var(--surface);border-top:1px solid var(--border)}.composer-wrap .composer{border-top:0}.composer .icon-button{font-size:20px;flex:none;height:44px;width:44px}.composer.recording{align-items:center}.rec-dot{width:12px;height:12px;border-radius:50%;background:var(--danger);animation:blink 1s infinite}.rec-clock{font-variant-numeric:tabular-nums;font-weight:700}.rec-label{color:var(--text2)}@keyframes blink{50%{opacity:.2}}.chips{display:flex;gap:6px;padding:6px 12px 8px;border-bottom:1px solid var(--border)}.chip{height:28px;padding:0 12px;border-radius:14px;border:1px solid var(--border);background:transparent;color:var(--text2);font-size:13px;font-weight:600}.chip.selected{background:color-mix(in srgb,var(--brand) 18%,transparent);color:var(--brand);border-color:transparent}.chat{flex-direction:row}.chat-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}.chat-header{position:relative}.chat-header-text{flex:1;min-width:0;cursor:pointer}.chat-header .actions{display:flex;align-items:center;gap:2px}.icon-button svg{width:22px;height:22px;display:block}.icon-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.chat-search{display:flex;align-items:center;gap:8px;padding:6px 12px;background:var(--surface);border-bottom:1px solid var(--border)}.chat-search input{flex:1;height:36px;border:0;border-radius:10px;background:var(--raised);padding:0 12px}.chat-search .count{font-size:12px;color:var(--text3);white-space:nowrap}.popover-backdrop{position:fixed;inset:0;z-index:30}.popover{position:absolute;z-index:31;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 32px #00000047;padding:6px;min-width:200px}.popover.menu{top:52px;inset-inline-end:10px}.popover button.item{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;border:0;background:transparent;color:var(--text);border-radius:10px;font-size:15px;text-align:start;cursor:pointer}.popover button.item:hover{background:var(--raised)}.popover button.item svg{width:22px;height:22px;flex:none}.attach-menu .item .dot{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;flex:none}.attach-menu .item .dot svg{width:17px;height:17px}.emoji-grid{display:grid;grid-template-columns:repeat(8,36px);gap:2px;padding:8px}.emoji-grid button{width:36px;height:36px;border:0;background:transparent;border-radius:8px;font-size:22px;cursor:pointer}.emoji-grid button:hover{background:var(--raised)}.messages{background-color:var(--chat-bg);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='%23ffffff' stroke-opacity='0.055' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='24' cy='26' r='9'/%3E%3Cpath d='M70 18l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z'/%3E%3Cpath d='M118 34c0-6 10-6 10 0 0 5-10 9-10 14 0-5-10-9-10-14 0-6 10-6 10 0z'/%3E%3Cpath d='M20 86h18M29 77v18'/%3E%3Cpath d='M62 74c8-8 16 8 24 0s16 8 24 0'/%3E%3Ccircle cx='136' cy='90' r='5'/%3E%3Cpath d='M26 134l9-16 9 16z'/%3E%3Cpath d='M78 128a9 9 0 1 1 0 18 9 9 0 0 1 0-18z'/%3E%3Cpath d='M118 140h20M128 130v20'/%3E%3C/svg%3E")}.composer{align-items:flex-end}.composer-tools{position:relative;display:flex;align-items:center;gap:2px}.composer-tools .popover{bottom:52px;inset-inline-start:0}.composer textarea{border-radius:22px}.round-button{width:46px;height:46px;border-radius:50%;border:0;background:var(--brand);color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:none;cursor:pointer}.round-button:hover:not(:disabled){background:var(--brand-pressed)}.round-button:disabled{opacity:.5;cursor:default}.round-button svg{width:22px;height:22px}.progress{height:3px;background:color-mix(in srgb,var(--brand) 25%,transparent);border-radius:2px;overflow:hidden;margin-top:6px}.progress>div{height:100%;background:var(--brand);transition:width .2s}.info-panel{width:380px;flex:none;border-inline-start:1px solid var(--border);background:var(--surface);overflow-y:auto;display:flex;flex-direction:column}.info-header{height:60px;display:flex;align-items:center;gap:12px;padding:0 14px;border-bottom:1px solid var(--border);font-weight:600}.info-hero{display:flex;flex-direction:column;align-items:center;gap:8px;padding:26px 20px 20px;border-bottom:1px solid var(--border);text-align:center}.info-hero h2{margin:6px 0 0;font-size:20px;font-weight:600}.info-hero .muted{color:var(--text2)}.info-section{padding:14px 18px;border-bottom:1px solid var(--border)}.info-section h3{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;font-size:14px;font-weight:600;color:var(--text2)}.info-section h3 span{font-weight:500;color:var(--text3)}.media-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.media-grid img,.media-grid .media-cell{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:var(--raised);display:block}.media-grid .media-cell{display:flex;align-items:center;justify-content:center;color:var(--text3);font-size:22px}.doc-list,.member-list,.link-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}.doc-list li,.member-list li{display:flex;align-items:center;gap:12px;padding:8px 4px}.doc-list .name,.member-list .name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.doc-list .size{color:var(--text3);font-size:12px}.link-list li a{display:block;padding:8px 4px;color:var(--brand);word-break:break-all}.camera-modal{position:fixed;inset:0;z-index:40;background:#000000b8;display:flex;align-items:center;justify-content:center;padding:16px}.camera-box{background:var(--surface);border-radius:18px;padding:14px;width:min(720px,100%);display:flex;flex-direction:column;gap:12px}.camera-box video,.camera-box img{width:100%;max-height:70vh;border-radius:12px;background:#000;object-fit:contain}.camera-actions{display:flex;justify-content:center;gap:10px}@media (max-width: 760px){.info-panel{position:fixed;inset:0;width:auto;z-index:25}.emoji-grid{grid-template-columns:repeat(6,36px)}}
