/* AdPylon app pages (signup, login, demo, dashboard, legal, thanks).
   Builds on main.css tokens; same color semantics: amber = action,
   green = gain/ok, coral = problem, blue → teal = Google → Bing. */

.app-body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.app-main {
  flex: 1;
  padding-block: clamp(32px, 6vw, 80px);
  background:
    radial-gradient(50% 40% at 0% 0%, rgb(79 139 255 / 0.10), transparent 70%),
    radial-gradient(50% 40% at 100% 0%, rgb(34 211 182 / 0.10), transparent 70%),
    var(--paper);
}

.app-header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.app-header-actions form { margin: 0; }
.app-header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
@media (hover: hover) { .app-header-link:hover { color: var(--text); background: var(--paper-tint); } }

/* ---------- Auth / form layout ---------- */
.auth-layout {
  display: grid;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}
.auth-layout.has-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; justify-content: stretch; }
.auth-layout.has-aside .auth-card-wide { max-width: 560px; }

.auth-aside { display: grid; gap: 20px; align-content: center; max-width: 460px; justify-self: end; }
.auth-aside h2 { font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.auth-aside .dash-card { box-shadow: 0 30px 60px -36px rgb(15 23 42 / 0.4); }
.aside-list { display: grid; gap: 12px; }
.aside-list li { position: relative; padding-inline-start: 32px; font-weight: 500; }
.aside-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 0.1em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgb(21 128 61 / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.auth-card {
  width: min(100% - 32px, 460px); /* standalone cards (thanks, verify) keep a side margin */
  max-width: 460px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 40px 80px -40px rgb(15 23 42 / 0.35);
  overflow-wrap: anywhere;
}
.auth-card-wide { width: min(100% - 32px, 640px); max-width: 640px; }
.auth-layout .auth-card { width: 100%; }
.auth-card h1 { font-size: clamp(1.625rem, 1.6vw + 1rem, 2.125rem); font-weight: 800; letter-spacing: -0.03em; }
.auth-sub { margin: 10px 0 24px; color: var(--text-muted); max-width: 52ch; }

/* Provider buttons: icon + label aligned left, like the providers' own buttons */
.auth-buttons { display: grid; gap: 12px; min-width: 0; }
.auth-buttons .btn-google {
  justify-content: center;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  min-height: 56px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 1rem;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
.auth-buttons .btn-google .g-logo { width: 22px; height: 22px; }

.auth-note {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgb(21 128 61 / 0.08);
  color: #14532d;
  font-size: 0.875rem;
}
/* Reassurance chips: friendly, not code-like */
.auth-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.auth-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.auth-trust li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgb(21 128 61 / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2315803d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.auth-switch { margin-top: 18px; color: var(--text-muted); font-size: 0.9375rem; }
.auth-switch a, .auth-legal a { color: var(--trust-ink); font-weight: 600; }
.auth-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.auth-switch + .auth-switch { margin-top: 0; }
.auth-legal { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.auth-legal a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--text-muted); }

.form-alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-inline-start: 4px solid var(--loss-ink);
  border-radius: var(--radius-sm);
  background: rgb(255 107 94 / 0.08);
  color: #7a1f17;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---------- Form fields ---------- */
.app-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #cfcabd;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: 500 1rem var(--font-body); /* 16px: no iOS zoom on focus */
  transition: border-color .15s ease, box-shadow .15s ease;
}
@media (hover: hover) { .field input:hover, .field select:hover, .field textarea:hover { border-color: #b3ad9f; } }
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(79 139 255 / 0.3); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--loss-ink); }
.field-error { color: var(--loss-ink); font-size: 0.875rem; font-weight: 600; }
.field-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Dashboard ---------- */
.app-dash { max-width: 1120px; display: grid; gap: 24px; }
.app-hello { display: flex; align-items: center; gap: 18px; }
.app-hello h1 { font-size: clamp(1.625rem, 2vw + 1rem, 2.375rem); font-weight: 800; letter-spacing: -0.03em; }
.avatar { flex: none; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line); }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; color: var(--text-muted); font-size: 0.9375rem; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink-950);
  color: #fff;
  font: 700 0.8125rem var(--font-body);
}
.pill-lock { background: #7a5b00; }

.dash-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 24px; align-items: start; }
.dash-side { display: grid; gap: 24px; }

