:root{--blue:#0969a7;--navy:#123c5a;--ink:#15384f;--muted:#526e80;--page:#d5e5f2;--line:#c7d9e6;--paper:#fff}*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font-family:Arial,'Segoe UI',sans-serif;font-size:15px}button,input,select,textarea{font:inherit}button{border:0;border-radius:10px;background:var(--blue);color:#fff;padding:11px 17px;cursor:pointer;font-weight:600}button:hover{filter:brightness(.96)}button:disabled{opacity:.48;cursor:default}button.secondary{background:#e7eff6;color:var(--navy);border:1px solid #c7d9e6}button.green{background:#258266}button.quiet{background:transparent;color:#d8e8f3;text-align:left;padding:9px 0}button.wide{width:100%}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #43a9df;outline-offset:3px}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:700;margin:0 0 9px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;margin-bottom:0}h2{font-size:21px;margin-bottom:18px}h3{font-size:17px}a{color:#08699f}label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--muted);font-weight:600;margin:0 0 15px}input,select,textarea{border:1px solid #b6cbdc;background:#fff;color:var(--ink);padding:11px 12px;border-radius:9px;min-width:0;max-width:100%;width:100%}input[type=checkbox]{width:auto;align-self:flex-start}textarea{min-height:85px;resize:vertical}input[type=month]{min-width:170px}.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.side{position:sticky;top:0;height:100vh;width:auto;background:var(--navy);color:#fff;padding:30px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:700;letter-spacing:0;line-height:1.3;margin-bottom:40px}.brand-icon{width:37px;height:37px;object-fit:contain;border-radius:8px;background:white}.side nav{display:flex;flex-direction:column;gap:9px}.side nav button{color:#d6e5ef;text-align:left;background:transparent;width:100%;padding:14px 16px}.side nav button.active{background:#fff;color:var(--navy)}.side footer{margin-top:auto;display:flex;flex-direction:column;gap:6px;font-size:12px;border-top:1px solid #ffffff22;padding-top:20px}.side footer strong{font-size:15px}.content{padding:28px 34px 50px;max-width:1700px;min-width:0}.top{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--navy);color:#fff;padding:23px 28px;border-radius:16px;margin-bottom:24px}.header-right{display:flex;align-items:center;gap:25px;text-align:right;font-size:12px}.header-right small{display:block;margin-top:8px;color:#c4ddeb}.header-logo{width:84px;height:58px;object-fit:contain}.toolbar,.tabs{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0 23px}.toolbar label{margin:0;min-width:180px}.tabs{padding-bottom:15px;border-bottom:1px solid #b6cddc}.tabs button.active{background:var(--navy);color:#fff}.welcome{display:flex;align-items:center;gap:15px;margin:25px 0}.welcome h2{margin:0 0 6px;font-size:25px}.welcome p{margin:0}.avatar{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:17px;background:#e9f3fa;color:var(--blue);font-size:19px;font-weight:700;flex-shrink:0}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.metric-card{background:#fff;border:1px solid #e4edf3;border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:12px;min-width:0;box-shadow:0 4px 14px #163d5910}.metric-label{font-size:12px;color:var(--muted);font-weight:600}.metric{font-size:28px;letter-spacing:-.7px;line-height:1.15;font-weight:700}.metric-card small{font-size:11px;color:var(--muted);line-height:1.4;min-height:28px}.metric-card.blue{background:#edf6fc}.card{background:#fff;border:1px solid #e1eaf1;border-radius:15px;padding:24px;box-shadow:0 4px 14px #163d5910;margin-bottom:18px;min-width:0}.overview-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:20px;margin-top:23px}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekday{text-align:center;font-size:11px;font-weight:700;color:var(--muted);padding:8px 0}.day{border:1px solid #e0e9f0;border-radius:9px;padding:8px 5px;min-height:86px;background:#fff;font-size:12px;overflow:hidden}.day>b{display:block;margin-bottom:6px;text-align:right}.day.today{border:2px solid var(--blue);padding:7px 4px}.day.weekend{background:#f0f4f8;color:#8494a0}.day.empty{background:transparent;border:0}.calendar-event{display:block!important;white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.2;border-radius:4px;padding:4px;margin-top:3px;background:#dbeefb;color:#20577b}.calendar-event.sick{background:#f7e0e5;color:#8a3b54}.calendar-event.pending{background:#fff0d3;color:#845b1e}.calendar-event.imported{background:#f0f5f9;color:#526e80;border:1px dashed #9eb5c8}.calendar-legend,.source-note{font-size:11px;color:var(--muted);line-height:1.6;margin:14px 0 0}.request-card{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:15px 0;border-bottom:1px solid #e0e9f0}.request-card:last-child{border:0}.request-card>span:not(.badge),.request-card p,.request-card small{flex-basis:100%;font-size:12px;margin:0;line-height:1.5}.badge{font-size:10px;padding:4px 8px;border-radius:15px;background:#e4f3ed;color:#246951}.badge.warn{background:#fff0d3;color:#855a1f}.badge.gray{background:#e9eef3;color:#526e80}.sync-status{padding:17px 20px;background:#edf7f3;border:1px solid #b8dccc;border-radius:12px;display:flex;flex-wrap:wrap;gap:12px;font-size:13px}.sync-status small{margin-left:auto}.sync-status.stale{background:#fff3e2;border-color:#e8cfaa}.attendance-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:15px;margin-top:20px}.presence{padding:22px;border-radius:15px;border:1px solid #dae6ee;background:#fff;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.presence h3,.presence p{margin:0}.presence .avatar{width:44px;height:44px;font-size:15px}.presence small{min-height:28px;font-size:11px;color:var(--muted)}.presence-state{font-size:13px;color:#557080}.presence.anwesend .presence-state{color:#217756}.presence.krank .presence-state{color:#a44c65}.presence.urlaub .presence-state{color:#086da9}.presence.stale{border-style:dashed}.presence button{margin-top:auto;width:100%}.clock-card{border-radius:15px;background:#eaf5f3;border:1px solid #b5d6ca;padding:20px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}.clock-card p{font-size:12px;margin:8px 0 0}.clock-card small{flex-basis:100%;font-size:11px;color:#456c63}.row{display:flex;flex-wrap:wrap;gap:7px}.table-wrap{overflow:auto;max-width:100%;background:#fff;border-radius:12px;margin-top:16px}table{border-collapse:collapse;width:100%;font-size:12px}th{background:#edf4f9;text-align:left;color:#4b667b;font-size:11px;padding:13px}td{padding:12px 13px;border-bottom:1px solid #e5edf3;vertical-align:top}td button{padding:8px 11px;font-size:11px}.note{padding:14px 17px;border-radius:10px;background:#fff0d3;color:#775528;line-height:1.5;font-size:13px;margin:12px 0}.note.info{background:#e7f2fa;color:#335c79}.note.error{background:#f8e2e3;color:#923637}.stack{display:flex;flex-direction:column;gap:16px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-height:380px;overflow:auto}.dialog{border:0;border-radius:17px;width:min(900px,94vw);max-height:88vh;padding:28px;color:var(--ink);box-shadow:0 20px 100px #123c5a50}.dialog::backdrop{background:#123c5a75}.dialog>button{margin-top:20px}.illness-photo{max-width:100%;height:auto;max-height:65vh;object-fit:contain}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:35px;background:radial-gradient(ellipse at 10% 10%,#b5d4e9 0,transparent 60%),#d5e5f2}.login-card{width:440px;max-width:100%;padding:40px 42px;background:#fff;border-radius:22px;box-shadow:0 16px 60px #173e5625}.login-icon{width:60px;height:60px;object-fit:contain;margin-bottom:20px}.login-card h1{font-size:36px;margin:0 0 12px}.login-card form{margin:27px 0 20px}.login-card label{margin-bottom:20px}.login-help{font-size:12px;line-height:1.6;color:var(--muted)}.login-card a{font-size:12px}.password-rules{font-size:12px;line-height:1.9;color:var(--muted);padding-left:18px}#notice{position:fixed;bottom:22px;right:22px;left:auto;max-width:calc(100vw - 44px);width:480px;background:#174d72;color:#fff;padding:17px 22px;border-radius:12px;box-shadow:0 7px 30px #173e5630;z-index:10000;display:none;font-size:14px}#notice.error{background:#973f4d}
@media(min-width:1600px){.content{padding:34px 45px}.metric{font-size:32px}}@media(max-width:1100px){.shell{grid-template-columns:190px minmax(0,1fr)}.side{padding:25px 14px}.brand{font-size:15px}.content{padding:22px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-columns{grid-template-columns:1fr}.header-right>div{font-size:10px}.header-logo{width:65px}.top{padding:20px}.metric{font-size:27px}}@media(max-width:700px){.shell{display:block}.side{height:auto;position:relative;padding:15px 18px;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}.brand{font-size:16px;margin:0;flex:1}.brand-icon{width:30px;height:30px}.side nav{flex-direction:row;width:100%;order:3}.side nav button{width:auto;flex:1;text-align:center;padding:11px}.side footer{border:0;margin:0;padding:0;display:block}.side footer strong,.side footer>span,.side footer .quiet:first-of-type{display:none}.side footer button.quiet{font-size:11px;padding:5px}.content{padding:17px 14px 35px}.top{padding:18px;margin-bottom:18px;gap:9px;border-radius:13px}.top h1{font-size:24px}.header-right{gap:10px}.header-right>div>span{display:none}.header-right small{max-width:75px;line-height:1.5;margin:0;font-size:9px}.header-logo{width:52px;height:42px}.eyebrow{font-size:9px}.cards{gap:10px}.metric-card{padding:16px 13px;gap:10px}.metric{font-size:24px}.metric-label{font-size:11px}.metric-card small{font-size:10px}.toolbar{gap:8px}.toolbar button{font-size:12px;padding:11px 12px}.toolbar label{min-width:0;flex:1}.card{padding:18px 13px}.calendar{gap:3px}.day{min-height:74px;padding:5px 3px;font-size:11px}.day.today{padding:4px 2px}.calendar-event{font-size:8px;padding:3px 1px}.calendar-legend{font-size:10px}.tabs{gap:7px}.tabs button{font-size:11px;padding:9px 12px}.sync-status small{margin:0;flex-basis:100%}.attendance-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.presence{padding:16px 12px}.presence h3{font-size:15px}.presence p{font-size:11px}.presence-state{font-size:11px}.login-page{padding:18px}.login-card{padding:29px 25px}.login-card h1{font-size:30px}.clock-card{padding:17px}.clock-card>.row{width:100%}.clock-card button{flex:1}.dialog{padding:22px 16px}.row{gap:7px}table{font-size:11px}}

.top>div:first-child{min-width:0}.top .eyebrow{line-height:1.4}.top h1{line-height:1.2}.header-right{flex-shrink:0}@media(max-width:380px){.top{flex-wrap:wrap}.header-right{width:100%;justify-content:space-between;text-align:left}.header-right small{max-width:none}.header-logo{height:34px}}
.brand{margin-bottom:30px}.brand-icon{width:64px;height:64px;border-radius:0;background:transparent;filter:brightness(0) invert(1)}@media(max-width:700px){.brand{margin:0}.brand-icon{width:42px;height:42px}}

/* Login layout follows the supplied reference: branding above the form. */
.login-screen{padding:40px 42px}
.login-branding{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:72px}
.login-branding .login-icon{width:104px;height:104px;margin:0}
.login-screen h1{font-size:26px;line-height:1.2;margin:0}
.login-screen label{font-size:12px;font-weight:400}
.login-screen input{font-size:13px}
.login-screen button.primary{height:40px;font-size:13px;font-weight:400}
.login-notice{display:block;flex:0 0 auto;text-decoration:none}
.login-notice:focus-visible{outline:3px solid #096da9;outline-offset:5px;border-radius:4px}
.login-qr{display:block;width:112px;height:112px;background:#fff}
@media(max-width:480px){.login-screen{padding:29px 25px}.login-branding{margin-bottom:56px}.login-branding .login-icon{width:96px;height:96px}.login-qr{width:104px;height:104px}}
