.cw-shell{--cw-ink:#13231d;--cw-muted:#66756f;--cw-line:#dfe9e4;--cw-soft:#f5faf7;--cw-soft-2:#eef8f2;--cw-green:#0f9f6e;--cw-green-dark:#087451;--cw-shadow:0 18px 45px rgba(24,57,43,.08);margin:0 0 20px;padding:22px;border:1px solid var(--cw-line);border-radius:26px;background:linear-gradient(145deg,#fff 0%,#fbfefc 60%,#f2faf6 100%);box-shadow:var(--cw-shadow);color:var(--cw-ink);overflow:hidden;position:relative}.cw-shell:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,#15b77e,#49c98f,#b7e8cb)}
.cw-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:18px;padding-top:4px}.cw-head h2{margin:5px 0 7px;color:var(--cw-ink);font-size:clamp(22px,2vw,30px);letter-spacing:-.02em}.cw-head p{margin:0;color:var(--cw-muted);line-height:1.9;max-width:760px}.cw-eyebrow{font-size:11px;letter-spacing:.15em;color:var(--cw-green);font-weight:900}.cw-head-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:300px}.cw-head-actions .secondary{background:linear-gradient(135deg,#0f9f6e,#19b77e);border-color:transparent;color:#fff;box-shadow:0 10px 22px rgba(15,159,110,.18)}.cw-head-actions .secondary:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(15,159,110,.22)}.cw-note{max-width:430px;font-size:12px;color:#566861;line-height:1.85;background:#f7fbf9;border:1px solid #e2ece7;border-radius:15px;padding:11px 13px}
.cw-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px}.cw-summary>div,.cw-metrics>div{padding:12px 13px;border-radius:16px;background:#fff;border:1px solid var(--cw-line);box-shadow:0 6px 18px rgba(24,57,43,.04);position:relative;overflow:hidden}.cw-summary>div:after{content:"";position:absolute;inset:auto 0 0 0;height:3px;background:linear-gradient(90deg,rgba(15,159,110,.18),rgba(15,159,110,.55))}.cw-summary span,.cw-metrics span{display:block;font-size:11px;color:var(--cw-muted);margin-bottom:5px}.cw-summary b,.cw-metrics b{font-size:21px;color:var(--cw-ink);font-variant-numeric:tabular-nums}.cw-summary>div:last-child{background:linear-gradient(145deg,#f5fbf7,#edf8f2)}.cw-summary>div:last-child b{color:var(--cw-green-dark)}
.cw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.cw-card{padding:16px;border-radius:20px;border:1px solid var(--cw-line);background:#fff;color:var(--cw-ink);box-shadow:0 8px 24px rgba(24,57,43,.055);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;position:relative;overflow:hidden}.cw-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(24,57,43,.09)}.cw-card.band-light{border-inline-start:4px solid #22c55e}.cw-card.band-balanced{border-inline-start:4px solid #38bdf8}.cw-card.band-high{border-inline-start:4px solid #f59e0b}.cw-card.band-overloaded{border-inline-start:4px solid #ef4444}.cw-card.band-overloaded{background:linear-gradient(145deg,#fff,#fff8f8)}.cw-card.band-high{background:linear-gradient(145deg,#fff,#fffbf3)}.cw-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.cw-card-head>div:first-child{display:flex;flex-direction:column;gap:3px}.cw-card-head strong{color:var(--cw-ink);font-size:16px}.cw-card-head span{font-size:11px;color:var(--cw-muted)}.cw-score{display:flex;align-items:center;gap:8px}.cw-score b{font-size:27px;color:var(--cw-ink);line-height:1}.cw-score span{padding:5px 9px;border-radius:999px;background:#edf8f2;color:var(--cw-green-dark);font-weight:800}.band-high .cw-score span{background:#fff3d8;color:#9a6500}.band-overloaded .cw-score span{background:#fee8e8;color:#b42318}.band-balanced .cw-score span{background:#eaf7ff;color:#176b87}.cw-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.cw-metrics>div{background:#f8fbf9;box-shadow:none;padding:10px 11px}.cw-metrics b{font-size:17px}.cw-self .cw-card{max-width:none}.cw-self .cw-metrics{grid-template-columns:repeat(7,minmax(0,1fr))}
.cw-assignment-modal{display:flex;flex-direction:column;gap:12px;color:var(--cw-ink,#13231d)}.cw-assignment-modal h2{margin:0}.cw-assignment-result{margin-top:16px;display:flex;flex-direction:column;gap:12px}.cw-assignment-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cw-assignment-context>div,.cw-assignment-policy{padding:12px 14px;border:1px solid #dfe9e4;border-radius:14px;background:#f7fbf9}.cw-assignment-context span,.cw-assignment-context small{display:block;color:#6b7973;font-size:11px}.cw-assignment-context strong{display:block;margin:4px 0;color:#13231d}.cw-assignment-policy{line-height:1.8;color:#52615b}.cw-assignment-policy span{color:#75817c}.cw-suggestion-list{display:flex;flex-direction:column;gap:10px}.cw-suggestion-card{padding:14px;border:1px solid #dfe9e4;border-radius:17px;background:#fff;color:#13231d;box-shadow:0 8px 20px rgba(24,57,43,.04)}.cw-suggestion-card.recommended{border-color:#9edcbd;box-shadow:0 0 0 1px rgba(15,159,110,.08) inset,0 10px 24px rgba(15,159,110,.08);background:linear-gradient(145deg,#fff,#f5fbf7)}.cw-suggestion-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.cw-suggestion-head>div:first-child{display:flex;align-items:center;gap:8px}.cw-rank{font-size:11px;color:#7b8983}.cw-recommend-score{display:flex;align-items:center;gap:8px}.cw-recommend-score b{font-size:22px;color:#13231d}.cw-recommend-score span{font-size:10px;color:#7b8983}.cw-fit-row{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.cw-fit{padding:4px 8px;border-radius:999px;font-size:10px;background:#f0f5f2;color:#66756f}.cw-fit.best{background:#e4f7ec;color:#087451}.cw-fit.continuity{background:#e7f6fc;color:#176b87}.cw-fit.class{background:#f2eafe;color:#7650a7}.cw-fit.request{background:#fff3dc;color:#946200}.cw-fit.muted{color:#7c8984}.cw-suggestion-metrics{display:flex;flex-wrap:wrap;gap:8px}.cw-suggestion-metrics span{padding:6px 8px;border-radius:10px;background:#f6f9f7;font-size:11px;color:#6d7974}.cw-suggestion-metrics b{color:#13231d}.cw-reasons{margin:10px 18px 0 0;padding:0;color:#52615b;font-size:12px;line-height:1.9}
.cw-handoff-shell{border-color:#cfe8da}.cw-handoff-list{display:flex;flex-direction:column;gap:10px}.cw-handoff-card{padding:15px;border:1px solid #d5e9df;border-radius:18px;background:linear-gradient(145deg,#fff,#f4fbf7);color:#13231d}.cw-handoff-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.cw-handoff-head>div{display:flex;flex-direction:column;gap:3px}.cw-handoff-head strong{font-size:16px;color:#13231d}.cw-handoff-head small,.cw-handoff-date{font-size:11px;color:#74817b}.cw-handoff-route{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.cw-handoff-route span{padding:5px 9px;border-radius:999px;background:#e9f7ef;color:#0b7c57;font-size:11px}.cw-handoff-reason,.cw-handoff-next{padding:9px 11px;border-radius:12px;background:#f7faf8;color:#52615b;font-size:12px;line-height:1.8}.cw-handoff-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:9px 0}.cw-handoff-counts span{padding:8px;border-radius:11px;background:#f4f8f6;color:#6d7974;font-size:10px;border:1px solid #e4ece8}.cw-handoff-counts b{display:block;margin-top:3px;color:#13231d;font-size:16px}.cw-handoff-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.cw-handoff-actions span{font-size:11px;color:#74817b}
/* The global UI system still classifies cw-shell as a legacy dark surface. These explicit module overrides keep the refreshed workload surface light until that legacy classification is retired globally. */
.cw-shell{color:var(--cw-ink)!important}.cw-shell :where(h1,h2,h3,h4,strong,b){color:var(--cw-ink)!important}.cw-shell :where(p,small,.muted){color:var(--cw-muted)!important}.cw-shell .empty{background:#f8fbf9!important;border-color:var(--cw-line)!important;color:var(--cw-muted)!important}.cw-shell :where(.secondary,.ghost){border-color:#d6eee2!important}.cw-head-actions .secondary{color:#fff!important;border-color:transparent!important}
@media(max-width:1100px){.cw-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.cw-self .cw-metrics,.cw-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.cw-handoff-counts{grid-template-columns:repeat(3,minmax(0,1fr))}.cw-head-actions{min-width:250px}}
@media(max-width:760px){.cw-shell{padding:18px}.cw-head{flex-direction:column}.cw-head-actions{align-items:stretch;width:100%;min-width:0}.cw-note{max-width:none}.cw-grid{grid-template-columns:1fr}.cw-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.cw-self .cw-metrics,.cw-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.cw-assignment-context{grid-template-columns:1fr}.cw-handoff-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.cw-shell{padding:15px;border-radius:20px}.cw-summary,.cw-self .cw-metrics,.cw-metrics{grid-template-columns:1fr 1fr}.cw-card-head,.cw-suggestion-head,.cw-handoff-head{align-items:flex-start}.cw-suggestion-head,.cw-handoff-head{flex-direction:column}.cw-recommend-score{align-self:flex-end}.cw-handoff-counts{grid-template-columns:1fr 1fr}.cw-handoff-actions{align-items:stretch;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.cw-card,.cw-head-actions .secondary{transition:none}.cw-card:hover,.cw-head-actions .secondary:hover{transform:none}}
