@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

html,
body,
.app-shell,
.card,
.btn,
input,
select,
textarea,
.mobile-nav {
  transition: background-color 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, color 180ms ease, opacity 180ms ease;
}

/* Mobile onboarding parity */
body.onboarding-open {
  overflow: hidden;
}

.onboarding-web-modal {
  --onboarding-modal-height: min(
    760px,
    calc(100dvh - var(--modal-top-offset) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 36px)
  );
  z-index: 2080;
}

.onboarding-web-modal .receipt-modal-backdrop {
  background: rgba(3, 12, 24, 0.78);
  backdrop-filter: blur(10px);
}

.receipt-modal-card.onboarding-web-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.38);
  display: block;
  flex: 0 1 760px;
  left: auto;
  margin: 0;
  max-height: var(--onboarding-modal-height);
  overflow: hidden;
  padding: 0;
  position: relative;
  top: auto;
  transform: none;
  width: min(760px, calc(100vw - 32px));
}

.onboarding-web-scroll {
  display: grid;
  gap: 14px;
  max-height: var(--onboarding-modal-height);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  scrollbar-gutter: stable;
}

.onboarding-web-brand {
  align-items: center;
  display: flex;
  gap: 10px;
}

.onboarding-web-card .onboarding-web-brand img {
  background: transparent;
  border: 0;
  border-radius: 11px;
  height: 42px;
  max-height: 42px;
  object-fit: cover;
  transform: none;
  width: 42px;
}

.onboarding-web-brand strong {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 900;
}

.onboarding-web-icon {
  display: block;
  height: 22px;
  width: 22px;
}

