.collection-overview > .card {padding:18px;display:flex;flex-direction:column;gap:14px}
.collection-overview > .card[hidden] {display:none}
.collection-overview .card-head {margin-bottom:0;gap:10px}
.collection-overview .card-title {font-size:17px;line-height:1.6}
.collection-overview .card-sub {font-size:13px;line-height:1.7;color:#8491a5}
.collection-overview .card-actions {gap:6px}
.project-preview-overview {display:grid;grid-template-columns:1.15fr 1fr 1fr;padding:13px 0;border:1px solid #edf1f7;background:#f8faff;border-radius:8px}
.project-preview-overview > div {padding:0 15px;border-right:1px solid #e6ebf3;display:flex;flex-direction:column;gap:4px}
.project-preview-overview > div:last-child {border:0}
.project-preview-overview > div > span {font-size:13px;color:#6b7b91}
.project-preview-overview strong {font-size:26px;line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums;color:#2563eb}
.project-preview-overview strong small {font-size:13px;font-weight:500;margin-left:2px}
.project-preview-overview .has-warning strong {color:#d97706}
.project-preview-toolbar {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.project-preview-toolbar > span {font-size:13px;color:#8491a5}
.project-preview-group + .project-preview-group {margin-top:13px}
.project-preview-group-head {display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 6px}
.project-preview-group-head h3 {font-size:14px;margin:0;display:flex;gap:6px;align-items:center;color:#334155}
.project-preview-group-head h3:before {content:"";width:4px;height:12px;border-radius:4px;background:#3b82f6}
.project-preview-group-head h3 span {font-weight:400;color:#8491a5}
.project-preview-group-head > small {color:#8491a5;font-size:12px}
.warning-group .project-preview-group-head h3:before {background:#f59e0b}
.project-preview-row {width:100%;border:0;border-bottom:1px solid #f0f3f7;background:transparent;border-radius:5px;padding:9px 2px;display:grid;grid-template-columns:25px minmax(0,1fr) auto 9px;align-items:center;gap:8px;text-align:left;font-family:inherit;cursor:pointer;color:#334155}
.project-preview-row:last-child {border-bottom:0}
.project-preview-row:hover {background:#f3f7ff}
.project-preview-row.is-warning:hover {background:#fff9ef}
.project-preview-row:focus-visible {outline:2px solid #3b82f6;outline-offset:2px}
.project-preview-order {font-size:14px;color:#6e85ad;font-variant-numeric:tabular-nums;font-weight:650}
.is-warning .project-preview-order {color:#c88b32}
.project-preview-info {display:flex;flex-direction:column;gap:3px;min-width:0}
.project-preview-info > strong {font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-preview-info > small {font-size:12px;color:#8a97aa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-preview-track {height:3px;background:#f0f4f9;border-radius:4px;display:block;max-width:160px;margin-top:2px}
.project-preview-track i {height:100%;background:#6698ed;display:block;border-radius:4px}
.is-warning .project-preview-track i {background:#f4b55b}
.project-preview-value {display:flex;flex-direction:column;gap:4px;text-align:right;min-width:72px}
.project-preview-value > strong {font-size:19px;font-variant-numeric:tabular-nums;color:#2563eb;line-height:1.2;font-weight:650;white-space:nowrap}
.project-preview-value > strong > small {font-size:12px;font-weight:500;margin-left:2px}
.project-preview-value > span {font-size:12px;color:#92a0b2;white-space:nowrap}
.is-warning .project-preview-value > strong,.is-warning .project-preview-value > span {color:#d18b20}
.project-preview-arrow {font-size:22px;color:#a5b3c5}
.project-preview-no-warning {color:#6b8192;background:#f7fafb;font-size:13px;padding:12px;border-radius:6px;margin-top:10px}
.project-preview-total {margin-top:auto;background:#f8fafc;border:1px solid #edf1f7;border-radius:7px;padding:10px 12px;font-size:13px;color:#7c8b9c}
.project-preview-total:empty {display:none}
.project-preview-total-head {display:flex;justify-content:space-between;margin-bottom:7px;font-size:13px}
.project-preview-total-head b {color:#53647a;font-weight:600}
.project-preview-totals {display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:space-between;line-height:1.5}
.project-preview-totals b {color:#334155;font-weight:600}
.collection-footnote {margin:0;color:#8b98a9;font-size:12px;line-height:1.6}
.collection-empty {padding:60px 15px;color:#8491a5;font-size:14px;text-align:center;background:#f8fafc;border-radius:7px}
@media(max-width:700px){
  .collection-overview > .card {padding:14px;gap:12px}
  .collection-overview .card-head {gap:8px}
  .collection-overview .card-title {font-size:16px}
  .project-preview-overview > div {padding:0 10px}
  .project-preview-overview strong {font-size:24px}
  .project-preview-toolbar > span {font-size:12px}
  .project-preview-row {grid-template-columns:21px minmax(0,1fr) auto 7px;gap:6px;padding-top:11px;padding-bottom:11px}
  .project-preview-value {min-width:65px}
  .project-preview-value > strong {font-size:18px}
  .project-preview-group-head > small {font-size:11px}
  .project-preview-value > span {font-size:11px}
}

/* Company and project rankings share the same compact controls and bands. */
.collection-ranking-levels{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--line,#dce5f0);border-radius:7px;background:var(--summary-surface,#f8faff)}
.collection-ranking-levels button{border:0;border-radius:5px;padding:5px 10px;min-height:30px;background:transparent;color:var(--muted,#6b7b91);font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.collection-ranking-levels button.active{background:var(--selected,#e9f2ff);color:var(--cyan,#2563eb)}
.collection-ranking-levels button:focus-visible{outline:2px solid var(--cyan,#2563eb);outline-offset:2px}
html.dashboard-v2 #companyProjectsCard .project-preview-group{grid-template-columns:100px repeat(5,minmax(0,1fr));gap:8px}
html.dashboard-v2 #companyProjectsCard .bottom-group{grid-template-columns:100px repeat(3,minmax(0,1fr))}
html.dashboard-v2 #companyProjectsCard .bottom-group .project-preview-group-head h3:before{background:var(--muted)}
html.dashboard-v2 #companyProjectsCard .project-preview-row{grid-template-columns:21px minmax(0,1fr) auto;min-height:66px;padding:7px 8px}
html.dashboard-v2 #companyProjectsCard .project-preview-arrow{display:none}
html.dashboard-v2 #companyProjectsCard .project-preview-value>strong{font-size:17px}
@media(max-width:1699px){html.dashboard-v2 #companyProjectsCard .project-preview-group{grid-template-columns:100px repeat(3,minmax(0,1fr))}html.dashboard-v2 #companyProjectsCard .top-group>.project-preview-group-head{grid-row:1/3}html.dashboard-v2 #companyProjectsCard .top-group>.project-preview-row:nth-child(5){grid-column:2}html.dashboard-v2 #companyProjectsCard .top-group>.project-preview-row:nth-child(6){grid-column:3}}
@media(max-width:1000px){html.dashboard-v2 #companyProjectsCard .project-preview-group,html.dashboard-v2 #companyProjectsCard .bottom-group{grid-template-columns:repeat(2,minmax(0,1fr))}html.dashboard-v2 #companyProjectsCard .project-preview-group>.project-preview-group-head{grid-row:auto;grid-column:1/-1}html.dashboard-v2 #companyProjectsCard .top-group>.project-preview-row:nth-child(n){grid-column:auto}}
@media(max-width:760px){html.dashboard-v2 #companyProjectsCard .project-preview-group,html.dashboard-v2 #companyProjectsCard .bottom-group{grid-template-columns:minmax(0,1fr)}html.dashboard-v2 #companyProjectsCard .project-preview-toolbar{justify-content:flex-start}html.dashboard-v2 #companyProjectsCard .project-preview-toolbar>span{display:none}}
