:root{color-scheme:only light}
.mp-account{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}.mp-account>span{flex:1;font-weight:600}.mp-account form{margin:0}.mp-account button{margin:0;padding:7px 12px}.mp-apps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px}.mp-app{display:flex;align-items:center;gap:12px;padding:18px;border:1px solid var(--line,#d5e0e8);border-radius:12px;background:#fff;color:#24323b;text-decoration:none;min-height:100px}.mp-app:hover,.mp-app:focus-visible{border-color:#086caf;box-shadow:0 0 0 2px #086caf25}.mp-app>img{width:38px;height:38px}.mp-app strong{display:block;font-size:20px}.mp-app small{display:block;margin-top:5px;line-height:1.4}.mp-app>span:last-child{font-size:28px}.mp-brand{max-width:240px;max-height:48px;object-fit:contain}.mp-home-link{font-weight:700;text-decoration:none;color:inherit}

.mp-frame-main.zwp-main{max-width:none;width:100%;padding:8px 12px;margin:0}.mp-frame-main .mp-account{margin-bottom:8px}.mp-frame{display:block;width:100%;height:calc(100dvh - 150px);min-height:400px;border:1px solid #cad6df;border-radius:8px;background:#fff}@media(max-width:600px){.mp-frame-main.zwp-main{padding:4px}.mp-frame-main .mp-account{font-size:12px;gap:8px}.mp-frame{height:calc(100dvh - 150px)}}

:root{color-scheme:only light}html,body{background:#f4f7f9;color:#24323b}.mp-apps .mp-app small{color:#52616d}.mp-apps .mp-app .mp-app-content{flex:1;min-width:0}.mp-apps .mp-app .mp-app-logo{display:block;width:100%;max-width:215px;height:44px;object-fit:contain;object-position:left center;margin-bottom:7px}.mp-apps .mp-app .mp-report-logo{display:flex;align-items:center;gap:10px;height:44px;margin-bottom:7px}.mp-report-logo img{width:42px;height:42px;object-fit:contain}.mp-report-logo strong{font-size:21px}.mp-apps .mp-app .mp-app-arrow{font-size:28px;flex:none}

/* Mobile sign-in and app home: retain the original logo ratio at 80% viewport width. */
@media(max-width:1024px){
.zwp-header:is(.mp-login-header,.mp-home-header){justify-content:center;padding:24px 0;gap:0}
.zwp-header:is(.mp-login-header,.mp-home-header) .zwp-brands{width:80vw;max-width:none;flex:none;justify-content:center;margin:0}
.zwp-header:is(.mp-login-header,.mp-home-header) .zwp-brands>a{display:block;width:100%;flex:none}
.zwp-header:is(.mp-login-header,.mp-home-header) .zwp-brands img.mp-brand{display:block;width:100%;max-width:none;height:auto;max-height:none;margin:0;object-fit:contain}
}

.mp-apps .mp-app-disabled{background:#e3e7eb;border-color:#d3d9df;color:#68737d;cursor:default;box-shadow:none}.mp-apps .mp-app-disabled:hover{border-color:#d3d9df;box-shadow:none}.mp-apps .mp-app-disabled img{filter:grayscale(1);opacity:.55}.mp-apps .mp-app-disabled strong,.mp-apps .mp-app-disabled small{color:#68737d}.mp-apps .mp-app .mp-app-status{font:12px/1.4 Arial,sans-serif;color:#68737d;text-align:right;flex:none}

.mp-apps .mp-app-logo{display:block;width:100%;max-width:280px;height:46px;object-fit:contain;object-position:left center}

/* The three application cards use equal lettering height, never equal image width. */
.mp-apps .mp-app-logo{width:auto!important;height:28px!important;max-width:none!important;object-fit:contain;object-position:left center}

/* Scale the entire logo family from its widest original: 80% of card width. */
.mp-apps .mp-app{position:relative;display:block;padding:20px 0 16px;min-height:110px}
.mp-apps .mp-app .mp-app-content{display:block;width:80%;margin:0 auto 0 16px}
.mp-apps .mp-app .mp-app-content .mp-app-logo{width:100%!important;height:auto!important;max-width:none!important;margin:0;object-fit:contain}
.mp-apps .mp-app .mp-app-arrow{position:absolute;right:3%;top:26px}
.mp-apps .mp-app .mp-app-status{display:block;width:80%;margin:6px auto 0 16px;text-align:left;font-size:11px}
.mp-apps .mp-app .mp-app-status br{display:none}
.mp-apps .mp-app .mp-app-content .mp-app-logo[data-app-logo="zeitwerk"]{width:67.719591%!important}
.mp-apps .mp-app .mp-app-content .mp-app-logo[data-app-logo="planungswerk"]{width:100.000000%!important}
.mp-apps .mp-app .mp-app-content .mp-app-logo[data-app-logo="berichtsheft"]{width:87.857125%!important}

/* Align proportional logos to the left edge of the common 80% card area. */
.mp-apps .mp-app .mp-app-content .mp-app-logo{margin-left:0;margin-right:auto;object-position:left center}

/* Mobile home header: company brand and existing account actions in one row. */
.mp-mobile-actions{display:none}
.mp-zeitwerk-logo{display:none}
@media(max-width:750px){
 .zwp-header.mp-zeitwerk-header{justify-content:center;padding:12px 0;gap:0}
 .mp-zeitwerk-header .zwp-brands{flex:0 0 60%;width:60%;max-width:none;margin:0}
 .mp-zeitwerk-header .zwp-brands>a{display:block;width:100%}
 .mp-zeitwerk-header .zwp-brands .mp-brand,.mp-zeitwerk-main > .mp-account.mp-account-bell{display:none}
 .mp-zeitwerk-header .zwp-brands .mp-zeitwerk-logo{display:block;width:100%;max-width:none;height:auto;margin:0}
 
 .mp-zeitwerk-main .mp-frame{height:calc(100dvh - 60vw * 128 / 527.346 - 34px)}
}
@media(max-width:600px){
 .zwp-header.mp-home-header{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;padding:16px 8px;gap:0}
 .zwp-header.mp-home-header .zwp-brands{width:60%;max-width:none;flex:0 0 60%;justify-content:flex-start}
 .zwp-header.mp-home-header .zwp-brands img.mp-brand{object-position:left center}
 .mp-home-header .mp-mobile-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex:0 0 40%;min-width:0}
 .mp-mobile-actions form{margin:0}
 .mp-mobile-actions form button{margin:0;width:80px;min-height:48px;padding:8px 4px;border:1px solid #a91827;border-radius:8px;background:#c52232;color:#fff;font-size:12px;font-weight:700;line-height:1.2}
 .mp-mobile-actions form button:hover{background:#a91827}
 .mp-mobile-actions .mp-bell-button{display:grid;place-items:center;width:32px;height:36px;min-width:32px;margin:0;padding:0;border:1px solid #accce1;border-radius:8px;background:#edf6fc;color:#086caf}
 .mp-mobile-actions .mp-bell-button svg{width:20px;height:20px}
 .mp-mobile-actions button:focus-visible{outline:3px solid #086caf;outline-offset:2px}
}

/* Place the employee name in existing header space without changing its height. */
@media(max-width:600px){
 .zwp-header.mp-home-header .zwp-brands{position:relative}
 .mp-home-header .zwp-brands>.mp-header-name{position:absolute;top:100%;left:0;display:block;width:100%;margin:0;font-size:11px;font-weight:400;line-height:14px;color:#52616d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mp-account.mp-account-bell.mp-account-in-header{display:none}
}

/* Compact phone tiles by removing vertical whitespace; logo geometry stays unchanged. */
@media(max-width:700px){
 .mp-apps{row-gap:6px}
 .mp-apps .mp-app{min-height:0;padding-top:8px;padding-bottom:8px}
 .mp-apps .mp-app .mp-app-arrow{top:50%;transform:translateY(-50%)}
 .mp-apps .mp-app .mp-app-status{margin-top:2px}
}

/* The equipment screen owns its title. Keep just the app overview control above it. */
html:has(body.mp-equipment-selected),body.mp-equipment-selected{overflow:hidden}
body.mp-equipment-selected>.zwp-header,.mp-equipment-selected .mp-account,.mp-equipment-selected .mp-selected-logo{display:none!important}
body.mp-equipment-selected .mp-frame-main>.mp-frame{position:fixed;inset:0;width:100%;height:100dvh!important;min-height:0!important;border:0!important;border-radius:0!important;margin:0}
