:root{color-scheme:light;--bg:#f6fbff;--navy:#1b2e40;--blue:#254f72;--muted:#56718e;--yellow:#f7cf20;--border:#d2e1ec;font:16px system-ui,-apple-system,'Segoe UI',sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--navy);background:repeating-radial-gradient(circle at 70% 110%,transparent 0 66px,#dfedf8 67px 69px,transparent 70px 138px),linear-gradient(135deg,#fff,#f2f9ff);background-attachment:fixed}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c7a812;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:2rem;letter-spacing:-.035em}h2{font-size:1.2rem}h3{font-size:1.05rem}p{line-height:1.5}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.logo{width:180px;height:75px;background:url('brand-reference.png') -92.25px -175.5px/892.5px 678.75px no-repeat;border-radius:8px;flex-shrink:0}.shell{max-width:1280px;margin:auto;padding:24px 28px 110px}.top{display:flex;align-items:center;justify-content:space-between;gap:18px}.profile{display:flex;align-items:center;gap:10px;border:1px solid var(--border);padding:8px 13px;background:white;border-radius:26px}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--yellow);font-weight:800}.avatar.large{width:64px;height:64px;font-size:1.4rem;border-radius:18px}.muted{color:var(--muted)}.small{font-size:.875rem}.eyebrow{color:var(--muted);font-size:.75rem;letter-spacing:.12em;font-weight:750;margin-bottom:6px}.hero{margin:26px 0 22px;display:flex;justify-content:space-between;align-items:center;gap:16px}.hero p{margin-top:6px}.card{background:#fffffff2;border:1px solid var(--border);border-radius:15px;padding:24px;box-shadow:0 3px 10px #25476608}.grid{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}.stack{display:grid;gap:16px}.line{display:flex;align-items:center;justify-content:space-between;gap:12px}.primary,.secondary{border:1px solid #e4bf1b;border-radius:10px;min-height:46px;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:750;background:var(--yellow);color:var(--navy)}.secondary{background:white;border-color:#c6d9e9;color:var(--blue);font-weight:600}.danger{color:#a73232;border-color:#e6c6c6}.badge{border:1px solid var(--border);background:#f7fbfe;color:var(--muted);padding:5px 10px;border-radius:20px;font-size:.75rem;white-space:nowrap}.badge.off{background:#fff1ef;color:#974434}.space{margin-top:20px}.row{display:flex;align-items:center;gap:13px;padding:16px;border:1px solid var(--border);border-radius:13px;background:white;width:100%;text-align:left}.row.selected{border-color:#d4b725;background:#fffbe9}.row .text{flex:1;min-width:0}.row strong{display:block;overflow-wrap:anywhere}.row .muted{font-size:.875rem;overflow-wrap:anywhere}.row .avatar{flex-shrink:0}.summary{font-size:2.8rem;font-weight:700;margin:16px 0 4px;letter-spacing:-.04em}.nav{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);width:min(570px,calc(100% - 28px));background:#ffffffed;border:1px solid #c6d9e9;box-shadow:0 3px 16px #25476610;backdrop-filter:blur(16px);padding:6px;display:flex;border-radius:18px;z-index:8}.nav button{flex:1;min-width:0;border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 3px;border-radius:12px;font-size:.8rem}.nav button.active{background:#fff2b2;color:var(--navy)}.nav b{background:var(--yellow);border-radius:12px;font-size:.75rem;padding:1px 5px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.wide{grid-column:1/-1}label{display:block;font-size:.875rem;font-weight:600;margin:14px 0 6px}input,select,textarea{width:100%;background:#fff;color:var(--navy);border:1px solid #8ca5bb;padding:12px;border-radius:9px;min-height:46px}textarea{min-height:80px;resize:vertical}.field-value{border-bottom:1px solid var(--border);padding:12px 0;overflow-wrap:anywhere}.field-value label{margin:0 0 5px;font-weight:500;color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.list{display:grid;gap:10px;margin-top:16px;max-height:55dvh;overflow:auto}.empty{text-align:center;color:var(--muted);padding:35px 12px}.login-layout{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:70px;max-width:1080px;margin:auto;padding:34px}.login-brand .logo{width:240px;height:100px;background-size:1190px 905px;background-position:-123px -234px;margin-bottom:50px}.login-brand h1{font-size:1.55rem;max-width:380px}.login-brand p{max-width:390px;margin-top:14px;color:var(--muted)}.login-card{padding:30px;min-width:0}.login-card .primary{width:100%;margin-top:16px}.error{color:#a73232;font-size:.875rem;line-height:1.4;min-height:20px;margin-top:12px}.note{padding:14px;background:#fff9dd;border:1px solid #eee0a4;border-radius:10px;font-size:.875rem;line-height:1.5}.calendar-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:20px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.calendar-toolbar h2{text-transform:capitalize}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekday{text-align:center;font-size:.8rem;color:var(--muted);padding:8px 0}.day{min-width:0;min-height:74px;background:#f8fbfe;border:1px solid #d9e7f1;border-radius:9px;padding:8px;text-align:left;display:flex;flex-direction:column;gap:5px}.day.other{opacity:.45}.day.today{border-color:#cfb222}.day.selected{background:#fff4bd;border-color:#d4b725}.day span{font-size:.875rem;font-weight:700}.day small{font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;color:var(--blue)}.dots{display:flex;gap:3px}.dot{width:5px;height:5px;background:#b69200;border-radius:50%}.event{background:#f7fbfe;border:1px solid var(--border);border-left:4px solid #b99200;border-radius:10px;padding:14px;display:block;text-align:left;width:100%}.event strong{display:block;margin:5px 0}.event.meeting{border-left-color:#3c719c}.event.leave{border-left-color:#408868}.event.doctor{border-left-color:#a46378}.event.personal{border-left-color:#7b70aa}.event p{font-size:.875rem;color:var(--muted)}.notification.unread{background:#fffbe8;border-color:#e6d682}.settings-list{display:grid;gap:12px;margin-top:20px}.pager{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:14px;font-size:.875rem}.search{margin-top:16px}dialog{width:min(680px,calc(100% - 24px));max-height:90dvh;padding:24px;border:1px solid var(--border);border-radius:18px;color:var(--navy);background:#fff;box-shadow:0 20px 80px #1b2e4033}dialog::backdrop{background:#1b2e4066}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}#toast{position:fixed;left:50%;transform:translateX(-50%);bottom:110px;background:var(--navy);color:#fff;padding:14px 20px;border-radius:13px;max-width:calc(100% - 30px);z-index:40;opacity:0;pointer-events:none}#toast.show{opacity:1}.loading{text-align:center;padding:80px 20px}.icon-button{padding:8px 11px;min-height:40px}.checkbox{display:flex;align-items:center;gap:10px;margin-top:16px}.checkbox input{width:20px;min-height:20px}.status{font-size:.875rem;color:#28644e}button[hidden],[hidden]{display:none!important}@media(max-width:700px){html,body{height:100%;overflow:hidden}#app:has(.shell){height:100dvh;display:grid;grid-template-rows:minmax(0,1fr) auto}.shell{height:100%;min-height:0;width:100%;padding:14px 16px 0;display:flex;flex-direction:column;gap:12px;overflow:hidden}.top{gap:10px;flex-shrink:0}.logo{width:136px;height:57px;background-size:674.33px 512.83px;background-position:-69.7px -132.6px}.profile{padding:7px 10px;font-size:.875rem;white-space:nowrap}.profile .avatar{width:28px;height:28px}.hero{margin:0;flex-shrink:0}.hero h1{font-size:1.65rem}.hero p{font-size:.8rem;margin-top:4px}.hero .primary{padding:10px 12px;font-size:.875rem}.workspace{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}.grid,.calendar-layout{display:grid;grid-template-columns:1fr;gap:14px}.card{padding:18px}.card h2{font-size:1.12rem}.summary{font-size:2rem;margin:12px 0 4px}.nav{position:static;transform:none;width:auto;margin:8px 12px calc(12px + env(safe-area-inset-bottom));padding:5px;flex-shrink:0}.nav button{font-size:.75rem;gap:4px;padding:9px 0;white-space:nowrap}.nav svg{width:22px;height:22px}.login-layout{min-height:100dvh;height:100dvh;display:flex;flex-direction:column;justify-content:center;gap:20px;padding:22px;overflow:auto}.login-brand{width:100%}.login-brand .logo{width:180px;height:75px;background-size:892.5px 678.75px;background-position:-92.25px -175.5px;margin-bottom:20px}.login-brand h1{font-size:1.6rem}.login-brand p{display:none}.login-card{width:100%;padding:22px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.day{min-height:51px;padding:6px;gap:4px}.day small{display:none}.calendar{gap:4px}.calendar-toolbar h2{font-size:1rem}.calendar-toolbar .secondary{padding:7px 9px;min-height:38px}.list{max-height:none}.mobile-pane{margin:0}.pane-pager{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-shrink:0;height:38px;font-size:.8rem;color:var(--muted)}.pane-pager button{min-height:34px;padding:7px 12px}.form-grid.tabs{display:grid}.settings-list .secondary{width:100%}dialog{padding:18px;max-height:88dvh}dialog .form-grid{display:grid;grid-template-columns:1fr}#toast{bottom:95px}.field-value{padding:10px 0}.row{padding:13px}.status{font-size:.8rem}}

.module-settings{border:1px solid var(--border);border-radius:12px;padding:16px}.module-settings legend{font-weight:750;padding:0 6px}.module-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.nav{display:flex;overflow-x:auto;justify-content:flex-start;max-width:calc(100% - 24px);scrollbar-width:thin}.nav button{flex:1 0 68px}.module-grid .checkbox{font-size:.875rem}.module-grid input{flex-shrink:0}@media(max-width:700px){.nav button{flex:1 0 58px;font-size:.65rem}.module-grid{grid-template-columns:1fr}}

.install-dialog{width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto}.install-dialog p{margin-top:14px}.install-icon{display:block;border-radius:16px;margin-bottom:16px}.install-help{padding:14px;background:#f0f7fc;border-radius:10px}.install-dialog .actions{display:grid}.install-status:empty{display:none}

.avatar{overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.avatar-edit{border:0;padding:0;cursor:pointer}.avatar-edit:hover{outline:2px solid var(--blue);outline-offset:3px}.profile-name{border:0;padding:6px 0;background:transparent;font-weight:600}.avatar-preview{display:flex;justify-content:center;margin-top:20px}.avatar-preview>img{width:160px;height:160px;border-radius:20px;object-fit:cover}.avatar-preview>.avatar{width:100px;height:100px;font-size:2rem}
@media(min-width:701px){html,body{height:100%;overflow:hidden}#app:has(.shell){height:100dvh}.shell{margin:0 0 0 204px;max-width:none;width:calc(100% - 204px);height:100dvh;padding:24px 28px;display:flex;flex-direction:column;overflow:hidden}.top,.hero{flex-shrink:0}.workspace{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}.grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.grid>*{min-width:0}.nav{position:fixed;top:16px;bottom:16px;left:16px;transform:none;margin:0;width:180px;max-width:180px;display:flex;flex-direction:column;align-items:stretch;gap:4px;overflow-x:hidden;overflow-y:auto;padding:12px 8px;border-radius:16px}.nav button{flex:0 0 auto;min-height:52px;width:100%;padding:12px;flex-direction:row;justify-content:flex-start;gap:12px;text-align:left;font-size:.9rem}.nav button span{white-space:normal}.nav svg{width:23px;height:23px}.nav button.active{background:#fff2b2}}
@media(min-width:701px) and (max-width:1000px){.shell{margin-left:184px;width:calc(100% - 184px);padding:20px}.nav{width:160px;max-width:160px}.calendar-layout,.grid{grid-template-columns:minmax(0,1fr)}.hero h1{font-size:1.65rem}}

.jobs-frame{display:block;width:100%;height:calc(100dvh - 240px);min-height:480px;border:0;background:#fff;border-radius:12px}@media(max-width:760px){.jobs-frame{height:calc(100dvh - 225px);min-height:400px}}
.jobs-open .hero{display:none}.jobs-open .jobs-frame{height:calc(100dvh - 132px)}@media(max-width:760px){.jobs-open .top{min-height:46px;margin-bottom:6px}.jobs-open .top .logo{width:120px;height:48px}.jobs-open .jobs-frame{height:calc(100dvh - 155px);min-height:250px}.jobs-open .shell{padding-top:8px}}

.nav{overscroll-behavior-x:contain;scroll-behavior:auto;touch-action:pan-x}.photo-preview{max-width:100%;max-height:70dvh;object-fit:contain}.photo-meta{white-space:pre-line;overflow-wrap:anywhere}.photo-job-search{width:100%}

@media(max-width:700px){body[data-page="home"] .workspace{overflow:hidden;touch-action:pan-y}body[data-page="home"] .card{padding:14px}body[data-page="home"] .summary{margin:8px 0;font-size:1.8rem}body[data-page="home"] .row{padding:10px}body[data-page="home"] .empty{padding:14px 8px}body[data-page="home"] .space{margin-top:12px}}
@media(max-width:700px) and (max-height:680px){body[data-page="home"] .hero p{display:none}body[data-page="home"] .hero{margin:0}body[data-page="home"] .shell{gap:8px}body[data-page="home"] .card{padding:12px}}

@media(max-width:700px){body[data-page="home"] .event{padding:8px;min-width:0}body[data-page="home"] .event strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}body[data-page="home"] .event p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body[data-page="home"] .list{margin-top:10px}}

.quick-profile{display:flex;align-items:center;gap:9px;border:1px solid #c6d8e8;border-radius:30px;background:white;padding:6px 12px;color:#193548}.quick-profile .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.quick-person{display:flex;align-items:center;gap:15px}.quick-person p{overflow-wrap:anywhere}.quick-person img{object-fit:cover}#quick-account .settings-list{display:grid;gap:9px}

/* Let the frame fill the actual shell remainder, never a fixed minimum height. */
body.jobs-open .workspace{display:flex;flex-direction:column;overflow:hidden;min-height:0}
body.jobs-open .jobs-frame{flex:1;min-height:0!important;height:100%!important;width:100%;min-width:0}
body.jobs-open .shell{gap:4px;padding-bottom:4px}
@media(min-width:701px){.nav{gap:2px;padding:6px}.nav button{flex:1;min-height:0;padding:clamp(2px,1vh,12px);font-size:clamp(11px,1.9vh,15px)}.nav svg{height:clamp(16px,3vh,23px)}.shell{padding-top:8px}.top .logo{background-size:892.5px 678.75px;background-position:-92.25px -175.5px;width:180px;height:75px}.top{min-height:0}.jobs-open .top{margin:0;min-height:0}}
