/* Use the same theme surfaces as review setup; preserve the report document. */
.ws-page{--ws-muted:var(--text-2);--ws-line:var(--border)}
.ws-attention-item strong,.ws-pill.running,.ws-pill.queued,.ws-pill.waiting_provider{background:var(--surface-2);color:var(--text)}
.ws-row-action:hover{background:var(--surface-2);color:var(--text);border-color:var(--accent)}
.ws-scope{font-size:14px;font-weight:550;display:flex;flex-direction:column;gap:5px}
.ws-report-type{font-size:13px;font-weight:550}
.ws-latest-report{margin-bottom:24px}
.ws-client-actions .ws-row-action{min-height:44px}

/* Failed/cancelled attempts share one disclosure in both client history views. */
.history-attempts{margin-top:16px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.history-attempts-toggle{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 18px;padding:12px 16px;min-height:44px;cursor:pointer;list-style:none;font-size:12px;color:var(--text-2)}
.history-attempts-toggle::-webkit-details-marker{display:none}
.history-attempts-toggle::marker{content:""}
.history-attempts-toggle:hover{background:var(--surface-2);border-radius:6px}
.history-attempts-toggle:focus-visible{outline-offset:-3px;border-radius:6px}
.history-attempts-counts{display:flex;flex-wrap:wrap;gap:0 4px;line-height:1.7;font-variant-numeric:tabular-nums}
.history-attempts-action{display:inline-flex;align-items:center;gap:7px;min-height:24px;color:var(--ink);font-weight:500}
.history-attempts-action .icon{width:14px;height:14px}
.history-attempts-hide,.history-attempts[open] .history-attempts-show{display:none}
.history-attempts[open] .history-attempts-hide{display:inline}
.history-attempts[open] .history-attempts-action .icon{transform:rotate(180deg)}
.history-attempts[open]>.history-attempts-toggle{border-bottom:1px solid var(--line);border-radius:6px 6px 0 0}
.history-attempts .review-history-list{border:0;border-radius:0 0 6px 6px}
.client-history-content{flex:1;min-height:0;overflow-y:auto}
.client-history-content .client-history-list{overflow:visible}
.client-history-content .history-attempts{margin:8px 14px 16px}
.client-history-content .history-attempts-toggle{padding:12px}
.client-history-content .history-attempts .client-history-list{padding:0}
.client-history-head,.client-history-foot{flex-shrink:0}

@media(max-width:720px){
  .ws-latest-report{display:flex;flex-direction:column;align-items:stretch;gap:16px}
  .ws-latest-report .ws-scores{flex-direction:row;gap:28px}
  .ws-client-row{grid-template-columns:minmax(0,1fr)}
  .ws-client-identity,.ws-client-actions{grid-column:1}
  .ws-client-measurement,.ws-client-state{min-width:0}
  .ws-client-actions{flex-wrap:wrap;gap:12px}
  .ws-client-actions .ws-row-action{flex:1}
}
