body.account-route {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.account-route [hidden] { display: none !important; }

.route-main {
  width: 100%;
  flex: 1;
  padding-top: clamp(24px, 4vh, 44px);
  padding-bottom: clamp(54px, 8vh, 88px);
}

.route-page { max-width: 720px; margin: 0 auto; }
.subscribe-page { max-width: 860px; }

.route-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.route-back:hover { color: var(--ink); }

.route-heading h1 {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.route-heading p {
  max-width: 38rem;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.route-card {
  margin-top: 24px;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--raised) 94%, transparent);
  box-shadow: 0 24px 70px -52px rgba(16, 26, 44, 0.72);
}

.route-card h2 {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.route-card > p,
.route-state > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.route-message {
  min-height: 1.45em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.route-message:empty { display: none; }
.route-message.error { color: #b84949; }
.route-message.success { color: #327454; }

.route-form { margin-top: 22px; }

.route-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13.5px;
}

.route-form-row { display: flex; align-items: stretch; gap: 10px; }

.route-form input {
  min-width: 0;
  flex: 1;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.route-form input:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 18%, transparent); }

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 9px;
  padding: 10px 17px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.primary-action {
  border: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--accent) 75%, transparent);
}

.secondary-action {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.primary-action:disabled,
.secondary-action:disabled { opacity: 0.52; cursor: wait; }

.text-action {
  appearance: none;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.account-facts { margin-top: 4px; border-top: 1px solid var(--line); }

.account-facts div {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.account-facts dt { color: var(--muted); }
.account-facts dd { text-align: right; font-weight: 500; }

.route-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.route-actions .signout-action { margin-left: auto; }

.account-plans {
  margin-top: 28px;
  scroll-margin-top: 92px;
}
.account-plans-heading h2 {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: clamp(27px, 4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.account-plans-heading p {
  max-width: 38rem;
  margin-top: 9px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.account-plan-actions { justify-content: flex-end; margin-top: 18px; }

.loading-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: account-pulse 1.2s ease-in-out infinite;
}

@keyframes account-pulse { 50% { opacity: 0.28; transform: scale(0.8); } }

.route-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 32px clamp(20px, 5vw, 40px) 38px;
  color: var(--faint);
  font-size: 13px;
}

.route-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: clamp(22px, 5vw, 52px);
}

.route-footer .footer-brand { display: flex; align-items: flex-start; gap: 9px; }
.route-footer .footer-name { color: var(--ink); font-size: 14px; font-weight: 600; }
.route-footer .footer-tag { margin-top: 2px; }
.route-footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.route-footer .footer-links a { color: var(--muted); }
.route-footer .footer-links a:hover { color: var(--ink); }
.route-footer .footer-place { white-space: nowrap; }
.route-footer .footer-legal {
  max-width: 980px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.subscribe-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.subscribe-plan {
  position: relative;
  display: block;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--raised) 90%, transparent);
  cursor: pointer;
  transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}

.subscribe-plan:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.subscribe-plan.selected { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }

.subscribe-plan input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.subscribe-plan-name { color: var(--muted); font-size: 14px; font-weight: 600; }
.subscribe-plan-price { margin-top: 7px; font-family: "Schibsted Grotesk", system-ui, sans-serif; font-size: 38px; font-weight: 700; letter-spacing: -0.035em; }
.subscribe-plan-price span { color: var(--faint); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.subscribe-plan ul { margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.75; }
.subscribe-plan li::before { content: "—"; margin-right: 8px; color: var(--faint); }

.subscribe-gate { margin-top: 18px; }
.signed-in-as { color: var(--muted); font-size: 14px; }
.signed-in-as strong { color: var(--ink); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .loading-dot { animation: none; }
  .subscribe-plan { transition: none; }
}

@media (max-width: 620px) {
  .route-main { padding-top: 30px; }
  .route-card { border-radius: 14px; }
  .route-form-row { flex-direction: column; }
  .route-form-row .primary-action { width: 100%; }
  .route-actions { align-items: stretch; }
  .route-actions > * { width: 100%; }
  .route-actions .signout-action { margin-left: 0; }
  .account-plan-actions > * { width: 100%; }
  .subscribe-plans { grid-template-columns: 1fr; }
  .subscribe-plan {
    min-height: 0;
    padding: 17px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 14px;
  }
  .subscribe-plan-price { margin: 0; font-size: 31px; }
  .subscribe-plan ul { grid-column: 1 / -1; margin-top: 5px; }
  .subscribe-plan li:not(:first-child) { display: none; }
  .route-footer-inner { grid-template-columns: 1fr; }
  .route-footer .footer-place { display: none; }
}
