.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.chat-unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:20px;background:#ed1c2e;color:#fff;font-size:.63rem;font-weight:750;line-height:1;flex:none}.app-navigation a>[data-chat-badge]{margin-left:auto}.bottom-navigation>a{position:relative}.bottom-navigation [data-chat-badge]{position:absolute;top:1px;left:calc(50% + 8px);font-size:.55rem;min-width:16px;height:16px;padding:0 4px;border:2px solid #fff}.chat-entry{display:flex;gap:17px;align-items:center;border:1px solid #e0e7ef;background:#fff;border-radius:18px;padding:23px;text-decoration:none;color:var(--ink);margin:20px 0 26px}.chat-entry:hover{background:#fff8f9;color:var(--ink);border-color:#f3c5cc}.chat-entry-icon{width:45px;height:45px;background:#fff0f3;color:var(--red);border-radius:13px;display:grid;place-items:center;flex:none}.chat-entry-icon svg{width:23px;height:23px}.chat-entry>div{flex:1;min-width:0}.chat-entry strong{font-size:.96rem}.chat-entry p{font-size:.8rem;color:var(--muted);margin:4px 0 0}.chat-entry-arrow{font-size:.76rem;color:var(--red-dark);font-weight:650;white-space:nowrap}.chat-page{height:var(--chat-screen,100dvh);overflow:hidden}.chat-page .app-footer{display:none}.chat-page .app-stage>.main{height:calc(var(--chat-screen,100dvh) - 86px);min-height:0;padding-block:24px;display:flex;flex-direction:column}.chat-shell{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 12px 40px #14203305;position:relative}.chat-room-header{display:flex;align-items:center;gap:15px;padding:20px 26px;background:#fff;border-bottom:1px solid var(--line);flex:none}.chat-room-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:#142033;color:#fff;flex:none}.chat-room-icon svg{width:24px;height:24px}.chat-room-header>div{min-width:0}.chat-room-header h1{font-size:1.25rem;letter-spacing:-.025em;margin:0 0 4px}.chat-room-header p{font-size:.74rem;color:var(--muted);margin:0}.chat-connection{margin-left:auto;color:#54816a;background:#eef7f2;border-radius:20px;padding:6px 10px;font-size:.62rem;white-space:nowrap}.chat-privacy-line{font-size:.67rem;background:#fafbfe;color:#8a95a5;padding:8px 26px;flex:none;border-bottom:1px solid #e9edf3}.chat-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:0 28px 20px;background-color:#f1f4f8;background-image:radial-gradient(#dce3ed 0.7px,transparent 0.7px);background-size:20px 20px;scrollbar-width:thin}.chat-history-control{text-align:center;padding:18px 0 5px}.chat-history-control .outline{background:#ffffffdf;font-size:.68rem;min-height:32px;padding:6px 12px}.chat-day{display:table;margin:20px auto;padding:5px 12px;border-radius:8px;border:1px solid #e1e7ef;background:#ffffffd9;color:#8190a3;font-size:.65rem;font-weight:550}.chat-message{display:flex;align-items:flex-start;gap:10px;margin-bottom:17px;min-width:0}.chat-avatar{display:grid;place-items:center;flex:none;width:31px;height:31px;border-radius:11px;background:#dce5f1;color:#59708e;font-size:.75rem;font-weight:750;margin-top:3px}.chat-bubble{max-width:76%;min-width:170px;background:#fff;border:1px solid #e2e8f0;border-radius:0 17px 17px 17px;padding:14px 17px 9px;box-shadow:0 3px 10px #14203303;overflow-wrap:anywhere}.chat-message.mine{justify-content:flex-end}.chat-message.mine .chat-avatar{display:none}.chat-message.mine .chat-bubble{background:#fff0f3;border-color:#f6d8df;border-radius:17px 0 17px 17px}.chat-message-head{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:2px}.chat-sender{font-size:.76rem;color:#334b69}.mine .chat-sender{color:#b71c35}.chat-admin-label{font-size:.48rem;text-transform:uppercase;letter-spacing:.06em;border-radius:4px;background:#edf1f7;color:#6d7f96;padding:2px 5px}.mine .chat-admin-label{background:#faddE4;color:#b26575}.chat-company{font-size:.6rem;color:#94a0ae;margin-bottom:10px}.chat-body{font-size:.9rem;line-height:1.65;white-space:pre-wrap;word-break:break-word;margin:8px 0 9px;color:#233347}.chat-body a{color:#b91735;overflow-wrap:anywhere}.chat-message-foot{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.chat-time{font-size:.6rem;color:#a0aabb;margin-right:auto}.chat-message-action{min-height:28px;padding:2px 0;border:0;border-radius:0;background:none;color:#78899e;font-size:.6rem;font-weight:550;cursor:pointer}.chat-message-action:hover{background:none;color:var(--red);text-decoration:underline}.chat-delete{color:#a57b84}.chat-deleted-text{font-size:.78rem;color:#93a0b1;font-style:italic;margin:10px 0}.is-deleted .chat-bubble{background:#f9fafc;border-style:dashed}.chat-quote{margin:12px 0 10px;border-left:3px solid #e5788c;border-radius:0 8px 8px 0;background:#14203305;padding:8px 12px;max-width:100%}.chat-quote strong{display:block;font-size:.64rem;color:#7c5462;margin-bottom:3px}.chat-quote span{display:block;font-size:.73rem;color:#8e8490;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.chat-composer{background:#fff;padding:17px 23px 10px;border-top:1px solid var(--line);flex:none}.chat-input-row{display:flex;gap:12px;align-items:flex-end}.chat-input-row textarea{resize:vertical;max-height:150px;min-height:56px;flex:1;font-size:.9rem;line-height:1.5;background:#f7f9fc;border-color:#e1e7f0;margin:0;border-radius:14px;padding:13px 16px}.chat-input-row>button{min-height:56px;padding:13px 20px;flex:none;border-radius:14px}.chat-input-row svg{width:19px;height:19px}.chat-composer-meta{display:flex;justify-content:space-between;gap:15px;font-size:.58rem;color:#9aa4b4;padding:8px 2px 0}.chat-status{margin:6px 0 0;min-height:5px;color:#a34d60;font-size:.7rem;line-height:1.45;overflow-wrap:anywhere}.chat-login-link{font-weight:700}.chat-reply-preview{display:flex;align-items:center;gap:12px;background:#fff2f5;border-left:3px solid #e77a91;border-radius:0 9px 9px 0;margin:0 0 12px;padding:10px 13px}.chat-reply-preview>div{flex:1;min-width:0}.chat-reply-preview strong{display:block;font-size:.7rem;color:#a5445b;margin-bottom:3px}.chat-reply-preview span{display:block;font-size:.75rem;color:#997f89;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-reply-preview>button{font-size:1.4rem;min-height:28px;line-height:1;color:#a37180;padding:0 3px}.chat-new-messages{position:absolute;bottom:143px;left:50%;transform:translateX(-50%);font-size:.7rem;min-height:34px;padding:7px 14px;box-shadow:0 5px 20px #14203320;z-index:2;white-space:nowrap}.chat-empty{text-align:center;max-width:360px;margin:55px auto;color:#8a9aad}.chat-empty>span{width:65px;height:65px;display:grid;place-items:center;border:1px solid #e1e8f2;border-radius:20px;margin:0 auto 20px;background:#ffffffa6}.chat-empty svg{width:31px;height:31px}.chat-empty h2{font-size:1.25rem;color:#6b7f99}.chat-empty p{font-size:.84rem}.chat-highlight{outline:2px solid #eb8ea1;outline-offset:3px}@media(max-width:800px){.chat-entry{padding:19px;gap:13px}.chat-entry strong{font-size:.87rem}.chat-entry p{font-size:.72rem}.chat-entry-arrow{font-size:.65rem}.chat-page .app-stage>.main{width:100%;height:calc(var(--chat-screen,100dvh) - 75px - 78px - env(safe-area-inset-bottom,0px));padding:0}.chat-page .app-stage{padding-bottom:0}.chat-shell{border:0;border-radius:0;box-shadow:none}.chat-room-header{padding:15px 18px;gap:11px}.chat-room-icon{width:36px;height:36px;border-radius:11px}.chat-room-icon svg{width:21px;height:21px}.chat-room-header h1{font-size:1.05rem}.chat-room-header p{font-size:.62rem;max-width:220px}.chat-connection{font-size:.52rem;padding:5px 7px}.chat-privacy-line{font-size:.59rem;padding:8px 18px}.chat-scroll{padding:0 14px 14px}.chat-bubble{max-width:86%;min-width:140px;padding:12px 13px 7px}.chat-avatar{width:25px;height:25px;border-radius:8px;font-size:.65rem}.chat-message{gap:7px;margin-bottom:15px}.chat-body{font-size:.88rem}.chat-company{font-size:.57rem}.chat-message-action{font-size:.57rem;min-height:31px}.chat-sender{font-size:.7rem}.chat-composer{padding:12px 13px 8px}.chat-input-row{gap:8px}.chat-input-row textarea{font-size:16px;min-height:51px;max-height:115px;resize:none;padding:11px 13px}.chat-input-row>button{min-height:51px;width:48px;padding:10px}.chat-input-row>button>span{display:none}.chat-input-row svg{width:22px;height:22px}.chat-composer-meta{font-size:.51rem}.chat-new-messages{bottom:128px}.chat-empty{padding:0 20px;margin-top:40px}}@media(max-width:400px){.chat-room-header p{max-width:185px}.chat-connection{max-width:68px;white-space:normal;text-align:center}.chat-entry-arrow{display:none}.chat-room-header{padding-inline:14px}}

