/* Shared credit panel: profile contacts and cancelled paired jobs. */
.psp-credit-panel, .plugin-single-profile .psp-credit-panel.psp-card-styled {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    background: var(--psp-accent-light, #eff6ff);
    border: 1px solid var(--psp-accent-border, #93c5fd);
    border-top: 4px solid var(--psp-accent, #2563eb);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
    color: #334155;
}
.psp-credit-panel.psp-credit-history { margin-top: 20px; }
.psp-credit-panel.psp-credit-locked { text-align: center; }
.psp-credit-panel .psp-credit-title {
    color: var(--psp-accent, #2563eb);
    margin: 0 0 15px;
    font-size: 1.35em;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.psp-credit-panel.psp-credit-open .psp-credit-title {
    border-bottom: 2px solid var(--psp-accent-border, #93c5fd);
    padding-bottom: 10px;
}
.psp-credit-panel .psp-credit-description { margin: 0 0 20px; color: #334155; }
.psp-credit-panel .psp-credit-count, .psp-credit-panel .psp-credit-duration { margin: 0 0 12px; font-size: .9em; }
.psp-credit-panel .psp-credit-action.button, .psp-credit-panel .psp-credit-action.button:hover,
.psp-credit-panel .psp-credit-action.button:focus {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; min-height: 44px; box-sizing: border-box;
    padding: 12px; margin: 0; border: 0; border-radius: 6px;
    background: var(--psp-accent, #2563eb); color: #fff;
    font-size: 1.1em; font-weight: 400; line-height: 1.35;
    text-decoration: none; text-align: center; white-space: normal; cursor: pointer;
}
.psp-credit-panel .psp-credit-action.button:hover { filter: brightness(.9); }
.psp-credit-panel .psp-credit-action.button:focus-visible { outline: 2px solid var(--psp-accent, #2563eb); outline-offset: 3px; }
.psp-credit-panel .psp-credit-action.button:disabled { opacity: .6; cursor: wait; }
.psp-credit-panel .psp-credit-balance { margin-top: 15px; text-align: center; }
.psp-credit-panel .psp-credit-balance a { margin-left: 5px; color: var(--psp-accent, #2563eb); font-weight: bold; text-decoration: underline; }
.psp-credit-panel .psp-credit-error { color: #b91c1c; font-weight: 600; }
.psp-credit-panel .psp353-history-message { margin: 10px 0 0; overflow-wrap: anywhere; }
.psp-credit-panel .psp353-history-message:empty { margin: 0; }
.psp-credit-panel .psp-credit-history-item { text-align: left; background: #fff; border: 1px solid var(--psp-accent-border, #93c5fd); border-radius: 6px; padding: 10px; margin: 6px 0; overflow-wrap: anywhere; }
.psp-credit-panel .psp-credit-history-item summary { cursor: pointer; font-weight: 600; }
.psp-credit-panel .psp-credit-history-pager { margin-top: 12px; text-align: center; }
.psp-credit-panel .psp-credit-history-pager a { color: var(--psp-accent, #2563eb); }
@media (max-width: 480px) { .psp-credit-panel, .plugin-single-profile .psp-credit-panel.psp-card-styled { padding: 16px; } }

/* beta.5: paid history, responsive factual statistics and dates */
.psp-credit-history .psp355-history-summary { text-align:left; margin:0 0 16px; }
.psp-credit-history .psp355-history-summary h4 { margin:0 0 10px; font-size:1em; color:var(--psp-accent,#2563eb); }
.psp-credit-history .psp355-history-periods { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:12px; }
.psp-credit-history .psp355-history-periods div { background:#fff; border:1px solid var(--psp-accent-border,#93c5fd); border-radius:6px; padding:8px 3px; text-align:center; min-width:0; }
.psp-credit-history .psp355-history-periods strong { display:block; font-size:1.35em; color:var(--psp-accent,#2563eb); }
.psp-credit-history .psp355-history-periods span { font-size:.8em; }
.psp-credit-history .psp355-history-detail { padding-top:8px; }
.psp-credit-history .psp355-history-detail p, .psp-credit-history .psp355-history-summary p { margin:6px 0; font-size:.92em; }
.psp-credit-history .psp355-history-note { color:#475569; font-size:.85em; }

/* V3.6.0-beta.3.1: highlight the requested history, including on mobile. */
.psp-credit-history[id^="psp-history-"] { scroll-margin-top: 100px; }
.psp-credit-history:target, .psp-credit-history:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}
