/* Client account pages — reuses site tokens */
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.auth-card { width: min(440px, 100%); }
.auth-card.wide { width: min(560px, 100%); }
.auth-card .brand { display: inline-flex; }
.auth-card form { padding: 1.75rem; }
.auth-title { font-size: 2rem; margin-bottom: .5rem; }
.auth-lead { color: var(--fg-muted); margin-bottom: 1.5rem; }
.auth-foot { text-align: center; color: var(--fg-muted); font-size: .92rem; margin-top: 1.25rem; }
.auth-foot.small { font-size: .82rem; color: var(--fg-dim); }
.form-error { color: var(--danger); font-size: .9rem; min-height: 1.2em; margin: 0 0 .75rem; }
.hint { color: var(--fg-dim); font-weight: 400; }

/* Portal */
.portal-body { display: flex; flex-direction: column; min-height: 100vh; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.5rem; border-bottom: 1px solid var(--border); background: var(--bg-deep); }
.admin-top-right { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.who { color: var(--fg-muted); font-size: .9rem; padding: 0 .5rem; }
.portal-main { flex: 1; width: min(1160px, 100% - 2.5rem); margin-inline: auto; padding: 2.5rem 0 4rem; }
.portal-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.portal-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .4rem; }
.status-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.status-card .pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .75rem; }
.status-card .pill.pending { background: oklch(82% .13 85 / .18); color: oklch(85% .12 85); }
.status-card .pill.active { background: oklch(78% .14 160 / .18); color: oklch(80% .15 160); }
.status-card strong { font-family: var(--font-head); font-size: 1.2rem; display: block; margin-bottom: .35rem; }
.status-card p { color: var(--fg-muted); margin: 0; font-size: .95rem; }
.portal-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.portal-col { display: grid; gap: 1.5rem; }
.portal-main .card h2 { font-size: 1.25rem; margin-bottom: .25rem; }
.muted { color: var(--fg-muted); font-size: .92rem; }
.muted.small { font-size: .85rem; }
.updates, .requests { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.updates li, .requests li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .85rem 1rem; }
.updates li h3 { font-size: 1rem; margin-bottom: .2rem; }
.updates li p { color: var(--fg-muted); font-size: .92rem; margin: .3rem 0 0; white-space: pre-wrap; }
.meta { font-size: .78rem; color: var(--fg-dim); }
.requests li { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: start; }
.requests li .r-msg { grid-column: 1 / -1; color: var(--fg-muted); font-size: .9rem; white-space: pre-wrap; }
.status-pill { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--muted); color: var(--fg-muted); white-space: nowrap; }
.status-pill[data-status="new"] { background: var(--accent-soft); color: var(--accent); }
.status-pill[data-status="contacted"] { background: oklch(72% .09 205 / .18); color: var(--primary); }
.status-pill[data-status="quoted"] { background: oklch(80% .12 85 / .18); color: oklch(85% .12 85); }
.status-pill[data-status="won"] { background: oklch(75% .15 150 / .18); color: oklch(80% .15 150); }
.status-pill[data-status="lost"] { background: oklch(63% .2 25 / .18); color: oklch(75% .15 25); }
.saved { color: var(--accent); font-size: .85rem; margin-left: .75rem; }
.empty { color: var(--fg-dim); text-align: center; padding: 1rem; }
.portal-main form { background: none; border: 0; padding: 0; box-shadow: none; }
@media (max-width: 900px) { .portal-hero, .portal-grid { grid-template-columns: 1fr; } }
