/* Schwebend: Chat presentation only. Message, identity and permission logic stay native. */
html[data-chat-layout="floating"] {
 --floating-canvas:#f1f0f5;--floating-paper:#fff;--floating-ink:#26252c;--floating-muted:#6c6976;
 --floating-line:#e7e5ec;--floating-accent:#694d9e;--floating-action:#694d9e;--floating-action-ink:#fff;
 --floating-soft:#eee8f6;--floating-bubble:#eeeaf4;--floating-shadow:0 4px 20px #31244a12;
 --floating-font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 --kira-shell-height:68px;--chat-ui-font:var(--floating-font);--chat-heading-font:var(--floating-font);
 --ink:var(--floating-ink);--muted:var(--floating-muted);--line:var(--floating-line);
}
html[data-chat-layout="floating"][data-theme="dark"] {
 --floating-canvas:#18171e;--floating-paper:#25232c;--floating-ink:#f1eff6;--floating-muted:#b5b0c2;
 --floating-line:#383541;--floating-accent:#bea5ed;--floating-action:#a88ad7;--floating-action-ink:#21172f;
 --floating-soft:#3a2f4c;--floating-bubble:#3a3446;--floating-shadow:0 4px 20px #00000038;
}
/* Keep deliberately chosen colour families; the layout is shared. */
html[data-chat-layout="floating"]:is([data-palette="outlook"],[data-palette="waldkauz"],[data-palette="flamingo"],[data-palette="eisvogel"],[data-palette="panther"]) {
 --floating-canvas:var(--palette-paper);--floating-paper:var(--palette-surface);--floating-ink:var(--palette-ink);
 --floating-muted:var(--palette-muted);--floating-line:var(--palette-border);--floating-accent:var(--palette-link);
 --floating-action:var(--palette-action);--floating-soft:var(--palette-soft);--floating-bubble:var(--palette-outgoing);
}
html[data-chat-layout="floating"] :is(button,input,select,textarea,[contenteditable]),html[data-chat-layout="floating"] body {font-family:var(--floating-font)}
html[data-chat-layout="floating"] body {background:var(--floating-canvas);color:var(--floating-ink);font-size:13px}
html[data-chat-ui][data-chat-layout="floating"] .messenger-bar {
 background:var(--floating-canvas)!important;color:var(--floating-ink)!important;height:var(--kira-shell-height);min-height:var(--kira-shell-height);
 padding:12px 20px;gap:9px;border:0;box-shadow:none;
}
html[data-chat-ui][data-chat-layout="floating"] .messenger-bar::after {display:none}
html[data-chat-ui][data-chat-layout="floating"] .messenger-bar .compact-brand {width:auto;height:36px;flex:0 0 auto;text-decoration:none;display:flex;align-items:center;gap:0}
html[data-chat-ui][data-chat-layout="floating"] .chat-wordmark {display:block;color:var(--floating-accent);font:700 25px/1 var(--floating-font);letter-spacing:-1.8px}
html[data-chat-ui][data-chat-layout="floating"] .compact-brand img {display:none;width:36px;height:36px;flex-basis:36px;mix-blend-mode:normal}
html[data-chat-layout="floating"][data-chat-brand="logo"] .compact-brand img {display:block}
html[data-chat-layout="floating"][data-chat-brand="logo"] .chat-wordmark {display:none}
html[data-chat-ui][data-chat-layout="floating"] .chat-module-identity {min-width:0;display:flex;flex-direction:row;align-items:center;gap:0;flex:none}
html[data-chat-ui][data-chat-layout="floating"] .chat-module-identity strong {font:600 17px/1.2 var(--floating-font);letter-spacing:-.4px;color:var(--floating-ink)}
html[data-chat-ui][data-chat-layout="floating"] .chat-module-identity small {display:none}
html[data-chat-ui][data-chat-layout="floating"] .chat-header-search {height:38px;border:0;border-radius:11px;background:var(--floating-paper);color:var(--floating-muted);width:clamp(240px,38vw,480px)}
html[data-chat-ui][data-chat-layout="floating"] .chat-header-search input {height:38px!important;min-height:38px!important;font-size:13px;color:var(--floating-ink)}
html[data-chat-ui][data-chat-layout="floating"] .chat-header-search button {height:36px;min-height:36px}
html[data-chat-ui][data-chat-layout="floating"] .messenger-bar :is(.session-tools,.kira-header-trailing) {color:var(--floating-muted)}
html[data-chat-layout="floating"] :is(.chat-floating-rail,.chat-floating-rail *) {box-sizing:border-box}
.chat-floating-rail {display:none}
@media(min-width:761px) {
 html[data-chat-layout="floating"][data-floating-navigation] .chat-floating-rail:not([hidden]) {position:fixed;left:10px;top:calc(var(--kira-shell-height) + 8px);bottom:18px;width:44px;z-index:6;display:flex;flex-direction:column;gap:10px}
 html[data-chat-layout="floating"] .chat-floating-links {display:flex;flex-direction:column;gap:7px;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
 html[data-chat-layout="floating"] .chat-floating-rail .kira-mobile-item {position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;min-width:44px;padding:10px;border:0;border-radius:12px;background:transparent;color:var(--floating-muted);text-decoration:none;box-shadow:none}
 html[data-chat-layout="floating"] .chat-floating-rail .kira-mobile-item>span:not(.chat-floating-badge) {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 html[data-chat-layout="floating"] .chat-floating-rail .kira-mobile-item svg {width:21px;height:21px;flex-shrink:0}
 html[data-chat-layout="floating"] .chat-floating-rail .kira-mobile-item:hover,html[data-chat-layout="floating"] .chat-floating-rail .kira-mobile-item[aria-current="page"] {background:var(--floating-soft);color:var(--floating-accent)}
 html[data-chat-layout="floating"] .chat-floating-rail .kira-desktop-more {display:grid!important;place-items:center;flex:none;width:44px;height:44px;min-width:44px;margin:0;padding:11px;border:0;border-radius:12px;color:var(--floating-muted);background:transparent}
 html[data-chat-layout="floating"] .chat-floating-rail .kira-desktop-more:hover {background:var(--floating-soft);color:var(--floating-accent)}
 html[data-chat-layout="floating"] .chat-floating-rail .kira-desktop-more svg {width:20px;height:20px}
 html[data-chat-layout="floating"] .chat-floating-badge {position:absolute;right:1px;top:0;display:flex;align-items:center;justify-content:center;min-width:15px;height:15px;padding:0 3px;border-radius:9px;background:var(--floating-action);color:var(--floating-action-ink);font-size:9px;line-height:1}
 html[data-chat-layout="floating"][data-floating-navigation] .messenger-bar .kira-desktop-more {display:none!important}
}
html[data-chat-layout="floating"] body:has(#workspace:not([hidden]))>#workspace {
 position:relative;display:flex;flex:1;min-height:0;height:auto;width:100%;max-width:none;margin:0;padding:0 17px 17px 16px;gap:5px;background:var(--floating-canvas);overflow:hidden;
}
@media(min-width:761px) {html[data-chat-layout="floating"] body:has(#workspace:not([hidden]))>#workspace {padding-left:66px}}
html[data-chat-layout="floating"] #sidebar {width:312px;min-width:0;flex:0 0 312px;background:transparent!important;border:0;padding:0 8px 0 10px;box-shadow:none;overflow:hidden}
html[data-chat-ui][data-chat-layout="floating"] #sidebar .sidebar-head {display:flex!important;align-items:center;justify-content:space-between;min-height:48px;padding:3px 10px 7px;gap:8px}
html[data-chat-layout="floating"] .sidebar-head h1 {margin:0;font:650 23px/1.2 var(--floating-font);letter-spacing:-.6px;color:var(--floating-ink)}
html[data-chat-layout="floating"] .sidebar-head #new-chat {position:static!important;inset:auto!important;flex:none;width:36px;height:36px;min-width:36px;min-height:36px;padding:8px;margin:0;background:transparent!important;color:var(--floating-muted)!important;border:0;border-radius:10px;box-shadow:none;transform:none}
html[data-chat-layout="floating"] .sidebar-head #new-chat:hover {background:var(--floating-soft)!important;color:var(--floating-accent)!important}
html[data-chat-layout="floating"] .sidebar-head #new-chat svg {width:19px;height:19px}
html[data-chat-layout="floating"] #sidebar .chat-tools {display:flex;padding:0 10px 6px;min-width:0;gap:0}
html[data-chat-layout="floating"] #sidebar .chat-filter {display:flex!important;width:100%;min-width:0;margin:0;padding:3px 10px;border:0;border-radius:10px;background:var(--floating-paper);color:var(--floating-muted)}
html[data-chat-layout="floating"] .chat-filter input {font-size:13px;min-height:32px;padding:4px 0;color:var(--floating-ink)}
html[data-chat-layout="floating"] #sidebar .sidebar-scroll {padding-top:0;min-height:0;flex:1}
html[data-chat-layout="floating"] .sidebar-list-scroll {padding:0;min-height:0}
html[data-chat-layout="floating"] .sidebar-filter-stack {padding:3px 9px 5px;background:transparent;border:0}
html[data-chat-layout="floating"] .filters {display:flex;gap:2px;padding:3px;border:0;border-radius:10px;background:color-mix(in srgb,var(--floating-ink) 4%,transparent);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;scroll-snap-type:x proximity;max-width:100%;margin:0}
html[data-chat-layout="floating"] .filters::-webkit-scrollbar {display:none}
html[data-chat-layout="floating"] .filters button {flex:1 0 auto;scroll-snap-align:center;min-width:0;min-height:33px;padding:6px 7px;border:0;border-radius:8px;background:transparent;color:var(--floating-muted);font-size:11px;line-height:1.3;white-space:nowrap;font-weight:400}
html[data-chat-layout="floating"] .filters button.selected {color:var(--floating-ink)!important;background:var(--floating-paper)!important;font-weight:600;box-shadow:0 1px 5px #31244a12}
html[data-chat-layout="floating"] .attention-tools {margin:7px 0 0;padding:0;border:0;background:transparent}
html[data-chat-layout="floating"] .attention-tools select {height:34px;min-height:34px;padding:5px 8px;font-size:11px;color:var(--floating-muted);background:transparent;border:1px solid var(--floating-line);border-radius:8px}
html[data-chat-layout="floating"] #status-bar {padding:8px 10px 5px;background:transparent;border:0}
html[data-chat-layout="floating"] .status-heading {font:500 11px/1.4 var(--floating-font);color:var(--floating-muted)}
html[data-chat-layout="floating"] .status-heading button {font-size:11px;color:var(--floating-accent)}
html[data-chat-layout="floating"] #room-list {padding:0 1px 7px}
html[data-chat-layout="floating"] .room-section {font:500 11px/1.4 var(--floating-font);letter-spacing:0;padding:14px 10px 7px;color:var(--floating-muted)}
html[data-chat-layout="floating"] .room-item {padding:12px 10px;gap:10px;min-height:78px;margin:0 0 4px;border:0!important;border-radius:13px;background:transparent;align-items:center;color:var(--floating-ink)}
html[data-chat-layout="floating"] .room-item:hover {background:color-mix(in srgb,var(--floating-paper) 65%,transparent)}
html[data-chat-layout="floating"] .room-item.selected {background:var(--floating-paper)!important;color:var(--floating-ink)!important;box-shadow:var(--floating-shadow)}
html[data-chat-layout="floating"] .room-item .avatar {width:36px;height:36px;font-size:11px;border-radius:50%}
html[data-chat-layout="floating"] .room-item .avatar:is(.group,.project,.handover,.announcement) {border-radius:12px}
html[data-chat-layout="floating"] .room-body strong {font-size:13px;font-weight:600;line-height:1.35;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html[data-chat-layout="floating"] .room-body p {font-size:12px;color:var(--floating-muted)!important;margin-top:4px;line-height:1.4}
html[data-chat-layout="floating"] .room-side {font-size:10px;gap:7px;color:var(--floating-muted);flex:none}
html[data-chat-layout="floating"] .badge {background:var(--floating-action);color:var(--floating-action-ink);font-size:10px;line-height:1.3}
html[data-chat-layout="floating"] .sidebar-discovery {border:0;background:transparent;padding:7px 9px}
html[data-chat-layout="floating"] .sidebar-discovery :is(button,summary) {font-size:12px;color:var(--floating-muted)}
html[data-chat-layout="floating"] :is(#conversation,#empty) {background:var(--floating-paper)!important;color:var(--floating-ink);border:0;border-radius:18px;box-shadow:var(--floating-shadow);min-width:0;overflow:hidden}
html[data-chat-layout="floating"] #conversation {margin-left:0}
html[data-chat-layout="floating"] #empty {flex:1;padding:28px}
html[data-chat-layout="floating"] #empty h2 {font:650 26px/1.25 var(--floating-font);color:var(--floating-ink);letter-spacing:-.7px}
html[data-chat-layout="floating"] .conversation-head {height:auto;min-height:70px;padding:13px 24px;gap:11px;border-bottom:1px solid var(--floating-line);background:var(--floating-paper)!important;color:var(--floating-ink)}
html[data-chat-layout="floating"] .conversation-head>.avatar {width:36px;height:36px;border-radius:50%;font-size:12px}
html[data-chat-layout="floating"] .conversation-title h2 {font-size:14px;line-height:1.35;font-weight:600;color:var(--floating-ink);letter-spacing:0}
html[data-chat-layout="floating"] .conversation-title :is(button,.room-status) {font-size:11px;color:var(--floating-muted)}
html[data-chat-layout="floating"] .conversation-head .icon-button {color:var(--floating-muted)}
html[data-chat-layout="floating"] .timeline,html[data-chat-layout="floating"] .thread-panel>#thread-messages {background:var(--floating-paper)!important;background-image:none!important;padding:17px 32px}
html[data-chat-layout="floating"] .timeline>#messages {max-width:960px;width:100%;margin:0 auto}
html[data-chat-layout="floating"] .day-divider {text-align:center;font:400 11px/1.4 var(--floating-font);padding:0;margin:3px 0 22px;color:var(--floating-muted)}
html[data-chat-layout="floating"] .message {max-width:min(86%,480px);margin-bottom:17px;gap:8px}
html[data-chat-layout="floating"] .message .avatar {width:25px;height:25px;border-radius:50%;font-size:10px}
html[data-chat-layout="floating"] .message .bubble {font-size:13px;line-height:1.65;color:var(--floating-ink);border:0;box-shadow:none;padding:0 3px;border-radius:0;background:transparent!important}
html[data-chat-layout="floating"] .message.own .bubble {background:var(--floating-bubble)!important;border-radius:16px;padding:11px 14px}
html[data-chat-layout="floating"] .message-meta {font-size:11px;color:var(--floating-muted)!important;line-height:1.45;margin-bottom:5px}
html[data-chat-layout="floating"] .message-actions :is(button,.read-status) {color:var(--floating-muted);font-size:11px}
html[data-chat-layout="floating"] .message-actions .reaction {background:var(--floating-paper);border:1px solid var(--floating-line);box-shadow:none;border-radius:14px}
html[data-chat-layout="floating"] .message-actions .reaction.is-selected {background:var(--floating-soft);color:var(--floating-accent)}
html[data-chat-layout="floating"] .file-card {background:var(--floating-paper);border:1px solid var(--floating-line);border-radius:12px;box-shadow:none}
/* The original one-row composer and its action sheet are retained. */
html[data-chat-layout="floating"] .composer.compact-composer {margin:4px 20px 8px;padding:6px 0;background:transparent!important;border:0;box-shadow:none;gap:4px}
html[data-chat-layout="floating"] .compact-composer-field {border:1px solid var(--floating-line);background:var(--floating-paper);border-radius:16px;box-shadow:0 3px 12px #31244a0b}
html[data-chat-layout="floating"] .compact-composer-field .rich-message {font-size:14px;line-height:22px;min-height:42px;color:var(--floating-ink)}
html[data-chat-layout="floating"] .compact-composer-row :is(.icon-button,.send) {color:var(--floating-muted)}
html[data-chat-layout="floating"] .compact-composer-row .send {background:var(--floating-action);color:var(--floating-action-ink)}
html[data-chat-layout="floating"] .composer-plus::before {background:var(--floating-action)}
html[data-chat-layout="floating"] .composer-footer {margin:0 24px 7px;font-size:10px;color:var(--floating-muted)}
html[data-chat-layout="floating"] .composer-footer .composer-note {font-size:10px}
html[data-chat-layout="floating"] .thread-panel {margin-left:10px;border:0;border-radius:18px;background:var(--floating-paper)!important;box-shadow:var(--floating-shadow);overflow:hidden;color:var(--floating-ink)}
html[data-chat-layout="floating"] .thread-panel :is(header,form) {background:var(--floating-paper)!important;border-color:var(--floating-line)}
html[data-chat-layout="floating"] .thread-panel h2 {font-size:16px;color:var(--floating-ink)}
html[data-chat-layout="floating"] dialog:not(.message-action-sheet),html[data-chat-layout="floating"] .session-menu,html[data-chat-layout="floating"] .chat-options-menu {background:var(--floating-paper)!important;color:var(--floating-ink);border-color:var(--floating-line);box-shadow:0 8px 35px #31244a22}
html[data-chat-layout="floating"] :is(.session-menu,.chat-options-menu) {border-radius:13px}
html[data-chat-layout="floating"] :is(.session-menu,.chat-options-menu) button {color:var(--floating-ink)}
html[data-chat-layout="floating"] dialog :is(input:not([type="checkbox"]):not([type="radio"]),select) {box-sizing:border-box;min-height:42px;height:42px;font-size:14px;border-radius:9px;border:1px solid var(--floating-line);background:var(--floating-paper);color:var(--floating-ink)}
html[data-chat-layout="floating"] .chat-brand-choice {margin-top:18px;padding-top:14px;border-top:1px solid var(--floating-line)}
html[data-chat-layout="floating"] .chat-brand-choice label {display:grid;gap:8px;font-size:14px}
html[data-chat-layout="floating"] .chat-brand-choice select {width:100%;height:44px}
html[data-chat-layout="floating"] .chat-brand-choice p {font-size:12px;line-height:1.6;color:var(--floating-muted)}
html[data-chat-layout="floating"][data-chat-font="large"] .room-body strong {font-size:17px}
html[data-chat-layout="floating"][data-chat-font="large"] .room-body p {font-size:15px}
@media(max-width:1150px) and (min-width:761px) {html[data-chat-layout="floating"] .thread-panel {top:0;bottom:17px;right:17px;width:min(380px,calc(100vw - 90px));margin:0;z-index:7}}
@media(max-width:760px) {
 html[data-chat-layout="floating"] {--kira-shell-height:calc(58px + env(safe-area-inset-top,0px))}
 html[data-chat-ui][data-chat-layout="floating"] .messenger-bar {height:var(--kira-shell-height);min-height:var(--kira-shell-height);padding:calc(8px + env(safe-area-inset-top,0px)) 16px 8px}
 html[data-chat-ui][data-chat-layout="floating"] .chat-module-identity {flex:1}
 html[data-chat-layout="floating"] .chat-floating-rail {display:none!important}
 html[data-chat-layout="floating"] body:has(#workspace:not([hidden]))>#workspace {padding:0 10px 10px!important;gap:0;margin:0;min-height:0;background:var(--floating-canvas)}
 html[data-chat-layout="floating"] #sidebar {width:100%;flex-basis:100%;padding:0;background:var(--floating-paper)!important;border-radius:18px}
 html[data-chat-ui][data-chat-layout="floating"] #sidebar .sidebar-head {padding:16px 16px 8px;min-height:54px}
 html[data-chat-layout="floating"] .sidebar-head h1 {font-size:27px;letter-spacing:-.8px}
 html[data-chat-layout="floating"] #sidebar .chat-tools {padding:0 16px 8px}
 html[data-chat-layout="floating"] #sidebar .chat-filter {background:var(--floating-canvas)}
 html[data-chat-layout="floating"] .chat-filter input {font-size:16px;min-height:34px}
 html[data-chat-layout="floating"] .sidebar-filter-stack {padding:1px 15px 7px}
 html[data-chat-layout="floating"] .filters {background:var(--floating-canvas);padding:3px;scroll-padding:6px;overscroll-behavior-x:contain}
 html[data-chat-layout="floating"] .filters button {font-size:12px;min-height:38px;padding:7px 12px;flex:0 0 auto}
 html[data-chat-layout="floating"] .attention-tools select {height:36px;min-height:36px;font-size:12px}
 html[data-chat-layout="floating"] #status-bar {padding:5px 15px 4px}
 html[data-chat-layout="floating"] #room-list {padding:0 7px 8px}
 html[data-chat-layout="floating"] .room-item {min-height:84px;padding:12px 10px}
 html[data-chat-layout="floating"] .room-item.selected {background:var(--floating-soft)!important;box-shadow:none}
 html[data-chat-layout="floating"] .room-body strong {font-size:14px}
 html[data-chat-layout="floating"] .room-body p {font-size:13px}
 html[data-chat-layout="floating"] .sidebar-discovery {padding:7px 15px}
 html[data-chat-layout="floating"] body.conversation-open>#workspace {padding:calc(env(safe-area-inset-top,0px) + 7px) 8px 8px!important}
 html[data-chat-layout="floating"] #conversation {width:100%;border-radius:18px;box-shadow:var(--floating-shadow)}
 html[data-chat-layout="floating"] .conversation-head {padding:9px 10px;min-height:68px;gap:8px}
 html[data-chat-layout="floating"] .conversation-title h2 {font-size:14px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 html[data-chat-layout="floating"] .conversation-head>#back {min-width:34px;width:34px}
 html[data-chat-layout="floating"] .timeline {padding:16px}
 html[data-chat-layout="floating"] .message {max-width:94%;gap:6px}
 html[data-chat-layout="floating"] .message .bubble {font-size:15px;line-height:1.6}
 html[data-chat-layout="floating"] .message.own .bubble {padding:10px 12px}
 html[data-chat-layout="floating"] .message .avatar {width:23px;height:23px}
 html[data-chat-layout="floating"] .composer.compact-composer {margin:3px 6px 5px;padding:4px 0}
 html[data-chat-layout="floating"] .compact-composer-field .rich-message {font-size:16px;min-height:42px;line-height:22px}
 html[data-chat-layout="floating"] .compact-composer-row {gap:2px;flex-wrap:nowrap}
 html[data-chat-layout="floating"] .compact-composer-row .composer-plus {width:40px;min-width:40px;margin:0}
 html[data-chat-layout="floating"] .compact-composer-row :is(.composer-camera,#voice-open,#send) {width:38px;min-width:38px;height:44px;padding:7px}
 html[data-chat-layout="floating"] .compact-composer-field #emoji-open {width:32px;min-width:32px;padding:5px}
 html[data-chat-layout="floating"] .composer-footer {margin:0 12px 4px}
 html[data-chat-layout="floating"] .composer-footer .composer-note {display:none}
 html[data-chat-layout="floating"] .thread-panel {position:fixed;inset:calc(env(safe-area-inset-top,0px) + 7px) 8px 8px;width:auto;margin:0;z-index:8;border-radius:18px}
 html[data-chat-layout="floating"] .thread-panel>#thread-messages {padding:16px}
 html[data-chat-layout="floating"] dialog.message-action-sheet:not(.desktop-message-menu) {inset:auto 0 0!important;top:auto!important;margin:0 auto!important;width:100%;max-width:100%;border-radius:22px 22px 0 0;border-bottom:0;background:var(--floating-paper);color:var(--floating-ink)}
 html[data-chat-layout="floating"] dialog.message-action-sheet .message-sheet-content {background:var(--floating-paper)}
 html[data-chat-layout="floating"] :is(.kira-mobile-bar,.kira-mobile-launcher) {background:var(--floating-paper);color:var(--floating-muted);border-color:var(--floating-line)}
 html[data-chat-layout="floating"] dialog.kira-mobile-launcher {inset:auto 0 0!important;top:auto!important;border-radius:22px 22px 0 0}
}
@media(prefers-reduced-motion:reduce) {html[data-chat-layout="floating"] :is(.room-item,.icon-button,.primary) {transition:none;animation:none}}
/* Keep every scroll region quiet without removing keyboard scrolling. */
html[data-chat-layout="floating"] :is(.timeline,.sidebar-list-scroll,#thread-messages,.chat-floating-links,dialog) {scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--floating-muted) 35%,transparent) transparent}
@supports selector(::-webkit-scrollbar) {
 html[data-chat-layout="floating"] :is(.timeline,.sidebar-list-scroll,#thread-messages,.chat-floating-links,dialog) {scrollbar-width:auto;scrollbar-color:auto}
 html[data-chat-layout="floating"] :is(.timeline,.sidebar-list-scroll,#thread-messages,.chat-floating-links,dialog)::-webkit-scrollbar {width:4px;height:4px}
 html[data-chat-layout="floating"] :is(.timeline,.sidebar-list-scroll,#thread-messages,.chat-floating-links,dialog)::-webkit-scrollbar-thumb {background:color-mix(in srgb,var(--floating-muted) 35%,transparent);border-radius:4px}
 html[data-chat-layout="floating"] :is(.timeline,.sidebar-list-scroll,#thread-messages,.chat-floating-links,dialog)::-webkit-scrollbar-track {background:transparent}
}

@media(max-width:760px){html[data-chat-layout="floating"] #workspace:not(.chat-open) #conversation{display:none}html[data-chat-layout="floating"] #workspace.chat-open #sidebar{display:none}html[data-chat-layout="floating"] #workspace.chat-open #conversation{display:flex}html[data-chat-layout="floating"] #back.mobile-only{display:inline-flex}html[data-chat-layout="floating"] body.conversation-open>.messenger-bar{display:none}html[data-chat-layout="floating"] #workspace:not(.chat-open) #empty{display:none}}

/* Detailrunde: gemeinsame Grundlinie, mehr Listenplatz und klare Nachrichtenkarten. */
html[data-chat-ui][data-chat-layout="floating"] .messenger-bar {align-items:baseline}
html[data-chat-ui][data-chat-layout="floating"] .messenger-bar .compact-brand {height:auto;align-self:center;line-height:1;align-items:center}
html[data-chat-ui][data-chat-layout="floating"] .chat-wordmark {font-size:25px;line-height:1.1}
html[data-chat-ui][data-chat-layout="floating"] .messenger-bar .chat-module-identity {flex:0 0 auto;min-width:0;align-self:center;justify-content:flex-start;transform:none;text-align:left}
html[data-chat-ui][data-chat-layout="floating"] .chat-module-identity strong {font-size:23px;line-height:1.1}
html[data-chat-ui][data-chat-layout="floating"] .messenger-bar :is(.session-tools,.chat-header-search,.kira-header-trailing) {align-self:center}
html[data-chat-ui][data-chat-layout="floating"] #sidebar .sidebar-head {display:none!important}
html[data-chat-layout="floating"] #sidebar {position:relative}
html[data-chat-layout="floating"] #sidebar>#new-chat {position:absolute!important;inset:auto 16px 65px auto!important;z-index:4;display:grid;place-items:center;width:48px;height:48px;min-width:48px;min-height:48px;padding:13px;margin:0;border:0;border-radius:16px;background:var(--floating-action)!important;color:#fff!important;box-shadow:0 5px 16px #31244a30;transform:none}
html[data-chat-layout="floating"] #sidebar>#new-chat svg {width:22px;height:22px}
html[data-chat-layout="floating"] #room-list {padding-bottom:65px}
html[data-chat-layout="floating"] .message:not(.own) .bubble {border:1px solid color-mix(in srgb,var(--floating-accent) 23%,var(--floating-line));border-radius:16px;padding:10px 13px;background:color-mix(in srgb,var(--floating-soft) 24%,var(--floating-paper))!important}
html[data-chat-layout="floating"] .compact-composer-row .composer-plus {color:#fff!important}
html[data-chat-layout="floating"] .composer.compact-composer>.format-panel {order:-1;margin:0 0 2px 50px;padding:4px 0;border:0;flex:none}
html[data-chat-layout="floating"] dialog.floating-composer-menu {position:fixed!important;inset:auto auto var(--floating-menu-bottom) var(--floating-menu-left)!important;margin:0!important;width:280px!important;max-width:calc(100vw - 24px);height:auto!important;max-height:var(--floating-menu-height)!important;border:1px solid var(--floating-line);border-radius:16px;padding:6px;background:var(--floating-paper);color:var(--floating-ink);box-shadow:0 8px 32px #31244a30}
html[data-chat-layout="floating"] dialog.floating-composer-menu::backdrop {background:transparent}
html[data-chat-layout="floating"] .floating-composer-menu .message-sheet-handle {display:none}
html[data-chat-layout="floating"] .floating-composer-menu .message-sheet-head {padding:5px 8px;cursor:default}
html[data-chat-layout="floating"] .floating-composer-menu .message-sheet-content {padding:0 4px 4px}
html[data-chat-layout="floating"] .floating-composer-menu .composer-action-grid {display:flex;flex-direction:column;gap:2px;padding:0}
html[data-chat-layout="floating"] .floating-composer-menu .composer-action-grid .message-sheet-action {flex-direction:row;align-items:center;justify-content:flex-start;min-height:39px;padding:7px 9px;gap:12px;text-align:left;font-size:13px}
html[data-chat-layout="floating"] .floating-composer-menu .composer-action-symbol {width:24px;height:24px;background:transparent!important;color:var(--floating-muted)!important}
@media(max-width:760px){html[data-chat-ui][data-chat-layout="floating"] .messenger-bar .chat-module-identity {flex:0 0 auto;margin-right:auto}html[data-chat-layout="floating"] #sidebar>.sidebar-scroll {padding-top:10px}html[data-chat-layout="floating"] .composer.compact-composer>.format-panel {margin-left:42px}html[data-chat-layout="floating"] #sidebar>#new-chat {bottom:64px!important}}

html[data-chat-layout="floating"] .message:not(.own) .bubble {border:0}

/* Keep the compose action icon-only, including while older scripts are cached. */
html[data-chat-layout="floating"] .floating-compose-label {display:none}

html[data-chat-ui][data-chat-layout="floating"][data-chat-brand="logo"] .compact-brand img {content:url('/suite/logos/chat-transparent-black.svg')!important;filter:none!important;background:transparent!important;mix-blend-mode:normal;object-fit:contain}
html[data-chat-ui][data-chat-layout="floating"][data-chat-brand="logo"][data-theme="dark"] .compact-brand img {content:url('/suite/logos/chat-transparent-white.svg')!important}

html[data-chat-ui][data-chat-layout="floating"][data-theme] {--floating-canvas:var(--palette-canvas);--floating-paper:var(--palette-surface);--floating-ink:var(--palette-ink);--floating-muted:var(--palette-muted);--floating-line:var(--palette-border);--floating-accent:var(--palette-link);--floating-action:var(--palette-action);--floating-action-ink:#fff;--floating-soft:var(--palette-soft);--floating-bubble:var(--palette-outgoing)}

/* The default design uses lavender list cards; list scrolling stays visually quiet. */
html[data-chat-layout="floating"]:is([data-palette="paper"],[data-palette="paperblue"],[data-palette="papergreen"],[data-palette="paperturquoise"]) .room-item:is(:hover,.selected) {background:var(--floating-soft)!important}
html[data-chat-layout="floating"] #sidebar :is(.sidebar-scroll,.sidebar-list-scroll,#room-list) {scrollbar-width:none!important;scrollbar-color:auto}
html[data-chat-layout="floating"] #sidebar :is(.sidebar-scroll,.sidebar-list-scroll,#room-list)::-webkit-scrollbar {display:none!important;width:0!important;height:0!important}

html[data-chat-layout="floating"] #sidebar .sidebar-filter-stack {position:relative;top:auto;flex:0 0 auto;z-index:2;background:var(--floating-canvas);border-bottom:1px solid var(--floating-line);padding-bottom:9px}
html[data-chat-layout="floating"] #sidebar>.sidebar-scroll {padding-top:0;min-height:0}
@media(max-width:760px){html[data-chat-layout="floating"] #sidebar .sidebar-filter-stack {background:var(--floating-paper);padding-top:10px}}

html[data-chat-layout="floating"]:is([data-palette="paperblue"],[data-palette="papergreen"],[data-palette="paperturquoise"]){--floating-shadow:var(--palette-shadow)}

/* Personal enlarged list text; normal keeps its existing sizes. */
html[data-chat-layout="floating"][data-chat-font="large"] .room-body strong {font-size:14px;-webkit-line-clamp:unset;overflow:visible;overflow-wrap:anywhere}
html[data-chat-layout="floating"][data-chat-font="large"] .room-body p {font-size:14px}
@media(max-width:700px){html[data-chat-layout="floating"][data-chat-font="large"] .room-body strong {font-size:15px}}

/* Approved three-line list: one title, at most two preview lines, fine inset divider. */
html[data-chat-layout="floating"] .room-item{position:relative;min-height:78px;margin:0;padding:8px 10px;border-radius:0}
html[data-chat-layout="floating"] .room-item::after{content:'';position:absolute;left:56px;right:10px;bottom:0;height:1px;transform:scaleY(.5);transform-origin:bottom;background:var(--floating-line);pointer-events:none}
html[data-chat-layout="floating"] .room-body strong{display:block;font-size:14px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;-webkit-line-clamp:unset;max-height:1.35em}
html[data-chat-layout="floating"] .room-body p{font-size:13px;line-height:1.4;margin:4px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;overflow-wrap:anywhere;max-height:2.8em}
html[data-chat-layout="floating"] .room-side{display:grid;grid-template-columns:repeat(2,max-content);align-self:flex-start;align-items:center;justify-items:end;padding-top:3px;line-height:1.4;column-gap:3px;row-gap:3px}
html[data-chat-layout="floating"] .room-side>span:not([class]){grid-column:1/-1;grid-row:1}
html[data-chat-layout="floating"] .room-side>.muted-room{grid-column:1;grid-row:2}
html[data-chat-layout="floating"] .room-side>.personal-pin{grid-column:2;grid-row:2}
html[data-chat-layout="floating"] .room-side>:is(.badge,.manual-unread){grid-column:1/-1;grid-row:3}
html[data-chat-layout="floating"][data-chat-font="large"] .room-item{min-height:82px}
html[data-chat-layout="floating"][data-chat-font="large"] .room-body strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;display:block;-webkit-line-clamp:unset}
html[data-chat-layout="floating"][data-chat-font="large"] .room-body p{font-size:14px}

/* Structural grouping is visually transparent in all existing themes. */
.chat-sidebar-controls{display:contents}

/* One personal search preference, shared by profile and chat-list settings. */
html[data-chat-ui][data-chat-layout="floating"][data-chat-search="shown"] #sidebar .chat-tools{display:flex!important;flex:none;margin:0}
html[data-chat-ui][data-chat-layout="floating"][data-chat-search="hidden"] #sidebar .chat-tools{display:none!important}

/* The obsolete chat-list settings control no longer appears. */
html[data-chat-layout="floating"] #sidebar #sidebar-more{display:none!important}
@media(max-width:760px){html[data-chat-layout="floating"] #sidebar .sidebar-discovery{display:none!important}}

/* The floating card already reserves the iOS safe area outside its header.
   Override the older native direct-contact rule, which otherwise adds it again. */
@media(max-width:760px){
 html[data-chat-layout="floating"] body.conversation-open .conversation-head.has-person-status{height:auto;min-height:68px;padding:9px 10px}
}

/* Keep the native composer free of persistent explanatory footer rows. */
#composer~.composer-footer :is(#retention-note,#composer-note){display:none!important}
#composer~.composer-footer{min-height:0!important;padding:0!important;margin-bottom:0!important}
#composer~.composer-footer:not(:has(:is(button,a):not([hidden]))){display:none!important}

/* Larger list pictures within the unchanged avatar slot; text keeps its full width. */
html[data-chat-layout="floating"] #room-list .room-picture>:is(.avatar,.status-avatar-open){transform:scale(1.2);transform-origin:center}
html[data-chat-layout="floating"] #room-list .room-picture>.status-avatar-open.status-ring{outline-width:2px;outline-offset:1px}

/* Compact headings without reducing the existing 44px option/toggle targets. */
@media(max-width:760px){
 html[data-chat-layout="floating"] #status-bar{padding-top:0;padding-bottom:0}
 html[data-chat-layout="floating"] #status-bar .status-bar-head{margin-bottom:0}
 html[data-chat-layout="floating"] #room-list>.room-section.chat-section-heading{min-height:44px;height:44px;box-sizing:border-box;padding:0 10px;margin:0;line-height:1.4}
 html[data-chat-layout="floating"] #room-list>.room-section:not(.chat-section-heading){padding-top:6px;padding-bottom:3px;margin-top:0;margin-bottom:0}
}
