/* Home-specific surfaces; other management pages keep their existing shell. */
body[data-management-home=true]{background:#f7f9fd;--blue:#3457ef;--violet:#536ef3}
body[data-management-home=true] .topbar{min-height:72px;background:#fff;padding:12px 28px;backdrop-filter:none}
body[data-management-home=true] main{padding:28px 28px 44px}
body[data-management-home=true] .topbar-account{margin-left:8px;padding-left:20px}
body[data-management-home=true] .eyebrow{font-size:12px;letter-spacing:0}
body[data-management-home=true] .topbar-account span,body[data-management-home=true] .topbar-account button,body[data-management-home=true] .dashboard-return{font-size:13px}
.management-home{max-width:1480px;margin:0 auto;color:#16213a;min-width:0}
.home-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.home-role{display:inline-flex;align-items:center;gap:7px;color:#355bc0;font-size:12px;font-weight:650}
.home-role:before{content:"";width:6px;height:6px;border-radius:50%;background:#4772dc}
.home-heading h1{font-size:30px;line-height:1.35;letter-spacing:-.5px;margin:6px 0}
.home-heading p{margin:0;color:#606e83;font-size:14px}
.home-tools{display:flex;gap:12px;align-items:center;flex-shrink:0}
.home-updated{color:#53647a;font-size:12px}
.management-home a{color:#345bc1;text-decoration:none;font-size:13px;font-weight:600}
.management-home a:hover{text-decoration:underline}
.management-home button{border:1px solid #d6deeb;background:#fff;color:#355bc0;border-radius:8px;padding:9px 14px;cursor:pointer;min-height:40px}
.management-home button:disabled{opacity:.5;cursor:default}
.management-home :focus-visible,body[data-management-home=true] .topbar :focus-visible{outline:3px solid #416bdd;outline-offset:3px}
.home-scope{display:flex;align-items:center;gap:16px;justify-content:space-between;margin-bottom:22px;padding:10px 14px;background:#edf1f6;border:1px solid #e5eaf1;border-radius:8px}
.home-scope strong{font-size:14px;font-weight:650}
.home-scope-filters{display:flex;align-items:center;gap:18px;font-size:13px;color:#5d6a7d}
.home-scope label{display:flex;align-items:center;gap:8px;font-size:12px}
.home-scope select{width:174px;max-width:220px;padding:6px 25px 6px 9px;border:1px solid #d5ddea;border-radius:6px;background:#fff;color:#33435b;font-size:13px;min-height:34px}
.home-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
.home-metric-group>h2{font-size:12px;font-weight:600;color:#53647a;margin:0 0 8px 2px}
.home-metric-group>div{display:grid;grid-template-columns:repeat(var(--metric-columns),minmax(0,1fr));background:#fff;border:1px solid #dde4ee;border-radius:10px;overflow:hidden}
.home-metric{padding:14px 14px 12px;display:flex;flex-direction:column;align-items:flex-start;border-right:1px solid #e6ebf2;min-width:0}
.home-metric:last-child{border-right:0}
.home-metric>span{font-size:13px;color:#526178;white-space:nowrap}
.home-metric>strong{font-size:30px;line-height:1.2;margin:8px 0 7px;font-weight:700;font-variant-numeric:tabular-nums}
.home-metric p{font-size:12px;line-height:1.55;color:#53647a;margin:0 0 10px;min-height:3.1em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.home-metric a{font-size:12px}
.home-metric[data-tone=running]{background:#f2f6ff;box-shadow:inset 0 3px #6484d9}
.home-metric[data-tone=running]>strong{color:#3157b2}
.home-metric[data-tone=warning]{background:#fffbf1;box-shadow:inset 0 3px #ceab5f}
.home-metric[data-tone=warning]>strong{color:#93620e}
.home-metric[data-tone=danger]{background:#fff6f5;box-shadow:inset 0 3px #cd827b}
.home-metric[data-tone=danger]>strong{color:#ab4037}
.home-unavailable{font-size:16px}
.management-home[data-home-view=line] .home-metrics{grid-template-columns:1fr 3fr 1fr}
.management-home[data-home-view=project] .home-metrics{grid-template-columns:1fr 2fr}
.home-main{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.home-panel{background:#fff;border:1px solid #dde4ee;border-radius:10px;padding:18px 20px;margin-bottom:18px;min-width:0;box-shadow:0 2px 3px rgba(31,49,80,.02)}
.home-panel h2{font-size:18px;font-weight:650;margin:0;display:flex;align-items:center;gap:9px}
.home-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}
.home-attention .home-section-heading{padding-left:11px;border-left:3px solid #c79b4c}
.home-runs .home-section-heading{padding-left:11px;border-left:3px solid #6484d9}
.home-count{display:inline-flex;align-items:center;justify-content:center;background:#f0f3f8;color:#596b84;border-radius:5px;font-size:12px;min-width:23px;height:23px;font-variant-numeric:tabular-nums}
.home-rows{list-style:none;padding:0;margin:0}
.home-rows li{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid #edf0f5;padding:14px 0;min-width:0}
.home-rows li:last-child{padding-bottom:0}
.home-row-copy{min-width:0;flex:1}
.home-row-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.home-rows strong{font-size:14px;font-weight:650;overflow-wrap:anywhere}
.home-rows p{font-size:14px;color:#53647a;margin:5px 0 4px}
.home-rows small{font-size:12px;color:#53647a;overflow-wrap:anywhere}
.home-rows a{flex-shrink:0;display:flex;align-items:center;min-height:40px}
.home-status{display:inline-block;white-space:nowrap;border-radius:4px;padding:2px 7px;background:#f0f3f7;color:#53647a;font-size:12px;line-height:1.5;font-weight:500}
.home-status[data-status=failed],.home-status[data-status=blocked],.home-status[data-status=manual_review]{background:#fcebe8;color:#a13d32}
.home-status[data-status=running],.home-status[data-status=executing]{background:#edf2ff;color:#355abc}
.home-status[data-status=candidate],.home-status[data-status=need_confirmation],.home-status[data-status=waiting_confirmation],.home-status[data-status=awaiting_confirmation],.home-status[data-status=pending_review]{background:#fff3d6;color:#89600d}
.home-status[data-status=completed],.home-status[data-status=published]{background:#e9f5ef;color:#276b4e}
.home-empty{position:relative;padding:12px 0 6px 34px;color:#53647a}
.home-empty p{margin:0 0 4px;font-size:14px}.home-empty small{font-size:12px;color:#53647a}
.home-empty-mark{position:absolute;left:0;top:13px;display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#f0f3f7;color:#53647a}
.home-projects .home-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
.home-projects .home-rows li:last-child{padding-bottom:14px}
.home-resource-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:16px}
.home-resource-grid>div{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:7px 10px;font-size:13px;color:#596b83;padding-right:14px;border-right:1px solid #e9edf4}
.home-resource-grid>div:last-child{border-right:0;padding-right:0}
.home-resource-grid strong{font-size:20px;color:#34445e;font-variant-numeric:tabular-nums}
.home-resource-grid a{grid-column:1/-1;font-size:12px}
.home-pagination{display:flex;align-items:center;justify-content:flex-end;gap:15px;margin-top:20px}
.home-skeleton>div{height:80px;border-radius:10px;background:#e9edf6;margin-bottom:16px}
@media(max-width:1150px) and (min-width:761px){.home-tools{flex-direction:column;align-items:flex-end}.home-scope{align-items:flex-start;flex-direction:column}.home-metrics{gap:10px}.home-metric{padding:12px 9px}.home-main{grid-template-columns:1fr}.home-resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 body[data-management-home=true] .topbar{grid-template-columns:1fr auto;padding:8px 16px;gap:7px 12px;position:relative}
 body[data-management-home=true] .topbar-context{display:none}
 body[data-management-home=true] .topbar-actions{display:contents}
 body[data-management-home=true] .topbar .mobile-menu{justify-self:start;font-size:13px;min-height:40px}
 body[data-management-home=true] .dashboard-return{min-height:40px;justify-self:end}
 body[data-management-home=true] .topbar-account{grid-column:1/-1;margin:0;padding:4px 0 0;width:auto;border-left:0;border-top:1px solid #edf0f5}
 body[data-management-home=true] .topbar-account-authenticated{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}
 body[data-management-home=true] .topbar-account span{overflow:hidden;text-overflow:ellipsis;font-size:12px}
 body[data-management-home=true] .topbar-account button{border:0;background:transparent;padding:8px 4px;min-height:40px;font-size:12px}
 body[data-management-home=true] main{padding:20px 16px 32px}
 .management-home{display:flex;flex-direction:column}
 .home-heading{display:block;gap:12px;margin-bottom:16px;order:0;position:relative}
 .home-heading>div:first-child{padding-right:48px}
 .home-heading h1{font-size:28px;margin:5px 0 8px}
 .home-heading p{font-size:14px;line-height:1.6}
 .home-tools{display:contents}
 .home-tools button{position:absolute;right:0;top:22px;padding:8px 10px;min-height:42px}
 .home-updated{display:block;font-size:12px;margin-top:8px}
 .home-scope{order:1;flex-direction:column;align-items:stretch;gap:10px;margin-bottom:18px;padding:12px}
 .home-scope-filters{gap:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-scope label{display:flex;flex-direction:column;align-items:stretch;gap:4px}
 .home-scope select{width:100%;max-width:100%;min-width:0;padding:8px 18px 8px 7px;min-height:42px;font-size:12px}
 .home-scope-filters>span{grid-column:1/-1;font-size:12px}.home-scope label:only-child{grid-column:1/-1}
 .home-main{display:contents}.home-attention{order:2}.home-metrics{order:3}.home-runs{order:4}.home-data-quality{order:5}.home-projects{order:6}.home-resources{order:7}
 .home-metrics,.management-home[data-home-view=line] .home-metrics,.management-home[data-home-view=project] .home-metrics{grid-template-columns:1fr;gap:12px;margin-bottom:18px}
 .home-metric-group>div{grid-template-columns:repeat(var(--metric-columns),minmax(0,1fr))}
 .home-metric{padding:12px}.home-metric>span{font-size:13px;white-space:normal}.home-metric a{min-height:36px;display:flex;align-items:center}
 .home-panel{padding:16px;margin-bottom:16px}.home-panel h2{font-size:18px}.home-section-heading>a{font-size:12px;min-height:40px;display:flex;align-items:center}
 .home-rows li{gap:8px;padding:13px 0}.home-row-title{gap:6px}.home-rows a{font-size:12px;min-height:44px}
 .home-projects .home-rows{grid-template-columns:1fr}.home-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .home-resource-grid>div{border-right:0;padding-right:0}.home-resource-grid a{min-height:32px;display:flex;align-items:center}
}
/* Soft brand color distinguishes sections; operational warnings remain semantic. */
.management-home[data-home-view] .home-heading{padding:24px 28px;background:#3457ef;color:#fff;border-radius:24px;margin-bottom:18px;border:1px solid #d9e1ff}
.management-home[data-home-view] .home-heading h1{font-size:26px}
.home-metric-group>div{background:transparent;border:0;border-radius:0;gap:10px;overflow:visible}
.home-metric{border:1px solid #dde4ee;border-radius:10px;background:#fff;box-shadow:0 4px 14px #455dac08;gap:4px}
.home-metric[data-tone=warning]{background:#fff0ca;border-color:#eed28f}
.home-metric[data-tone=danger]{background:#ffe2dc;border-color:#efbdb3}
.home-metric[data-tone=running]>strong,.home-metric[data-tone=brand]>strong{color:#3157b2}
.home-metric[data-tone=warning]>strong{color:#93620e}
.home-metric[data-tone=danger]>strong{color:#ab4037}
.home-metric[data-tone=delivery]>strong{color:#276b4e}
.home-definition{font-size:12px;color:#53647a;margin:0 0 6px}
.home-definition summary{cursor:pointer;min-height:24px;line-height:24px}
.home-definition p{display:block;min-height:0;margin:6px 0;overflow:visible}
.home-panel{background:#fff;border:1px solid #e0e4ef;border-radius:18px;box-shadow:0 8px 24px #3857a308}
.home-attention{background:#fff0de;border-color:#ffd3a3}.home-attention .home-section-heading{border-color:#e98a23}
.home-runs{background:#e0edff;border-color:#b7d1ff}.home-runs .home-section-heading{border-color:#3674ef}
.home-scope{background:#f1f3f9;border-color:#e5e8f2}
.home-data-quality>summary{font-size:14px;font-weight:650;cursor:pointer;color:#35455c;min-height:26px;line-height:26px}
.home-data-quality[open]>summary{margin-bottom:14px}
.home-empty small{display:none}
.home-quality-intro{color:#35455c;font-size:14px;line-height:1.6;margin:0 0 14px}
.home-quality-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-quality-item{min-width:0;background:#fff;border-radius:9px;padding:14px;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.home-quality-item>span{color:#34445e;font-size:13px;font-weight:650}
.home-quality-item>strong{color:#17263e;font-size:26px;line-height:1.2;font-variant-numeric:tabular-nums}
.home-quality-item>p{color:#46556a;font-size:12px;line-height:1.5;margin:0;flex:1}
.home-quality-item>a{display:inline-flex;align-items:center;min-height:38px;font-size:12px}
.home-projects,.home-resources{background:#fff;padding:18px 20px}
.home-projects .home-section-heading{padding-left:11px;border-left:3px solid #9655e8}
.home-projects .home-rows li{border-color:#dce3eb}
.home-scope strong{overflow-wrap:anywhere}.home-scope-filters{min-width:0}.management-home[data-home-view] .home-heading>div{min-width:0}
@media(max-width:760px){
 .management-home[data-home-view] .home-heading{padding:20px;margin-bottom:12px}.management-home[data-home-view] .home-heading h1{font-size:28px}
 .management-home[data-home-view] .home-heading .home-tools button{right:16px;top:20px}
 .home-metric-group>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .home-metric-group>div>article:only-child{grid-column:1/-1}
 .home-projects,.home-resources{padding:16px 0}
 .home-quality-grid{grid-template-columns:1fr}.home-quality-item{padding:12px 14px}
}

.management-home[data-home-detail] .home-heading>a{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;background:#fff;border:1px solid #d5deeb;border-radius:8px;color:#345bc1;white-space:nowrap}
.home-verification-rows li{display:block}.home-verify{margin-top:12px;border-top:1px solid #d6dee8;padding-top:12px}
.home-verify summary{color:#2946c7;font-weight:700;cursor:pointer;min-height:40px;display:flex;align-items:center}
.home-verify form{display:grid;gap:12px;max-width:560px;margin:8px 0 4px;padding:16px;background:#fff;border-radius:10px}
.home-verify form p{margin:0;color:#46556a;line-height:1.5}.home-verify form label{display:grid;gap:6px;color:#243149;font-weight:650}
.home-verify form input:not([type=checkbox]){width:100%;min-height:42px;border:1px solid #cbd5e1;border-radius:7px;padding:9px 11px;font:inherit}
.home-verify form .home-verify-check{display:flex;align-items:flex-start;gap:9px;font-weight:500}.home-verify-check input{margin-top:4px}
.home-verify form button{justify-self:start;border:0;border-radius:8px;background:#3f4bff;color:#fff;min-height:44px;padding:9px 16px;font:inherit;font-weight:700;cursor:pointer}
.home-verify form button:disabled{opacity:.55;cursor:wait}.home-verify form [role=alert]{color:#a3341e}

@media(max-width:760px){body[data-management-home=true] .topbar-account{margin-left:auto;padding-left:0}}

/* Concentrate vivid brand color in the heading; avoid yellow/green surface gradients. */
.management-home a{color:#2948cf}
.management-home .home-heading button{background:#fff;border-color:#fff;color:#2948cf;border-radius:10px}
body[data-management-home=true] #managementAccountTrigger{background:#edf1ff;border-color:#d9e1ff}
body[data-management-home=true] .account-avatar{background:#dce5ff;color:#3457ef}
body[data-management-home=true] .account-profile{background:#edf1ff;border-color:#d9e1ff}

/* Compact workspace heading: reserve the first screen for operational data. */
.management-home[data-home-view] .home-heading{padding:10px 18px;border-radius:12px;gap:12px;margin-bottom:12px;min-height:64px;display:flex;align-items:center}
.management-home[data-home-view] .home-heading .home-role,.management-home[data-home-view] .home-heading p{display:none}
.management-home[data-home-view] .home-heading h1{font-size:20px;line-height:1.4;margin:0;white-space:nowrap}
.management-home[data-home-view] .home-heading>div:first-child{padding-right:0}
.management-home[data-home-view] .home-tools{display:flex;flex-direction:row;gap:12px;align-items:center}
.management-home[data-home-view] .home-updated{margin:0}
.management-home[data-home-view] .home-tools button{position:static;min-height:40px}
@media(max-width:760px){
 .management-home[data-home-view] .home-heading{padding:10px 12px;flex-wrap:wrap;gap:6px 12px}
 .management-home[data-home-view] .home-heading h1{font-size:20px}
 .management-home[data-home-view] .home-tools{flex:1;justify-content:flex-end;gap:8px}
 .management-home[data-home-view] .home-updated{max-width:125px;font-size:11px;line-height:1.4}
}

.management-home[data-home-view] .home-heading{background:transparent;border:0;padding:0 0 8px;min-height:48px;border-radius:0}
body[data-management-home=true] .management-home[data-home-view] .home-heading h1{color:#16213a;font-weight:650}
body[data-management-home=true] .management-home[data-home-view] .home-heading .home-updated{color:#53647a}
.management-home[data-home-view] .home-heading button{border-color:#d6deeb}

/* Palette 12: color carries the value; white footer carries definitions and actions. */
.management-home .home-metric{--metric-fill:#3457ef;--metric-ink:#fff;padding:0;gap:0;align-items:stretch;background:#fff;border:1px solid #dfe3eb;border-radius:14px;box-shadow:none;overflow:hidden}
.management-home [data-home-metric=organizationCount]{--metric-fill:#7950d6}
.management-home [data-home-metric=deliveredCount]{--metric-fill:#16805b}
.management-home [data-home-metric=exceptionCount]{--metric-fill:#687383}
.management-home [data-home-metric=attentionCount],.management-home [data-home-metric=pendingCount]{--metric-fill:#192743}
.home-metric-value{background:var(--metric-fill);color:var(--metric-ink);padding:16px 16px 14px;display:flex;flex-direction:column;gap:7px;min-height:100px}
.home-metric-value>span{font-size:13px;font-weight:600;color:inherit}
.home-metric-value>strong{font-size:34px;line-height:1.2;font-weight:750;color:inherit;font-variant-numeric:tabular-nums}
.home-metric-footer{background:#fff;padding:10px 16px 12px;color:#53647a;flex:1}
.home-metric-footer .home-definition{margin:0 0 5px}
.home-metric-footer>a{display:inline-flex;align-items:center;min-height:28px;font-size:12px;color:#2948cf}
.management-home .home-attention,.management-home .home-runs{background:#fff;border-color:#dfe3eb}
.home-attention .home-section-heading{border-color:#192743}
.home-runs .home-section-heading{border-color:#3457ef}
.home-projects .home-section-heading{border-color:#7950d6}
.management-home .home-metric[data-tone=warning]{border-color:#dfe3eb}
.management-home .home-metric[data-tone=danger]{border-color:#dfe3eb}
@media(max-width:760px){.home-metric-value{padding:14px;min-height:94px}.home-metric-footer{padding:8px 14px 10px}.home-metric-footer>a{min-height:36px}}

.home-metric-value{position:relative}
.home-metric-value>strong{padding-right:58px}
.home-metric-value .home-metric-alert{position:absolute;right:10px;bottom:15px;font-size:11px;line-height:1.5;font-weight:650;border-radius:5px;padding:3px 6px}
.home-metric-alert[data-alert=danger]{background:#fff0f0;color:#a3263b}
.home-metric-alert[data-alert=warning]{background:#ffe5a0;color:#694600}

/* Mascot-inspired Tiffany blue distinguishes active production. */
.management-home [data-home-metric=runningCount]{--metric-fill:#117f79;--metric-ink:#fff}
.home-runs .home-section-heading{border-color:#40b8ad}
