.favorites-redesign {
  --favorites-rd-ink: #071511;
  --favorites-rd-muted: #687572;
  --favorites-rd-accent: #087f70;
  --favorites-rd-accent-strong: #056b5f;
  --favorites-rd-rule: #d7e1de;
  --favorites-rd-line-strong: #b7c8c3;
  --favorites-rd-surface:
    linear-gradient(180deg, rgba(243, 249, 247, 0.97), rgba(250, 252, 251, 0.9));
  color: var(--favorites-rd-ink);
}

html[data-theme="dark"] .favorites-redesign {
  --favorites-rd-ink: #eef7f3;
  --favorites-rd-muted: #a8b7b2;
  --favorites-rd-accent: #57cbb8;
  --favorites-rd-accent-strong: #76dac9;
  --favorites-rd-rule: #31433e;
  --favorites-rd-line-strong: #50645e;
  --favorites-rd-surface:
    linear-gradient(180deg, rgba(20, 39, 34, 0.96), rgba(14, 27, 23, 0.9));
}

.favorites-redesign .redesign-page-shell {
  width: min(calc(100vw - 64px), var(--ui-content-max));
  padding-top: clamp(20px, 2.2vw, 34px);
}

.favorites-redesign .favorites-shell {
  display: grid;
  gap: 0;
}

