/* Client portal on top of /shared/ui.css */
.p-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.p-card { width: min(400px, 100%); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 32px 28px; display: grid; gap: 14px; }
.p-card h1 { margin-top: 10px; }

.p-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.p-client { color: var(--muted); font-weight: 500; padding-left: 14px; border-left: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-top-actions { margin-left: auto; display: flex; gap: 4px; }
.p-main { padding: 28px 24px 48px; max-width: 1320px; margin: 0 auto; outline: none; }

.p-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.p-head .titles { display: grid; gap: 4px; }
.p-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.p-filter { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; cursor: pointer; }
.p-filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

.p-board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.p-col { background: var(--surface-2); border-radius: var(--radius); padding: 10px; border: 2px solid transparent; min-height: 120px; }
.p-col.drop { border-color: var(--accent); background: var(--accent-soft); }
.p-col-head { display: flex; justify-content: space-between; padding: 2px 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.p-col-head .n { color: var(--muted); font-weight: 500; }
.p-cards { display: grid; gap: 8px; }
.p-empty { color: var(--muted); font-size: 12.5px; text-align: center; padding: 14px 0; }
.p-cand { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 12px; display: grid; gap: 4px; cursor: pointer; border: 1px solid transparent; text-align: left; width: 100%; font: inherit; color: inherit; }
.p-cand:hover { border-color: var(--border-strong); }
.p-cand.dragging { opacity: .45; }
.p-cand .name { font-weight: 600; }
.p-cand .meta { color: var(--muted); font-size: 12.5px; }
.p-cand .foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }

.p-stage-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.p-stage-buttons .btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.p-note { border-radius: var(--radius-sm); background: var(--surface-2); padding: 10px 12px; }
.p-note + .p-note { margin-top: 8px; }
.p-note .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.p-note .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 760px) {
  .p-top { padding: 10px 16px; gap: 10px; }
  .p-client { display: none; }
  .p-top .brand { white-space: nowrap; font-size: 14px; }
  .p-top-actions { gap: 0; }
  .p-top-actions .btn { padding: 0 7px; font-size: 12.5px; }
  .p-main { padding: 18px 16px 40px; }
  .p-board { grid-template-columns: 1fr; overflow: visible; }
  .p-col { min-height: 0; padding: 8px 10px; }
  .p-col.is-empty .p-cards { display: none; }
  .p-col.is-empty .p-col-head { padding-bottom: 2px; }
}
