/* Approved role-aware home: branch-scoped navigation, mobile and desktop. */
#homeview{--h-bg:#f5f7f4;--h-surface:#fff;--h-line:#d8e2db;--h-ink:#1b3025;--h-muted:#617367;--h-soft:#eaf4ec;--h-green:#254936;--h-green-ink:#fff;--h-link:#1d6243;display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh;background:var(--h-bg);color:var(--h-ink);font-family:Arial,sans-serif}
#homeview *{box-sizing:border-box}#homeview a{text-decoration:none;color:inherit}#homeview svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#homeview [hidden]{display:none!important}
#homeview .home-side{background:var(--h-surface);border-right:1px solid var(--h-line);padding:21px 13px;display:flex;flex-direction:column;min-width:0}#homeview .home-side-brand{display:flex;align-items:center;gap:12px;padding:0 8px 25px;font-size:18px;white-space:nowrap}#homeview .home-logo{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:8px;background:var(--h-green);color:var(--h-green-ink);font-size:13px;font-weight:700}#homeview .home-side-nav{display:grid;gap:4px}#homeview .home-side-nav a{display:flex;align-items:center;gap:11px;padding:12px;border-radius:9px;min-height:46px;color:var(--h-muted);font-weight:600;font-size:14px}#homeview .home-side-nav a:hover,#homeview .home-side-nav a[aria-current=page]{background:var(--h-soft);color:var(--h-link)}#homeview .home-side-note{margin:auto 10px 0;padding-top:28px;color:var(--h-muted);font-size:12px;line-height:1.45}
#homeview .home-center{min-width:0}#homeview .home-top{height:68px;background:var(--h-surface);border-bottom:1px solid var(--h-line);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 32px}#homeview .home-top-title{font-weight:700;font-size:16px}#homeview .home-mobile-brand{display:none;align-items:center;gap:9px;font-size:16px}#homeview .home-top-actions{margin-left:auto;display:flex;align-items:center;gap:10px;min-width:0}#homeview .home-branch-form{margin:0;max-width:230px;min-width:0}#homeview .home-branch-form select{width:100%;min-height:39px;background:var(--h-surface);border:1px solid var(--h-line);border-radius:8px;color:var(--h-ink);padding:8px 30px 8px 12px;font:inherit;font-size:13px;text-overflow:ellipsis}#homeview .home-account-link{width:38px;height:38px;border-radius:50%;background:var(--h-soft);color:var(--h-link);display:grid;place-items:center;flex:none;font-weight:700;font-size:13px}#homeview .home-account-link:hover{outline:2px solid var(--h-link)}#homeview .home-top .theme-toggle{width:38px;height:38px;flex:none;border-radius:8px;border:1px solid var(--h-line);background:var(--h-surface);color:var(--h-ink)}#homeview .home-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#homeview .home-content{width:min(100%,1100px);padding:31px 36px 48px;margin:0 auto}#homeview .home-kicker{margin:0 0 8px;color:var(--h-link);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.8px}#homeview h1{margin:0;font-size:clamp(27px,3vw,36px);line-height:1.15;letter-spacing:-.6px}#homeview .home-intro{margin:9px 0 24px;color:var(--h-muted);font-size:15px;line-height:1.45}#homeview .home-demo{padding:10px 13px;border:1px solid var(--h-line);border-radius:8px;background:var(--h-soft);font-size:13px}
#homeview .home-task-panel,#homeview .home-manager-card,#homeview .home-personal,#homeview .home-shift-strip,#homeview .home-shortcuts a{border:1px solid var(--h-line);border-radius:11px;background:var(--h-surface)}#homeview .home-task-panel{padding:22px}#homeview .home-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}#homeview .home-panel-heading h2{margin:0;font-size:20px}#homeview .home-count{padding:6px 10px;border-radius:7px;background:var(--h-soft);color:var(--h-link);font-weight:700;font-size:12px;white-space:nowrap}#homeview .home-task-progress-copy{margin:18px 0 9px;font-size:13px;color:var(--h-muted)}#homeview .home-progress-track{height:8px;border-radius:8px;overflow:hidden;background:var(--h-soft)}#homeview .home-progress-track span{display:block;height:100%;border-radius:inherit;background:#3d9867}#homeview .home-task-row{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid var(--h-line);margin-top:20px;padding-top:19px}#homeview .home-task-row strong,#homeview .home-shift-strip strong,#homeview .home-personal strong{display:block;font-size:15px}#homeview .home-task-row small,#homeview .home-shift-strip small,#homeview .home-personal small{display:block;margin-top:5px;color:var(--h-muted);font-size:12px}#homeview .home-task-empty{margin:17px 0 12px;padding:16px;border-radius:8px;background:var(--h-soft);color:var(--h-ink);font-size:14px}#homeview .home-text-link{display:inline-flex;margin-top:18px;color:var(--h-link);font-size:13px;font-weight:700}#homeview .home-text-link:hover{text-decoration:underline}#homeview .home-shift-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;padding:17px 21px;background:var(--h-soft)}#homeview .home-shift-strip a{color:var(--h-link);font-weight:700;font-size:13px;white-space:nowrap}#homeview .home-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:15px}#homeview .home-shortcuts a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:18px}#homeview .home-shortcuts strong{font-size:14px}#homeview .home-shortcuts small{grid-column:1;color:var(--h-muted);font-size:12px}#homeview .home-shortcuts span{grid-row:1/3;grid-column:2;align-self:center;color:var(--h-link);font-size:22px}#homeview .home-other{margin-top:27px}#homeview .home-other>h2{font-size:17px;margin:0 0 12px}
#homeview .home-scope{display:inline-flex;margin:0 0 18px;padding:7px 10px;border-radius:7px;background:var(--h-soft);color:var(--h-link);font-size:12px}#homeview .home-manager-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#homeview .home-manager-card{display:flex;flex-direction:column;min-height:178px;padding:20px}#homeview .home-card-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:8px;background:var(--h-soft);color:var(--h-link)}#homeview .home-card-icon svg{width:19px;height:19px}#homeview .home-manager-card h2,#homeview .home-manager-card h3{font-size:17px;margin:11px 0 0}#homeview .home-manager-card p{margin:9px 0 14px;color:var(--h-muted);font-size:13px;line-height:1.4}#homeview .home-button{align-self:flex-start;margin-top:auto;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid var(--h-green);border-radius:7px;color:var(--h-green)!important;background:var(--h-surface);font-weight:700;font-size:13px;line-height:1.25}#homeview .home-button:hover{background:var(--h-soft)}#homeview .home-button-primary{background:var(--h-green);color:var(--h-green-ink)!important}#homeview .home-button-primary:hover{background:#346349;color:#fff!important}#homeview .home-personal{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-top:15px;padding:17px 20px;background:var(--h-soft)}#homeview .home-bottom{display:none}#homeview a:focus-visible,#homeview button:focus-visible,#homeview select:focus-visible{outline:3px solid #56a775;outline-offset:3px}
:root[data-theme=dark] #homeview{--h-bg:#121b16;--h-surface:#1c2820;--h-line:#405347;--h-ink:#e5f0e8;--h-muted:#adbfaf;--h-soft:#2a4031;--h-green:#90cf9f;--h-green-ink:#102017;--h-link:#c1e8c7}:root[data-theme=dark] #homeview .home-progress-track span{background:#87c995}:root[data-theme=dark] #homeview .home-button-primary:hover{background:#adddb7;color:#102017!important}
@media(max-width:850px){#homeview{grid-template-columns:200px minmax(0,1fr)}#homeview .home-content{padding:27px 23px 40px}#homeview .home-top{padding:10px 22px}#homeview .home-manager-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){#homeview{display:block;min-height:100dvh}#homeview .home-side{display:none}#homeview .home-center{min-height:100dvh;display:flex;flex-direction:column}#homeview .home-top{position:sticky;top:0;z-index:5;height:61px;min-height:61px;padding:8px 14px}#homeview .home-mobile-brand{display:flex}#homeview .home-top-title{display:none}#homeview .home-branch-form{max-width:145px}#homeview .home-branch-form select{max-width:145px;min-height:37px;padding-left:8px;font-size:11px}#homeview .home-top-actions{gap:6px}#homeview .home-account-link,#homeview .home-top .theme-toggle{width:35px;height:35px}#homeview .home-content{width:100%;padding:19px 16px 88px}#homeview .home-intro{margin-bottom:18px}#homeview .home-manager-grid,#homeview .home-shortcuts{grid-template-columns:minmax(0,1fr)}#homeview .home-manager-card{min-height:0;padding:18px}#homeview .home-task-panel{padding:17px}#homeview .home-task-row{align-items:flex-start;flex-direction:column}#homeview .home-shift-strip{padding:15px 17px}#homeview .home-bottom{position:fixed;left:0;right:0;bottom:0;z-index:8;display:flex;justify-content:space-around;gap:2px;min-height:63px;padding:6px 6px max(7px,env(safe-area-inset-bottom));border-top:1px solid var(--h-line);background:var(--h-surface)}#homeview .home-bottom a{display:grid;justify-items:center;align-content:center;gap:3px;flex:1;min-width:0;max-width:90px;padding:5px 2px;border-radius:7px;color:var(--h-muted);font-size:11px}#homeview .home-bottom a[aria-current=page]{background:var(--h-soft);color:var(--h-link);font-weight:700}#homeview .home-bottom svg{width:19px;height:19px}}
@media(max-width:360px){#homeview .home-mobile-brand strong{display:none}#homeview .home-branch-form{max-width:110px}#homeview .home-branch-form select{max-width:110px}}

/* Native progress keeps its value visible under the service's no-inline-style CSP. */
#homeview progress.home-progress-track{display:block;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;appearance:none;-webkit-appearance:none;background:var(--h-soft);color:#3d9867}
#homeview progress.home-progress-track::-webkit-progress-bar{background:var(--h-soft);border-radius:8px}
#homeview progress.home-progress-track::-webkit-progress-value{background:#3d9867;border-radius:8px}
#homeview progress.home-progress-track::-moz-progress-bar{background:#3d9867;border-radius:8px}

/* The shared desktop menu stays in place while the selected section scrolls. */
#homeview{--h-side-bg:#fff;--h-side-text:#183b2a;--h-side-muted:#4e6958;--h-side-active:#e3f1e7;--h-side-border:#d2e0d6}
:root[data-theme=dark] #homeview{--h-side-bg:#132119;--h-side-text:#e2efe5;--h-side-muted:#a8c0ae;--h-side-active:#294735;--h-side-border:#35513f}
#homeview .home-side{position:sticky;top:0;height:100dvh;overflow:hidden;padding:17px 10px 10px;background:var(--h-side-bg);color:var(--h-side-text);border-color:var(--h-side-border)}
#homeview .home-side-head{display:flex;align-items:flex-start;gap:6px}
#homeview .home-side-brand{flex:1;min-width:0;gap:9px;padding:0 4px 17px;color:var(--h-side-text)}
#homeview .home-side-brand strong{overflow:hidden;text-overflow:ellipsis}
#homeview .home-side-collapse{display:grid;place-items:center;flex:none;width:31px;height:31px;margin-top:1px;padding:0;border:1px solid var(--h-side-border);border-radius:7px;background:transparent;color:var(--h-side-text);font:20px/1 Arial,sans-serif;cursor:pointer}
#homeview .home-side-collapse:hover,#homeview .home-nav-parent:hover{background:var(--h-side-active)}
#homeview .home-side-nav{flex:1;min-height:0;align-content:start;overflow-y:auto}
#homeview .home-side-nav>a{color:var(--h-side-muted)}
#homeview .home-side-nav>a:hover,#homeview .home-side-nav>a[aria-current=page]{background:var(--h-side-active);color:var(--h-side-text)}
#homeview .home-nav-parent{display:flex;align-items:center;gap:11px;width:100%;min-height:46px;padding:12px;border:0;border-radius:9px;background:transparent;color:var(--h-side-muted);text-align:left;font:600 14px/1.35 Arial,sans-serif;cursor:pointer}
#homeview .home-nav-parent span{flex:1}
#homeview .home-nav-parent b{font-size:13px;font-weight:400;transition:transform .15s}
#homeview .home-nav-parent[aria-expanded=true]{color:var(--h-side-text)}
#homeview .home-nav-parent[aria-expanded=true] b{transform:rotate(180deg)}
#homeview .home-nav-children{display:grid;gap:2px;padding:2px 0 7px 39px}
#homeview .home-nav-children a{min-height:34px;padding:8px 10px;color:var(--h-side-muted);font-size:13px}
#homeview .home-nav-children a:hover{background:var(--h-side-active);color:var(--h-side-text)}
#homeview .home-side-note{margin:0 10px;padding:12px 0;border-top:1px solid var(--h-side-border);color:var(--h-side-muted)}
#homeview .home-side-theme{padding:2px 0 0}
#homeview .home-side-theme .theme-toggle{justify-content:flex-start;gap:10px;width:100%;height:auto;min-height:41px;padding:8px 11px;border:1px solid var(--h-side-border);background:transparent;color:var(--h-side-text);font:700 13px/1.2 Arial,sans-serif}
#homeview .home-side-theme .theme-toggle:hover{background:var(--h-side-active)}
#homeview .home-side-theme .theme-toggle>span:first-child{font-size:20px;font-weight:400}
#homeview .home-top .home-mobile-theme{display:none}
#homeview .home-logout-form{margin:0;flex:none}
#homeview .home-logout-button{min-height:38px;padding:8px 12px;border:1px solid var(--h-line);border-radius:8px;background:var(--h-surface);color:var(--h-ink);font:700 13px/1.2 Arial,sans-serif;cursor:pointer}
#homeview .home-logout-button:hover{background:var(--h-soft)}
#homeview .home-logout-icon{display:none}
#homeview.home-no-sidebar{grid-template-columns:minmax(0,1fr)}
#homeview.home-no-sidebar .home-mobile-brand,#homeview.home-no-sidebar .home-top .home-mobile-theme{display:flex}
#homeview.home-no-sidebar .home-top-title{display:none}
#homeview.home-no-sidebar .home-bottom{display:none}
#homeview.home-side-collapsed{grid-template-columns:70px minmax(0,1fr)}
#homeview.home-side-collapsed .home-side-head{flex-direction:column;align-items:center}
#homeview.home-side-collapsed .home-side-brand{flex:none;padding:0 0 4px}
#homeview.home-side-collapsed .home-side-brand strong,
#homeview.home-side-collapsed .home-side-nav span,
#homeview.home-side-collapsed .home-side-note,
#homeview.home-side-collapsed .home-side-theme-label,
#homeview.home-side-collapsed .home-nav-parent b{display:none}
#homeview.home-side-collapsed .home-side-nav>a,
#homeview.home-side-collapsed .home-nav-parent{justify-content:center;padding:11px 0}
#homeview.home-side-collapsed .home-nav-children{display:none}
#homeview.home-side-collapsed .home-side-theme .theme-toggle{justify-content:center;padding:7px 0}
#homeview.home-side-collapsed .home-side-collapse{transform:rotate(180deg)}
@media(max-width:720px){#homeview .home-side{display:none}#homeview .home-top .home-mobile-theme{display:flex}#homeview.home-side-collapsed{display:block}#homeview.home-no-sidebar .home-top .home-mobile-theme{display:flex}}
@media(max-width:720px){#homeview .home-logout-button{display:grid;place-items:center;width:35px;height:35px;min-height:35px;padding:0}#homeview .home-logout-label{display:none}#homeview .home-logout-icon{display:block;width:19px;height:19px}}
:root[data-theme=dark] #homeview progress.home-progress-track{color:#87c995}
:root[data-theme=dark] #homeview progress.home-progress-track::-webkit-progress-value{background:#87c995}
:root[data-theme=dark] #homeview progress.home-progress-track::-moz-progress-bar{background:#87c995}

/* Role home cards follow the approved compact overview and personal day layout. */
#homeview .home-executor-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:15px;align-items:stretch}
#homeview .home-executor-grid .home-task-panel{min-width:0}
#homeview .home-task-list{margin-top:17px;border-top:1px solid var(--h-line)}
#homeview .home-task-item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:13px 2px;border-bottom:1px solid var(--h-line)}
#homeview .home-task-item:hover{color:var(--h-link)}
#homeview .home-task-item strong{display:block;font-size:14px;line-height:1.35}
#homeview .home-task-item small{display:block;margin-top:4px;color:var(--h-muted);font-size:12px}
#homeview .home-task-arrow{flex:none;color:var(--h-link);font-size:23px;line-height:1}
#homeview .home-schedule-card,#homeview .home-overview-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:21px;border:1px solid var(--h-line);border-radius:11px;background:var(--h-surface)}
#homeview .home-schedule-card h2,#homeview .home-overview-card h2{margin:0;font-size:17px;line-height:1.3}
#homeview .home-schedule-card p,#homeview .home-overview-card p{margin:0;color:var(--h-muted);font-size:13px;line-height:1.45}
#homeview .home-schedule-card p{margin-top:13px;color:var(--h-ink);font-weight:700}
#homeview .home-schedule-card small{display:block;margin-top:12px;color:var(--h-muted);font-size:12px;line-height:1.45}
#homeview .home-schedule-card .home-button,#homeview .home-overview-card .home-button{margin-top:auto}
#homeview .home-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
#homeview .home-overview-wide{grid-column:span 2}
#homeview .home-overview-card{min-height:148px}
#homeview .home-overview-card:last-child{grid-column:span 2}
@media(max-width:1050px){#homeview .home-executor-grid{grid-template-columns:minmax(0,1fr)}#homeview .home-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#homeview .home-overview-card:last-child{grid-column:auto}}
@media(max-width:720px){#homeview .home-mobile-brand strong{display:none}#homeview .home-overview-grid{grid-template-columns:minmax(0,1fr)}#homeview .home-overview-wide,#homeview .home-overview-card:last-child{grid-column:auto}#homeview .home-overview-card,#homeview .home-schedule-card{min-height:0;padding:18px}#homeview .home-executor-grid{gap:13px}}
