:host {
  --border: #e5e7eb;
  --text: #0f172a;
  --muted: #475569;
  --brand: #f59e0b;
  --link: #2563eb;
  --link-hover: #1d4ed8;
  --link-underline: rgba(37, 99, 235, .35);
  --bg: #ffffff;
  --card: #fafafa;
  display: block;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:host([data-theme="dark"]) {
  --border: #334155;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --link: #60a5fa;
  --link-hover: #93c5fd;
  --link-underline: rgba(96, 165, 250, .42);
  --bg: #0b1220;
  --card: #0f172a;
}

* {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.wrap {
  max-width: 1080px;
  margin: 24px auto;
  padding: 24px 16px 0;
  text-align: center;
}

.top-line {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  position: relative;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  letter-spacing: 0;
}

#card-deals-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .32em;
  flex-wrap: wrap;
}

.cardmatch-title-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cardmatch-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  flex: 0 0 38px;
  border-radius: 8px;
}

.cardmatch-logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sub {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
  max-width: 720px;
  margin: 0 auto 10px;
}

.header-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 14px;
}

.header-view-controls {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 6px;
  margin-left: auto;
}

.header-view-controls .chip-row {
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.mobile-header-controls {
  display: none;
}

.tutorial-entry {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  justify-content: center;
  margin: 0;
}

.tutorial-entry-btn {
  border: 1px solid rgba(245, 158, 11, .38);
  border-radius: 999px;
  background: rgba(255, 251, 235, .86);
  color: #92400e;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1;
  padding: 8px 11px;
}

.tutorial-entry-btn:hover,
.tutorial-entry-btn:focus {
  border-color: rgba(245, 158, 11, .62);
  background: #fef3c7;
  color: #78350f;
}

.tutorial-label-mobile { display: none; }

.full-cardmatch-link {
  display: flex;
  justify-content: center;
  margin: 18px auto 14px;
}

.full-cardmatch-link a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  background: rgba(239, 246, 255, .86);
  color: var(--link);
  font-size: .82rem;
  font-weight: 850;
  line-height: 1;
  padding: 9px 12px;
  text-decoration: none;
}

.full-cardmatch-link a:hover,
.full-cardmatch-link a:focus {
  border-color: rgba(37, 99, 235, .28);
  background: rgba(219, 234, 254, .95);
  color: var(--link-hover);
}

.shared-card-wrap {
  max-width: 820px;
  margin-top: 16px;
  padding-top: 14px;
}

.shared-card-chrome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 18px;
  padding: 9px 10px 9px 13px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 12px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
  text-align: left;
}

.shared-card-context {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.shared-card-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.shared-card-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 27px;
  border-radius: 7px;
}

.shared-card-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cardmatch-logo-mark .cardmatch-logo-light-hover,
.cardmatch-logo-mark .cardmatch-logo-night,
.cardmatch-logo-mark .cardmatch-logo-night-hover,
.shared-card-logo .cardmatch-logo-light-hover,
.shared-card-logo .cardmatch-logo-night,
.shared-card-logo .cardmatch-logo-night-hover {
  display: none;
}

:host(:not([data-theme="dark"])) .cardmatch-title-link:hover .cardmatch-logo-light,
:host(:not([data-theme="dark"])) .cardmatch-title-link:focus-visible .cardmatch-logo-light,
:host(:not([data-theme="dark"])) .shared-card-logo-link:hover .cardmatch-logo-light,
:host(:not([data-theme="dark"])) .shared-card-logo-link:focus-visible .cardmatch-logo-light {
  display: none;
}

:host(:not([data-theme="dark"])) .cardmatch-title-link:hover .cardmatch-logo-light-hover,
:host(:not([data-theme="dark"])) .cardmatch-title-link:focus-visible .cardmatch-logo-light-hover,
:host(:not([data-theme="dark"])) .shared-card-logo-link:hover .cardmatch-logo-light-hover,
:host(:not([data-theme="dark"])) .shared-card-logo-link:focus-visible .cardmatch-logo-light-hover {
  display: block;
}

:host([data-theme="dark"]) .cardmatch-logo-mark .cardmatch-logo-light,
:host([data-theme="dark"]) .cardmatch-logo-mark .cardmatch-logo-light-hover,
:host([data-theme="dark"]) .shared-card-logo .cardmatch-logo-light,
:host([data-theme="dark"]) .shared-card-logo .cardmatch-logo-light-hover {
  display: none;
}

:host([data-theme="dark"]) .cardmatch-logo-mark .cardmatch-logo-night,
:host([data-theme="dark"]) .shared-card-logo .cardmatch-logo-night {
  display: block;
}

:host([data-theme="dark"]) .cardmatch-title-link:hover .cardmatch-logo-night,
:host([data-theme="dark"]) .cardmatch-title-link:focus-visible .cardmatch-logo-night,
:host([data-theme="dark"]) .shared-card-logo-link:hover .cardmatch-logo-night,
:host([data-theme="dark"]) .shared-card-logo-link:focus-visible .cardmatch-logo-night {
  display: none;
}

:host([data-theme="dark"]) .cardmatch-title-link:hover .cardmatch-logo-night-hover,
:host([data-theme="dark"]) .cardmatch-title-link:focus-visible .cardmatch-logo-night-hover,
:host([data-theme="dark"]) .shared-card-logo-link:hover .cardmatch-logo-night-hover,
:host([data-theme="dark"]) .shared-card-logo-link:focus-visible .cardmatch-logo-night-hover {
  display: block;
}

.shared-card-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.shared-card-brand {
  color: var(--link);
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.shared-card-brand:hover,
.shared-card-brand:focus {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 3px;
}

.shared-card-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: .9rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.shared-card-copy-status {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.shared-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(148, 163, 184, .36);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--link);
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1;
  padding: 8px 11px;
  text-decoration: none;
  white-space: nowrap;
}

.shared-card-action:hover,
.shared-card-action:focus {
  border-color: rgba(37, 99, 235, .28);
  background: rgba(219, 234, 254, .86);
  color: var(--link-hover);
}

.shared-card-action.primary {
  border-color: rgba(245, 158, 11, .46);
  background: #f59e0b;
  color: #111;
}

.shared-card-action.primary:hover,
.shared-card-action.primary:focus {
  border-color: rgba(217, 119, 6, .62);
  background: #d97706;
  color: #111;
}

.shared-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
}

.shared-card-footer a {
  color: var(--link);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 3px;
}

.shared-card-footer a:hover,
.shared-card-footer a:focus {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

button { font: inherit; }

.theme-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: .98rem;
  line-height: 1;
  text-align: center;
}

.view-toggle-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: .98rem;
  line-height: 1;
  text-align: center;
}

.view-toggle-btn span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  transform: translateY(-2px);
}

.view-toggle-btn:hover,
.view-toggle-btn:focus,
.theme-btn:hover,
.theme-btn:focus {
  border-color: rgba(37, 99, 235, .28);
  background: rgba(219, 234, 254, .78);
  color: var(--link-hover);
}

.theme-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .26fr) minmax(160px, .3fr);
  gap: 8px 10px;
  max-width: 900px;
  margin: 0 auto 16px;
  text-align: left;
}

.active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 10px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.active-filter-bar > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  background: rgba(239, 246, 255, .9);
  color: var(--link);
  padding: 3px 8px;
  font-size: .7rem;
  font-weight: 820;
  line-height: 1.2;
}

button.active-filter-chip { cursor: pointer; }
button.active-filter-chip::after { content: "×"; margin-left: 5px; font-weight: 900; }

.active-filter-chip.locked {
  background: rgba(245, 158, 11, .16);
  border-color: rgba(245, 158, 11, .32);
  color: #92400e;
}

.sticky-filter-bar {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(900px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin: 0;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
  opacity: 0;
  padding: 7px 10px;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, -10px);
  transition: opacity .16s ease, transform .16s ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.sticky-filter-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sticky-reset-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0;
  font-weight: 850;
  line-height: 1;
  padding: 0;
}

.sticky-reset-btn::before {
  content: "×";
  display: block;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.sticky-reset-btn:hover,
.sticky-reset-btn:focus {
  border-color: rgba(37, 99, 235, .28);
  background: rgba(219, 234, 254, .78);
  color: var(--link-hover);
}

.sticky-filter-bar > div {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 74px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  justify-content: flex-start;
}

.sticky-filter-bar > div::-webkit-scrollbar { display: none; }

.control-cell {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
}

.filter-drawer-cell,
.best-for-cell,
.active-tags-cell,
.display-cell { grid-column: 1 / -1; }
.filter-drawer-cell,
.best-for-cell { padding-bottom: 11px; }

.display-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0 2px;
}

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

.sort-display-group {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.sort-controls-row {
  align-items: center;
}

.display-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
}

@media (min-width: 701px) {
  .sort-controls-row .filter-btn,
  .sort-controls-row .view-toggle-btn,
  .sort-controls-row .theme-btn {
    min-height: 30px;
    height: 30px;
  }

  .sort-controls-row .filter-btn {
    padding-top: 0;
    padding-bottom: 0;
  }

  .sort-controls-row .view-toggle-btn,
  .sort-controls-row .theme-btn {
    width: 30px;
    flex: 0 0 30px;
  }
}

@media (max-width: 700px) {
  .mobile-header-controls {
    display: flex;
  }
}

.cards-display-group {
  flex: 0 0 auto;
}

.display-divider {
  align-self: stretch;
  width: 1px;
  min-height: 22px;
  background: rgba(148, 163, 184, .38);
}

.control-cell h4 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 0;
}

.filter-drawer-summary,
.best-for-main-summary {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: var(--muted);
  cursor: pointer;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 0;
  list-style: none;
  user-select: none;
}

.filter-drawer-summary::-webkit-details-marker,
.best-for-main-summary::-webkit-details-marker { display: none; }
.filter-drawer-summary::after,
.best-for-main-summary::after {
  content: "−";
  grid-column: -2 / -1;
  justify-self: end;
  width: 22px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.best-for-main-summary::after {
  padding-top: 3px;
}

.best-for-main-summary {
  grid-template-columns: 78px minmax(0, 1fr) 22px;
  align-items: start;
  min-height: 24px;
}

.best-for-main-summary .filter-summary-title {
  width: 78px;
  padding-top: 4px;
}

.filter-summary-title {
  grid-column: 1;
  width: 78px;
  color: var(--muted);
  white-space: nowrap;
}

.filter-summary-chips {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.summary-filter-chip {
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  box-sizing: border-box;
  cursor: default;
}
button.summary-filter-chip { cursor: pointer; }

button.summary-filter-chip::after {
  content: "×";
  margin-left: 5px;
  font-weight: 900;
}

span.summary-filter-chip::after {
  content: "";
  margin: 0;
}

.summary-reset-btn {
  grid-column: 3;
  justify-self: end;
}

.filter-drawer-cell[open] .filter-summary-chips,
.best-for-cell[open] .filter-summary-chips {
  display: none;
}

.filter-drawer-cell:not([open]) .filter-drawer-summary,
.best-for-cell:not([open]) .best-for-main-summary { margin-bottom: 0; }
.filter-drawer-cell:not([open]) .filter-drawer-summary::after,
.best-for-cell:not([open]) .best-for-main-summary::after { content: "+"; }

.filter-drawer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .26fr) minmax(160px, .3fr);
  gap: 8px 10px;
}

.filter-drawer-grid .control-cell {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.best-for-menu {
  position: relative;
}

.best-for-scroll-btn {
  display: none;
}

.display-cell h4 {
  margin: 0;
  font-size: .7rem;
  font-weight: 750;
  white-space: nowrap;
}

.sticky-sort-select-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 190px;
  margin-left: auto;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
}

.sticky-sort-select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.2;
  min-height: 30px;
  padding: 6px 28px 6px 10px;
}

.reset-filters-btn {
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--link);
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1;
  padding: 7px 9px;
}

.reset-filters-btn:disabled,
.reset-filters-btn[aria-disabled="true"] {
  cursor: default;
  opacity: .5;
}

.reset-filters-btn:disabled:hover,
.reset-filters-btn:disabled:focus,
.reset-filters-btn[aria-disabled="true"]:hover,
.reset-filters-btn[aria-disabled="true"]:focus {
  border-color: rgba(148, 163, 184, .38);
  background: rgba(255, 255, 255, .82);
  color: var(--link);
}

.active-tags-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 7px;
}

.active-tags-cell h4 {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.active-tags-list {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 auto;
  gap: 5px;
  min-width: 0;
}

.active-tags-empty {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.3;
}

.sticky-sort-select:hover,
.sticky-sort-select:focus,
.sticky-reset-btn:hover,
.sticky-reset-btn:focus,
.reset-filters-btn:hover,
.reset-filters-btn:focus {
  border-color: rgba(37, 99, 235, .28);
  background: rgba(219, 234, 254, .78);
  color: var(--link-hover);
}

.sort-status {
  position: absolute;
  top: -17px;
  right: 2px;
  color: #64748b;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.display-cell .chip-row {
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.best-for-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  gap: 14px;
  overflow-x: auto;
  overflow-anchor: none;
  scroll-behavior: smooth;
  padding-bottom: 2px;
}

.best-for-group {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.best-for-group h5 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  margin: 0;
  padding: 0 0 5px;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
  color: #64748b;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.best-for-group .chip-row {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 6px;
  margin-top: 7px;
  padding: 0;
}

@media (min-width: 701px) {
  .best-for-group .filter-btn {
    justify-content: flex-start;
    min-height: 30px;
    padding-inline: 6px;
    text-align: left;
  }

  .best-for-group .filter-btn.active { justify-content: center; }
}

.display-cell .chip-row {
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 9px;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.filter-btn > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.locked-bank-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, .64);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: default;
}

.locked-bank-chip:hover,
.locked-bank-chip:focus {
  border-color: rgba(148, 163, 184, .28);
  background: rgba(255, 255, 255, .64);
  color: var(--muted);
}

.tag-icon { width: 16px; height: 16px; flex: 0 0 16px; margin-right: 2px; object-fit: contain; border-radius: 4px; }
.bank-icon { width: 18px; height: 18px; flex: 0 0 18px; margin-right: 2px; object-fit: cover; border-radius: 5px; box-shadow: 0 0 0 1px rgba(148, 163, 184, .25); }
.spend-mode-icon { width: 1.1em; height: 1.1em; flex: 0 0 1.1em; display: inline-flex; align-items: center; justify-content: center; object-fit: contain; vertical-align: -.16em; line-height: 1; }
.spend-mode-icon-muted { filter: grayscale(1); opacity: .72; }

.display-cell .filter-btn { padding: 4px 7px; font-size: .7rem; font-weight: 720; }
.header-view-controls .filter-btn {
  min-height: 26px;
  padding: 4px 7px;
  font-size: .7rem;
  font-weight: 720;
}
.view-mode-btn { gap: 5px; }
.sort-mode-icon,
.view-mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.15em;
  height: 1em;
  color: currentColor;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1;
}
.view-mode-icon { font-size: 1.08rem; }

.saved-sort-action {
  border: 1px solid rgba(148, 163, 184, .5);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 4px 8px;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.saved-sort-action:hover,
.saved-sort-action:focus {
  border-color: rgba(59, 130, 246, .36);
  background: rgba(219, 234, 254, .78);
  color: var(--link-hover);
}

.saved-sort-action:disabled,
.saved-sort-action:disabled:hover,
.saved-sort-action:disabled:focus {
  border-color: rgba(148, 163, 184, .28);
  background: rgba(226, 232, 240, .48);
  color: rgba(100, 116, 139, .72);
  cursor: default;
}

.saved-view-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: 900px;
  margin: 8px auto -4px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
}

@media (max-width: 700px) {
  .saved-view-actions {
    justify-content: center;
  }
}

.similar-cards-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.35;
  text-align: center;
}

.similar-cards-intro strong {
  color: var(--text);
  font-weight: 850;
}

.similar-cards-intro span {
  color: var(--muted);
}

.filter-btn.active { border-color: rgba(245, 158, 11, .42); background: var(--brand); color: #111; }
.filter-btn:hover,
.filter-btn:focus { border-color: rgba(37, 99, 235, .28); background: rgba(219, 234, 254, .78); color: var(--link-hover); }
.filter-btn.active:hover,
.filter-btn.active:focus { border-color: rgba(245, 158, 11, .62); background: #fbbf24; color: #111; }

.accounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 340px));
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
  align-items: stretch;
}

.accounts-list {
  grid-template-columns: minmax(0, 900px);
  gap: 24px;
  align-items: start;
}

.accounts-card.accounts-single {
  width: 100%;
  max-width: 760px;
  grid-template-columns: minmax(0, 1fr);
  margin-inline: auto;
}