.onboarding-web-welcome,
.onboarding-web-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.onboarding-web-welcome h2,
.onboarding-web-heading h2 {
  color: var(--text);
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

.onboarding-web-welcome > p,
.onboarding-web-heading p,
.onboarding-web-howto p,
.onboarding-web-developer-note p,
.onboarding-web-detail p,
.onboarding-web-trial p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.onboarding-web-howto {
  align-items: flex-start;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  gap: 14px;
  padding: 16px;
}

.onboarding-web-tax-alert {
  align-items: flex-start;
  background: color-mix(in srgb, #f59e0b 9%, var(--surface));
  border: 2px solid #f59e0b;
  border-radius: 16px;
  display: flex;
  gap: 14px;
  padding: 16px;
}

.onboarding-web-tax-alert > span {
  align-items: center;
  background: #f59e0b;
  border-radius: 14px;
  color: #3f2600;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.onboarding-web-tax-alert > div {
  display: grid;
  flex: 1;
  gap: 7px;
}

.onboarding-web-tax-alert small {
  color: #a14f00;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.onboarding-web-tax-alert strong {
  color: var(--text);
}

.onboarding-web-tax-alert p,
.onboarding-web-tax-alert em {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0;
}

.onboarding-web-tax-alert em {
  font-size: 0.75rem;
}

.onboarding-web-tax-links {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.onboarding-web-tax-link {
  align-items: center;
  border: 2px solid var(--brand);
  border-radius: 999px;
  display: flex;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 9px 12px;
  text-align: center;
  text-decoration: none;
}

.onboarding-web-tax-link span {
  flex: 0 0 20px;
}

.onboarding-web-tax-link .onboarding-web-icon {
  height: 20px;
  width: 20px;
}

.onboarding-web-tax-link.primary {
  background: var(--brand);
  color: #ffffff;
}

.onboarding-web-tax-link.secondary {
  background: var(--surface);
  color: var(--brand);
}

.onboarding-web-tax-alert .onboarding-web-tax-deadline {
  background: #fee2e2;
  border: 2px solid #ef4444;
  border-radius: 12px;
  color: #991b1b;
  font-weight: 700;
  padding: 10px 12px;
}

.onboarding-web-tax-alert .onboarding-web-tax-deadline strong {
  color: #b91c1c;
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
}

.onboarding-web-tax-coming-soon {
  background: #078b68;
  border: 1px solid #34d399;
  border-radius: 12px;
  box-shadow:
    0 10px 24px rgba(5, 150, 105, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(4, 120, 87, 0.45);
  display: grid;
  gap: 4px;
  isolation: isolate;
  overflow: hidden;
  padding: 10px 12px;
  position: relative;
}

.onboarding-web-tax-coming-soon::after {
  animation: onboardingComingSoonShine 3.4s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  content: "";
  height: 250%;
  left: -40%;
  pointer-events: none;
  position: absolute;
  top: -75%;
  transform: rotate(18deg);
  width: 18%;
  z-index: 0;
}

.onboarding-web-tax-coming-soon > * {
  position: relative;
  z-index: 1;
}

.onboarding-web-tax-coming-soon > span {
  color: #a7f3d0;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.onboarding-web-tax-coming-soon > strong {
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1.35;
}

.onboarding-web-tax-coming-soon > p {
  color: #d1fae5;
  font-size: 0.76rem;
  line-height: 1.45;
  margin: 0;
}

@keyframes onboardingComingSoonShine {
  0%, 58% { left: -40%; opacity: 0; }
  65% { opacity: 1; }
  88%, 100% { left: 125%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-web-tax-coming-soon::after {
    animation: none;
    display: none;
  }
}

.onboarding-web-tax-confirm {
  align-items: flex-start;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 10px;
  line-height: 1.45;
  padding: 11px 12px;
}

.onboarding-web-tax-confirm:has(input:checked) {
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border-color: var(--brand);
}

.onboarding-web-tax-confirm input {
  accent-color: var(--brand);
  flex: 0 0 auto;
  height: 21px;
  margin: 0;
  width: 21px;
}

@media (max-width: 560px) {
  .onboarding-web-tax-alert {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .onboarding-web-tax-alert > span {
    align-self: flex-start;
  }

  .onboarding-web-tax-alert > div {
    min-width: 0;
    width: 100%;
  }

  .onboarding-web-tax-links {
    grid-template-columns: 1fr;
  }
}

.onboarding-web-howto > span,
.onboarding-web-detail-icon,
.onboarding-web-developer-note > span {
  align-items: center;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border-radius: 14px;
  color: var(--brand);
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
}

.onboarding-web-howto div,
.onboarding-web-developer-note div,
.onboarding-web-detail > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.onboarding-web-tour {
  display: grid;
  gap: 10px;
}

.onboarding-web-tour > span,
.onboarding-web-heading small,
.onboarding-web-detail small {
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.onboarding-web-journey {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.onboarding-web-journey-step {
  align-items: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
}

.onboarding-web-journey-step span {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--brand);
  display: inline-flex;
  font-size: 1rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.onboarding-web-journey-step .onboarding-web-icon {
  height: 19px;
  width: 19px;
}

.onboarding-web-journey-step small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.onboarding-web-saved,
.onboarding-web-required {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  gap: 8px;
  line-height: 1.45;
  margin: 0;
}

.onboarding-web-saved span,
.onboarding-web-required span {
  color: #16a34a;
  font-weight: 900;
}

.onboarding-web-saved .onboarding-web-icon,
.onboarding-web-required .onboarding-web-icon {
  height: 16px;
  width: 16px;
}

.onboarding-web-progress {
  align-items: center;
  display: grid;
  gap: 7px;
}

.onboarding-web-progress > span {
  background: var(--border);
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
}

.onboarding-web-progress i {
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 260ms ease;
}

.onboarding-web-progress small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-align: right;
}

.onboarding-web-heading {
  align-items: flex-start;
  display: flex;
  gap: 16px;
}

.onboarding-web-heading > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.onboarding-web-page-icon {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 17px;
  color: var(--brand);
  display: inline-flex;
  flex: 0 0 58px;
  font-size: 1.5rem;
  height: 58px;
  justify-content: center;
}

.onboarding-web-page-icon .onboarding-web-icon {
  height: 29px;
  width: 29px;
}

.onboarding-web-developer-note {
  align-items: flex-start;
  background: linear-gradient(135deg, color-mix(in srgb, #ef4444 8%, var(--surface)), color-mix(in srgb, #3b82f6 8%, var(--surface)));
  border: 2px solid transparent;
  border-radius: 17px;
  display: flex;
  gap: 13px;
  padding: 15px;
  position: relative;
}

.onboarding-web-developer-note::before {
  background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #8b5cf6);
  border-radius: inherit;
  content: "";
  inset: -2px;
  opacity: 0.75;
  position: absolute;
  z-index: -1;
}

.onboarding-web-developer-note > span {
  color: #dc2626;
}

.onboarding-web-explore {
  align-items: center;
  display: flex;
  font-size: 0.78rem;
  gap: 10px;
  justify-content: space-between;
}

.onboarding-web-explore.incomplete {
  color: var(--danger);
}

.onboarding-web-explore.complete {
  color: #16a34a;
}

.onboarding-web-explore > span {
  display: inline-flex;
}

.onboarding-web-explore .onboarding-web-icon {
  height: 20px;
  width: 20px;
}

.onboarding-web-feature-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.onboarding-web-feature {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  min-height: 60px;
  padding: 11px 40px 11px 12px;
  position: relative;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  width: 100%;
}

.onboarding-web-feature:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  transform: translateY(-1px);
}

.onboarding-web-feature.selected {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.onboarding-web-feature-icon {
  align-items: center;
  color: #0f766e;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 1.2rem;
  font-weight: 900;
  justify-content: center;
}

.onboarding-web-feature-icon .onboarding-web-icon {
  height: 24px;
  width: 24px;
}

.onboarding-web-feature.selected .onboarding-web-feature-icon {
  color: #fff;
}

.onboarding-web-feature strong {
  font-size: 0.82rem;
  line-height: 1.25;
}

.onboarding-web-check {
  align-items: center;
  background: #16a34a;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: 9px;
  top: 9px;
  width: 22px;
}

.onboarding-web-check .onboarding-web-icon {
  height: 14px;
  stroke-width: 2.6;
  width: 14px;
}

.onboarding-web-detail {
  align-items: flex-start;
  background: var(--surface-soft);
  border: 2px solid var(--border);
  border-radius: 16px;
  display: flex;
  gap: 14px;
  min-height: 94px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.onboarding-web-detail.selected {
  background: color-mix(in srgb, #2563eb 8%, var(--surface));
  border-color: #2563eb;
}

.onboarding-web-detail.selected::before {
  background: #2563eb;
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 5px;
}

.onboarding-web-detail strong {
  color: var(--text);
}

.onboarding-web-notification-btn {
  justify-self: start;
  margin-top: 6px;
}

.onboarding-web-trial {
  background: color-mix(in srgb, #0f766e 8%, var(--surface));
  border: 1px solid #0f766e;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.onboarding-web-trial > div {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 10px;
}

.onboarding-web-trial > div span {
  color: #0f766e;
  font-size: 1.3rem;
}

.onboarding-web-trial .onboarding-web-icon {
  height: 23px;
  width: 23px;
}

.onboarding-web-weather {
  background: color-mix(in srgb, #2563eb 7%, var(--surface));
  border: 1px solid color-mix(in srgb, #2563eb 55%, var(--border));
  border-radius: 16px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.onboarding-web-weather-heading {
  align-items: flex-start;
  display: flex;
  gap: 11px;
}

.onboarding-web-weather-heading > span {
  align-items: center;
  background: color-mix(in srgb, #2563eb 12%, var(--surface));
  border-radius: 12px;
  color: #2563eb;
  display: flex;
  flex: 0 0 40px;
  font-size: 1.15rem;
  height: 40px;
  justify-content: center;
}

.onboarding-web-weather-heading .onboarding-web-icon {
  height: 22px;
  width: 22px;
}

.onboarding-web-weather-heading div {
  display: grid;
  gap: 3px;
}

.onboarding-web-weather-heading p,
.onboarding-web-weather-status {
  color: var(--muted);
  margin: 0;
}

.onboarding-web-weather-form {
  display: grid;
  gap: 7px;
}

.onboarding-web-weather-form > div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.onboarding-web-weather-form input {
  min-width: 0;
}

.onboarding-web-weather-status.error {
  color: var(--danger);
}

.onboarding-web-weather-status.success {
  color: #15803d;
}

@media (max-width: 560px) {
  .onboarding-web-weather-form > div {
    grid-template-columns: 1fr;
  }
}

.onboarding-web-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.onboarding-web-actions.single .btn {
  width: 100%;
}

.onboarding-web-actions.final {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
}

.onboarding-web-actions .btn {
  min-height: 44px;
}

.onboarding-web-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.onboarding-web-signout {
  background: transparent;
  border: 0;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  justify-self: center;
  padding: 5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.onboarding-web-status {
  border: 1px solid #86efac;
  border-radius: 12px;
  color: #166534;
  font-size: 0.8rem;
  margin: 0;
  padding: 10px 12px;
}

.onboarding-web-status.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.onboarding-web-status.success {
  background: #f0fdf4;
}

.onboarding-web-modal.is-busy .onboarding-web-card {
  cursor: progress;
}

@media (max-width: 620px) {
  .onboarding-web-modal {
    --onboarding-modal-height: calc(100dvh - var(--modal-top-offset) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px);
    padding:
      calc(10px + env(safe-area-inset-top, 0px) + var(--modal-top-offset))
      9px
      calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .onboarding-web-card,
  .onboarding-web-scroll {
    max-height: var(--onboarding-modal-height);
  }

  .receipt-modal-card.onboarding-web-card {
    border-radius: 20px;
    width: calc(100vw - 18px);
  }

  .onboarding-web-scroll {
    gap: 12px;
    padding: 13px;
  }

  .onboarding-web-welcome,
  .onboarding-web-step {
    gap: 13px;
    padding: 14px;
  }

  .onboarding-web-feature-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-web-actions,
  .onboarding-web-actions.final {
    display: grid;
    grid-template-columns: 1fr;
  }

  .onboarding-web-actions .btn {
    width: 100%;
  }

  .onboarding-web-heading {
    gap: 12px;
  }

  .onboarding-web-page-icon {
    flex-basis: 50px;
    height: 50px;
  }

  .onboarding-web-journey-step span {
    height: 36px;
    width: 36px;
  }
}

@media (max-height: 720px) {
  .onboarding-web-scroll {
    gap: 10px;
    padding-block: 12px;
  }

  .onboarding-web-card .onboarding-web-brand img {
    border-radius: 9px;
    height: 34px;
    max-height: 34px;
    width: 34px;
  }

  .onboarding-web-brand strong {
    font-size: 1.05rem;
  }

  .onboarding-web-welcome,
  .onboarding-web-step {
    gap: 11px;
    padding: 13px;
  }

  .onboarding-web-page-icon {
    border-radius: 14px;
    flex-basis: 48px;
    height: 48px;
  }

  .onboarding-web-progress {
    gap: 4px;
  }

  .onboarding-web-progress > span {
    height: 6px;
  }

  .onboarding-web-feature {
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-web-feature,
  .onboarding-web-progress i {
    transition: none;
  }
}

/* OTA 10–15 web parity */
.true-profit-card { display: grid; gap: 16px; }
#true-profit-content { display: grid; gap: 14px; }
.true-profit-hero { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px; border: 1px solid var(--border); border-left: 5px solid var(--danger); border-radius: 16px; background: var(--surface-soft); }
.true-profit-hero[data-status="on-target"] { border-left-color: #16a34a; }
.true-profit-hero[data-status="close"] { border-left-color: #f59e0b; }
.true-profit-hero > div { display: grid; gap: 4px; }
.true-profit-eyebrow { color: var(--muted); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.08em; }
#true-profit-take-home { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.true-profit-summary { grid-column: 1 / -1; margin: 0; }
.true-profit-status { align-self: start; padding: 5px 9px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.62rem; font-weight: 850; letter-spacing: 0.05em; }
.true-profit-status[data-status="on-target"] { background: #16a34a; }
.true-profit-status[data-status="close"] { background: #f59e0b; color: #332000; }
.home-progress-line { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; color: var(--text); display: flex; gap: 14px; margin-top: 14px; min-height: 92px; padding: 14px; text-decoration: none; width: 100%; }
.home-progress-line:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); text-decoration: none; }
.home-progress-line.rider-pulse-active { background: #173f8a; border-color: #2563eb; color: #fff; }
.home-progress-line.rider-pulse-active:hover { border-color: #60a5fa; }
.home-progress-line.rider-pulse-active .home-progress-icon { background: rgba(255,255,255,.14); color: #fff; }
.home-progress-line.rider-pulse-active .home-progress-label { color: #dbeafe; }
.home-progress-line.rider-pulse-active .home-progress-value { color: #fff; }
.home-progress-line.rider-pulse-active .home-progress-detail,
.home-progress-line.rider-pulse-active .home-progress-chevron { color: #bfdbfe; }
.home-progress-line.rider-pulse-active .home-progress-dot { background: rgba(255,255,255,.28); }
.home-progress-line.rider-pulse-active .home-progress-dot.active { background: #fff; }
.home-progress-line.streak-risk { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.home-progress-line.streak-risk .home-progress-icon { background: #ffedd5; color: #ea580c; }
.home-progress-line.streak-risk .home-progress-label,
.home-progress-line.streak-risk .home-progress-detail,
.home-progress-line.streak-risk .home-progress-chevron { color: #c2410c; }
.home-progress-line.streak-risk .home-progress-dot.active { background: #ea580c; }
.home-progress-line.streak-risk-warning { background: #fff1f2; border-color: #fb7185; color: #9f1239; }
.home-progress-line.streak-risk-warning .home-progress-icon { background: #ffe4e6; color: #e11d48; }
.home-progress-line.streak-risk-warning .home-progress-label,
.home-progress-line.streak-risk-warning .home-progress-detail,
.home-progress-line.streak-risk-warning .home-progress-chevron { color: #be123c; }
.home-progress-line.streak-risk-critical { animation: streakRiskPulse 1.7s ease-in-out infinite; background: #7f1d1d; border-color: #ef4444; color: #fff; }
.home-progress-line.streak-risk-critical .home-progress-icon { background: rgba(255,255,255,.14); color: #fff; }
.home-progress-line.streak-risk-critical .home-progress-label,
.home-progress-line.streak-risk-critical .home-progress-detail,
.home-progress-line.streak-risk-critical .home-progress-chevron { color: #fecaca; }
.home-progress-line.streak-risk-critical .home-progress-dot { background: rgba(255,255,255,.28); }
.home-progress-line.streak-risk-critical .home-progress-dot.active { background: #fff; }
@keyframes streakRiskPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: 0 0 0 4px rgba(239,68,68,.2); }
}
.home-progress-icon { align-items: center; background: var(--surface-soft); border-radius: 20px; color: var(--brand); display: inline-flex; flex: 0 0 40px; font-size: 1.15rem; font-weight: 800; height: 40px; justify-content: center; }
.home-progress-copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.home-progress-top-row { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.home-progress-label { color: var(--muted); flex: 1; font-size: .52rem; font-weight: 800; letter-spacing: .09em; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.home-progress-meta { align-items: center; display: inline-flex; gap: 9px; }
.home-progress-live { align-items: center; background: #173f8a; border-radius: 999px; color: #fff; display: inline-flex; font-size: .48rem; font-weight: 900; gap: 5px; letter-spacing: .08em; min-height: 22px; padding: 0 7px; }
.home-progress-live i { animation: riderPulseDot 1.2s ease-out infinite; background: #86efac; border-radius: 50%; height: 7px; width: 7px; }
.home-progress-percent { color: var(--brand); font-size: .66rem; font-weight: 800; }
.home-progress-dots { align-items: center; display: inline-flex; gap: 3px; }
.home-progress-dot { background: var(--border); border-radius: 50%; height: 5px; width: 5px; }
.home-progress-dot.active { background: var(--brand); }
.home-progress-value { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-progress-track { background: var(--surface-soft); border-radius: 999px; display: block; height: 5px; margin: 2px 0; overflow: hidden; }
.home-progress-fill { background: var(--brand); border-radius: inherit; display: block; height: 100%; transition: width 300ms ease; width: 0; }
.home-progress-fill.complete { background: #16a34a; }
.home-progress-detail { color: var(--muted); font-size: .58rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-progress-chevron { color: var(--muted); flex: 0 0 auto; font-size: 1.4rem; line-height: 1; }
.home-weather-warnings-card { width: min(560px, calc(100vw - 28px)); max-height: 82vh; overflow-y: auto; }
.home-weather-warnings-list { display: grid; gap: 10px; }
.home-weather-warning-item { display: grid; gap: 5px; padding: 14px; border: 1px solid var(--border); border-left: 5px solid #eab308; border-radius: 12px; background: var(--surface-soft); color: var(--text); text-decoration: none; }
.home-weather-warning-item.severity-amber { border-left-color: #f59e0b; }
.home-weather-warning-item.severity-red { border-left-color: #dc2626; }
.home-weather-warning-item.forecast-warning { border-left-color: #2563eb; }
.home-weather-warning-item span { color: var(--muted); font-size: .62rem; font-weight: 900; letter-spacing: .08em; }
.home-weather-warning-item small { color: var(--muted); }
.true-profit-breakdown { display: grid; }
.true-profit-breakdown > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.true-profit-breakdown span { color: var(--muted); }
.true-profit-breakdown strong { color: var(--danger); }
.true-profit-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.true-profit-metrics article { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.true-profit-metrics span { color: var(--muted); font-size: 0.72rem; }
.true-profit-platforms { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.true-profit-platforms > div { display: flex; justify-content: space-between; gap: 14px; }
.true-profit-platforms span, .true-profit-platforms small { color: var(--muted); }
.true-profit-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.true-profit-form label { display: grid; gap: 6px; color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.shift-timer-heading-row { align-items: center; display: flex; flex-wrap: nowrap; gap: 10px; justify-content: space-between; }
.shift-timer-heading-row .section-title { flex: 0 0 auto; margin: 0; }
.shift-timer-heading-row .rider-pulse-info-pill { width: auto; }
.rider-pulse-info-pill { align-items: center; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; color: #1d4ed8; cursor: pointer; display: inline-flex; font: inherit; font-size: .66rem; font-weight: 800; gap: 5px; min-height: 32px; padding: 6px 10px; }
.rider-pulse-info-pill:hover { background: #dbeafe; border-color: #60a5fa; }
.rider-pulse-info-pill svg { fill: none; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 16px; }
.rider-pulse-timer-btn { align-items: center; background: #173f8a; border: 1px solid #3b82f6; border-radius: 999px; box-shadow: 0 8px 20px rgba(23,63,138,.18); color: #fff; cursor: pointer; display: inline-flex; font: inherit; font-size: .78rem; font-weight: 800; gap: 7px; justify-content: center; min-height: 42px; padding: 8px 14px; width: 100%; }
.rider-pulse-timer-btn:hover { background: #1e4d9c; border-color: #60a5fa; }
.rider-pulse-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 0 0 rgba(96,165,250,.55); animation: riderPulseDot 1.2s ease-out infinite; }
.rider-pulse-radio-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#rider-pulse-modal .receipt-modal-backdrop { background: rgba(4,18,28,.72); }
.rider-pulse-modal-card { display: block; width: min(420px, calc(100vw - 36px)); max-height: calc(100dvh - 40px); padding: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 24px 70px rgba(2,6,23,.36); }
.rider-pulse-scroll { align-content: start; display: grid; gap: 10px; grid-auto-rows: max-content; max-height: calc(100dvh - 40px); padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.rider-pulse-logo { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: #eff6ff; color: #2563eb; font-size: 1.3rem; }
.rider-pulse-logo svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.rider-pulse-logo i { position: absolute; right: 0; top: 1px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 0 rgba(59,130,246,.6); animation: riderPulseDot 1.2s ease-out infinite; }
.rider-pulse-heading { display: grid; gap: 3px; text-align: center; }
.rider-pulse-heading > span { color: #2563eb; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.rider-pulse-heading h3, .rider-pulse-heading p { margin: 0; }
.rider-pulse-heading p { color: var(--muted); font-size: .74rem; line-height: 1.4; }
.rider-pulse-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.rider-pulse-options button { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-soft); color: var(--text); font: inherit; font-size: .74rem; font-weight: 750; text-align: left; cursor: pointer; }
.rider-pulse-options button i { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; }
#rider-pulse-message:empty { display: none; }
#rider-pulse-skip-btn { min-height: 42px; }
.rider-pulse-privacy { text-align: center; font-size: .64rem; line-height: 1.35; }
.rider-pulse-info-modal-card { display: grid; gap: 13px; max-height: 88dvh; overflow-y: auto; padding: 22px; width: min(430px,calc(100vw - 36px)); }
.rider-pulse-info-icon { background: var(--surface-soft); border-radius: 50%; color: var(--brand); display: grid; height: 56px; margin: 0 auto; place-items: center; width: 56px; }
.rider-pulse-info-icon svg { fill: none; height: 29px; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; width: 29px; }
.rider-pulse-info-list { display: grid; gap: 12px; }
.rider-pulse-info-list article { border-left: 3px solid #2563eb; display: grid; gap: 3px; padding-left: 11px; }
.rider-pulse-info-list strong { color: var(--text); font-size: .78rem; }
.rider-pulse-info-list p { color: var(--muted); font-size: .7rem; line-height: 1.45; margin: 0; }
.rider-pulse-info-note { background: var(--surface-soft); border-radius: 10px; color: var(--muted); font-size: .65rem; line-height: 1.45; padding: 9px; text-align: center; }
@keyframes riderPulseDot { 70%,100% { box-shadow: 0 0 0 9px rgba(59,130,246,0); } }

@media (max-width: 700px) {
  .true-profit-metrics, .true-profit-form { grid-template-columns: 1fr; }
}

html.theme-switching body {
  opacity: 0.96;
}

@media (prefers-reduced-motion: reduce) {
  html,
  body,
  .app-shell,
  .card,
  .btn,
  input,
  select,
  textarea,
  .mobile-nav {
    transition: none;
  }
}

:root {
  --bg-top: #f5f5f2;
  --bg: #f5f5f2;
  --surface: #ffffff;
  --surface-soft: #eeeeeb;
  --text: #000000;
  --muted: #626262;
  --brand: #000000;
  --brand-2: #000000;
  --border: #e4e4e0;
  --chip-bg: #eeeeeb;
  --chip-border: #e4e4e0;
  --chip-text: #242424;
  --nav-bg: rgba(0, 0, 0, 0.96);
  --nav-text: #afafaf;
  --nav-hover: rgba(255, 255, 255, 0.08);
  --nav-active-bg: rgba(255, 255, 255, 0.14);
  --nav-active-border: rgba(255, 255, 255, 0.18);
  --danger: #e11900;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

[hidden] {
  display: none !important;
}

:root[data-theme="dark"] {
  --bg-top: #000000;
  --bg: #000000;
  --surface: #171717;
  --surface-soft: #242424;
  --text: #ffffff;
  --muted: #afafaf;
  --brand: #276ef1;
  --brand-2: #5b91f5;
  --border: #333333;
  --chip-bg: #242424;
  --chip-border: #333333;
  --chip-text: #ffffff;
  --nav-bg: rgba(0, 0, 0, 0.98);
  --nav-text: #afafaf;
  --nav-hover: rgba(255, 255, 255, 0.08);
  --nav-active-bg: rgba(255, 255, 255, 0.14);
  --nav-active-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
  color: var(--text);
}

input,
button,
select,
textarea {
  font: inherit;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a.btn:hover,
a.btn.btn-outline:hover {
  text-decoration: none;
}

.container {
  width: min(1040px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(640px, 92%);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1200;
  transition: top 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.has-offline-banner .site-header {
  top: var(--offline-banner-offset, 56px);
}

body.has-online-sync-banner .site-header {
  top: var(--online-sync-banner-offset, 56px);
}

body.has-system-notice-banner .site-header {
  top: var(--system-notice-offset, 56px);
}

body.has-offline-banner.has-system-notice-banner .site-header,
body.has-online-sync-banner.has-system-notice-banner .site-header {
  top: calc(var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  margin: 0;
  font-size: 1.35rem;
}

.section {
  padding: 28px 0;
}

.hero {
  padding: 56px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: start;
}

.kicker {
  color: var(--brand-2);
  font-weight: 600;
  margin: 0 0 8px;
}

.hero h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 14px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.disclaimer {
  color: var(--muted);
  margin-top: 14px;
  font-size: 0.92rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card p {
  margin: 6px 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.admin-ota-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.admin-ota-platform {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-soft) 38%, var(--surface));
}

.admin-ota-platform legend {
  padding: 0 8px;
  font-weight: 800;
}

.admin-ota-fields {
  display: grid;
  gap: 14px;
}

.admin-ota-fields > label {
  display: grid;
  gap: 7px;
}

.admin-ota-fields input[type="text"],
.admin-ota-fields textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.admin-ota-fields textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

.admin-ota-fields input::placeholder,
.admin-ota-fields textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.admin-ota-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-ota-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  line-height: 1.25;
}

.admin-ota-toggle input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
}

.admin-ota-toggle span {
  min-width: 0;
}

.admin-ota-submit {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (max-width: 800px) {
  .admin-ota-form {
    grid-template-columns: 1fr;
  }

  .admin-ota-submit {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .admin-ota-toggles {
    grid-template-columns: 1fr;
  }
}

/* Public landing audience selector */
.audience-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
  padding: 4px;
  border: 1px solid #d9e1e8;
  border-radius: 999px;
  background: #f1f4f7;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.audience-switcher__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 15px;
  border-radius: 999px;
  color: #475467;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.audience-switcher__option:hover {
  color: #0f766e;
  text-decoration: none;
}

.audience-switcher__option.is-active {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.audience-switcher__option:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.35);
  outline-offset: 2px;
}

/* Taxi and private-hire landing page */
.taxi-landing-page {
  color: #172033;
  background: #ffffff;
}

.taxi-landing-page .landing-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: #e8e3d8;
}

.taxi-landing-page .audience-switcher__option.is-active {
  color: #111827;
  box-shadow: 0 2px 8px rgba(180, 116, 0, 0.14);
}

.taxi-main h1,
.taxi-main h2,
.taxi-main h3,
.taxi-main p {
  margin-top: 0;
}

.taxi-main h2 {
  margin-bottom: 18px;
  color: #111827;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.taxi-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 58px;
  background:
    radial-gradient(circle at 92% 8%, rgba(251, 191, 36, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
}

.taxi-hero::before {
  display: none;
}

.taxi-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.taxi-eyebrow,
.taxi-section-kicker {
  margin-bottom: 12px;
  color: #946200;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.taxi-hero h1 {
  margin-bottom: 18px;
  color: #101828;
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.taxi-hero h1 span {
  color: #9a6800;
}

.taxi-hero__lead {
  max-width: 63ch;
  margin-bottom: 28px;
  color: #475467;
  font-size: 1.03rem;
  line-height: 1.62;
}

.taxi-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 22px;
}

.taxi-landing-page .taxi-main .taxi-btn-primary {
  border-color: #0f766e;
  background: #0f766e;
  color: #ffffff;
  box-shadow: none;
}

.taxi-landing-page .taxi-main .taxi-btn-primary:hover {
  border-color: #0b625c;
  background: #0b625c;
  color: #ffffff;
}

.taxi-btn-secondary {
  border-color: #c8c2b6;
  background: rgba(255, 255, 255, 0.62);
  color: #344054;
}

.taxi-hero__reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 18px;
  color: #667085;
  font-size: 0.79rem;
  font-weight: 700;
}

.taxi-hero__reassurance span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.taxi-hero__reassurance b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ffffff;
  background: #17835f;
  font-size: 0.66rem;
}

.taxi-dashboard {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(155deg, #101828 0%, #1c263a 100%);
  box-shadow: 0 32px 70px rgba(16, 24, 40, 0.24);
  transform: none;
}

.taxi-dashboard__top,
.taxi-dashboard__earnings,
.taxi-dashboard__stats,
.taxi-dashboard__reminder {
  transform: none;
}

.taxi-dashboard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.taxi-dashboard__top div {
  display: grid;
  gap: 4px;
}

.taxi-dashboard__top strong {
  font-size: 1.08rem;
}

.taxi-dashboard__label {
  color: #98a2b3;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.taxi-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.09);
  font-size: 0.67rem;
  font-weight: 800;
  white-space: nowrap;
}

.taxi-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

.taxi-dashboard__earnings {
  display: grid;
  gap: 4px;
  padding: 25px 2px 20px;
}

.taxi-dashboard__earnings > span,
.taxi-dashboard__stats span {
  color: #98a2b3;
  font-size: 0.73rem;
  font-weight: 700;
}

.taxi-dashboard__earnings strong {
  color: #f8c828;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  letter-spacing: -0.05em;
}

.taxi-dashboard__earnings small,
.taxi-dashboard__stats small {
  color: #7f8b9f;
  font-size: 0.67rem;
}

.taxi-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.taxi-dashboard__stats article {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.taxi-dashboard__stats strong {
  font-size: 1.03rem;
}

.taxi-dashboard__reminder {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(248, 200, 40, 0.18);
  border-radius: 14px;
  background: rgba(248, 200, 40, 0.08);
}

.taxi-dashboard__reminder > span { font-size: 1.25rem; }
.taxi-dashboard__reminder p { margin: 0; color: #c9d0dc; font-size: 0.72rem; line-height: 1.45; }
.taxi-dashboard__reminder strong { color: #ffffff; }

.taxi-trust-bar {
  padding: 16px 0;
  color: #f9fafb;
  background: #101828;
}

.taxi-trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.taxi-trust-bar span {
  color: #8d99ab;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.taxi-trust-bar strong { font-size: 0.82rem; }
.taxi-trust-bar i { width: 4px; height: 4px; border-radius: 50%; background: #dca500; }

.taxi-section {
  padding: 64px 0;
}

.taxi-problem-section,
.taxi-tools-section,
.taxi-faq-section {
  background: #ffffff;
}

.taxi-two-column,
.taxi-heading-row,
.taxi-records-grid,
.taxi-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 7vw, 96px);
}

.taxi-section-intro,
.taxi-heading-row > p,
.taxi-section-copy,
.taxi-faq-grid > div:first-child > p:last-child {
  color: #667085;
  font-size: 1rem;
  line-height: 1.72;
}

.taxi-section-intro p:last-child { margin-bottom: 0; }

.taxi-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.taxi-benefit-card {
  position: relative;
  min-height: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #e7e1d7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.taxi-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: #6e4b00;
  background: #ffedb5;
  font-size: 1.25rem;
  font-weight: 900;
}

.taxi-benefit-card h3,
.taxi-record-list h3,
.taxi-tools-grid h3,
.taxi-tax-grid h3 {
  margin-bottom: 9px;
  color: #172033;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.taxi-benefit-card p,
.taxi-record-list p,
.taxi-tools-grid p,
.taxi-tax-grid p {
  margin-bottom: 0;
  color: #667085;
  font-size: 0.87rem;
  line-height: 1.65;
}

.taxi-workflow-section { background: #f7f8fa; }
.taxi-heading-row { align-items: end; margin-bottom: 30px; }
.taxi-heading-row > p { margin-bottom: 18px; max-width: 46ch; }

.taxi-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 0;
}

.taxi-workflow article {
  display: flex;
  gap: 18px;
  min-height: 210px;
  padding: 24px;
  border: 1px solid #dfe4ea;
  border-radius: 18px;
  background: #ffffff;
}

.taxi-workflow article:last-child { border-right: 1px solid #dfe4ea; }
.taxi-workflow article > span { color: #c28b00; font-size: 0.75rem; font-weight: 900; }
.taxi-workflow__time { margin-bottom: 25px; color: #8b8171; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.taxi-workflow h3 { margin-bottom: 9px; color: #172033; font-size: 1.18rem; }
.taxi-workflow article div > p:last-child { margin-bottom: 0; color: #667085; font-size: 0.86rem; line-height: 1.65; }

.taxi-records-section { background: #ffffff; }
.taxi-records-grid { align-items: start; }
.taxi-records-grid > div:first-child { position: sticky; top: 120px; }
.taxi-text-link { display: inline-flex; gap: 9px; color: #8f6100; font-weight: 900; text-decoration: none; }
.taxi-record-list { display: grid; gap: 11px; }
.taxi-record-list article { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 17px; padding: 21px; border: 1px solid #e7e1d7; border-radius: 17px; background: #ffffff; }
.taxi-record-list article > span { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 14px; background: #f5f2eb; font-size: 1.35rem; }

.taxi-tax-section { color: #172033; background: #f7f5f0; border-block: 1px solid #e8e1d4; }
.taxi-tax-section h2, .taxi-heading-row--light h2 { color: #172033; }
.taxi-heading-row--light > p { color: #667085; }
.taxi-tax-section .taxi-section-kicker { color: #946200; }
.taxi-tax-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.taxi-tax-grid article { display: flex; flex-direction: column; min-height: 280px; padding: 24px; border: 1px solid #e3dccf; border-radius: 18px; background: #ffffff; }
.taxi-tax-grid h3 { color: #172033; font-size: 1.08rem; }
.taxi-tax-grid p { color: #667085; }
.taxi-tax-grid a { margin-top: auto; padding-top: 22px; color: #0f766e; font-size: 0.81rem; font-weight: 900; text-decoration: none; }
.taxi-tax-tag { width: fit-content; margin-bottom: 22px; padding: 5px 8px; border: 1px solid #ead7a8; border-radius: 999px; color: #8a5d00; background: #fff8e6; font-size: 0.61rem; font-weight: 900; letter-spacing: 0.08em; }
.taxi-coming-soon { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 22px; margin-top: 14px; padding: 18px 22px; border: 1px solid #99f6e4; border-radius: 17px; background: #f0fdfa; }
.taxi-coming-soon > span { color: #0f766e; font-size: 0.67rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.taxi-coming-soon p { margin: 0; color: #475467; font-size: 0.82rem; line-height: 1.6; }
.taxi-coming-soon strong { color: #172033; }

.taxi-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.taxi-tools-grid article { padding: 24px; border: 1px solid #e8e3da; border-radius: 17px; background: #fbfaf8; }
.taxi-tools-grid article > span { display: block; margin-bottom: 24px; font-size: 1.38rem; }

.taxi-pricing-section { padding: 40px 0; background: #e9e4d8; }
.taxi-pricing-card { display: grid; grid-template-columns: minmax(0, 1.5fr) auto auto; align-items: center; gap: 35px; padding: 38px 44px; border: 1px solid #d9cfbc; border-radius: 24px; background: #fffdf8; box-shadow: 0 16px 36px rgba(67, 53, 27, 0.08); }
.taxi-pricing-card h2 { margin-bottom: 9px; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.taxi-pricing-card p { margin-bottom: 0; color: #667085; line-height: 1.6; }
.taxi-price { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 8px; }
.taxi-price > span { grid-column: 1 / -1; color: #8b8171; font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
.taxi-price strong { color: #172033; font-size: 3rem; letter-spacing: -0.06em; line-height: 1; }
.taxi-price sup { font-size: 1.15rem; }
.taxi-price small { color: #667085; font-size: 0.65rem; line-height: 1.4; }

.taxi-faq-grid { align-items: start; }
.taxi-faq-list { display: grid; border-top: 1px solid #ddd8cf; }
.taxi-faq-list details { border-bottom: 1px solid #ddd8cf; }
.taxi-faq-list summary { position: relative; padding: 21px 38px 21px 0; color: #172033; cursor: pointer; font-weight: 800; list-style: none; }
.taxi-faq-list summary::-webkit-details-marker { display: none; }
.taxi-faq-list summary::after { position: absolute; right: 4px; content: "+"; color: #a86f00; font-size: 1.25rem; }
.taxi-faq-list details[open] summary::after { content: "−"; }
.taxi-faq-list details p { margin: -5px 0 20px; padding-right: 28px; color: #667085; font-size: 0.88rem; line-height: 1.65; }

.taxi-final-cta { padding: 64px 0; color: #172033; text-align: center; background: #ffffff; }
.taxi-final-cta .container { max-width: 1100px; padding-block: 42px; border: 1px solid #dce2e8; border-radius: 26px; background: linear-gradient(125deg, rgba(246, 184, 0, 0.1), rgba(15, 118, 110, 0.05)); }
.taxi-final-cta__icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 24px; border: 1px solid rgba(248, 200, 40, 0.2); border-radius: 20px; background: rgba(248, 200, 40, 0.08); font-size: 2rem; }
.taxi-final-cta .taxi-section-kicker { color: #946200; }
.taxi-final-cta h2 { color: #172033; }
.taxi-final-cta > .container > p:not(.taxi-section-kicker) { color: #667085; line-height: 1.7; }
.taxi-final-cta .taxi-hero__actions { justify-content: center; margin-top: 27px; }
.taxi-final-cta .btn-outline { color: #172033; border-color: #c7ced8; background: #ffffff; }
.taxi-final-cta small { color: #667085; }

.taxi-footer { padding: 28px 0; color: #aeb7c6; background: #080d16; }
.taxi-footer .container { display: flex; align-items: center; gap: 28px; }
.taxi-footer .logo { color: #ffffff; }
.taxi-footer p { margin: 0; font-size: 0.78rem; }
.taxi-footer nav { display: flex; gap: 17px; margin-left: auto; }
.taxi-footer nav a { color: #aeb7c6; font-size: 0.75rem; font-weight: 700; text-decoration: none; }

@media (max-width: 920px) {
  .landing-header .nav { flex-wrap: wrap; }
  .audience-switcher { order: 3; flex-basis: auto; }
  .taxi-hero__grid, .taxi-two-column, .taxi-heading-row, .taxi-records-grid, .taxi-faq-grid { grid-template-columns: 1fr; gap: 26px; }
  .taxi-hero { padding-top: 58px; }
  .taxi-dashboard { max-width: 620px; width: 100%; margin: 0 auto; }
  .taxi-benefit-grid, .taxi-tax-grid, .taxi-tools-grid { grid-template-columns: 1fr 1fr; }
  .taxi-workflow { grid-template-columns: 1fr; }
  .taxi-workflow article,
  .taxi-workflow article:last-child { min-height: 0; border: 1px solid #dfe4ea; }
  .taxi-records-grid > div:first-child { position: static; }
  .taxi-pricing-card { grid-template-columns: 1fr auto; }
  .taxi-pricing-card > .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 600px) {
  .landing-header .nav { padding-inline: 12px; }
  .audience-switcher { order: 3; width: 100%; }
  .audience-switcher__option { flex: 1 1 50%; padding-inline: 9px; }
  .taxi-hero { padding: 42px 0 54px; }
  .taxi-hero h1 { font-size: clamp(2.05rem, 10.5vw, 2.8rem); }
  .taxi-hero__actions { display: grid; grid-template-columns: 1fr; }
  .taxi-hero__actions .btn { width: 100%; justify-content: center; }
  .taxi-dashboard { padding: 17px; transform: none; }
  .taxi-dashboard__top, .taxi-dashboard__earnings, .taxi-dashboard__stats, .taxi-dashboard__reminder { transform: none; }
  .taxi-live-pill { font-size: 0; }
  .taxi-dashboard__stats { grid-template-columns: 1fr 1fr; }
  .taxi-trust-bar .container { justify-content: flex-start; }
  .taxi-trust-bar span { width: 100%; }
  .taxi-section { padding: 62px 0; }
  .taxi-benefit-grid, .taxi-tax-grid, .taxi-tools-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .taxi-benefit-card { min-height: 245px; }
  .taxi-heading-row { margin-bottom: 30px; }
  .taxi-workflow article { padding-inline: 12px; }
  .taxi-record-list article { grid-template-columns: 42px minmax(0, 1fr); padding: 17px; }
  .taxi-record-list article > span { width: 42px; height: 42px; }
  .taxi-tax-grid article { min-height: 280px; }
  .taxi-coming-soon { grid-template-columns: 1fr; gap: 8px; }
  .taxi-pricing-card { grid-template-columns: 1fr; padding: 29px 24px; }
  .taxi-pricing-card > .btn { grid-column: auto; width: 100%; justify-content: center; }
  .taxi-final-cta { padding: 70px 0; }
  .taxi-footer .container { align-items: flex-start; flex-direction: column; gap: 13px; }
  .taxi-footer nav { flex-wrap: wrap; margin-left: 0; }
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  min-width: 0;
}

.platform-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin: 0;
}

.platform-group legend {
  font-weight: 700;
  padding: 0 6px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.platform-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

.platform-grid .platform-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.platform-grid .platform-option span {
  min-width: 0;
}

.platform-logo {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.platform-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

select,
input[type="date"],
input[type="datetime-local"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[list] {
  cursor: pointer;
}

input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  -webkit-appearance: none;
  appearance: none;
}

input[type="datetime-local"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: 16px;
}

#shift-edit-start-time,
#shift-edit-end-time {
  inline-size: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-inline-size: 0;
  display: block;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
}

#shift-edit-start-time::-webkit-datetime-edit,
#shift-edit-end-time::-webkit-datetime-edit {
  padding: 0;
}

#shift-edit-start-time::-webkit-calendar-picker-indicator,
#shift-edit-end-time::-webkit-calendar-picker-indicator {
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 10px 15px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  background: var(--brand-2);
}

.btn-start {
  background: linear-gradient(135deg, #0f766e, #0ea5a1);
}

.btn-start:hover {
  background: linear-gradient(135deg, #0c665f, #0c8f8b);
}

.btn-outline {
  background: transparent;
  color: var(--brand-2);
  border: 1px solid var(--brand-2);
}

.btn-outline:hover {
  background: rgba(17, 94, 89, 0.08);
}

.btn-danger {
  background: #b42318;
  color: #fff;
}

.btn-danger:hover {
  background: #912018;
}

.btn-pause {
  background: #f97316;
  color: #fff;
}

.btn-pause:hover {
  background: #ea580c;
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.4);
}

.app-update-btn {
  position: relative;
  min-width: 104px;
  padding: 8px 12px;
  line-height: 1.1;
}

.app-update-btn.is-updating {
  pointer-events: none;
  opacity: 0.88;
}

.app-update-btn.is-updating .app-update-btn-label {
  padding-left: 18px;
}

.app-update-btn.is-updating .app-update-btn-label::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-top-color: var(--brand);
  animation: appUpdateSpin 0.7s linear infinite;
}

@keyframes appUpdateSpin {
  to {
    transform: rotate(360deg);
  }
}

.btn-on-shift {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
}

.btn-on-shift:hover {
  background: linear-gradient(135deg, #15803d, #16a34a);
}

.message {
  min-height: 22px;
  color: var(--muted);
}

#end-mileage-warning {
  min-height: 0;
  margin: 0;
}

#end-mileage-warning:not(:empty) {
  margin-top: 4px;
}

.message.error {
  color: var(--danger);
}

.message.success {
  color: #15803d;
}

#shift-status.message.success {
  color: #15803d;
}

.reset-inline-message {
  min-height: 0;
  max-height: 0;
  opacity: 0;
  margin: 0;
  transform: translateY(-2px);
  overflow: hidden;
  transition: max-height 260ms ease, opacity 200ms ease, margin-top 220ms ease, transform 220ms ease;
}

.reset-inline-message.is-visible {
  max-height: 80px;
  opacity: 1;
  margin-top: 2px;
  transform: translateY(0);
}

#shift-status.status-on-shift {
  --shift-status-dot: #22c55e;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 999px;
  padding: 6px 12px;
  min-height: 0;
  position: relative;
  box-sizing: border-box;
  font-weight: 700;
  justify-content: center;
  margin: 10px 0 8px;
  min-height: 42px;
  width: 100%;
}

#shift-status.status-on-shift::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--shift-status-dot);
  position: relative;
  z-index: 1;
  animation: shiftPulseDot 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -0.4s infinite;
}

#shift-status.status-paused {
  --shift-status-dot: #f97316;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 6px 12px;
  min-height: 0;
  position: relative;
  box-sizing: border-box;
  font-weight: 700;
  justify-content: center;
  margin: 10px 0 8px;
  min-height: 42px;
  width: 100%;
}

#shift-status.status-paused::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--shift-status-dot);
  position: relative;
  z-index: 1;
  animation: shiftPulseDot 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -0.4s infinite;
}

#shift-status.status-on-shift::after,
#shift-status.status-paused::after {
  content: none;
}

#shift-status.status-ending {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  box-sizing: border-box;
  font-weight: 700;
  justify-content: center;
  margin: 10px 0 8px;
  min-height: 42px;
  width: 100%;
}

:root[data-theme="dark"] .rider-pulse-info-pill {
  background: rgba(37,99,235,.18);
  border-color: rgba(96,165,250,.5);
  color: #bfdbfe;
}

.muted {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.trend-chart {
  margin-top: 8px;
}

.trend-svg {
  width: 100%;
  height: auto;
  display: block;
}

.trend-grid line {
  stroke: color-mix(in srgb, var(--border) 70%, transparent);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.trend-grid text,
.trend-x-labels text {
  fill: var(--muted);
  font-size: 11px;
}

.trend-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-dots circle {
  fill: var(--brand);
}

.trend-point {
  cursor: pointer;
  outline: none;
}

.trend-point circle {
  fill: var(--brand);
}

.trend-point.neg circle {
  fill: #ef4444;
}

.trend-point-value {
  display: none;
  fill: var(--text);
  font-size: 11px;
  font-weight: 800;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.trend-point:hover .trend-point-value,
.trend-point:focus .trend-point-value,
.trend-point.active .trend-point-value {
  display: block;
}

.trend-zero {
  stroke: color-mix(in srgb, var(--text) 30%, transparent);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
}

.insights-view-select {
  min-width: 190px;
  cursor: pointer;
}

.insights-chart {
  margin-top: 8px;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
}

.donut-svg {
  width: 120px;
  height: 120px;
  display: block;
}

.donut-slice,
.donut-legend li,
.heatmap-cell,
.profit-day-card,
.profit-hour-list li {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.donut-slice:hover,
.donut-slice:focus,
.donut-slice.active {
  stroke-width: 20;
  outline: none;
}

.donut-legend li:hover,
.donut-legend li:focus,
.donut-legend li.active,
.heatmap-cell:hover,
.heatmap-cell:focus,
.heatmap-cell.active,
.profit-day-card:hover,
.profit-day-card:focus,
.profit-day-card.active,
.profit-hour-list li:hover,
.profit-hour-list li:focus,
.profit-hour-list li.active {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}

.insight-selection-detail {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 44%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  font-weight: 750;
}

.donut-total-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.donut-total-value {
  fill: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.donut-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.donut-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.donut-key {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.weekday-heatmap {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.heatmap-cell {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 6px;
  display: grid;
  gap: 3px;
  text-align: center;
  color: #0f172a;
}

.heatmap-day {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.heatmap-cell strong {
  font-size: 0.88rem;
  color: inherit;
}

.heatmap-meta {
  font-size: 0.74rem;
  opacity: 0.9;
}

.heatmap-tier-low {
  background: #dbe7f2;
  border-color: #b6c8da;
  color: #223247;
}

.heatmap-tier-medium {
  background: #ffedd5;
  border-color: #fdba74;
  color: #7c2d12;
}

.heatmap-tier-high {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

.profit-status-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.profit-day-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  display: grid;
  gap: 6px;
  color: var(--text);
}

.profit-day-card.profit {
  border-color: #86efac;
  background: #f0fdf4;
  color: #14532d;
}

.profit-day-card.loss {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #7f1d1d;
}

.profit-day-card.flat {
  background: var(--surface);
}

.profit-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profit-day-name {
  font-size: 0.8rem;
  font-weight: 800;
}

.profit-day-date {
  font-size: 0.72rem;
  color: currentColor;
  opacity: 0.78;
}

.profit-day-total {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.profit-hour-insight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profit-hour-group {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, var(--brand) 12%);
  padding: 12px;
  min-width: 0;
}

.profit-hour-group h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.profit-hour-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.profit-hour-list li {
  display: grid;
  gap: 6px;
}

.profit-hour-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
}

.profit-hour-row-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.profit-hour-row-head strong {
  flex: 0 0 auto;
  color: var(--brand-strong);
  font-size: 0.88rem;
}

.profit-hour-bar {
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 76%, transparent);
  overflow: hidden;
}

.profit-hour-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 64%, #f59e0b));
}

.week-total-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.9rem;
}

.week-total-pill.profit {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.week-total-pill.loss {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.week-total-pill.flat {
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .heatmap-tier-low {
  background: #223247;
  border-color: #36506c;
  color: #d9e7f5;
}

html[data-theme="dark"] .heatmap-tier-medium {
  background: #5a3a1e;
  border-color: #a16207;
  color: #ffedd5;
}

html[data-theme="dark"] .heatmap-tier-high {
  background: #5a2323;
  border-color: #b91c1c;
  color: #fee2e2;
}

html[data-theme="dark"] .profit-day-card.profit {
  background: #193528;
  border-color: #2f7d52;
  color: #d8fbe8;
}

html[data-theme="dark"] .profit-day-card.loss {
  background: #462323;
  border-color: #b64646;
  color: #ffe5e5;
}

html[data-theme="dark"] .week-total-pill.profit {
  background: #193528;
  border-color: #2f7d52;
  color: #d8fbe8;
}

html[data-theme="dark"] .week-total-pill.loss {
  background: #462323;
  border-color: #b64646;
  color: #ffe5e5;
}

.platform-chart {
  display: grid;
  gap: 10px;
}

.platform-row {
  display: grid;
  gap: 6px;
}

.platform-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.platform-row-head strong {
  font-size: 0.9rem;
}

.platform-bar {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 72%, transparent);
  overflow: hidden;
}

.platform-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #60a5fa));
}

@media (max-width: 640px) {
  .insights-view-select {
    min-width: 0;
    width: 100%;
  }

  .insights-chart {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .trend-svg {
    min-width: 680px;
  }

  .trend-grid text,
  .trend-x-labels text {
    font-size: 12px;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .donut-legend {
    width: 100%;
  }

  .weekday-heatmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profit-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profit-hour-insight {
    grid-template-columns: 1fr;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 10px 8px;
}

.btn-delete {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  background: #fee2e2;
  color: #b42318;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-delete:hover {
  background: #fecaca;
  color: #991b1b;
}

.btn-delete svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.btn-delete * {
  pointer-events: none;
}

.shift-action-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.btn-file-shift {
  height: 36px;
  min-height: 36px;
  min-width: 58px;
  border: 1px solid color-mix(in srgb, var(--chip-border) 75%, var(--brand) 25%);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-soft) 75%, var(--surface) 25%);
  color: color-mix(in srgb, var(--text) 82%, var(--muted) 18%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn-file-shift:hover {
  background: color-mix(in srgb, var(--brand) 7%, var(--surface-soft));
  border-color: color-mix(in srgb, var(--brand) 42%, var(--chip-border));
  color: color-mix(in srgb, var(--brand) 72%, var(--text));
}

.btn-edit-shift {
  height: 36px;
  min-height: 36px;
  min-width: 76px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--chip-border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: color-mix(in srgb, var(--brand) 78%, var(--text));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.btn-edit-shift:hover {
  background: color-mix(in srgb, var(--brand) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 60%, var(--chip-border));
}

.btn-edit-shift svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.btn-edit-shift span {
  pointer-events: none;
}

.receipt-link {
  display: inline-flex;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.receipt-thumb {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
}

.receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 2080;
  --modal-top-offset: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(18px + env(safe-area-inset-top, 0px) + var(--modal-top-offset))
    16px
    calc(18px + env(safe-area-inset-bottom, 0px));
  overflow: auto;
  overscroll-behavior: contain;
}

.receipt-modal-backdrop {
  position: absolute;
  top: var(--modal-top-offset);
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(2, 6, 23, 0.55);
}

.receipt-modal-card {
  position: relative;
  flex: 0 0 auto;
  width: min(640px, 92vw);
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  max-height: calc(100dvh - var(--modal-top-offset) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 36px);
  overflow: auto;
  overscroll-behavior: contain;
}

.smart-receipt-scan {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
}

.smart-receipt-scan-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.smart-receipt-scan-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.smart-receipt-scan-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.smart-receipt-counter {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.smart-receipt-counter.exhausted {
  color: var(--danger);
}

.smart-receipt-scan .message {
  margin: 0;
}

.start-shift-modal-card {
  width: min(520px, 92vw);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.confirm-modal-card {
  width: min(500px, 92vw);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 14px;
}

.reset-password-modal-card {
  width: min(520px, 92vw);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logout-modal-card {
  width: min(500px, 92vw);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.shift-edit-modal-card {
  width: min(620px, 94vw);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 74vh;
  overflow: auto;
}

.expense-edit-modal-card {
  width: min(620px, 94vw);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 74vh;
  overflow: auto;
}

.expense-edit-receipt-actions {
  display: grid;
  gap: 10px;
}

.expense-action-group {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.expense-action-group .btn-stop-recurring {
  min-height: 36px;
  padding: 7px 10px;
  white-space: nowrap;
}

.onboarding-modal-card {
  width: min(560px, 94vw);
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  padding: 16px;
  gap: 8px;
  max-height: min(82vh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 28px));
  overflow: auto;
  overscroll-behavior: contain;
}

.edited-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.72rem;
  font-weight: 700;
}

.onboarding-kicker {
  margin: 0;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.onboarding-progress {
  font-size: 0.85rem;
  font-weight: 600;
}

.onboarding-subtitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.25;
}

.onboarding-body {
  white-space: pre-line;
  line-height: 1.42;
}

.onboarding-body p {
  margin-top: 0;
}

.onboarding-body-intro {
  margin: 0 0 8px;
  line-height: 1.35;
}

.onboarding-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.onboarding-value-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: color-mix(in srgb, var(--surface) 86%, var(--brand) 14%);
}

.onboarding-value-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.onboarding-value-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
}

.onboarding-modal-card #onboarding-next-btn {
  gap: 8px;
}

.onboarding-next-icon {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 auto;
}

.onboarding-confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 51;
  pointer-events: none;
  overflow: hidden;
}

.onboarding-confetti-piece {
  position: absolute;
  top: -18px;
  width: 9px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.95;
  animation-name: onboardingConfettiFall;
  animation-timing-function: ease-out;
  animation-fill-mode: none;
}

@keyframes onboardingConfettiFall {
  0% {
    transform: translateY(-12px) rotate(0deg);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(680deg);
    opacity: 0;
  }
}

.confirm-modal-title {
  margin: 0;
}

.confirm-modal-message {
  margin: 0;
  line-height: 1.45;
}

.version-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 10, 20, 0.6);
  display: grid;
  place-items: center;
  padding: 16px;
}

.version-gate-card {
  width: min(520px, 96vw);
  border-radius: 16px;
  border: 1px solid #fecaca;
  background: #fff7f7;
  color: #1f2937;
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.release-notes-card {
  border: 1px solid color-mix(in srgb, var(--brand) 28%, #cbd5e1);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 10%, #ffffff) 0%, transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, #ffffff) 0%, color-mix(in srgb, var(--surface-soft) 96%, #ffffff) 100%);
  color: var(--text);
}

.release-notes-kicker {
  color: var(--brand-strong);
}

.release-notes-icon {
  color: var(--brand-strong);
}

.release-notes-head {
  display: grid;
  gap: 4px;
}

.release-notes-release {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-strong);
}

.release-notes-copy {
  margin: 0;
}

.release-notes-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.release-notes-list li {
  line-height: 1.45;
}

.release-notes-primary-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

#release-notes-list.expanded .release-notes-primary-copy {
  display: block;
  -webkit-line-clamp: unset;
}

.release-notes-toggle-btn {
  width: 100%;
}

.release-notes-more-wrap {
  max-height: min(180px, 28vh);
  overflow: auto;
  padding-right: 4px;
}

.release-notes-more-list {
  padding-top: 2px;
}

.release-notes-card .btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
}

.version-gate-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b42318;
}

.version-gate-card h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.2;
  color: #111827;
}

.version-gate-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.version-gate-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  flex: 0 0 24px;
  color: #b42318;
  margin-top: 1px;
}

.version-gate-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#version-gate-message {
  margin: 0;
  line-height: 1.4;
  color: #475569;
}

#version-gate-update-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font-size: 1rem;
  background: #b42318;
  color: #fff;
}

#version-gate-update-btn:hover {
  background: #991b1b;
}

#version-gate-status {
  margin: 0;
  min-height: 0;
  font-size: 0.92rem;
  color: #475569;
}

#version-gate-status:empty {
  display: none;
}

@media (max-width: 640px) {
  .version-gate-overlay {
    padding: 12px;
    align-items: center;
  }

  .version-gate-card {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    padding: 16px;
    gap: 10px;
  }

  .release-notes-list {
    gap: 7px;
  }

  .version-gate-kicker {
    font-size: 0.74rem;
  }

  .version-gate-card h2 {
    font-size: 1.09rem;
    line-height: 1.18;
  }

  .version-gate-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  #version-gate-message {
    font-size: 0.95rem;
  }

  #version-gate-update-btn {
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.98rem;
  }
}

body.version-gate-locked {
  overflow: hidden;
}

.receipt-modal-card img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  transform-origin: center center;
  transition: transform 120ms ease;
}

.receipt-image-wrap {
  overflow: auto;
  max-height: 72vh;
  border-radius: 8px;
}

.receipt-tool-btn {
  min-width: 44px;
  padding: 8px 10px;
}

.feedback-fab {
  position: fixed;
  right: 14px;
  left: auto;
  bottom: 92px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 36;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.feedback-fab:hover {
  background: color-mix(in srgb, var(--brand) 20%, var(--surface));
}

.feedback-modal-card {
  width: min(560px, 92vw);
}

.subscribe-modal-card {
  width: min(620px, 94vw);
  max-height: min(82vh, calc(100dvh - var(--modal-top-offset) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 36px));
  overflow: auto;
  gap: 12px;
}

.subscribe-hero {
  display: grid;
  gap: 6px;
}

.subscribe-hero h3 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.08;
}

.subscribe-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.subscribe-price-card {
  display: grid;
  gap: 2px;
  border: 1px solid color-mix(in srgb, var(--brand) 46%, var(--border));
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--surface)), var(--surface));
}

.subscribe-price-card strong {
  font-size: 1.15rem;
  color: var(--text);
}

.subscribe-price-card span,
.subscribe-support-copy {
  color: var(--muted);
  font-weight: 700;
}

.subscribe-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.subscribe-benefits article {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: color-mix(in srgb, var(--surface) 90%, var(--brand) 10%);
}

.subscribe-benefits strong,
.subscribe-benefits span {
  display: block;
}

.subscribe-benefits strong {
  color: var(--text);
  margin-bottom: 4px;
}

.subscribe-benefits span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.subscribe-support-copy {
  margin: 0;
  line-height: 1.35;
}

#subscribe-status {
  margin: 0;
  min-height: 0;
}

#subscribe-status:empty {
  display: none;
}

.manage-subscription-modal-card {
  margin: 0;
  transform: none;
}

.pro-welcome-modal-card {
  margin: 0;
  transform: none;
}

.rainbow-title {
  background-image: linear-gradient(
    90deg,
    #ef4444 0%,
    #f59e0b 16%,
    #eab308 32%,
    #22c55e 48%,
    #06b6d4 64%,
    #3b82f6 80%,
    #a855f7 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbowShift 4s linear infinite;
}

@keyframes rainbowShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

.terms-consent-wrap {
  display: grid;
  gap: 8px;
}

.terms-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
}

.terms-consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.terms-body {
  max-height: min(44vh, 320px);
  overflow: auto;
  padding-right: 4px;
}

.terms-body p {
  margin: 0 0 8px;
}

.terms-body ul {
  margin: 0;
  padding-left: 18px;
}

#changelog-full-wrap {
  max-height: 240px;
  overflow: auto;
  padding-right: 6px;
}

.app-updates-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 10px;
}

.app-updates-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  justify-self: start;
}

.app-updates-title-row h2 {
  margin: 0;
  line-height: 1.15;
}

.app-updates-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.site-env-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.site-env-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.18);
}

.site-env-pill.beta {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.site-env-pill.beta::before {
  display: none;
}

.site-env-pill.official {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.profile-plan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-text);
}

.profile-plan-pill.pro {
  border-color: #fbbf24;
  background: #f59e0b;
  color: #201300;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32);
}

.profile-plan-pill.pro::before {
  content: none;
}

.leaderboard-pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid #fbbf24;
  background: #f59e0b;
  color: #201300;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32);
  vertical-align: middle;
}

.leaderboard-pro-badge::before {
  content: none;
}

.profile-username-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-username-pro-badge {
  margin-top: 0;
}

.profile-meta-grid {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-soft) 80%, var(--surface) 20%);
}

.profile-meta-row {
  display: grid;
  gap: 2px;
}

.profile-meta-row-inline {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.profile-meta-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-meta-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
}

.profile-weekly-summary-card {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--surface) 92%, var(--brand) 8%);
}

.goals-form-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.goals-form-grid.form-locked {
  opacity: 0.62;
}

.goals-form-grid .row {
  flex-wrap: wrap;
}

#changelog-latest,
#changelog-full {
  margin: 8px 0 0;
  padding-left: 1.1rem;
}

#changelog-latest li,
#changelog-full li {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  line-height: 1.35;
}

.changelog-platforms {
  align-items: stretch;
  display: flex;
  flex: 0 0 7rem;
  flex-direction: column;
  gap: 4px;
}

.changelog-platform-pill {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 7px;
  justify-content: flex-start;
  letter-spacing: 0.04em;
  line-height: 1;
  min-height: 1.9rem;
  padding: 6px 9px;
  box-shadow: 0 2px 5px color-mix(in srgb, var(--text) 8%, transparent);
  text-transform: uppercase;
  white-space: nowrap;
}

.changelog-platform-mark {
  background: currentColor;
  display: inline-block;
  flex: 0 0 auto;
}

.changelog-entry-copy {
  flex: 1 1 20rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

#changelog-latest .changelog-entry-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

#changelog-latest .changelog-preview-item.expanded .changelog-entry-copy {
  display: block;
  -webkit-line-clamp: unset;
}

.changelog-entry-toggle {
  appearance: none;
  background: none;
  border: 0;
  box-sizing: border-box;
  color: var(--brand-strong);
  cursor: pointer;
  flex: 0 0 calc(100% - 7.5rem);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  margin-left: 7.5rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.changelog-entry-toggle:hover {
  color: var(--brand);
}

.changelog-entry-toggle:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.changelog-platform-pill.web {
  background: color-mix(in srgb, var(--surface) 92%, #2563eb 8%);
  border-color: color-mix(in srgb, var(--border) 66%, #2563eb 34%);
  color: color-mix(in srgb, #2563eb 72%, var(--text));
}

.changelog-platform-pill.web .changelog-platform-mark {
  border-radius: 2px;
  height: 7px;
  width: 11px;
}

.changelog-platform-pill.mobile {
  background: color-mix(in srgb, var(--surface) 92%, var(--brand) 8%);
  border-color: color-mix(in srgb, var(--border) 66%, var(--brand) 34%);
  color: var(--brand-strong);
}

.changelog-platform-pill.mobile .changelog-platform-mark {
  border-radius: 2px;
  height: 11px;
  width: 7px;
}

@media (max-width: 520px) {
  #changelog-latest,
  #changelog-full {
    padding-left: 0;
  }

  #changelog-latest li,
  #changelog-full li {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .changelog-platform-pill {
    min-width: 7rem;
  }

  .changelog-platforms {
    align-items: flex-start;
    flex-basis: auto;
  }

  .changelog-entry-copy {
    flex-basis: auto;
    width: 100%;
  }

  .changelog-entry-toggle {
    flex-basis: 100%;
    margin-left: 0;
  }
}

.profile-roadmap-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border));
  background: color-mix(in srgb, var(--surface) 88%, var(--brand) 12%);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-roadmap {
  position: relative;
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.profile-roadmap::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: color-mix(in srgb, var(--brand) 16%, var(--border));
}

.profile-roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.profile-roadmap-dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 4px;
  background: linear-gradient(145deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 65%, #ffffff) 100%);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--surface) 92%, transparent),
    0 8px 18px color-mix(in srgb, var(--brand) 20%, transparent);
}

.profile-roadmap-copy {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 94%, var(--brand) 6%);
}

.profile-roadmap-phase {
  margin: 0 0 6px;
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-roadmap-copy h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.profile-roadmap-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (min-width: 900px) {
  .feedback-fab {
    bottom: 92px;
  }
}

@media (max-width: 640px) {
  .feedback-fab {
    position: fixed !important;
    left: auto !important;
    right: 10px !important;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto;
    max-width: calc(100vw - 20px);
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.86rem;
    transform: none;
    margin: 0;
  }

  .app-updates-controls {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }

  .app-updates-title-row {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }

  .app-update-btn {
    min-width: 120px;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 20px 0;
  color: var(--muted);
}

@media (max-width: 840px) {

  .hero-grid,
  .three-col {
    grid-template-columns: 1fr;
  }
}

.app-shell {
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  overflow-x: hidden;
  background: var(--bg);
}

body.account-role-loading {
  min-height: 100dvh;
  overflow: hidden;
}

body.account-role-loading > * {
  visibility: hidden;
}

body.account-role-loading::before {
  background: var(--bg);
  box-sizing: border-box;
  color: var(--text);
  content: "Please wait\A Loading dashboard…";
  display: grid;
  font-size: 1rem;
  font-weight: 800;
  inset: 0;
  line-height: 1.65;
  padding: 108px 24px 0;
  place-items: center;
  position: fixed;
  text-align: center;
  visibility: visible;
  white-space: pre-line;
  z-index: 99998;
}

body.account-role-loading::after {
  animation: accountRoleLoaderSpin 760ms linear infinite;
  background: conic-gradient(from 20deg, #10a873, rgba(16, 168, 115, 0.14) 72%);
  border-radius: 50%;
  content: "";
  height: 48px;
  left: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 0);
  position: fixed;
  top: calc(50% - 48px);
  transform: translate(-50%, -50%);
  visibility: visible;
  width: 48px;
  z-index: 99999;
}

body.account-role-ready > main {
  animation: accountRoleContentReveal 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.account-role-ready > header,
body.account-role-ready > footer {
  animation: accountRoleContentFade 360ms ease-out both;
}

@keyframes accountRoleLoaderSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes accountRoleContentReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes accountRoleContentFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.account-role-loading::after {
    animation-duration: 1.5s;
  }

  body.account-role-ready > main,
  body.account-role-ready > header,
  body.account-role-ready > footer {
    animation: none;
  }
}

:root[data-theme="dark"] .app-shell {
  background: var(--bg);
}

.app-main {
  width: min(640px, 94%);
  margin: 0 auto;
  padding: 20px 0 calc(110px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 14px;
  transition: padding-top 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.has-offline-banner .app-main {
  padding-top: calc(20px + var(--offline-banner-offset, 56px));
}

body.has-online-sync-banner .app-main {
  padding-top: calc(20px + var(--online-sync-banner-offset, 56px));
}

body.has-system-notice-banner .app-main {
  padding-top: calc(20px + var(--system-notice-offset, 56px));
}

body.has-offline-banner.has-system-notice-banner .app-main,
body.has-online-sync-banner.has-system-notice-banner .app-main {
  padding-top: calc(20px + var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
}

.app-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2rem);
}

.app-hero .kicker {
  margin-bottom: 4px;
}

.app-hero {
  position: relative;
}

.app-hero-badges {
  position: static;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 8px;
  width: 100%;
}

.app-hero .app-hero-tab-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 auto 0 0;
}

.app-hero-pro-chip {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  min-height: 22px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid #e79200;
  background: #f5a300;
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.app-hero-pro-chip::before {
  content: none;
}

.app-main .card h2,
.app-main .card h3 {
  margin-top: 0;
}

.danger-zone-card h2 {
  margin-bottom: 4px;
}

.danger-zone-subhead {
  margin-top: 0;
  margin-bottom: 14px;
}

.app-main .card {
  min-width: 0;
}

.admin-status-launch {
  align-items: center;
  background: linear-gradient(135deg, #081a3f, #173f8a);
  border-color: #2563eb;
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  padding: 14px 16px;
  text-decoration: none;
}

.admin-status-launch:hover {
  border-color: #60a5fa;
  text-decoration: none;
  transform: translateY(-1px);
}

.admin-status-launch-icon {
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  color: #93c5fd;
  display: inline-flex;
  font-size: 1.6rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.admin-status-launch-copy {
  display: grid;
  gap: 3px;
}

.admin-status-launch-copy strong { color: #fff; font-size: .92rem; }
.admin-status-launch-copy small { color: #bfdbfe; font-size: .68rem; line-height: 1.4; }
.admin-status-launch-live { align-items: center; background: rgba(255,255,255,.1); border-radius: 999px; color: #fff; display: inline-flex; font-size: .58rem; font-weight: 900; gap: 5px; letter-spacing: .08em; padding: 6px 8px; }
.admin-status-launch-live i { animation: adminStatusPulse 1.2s ease-in-out infinite; background: #4ade80; border-radius: 50%; height: 7px; width: 7px; }
.admin-status-launch-chevron { color: #bfdbfe; font-size: 1.6rem; }

.admin-status-main {
  width: min(820px, 94%);
}

.admin-status-back-row {
  display: flex;
}

.admin-status-back-row .btn {
  width: auto;
}

.admin-status-overview {
  --admin-status-accent: #93c5fd;
  --admin-status-body: #bfdbfe;
  --admin-status-button-text: #173f8a;
  --admin-status-card-from: #081a3f;
  --admin-status-card-to: #173f8a;
  --admin-status-card-edge: #2563eb;
  background: linear-gradient(135deg, var(--admin-status-card-from) 0%, var(--admin-status-card-to) 100%);
  border-color: var(--admin-status-card-edge);
  box-shadow: 0 22px 52px rgba(8,26,63,.24);
  color: #fff;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.admin-status-overview.healthy {
  --admin-status-accent: #86efac;
  --admin-status-body: #bbf7d0;
  --admin-status-button-text: #14532d;
  --admin-status-card-from: #052e1c;
  --admin-status-card-to: #14532d;
  --admin-status-card-edge: #22c55e;
  box-shadow: 0 22px 52px rgba(5,46,28,.24);
}

.admin-status-overview.warning {
  --admin-status-accent: #fcd34d;
  --admin-status-body: #fde68a;
  --admin-status-button-text: #78350f;
  --admin-status-card-from: #3a2504;
  --admin-status-card-to: #78350f;
  --admin-status-card-edge: #f59e0b;
  box-shadow: 0 22px 52px rgba(58,37,4,.24);
}

.admin-status-overview.down {
  --admin-status-accent: #fca5a5;
  --admin-status-body: #fecaca;
  --admin-status-button-text: #7f1d1d;
  --admin-status-card-from: #3f0a0a;
  --admin-status-card-to: #7f1d1d;
  --admin-status-card-edge: #ef4444;
  box-shadow: 0 22px 52px rgba(63,10,10,.26);
}

.admin-status-overview-copy {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.admin-status-overview-copy h2,
.admin-status-overview-copy p {
  margin: 0;
}

.admin-status-overview-copy h2 { color: #fff; }
.admin-status-overview-copy .muted { color: var(--admin-status-body); }

.admin-status-overview-icon {
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  color: var(--admin-status-accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 2.2rem;
  height: 68px;
  justify-content: center;
  position: relative;
  width: 68px;
}

.admin-status-eyebrow {
  color: var(--admin-status-accent);
  display: block;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 4px;
}

.admin-status-indicator {
  animation: adminStatusDotPulse 1.2s ease-in-out infinite;
  background: #94a3b8;
  border: 3px solid var(--admin-status-card-to);
  border-radius: 50%;
  bottom: -2px;
  height: 14px;
  position: absolute;
  right: -2px;
  width: 14px;
  z-index: 1;
}

.admin-status-indicator::before,
.admin-status-row-dot::before {
  animation: adminStatusHalo 1.2s ease-out infinite;
  background: inherit;
  border-radius: inherit;
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.admin-status-indicator.checking {
  background: #3b82f6;
}

.admin-status-indicator.healthy {
  background: #22c55e;
}

.admin-status-indicator.warning {
  background: #f59e0b;
}

.admin-status-indicator.down {
  background: #ef4444;
}

.admin-status-overview > .btn {
  align-self: center;
  background: #fff;
  border-color: #fff;
  color: var(--admin-status-button-text);
}

.admin-status-metrics {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-status-metrics > div {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  display: grid;
  gap: 2px;
  padding: 12px;
}

.admin-status-metrics strong {
  color: #fff;
  font-size: 1.35rem;
}

.admin-status-metrics span {
  color: var(--admin-status-body);
  font-size: .7rem;
  font-weight: 700;
}

.admin-status-checked-at {
  color: var(--admin-status-body);
  font-size: .7rem;
  grid-column: 1 / -1;
  margin: 0;
}

.admin-status-section {
  box-shadow: 0 12px 34px rgba(15,23,42,.08);
}

.admin-status-section-heading {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-status-section-heading h2,
.admin-status-section-heading p {
  margin: 0;
}

.admin-status-section-heading p {
  margin-top: 4px;
}

.admin-status-count {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  flex: 0 0 auto;
  font-size: .7rem;
  font-weight: 850;
  padding: 6px 9px;
}

.admin-status-list {
  display: grid;
  gap: 8px;
}

.admin-status-function-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-status-row {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 70px;
  padding: 11px;
}

.admin-status-row-dot {
  animation: adminStatusDotPulse 1.2s ease-in-out infinite;
  background: var(--muted);
  border-radius: 50%;
  height: 9px;
  position: relative;
  width: 9px;
  z-index: 0;
}

.admin-status-row.checking .admin-status-row-dot {
  background: #3b82f6;
}

.admin-status-row.healthy .admin-status-row-dot { background: #22c55e; }
.admin-status-row.warning .admin-status-row-dot { background: #f59e0b; }
.admin-status-row.down .admin-status-row-dot { background: #ef4444; }

.admin-status-row-copy,
.admin-status-row-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-status-row-copy strong {
  color: var(--text);
  font-size: .76rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-status-row-copy small,
.admin-status-row-meta small {
  color: var(--muted);
  font-size: .6rem;
  line-height: 1.35;
}

.admin-status-row-meta {
  justify-items: end;
  text-align: right;
}

.admin-status-row-badge {
  border-radius: 999px;
  color: var(--muted);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .04em;
  padding: 4px 6px;
  text-transform: uppercase;
}

.admin-status-row.healthy .admin-status-row-badge { background: color-mix(in srgb, #22c55e 15%, var(--surface)); color: #15803d; }
.admin-status-row.warning .admin-status-row-badge { background: color-mix(in srgb, #f59e0b 16%, var(--surface)); color: #b45309; }
.admin-status-row.down .admin-status-row-badge { background: color-mix(in srgb, #ef4444 14%, var(--surface)); color: #b91c1c; }
.admin-status-row.checking .admin-status-row-badge { background: color-mix(in srgb, #3b82f6 14%, var(--surface)); color: #1d4ed8; }

:root[data-theme="dark"] .admin-status-row.healthy .admin-status-row-badge { color: #86efac; }
:root[data-theme="dark"] .admin-status-row.warning .admin-status-row-badge { color: #fcd34d; }
:root[data-theme="dark"] .admin-status-row.down .admin-status-row-badge { color: #fca5a5; }
:root[data-theme="dark"] .admin-status-row.checking .admin-status-row-badge { color: #93c5fd; }

@keyframes adminStatusPulse {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes adminStatusHalo {
  0% { opacity: .42; transform: scale(.8); }
  72%, 100% { opacity: 0; transform: scale(2.35); }
}

@keyframes adminStatusDotPulse {
  0%, 100% { opacity: 1; }
  72% { opacity: .76; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-status-indicator::before,
  .admin-status-indicator,
  .admin-status-row-dot,
  .admin-status-row-dot::before {
    animation: none;
  }
}

.report-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.report-stats .card p {
  margin: 4px 0 0;
}

.app-main>.card .report-stats .card {
  background: var(--surface-soft);
  box-shadow: none;
  border-color: var(--chip-border);
  padding: 14px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-actions .btn {
  text-align: center;
}

.period-switch {
  gap: 8px;
  flex-wrap: wrap;
}

.period-switch .period-btn {
  border-radius: 999px;
  padding: 8px 12px;
}

.period-switch .period-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.period-nav {
  margin-top: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.period-row > .muted {
  margin: 0;
}

.period-row .period-btn {
  min-width: 0;
}

#period-range-label {
  margin: 0;
  text-align: center;
  flex: 1;
}

.csv-export-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--chip-border);
  border-radius: 12px;
  background: var(--surface-soft);
  margin-bottom: 10px;
}

.statement-import-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--chip-border);
  border-radius: 12px;
  background: var(--surface-soft);
  margin-bottom: 10px;
}

.statement-import-head .muted {
  margin: 0;
}

.statement-import-head-row {
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.statement-import-beta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, #f59e0b 18%, var(--surface));
  color: color-mix(in srgb, #b45309 82%, var(--text));
  border: 1px solid color-mix(in srgb, #f59e0b 48%, var(--chip-border));
}

.statement-import-warning {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, #f59e0b 40%, var(--chip-border));
  background: color-mix(in srgb, #f59e0b 10%, var(--surface));
  color: color-mix(in srgb, #92400e 75%, var(--text));
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 600;
}

.statement-import-contributor {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, #eff6ff 88%, var(--surface)), color-mix(in srgb, #f0fdfa 84%, var(--surface)));
  color: #1e3a8a;
}

.statement-import-contributor-icon {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #2563eb;
  font-size: 0.88rem;
  font-weight: 900;
}

.statement-import-contributor-copy {
  min-width: 0;
}

.statement-import-contributor h3,
.statement-import-contributor p {
  margin: 0;
}

.statement-import-contributor h3 {
  margin-top: 2px;
  color: #1e3a8a;
  font-size: 0.94rem;
  line-height: 1.35;
}

.statement-import-contributor p {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.statement-import-contributor .statement-import-contributor-eyebrow {
  margin-top: 0;
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.statement-import-contributor .statement-import-contributor-body {
  color: #334155;
}

.statement-import-contributor .statement-import-contributor-privacy {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  font-size: 0.75rem;
}

.statement-import-contributor .statement-import-contributor-reward {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: linear-gradient(145deg, #16a34a 0%, #15803d 68%, #166534 100%);
  color: #ffffff;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.statement-import-contributor-reward-copy {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.statement-import-contributor-reward strong {
  white-space: nowrap;
}

.statement-import-contributor-reward::after {
  animation: appStoreButtonShine 3.8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  content: "";
  inset: -45% auto -45% -34%;
  pointer-events: none;
  position: absolute;
  transform: rotate(16deg);
  width: 24%;
  z-index: 0;
}

.statement-import-contributor .statement-import-contributor-action {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  padding: 8px 14px;
  border-color: #1d4ed8;
  color: #ffffff;
  background: #2563eb;
}

.statement-import-contributor .statement-import-contributor-action:hover {
  border-color: #1e40af;
  color: #ffffff;
  background: #1d4ed8;
}

:root[data-theme="dark"] .statement-import-contributor {
  background: linear-gradient(145deg, #142a3d, #12352f);
  border-color: #315d72;
  color: var(--text);
}

:root[data-theme="dark"] .statement-import-contributor-icon {
  background: rgba(96, 165, 250, 0.16);
  border-color: #315d72;
  color: #93c5fd;
}

:root[data-theme="dark"] .statement-import-contributor h3 {
  color: var(--text);
}

:root[data-theme="dark"] .statement-import-contributor .statement-import-contributor-eyebrow {
  color: #93c5fd;
}

:root[data-theme="dark"] .statement-import-contributor .statement-import-contributor-body {
  color: var(--muted);
}

:root[data-theme="dark"] .statement-import-contributor .statement-import-contributor-privacy {
  background: rgba(10, 16, 26, 0.52);
  border-color: #315d72;
  color: #c8d4e5;
}

.statement-import-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.statement-import-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.statement-import-actions .btn {
  width: 100%;
}

#statement-provider {
  cursor: pointer;
}

.statement-file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.statement-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.statement-file-trigger {
  width: auto;
  min-width: 220px;
  text-align: center;
  cursor: pointer;
}

#statement-file-name {
  display: block;
  min-height: 1.1em;
  margin: 0;
  line-height: 1.2;
}

.statement-file-name {
  margin-top: -2px;
  margin-bottom: 0;
}

.csv-export-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.csv-export-head .muted {
  margin: 0;
}

.csv-export-periods {
  gap: 6px;
}

.csv-export-periods .csv-period-btn {
  border-radius: 999px;
  padding: 7px 12px;
}

.csv-export-periods .csv-period-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.csv-export-nav {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.csv-export-nav .btn {
  width: auto;
}

#export-period-range-label {
  margin: 0;
  text-align: center;
  flex: 1;
  font-weight: 600;
}

.csv-export-btn {
  width: 100%;
}

.csv-export-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.forecast-stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 88%, var(--brand) 12%);
  display: grid;
  gap: 6px;
}

.forecast-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.forecast-stat strong {
  font-size: 1.35rem;
  line-height: 1.05;
  color: var(--text);
}

.goal-progress-grid {
  display: grid;
  gap: 10px;
}

.goal-complete-banner {
  align-items: center;
  background: color-mix(in srgb, #22c55e 14%, var(--surface));
  border: 1px solid #22c55e;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.goal-complete-banner > span:last-child {
  display: grid;
  gap: 3px;
}

.goal-complete-banner strong {
  color: #15803d;
  font-size: 0.96rem;
}

:root[data-theme="dark"] .goal-complete-banner strong {
  color: #4ade80;
}

.goal-complete-banner small {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.goal-complete-icon {
  align-items: center;
  background: #22c55e;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 40px;
  font-size: 1.15rem;
  font-weight: 900;
  height: 40px;
  justify-content: center;
}

.goal-progress-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 90%, var(--brand) 10%);
  display: grid;
  gap: 7px;
}

.goal-progress-card.complete {
  border-color: #86efac;
  background: color-mix(in srgb, #22c55e 14%, var(--surface));
}

.goal-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.goal-progress-head strong {
  font-size: 0.98rem;
}

.goal-progress-head span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.goal-progress-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--border) 78%, transparent);
}

.goal-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 62%, #f59e0b));
}

.nudge-list {
  display: grid;
  gap: 10px;
}

.nudge-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 92%, var(--brand) 8%);
  display: grid;
  gap: 6px;
}

.nudge-item.warn {
  border-color: color-mix(in srgb, #f59e0b 42%, var(--border));
  background: color-mix(in srgb, #f59e0b 11%, var(--surface));
}

.nudge-item.ok {
  border-color: color-mix(in srgb, #22c55e 42%, var(--border));
  background: color-mix(in srgb, #22c55e 10%, var(--surface));
}

.nudge-item strong {
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .forecast-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) {
  .csv-export-actions {
    grid-template-columns: 1fr 1fr;
  }

  .statement-import-grid {
    grid-template-columns: 1fr 1fr;
  }

  .statement-import-actions {
    grid-template-columns: 1fr;
  }

  .period-nav .btn {
    min-width: 112px;
  }

  .csv-export-nav .btn {
    min-width: 112px;
  }
}

.delta-up {
  color: #15803d;
  font-weight: 700;
}

.delta-down {
  color: #b42318;
  font-weight: 700;
}

.delta-neutral {
  color: #ca8a04;
  font-weight: 700;
}

.prediction-value {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 6px 0;
  font-weight: 800;
}

.sa-deadline-pill {
  --deadline-accent: #166534;
  margin: 10px 0 0;
  display: grid;
  gap: 7px;
  width: 100%;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
}

.sa-deadline-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-deadline-step {
  flex: 1;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.sa-deadline-title {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.sa-deadline-days {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--deadline-accent);
  color: #ffffff;
  box-shadow: 0 5px 12px color-mix(in srgb, var(--deadline-accent) 28%, transparent);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1;
}

#sa-deadline-text {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    filter 160ms ease;
  transform-origin: left center;
}

.sa-deadline-step-nav {
  display: flex;
  gap: 7px;
}

.sa-deadline-step-btn {
  width: 36px;
  height: 28px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: currentColor;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.sa-deadline-step-btn.active {
  background: var(--deadline-accent);
  border-color: var(--deadline-accent);
  color: #fff;
}

.sa-deadline-help {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.4;
}

#sa-deadline-text.sa-deadline-text-exit {
  opacity: 0;
  transform: translateY(-3px);
  filter: blur(1px);
}

#sa-deadline-text.sa-deadline-text-enter {
  opacity: 0;
  transform: translateY(3px);
  filter: blur(1px);
  animation: saDeadlineTextEnter 220ms ease forwards;
}

.sa-deadline-pill.upcoming {
  --deadline-accent: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.sa-deadline-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  flex: 0 0 9px;
  align-self: center;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent);
  animation: statusDotPulse 1.2s ease-in-out infinite;
}

.sa-deadline-rotate-indicator {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface, #ffffff) 96%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent),
    0 1px 2px color-mix(in srgb, #000000 8%, transparent);
  opacity: 0.98;
}

.sa-deadline-pill.warn {
  --deadline-accent: #92400e;
  border-color: #fcd34d;
  background: #fef3c7;
  color: #92400e;
}

.sa-deadline-rotate-indicator-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  font-size: 0.46rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sa-deadline-pill.critical {
  --deadline-accent: #991b1b;
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

:root[data-theme="dark"] .sa-deadline-pill {
  --deadline-accent: #4ade80;
  border-color: color-mix(in srgb, #4ade80 58%, var(--border));
  background: color-mix(in srgb, #22c55e 12%, var(--surface));
  color: #86efac;
}

:root[data-theme="dark"] .sa-deadline-pill.upcoming {
  --deadline-accent: #60a5fa;
  border-color: color-mix(in srgb, #60a5fa 58%, var(--border));
  background: color-mix(in srgb, #3b82f6 12%, var(--surface));
  color: #93c5fd;
}

:root[data-theme="dark"] .sa-deadline-pill.warn {
  --deadline-accent: #fbbf24;
  border-color: color-mix(in srgb, #fbbf24 58%, var(--border));
  background: color-mix(in srgb, #f59e0b 12%, var(--surface));
  color: #fde68a;
}

:root[data-theme="dark"] .sa-deadline-pill.critical {
  --deadline-accent: #f87171;
  border-color: color-mix(in srgb, #f87171 58%, var(--border));
  background: color-mix(in srgb, #ef4444 12%, var(--surface));
  color: #fca5a5;
}

@keyframes saDeadlineTextEnter {
  from {
    opacity: 0;
    transform: translateY(3px);
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.expense-nudge-pill {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid #fcd34d;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  text-decoration: none;
}

.expense-guidance-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid #fcd34d;
  border-radius: 18px;
  padding: 18px;
  background: #fef3c7;
  color: #78350f;
}

.expense-guidance-card[hidden] {
  display: none;
}

.expense-guidance-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  background: #fde68a;
  font-size: 20px;
}

.expense-guidance-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.expense-guidance-copy h2,
.expense-guidance-copy p {
  margin: 0;
}

.expense-guidance-copy .muted {
  color: #92400e;
}

.expense-guidance-copy .btn {
  justify-self: start;
  margin-top: 4px;
  background: #fff;
  border-color: #f59e0b;
  color: #92400e;
}

.expense-nudge-pill.ok {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.expense-nudge-pill.critical {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.expense-nudge-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  flex: 0 0 9px;
  align-self: center;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent);
  animation: statusDotPulse 1.2s ease-in-out infinite;
}

.system-notice-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2110;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: #bfdbfe;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.18);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  filter: blur(6px);
  transform-origin: top center;
  transition: top 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.legacy-upgrade-banner {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  color: #78350f;
  box-shadow: 0 10px 26px rgba(146, 64, 14, 0.1);
}

.legacy-upgrade-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.legacy-upgrade-icon svg {
  width: 18px;
  height: 18px;
}

.legacy-upgrade-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.legacy-upgrade-copy strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.legacy-upgrade-copy span {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
  color: #92400e;
}

:root[data-theme="dark"] .legacy-upgrade-banner {
  border-color: rgba(251, 191, 36, 0.38);
  background: linear-gradient(135deg, #2b1d08 0%, #351b0b 100%);
  color: #fef3c7;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .legacy-upgrade-copy span {
  color: #fde68a;
}

@media (max-width: 520px) {
  .legacy-upgrade-banner {
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .legacy-upgrade-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
}

.system-notice-banner.is-visible {
  animation: offlineBannerDropIn 380ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.system-notice-banner.warn {
  background: #92400e;
  color: #fffbeb;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.22);
}

.system-notice-banner.critical {
  background: #991b1b;
  color: #fef2f2;
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.22);
}

.system-notice-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  margin-top: 11px;
  background: #60a5fa;
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.34);
  animation: noticeInfoDotPulse 1.2s ease-in-out infinite;
}

.system-notice-icon::before {
  content: none;
}

.system-notice-banner.warn .system-notice-icon {
  background: #fbbf24;
}

.system-notice-banner.critical .system-notice-icon {
  background: #fca5a5;
}

.system-notice-banner.is-visible .system-notice-icon {
  animation: noticeInfoDotPulse 1.2s ease-in-out infinite;
}

.system-notice-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.system-notice-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.system-notice-title {
  margin: 0;
  line-height: 1.1;
}

.system-notice-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.system-notice-updated {
  margin: 2px 0 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(15, 23, 42, 0.68);
}

.system-notice-description {
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 72ch;
  margin: 4px 0 0;
  color: rgba(15, 23, 42, 0.82);
}

.system-notice-banner.warn .system-notice-description {
  color: rgba(255, 251, 235, 0.9);
}

.system-notice-banner.critical .system-notice-description {
  color: rgba(254, 242, 242, 0.9);
}

.system-notice-banner.warn .system-notice-updated {
  color: rgba(255, 251, 235, 0.8);
}

.system-notice-banner.critical .system-notice-updated {
  color: rgba(254, 242, 242, 0.8);
}

.system-notice-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.92;
}

.system-notice-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #1d4ed8;
}

.system-notice-level-badge.warn {
  background: rgba(255, 251, 235, 0.16);
  border-color: rgba(255, 251, 235, 0.26);
  color: #fffbeb;
}

.system-notice-level-badge.critical {
  background: rgba(254, 242, 242, 0.14);
  border-color: rgba(254, 242, 242, 0.24);
  color: #fef2f2;
}

.system-notice-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: currentColor;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.92;
}

@media (max-width: 640px) {
  .system-notice-banner {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  }

  .system-notice-toggle {
    margin: 0;
    text-align: right;
  }
}

.system-notice-description-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
}

.system-notice-description-wrap.open {
  opacity: 1;
}

.notice-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: capitalize;
}

.notice-pill.info {
  background: #e0f2fe;
  color: #075985;
}

.notice-pill.warn {
  background: #fef3c7;
  color: #92400e;
}

.notice-pill.critical {
  background: #fee2e2;
  color: #991b1b;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.profile-language-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.profile-language-row label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.profile-language-row select {
  min-width: 148px;
}

.theme-toggle-wrap {
  position: relative;
  width: 46px;
  height: 26px;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.theme-toggle-wrap input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-toggle-slider {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 70%, transparent);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.theme-toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(2, 6, 23, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

#theme-toggle:checked+.theme-toggle-slider {
  background: color-mix(in srgb, var(--brand) 28%, transparent);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
}

#theme-toggle:checked+.theme-toggle-slider::after {
  transform: translateX(20px);
}

#theme-toggle:disabled+.theme-toggle-slider {
  opacity: 0.5;
}

.theme-auto-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.theme-auto-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.leaderboard-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
}

.leaderboard-toggle-wrap input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.leaderboard-toggle-wrap.disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.leaderboard-toggle-wrap input:checked+.theme-toggle-slider {
  background: color-mix(in srgb, var(--brand) 28%, transparent);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
}

.leaderboard-toggle-wrap input:checked+.theme-toggle-slider::after {
  transform: translateX(20px);
}

.activity-reminders-card {
  display: grid;
  gap: 0;
}

.activity-reminder-row {
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.activity-toggle-wrap input+.theme-toggle-slider {
  background: #dc2626;
  border-color: #b91c1c;
}

.activity-toggle-wrap input:checked+.theme-toggle-slider {
  background: #16a34a;
  border-color: #15803d;
}

.onboarding-notification-prompt {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
}

.onboarding-notification-prompt p {
  margin: 0;
  white-space: normal;
}

.onboarding-notification-prompt .btn {
  justify-self: start;
}

.profile-avatar-shell {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-avatar-fallback {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--chip-text);
}

.profile-avatar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.profile-avatar-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-avatar-actions .btn,
.profile-avatar-actions .profile-avatar-label {
  min-height: 42px;
  padding: 0 14px;
}

#profile-avatar-status {
  margin: 0;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.leaderboard-row:hover {
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 35%, var(--chip-border));
}

.leaderboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.leaderboard-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  flex-shrink: 0;
  cursor: pointer;
}

.leaderboard-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--chip-text);
  cursor: pointer;
}

.leaderboard-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Weekly TaxBuddie League */
.league-shell { --league-green:#06c167; display:grid; gap:16px; min-width:0; }
.league-home-subtitle { color:var(--muted); font-size:12px; font-weight:600; line-height:1.5; margin:3px 0 0; }
.league-home-rank { font-size:11px; margin:3px 0 0; }
.league-info-button { align-items:center; background:var(--surface); border:1px solid var(--border); border-radius:999px; color:var(--text); cursor:pointer; display:flex; font-size:10px; font-weight:700; gap:6px; justify-self:start; padding:8px 11px; width:auto; }
.league-info-button:hover { border-color:var(--text); }
.league-ionicon { display:block; flex:0 0 auto; height:1em; width:1em; }
.league-info-button .league-ionicon { height:14px; width:14px; }
.league-info-button .league-ionicon:last-child { margin-left:3px; }
.league-info-dialog { background:var(--surface); border:1px solid var(--border); border-radius:24px; box-shadow:0 24px 80px rgba(0,0,0,.3); color:var(--text); max-height:min(790px,90vh); max-width:700px; padding:20px; width:calc(100% - 28px); }
.league-info-dialog::backdrop { background:rgba(0,0,0,.62); backdrop-filter:blur(7px); }
.league-info-head { align-items:center; display:grid; gap:12px; grid-template-columns:44px minmax(0,1fr) 38px; }
.league-info-mark { align-items:center; background:var(--surface-soft); border-radius:13px; color:var(--text); display:flex; font-size:17px; height:44px; justify-content:center; }
.league-info-mark .league-ionicon { height:22px; width:22px; }
.league-info-head h2 { font-size:19px; letter-spacing:-.03em; margin:0; }
.league-info-head p { color:var(--muted); font-size:11px; margin:4px 0 0; }
.league-info-head > button { align-items:center; background:var(--surface-soft); border:0; border-radius:50%; color:var(--text); cursor:pointer; display:flex; height:38px; justify-content:center; line-height:0; padding:0; width:38px; }
.league-info-head > button .league-ionicon { height:19px; width:19px; }
.league-info-scroll { display:grid; gap:15px; margin:16px 0; max-height:60vh; overflow-y:auto; padding-right:4px; }
.league-info-scroll { scrollbar-color:var(--border) transparent; scrollbar-width:thin; }
.league-info-scroll::-webkit-scrollbar { width:6px; }
.league-info-scroll::-webkit-scrollbar-track { background:transparent; }
.league-info-scroll::-webkit-scrollbar-thumb { background:var(--border); border-radius:999px; }
.league-info-scroll > h3 { font-size:14px; letter-spacing:-.015em; margin:3px 0 -3px; }
.league-info-notice { align-items:center; background:var(--surface-soft); border-radius:17px; display:flex; gap:11px; padding:14px; }
.league-info-notice > span { align-items:center; background:color-mix(in srgb,#06c167 12%,var(--surface)); border-radius:50%; color:#06c167; display:flex; flex:0 0 40px; font-size:19px; height:40px; justify-content:center; }
.league-info-notice > span .league-ionicon { height:19px; width:19px; }
.league-info-notice b { font-size:11px; }
.league-info-notice p { color:var(--muted); font-size:10px; line-height:1.5; margin:3px 0 0; }
.league-info-scores { display:grid; gap:9px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.league-info-scores > div { background:var(--surface-soft); border-radius:16px; display:grid; gap:4px; min-height:112px; padding:13px; }
.league-info-scores > div:last-child:nth-child(odd) { grid-column:1/-1; }
.league-info-score-top { align-items:center; display:flex; justify-content:space-between; }
.league-info-score-top i { align-items:center; background:var(--surface); border-radius:10px; display:flex; font-size:14px; font-style:normal; height:32px; justify-content:center; width:32px; }
.league-info-score-top i .league-ionicon { height:17px; width:17px; }
.league-info-scores b { font-size:11px; margin-top:2px; }
.league-info-scores small { color:var(--muted); font-size:9px; }
.league-info-scores strong { font-size:11px; white-space:nowrap; }
.league-info-features { display:grid; gap:9px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.league-info-features article { background:var(--surface-soft); border-radius:17px; display:grid; gap:6px; padding:14px; }
.league-info-features article > span { align-items:center; background:var(--surface); border-radius:10px; display:flex; font-size:16px; height:34px; justify-content:center; width:34px; }
.league-info-features article > span .league-ionicon { height:18px; width:18px; }
.league-info-features b { font-size:11px; }
.league-info-features p { color:var(--muted); font-size:10px; line-height:1.55; margin:0; }
.league-info-privacy { align-items:center; background:var(--surface-soft); border-radius:17px; color:var(--text) !important; display:flex; font-size:10px; font-weight:700; gap:8px; margin:0; padding:13px; }
.league-info-privacy .league-ionicon { height:17px; width:17px; }
.league-info-dialog > .btn { border-radius:14px; width:100%; }
@media (max-width:520px) {
  .league-info-dialog { border-radius:22px; padding:16px; }
  .league-info-scores { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .league-info-scores > div { min-height:106px; padding:11px; }
  .league-info-features { grid-template-columns:1fr; }
}
.league-tabs { display:flex; gap:8px; overflow-x:auto; padding:1px 1px 3px; scrollbar-width:none; }
.league-tabs::-webkit-scrollbar { display:none; }
.league-tabs button { background:var(--surface); border:1px solid var(--border); border-radius:999px; color:var(--text); cursor:pointer; flex:0 0 auto; font-family:inherit; font-size:11px; font-weight:700; line-height:1.1; padding:10px 14px; width:auto; }
.league-tabs button:hover { border-color:var(--text); }
.league-tabs button.is-active { background:var(--text); border-color:var(--text); color:var(--bg); }
.league-vehicles button { color:var(--muted); font-size:10px; padding:8px 12px; }
.league-vehicles button.is-active { background:var(--surface); border-color:var(--text); color:var(--text); }
.league-podium { display:grid; gap:9px; }
.league-podium > div { align-items:end; display:grid; gap:8px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.league-podium-card { align-items:center; animation:league-rise .4s ease both; background:var(--surface); border:1px solid var(--border); border-radius:5px; box-shadow:none; display:flex; flex-direction:column; gap:8px; min-height:158px; padding:14px 8px; text-align:center; }
.league-podium-card.rank-1 { background:var(--text); border-color:var(--text); color:var(--bg); min-height:184px; padding-top:18px; }
.league-podium-card strong { color:inherit; font-size:11px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.league-podium-card b { color:inherit; font-size:14px; }
.league-place { align-items:center; background:var(--surface-soft); border:1px solid var(--border); border-radius:3px; color:var(--text); display:inline-flex; font-size:10px; font-weight:800; height:26px; justify-content:center; width:26px; }
.rank-1 .league-place { background:var(--bg); border-color:var(--bg); color:var(--text); }
.league-avatar { align-items:center; background:var(--text); border-radius:50%; color:var(--bg); display:inline-flex; flex:0 0 auto; font-weight:800; height:42px; justify-content:center; object-fit:cover; width:42px; }
.league-avatar-podium { height:48px; width:48px; }
.rank-1 .league-avatar-podium { height:58px; width:58px; }
.rank-1 .league-avatar-placeholder { background:var(--bg); color:var(--text); }
.league-celebration { align-items:center; color:var(--league-green); display:flex; font-size:9px; font-weight:800; gap:6px; justify-content:center; letter-spacing:.08em; margin:0; text-align:center; }
.league-celebration span { background:var(--league-green); border-radius:50%; height:7px; width:7px; }
.league-division { background:transparent; border:1px solid var(--border); border-radius:999px; color:var(--muted); display:inline-block; font-size:8px; font-style:normal; font-weight:800; letter-spacing:.04em; padding:4px 7px; text-transform:uppercase; }
.rank-1 .league-division { border-color:color-mix(in srgb,var(--bg) 35%,transparent); color:var(--bg); }
.league-preview { align-items:center; background:var(--surface-soft); border:1px solid var(--border); border-radius:5px; display:flex; font-size:11px; font-weight:700; gap:9px; margin:0; padding:11px 13px; }
.league-preview i { align-items:center; background:var(--text); border-radius:3px; color:var(--bg); display:inline-flex; flex:0 0 25px; font-size:13px; font-style:normal; height:25px; justify-content:center; }
.league-challenge { background:var(--surface); border:1px solid var(--border); border-radius:5px; display:grid; gap:11px; grid-template-columns:1fr auto; padding:16px; }
.league-challenge.is-complete { background:var(--surface); border-color:var(--league-green); }
.league-challenge div:first-child { display:grid; gap:3px; }
.league-challenge small { color:var(--league-green); font-size:9px; font-weight:800; letter-spacing:.1em; }
.league-challenge > span { align-items:center; background:var(--surface-soft); border-radius:3px; color:var(--text); display:flex; font-size:18px; font-weight:800; height:40px; justify-content:center; width:40px; }
.league-challenge.is-complete > span { background:var(--league-green); color:#fff; }
.league-challenge .league-progress { background:var(--surface-soft); border-radius:999px; grid-column:1/-1; height:6px; overflow:hidden; }
.league-progress i { background:var(--league-green); display:block; height:100%; }
.league-challenge p { color:var(--muted); font-size:10px; grid-column:1/-1; margin:0; }
.league-subtitle { font-size:15px; letter-spacing:-.015em; margin:0 0 10px; }
.league-achievements { display:grid; gap:7px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.league-achievement { align-items:center; background:var(--surface); border:1px solid var(--border); border-radius:5px; display:flex; flex-direction:column; gap:7px; min-height:76px; opacity:.5; padding:11px 5px; text-align:center; }
.league-achievement.is-earned { background:color-mix(in srgb,var(--league-green) 8%,var(--surface)); border-color:var(--league-green); opacity:1; }
.league-achievement span { align-items:center; background:var(--surface-soft); border-radius:3px; display:flex; font-size:9px; font-weight:800; height:25px; justify-content:center; width:28px; }
.league-achievement.is-earned span { background:var(--league-green); color:#fff; }
.league-achievement b { font-size:9px; }
.league-list { display:grid; gap:8px; }
.league-row { align-items:center; background:var(--surface); border-radius:5px; box-shadow:none; display:flex; gap:10px; margin:0; min-width:0; padding:11px !important; }
.league-row.is-you { background:color-mix(in srgb,var(--league-green) 7%,var(--surface)); border-color:var(--league-green); }
.league-rank { color:var(--muted); flex:0 0 27px; font-size:12px; }
.league-person { display:grid; flex:1; gap:5px; min-width:0; }
.league-person > strong { font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.league-person > span { color:var(--muted); font-size:9px; }
.league-value { align-items:end; display:grid; flex:0 0 auto; gap:3px; text-align:right; }
.league-value > b { font-size:12px; }
.league-movement { color:var(--muted); font-size:9px; font-weight:800; }
.league-movement.is-up { color:var(--league-green); }
.league-movement.is-down { color:var(--danger); }
.league-movement.is-new { color:var(--text); }
@keyframes league-rise { from { opacity:0; transform:translateY(14px) } to { opacity:1; transform:none } }

@media (max-width:520px) {
  .league-podium-card { min-height:136px; padding-inline:5px; }
  .league-podium-card.rank-1 { min-height:158px; }
  .league-avatar-podium { height:40px; width:40px; }
  .rank-1 .league-avatar-podium { height:50px; width:50px; }
  .league-achievements { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .league-person > span { max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}

.avatar-preview-modal-card {
  width: min(420px, 92vw);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.avatar-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.avatar-preview-copy {
  display: grid;
  gap: 4px;
}

body.has-offline-banner .receipt-modal {
  --modal-top-offset: var(--offline-banner-offset, 56px);
}

body.has-online-sync-banner .receipt-modal {
  --modal-top-offset: var(--online-sync-banner-offset, 56px);
}

body.has-system-notice-banner .receipt-modal {
  --modal-top-offset: var(--system-notice-offset, 56px);
}

body.has-offline-banner.has-system-notice-banner .receipt-modal,
body.has-online-sync-banner.has-system-notice-banner .receipt-modal {
  --modal-top-offset: calc(var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
}

.avatar-preview-shell {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  overflow: hidden;
  position: relative;
}

.avatar-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-preview-fallback {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: var(--chip-text);
}

.avatar-preview-name {
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.15;
}

.avatar-preview-subtitle {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.avatar-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.avatar-preview-stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 88%, var(--brand) 12%);
  display: grid;
  gap: 6px;
}

.avatar-preview-stat-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.avatar-preview-stat strong {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text);
}

@media (max-width: 520px) {
  .leaderboard-toggle-wrap {
    width: 100%;
    justify-content: flex-start;
  }

  .avatar-preview-modal-card {
    width: min(400px, 94vw);
    padding: 14px;
  }

  .avatar-preview-meta {
    grid-template-columns: 1fr;
  }

  .avatar-preview-shell {
    width: 156px;
    height: 156px;
  }

  .avatar-preview-fallback {
    font-size: 2.7rem;
  }
}

.section-title {
  margin-bottom: 6px;
}

.timer-grid {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.timer-label {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 12px;
  padding: 10px;
}

.timer-label span {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--chip-text);
}

.timer-actions {
  margin-top: 10px;
  gap: 12px;
}

.timer-actions .btn {
  min-width: 132px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

#fuel-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

#fuel-list li {
  line-height: 1.35;
}

@media (min-width: 680px) {
  .report-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .admin-status-launch {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .admin-status-launch-live { display: none; }

  .admin-status-overview {
    grid-template-columns: 1fr;
  }

  .admin-status-overview > .btn {
    width: 100%;
  }

  .admin-status-function-list {
    grid-template-columns: 1fr;
  }

  .admin-status-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-status-row-meta {
    grid-column: 2;
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .app-main {
    width: min(640px, 96%);
  }

  .onboarding-value-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-modal-card {
    width: min(420px, 94vw);
    max-height: min(78vh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px));
    padding: 14px;
    gap: 10px;
  }

  .onboarding-value-card {
    padding: 8px;
  }

  .subscribe-benefits {
    grid-template-columns: 1fr;
  }

  .subscribe-modal-card {
    max-height: min(80vh, calc(100dvh - var(--modal-top-offset) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 36px));
  }

  .card {
    padding: 14px;
  }

  .form-grid,
  .form-grid label {
    width: 100%;
    min-width: 0;
  }

  input,
  select,
  button {
    width: 100%;
    min-width: 0;
  }

  input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  input[type="datetime-local"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .period-row > .muted {
    flex-basis: 100%;
  }

  .period-row .period-btn {
    flex: 1 1 calc(50% - 10px);
    width: auto;
  }

  .period-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .period-nav .btn {
    min-width: 0;
    width: 100%;
  }

  #expense-period-range-label {
    min-width: 0;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
  }

  .timer-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .csv-export-periods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .csv-export-periods .csv-period-btn {
    width: auto;
    min-width: 0;
    padding: 7px 8px;
    text-align: center;
  }

  .profile-avatar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: start;
  }

  .profile-avatar-actions .btn,
  .profile-avatar-actions .profile-avatar-label {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  #profile-avatar-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .shift-edit-modal-card {
    width: min(620px, 96vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-height: min(72vh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 28px));
    overflow: auto;
  }

  .expense-edit-modal-card {
    width: min(620px, 96vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-height: min(72vh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 28px));
    overflow: auto;
  }
}

.between {
  justify-content: space-between;
}

.mobile-nav {
  --nav-count: 5;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  width: min(680px, calc(100% - 18px));
  background: var(--nav-bg);
  border-radius: 18px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(var(--nav-count), minmax(0, 1fr));
  gap: 8px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
  z-index: 20;
  overflow: hidden;
}

.mobile-nav-item {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--nav-text);
  border-radius: 12px;
  padding: 10px 6px;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 54px;
  min-width: 0;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-label {
  line-height: 1;
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.66rem;
}

@media (hover: hover) and (pointer: fine) {
  .mobile-nav-item:hover {
    text-decoration: none;
    color: #fff;
    background: var(--nav-hover);
  }
}

.mobile-nav-item.active {
  color: #fff;
}

.mobile-nav-item.nav-locked {
  opacity: 0.45;
  filter: grayscale(0.35);
}

.mobile-nav-item.nav-attention {
  z-index: 2;
  color: #fff7f7;
  background:
    linear-gradient(145deg, rgba(127, 29, 29, 0.98) 0%, rgba(185, 28, 28, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(254, 202, 202, 0.18),
    0 10px 22px rgba(127, 29, 29, 0.24);
  animation: navAttentionFlash 1.15s ease-in-out infinite;
}

.mobile-nav-item.nav-attention .nav-icon,
.mobile-nav-item.nav-attention .nav-label {
  color: #fff7f7;
}

.mobile-nav-item.nav-attention.active {
  background:
    linear-gradient(145deg, rgba(127, 29, 29, 0.98) 0%, rgba(185, 28, 28, 0.96) 100%);
}

.mobile-nav-item.nav-cta {
  background: linear-gradient(135deg, #0f766e, #0ea5a1);
  color: #fff;
}

.mobile-nav-item.nav-cta.on-shift {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.mobile-nav-item.nav-cta.shift-paused {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

.mobile-nav-item.nav-cta.on-shift .nav-label {
  position: relative;
  padding-left: 10px;
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.mobile-nav-item.nav-cta.on-shift .nav-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bbf7d0;
  box-shadow: 0 0 0 0 rgba(187, 247, 208, 0.7);
  animation: navLiveDotPulse 1.1s ease-in-out infinite;
}

.nav-ticker {
  display: block;
  overflow: hidden;
  width: 100%;
}

.nav-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
  animation: navTickerSlide 8s linear infinite;
}

.nav-ticker-track>span {
  display: inline-block;
}

.nav-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  width: calc((100% - (var(--nav-count) * 8px + 8px)) / var(--nav-count));
  height: calc(100% - 16px);
  border-radius: 12px;
  background: var(--nav-active-bg);
  box-shadow: inset 0 0 0 1px var(--nav-active-border);
  pointer-events: none;
  transform: translateX(calc(var(--from-index, 0) * (100% + 8px)));
}

.mobile-nav.nav-animate .nav-indicator {
  transform: translateX(calc(var(--to-index, 0) * (100% + 8px)));
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes navLiveDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(187, 247, 208, 0.65);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(187, 247, 208, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(187, 247, 208, 0);
  }
}

@keyframes navAttentionFlash {
  0%, 100% {
    opacity: 1;
    box-shadow:
      inset 0 0 0 1px rgba(254, 202, 202, 0.18),
      0 10px 22px rgba(127, 29, 29, 0.24);
  }

  50% {
    opacity: 0.62;
    box-shadow:
      inset 0 0 0 1px rgba(254, 202, 202, 0.08),
      0 6px 14px rgba(127, 29, 29, 0.14);
  }
}

@keyframes navTickerSlide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 8px));
  }
}

@keyframes shiftPulseRing {
  0% {
    opacity: 0.38;
    transform: translateY(-50%) scale(0.5);
  }

  80%, 100% {
    opacity: 0;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes shiftPulseDot {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes noticeInfoDotPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.34);
  }

  70% {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(96, 165, 250, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
  }
}

@media (min-width: 900px) {
  .app-main {
    width: min(760px, 94%);
  }
}

@media (max-width: 768px) {
  .mobile-nav-item.nav-cta.on-shift .nav-label {
    padding-left: 12px;
  }

  .mobile-nav-item.nav-cta.on-shift .nav-label::before {
    left: 2px;
  }
}

@media (max-width: 420px) {
  .mobile-nav {
    gap: 4px;
    padding: 6px;
    width: calc(100% - 16px);
  }

  .mobile-nav-item {
    min-height: 52px;
    padding: 8px 2px;
  }

  .nav-label {
    font-size: 0.61rem;
  }

  .nav-indicator {
    left: 6px;
    top: 6px;
    width: calc((100% - (var(--nav-count) * 4px + 8px)) / var(--nav-count));
    height: calc(100% - 12px);
    transform: translateX(calc(var(--from-index, 0) * (100% + 4px)));
  }

  .mobile-nav.nav-animate .nav-indicator {
    transform: translateX(calc(var(--to-index, 0) * (100% + 4px)));
  }
}

.page-loader {
  position: fixed;
  z-index: 999;
  opacity: 0;
  transition: opacity 170ms ease;
  pointer-events: none;
}

.page-loader.visible {
  opacity: 1;
}

.db-status-chip {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  font-size: 0.8rem;
}

.offline-status-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  border-radius: 0;
  border: 0;
  background: #7f1d1d;
  color: #fef2f2;
  box-shadow:
    0 10px 24px rgba(69, 10, 10, 0.22);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  filter: blur(6px);
  transform-origin: top center;
}

.offline-status-banner.is-visible {
  animation: offlineBannerDropIn 380ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.offline-status-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fecaca;
  background: rgba(69, 10, 10, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 4px rgba(69, 10, 10, 0.18);
}

.offline-status-banner.is-visible .offline-status-icon {
  animation: offlineBannerIconPulse 1.6s ease-in-out infinite;
}

.offline-status-icon svg {
  width: 18px;
  height: 18px;
}

.offline-status-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.offline-status-copy strong {
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.offline-status-copy span {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(254, 226, 226, 0.88);
}

@keyframes offlineBannerDropIn {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
    filter: blur(6px);
  }
  58% {
    opacity: 1;
    transform: translateY(2px) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes offlineBannerIconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      0 0 0 4px rgba(127, 29, 29, 0.18);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      0 0 0 7px rgba(127, 29, 29, 0.26);
  }
}

.offline-sync-chip {
  position: fixed;
  top: calc(74px + env(safe-area-inset-top, 0px));
  left: 14px;
  z-index: 2050;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  background: rgba(239, 246, 255, 0.98);
  color: #1d4ed8;
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 700;
  transition: top 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.offline-sync-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.8px solid rgba(37, 99, 235, 0.2);
  border-top-color: #2563eb;
  border-right-color: #2563eb;
  flex: 0 0 12px;
}

.offline-sync-chip.is-syncing .offline-sync-spinner {
  animation: offlineSyncSpin 0.85s linear infinite;
}

.online-sync-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2120;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  border-radius: 0;
  border: 0;
  background: #166534;
  color: #f0fdf4;
  box-shadow: 0 10px 24px rgba(20, 83, 45, 0.22);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  filter: blur(6px);
  transform-origin: top center;
}

.online-sync-banner.is-visible {
  animation: offlineBannerDropIn 380ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.online-sync-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  font-size: 0.92rem;
  font-weight: 900;
  background: rgba(20, 83, 45, 0.92);
  color: #dcfce7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 4px rgba(20, 83, 45, 0.18);
}

.online-sync-banner.is-visible .online-sync-icon {
  animation: offlineBannerIconPulse 1.6s ease-in-out infinite;
}

.online-sync-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.online-sync-copy strong {
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.online-sync-copy span {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(220, 252, 231, 0.88);
}

@keyframes offlineSyncSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes offlineSyncPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.offline-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  animation: navLiveDotPulse 1.2s ease-in-out infinite;
}

.db-status-chip.db-status-chip--hero {
  position: static;
  padding: 2px 8px;
  min-height: 22px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  gap: 6px;
}

.db-status-chip.db-status-chip--beta {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(255, 247, 237, 0.92);
  color: #9a3412;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.08);
}

.db-status-chip.db-status-chip--version {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(15, 23, 42, 0.92);
  color: #99f6e4;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.08);
}

.db-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
}

.db-status-chip.ok .db-status-dot {
  background: #22c55e;
  animation: navLiveDotPulse 1.1s ease-in-out infinite;
}

.db-status-chip.warn .db-status-dot {
  background: #f59e0b;
}

.db-status-chip.err .db-status-dot {
  background: #ef4444;
}

.db-refresh-chip {
  position: fixed;
  top: 52px;
  right: 14px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #fca5a5;
  background: #fff1f2;
  color: #9f1239;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 700;
  transition: top 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-loader-refresh-chip {
  position: fixed;
  top: 52px;
  right: 14px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 700;
  transition: top 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.global-data-error-banner {
  position: fixed;
  top: 92px;
  left: 14px;
  right: 14px;
  z-index: 1001;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #7f1d1d;
  box-shadow: var(--shadow);
  transition: top 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.global-data-error-content {
  min-width: 0;
}

.global-data-error-content strong {
  display: block;
  line-height: 1.1;
}

.global-data-error-text {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.global-data-error-meta {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  opacity: 0.9;
}

.global-data-error-dismiss {
  white-space: nowrap;
  padding: 6px 10px;
}

.toast-root {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 2500;
  display: grid;
  gap: 10px;
  width: min(92vw, 360px);
  pointer-events: none;
  transition: top 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.has-offline-banner .db-status-chip:not(.db-status-chip--hero) {
  top: calc(12px + var(--offline-banner-offset, 56px));
}

body.has-online-sync-banner .db-status-chip:not(.db-status-chip--hero) {
  top: calc(12px + var(--online-sync-banner-offset, 56px));
}

body.has-system-notice-banner .db-status-chip:not(.db-status-chip--hero) {
  top: calc(12px + var(--system-notice-offset, 56px));
}

body.has-offline-sync-chip .db-status-chip:not(.db-status-chip--hero) {
  top: 60px;
}

body.has-offline-banner .db-refresh-chip,
body.has-offline-banner .page-loader-refresh-chip {
  top: calc(50px + var(--offline-banner-offset, 56px));
}

body.has-online-sync-banner .db-refresh-chip,
body.has-online-sync-banner .page-loader-refresh-chip {
  top: calc(50px + var(--online-sync-banner-offset, 56px));
}

body.has-system-notice-banner .db-refresh-chip,
body.has-system-notice-banner .page-loader-refresh-chip {
  top: calc(50px + var(--system-notice-offset, 56px));
}

body.has-offline-sync-chip .db-refresh-chip,
body.has-offline-sync-chip .page-loader-refresh-chip {
  top: 98px;
}

body.has-offline-banner .global-data-error-banner {
  top: calc(90px + var(--offline-banner-offset, 56px));
}

body.has-online-sync-banner .global-data-error-banner {
  top: calc(90px + var(--online-sync-banner-offset, 56px));
}

body.has-system-notice-banner .global-data-error-banner {
  top: calc(90px + var(--system-notice-offset, 56px));
}

body.has-offline-sync-chip .global-data-error-banner {
  top: 138px;
}

body.has-offline-banner .toast-root {
  top: calc(14px + env(safe-area-inset-top, 0px) + var(--offline-banner-offset, 56px));
}

body.has-online-sync-banner .toast-root {
  top: calc(14px + env(safe-area-inset-top, 0px) + var(--online-sync-banner-offset, 56px));
}

body.has-system-notice-banner .toast-root {
  top: calc(14px + env(safe-area-inset-top, 0px) + var(--system-notice-offset, 56px));
}

body.has-offline-sync-chip .toast-root {
  top: calc(62px + env(safe-area-inset-top, 0px));
}

body.has-offline-banner.has-offline-sync-chip .offline-sync-chip {
  top: calc(6px + env(safe-area-inset-top, 0px) + var(--offline-banner-offset, 56px));
}

body.has-offline-banner.has-offline-sync-chip .db-status-chip:not(.db-status-chip--hero) {
  top: calc(50px + var(--offline-banner-offset, 56px));
}

body.has-offline-banner.has-offline-sync-chip .db-refresh-chip,
body.has-offline-banner.has-offline-sync-chip .page-loader-refresh-chip {
  top: calc(88px + var(--offline-banner-offset, 56px));
}

body.has-offline-banner.has-offline-sync-chip .global-data-error-banner {
  top: calc(128px + var(--offline-banner-offset, 56px));
}

body.has-offline-banner.has-offline-sync-chip .toast-root {
  top: calc(52px + env(safe-area-inset-top, 0px) + var(--offline-banner-offset, 56px));
}

body.has-offline-banner.has-system-notice-banner .system-notice-banner,
body.has-online-sync-banner.has-system-notice-banner .system-notice-banner {
  top: var(--offline-banner-offset, var(--online-sync-banner-offset, 56px));
}

body.has-offline-banner.has-system-notice-banner .db-status-chip:not(.db-status-chip--hero),
body.has-online-sync-banner.has-system-notice-banner .db-status-chip:not(.db-status-chip--hero) {
  top: calc(12px + var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
}

body.has-offline-banner.has-system-notice-banner .db-refresh-chip,
body.has-offline-banner.has-system-notice-banner .page-loader-refresh-chip,
body.has-online-sync-banner.has-system-notice-banner .db-refresh-chip,
body.has-online-sync-banner.has-system-notice-banner .page-loader-refresh-chip {
  top: calc(50px + var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
}

body.has-offline-banner.has-system-notice-banner .global-data-error-banner,
body.has-online-sync-banner.has-system-notice-banner .global-data-error-banner {
  top: calc(90px + var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
}

body.has-offline-banner.has-system-notice-banner .toast-root,
body.has-online-sync-banner.has-system-notice-banner .toast-root {
  top: calc(14px + env(safe-area-inset-top, 0px) + var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
}

.toast {
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
  filter: blur(6px);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.24);
  transform-origin: top right;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    filter 0.22s ease;
}

.toast-content {
  display: block;
}

.toast-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  transform-origin: left center;
  background: rgba(226, 232, 240, 0.82);
  opacity: 0.9;
}

.toast.is-visible {
  animation: toastDropIn 420ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  filter: blur(0);
  opacity: 1;
}

.toast.is-visible .toast-progress {
  animation: toastProgressShrink linear forwards;
}

.toast:not(.is-visible) {
  animation: toastLiftOut 220ms ease forwards;
}

.toast--success {
  background: linear-gradient(135deg, rgba(12, 95, 70, 0.98) 0%, rgba(16, 138, 94, 0.98) 100%);
}

.toast--success .toast-progress {
  background: rgba(187, 247, 208, 0.94);
}

.toast--error {
  background: linear-gradient(135deg, rgba(122, 28, 28, 0.98) 0%, rgba(185, 28, 28, 0.98) 100%);
}

.toast--error .toast-progress {
  background: rgba(254, 202, 202, 0.94);
}

.toast--info {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.98) 0%, rgba(51, 65, 85, 0.98) 100%);
}

.toast--info .toast-progress {
  background: rgba(191, 219, 254, 0.94);
}

@keyframes toastDropIn {
  0% {
    opacity: 0;
    transform: translateY(-22px) scale(0.94);
    filter: blur(6px);
  }
  58% {
    opacity: 1;
    transform: translateY(3px) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes toastLiftOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    filter: blur(3px);
  }
}

@keyframes toastProgressShrink {
  0% {
    transform: scaleX(1);
    opacity: 0.92;
  }
  85% {
    transform: scaleX(0.08);
    opacity: 0.82;
  }
  100% {
    transform: scaleX(0);
    opacity: 0.4;
  }
}

.admin-notice-row {
  cursor: pointer;
  transition: background-color 140ms ease;
}

.admin-notice-row:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.admin-impact-section {
  display: grid;
  gap: 14px;
}

.admin-impact-heading {
  align-items: flex-start;
  gap: 14px;
}

.admin-impact-heading h2,
.admin-impact-heading p {
  margin-top: 0;
}

.admin-impact-heading p {
  margin-bottom: 0;
}

.admin-impact-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-impact-summary > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.admin-impact-summary strong {
  font-size: 1.15rem;
}

.admin-impact-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-impact-refresh-schedule {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-soft));
}

.admin-impact-refresh-schedule > span:last-child {
  display: grid;
  gap: 2px;
}

.admin-impact-refresh-schedule small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.admin-impact-refresh-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  color: var(--brand-2);
  font-size: 1.2rem;
  font-weight: 800;
}

.admin-impact-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #d97706 42%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, #f59e0b 10%, var(--surface-soft));
  font-size: 0.83rem;
  line-height: 1.55;
}

.admin-impact-years {
  display: grid;
  gap: 10px;
}

.admin-impact-years h3 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.admin-impact-year {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.admin-impact-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-impact-current {
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #16a34a 12%, var(--surface));
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.admin-impact-year-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-impact-year-metric {
  display: grid;
  gap: 2px;
}

.admin-impact-year-metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.admin-impact-year-metric strong {
  color: var(--brand-2);
  font-size: 0.9rem;
}

.admin-impact-empty {
  margin: 0;
  padding: 10px 0;
  color: var(--muted);
}

@media (max-width: 520px) {
  .admin-impact-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-impact-summary,
  .admin-impact-year-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .admin-impact-summary,
  .admin-impact-year-metrics {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .global-data-error-banner {
    left: auto;
    right: 14px;
    width: min(560px, calc(100vw - 28px));
  }
}

@media (max-width: 640px) {
  .offline-status-banner {
    top: 0;
    left: 0;
    right: 0;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  }

  .offline-sync-chip {
    top: calc(66px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    width: fit-content;
    max-width: calc(100vw - 24px);
  }

  .toast-root {
    right: 12px;
    left: 12px;
    width: auto;
    top: calc(12px + env(safe-area-inset-top, 0px));
  }

  body.has-offline-banner .db-status-chip:not(.db-status-chip--hero) {
    top: calc(12px + var(--offline-banner-offset, 56px));
  }

  body.has-online-sync-banner .db-status-chip:not(.db-status-chip--hero) {
    top: calc(12px + var(--online-sync-banner-offset, 56px));
  }

  body.has-system-notice-banner .db-status-chip:not(.db-status-chip--hero) {
    top: calc(12px + var(--system-notice-offset, 56px));
  }

  body.has-offline-sync-chip .db-status-chip:not(.db-status-chip--hero) {
    top: 78px;
  }

  body.has-offline-banner .db-refresh-chip,
  body.has-offline-banner .page-loader-refresh-chip {
    top: calc(50px + var(--offline-banner-offset, 56px));
  }

  body.has-online-sync-banner .db-refresh-chip,
  body.has-online-sync-banner .page-loader-refresh-chip {
    top: calc(50px + var(--online-sync-banner-offset, 56px));
  }

  body.has-system-notice-banner .db-refresh-chip,
  body.has-system-notice-banner .page-loader-refresh-chip {
    top: calc(50px + var(--system-notice-offset, 56px));
  }

  body.has-offline-sync-chip .db-refresh-chip,
  body.has-offline-sync-chip .page-loader-refresh-chip {
    top: 116px;
  }

  body.has-offline-banner .global-data-error-banner {
    top: calc(90px + var(--offline-banner-offset, 56px));
  }

  body.has-online-sync-banner .global-data-error-banner {
    top: calc(90px + var(--online-sync-banner-offset, 56px));
  }

  body.has-system-notice-banner .global-data-error-banner {
    top: calc(90px + var(--system-notice-offset, 56px));
  }

  body.has-offline-sync-chip .global-data-error-banner {
    top: 156px;
  }

  body.has-offline-banner .toast-root {
    top: calc(14px + env(safe-area-inset-top, 0px) + var(--offline-banner-offset, 56px));
  }

  body.has-online-sync-banner .toast-root {
    top: calc(14px + env(safe-area-inset-top, 0px) + var(--online-sync-banner-offset, 56px));
  }

  body.has-system-notice-banner .toast-root {
    top: calc(14px + env(safe-area-inset-top, 0px) + var(--system-notice-offset, 56px));
  }

  body.has-offline-sync-chip .toast-root {
    top: calc(82px + env(safe-area-inset-top, 0px));
  }

  body.has-offline-banner.has-offline-sync-chip .offline-sync-chip {
    top: calc(6px + env(safe-area-inset-top, 0px) + var(--offline-banner-offset, 56px));
  }

  body.has-offline-banner.has-offline-sync-chip .db-status-chip:not(.db-status-chip--hero) {
    top: calc(50px + var(--offline-banner-offset, 56px));
  }

  body.has-offline-banner.has-offline-sync-chip .db-refresh-chip,
  body.has-offline-banner.has-offline-sync-chip .page-loader-refresh-chip {
    top: calc(88px + var(--offline-banner-offset, 56px));
  }

  body.has-offline-banner.has-offline-sync-chip .global-data-error-banner {
    top: calc(128px + var(--offline-banner-offset, 56px));
  }

  body.has-offline-banner.has-offline-sync-chip .toast-root {
    top: calc(52px + env(safe-area-inset-top, 0px) + var(--offline-banner-offset, 56px));
  }

  body.has-offline-banner.has-system-notice-banner .db-status-chip:not(.db-status-chip--hero),
  body.has-online-sync-banner.has-system-notice-banner .db-status-chip:not(.db-status-chip--hero) {
    top: calc(12px + var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
  }

  body.has-offline-banner.has-system-notice-banner .db-refresh-chip,
  body.has-offline-banner.has-system-notice-banner .page-loader-refresh-chip,
  body.has-online-sync-banner.has-system-notice-banner .db-refresh-chip,
  body.has-online-sync-banner.has-system-notice-banner .page-loader-refresh-chip {
    top: calc(50px + var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
  }

  body.has-offline-banner.has-system-notice-banner .global-data-error-banner,
  body.has-online-sync-banner.has-system-notice-banner .global-data-error-banner {
    top: calc(90px + var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
  }

  body.has-offline-banner.has-system-notice-banner .toast-root,
  body.has-online-sync-banner.has-system-notice-banner .toast-root {
    top: calc(14px + env(safe-area-inset-top, 0px) + var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
  }
}

.page-loader-top-right {
  top: 14px;
  right: 14px;
}

.page-loader-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.page-loader-card p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.loader-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(15, 118, 110, 0.25);
  border-top-color: var(--brand);
  animation: loaderSpin 0.8s linear infinite;
}

.loader-success {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.page-loader.is-success .loader-spinner {
  display: none;
}

.page-loader.is-success .loader-success {
  display: inline-block;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.landing-page {
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  background: #f5f6f7;
  color: #0f1115;
}

.landing-page .site-footer {
  border-top: 1px solid #dcdfe4;
}

.auth-page {
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 92% 5%, rgba(6, 189, 109, 0.12) 0%, rgba(6, 189, 109, 0) 32%),
    radial-gradient(circle at 8% 18%, rgba(255, 128, 0, 0.1) 0%, rgba(255, 128, 0, 0) 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f6f7 100%);
  color: #0f1115;
  min-height: 100vh;
}

.auth-page .btn {
  border-radius: 999px;
  font-weight: 700;
}

.auth-main {
  padding-top: 34px;
  transition: padding-top 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.has-offline-banner .auth-main {
  padding-top: calc(34px + var(--offline-banner-offset, 56px));
}

body.has-online-sync-banner .auth-main {
  padding-top: calc(34px + var(--online-sync-banner-offset, 56px));
}

body.has-system-notice-banner .auth-main {
  padding-top: calc(34px + var(--system-notice-offset, 56px));
}

body.has-offline-banner.has-system-notice-banner .auth-main,
body.has-online-sync-banner.has-system-notice-banner .auth-main {
  padding-top: calc(34px + var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .auth-shell,
html[dir="rtl"] .landing-main,
html[dir="rtl"] .app-main {
  direction: rtl;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="date"],
html[dir="rtl"] input[type="datetime-local"] {
  direction: ltr;
  text-align: left;
}

.auth-shell {
  animation: landingReveal 380ms ease both;
}

.auth-shell h1 {
  letter-spacing: -0.02em;
}

.auth-card {
  border: 1px solid #dce2e8;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.07);
}

.auth-card input {
  border-radius: 12px;
}

.auth-help-note {
  margin: 14px 0 0;
  color: #4b5563;
  font-weight: 600;
}

.auth-help-note a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.auth-help-note a:hover {
  text-decoration: underline;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.password-toggle-btn:hover {
  background: #eef2f7;
  color: #111827;
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.password-toggle-btn::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: rotate(-28deg) scaleX(0);
  transform-origin: center;
  transition: transform 140ms ease;
}

.password-toggle-btn.is-toggled::after {
  transform: rotate(-28deg) scaleX(1);
}

.landing-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #dcdfe4;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1200;
}

.landing-header .logo {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-page .btn {
  border-radius: 999px;
  font-weight: 700;
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
}

.landing-page .btn:hover {
  background: #115e59;
  border-color: #115e59;
  transform: translateY(-1px);
  text-decoration: none;
}

.landing-page .btn.btn-outline {
  background: #ffffff;
  color: #111111;
  border-color: #111111;
}

.landing-page .btn.btn-outline:hover {
  background: #f3f4f6;
  text-decoration: none;
}

.landing-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
  width: 100%;
}

.landing-primary-actions > .btn {
  min-height: 50px;
  min-width: 0;
  padding-inline: 18px;
  text-align: center;
}

.landing-page .btn.btn-app-store {
  background: linear-gradient(145deg, #18181b 0%, #050505 68%, #111827 100%);
  border: 1px solid #303038;
  color: #ffffff;
  gap: 11px;
  grid-column: 1 / -1;
  min-height: 62px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

@media (max-width: 520px) {
  .landing-primary-actions {
    grid-template-columns: 1fr;
  }
}

.landing-page .btn.btn-app-store:hover {
  background: linear-gradient(145deg, #24242a 0%, #09090b 68%, #172033 100%);
  border-color: #4b5563;
  color: #ffffff;
}

.btn-app-store::after {
  animation: appStoreButtonShine 3.8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  content: "";
  inset: -45% auto -45% -34%;
  pointer-events: none;
  position: absolute;
  transform: rotate(16deg);
  width: 24%;
  z-index: 0;
}

.app-store-icon {
  flex: 0 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 2rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.app-store-copy {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  position: relative;
  text-align: left;
  z-index: 1;
}

.app-store-copy small {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
  opacity: 0.82;
}

.app-store-copy strong {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

@keyframes appStoreButtonShine {
  0%,
  56% {
    left: -34%;
  }

  78%,
  100% {
    left: 118%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #shift-status.status-on-shift::before,
  #shift-status.status-paused::before,
  #shift-status.status-on-shift::after,
  #shift-status.status-paused::after {
    animation: none;
  }

  .btn-app-store::after,
  .statement-import-contributor-reward::after {
    animation: none;
    display: none;
  }
}

.landing-main {
  background:
    radial-gradient(circle at 92% 5%, rgba(6, 189, 109, 0.15) 0%, rgba(6, 189, 109, 0) 32%),
    radial-gradient(circle at 8% 18%, rgba(255, 128, 0, 0.12) 0%, rgba(255, 128, 0, 0) 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f6f7 100%);
  transition: padding-top 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.has-offline-banner .landing-main {
  padding-top: var(--offline-banner-offset, 56px);
}

body.has-online-sync-banner .landing-main {
  padding-top: var(--online-sync-banner-offset, 56px);
}

body.has-system-notice-banner .landing-main {
  padding-top: var(--system-notice-offset, 56px);
}

body.has-offline-banner.has-system-notice-banner .landing-main,
body.has-online-sync-banner.has-system-notice-banner .landing-main {
  padding-top: calc(var(--system-notice-offset, 56px) + var(--offline-banner-offset, var(--online-sync-banner-offset, 56px)));
}

/* OTA 4-6 web parity */
.app-hero-badges {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.db-status-chip.db-status-chip--hero {
  min-width: 82px;
  justify-content: flex-start;
}

.db-status-label {
  opacity: 1;
  transition: opacity 140ms ease, transform 140ms ease;
}

.db-status-label.is-changing {
  opacity: 0;
  transform: translateY(2px);
}

.vehicle-picker {
  max-width: 100%;
  min-inline-size: 0;
  min-width: 0;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  width: 100%;
}

.vehicle-picker legend {
  max-width: 100%;
  padding: 0 6px;
  font-weight: 800;
  white-space: normal;
}

.vehicle-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.vehicle-option {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  width: 100%;
}

.vehicle-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.vehicle-option input {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  min-width: 0;
  position: absolute;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  width: 1px;
}

.vehicle-option-icon {
  font-size: 1.45rem;
}

.mileage-mode-picker {
  max-width: 100%;
  min-inline-size: 0;
  min-width: 0;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  width: 100%;
}

.mileage-mode-picker legend {
  max-width: 100%;
  padding: 0 6px;
  font-weight: 800;
  white-space: normal;
}

.mileage-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.mileage-mode-option {
  display: grid;
  gap: 3px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  width: 100%;
}

.vehicle-picker > small,
.mileage-mode-option small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#start-mileage-field,
#start-mileage-field .timer-label {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.mileage-mode-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.mileage-mode-option input {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  min-width: 0;
  position: absolute;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  width: 1px;
}

.mileage-mode-option small,
.shift-defaults-toggle small {
  color: var(--muted);
  line-height: 1.35;
}

.mileage-reason-field {
  margin: 10px 0 14px;
}

.mileage-reason-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 750;
}

.rental-bike-expense-callout {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.rental-bike-expense-callout[hidden] { display: none; }

.rental-bike-expense-callout .btn { justify-self: start; }

.shift-defaults-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.shift-defaults-toggle > input {
  flex: 0 0 20px;
  height: 20px;
  margin: 1px 0 0;
  width: 20px;
}

.shift-defaults-toggle span {
  display: grid;
  gap: 2px;
}

.fuel-mileage-na {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}

.fuel-form-actions,
.fuel-entry-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#fuel-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#fuel-list li > div:first-child {
  display: grid;
  gap: 3px;
}

#fuel-list li span {
  color: var(--muted);
  font-size: 0.82rem;
}

.fuel-entry-actions .btn {
  min-height: 36px;
  padding: 7px 10px;
}

.fuel-delete-btn {
  color: var(--danger, #dc2626);
}

@media (max-width: 620px) {
  .mileage-mode-grid {
    grid-template-columns: 1fr;
  }

  .mileage-mode-option {
    min-height: 68px;
  }

  #fuel-list li {
    align-items: flex-start;
    flex-direction: column;
  }
}

.free-limit-note {
  padding: 10px 12px;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.82rem;
  line-height: 1.45;
}

.home-weather-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.home-weather-summary:hover {
  text-decoration: none;
}

.home-weather-summary.has-warning {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.home-weather-summary.danger {
  border-color: #fda4af;
  background: #fff1f2;
  color: #be123c;
}

:root[data-theme="dark"] .home-weather-summary.has-warning {
  background: color-mix(in srgb, #f59e0b 12%, var(--surface));
}

.home-weather-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 10%, var(--surface));
  font-size: 1.55rem;
}

.home-weather-copy {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.home-weather-copy strong {
  font-size: 0.82rem;
  color: var(--text);
}

.home-weather-copy span {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
}

.home-kpi-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-kpi-title-row h3 {
  margin-bottom: 0;
}

.home-primary-stats {
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-primary-stats > .home-kpi-card {
  width: 100%;
  height: 132px;
  min-height: 132px;
  justify-content: flex-start;
  overflow: hidden;
  padding: 16px;
}

@media (min-width: 680px) {
  .home-primary-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-primary-stats > .home-today-card {
  background: #0b0b0b;
  border-color: #202020;
  color: #fff;
}

.home-today-card #home-today-view h3,
.home-today-card #kpi-today {
  color: #fff;
}

.home-today-card #home-today-comparison:not(.delta-up):not(.delta-down):not(.delta-neutral) {
  color: #b7b7b7;
}

.home-today-card #home-today-comparison.delta-neutral { color: #f6c344; }

.home-primary-stats > .home-kpi-card > h3,
.home-primary-stats > .home-kpi-card > p,
.home-primary-stats .home-kpi-title-row {
  width: 100%;
}

.home-primary-stats > .home-kpi-card > h3,
.home-primary-stats .home-kpi-title-row h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0;
  min-height: 1.25em;
}

.home-primary-stats .home-kpi-card [data-rolling-number] {
  margin-top: 10px;
}

.home-rotating-tax-card > h3,
.home-rotating-tax-card > .muted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-trajectory {
  width: 72px;
  height: 36px;
  color: #16a34a;
}

.home-trajectory.down {
  color: #ef2b2d;
}

.home-trajectory.neutral {
  display: grid;
  place-items: center;
  color: #f6c344;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.home-trajectory svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.home-trajectory path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 110;
  stroke-dashoffset: 110;
  animation: trajectoryDraw 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.home-trajectory .trajectory-head { stroke-width: 4; }

.home-rotating-tax-card > * {
  transition: opacity 150ms ease, transform 150ms ease;
}

.home-rotating-tax-card.is-changing > * {
  opacity: 0;
  transform: translateY(3px);
}

@keyframes trajectoryDraw {
  0% { stroke-dashoffset: 110; opacity: 0; }
  5% { opacity: 1; }
  34%, 94% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.weather-setup-modal-card { width: min(94vw, 470px); display: grid; gap: 14px; }

.weekly-summary-modal-backdrop {
  background: rgba(4, 18, 28, 0.72);
}

.weekly-summary-modal-card {
  width: min(460px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 16px;
  display: grid;
  gap: 16px;
}

.weekly-summary-icon {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--brand-2);
}

.weekly-summary-icon svg {
  width: 27px;
  height: 27px;
}

.weekly-summary-heading {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.weekly-summary-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--brand-2);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.weekly-summary-pro-badge {
  padding: 4px 8px;
  border: 1px solid #e79200;
  border-radius: 999px;
  background: #f5a300;
  color: #111827;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.weekly-summary-heading h3 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.3;
  text-align: center;
}

.weekly-summary-heading #weekly-summary-dates {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 600;
}

.weekly-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.weekly-summary-grid article {
  display: grid;
  gap: 4px;
  min-width: 46%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.weekly-summary-grid span {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
}

.weekly-summary-grid strong {
  font-size: 1.19rem;
}

.weekly-summary-grid strong.negative {
  color: var(--danger);
}

.weekly-summary-encouragement {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.weekly-summary-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 600;
}

#weekly-summary-done {
  width: 100%;
  min-height: 46px;
}

.profile-details-card {
  display: grid;
  gap: 14px;
}

.profile-details-card > .row.between:first-child {
  min-height: 82px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.profile-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface-soft);
}

.profile-meta-row,
.profile-meta-row-inline {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  min-height: 70px;
  gap: 5px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.profile-meta-row:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.profile-meta-value {
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.profile-weather-card {
  display: grid;
  gap: 12px;
}

.profile-weather-state {
  margin: 0;
  font-weight: 750;
}

.report-stat-comparison {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.report-comparison-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.report-comparison-trajectory {
  display: block;
  flex: 0 0 58px;
  width: 58px;
  height: 30px;
  overflow: hidden;
  color: #16a34a;
}

.report-comparison-trajectory.down { color: #ef2b2d; }

.report-comparison-neutral {
  flex: 0 0 58px;
  width: 58px;
  color: #ca8a04;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 30px;
  text-align: center;
}

.report-comparison-trajectory svg { width: 100%; height: 100%; overflow: visible; }

.report-comparison-trajectory path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  animation: trajectoryDraw 3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.advanced-insights-card {
  display: grid;
  gap: 14px;
}

.tax-pot-tracker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.tax-pot-tracker .muted { grid-column: 1 / -1; }

.advanced-insights-list {
  display: grid;
  gap: 10px;
}

.advanced-insight {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #93c5fd;
  border-left-width: 4px;
  border-radius: 13px;
  background: #eff6ff;
}

.advanced-insight.action { border-color: #fda4af; background: #fff1f2; }
.advanced-insight.opportunity { border-color: #fcd34d; background: #fffbeb; }
.advanced-insight.progress { border-color: #86efac; background: #f0fdf4; }

:root[data-theme="dark"] .advanced-insight { background: color-mix(in srgb, #2563eb 11%, var(--surface)); }
:root[data-theme="dark"] .advanced-insight.action { background: color-mix(in srgb, #e11d48 10%, var(--surface)); }
:root[data-theme="dark"] .advanced-insight.opportunity { background: color-mix(in srgb, #f59e0b 10%, var(--surface)); }
:root[data-theme="dark"] .advanced-insight.progress { background: color-mix(in srgb, #16a34a 10%, var(--surface)); }

.advanced-insight-category {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advanced-insight p { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.55; }
.advanced-insight-action { width: fit-content; font-size: 0.78rem; font-weight: 800; }

.pro-locked-panel {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid #fdba74;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
}

.pro-locked-panel span {
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .profile-meta-grid { grid-template-columns: 1fr; }
  .profile-meta-row:nth-child(odd) { border-right: 0; }
}

.report-stats > .card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#exp-rate-status,
.report-stats [id^="change-"] {
  font-size: 0.95rem;
  line-height: 1.45;
}

.expense-claim-stats {
  align-items: stretch;
}

.expense-claim-stats .vehicle-claim-card {
  gap: 10px;
  grid-column: 1 / -1;
  justify-content: flex-start;
  min-height: 0;
}

.vehicle-claim-card > #exp-mileage {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.vehicle-claim-breakdown {
  display: grid;
  gap: 8px;
}

.vehicle-claim-row {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 11px 12px;
}

.vehicle-claim-icon {
  align-items: center;
  background: var(--surface);
  border-radius: 11px;
  display: flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.vehicle-claim-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.vehicle-claim-copy strong,
.vehicle-claim-amount {
  font-size: .9rem;
  font-weight: 800;
}

.vehicle-claim-copy small {
  color: var(--muted);
  font-size: .76rem;
}

.vehicle-claim-threshold {
  background: var(--surface-soft);
  border-radius: 10px;
  color: var(--muted);
  font-size: .78rem !important;
  line-height: 1.45 !important;
  padding: 9px 11px;
}

.report-vehicle-badge {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 800;
  gap: 5px;
  padding: 6px 9px;
  white-space: nowrap;
}

.report-mileage-na {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

@media (min-width: 680px) {
  .expense-claim-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .app-hero {
    padding-top: 0;
  }

  .app-hero-badges {
    max-width: 100%;
  }

  .vehicle-picker-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-option {
    min-height: 54px;
    flex-direction: row;
  }

  .report-stats > .card {
    min-height: 116px;
  }
}

.landing-main .section {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 520ms ease;
  transition-delay: var(--landing-reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.landing-main .section.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.landing-hero {
  padding-top: 48px;
}

.landing-hero .kicker {
  color: #006641;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.landing-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.landing-lead {
  font-size: 1.06rem;
  line-height: 1.6;
  color: #4b5563;
  max-width: 62ch;
}

.landing-platform-copy {
  margin: 16px 0 2px;
  color: #4b5563;
  font-weight: 700;
  max-width: 62ch;
}

.landing-logo-rail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 2px;
  max-width: 62ch;
}

.landing-platform-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid #dbe5ef;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.landing-platform-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.landing-trust-copy {
  margin: 14px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(100%, 62ch);
  width: min(100%, 62ch);
  min-height: 84px;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #f8fafc;
  border: 1px solid rgba(184, 134, 11, 0.42);
  background:
    linear-gradient(135deg, rgba(10, 16, 28, 0.98) 0%, rgba(27, 39, 58, 0.98) 52%, rgba(12, 18, 31, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(184, 134, 11, 0.12),
    0 12px 28px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.landing-trust-copy::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  flex: 0 0 30px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #f0fdf4;
  border: 1.5px solid rgba(6, 95, 70, 0.34);
  background:
    radial-gradient(circle at 30% 28%, #6ee7b7 0%, #22c55e 42%, #0f766e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 0 0 2px rgba(6, 95, 70, 0.14),
    0 4px 10px rgba(15, 118, 110, 0.22);
}

.landing-trust-rotator {
  display: inline-flex;
  align-items: center;
  min-height: 2.8em;
  width: 100%;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
  transform-origin: left center;
}

.landing-trust-rotator.is-exiting {
  opacity: 0;
  transform: translateY(-4px);
  filter: blur(1px);
}

.landing-trust-rotator.is-entering {
  opacity: 0;
  transform: translateY(4px);
  filter: blur(1px);
  animation: landingTrustMessageIn 260ms ease forwards;
}

@keyframes landingTrustMessageIn {
  from {
    opacity: 0;
    transform: translateY(4px);
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.landing-panel {
  align-self: start;
  border-radius: 26px;
  border: 1px solid #dce2e8;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.landing-panel h3 {
  margin-top: 0;
}

.landing-panel-carousel {
  position: relative;
  transition: height 260ms ease;
}

.landing-panel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.landing-panel-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.landing-tax-slide {
  background: linear-gradient(145deg, #fffaf0 0%, #fffdf8 100%);
  border: 2px solid #f59e0b;
  border-radius: 20px;
  color: #3f2b0b;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.landing-tax-slide-kicker {
  color: #a14f00;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin: 0;
  text-transform: uppercase;
}

.landing-tax-slide h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: -4px 0 0;
}

.landing-tax-slide > p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.landing-tax-slide-rule {
  align-items: center;
  background: #ffffff;
  border: 1px solid #f2cf8f;
  border-radius: 15px;
  display: flex;
  gap: 10px;
  padding: 9px 10px;
}

.landing-tax-slide-rule > span {
  align-items: center;
  background: #f59e0b;
  border-radius: 12px;
  color: #3f2600;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 1.1rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
}

.landing-tax-slide-rule div {
  display: grid;
  gap: 2px;
}

.landing-tax-slide-rule small {
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-tax-slide-rule strong {
  color: #231705;
  font-size: 0.9rem;
  line-height: 1.25;
}

.landing-tax-slide .landing-tax-slide-deadline {
  background: #fee2e2;
  border: 2px solid #ef4444;
  border-radius: 14px;
  color: #991b1b;
  font-weight: 700;
  padding: 8px 10px;
}

.landing-tax-slide-deadline strong {
  color: #b91c1c;
  display: block;
  font-size: 0.9rem;
  font-weight: 900;
}

.landing-tax-slide-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.landing-tax-slide-actions a {
  align-items: center;
  background: #0f766e;
  border: 2px solid #0f766e;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  min-height: 40px;
  padding: 7px 10px;
  text-align: center;
  text-decoration: none;
}

.landing-tax-slide-actions a:last-child {
  background: #ffffff;
  color: #0f5f59;
}

.landing-tax-slide-note {
  border-top: 1px solid #f2cf8f;
  color: #6b4b16;
  font-size: 0.68rem;
  line-height: 1.35;
  padding-top: 7px;
}

.landing-tax-coming-soon {
  background: #078b68;
  border: 1px solid #34d399;
  border-radius: 12px;
  box-shadow:
    0 10px 24px rgba(5, 150, 105, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(4, 120, 87, 0.45);
  color: #ffffff;
  display: grid;
  gap: 2px;
  isolation: isolate;
  overflow: hidden;
  padding: 8px 10px;
  position: relative;
}

.landing-tax-coming-soon::after {
  animation: onboardingComingSoonShine 3.4s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  content: "";
  height: 250%;
  left: -40%;
  pointer-events: none;
  position: absolute;
  top: -75%;
  transform: rotate(18deg);
  width: 18%;
  z-index: 0;
}

.landing-tax-coming-soon > * {
  position: relative;
  z-index: 1;
}

.landing-tax-coming-soon span {
  color: #a7f3d0;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.landing-tax-coming-soon strong {
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1.3;
}

.landing-tax-coming-soon p {
  color: #d1fae5;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 3px 0 0;
}

.seo-coming-soon {
  gap: 5px;
  padding: 18px 20px;
}

.seo-coming-soon strong {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

@media (max-width: 560px) {
  .landing-tax-slide-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-tax-coming-soon::after {
    animation: none;
    display: none;
  }
}

.landing-panel-controls {
  align-items: center;
  border-top: 1px solid #e7ebf0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  padding-top: 12px;
  position: relative;
  width: 100%;
}

.landing-panel-dots {
  align-items: center;
  background: #f6f8fb;
  border: 1px solid #e1e7ee;
  border-radius: 999px;
  display: flex;
  gap: 7px;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
}

.landing-panel-dot {
  background: #c8d2de;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 9px;
  padding: 0;
  transition: background-color 160ms ease, width 180ms ease;
  width: 9px;
}

.landing-panel-dot.is-active {
  background: #0f8f83;
  width: 24px;
}

.landing-panel-dot:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 4px;
}

.landing-panel-timer {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  gap: 8px;
  margin: 0;
  min-height: 34px;
  padding: 4px 5px 4px 11px;
  line-height: 1;
  white-space: nowrap;
  width: auto;
}

.landing-panel-timer-text {
  font-weight: 800;
  line-height: 1;
}

.landing-panel-countdown {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(29, 78, 216, 0.12);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  min-width: 34px;
  padding: 0 7px;
}

.landing-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.landing-kpis article {
  border: 1px solid #e3e8ef;
  background: #f8fafc;
  border-radius: 14px;
  padding: 10px;
}

.landing-kpis article .muted {
  color: #525866;
}

.landing-kpis strong {
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}

.landing-mini-compare {
  width: 100%;
  margin: 12px 0 14px;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 0 0 1px #e4ecef;
}

.landing-mini-compare th,
.landing-mini-compare td {
  padding: 9px 7px;
  border-bottom: 1px solid #edf2f5;
  text-align: center;
}

.landing-mini-compare thead th {
  background: #f8fafc;
  color: #344054;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
}

.landing-mini-compare th:first-child {
  width: 38%;
  text-align: left;
}

.landing-mini-compare tbody th {
  color: #101828;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  background: #ffffff;
}

.landing-mini-compare tbody tr:last-child th,
.landing-mini-compare tbody tr:last-child td {
  border-bottom: 0;
}

.landing-mini-compare td {
  background: #ffffff;
}

.landing-mini-compare-win {
  background: #f0fdfa !important;
}

.landing-mini-compare .landing-status {
  width: 22px;
  height: 22px;
}

.landing-mini-compare .landing-status-yes::before {
  width: 9px;
  height: 5px;
}

.landing-mini-compare .landing-status-no::before,
.landing-mini-compare .landing-status-no::after {
  width: 11px;
}

.landing-mini-compare .landing-status-partial::before {
  width: 10px;
}

.landing-thanks {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #99f6e4;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(16, 185, 129, 0.08));
}

.landing-thanks-kicker {
  margin: 0 0 4px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f766e;
}

.landing-thanks p {
  margin: 0;
  line-height: 1.4;
}

.landing-rider-accent {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(6, 189, 109, 0.18);
  background:
    linear-gradient(135deg, rgba(6, 189, 109, 0.1) 0%, rgba(255, 128, 0, 0.08) 100%),
    #ffffff;
}

.landing-rider-accent-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.8rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.35) 40%, transparent 70%),
    linear-gradient(145deg, rgba(6, 189, 109, 0.22) 0%, rgba(255, 128, 0, 0.16) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 20px rgba(15, 23, 42, 0.08);
}

.landing-rider-accent-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landing-rider-accent-copy strong {
  color: #0f172a;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.landing-rider-accent-copy span {
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.45;
}

.landing-pro-hero-card {
  margin: 12px 0 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  background:
    linear-gradient(145deg, rgba(10, 16, 28, 0.98) 0%, rgba(27, 39, 58, 0.98) 100%);
  color: #f8fafc;
}

.landing-pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 183, 0, 0.14);
  border: 1px solid rgba(255, 183, 0, 0.34);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.landing-pro-hero-card strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.landing-pro-hero-card p {
  margin: 0;
  color: rgba(248, 250, 252, 0.82);
  line-height: 1.5;
}

.landing-pro-hero-card--trust {
  border-color: rgba(6, 189, 109, 0.22);
  background:
    linear-gradient(145deg, rgba(7, 18, 34, 0.98) 0%, rgba(12, 58, 52, 0.94) 100%);
}

.landing-features-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.landing-features-mini article {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #e3e8ef;
  background: #f8fafc;
}

.landing-features-mini span {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 4px;
}

.landing-features-mini strong {
  color: #0f172a;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.landing-pro-badge--trust {
  background: rgba(6, 189, 109, 0.14);
  border-color: rgba(6, 189, 109, 0.34);
  color: #6ee7b7;
}

.landing-features-mini--trust article {
  border-color: rgba(6, 189, 109, 0.14);
  background: linear-gradient(135deg, rgba(6, 189, 109, 0.06), rgba(248, 250, 252, 0.94));
}

.landing-features-mini--trust span {
  color: #0f766e;
}

.landing-features-mini--trust {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-pro-section .landing-title {
  color: #0f172a;
}

.landing-pro-section .landing-features .card {
  border-color: rgba(255, 183, 0, 0.2);
  background:
    linear-gradient(145deg, rgba(10, 16, 28, 0.98) 0%, rgba(27, 39, 58, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(15, 23, 42, 0.12);
}

.landing-pro-section .landing-features .card:hover {
  border-color: rgba(255, 183, 0, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 38px rgba(15, 23, 42, 0.16);
}

.landing-pro-section .landing-features .card h3 {
  color: #f8fafc;
}

.landing-pro-section .landing-features .card p {
  color: rgba(248, 250, 252, 0.82);
}

.landing-pro-section .landing-features .card:nth-child(1) {
  border-color: rgba(20, 184, 166, 0.22);
  background:
    linear-gradient(145deg, rgba(7, 18, 34, 0.98) 0%, rgba(16, 57, 74, 0.94) 100%);
}

.landing-pro-section .landing-features .card:nth-child(2) {
  border-color: rgba(255, 183, 0, 0.24);
  background:
    linear-gradient(145deg, rgba(18, 18, 28, 0.98) 0%, rgba(62, 42, 10, 0.94) 100%);
}

.landing-pro-section .landing-features .card:nth-child(3) {
  border-color: rgba(6, 189, 109, 0.22);
  background:
    linear-gradient(145deg, rgba(9, 18, 25, 0.98) 0%, rgba(11, 64, 55, 0.94) 100%);
}

.landing-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.landing-strip p {
  margin: 0;
  text-align: center;
  border: 1px solid #d7dee7;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  background: #ffffff;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.landing-pill-icon {
  display: inline-block;
  margin-right: 6px;
}

.landing-strip-logos {
  flex-direction: column;
  gap: 6px;
}

.landing-mini-logo-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.landing-mini-logo-row img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-features .card,
.landing-steps .card {
  border: 1px solid #dce2e8;
  border-radius: 18px;
  background: #ffffff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.landing-feature-icon {
  align-items: center;
  background: linear-gradient(145deg, #ecfdf5, #e0f2fe);
  border: 1px solid #bae6d8;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.1);
  display: inline-flex;
  font-size: 1.45rem;
  height: 46px;
  justify-content: center;
  margin-bottom: 12px;
  width: 46px;
}

.landing-features .card:hover,
.landing-steps .card:hover {
  transform: translateY(-2px);
  border-color: #c8d2dd;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
}

.landing-title {
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.landing-section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.landing-section-heading .kicker {
  margin-bottom: 8px;
  color: #0f766e;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.landing-section-copy {
  margin: 0;
  max-width: 66ch;
  color: #52606f;
  line-height: 1.6;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-compare-table-wrap {
  overflow: hidden;
  border: 1px solid #dde6ec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.landing-compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.landing-compare-table th,
.landing-compare-table td {
  border-bottom: 1px solid #edf2f5;
  padding: 16px 14px;
  text-align: center;
  vertical-align: middle;
}

.landing-compare-table tbody tr:last-child th,
.landing-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.landing-compare-table thead th {
  font-size: 0.9rem;
  font-weight: 900;
  color: #344054;
  background: #f9fafb;
  line-height: 1.25;
}

.landing-compare-table thead th:first-child {
  text-align: left;
  width: 38%;
}

.landing-compare-table tbody th {
  text-align: left;
  font-size: 0.95rem;
  font-weight: 800;
  color: #101828;
  background: #ffffff;
  line-height: 1.35;
}

.landing-compare-table tbody tr:nth-child(even) th,
.landing-compare-table tbody tr:nth-child(even) td {
  background: #fcfcfd;
}

.landing-compare-taxbuddie {
  color: #0f766e;
  background: #f0fdfa !important;
}

.landing-compare-table thead .landing-compare-taxbuddie {
  color: #0f766e;
  background: #e6fffa !important;
}

.landing-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  position: relative;
}

.landing-status-yes {
  background: #16a34a;
}

.landing-status-yes::before {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.landing-status-no {
  background: transparent;
}

.landing-status-no::before,
.landing-status-no::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: #ef4444;
}

.landing-status-no::before {
  transform: rotate(45deg);
}

.landing-status-no::after {
  transform: rotate(-45deg);
}

.landing-status-partial {
  background: transparent;
}

.landing-status-partial::before {
  content: "";
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: #98a2b3;
}

.landing-mobile-label {
  display: none;
}

.landing-compare-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 12px 0 0;
  color: #667085;
  font-size: 0.86rem;
  font-weight: 700;
}

.landing-compare-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.landing-compare-note .landing-status {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.landing-compare-note .landing-status-yes::before {
  width: 7px;
  height: 4px;
}

.landing-compare-note .landing-status-no::before,
.landing-compare-note .landing-status-no::after {
  width: 9px;
}

.landing-compare-note .landing-status-partial::before {
  width: 8px;
}

@media (max-width: 640px) {
  .landing-section-heading {
    margin-bottom: 14px;
  }

  .landing-compare-table th,
  .landing-compare-table td {
    padding: 11px 6px;
  }

  .landing-compare-table thead th {
    font-size: 0.72rem;
  }

  .landing-compare-table thead th:first-child {
    width: 40%;
  }

  .landing-compare-table thead th:not(:first-child),
  .landing-compare-table tbody td {
    width: 20%;
  }

  .landing-compare-table tbody th {
    font-size: 0.78rem;
  }

  .landing-status {
    width: 22px;
    height: 22px;
  }

  .landing-status-yes::before {
    width: 9px;
    height: 5px;
  }

  .landing-desktop-label {
    display: none;
  }

  .landing-mobile-label {
    display: inline;
  }

  .landing-compare-note {
    font-size: 0.76rem;
    gap: 8px 12px;
  }
}

.landing-testimonial {
  border: 1px solid rgba(20, 184, 166, 0.16);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.08) 0%, transparent 26%),
    linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.landing-testimonial-quote {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: #0f172a;
  font-weight: 700;
}

.landing-testimonial-meta {
  margin: 12px 0 0;
  color: #0f766e;
  font-weight: 700;
}

.landing-step-no {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ff5a00;
}

.landing-steps h4 {
  margin: 8px 0 6px;
}

.landing-cta {
  text-align: center;
  border-radius: 26px;
  border: 1px solid #dce2e8;
  background:
    linear-gradient(125deg, rgba(6, 189, 109, 0.1) 0%, rgba(6, 189, 109, 0.02) 36%, rgba(255, 128, 0, 0.08) 100%),
    #ffffff;
}

.landing-cta .hero-actions {
  justify-content: center;
}

.landing-cta .landing-primary-actions {
  margin-inline: auto;
}

.landing-cta h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

.seo-landing {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.seo-hero {
  padding: 56px 0 28px;
}

.seo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.seo-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.seo-lead {
  max-width: 68ch;
  color: #475467;
  font-size: 1.08rem;
  line-height: 1.65;
}

.seo-card {
  border: 1px solid #dce5ec;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.seo-proof-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-proof-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #344054;
  font-weight: 700;
  line-height: 1.45;
}

.seo-proof-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  flex: 0 0 18px;
  background: #16a34a;
  box-shadow: inset 0 0 0 5px #dcfce7;
}

.seo-section {
  padding: 28px 0;
}

.seo-hero .btn-app-store {
  min-width: 190px;
  padding-inline: 18px;
}

.seo-hero .hero-actions {
  flex-wrap: wrap;
}

.seo-latest {
  background: rgba(240, 253, 250, 0.72);
  border-block: 1px solid #ccfbf1;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-grid .card {
  border: 1px solid #dce5ec;
  border-radius: 18px;
  background: #ffffff;
}

.seo-grid h2,
.seo-grid h3 {
  margin-top: 0;
  letter-spacing: -0.015em;
}

.seo-faq {
  display: grid;
  gap: 12px;
}

.seo-faq details {
  border: 1px solid #dce5ec;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}

.seo-faq summary {
  cursor: pointer;
  font-weight: 800;
  color: #0f172a;
}

.seo-faq p {
  margin-bottom: 0;
  color: #475467;
  line-height: 1.6;
}

.seo-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-related a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d7dee7;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}

.seo-related a:hover {
  border-color: #0f766e;
  color: #0f766e;
  text-decoration: none;
}

@media (max-width: 900px) {
  .seo-hero-grid,
  .seo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .seo-hero .btn-app-store {
    flex: 1 0 100%;
  }
}

@keyframes landingReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-main .section {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 900px) {

  .landing-hero-grid,
  .landing-features,
  .landing-steps,
  .landing-compare,
  .landing-strip {
    grid-template-columns: 1fr;
  }

  .landing-panel-carousel {
    min-height: auto;
    height: 100%;
  }

  .landing-panel-slide,
  .landing-panel-slide.is-active {
    position: relative;
    inset: auto;
  }

  .landing-panel-slide:not(.is-active) {
    display: none;
  }

  .landing-panel {
    display: flex;
    flex-direction: column;
  }

  .landing-panel-slide.is-active {
    overflow: visible;
  }

  .landing-features-mini {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding-top: 28px;
  }

  .landing-hero h1 {
    font-size: clamp(1.75rem, 8.2vw, 2.4rem);
  }

  .landing-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .landing-strip p {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .landing-header {
    background: rgba(255, 255, 255, 0.98);
  }

  .auth-main {
    padding-top: 20px;
  }

  #changelog-toggle + #redo-tour-btn {
    margin-top: 8px;
  }

  .landing-header .nav {
    min-height: 0;
    padding: 10px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .landing-header .logo {
    width: 100%;
    text-align: center;
  }

  .landing-header .nav .row {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .landing-header .nav .btn,
  .landing-header .nav .btn-outline {
    width: auto;
    min-width: 130px;
    padding: 9px 12px;
  }

  .landing-hero .hero-actions,
  .landing-cta .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .landing-hero .hero-actions .btn,
  .landing-hero .hero-actions .btn-outline,
  .landing-cta .hero-actions .btn,
  .landing-cta .hero-actions .btn-outline {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    padding-inline: 14px;
    white-space: normal;
    line-height: 1.25;
  }

}
/* Profile section hub */
.profile-section-main [hidden] {
  display: none !important;
}

.account-type-picker {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.account-type-picker legend {
  font-weight: 800;
  margin-bottom: 10px;
}

.account-type-option {
  align-items: flex-start;
  background: var(--surface-soft);
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

.account-type-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.account-type-option:hover {
  transform: translateY(-1px);
}

.auth-card .account-type-option input[type="radio"] {
  -webkit-appearance: radio;
  appearance: auto;
  accent-color: var(--brand);
  align-self: start;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  height: 18px;
  margin: 3px 0 0;
  min-height: 0;
  min-width: 0;
  padding: 0;
  width: 18px;
}

.account-type-option-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-type-option-copy strong,
.account-type-option-copy small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-type-option-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.accountant-workspace-only {
  display: none;
}

body.accountant-only-mode .accountant-workspace-only {
  display: block;
}

body.accountant-only-mode .accountant-owner-only,
body.accountant-only-mode .mobile-nav,
body.accountant-only-mode #profile-section-back {
  display: none !important;
}

body.accountant-only-mode .profile-section-main {
  padding-bottom: 40px;
}

.profile-content-hidden {
  display: none !important;
}

.profile-global-message:empty {
  display: none;
}

.profile-section-hero {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: 38px minmax(0, 1fr);
}

.profile-section-hero > div {
  grid-column: 2;
  min-width: 0;
}

.profile-section-hero .app-hero-badges {
  grid-column: 1 / -1;
}

body[data-profile-section="hub"] .profile-section-hero > div {
  grid-column: 1 / -1;
  display: none;
}

.profile-section-description {
  margin: 5px 0 0;
}

.profile-section-back {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  margin-top: 2px;
  padding: 0;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 38px;
}

.profile-section-back:hover {
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.profile-section-back span {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  display: block;
  height: 9px;
  transform: translate(1px, 1px) rotate(45deg);
  width: 9px;
}

.profile-hub {
  display: grid;
  gap: 18px;
  margin-inline: auto;
  max-width: 820px;
  width: 100%;
}

.profile-hub-identity {
  align-items: center;
  background: #101010;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  color: #fff;
  display: flex;
  gap: 16px;
  min-width: 0;
  padding: 22px;
}

.profile-hub-avatar-shell {
  align-items: center;
  background: rgba(255,255,255,.14);
  border: 3px solid rgba(255,255,255,.72);
  border-radius: 50%;
  display: flex;
  flex: 0 0 72px;
  height: 72px;
  justify-content: center;
  overflow: hidden;
  width: 72px;
}

.profile-hub-avatar,
.profile-hub-avatar-fallback {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-hub-avatar-fallback {
  align-items: center;
  display: flex;
  font-size: 27px;
  font-weight: 800;
  justify-content: center;
}

.profile-hub-identity-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-hub-identity-copy > strong {
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.1;
}

.profile-hub-identity-copy > span {
  color: rgba(255,255,255,.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hub-identity-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 3px;
}

.profile-hub-identity-meta > span:last-child {
  color: rgba(255,255,255,.68);
  font-size: 12px;
}

.profile-hub-menu {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-hub-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 78px;
  padding: 14px 18px;
  text-align: left;
  transition: background-color 160ms ease, transform 160ms ease;
  width: 100%;
}

.profile-hub-row:last-child {
  border-bottom: 0;
}

.profile-hub-row:hover,
.profile-hub-row:focus-visible {
  background: var(--surface-soft);
}

.profile-hub-row:active {
  transform: scale(.995);
}

.profile-hub-row-icon {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  font-size: 20px;
  font-style: normal;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.profile-hub-row-icon svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.profile-hub-row > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-hub-row strong {
  font-size: 16px;
}

.profile-hub-title-with-pill {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-hub-title-with-pill .statement-import-beta-pill {
  font-size: 0.58rem;
  padding: 2px 8px;
}

.profile-hub-row small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hub-row i {
  color: var(--muted);
  font-size: 29px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.accountant-access-panel {
  display: grid;
  gap: 18px;
}

.accountant-access-panel h2 {
  margin: 0 0 6px;
}

.accountant-beta-notice {
  background: color-mix(in srgb, #f59e0b 8%, var(--surface));
  border-color: color-mix(in srgb, #f59e0b 48%, var(--border));
  box-shadow: none;
}

.accountant-beta-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.accountant-beta-heading > strong {
  color: var(--text);
  font-size: 0.98rem;
}

.accountant-beta-notice p {
  color: var(--muted);
  line-height: 1.5;
  margin: 5px 0;
}

.accountant-beta-notice p strong {
  color: var(--text);
}

.accountant-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.accountant-accept-card {
  border: 2px solid var(--brand);
  background: color-mix(in srgb, var(--surface) 88%, var(--brand) 12%);
}

.accountant-safety-list {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
  display: grid;
  gap: 7px;
}

.accountant-invite-form {
  display: grid;
  gap: 16px;
}

.accountant-invite-form > label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.accountant-invite-form fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.accountant-invite-form legend {
  padding: 0 7px;
  font-weight: 900;
}

.accountant-invite-form fieldset label,
.accountant-permission-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
}

.accountant-invite-form input[type="checkbox"],
.accountant-permission-grid input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  accent-color: var(--brand);
  flex: 0 0 20px;
  height: 20px;
  margin: 1px 0 0;
  max-width: 20px;
  min-width: 20px;
  padding: 0;
  width: 20px;
}

.accountant-list-heading h2,
.accountant-list-heading p {
  margin: 0;
}

.accountant-access-list {
  display: grid;
  gap: 12px;
}

.accountant-person-card {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  display: grid;
  gap: 8px;
}

.accountant-permission-grid {
  margin-top: 5px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
}

.accountant-person-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.accountant-person-card > .btn {
  justify-self: start;
}

.accountant-access-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.7rem;
  font-weight: 900;
}

.accountant-client-records {
  scroll-margin-top: 90px;
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 15px;
}

.accountant-live-loading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 120px;
  padding: 24px;
}

.accountant-client-records.is-live-updating {
  opacity: .72;
  transition: opacity 140ms ease;
}

.accountant-client-records[hidden] {
  display: none;
}

.accountant-client-records h3,
.accountant-client-records h4,
.accountant-client-records p {
  margin: 0;
}

.accountant-workspace-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.accountant-tax-year-select {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 36px 0 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.accountant-record-stats,
.accountant-record-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.accountant-record-stats > div,
.accountant-record-columns > section {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  display: grid;
  gap: 4px;
}

.accountant-record-row {
  padding: 9px 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 2px;
}

.accountant-review-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.accountant-review-check {
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  gap: 10px;
}

.accountant-review-check > span {
  align-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  font-weight: 900;
}

.accountant-review-check > div {
  display: grid;
  gap: 2px;
}

.accountant-review-check.complete {
  border-color: #86efac;
  background: color-mix(in srgb, #22c55e 9%, var(--surface));
}

.accountant-review-check.complete > span {
  background: #16a34a;
  color: #ffffff;
}

.accountant-review-check.needs-attention {
  border-color: #f6c96b;
  background: color-mix(in srgb, #f59e0b 9%, var(--surface));
}

.accountant-review-check.needs-attention > span {
  background: #f59e0b;
  color: #231500;
}

.accountant-review-workflow {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 42%, var(--border));
  border-radius: 17px;
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
  display: grid;
  gap: 14px;
}

.accountant-review-header > div:first-child {
  display: grid;
  gap: 7px;
}

.accountant-review-status {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.accountant-review-status.status-reviewed { background: #dcfce7; color: #166534; }
.accountant-review-status.status-needs_information { background: #ffedd5; color: #9a3412; }
.accountant-review-status.status-in_review { background: #dbeafe; color: #1d4ed8; }

.accountant-change-warning,
.accountant-snapshot-ok {
  padding: 12px 14px;
  border-radius: 13px;
  display: grid;
  gap: 3px;
}

.accountant-change-warning { border: 1px solid #fca5a5; background: #fef2f2; color: #991b1b; }
.accountant-snapshot-ok { border: 1px solid #86efac; background: #f0fdf4; color: #166534; font-weight: 800; }

.accountant-review-composer,
.accountant-review-reply {
  display: grid;
  gap: 9px;
}

.accountant-review-composer {
  grid-template-columns: minmax(150px, .7fr) minmax(220px, 1fr);
}

.accountant-review-composer textarea,
.accountant-review-reply textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 82px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.accountant-review-composer .btn,
.accountant-review-reply .btn { justify-self: start; }

.accountant-review-thread,
.accountant-snapshot-list {
  display: grid;
  gap: 9px;
}

.accountant-review-message {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  display: grid;
  gap: 7px;
}

.accountant-review-message.kind-request { border-left: 4px solid #f59e0b; }
.accountant-review-message.kind-response { border-left: 4px solid var(--brand); }
.accountant-review-message.resolved { opacity: .68; }
.accountant-review-message p { white-space: pre-wrap; }

.accountant-snapshot-list > div {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 2px;
}

.accountant-workspace-tables,
.accountant-record-table-section {
  display: grid;
  gap: 12px;
}

.accountant-record-table-section {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
}

.accountant-table-wrap {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.accountant-record-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.accountant-record-table th,
.accountant-record-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.accountant-record-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.accountant-record-table tbody tr:last-child td {
  border-bottom: 0;
}

.accountant-table-action {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.accountant-receipt-viewer {
  width: min(92vw, 760px);
  max-height: 90vh;
  display: grid;
  gap: 12px;
  overflow: auto;
}

.accountant-receipt-viewer > .btn {
  justify-self: end;
}

.accountant-receipt-viewer img {
  display: block;
  width: 100%;
  max-height: 75vh;
  border-radius: 14px;
  object-fit: contain;
  background: #111827;
}

.accountant-audit-row {
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.accountant-audit-row:first-child {
  border-top: 0;
}

.accountant-audit-row > div {
  display: grid;
  gap: 2px;
}

.accountant-audit-row time {
  flex-shrink: 0;
  font-size: 0.75rem;
}

#accountant-audit-list {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 5px;
  scrollbar-gutter: stable;
}

.accountant-realtime-warning {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #f59e0b;
  border-radius: 15px;
  color: #7c2d12;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.accountant-realtime-warning > div {
  display: grid;
  gap: 3px;
}

.accountant-record-columns h4 + .accountant-record-row {
  margin-top: 5px;
}

@media (max-width: 600px) {
  .accountant-invite-form fieldset,
  .accountant-permission-grid {
    grid-template-columns: 1fr;
  }

  .accountant-list-heading {
    align-items: flex-start;
  }

  .accountant-record-stats,
  .accountant-record-columns,
  .accountant-review-checks {
    grid-template-columns: 1fr;
  }

  .accountant-client-records > .row.between {
    align-items: flex-start;
    flex-direction: column;
  }

  .accountant-review-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .accountant-review-composer {
    grid-template-columns: 1fr;
  }

  .accountant-workspace-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

[data-profile-panel],
[data-profile-panels] {
  transition: opacity 110ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.profile-panel-leaving {
  opacity: 0;
  transform: translateY(-4px);
}

.profile-panel-entering {
  opacity: 0;
  transform: translateY(8px);
}

@media (max-width: 600px) {
  .profile-hub-identity {
    border-radius: 18px;
    padding: 18px;
  }

  .profile-hub-avatar-shell {
    flex-basis: 62px;
    height: 62px;
    width: 62px;
  }

  .profile-hub-menu {
    border-radius: 18px;
  }

  .profile-hub-row {
    gap: 11px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 72px;
    padding: 12px 14px;
  }

  .profile-hub-row-icon {
    border-radius: 13px;
    height: 40px;
    width: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-profile-panel],
  [data-profile-panels],
  .profile-section-back,
  .profile-hub-row {
    transition: none !important;
  }
}

/* Dedicated accountant practice dashboard */
body.accountant-only-mode {
  background: #eef3f1;
}

body.accountant-only-mode .profile-section-main {
  gap: 22px;
  padding-bottom: 48px;
  width: min(1220px, 94%);
}

body.accountant-only-mode .profile-section-hero {
  display: none;
}

body.accountant-only-mode .profile-section-hero > div {
  grid-column: 1;
}

body.accountant-only-mode .profile-section-hero .kicker {
  color: #087f6d;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  margin: 0;
}

body.accountant-only-mode .profile-section-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: -0.045em;
}

body.accountant-only-mode .profile-section-description {
  font-size: 0.98rem;
}

body.accountant-only-mode .accountant-access-panel {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-areas:
    "hero hero"
    "clients activity";
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.75fr);
}

body.accountant-only-mode .accountant-access-panel.has-incoming-invitations {
  grid-template-areas:
    "hero hero"
    "incoming incoming"
    "clients activity";
}

body.accountant-only-mode .accountant-workspace-only {
  display: grid;
}

body.accountant-only-mode .accountant-dashboard-hero {
  background: #0a2525;
  border: 1px solid #16413d;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(4, 24, 23, 0.14);
  color: #fff;
  gap: 18px;
  grid-area: hero;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 22px 26px;
  position: relative;
}

.accountant-dashboard-intro {
  max-width: 720px;
}

.accountant-dashboard-labels,
.accountant-dashboard-actions,
.accountant-dashboard-live {
  align-items: center;
  display: flex;
}

.accountant-dashboard-labels {
  gap: 9px;
  margin-bottom: 10px;
}

.accountant-dashboard-product {
  color: #82ddc7;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

body.accountant-only-mode .accountant-dashboard-hero h2 {
  color: #fff;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 0;
}

.accountant-dashboard-intro > p {
  color: #b9ccc8;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 8px 0 0;
}

.accountant-dashboard-actions {
  align-self: start;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.accountant-dashboard-live {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #d9f5ee;
  font-size: 0.75rem;
  font-weight: 850;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
}

.accountant-dashboard-live i,
.accountant-dashboard-state i {
  animation: riderPulseDot 1.2s ease-out infinite;
  background: #36d58b;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(54, 213, 139, 0.58);
  display: inline-block;
  height: 8px;
  width: 8px;
}

body.accountant-only-mode .accountant-dashboard-logout {
  background: #fff;
  border-color: #fff;
  color: #0a2525;
  min-height: 40px;
  padding: 9px 16px;
}

.accountant-dashboard-metrics {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 17px;
}

.accountant-dashboard-metrics > section {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0 20px;
}

.accountant-dashboard-metrics > section:first-child {
  border-left: 0;
  padding-left: 0;
}

.accountant-dashboard-metrics > section:last-child {
  padding-right: 0;
}

.accountant-dashboard-metrics span {
  color: #9fb8b2;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accountant-dashboard-metrics strong {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.1;
}

.accountant-dashboard-metrics small {
  color: #91aaa4;
  font-size: 0.7rem;
}

.accountant-dashboard-metrics .accountant-dashboard-state {
  align-items: center;
  display: flex;
  font-size: 0.95rem;
  gap: 9px;
  min-height: 31px;
}

body.accountant-only-mode .accountant-beta-notice {
  display: none;
}

.accountant-dashboard-beta {
  letter-spacing: 0.035em;
  white-space: nowrap;
}

body.accountant-only-mode .accountant-beta-heading {
  margin: 0;
}

body.accountant-only-mode .accountant-beta-notice p {
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
}

body.accountant-only-mode #accountant-clients-card {
  border-radius: 22px;
  grid-area: clients;
  min-height: 380px;
  padding: 24px;
}

body.accountant-only-mode .accountant-incoming-card {
  background: color-mix(in srgb, #e8faf5 72%, var(--surface));
  border: 1px solid color-mix(in srgb, #15a083 45%, var(--border));
  border-radius: 20px;
  grid-area: incoming;
  padding: 22px 24px;
}

.accountant-incoming-card .accountant-dashboard-section-heading {
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.accountant-incoming-count {
  background: #0b806d;
  border-radius: 999px;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.73rem;
  font-weight: 850;
  padding: 8px 12px;
}

.accountant-incoming-count strong {
  font-size: inherit;
}

.accountant-incoming-list {
  display: grid;
  gap: 10px;
}

.accountant-incoming-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px;
}

.accountant-incoming-marker {
  align-items: center;
  background: #d9f4ec;
  border-radius: 13px;
  color: #087562;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 950;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.accountant-incoming-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.accountant-incoming-copy span {
  font-size: 0.78rem;
  line-height: 1.4;
}

.accountant-incoming-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.accountant-incoming-actions .btn {
  min-height: 38px;
  padding: 8px 13px;
}

.accountant-dashboard-section-heading {
  align-items: start;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.accountant-dashboard-section-heading .accountant-eyebrow {
  margin-bottom: 5px;
}

.accountant-dashboard-section-heading p {
  line-height: 1.45;
  margin: 0;
}

.accountant-portfolio-count {
  background: #e9f8f4;
  border: 1px solid #bde8dc;
  border-radius: 999px;
  color: #126b5e;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 8px 12px;
}

.accountant-portfolio-count strong {
  font-size: inherit;
}

body.accountant-only-mode .accountant-client-card {
  align-items: center;
  background: var(--surface);
  border-radius: 17px;
  display: grid;
  gap: 10px 16px;
  grid-template-columns: minmax(200px, 1fr) auto;
  padding: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.accountant-only-mode .accountant-client-card:hover {
  border-color: color-mix(in srgb, #148574 55%, var(--border));
  box-shadow: 0 12px 24px rgba(8, 53, 48, 0.08);
  transform: translateY(-1px);
}

.accountant-client-identity {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.accountant-client-identity > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.accountant-client-avatar {
  align-items: center;
  background: #dff4ee;
  border: 1px solid #b5e3d7;
  border-radius: 13px;
  color: #106b5e;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 0.78rem;
  font-weight: 950;
  height: 44px;
  justify-content: center;
}

body.accountant-only-mode .accountant-client-card .accountant-access-pill {
  justify-self: end;
}

body.accountant-only-mode .accountant-client-card > small {
  grid-column: 1;
  line-height: 1.4;
  padding-left: 56px;
}

body.accountant-only-mode .accountant-client-card > .accountant-client-open {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  min-width: 188px;
}

.accountant-empty-portfolio {
  align-items: center;
  background: var(--surface-soft);
  border: 1px dashed color-mix(in srgb, #148574 38%, var(--border));
  border-radius: 18px;
  display: flex;
  gap: 16px;
  min-height: 190px;
  padding: 30px;
}

.accountant-empty-portfolio-icon {
  align-items: center;
  background: #dff4ee;
  border-radius: 18px;
  color: #087f6d;
  display: inline-flex;
  flex: 0 0 58px;
  font-size: 2rem;
  font-weight: 300;
  height: 58px;
  justify-content: center;
}

.accountant-empty-portfolio strong {
  font-size: 1.05rem;
}

.accountant-empty-portfolio p {
  line-height: 1.5;
  margin: 5px 0 0;
}

body.accountant-only-mode .accountant-audit-card {
  border-radius: 22px;
  grid-area: activity;
  padding: 24px;
}

body.accountant-only-mode .accountant-audit-card > p {
  line-height: 1.45;
  margin-top: 0;
}

body.accountant-only-mode .accountant-audit-row {
  align-items: start;
  display: grid;
  gap: 6px;
}

body.accountant-only-mode .accountant-audit-row time {
  font-size: 0.7rem;
}

:root[data-theme="dark"] body.accountant-only-mode {
  background: #071110;
}

:root[data-theme="dark"] body.accountant-only-mode .accountant-beta-notice {
  background: #2b2516;
  border-color: #5b4b20;
}

:root[data-theme="dark"] .accountant-portfolio-count,
:root[data-theme="dark"] .accountant-client-avatar,
:root[data-theme="dark"] .accountant-empty-portfolio-icon {
  background: #0d3933;
  border-color: #1d5a50;
  color: #7cdec9;
}

@media (max-width: 900px) {
  body.accountant-only-mode .accountant-access-panel {
    grid-template-areas: "hero" "clients" "activity";
    grid-template-columns: minmax(0, 1fr);
  }

  body.accountant-only-mode .accountant-access-panel.has-incoming-invitations {
    grid-template-areas: "hero" "incoming" "clients" "activity";
  }

  body.accountant-only-mode .accountant-beta-notice {
    grid-template-columns: 1fr;
  }

  .accountant-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  .accountant-dashboard-metrics > section:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 620px) {
  body.accountant-only-mode .profile-section-main {
    width: min(100% - 24px, 1220px);
  }

  body.accountant-only-mode .accountant-dashboard-hero {
    border-radius: 20px;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .accountant-dashboard-actions {
    justify-content: flex-start;
  }

  .accountant-dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .accountant-dashboard-metrics > section,
  .accountant-dashboard-metrics > section:first-child,
  .accountant-dashboard-metrics > section:last-child,
  .accountant-dashboard-metrics > section:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0 0;
  }

  .accountant-dashboard-metrics > section:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .accountant-dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  body.accountant-only-mode .accountant-client-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body.accountant-only-mode .accountant-client-card .accountant-access-pill,
  body.accountant-only-mode .accountant-client-card > .accountant-client-open {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }

  body.accountant-only-mode .accountant-client-card > small {
    grid-column: 1;
    padding-left: 0;
  }

  .accountant-empty-portfolio {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .accountant-incoming-row {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .accountant-incoming-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .accountant-incoming-actions .btn {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .accountant-dashboard-live i,
  .accountant-dashboard-state i {
    animation: none !important;
  }
}

/* Rider-facing Accountant Access control dashboard */
body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-access-panel {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .profile-section-main {
  width: min(1080px, 94%);
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-beta-notice {
  display: none;
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-owner-dashboard-hero {
  background: #0a2927;
  border: 1px solid #174b45;
  border-radius: 23px;
  box-shadow: 0 18px 42px rgba(6, 42, 38, 0.14);
  color: #fff;
  display: grid;
  gap: 20px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  overflow: hidden;
  padding: 25px 27px;
}

.accountant-owner-hero-copy h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

.accountant-owner-hero-copy > p {
  color: #b8cfca;
  line-height: 1.5;
  margin: 9px 0 0;
  max-width: 650px;
}

.accountant-owner-metrics {
  align-self: stretch;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.accountant-owner-metrics section {
  align-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 16px;
}

.accountant-owner-metrics section:first-child {
  border-left: 0;
}

.accountant-owner-metrics span {
  color: #91b1aa;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.accountant-owner-metrics strong {
  color: #fff;
  font-size: 1.42rem;
  line-height: 1.15;
}

.accountant-owner-metrics section:last-child strong {
  font-size: 0.92rem;
}

.accountant-owner-metrics small {
  color: #91aaa4;
  font-size: 0.66rem;
  line-height: 1.35;
}

.accountant-owner-steps {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 18px;
}

.accountant-owner-steps section {
  align-items: center;
  display: flex;
  gap: 11px;
}

.accountant-owner-steps i {
  align-items: center;
  background: #27c49f;
  border-radius: 50%;
  color: #052c27;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  height: 30px;
  justify-content: center;
}

.accountant-owner-steps div {
  display: grid;
  gap: 1px;
}

.accountant-owner-steps strong {
  color: #fff;
  font-size: 0.79rem;
}

.accountant-owner-steps span {
  color: #91aaa4;
  font-size: 0.68rem;
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-invite-card,
body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-people-card,
body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-pending-invitations-card,
body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-shared-preview-card,
body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-audit-card,
body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-review-inbox-card {
  border-radius: 20px;
  padding: 22px;
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-invite-card,
body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-pending-invitations-card {
  grid-column: 1;
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-people-card,
body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-shared-preview-card {
  grid-column: 2;
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-review-inbox-card,
body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-audit-card,
body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-accept-card {
  grid-column: 1 / -1;
}

.accountant-card-intro {
  line-height: 1.45;
  margin: -1px 0 16px;
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-invite-form {
  gap: 15px;
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-invite-form fieldset {
  background: var(--surface-soft);
  border-radius: 14px;
  grid-template-columns: 1fr;
  padding: 13px;
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-invite-form > .btn {
  justify-self: stretch;
  width: 100%;
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-access-list:has(> .muted:only-child) {
  background: var(--surface-soft);
  border: 1px dashed var(--border);
  border-radius: 14px;
  min-height: 76px;
  padding: 16px;
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-list-heading {
  align-items: start;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-list-heading .btn {
  min-height: 36px;
  padding: 7px 12px;
}

:root[data-theme="dark"] body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-owner-dashboard-hero {
  background: #082320;
  border-color: #1a5048;
}

@media (max-width: 780px) {
  body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-access-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-owner-dashboard-hero,
  body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-invite-card,
  body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-people-card,
  body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-pending-invitations-card,
  body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-shared-preview-card,
  body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-audit-card,
  body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-review-inbox-card {
    grid-column: 1;
  }

  body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-owner-dashboard-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  body:not(.accountant-only-mode)[data-profile-section="accountant"] .accountant-owner-dashboard-hero {
    padding: 20px;
  }

  .accountant-owner-metrics,
  .accountant-owner-steps {
    grid-template-columns: 1fr;
  }

  .accountant-owner-metrics section,
  .accountant-owner-metrics section:first-child {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
  }

  .accountant-owner-metrics section:first-child {
    border-top: 0;
  }

  .accountant-owner-steps {
    gap: 12px;
  }
}

/* Shared rolling figures */
.rolling-number-text {
  font-variant-numeric: tabular-nums;
  overflow: visible !important;
  white-space: nowrap;
}

.rolling-number-visual {
  align-items: flex-start;
  display: inline-flex;
  font: inherit;
  font-variant-numeric: tabular-nums;
  height: 1.08em;
  line-height: 1.08;
  white-space: nowrap;
}

.rolling-number-static,
.rolling-number-digit-window,
.rolling-number-digit {
  display: inline-block;
  height: 1.08em;
  line-height: 1.08em;
}

.rolling-number-digit-window {
  overflow: hidden;
  width: 1ch;
}

.rolling-number-digit-track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  will-change: transform;
}

.rolling-number-digit-track.is-rolling {
  transition-delay: var(--rolling-delay, 0ms);
  transition-duration: var(--rolling-duration, 900ms);
  transition-property: transform;
  transition-timing-function: cubic-bezier(.16, 1, .3, 1);
}

.rolling-number-digit {
  flex: 0 0 1.08em;
  text-align: center;
  width: 1ch;
}

.home-kpi-title-row {
  align-items: flex-start;
  position: relative;
}

#home-today-view { width: 100%; }

.home-trajectory {
  position: absolute;
  right: 0;
  top: -8px;
}

/* Shared non-Pro promotion */
.web-pro-upgrade-banner {
  background: linear-gradient(135deg, #3d2a08 0%, #171717 72%);
  border: 1px solid #a16207;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(120, 72, 5, .18);
  color: #fef3c7;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.web-pro-upgrade-banner[hidden] { display: none; }

.web-pro-upgrade-banner::after {
  animation: webProShimmer 3.75s cubic-bezier(.4, 0, .2, 1) infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  bottom: -42px;
  content: "";
  pointer-events: none;
  position: absolute;
  top: -42px;
  transform: translateX(-150px) rotate(18deg);
  width: 88px;
  z-index: 2;
}

.web-pro-upgrade-top,
.web-pro-upgrade-actions {
  position: relative;
  z-index: 1;
}

.web-pro-upgrade-top {
  align-items: center;
  display: flex;
  gap: 12px;
}

.web-pro-upgrade-icon {
  align-items: center;
  background: #fbbf24;
  border-radius: 999px;
  color: #171717;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 1.2rem;
  height: 44px;
  justify-content: center;
}

.web-pro-svg {
  display: block;
  height: 20px;
  width: 20px;
}

.web-pro-upgrade-icon .web-pro-svg { height: 21px; width: 21px; }

.web-pro-upgrade-copy {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.web-pro-upgrade-copy strong {
  font-size: .92rem;
  letter-spacing: -.015em;
}

.web-pro-upgrade-copy span {
  color: #fde68a;
  font-size: .72rem;
  line-height: 1.4;
}

.web-pro-upgrade-actions {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.web-pro-why-btn,
.web-pro-unlock-btn {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  text-decoration: none;
}

.web-pro-why-btn {
  background: transparent;
  border: 1px solid #a16207;
  color: #fef3c7;
}

.web-pro-unlock-btn {
  background: #fbbf24;
  border: 1px solid #fbbf24;
  color: #171717;
  gap: 7px;
  overflow: hidden;
  position: relative;
}

.web-pro-unlock-btn > span { position: relative; z-index: 1; }

.web-pro-unlock-btn::after {
  animation: webProButtonShimmer 3.75s cubic-bezier(.4, 0, .2, 1) infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  bottom: -20px;
  content: "";
  pointer-events: none;
  position: absolute;
  top: -20px;
  transform: translateX(-80px) rotate(18deg);
  width: 46px;
}

.web-pro-why-btn:hover,
.web-pro-unlock-btn:hover { filter: brightness(1.06); text-decoration: none; }

@keyframes webProShimmer {
  0%, 8% { transform: translateX(-150px) rotate(18deg); }
  45%, 100% { transform: translateX(760px) rotate(18deg); }
}

@keyframes webProButtonShimmer {
  0%, 8% { transform: translateX(-80px) rotate(18deg); }
  45%, 100% { transform: translateX(420px) rotate(18deg); }
}

body.web-pro-benefits-open { overflow: hidden; }

.web-pro-benefits-modal { overflow: hidden; }
.web-pro-benefits-modal .receipt-modal-backdrop { background: rgba(0, 0, 0, .68); }

.receipt-modal-card.web-pro-benefits-card {
  background: var(--surface);
  border-radius: 20px;
  gap: 0;
  max-width: 620px;
  overflow: auto;
  padding: 0;
  width: min(620px, calc(100vw - 32px));
}

.web-pro-benefits-header {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 20px;
}

.web-pro-benefits-header > div { display: grid; gap: 6px; }
.web-pro-benefits-header p { align-items: center; display: flex; gap: 8px; margin: 0; }
.web-pro-benefits-header p > span:last-child { color: var(--brand); font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.web-pro-benefits-header h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); letter-spacing: -.035em; line-height: 1.08; margin: 0; }
.web-pro-benefits-header > div > span { color: var(--muted); font-size: .78rem; line-height: 1.45; }

.web-pro-benefits-close {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 36px;
  font: inherit;
  height: 36px;
  justify-content: center;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.web-pro-benefits-close .web-pro-svg { height: 18px; width: 18px; }
.web-pro-benefits-close:hover { background: color-mix(in srgb, var(--text) 10%, var(--surface)); transform: scale(1.04); }
.web-pro-benefits-close:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }

.web-pro-benefits-list { display: grid; gap: 13px; padding: 0 20px 20px; }

.web-pro-benefits-list > article,
.web-pro-roadmap article {
  align-items: center;
  display: grid;
  gap: 11px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.web-pro-benefits-list article i,
.web-pro-roadmap article i {
  align-items: center;
  background: color-mix(in srgb, #fbbf24 18%, var(--surface));
  border-radius: 999px;
  color: #b7791f;
  display: inline-flex;
  font-size: .92rem;
  font-style: normal;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.web-pro-benefits-list article > span,
.web-pro-roadmap article > span { display: grid; gap: 2px; }
.web-pro-benefits-list article strong,
.web-pro-roadmap article strong { font-size: .8rem; }
.web-pro-benefits-list article small,
.web-pro-roadmap article small { color: var(--muted); font-size: .65rem; line-height: 1.45; }
.web-pro-benefits-list article > b { color: #22c55e; font-size: 1rem; }
.web-pro-benefits-list article > b { align-items: center; display: inline-flex; justify-content: center; }
.web-pro-check { height: 21px; stroke-width: 2; width: 21px; }

.web-pro-roadmap {
  background: color-mix(in srgb, #fbbf24 7%, var(--surface));
  border: 1px solid color-mix(in srgb, #fbbf24 36%, var(--border));
  border-radius: 14px;
  display: grid;
  gap: 13px;
  padding: 14px;
}

.web-pro-roadmap > header { align-items: center; display: flex; gap: 9px; }
.web-pro-roadmap-icon {
  align-items: center;
  background: color-mix(in srgb, #fbbf24 18%, var(--surface));
  border-radius: 999px;
  color: #b7791f;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.web-pro-roadmap-icon .web-pro-svg { height: 18px; width: 18px; }
.web-pro-roadmap > header > span:last-child { display: grid; gap: 1px; }
.web-pro-roadmap > header small { color: #b7791f; font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.web-pro-roadmap > header strong { font-size: .85rem; }
.web-pro-roadmap article { grid-template-columns: auto minmax(0, 1fr); }
.web-pro-roadmap article i { height: 34px; width: 34px; }
.web-pro-roadmap p { color: var(--muted); font-size: .58rem; line-height: 1.4; margin: 0; }

.web-pro-benefits-footer {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  bottom: 0;
  display: grid;
  gap: 3px;
  padding: 16px 20px 20px;
  position: sticky;
  text-align: center;
}

.web-pro-benefits-footer > strong { font-size: .84rem; }
.web-pro-benefits-footer > small { color: var(--muted); font-size: .62rem; }
.web-pro-modal-cta {
  align-items: center;
  background: #fbbf24;
  border-radius: 12px;
  color: #171717;
  display: flex;
  font-size: .86rem;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  margin-top: 9px;
  min-height: 48px;
  padding: 10px 16px;
  text-decoration: none;
}

.web-pro-modal-cta:hover { filter: brightness(1.04); text-decoration: none; }
.web-pro-modal-cta .web-pro-svg { height: 18px; width: 18px; }

:root[data-theme="light"] .web-pro-upgrade-banner {
  background: linear-gradient(135deg, #fff7d6 0%, #fffaf0 100%);
  border-color: #f3c34d;
  color: #713f12;
}

:root[data-theme="light"] .web-pro-upgrade-copy span { color: #92400e; }
:root[data-theme="light"] .web-pro-why-btn { border-color: #d97706; color: #92400e; }

@media (max-width: 520px) {
  .web-pro-upgrade-banner { border-radius: 16px; padding: 12px; }
  .web-pro-upgrade-copy strong { font-size: .82rem; }
  .web-pro-upgrade-copy span { font-size: .66rem; }
  .web-pro-benefits-header { padding: 16px; }
  .web-pro-benefits-list { padding: 0 16px 16px; }
  .web-pro-benefits-footer { padding: 14px 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .rolling-number-digit-track.is-rolling { transition: none; }
  .web-pro-upgrade-banner::after,
  .web-pro-unlock-btn::after { animation: none; display: none; }
}
