/* Billsmith Pro: sign-in and the signed-in workspace. Builds on site.css tokens only. */
.auth-wrap { display: grid; justify-items: center; padding-top: 40px; padding-bottom: 72px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-title { font-size: 26px; line-height: 1.15; margin: 0 0 8px; font-weight: 720; letter-spacing: -0.01em; }
.auth-lead { margin-bottom: 22px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--faint); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ''; height: 1px; flex: 1; background: var(--rule); }
.auth-google { width: 100%; }
.auth-google svg { width: 20px; height: 20px; }
#email-form .button, #code-form .button { width: 100%; }
.auth-code { font-size: 26px; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.auth-again { margin-top: 18px; }
.auth-terms { padding: 0 24px 24px; }
@media (min-width: 560px) { .auth-terms { padding: 0 32px 28px; } }

/* ---------- Workspace ---------- */
.ws { padding-top: 32px; padding-bottom: 72px; display: grid; gap: 24px; }
.ws[aria-busy="true"] > * { visibility: hidden; }
.ws-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.ws-title { font-size: 30px; line-height: 1.1; margin: 0 0 6px; font-weight: 740; letter-spacing: -0.015em; }
.ws-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ws-stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 820px) { .ws-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ws-stat { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; }
.ws-stat-label { display: block; font-size: 12px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); font-stretch: 112%; font-variation-settings: 'wdth' 112; }
.ws-stat-value { display: block; margin-top: 8px; font-size: 24px; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ws-stat.late .ws-stat-value { color: var(--error); }
.ws-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.ws-bar input[type=search] { max-width: 320px; }
.ws-filter { overflow-x: auto; max-width: 100%; }
.ws-list:empty { display: none; }
.ws-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 20px; border-top: 1px solid var(--rule); align-items: center; }
.ws-row:first-child { border-top: 0; }
@media (min-width: 820px) { .ws-row { grid-template-columns: 140px minmax(0, 1fr) 130px 120px auto; padding: 14px 24px; } }
.ws-num { font-weight: 640; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; }
.ws-num:hover { color: var(--accent); }
.ws-client { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ws-amount { font-weight: 680; font-variant-numeric: tabular-nums; text-align: right; }
.ws-row-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; grid-column: 1 / -1; }
@media (min-width: 820px) { .ws-row-actions { grid-column: auto; } }
.pill { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--paper-deep); color: var(--ink-2); white-space: nowrap; }
.pill.late { background: var(--error-tint); color: var(--error); }
.pill.paid { background: #E8F3EC; color: var(--ok); }
.pill.sent { background: var(--accent-tint); color: var(--accent); }
.ws-upgrade-title { font-size: 22px; margin: 0 0 12px; }
.ws-upgrade-list { margin: 0 0 22px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.ws-plans { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-bottom: 14px; }
@media (min-width: 640px) { .ws-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ws-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-name { font-weight: 680; }
.plan-price { font-size: 26px; font-weight: 740; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan .button { width: 100%; }
.ws-account { text-align: center; }


/* ---------- /pro/ ---------- */
.pro-page { padding-top: 40px; padding-bottom: 80px; display: grid; gap: 40px; }
.pro-hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; margin: 0 0 14px; font-weight: 760; letter-spacing: -0.02em; }
.pro-lead { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; margin: 0; }
.pro-features { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .pro-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .pro-features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pro-feature { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; }
.pro-feature h2 { font-size: 17px; margin: 0 0 8px; }
.pro-feature p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.pro-pricing { max-width: 760px; }
.pro-faq { max-width: 70ch; }
.pro-faq h2 { font-size: 22px; margin: 0 0 8px; }
.pro-faq h3 { font-size: 16.5px; margin: 22px 0 6px; }
.pro-faq p { margin: 0; line-height: 1.55; color: var(--ink-2); }