.accounts-card.accounts-single .box.card-shell {
  width: 100%;
  max-width: 760px;
  justify-self: stretch;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: #f8fafc;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.empty-state span { display: block; }
.empty-state strong { color: var(--text); font-size: .96rem; }
.empty-state span { margin-top: 4px; font-size: .84rem; }
.empty-state-reset { margin-top: 12px; }

.show-more-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 4px; }
.show-more-page {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}
.show-more-btn {
  min-width: 112px;
  padding: 9px 16px;
  border: 1px solid rgba(245, 158, 11, .44);
  border-radius: 999px;
  background: #fff7ed;
  color: #7c2d12;
  font: inherit;
  font-size: .86rem;
  font-weight: 850;
  cursor: pointer;
}
.show-more-btn:hover,
.show-more-btn:focus { border-color: rgba(245, 158, 11, .74); background: #fed7aa; color: #111827; }

.filter-advice {
  max-width: 900px;
  margin: -4px auto 12px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
  background: rgba(248, 250, 252, .82);
  padding: 10px 12px;
  color: var(--muted);
  text-align: left;
}
.filter-advice strong,
.filter-advice span { display: block; }
.filter-advice strong { color: var(--text); font-size: .84rem; line-height: 1.3; }
.filter-advice span { margin-top: 2px; font-size: .78rem; font-weight: 650; line-height: 1.4; }
.filter-advice-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  margin: 0 2px;
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 999px;
  background: rgba(239, 246, 255, .84);
  color: var(--link);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  line-height: 1;
  padding: 2px 8px;
  text-decoration: none;
  vertical-align: baseline;
}
.filter-advice-reset:hover,
.filter-advice-reset:focus {
  border-color: rgba(37, 99, 235, .34);
  background: rgba(219, 234, 254, .94);
  color: var(--link-hover);
}

.box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border);
  border-radius: 12px;
  margin-top: 18px;
  padding: 12px;
  background: var(--card);
  text-align: left;
  transform: rotate(0deg) translateY(0) scale(1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}

.box:hover,
.box:focus-within { z-index: 30; border-color: rgba(37, 99, 235, .34); box-shadow: 0 16px 34px rgba(15, 23, 42, .14); transform: rotate(-.45deg) translateY(-4px) scale(1.012); }
.box.top-deal { border-color: rgba(245, 158, 11, .48); background: var(--card); box-shadow: 0 0 0 2px rgba(245, 158, 11, .10) inset, 0 10px 24px rgba(245, 158, 11, .07); }
.box.runner-up { border-color: rgba(251, 146, 60, .30); background-color: var(--card); background-image: none; box-shadow: 0 0 0 2px rgba(251, 146, 60, .06) inset; }
.box.third-place { border-color: rgba(251, 146, 60, .20); background-color: var(--card); background-image: none; box-shadow: 0 0 0 2px rgba(251, 146, 60, .04) inset; }
.box.is-starred { border-color: rgba(244, 63, 94, .42); box-shadow: 0 0 0 3px rgba(244, 63, 94, .10) inset, 0 10px 24px rgba(244, 63, 94, .07); }
.box.is-loved-mismatch { border-color: rgba(148, 163, 184, .36); box-shadow: none; filter: grayscale(.38); opacity: .68; }
.box.is-loved-mismatch:hover { opacity: .82; }
.box.is-shared-target .card-face { box-shadow: 0 0 0 4px rgba(245, 158, 11, .22), 0 18px 38px rgba(15, 23, 42, .16); }

.hdr { display: flex; gap: 14px; align-items: flex-start; padding-right: 0; }
.card-art { position: relative; width: 116px; height: 74px; flex: 0 0 116px; margin: 0 0 8px; border: 0; border-radius: 0; background: transparent; display: flex; align-items: center; justify-content: center; overflow: visible; text-decoration: none; }
.card-art.portrait { width: 78px; height: 124px; flex-basis: 78px; }
.card-art img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 10px 13px rgba(15, 23, 42, .24)); }
.card-art-placeholder { display: grid; place-items: center; width: 116px; height: 74px; border-radius: 10px; background: linear-gradient(135deg, #111827, #f59e0b); color: #fff; font-size: 2rem; font-weight: 900; letter-spacing: 0; box-shadow: 0 10px 18px rgba(15, 23, 42, .22); }

.name { margin: 0; padding-right: 78px; font-size: 1rem; line-height: 1.25; }
.name a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-underline); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.name a:hover,
.name a:focus { color: var(--link-hover); text-decoration-color: currentColor; }
.card-description { margin: 5px 0 0; padding-right: 0; color: var(--muted); font-size: .9rem; font-weight: 400; line-height: 1.35; }

.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; margin: 12px 0 14px; }
.summary-box { min-width: 0; min-height: 86px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 8px 10px; text-align: left; }
.gift-box { position: relative; padding-bottom: 18px; }
.summary-label { flex: 0 0 auto; width: 100%; color: var(--muted); font-size: .74rem; font-weight: 750; line-height: 1.2; text-align: left; }
.summary-value { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; margin-top: 2px; padding-block: 8px; color: var(--text); font-size: .98rem; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.25; overflow-wrap: anywhere; text-align: center; }
.promo-ending-text { position: absolute; right: 10px; bottom: 7px; color: #b45309; font-size: .68rem; font-weight: 650; line-height: 1; white-space: nowrap; }
.summary-box .best-for-list { padding-block: 8px; }
.summary-box em { padding-bottom: 6px; }
.summary-value small { display: block; margin-top: 2px; color: var(--muted); font-size: .7rem; font-weight: 400; line-height: 1.25; text-align: center; }
.earn-value { gap: 8px; }
.earn-rate-group { display: block; width: 100%; text-align: center; }
.earn-rate-group + .earn-rate-group { margin-top: 8px; }
.earn-rate-group b,
.earn-rate-group small { display: block; width: 100%; text-align: center; }
.earn-rate-group b { color: var(--text); font-size: .98rem; font-weight: 850; line-height: 1.2; }
.earn-rate-group small { margin-top: 2px; color: var(--muted); font-size: .68rem; font-weight: 400; line-height: 1.22; }
.earn-rate-headline,
.earn-rate-subline,
.earn-rate-qualifier { display: block; width: 100%; text-align: center; }
.earn-rate-headline { color: var(--text); font-size: .98rem; font-weight: 850; line-height: 1.2; }
.earn-rate-subline { margin-top: 2px; color: var(--muted); font-size: .68rem; font-weight: 500; line-height: 1.22; }
.summary-value .earn-rate-qualifier { margin-top: 3px; color: var(--muted); font-size: .78rem; font-weight: 650; line-height: 1.22; }
.summary-box em { display: block; width: 100%; margin-top: -10px; color: var(--muted); font-size: .7rem; font-style: normal; font-weight: 400; line-height: 1.25; text-align: center; }
.fee-value { font-size: .96rem; }
.fee-amount { position: relative; display: inline-block; width: auto; max-width: max-content; font-size: 1rem; line-height: 1.2; text-align: center; }
.fee-amount.is-waived { color: var(--text); }
.fee-amount.is-waived::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 1.5px; border-radius: 999px; background: rgba(220, 38, 38, .9); box-shadow: none; transform: rotate(-4deg); transform-origin: center; }

