:root{--primary:#2563eb;--primary-hover:#1d4ed8;--on-primary:#fff;--primary-soft:#e8efff;--secondary:#14b8a6;--error:#dc2626;--error-soft:#fdecec;--warn-soft:#fff6e0;--warn-text:#7a5300;--bg:#f8f9ff;--surface:#fff;--surface-low:#f3f5fc;--surface-2:#eef1fa;--surface-3:#e8ecf7;--text:#0b1c30;--text-2:#434655;--hint:#6b7280;--border:#c3c6d7;--border-subtle:#dde1ec;--radius:10px;--radius-lg:16px;--shadow:0 1px 2px #0b1c300f, 0 1px 3px #0b1c300a;--shadow-lg:0 16px 40px #0b1c3029;--font:Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--primary:#60a5fa;--primary-hover:#93c5fd;--on-primary:#0b1326;--primary-soft:#1a2b4a;--secondary:#2dd4bf;--error:#f87171;--error-soft:#3a1714;--warn-soft:#3a2c0a;--warn-text:#f5d27a;--bg:#0b1326;--surface:#131b2e;--surface-low:#172036;--surface-2:#1b253d;--surface-3:#212c47;--text:#d4e4fa;--text-2:#a9b5ca;--hint:#7f8ba3;--border:#34405e;--border-subtle:#2a3550;--shadow:0 1px 2px #0000004d;--shadow-lg:0 16px 40px #00000073;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*,:before,:after{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.5}h1,h2{margin:0 0 8px;line-height:1.25}h1{font-size:1.6rem;font-weight:700}h2{font-size:1.05rem;font-weight:600}a{color:var(--primary)}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.muted{color:var(--text-2)}.small{font-size:.85rem}.logo img{width:auto;display:block}label{color:var(--text-2);margin:14px 0 6px;font-size:.88rem;font-weight:600;display:block}input:not([type=checkbox]){border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:100%;color:var(--text);font:inherit;padding:11px 12px}input:not([type=checkbox]):focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft);outline:none}input.otp{letter-spacing:.4em;text-align:center;font-size:1.4rem}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.6}.primary,.secondary{border-radius:var(--radius);padding:11px 18px;font-weight:600}.primary{background:var(--primary);color:var(--on-primary);border:0}.primary:hover:not(:disabled){background:var(--primary-hover)}.secondary{border:1px solid var(--border);background:var(--surface);color:var(--text)}.secondary:hover:not(:disabled){background:var(--surface-low)}.wide{width:100%;margin-top:18px}.link{color:var(--primary);background:0 0;border:0;padding:0;font-weight:500}.link:hover:not(:disabled){text-decoration:underline}.link:disabled{color:var(--hint);opacity:1}.check{color:var(--text);cursor:pointer;align-items:flex-start;gap:10px;margin-top:16px;font-weight:500;display:flex}.check input{width:18px;height:18px;accent-color:var(--primary);margin:2px 0 0}.check small{color:var(--hint);font-weight:400;display:block}.alert,.notice{border-radius:var(--radius);margin-top:14px;padding:10px 12px;font-size:.92rem}.alert{background:var(--error-soft);color:var(--error)}.notice{background:var(--warn-soft);color:var(--warn-text);margin:0 0 16px}.auth{grid-template-columns:minmax(320px,5fr) 7fr;min-height:100vh;display:grid}.auth-brand{background:linear-gradient(160deg, var(--primary-soft), var(--surface-2));border-right:1px solid var(--border-subtle);flex-direction:column;justify-content:center;gap:12px;padding:56px;display:flex}.auth-brand h2{max-width:14ch;margin-top:24px;font-size:1.9rem;font-weight:700}.auth-brand p{max-width:38ch;color:var(--text-2);margin:0}.auth-panel{flex-direction:column;justify-content:center;align-items:center;padding:40px 24px;display:flex}.auth-card{border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--surface);width:100%;max-width:400px;box-shadow:var(--shadow);padding:32px}.auth-card .subtitle{color:var(--text-2);margin:0 0 8px}.auth-logo-small{margin-bottom:20px;display:none}.auth-links{text-align:center;margin-top:14px}.divider{color:var(--hint);align-items:center;gap:12px;margin:20px 0 0;font-size:.85rem;display:flex}.divider:before,.divider:after{content:"";background:var(--border-subtle);flex:1;height:1px}.divider+.wide{margin-top:14px}.auth-footer{color:var(--hint);margin-top:20px;font-size:.85rem}@media (max-width:860px){.auth{grid-template-columns:1fr}.auth-brand{display:none}.auth-logo-small{display:block}}.app{grid-template-columns:88px 1fr;min-height:100vh;display:grid}.rail{border-right:1px solid var(--border-subtle);background:var(--surface);flex-direction:column;align-items:center;gap:6px;height:100vh;padding:16px 8px;display:flex;position:sticky;top:0}.rail-logo{margin-bottom:16px}.rail-logo img{max-width:64px;height:auto}.rail-item{border-radius:var(--radius);width:100%;color:var(--text-2);flex-direction:column;align-items:center;gap:4px;padding:8px 4px;font-size:.75rem;font-weight:500;text-decoration:none;display:flex}.rail-item svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linejoin:round;width:22px;height:22px}.rail-item:hover{background:var(--surface-low)}.rail-item[aria-current=page]{background:var(--primary-soft);color:var(--primary)}.main{flex-direction:column;min-width:0;display:flex}.topbar{border-bottom:1px solid var(--border-subtle);background:var(--surface);justify-content:flex-end;align-items:center;gap:12px;height:60px;padding:0 24px;display:flex}.role-pill{background:var(--surface-2);color:var(--text-2);border-radius:999px;padding:3px 10px;font-size:.8rem;font-weight:600}.user-menu{position:relative}.avatar-button{color:var(--text);background:0 0;border:1px solid #0000;border-radius:999px;align-items:center;gap:10px;padding:4px 10px 4px 4px;display:flex}.avatar-button:hover,.avatar-button[aria-expanded=true]{border-color:var(--border-subtle);background:var(--surface-low)}.avatar{background:var(--primary);width:34px;height:34px;color:var(--on-primary);border-radius:50%;place-items:center;font-size:.85rem;font-weight:700;display:grid}.user-name{font-weight:600}.menu{z-index:10;border:1px solid var(--border-subtle);border-radius:var(--radius);background:var(--surface);min-width:240px;box-shadow:var(--shadow-lg);padding:6px;position:absolute;top:calc(100% + 8px);right:0}.menu-head{border-bottom:1px solid var(--border-subtle);flex-direction:column;margin-bottom:6px;padding:10px 12px;display:flex}.menu-head span{color:var(--text-2);font-size:.88rem}.menu-head small{color:var(--hint);margin-top:6px}.menu button{width:100%;color:var(--text);text-align:left;background:0 0;border:0;border-radius:6px;padding:9px 12px}.menu button:hover{background:var(--surface-low)}.content{flex:1;padding:32px}.page{max-width:1040px}.page>.muted{margin:0 0 24px}.grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;display:grid}.card{border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow);padding:22px}.card p{color:var(--text-2);margin:0}.details{gap:10px;margin:12px 0 16px;display:grid}.details div{grid-template-columns:140px 1fr;gap:12px;display:grid}.details dt{color:var(--hint)}.details dd{overflow-wrap:anywhere;margin:0}.center-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:20px;min-height:100vh;display:flex}.spinner{border:3px solid var(--surface-3);border-top-color:var(--primary);border-radius:50%;width:28px;height:28px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:2.4s}}
.danger,.danger-outline{border-radius:var(--radius);padding:11px 18px;font-weight:600}.danger{background:var(--error);color:#fff;border:0}.danger-outline{border:1px solid var(--error);background:var(--surface);color:var(--error)}.danger-text{color:var(--error)!important}button.small{padding:6px 12px;font-size:.88rem}.button-link{align-items:center;text-decoration:none;display:inline-flex}.icon-button{width:36px;height:36px;color:var(--text-2);background:0 0;border:0;border-radius:50%;place-items:center;padding:0;display:inline-grid}.icon-button:hover,.icon-button[aria-pressed=true]{background:var(--surface-2);color:var(--text)}.icon-button svg,.chat-avatar svg,.pane-empty svg,.muted-icon,.to-bottom svg,.send-button svg,.msg-menu-button svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round}.icon-button svg{width:20px;height:20px}.textarea{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:100%;color:var(--text);font:inherit;resize:vertical;padding:10px 12px}.rail-item{position:relative}.rail-badge,.unread-badge,.mention-badge{background:var(--secondary);color:#fff;border-radius:999px;place-items:center;min-width:20px;height:20px;padding:0 6px;font-size:.72rem;font-weight:700;display:inline-grid}.rail-badge{position:absolute;top:2px;right:10px}.unread-badge.quiet{background:var(--hint)}.mention-badge{background:var(--primary);padding:0}.toast{z-index:50;border-radius:var(--radius);background:var(--text);max-width:min(520px,90vw);color:var(--bg);box-shadow:var(--shadow-lg);padding:10px 18px;font-size:.92rem;position:fixed;bottom:28px;left:50%;transform:translate(-50%)}.modal{border-radius:var(--radius-lg);background:var(--surface);width:min(440px,92vw);color:var(--text);box-shadow:var(--shadow-lg);border:0;padding:0}.modal.wide{width:min(640px,92vw)}.modal::backdrop{background:#0b132673}.modal-body{padding:20px 22px 22px}.modal-head{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.modal-head h2{margin:0}.modal-text{color:var(--text-2);margin:0 0 8px}.modal-actions{justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.choices{border:0;margin:4px 0 0;padding:0}.choices .check{margin-top:10px}.info-list h4{color:var(--text-2);margin:16px 0 6px;font-size:.85rem}.info-list ul{margin:0;padding:0;list-style:none}.info-list li{border-bottom:1px solid var(--border-subtle);justify-content:space-between;gap:12px;padding:6px 0;display:flex}.content.flush{padding:0;overflow:hidden}.chats{grid-template-columns:minmax(280px,360px) 1fr;height:calc(100vh - 60px);display:grid}.chat-list{border-right:1px solid var(--border-subtle);background:var(--surface);flex-direction:column;min-height:0;display:flex}.chat-list-head{justify-content:space-between;align-items:center;padding:16px 16px 8px;display:flex}.chat-list-head h1{margin:0;font-size:1.3rem}.offline-pill{background:var(--warn-soft);color:var(--warn-text);border-radius:999px;padding:2px 10px;font-size:.78rem}.chat-search{padding:0 12px 10px}.chat-search input,input.member-search{background:var(--surface-low);border-radius:999px;padding:8px 12px}.chat-rows{flex:1;overflow-y:auto}.chat-row{color:inherit;align-items:center;gap:12px;padding:10px 14px;text-decoration:none;display:flex}.chat-row:hover{background:var(--surface-low)}.chat-row[aria-current=page]{background:var(--primary-soft)}.chat-avatar{background:var(--surface-3);color:var(--text-2);border-radius:50%;flex:none;place-items:center;font-size:.9rem;font-weight:700;display:grid}.chat-avatar svg{width:55%;height:55%}.chat-avatar.type-batch{background:var(--primary-soft);color:var(--primary)}.chat-avatar.type-updates,.chat-avatar.type-support{background:var(--primary);color:var(--on-primary)}.chat-avatar.type-query{background:var(--warn-soft);color:var(--warn-text)}.chat-row-main{flex-direction:column;flex:1;min-width:0;display:flex}.chat-row-top,.chat-row-bottom{align-items:center;gap:6px;display:flex}.chat-row-title{text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:600;overflow:hidden}.chat-row-top time{color:var(--hint);font-size:.75rem}.chat-row-top time.unread{color:var(--secondary);font-weight:600}.chat-row-preview{color:var(--text-2);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:.88rem;overflow:hidden}.muted-icon{width:16px;height:16px;color:var(--hint);flex:none}.list-state{text-align:center;padding:24px 16px}.list-spinner{margin:32px auto}.chat-pane{background:var(--bg);min-width:0;min-height:0}.pane-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;height:100%;padding:24px;display:flex}.pane-empty svg{width:56px;height:56px;color:var(--hint);margin-bottom:12px}.room{grid-template-columns:1fr;height:100%;display:grid}.room.with-info{grid-template-columns:1fr minmax(300px,360px)}.room-main{flex-direction:column;min-width:0;min-height:0;display:flex;position:relative}.room-head{border-bottom:1px solid var(--border-subtle);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;padding:8px 12px 8px 16px;display:flex}.room-title{min-width:0;color:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:12px;padding:4px 8px 4px 0;display:flex}.room-title>span{flex-direction:column;min-width:0;display:flex}.room-title strong,.room-title small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.room-tools{gap:4px;display:flex}.query-banner{border-bottom:1px solid var(--border-subtle);background:var(--warn-soft);color:var(--warn-text);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;padding:10px 16px;font-size:.92rem;display:flex}.query-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.stars button{color:#f59e0b;background:0 0;border:0;padding:0 2px;font-size:1.3rem;line-height:1}.messages{background:radial-gradient(circle at 1px 1px, var(--surface-2) 1px, transparent 0) 0 0 / 22px 22px, var(--bg);flex:1;padding:12px 6% 16px;overflow-y:auto}.older{text-align:center;margin:4px 0 12px}.day-divider,.unread-divider,.system-line{justify-content:center;margin:14px 0 8px;display:flex}.day-divider span,.system-line span{background:var(--surface);box-shadow:var(--shadow);color:var(--text-2);border-radius:999px;padding:4px 12px;font-size:.78rem}.system-line span{text-align:center;max-width:80%}.unread-divider span{background:var(--primary-soft);width:100%;color:var(--primary);text-align:center;padding:4px;font-size:.8rem;font-weight:600}.msg{margin-top:2px;display:flex;position:relative}.msg.first{margin-top:10px}.msg.mine{justify-content:flex-end}.bubble{background:var(--surface);max-width:min(620px,72%);box-shadow:var(--shadow);overflow-wrap:anywhere;border-radius:12px;padding:6px 10px;position:relative}.msg.mine .bubble{background:var(--primary);color:var(--on-primary)}.msg.mine .bubble a{color:inherit}.msg.first.theirs .bubble{border-top-left-radius:4px}.msg.first.mine .bubble{border-top-right-radius:4px}.bubble.pending{opacity:.85}.bubble.deleted{font-style:italic;background:var(--surface-2)!important;color:var(--hint)!important}.bubble.card-bubble{width:min(420px,100%);padding:0;overflow:hidden;background:var(--surface)!important;color:var(--text)!important}.bubble.card-bubble .sender,.bubble.card-bubble .msg-meta{padding:0 12px}.bubble.card-bubble .sender{padding-top:8px}.bubble.card-bubble .msg-meta{padding-bottom:8px}.sender{align-items:center;gap:6px;margin-bottom:2px;font-size:.82rem;font-weight:700;display:flex}.sender.c0{color:#2563eb}.sender.c1{color:#0d9488}.sender.c2{color:#c2410c}.sender.c3{color:#7c3aed}.sender.c4{color:#be185d}.sender.c5{color:#15803d}@media (prefers-color-scheme:dark){.sender.c0{color:#60a5fa}.sender.c1{color:#2dd4bf}.sender.c2{color:#fb923c}.sender.c3{color:#a78bfa}.sender.c4{color:#f472b6}.sender.c5{color:#4ade80}}.sender-role{background:var(--surface-2);color:var(--text-2);border-radius:999px;padding:0 6px;font-size:.68rem;font-weight:600}.msg-text{white-space:pre-wrap}.mention{color:var(--primary);font-weight:600}.msg.mine .mention{color:inherit;text-decoration:underline}.msg-meta{float:right;color:var(--hint);align-items:center;gap:4px;margin:6px 0 -2px 12px;font-size:.7rem;line-height:1;display:inline-flex}.msg.mine .msg-meta{color:#fffc}.tick{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:16px;height:14px}.tick.read{color:#67e8f9}.tick.failed{color:var(--error)}@media (prefers-color-scheme:dark){.msg.mine .msg-meta{color:#0b1326b3}.tick.read{color:#1e40af}}.quote{border:0;border-left:3px solid var(--secondary);width:100%;color:inherit;text-align:left;background:#0000000f;border-radius:6px;flex-direction:column;margin:2px 0 6px;padding:6px 10px;font-size:.85rem;display:flex}.msg.mine .quote{background:#ffffff29;border-left-color:#ffffffb3}.quote-name{font-weight:700}.quote-text{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.deleted-text{font-size:.9rem}.photo img{background:var(--surface-2);object-fit:cover;border-radius:8px;width:100%;max-width:320px;max-height:360px;margin:2px 0 4px;display:block}.photo-missing{background:var(--surface-2);color:var(--hint);border-radius:8px;padding:18px 14px;font-size:.85rem}.file-chip{background:#0000000f;border-radius:8px;align-items:center;gap:10px;min-width:220px;margin:2px 0 4px;padding:8px 10px;text-decoration:none;display:flex;color:inherit!important}.msg.mine .file-chip{background:#ffffff29}.file-ext{background:var(--error);color:#fff;border-radius:6px;place-items:center;width:40px;height:40px;font-size:.7rem;font-weight:700;display:grid}.file-meta{flex-direction:column;min-width:0;display:flex}.file-name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.file-size{opacity:.75;font-size:.78rem}.card-msg-head{background:var(--primary-soft);color:var(--primary);padding:10px 12px;font-weight:700}.card-msg-rows{gap:4px;margin:10px 12px 0;font-size:.9rem;display:grid}.card-msg-rows div{grid-template-columns:90px 1fr;gap:8px;display:grid}.card-msg-rows dt{color:var(--hint)}.card-msg-rows dd{margin:0}.card-msg-body{white-space:pre-wrap;margin:10px 12px 0}.card-msg-answer{margin:10px 12px 0;font-weight:600}.card-msg-expiry{margin:6px 12px 0;font-size:.8rem}.card-msg-actions{flex-wrap:wrap;gap:8px;margin:12px 12px 4px;display:flex}.card-msg-actions>*{flex:1;justify-content:center;padding:8px 12px;font-size:.9rem}.msg-menu{opacity:0;align-self:flex-start;position:relative}.msg:hover .msg-menu,.msg-menu:focus-within{opacity:1}.msg.mine .msg-menu{order:-1}.msg-menu-button{background:var(--surface);width:28px;height:28px;box-shadow:var(--shadow);color:var(--text-2);border:0;border-radius:50%;place-items:center;margin:2px 4px;padding:0;display:grid}.msg-menu-button svg{width:16px;height:16px}.msg-menu .menu{min-width:170px;top:32px}.msg-menu.right .menu{left:0;right:auto}.msg-menu.left .menu{right:0}.msg-menu.up .menu{top:auto;bottom:32px}.msg.flash .bubble{outline:3px solid var(--secondary)}.failed-note{color:var(--error);white-space:nowrap;margin-top:2px;font-size:.8rem;position:absolute;top:100%;right:0}.msg:has(.failed-note){margin-bottom:22px}.typing{color:var(--text-2);margin-top:10px;font-size:.88rem;font-style:italic}.to-bottom{background:var(--surface);width:40px;height:40px;box-shadow:var(--shadow-lg);color:var(--text-2);border:0;border-radius:50%;place-items:center;display:grid;position:absolute;bottom:84px;right:24px}.to-bottom svg{width:20px;height:20px}.to-bottom .unread-badge{position:absolute;top:-6px;right:-6px}.read-only-note{border-top:1px solid var(--border-subtle);background:var(--surface);color:var(--text-2);text-align:center;padding:16px}.composer{border-top:1px solid var(--border-subtle);background:var(--surface);padding:10px 16px 14px;position:relative}.composer-row{align-items:flex-end;gap:10px;display:flex}.composer textarea{border:1px solid var(--border);background:var(--surface-low);min-height:44px;color:var(--text);font:inherit;resize:none;border-radius:22px;flex:1;padding:11px 14px;line-height:1.4}.composer textarea:focus{border-color:var(--primary);outline:none}.send-button{background:var(--primary);width:44px;height:44px;color:var(--on-primary);border:0;border-radius:50%;flex:none;place-items:center;display:grid}.send-button svg{width:20px;height:20px}.reply-bar{align-items:center;gap:8px;margin-bottom:8px;display:flex}.reply-bar .quote{margin:0}.mention-picker{z-index:5;border:1px solid var(--border-subtle);border-radius:var(--radius);background:var(--surface);width:min(360px,80%);max-height:280px;box-shadow:var(--shadow-lg);margin:0;padding:6px;list-style:none;position:absolute;bottom:calc(100% - 6px);left:16px;overflow-y:auto}.mention-picker li{cursor:pointer;border-radius:6px;justify-content:space-between;gap:12px;padding:8px 10px;display:flex}.mention-picker li[aria-selected=true]{background:var(--primary-soft)}.info-panel{border-left:1px solid var(--border-subtle);background:var(--surface);flex-direction:column;min-height:0;display:flex}.info-head{border-bottom:1px solid var(--border-subtle);justify-content:space-between;align-items:center;padding:12px 12px 12px 18px;display:flex}.info-head h2{margin:0}.info-body{flex:1;overflow-y:auto}.info-body section{border-bottom:1px solid var(--border-subtle);padding:16px 18px}.info-title{margin:0 0 8px;font-size:1.1rem}.info-body h4{color:var(--text-2);margin:0 0 10px;font-size:.85rem}.info-body .details div{grid-template-columns:90px 1fr}.switch-row{margin:0}.media-grid{grid-template-columns:repeat(3,1fr);gap:4px;margin-bottom:8px;display:grid}.media-grid img{aspect-ratio:1;object-fit:cover;border-radius:6px;width:100%;display:block}.media-file{text-overflow:ellipsis;white-space:nowrap;padding:6px 0;display:block;overflow:hidden}input.member-search{margin-bottom:8px}.members{margin:0;padding:0;list-style:none}.members li{align-items:center;gap:10px;padding:8px 0;display:flex}.avatar.small{flex:none;width:32px;height:32px;font-size:.75rem}.member-main{flex-direction:column;flex:1;min-width:0;display:flex}.member-name{align-items:center;gap:6px;font-weight:600;display:flex}.member-sub{color:var(--hint);font-size:.8rem}.member-actions{flex-direction:column;align-items:flex-end;gap:2px;font-size:.85rem;display:flex}@media (max-width:1100px){.room.with-info{grid-template-columns:1fr}.room.with-info .info-panel{z-index:20;width:min(360px,90vw);box-shadow:var(--shadow-lg);position:fixed;top:60px;bottom:0;right:0}}.attach-button{width:44px;height:44px;color:var(--text-2);background:0 0;border:0;border-radius:50%;flex:none;place-items:center;display:grid}.attach-button:hover{background:var(--surface-2);color:var(--text)}.attach-button svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.file-tray{gap:8px;margin:0 0 10px;padding:0;list-style:none;display:flex;overflow-x:auto}.file-tray li{border:1px solid var(--border-subtle);border-radius:var(--radius);background:var(--surface-low);flex-direction:column;flex:none;gap:4px;width:112px;padding:6px;display:flex;position:relative}.file-tray img,.file-tray .file-ext{object-fit:cover;border-radius:6px;width:100%;height:72px}.file-tray .file-ext{font-size:.9rem}.tray-name{text-overflow:ellipsis;white-space:nowrap;flex-direction:column;font-size:.75rem;display:flex;overflow:hidden}.tray-name small{color:var(--hint)}.tray-remove{color:#fff;background:#0b1326b3;border:0;border-radius:50%;place-items:center;width:22px;height:22px;padding:0;font-size:1rem;line-height:1;display:grid;position:absolute;top:2px;right:2px}.tray-preparing{text-align:center;justify-content:center;font-size:.8rem}.drop-overlay{z-index:30;border:3px dashed var(--primary);border-radius:var(--radius-lg);background:color-mix(in srgb, var(--primary-soft) 88%, transparent);pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.drop-overlay span{border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-lg);color:var(--primary);padding:12px 20px;font-weight:700}.outgoing-file{margin:2px 0 4px;position:relative}.outgoing-photo{object-fit:cover;border-radius:8px;width:100%;max-width:320px;max-height:360px;display:block}.upload-progress{background:#0000004d;border-radius:999px;height:6px;position:absolute;bottom:8px;left:8px;right:8px;overflow:hidden}.upload-progress span{background:#fff;height:100%;transition:width .2s;display:block}.failed-note.quiet{color:var(--hint)}.video{background:#000;border-radius:8px;width:100%;max-width:360px;max-height:360px;margin:2px 0 4px;display:block}.audio{width:280px;max-width:100%;margin:2px 0 4px;display:block}.viewer{z-index:60;color:#fff;background:#060a14eb;flex-direction:column;justify-content:center;align-items:center;padding:64px 72px 48px;display:flex;position:fixed;inset:0}.viewer-bar{justify-content:space-between;align-items:center;padding:10px 16px;display:flex;position:absolute;top:0;left:0;right:0}.viewer-bar>span:first-child{flex-direction:column;display:flex}.viewer-bar small,.viewer-bar .muted{color:#ffffffb3}.viewer-tools{align-items:center;gap:12px;display:flex}.icon-button.light{color:#fff}.icon-button.light:hover{color:#fff;background:#ffffff1f}.viewer-photo{object-fit:contain;border-radius:4px;max-width:100%;max-height:100%}.viewer-nav{color:#fff;background:#ffffff1f;border:0;border-radius:50%;place-items:center;width:48px;height:48px;font-size:2rem;line-height:1;display:grid;position:absolute;top:50%;transform:translateY(-50%)}.viewer-nav:hover{background:#ffffff38}.viewer-nav.prev{left:12px}.viewer-nav.next{right:12px}.viewer-caption{text-align:center;white-space:pre-wrap;max-width:70%;margin:0;position:absolute;bottom:12px}.bell{position:relative}.bell-badge{top:-2px;right:-4px}.menu.inbox{width:min(380px,90vw);max-height:70vh;padding:0;overflow-y:auto}.inbox-head{border-bottom:1px solid var(--border-subtle);background:var(--surface);justify-content:space-between;align-items:center;padding:12px 14px;display:flex;position:sticky;top:0}.menu.inbox ul{margin:0;padding:0;list-style:none}.menu .inbox-item{border-bottom:1px solid var(--border-subtle);border-radius:0;flex-direction:column;gap:2px;width:100%;padding:10px 14px;display:flex}.inbox-item.unread{background:var(--primary-soft)}.inbox-title{justify-content:space-between;gap:12px;font-weight:600;display:flex}.inbox-title time{color:var(--hint);flex:none;font-size:.75rem;font-weight:400}.inbox-body{color:var(--text-2);-webkit-line-clamp:3;white-space:pre-wrap;-webkit-box-orient:vertical;font-size:.88rem;display:-webkit-box;overflow:hidden}.inbox-empty{padding:16px 14px}.notify-prompt{border-radius:var(--radius);background:var(--primary-soft);flex-direction:column;gap:8px;margin:0 12px 10px;padding:10px 12px;font-size:.88rem;display:flex}.notify-actions{align-items:center;gap:12px;display:flex}