.favorites-redesign .redesign-page-header {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-width: 0;
  margin: 0 0 clamp(20px, 2vw, 32px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.favorites-redesign .redesign-page-header .redesign-page-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
  color: var(--favorites-rd-accent);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
}

.favorites-redesign .redesign-page-header .redesign-page-kicker > span:first-child {
  flex: 0 0 auto;
  width: 36px;
  height: 1px;
  background: currentColor;
}

.favorites-redesign .redesign-page-header h1 {
  min-width: 0;
  margin: 0;
  color: var(--favorites-rd-ink);
  font-size: clamp(38px, 3.5vw, 56px);
  font-weight: 680;
  letter-spacing: -0.05em;
  line-height: 1;
}

.favorites-redesign .loading-panel {
  display: grid;
  align-content: center;
  gap: 8px;
  width: 100%;
  min-height: clamp(42px, 5vw, 72px);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.favorites-redesign .loading-panel[hidden] {
  display: grid !important;
  visibility: hidden;
  pointer-events: none;
}

.favorites-redesign .loading-panel .loading-title-row {
  justify-content: center;
  gap: 8px;
  color: var(--favorites-rd-ink);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.favorites-redesign .loading-panel .progress-track {
  width: min(320px, 62vw);
  height: 2px;
  margin: 0 auto;
  background: var(--favorites-rd-rule);
  border: 0;
  border-radius: 0;
}

.favorites-redesign .loading-panel .progress-fill {
  background: var(--favorites-rd-accent);
  border-radius: 0;
}

.favorites-redesign .auth-status {
  position: fixed;
  z-index: 80;
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 3vw, 38px);
  width: max-content;
  max-width: min(420px, calc(100vw - 36px));
  min-height: 0;
  margin: 0;
  padding: 11px 14px;
  color: var(--favorites-rd-ink);
  background: rgba(250, 252, 251, 0.97);
  border: 0;
  border-left: 2px solid var(--favorites-rd-accent);
  border-radius: 3px;
  box-shadow: 0 14px 38px rgba(10, 28, 23, 0.14);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.favorites-redesign .auth-status[hidden] {
  display: none;
}

.favorites-redesign .auth-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.favorites-redesign .auth-status.is-success {
  color: var(--favorites-rd-ink);
}

.favorites-redesign .auth-status.is-error {
  color: var(--favorites-rd-ink);
  border-left-color: #c24c3a;
}

html[data-theme="dark"] .favorites-redesign .auth-status {
  color: var(--favorites-rd-ink);
  background: rgba(17, 33, 28, 0.97);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
}

.favorites-redesign .favorites-grid {
  display: grid;
  gap: clamp(42px, 5vw, 72px);
  min-width: 0;
  margin: 0;
}

.favorites-redesign .favorites-group {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0 28px;
  min-width: 0;
}

.favorites-redesign .favorites-group-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  align-self: start;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 0 0 1px;
  border-bottom: 1px solid var(--favorites-rd-rule);
}

.favorites-redesign .favorites-group-heading h2 {
  min-width: 0;
  margin: 0;
  color: var(--favorites-rd-ink);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.favorites-redesign .favorites-group-heading span {
  color: var(--favorites-rd-muted);
  font-size: 12px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.favorites-redesign .favorites-tabs {
  grid-column: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--favorites-rd-rule);
  scrollbar-width: none;
}

.favorites-redesign .favorites-tabs-frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  min-width: 0;
}

.favorites-redesign .favorites-tabs::-webkit-scrollbar {
  display: none;
}

.favorites-redesign .favorites-tab-scroll {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 50px;
  padding: 0;
  color: var(--favorites-rd-muted);
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid var(--favorites-rd-rule);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.favorites-redesign .favorites-tab-scroll[hidden] {
  display: none;
}

.favorites-redesign .favorites-tab-scroll-previous {
  grid-column: 1;
  justify-content: start;
}

.favorites-redesign .favorites-tab-scroll-next {
  grid-column: 3;
  justify-content: end;
}

.favorites-redesign .favorites-tab-scroll:hover,
.favorites-redesign .favorites-tab-scroll:focus-visible {
  color: var(--favorites-rd-accent);
  background: transparent !important;
  border-bottom-color: var(--favorites-rd-accent);
  outline: 0;
  box-shadow: none;
}

.favorites-redesign .favorites-tab-scroll-icon {
  width: 19px;
  height: 19px;
  transition: transform 140ms ease;
}

.favorites-redesign .favorites-tab-scroll-previous:hover .favorites-tab-scroll-icon,
.favorites-redesign .favorites-tab-scroll-previous:focus-visible .favorites-tab-scroll-icon {
  transform: translateX(-2px);
}

.favorites-redesign .favorites-tab-scroll-next:hover .favorites-tab-scroll-icon,
.favorites-redesign .favorites-tab-scroll-next:focus-visible .favorites-tab-scroll-icon {
  transform: translateX(2px);
}

.favorites-redesign .favorite-tab-shell {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 3px;
  align-items: center;
  max-width: min(440px, 74vw);
}

.favorites-redesign .favorite-tab {
  position: relative;
  display: block;
  min-width: 130px;
  max-width: 400px;
  min-height: 50px;
  padding: 0 2px;
  overflow: hidden;
  color: var(--favorites-rd-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.favorites-redesign .favorite-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.favorites-redesign .favorite-tab .event-tab-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorites-redesign .favorite-tab:hover,
.favorites-redesign .favorite-tab.is-active {
  color: var(--favorites-rd-ink);
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.favorites-redesign .favorite-tab:focus-visible {
  color: var(--favorites-rd-ink);
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: inset 0 -2px var(--favorites-rd-accent);
}

.favorites-redesign .favorite-tab.is-active::after {
  background: var(--favorites-rd-accent);
}

.favorites-redesign .favorite-tab-close {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--favorites-rd-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.favorites-redesign .favorite-tab-close:hover {
  color: var(--favorites-rd-ink);
  background: transparent;
  outline: 0;
  box-shadow: none;
}

.favorites-redesign .favorite-tab-close:focus-visible {
  color: var(--favorites-rd-ink);
  background: transparent;
  outline: 1px solid var(--favorites-rd-accent);
  outline-offset: 2px;
  box-shadow: none;
}

.favorites-redesign .favorites-chart-panel {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: clamp(22px, 2.4vw, 36px);
}

.favorites-redesign .favorite-chart-card {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 38px);
  background: var(--favorites-rd-surface);
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}

.favorites-redesign .favorite-chart-card:hover,
.favorites-redesign .favorite-chart-card:focus-within {
  border: 0;
  box-shadow: none;
  transform: none;
}

.favorites-redesign .favorite-chart-card .events-chart-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(20px, 3vw, 48px);
}

.favorites-redesign .favorite-chart-card .lightbox-eyebrow {
  display: block;
  margin: 0 0 8px;
  color: var(--favorites-rd-accent);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.favorites-redesign .favorite-chart-card .events-chart-header h2 {
  margin: 0;
  color: var(--favorites-rd-ink);
  font-size: clamp(24px, 2.7vw, 42px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.favorites-redesign .favorite-chart-card .cpi-title-suffix {
  display: block;
  margin-top: 0.22em;
  color: var(--favorites-rd-muted);
  font-size: 0.45em;
  font-weight: 520;
  letter-spacing: -0.01em;
  white-space: normal;
}

.favorites-redesign .favorite-chart-card .events-chart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.favorites-redesign .favorite-chart-card .icon-button,
.favorites-redesign .favorite-chart-card .favorite-widget,
.favorites-redesign .favorite-chart-card .cpi-mode-toggle {
  color: var(--favorites-rd-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
}

.favorites-redesign .favorite-chart-card .icon-button:hover,
.favorites-redesign .favorite-chart-card .icon-button:focus-visible,
.favorites-redesign .favorite-chart-card .favorite-widget:hover,
.favorites-redesign .favorite-chart-card .favorite-widget:focus-visible,
.favorites-redesign .favorite-chart-card .cpi-mode-toggle:hover,
.favorites-redesign .favorite-chart-card .cpi-mode-toggle:focus-visible {
  color: var(--favorites-rd-accent);
  background: transparent;
  border-bottom-color: currentColor;
  outline: 0;
  box-shadow: none;
}

.favorites-redesign .favorite-chart-card .favorite-widget[aria-pressed="true"] {
  color: var(--favorites-rd-accent);
  background: transparent;
  border-bottom-color: currentColor;
}

.favorites-redesign .favorite-chart-card .cpi-mode-toggle[aria-pressed="true"] {
  color: #ffffff;
  background: var(--favorites-rd-accent);
  border-bottom-color: var(--favorites-rd-accent);
}

.favorites-redesign .favorite-chart-card .latest-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-top: clamp(18px, 2vw, 28px);
}

.favorites-redesign .favorite-chart-card .latest-row strong {
  color: var(--favorites-rd-ink);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1;
}

.favorites-redesign .favorite-chart-card .latest-row span {
  color: var(--favorites-rd-muted);
  font-size: 14px;
  font-weight: 700;
}

.favorites-redesign .country-rank-lightbox-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin: 14px 0 0;
}

.favorites-redesign .country-rank-lightbox-slot .country-rank-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 11px;
  color: var(--favorites-rd-accent);
  background: color-mix(in srgb, var(--favorites-rd-accent) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--favorites-rd-accent) 48%, transparent);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.favorites-redesign .country-rank-lightbox-slot .country-rank-label.is-worst {
  color: #9a493f;
  background: rgba(154, 73, 63, 0.07);
  border-color: rgba(154, 73, 63, 0.42);
}

.favorites-redesign .country-rank-lightbox-slot .country-rank-label:hover,
.favorites-redesign .country-rank-lightbox-slot .country-rank-label:focus-visible {
  color: #ffffff;
  background: var(--favorites-rd-accent);
  border-color: var(--favorites-rd-accent);
  outline: none;
}

.favorites-redesign .country-rank-lightbox-slot .country-rank-label.is-worst:hover,
.favorites-redesign .country-rank-lightbox-slot .country-rank-label.is-worst:focus-visible {
  background: #9a493f;
  border-color: #9a493f;
}

html[data-theme="dark"] .favorites-redesign .country-rank-lightbox-slot .country-rank-label.is-worst {
  color: #e09a91;
  background: rgba(224, 154, 145, 0.09);
  border-color: rgba(224, 154, 145, 0.5);
}

.favorites-redesign .favorite-chart-card .events-chart {
  width: 100%;
  height: min(46vh, 430px);
  min-height: 320px;
  margin-top: clamp(18px, 2vw, 28px);
}

.favorites-redesign .favorite-chart-card .compare-legend {
  margin-top: 22px;
}

.favorites-redesign .favorite-chart-card .lightbox-footer {
  margin-top: 16px;
  padding-top: 14px;
  color: var(--favorites-rd-muted);
  border-top: 1px solid var(--favorites-rd-rule);
  font-size: 12px;
  font-weight: 700;
}

.favorites-redesign .favorite-chart-card .indicator-description-button,
.favorites-redesign .favorite-chart-card .chart-events-button {
  color: var(--favorites-rd-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
}

.favorites-redesign .favorite-chart-card .indicator-description-button:hover,
.favorites-redesign .favorite-chart-card .indicator-description-button:focus-visible,
.favorites-redesign .favorite-chart-card .chart-events-button:hover,
.favorites-redesign .favorite-chart-card .chart-events-button:focus-visible,
.favorites-redesign .favorite-chart-card .chart-events-button.is-active {
  color: var(--favorites-rd-accent);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  outline: 0;
  box-shadow: none;
}

/* Source-native chart compositions. */
.favorites-redesign .favorite-chart-card .indicator-title-tooltip-trigger,
.favorites-redesign .favorite-chart-card .compare-title-tooltip-trigger {
  display: inline;
  max-width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: pointer;
}

.favorites-redesign .favorite-chart-card .indicator-title-tooltip-trigger:hover,
.favorites-redesign .favorite-chart-card .indicator-title-tooltip-trigger:focus-visible,
.favorites-redesign .favorite-chart-card .indicator-title-tooltip-trigger[aria-expanded="true"],
.favorites-redesign .favorite-chart-card .compare-title-tooltip-trigger:hover,
.favorites-redesign .favorite-chart-card .compare-title-tooltip-trigger:focus-visible,
.favorites-redesign .favorite-chart-card .compare-title-tooltip-trigger[aria-expanded="true"] {
  color: var(--favorites-rd-accent);
  border-bottom-color: currentColor;
  outline: 0;
}

.favorites-redesign .favorite-chart-card .lightbox-title-block,
.favorites-redesign .favorite-chart-card .events-chart-title-block {
  position: relative;
  min-width: 0;
}

.favorites-redesign .favorite-chart-card .description-popover {
  position: absolute;
  z-index: 9;
  top: calc(100% + 12px);
  right: auto;
  bottom: auto;
  left: 0;
  width: min(560px, calc(100vw - 96px));
  max-height: 240px;
  margin: 0;
  padding: 17px 19px;
  overflow: auto;
  color: var(--favorites-rd-ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--favorites-rd-rule);
  border-radius: 0;
  box-shadow: 0 18px 44px rgba(10, 28, 23, 0.12);
}

html[data-theme="dark"] .favorites-redesign .favorite-chart-card .description-popover {
  background: #14241f;
}

.favorites-redesign .favorite-chart-card .description-popover strong {
  color: var(--favorites-rd-ink);
  font-size: 13px;
  font-weight: 650;
}

.favorites-redesign .favorite-chart-card .description-popover p {
  margin: 8px 0 0;
  color: var(--favorites-rd-muted);
  font-size: 13px;
  font-weight: 430;
  line-height: 1.52;
}

.favorites-redesign .favorite-chart-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  align-items: flex-start;
  justify-content: flex-end;
}

.favorites-redesign .favorite-chart-actions .icon-button,
.favorites-redesign .favorite-chart-actions .cpi-mode-toggle {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
}

.favorites-redesign .favorite-dashboard-card,
.favorites-redesign .favorite-forecast-card {
  padding: clamp(30px, 3.4vw, 52px);
}

.favorites-redesign .favorite-dashboard-card .lightbox-header,
.favorites-redesign .favorite-forecast-card .lightbox-header {
  display: block;
  padding-right: min(360px, 30vw);
}

.favorites-redesign .favorite-dashboard-card .lightbox-header h2,
.favorites-redesign .favorite-forecast-card .lightbox-header h2 {
  max-width: 920px;
  margin: 0;
  color: var(--favorites-rd-ink);
  font-size: clamp(25px, 2.45vw, 38px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.favorites-redesign .favorite-dashboard-card .lightbox-eyebrow,
.favorites-redesign .favorite-forecast-card .lightbox-eyebrow {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.17em;
}

.favorites-redesign .favorite-dashboard-card .favorite-chart-actions,
.favorites-redesign .favorite-forecast-card .favorite-chart-actions {
  position: absolute;
  top: clamp(30px, 3.4vw, 52px);
  right: clamp(30px, 3.4vw, 52px);
}

.favorites-redesign .favorite-dashboard-card .lightbox-latest,
.favorites-redesign .favorite-forecast-card .lightbox-latest {
  gap: 18px;
  margin-top: 22px;
}

.favorites-redesign .favorite-dashboard-card .lightbox-latest strong,
.favorites-redesign .favorite-forecast-card .lightbox-latest strong {
  max-width: min(920px, calc(100% - 160px));
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 640;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.favorites-redesign .favorite-dashboard-card .lightbox-latest span,
.favorites-redesign .favorite-forecast-card .lightbox-latest span {
  font-size: 15px;
  font-weight: 520;
}

.favorites-redesign .favorite-dashboard-card .lightbox-chart,
.favorites-redesign .favorite-forecast-card .forecast-chart-large {
  width: 100%;
  height: min(48vh, 520px);
  min-height: 360px;
  margin-top: 18px;
}

.favorites-redesign .favorite-dashboard-card .lightbox-footer,
.favorites-redesign .favorite-forecast-card .lightbox-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 0 0;
}

.favorites-redesign .favorite-dashboard-card .lightbox-footer > span:last-child,
.favorites-redesign .favorite-forecast-card .lightbox-footer > span:last-child {
  justify-self: end;
}

.favorites-redesign .indicator-code-link,
.favorites-redesign .indicator-code-link:visited,
.favorites-redesign .indicator-code-link:hover,
.favorites-redesign .indicator-code-link:active {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.favorites-redesign .indicator-code-link:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

html[data-theme="dark"] .favorites-redesign .indicator-code-link,
html[data-theme="dark"] .favorites-redesign .indicator-code-link:visited,
html[data-theme="dark"] .favorites-redesign .indicator-code-link:hover,
html[data-theme="dark"] .favorites-redesign .indicator-code-link:active {
  color: inherit;
  text-decoration: none;
}

.favorites-redesign .favorite-dashboard-card .chart-events-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 0 3px;
  color: var(--favorites-rd-ink);
  border-bottom: 1px solid var(--favorites-rd-rule);
  font-size: 11px;
  font-weight: 680;
}

.favorites-redesign .favorite-dashboard-card .chart-events-button::after {
  color: var(--favorites-rd-accent);
  font-size: 13px;
  line-height: 1;
  content: "↓";
  transition: transform 160ms ease;
}

.favorites-redesign .favorite-dashboard-card .chart-events-button:hover::after,
.favorites-redesign .favorite-dashboard-card .chart-events-button:focus-visible::after {
  transform: translateY(2px);
}

.favorites-redesign .favorite-dashboard-card .chart-events-button[aria-expanded="true"]::after {
  content: "↑";
}

.favorites-redesign .favorite-dashboard-events {
  max-height: min(34dvh, 340px);
  margin-top: 14px;
  padding: 0;
  overflow: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.favorites-redesign .favorite-dashboard-events[hidden] {
  display: none;
}

.favorites-redesign .favorite-dashboard-events .events-panel-heading {
  padding: 18px 0 14px;
  color: var(--favorites-rd-ink);
  background: transparent;
  border: 0;
  font-size: 20px;
  font-weight: 650;
}

.favorites-redesign .favorite-dashboard-events .events-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 0;
  list-style: none;
}

.favorites-redesign .favorite-dashboard-events .events-list-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 118px;
  margin: 0;
  padding: 18px 20px 18px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--favorites-rd-rule);
  border-radius: 0;
  box-shadow: none;
}

.favorites-redesign .favorite-dashboard-events .events-list-item:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--favorites-rd-rule);
}

.favorites-redesign .favorite-dashboard-events .events-list-item.is-active {
  background: linear-gradient(90deg, rgba(8, 127, 113, 0.08), transparent);
  box-shadow: inset 3px 0 0 var(--favorites-rd-accent);
}

.favorites-redesign .favorite-dashboard-events .events-marker {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--favorites-rd-accent);
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 750;
}

.favorites-redesign .favorite-dashboard-events .events-item-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--favorites-rd-ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.38;
}

.favorites-redesign .favorite-dashboard-events .events-event-token {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.favorites-redesign .favorite-dashboard-events .events-scope {
  min-height: 0;
  padding: 0;
  color: var(--favorites-rd-accent);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.favorites-redesign .favorite-dashboard-events .events-list-item p {
  margin: 8px 0 0;
  color: var(--favorites-rd-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.48;
}

.favorites-redesign .favorite-compare-card {
  padding: clamp(20px, 2.2vw, 34px);
}

.favorites-redesign .favorite-compare-card .compare-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.favorites-redesign .favorite-compare-card .compare-card-header h2 {
  max-width: 920px;
  margin: 0;
  color: var(--favorites-rd-ink);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.favorites-redesign .favorite-compare-card .lightbox-eyebrow {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.favorites-redesign .favorite-compare-card .favorite-chart-actions {
  gap: 5px;
}

.favorites-redesign .favorite-compare-card .favorite-chart-actions .icon-button,
.favorites-redesign .favorite-compare-card .favorite-chart-actions .cpi-mode-toggle {
  min-width: 34px;
  height: 34px;
}

.favorites-redesign .favorite-compare-card .compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  align-items: center;
  margin-top: 22px;
}

.favorites-redesign .favorite-compare-card .legend-item {
  display: grid;
  grid-template-columns: 10px minmax(0, max-content) max-content;
  gap: 8px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  margin-right: 16px;
  padding-right: 16px;
  border-right: 1px solid var(--favorites-rd-rule);
}

.favorites-redesign .favorite-compare-card .legend-item:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.favorites-redesign .favorite-compare-card .legend-dot {
  width: 8px;
  height: 8px;
  background: var(--series-color);
  border-radius: 50%;
}

.favorites-redesign .favorite-compare-card .legend-country {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorites-redesign .favorite-compare-card .legend-value {
  color: var(--favorites-rd-muted);
  white-space: nowrap;
}

.favorites-redesign .favorite-compare-card .compare-chart {
  width: 100%;
  height: clamp(360px, 42vw, 540px);
  margin-top: 20px;
}

.favorites-redesign .favorite-compare-card .card-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
  padding-top: 16px;
  color: var(--favorites-rd-muted);
  border-top: 1px solid var(--favorites-rd-rule);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.favorites-redesign .favorite-compare-card > .description-popover {
  top: 94px;
  right: 28px;
  left: 28px;
  width: auto;
}

.favorites-redesign .favorite-events-card .events-chart-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.favorites-redesign .favorite-events-card .events-chart-header h2 {
  max-width: 1040px;
  font-size: clamp(28px, 2.65vw, 42px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.favorites-redesign .favorite-events-card .events-chart-actions {
  flex-wrap: nowrap;
}

.favorites-redesign .favorite-events-card .lightbox-latest {
  margin-top: clamp(22px, 2.4vw, 34px);
}

.favorites-redesign .favorite-events-card .events-mode-toggle {
  display: flex;
  align-items: center;
  gap: 26px;
  width: 100%;
  min-height: 46px;
  margin: 18px 0 0;
  padding: 0;
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--favorites-rd-rule);
  border-radius: 0;
  box-shadow: none;
  scrollbar-width: none;
}

.favorites-redesign .favorite-events-card .events-mode-toggle::-webkit-scrollbar {
  display: none;
}

.favorites-redesign .favorite-events-card .events-mode-button {
  position: relative;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0;
  color: var(--favorites-rd-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.favorites-redesign .favorite-events-card .events-mode-button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.favorites-redesign .favorite-events-card .events-mode-button:hover,
.favorites-redesign .favorite-events-card .events-mode-button:focus-visible,
.favorites-redesign .favorite-events-card .events-mode-button.is-active {
  color: var(--favorites-rd-ink);
  background: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  outline: 0;
  box-shadow: none !important;
}

.favorites-redesign .favorite-events-card .events-mode-button.is-active::after {
  background: var(--favorites-rd-accent);
}

.favorites-redesign .favorite-events-card .events-chart {
  width: 100%;
  height: min(49vh, 500px);
  min-height: 360px;
  margin-top: 20px;
}

.favorites-redesign .favorite-events-card .lightbox-footer {
  display: flex;
  justify-content: space-between;
}

.favorites-redesign .favorite-events-card > .events-panel {
  width: 100%;
  margin-top: clamp(24px, 2.6vw, 38px);
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.favorites-redesign .favorite-events-card .events-panel-heading {
  margin: 0;
  padding: 0 20px;
  color: var(--favorites-rd-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: clamp(20px, 1.65vw, 26px);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.favorites-redesign .favorite-events-card .events-panel-status {
  margin: 0;
  padding: 20px 0 4px;
  color: var(--favorites-rd-muted);
  font-size: 14px;
  font-weight: 600;
}

.favorites-redesign .favorite-events-card .events-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.favorites-redesign .favorite-events-card .events-list-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  min-height: 164px;
  margin: 0;
  padding: 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.favorites-redesign .favorite-events-card .events-list-item:nth-child(even) {
  border-left: 1px solid var(--favorites-rd-rule);
}

.favorites-redesign .favorite-events-card .events-list-item:nth-child(n + 3) {
  border-top: 1px solid var(--favorites-rd-rule);
}

.favorites-redesign .favorite-events-card .events-key-slider {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(300px, 31vw, 420px);
  gap: 18px;
  padding: 18px 20px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: 20px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--favorites-rd-line-strong) transparent;
  scrollbar-width: thin;
}

.favorites-redesign .favorite-events-card .events-key-slider .events-list-item {
  min-height: 210px;
  border: 0;
  cursor: pointer;
  scroll-snap-align: start;
}

.favorites-redesign .favorite-events-card .events-list-item.is-active {
  background: rgba(8, 127, 113, 0.08);
  box-shadow: inset 4px 0 0 var(--favorites-rd-accent);
}

.favorites-redesign .favorite-events-card .events-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.favorites-redesign .favorite-events-card .events-year-column {
  color: var(--favorites-rd-accent);
  font-size: 12px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.favorites-redesign .favorite-events-card .events-list-item > strong {
  color: var(--favorites-rd-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.favorites-redesign .favorite-events-card .events-scope {
  min-height: 22px;
  padding: 0 9px;
  color: #12685f;
  background: #e8f3f0;
  border: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.favorites-redesign .favorite-events-card .events-scope-global {
  color: #1d4f73;
  background: #e9f4fb;
}

.favorites-redesign .favorite-events-card .events-list-item p {
  margin: 0;
  color: var(--favorites-rd-muted);
  font-size: 14px;
  font-weight: 430;
  line-height: 1.5;
}

.favorites-redesign .favorite-chart-card .google-event-link {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--favorites-rd-muted);
  background: transparent;
  border: 1px solid var(--favorites-rd-line-strong);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.favorites-redesign .favorite-chart-card .google-event-link:hover,
.favorites-redesign .favorite-chart-card .google-event-link:focus-visible {
  color: #ffffff;
  background: var(--favorites-rd-accent);
  border-color: var(--favorites-rd-accent);
  outline: 0;
}

.favorites-redesign .favorite-forecast-card .forecast-legend {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  color: var(--favorites-rd-muted);
  font-size: 12px;
  font-weight: 570;
}

.favorites-redesign .favorite-forecast-card .forecast-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.favorites-redesign .favorite-forecast-card .legend-line {
  width: 30px;
  border-top: 2px solid var(--favorites-rd-accent);
}

.favorites-redesign .favorite-forecast-card .legend-line-dashed {
  border-top-color: #b7791f;
  border-top-style: dashed;
}

.favorites-redesign .favorite-forecast-card .forecast-boundary-label {
  padding: 3px 6px;
  color: #7d5413;
  background: rgba(255, 251, 240, 0.94);
  border: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 620;
  box-shadow: none;
}

html[data-theme="dark"] .favorites-redesign .favorite-forecast-card .forecast-boundary-label {
  color: #f0c573;
  background: rgba(38, 30, 17, 0.94);
}

.favorites-redesign .favorite-forecast-card .lightbox-footer strong,
.favorites-redesign .favorite-forecast-card .forecast-footer-text {
  color: var(--favorites-rd-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.favorites-redesign .favorites-empty-card,
.favorites-redesign .empty-state {
  min-height: 140px;
  padding: 32px 0;
  color: var(--favorites-rd-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
}

.favorites-redesign .favorites-empty-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.favorites-redesign .favorites-empty-card .button-primary {
  min-height: 44px;
  padding-inline: 22px;
  border: 0;
  border-radius: 4px;
}

html[data-theme="dark"] .favorites-redesign .favorites-heading,
html[data-theme="dark"] .favorites-redesign .favorites-group,
html[data-theme="dark"] .favorites-redesign .favorites-group-heading,
html[data-theme="dark"] .favorites-redesign .favorite-chart-card,
html[data-theme="dark"] .favorites-redesign .favorites-empty-card,
html[data-theme="dark"] .favorites-redesign .empty-state {
  color: inherit;
  border-color: var(--favorites-rd-rule);
  box-shadow: none;
}

html[data-theme="dark"] .favorites-redesign .favorites-heading,
html[data-theme="dark"] .favorites-redesign .favorites-group,
html[data-theme="dark"] .favorites-redesign .favorites-group-heading,
html[data-theme="dark"] .favorites-redesign .favorites-empty-card,
html[data-theme="dark"] .favorites-redesign .empty-state {
  background: transparent;
}

html[data-theme="dark"] .favorites-redesign .favorite-chart-card {
  background: var(--favorites-rd-surface);
}

html[data-theme="dark"] .favorites-redesign .favorite-tab,
html[data-theme="dark"] .favorites-redesign .favorite-tab:hover,
html[data-theme="dark"] .favorites-redesign .favorite-tab:focus-visible,
html[data-theme="dark"] .favorites-redesign .favorite-tab.is-active {
  background: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .favorites-redesign .favorite-tab:focus-visible::after,
html[data-theme="dark"] .favorites-redesign .favorite-tab.is-active::after {
  background: var(--favorites-rd-accent);
}

html[data-theme="dark"] .favorites-redesign .favorites-tab-scroll,
html[data-theme="dark"] .favorites-redesign .favorites-tab-scroll:hover,
html[data-theme="dark"] .favorites-redesign .favorites-tab-scroll:focus-visible {
  color: var(--favorites-rd-muted);
  background: transparent !important;
  border-color: transparent transparent var(--favorites-rd-rule) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .favorites-redesign .favorites-tab-scroll:hover,
html[data-theme="dark"] .favorites-redesign .favorites-tab-scroll:focus-visible {
  color: var(--favorites-rd-accent);
  border-bottom-color: var(--favorites-rd-accent) !important;
}

html[data-theme="dark"] .favorites-redesign .favorite-events-card .events-scope {
  color: #8ed9cc;
  background: rgba(54, 189, 169, 0.12);
}

html[data-theme="dark"] .favorites-redesign .favorite-events-card .events-scope-global {
  color: #9bc7ea;
  background: rgba(91, 153, 204, 0.13);
}

html[data-theme="dark"] .favorites-redesign .favorite-events-card .events-panel-heading,
html[data-theme="dark"] .favorites-redesign .favorite-events-card .events-list,
html[data-theme="dark"] .favorites-redesign .favorite-events-card .events-key-slider .events-list-item {
  background: transparent;
  border: 0;
  box-shadow: none;
}

html[data-theme="dark"] .favorites-redesign .favorite-events-card .events-list-item.is-active {
  background: rgba(87, 203, 184, 0.08);
  box-shadow: inset 4px 0 0 var(--favorites-rd-accent);
}

@media (max-width: 920px) {
  .favorites-redesign .redesign-page-shell {
    width: min(calc(100vw - 40px), var(--ui-content-max));
    padding-top: 48px;
  }

  .favorites-redesign .redesign-page-header {
    margin-bottom: 28px;
  }

  .favorites-redesign .favorites-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .favorites-redesign .favorites-group-heading {
    border-bottom: 0;
  }

  .favorites-redesign .favorites-chart-panel {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .favorites-redesign .redesign-page-shell {
    width: min(calc(100vw - 32px), var(--ui-content-max));
    padding-top: 20px;
  }

  .favorites-redesign .redesign-page-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .favorites-redesign .redesign-page-header .redesign-page-kicker {
    gap: 12px;
    font-size: 11px;
  }

  .favorites-redesign .redesign-page-header .redesign-page-kicker > span:first-child {
    width: 28px;
  }

  .favorites-redesign .redesign-page-header h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .favorites-redesign .loading-panel {
    min-height: 36px;
  }

  .favorites-redesign .auth-status {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }

  .favorites-redesign .favorites-grid {
    gap: 44px;
  }

  .favorites-redesign .favorite-tab-shell {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .favorites-redesign .favorite-tab-close {
    width: 40px;
    height: 40px;
  }

  .favorites-redesign .favorite-chart-card {
    padding: 18px 16px;
  }

  .favorites-redesign .favorite-dashboard-card .lightbox-header,
  .favorites-redesign .favorite-forecast-card .lightbox-header {
    padding-right: 0;
  }

  .favorites-redesign .favorite-dashboard-card .favorite-chart-actions,
  .favorites-redesign .favorite-forecast-card .favorite-chart-actions {
    position: static;
    margin-top: 18px;
  }

  .favorites-redesign .favorite-chart-actions {
    justify-content: flex-start;
    max-width: 100%;
    padding-bottom: 5px;
    overflow-x: auto;
  }

  .favorites-redesign .favorite-dashboard-card .lightbox-header h2,
  .favorites-redesign .favorite-forecast-card .lightbox-header h2,
  .favorites-redesign .favorite-events-card .events-chart-header h2 {
    font-size: clamp(27px, 8.5vw, 40px);
  }

  .favorites-redesign .favorite-dashboard-card .lightbox-latest,
  .favorites-redesign .favorite-forecast-card .lightbox-latest {
    display: grid;
    gap: 8px;
  }

  .favorites-redesign .favorite-dashboard-card .lightbox-latest strong,
  .favorites-redesign .favorite-forecast-card .lightbox-latest strong {
    max-width: 100%;
    font-size: clamp(34px, 10.5vw, 48px);
  }

  .favorites-redesign .favorite-dashboard-card .lightbox-chart,
  .favorites-redesign .favorite-forecast-card .forecast-chart-large,
  .favorites-redesign .favorite-events-card .events-chart {
    width: calc(100% + 8px);
    height: 340px;
    min-height: 280px;
    margin-right: -4px;
    margin-left: -4px;
  }

  .favorites-redesign .favorite-compare-card .compare-card-header,
  .favorites-redesign .favorite-chart-card .events-chart-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .favorites-redesign .favorite-compare-card .favorite-chart-actions,
  .favorites-redesign .favorite-chart-card .events-chart-actions {
    justify-content: flex-start;
  }

  .favorites-redesign .favorite-compare-card .compare-chart {
    height: 360px;
  }

  .favorites-redesign .favorite-chart-card .lightbox-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .favorites-redesign .favorite-chart-card .lightbox-footer > span:last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .favorites-redesign .favorite-dashboard-events .events-list,
  .favorites-redesign .favorite-events-card .events-list:not(.events-key-slider) {
    grid-template-columns: minmax(0, 1fr);
  }

  .favorites-redesign .favorite-dashboard-events .events-list-item:nth-child(even),
  .favorites-redesign .favorite-events-card .events-list-item:nth-child(even) {
    border-left: 0;
  }

  .favorites-redesign .favorite-dashboard-events .events-list-item,
  .favorites-redesign .favorite-dashboard-events .events-list-item:nth-child(even) {
    padding: 16px 0;
  }

  .favorites-redesign .favorite-dashboard-events .events-list-item:nth-child(n + 2),
  .favorites-redesign .favorite-events-card .events-list-item:nth-child(n + 2) {
    border-top: 1px solid var(--favorites-rd-rule);
  }

  .favorites-redesign .favorite-events-card .events-key-slider {
    grid-auto-columns: min(82vw, 340px);
    padding-inline: 0;
  }

  .favorites-redesign .favorite-events-card .events-panel-heading {
    padding-inline: 0;
  }

  .favorites-redesign .favorite-chart-card .description-popover {
    right: 0;
    left: 0;
    width: auto;
  }

  .favorites-redesign .favorites-empty-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .favorites-redesign .favorite-tab,
  .favorites-redesign .favorite-chart-card,
  .favorites-redesign .auth-status {
    transition: none;
  }
}

/* Full-width semantic section bands. */
body.favorites-redesign {
  --favorites-rd-band-tinted: #f4f7f6;
  --favorites-rd-band-base: #ffffff;
  --favorites-rd-section-space: 72px;
  background: var(--favorites-rd-band-base);
}

html[data-theme="dark"] body.favorites-redesign {
  --favorites-rd-band-tinted: #14231e;
  --favorites-rd-band-base: #0e1814;
  background: var(--favorites-rd-band-base);
}

.favorites-redesign .favorites-shell {
  gap: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.favorites-redesign .loading-panel {
  min-height: var(--favorites-rd-section-space);
}

.favorites-redesign .favorites-grid {
  gap: 0;
}

.favorites-redesign .favorites-group {
  --favorites-rd-section-band: var(--favorites-rd-band-base);
  --favorites-rd-card-surface: #eaf2ef;
  position: relative;
  padding: var(--favorites-rd-section-space) 0;
  overflow: visible;
}

.favorites-redesign .favorites-group:nth-child(odd) {
  --favorites-rd-section-band: var(--favorites-rd-band-tinted);
  --favorites-rd-card-surface: #ffffff;
}

.favorites-redesign .favorites-group::before,
.favorites-redesign .favorites-grid:has(> .favorites-empty-card)::before {
  position: absolute;
  z-index: 0;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  background: var(--favorites-rd-section-band, var(--favorites-rd-band-tinted));
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.favorites-redesign .favorites-group > *,
.favorites-redesign .favorites-grid > .favorites-empty-card {
  position: relative;
  z-index: 1;
}

.favorites-redesign .favorites-grid:has(> .favorites-empty-card) {
  --favorites-rd-section-band: var(--favorites-rd-band-tinted);
  position: relative;
  padding-block: var(--favorites-rd-section-space);
}

.favorites-redesign .favorites-group .favorite-chart-card {
  background: var(--favorites-rd-card-surface);
}

html[data-theme="dark"] .favorites-redesign .favorites-group {
  --favorites-rd-card-surface: #172823;
}

html[data-theme="dark"] .favorites-redesign .favorites-group:nth-child(odd) {
  --favorites-rd-card-surface: #0d1a16;
}

html[data-theme="dark"] .favorites-redesign .favorites-group .favorite-chart-card {
  background: var(--favorites-rd-card-surface);
}

body.favorites-redesign .site-footer {
  color: var(--favorites-rd-ink);
  background: var(--favorites-rd-band-base) !important;
}

body.favorites-redesign .site-footer {
  --ui-muted: var(--favorites-rd-muted);
  --ui-rule: var(--favorites-rd-rule);
}

body.favorites-redesign .site-footer .site-footer-inner {
  border-top-color: var(--favorites-rd-rule);
}

body.favorites-redesign:has(.favorites-grid > .favorites-group:nth-child(odd):last-child) .site-footer .site-footer-inner,
body.favorites-redesign:has(.favorites-grid > .favorites-empty-card:last-child) .site-footer .site-footer-inner {
  border-top: 0;
}

@media (max-width: 860px) {
  body.favorites-redesign {
    --favorites-rd-section-space: 56px;
  }
}

@media (max-width: 620px) {
  body.favorites-redesign {
    --favorites-rd-section-space: 48px;
  }
}