.best-for-list { position: relative; flex: 1; display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: center; width: 100%; gap: 3px; margin-top: 4px; text-align: center; }
.best-for-list a,
.best-for-list button,
.best-for-list span { flex: 0 0 auto; display: inline-flex; max-width: max-content; align-items: center; border: 1px solid rgba(37, 99, 235, .18); border-radius: 999px; background: rgba(239, 246, 255, .86); padding: 2px 7px; color: var(--link); font-size: .68rem; font-weight: 820; line-height: 1.15; overflow-wrap: anywhere; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.best-for-list .best-for-chip.is-selected-best-for { border-color: rgba(245, 158, 11, .58); background: rgba(254, 243, 199, .96); padding: 4px 9px; color: #92400e; font-size: .78rem; line-height: 1.18; box-shadow: 0 0 0 1px rgba(245, 158, 11, .18) inset; }
.best-for-list a:hover,
.best-for-list button:hover,
.best-for-list .best-for-chip:hover,
.best-for-list .best-for-chip:focus { border-color: rgba(37, 99, 235, .42); background: rgba(219, 234, 254, .98); color: var(--link-hover); box-shadow: 0 0 0 1px rgba(37, 99, 235, .08) inset; }
.best-for-list .best-for-chip.is-selected-best-for:hover,
.best-for-list .best-for-chip.is-selected-best-for:focus { border-color: rgba(245, 158, 11, .64); background: rgba(254, 243, 199, .98); color: #92400e; box-shadow: 0 0 0 1px rgba(245, 158, 11, .22) inset; }
.best-for-list button { cursor: pointer; font-family: inherit; appearance: none; }
.best-for-chip { position: static; cursor: help; }
.best-for-chip:focus { outline: 2px solid rgba(37, 99, 235, .34); outline-offset: 2px; }
.best-for-chip::before,
.best-for-chip::after { position: absolute; left: 50%; z-index: 60; opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .14s ease, transform .14s ease; }
.best-for-chip::before { content: attr(data-tooltip); bottom: calc(100% + 8px); width: min(100%, 220px); max-width: 100%; border: 1px solid rgba(15, 23, 42, .12); border-radius: 8px; background: rgba(15, 23, 42, .96); box-shadow: 0 10px 24px rgba(15, 23, 42, .24); color: #fff; padding: 6px 8px; font-size: .72rem; font-weight: 700; line-height: 1.25; white-space: normal; text-align: center; }
.best-for-chip::after { content: ""; bottom: calc(100% + 3px); border: 5px solid transparent; border-top-color: rgba(15, 23, 42, .96); }
.best-for-chip:hover::before,
.best-for-chip:hover::after,
.best-for-chip:focus::before,
.best-for-chip:focus::after { opacity: 1; transform: translate(-50%, 0); }
.best-for-list .untagged { border-color: var(--border); background: transparent; color: var(--muted); font-weight: 700; }
.reward-value-tooltip[data-tooltip] { position: relative; cursor: help; }
.reward-value-tooltip[data-tooltip]:focus { outline: 2px solid rgba(37, 99, 235, .34); outline-offset: 2px; }
.reward-value-tooltip[data-tooltip]::before,
.reward-value-tooltip[data-tooltip]::after { position: absolute; left: 50%; z-index: 60; opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .14s ease, transform .14s ease; }
.reward-value-tooltip[data-tooltip]::before { content: attr(data-tooltip); bottom: calc(100% + 8px); width: max-content; max-width: min(220px, 90vw); border: 1px solid rgba(15, 23, 42, .12); border-radius: 8px; background: rgba(15, 23, 42, .96); box-shadow: 0 10px 24px rgba(15, 23, 42, .24); color: #fff; padding: 6px 8px; font-size: .72rem; font-weight: 700; line-height: 1.25; white-space: normal; text-align: center; }
.reward-value-tooltip[data-tooltip]::after { content: ""; bottom: calc(100% + 3px); border: 5px solid transparent; border-top-color: rgba(15, 23, 42, .96); }
.reward-value-tooltip[data-tooltip]:hover::before,
.reward-value-tooltip[data-tooltip]:hover::after,
.reward-value-tooltip[data-tooltip]:focus::before,
.reward-value-tooltip[data-tooltip]:focus::after { opacity: 1; transform: translate(-50%, 0); }

.source-pill,
.hassle-pill,
.recommended-pill { display: inline-flex; align-items: center; margin: 0 5px 3px 0; padding: 2px 7px; border-radius: 999px; font-size: .68rem; font-weight: 850; line-height: 1.25; vertical-align: middle; white-space: nowrap; }
.source-pill { border: 1px solid rgba(220, 38, 38, .18); background: rgba(254, 242, 242, .76); color: #b91c1c; font-size: .6rem; font-weight: 820; letter-spacing: .01em; line-height: 1.1; padding: 2px 5px; }
.source-pill.singsaver { border: 1px solid rgba(124, 58, 237, .24); background: rgba(237, 233, 254, .82); color: #6d28d9; }
.hassle-pill { border: 1px solid rgba(217, 119, 6, .28); background: rgba(254, 243, 199, .84); color: #a16207; }
.recommended-pill { border: 1px solid rgba(245, 158, 11, .36); background: rgba(254, 243, 199, .92); color: #92400e; }

dt { color: var(--text); font-size: .82rem; font-weight: 800; }
dd { margin: 2px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.38; }
ul { margin: 3px 0 0; padding-left: 18px; }
li + li { margin-top: 3px; }

.why-choose { margin: 0 0 14px; }
.why-choose h5 { margin: 0 0 5px; color: var(--text); font-size: .82rem; line-height: 1.25; }
.why-choose ul { margin-top: 0; color: var(--muted); font-size: .86rem; line-height: 1.36; }
.why-choose a {
  color: var(--link);
  font-weight: inherit;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1.3px;
  text-underline-offset: 3px;
  transition: color .16s ease, text-decoration-color .16s ease;
}
.why-choose a:hover,
.why-choose a:focus {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}
.why-choose a:focus-visible {
  border-radius: 3px;
  outline: 2px solid rgba(37, 99, 235, .28);
  outline-offset: 2px;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: auto auto 0; width: 100%; }

.card-tools { position: absolute; top: 8px; right: 8px; z-index: 4; display: inline-flex; gap: 4px; }
.tool-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid rgba(15, 23, 42, 0); border-radius: 999px; background: rgba(255, 255, 255, .94); color: #0f172a; box-shadow: 0 6px 14px rgba(15, 23, 42, .10); cursor: pointer; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: .9rem; line-height: 1; text-align: center; transform: translateY(0); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease; }
.tool-btn:hover,
.tool-btn:focus-visible { border-color: rgba(37, 99, 235, .74); box-shadow: 0 10px 22px rgba(37, 99, 235, .18); transform: translateY(-2px); }
.star-tool.active { border: 1px solid rgba(225, 29, 72, .74); background: #ffe4e6; box-shadow: 0 0 0 3px rgba(244, 63, 94, .14), 0 8px 20px rgba(244, 63, 94, .14); }
.nope-tool.active { border-color: rgba(185, 28, 28, .82); background: #fecaca; }
.card-share-btn { position: absolute; left: 8px; bottom: 8px; z-index: 26; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(148, 163, 184, .34); border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--muted); box-shadow: 0 6px 14px rgba(15, 23, 42, .10); cursor: pointer; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", "Segoe UI", sans-serif; font-size: 1.55rem; font-weight: 500; line-height: 1; padding: 0; text-align: center; transition: transform .16s ease, color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.card-share-btn > span { display: inline-grid; place-items: center; width: 1em; height: 1em; line-height: 1; transform: translateY(-3px) rotate(-45deg); transform-origin: 50% 50%; }
.card-share-btn:hover,
.card-share-btn:focus-visible { border-color: rgba(37, 99, 235, .42); background: rgba(219, 234, 254, .94); color: var(--link-hover); box-shadow: 0 10px 22px rgba(37, 99, 235, .18); transform: translateY(-2px); }
.card-share-btn.is-sending { pointer-events: none; }
.card-share-btn.is-sending > span { animation: share-plane-send .18s ease-out forwards; }
.card-share-btn.is-returning > span { animation: share-plane-return .22s ease-out both; }
.card-share-btn.is-copied { background: rgba(220, 252, 231, .92); color: #15803d; }
.card-share-btn.is-failed { background: rgba(254, 226, 226, .92); color: #b91c1c; }

@keyframes share-plane-send {
  0% { opacity: 1; transform: translateY(-3px) rotate(-45deg); }
  60% { opacity: .72; transform: translate(12px, -14px) rotate(-45deg); }
  100% { opacity: 0; transform: translate(22px, -24px) rotate(-45deg); }
}

@keyframes share-plane-return {
  0% { opacity: 0; transform: translate(-22px, 24px) rotate(-45deg); }
  65% { opacity: .82; transform: translate(-5px, 6px) rotate(-45deg); }
  100% { opacity: 1; transform: translateY(-3px) rotate(-45deg); }
}

.pill { display: flex; align-items: center; justify-content: center; min-width: 104px; padding: 9px 14px; border: 1px solid var(--brand); border-radius: 999px; background: var(--brand); color: #111; text-decoration: none; font-family: inherit; font-size: .9rem; font-weight: 800; cursor: pointer; }
.box.is-noped { border-color: rgba(148, 163, 184, .32); background: var(--card); box-shadow: none; filter: grayscale(.84); opacity: .54; }
.box.is-noped:hover { opacity: .7; }
.pill:hover,
.pill:focus { border-color: #fbbf24; background: #fbbf24; color: #111; }
.muted-pill { border-color: var(--border); background: #e5e7eb; color: #334155; }
.foot { margin-top: 18px; color: var(--muted); font-size: .8rem; line-height: 1.45; text-align: center; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  contain: layout style;
  padding: max(18px, env(safe-area-inset-top)) 18px 18px;
  background: rgba(15, 23, 42, .56);
  overflow-y: auto;
}

.choice-modal {
  position: relative;
  z-index: 1000000;
  width: min(560px, 100%);
  max-height: min(760px, calc(100dvh - 36px - env(safe-area-inset-top)));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
  padding: 16px;
  text-align: left;
}
.detail-modal,
.deal-modal { width: min(700px, 100%); }
.share-modal { width: min(500px, 100%); }
.comparison-modal {
  display: flex;
  flex-direction: column;
  width: min(980px, 100%);
  height: calc(100dvh - 36px - env(safe-area-inset-top));
  max-height: calc(100dvh - 36px - env(safe-area-inset-top));
  padding: 14px;
  overflow: hidden;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.modal-kicker { display: block; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.modal-head h4 { margin: 2px 0 0; font-size: 1.12rem; line-height: 1.2; }
.close-btn { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font-size: 1.15rem; font-weight: 800; cursor: pointer; }
.comparison-note {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}

.comparison-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  container-type: inline-size;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  overscroll-behavior: contain;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.comparison-label-col {
  width: 118px;
}

.comparison-card-col {
  width: 210px;
}

.comparison-mobile-nav {
  display: none;
}

.comparison-table th[scope="col"],
.comparison-table td {
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  padding: 11px;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.35;
  vertical-align: middle;
  overflow-wrap: anywhere;
  text-align: center;
}

.comparison-table tbody tr:nth-child(even) th,
.comparison-table tbody tr:nth-child(even) td {
  background: #f1f5f9;
}

.comparison-table tbody tr:nth-child(odd) th,
.comparison-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.comparison-table tbody tr:hover th,
.comparison-table tbody tr:hover td {
  background: #eaf2ff;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  border-left: 0;
}

.comparison-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border), 0 8px 18px rgba(15, 23, 42, .08);
}

.comparison-table .comparison-row-label {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 118px;
  color: var(--muted);
  font-weight: 850;
  padding-right: 22px;
  text-align: left;
}

.comparison-table thead .comparison-row-label {
  z-index: 6;
}

.comparison-card-head {
  position: relative;
  display: grid;
  grid-template-rows: 58px auto;
  justify-items: center;
  gap: 8px;
  min-height: 118px;
  padding: 8px 28px 0;
  text-align: center;
}

.comparison-card-head .card-art {
  width: 84px;
  height: 52px;
  flex-basis: 84px;
  margin: 0;
  justify-self: center;
}

.comparison-card-head .card-art.portrait {
  width: 46px;
  height: 58px;
  flex-basis: 46px;
}

.comparison-card-head strong {
  color: var(--text);
  font-size: .88rem;
  line-height: 1.2;
  text-align: center;
}

.comparison-remove {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(244, 63, 94, .34);
  border-radius: 999px;
  background: rgba(255, 241, 242, .94);
  color: #be123c;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.comparison-remove-heart {
  display: block;
  line-height: 1;
  transform: translateY(1.5px);
}

.comparison-remove:hover,
.comparison-remove:focus {
  border-color: rgba(244, 63, 94, .58);
  background: rgba(255, 228, 230, .98);
  transform: translateY(-1px);
}

.comparison-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.25;
}

.comparison-table td[rowspan] {
  vertical-align: top;
}

.comparison-sticky-span-cell {
  position: relative;
}

.comparison-sticky-span-value {
  position: sticky;
  top: 132px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 4px 0;
}

.comparison-bestfor-row td {
  text-align: center;
  vertical-align: middle;
}

.comparison-fee-row td {
  text-align: center;
  vertical-align: middle;
}

.comparison-bestfor-label {
  color: var(--text);
}

.comparison-table tbody tr:first-child td {
  text-align: center;
  vertical-align: middle;
}

.comparison-table tbody tr:first-child .earn-rate-group,
.comparison-table tbody tr:first-child .earn-rate-headline,
.comparison-table tbody tr:first-child .earn-rate-qualifier {
  text-align: center;
}

.comparison-row-label[data-compare-sort] {
  cursor: pointer;
}

.comparison-row-label[data-compare-sort]::after {
  content: "→";
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 100%;
  border-left: 1px solid var(--border);
  background: rgba(229, 231, 235, .88);
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
  transition: background-color .18s ease, transform .18s ease;
}

.comparison-row-label[data-compare-sort]:hover,
.comparison-row-label[data-compare-sort]:focus {
  color: var(--link-hover);
}

.comparison-row-label[data-compare-sort]:hover::after,
.comparison-row-label[data-compare-sort]:focus::after {
  background: rgba(148, 163, 184, .98);
  transform: translateX(1px);
}

.comparison-missing {
  color: var(--muted);
  font-weight: 750;
}

.comparison-table .earn-rate-group,
.comparison-table .earn-rate-headline {
  display: block;
}

.comparison-table .earn-rate-group + .earn-rate-group {
  margin-top: 6px;
}

.comparison-gift-cell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  gap: 7px;
  height: 100%;
  min-height: 100%;
  text-align: center;
}

.comparison-gift-cell strong {
  font-size: .86rem;
  line-height: 1.25;
}

.comparison-gift-pills {
  align-self: center;
  justify-content: center;
}

.comparison-gift-cell small {
  align-self: end;
  margin-top: 8px;
}

.comparison-review-cell {
  text-align: left;
}

.comparison-review-cell .quick-review-text,
.comparison-review-cell .quick-review-list {
  margin: 0;
  color: var(--text);
  font-size: .8rem;
  line-height: 1.35;
}

.comparison-review-cell .quick-review-list {
  padding-left: 18px;
}

.comparison-review-link {
  margin-top: 8px;
}

.comparison-table .pill {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  font-size: .78rem;
}

@media (max-width: 900px) and (min-width: 641px) {
  .comparison-label-col,
  .comparison-table .comparison-row-label {
    width: 104px;
  }

  .comparison-card-col {
    width: 180px;
  }

  .comparison-table .comparison-row-label {
    padding: 10px 12px 10px 10px;
  }

  .comparison-table th:not(.comparison-row-label),
  .comparison-table td:not(.comparison-row-label) {
    padding: 10px;
  }
}

@media (max-width: 640px) {
  .comparison-table-wrap {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: none;
    scroll-padding-left: 0;
    touch-action: pan-y;
  }

  .comparison-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }

  .comparison-label-col,
  .comparison-table .comparison-row-label {
    width: 92px;
  }

  .comparison-card-col {
    width: auto;
  }

  .comparison-card-cell {
    display: none;
  }

  .comparison-card-cell.is-active {
    display: table-cell;
  }

  col.comparison-card-cell.is-active {
    display: table-column;
  }

  .comparison-card-cell.is-active.is-enter-next,
  .comparison-mobile-card-status.is-enter-next {
    animation: comparisonMobileEnterNext .26s ease both;
  }

  .comparison-card-cell.is-active.is-enter-prev,
  .comparison-mobile-card-status.is-enter-prev {
    animation: comparisonMobileEnterPrev .26s ease both;
  }

  .comparison-table .comparison-row-label {
    padding: 10px 12px 10px 10px;
  }

  .comparison-table th:not(.comparison-row-label),
  .comparison-table td:not(.comparison-row-label) {
    padding: 10px;
  }

  .comparison-table th[scope="col"]:not(:first-child),
  .comparison-table td:not(:first-child) {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  .comparison-mobile-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    padding: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    touch-action: pan-y;
  }

  .comparison-mobile-nav button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
  }

  .comparison-mobile-nav button:disabled {
    opacity: .35;
    cursor: default;
  }

  .comparison-mobile-card-status {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
    text-align: center;
  }

  .comparison-mobile-card-status strong {
    overflow: hidden;
    color: var(--text);
    font-size: .9rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .comparison-mobile-card-status span {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
  }
}

@keyframes comparisonMobileEnterNext {
  from { opacity: .2; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes comparisonMobileEnterPrev {
  from { opacity: .2; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

.comparison-empty {
  display: grid;
  gap: 4px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.comparison-empty strong {
  color: var(--text);
  font-size: .95rem;
}
.detail-grid { display: grid; gap: 10px; }
.detail-panel { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 12px; }
.detail-panel h5 { margin: 0 0 6px; color: var(--text); font-size: .95rem; line-height: 1.25; }
.detail-panel p { margin: 3px 0 4px; color: var(--text); font-size: .98rem; font-weight: 850; line-height: 1.3; }
.detail-panel span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.detail-panel ul { color: var(--muted); font-size: .86rem; line-height: 1.38; }
.hero-detail { margin-bottom: 10px; border-color: rgba(245, 158, 11, .36); background: rgba(255, 251, 235, .74); }
.mini-promo-list { display: grid; gap: 8px; }
.mini-promo-list div { border-top: 1px solid var(--border); padding-top: 8px; }
.mini-promo-list div:first-child { border-top: 0; padding-top: 0; }
.mini-promo-list strong,
.mini-promo-list span { display: block; }
.mini-promo-list strong { color: var(--text); font-size: .86rem; }
.text-link { display: inline-flex; margin-top: 8px; color: var(--link); font-size: .85rem; font-weight: 800; text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; }
.share-status { margin: 0 0 12px; border: 1px solid rgba(148, 163, 184, .28); border-radius: 10px; background: rgba(248, 250, 252, .92); color: var(--text); padding: 10px 12px; font-size: .9rem; font-weight: 800; line-height: 1.35; }
.share-status.is-copied,
.share-status.is-shared { border-color: rgba(22, 163, 74, .24); background: rgba(240, 253, 244, .94); color: #166534; }
.share-status.is-failed,
.share-status.is-native-unavailable { border-color: rgba(220, 38, 38, .22); background: rgba(254, 242, 242, .94); color: #991b1b; }
.share-url-field { display: grid; gap: 6px; margin-bottom: 12px; color: var(--muted); font-size: .76rem; font-weight: 850; }
.share-url-field input { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); padding: 9px 10px; font: inherit; font-size: .8rem; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.share-options { display: flex; flex-wrap: wrap; gap: 8px; }
.share-option-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; border: 1px solid rgba(148, 163, 184, .38); border-radius: 999px; background: #fff; color: var(--link); cursor: pointer; padding: 8px 12px; font: inherit; font-size: .82rem; font-weight: 850; line-height: 1; text-decoration: none; }
.share-option-emoji,
.share-option-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.2em; height: 1.2em; flex: 0 0 1.2em; }
.share-option-icon { object-fit: contain; border-radius: 5px; }
.share-option-btn.primary { border-color: var(--brand); background: var(--brand); color: #111; }
.share-option-btn:hover,
.share-option-btn:focus { border-color: rgba(37, 99, 235, .34); background: rgba(219, 234, 254, .86); color: var(--link-hover); }
.share-option-btn.primary:hover,
.share-option-btn.primary:focus { border-color: #fbbf24; background: #fbbf24; color: #111; }
.offer-list { display: grid; gap: 10px; margin-bottom: 8px; }
.offer-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, max-content); align-items: start; gap: 12px 16px; border: 1px solid rgba(148, 163, 184, .28); border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .05); padding: 14px; }
.offer-main { min-width: 0; }
.offer-side { display: grid; justify-items: stretch; align-content: start; gap: 10px; min-width: 150px; }
.offer-side .pill { width: 100%; min-width: 0; }
.offer-card.is-best { border-color: rgba(15, 23, 42, .18); background: linear-gradient(180deg, #f8fafc, #ffffff); }
.offer-card.is-recommended { border-color: rgba(245, 158, 11, .42); box-shadow: 0 12px 30px rgba(245, 158, 11, .12), 0 10px 28px rgba(15, 23, 42, .05); }
.offer-card.no-current-offer { border-style: dashed; background: rgba(248, 250, 252, .92); }
.offer-card h5 { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; margin: 0; color: var(--text); font-size: .93rem; line-height: 1.25; }
.offer-title-text { min-width: 0; }
.offer-variant { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .76rem; font-weight: 850; line-height: 1; white-space: nowrap; }
.network-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 24px; border: 1px solid rgba(148, 163, 184, .36); border-radius: 5px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); overflow: hidden; }
.network-icon img { display: block; width: 38px; height: 24px; object-fit: contain; }
.offer-card p { margin: 4px 0; color: var(--text); font-size: .92rem; font-weight: 850; line-height: 1.3; }
.offer-main > span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.offer-main > span a { color: var(--link); font-weight: 850; text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; }
.offer-main > span a:hover,
.offer-main > span a:focus { color: var(--link-hover); text-decoration-color: currentColor; }
.offer-recommended-stage { position: absolute; top: -26px; left: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; pointer-events: none; transform: translateX(-50%); }
.offer-recommended-badge { display: grid; place-items: center; width: 100%; height: 100%; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 2.45rem; line-height: 1; filter: drop-shadow(0 6px 8px rgba(15, 23, 42, .2)); }
.promo-code-box { display: grid; gap: 4px; justify-items: start; color: var(--muted); font-size: .72rem; font-weight: 800; line-height: 1.15; }
.promo-code-box > span { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.promo-code-box small { color: var(--muted); font-size: .68rem; font-weight: 750; }
.promo-code-copy,
.promo-code-inline { appearance: none; border: 1px solid rgba(37, 99, 235, .28); border-radius: 8px; background: #eff6ff; color: #1d4ed8; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); font-family: inherit; font-weight: 900; cursor: pointer; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
.promo-code-copy { width: 100%; padding: 9px 10px; font-size: .9rem; line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.promo-code-inline { display: inline-flex; align-items: center; margin: 0 2px; padding: 2px 7px; font-size: .84em; line-height: 1.2; vertical-align: 1px; }
.promo-code-copy:hover,
.promo-code-copy:focus,
.promo-code-inline:hover,
.promo-code-inline:focus { border-color: rgba(37, 99, 235, .55); background: #dbeafe; color: #1e40af; }
.promo-code-copy.is-copied,
.promo-code-inline.is-copied { border-color: rgba(22, 163, 74, .55); background: #dcfce7; color: #166534; transform: translateY(-1px); }
.reward-preview-strip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.reward-preview-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 190px; border: 1px solid rgba(148, 163, 184, .28); border-radius: 999px; background: rgba(248, 250, 252, .86); color: var(--text); padding: 4px 8px 4px 5px; font-size: .74rem; font-weight: 800; line-height: 1.15; }
.reward-preview-chip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reward-preview-visual { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 999px; background: #fff; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1rem; line-height: 1; }
.reward-preview-visual img { display: block; width: auto; max-width: 22px; max-height: 20px; object-fit: contain; }
.reward-preview-more { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border: 1px solid rgba(148, 163, 184, .28); border-radius: 999px; background: #fff; color: var(--muted); font-size: .72rem; font-weight: 850; }
.offer-details { grid-column: 1 / -1; border-top: 1px solid rgba(148, 163, 184, .22); padding-top: 4px; }
.offer-details summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--link); cursor: pointer; font-size: .82rem; font-weight: 850; list-style: none; }
.offer-details summary::-webkit-details-marker { display: none; }
.offer-details summary::after { content: "+"; color: var(--muted); font-weight: 900; }
.offer-details[open] summary::after { content: "−"; }
.offer-detail-grid { display: grid; gap: 10px; margin-top: 9px; color: var(--muted); font-size: .84rem; line-height: 1.38; }
.offer-detail-grid h6 { margin: 0 0 5px; color: var(--text); font-size: .84rem; line-height: 1.25; }
.offer-detail-grid ul { margin: 0; padding-left: 18px; }
.reward-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 9px; margin-top: 8px; }
.reward-option-card { position: relative; display: grid; grid-template-rows: 46px 1fr; justify-items: center; align-items: center; min-height: 116px; border: 1px solid #cbd5e1; border-radius: 14px; background: #fff; box-shadow: 0 8px 18px rgba(15, 23, 42, .04); padding: 12px 10px; text-align: center; }
.reward-option-card.is-recommended { border-color: #64748b; background: #fff; box-shadow: 0 10px 22px rgba(15, 23, 42, .06); }
.reward-option-visual { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; color: #0f172a; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 2rem; line-height: 1; }
.reward-option-visual img { display: block; width: auto; max-width: min(84px, 84%); max-height: 42px; object-fit: contain; }
.reward-option-card strong { align-self: start; color: #020617; font-size: .98rem; font-weight: 900; line-height: 1.12; overflow-wrap: anywhere; }
.reward-option-card em { position: absolute; top: 6px; right: 7px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1rem; font-style: normal; line-height: 1; }
.stacked-reward-groups { display: grid; gap: 12px; margin-top: 8px; }
.stacked-reward-group { display: grid; gap: 8px; }
.stacked-reward-label { display: inline-flex; justify-self: start; border: 1px solid rgba(148, 163, 184, .34); border-radius: 999px; background: rgba(248, 250, 252, .9); color: #334155; padding: 4px 8px; font-size: .7rem; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.stacked-reward-group.is-included .stacked-reward-label { border-color: rgba(37, 99, 235, .24); background: #eff6ff; color: #1d4ed8; }
.stacked-reward-group.is-choice .stacked-reward-label { border-color: rgba(245, 158, 11, .28); background: #fffbeb; color: #92400e; }
.stacked-reward-group .reward-option-grid { margin-top: 0; }
.offer-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: .82rem; font-weight: 800; }
.offer-links a { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; }
.offer-detail-grid a { color: var(--link); font-weight: 800; text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; }

.view-choice-modal {
  width: min(520px, 100%);
}

.view-choice-copy,
.view-choice-note {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

.view-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 10px;
}

.view-choice-card {
  display: grid;
  gap: 5px;
  min-height: 88px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  padding: 14px;
  text-align: left;
}

.view-choice-card:hover,
.view-choice-card:focus {
  border-color: rgba(245, 158, 11, .7);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
}

.view-choice-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.view-choice-card span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.35;
}

.tutorial-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.tutorial-dim {
  position: fixed;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.tutorial-spotlight {
  position: fixed;
  left: var(--tutorial-x, 50%);
  top: var(--tutorial-y, 90px);
  width: var(--tutorial-w, 220px);
  height: var(--tutorial-h, 76px);
  border: 2px solid rgba(245, 158, 11, .96);
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .28), 0 0 0 6px rgba(245, 158, 11, .18), 0 18px 46px rgba(15, 23, 42, .24);
  pointer-events: none;
  transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease;
}

.is-tutorial-target { z-index: 71 !important; }
.is-tutorial-target:not(.card-tools):not(.card-flip-btn) { position: relative; }

.tutorial-coach {
  position: fixed;
  left: var(--tutorial-panel-x, 16px);
  top: var(--tutorial-panel-y, 118px);
  z-index: 72;
  width: var(--tutorial-panel-w, min(360px, calc(100vw - 28px)));
  border: 1px solid rgba(245, 158, 11, .38);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .30);
  padding: 14px;
  pointer-events: auto;
  text-align: left;
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.tutorial-coach::before {
  content: "";
  position: absolute;
  left: var(--tutorial-arrow-x, 32px);
  top: var(--tutorial-arrow-top, -7px);
  bottom: var(--tutorial-arrow-bottom, auto);
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(245, 158, 11, .38);
  border-top: 1px solid rgba(245, 158, 11, .38);
  background: var(--bg);
  transform: rotate(var(--tutorial-arrow-rotate, 45deg));
}

.tutorial-coach-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.tutorial-coach-head span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.tutorial-close {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.tutorial-coach h4 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.tutorial-coach p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.tutorial-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.tutorial-progress span {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .34);
}

.tutorial-progress span.active {
  width: 34px;
  background: var(--brand);
}

.tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.tutorial-actions button {
  min-width: 0;
  white-space: normal;
}

.tutorial-actions button:disabled {
  cursor: default;
  opacity: .45;
}

.feedback-widget {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.feedback-trigger,
.feedback-panel {
  pointer-events: auto;
}

.feedback-trigger {
  min-width: 116px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .22);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1;
  padding: 12px 16px;
}

.feedback-trigger:hover,
.feedback-trigger:focus {
  background: #1e293b;
}

.feedback-panel {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  padding: 13px;
  text-align: left;
}

.feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.feedback-head span {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}

.feedback-head h4 {
  margin: 4px 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

.feedback-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.feedback-form {
  display: grid;
  gap: 9px;
}

.feedback-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.feedback-field legend,
.feedback-prompt {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.3;
  padding: 0;
}

.feedback-prompt {
  margin: 0;
}

.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  line-height: 1.4;
  padding: 10px;
}

.feedback-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.feedback-pill {
  position: relative;
  min-width: 0;
  user-select: none;
}

.feedback-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feedback-pill span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1;
  padding: 7px 4px;
  text-align: center;
}

.feedback-pill:hover span,
.feedback-pill:focus-within span {
  border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.feedback-pill.is-selected span,
.feedback-pill input:checked + span {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.feature-pill span {
  min-height: 36px;
  justify-content: center;
  width: auto;
  padding-inline: 12px;
}

.feedback-form textarea {
  min-height: 104px;
  resize: vertical;
}

.feedback-limit {
  margin-top: -4px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.25;
  text-align: right;
}

.feedback-subscribe {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.35;
}

.feedback-subscribe a {
  color: var(--link);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 3px;
}

.feedback-subscribe a:hover,
.feedback-subscribe a:focus {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.feedback-primary,
.feedback-secondary {
  border-radius: 999px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1;
  padding: 10px 14px;
}

.feedback-primary {
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
}

.feedback-secondary {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}

/* Full card flip */
.box.card-shell { perspective: 1200px; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.box.card-shell:hover,
.box.card-shell:focus-within { z-index: 30; border-color: transparent; box-shadow: none; transform: rotate(-.45deg) translateY(-4px) scale(1.012); }
.card-flipper { position: relative; z-index: 2; display: grid; width: 100%; min-height: 100%; border-radius: 12px; transform-style: preserve-3d; transition: transform 280ms ease; }
.box.card-shell.is-flipped .card-flipper { transform: rotateY(180deg); }
.card-face { grid-area: 1 / 1; min-height: 100%; border: 2px solid var(--border); border-radius: 12px; background: var(--card); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-front,
.card-back { position: relative; display: flex; flex-direction: column; padding: 12px 12px 78px; }
.card-front { z-index: 2; overflow: visible; }
.card-back { z-index: 1; overflow: auto; transform: rotateY(180deg); }

.accounts-list .box.card-shell {
  margin-top: 0;
  transform-origin: top center;
  transition: width 220ms ease, transform 220ms ease;
}

.accounts-list .box.card-shell:hover,
.accounts-list .box.card-shell:focus-within {
  transform: translateY(-2px);
}

.accounts-list .box.card-shell.is-expanding {
  animation: list-card-expand 240ms ease both;
}

.accounts-list .box.card-shell.is-collapsing {
  animation: list-card-collapse 200ms ease both;
}

.accounts-list .box.card-shell.is-expanding .hdr,
.accounts-list .box.card-shell.is-expanding .summary-box,
.accounts-list .box.card-shell.is-expanding .why-choose,
.accounts-list .box.card-shell.is-expanding .card-flip-front {
  animation: list-card-content-in 220ms ease both;
}

.accounts-list .box.card-shell.is-collapsing .hdr,
.accounts-list .box.card-shell.is-collapsing .summary-box {
  animation: list-card-content-out 180ms ease both;
}

@keyframes list-card-expand {
  0% { transform: translateY(-2px) scale(.985); }
  70% { transform: translateY(-2px) scale(1.006); }
  100% { transform: translateY(-2px) scale(1); }
}

@keyframes list-card-collapse {
  0% { transform: translateY(-2px) scale(1.006); }
  100% { transform: translateY(-2px) scale(1); }
}

@keyframes list-card-content-in {
  0% { opacity: .42; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes list-card-content-out {
  0% { opacity: .72; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

.accounts-list .card-flipper,
.accounts-list .card-face {
  min-height: auto;
}

.accounts-list .card-flipper {
  display: block;
}

.accounts-list .card-back {
  inset: 0;
}

.accounts-list .box.card-shell:not(.is-flipped) .card-back {
  position: absolute;
}

.accounts-list .box.card-shell.is-flipped .card-back {
  position: relative;
}

.accounts-list .card-front {
  display: grid;
  grid-template-columns: minmax(176px, .9fr) minmax(0, 1.45fr) auto;
  align-items: center;
  gap: 10px 14px;
  min-height: 112px;
  padding: 10px 50px 34px 12px;
}

.accounts-list .card-back {
  min-height: 210px;
  padding: 12px 48px 58px 12px;
}

.accounts-list .hdr {
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.accounts-list .card-art {
  width: 84px;
  height: 54px;
  flex: 0 0 84px;
  margin: 0;
}

.accounts-list .card-art.portrait {
  width: 42px;
  height: 68px;
  flex-basis: 42px;
}

.accounts-list .card-art-placeholder {
  width: 84px;
  height: 54px;
  font-size: 1.45rem;
}

.accounts-list .head-copy {
  min-width: 0;
}

.accounts-list .name {
  padding-right: 0;
  font-size: .94rem;
  line-height: 1.2;
}

.accounts-list .card-description {
  display: -webkit-box;
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.28;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.accounts-list .summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.accounts-list .summary-box {
  min-height: 72px;
  border-radius: 8px;
  padding: 6px 7px;
}

.accounts-list .gift-box {
  padding-bottom: 15px;
}

.accounts-list .summary-label {
  font-size: .63rem;
}

.accounts-list .summary-value,
.accounts-list .earn-rate-group b,
.accounts-list .earn-rate-headline {
  font-size: .78rem;
}

.accounts-list .earn-rate-group small,
.accounts-list .earn-rate-subline,
.accounts-list .summary-value small,
.accounts-list .summary-box em {
  font-size: .6rem;
}

.accounts-list .promo-ending-text {
  right: 7px;
  bottom: 5px;
  font-size: .56rem;
}

.accounts-list .summary-value {
  padding-block: 3px;
}

.accounts-list .earn-value {
  gap: 3px;
}

.accounts-list .earn-rate-group + .earn-rate-group {
  margin-top: 3px;
}

.accounts-list .summary-box .best-for-list {
  padding-block: 3px;
}

.accounts-list .best-for-list {
  gap: 2px;
  margin-top: 2px;
}

.accounts-list .best-for-list a,
.accounts-list .best-for-list button,
.accounts-list .best-for-list span {
  padding: 2px 5px;
  font-size: .6rem;
}

.accounts-list .why-choose {
  display: none;
}

.accounts-list .card-front .actions {
  position: static;
  grid-column: 3;
  grid-row: 1;
  width: auto;
  margin: 0;
  transform: none;
}

.accounts-list .card-front .actions .pill {
  min-width: 84px;
  padding: 8px 11px;
  font-size: .82rem;
}

.accounts-list .card-medal-stage {
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  transform: none;
  z-index: 42;
}

.accounts-list .card-medal {
  font-size: 1.75rem;
}

.box.top-deal .card-face { border-color: rgba(245, 158, 11, .48); background: var(--card); box-shadow: 0 0 0 2px rgba(245, 158, 11, .10) inset, 0 10px 24px rgba(245, 158, 11, .07); }
.box.runner-up .card-face { border-color: rgba(251, 146, 60, .30); background: var(--card); box-shadow: 0 0 0 2px rgba(251, 146, 60, .06) inset; }
.box.third-place .card-face { border-color: rgba(251, 146, 60, .20); background: var(--card); box-shadow: 0 0 0 2px rgba(251, 146, 60, .04) inset; }
.box.is-starred .card-face { border-color: rgba(244, 63, 94, .42); box-shadow: 0 0 0 3px rgba(244, 63, 94, .10) inset, 0 10px 24px rgba(244, 63, 94, .07); }
.box.is-loved-mismatch .card-face { border-color: rgba(148, 163, 184, .36); box-shadow: none; filter: grayscale(.38); opacity: .68; }
.box.is-noped .card-face { border-color: rgba(148, 163, 184, .32); background: var(--card); box-shadow: none; filter: grayscale(.84); opacity: .54; }

.box.card-shell .card-back,
.box.top-deal .card-back,
.box.runner-up .card-back,
.box.third-place .card-back,
.box.is-starred .card-back,
.box.is-noped .card-back,
.box.is-loved-mismatch .card-back {   background: rgba(248, 248, 248, .82); color: #0f172a; }
.box.top-deal .card-back { border-color: rgba(245, 158, 11, .48); }
.box.runner-up .card-back { border-color: rgba(251, 146, 60, .30); }
.box.third-place .card-back { border-color: rgba(251, 146, 60, .20); }
.box.top-deal .card-back,
.box.runner-up .card-back,
.box.third-place .card-back { box-shadow: 0 0 0 2px rgba(245, 158, 11, .06) inset, 0 10px 22px rgba(15, 23, 42, .10); }

.card-back .quick-review-title,
.card-back .quick-review-text,
.card-back .quick-review-list,
.card-back .quick-review-list li { color: #0f172a; }
.card-back .quick-review-sub,
.card-back .quick-review-label { color: #475569; }
.card-back .quick-review-verdict { border-color: rgba(100, 116, 139, .22); background: rgba(248, 250, 252, .58); }
.card-back .quick-review-verdict .quick-review-label { border-color: rgba(100, 116, 139, .22); background: rgba(255, 255, 255, .46); color: #475569; }
.card-back .quick-review-text-link { color: #2563eb; text-decoration-color: rgba(37, 99, 235, .35); }
.card-back .quick-review-text-link:hover,
.card-back .quick-review-text-link:focus { color: #1d4ed8; }

.box.card-shell { position: relative; overflow: visible; }
.card-medal-stage { position: absolute; top: -26px; left: 50%; width: 44px; height: 44px; pointer-events: none; perspective: 1200px; transform: translateX(-50%); }
.box.card-shell:not(.is-flipped) .card-medal-stage { z-index: 40; }
.box.card-shell.is-flipped .card-medal-stage { z-index: 1; }
.card-medal-flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 280ms ease; }
.box.card-shell.is-flipped .card-medal-flipper { transform: rotateY(180deg); }
.card-medal { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.5rem; line-height: 1; filter: drop-shadow(0 5px 7px rgba(15, 23, 42, .20)); backface-visibility: visible; -webkit-backface-visibility: visible; }

.card-front .actions,
.quick-review-actions { position: absolute; left: 50%; bottom: 24px; z-index: 24; display: flex; justify-content: center !important; align-items: center; width: auto; margin: 0; padding: 0; transform: translateX(-50%); }
.card-front .actions .pill,
.quick-review-actions .pill,
.quick-review-actions .quick-review-link { min-width: 132px; margin: 0; }

.card-detail-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #111827;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .10);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  line-height: 1;
  padding: 0;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease, color .16s ease;
}

.card-detail-toggle:hover,
.card-detail-toggle:focus-visible {
  border-color: rgba(15, 23, 42, .22);
  background: #fff;
  color: #020617;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
  transform: translateY(-2px);
}

.expand-toggle-icon {
  display: block;
  width: 17px;
  height: 17px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.accounts-list .card-front .actions {
  position: static;
  grid-column: 3;
  grid-row: 1;
  width: auto;
  margin: 0;
  transform: none;
}

.accounts-list .card-front .actions .pill {
  min-width: 84px;
  padding: 8px 11px;
  font-size: .82rem;
}

.accounts-list .card-flipper {
  height: 118px;
}

.accounts-list .box.card-shell.is-expanded .card-flipper {
  height: 278px;
}

.accounts-list .card-face {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.accounts-list .box.card-shell.is-flipped .card-back {
  position: absolute;
}

.accounts-list .box.card-shell:not(.is-flipped) .card-front,
.accounts-list .box.card-shell.is-flipped .card-back {
  pointer-events: auto;
}

.accounts-list .box.card-shell:not(.is-flipped) .card-back,
.accounts-list .box.card-shell.is-flipped .card-front {
  pointer-events: none;
}

.accounts-list .card-detail-toggle {
  position: absolute;
  right: 48px;
  bottom: 9px;
  z-index: 26;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.accounts-list .box.card-shell:not(.is-expanded) .summary-grid {
  grid-template-columns: minmax(0, 1fr);
  align-self: stretch;
}

.accounts-list .box.card-shell:not(.is-expanded) .summary-box:not(.earn-box),
.accounts-list .box.card-shell:not(.is-expanded) .why-choose {
  display: none;
}

.accounts-list .box.card-shell.is-expanded .why-choose {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 118px 0 0;
}

.accounts-list .box.card-shell.is-expanded .why-choose h5 {
  margin: 0 0 4px;
}

.accounts-list .box.card-shell.is-expanded .why-choose ul {
  margin: 0;
}

.accounts-list .quick-review {
  height: 100%;
  gap: 8px;
  overflow: hidden;
}

.accounts-list .quick-review-head {
  padding-right: 88px;
}

.accounts-list .quick-review-columns {
  display: none;
}

.accounts-list .quick-review-verdict {
  max-height: 48px;
  overflow: hidden;
  margin-top: 0;
  padding: 8px 10px;
}

.accounts-list .quick-review-verdict .quick-review-text,
.accounts-list .quick-review-verdict .quick-review-list {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.accounts-list .box.card-shell.is-expanded .quick-review {
  gap: 12px;
}

.accounts-list .box.card-shell.is-expanded .quick-review-columns {
  display: grid;
}

.accounts-list .box.card-shell.is-expanded .quick-review-verdict {
  max-height: 116px;
}

.accounts-list .card-flipper {
  display: block;
  height: auto;
}

.accounts-list .card-face {
  min-height: 0;
}

.accounts-list .box.card-shell:not(.is-expanded) .card-face {
  position: relative;
  inset: auto;
  height: auto;
  overflow: visible;
}

.accounts-list .box.card-shell:not(.is-expanded) .card-back {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.accounts-list .box.card-shell:not(.is-expanded) .card-front {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "summary";
  align-items: center;
  gap: 10px 12px;
  padding: 18px 22px 32px 18px;
}

.accounts-list .box.card-shell:not(.is-expanded) .hdr {
  grid-area: head;
}

.accounts-list .box.card-shell:not(.is-expanded) .head-copy {
  max-width: 720px;
}

.accounts-list .box.card-shell:not(.is-expanded) .name {
  font-size: 1.15rem;
  line-height: 1.16;
}

.accounts-list .box.card-shell:not(.is-expanded) .card-description {
  font-size: .9rem;
  -webkit-line-clamp: 2;
}

.accounts-list .box.card-shell:not(.is-expanded) .summary-grid {
  display: none;
}

.accounts-list .box.card-shell:not(.is-expanded) .fee-box,
.accounts-list .box.card-shell:not(.is-expanded) .why-choose,
.accounts-list .box.card-shell:not(.is-expanded) .card-flip-front {
  display: none;
}

.accounts-list .box.card-shell:not(.is-expanded) .summary-box.earn-box,
.accounts-list .box.card-shell:not(.is-expanded) .summary-box.best-for-box,
.accounts-list .box.card-shell:not(.is-expanded) .summary-box.gift-box {
  display: flex;
  min-height: 56px;
  padding: 6px 8px;
}

.accounts-list .box.card-shell:not(.is-expanded) .summary-box.best-for-box,
.accounts-list .box.card-shell:not(.is-expanded) .summary-box.gift-box {
  border-color: rgba(148, 163, 184, .24);
  background: rgba(255, 255, 255, .72);
}

.accounts-list .box.card-shell:not(.is-expanded) .summary-box .best-for-list {
  padding-block: 4px;
}

.accounts-list .box.card-shell:not(.is-expanded) .summary-value {
  padding-block: 4px;
}

.list-summary {
  display: none;
}

.accounts-list .box.card-shell:not(.is-expanded) .list-summary {
  grid-area: summary;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "earn";
  gap: 0;
  min-width: 0;
  margin-top: 2px;
  padding-right: 84px;
  color: var(--text);
  font-size: .86rem;
  line-height: 1.3;
}

.list-summary-col {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 10px 14px;
}

.list-earn-col {
  grid-area: earn;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  margin-right: 0;
}

.list-summary-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 780;
  line-height: 1.2;
}

.list-best-for {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.list-best-for .best-for-chip,
.list-best-for .untagged {
  display: inline-flex;
  align-items: center;
  max-width: max-content;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  background: rgba(239, 246, 255, .86);
  padding: 2px 6px;
  color: var(--link);
  font-size: .64rem;
  font-weight: 820;
  line-height: 1.15;
  text-decoration: none;
}

.list-best-for .best-for-chip.is-selected-best-for {
  border-color: rgba(245, 158, 11, .58);
  background: rgba(254, 243, 199, .96);
  color: #92400e;
}

.list-best-for .untagged {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}

.list-for-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.25;
}

.list-summary-col strong {
  color: var(--text);
  font-size: .92rem;
  font-weight: 820;
  line-height: 1.28;
}

.list-summary-col .list-min-spend {
  color: var(--muted);
  font-weight: 500;
}

.list-promo-row {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.list-promo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.list-promo-ending {
  flex: 0 0 auto;
  color: #b45309;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

.list-promo-row strong,
.list-promo-row em {
  overflow-wrap: anywhere;
}

.list-promo-row .source-pill {
  margin-bottom: 0;
}

.list-summary-col em {
  color: var(--muted);
  font-size: .82rem;
  font-style: normal;
  line-height: 1.25;
}

.list-gift-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.list-gift-pill,
.list-gift-more {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(248, 250, 252, .86);
  color: var(--text);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.15;
}

.list-gift-pill {
  gap: 5px;
  max-width: 160px;
  padding: 3px 7px 3px 4px;
}

.list-gift-pill > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-gift-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 999px;
  background: #fff;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: .9rem;
  line-height: 1;
}

.list-gift-visual img {
  display: block;
  width: auto;
  max-width: 18px;
  max-height: 17px;
  object-fit: contain;
}

.list-gift-more {
  justify-content: center;
  min-width: 26px;
  height: 26px;
  background: #fff;
  color: var(--muted);
}

.accounts-list .box.card-shell:not(.is-expanded) .card-tools {
  top: -16px;
  right: 16px;
  left: auto;
  z-index: 32;
  flex-wrap: nowrap;
}

.accounts-list .box.card-shell:not(.is-expanded) .tool-btn,
.accounts-list .box.card-shell:not(.is-expanded) .card-detail-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  padding: 0;
}

.accounts-list .box.card-shell:not(.is-expanded) .card-front .actions {
  position: absolute;
  left: 50%;
  bottom: -15px;
  z-index: 28;
  grid-area: auto;
  align-self: auto;
  justify-self: auto;
  transform: translateX(-50%);
}

.accounts-list .box.card-shell:not(.is-expanded) .card-front .actions .pill {
  min-width: 96px;
  padding: 8px 14px;
  border-color: rgba(217, 119, 6, .42);
  box-shadow: 0 8px 18px rgba(245, 158, 11, .24);
  font-size: .84rem;
}

.accounts-list .box.card-shell:not(.is-expanded) .card-detail-toggle {
  position: static;
  line-height: 1;
}

.accounts-list .box.card-shell.is-expanded {
  width: 100%;
  max-width: 760px;
  justify-self: center;
}

.accounts-list .box.card-shell.is-expanded .card-flipper {
  display: grid;
  height: auto;
  min-height: 100%;
}

.accounts-list .box.card-shell.is-expanded .card-face {
  position: relative;
  inset: auto;
  height: auto;
  overflow: visible;
}

.accounts-list .box.card-shell.is-expanded .card-front,
.accounts-list .box.card-shell.is-expanded .card-back {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 12px 12px 78px;
}

.accounts-list .box.card-shell.is-expanded .card-front {
  grid-area: 1 / 1;
}

.accounts-list .box.card-shell.is-expanded .card-back {
  grid-area: 1 / 1;
  overflow: auto;
}

.accounts-list .box.card-shell.is-expanded .hdr {
  align-items: flex-start;
  gap: 14px;
  padding-right: 0;
}

.accounts-list .box.card-shell.is-expanded .card-art {
  width: 116px;
  height: 74px;
  flex: 0 0 116px;
  margin: 0 0 8px;
}

.accounts-list .box.card-shell.is-expanded .card-art.portrait {
  width: 78px;
  height: 124px;
  flex-basis: 78px;
}

.accounts-list .box.card-shell.is-expanded .card-art-placeholder {
  width: 116px;
  height: 74px;
  font-size: 2rem;
}

.accounts-list .box.card-shell.is-expanded .name {
  padding-right: 78px;
  font-size: 1rem;
}

.accounts-list .box.card-shell.is-expanded .card-description {
  display: block;
  font-size: .9rem;
  line-height: 1.35;
  -webkit-line-clamp: initial;
}

.accounts-list .box.card-shell.is-expanded .summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
  margin: 12px 0 14px;
}

.accounts-list .box.card-shell.is-expanded .summary-box {
  min-height: 86px;
  border-radius: 10px;
  padding: 8px 10px;
}

.accounts-list .box.card-shell.is-expanded .gift-box {
  padding-bottom: 20px;
}

.accounts-list .box.card-shell.is-expanded .summary-label {
  font-size: .74rem;
}

.accounts-list .box.card-shell.is-expanded .summary-value,
.accounts-list .box.card-shell.is-expanded .earn-rate-group b,
.accounts-list .box.card-shell.is-expanded .earn-rate-headline {
  font-size: .98rem;
}

.accounts-list .box.card-shell.is-expanded .summary-value {
  padding-block: 8px;
}

.accounts-list .box.card-shell.is-expanded .fee-box,
.accounts-list .box.card-shell.is-expanded .why-choose,
.accounts-list .box.card-shell.is-expanded .card-flip-front {
  display: flex;
}

.accounts-list .box.card-shell.is-expanded .why-choose {
  display: block;
  padding-right: 0;
}

.accounts-list .box.card-shell.is-expanded .actions {
  position: absolute;
  left: 50%;
  bottom: 24px;
  grid-column: auto;
  grid-row: auto;
  transform: translateX(-50%);
}

.accounts-list .box.card-shell.is-expanded .actions .pill {
  min-width: 104px;
  padding: 9px 14px;
  font-size: .9rem;
}

.accounts-list .box.card-shell.is-expanded .card-tools {
  top: 8px;
  right: 8px;
  left: auto;
  z-index: 32;
  gap: 4px;
}

.accounts-list .box.card-shell.is-expanded .card-tools .card-detail-toggle {
  position: static;
  right: auto;
  bottom: auto;
}

.accounts-list .box.card-shell.is-expanded .card-back .card-detail-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: auto;
  z-index: 32;
}

.accounts-list .box.card-shell.is-expanded .card-detail-toggle {
  right: 50px;
  bottom: 8px;
}

.accounts-list .box.card-shell.is-expanded .quick-review {
  height: auto;
  gap: 16px;
  overflow: visible;
}

.accounts-list .box.card-shell.is-expanded .quick-review-columns {
  display: grid;
}

.accounts-list .box.card-shell.is-expanded .quick-review-verdict {
  max-height: none;
  overflow: visible;
}

.accounts-list .box.card-shell.is-expanded .card-medal-stage {
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  transform: none;
  z-index: 42;
}

.accounts-list .box.card-shell.is-expanded .card-medal {
  font-size: 1.75rem;
}

.accounts-list .card-medal-stage {
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  transform: none;
  z-index: 42;
}

.accounts-list .card-medal {
  font-size: 1.75rem;
}

.card-flip-btn { position: absolute; right: 8px; bottom: 8px; z-index: 25; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(148, 163, 184, .34); border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 14px rgba(15, 23, 42, .10); color: var(--muted); cursor: pointer; overflow: hidden; padding: 2px; font-family: inherit; font-size: 1.55rem; font-weight: 400; line-height: 1; appearance: none; -webkit-appearance: none; transition: transform .16s ease, color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.card-flip-front::before { content: "⋯"; position: relative; z-index: 2; display: grid; place-items: center; width: 100%; height: 100%; letter-spacing: 1px; }
.card-flip-back::before { content: "←"; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.35rem; font-weight: 400; }
.card-flip-btn::after { content: none !important; }
.card-flip-front::after { content: "" !important; position: absolute; inset: 1px; z-index: 1; border: 1.5px solid transparent; border-top-color: rgba(245, 158, 11, .78); border-right-color: rgba(245, 158, 11, .28); border-radius: inherit; box-shadow: 0 0 0 1px rgba(245, 158, 11, .08); pointer-events: none; transform-origin: center; animation: card-flip-circle 2.6s linear infinite; }
:host([data-quick-review-hint-seen]) .card-flip-front::after { display: none; }
.card-flip-btn:hover,
.card-flip-btn:focus { border-color: rgba(37, 99, 235, .42); background: rgba(219, 234, 254, .94); color: var(--link-hover); box-shadow: 0 10px 22px rgba(37, 99, 235, .18); }
.card-flip-front:hover,
.card-flip-front:focus { transform: translateY(-2px); }
.card-flip-back:hover,
.card-flip-back:focus { transform: translateY(-2px); }

@keyframes card-flip-circle {
  0% { transform: rotate(0deg); opacity: .76; }
  50% { opacity: 1; }
  100% { transform: rotate(360deg); opacity: .76; }
}

.quick-review { display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.quick-review-title { margin: 0; color: var(--text); font-size: 1.05rem; font-weight: 850; line-height: 1.2; }
.quick-review-sub { margin: 5px 0 0; color: var(--muted); font-size: .84rem; font-weight: 400; line-height: 1.35; }
.quick-review-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.quick-review-section,
.quick-review-verdict { border: 0; background: transparent; padding: 0; }
.quick-review-verdict { position: relative; margin-top: 2px; padding: 14px 15px 15px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(15, 23, 42, .42); }
.quick-review-verdict .quick-review-label { display: inline-flex; align-items: center; margin-bottom: 8px; padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #e5e7eb; font-size: .66rem; font-weight: 850; line-height: 1; letter-spacing: .04em; }
.quick-review-label { margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 800; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; }
.quick-review-text { margin: 0; color: var(--text); font-size: .88rem; font-weight: 400; line-height: 1.48; }
.quick-review-text-link { display: inline-flex; margin-top: 8px; color: var(--link); font-size: .84rem; font-weight: 750; line-height: 1.3; text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; }
.quick-review-text-link:hover,
.quick-review-text-link:focus { color: var(--link-hover); text-decoration-color: currentColor; }
.quick-review-request-wrap { display: grid; justify-items: start; gap: 2px; margin-top: 8px; }
.quick-review-request-wrap .quick-review-text-link { margin-top: 0; }
.quick-review-request-link { border: 0; background: transparent; padding: 0; cursor: pointer; font-family: inherit; }
.quick-review-request-link:disabled { cursor: default; opacity: .72; text-decoration: none; }
.quick-review-list { margin: 0; padding-left: 18px; color: var(--text); font-size: .88rem; font-weight: 400; line-height: 1.48; }
.quick-review-list li + li { margin-top: 4px; }

/* Dark mode */
:host([data-theme="dark"]) .theme-btn,
:host([data-theme="dark"]) .view-toggle-btn,
:host([data-theme="dark"]) .control-cell,
:host([data-theme="dark"]) .empty-state,
:host([data-theme="dark"]) .summary-box,
:host([data-theme="dark"]) .offer-card,
:host([data-theme="dark"]) .close-btn,
:host([data-theme="dark"]) .feedback-panel,
  :host([data-theme="dark"]) .feedback-close,
  :host([data-theme="dark"]) .feedback-pill span,
  :host([data-theme="dark"]) .feedback-form textarea,
:host([data-theme="dark"]) .share-url-field input,
:host([data-theme="dark"]) .share-option-btn,
:host([data-theme="dark"]) .feedback-secondary { background: #0b1220; }
:host([data-theme="dark"]) .promo-code-copy,
:host([data-theme="dark"]) .promo-code-inline {
  border-color: rgba(96, 165, 250, .36);
  background: rgba(30, 64, 175, .28);
  color: #bfdbfe;
  box-shadow: none;
}
:host([data-theme="dark"]) .promo-code-copy:hover,
:host([data-theme="dark"]) .promo-code-copy:focus,
:host([data-theme="dark"]) .promo-code-inline:hover,
:host([data-theme="dark"]) .promo-code-inline:focus {
  border-color: rgba(147, 197, 253, .62);
  background: rgba(37, 99, 235, .36);
  color: #dbeafe;
}
:host([data-theme="dark"]) .promo-code-copy.is-copied,
:host([data-theme="dark"]) .promo-code-inline.is-copied {
  border-color: rgba(74, 222, 128, .5);
  background: rgba(22, 101, 52, .36);
  color: #bbf7d0;
}
:host([data-theme="dark"]) .view-toggle-btn:hover,
:host([data-theme="dark"]) .view-toggle-btn:focus {
  border-color: rgba(147, 197, 253, .34);
  background: rgba(30, 58, 138, .32);
  color: #bfdbfe;
}
:host([data-theme="dark"]) .feedback-trigger,
:host([data-theme="dark"]) .feedback-primary,
  :host([data-theme="dark"]) .feedback-pill.is-selected span,
  :host([data-theme="dark"]) .feedback-pill input:checked + span { border-color: rgba(147, 197, 253, .34); background: #2563eb; color: #fff; }
  :host([data-theme="dark"]) .share-status { border-color: rgba(51, 65, 85, .92); background: rgba(15, 23, 42, .72); color: #e5e7eb; }
  :host([data-theme="dark"]) .share-status.is-copied,
  :host([data-theme="dark"]) .share-status.is-shared { border-color: rgba(34, 197, 94, .28); background: rgba(20, 83, 45, .34); color: #bbf7d0; }
  :host([data-theme="dark"]) .share-status.is-failed,
  :host([data-theme="dark"]) .share-status.is-native-unavailable { border-color: rgba(248, 113, 113, .28); background: rgba(127, 29, 29, .34); color: #fecaca; }
  :host([data-theme="dark"]) .share-url-field input,
  :host([data-theme="dark"]) .share-option-btn { border-color: rgba(51, 65, 85, .92); color: #dbeafe; }
  :host([data-theme="dark"]) .share-option-btn:hover,
  :host([data-theme="dark"]) .share-option-btn:focus { border-color: rgba(147, 197, 253, .34); background: rgba(30, 58, 138, .32); color: #bfdbfe; }
  :host([data-theme="dark"]) .share-option-btn.primary { border-color: rgba(251, 191, 36, .52); background: #f59e0b; color: #111; }
:host([data-theme="dark"]) .feedback-trigger:hover,
:host([data-theme="dark"]) .feedback-trigger:focus,
:host([data-theme="dark"]) .feedback-primary:hover,
:host([data-theme="dark"]) .feedback-primary:focus { background: #1d4ed8; }
:host([data-theme="dark"]) .feedback-secondary { color: #cbd5e1; }
:host([data-theme="dark"]) .tutorial-entry-btn { border-color: rgba(251, 191, 36, .34); background: rgba(146, 64, 14, .24); color: #fde68a; }
:host([data-theme="dark"]) .tutorial-entry-btn:hover,
:host([data-theme="dark"]) .tutorial-entry-btn:focus { border-color: rgba(251, 191, 36, .5); background: rgba(146, 64, 14, .42); color: #fef3c7; }
:host([data-theme="dark"]) .tutorial-dim { background: transparent; }
:host([data-theme="dark"]) .tutorial-spotlight { border-color: rgba(147, 197, 253, .96); box-shadow: 0 0 0 9999px rgba(2, 6, 23, .34), 0 0 0 6px rgba(96, 165, 250, .18), 0 18px 46px rgba(0, 0, 0, .36); }
:host([data-theme="dark"]) .tutorial-coach,
:host([data-theme="dark"]) .tutorial-coach::before,
:host([data-theme="dark"]) .tutorial-close { background: #0b1220; }
:host([data-theme="dark"]) .tutorial-coach,
:host([data-theme="dark"]) .tutorial-coach::before { border-color: rgba(147, 197, 253, .34); }
:host([data-theme="dark"]) .tutorial-close { color: #e5e7eb; }
:host([data-theme="dark"]) .tutorial-progress span { background: rgba(71, 85, 105, .74); }
:host([data-theme="dark"]) .tutorial-progress span.active { background: #60a5fa; }
:host([data-theme="dark"]) .sort-status { color: #94a3b8; }
:host([data-theme="dark"]) .display-divider { background: rgba(51, 65, 85, .92); }
:host([data-theme="dark"]) .sticky-sort-select,
:host([data-theme="dark"]) .sticky-reset-btn,
:host([data-theme="dark"]) .reset-filters-btn { border-color: rgba(51, 65, 85, .92); background: rgba(15, 23, 42, .72); color: #dbeafe; }
:host([data-theme="dark"]) .sticky-sort-select:hover,
:host([data-theme="dark"]) .sticky-sort-select:focus,
:host([data-theme="dark"]) .sticky-reset-btn:hover,
:host([data-theme="dark"]) .sticky-reset-btn:focus,
:host([data-theme="dark"]) .reset-filters-btn:hover,
:host([data-theme="dark"]) .reset-filters-btn:focus { border-color: rgba(147, 197, 253, .34); background: rgba(30, 58, 138, .32); color: #bfdbfe; }
:host([data-theme="dark"]) .best-for-scroll-btn { border-color: rgba(51, 65, 85, .92); background: rgba(15, 23, 42, .92); color: #dbeafe; box-shadow: 0 8px 18px rgba(0, 0, 0, .28); }
:host([data-theme="dark"]) .locked-bank-chip,
:host([data-theme="dark"]) .locked-bank-chip:hover,
:host([data-theme="dark"]) .locked-bank-chip:focus { border-color: rgba(51, 65, 85, .92); background: rgba(15, 23, 42, .72); color: #94a3b8; }
:host([data-theme="dark"]) .filter-btn:hover,
:host([data-theme="dark"]) .filter-btn:focus { border-color: rgba(147, 197, 253, .34); background: rgba(30, 58, 138, .32); color: #bfdbfe; }
:host([data-theme="dark"]) .filter-btn.active,
:host([data-theme="dark"]) .filter-btn.active:hover,
:host([data-theme="dark"]) .filter-btn.active:focus {
  border-color: rgba(245, 158, 11, .62);
  background: #fbbf24;
  color: #111;
}
:host([data-theme="dark"]) .active-filter-chip { border-color: rgba(96, 165, 250, .28); background: rgba(30, 58, 138, .32); color: #bfdbfe; }
:host([data-theme="dark"]) .sticky-filter-bar { border-color: rgba(51, 65, 85, .86); background: rgba(15, 23, 42, .92); box-shadow: 0 16px 34px rgba(0, 0, 0, .34); }
:host([data-theme="dark"]) .full-cardmatch-link a { border-color: rgba(96, 165, 250, .28); background: rgba(30, 58, 138, .32); color: #bfdbfe; }
:host([data-theme="dark"]) .full-cardmatch-link a:hover,
:host([data-theme="dark"]) .full-cardmatch-link a:focus { border-color: rgba(147, 197, 253, .48); background: rgba(37, 99, 235, .44); color: #dbeafe; }
:host([data-theme="dark"]) .shared-card-chrome {
  border-color: rgba(51, 65, 85, .92);
  background: rgba(15, 23, 42, .84);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}
:host([data-theme="dark"]) .shared-card-brand,
:host([data-theme="dark"]) .shared-card-footer a { color: #bfdbfe; }
:host([data-theme="dark"]) .shared-card-brand:hover,
:host([data-theme="dark"]) .shared-card-brand:focus,
:host([data-theme="dark"]) .shared-card-footer a:hover,
:host([data-theme="dark"]) .shared-card-footer a:focus { color: #dbeafe; }
:host([data-theme="dark"]) .shared-card-action {
  border-color: rgba(51, 65, 85, .92);
  background: #0b1220;
  color: #bfdbfe;
}
:host([data-theme="dark"]) .shared-card-action:hover,
:host([data-theme="dark"]) .shared-card-action:focus {
  border-color: rgba(147, 197, 253, .34);
  background: rgba(30, 58, 138, .32);
  color: #dbeafe;
}
:host([data-theme="dark"]) .shared-card-action.primary {
  border-color: rgba(251, 191, 36, .52);
  background: #f59e0b;
  color: #111;
}
:host([data-theme="dark"]) .shared-card-action.primary:hover,
:host([data-theme="dark"]) .shared-card-action.primary:focus {
  border-color: rgba(251, 191, 36, .68);
  background: #fbbf24;
  color: #111;
}
:host([data-theme="dark"]) .active-filter-chip.locked { border-color: rgba(251, 191, 36, .32); background: rgba(146, 64, 14, .28); color: #fde68a; }
:host([data-theme="dark"]) .saved-sort-action { border-color: rgba(51, 65, 85, .92); background: #0b1220; color: #cbd5e1; }
:host([data-theme="dark"]) .saved-sort-action:hover,
:host([data-theme="dark"]) .saved-sort-action:focus { border-color: rgba(147, 197, 253, .34); background: rgba(30, 58, 138, .32); color: #bfdbfe; }
:host([data-theme="dark"]) .saved-sort-action:disabled:hover,
:host([data-theme="dark"]) .saved-sort-action:disabled:focus { border-color: rgba(51, 65, 85, .92); background: #0b1220; color: #cbd5e1; }
:host([data-theme="dark"]) .saved-view-actions { color: #94a3b8; }
:host([data-theme="dark"]) .comparison-table thead th { background: #0b1220; }
:host([data-theme="dark"]) .comparison-table tbody tr:nth-child(even) th,
:host([data-theme="dark"]) .comparison-table tbody tr:nth-child(even) td { background: rgba(15, 23, 42, .86); }
:host([data-theme="dark"]) .comparison-table tbody tr:nth-child(odd) th,
:host([data-theme="dark"]) .comparison-table tbody tr:nth-child(odd) td { background: rgba(2, 6, 23, .82); }
:host([data-theme="dark"]) .comparison-table tbody tr:hover th,
:host([data-theme="dark"]) .comparison-table tbody tr:hover td { background: rgba(30, 58, 138, .42); }
:host([data-theme="dark"]) .comparison-row-label[data-compare-sort]::after { border-color: rgba(51, 65, 85, .92); background: rgba(71, 85, 105, .9); color: #e5e7eb; }
:host([data-theme="dark"]) .comparison-row-label[data-compare-sort]:hover::after,
:host([data-theme="dark"]) .comparison-row-label[data-compare-sort]:focus::after { background: rgba(100, 116, 139, .98); }
:host([data-theme="dark"]) .comparison-remove { border-color: rgba(251, 113, 133, .34); background: rgba(136, 19, 55, .38); color: #fecdd3; }
:host([data-theme="dark"]) .filter-advice { border-color: rgba(51, 65, 85, .92); background: rgba(15, 23, 42, .54); color: #94a3b8; }
:host([data-theme="dark"]) .filter-advice strong { color: #e5e7eb; }
:host([data-theme="dark"]) .show-more-btn { border-color: rgba(251, 191, 36, .34); background: rgba(146, 64, 14, .24); color: #fde68a; }
:host([data-theme="dark"]) .show-more-btn:hover,
:host([data-theme="dark"]) .show-more-btn:focus { border-color: rgba(251, 191, 36, .5); background: rgba(146, 64, 14, .42); color: #fef3c7; }
:host([data-theme="dark"]) .best-for-group { border-color: rgba(51, 65, 85, .92); background: rgba(15, 23, 42, .62); }
:host([data-theme="dark"]) .best-for-group h5 { border-bottom-color: rgba(148, 163, 184, .22); color: #94a3b8; }
:host([data-theme="dark"]) .box.is-noped { border-color: rgba(51, 65, 85, .7); background: #0b1220; box-shadow: none; }
:host([data-theme="dark"]) .box.is-starred { border-color: rgba(251, 113, 133, .48); box-shadow: 0 0 0 3px rgba(244, 63, 94, .14) inset, 0 0 22px rgba(244, 63, 94, .10); }
:host([data-theme="dark"]) .box.is-loved-mismatch { border-color: rgba(71, 85, 105, .74); box-shadow: none; }
:host([data-theme="dark"]) .offer-details { border-top-color: rgba(51, 65, 85, .92); }
:host([data-theme="dark"]) .tool-btn,
:host([data-theme="dark"]) .card-detail-toggle {
  border-color: rgba(148, 163, 184, .82);
  background: rgba(15, 23, 42, .94);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .34);
}
:host([data-theme="dark"]) .card-detail-toggle {
  color: #e5e7eb;
}
:host([data-theme="dark"]) .card-share-btn,
:host([data-theme="dark"]) .card-flip-btn { border-color: rgba(148, 163, 184, .52); background: rgba(15, 23, 42, .94); color: #94a3b8; box-shadow: 0 8px 20px rgba(0, 0, 0, .34); }
:host([data-theme="dark"]) .card-share-btn:hover,
:host([data-theme="dark"]) .card-share-btn:focus-visible,
:host([data-theme="dark"]) .card-flip-btn:hover,
:host([data-theme="dark"]) .card-flip-btn:focus { border-color: rgba(147, 197, 253, .38); background: rgba(30, 58, 138, .52); color: #bfdbfe; }
:host([data-theme="dark"]) .card-share-btn.is-copied { background: rgba(20, 83, 45, .72); color: #bbf7d0; }
:host([data-theme="dark"]) .card-share-btn.is-failed { background: rgba(127, 29, 29, .72); color: #fecaca; }
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .list-summary,
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .list-summary-col strong {
  color: #e5e7eb;
}
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .list-summary-label,
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .list-for-row,
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .list-summary-col em {
  color: #94a3b8;
}
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .list-earn-col {
  border-color: var(--border);
  background: #0b1220;
}
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .list-best-for .best-for-chip {
  border-color: rgba(96, 165, 250, .28);
  background: rgba(30, 58, 138, .32);
  color: #bfdbfe;
}
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .list-best-for .best-for-chip.is-selected-best-for {
  border-color: rgba(251, 191, 36, .48);
  background: rgba(146, 64, 14, .34);
  color: #fde68a;
}
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .list-best-for .untagged {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
}
:host([data-theme="dark"]) .tool-btn:hover,
:host([data-theme="dark"]) .tool-btn:focus-visible,
:host([data-theme="dark"]) .card-detail-toggle:hover,
:host([data-theme="dark"]) .card-detail-toggle:focus-visible {
  border-color: rgba(37, 99, 235, .74);
  background: rgba(15, 23, 42, .94);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}
:host([data-theme="dark"]) .star-tool.active { border-color: rgba(251, 113, 133, .68); background: rgba(136, 19, 55, .86); }
:host([data-theme="dark"]) .nope-tool.active { border-color: rgba(252, 165, 165, .74); background: rgba(127, 29, 29, .92); }
:host([data-theme="dark"]) .card-art img { filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .42)); }
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .summary-box.earn-box,
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .summary-box.best-for-box,
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .summary-box.gift-box {
  border-color: rgba(96, 165, 250, .22);
  background: rgba(15, 23, 42, .72);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .32) inset;
}
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .summary-label {
  color: #94a3b8;
}
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .summary-value,
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .earn-rate-group b,
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .earn-rate-headline {
  color: #f8fafc;
}
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .summary-value small,
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .earn-rate-group small,
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .earn-rate-subline,
:host([data-theme="dark"]) .accounts-list .box.card-shell:not(.is-expanded) .summary-box em {
  color: #cbd5e1;
}
:host([data-theme="dark"]) .promo-ending-text {
  color: #fbbf24;
}
:host([data-theme="dark"]) .best-for-list a,
:host([data-theme="dark"]) .best-for-list button,
:host([data-theme="dark"]) .best-for-list span { border-color: rgba(96, 165, 250, .28); background: rgba(30, 58, 138, .32); color: #bfdbfe; }
:host([data-theme="dark"]) .best-for-list a:hover,
:host([data-theme="dark"]) .best-for-list button:hover { border-color: rgba(147, 197, 253, .48); background: rgba(37, 99, 235, .44); color: #dbeafe; }
:host([data-theme="dark"]) .best-for-list .best-for-chip.is-selected-best-for { border-color: rgba(251, 191, 36, .48); background: rgba(146, 64, 14, .34); color: #fde68a; box-shadow: 0 0 0 1px rgba(251, 191, 36, .12) inset; }
:host([data-theme="dark"]) .best-for-list .untagged { border-color: var(--border); background: transparent; color: var(--muted); }
:host([data-theme="dark"]) .box.top-deal { border-color: rgba(96, 165, 250, .58); background: var(--card); box-shadow: 0 0 0 2px rgba(59, 130, 246, .14) inset, 0 12px 26px rgba(2, 6, 23, .28); }
:host([data-theme="dark"]) .box.runner-up { border-color: rgba(96, 165, 250, .36); background: var(--card); box-shadow: 0 0 0 2px rgba(59, 130, 246, .08) inset; }
:host([data-theme="dark"]) .box.third-place { border-color: rgba(96, 165, 250, .24); background: var(--card); box-shadow: 0 0 0 2px rgba(59, 130, 246, .05) inset; }
:host([data-theme="dark"]) .card-face { background: var(--card); }
:host([data-theme="dark"]) .box.top-deal .card-face { border-color: rgba(96, 165, 250, .58); background: var(--card); box-shadow: 0 0 0 2px rgba(59, 130, 246, .14) inset, 0 12px 26px rgba(2, 6, 23, .28); }
:host([data-theme="dark"]) .box.runner-up .card-face { border-color: rgba(96, 165, 250, .36); background: var(--card); box-shadow: 0 0 0 2px rgba(59, 130, 246, .08) inset; }
:host([data-theme="dark"]) .box.third-place .card-face { border-color: rgba(96, 165, 250, .24); background: var(--card); box-shadow: 0 0 0 2px rgba(59, 130, 246, .05) inset; }
:host([data-theme="dark"]) .box.is-starred .card-face { border-color: rgba(251, 113, 133, .48); box-shadow: 0 0 0 3px rgba(244, 63, 94, .14) inset, 0 0 22px rgba(244, 63, 94, .10); }
:host([data-theme="dark"]) .box.is-loved-mismatch .card-face { border-color: rgba(71, 85, 105, .74); box-shadow: none; }
:host([data-theme="dark"]) .box.is-noped .card-face { border-color: rgba(51, 65, 85, .7); background: #0b1220; box-shadow: none; }
:host([data-theme="dark"]) .box.card-shell .card-back,
:host([data-theme="dark"]) .box.top-deal .card-back,
:host([data-theme="dark"]) .box.runner-up .card-back,
:host([data-theme="dark"]) .box.third-place .card-back,
:host([data-theme="dark"]) .box.is-starred .card-back,
:host([data-theme="dark"]) .box.is-noped .card-back,
:host([data-theme="dark"]) .box.is-loved-mismatch .card-back { background: rgba(2, 6, 23, .86); color: #f8fafc; }
:host([data-theme="dark"]) .card-flip-btn { color: #94a3b8; }
:host([data-theme="dark"]) .card-flip-btn:hover,
:host([data-theme="dark"]) .card-flip-btn:focus { color: #bfdbfe; }
:host([data-theme="dark"]) .card-flip-front::after { border-top-color: rgba(147, 197, 253, .76); border-right-color: rgba(147, 197, 253, .28); box-shadow: 0 0 0 1px rgba(147, 197, 253, .08); }
:host([data-theme="dark"]) .quick-review-verdict { border-color: rgba(255, 255, 255, .14); background: rgba(15, 23, 42, .56); box-shadow: none; }
:host([data-theme="dark"]) .quick-review-verdict .quick-review-label { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .07); color: #e5e7eb; }
:host([data-theme="dark"]) .muted-pill { border-color: #334155; background: #1e293b; color: #cbd5e1; }
:host([data-theme="dark"]) .source-pill { border-color: rgba(248, 113, 113, .32); background: rgba(127, 29, 29, .28); color: #fecaca; }
:host([data-theme="dark"]) .source-pill.singsaver { border-color: rgba(167, 139, 250, .32); background: rgba(91, 33, 182, .28); color: #ddd6fe; }
:host([data-theme="dark"]) .list-promo-ending { color: #fbbf24; }
:host([data-theme="dark"]) .list-gift-pill { border-color: rgba(148, 163, 184, .34); background: rgba(15, 23, 42, .62); color: #f8fafc; }
:host([data-theme="dark"]) .list-gift-visual,
:host([data-theme="dark"]) .list-gift-more { border-color: rgba(148, 163, 184, .28); background: rgba(2, 6, 23, .56); color: #cbd5e1; }
:host([data-theme="dark"]) .hassle-pill,
:host([data-theme="dark"]) .recommended-pill { border-color: rgba(251, 191, 36, .36); background: rgba(146, 64, 14, .34); color: #fde68a; }
:host([data-theme="dark"]) .hero-detail { border-color: rgba(245, 158, 11, .36); background: rgba(146, 64, 14, .18); }
:host([data-theme="dark"]) .offer-card.is-best { border-color: rgba(148, 163, 184, .46); background: rgba(15, 23, 42, .78); }
:host([data-theme="dark"]) .offer-card.is-recommended { border-color: rgba(251, 191, 36, .52); box-shadow: 0 12px 28px rgba(245, 158, 11, .1); }
:host([data-theme="dark"]) .offer-card.no-current-offer { border-color: rgba(148, 163, 184, .4); background: rgba(15, 23, 42, .52); }
:host([data-theme="dark"]) .stacked-reward-label { border-color: rgba(148, 163, 184, .3); background: rgba(15, 23, 42, .62); color: #cbd5e1; }
:host([data-theme="dark"]) .stacked-reward-group.is-included .stacked-reward-label { border-color: rgba(96, 165, 250, .34); background: rgba(30, 64, 175, .26); color: #bfdbfe; }
:host([data-theme="dark"]) .stacked-reward-group.is-choice .stacked-reward-label { border-color: rgba(251, 191, 36, .34); background: rgba(146, 64, 14, .3); color: #fde68a; }
:host([data-theme="dark"]) .reward-preview-chip { border-color: rgba(148, 163, 184, .34); background: rgba(15, 23, 42, .62); color: #f8fafc; }
:host([data-theme="dark"]) .reward-preview-visual,
:host([data-theme="dark"]) .reward-preview-more { border-color: rgba(148, 163, 184, .28); background: rgba(2, 6, 23, .56); color: #cbd5e1; }
:host([data-theme="dark"]) .reward-option-card { border-color: rgba(148, 163, 184, .44); background: rgba(2, 6, 23, .64); box-shadow: 0 12px 28px rgba(0, 0, 0, .22); }
:host([data-theme="dark"]) .reward-option-card.is-recommended { border-color: #cbd5e1; background: rgba(15, 23, 42, .86); }
:host([data-theme="dark"]) .reward-option-card strong,
:host([data-theme="dark"]) .reward-option-visual { color: #f8fafc; }

/* Dark quick-review back contrast fix */
:host([data-theme="dark"]) .card-back .quick-review-title,
:host([data-theme="dark"]) .card-back .quick-review-text,
:host([data-theme="dark"]) .card-back .quick-review-list,
:host([data-theme="dark"]) .card-back .quick-review-list li { color: #f8fafc; }
:host([data-theme="dark"]) .card-back .quick-review-sub,
:host([data-theme="dark"]) .card-back .quick-review-label { color: #cbd5e1; }
:host([data-theme="dark"]) .card-back .quick-review-text-link { color: #93c5fd; text-decoration-color: rgba(147, 197, 253, .5); }
:host([data-theme="dark"]) .card-back .quick-review-text-link:hover,
:host([data-theme="dark"]) .card-back .quick-review-text-link:focus { color: #bfdbfe; }

/* Mobile */
@media (max-width: 700px) {
  .shared-card-wrap {
    margin-top: 8px;
    padding: 10px 12px 0;
  }
  .shared-card-chrome {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 14px;
    padding: 10px;
    border-radius: 10px;
  }
  .shared-card-actions {
    justify-content: stretch;
    width: 100%;
  }
  .shared-card-action {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 9px;
  }
  .shared-card-copy-status {
    flex: 0 0 auto;
  }
  .shared-card-footer {
    flex-wrap: wrap;
    margin-top: 14px;
  }
  .header-actions {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }
  .header-view-controls {
    grid-column: 2;
    justify-self: end;
    flex-wrap: nowrap;
  }
  .tutorial-entry {
    grid-column: 1;
    justify-self: start;
  }
  .tutorial-label-full { display: none; }
  .tutorial-label-mobile { display: inline; }
  .tutorial-entry-btn { padding-inline: 9px; }
  .theme-btn {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
  }
  .control-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filter-drawer-cell, .banks-cell, .best-for-cell, .active-tags-cell, .display-cell { grid-column: 1 / -1; }
  .filter-drawer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filter-drawer-grid .banks-cell { grid-column: 1 / -1; }
  .rewards-cell, .spend-cell { min-width: 0; }
  .display-cell {
    align-items: center;
    flex-direction: column;
    gap: 7px;
  }
  .display-actions {
    margin-left: 0;
  }
  .similar-cards-intro {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
    padding-inline: 8px;
  }
  .display-group {
    width: 100%;
    justify-content: center;
  }
  .sort-display-group {
    align-items: center;
    flex-direction: column;
    gap: 5px;
  }
  .display-divider { display: none; }
  .filter-drawer-summary { grid-template-columns: 78px minmax(0, 1fr) auto 22px; }
  .best-for-main-summary { grid-template-columns: 78px minmax(0, 1fr) 22px; }
  .filter-drawer-summary > span,
  .best-for-main-summary > span { min-width: 0; }
  .filter-drawer-summary::after,
  .best-for-main-summary::after { justify-self: end; }
  .sort-status { top: -15px; right: 50%; transform: translateX(50%); margin: 0; }
  .display-cell .chip-row { justify-content: center; }
  .active-tags-cell {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .active-tags-list {
    flex-basis: calc(100% - 62px);
  }
  .active-tags-cell .reset-filters-btn {
    margin-inline: auto;
  }
  .best-for-menu { padding-inline: 34px; }
  .best-for-groups {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .best-for-groups::-webkit-scrollbar { display: none; }
  .best-for-group { min-width: 0; border: 0; border-radius: 0; background: transparent; scroll-snap-align: start; }
  .best-for-group h5 { padding: 0 0 5px; }
  .best-for-group .chip-row { display: flex; flex-wrap: wrap; padding: 0; }
  .best-for-scroll-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 28px;
    height: 36px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
    cursor: pointer;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 850;
    line-height: 1;
    transform: translateY(-50%);
  }
  .best-for-scroll-btn.prev { left: 0; }
  .best-for-scroll-btn.next { right: 0; }
  .active-filter-bar { align-items: flex-start; flex-direction: column; }
  .sticky-filter-bar {
    align-items: center;
    flex-direction: row;
    gap: 7px;
    width: calc(100vw - 18px - env(safe-area-inset-left) - env(safe-area-inset-right));
    border-radius: 16px;
    padding: 8px 9px;
  }
  .sticky-filter-bar > div {
    justify-content: flex-start;
    max-height: 82px;
  }
  .sticky-sort-select-wrap { flex: 0 0 min(42vw, 160px); align-self: center; }
  .control-cell { padding: 9px; }
  .accounts { grid-template-columns: 1fr; }
  .accounts-list {
    gap: 22px;
  }
  .accounts-list .card-flipper {
    height: 132px;
  }
  .accounts-list .box.card-shell.is-expanded .card-flipper {
    height: 360px;
  }
  .accounts-list .card-front {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 10px 42px 34px 10px;
  }
  .accounts-list .hdr {
    grid-column: 1;
    grid-row: 1;
  }
  .accounts-list .summary-grid {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2px;
  }
  .accounts-list .card-front .actions {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .accounts-list .card-front .actions .pill {
    min-width: 74px;
    padding-inline: 10px;
  }
  .accounts-list .card-art {
    width: 72px;
    height: 46px;
    flex-basis: 72px;
  }
  .accounts-list .card-art.portrait {
    width: 36px;
    height: 58px;
    flex-basis: 36px;
  }
  .accounts-list .card-art-placeholder {
    width: 72px;
    height: 46px;
    font-size: 1.25rem;
  }
  .accounts-list .card-back {
    min-height: 0;
    padding: 10px 42px 34px 10px;
  }
  .accounts-list .card-detail-toggle {
    right: 42px;
    bottom: 8px;
  }
  .accounts-list .box.card-shell.is-expanded .why-choose {
    padding-right: 0;
  }
  .accounts-list .card-flipper,
  .accounts-list .box.card-shell.is-expanded .card-flipper {
    height: auto;
  }
  .accounts-list .box.card-shell:not(.is-expanded) .card-front {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "summary";
    gap: 10px;
    padding: 14px 12px 30px 10px;
  }
  .accounts-list .box.card-shell:not(.is-expanded) .summary-grid {
    display: none;
  }
  .accounts-list .box.card-shell:not(.is-expanded) .list-summary {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "earn";
    gap: 8px;
    padding-right: 0;
    font-size: .84rem;
  }
  .accounts-list .box.card-shell:not(.is-expanded) .list-summary-col {
    padding: 0;
  }
  .accounts-list .box.card-shell:not(.is-expanded) .list-earn-col {
    padding: 9px 10px;
    margin-right: 0;
  }
  .accounts-list .box.card-shell:not(.is-expanded) .hdr {
    grid-area: head;
  }
  .accounts-list .box.card-shell:not(.is-expanded) .card-front .actions {
    bottom: -14px;
  }
  .accounts-list .box.card-shell:not(.is-expanded) .card-front .actions .pill {
    min-width: 90px;
    padding: 7px 12px;
    font-size: .8rem;
  }
  .accounts-list .box.card-shell:not(.is-expanded) .card-tools {
    top: -14px;
    right: 10px;
    left: auto;
  }
  .accounts-list .box.card-shell.is-expanded {
    width: 100%;
  }
  .accounts-list .box.card-shell.is-expanded .card-front,
  .accounts-list .box.card-shell.is-expanded .card-back {
    padding: 12px 12px 78px;
  }
  .accounts-list .box.card-shell.is-expanded .hdr {
    padding-right: 0;
  }
  .accounts-list .box.card-shell.is-expanded .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
  }
  .accounts-list .box.card-shell.is-expanded .card-detail-toggle {
    right: 50px;
  }
  .accounts-list .box.card-shell.is-expanded .card-back .card-detail-toggle {
    top: 8px;
    right: 8px;
    bottom: auto;
  }
  .name { padding-right: 74px; }
  .accounts-list .name { padding-right: 0; }
  .summary-grid { grid-template-columns: 1fr; }
  .accounts-list .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .best-for-chip::after { display: none; }
  .offer-card { grid-template-columns: 1fr; }
  .offer-side { grid-template-columns: 1fr; min-width: 0; }
  .quick-review-columns { grid-template-columns: 1fr; gap: 14px; }
  .tutorial-actions { flex-wrap: wrap; }
  .tutorial-actions button { flex: 1 1 88px; }
  .tutorial-actions .feedback-primary { flex: 1 1 160px; }
  .tutorial-coach {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-height: min(52vh, 380px);
    max-height: min(52dvh, 380px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .tutorial-coach::before {
    display: none;
  }
  .tutorial-layer.is-poor-value-selected .tutorial-coach {
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-height: min(46vh, 350px);
    max-height: min(46dvh, 350px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-flipper,
  .card-medal-flipper,
  .card-flip-btn,
  .card-medal,
  .accounts-list .box.card-shell { transition: none; }
  .accounts-list .box.card-shell.is-expanding,
  .accounts-list .box.card-shell.is-collapsing,
  .accounts-list .box.card-shell.is-expanding .hdr,
  .accounts-list .box.card-shell.is-expanding .summary-box,
  .accounts-list .box.card-shell.is-expanding .why-choose,
  .accounts-list .box.card-shell.is-expanding .card-flip-front,
  .accounts-list .box.card-shell.is-collapsing .hdr,
  .accounts-list .box.card-shell.is-collapsing .summary-box { animation: none; }
  .card-flip-front::after { animation: none; opacity: 0; }
}



#card-deals-title a {
  color: #ffab00;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

#card-deals-title a:hover {
  opacity: 0.75;
}

/* hi world */

@media (max-width: 700px) {
  .wrap {
    width: 100%;
    margin: 0 auto;
    padding: 10px max(10px, env(safe-area-inset-left)) 76px max(10px, env(safe-area-inset-right));
  }

  h3 {
    margin-bottom: 3px;
    font-size: 1.08rem;
    line-height: 1.16;
  }

  .sub {
    max-width: 320px;
    margin-bottom: 9px;
    font-size: .78rem;
    line-height: 1.32;
  }

  .header-actions {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 10px;
  }

  .tutorial-entry,
  .header-view-controls {
    grid-row: 1;
  }

  .tutorial-entry {
    grid-column: 1;
    justify-self: start;
  }

  .header-view-controls {
    grid-column: 2;
    justify-self: end;
    gap: 5px;
  }

  .tutorial-label-full { display: none; }
  .tutorial-label-mobile { display: inline; }

  .tutorial-entry-btn {
    min-height: 34px;
    padding: 8px 10px;
    font-size: .72rem;
    white-space: nowrap;
  }

  .header-view-controls .filter-btn {
    min-height: 34px;
    padding: 7px 9px;
    font-size: .72rem;
  }

  .view-mode-btn:not(.active) {
    width: 34px;
    padding-inline: 0;
    font-size: 0;
  }

  .view-mode-btn:not(.active) .view-mode-icon {
    font-size: 1rem;
    transform: translateY(-1px);
  }

  .theme-btn {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 1rem;
  }

  .control-panel {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
  }

  .control-cell {
    border-radius: 8px;
    padding: 10px;
  }

  .filter-drawer-summary,
  .best-for-main-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 10px;
    font-size: .78rem;
  }

  .filter-summary-title {
    width: auto;
    font-size: .88rem;
  }

  .filter-summary-chips,
  .summary-reset-btn {
    display: none;
  }

  .filter-drawer-summary::after,
  .best-for-main-summary::after {
    grid-column: 2;
  }

  .filter-drawer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .banks-cell .chip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .banks-cell .filter-btn {
    justify-content: flex-start;
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px;
    font-size: .74rem;
    text-align: left;
  }

  .banks-cell .filter-btn:first-child {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .bank-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .rewards-cell .chip-row,
  .spend-mode-cell .chip-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .rewards-cell .filter-btn,
  .spend-mode-cell .filter-btn {
    justify-content: center;
    min-height: 34px;
    padding: 6px 8px;
    font-size: .74rem;
  }

  .best-for-cell {
    overflow: hidden;
  }

  .best-for-menu {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .best-for-groups {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 34px 4px;
    scrollbar-width: none;
  }

  .best-for-groups::-webkit-scrollbar { display: none; }

  .best-for-group {
    flex: 0 0 min(290px, calc(100vw - 104px));
    scroll-snap-align: center;
  }

  .best-for-group h5 {
    min-height: 22px;
    justify-content: center;
    padding-bottom: 6px;
    font-size: .7rem;
  }

  .best-for-group .chip-row {
    justify-content: center;
    gap: 7px;
  }

  .best-for-group .filter-btn {
    min-height: 34px;
    padding: 6px 9px;
    font-size: .74rem;
  }

  .best-for-scroll-btn {
    top: 50%;
    display: grid;
    width: 34px;
    height: 48px;
    border-radius: 999px;
    transform: translateY(-50%);
  }

  .display-cell {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding-top: 2px;
  }

  .display-group,
  .sort-display-group,
  .cards-display-group {
    width: 100%;
    justify-content: center;
  }

  .display-cell h4 {
    width: 100%;
    font-size: .72rem;
    text-align: center;
  }

  .display-cell .chip-row {
    justify-content: center;
    gap: 6px;
  }

  .display-cell .filter-btn {
    min-height: 34px;
    padding: 7px 9px;
    font-size: .72rem;
  }

  .sort-status {
    position: static;
    width: 100%;
    text-align: center;
  }

  .filter-advice {
    margin-top: 0;
    border-radius: 8px;
    padding: 10px;
  }

  .filter-advice strong {
    font-size: .86rem;
  }

  .filter-advice span {
    font-size: .76rem;
  }

  .feedback-widget {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(340px, calc(100vw - 20px));
    z-index: 58;
  }

  .feedback-trigger {
    min-width: 0;
    padding: 10px 13px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .20);
    font-size: .78rem;
  }

  .feedback-panel {
    max-height: min(76vh, 620px);
    max-height: min(76dvh, 620px);
    overflow: auto;
  }
}

@media (max-width: 430px) {
  .wrap {
    padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right));
  }

  h3 {
    font-size: .98rem;
  }

  .sub {
    font-size: .74rem;
  }

  .tutorial-entry-btn {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-view-controls .chip-row {
    gap: 3px;
  }

  .header-view-controls .filter-btn,
  .theme-btn {
    min-height: 32px;
  }

  .banks-cell .chip-row {
    grid-template-columns: 1fr 1fr;
  }

  .banks-cell .filter-btn,
  .rewards-cell .filter-btn,
  .spend-mode-cell .filter-btn,
  .best-for-group .filter-btn,
  .display-cell .filter-btn {
    font-size: .7rem;
  }

  .best-for-group {
    flex-basis: min(270px, calc(100vw - 92px));
  }

  .score-pill-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }
}

.mobile-control-panel,
.mobile-scope-switch,
.mobile-reset-row {
  display: none;
}

@media (max-width: 700px) {
  .control-panel {
    display: none;
  }

  .mobile-control-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 12px;
    text-align: left;
  }

  .mobile-control-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
  }

  .mobile-control-tile {
    min-width: 0;
  }

  .mobile-control-tile > summary {
    position: relative;
    display: grid;
    min-height: 84px;
    align-content: space-between;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
    color: var(--text);
    cursor: pointer;
    list-style: none;
    padding: 13px;
    transform: translateY(0) scale(1);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
    user-select: none;
  }

  .mobile-control-tile > summary:active {
    transform: translateY(1px) scale(.975);
    box-shadow: 0 4px 10px rgba(15, 23, 42, .08);
  }

  .mobile-control-tile.is-pressing > summary {
    animation: mobile-tile-press .18s ease both;
  }

  @keyframes mobile-tile-press {
    0% { transform: translateY(0) scale(1); }
    45% { transform: translateY(2px) scale(.955); }
    100% { transform: translateY(-1px) scale(1.015); }
  }

  .mobile-control-tile > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-control-tile > summary::after {
    content: "›";
    position: absolute;
    right: 13px;
    top: 12px;
    color: #94a3b8;
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1;
  }

  .mobile-control-tile > summary > span {
    display: block;
    padding-right: 20px;
    color: #334155;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .mobile-control-tile > summary strong {
    display: -webkit-box;
    color: var(--text);
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.22;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mobile-control-tile > summary strong .spend-mode-icon {
    width: 1.05em;
    height: 1.05em;
    vertical-align: -.14em;
  }

  .mobile-control-tile > summary strong.mobile-summary-visual {
    display: block;
    overflow: visible;
    line-height: 1;
    -webkit-line-clamp: initial;
  }

  .mobile-summary-icons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    overflow: hidden;
  }

  .mobile-summary-icon,
  .mobile-summary-more {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1;
  }

  .mobile-summary-more {
    background: rgba(15, 23, 42, .06);
    color: var(--muted);
    font-family: inherit;
    font-size: .72rem;
  }

  .mobile-summary-img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 6px;
  }

  .mobile-banks-tile .mobile-summary-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border: 0;
    background: transparent;
  }

  .mobile-banks-tile .mobile-summary-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 5px 10px rgba(15, 23, 42, .08);
  }

  .mobile-control-tile[open] > summary {
    border-color: rgba(245, 158, 11, .52);
    background: rgba(255, 251, 235, .94);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, .12) inset;
    animation: mobile-tile-pop .2s ease both;
  }

  @keyframes mobile-tile-pop {
    0% { transform: translateY(1px) scale(.975); }
    62% { transform: translateY(-1px) scale(1.018); }
    100% { transform: translateY(0) scale(1); }
  }

  .mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--bg);
    color: var(--text);
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    overflow: auto;
    overscroll-behavior: contain;
    text-align: left;
    animation: mobile-panel-enter .18s ease both;
  }

  @keyframes mobile-panel-enter {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  .mobile-panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: calc(-1 * max(14px, env(safe-area-inset-top))) calc(-1 * max(14px, env(safe-area-inset-right))) 0 calc(-1 * max(14px, env(safe-area-inset-left)));
    border-bottom: 0;
    background: rgba(255, 255, 255, .96);
    padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 12px max(14px, env(safe-area-inset-left));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .mobile-panel-head span {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
  }

  .mobile-panel-close {
    display: grid;
    place-items: center;
    align-self: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: 0;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-panel-close::before {
    content: "×";
    display: block;
    font-size: 1.45rem;
    line-height: 1;
    transform: translateY(-1px);
  }

  .mobile-panel .control-cell {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  .mobile-panel .control-cell h4 {
    margin: 0 0 9px;
    color: #64748b;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .mobile-panel .banks-cell .chip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-panel .banks-cell .filter-btn {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 70px;
    align-items: center;
    justify-content: start;
    gap: 10px;
    border-color: rgba(148, 163, 184, .28);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    color: var(--text);
    font-size: .82rem;
    font-weight: 850;
    text-align: left;
  }

  .mobile-panel .banks-cell .filter-btn:first-child {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    min-height: 48px;
    justify-items: center;
    text-align: center;
  }

  .mobile-panel .banks-cell .filter-btn.active {
    border-color: rgba(245, 158, 11, .58);
    background: #f59e0b;
    color: #111;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, .12) inset;
  }

  .mobile-panel .bank-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 8px;
  }

  .mobile-panel .rewards-cell,
  .mobile-panel .spend-cell,
  .mobile-panel .mobile-sort-cell {
    display: grid;
    gap: 10px;
  }

  .mobile-panel .rewards-cell + .spend-cell {
    margin-top: 6px;
  }

  .mobile-panel .rewards-cell .chip-row,
  .mobile-panel .spend-cell .chip-row,
  .mobile-panel .mobile-sort-cell .chip-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .mobile-panel .rewards-cell .filter-btn,
  .mobile-panel .spend-cell .filter-btn,
  .mobile-panel .mobile-sort-option {
    justify-content: space-between;
    min-height: 48px;
    border-color: rgba(148, 163, 184, .28);
    border-radius: 8px;
    background: #fff;
    padding: 12px 13px;
    color: var(--text);
    font-size: .88rem;
    font-weight: 850;
  }

  .mobile-panel .spend-cell .filter-btn {
    justify-content: flex-start;
  }

  .mobile-panel .rewards-cell .filter-btn.active::after,
  .mobile-panel .spend-cell .filter-btn.active::after,
  .mobile-panel .mobile-sort-option.active::after {
    content: "✓";
    margin-left: auto;
    font-weight: 950;
  }

  .mobile-best-for-tile .best-for-cell {
    display: block;
    overflow: visible;
  }

  .mobile-best-for-tile .best-for-main-summary {
    display: none;
  }

  .mobile-best-for-tile .best-for-menu {
    margin: 0;
    padding: 0;
  }

  .mobile-best-for-tile .best-for-scroll-btn {
    display: none;
  }

  .mobile-best-for-tile .best-for-groups {
    display: block;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .mobile-best-for-tile .best-for-group {
    min-width: 0;
    border: 0;
    scroll-snap-align: none;
  }

  .mobile-best-for-tile .best-for-group + .best-for-group {
    margin-top: 24px;
  }

  .mobile-best-for-tile .best-for-group:first-child {
    margin-top: 14px;
    padding-top: 0;
  }

  .mobile-best-for-tile .best-for-group h5 {
    justify-content: flex-start;
    min-height: 0;
    margin-bottom: 11px;
    padding-bottom: 9px;
    font-size: .74rem;
  }

  .mobile-best-for-tile .best-for-group .chip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
  }

  .mobile-best-for-tile .best-for-group .filter-btn {
    justify-content: center;
    min-height: 46px;
    border-color: rgba(148, 163, 184, .28);
    border-radius: 8px;
    background: #fff;
    padding: 9px;
    color: var(--text);
    font-size: .82rem;
    font-weight: 850;
    text-align: center;
  }

  .mobile-best-for-tile .best-for-group .filter-btn.active,
  .mobile-panel .rewards-cell .filter-btn.active,
  .mobile-panel .spend-cell .filter-btn.active,
  .mobile-panel .mobile-sort-option.active {
    border-color: rgba(245, 158, 11, .58);
    background: #f59e0b;
    color: #111;
  }

  :host([data-theme="dark"]) .mobile-control-tile > summary {
    border-color: rgba(51, 65, 85, .92);
    background: rgba(15, 23, 42, .92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
    color: var(--text);
  }

  :host([data-theme="dark"]) .mobile-control-tile > summary::after,
  :host([data-theme="dark"]) .mobile-control-tile > summary > span {
    color: #94a3b8;
  }

  :host([data-theme="dark"]) .mobile-control-tile[open] > summary {
    border-color: rgba(245, 158, 11, .58);
    background: rgba(120, 53, 15, .34);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, .16) inset;
  }

  :host([data-theme="dark"]) .mobile-summary-icon,
  :host([data-theme="dark"]) .mobile-summary-more {
    border-color: rgba(51, 65, 85, .92);
    background: rgba(30, 41, 59, .82);
    color: var(--text);
  }

  :host([data-theme="dark"]) .mobile-banks-tile .mobile-summary-icon {
    background: transparent;
  }

  :host([data-theme="dark"]) .mobile-banks-tile .mobile-summary-img {
    box-shadow: 0 0 0 1px rgba(148, 163, 184, .18), 0 8px 18px rgba(0, 0, 0, .24);
  }

  :host([data-theme="dark"]) .mobile-panel-head {
    background: rgba(11, 18, 32, .96);
  }

  :host([data-theme="dark"]) .mobile-panel-close {
    border-color: rgba(51, 65, 85, .92);
    background: rgba(15, 23, 42, .92);
    color: var(--text);
  }

  :host([data-theme="dark"]) .mobile-panel .control-cell h4,
  :host([data-theme="dark"]) .mobile-best-for-tile .best-for-group h5 {
    color: #94a3b8;
  }

  :host([data-theme="dark"]) .mobile-panel .banks-cell .filter-btn,
  :host([data-theme="dark"]) .mobile-panel .rewards-cell .filter-btn,
  :host([data-theme="dark"]) .mobile-panel .spend-cell .filter-btn,
  :host([data-theme="dark"]) .mobile-panel .mobile-sort-option,
  :host([data-theme="dark"]) .mobile-best-for-tile .best-for-group .filter-btn {
    border-color: rgba(51, 65, 85, .92);
    background: rgba(15, 23, 42, .92);
    color: var(--text);
  }

  :host([data-theme="dark"]) .mobile-panel .banks-cell .filter-btn.active,
  :host([data-theme="dark"]) .mobile-best-for-tile .best-for-group .filter-btn.active,
  :host([data-theme="dark"]) .mobile-panel .rewards-cell .filter-btn.active,
  :host([data-theme="dark"]) .mobile-panel .spend-cell .filter-btn.active,
  :host([data-theme="dark"]) .mobile-panel .mobile-sort-option.active {
    border-color: rgba(245, 158, 11, .62);
    background: #f59e0b;
    color: #111;
  }

  .mobile-scope-switch {
    display: block;
    max-width: 900px;
    margin: 0 auto 12px;
  }

  .mobile-reset-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: -2px auto 10px;
  }

  .mobile-reset-all {
    min-height: 34px;
    border: 1px solid rgba(148, 163, 184, .34);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1;
    padding: 8px 13px;
  }

  .mobile-reset-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-reset-row .view-toggle-btn,
  .mobile-reset-row .theme-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    min-height: 34px;
  }

  .mobile-reset-row .view-toggle-btn span,
  .mobile-reset-row .theme-icon {
    font-size: 1.05rem;
    line-height: 1;
  }

  .mobile-reset-row .view-toggle-btn span {
    transform: translateY(-1px);
  }

  .mobile-reset-all:hover,
  .mobile-reset-all:focus {
    border-color: rgba(37, 99, 235, .28);
    background: rgba(219, 234, 254, .78);
    color: var(--link-hover);
  }

  .mobile-reset-all[aria-disabled="true"] {
    cursor: default;
    opacity: .42;
  }

  .mobile-scope-switch .chip-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .mobile-scope-switch .filter-btn {
    justify-content: center;
    min-height: 38px;
    border-color: rgba(148, 163, 184, .28);
    background: #fff;
    padding: 8px 6px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 850;
    text-align: center;
  }

  .mobile-scope-switch .filter-btn.active {
    border-color: rgba(245, 158, 11, .58);
    background: #f59e0b;
    color: #111;
  }

  :host([data-theme="dark"]) .mobile-reset-all,
  :host([data-theme="dark"]) .mobile-scope-switch .filter-btn {
    border-color: rgba(51, 65, 85, .92);
    background: rgba(15, 23, 42, .92);
    color: var(--muted);
  }

  :host([data-theme="dark"]) .mobile-reset-all:hover,
  :host([data-theme="dark"]) .mobile-reset-all:focus {
    border-color: rgba(96, 165, 250, .34);
    background: rgba(30, 58, 138, .32);
    color: var(--link-hover);
  }

  :host([data-theme="dark"]) .mobile-scope-switch .filter-btn.active {
    border-color: rgba(245, 158, 11, .62);
    background: #f59e0b;
    color: #111;
  }
}

@media (max-width: 430px) {
  .mobile-control-panel {
    gap: 8px;
  }

  .mobile-control-tile > summary {
    min-height: 78px;
    padding: 11px;
  }

  .mobile-control-tile > summary > span {
    font-size: .68rem;
  }

  .mobile-control-tile > summary strong {
    font-size: .82rem;
  }

  .mobile-summary-icons {
    gap: 4px;
    min-height: 28px;
  }

  .mobile-summary-icon,
  .mobile-summary-more {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: .96rem;
  }

  .mobile-summary-img {
    width: 21px;
    height: 21px;
  }

  .mobile-banks-tile .mobile-summary-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .mobile-banks-tile .mobile-summary-img {
    width: 26px;
    height: 26px;
  }

  .mobile-panel .banks-cell .filter-btn {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 64px;
    gap: 8px;
    font-size: .76rem;
  }

  .mobile-panel .bank-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .mobile-best-for-tile .best-for-group .chip-row {
    grid-template-columns: 1fr;
  }
}
