/* Layout fixes kept OUTSIDE the inlined critical CSS (t170), so the inline <style> hash in the
   server CSP (sha256-Y4Z1+Zgs+sAHPf49d2gNhnS+My7fmWDlWQgi+FPPknE=) does not change. Allowed by style-src 'self'. */

/* 1. "Live" badge on product cards */
.card > .tag { display: inline-flex; align-items: center; padding: .3rem .75rem; line-height: 1.2; margin: 0 0 .75rem; }
.card > .tag + h3 { margin-top: 0; }

/* 5. "Sign up · Log in" line on cards */
.card [data-account] { margin: .75rem 0 0; line-height: 1.6; }
.card [data-account] a { display: inline-block; padding: .3rem 0; }
.card > p:last-child { margin-bottom: 0; }

/* 2. /signup/ and /login/ chooser cards */
[data-chooser] .card { display: flex; flex-direction: column; }
[data-chooser] .card h2 { margin: 0 0 .35rem; }
[data-chooser] .card .muted { margin: 0; }
[data-chooser] .actions { margin-top: 1.25rem; }
[data-chooser] .actions .btn { width: 100%; text-align: center; }
[data-chooser] [data-signup-note] { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--ink-2); }

/* 3. Score estimator */
.est { grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 48rem) { .est { grid-template-columns: 1fr 1fr; } }
.form .est fieldset.card { padding: 1.3rem; gap: 1.1rem; align-content: start; }
.est legend { float: left; width: 100%; margin: 0; font-size: 1.15rem; font-weight: 700; }
.est fieldset > div { display: grid; gap: .5rem; }
.est label { display: block; margin: 0; line-height: 1.4; font-weight: 600; }
.est input[type="range"] { width: 100%; margin: 0; min-height: 44px; }
.est fieldset > p { margin: 0; line-height: 1.5; }
.est [id$="-route"] { text-transform: capitalize; }
#estimator.form { max-width: 52rem; }
.est fieldset > p.small { font-size: 1rem; }
/* checkout coupon row: gap above Apply, full-width Apply on mobile (right-aligned from 36rem), no empty-status gap before the price note / Pay */
#coupon-btn { display: block; width: 100%; margin-top: .6rem; }
@media (min-width: 36rem) { #coupon-btn { width: auto; min-width: 8rem; margin-left: auto; } }
#coupon-status { margin: .4rem 0 0; }
#coupon-status:empty { display: none; }
#pay-form > p { margin-bottom: 0; }