.chat-message-action{font-size:.65rem}@media(max-width:800px){.chat-message-action{font-size:.66rem;min-height:34px}.chat-sender{font-size:.75rem}.chat-company{font-size:.61rem}}

/* Lesbarer Chat, klare Räume und kompakte Reaktionen. */
.chat-rooms{display:flex;gap:8px;padding:12px 20px;background:#f8fafc;overflow-x:auto;flex:none;border-bottom:1px solid #cbd5e1}.chat-rooms a{display:flex;align-items:center;gap:8px;flex:none;padding:8px 13px;border:1px solid #a9b8cb;border-radius:12px;background:#fff;color:#23354c;font-size:.86rem;font-weight:700;text-decoration:none}.chat-rooms a[aria-current=page]{background:#142033;color:#fff;border-color:#142033}.chat-rooms b{background:#d90828;color:#fff;border-radius:12px;padding:0 6px;font-size:.75rem}.chat-privacy-line{font-size:.8rem;color:#40516a;background:#e9eef6;border-color:#c5d0e0}.chat-scroll{background:#e5ebf3;background-image:none}.chat-bubble{border:1px solid #b5c3d6;box-shadow:0 3px 9px #1420330a;max-width:80%;padding:14px 17px 10px}.chat-message.mine .chat-bubble{background:#dff4ec;border-color:#93c5b2}.chat-sender,.mine .chat-sender{font-size:.92rem;color:#142033}.chat-company{font-size:.77rem;color:#43536a}.chat-body{font-size:1rem;color:#132239;line-height:1.65}.chat-time{color:#43536a;font-size:.78rem}.chat-message-action{color:#354a67;font-size:.8rem;min-height:36px;padding:5px 4px}.chat-delete{color:#94223c}.chat-admin-label,.mine .chat-admin-label{font-size:.6rem;color:#34455f;background:#dce5f1}.chat-day{color:#34455f;font-size:.78rem;background:#fff;border-color:#bbc8d9}.chat-quote{background:#ffffff9e;border-color:#486f93}.chat-quote strong{color:#2b4566;font-size:.8rem}.chat-quote span{font-size:.85rem;color:#3b4b62}.chat-deleted-text{color:#4d607a}.chat-composer-meta{color:#43536a;font-size:.73rem}.chat-input-row textarea{background:#fff;color:#142033;border:2px solid #8b9eb9;font-size:1rem}.chat-input-row textarea::placeholder{color:#53637a;opacity:1}.chat-connection{background:#dff4ec;color:#245440;font-size:.75rem}.chat-reply-preview strong{color:#713042;font-size:.85rem}.chat-reply-preview span{color:#59404d;font-size:.83rem}.chat-empty,.chat-empty h2{color:#43536a}.chat-status{font-size:.85rem;color:#8d203b}.chat-reactions{display:flex;gap:5px;flex-wrap:wrap;margin:12px 0 5px}.chat-reaction{background:#fff;color:#22344d;min-height:34px;min-width:38px;padding:4px 8px;border:1px solid #a4b3c6;border-radius:20px;font-size:.95rem;line-height:1.3}.chat-reaction:hover{background:#dbeafe;color:#132239;border-color:#456487}.chat-reaction[aria-pressed=true]{background:#174c43;color:#fff;border-color:#174c43;box-shadow:0 0 0 2px #7bc2ae}.chat-image-link{display:block;max-width:420px;margin:10px 0}.chat-posted-image{display:block;width:auto;max-width:100%;max-height:340px;object-fit:contain;border-radius:12px;border:1px solid #b4c0d0;background:#fff}.chat-upload-row{display:flex;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap}.chat-upload-row>span{font-size:.75rem;color:#43536a}.chat-upload-label{position:relative;overflow:hidden;cursor:pointer;margin:0;border-color:#8c9fb9;color:#263b56;font-size:.82rem}.chat-upload-label input{position:absolute;width:100%;height:100%;inset:0;opacity:0;cursor:pointer;margin:0}.chat-upload-label:focus-within{outline:3px solid #186aa0;outline-offset:2px}.chat-attachment{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #a9bdcf;background:#eef5fb;border-radius:12px;margin-top:12px}.chat-attachment img{width:64px;height:64px;object-fit:cover;border-radius:8px}.chat-attachment>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:.8rem;color:#23354c}.chat-new-messages{bottom:190px}@media(max-width:800px){.chat-rooms{padding:9px 12px}.chat-rooms a{font-size:.8rem;padding:7px 10px}.chat-privacy-line{font-size:.72rem;padding:8px 14px}.chat-bubble{max-width:88%;padding:11px 12px 8px}.chat-sender,.mine .chat-sender{font-size:.85rem}.chat-company{font-size:.72rem}.chat-body{font-size:.96rem}.chat-time{font-size:.72rem}.chat-message-action{font-size:.76rem}.chat-reaction{min-height:36px;min-width:37px;padding:5px 7px}.chat-composer-meta{font-size:.67rem}.chat-upload-row>span{font-size:.67rem}.chat-upload-row{gap:7px;margin-top:7px}.chat-upload-label{padding:6px 10px;min-height:36px}.chat-new-messages{bottom:180px}.chat-attachment{gap:8px}.chat-attachment button{padding:6px 10px;font-size:.7rem}.chat-room-header p{font-size:.72rem}.chat-connection{font-size:.67rem}.chat-posted-image{max-height:260px}}
@media(prefers-color-scheme:dark){.chat-shell,.chat-room-header,.chat-composer{background:#172131;color:#edf2fb}.chat-room-header h1{color:#edf2fb}.chat-room-header p{color:#bac9dd}.chat-scroll{background:#101925}.chat-rooms{background:#131e2c;border-color:#475b74}.chat-rooms a{background:#263449;color:#e3edf9;border-color:#6b809a}.chat-rooms a[aria-current=page]{background:#dff4ec;color:#132b26;border-color:#b8e2d2}.chat-privacy-line{background:#233147;color:#d2ddee;border-color:#536b87}.chat-bubble{background:#25344b;border-color:#68819f}.chat-message.mine .chat-bubble{background:#174d43;border-color:#66ac96}.chat-sender,.mine .chat-sender,.chat-body{color:#f0f6ff}.chat-company,.chat-time{color:#c3d3e8}.chat-message-action{color:#c6d9f3}.chat-delete{color:#ffc5ce}.chat-quote{background:#ffffff12;border-color:#94c8e5}.chat-quote strong,.chat-quote span{color:#dfebf9}.chat-input-row textarea{background:#0f1928;color:#f2f6ff;border-color:#94abc9}.chat-input-row textarea::placeholder{color:#c0cfe3}.chat-composer-meta,.chat-upload-row>span,.chat-empty,.chat-empty h2{color:#c2d1e5}.chat-upload-label,.chat-reaction{background:#263850;color:#f0f6ff;border-color:#9aadca}.chat-reaction[aria-pressed=true]{background:#cef1e4;color:#102c23;border-color:#cef1e4}.chat-status{color:#ffc3d1}.chat-attachment{background:#27394f;border-color:#8da3c0}.chat-attachment>span{color:#edf4ff}.chat-deleted-text{color:#c4d1e3}.is-deleted .chat-bubble{background:#202b3b}}
.chat-room-header h1{overflow-wrap:anywhere}

/* Reaktionen sitzen als dezente letzte Zeile am unteren Nachrichtenrand. */
.chat-reactions{gap:3px;margin:7px 0 -2px;align-items:center}.chat-reaction{display:inline-flex;align-items:center;justify-content:center;min-height:26px;min-width:26px;padding:2px 4px;border:0;border-radius:7px;background:transparent;color:#43536a;font-size:.82rem;line-height:1.25;box-shadow:none}.chat-reaction:hover{background:#1420330c;color:#142033;border:0;text-decoration:none}.chat-reaction[aria-pressed=true]{background:#d1e9e1;color:#143d32;border:0;box-shadow:inset 0 0 0 1px #77a995}.chat-message.mine .chat-reactions{justify-content:flex-end}.chat-reaction-summary{background:#14203308;cursor:default;min-width:0;padding:3px 6px;font-size:.78rem}.chat-reaction-summary:hover{background:#14203308}.chat-reaction:focus-visible{outline:2px solid #186aa0;outline-offset:2px}@media(max-width:800px){.chat-reaction{min-height:30px;min-width:28px;padding:3px 4px;font-size:.84rem}.chat-reaction-summary{min-height:24px;min-width:0;font-size:.76rem}}@media(prefers-color-scheme:dark){.chat-reaction{background:transparent;color:#d0deee;border:0}.chat-reaction:hover{background:#ffffff13;color:#fff}.chat-reaction[aria-pressed=true]{background:#315e53;color:#fff;box-shadow:inset 0 0 0 1px #8bc8b4}.chat-reaction-summary,.chat-reaction-summary:hover{background:#ffffff12;color:#e5f0f9}}

/* Kompakter Chat: verfügbare Höhe gehört dem Verlauf. */
body.chat-page{position:fixed;left:0;top:var(--chat-screen-top,0px);width:100%;height:var(--chat-screen,100dvh);overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) auto;min-height:0}
.chat-page .app-stage{height:100%;min-height:0;display:flex;flex-direction:column;padding-bottom:0}
.chat-page .app-topbar{height:52px;min-height:52px;flex:none;padding:4px 20px;gap:12px;position:relative}
.chat-page .topbar-label>span,.chat-page .desktop-install,.chat-page .topbar-user{display:none}
.chat-page .topbar-label strong{font-size:.85rem}.chat-page .topbar-actions{gap:12px}
.chat-page .app-stage>.main{height:auto;min-height:0;flex:1;display:flex;flex-direction:column;width:calc(100% - 24px);padding:8px 0;margin:0 auto}
.chat-shell{border-radius:14px}.chat-room-header{position:relative;gap:8px;padding:7px 12px;min-height:43px}
.chat-room-icon{width:27px;height:27px;border-radius:8px}.chat-room-icon svg{width:17px;height:17px}
.chat-room-header h1{font-size:1rem;line-height:1.2;margin:0}.chat-room-header>div>p{display:none}
.chat-connection{font-size:.65rem;padding:3px 7px}.chat-rooms{gap:6px;padding:5px 12px}
.chat-rooms a{font-size:.78rem;line-height:1.2;padding:6px 9px;min-height:30px;border-radius:8px}
.chat-room-details{flex:none}.chat-room-details summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:29px;height:29px;border-radius:8px;color:#40516a;font-size:1.15rem}
.chat-room-details summary::-webkit-details-marker{display:none}.chat-room-details summary:hover{background:#1420330a}
.chat-room-info-popover{position:absolute;right:8px;top:calc(100% - 2px);width:min(360px,calc(100% - 16px));padding:14px;z-index:5;border:1px solid #b5c3d6;border-radius:12px;background:#fff;color:#23354c;box-shadow:0 8px 28px #14203324;font-size:.8rem}
.chat-room-info-popover .chat-privacy-line{background:transparent;border:0;padding:0;margin:0 0 8px;font-size:.8rem;color:inherit}.chat-room-info-popover p{margin:0 0 8px;line-height:1.5}.chat-room-info-popover p:last-child{margin:0}
.chat-scroll{padding:0 16px 10px}.chat-history-control{padding:5px 0 0}.chat-day{margin:8px auto;padding:3px 9px;font-size:.72rem}
.chat-message{margin-bottom:10px}.chat-bubble{padding:10px 13px 7px}.chat-company{margin-bottom:4px}.chat-body{margin:5px 0 5px;line-height:1.5}
.chat-message-foot{gap:10px}.chat-message-action{min-height:28px;padding:3px 2px}.chat-reactions{margin-top:4px}
.chat-image-link{max-width:290px;margin:6px 0}.chat-posted-image{max-height:190px;max-width:100%;object-fit:contain}
.chat-composer{padding:7px 10px;border-top:1px solid #b8c6d8}.chat-input-row{gap:7px;align-items:flex-end}
.chat-input-row textarea{min-height:40px;max-height:112px;resize:none;padding:8px 11px;font-size:16px;line-height:1.35;border-width:1px;border-radius:12px;overflow-y:auto}
.chat-input-row>button{min-height:40px;height:40px;padding:8px 13px;border-radius:12px}.chat-input-row svg{width:19px;height:19px}
.chat-attach-button{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:40px;margin:0;border:1px solid #a5b6cd;border-radius:10px;background:#f2f6fb;color:#263b56;cursor:pointer;font-size:1.15rem;overflow:hidden}
.chat-attach-button input{position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;opacity:0;cursor:pointer}.chat-attach-button:focus-within{outline:2px solid #186aa0;outline-offset:2px}
.chat-composer-meta{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
.chat-status:empty{display:none}.chat-status{font-size:.76rem;line-height:1.35;margin:5px 0 0;min-height:0}
.chat-reply-preview{padding:5px 9px;margin:0 0 6px}.chat-reply-preview strong{font-size:.76rem;margin-bottom:1px}.chat-reply-preview span{font-size:.76rem}
.chat-attachment{padding:6px 8px;margin-top:6px;gap:8px}.chat-attachment img{width:40px;height:40px}.chat-attachment>span{font-size:.75rem}.chat-attachment button{min-height:30px;padding:4px 9px;font-size:.72rem}
.chat-new-messages{bottom:calc(var(--chat-composer-height,56px) + 8px);min-height:30px;font-size:.72rem;padding:6px 10px}
@media(max-width:800px){
 .chat-page .app-topbar{height:calc(48px + env(safe-area-inset-top,0px));min-height:calc(48px + env(safe-area-inset-top,0px));padding:calc(3px + env(safe-area-inset-top,0px)) 12px 3px;gap:8px}
 .chat-page .mobile-brand img{width:28px;height:28px;border-radius:5px}.chat-page .topbar-label,.chat-page .inbox-alert{display:none}
 .chat-page .topbar-actions{gap:8px;margin-left:auto}.chat-page .mobile-menu-button{width:32px;min-height:32px;height:32px;padding:5px}
 .chat-page .portal-view-switch{padding:2px;border-radius:9px}.chat-page .portal-view-switch button{font-size:.66rem;min-height:29px;padding:4px 7px;border-radius:7px}
 .chat-page .app-stage>.main{width:100%;padding:0}.chat-shell{border:0;border-radius:0}
 .chat-room-header{padding:5px 10px;min-height:38px;gap:7px}.chat-room-header h1{font-size:.92rem}.chat-room-icon{width:24px;height:24px;border-radius:7px}.chat-room-icon svg{width:16px;height:16px}
 .chat-room-details summary{width:26px;height:26px}.chat-connection{font-size:.61rem;padding:3px 6px;max-width:none;white-space:nowrap}
 .chat-rooms{padding:4px 10px;gap:5px}.chat-rooms a{font-size:.75rem;padding:5px 8px;min-height:28px}
 .chat-scroll{padding:0 10px 8px}.chat-avatar{display:none}.chat-bubble{max-width:92%;padding:9px 11px 6px}.chat-body{font-size:1rem}.chat-sender,.mine .chat-sender{font-size:.83rem}.chat-company{font-size:.69rem;margin-bottom:3px}
 .chat-message-action{min-height:28px;font-size:.73rem}.chat-reaction{min-height:28px;min-width:28px;font-size:.8rem}.chat-reaction-summary{min-height:22px}
 .chat-image-link{max-width:245px}.chat-posted-image{max-height:min(170px,28dvh)}
 .chat-composer{padding:6px 8px}.chat-input-row{gap:6px}.chat-input-row>button{width:40px;height:40px;min-height:40px;padding:8px}.chat-attach-button{width:32px;height:40px}
 .chat-page .bottom-navigation{position:relative;inset:auto;height:calc(48px + env(safe-area-inset-bottom,0px));padding:3px 6px calc(3px + env(safe-area-inset-bottom,0px));box-shadow:none;min-height:0}
 .chat-page .bottom-navigation>a,.chat-page .bottom-navigation>button{min-height:38px;padding:2px;gap:1px;font-size:.55rem;border-radius:7px;line-height:1.2}
 .chat-page .bottom-navigation svg{width:18px;height:18px}.chat-page.chat-keyboard-open .bottom-navigation{display:none}
 .chat-page.chat-keyboard-open .app-topbar{height:calc(40px + env(safe-area-inset-top,0px));min-height:calc(40px + env(safe-area-inset-top,0px))}
}
@media(prefers-color-scheme:dark){.chat-room-details summary{color:#d4e1f2}.chat-room-details summary:hover{background:#ffffff12}.chat-room-info-popover{background:#1d2b40;border-color:#7d94b1;color:#e5eef9}.chat-attach-button{background:#263850;color:#f0f6ff;border-color:#8ea3c0}}
