/* Home insights: now, risk, weekly load and projects. Scoped to the start screen. */
.today-overview{font-variant-numeric:lining-nums tabular-nums}
.home-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.home-insights .home-load{grid-column:1 / -1}
.today-overview .home-card>.today-section-heading{padding:12px 16px;min-height:54px;gap:8px;flex-wrap:wrap}
.today-overview .home-card>.today-section-heading h2{font-size:var(--ma-font-section);gap:8px}
.today-overview .home-card>.today-section-heading h2>.icon{width:21px;height:21px;flex-basis:21px}
.today-overview .home-card>.today-card-body{padding:12px 16px 14px}
.home-badge{font-size:12px;line-height:1.3;color:var(--teal);background:var(--surface);padding:3px 8px;border-radius:6px;white-space:nowrap}
.home-hint{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:10px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.home-hint>.icon{width:18px;height:18px;flex:none;color:var(--teal)}
.home-hint .text-btn{display:inline;min-height:0;padding:0;font-size:inherit;text-align:left}
.home-hint.is-danger,.home-hint.is-danger>.icon{color:var(--theme-coral)}
.home-now-open{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:4px 0;border:0;background:transparent;color:var(--ink);text-align:left;overflow-wrap:anywhere}
.home-now-open strong{font:700 19px/1.3 var(--font-heading)}
.home-now-open span{font-size:13px;color:var(--muted)}
.home-now .today-agenda-add{margin-top:10px}
.home-later{margin-top:14px;padding-top:8px;border-top:1px solid var(--line)}
.home-later h3{margin:0 0 4px;font:600 12px/1.4 var(--font-body);color:var(--muted)}
.home-later-row{display:flex;align-items:baseline;gap:10px;width:100%;min-height:36px;padding:4px 0;border:0;background:transparent;color:var(--ink);text-align:left}
.home-later-row span{flex:0 0 44px;font-size:12px;color:var(--muted)}
.home-later-row strong{font:600 14px/1.4 var(--font-body);overflow-wrap:anywhere}
.home-risk-row{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:6px 8px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);text-align:left}
.home-risk-row:last-of-type{border-bottom:0}
.home-risk-row:hover{background:var(--theme-hover)}
.home-risk-row.is-danger{background:var(--theme-coral-soft);border-radius:6px;border-bottom-color:transparent}
.home-risk-row.is-danger small{color:var(--theme-coral);font-weight:600}
.home-risk-row.is-warning small{color:var(--theme-gold)}
.home-risk-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.home-risk-copy strong{font:600 14px/1.4 var(--font-body);overflow-wrap:anywhere}
.home-risk-copy small{font-size:12px;color:var(--muted)}
.home-risk-row>.icon{width:16px;height:16px;flex:none;color:var(--teal)}
.home-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.home-bar{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:2px 0;border:0;background:transparent;color:var(--ink);cursor:pointer}
.home-bar-value{min-height:16px;font-size:12px;line-height:16px;color:var(--muted)}
.home-bar-track{position:relative;display:block;width:100%;max-width:34px;height:96px;border-radius:4px 4px 0 0;background:color-mix(in srgb,var(--line) 55%,transparent)}
.home-bar-fill{position:absolute;left:0;right:0;bottom:0;border-radius:4px 4px 0 0;background:color-mix(in srgb,var(--teal) 45%,transparent)}
.home-bar.is-today .home-bar-fill{background:var(--teal)}
.home-bar.is-over .home-bar-fill{background:var(--theme-coral)}
.home-bar.is-over .home-bar-value{color:var(--theme-coral);font-weight:600}
.home-bar-cap{position:absolute;left:-3px;right:-3px;height:0;border-top:2px dashed var(--ink);opacity:.55}
.home-bar-label{font-size:12px;color:var(--muted)}
.home-bar.is-today .home-bar-label{color:var(--ink);font-weight:600}
.home-bar:hover .home-bar-track{outline:1px solid var(--line)}
.home-project{padding:8px 0;border-bottom:1px solid var(--line)}
.home-project:last-child{border:0}
.home-project-head{display:flex;justify-content:space-between;gap:8px;font-size:14px}
.home-project-head strong{font:600 14px/1.4 var(--font-body);overflow-wrap:anywhere}
.home-progress{height:6px;margin:6px 0;border-radius:3px;background:color-mix(in srgb,var(--line) 70%,transparent);overflow:hidden}
.home-progress>span{display:block;height:100%;border-radius:3px;background:var(--teal)}
.home-project small{font-size:12px;color:var(--muted)}
.home-project .is-late{color:var(--theme-coral);font-weight:600}
@container(max-width:850px){.home-insights{grid-template-columns:minmax(0,1fr);gap:14px}}
@media (max-width:700px){.home-insights{grid-template-columns:minmax(0,1fr);gap:14px}.home-bar-track{height:80px}}
