/* Aggregate rankings inherit the existing workbench's official-site tokens. */
.wb-performance{display:flex;flex-direction:column;gap:16px;min-width:0;font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink)}
.wb-performance [hidden]{display:none!important}.wb-performance *, .wb-performance *::before, .wb-performance *::after{box-sizing:border-box}
.wb-performance-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}.wb-performance-toolbar h3{font-size:16px;margin:0 0 4px}.wb-performance-toolbar p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.wb-performance-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px}.wb-performance-controls label{display:grid;gap:4px;color:var(--muted);font-size:11px}.wb-performance-controls select{height:36px;min-width:112px;border:1px solid var(--line);border-radius:8px;padding:0 12px;color:var(--ink);background:var(--paper);font:inherit;font-size:13px}.wb-performance-refresh{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px;cursor:pointer}.wb-performance-refresh svg{width:16px;height:16px;color:var(--brand)}
.wb-performance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}.wb-performance-grid.is-single{grid-template-columns:minmax(0,1fr)}.wb-performance-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px color-mix(in srgb,var(--ink) 4%,transparent)}.wb-performance-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.wb-performance-card h3{display:flex;align-items:center;gap:8px;margin:0;font-size:15px;font-weight:600}.wb-performance-card h3 svg{flex:0 0 20px;width:20px;height:20px;color:var(--brand)}.wb-performance-card>header p{margin:4px 0 0;font-size:11px;line-height:1.7;color:var(--muted)}
.wb-performance-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--line);border-radius:10px;align-self:flex-start;max-width:100%}.wb-performance-tabs button{font:inherit;font-size:12px;line-height:1.5;padding:6px 12px;border:0;border-radius:7px;color:var(--muted);background:transparent;cursor:pointer}.wb-performance-tabs button[aria-pressed=true]{background:var(--brand);color:var(--paper)}.wb-performance button:hover{border-color:var(--brand)}.wb-performance button:active{transform:translateY(1px)}
.wb-performance-card-content{flex:1;min-height:144px}.wb-performance-ranking{min-height:144px;max-height:360px;overflow:auto;scrollbar-width:thin}.wb-performance ol{margin:0;padding:0;list-style:none}.wb-performance-row{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(64px,auto);align-items:center;gap:12px;min-height:64px;padding:12px 4px;border-bottom:1px solid var(--line)}.wb-performance-row:last-child{border-bottom:0}.wb-performance-row.is-self,.wb-performance-row.is-current-project{background:color-mix(in srgb,var(--brand) 5%,var(--paper));border-radius:8px;padding-inline:8px}.wb-performance-rank{display:grid;place-items:center;align-self:center;width:28px;height:28px;border-radius:8px;font-size:12px;color:var(--muted);background:color-mix(in srgb,var(--ink) 5%,var(--paper));font-variant-numeric:tabular-nums}.wb-performance-rank.is-leading{color:var(--brand);background:color-mix(in srgb,var(--brand) 10%,var(--paper));font-weight:700}
.wb-performance-person{min-width:0}.wb-performance-person>div{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-width:0}.wb-performance-person strong{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.7;font-weight:600}.wb-performance-person p{margin:4px 0 0;font-size:10px;line-height:1.7;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wb-performance-self-label{font-size:10px;line-height:1.6;white-space:nowrap;color:var(--brand)}.wb-performance-status{font-size:10px;line-height:1.6;color:var(--muted);white-space:nowrap}.wb-performance-status[data-status=DISABLED],.wb-performance-status[data-status=INACTIVE]{color:var(--danger,#b73d4b)}
.wb-performance-value{display:flex;flex-direction:column;gap:4px;align-items:flex-end;text-align:right;min-width:64px;max-width:192px;font-variant-numeric:tabular-nums}.wb-performance-value strong{font-size:18px;line-height:1.5;font-weight:650;color:var(--ink);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.wb-performance-value.is-money strong{font-size:15px}.wb-performance-value small{color:var(--muted);font-size:10px;line-height:1.6;white-space:nowrap}
.wb-performance-own{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}.wb-performance-own>p,.wb-performance-own-note{margin:0 0 4px;font-size:11px;line-height:1.8;color:var(--muted)}.wb-performance-own-note{margin-top:8px}.wb-performance-card>footer{display:block;min-height:0;margin-top:auto;padding:8px 0 0;border-top:1px solid var(--line);font-size:10px;line-height:1.8;color:var(--muted)}
.wb-performance-loading{min-height:144px}.wb-performance-loading>p{font-size:12px;color:var(--muted)}.wb-performance-loading>div{display:grid;gap:12px;margin-top:16px}.wb-performance-loading i{display:block;height:28px;border-radius:8px;background:color-mix(in srgb,var(--ink) 5%,var(--paper))}.wb-performance-empty{min-height:144px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:24px;color:var(--muted)}.wb-performance-empty strong{font-size:13px;font-weight:500;color:var(--ink)}.wb-performance-empty p{font-size:12px;line-height:1.8;margin:0}.wb-performance-empty button{margin-top:8px;font-size:12px}
.wb-performance-definitions{border-top:1px solid var(--line);padding-top:8px;font-size:11px;color:var(--muted);line-height:1.8}.wb-performance-definitions summary{cursor:pointer;min-height:32px;display:flex;align-items:center;color:var(--ink)}.wb-performance-definitions p{margin:8px 0 0}.wb-performance :is(button,select,summary,[tabindex]):focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@media(max-width:1000px){.wb-performance-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.wb-performance-toolbar{align-items:stretch}.wb-performance-controls{width:100%;gap:8px}.wb-performance-controls label{flex:1;min-width:96px}.wb-performance-controls select{width:100%;min-width:0}.wb-performance-card{padding:12px}.wb-performance-tabs button{padding:6px 10px}.wb-performance-row{gap:8px;grid-template-columns:24px minmax(0,1fr) minmax(60px,auto)}.wb-performance-rank{width:24px;height:24px;font-size:11px}.wb-performance-value{max-width:140px}.wb-performance-value strong{font-size:16px}.wb-performance-value.is-money strong{font-size:13px}.wb-performance-person strong{font-size:12px}.wb-performance-status{font-size:9px}.wb-performance-own .wb-performance-row{padding-inline:4px}}
@media(prefers-reduced-motion:reduce){.wb-performance button:active{transform:none}}

.jd-wb-performance-region:not([hidden]){margin-top:24px}
