/* Signed-out pages and recipient invoice downloads. */
.header-account {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-radius: var(--radius-control);
    color: var(--theme-text-strong);
    box-shadow: var(--shadow-raised-sm);
}
.header-nav .header-account:hover { color: var(--theme-text-strong); text-decoration: none; }
.header-account[aria-current] { box-shadow: var(--shadow-sunken); }

.welcome {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    align-content: start;
    gap: 40px;
    padding-top: 24px;
}
.welcome-intro { display: flex; flex-direction: column; gap: 20px; }
.welcome-intro > div { display: flex; flex-direction: column; gap: 14px; }
.welcome h1 { max-width: 460px; font-size: 44px; }
.welcome-copy { max-width: 36rem; color: var(--theme-text-muted); }
.access-panel { max-width: 460px; }
.auth-steps {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    color: var(--theme-text-muted);
    font-size: 13px;
}
.auth-steps li { display: flex; align-items: center; gap: 8px; }
.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sunken);
    font-size: 12px;
}
.auth-steps [aria-current] { color: var(--theme-text-strong); font-weight: 600; }
.auth-steps [aria-current] .step-number { background: var(--theme-accent); color: var(--theme-accent-text); box-shadow: var(--shadow-accent); }
.auth-support { max-width: 460px; color: var(--theme-text-muted); font-size: 13px; text-align: center; }

/* The public invoice link has one action and no account navigation. */
.invoice-download {
    width: 100%;
    max-width: 520px;
    margin: clamp(16px, 7vh, 72px) auto 0;
    padding: clamp(20px, 5vw, 40px);
    align-self: center;
    flex: none;
    display: grid;
    justify-items: start;
    background: var(--theme-clay-highlight);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-raised-sm);
}
.invoice-download .button { margin-top: 20px; }
.invoice-download [role="status"]:not(:empty),
.invoice-download noscript { margin-top: 16px; }
@media (max-width: 480px) {
    .invoice-download .button { width: 100%; }
}

.form-field .code-input {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: clamp(1.5rem, 7vw, 2rem);
    letter-spacing: 0.3em;
    text-align: center;
    padding-left: calc(16px + 0.3em);
}

@media (max-width: 760px) {
    .welcome { grid-template-columns: 1fr; gap: 28px; padding-top: 8px; }
    .welcome h1 { font-size: 34px; }
    .desktop-break { display: none; }
    .website-link { display: none; }
}
@media (forced-colors: active) {
    .invoice-download, .step-number { border: 1px solid CanvasText; }
    .header-account { border: 1px solid ButtonText; }
    .header-account[aria-current], .auth-steps [aria-current] .step-number { border-width: 3px; }
}
