/* Hallmark · shape: app screen · genre: modern-minimal · theme: existing InLoop · signature: itemized billing ledger · v2.0.0 */
/* Critique: use the existing shell and a restrained, readable ledger; registration progresses one form at a time. */
:root { --billing-paper: #fffdf8; --billing-ink: #172133; --billing-muted: #536174; --billing-line: #d6d9d8; --billing-accent: #047857; --billing-on-accent: #fffdf8; --billing-hover: #065f46; --billing-soft: #f1f5f3; --billing-font: ui-sans-serif, system-ui, sans-serif; --billing-dark-paper: #0f172a; --billing-dark-ink: #f5f5f4; --billing-dark-muted: #cbd5e1; --billing-dark-line: #475569; --billing-dark-accent: #6ee7b7; --billing-dark-hover: #a7f3d0; --billing-dark-soft: #1e293b; }
:root.dark { --billing-paper: var(--billing-dark-paper); --billing-ink: var(--billing-dark-ink); --billing-muted: var(--billing-dark-muted); --billing-line: var(--billing-dark-line); --billing-accent: var(--billing-dark-accent); --billing-on-accent: var(--billing-dark-paper); --billing-hover: var(--billing-dark-hover); --billing-soft: var(--billing-dark-soft); }
html, body { overflow-x: clip; }
.billing-workspace { width: 100%; max-width: 68rem; margin: 0 auto; color: var(--billing-ink); font-family: var(--billing-font); font-size: 1rem; line-height: 1.6; }
.billing-workspace h1 { font-size: 2rem; font-weight: 650; margin: 0 0 .5rem; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.billing-workspace h2 { font-size: 1.3rem; font-weight: 650; margin: 0 0 1rem; }
.billing-workspace p { margin: .6rem 0 1rem; }
.billing-workspace .muted { color: var(--billing-muted); }
.billing-workspace section { border-top: 1px solid var(--billing-line); padding: 1.5rem 0; margin-top: 1.5rem; }
.billing-workspace nav { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.billing-workspace a { color: var(--billing-accent); text-decoration: underline; text-underline-offset: .2em; }
.billing-workspace :is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--billing-accent); outline-offset: 3px; }
.billing-workspace .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.billing-workspace .wide { grid-column: 1 / -1; }
.billing-workspace label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: .3rem; }
.billing-workspace :is(input:not([type=checkbox]):not([type=submit]):not([type=hidden]), select, textarea) { width: 100%; min-height: 44px; padding: .6rem .75rem; border: 1px solid var(--billing-line); border-radius: .4rem; background: var(--billing-paper); color: var(--billing-ink); }
.billing-workspace textarea { min-height: 7rem; }
.billing-workspace :is(button, input[type=submit], .primary) { display: inline-block; min-height: 44px; padding: .65rem 1.1rem; margin-top: 1rem; background: var(--billing-accent); color: var(--billing-on-accent); border-radius: .4rem; border: 0; font-weight: 600; cursor: pointer; text-decoration: none; }
.billing-workspace :is(button, input[type=submit], .primary):hover { background: var(--billing-hover); }
.billing-workspace :is(button, input[type=submit], .primary):active { transform: translateY(1px); }
.billing-workspace :is(button, input, select, textarea):disabled { opacity: .55; cursor: not-allowed; }
.billing-workspace input[type=checkbox] { margin-right: .5rem; width: 1.1rem; height: 1.1rem; accent-color: var(--billing-accent); }
.billing-workspace .notice { padding: 1rem; background: var(--billing-soft); border: 1px solid var(--billing-line); }
.billing-workspace .table-scroll { overflow-x: auto; }
.billing-workspace table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.billing-workspace :is(th, td) { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--billing-line); vertical-align: top; }
.billing-workspace th { font-size: .95rem; font-weight: 600; }
.billing-workspace .amount { text-align: right; white-space: nowrap; }
.billing-workspace details { padding: 1rem 0; }
.billing-workspace summary { cursor: pointer; }
.setup-progress { margin-bottom: 2.5rem; padding: 1.5rem; border: 1px solid var(--billing-line); border-radius: 1rem; background: var(--billing-paper); }
.setup-progress-summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--billing-muted); font-size: .875rem; }
.setup-progress-summary strong { margin-left: .75rem; color: var(--billing-ink); }
.setup-progress-status { color: var(--billing-accent); }
.setup-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin: 1.75rem 0 0; }
.setup-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: .65rem; min-width: 0; color: var(--billing-muted); }
.setup-stage:not(:first-child)::before { content: ''; position: absolute; top: 1.1rem; right: 50%; width: 100%; height: 2px; background: var(--billing-line); }
.setup-stage.is-complete::before, .setup-stage.is-current::before { background: var(--billing-accent); transform-origin: left; animation: setup-connect .45s ease-out; }
.setup-stage-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 2px solid var(--billing-line); border-radius: 50%; background: var(--billing-paper); font-size: .8rem; font-weight: 650; }
.setup-stage-dot svg { width: 1.25rem; height: 1.25rem; }
.setup-stage.is-complete .setup-stage-dot { background: var(--billing-accent); border-color: var(--billing-accent); color: var(--billing-on-accent); }
.setup-stage.is-current .setup-stage-dot { border-color: var(--billing-accent); outline: 4px solid var(--billing-soft); color: var(--billing-accent); }
.setup-stage.is-waiting .setup-stage-dot::after { content: ''; position: absolute; inset: -7px; border: 1px solid var(--billing-accent); border-radius: 50%; animation: setup-pulse 2s ease-out infinite; }
.setup-stage-label { font-size: .875rem; text-align: center; }
.setup-stage.is-current .setup-stage-label { color: var(--billing-ink); font-weight: 650; }
@keyframes setup-connect { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes setup-pulse { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.3); opacity: 0; } }
@media (max-width: 40rem) { .setup-progress { padding: 1rem; } .setup-progress-summary { align-items: flex-start; } .setup-progress-summary strong { display: block; margin: .2rem 0 0; } .setup-progress-status { max-width: 10rem; text-align: right; } .setup-stage-label { display: none; } .setup-timeline { margin-top: 1.25rem; } .setup-stage-dot { width: 1.75rem; height: 1.75rem; } .setup-stage:not(:first-child)::before { top: .85rem; } }
@media (prefers-reduced-motion: reduce) { .setup-stage::before, .setup-stage.is-waiting .setup-stage-dot::after { animation: none; } }
@media (max-width: 40rem) { .billing-workspace .fields { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .billing-workspace :is(button, input[type=submit], .primary):active { transform: none; } }

/* Setup copy: short cues first, supporting detail on demand. */
.onboarding-flow { max-width: 56rem; }
.onboarding-flow > section { padding: 2rem; border: 1px solid var(--billing-line); border-radius: 1rem; background: var(--billing-paper); margin-top: 1.5rem; }
.setup-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 2rem; }
.setup-heading h1 { margin: 0; }
.setup-save-note { display: inline-flex; align-items: center; gap: .45rem; color: var(--billing-muted); font-size: .8rem; }
.setup-save-note svg { width: 1rem; height: 1rem; }
.billing-workspace .setup-test-banner { padding: .7rem 1rem; margin-bottom: 1.5rem; border: 1px solid var(--billing-line); border-radius: .6rem; background: var(--billing-soft); font-size: .85rem; }
.setup-test-banner summary { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.setup-badge { font-weight: 650; color: var(--billing-accent); }
.setup-help-label { margin-left: auto; color: var(--billing-muted); text-decoration: underline; text-underline-offset: .2em; }
.billing-workspace .setup-test-banner p { margin: .75rem 0 .25rem; max-width: 60ch; color: var(--billing-muted); }
.setup-guidance { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.2rem; margin: 0 0 1.5rem; border-radius: .6rem; background: var(--billing-soft); }
.setup-guidance > svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; color: var(--billing-accent); }
.setup-guidance strong, .setup-guidance span { display: block; }
.setup-guidance strong { font-size: .95rem; font-weight: 600; }
.setup-guidance span { font-size: .875rem; color: var(--billing-muted); margin-top: .15rem; }
.billing-workspace label.setup-choice { display: flex; align-items: flex-start; gap: .65rem; padding: 1rem; margin-top: 1rem; border: 1px solid var(--billing-line); border-radius: .6rem; cursor: pointer; }
.setup-choice input { flex-shrink: 0; margin-top: .2rem; }
.setup-choice strong, .setup-choice small { display: block; }
.setup-choice small { font-size: .85rem; font-weight: 400; color: var(--billing-muted); margin-top: .2rem; }
.setup-choice:has(input:checked) { border-color: var(--billing-accent); background: var(--billing-soft); }
.billing-workspace .setup-help { padding: .85rem 0; border-bottom: 1px solid var(--billing-line); margin-bottom: 1rem; }
.setup-help summary { font-size: .875rem; font-weight: 600; color: var(--billing-accent); min-height: 2rem; padding: .25rem 0; }
.setup-help > p { max-width: 65ch; color: var(--billing-muted); font-size: .875rem; }
.billing-workspace summary:focus-visible { outline: 3px solid var(--billing-accent); outline-offset: 3px; }
.setup-review-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding: 1.25rem 0 1.75rem; }
.setup-review-facts dt, .setup-link-preview > span, .setup-message-preview > span { font-size: .8rem; color: var(--billing-muted); margin-bottom: .35rem; }
.setup-review-facts dd { margin: 0; font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }
.setup-link-preview { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: 1rem 0; border-block: 1px solid var(--billing-line); }
.setup-link-preview > span { width: 100%; }
.setup-link-preview code { font-size: .85rem; overflow-wrap: anywhere; }
.setup-link-preview a { font-size: .85rem; margin-left: auto; }
.setup-message-preview blockquote { margin: .75rem 0; padding: 1rem 1.25rem; background: var(--billing-soft); border-radius: 1rem 1rem 1rem .2rem; max-width: 38rem; font-size: .95rem; line-height: 1.6; }
.setup-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; margin: 1.5rem 0; }
.setup-next > span { font-size: .8rem; color: var(--billing-muted); }
.setup-next strong { font-size: .95rem; font-weight: 600; }
.setup-next small { color: var(--billing-muted); font-size: .85rem; }
.setup-status-list > div, .setup-recurring > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--billing-line); }
.setup-status-list dt { color: var(--billing-muted); }
.setup-status-list dd { margin: 0; background: var(--billing-soft); padding: .25rem .75rem; border-radius: 2rem; font-size: .85rem; text-align: right; }
.setup-status-panel { margin: 1rem 0; padding: 1.5rem; background: var(--billing-soft); border-radius: .6rem; }
.setup-status-panel strong { font-size: 1.1rem; }
.billing-workspace .setup-status-panel p { margin: .4rem 0 0; color: var(--billing-muted); }
.setup-price-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0 1.5rem; }
.setup-price-heading > div > span { display: block; font-size: .875rem; color: var(--billing-muted); }
.setup-price-heading strong { display: block; font-size: 3rem; font-weight: 650; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.setup-price-note { color: var(--billing-muted); font-size: .85rem; text-align: right; }
.setup-recurring { margin: 0; }
.setup-recurring dt { font-size: .95rem; font-weight: 600; }
.setup-recurring dd { text-align: right; margin: 0; white-space: nowrap; font-weight: 600; }
.setup-recurring small { display: block; font-weight: 400; font-size: .8rem; color: var(--billing-muted); margin-top: .2rem; }
.billing-workspace p.setup-footnote { font-size: .85rem; color: var(--billing-muted); margin: 1rem 0; max-width: 65ch; }
@media (max-width: 40rem) { .onboarding-flow > section { padding: 1.25rem; } .setup-review-facts { grid-template-columns: minmax(0, 1fr); gap: 1rem; } .setup-price-heading strong { font-size: 2.5rem; } .setup-link-preview a { margin-left: 0; } .setup-recurring > div { gap: .75rem; } }
