/* Account + Pro onboarding. Uses only the tokens and patterns in style.css. */
.acct-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 0 var(--s2); }
.acct-top h2 { margin: 0; font-size: 40px; }
.acct-sub { margin: 0 0 var(--s3); }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border: 2px solid var(--rule); }
.pill .ico { width: 16px; height: 16px; }
.pill.ok { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill.warn { border-color: var(--accent); color: var(--accent); }
.pill.dim { border-style: dashed; border-color: var(--fg-muted); color: var(--fg-muted); }
.acct-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.acct-actions .btn { flex: 0 1 auto; }
.confirm { margin-top: var(--s3); border: 3px solid var(--accent); padding: var(--s3); background: var(--bg-alt); }
.confirm h3 { font-size: 24px; margin-bottom: var(--s1); }
.confirm p { margin: 0 0 var(--s2); }
.confirm .acct-actions { margin-top: var(--s2); }
.quiet { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-muted); font-size: 16px; margin: var(--s2) 0 0; }
.quiet .ico { margin-top: 3px; flex: none; }
.upgrade { border-color: var(--accent); }
.upgrade .price { margin-bottom: var(--s2); }
.upgrade ul { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.upgrade li { padding: 10px 0; border-top: 1px solid var(--hair); display: flex; gap: 10px; }
.upgrade li .ico { margin-top: 4px; color: var(--accent); flex: none; }
.upgrade .now { color: var(--fg-muted); }
.hist { margin-top: var(--s3); }
.hist .history-head { margin-bottom: var(--s2); }
.hist td.num, .hist th.num { text-align: right; font-variant-numeric: tabular-nums; }
.use-row + .use-row { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--hair); }
.use-row h3 { font: 700 16px/1.3 var(--sans); letter-spacing: 0; margin: 0; }
.use-row .big { font: 700 36px/1.1 var(--serif); margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.use-row .big small { font: 400 16px/1 var(--sans); color: var(--fg-muted); }
.use-row .meter { margin: var(--s1) 0 0; }
.use-row .hint { margin-top: 6px; }
.skel-block { height: 18px; margin: 0 0 var(--s1); }
.welcome { max-width: 760px; margin-inline: auto; }
.welcome h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: var(--s2); }
.welcome .spin { animation: spin 1.1s linear infinite; }
.welcome .state { border: 3px solid var(--rule); padding: var(--s4) var(--s3); background: var(--bg); }
.welcome .state.done { border-color: var(--accent); }
.welcome .one-line { font-size: 20px; margin: var(--s3) 0; padding: var(--s2) 0; border-block: 2px solid var(--rule); }
.stat-wide { display: grid; grid-template-columns: repeat(3, 1fr); border: 3px solid var(--rule); margin: var(--s3) 0; }
.stat-wide > div { padding: var(--s2); }
.stat-wide > div + div { border-left: 3px solid var(--rule); }
.stat-wide b { display: block; font: 700 36px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.stat-wide span { color: var(--fg-muted); font-size: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .stat-wide { grid-template-columns: 1fr; }
  .stat-wide > div + div { border-left: 0; border-top: 3px solid var(--rule); }
  .acct-actions .btn { flex: 1 1 100%; justify-content: center; }
  .acct-top h2 { font-size: 34px; }
  .confirm { padding: var(--s2); }
}
@media (prefers-reduced-motion: reduce) { .welcome .spin { animation: none; } }
.hist { padding-top: var(--s3); }
.hist .history-head h2 { margin: 0; }
.hist table.t { min-width: 480px; }
.welcome h1:focus, .welcome h1:focus-visible { outline: none; }
.app-grid .side { order: 0; }
.hist .history-head { margin-top: 0; }
@media (max-width: 640px) { .hist table.t { min-width: 0; } .hist table.t th, .hist table.t td { padding: 12px 8px; } .hist table.t th { font-size: 12px; letter-spacing: .06em; } .hist .table-wrap { margin-inline: 0; } }

/* Pro welcome, signed out: built from the payment return, no sign-in wall */
.welcome .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.welcome .eyebrow .ico { width: 20px; height: 20px; }
.welcome .steps { list-style: none; counter-reset: step; margin: var(--s3) 0; padding: 0; }
.welcome .steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: var(--s2); align-items: center; padding: var(--s2) 0; border-top: 1px solid var(--hair); font-size: 18px; }
.welcome .steps li:last-child { border-bottom: 1px solid var(--hair); }
.welcome .steps li::before { content: counter(step); font: 700 36px/1 var(--serif); color: var(--accent); font-variant-numeric: tabular-nums; }
.welcome .acct-actions .btn { box-sizing: border-box; max-width: 100%; }
.welcome .acct-actions .btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
@media (max-width: 640px) { .welcome .state { padding: var(--s3) var(--s2); } .welcome .steps li { grid-template-columns: 32px 1fr; font-size: 16px; } .welcome .steps li::before { font-size: 28px; } .welcome .acct-actions .btn { width: 100%; } }

/* Audit status summary above the history table */
.run-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin: 0 0 var(--s3); }
.run-strip > div { border: 2px solid var(--rule); padding: var(--s2); display: flex; flex-direction: column; gap: 6px; }
.run-strip b { font: 700 36px/1 var(--serif); }
.run-strip span { font-size: 14px; color: var(--fg-muted); }
@media (max-width: 560px) { .run-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-mob { display: none; }
@media (max-width: 560px) { .pg-mob { display: block; margin-top: 4px; font-size: 14px; color: var(--fg-muted); font-variant-numeric: tabular-nums; } }
/* Running row on phones: the progress line sits under the status word, never beside it */
@media (max-width: 560px) { .status { flex-wrap: wrap; } .pg-mob { flex-basis: 100%; white-space: nowrap; } table.t td > .status { min-width: 112px; } }
