/* Native root colour can follow the OS while the selected custom theme sets
 * light tokens on body. Resolve inherited text at the theme's actual scope. */
body.cpd-theme-light,body.cpd-theme-dark,body.cpd-theme-light-hc,body.cpd-theme-dark-hc{color:var(--cpd-color-text-primary)}
/* Scoped adaptation of the existing 24h Shell; native Matrix contents keep host styles. */
.h24-matrix-desktop{--h24-night:#0b1733;--h24-line:rgba(11,23,51,.16);position:fixed;inset:0;z-index:100;background:linear-gradient(110deg,#e72f15 0%,#804665 48%,#1684b5 100%);color:var(--h24-night);font:14px/1.45 system-ui,sans-serif}
.h24-matrix-desktop button,.h24-matrix-desktop input,.h24-matrix-desktop select{font:inherit}.h24-matrix-desktop button{cursor:pointer}.h24-matrix-desktop button:disabled{cursor:wait;opacity:.55}.h24-matrix-desktop button:focus-visible,.h24-matrix-desktop a:focus-visible{outline:3px solid #63c7f2;outline-offset:2px}
.h24-matrix-toolbar{box-sizing:border-box;height:51px;display:flex;align-items:center;gap:12px;padding:0 14px;background:#fff;border-bottom:1px solid var(--h24-line);position:relative;z-index:2147483646}
.h24-matrix-tool{flex:none;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--h24-line);border-radius:50%;background:#fff;color:var(--h24-night);padding:6px;text-decoration:none}.h24-matrix-tool svg{width:20px;height:20px}.h24-matrix-tool:hover,.h24-matrix-tool.is-selected{background:#e6f3fa;color:#1684b5}
.h24-matrix-brand{border:0;background:none;padding:0 4px;height:44px;display:flex;align-items:center}.h24-matrix-brand img{width:42px;height:42px;object-fit:contain}.h24-matrix-apps{display:flex;align-items:center;gap:26px}.h24-matrix-apps a{display:flex;gap:9px;align-items:center;text-decoration:none;color:var(--h24-night);font-weight:750}.h24-matrix-apps svg{width:21px;height:21px}.h24-matrix-header-tools{margin-left:auto;display:flex;gap:8px;align-items:center}.h24-matrix-avatar{border:0;border-radius:50%;background:#e72f15;color:#fff;font-weight:800!important;width:32px;height:32px;padding:0}.h24-matrix-nav-toggle{display:none}
.h24-matrix-icons{box-sizing:border-box;height:calc(100% - 51px);overflow:auto;position:relative;padding:24px 134px 84px 14px}.h24-matrix-icons[hidden]{display:none}.h24-matrix-intro{position:absolute;inset:110px 130px auto;color:white;text-align:center;pointer-events:none}.h24-matrix-intro h1{font-size:64px;line-height:1.1;font-weight:750;margin:0 0 20px;letter-spacing:-2px}.h24-matrix-intro p{font-size:15px;margin:0}
.h24-matrix-grid{display:grid;grid-template-columns:repeat(7,calc(100px * var(--h24-icon-scale)));grid-auto-rows:minmax(calc(92px * var(--h24-icon-scale)),auto);gap:12px 10px;position:relative;z-index:1;width:max-content;max-width:100%}.h24-matrix-icon{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;width:calc(100px * var(--h24-icon-scale));min-height:calc(82px * var(--h24-icon-scale));padding:6px 4px;border:0;border-radius:9px;background:transparent;color:#fff;text-align:center;text-shadow:0 2px 3px #0004;font-size:12px!important;overflow-wrap:anywhere}.h24-matrix-icon:hover{background:#ffffff20}.h24-matrix-symbol{display:flex;align-items:center;justify-content:center;width:calc(42px * var(--h24-icon-scale,1));height:calc(42px * var(--h24-icon-scale,1));flex:none}.h24-matrix-symbol>svg{width:100%;height:100%}.h24-matrix-symbol img{border-radius:8px;max-width:100%;max-height:100%;object-fit:cover}.h24-matrix-symbol .mx_BaseAvatar{text-shadow:none}
.h24-matrix-create .h24-matrix-symbol{position:relative}.h24-matrix-create .h24-matrix-symbol:after{content:'+';position:absolute;right:-5px;bottom:-5px;font-size:19px;font-weight:600;line-height:22px;width:22px;border-radius:50%;background:#ffffffed;color:#1684b5;text-shadow:none}
.h24-matrix-utilities{position:absolute;right:0;bottom:12px;display:flex;flex-direction:column;gap:18px;padding:0 10px}.h24-matrix-utilities .h24-matrix-icon{width:94px;min-height:84px}.h24-matrix-buddy{position:absolute;right:27%;bottom:17%;z-index:2}.h24-matrix-buddy>button{padding:0;border:0;background:none;width:86px;height:100px}.h24-matrix-buddy img{width:100%;height:100%}.h24-matrix-buddy-menu{position:absolute;bottom:90px;right:0;width:180px;border-radius:12px;box-shadow:0 8px 32px #0003;background:#fff;padding:6px}.h24-matrix-buddy-menu button{display:block;width:100%;text-align:left;border:0;padding:9px;background:none;color:var(--h24-night);border-radius:6px}
.h24-matrix-dock{position:absolute;bottom:8px;left:12px;right:125px;z-index:2147483645;display:flex;gap:6px;overflow:auto;pointer-events:none}.h24-matrix-dock button{pointer-events:auto;border:1px solid var(--h24-line);border-radius:8px;padding:7px 12px;background:#fffffff0;color:var(--h24-night);box-shadow:0 3px 10px #0002;flex:none;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.h24-matrix-dock button[aria-pressed=true]{background:#e6f3fa;border-color:#92c5df}.h24-matrix-dock .is-minimized{opacity:.7}
.h24-matrix-window{border:1px solid var(--h24-line);box-sizing:border-box;border-radius:15px;background:#fff;box-shadow:0 24px 70px rgba(4,14,38,.2)}.h24-matrix-window.min{display:none!important}.h24-matrix-window .wb-header{height:43px;background:#f7f8f5;color:var(--h24-night);border-bottom:1px solid var(--h24-line);border-radius:15px 15px 0 0}.h24-matrix-window.focus .wb-header{background:#e6f3fa;border-color:#92c5df}.h24-matrix-window .wb-drag{height:43px;display:flex;align-items:center;gap:10px;padding:0 14px}.h24-matrix-window .wb-title{font-size:12px;font-weight:750;line-height:43px;padding:0;white-space:nowrap;text-overflow:ellipsis}.h24-matrix-dot{width:9px;height:9px;border-radius:50%;background:#ffc94b;flex:none}.h24-matrix-refresh-space{width:30px;flex:none}.h24-matrix-refresh{position:absolute;left:33px;top:6px;height:30px;width:30px;border:1px solid #cbd7df;border-radius:8px;background:#fff;padding:5px;color:#0b1733}.h24-matrix-refresh svg{width:18px;height:18px}
.h24-matrix-window .wb-control{height:43px;display:flex;align-items:stretch;border-radius:0 15px 0 0;overflow:hidden}.h24-matrix-window .wb-control>span{width:38px;height:43px;background-size:17px;filter:invert(1)}.h24-matrix-window .wb-control>button{width:36px;height:43px;padding:10px;border:0;background:transparent;color:#0b1733}.h24-matrix-window .wb-control>button[hidden]{display:none}.h24-matrix-window .wb-control svg{width:18px;height:18px}.h24-matrix-window .wb-control>button:hover,.h24-matrix-window .wb-control [aria-pressed=true]{background:#d7eaf3}.h24-matrix-window .wb-control .h24-matrix-more{display:none}.h24-matrix-window .wb-body{top:43px;border-radius:0 0 14px 14px;background:var(--cpd-color-bg-canvas-default,#fff)}
.h24-matrix-window-menu{position:absolute;top:44px;right:8px;width:230px;z-index:4;background:white;padding:6px;border:1px solid var(--h24-line);border-radius:10px;box-shadow:0 8px 30px #0003}.h24-matrix-window-menu button{display:block;width:100%;padding:10px;text-align:left;background:none;border:0;color:#0b1733;border-radius:6px}.h24-matrix-window-menu[hidden],.h24-matrix-window-menu button[hidden]{display:none}.h24-matrix-compact .wb-control .h24-matrix-pin,.h24-matrix-compact .wb-control .h24-matrix-cast{display:none}.h24-matrix-compact .wb-control .h24-matrix-more{display:block}
.h24-matrix-content{height:100%;width:100%;overflow:hidden;display:flex;flex-direction:column}.h24-matrix-content>.mx_RoomView{min-height:0;flex:1}.h24-matrix-anchor{display:none}.h24-matrix-directory,.h24-matrix-utility{padding:20px;overflow:auto;box-sizing:border-box;height:100%;background:#fff;color:#0b1733}.h24-matrix-search{display:flex;align-items:center;gap:12px;margin-bottom:18px;font-size:13px}.h24-matrix-search input{border:1px solid #cbd7df;border-radius:8px;padding:9px 12px;min-width:0;flex:1}.h24-matrix-list-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid #edf0f2;padding:6px 0}.h24-matrix-list-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;background:none;border:0;padding:7px;text-align:left;color:#0b1733;border-radius:8px}.h24-matrix-list-open:hover{background:#edf6fa}.h24-matrix-list-open>span:last-child{overflow:hidden;text-overflow:ellipsis}.h24-matrix-list-open .h24-matrix-symbol{width:34px;height:34px;color:#1684b5}.h24-matrix-favorite{background:none;color:#56677b;border:1px solid #cbd7df;border-radius:8px;width:34px;height:34px;padding:7px;flex:none}.h24-matrix-favorite[aria-pressed=true]{background:#e6f3fa;color:#1684b5}.h24-matrix-favorite svg{width:18px;height:18px}.h24-matrix-utility{display:flex;flex-direction:column;align-items:flex-start;gap:18px}.h24-matrix-utility h2,.h24-matrix-utility p{margin:0}.h24-matrix-utility>button,.h24-matrix-utility select{background:white;border:1px solid #cbd7df;border-radius:8px;padding:8px 12px;color:#0b1733}.h24-matrix-help-frame{border:0;width:100%;flex:1}
.h24-matrix-error{position:absolute;bottom:52px;left:16px;right:16px;z-index:2147483646;padding:16px;color:#17364b;background:#fff5ce;border:1px solid #896800;border-radius:10px;display:flex;gap:16px;align-items:center;justify-content:space-between}.h24-matrix-error button{color:#17364b;background:white;border:1px solid #896800;border-radius:6px;padding:6px 10px}
@container h24-shell (max-width:1150px){.h24-matrix-grid{grid-template-columns:repeat(4,calc(100px * var(--h24-icon-scale)))}.h24-matrix-intro{top:245px}}
@container h24-shell (max-width:760px){
 .h24-matrix-toolbar{gap:7px;padding:0 8px}.h24-matrix-header-tools{gap:6px}.h24-matrix-secondary-tool{display:none}.h24-matrix-nav-toggle{display:inline-flex}.h24-matrix-apps{display:none;position:absolute;left:8px;top:51px;background:white;padding:16px;border-radius:0 0 12px 12px;box-shadow:0 8px 20px #0003}.h24-matrix-apps.is-open{display:flex;flex-direction:column;align-items:flex-start;gap:18px}.h24-matrix-intro{display:none}.h24-matrix-icons{padding:18px 12px 110px}.h24-matrix-grid{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:12px 6px;grid-auto-rows:auto}.h24-matrix-icon{width:100%;min-height:90px}.h24-matrix-utilities{position:static;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:24px 0 0;gap:6px}.h24-matrix-utilities .h24-matrix-icon{width:100%;font-size:11px!important}.h24-matrix-utilities .h24-matrix-symbol{width:32px;height:32px}.h24-matrix-buddy{position:fixed;right:20px;bottom:65px}.h24-matrix-buddy>button{width:55px;height:64px}.h24-matrix-dock{right:12px;bottom:8px}
 .h24-matrix-window{border-radius:0;box-shadow:none;left:0!important;top:51px!important;width:100vw!important;min-width:0!important;height:calc(100dvh - 51px)!important}.h24-matrix-window .wb-header,.h24-matrix-window .wb-control,.h24-matrix-window .wb-body{border-radius:0}.h24-matrix-window .wb-drag{pointer-events:none}.h24-matrix-window>[class^=wb-]:not(.wb-header):not(.wb-body){pointer-events:none}.h24-matrix-window .wb-control>span{width:32px}.h24-matrix-window .wb-control>button{width:30px;padding:7px}.h24-matrix-directory,.h24-matrix-utility{padding:16px}
}
/* Direct manipulation and window panels share the existing shell palette. */
.h24-matrix-icons{padding:20px 14px 70px}
.h24-matrix-board{position:relative;width:100%;z-index:1;min-height:0}
.h24-matrix-desktop-item{position:absolute;display:flex;justify-content:center;min-height:90px;box-sizing:border-box}
.h24-matrix-desktop-item .h24-matrix-icon{touch-action:none;user-select:none;max-width:100%;-webkit-user-select:none}
.h24-matrix-desktop-item.is-dragging{z-index:10;opacity:.85;cursor:grabbing}
.h24-matrix-desktop-item.is-dragging .h24-matrix-icon{background:#ffffff30;cursor:grabbing}


.h24-matrix-icon-menu{position:fixed;z-index:2147483646;width:220px;border-radius:10px;border:1px solid #cbd7df;background:#fff;padding:6px;box-shadow:0 10px 30px #0003;color:#0b1733}
.h24-matrix-icon-menu button{display:block;width:100%;text-align:left;background:none;border:0;padding:10px;color:inherit;border-radius:6px}.h24-matrix-icon-menu button:hover{background:#e6f3fa}.h24-matrix-icon-menu p{font-size:11px;margin:6px;padding:0 4px}
.h24-matrix-directory-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.h24-matrix-new-actions{display:flex;gap:7px;flex-wrap:wrap}
.h24-matrix-new-actions button,.h24-matrix-offcanvas-content>button{display:flex;align-items:center;gap:7px;background:#e6f3fa;border:1px solid #92c5df;border-radius:8px;padding:8px 10px;color:#0b1733}
.h24-matrix-new-actions svg,.h24-matrix-drawer-pin svg{width:18px;height:18px;flex:none}
.h24-matrix-sort{display:flex;align-items:center;gap:8px;font-size:12px}.h24-matrix-sort select{max-width:100%;min-width:0;border:1px solid #cbd7df;border-radius:8px;padding:8px;background:white;color:#0b1733}
.h24-matrix-unread{margin-left:auto;background:#1684b5;color:white;border-radius:15px;font-size:11px;padding:2px 7px;font-weight:700;flex:none}
.h24-matrix-window-menu button svg{width:18px;height:18px;vertical-align:middle;margin-right:8px}
.h24-matrix-content{position:relative}.h24-matrix-offcanvas{position:absolute;inset:0 0 0 auto;width:min(360px,100%);box-sizing:border-box;background:white;color:#0b1733;box-shadow:-8px 0 30px #0b173326;border-left:1px solid #cbd7df;z-index:8;display:flex;flex-direction:column;animation:h24-drawer-in .15s ease-out}
.h24-matrix-offcanvas>header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#f7f8f5;border-bottom:1px solid #cbd7df;gap:12px}.h24-matrix-offcanvas h2{margin:0;font-size:17px}.h24-matrix-offcanvas>header button{background:none;border:0;color:#0b1733;font-size:24px;padding:0 5px}.h24-matrix-offcanvas-content{overflow:auto;padding:18px;display:flex;flex-direction:column;gap:18px}.h24-matrix-offcanvas h3,.h24-matrix-offcanvas p{margin:0}.h24-matrix-offcanvas dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.h24-matrix-offcanvas dd{margin:0;overflow-wrap:anywhere}.h24-matrix-offcanvas dt{font-weight:600}
.h24-matrix-window .wb-control [aria-pressed=true]{color:#1684b5}.h24-matrix-window .wb-control [aria-expanded=true]{background:#d7eaf3;color:#1684b5}
.h24-matrix-compact .wb-control .h24-matrix-info,.h24-matrix-compact .wb-control .h24-matrix-window-settings{display:none}.h24-matrix-compact .wb-control .h24-matrix-pin:not([hidden]){display:block}
@keyframes h24-drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.h24-matrix-offcanvas{animation:none}}
@container h24-shell (max-width:760px){.h24-matrix-directory-toolbar{align-items:stretch}.h24-matrix-sort{flex-wrap:wrap}.h24-matrix-window .wb-control .h24-matrix-pin{width:30px}.h24-matrix-offcanvas{width:min(360px,100%)}}
.h24-matrix-timer-output{font-size:48px;font-variant-numeric:tabular-nums;line-height:1.2}.h24-matrix-timer-actions{display:flex;gap:10px}.h24-matrix-timer-actions button,.h24-matrix-utility input{border:1px solid #cbd7df;border-radius:8px;background:white;color:#0b1733;padding:8px 12px}.h24-matrix-utility input[type=number]{width:76px}

/* The native timeline owns room scrolling; the WinBox viewport must never scroll around it. */
.h24-matrix-window .wb-body{overflow:hidden}
.h24-matrix-content{box-sizing:border-box;min-height:0;min-width:0}
.h24-matrix-content>.mx_RoomView,.h24-matrix-content>.mx_RoomView_wrapper{height:100%;min-height:0;min-width:0;overflow:hidden}
.h24-matrix-content .mx_RoomView>.mx_MainSplit,.h24-matrix-content .mx_RoomView_body,.h24-matrix-content .mx_RoomView_timeline{min-height:0;min-width:0}
.h24-matrix-content .mx_RoomView_messagePanel{min-height:0;scrollbar-width:none}
.h24-matrix-content .mx_RoomView_messagePanel::-webkit-scrollbar{display:none;width:0;height:0}



.h24-matrix-legal{position:absolute;right:14px;bottom:12px;z-index:1;width:100px}
.h24-matrix-legal .h24-matrix-icon{width:100%;min-height:82px}
@container h24-shell (max-width:760px){.h24-matrix-legal{right:8px;bottom:48px;width:88px}.h24-matrix-legal .h24-matrix-symbol{width:32px;height:32px}.h24-matrix-legal .h24-matrix-icon{font-size:11px!important;min-height:68px}}
/* Scope native fixed effects (canvas) to their own room rather than the whole browser viewport. */
.h24-matrix-content>.mx_RoomView{contain:layout paint}

/* Same City Shell view zoom; only the route uses the logical viewport. */
.h24-matrix-shell-active,.h24-matrix-shell-active body{overflow:hidden;overflow:clip;overscroll-behavior:none}
.h24-matrix-shell-active{height:100%}
.h24-matrix-shell-active body{position:fixed;inset:0;height:100%;min-height:0}
.h24-matrix-desktop{container-type:size;container-name:h24-shell;width:var(--h24-shell-width,100vw);height:var(--h24-shell-height,100dvh)}
.h24-view-zoom{position:fixed;right:12px;z-index:2147483647;width:420px;padding:18px;border:1px solid rgba(11,23,51,.16);border-radius:14px;box-shadow:0 24px 70px #040e2633;background:#fff;color:#0b1733;font:14px/1.45 system-ui,sans-serif;box-sizing:border-box;overflow-x:hidden;overflow-y:auto}
.h24-view-zoom[hidden]{display:none}.h24-view-zoom label{display:flex;justify-content:space-between;gap:12px;font-weight:700}.h24-view-zoom input{display:block;width:100%;min-height:44px;accent-color:#1684b5}.h24-view-zoom-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px}.h24-view-zoom-controls button{width:44px;height:44px;padding:0!important;font-size:22px}.h24-view-zoom p{font-size:12px;line-height:1.5;margin:8px 0 14px}.h24-view-zoom button{border:1px solid rgba(11,23,51,.16);border-radius:8px;padding:10px;background:#edf6fb;color:#0b1733;font:inherit;cursor:pointer}.h24-view-zoom button:disabled{opacity:.4;cursor:default}.h24-view-zoom :focus-visible{outline:2px solid #1684b5;outline-offset:2px}
.h24-matrix-window-menu{max-width:calc(100% - 16px);box-sizing:border-box}
@container h24-shell (max-width:760px){.h24-matrix-window{height:calc(var(--h24-shell-height,100dvh) - 51px)!important;width:var(--h24-shell-width,100vw)!important}.h24-matrix-header-tools>[aria-label="Fenster minimieren"]{display:none}}
@container h24-shell (max-width:340px){.h24-matrix-toolbar{gap:5px}.h24-matrix-header-tools{gap:3px}.h24-matrix-tool,.h24-matrix-avatar{width:28px;height:28px}.h24-matrix-header-tools>[aria-label="Desktop im Vollbild anzeigen"]{display:none}}
@container h24-shell (max-width:240px){.h24-matrix-brand,.h24-matrix-toolbar>[aria-label="Desktop aktualisieren"]{display:none}.h24-matrix-toolbar{padding:0 5px}}
.h24-matrix-tiny .wb-control>.wb-min,.h24-matrix-tiny .wb-control>.wb-max{display:none}.h24-matrix-tiny .h24-matrix-refresh,.h24-matrix-tiny .h24-matrix-refresh-space{display:none}.h24-matrix-tiny .wb-control .h24-matrix-pin{display:none!important}

@container h24-shell (max-width:760px){.h24-matrix-icons{padding-bottom:130px}}
/* Native cards and the original settings form slide out inside their owning room window. */
.h24-matrix-content .mx_MainSplit>.mx_RightPanel_ResizeWrapper{position:absolute!important;inset:0 0 0 auto;width:min(380px,100%)!important;max-width:100%;height:100%;z-index:6;background:var(--cpd-color-bg-canvas-default,#fff);box-shadow:-8px 0 30px #0b173326;animation:h24-drawer-in .15s ease-out}
.h24-matrix-content .mx_RightPanel{height:100%;max-height:100%;min-height:0}
.h24-matrix-native-settings{position:absolute;inset:0 0 0 auto;width:min(720px,100%);z-index:9;background:var(--cpd-color-bg-canvas-default,#fff);box-shadow:-8px 0 30px #0b173326;overflow:hidden;container-type:inline-size;container-name:h24-settings;animation:h24-drawer-in .15s ease-out}
.h24-matrix-native-settings #mx_Dialog_StaticContainer{position:absolute;inset:0;height:100%;width:100%}
.h24-matrix-native-settings .mx_Dialog_wrapper{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:0!important;display:block!important;background:none!important}
.h24-matrix-native-settings .mx_Dialog_background{display:none!important}
.h24-matrix-native-settings .mx_Dialog_border{position:static!important;width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-sizing:border-box}
.h24-matrix-native-settings .mx_Dialog{position:static!important;width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;max-height:none!important;box-sizing:border-box;padding:0!important;overflow:hidden}
.h24-matrix-native-settings .mx_RoomSettingsDialog{width:100%!important;height:100%!important;min-width:0;max-width:none!important;max-height:none!important;border-radius:0!important}
.h24-matrix-native-settings .mx_SettingsDialog_content{height:100%;min-height:0;min-width:0;overflow:hidden}
@container h24-settings (max-width:540px){.h24-matrix-native-settings .mx_TabbedView{flex-direction:column;min-width:0}.h24-matrix-native-settings .mx_TabbedView_tabLabels{display:flex;flex-direction:row;width:100%!important;min-width:0;overflow-x:auto;flex:0 0 auto;max-height:110px}.h24-matrix-native-settings .mx_TabbedView_tabPanel{min-width:0;max-width:100%;padding:12px!important}}
@media(prefers-reduced-motion:reduce){.h24-matrix-content .mx_MainSplit>.mx_RightPanel_ResizeWrapper,.h24-matrix-native-settings{animation:none}}
.h24-matrix-native-settings .mx_RoomSettingsDialog{display:flex;flex-direction:column;min-height:0}
.h24-matrix-native-settings .mx_Dialog_header{flex:0 0 auto}
.h24-matrix-native-settings .mx_SettingsDialog_content{height:auto!important;flex:1;display:flex;min-height:0}
.h24-matrix-native-settings .mx_TabbedView{flex:1;min-height:0;min-width:0}
/* Replace the native fixed sidebar geometry with a responsive layout inside the drawer. */
.h24-matrix-native-settings .mx_RoomSettingsDialog{position:relative!important;padding:0!important}
.h24-matrix-native-settings .mx_Dialog_header{padding:16px 52px 16px 16px;box-sizing:border-box;min-height:60px}
.h24-matrix-native-settings .mx_Dialog_title{font-size:18px;line-height:1.3;margin:0!important;padding-right:0!important;white-space:normal}
.h24-matrix-native-settings .mx_Dialog_cancelButton{top:12px;right:12px}
.h24-matrix-native-settings .mx_TabbedView{position:relative!important;inset:auto!important;display:flex;flex-direction:row!important;margin:0;padding:0;width:100%;height:100%;box-sizing:border-box}
.h24-matrix-native-settings .mx_TabbedView_tabLabels{position:static!important;display:flex;flex-direction:column;flex:0 0 190px;width:190px!important;max-width:190px;margin:0;padding:10px;overflow:auto;box-sizing:border-box}
.h24-matrix-native-settings .mx_TabbedView_tabPanel{margin-left:0!important;flex:1;min-width:0;min-height:0;overflow:hidden;padding:0!important}
.h24-matrix-native-settings .mx_TabbedView_tabPanelContent{width:100%;min-width:0;box-sizing:border-box;padding:16px;overflow:auto}
.h24-matrix-native-settings .mx_TabbedView_tabLabel_active{background:#e6f3fa;color:#0b1733!important}
.h24-matrix-native-settings .mx_TabbedView_tabLabel_active .mx_TabbedView_tabLabel_text{color:#0b1733!important}
.h24-matrix-native-settings .mx_Field{max-width:100%;min-width:0;box-sizing:border-box}
@container h24-settings (max-width:540px){.h24-matrix-native-settings .mx_TabbedView{flex-direction:column!important}.h24-matrix-native-settings .mx_TabbedView_tabLabels{flex:0 0 auto;flex-direction:row;width:100%!important;max-width:none;height:auto;max-height:96px;overflow-x:auto;overflow-y:hidden;padding:6px}.h24-matrix-native-settings .mx_TabbedView_tabLabel{flex:0 0 auto;min-height:44px;border-radius:8px;padding:8px 12px!important}.h24-matrix-native-settings .mx_TabbedView_tabLabel_text{display:inline!important;font-size:12px;white-space:nowrap}.h24-matrix-native-settings .mx_TabbedView_tabLabel svg{width:18px;height:18px;margin-right:6px!important}}
.h24-matrix-native-settings .mx_TabbedView .mx_SettingsTab{min-width:0!important;width:100%;max-width:100%;padding-right:0;padding-bottom:32px;overflow-wrap:anywhere}
.h24-matrix-native-settings .mx_AliasSettings{max-width:100%;min-width:0}
/* City owns the only desktop and every window frame. All native views share this document. */
.h24-city-thumbnail-cache{position:absolute;left:-9999px;top:0;width:64px;height:64px;overflow:hidden;pointer-events:none}
html.h24-city-engine,html.h24-city-engine body{background:transparent!important;overflow:hidden}
.h24-city-engine .h24-city-surfaces{background:transparent!important;width:100vw;height:100vh;container-type:normal}
.h24-city-engine .h24-city-surface.h24-matrix-window{position:absolute!important;inset:auto!important;left:var(--surface-x)!important;top:var(--surface-y)!important;width:var(--surface-w)!important;height:var(--surface-h)!important;min-width:0!important;min-height:0!important;border:0!important;margin:0!important;border-radius:0!important;box-shadow:none!important;background:var(--cpd-color-bg-canvas-default,#fff);overflow:hidden}
.h24-city-surface.h24-matrix-window>.wb-body{position:absolute!important;inset:0!important;width:100%;height:100%;border-radius:0}
.h24-city-engine .mx_ToastContainer{top:var(--h24-city-overlay-top,12px)!important;max-height:calc(100vh - var(--h24-city-overlay-top,12px) - 12px);overflow-y:auto}
.h24-city-reconnect{display:block;margin:24px auto;padding:12px 20px;border:0;border-radius:999px;background:#1487a7;color:white;font:inherit;cursor:pointer}

/* Full-viewport media is independent of the surrounding desktop zoom. */
.h24-city-engine .h24-gallery-viewer,.h24-city-engine .mx_Dialog_wrapper:has(.mx_ImageView){zoom:calc(1 / var(--h24-city-zoom,1))}

.h24-matrix-open-new{background:none;color:#56677b;border:1px solid #cbd7df;border-radius:8px;width:34px;height:34px;padding:7px;flex:none}.h24-matrix-open-new:hover{background:#edf6fa}.h24-matrix-open-new svg{width:18px;height:18px}

/* Scoped rooms use their content height; the native page-size buffer otherwise
   leaves hundreds of empty pixels when a large WinBox becomes smaller. */
.h24-city-surface .mx_RoomView_MessageList,.h24-matrix-desktop .h24-matrix-content .mx_RoomView_MessageList{height:auto!important;min-height:100%}

/* Account dialogs use their available logical width, including City view zoom.
 * Keep native settings/actions; replace fixed offsets and the 580px minimum. */
.mx_Dialog_border:has(.mx_UserSettingsDialog){width:min(1080px,calc(100% - 24px));height:min(900px,calc(100% - 24px));max-width:none;max-height:calc(100% - 24px);padding:8px;box-sizing:border-box;border-radius:24px;overflow:hidden;container:h24-account/inline-size}
.mx_Dialog_border:has(.mx_UserSettingsDialog)>.mx_Dialog{padding:0;width:100%;height:100%;min-width:0;box-sizing:border-box;overflow:hidden;border-radius:16px}
.mx_UserSettingsDialog.mx_Dialog_fixedWidth{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-width:0;min-height:0;display:flex;flex-direction:column}
.mx_UserSettingsDialog .mx_Dialog_header{flex:0 0 auto;padding:24px 64px 20px 24px;box-sizing:border-box;min-height:72px}
.mx_UserSettingsDialog .mx_Dialog_title{margin:0!important;padding:0!important;line-height:1.3;white-space:normal}
.mx_UserSettingsDialog .mx_Dialog_cancelButton{top:16px;right:16px}
.mx_UserSettingsDialog .mx_SettingsDialog_content{display:flex;flex:1;height:auto;min-height:0;min-width:0;overflow:hidden}
.mx_UserSettingsDialog .mx_TabbedView{position:static!important;inset:auto!important;display:flex;flex:1;flex-direction:row;min-width:0;min-height:0;width:100%;height:100%;padding:0;margin:0;box-sizing:border-box}
.mx_UserSettingsDialog .mx_TabbedView_tabLabels{position:static!important;display:flex;flex:0 0 220px;flex-direction:column;width:220px;max-width:220px;min-height:0;margin:0;padding:8px 12px;overflow:auto;box-sizing:border-box}
.mx_UserSettingsDialog .mx_TabbedView_tabLabel{min-height:44px;box-sizing:border-box}
.mx_UserSettingsDialog .mx_TabbedView_tabLabel_text{display:inline!important}
.mx_UserSettingsDialog .mx_TabbedView_tabPanel{display:flex;flex:1;min-width:0;min-height:0;margin:0!important;overflow:hidden}
.mx_UserSettingsDialog .mx_TabbedView_tabPanelContent{width:100%;min-width:0;min-height:0;padding:8px 24px 32px;box-sizing:border-box;overflow:auto}
.mx_UserSettingsDialog .mx_SettingsTab{min-width:0!important;width:100%;max-width:100%;padding:0 0 24px;box-sizing:border-box;overflow-wrap:anywhere}
.mx_UserSettingsDialog :is(.mx_Field,.mx_UserProfileSettings_profile_controls,.mx_UserProfileSettings_profile_nameAndStatus){min-width:0;max-width:100%;box-sizing:border-box}
.mx_UserSettingsDialog .mx_UserProfileSettings_profile{flex-direction:row;align-items:flex-start}
.mx_UserSettingsDialog .mx_UserProfileSettings_profile_buttons{display:flex;flex-wrap:wrap;gap:12px}
.mx_UserSettingsDialog .mx_UserProfileSettings_profile_buttons>*{max-width:100%;height:auto;min-height:44px;white-space:normal;overflow-wrap:anywhere}
@container h24-account (max-width:700px){
 .mx_UserSettingsDialog .mx_Dialog_header{padding:16px 56px 16px 16px;min-height:60px}
 .mx_UserSettingsDialog .mx_Dialog_title{font-size:20px}
 .mx_UserSettingsDialog .mx_TabbedView{flex-direction:column}
 .mx_UserSettingsDialog .mx_TabbedView_tabLabels{flex:0 0 auto;flex-direction:row;width:100%;max-width:none;overflow-x:auto;overflow-y:hidden;padding:4px 8px;gap:4px}
 .mx_UserSettingsDialog .mx_TabbedView_tabLabel{flex:0 0 auto;padding:8px 12px!important;border-radius:8px;margin:0}
 .mx_UserSettingsDialog .mx_TabbedView_tabLabel_text{white-space:nowrap;font-size:14px}
 .mx_UserSettingsDialog .mx_TabbedView_tabLabel svg{width:18px;height:18px;min-width:18px;margin-right:6px!important}
 .mx_UserSettingsDialog .mx_TabbedView_tabPanelContent{padding:8px 16px 24px}
 .mx_UserSettingsDialog .mx_UserProfileSettings_profile{flex-direction:column;align-items:flex-start;gap:16px}
 .mx_UserSettingsDialog .mx_UserProfileSettings_profile_buttons{flex-direction:column;align-items:stretch}
}

.h24-matrix-icon{position:relative}
.h24-matrix-desktop-kind{position:absolute;top:calc(32px * var(--h24-icon-scale,1));left:calc(50% - 26px * var(--h24-icon-scale,1));width:22px;height:22px;padding:3px;box-sizing:border-box;display:grid;place-items:center;background:#fff;color:#147ea6;border:1px solid #fff;border-radius:50%;box-shadow:0 1px 4px #0b173333;pointer-events:none}
.h24-matrix-desktop-kind>svg{width:16px;height:16px}

/* The room's logical width shrinks with view zoom. Reclaim redundant
 * timestamp gutters in native state cards without reducing chosen text size. */
.h24-matrix-content{container:h24-room/inline-size}
@container h24-room (max-width:640px){
 .h24-matrix-content .mx_EventTile{--event-tile-content-inline-end:8px;--event-tile-bubble-line-max-width:90%;--event-tile-bubble-max-width:100%}
 .h24-matrix-content .mx_EventTileBubble{max-width:100%}
}
.mx_UserSettingsDialog .mx_ImageSizePanel_radios{flex-wrap:wrap;min-width:0;gap:16px}
.mx_UserSettingsDialog .mx_ImageSizePanel_radios>label{margin-right:0;max-width:100%;min-width:0}
.mx_UserSettingsDialog .mx_ImageSizePanel_size{max-width:100%;height:auto}
.mx_UserSettingsDialog :is(form,fieldset,.mxLayoutSwitcher_LayoutSelector_LayoutRadio,.mxLayoutSwitcher_LayoutSelector_LayoutRadio>label){min-width:0;max-width:100%;box-sizing:border-box}
.mx_UserSettingsDialog .mxLayoutSwitcher_LayoutSelector_LayoutRadio_EventTilePreview{overflow-wrap:anywhere}
@container h24-room (max-width:640px){
 .h24-matrix-content .mx_NewRoomIntro{min-width:0;width:calc(100% - 24px);max-width:calc(100% - 24px);margin:24px 12px;box-sizing:border-box;overflow-wrap:anywhere}
 .h24-matrix-content .mx_RoomHeader_info{padding-right:0}
 .h24-matrix-content .mx_RoomHeader_infoWrapper{gap:8px}
}

/* A host-owned close control stays outside the external integration iframe,
 * including its unsupported-device, loading and connection-error views. */
.mx_IntegrationManager .mx_Dialog_border{width:min(1100px,calc(100% - 24px));height:min(760px,calc(100% - 24px));max-height:calc(100% - 24px);max-width:none;padding:8px;border-radius:24px;overflow:hidden}
.mx_IntegrationManager .mx_Dialog{display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;height:100%;box-sizing:border-box;border-radius:16px}
.mx_IntegrationManager .mx_Dialog>iframe{flex:1;min-height:0;height:0;min-width:0}
.h24-integration-dialog-bar{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:var(--cpd-color-bg-canvas-default,#fff);color:var(--cpd-color-text-primary,#0b1733);border-bottom:1px solid var(--cpd-color-border-interactive-secondary,#cbd7df);font:500 14px/1.4 system-ui,sans-serif}
.h24-integration-dialog-close{min-width:44px;min-height:44px;flex:none;padding:8px 12px;border:1px solid var(--cpd-color-border-interactive-secondary,#cbd7df);border-radius:8px;background:var(--cpd-color-bg-subtle-primary,#edf6fa);color:var(--cpd-color-text-primary,#0b1733);font:inherit;cursor:pointer}
.h24-integration-dialog-close:focus-visible{outline:3px solid #147ea6;outline-offset:2px}

/* Mobile uses a deliberate header switcher; never cover the composer. */
.h24-mobile-windows{display:none}
.h24-matrix-window .wb-control>.h24-window-control{display:flex;align-items:center;justify-content:center;background-image:none!important;filter:none;color:var(--h24-night);flex-shrink:0}
.h24-window-control svg{width:18px;height:18px;pointer-events:none}
.h24-mobile-window-list{position:absolute;top:51px;right:8px;width:min(350px,calc(100vw - 16px));max-height:calc(var(--h24-shell-height,100dvh) - 70px);overflow:auto;border:1px solid var(--h24-line);border-radius:12px;background:var(--h24-paper,#fff);box-shadow:0 12px 32px #0003;padding:6px;box-sizing:border-box;color:var(--h24-night)}
.h24-mobile-window-list>div{display:flex;align-items:center;min-width:0}
.h24-mobile-window-list button{min-height:44px;border:0;background:none;color:inherit;padding:8px 10px;font:inherit;border-radius:8px}
.h24-mobile-window-list button:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.h24-mobile-window-list button:last-child{width:44px;flex:none;font-size:24px}
.h24-mobile-window-list button:hover,.h24-mobile-window-list [aria-current=true]{background:var(--h24-soft,#eef6fa)}
.h24-mobile-windows:not([open])>.h24-mobile-window-list{display:none}
@container h24-shell (max-width:760px){
 .h24-matrix-dock{display:none!important}
 .h24-matrix-desktop[data-window-active=true] .h24-pet-layer{visibility:hidden}
 .h24-mobile-windows{display:block;flex:none}
 .h24-mobile-windows>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:2px;width:38px;height:38px;box-sizing:border-box;border:1px solid var(--h24-line);border-radius:50%;background:#fff;color:var(--h24-night);cursor:pointer;font-size:10px}
 .h24-mobile-windows>summary::-webkit-details-marker{display:none}
 .h24-mobile-windows>summary svg{width:18px;height:18px}
 .h24-matrix-header-tools>[aria-label="Desktop im Vollbild anzeigen"]{display:none}
 .h24-matrix-window .wb-control>.h24-window-control{width:44px;height:43px;min-width:44px}
 .h24-matrix-window .wb-control .h24-matrix-pin{display:none!important}
 .h24-matrix-window.max{top:0!important;height:var(--h24-shell-height,100dvh)!important}
 .h24-matrix-desktop:has(.h24-matrix-window.max.focus:not(.min))>.h24-matrix-toolbar{visibility:hidden}
}

/* The keyboard may pan the visual viewport independently of its height. */
.h24-matrix-shell-active .h24-matrix-desktop{transform:translate(var(--h24-shell-left,0px),var(--h24-shell-top,0px))}
@container h24-shell (max-width:240px){.h24-matrix-tiny .wb-control>.wb-min{display:none}}
@container h24-shell (max-width:180px){.h24-matrix-toolbar>.h24-matrix-nav-toggle{display:none}}