.app-next {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.app-next h2 { font-size: 1.25rem; letter-spacing: -0.01em; }
.app-next h3 { font-size: 1.125rem; }
.app-next p { margin: 8px 0 16px; color: var(--text-muted); font-size: 0.9375rem; }
.app-connect-note { margin: 6px 0 16px; color: var(--text-muted); font-size: 0.9375rem; }
.app-connect { display: grid; gap: 10px; }
.connect-row { display: grid; gap: 6px; }
.app-connect .btn[disabled] { opacity: 0.55; cursor: not-allowed; justify-content: flex-start; border-radius: var(--radius); }
.soon { color: var(--text-muted); font: 600 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; padding-inline-start: 4px; }

/* Numbered progress steps (dashboard + signup aside) */
.verify-steps { display: grid; gap: 10px; margin: 4px 0 0; counter-reset: vs; }
.verify-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-weight: 500;
  counter-increment: vs;
}
.verify-steps li::before {
  content: counter(vs);
  display: grid;
  place-items: center;
  flex: none;
  width: 28px; height: 28px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--text-muted);
  font: 800 0.8125rem var(--font-display);
}
.verify-steps li.is-current { color: var(--text); font-weight: 700; }
.verify-steps li.is-current::before { border-color: var(--ink-950); background: var(--ink-950); color: #fff; }
.verify-steps li.is-done { color: var(--gain-ink); }
.verify-steps li.is-done::before {
  content: "";
  border-color: var(--gain-ink);
  background: var(--gain-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* ---------- Locked preview + verification ---------- */
.verify-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid #f0d27a;
  border-inline-start: 4px solid #d4a017;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fffbea, #fff);
}
.verify-banner > div { flex: 1 1 320px; }
.verify-banner h2 { font-size: 1.125rem; letter-spacing: -0.01em; }
.verify-banner p { margin-top: 6px; color: var(--text-muted); max-width: 60ch; }
.verify-note { margin-top: 10px; font-weight: 700; color: #7a5b00; }
.verify-note.verify-ok { color: var(--gain-ink); }

.dash-preview { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: clamp(16px, 3vw, 24px); }
.dash-grid > .dash-card:first-child { grid-column: 1 / -1; } /* headline metric spans the row */
.dash-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.dash-label { color: var(--text-muted); font: 700 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.dash-big { margin: 8px 0; font: 800 1.75rem/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dash-big span { color: var(--text-muted); font: 500 0.875rem var(--font-body); letter-spacing: 0; }
.dash-bar { display: flex; gap: 3px; height: 10px; }
.dash-bar span { border-radius: 4px; background: var(--google); }
.dash-bar .bing { background: var(--bing); }
.dash-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--text-muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.dash-gain { margin-top: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgb(21 128 61 / 0.08); color: var(--gain-ink); font-weight: 700; font-size: 0.9375rem; }
.dash-list { display: grid; gap: 8px; margin-top: 10px; color: #33415a; font-size: 0.9375rem; }
.dash-list li { position: relative; padding-inline-start: 16px; }
.dash-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--google); }
.dash-preview.is-locked .dash-grid { filter: blur(6px); user-select: none; pointer-events: none; }
.dash-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  background: rgb(7 12 24 / 0.5);
  text-align: center;
}
.dash-lock .pill-lock { background: #111827; color: #fff; }

/* ---------- Legal ---------- */
.legal { max-width: 72ch; }
.legal > .form-alert { margin-bottom: 28px; }
.legal h1 { font-size: clamp(2rem, 2.4vw + 1rem, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.legal-updated { margin: 8px 0 28px; color: var(--text-muted); font-size: 0.9375rem; }
.legal h2 { margin: 32px 0 8px; font-size: 1.25rem; letter-spacing: -0.01em; }
.legal p { color: #33415a; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .auth-layout.has-aside { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .auth-aside { order: 2; justify-self: center; width: 100%; max-width: 560px; }
  .dash-layout { grid-template-columns: minmax(0, 1fr); }
  .dash-side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
}
@media (max-width: 480px) {
  .app-main { padding-top: 20px; }
  .auth-card { padding: 22px 18px; border-radius: var(--radius); }
  .field-row { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .app-hello { align-items: flex-start; }
  .app-header-actions .btn { padding-inline: 14px; }
  .verify-banner form, .verify-banner .btn { width: 100%; }
  .dash-lock .btn { width: 100%; }
}

/* ---------- Workspace from the home-page builder ---------- */
.builder-final-light { color: var(--gain-ink); font: 700 0.75rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.ws-summary { justify-self: start; display: inline-flex; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 0.9375rem; }
.ws-summary-inline { margin-top: 10px; color: var(--text-muted); }
.ws-estimate { padding: 16px 18px; border: 1px solid rgb(21 128 61 / 0.3); border-radius: var(--radius); background: rgb(21 128 61 / 0.06); }
.ws-estimate-label { color: var(--text-muted); font-size: 0.875rem; }
.ws-estimate-value { margin: 4px 0; color: var(--gain-ink); font: 800 1.75rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.ws-estimate-note { color: var(--text-muted); font-size: 0.8125rem; }

/* ---------- Free toolkit on the dashboard ---------- */
.toolkit-title { font-size: clamp(1.375rem, 1.2vw + 1rem, 1.75rem); font-weight: 800; letter-spacing: -0.02em; }
.toolkit-sub { margin: 6px 0 16px; color: var(--text-muted); }
.toolkit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.toolkit-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 200px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (hover: hover) { .toolkit-card:hover { border-color: #cfcabd; box-shadow: 0 24px 50px -28px rgb(15 23 42 / 0.4); } }
.toolkit-card svg { width: 48px; height: 48px; padding: 9px; margin-bottom: 6px; border-radius: 14px; background: linear-gradient(150deg, var(--ink-700), var(--ink-950) 70%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 10px 22px -12px rgb(7 12 24 / 0.7); fill: none; stroke: #e9edf6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toolkit-name { font: 800 1.25rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.toolkit-body { color: var(--text-muted); }
.toolkit-open { margin-top: auto; padding-top: 8px; color: var(--trust-ink); font-weight: 700; }
.toolkit-open { display: inline-flex; align-items: center; gap: 6px; }
.toolkit-open::after { content: ""; flex: none; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--ico-arrow-r) center / contain no-repeat; mask: var(--ico-arrow-r) center / contain no-repeat; transition: transform .2s ease; }
@media (hover: hover) { .toolkit-card:hover .toolkit-open::after { transform: translateX(3px); } }
.toolkit-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.toolkit-next > div { flex: 1 1 320px; }
.toolkit-next p { margin-bottom: 0; }
@media (max-width: 900px) { .toolkit-grid { grid-template-columns: minmax(0, 1fr); } .toolkit-card { min-height: 0; } }

/* Signup: what unlocks + personal-account hint */
.aside-tools { display: grid; gap: 10px; }
.aside-tools li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.aside-tools strong { font-family: var(--font-display); font-size: 1.0625rem; }
.aside-tools span { color: var(--text-muted); font-size: 0.9375rem; }
.auth-hint { margin-top: 10px; color: var(--text-muted); font-size: 0.875rem; }

/* ---------- Login / signup: split screen ----------
   Left: brand + product proof (dark). Right: a calm sign-in panel.
   No marketing chips on login; one security line instead. */
.auth-body { background: var(--paper); }
.auth-main { min-height: 100vh; min-height: 100dvh; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

.auth-brand {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(60% 50% at 0% 0%, rgb(79 139 255 / 0.28), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, rgb(34 211 182 / 0.22), transparent 70%),
    var(--ink-950);
  color: var(--text-on-dark);
}
.auth-brand-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-logo { color: #fff; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted-on-dark); font-weight: 600; font-size: 0.9375rem; text-decoration: none; }
.auth-back::before { content: ""; flex: none; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--ico-arrow-l) center / contain no-repeat; mask: var(--ico-arrow-l) center / contain no-repeat; transition: transform .2s ease; }
@media (hover: hover) { .auth-back:hover::before { transform: translateX(-3px); } }
@media (hover: hover) { .auth-back:hover { color: #fff; } }
.auth-brand-body { display: grid; gap: 20px; align-content: center; max-width: 460px; width: 100%; margin-inline: auto; }
.auth-brand-body h2 { color: #fff; font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.auth-kicker { color: var(--gain); font: 700 0.75rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.auth-brand .ws-summary { border-color: var(--ink-line); background: rgb(255 255 255 / 0.06); color: #fff; }
.auth-brand .ws-estimate { border-color: rgb(61 220 132 / 0.35); background: rgb(61 220 132 / 0.08); }
.auth-brand .ws-estimate-label, .auth-brand .ws-estimate-note { color: var(--muted-on-dark); }
.auth-brand .ws-estimate-value { color: var(--gain); }

.auth-proof { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--ink-line); border-radius: var(--radius); background: rgb(17 26 46 / 0.8); }
.auth-proof-label { color: #ffc9c3; font-weight: 600; font-size: 0.875rem; }
.auth-proof-value { color: var(--loss); font: 800 2.5rem/1 var(--font-display); letter-spacing: -0.03em; }
.auth-proof ul { display: grid; gap: 6px; margin-top: 8px; }
.auth-proof li { position: relative; padding: 8px 12px 8px 30px; border-radius: var(--radius-sm); background: rgb(255 255 255 / 0.05); font-weight: 600; font-size: 0.9375rem; }
.auth-proof li::before { content: ""; position: absolute; inset-inline-start: 11px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; }
.auth-proof .p-block::before { background: var(--loss); }
.auth-proof .p-scale::before { background: var(--gain); }
.auth-proof .p-bing::before { background: var(--bing); }
.auth-brand .aside-tools li { border-color: var(--ink-line); background: rgb(255 255 255 / 0.04); }
.auth-brand .aside-tools strong { color: #fff; }
.auth-brand .aside-tools span { color: var(--muted-on-dark); }
.auth-brand-foot { color: #7f8aa3; font-size: 0.8125rem; }

.auth-panel { display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: clamp(1.75rem, 1.4vw + 1.1rem, 2.25rem); font-weight: 800; letter-spacing: -0.03em; }
.auth-form .auth-sub { margin: 8px 0 28px; }
.auth-secure { display: flex; gap: 8px; margin-top: 18px; color: var(--text-muted); font-size: 0.875rem; }
.auth-secure::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.auth-form .auth-hint { margin-top: 8px; }
.auth-form .auth-switch { margin-top: 24px; }
.auth-form .auth-legal { margin-top: 16px; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  /* Phones: the sign-in panel first, brand + proof after */
  .auth-panel { order: -1; padding: 28px 20px 36px; place-items: start center; }
  .auth-brand { gap: 24px; padding: 28px 20px; }
  .auth-brand-top { order: -1; }
  .auth-body .auth-main { display: flex; flex-direction: column; }
}
.auth-mobile-top { display: none; }
@media (max-width: 900px) {
  .auth-mobile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 400px; margin: 0 auto 28px; }
  .auth-back-dark { color: var(--text-muted); }
  .auth-back-dark:hover { color: var(--text); }
  .auth-brand .auth-brand-top { display: none; }
  .auth-panel { place-items: start center; }
  .auth-panel > * { justify-self: center; }
}

/* Inline "Log in" / "Start free" switch links: a full tap target even when the word is
   two characters long (Chinese 登录). */
.auth-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.auth-lp-points { margin: -8px 0 22px; }
