/* HMS Kompakt — original brand palette, shared controls and page families. */
body.hms-kompakt{--radius:6px;--radius-sm:4px;--radius-lg:8px;--shadow:none;--shadow-lift:none;--kompakt-top:32px;--kompakt-bar:64px;--kompakt-rail:60px;--kompakt-nav:164px;--kompakt-shell:224px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.45;color:#1d2125;background:#f4f5f7;padding-top:calc(var(--kompakt-top) + var(--kompakt-bar))!important}
.hms-kompakt *{scrollbar-width:thin;scrollbar-color:#aab5ae #f4f5f7}.hms-kompakt [hidden]{display:none!important}.hms-kompakt #lab-notice{position:fixed;left:0;right:0;top:0;min-height:32px;height:32px;padding:5px 12px;background:#e7f2ec;color:#185f3c;border-bottom:1px solid #cfdfd5;font-size:12px;z-index:2100}.hms-kompakt #lab-notice:after{content:' · Design-Testkopie – nicht produktiv';font-weight:600}
.hms-kompakt ::selection{background:#cce4d5;color:#185f3c}.hms-kompakt :focus-visible{outline:2px solid #1f7a4d;outline-offset:3px}.hms-kompakt input,.hms-kompakt textarea{caret-color:#1f7a4d}
#kompaktBar{position:fixed;top:var(--kompakt-top);left:var(--kompakt-rail);right:0;height:64px;background:#fff;z-index:1500;border-bottom:1px solid #d9dfe3;display:flex;align-items:center;gap:20px;padding:10px 18px 10px 0;color:#1d2125}
.kompakt-logo{height:64px;width:164px;flex:none;display:flex;align-items:center;padding:8px 14px;border-right:1px solid #e3e6ea}.kompakt-logo img{width:112px;height:48px;object-fit:contain;object-position:left center}
.kompakt-search{position:relative;max-width:520px;flex:1;min-width:150px}.kompakt-search label{display:flex;align-items:center;gap:9px;background:#f8f9fb;border:1px solid #c7cfd7;border-radius:5px;padding:0 10px;height:36px}.kompakt-search svg{width:18px;height:18px;flex:none;color:#435249}.hms-kompakt #kompaktSearch{width:100%;border:0;background:transparent;font-size:13px;padding:7px 0;min-height:32px;height:32px;outline:0}.kompakt-search label:focus-within{outline:2px solid #1f7a4d;outline-offset:2px}
#kompaktResults{position:absolute;top:44px;left:0;right:0;background:#fff;border:1px solid #c6d1ca;box-shadow:0 8px 20px #182c2320;padding:6px;border-radius:6px;max-height:70vh;overflow:auto;z-index:1700}#kompaktResults a{display:block;padding:10px;text-decoration:none;color:#1d2125;min-height:40px}#kompaktResults a:hover{background:#e7f2ec}#kompaktResults p{padding:12px;font-size:12px;color:#5b6470}
.kompakt-bar-actions{display:flex;align-items:center;gap:14px;margin-left:auto;flex:none}.kompakt-add{display:flex;align-items:center;justify-content:center;min-height:36px;border:1px solid #185f3c;background:#1f7a4d;color:white!important;text-decoration:none;border-radius:5px;font-size:14px;font-weight:650;padding:7px 16px}.kompakt-add:hover{background:#185f3c}
.kompakt-account,.kompakt-tools{position:relative;margin:0!important;padding:0!important;border:0!important}.kompakt-account>summary,.kompakt-tools>summary{cursor:pointer;min-height:36px;font-size:13px;padding:7px 4px;list-style:none;white-space:nowrap}.kompakt-account>summary:after,.kompakt-tools>summary:after{content:'⌄';margin-left:10px}.hms-kompakt .kompakt-account .sidebar-foot{position:absolute;top:43px;right:0;width:240px;padding:16px;background:#fff;border:1px solid #d0d8d2;border-radius:6px;box-shadow:0 10px 22px #182c2320;margin:0;max-height:75vh;overflow:auto}.hms-kompakt .kompakt-account:not([open]) .sidebar-foot{display:none}.kompakt-tools-body{position:absolute;right:0;top:44px;min-width:280px;background:#fff;border:1px solid #d0d8d2;padding:12px;border-radius:6px;box-shadow:0 10px 22px #182c2320}.hms-kompakt .kompakt-tools .ft-bar{position:static!important;box-shadow:none;background:#23282d;border-radius:6px;margin:0;display:flex!important}.hms-kompakt .kompakt-tools #hmsMic{position:static!important;margin-top:12px}.hms-kompakt .notif-bell{position:relative!important;inset:auto!important;margin:0;width:34px;height:34px;min-height:34px;box-shadow:none;background:#fff;color:#1d2125;border:0}.hms-kompakt .notif-bell svg{stroke:currentColor}.hms-kompakt .notif-panel{z-index:1800;top:calc(var(--kompakt-top) + 66px)!important}
.kompakt-rail{position:fixed;left:0;top:var(--kompakt-top);bottom:0;width:60px;background:#23282d;color:#fff;display:flex;flex-direction:column;align-items:center;gap:7px;z-index:1600;padding-bottom:14px}.kompakt-rail-brand{display:flex;align-items:center;justify-content:center;width:60px;height:64px;margin-bottom:20px;background:white}.kompakt-rail-brand img{width:48px;height:27px;object-fit:contain}.kompakt-rail>a:not(:first-child),.kompakt-rail>button{width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:0;border-radius:5px;color:#dce8e0;background:transparent;cursor:pointer}.kompakt-rail>a.active{background:#365849;color:white}.kompakt-rail>a:hover,.kompakt-rail>button:hover{background:#3b4940}.kompakt-rail svg,.kompakt-rail .sb-icon{width:22px;height:22px;stroke:currentColor;fill:none}.kompakt-rail>button{margin-top:auto}.kompakt-rail-brand:focus-visible{outline-offset:-3px}
.hms-kompakt .sidebar{top:calc(var(--kompakt-top) + 64px)!important;left:60px!important;width:164px!important;height:calc(100dvh - var(--kompakt-top) - 64px)!important;bottom:0;background:#f3f5f8;border-right:1px solid #d2d9df;box-shadow:none;z-index:1400;font-size:13px}.hms-kompakt .sidebar-nav{padding:16px 7px;overflow:auto}.hms-kompakt .sidebar-link{gap:8px;padding:8px 7px;margin:0 0 3px;border-radius:4px;min-height:36px;font-size:12px;font-weight:500;color:#26352d}.hms-kompakt .sidebar-link.active{background:#cde4d5;color:#173e29;font-weight:650}.hms-kompakt .sidebar-link:hover{background:#e3ebe5}.hms-kompakt .sidebar-link .sb-icon{width:18px;height:18px;flex:none;opacity:1}.hms-kompakt .sidebar-link .sb-icon svg{width:18px;height:18px}.hms-kompakt .sidebar-section{padding:20px 7px 7px;font-size:10px;letter-spacing:.06em;color:#5b6470}.hms-kompakt .kompakt-close{position:static;align-self:flex-end;height:28px;min-height:28px;margin:2px 8px 0;border:0;font-size:20px;background:transparent;color:#52645a;display:none}.hms-kompakt .lab-old-tools{margin:6px 0}.hms-kompakt .lab-old-tools>summary{font-size:11px;padding:6px;min-height:34px}.hms-kompakt .lab-old-tools .sidebar-link{font-size:11px}.hms-kompakt .sidebar-foot .user-name{font-size:13px}.hms-kompakt .sidebar-foot .user-role{font-size:10px}.hms-kompakt .sidebar-foot button{min-height:36px;margin-top:10px}
/* Shared dense controls apply to screen UI, never print layouts or canvas drawings. */
.hms-kompakt:not([data-kompakt-page="login"]) main{min-width:0}.hms-kompakt .card,.hms-kompakt .panel,.hms-kompakt .lab-section,.hms-kompakt .lab-quick{border-radius:6px;box-shadow:none;border-color:#d9dfe3}.hms-kompakt button,.hms-kompakt input,.hms-kompakt select,.hms-kompakt textarea,.hms-kompakt .button,.hms-kompakt .btn{border-radius:5px;box-shadow:none}.hms-kompakt main button,.hms-kompakt main .button,.hms-kompakt main .btn{min-height:34px;font-size:13px;padding:7px 11px}.hms-kompakt main input:not([type=checkbox]):not([type=radio]),.hms-kompakt main select{min-height:34px;font-size:13px;padding:7px 10px}.hms-kompakt h1{letter-spacing:-.025em;font-size:27px}.hms-kompakt h2{font-size:18px;letter-spacing:-.015em}.hms-kompakt h3{font-size:15px}.hms-kompakt main th{font-size:11px;font-weight:650;color:#4d5a53;background:#edf0f3;padding:9px 12px}.hms-kompakt main td{font-size:13px;padding:11px 12px;line-height:1.5}.hms-kompakt main table{font-variant-numeric:tabular-nums}.hms-kompakt .tablewrap,.hms-kompakt .table-wrap,.hms-kompakt .table-container{border-radius:5px;overflow:auto}.hms-kompakt .badge,.hms-kompakt .pill,.hms-kompakt .lab-pill{border-radius:4px;font-size:11px;padding:3px 6px}.hms-kompakt dialog{border-radius:7px;border-color:#cbd5ce}.hms-kompakt dialog::backdrop{background:#17271f70}.hms-kompakt main textarea{font-size:13px}.hms-kompakt .lab-header{padding:20px 24px 16px}.hms-kompakt .lab-header h1{margin:0 0 7px;font-size:27px}.hms-kompakt .lab-body{padding:20px 24px}.hms-kompakt .lab-page{max-width:none;padding-bottom:32px}.hms-kompakt .lab-tabs{margin-top:18px;gap:22px}.hms-kompakt .lab-tabs button{padding:10px 0}.hms-kompakt main .filters{gap:10px;margin:16px 0}.hms-kompakt main .filters label{font-size:11px}.hms-kompakt main .filters input,.hms-kompakt main .filters select{margin-top:4px}.hms-kompakt main tbody tr:hover{background:#f1f6f2}.hms-kompakt main .titlebar{max-width:none}
@media(min-width:960px){body.hms-kompakt.sidebar-open{padding-left:224px!important}body.hms-kompakt:not(.sidebar-open){padding-left:60px!important}.hms-kompakt body .sidebar{transform:none}.hms-kompakt .hamburger{display:none!important}.hms-kompakt .sidebar-backdrop{display:none!important}.hms-kompakt header.app{padding:18px 24px 14px!important}.hms-kompakt>header:not(#lab-notice){padding-top:22px!important}.hms-kompakt>main:not(.lab-page){max-width:none;padding:22px 24px}.hms-kompakt .wrap{max-width:none}.hms-kompakt .lab-header-top{padding-right:0}.hms-kompakt .lab-header-top .lab-actions{margin-left:auto}.hms-kompakt .kompakt-nav-toggle{display:flex}}
@media(max-width:959px){body.hms-kompakt{padding-left:0!important;--kompakt-rail:0px}.kompakt-rail{display:none}.kompakt-logo{width:72px;padding:7px 8px;border-right:0}.kompakt-logo img{width:58px;height:30px}.hms-kompakt #kompaktBar{gap:7px;padding-right:10px;height:58px}.kompakt-search{min-width:0}.kompakt-search label{padding:0 7px}.hms-kompakt #kompaktSearch{font-size:12px;min-width:0}.kompakt-bar-actions{gap:7px}.kompakt-add{font-size:12px;padding:6px 8px;min-height:36px}.kompakt-account>summary{max-width:60px;overflow:hidden;text-overflow:ellipsis;font-size:12px}.kompakt-tools{display:none}.hms-kompakt .kompakt-account .sidebar-foot{top:42px}.hms-kompakt .sidebar{top:calc(var(--kompakt-top) + 58px)!important;left:0!important;width:250px!important;height:calc(100dvh - var(--kompakt-top) - 58px)!important}.hms-kompakt .sidebar-link{font-size:14px;min-height:44px}.hms-kompakt .sidebar-section{font-size:11px}.hms-kompakt .kompakt-close{display:block}.hms-kompakt .sidebar-backdrop{z-index:1300;top:calc(var(--kompakt-top) + 58px)!important}.hms-kompakt .hamburger{display:none!important}.hms-kompakt .tabbar{z-index:1450}.hms-kompakt main button,.hms-kompakt main .button,.hms-kompakt main .btn{min-height:44px}.hms-kompakt main input:not([type=checkbox]):not([type=radio]),.hms-kompakt main select,.hms-kompakt main textarea{font-size:16px;min-height:44px}.hms-kompakt .lab-header,.hms-kompakt .lab-body{padding:18px 16px}.hms-kompakt main{padding-bottom:90px}.hms-kompakt .notif-panel{max-width:calc(100vw - 20px);right:10px!important}.hms-kompakt .notif-bell{width:30px;height:30px;min-height:30px}.hms-kompakt .notif-bell svg{width:20px;height:20px}}
@media(max-width:400px){.kompakt-search{display:none}.kompakt-bar-actions{flex:1;justify-content:flex-end}.kompakt-tools{display:block}.kompakt-tools>summary{font-size:11px}.hms-kompakt .kompakt-account>summary{max-width:56px}.hms-kompakt h1{font-size:24px}}
@media print{body.hms-kompakt{padding:0!important;background:white}#kompaktBar,.kompakt-rail,.hms-kompakt .sidebar,.hms-kompakt .tabbar,.hms-kompakt #lab-notice{display:none!important}}

.kompakt-mobile-menu{display:none}body.hms-kompakt:not(.sidebar-open) .kompakt-rail .kompakt-nav-toggle{background:#365849}
@media(max-width:959px){.hms-kompakt .kompakt-mobile-menu{display:flex;align-items:center;justify-content:center;flex:none;width:34px;height:36px;padding:6px;border:1px solid #d2dad5;background:white;color:#263b2e;border-radius:4px}.kompakt-mobile-menu svg{width:20px;height:20px}.hms-kompakt .kompakt-account .kompakt-tools{display:block;margin-top:14px!important;padding-top:10px!important;border-top:1px solid #d9e1dc!important}.hms-kompakt .kompakt-account .kompakt-tools>summary{min-height:42px;font-size:13px}.hms-kompakt .kompakt-account .kompakt-tools-body{position:static;min-width:0;box-shadow:none;border:0;padding:8px 0}.hms-kompakt .kompakt-account .kompakt-tools .ft-bar{padding:8px 6px!important;gap:5px!important}.hms-kompakt .kompakt-account .kompakt-tools .ft-bar select{font-size:11px!important}.hms-kompakt .kompakt-account .kompakt-tools .ft-time{font-size:12px!important;min-width:38px!important}}
@media(max-width:600px){.kompakt-search{display:none}.kompakt-logo{width:70px}.kompakt-bar-actions{gap:8px;flex:1;justify-content:flex-end}.kompakt-account>summary{max-width:52px}.kompakt-account>summary:after{margin-left:5px}.kompakt-add{font-size:12px;padding:7px 10px}}
@media(max-width:350px){.kompakt-logo{width:58px;padding-left:6px}.kompakt-logo img{width:49px}.kompakt-bar-actions{gap:5px}.kompakt-add{font-size:11px;padding:7px}.hms-kompakt #kompaktBar{gap:4px;padding-right:6px}.kompakt-account>summary{max-width:48px;font-size:11px}}

body.hms-kompakt{--accent:#1f7a4d;--accent-press:#185f3c;--accent-soft:#e7f2ec}.hms-kompakt #lab-notice{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:21px}.hms-kompakt #lab-notice:after{content:none}.hms-kompakt .kompakt-add{background:#1f7a4d}

.hms-kompakt .modal-bg,.hms-kompakt .modal-overlay,.hms-kompakt .dialog-backdrop,.hms-kompakt .dlg-backdrop{z-index:1900!important}.hms-kompakt .modal{z-index:1901}.hms-kompakt .sidebar[inert]{pointer-events:none}
