/* Client Portal → Your agreement (js/portal-contract.js) */
.pc-latest { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 0; border-top: 1px solid var(--sw-ink); border-bottom: 1px solid var(--sw-rule); }
.pc-no { margin: 0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; }
.pc-meta { margin: 4px 0 10px; color: var(--sw-ink-2); font-size: 0.875rem; }
.pc-state { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; }
.pc-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pc-state.is-ok { color: var(--sw-green, #0A7D3E); }
.pc-state.is-due { color: var(--sw-red); }
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pc-note { margin: 12px 0 0; color: var(--sw-ink-2); font-size: 0.875rem; max-width: 62ch; }
.pc-msg { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--sw-red); background: color-mix(in srgb, var(--sw-red) 8%, transparent); font-size: 0.9rem; }
.pc-msg.is-ok { border-left-color: var(--sw-green, #0A7D3E); background: color-mix(in srgb, var(--sw-green, #0A7D3E) 9%, transparent); }
.pc-msg[hidden] { display: none; }
.pc-history { margin-top: 14px; font-size: 0.875rem; }
.pc-history summary { cursor: pointer; font-weight: 700; }
.pc-history ul { list-style: none; margin: 8px 0 0; padding: 0; }
.pc-history li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--sw-rule); }
.pc-history li span:first-child { font-family: ui-monospace, Menlo, Consolas, monospace; }
.pc-link { margin-left: auto; background: none; border: 0; padding: 0; color: var(--sw-red); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .pc-actions, .pc-actions .sw-btn { width: 100%; } }
