#dpf-root.finder-redesign {
  --finder-ink: #30343f;
  --finder-muted: #6b7280;
  --finder-accent: #273469;
  --finder-accent-strong: #1e2749;
  --finder-border: #e4d9ff;
  --finder-surface: #fafaff;
  --finder-radius: 9px;
  color: var(--finder-ink);
}

#dpf-root.finder-redesign,
#dpf-root.finder-redesign * {
  font-family: "Finlandica", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

#dpf-root.finder-redesign .finder-page-title,
#dpf-root.finder-redesign h1.sr-only {
  display: block !important;
  position: relative;
  width: auto !important;
  height: auto !important;
  min-height: 2.4rem;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 0 !important;
  color: var(--finder-ink) !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

#dpf-root.finder-redesign .finder-page-title.retro-title {
  width: max-content !important;
  max-width: 100%;
  margin-inline: auto !important;
  padding: 0 !important;
  color: #273469 !important;
  letter-spacing: .025em;
}

#dpf-root.finder-redesign .finder-title-gradient {
  display: inline-block;
  background-image: linear-gradient(100deg, #273469 0%, #30343f 52%, #273469 100%);
  background-size: 100% 100%;
  background-position: 50% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  text-shadow: 2px 2px 0 rgba(236, 72, 153, .28), 4px 4px 0 rgba(14, 165, 233, .2);
}

@media (hover: hover) {
  #dpf-root.finder-redesign .finder-page-title.retro-title:hover .finder-title-gradient {
    background-image: linear-gradient(100deg, #273469 0%, #30343f 52%, #1e2749 100%);
    background-size: 200% 100%;
    animation: finder-title-gradient-flow 1.4s ease-in-out infinite alternate;
    text-shadow: 2px 2px 0 rgba(14, 165, 233, .45), 4px 4px 0 rgba(236, 72, 153, .35);
  }
}

html[data-theme="dark"] #dpf-root.finder-redesign .finder-page-title.retro-title {
  color: #e4d9ff !important;
}

html[data-theme="dark"] #dpf-root.finder-redesign .finder-title-gradient {
  background-image: linear-gradient(100deg, #e4d9ff 0%, #fafaff 52%, #e4d9ff 100%);
}

@media (hover: hover) {
  html[data-theme="dark"] #dpf-root.finder-redesign .finder-page-title.retro-title:hover .finder-title-gradient {
    background-image: linear-gradient(100deg, #e4d9ff 0%, #fafaff 52%, #273469 100%);
    background-size: 200% 100%;
    animation: finder-title-gradient-flow 1.4s ease-in-out infinite alternate;
    text-shadow: 2px 2px 0 rgba(56, 189, 248, .5), 4px 4px 0 rgba(244, 114, 182, .42);
  }
}

@keyframes finder-title-gradient-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  #dpf-root.finder-redesign .finder-page-title.retro-title:hover .finder-title-gradient {
    animation: none;
  }
}

#dpf-root.finder-redesign .container {
  max-width: 1440px !important;
  padding: clamp(1rem, 3vw, 2.5rem) !important;
  background: #fafaff !important;
  color: var(--finder-ink);
}

#dpf-root.finder-redesign #mainContent { max-width: none; padding: 0; }

#dpf-root.finder-redesign .finder-control-panel {
  padding: clamp(1rem, 2vw, 1.5rem) !important;
  border: 1px solid var(--finder-border);
  border-radius: 12px;
  background: var(--finder-surface) !important;
  box-shadow: none !important;
}

body.dpf-embedded #dpf-root.finder-redesign .container {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding: .5rem .75rem !important;
  box-sizing: border-box;
}

#dpf-root.finder-redesign .controls-wrapper { gap: .9rem; }
#dpf-root.finder-redesign .controls-top { gap: .75rem; }

#dpf-root.finder-redesign .result-count {
  color: var(--finder-ink);
  background: #fafaff;
  border: 1px solid var(--finder-border);
  border-radius: 7px;
  box-shadow: none;
}

#dpf-root.finder-redesign #featureSearch {
  border: 1px solid #e4d9ff;
  border-radius: var(--finder-radius);
  background-color: #fff;
  box-shadow: none;
  transform: none;
}

#dpf-root.finder-redesign #searchInput {
  border: 1px solid #e4d9ff;
  border-radius: var(--finder-radius);
  background-color: #fff;
  box-shadow: none;
}

#dpf-root.finder-redesign #featureSearch:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
#dpf-root.finder-redesign #searchInput:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
#dpf-root.finder-redesign .search-hint { color: var(--finder-muted); }
#dpf-root.finder-redesign #priceSliderContainer { border-radius: 8px; box-shadow: none; }
#dpf-root.finder-redesign .quick-filter-label { color: var(--finder-muted); }
#dpf-root.finder-redesign .quick-filter-btn { border-radius: 7px; box-shadow: none; }

#dpf-root.finder-redesign .filter-toggle,
#dpf-root.finder-redesign #themeToggle {
  border-radius: 7px;
  color: var(--finder-accent);
  border-color: #e4d9ff;
  box-shadow: none;
}

#dpf-root.finder-redesign .filter-toggle:hover,
#dpf-root.finder-redesign #themeToggle:hover {
  background: #fafaff;
  box-shadow: none;
  transform: none;
}

#dpf-root.finder-redesign .filters-actions .filter-toggle {
  min-height: 42px;
  padding: .55rem .9rem;
  border: 1px solid #e4d9ff;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

#dpf-root.finder-redesign .filters-actions .filter-toggle:hover {
  border-color: #e4d9ff;
  background: #fafaff;
  color: #273469;
  box-shadow: none;
  transform: none;
}

#dpf-root.finder-redesign #toggleFiltersBtn[aria-pressed="true"] {
  border-color: #273469;
  background: #273469;
  color: #fff;
}

#dpf-root.finder-redesign #sortPriceBtn[aria-pressed="true"] {
  border-color: #e4d9ff;
  background: #fafaff;
  color: #273469;
}

#dpf-root.finder-redesign #filterCategories button {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff;
  color: #b91c1c;
  font-size: .9rem;
  box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease;
}

#dpf-root.finder-redesign #filterCategories button:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
  box-shadow: none;
  transform: none;
}

#dpf-root.finder-redesign .mobile-advanced-toggle {
  border-color: #e4d9ff;
  border-radius: 8px;
  background: #fafaff;
  color: #273469;
  font-family: "Finlandica", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: .9rem;
}

#dpf-root.finder-redesign .mobile-advanced-checkbox:checked + .mobile-advanced-toggle {
  border-color: #273469;
  background: #fafaff;
}

#dpf-root.finder-redesign #phoneShowcase,
#dpf-root.finder-redesign #phoneCardsContainer { gap: 1rem; }
#dpf-root.finder-redesign #phoneShowcase .phone-card > div:first-child,
#dpf-root.finder-redesign #phoneCardsContainer .aspect-398-219 {
  background-color: #fff !important;
}
#dpf-root.finder-redesign #phoneShowcase .phone-card,
#dpf-root.finder-redesign #phoneShowcase > *,
#dpf-root.finder-redesign #phoneCardsContainer .phone-card,
#dpf-root.finder-redesign #phoneCardsContainer > * {
  border: 1px solid var(--finder-border);
  border-radius: var(--finder-radius);
  box-shadow: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

#dpf-root.finder-redesign #phoneShowcase .phone-card:hover,
#dpf-root.finder-redesign #phoneShowcase > *:hover,
#dpf-root.finder-redesign #phoneCardsContainer .phone-card:hover,
#dpf-root.finder-redesign #phoneCardsContainer > *:hover {
  border-color: #e4d9ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .1);
  transform: translateY(-3px) !important;
}

#dpf-root.finder-redesign #searchResults > div {
  padding: .75rem 1rem;
  border-color: var(--finder-border);
  border-radius: 7px;
  cursor: pointer;
}

#dpf-root.finder-redesign #searchResults > div:hover {
  background: #fafaff;
}

#dpf-root.finder-redesign #dataContainer {
  color: var(--finder-muted);
  font-size: .95rem;
}

html[data-theme="dark"] #dpf-root.finder-redesign .container { background: #1e2749 !important; color: #fafaff; }
html[data-theme="dark"] #dpf-root.finder-redesign .finder-control-panel { background: #1e2749 !important; border-color: #3b4466; }
html[data-theme="dark"] #dpf-root.finder-redesign .finder-page-title,
html[data-theme="dark"] #dpf-root.finder-redesign h1.sr-only { color: #fafaff !important; }
html[data-theme="dark"] #dpf-root.finder-redesign .result-count {
  color: #e4d9ff !important;
  background: #273469;
  border-color: #273469;
}
html[data-theme="dark"] #dpf-root.finder-redesign #searchInput {
  background-color: rgba(2, 6, 23, 0.62) !important;
  border-color: rgba(125, 211, 252, 0.26) !important;
  color: #fafaff !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign .filters-actions .filter-toggle {
  border-color: #30343f !important;
  background: #273469 !important;
  color: #e4d9ff !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign .filters-actions .filter-toggle:hover {
  border-color: #e4d9ff !important;
  background: #273469 !important;
  color: #fff !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign #toggleFiltersBtn[aria-pressed="true"] {
  border-color: #273469 !important;
  background: #273469 !important;
  color: #fff !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign .mobile-advanced-toggle {
  border-color: #30343f;
  background: #273469;
  color: #e4d9ff;
}
html[data-theme="dark"] #dpf-root.finder-redesign .mobile-advanced-checkbox:checked + .mobile-advanced-toggle {
  border-color: #e4d9ff;
  background: #273469;
  color: #fff;
}
html[data-theme="dark"] #dpf-root.finder-redesign #filterCategories button {
  border-color: #7f3b46;
  background: #3a252b;
  color: #fecaca;
}
html[data-theme="dark"] #dpf-root.finder-redesign #filterCategories button:hover {
  background: #542a33;
}
html[data-theme="dark"] #dpf-root.finder-redesign #searchResults > div:hover { background: #273469; }
html[data-theme="dark"] #dpf-root.finder-redesign #dataContainer { color: #e4d9ff; }

/* =========================
   Phase 1: result summary, applied filters, empty/error states
   ========================= */
#dpf-root.finder-redesign #filterResultCount {
  width: fit-content;
  margin: 0 auto .75rem;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
}

#dpf-root.finder-redesign .active-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1rem;
  padding: .65rem .75rem;
  border: 1px solid var(--finder-border);
  border-radius: 10px;
  background: #fafaff;
}
#dpf-root.finder-redesign .active-filter-bar[hidden] { display: none; }
#dpf-root.finder-redesign .active-filter-label {
  margin-right: .15rem;
  color: var(--finder-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#dpf-root.finder-redesign .active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 34px;
  padding: .35rem .6rem;
  border: 1px solid #e4d9ff;
  border-radius: 999px;
  background: #fafaff;
  color: #273469;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
#dpf-root.finder-redesign .active-filter-chip:hover {
  border-color: #e4d9ff;
  background: #e4d9ff;
}
#dpf-root.finder-redesign .active-filter-chip-x {
  font-size: 1rem;
  line-height: 1;
}
#dpf-root.finder-redesign .clear-all-filters {
  min-height: 34px;
  padding: .35rem .6rem;
  border: 1px solid #e4d9ff;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
#dpf-root.finder-redesign .clear-all-filters:hover {
  border-color: #94a3b8;
  background: #fafaff;
  color: #30343f;
}

#dpf-root.finder-redesign .finder-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border: 1px solid #e4d9ff;
  border-radius: 10px;
  background: #fafaff;
  color: #273469;
}
#dpf-root.finder-redesign .finder-status[hidden] { display: none; }
#dpf-root.finder-redesign .finder-status--warning {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}
#dpf-root.finder-redesign .finder-status--error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}
#dpf-root.finder-redesign .finder-status h3 {
  margin: 0 0 .15rem;
  font-size: .95rem;
  font-weight: 700;
}
#dpf-root.finder-redesign .finder-status p {
  margin: 0;
  font-size: .85rem;
}
#dpf-root.finder-redesign .finder-status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
#dpf-root.finder-redesign .finder-status-action,
#dpf-root.finder-redesign .finder-status-link {
  min-height: 36px;
  padding: .4rem .7rem;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

#dpf-root.finder-redesign .finder-empty {
  grid-column: 1 / -1;
  width: 100%;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px dashed #e4d9ff;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
#dpf-root.finder-redesign .finder-empty h3 {
  margin: 0 0 .4rem;
  font-size: 1.15rem;
  font-weight: 700;
}
#dpf-root.finder-redesign .finder-empty p {
  max-width: 42rem;
  margin: 0 auto .9rem;
  color: var(--finder-muted);
  font-size: .9rem;
}
#dpf-root.finder-redesign .finder-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .9rem;
}
#dpf-root.finder-redesign .empty-recovery-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 40px;
  padding: .45rem .7rem;
  border: 1px solid #e4d9ff;
  border-radius: 8px;
  background: #fafaff;
  color: #273469;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
#dpf-root.finder-redesign .empty-recovery-btn:hover {
  border-color: #e4d9ff;
  background: #fafaff;
}
#dpf-root.finder-redesign .empty-recovery-gain {
  color: #0f766e;
  font-weight: 700;
}

#dpf-root.finder-redesign .facet-count {
  margin-left: auto;
  color: var(--finder-muted);
  font-size: .76rem;
  font-weight: 600;
}
#dpf-root.finder-redesign #checkboxFilters label {
  align-items: center;
  min-height: 34px;
}
#dpf-root.finder-redesign #checkboxFilters label.is-unavailable {
  opacity: .42;
  cursor: not-allowed;
}
#dpf-root.finder-redesign #checkboxFilters fieldset {
  min-width: 0;
  border: 0;
}
#dpf-root.finder-redesign #checkboxFilters legend {
  padding: 0;
}

/* =========================
   Phase 1: calmer card anatomy
   ========================= */
#dpf-root.finder-redesign #phoneShowcase .phone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
  background: #fff !important;
  cursor: pointer;
}
#dpf-root.finder-redesign .card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: 1rem;
  background: #fafaff;
}
#dpf-root.finder-redesign .card-media .card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  #dpf-root.finder-redesign .card-media .card-image {
    object-fit: contain;
  }
}
#dpf-root.finder-redesign .card-media.is-missing::after {
  content: attr(data-initials);
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e4d9ff;
  color: #475569;
  font-size: 1.1rem;
  font-weight: 700;
}
#dpf-root.finder-redesign .card-tag {
  position: absolute;
  top: .6rem;
  left: .6rem;
  z-index: 2;
  padding: .18rem .45rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
#dpf-root.finder-redesign .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: .9rem 1rem 1rem;
}
#dpf-root.finder-redesign .card-eyebrow {
  margin: 0 0 .25rem;
  overflow: hidden;
  color: var(--finder-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
#dpf-root.finder-redesign .card-title {
  min-height: 2.5em;
  margin: 0 0 .4rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}
#dpf-root.finder-redesign .card-title-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
#dpf-root.finder-redesign .card-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#dpf-root.finder-redesign .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
#dpf-root.finder-redesign .phone-card:focus-within {
  outline: 2px solid #273469;
  outline-offset: 2px;
}
#dpf-root.finder-redesign .card-price {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin: 0 0 .25rem;
}
#dpf-root.finder-redesign .card-price-main {
  color: #15803d;
  font-size: 1.08rem;
  font-weight: 700;
}
#dpf-root.finder-redesign .card-price-note {
  color: var(--finder-muted);
  font-size: .72rem;
}
#dpf-root.finder-redesign .card-score {
  margin: 0 0 .5rem;
  color: var(--finder-muted);
  font-size: .76rem;
}
#dpf-root.finder-redesign .card-score-value {
  color: var(--finder-ink);
  font-weight: 700;
}
#dpf-root.finder-redesign .card-signals {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .85rem;
  margin: 0 0 .75rem;
}
#dpf-root.finder-redesign .card-signal {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--finder-muted);
  font-size: .72rem;
}
#dpf-root.finder-redesign .card-signal-label {
  font-weight: 700;
}
#dpf-root.finder-redesign .signal-meter {
  display: inline-block;
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e calc(var(--score, 0) * 20%), #e4d9ff 0);
}
#dpf-root.finder-redesign .card-signal-value {
  color: var(--finder-ink);
  font-weight: 700;
}
#dpf-root.finder-redesign .card-actions {
  position: relative;
  z-index: 2;
  margin-top: auto;
}
#dpf-root.finder-redesign .card-actions .btn-buy {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 40px;
}
#dpf-root.finder-redesign .dpf-compare-add {
  position: relative;
  z-index: 2;
}

html[data-theme="dark"] #dpf-root.finder-redesign .active-filter-bar {
  border-color: #3b4466;
  background: #1e2749;
}
html[data-theme="dark"] #dpf-root.finder-redesign .active-filter-chip {
  border-color: #273469;
  background: #273469;
  color: #e4d9ff;
}
html[data-theme="dark"] #dpf-root.finder-redesign .active-filter-chip:hover {
  background: #273469;
}
html[data-theme="dark"] #dpf-root.finder-redesign .clear-all-filters {
  border-color: #30343f;
  background: #273469;
  color: #e4d9ff;
}
html[data-theme="dark"] #dpf-root.finder-redesign .finder-status {
  border-color: #273469;
  background: #273469;
  color: #e4d9ff;
}
html[data-theme="dark"] #dpf-root.finder-redesign .finder-status--warning {
  border-color: #92400e;
  background: #3a2a12;
  color: #fde68a;
}
html[data-theme="dark"] #dpf-root.finder-redesign .finder-status--error {
  border-color: #7f1d1d;
  background: #3a1d1d;
  color: #fecaca;
}
html[data-theme="dark"] #dpf-root.finder-redesign .finder-status-action,
html[data-theme="dark"] #dpf-root.finder-redesign .finder-status-link {
  background: #1e2749;
}
html[data-theme="dark"] #dpf-root.finder-redesign .finder-empty {
  border-color: #4b5563;
  background: #1e2749;
}
html[data-theme="dark"] #dpf-root.finder-redesign .empty-recovery-btn {
  border-color: #273469;
  background: #273469;
  color: #e4d9ff;
}
html[data-theme="dark"] #dpf-root.finder-redesign #phoneShowcase .phone-card {
  background: #1e2749 !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign .card-media {
  background: #30343f;
}
html[data-theme="dark"] #dpf-root.finder-redesign .card-tag {
  background: #064e3b;
  color: #a7f3d0;
}
html[data-theme="dark"] #dpf-root.finder-redesign .card-price-main,
html[data-theme="dark"] #dpf-root.finder-redesign .modal-price-main {
  color: #86efac;
}

@media (prefers-reduced-motion: reduce) {
  #dpf-root.finder-redesign .phone-card,
  #dpf-root.finder-redesign .phone-card:hover {
    transform: none !important;
    transition: none !important;
  }
}

/* =========================
   Phase 2: layout, sidebar, mobile filter sheet
   ========================= */
#dpf-root.finder-redesign .finder-layout {
  align-items: flex-start;
  gap: 1.5rem;
}
#dpf-root.finder-redesign #sidebar {
  position: sticky;
  top: 1rem;
  flex: 0 0 300px;
  width: 300px;
  max-height: calc(100vh - 2rem);
  padding: 1rem !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--finder-border);
  border-radius: 12px;
  background: #fff;
}
#dpf-root.finder-redesign #mainContent {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
}
#dpf-root.finder-redesign #questions { display: none !important; }
#dpf-root.finder-redesign .mobile-advanced-toggle,
#dpf-root.finder-redesign .mobile-advanced-checkbox { display: none !important; }

#dpf-root.finder-redesign #checkboxFilters {
  display: block;
}
#dpf-root.finder-redesign .facet-section {
  border-top: 1px solid var(--finder-border);
  padding: .3rem 0;
}
#dpf-root.finder-redesign .facet-section:first-child { border-top: 0; }
#dpf-root.finder-redesign .facet-section summary {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 42px;
  padding: .25rem 0;
  list-style: none;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 700;
}
#dpf-root.finder-redesign .facet-section summary::-webkit-details-marker { display: none; }
#dpf-root.finder-redesign .facet-section summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fafaff;
  color: #273469;
  font-size: .9rem;
  font-weight: 700;
}
#dpf-root.finder-redesign .facet-section[open] summary::before { content: "−"; }
#dpf-root.finder-redesign .facet-section-title { flex: 1 1 auto; }
#dpf-root.finder-redesign .facet-section-badge {
  min-width: 1.45rem;
  padding: .08rem .35rem;
  border-radius: 999px;
  background: #e4d9ff;
  color: #273469;
  font-size: .66rem;
  font-weight: 700;
  text-align: center;
}
#dpf-root.finder-redesign .facet-section-badge:empty { display: none; }
#dpf-root.finder-redesign .facet-section-body { padding: 0 0 .45rem .2rem; }
#dpf-root.finder-redesign #checkboxFilters fieldset {
  margin: 0 0 .55rem;
  padding: .55rem .6rem;
  background: #fafaff;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}
#dpf-root.finder-redesign #checkboxFilters legend {
  padding: 0;
  color: #334155;
  font-size: .82rem;
  font-weight: 700;
}

#dpf-root.finder-redesign .filter-sheet {
  width: min(100%, 560px);
  max-height: 92dvh;
  margin: auto auto 0;
  padding: 0;
  border: 1px solid var(--finder-border);
  border-radius: 16px 16px 0 0;
  background: #fff;
  color: var(--finder-ink);
  box-shadow: 0 -10px 40px rgba(15, 23, 42, .22);
}
#dpf-root.finder-redesign .filter-sheet[open] {
  display: flex;
  flex-direction: column;
}
#dpf-root.finder-redesign .filter-sheet::backdrop {
  background: rgba(15, 23, 42, .55);
}
#dpf-root.finder-redesign .filter-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--finder-border);
}
#dpf-root.finder-redesign .filter-sheet-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
#dpf-root.finder-redesign .filter-sheet-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #e4d9ff;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
#dpf-root.finder-redesign .filter-sheet-body {
  flex: 1 1 auto;
  padding: .75rem 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#dpf-root.finder-redesign .filter-sheet-body #activeCheckboxFilters {
  margin-bottom: .75rem;
}
#dpf-root.finder-redesign .filter-sheet-foot {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: .6rem;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--finder-border);
  background: #fff;
}
#dpf-root.finder-redesign .filter-sheet-apply {
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid #273469;
  border-radius: 9px;
  background: #273469;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1023px) {
  #dpf-root.finder-redesign #sidebar { display: none !important; }
  #dpf-root.finder-redesign #toggleFiltersBtn { display: inline-flex !important; }
}
@media (min-width: 1024px) {
  #dpf-root.finder-redesign .filter-sheet { display: none !important; }
}

html[data-theme="dark"] #dpf-root.finder-redesign #sidebar {
  border-color: #3b4466;
  background: #1e2749;
}
html[data-theme="dark"] #dpf-root.finder-redesign .facet-section { border-color: #3b4466; }
html[data-theme="dark"] #dpf-root.finder-redesign .facet-section summary::before {
  background: #273469;
  color: #e4d9ff;
}
html[data-theme="dark"] #dpf-root.finder-redesign .facet-section-badge {
  background: #273469;
  color: #e4d9ff;
}
html[data-theme="dark"] #dpf-root.finder-redesign #checkboxFilters fieldset {
  border-color: #3b4466;
  background: #30343f;
}
html[data-theme="dark"] #dpf-root.finder-redesign #checkboxFilters legend {
  color: #e4d9ff;
}
html[data-theme="dark"] #dpf-root.finder-redesign .filter-sheet {
  border-color: #3b4466;
  background: #1e2749;
  color: #fafaff;
}
html[data-theme="dark"] #dpf-root.finder-redesign .filter-sheet-head,
html[data-theme="dark"] #dpf-root.finder-redesign .filter-sheet-foot {
  border-color: #3b4466;
  background: #1e2749;
}
html[data-theme="dark"] #dpf-root.finder-redesign .filter-sheet-close {
  border-color: #30343f;
  background: #273469;
  color: #e4d9ff;
}

/* =========================
   Phase 2: detail sheet (the modal is moved to <body>)
   ========================= */
#phoneModal > .bg-white {
  display: flex;
  flex-direction: column;
  width: min(100%, 860px);
  max-width: 860px;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
}
#phoneModal #modalContent {
  flex: 1 1 auto;
  padding: 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#phoneModal #closeModal {
  flex: 0 0 auto;
  margin: 0 1.25rem 1.25rem;
}
.modal-sheet { display: flex; flex-direction: column; }
.modal-sheet-head h2 { margin: 0; }
.modal-eyebrow {
  margin: 0 0 .3rem;
  color: #6b7280;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.modal-cols {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (min-width: 760px) {
  .modal-cols { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
.modal-media {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  background: #fafaff;
}
#phoneModal .modal-image {
  max-width: 100%;
  max-height: 240px;
  margin: 0;
  object-fit: contain;
}
.modal-price-main {
  margin: 0;
  color: #15803d;
  font-size: 1.35rem;
  font-weight: 700;
}
.modal-price-note,
.modal-rating {
  margin: .2rem 0 0;
  color: #6b7280;
  font-size: .82rem;
}
.modal-signals {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: .75rem;
}
.modal-summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
}
.modal-compare-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #273469;
  font-size: .82rem;
  font-weight: 700;
}
.modal-at-glance {
  margin: 1.25rem 0 .5rem;
  padding: 1rem;
  border: 1px solid #e4d9ff;
  border-radius: 12px;
  background: #fafaff;
}
.modal-at-glance h3 {
  margin: 0 0 .6rem;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.modal-at-glance dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem .9rem;
  margin: 0;
}
.modal-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .34rem 0;
  border-bottom: 1px solid #eef2f7;
}
.modal-spec-row:last-child { border-bottom: 0; }
.modal-spec-row dt {
  color: #64748b;
  font-size: .82rem;
  font-weight: 600;
}
.modal-spec-row dd {
  margin: 0;
  color: #30343f;
  font-size: .82rem;
  font-weight: 600;
  text-align: right;
}
.modal-spec-group {
  margin-top: .6rem;
  padding-top: .55rem;
  border-top: 1px solid #e4d9ff;
}
.modal-spec-group summary {
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
}
.modal-spec-group dl {
  display: grid;
  gap: 0;
  margin: .4rem 0 0;
}
.modal-sticky-buy {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem -1.25rem -1.25rem;
  padding: .8rem 1.25rem;
  border-top: 1px solid #e4d9ff;
  background: #fff;
}
.modal-sticky-price {
  color: #15803d;
  font-size: 1.05rem;
  font-weight: 700;
}
html[data-theme="dark"] #phoneModal > .bg-white { background: #1e2749; color: #fafaff; }
html[data-theme="dark"] .modal-eyebrow,
html[data-theme="dark"] .modal-price-note,
html[data-theme="dark"] .modal-rating { color: #9ca3af; }
html[data-theme="dark"] .modal-media,
html[data-theme="dark"] .modal-at-glance {
  border-color: #3b4466;
  background: #30343f;
}
html[data-theme="dark"] .modal-at-glance { border: 1px solid #3b4466; }
html[data-theme="dark"] .modal-spec-row { border-color: #3b4466; }
html[data-theme="dark"] .modal-spec-row dt { color: #9ca3af; }
html[data-theme="dark"] .modal-spec-row dd { color: #fafaff; }
html[data-theme="dark"] .modal-spec-group { border-color: #3b4466; }
html[data-theme="dark"] .modal-sticky-buy {
  border-color: #3b4466;
  background: #1e2749;
}
html[data-theme="dark"] .modal-price-main,
html[data-theme="dark"] .modal-sticky-price { color: #86efac; }

/* The applied-filter bar is the primary summary; avoid duplicating it in the rail. */
#dpf-root.finder-redesign #activeCheckboxFilters { display: none; }

/* Jose's Rating: stars plus the numeric score */
#dpf-root.finder-redesign .card-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .35rem;
}
#dpf-root.finder-redesign .card-score-label {
  color: var(--finder-ink);
  font-weight: 700;
}
#dpf-root.finder-redesign .card-stars,
#phoneModal .modal-stars {
  color: #d97706;
  font-size: .86rem;
  letter-spacing: .02em;
  line-height: 1;
}
#dpf-root.finder-redesign .card-score-value {
  color: var(--finder-muted);
  font-weight: 700;
}
#phoneModal .modal-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .4rem;
}

/* =========================
   Phase 3: rendering, embed, and no-JS polish
   ========================= */
#dpf-root.finder-redesign #phoneShowcase .phone-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
#dpf-root.finder-redesign .finder-noscript {
  grid-column: 1 / -1;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  text-align: center;
}
#dpf-root.finder-redesign .finder-noscript a { color: #92400e; font-weight: 700; }

body.dpf-embedded { position: relative; }
body.dpf-embedded #phoneModal {
  position: absolute !important;
  top: var(--dpf-host-visible-top, 0px);
  right: 0;
  bottom: auto;
  left: 0;
  height: var(--dpf-host-visible-height, 100vh);
}
body.dpf-embedded #phoneModal > .bg-white {
  max-height: calc(var(--dpf-host-visible-height, 100vh) - 1rem);
}
body.dpf-embedded .dpf-compare-bar {
  position: absolute;
  top: calc(var(--dpf-host-visible-top, 0px) + var(--dpf-host-visible-height, 100vh) - 4.75rem);
  right: 1rem;
  bottom: auto;
  left: auto;
}

/* =========================
   Deliberate type and surface system
   ========================= */
#dpf-root.finder-redesign {
  --finder-radius-sm: 2px;
  --finder-radius: 6px;
  --finder-radius-lg: 12px;
  --finder-border: #e4d9ff;
}

#dpf-root.finder-redesign .finder-control-panel,
#dpf-root.finder-redesign #sidebar,
#dpf-root.finder-redesign .phone-card,
#dpf-root.finder-redesign .active-filter-bar,
#dpf-root.finder-redesign .finder-status,
#dpf-root.finder-redesign .finder-empty,
#dpf-root.finder-redesign .modal-at-glance,
#dpf-root.finder-redesign .modal-media,
#dpf-root.finder-redesign .facet-section-body fieldset {
  border-radius: var(--finder-radius) !important;
  box-shadow: none !important;
}

#dpf-root.finder-redesign .filter-sheet {
  border-radius: var(--finder-radius-lg) var(--finder-radius-lg) 0 0 !important;
}

#dpf-root.finder-redesign button,
#dpf-root.finder-redesign .filter-toggle,
#dpf-root.finder-redesign .quick-filter-btn,
#dpf-root.finder-redesign .active-filter-chip,
#dpf-root.finder-redesign .clear-all-filters,
#dpf-root.finder-redesign input:not([type="radio"]):not([type="checkbox"]),
#dpf-root.finder-redesign select,
#dpf-root.finder-redesign .empty-recovery-btn,
#dpf-root.finder-redesign .btn-buy,
#dpf-root.finder-redesign .dpf-compare-add {
  border-radius: var(--finder-radius-sm) !important;
  box-shadow: none !important;
}

#dpf-root.finder-redesign .card-tag,
#dpf-root.finder-redesign .facet-section-badge {
  border-radius: var(--finder-radius-sm) !important;
}

#dpf-root.finder-redesign #phoneShowcase .phone-card,
#dpf-root.finder-redesign #sidebar,
#dpf-root.finder-redesign .finder-control-panel,
#dpf-root.finder-redesign .facet-section {
  border-color: var(--finder-border);
}

#phoneModal:focus,
#phoneModal h2:focus {
  outline: none;
}

/* Keep dialog overlays inside the visible slice of a tall embed.
   Use position:absolute (not fixed): iOS Safari cannot scroll a scrollable
   child that sits inside a position:fixed element, so a fixed sheet body
   becomes unscrollable in the Squarespace embed. */
body.dpf-embedded .filter-sheet {
  position: absolute;
  top: calc(var(--dpf-host-visible-top, 0px) + var(--dpf-host-visible-height, 100vh) - min(calc(var(--dpf-host-visible-height, 100vh) - 1rem), 760px));
  bottom: auto;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-height: calc(var(--dpf-host-visible-height, 100vh) - 1rem);
  transform: none;
}

/* The modal and comparison overlays are moved to <body>; keep the same face. */
#phoneModal,
#phoneModal *,
.dpf-comparison-overlay,
.dpf-comparison-overlay *,
.dpf-compare-bar,
.dpf-compare-bar * {
  font-family: "Finlandica", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Solid ink wordmark: no gradient, shadow, or hover animation. */
#dpf-root.finder-redesign .finder-page-title.retro-title,
#dpf-root.finder-redesign .finder-title-gradient {
  background: none !important;
  color: var(--finder-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  animation: none !important;
}

#dpf-root.finder-redesign .card-tag {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

/* =========================
   Dark-mode token layer
   ========================= */
html[data-theme="dark"] #dpf-root.finder-redesign {
  --finder-ink: #fafaff;
  --finder-muted: #a9b2c8;
  --finder-border: #3b4466;
  --finder-surface: #273469;
  --finder-paper: #1e2749;
}
html[data-theme="dark"] #dpf-root.finder-redesign .finder-title-gradient,
html[data-theme="dark"] #dpf-root.finder-redesign .finder-page-title.retro-title {
  color: var(--finder-ink) !important;
  -webkit-text-fill-color: var(--finder-ink) !important;
  background: none !important;
  text-shadow: none !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign #phoneShowcase .phone-card > div:first-child,
html[data-theme="dark"] #dpf-root.finder-redesign .card-media {
  background-color: #1e2749 !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign .card-signal-value,
html[data-theme="dark"] #dpf-root.finder-redesign .card-score-label,
html[data-theme="dark"] #dpf-root.finder-redesign .card-title,
html[data-theme="dark"] #dpf-root.finder-redesign #checkboxFilters label,
html[data-theme="dark"] #dpf-root.finder-redesign #checkboxFilters legend,
html[data-theme="dark"] #dpf-root.finder-redesign .facet-section summary {
  color: var(--finder-ink) !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign .finder-control-panel,
html[data-theme="dark"] #dpf-root.finder-redesign #sidebar,
html[data-theme="dark"] #dpf-root.finder-redesign .phone-card,
html[data-theme="dark"] #dpf-root.finder-redesign .active-filter-bar,
html[data-theme="dark"] #dpf-root.finder-redesign .finder-status,
html[data-theme="dark"] #dpf-root.finder-redesign .finder-empty,
html[data-theme="dark"] #dpf-root.finder-redesign #checkboxFilters fieldset {
  background: var(--finder-surface) !important;
  border-color: var(--finder-border) !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign .card-price-main {
  color: #86efac;
}

#phoneModal > .bg-white {
  margin: 0 auto;
}

/* =========================
   Material palette, masthead, and control-strip cleanup
   ========================= */
#dpf-root.finder-redesign {
  --finder-paper: #fafaff;
  --finder-surface: #ffffff;
  --finder-media: #e4d9ff;
  --finder-ink: #30343f;
  --finder-muted: #6b7280;
  --finder-border: #e4d9ff;
}
html[data-theme="dark"] #dpf-root.finder-redesign {
  --finder-paper: #1e2749;
  --finder-surface: #273469;
  --finder-media: #30343f;
  --finder-ink: #fafaff;
  --finder-muted: #a9b2c8;
  --finder-border: #3b4466;
}
#dpf-root.finder-redesign .container,
html[data-theme="dark"] #dpf-root.finder-redesign .container {
  background: var(--finder-paper) !important;
}
#dpf-root.finder-redesign .finder-control-panel,
#dpf-root.finder-redesign #sidebar,
#dpf-root.finder-redesign .phone-card,
#dpf-root.finder-redesign .filter-sheet,
#dpf-root.finder-redesign .active-filter-bar,
#dpf-root.finder-redesign .finder-status,
#dpf-root.finder-redesign .finder-empty {
  background: var(--finder-surface) !important;
  border-color: var(--finder-border) !important;
}
#dpf-root.finder-redesign .card-media,
#dpf-root.finder-redesign #phoneShowcase .phone-card > div:first-child,
html[data-theme="dark"] #dpf-root.finder-redesign .card-media,
html[data-theme="dark"] #dpf-root.finder-redesign #phoneShowcase .phone-card > div:first-child {
  background: var(--finder-media) !important;
}
#dpf-root.finder-redesign #checkboxFilters fieldset {
  background: var(--finder-media) !important;
  border-color: var(--finder-border) !important;
}

/* Masthead: wordmark, nav, theme utility */
#dpf-root.finder-redesign [aria-label="Regions"] {
  gap: .9rem;
  margin-top: .35rem;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--finder-border);
}
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link {
  padding: .3rem .1rem !important;
  border: 0 !important;
  background: none !important;
  color: var(--finder-muted) !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
}
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link:hover,
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link[aria-current="page"],
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link.border-b-2 {
  color: var(--finder-ink) !important;
  border-bottom: 1px solid var(--finder-ink) !important;
}
#dpf-root.finder-redesign .finder-masthead-utility {
  display: flex;
  justify-content: flex-end;
  margin: -.25rem 0 .2rem;
}
#dpf-root.finder-redesign .finder-masthead-utility #themeToggle {
  min-height: 30px;
  padding: .2rem .55rem;
  border: 1px solid var(--finder-border);
  border-radius: 2px !important;
  background: transparent;
  color: var(--finder-muted);
  font-size: .74rem;
  font-weight: 600;
  box-shadow: none;
}
#dpf-root.finder-redesign .finder-results-tools {
  display: flex;
  justify-content: flex-end;
  margin: -.35rem 0 .65rem;
}
#dpf-root.finder-redesign .finder-results-tools #shareFiltersBtn {
  min-height: 26px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--finder-muted);
  font-size: .76rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

/* Plain result count, not a dashboard pill */
#dpf-root.finder-redesign #filterResultCount {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--finder-muted);
  font-size: .8rem;
  font-weight: 600;
  box-shadow: none;
}

/* Flat, ink budget control */
#dpf-root.finder-redesign .controls-wrapper {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#dpf-root.finder-redesign #priceSliderContainer {
  min-width: 220px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#dpf-root.finder-redesign #priceSliderContainer label {
  color: var(--finder-muted);
  font-size: .68rem;
  letter-spacing: .06em;
}
#dpf-root.finder-redesign #priceCurrent {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--finder-ink);
  font-size: .82rem;
  font-weight: 700;
}
#dpf-root.finder-redesign #priceSlider {
  height: 4px;
  background: linear-gradient(90deg, var(--finder-ink) var(--slider-progress, 100%), var(--finder-border) var(--slider-progress, 100%));
  border-radius: 2px;
}
#dpf-root.finder-redesign #priceSlider::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--finder-ink);
  background: var(--finder-surface);
  box-shadow: none;
}
#dpf-root.finder-redesign #priceSlider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--finder-ink);
  background: var(--finder-surface);
  box-shadow: none;
}
#dpf-root.finder-redesign #priceSlider::-moz-range-track {
  height: 4px;
  background: var(--finder-border);
}
[data-theme="dark"] #dpf-root.finder-redesign #priceSliderContainer {
  background: transparent !important;
  border-color: transparent !important;
}

/* Stillness: no entrance motion or hover lifts */
#dpf-root.finder-redesign #phoneShowcase .phone-card,
#dpf-root.finder-redesign #phoneShowcase .phone-card:hover,
#dpf-root.finder-redesign #phoneShowcase > *,
#dpf-root.finder-redesign #phoneShowcase > *:hover,
#dpf-root.finder-redesign .filters-actions,
#dpf-root.finder-redesign .filter-toggle,
#dpf-root.finder-redesign .filter-toggle:hover,
#dpf-root.finder-redesign .quick-filter-btn,
#dpf-root.finder-redesign .quick-filter-btn:hover,
#dpf-root.finder-redesign .btn:hover {
  animation: none !important;
  transform: none !important;
}

#dpf-root.finder-redesign .finder-wordmark {
  display: block;
  margin: 0 0 .35rem;
  color: var(--finder-ink);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

#dpf-root.finder-redesign .comparison-page .finder-page-title {
  min-height: 0;
  margin: .45rem 0 .5rem !important;
  font-size: 1.45rem !important;
}

/* Keep status semantics after the material surface override. */
#dpf-root.finder-redesign .finder-status--warning {
  border-color: #fcd34d !important;
  background: #fffbeb !important;
  color: #92400e !important;
}
#dpf-root.finder-redesign .finder-status--error {
  border-color: #fca5a5 !important;
  background: #fef2f2 !important;
  color: #991b1b !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign .finder-status--warning {
  border-color: #92400e !important;
  background: #3a2a12 !important;
  color: #fde68a !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign .finder-status--error {
  border-color: #7f1d1d !important;
  background: #3a1d1d !important;
  color: #fecaca !important;
}

#dpf-root.finder-redesign .filter-sheet-body #activeCheckboxFilters {
  /* The sheet renders the same chips as the applied-filter bar, so the legacy
     checkbox tag list (and its extra Clear all button) is redundant here. */
  display: none !important;
  margin-bottom: 0;
}
#dpf-root.finder-redesign .sheet-active-filters .clear-all-filters {
  display: none !important;
}
#dpf-root.finder-redesign .filter-sheet-apply:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Masthead utilities must not inherit the old toolbar treatment. */
#dpf-root.finder-redesign .finder-masthead-utility #themeToggle,
#dpf-root.finder-redesign .finder-masthead-utility #themeToggle:hover,
html[data-theme="dark"] #dpf-root.finder-redesign .finder-masthead-utility #themeToggle,
html[data-theme="dark"] #dpf-root.finder-redesign .finder-masthead-utility #themeToggle:hover {
  min-height: 30px;
  padding: .2rem .55rem;
  border: 1px solid var(--finder-border) !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: var(--finder-muted) !important;
  box-shadow: none !important;
  transform: none !important;
}
#dpf-root.finder-redesign .finder-masthead-utility #themeToggle:hover {
  border-color: var(--finder-ink) !important;
  color: var(--finder-ink) !important;
}
#dpf-root.finder-redesign .finder-results-tools #shareFiltersBtn,
#dpf-root.finder-redesign .finder-results-tools #shareFiltersBtn:hover,
html[data-theme="dark"] #dpf-root.finder-redesign .finder-results-tools #shareFiltersBtn,
html[data-theme="dark"] #dpf-root.finder-redesign .finder-results-tools #shareFiltersBtn:hover {
  min-height: 26px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--finder-muted) !important;
  box-shadow: none !important;
  transform: none !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#dpf-root.finder-redesign .finder-results-tools #shareFiltersBtn:hover {
  color: var(--finder-ink) !important;
}

#phoneModal > .bg-white { position: relative; }
#phoneModal #modalContent { padding: 3rem 1.25rem 1.25rem; }
#phoneModal #closeModal {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 0;
}
#phoneModal #closeModal::before {
  content: "×";
  font-size: 1.35rem;
  line-height: 1;
}

#dpf-root.finder-redesign .search-feedback {
  margin: .3rem 0 0;
  color: #92400e;
  font-size: .74rem;
  font-weight: 600;
}
html[data-theme="dark"] #dpf-root.finder-redesign .search-feedback {
  color: #fde68a;
}

/* Avoid scrollbar jumps from underestimated card heights. */
#dpf-root.finder-redesign #phoneShowcase .phone-card {
  content-visibility: visible;
}

/* The filter sheet body must own the scroll, not the dialog. */
#dpf-root.finder-redesign .filter-sheet[open] {
  height: min(92dvh, 760px);
  max-height: 92dvh;
  overflow: hidden;
}
#dpf-root.finder-redesign .filter-sheet-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.dpf-embedded #dpf-root.finder-redesign .filter-sheet[open] {
  height: min(calc(var(--dpf-host-visible-height, 100vh) - 1rem), 760px);
  max-height: calc(var(--dpf-host-visible-height, 100vh) - 1rem);
}

/* Filter groups: no fieldset border through the category label. */
#dpf-root.finder-redesign #checkboxFilters fieldset {
  min-width: 0;
  margin: 0;
  padding: .35rem 0 .45rem;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#dpf-root.finder-redesign #checkboxFilters legend {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 .3rem;
  padding: 0 0 .3rem;
  border-bottom: 1px solid var(--finder-border);
  color: var(--finder-ink);
  font-size: .8rem;
  font-weight: 700;
}
html[data-theme="dark"] #dpf-root.finder-redesign #checkboxFilters fieldset {
  background: transparent !important;
  border: 0 !important;
}

#dpf-root.finder-redesign .facet-section-body {
  padding-left: 0;
  padding-right: 0;
}

/* Let the detail sheet's middle column own the scroll. */
#phoneModal > .bg-white {
  min-height: 0;
}
#phoneModal #modalContent {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

#dpf-root.finder-redesign .filter-sheet-count {
  grid-column: 1 / -1;
  margin: 0 0 .35rem;
  color: var(--finder-muted);
  font-size: .76rem;
  font-weight: 600;
}
#dpf-root.finder-redesign .sheet-active-filters {
  margin: 0 0 .75rem;
  padding: 0 0 .75rem;
  border: 0;
  border-bottom: 1px solid var(--finder-border);
  border-radius: 0;
  background: transparent;
}
#dpf-root.finder-redesign .sheet-active-filters[hidden] {
  display: none;
}

/* =========================
   Audit fixes: mobile action bar, result grid, card media, comparison columns
   ========================= */

/* 1. Mobile action bar.
   The backdrop-filter on the control panel makes it a containing block, so the
   fixed .filters-actions bar anchors to the panel instead of the viewport and
   covers the quick-filter rows. Neutralize that effect for non-embedded pages
   only, then pin the bar to the viewport bottom. */
@media (max-width: 768px) {
  body:not(.dpf-embedded) #dpf-root.finder-redesign .finder-control-panel,
  body:not(.dpf-embedded) #dpf-root.finder-redesign #mainContent > .bg-white {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  body:not(.dpf-embedded) #dpf-root.finder-redesign .filters-actions {
    position: fixed;
    right: 0.75rem;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.65rem);
    left: 0.75rem;
    z-index: 60;
  }

  /* The existing body padding clears the one-row bar; add a content-side
     buffer for the two-row bar on narrow phones and safe-area devices. */
  body:not(.dpf-embedded) #dpf-root.finder-redesign .container {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* 7. Finder grid: let the cards reflow around the filter rail instead of
   following fixed Tailwind breakpoint columns. */
#dpf-root.finder-redesign #phoneShowcase {
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)) !important;
}

/* Narrow phones stay single-column. */
@media (max-width: 420px) {
  #dpf-root.finder-redesign #phoneShowcase {
    grid-template-columns: 1fr !important;
  }
}

/* Wider viewports keep at most five readable cards per row. */
@media (min-width: 1400px) {
  #dpf-root.finder-redesign #phoneShowcase {
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)) !important;
  }
}

/* 10. Mobile cards: a shorter media band so the name, price, and CTA land
   higher in the card. Desktop keeps the 4:5 media treatment. */
@media (max-width: 640px) {
  #dpf-root.finder-redesign .card-media,
  #dpf-root.finder-redesign #phoneShowcase .phone-card > div:first-child {
    aspect-ratio: 3 / 2;
    max-height: 170px;
    padding: 0.7rem;
  }
}

/* 5. Mobile comparison columns: reclaim the viewport without dropping the
   sticky identity column or horizontal scrolling. */
@media (max-width: 640px) {
  .comparison-col-spec {
    width: 106px !important;
  }

  .comparison-col-phone {
    width: 158px !important;
  }

  .comparison-matrix th,
  .comparison-matrix td,
  .dpf-comparison-table th,
  .dpf-comparison-table td {
    min-width: 0 !important;
    padding: 0.5rem 0.45rem;
  }

  .comparison-matrix thead th,
  .comparison-matrix th:first-child,
  .dpf-comparison-table thead th,
  .dpf-comparison-table th:first-child {
    min-width: 0 !important;
  }

  .comparison-matrix .comparison-phone-heading strong,
  .dpf-comparison-phone strong {
    display: block;
    min-height: 0;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  /* Keep the overlay title on one line so it cannot collide with the close
     button or wrap into a cramped two-line block. */
  .dpf-comparison-heading {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.8rem 0.9rem;
  }

  .dpf-comparison-heading h2 {
    min-width: 0;
    overflow: hidden;
    font-size: clamp(1.05rem, 4.6vw, 1.3rem);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dpf-comparison-heading-actions {
    flex: 0 0 auto;
  }
}

/* =========================
   Audit fixes: CTA contrast, focus, masthead, modal, numerals
   ========================= */

/* Shared tokens for overlay islands that are moved to <body> and therefore
   live outside #dpf-root. These match the finder material palette. */
#phoneModal,
.dpf-comparison-overlay,
.dpf-compare-bar {
  --finder-paper: #fafaff;
  --finder-surface: #ffffff;
  --finder-media: #e4d9ff;
  --finder-ink: #30343f;
  --finder-muted: #6b7280;
  --finder-border: #e4d9ff;
  --finder-buy: #047857;
  --finder-buy-hover: #065f46;
  --finder-buy-ink: #ffffff;
  --finder-focus: #273469;
}
html[data-theme="dark"] #phoneModal,
html[data-theme="dark"] .dpf-comparison-overlay,
html[data-theme="dark"] .dpf-compare-bar {
  --finder-paper: #1e2749;
  --finder-surface: #273469;
  --finder-media: #30343f;
  --finder-ink: #fafaff;
  --finder-muted: #a9b2c8;
  --finder-border: #3b4466;
  --finder-buy-ink: #ffffff;
  --finder-focus: #e4d9ff;
}
#dpf-root.finder-redesign {
  --finder-buy: #047857;
  --finder-buy-hover: #065f46;
  --finder-buy-ink: #ffffff;
  --finder-focus: #273469;
}
html[data-theme="dark"] #dpf-root.finder-redesign {
  --finder-focus: #e4d9ff;
}

/* 2 + 4. One accessible green Buy token (cream on #047857 = 5.40:1). */
#dpf-root.finder-redesign .btn-buy,
#phoneModal .btn-buy,
.dpf-comparison-overlay .btn-buy,
.dpf-compare-bar .btn-buy,
html[data-theme="dark"] #dpf-root.finder-redesign .btn-buy,
html[data-theme="dark"] #phoneModal .btn-buy,
html[data-theme="dark"] .dpf-comparison-overlay .btn-buy,
html[data-theme="dark"] .dpf-compare-bar .btn-buy {
  background: var(--finder-buy) !important;
  background-image: none !important;
  border: 1px solid var(--finder-buy) !important;
  color: var(--finder-buy-ink) !important;
  -webkit-text-fill-color: var(--finder-buy-ink) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  transform: none !important;
  font-weight: 700;
}
#dpf-root.finder-redesign .btn-buy:hover,
#phoneModal .btn-buy:hover,
.dpf-comparison-overlay .btn-buy:hover,
.dpf-compare-bar .btn-buy:hover,
#dpf-root.finder-redesign .btn-buy:focus-visible,
#phoneModal .btn-buy:focus-visible,
.dpf-comparison-overlay .btn-buy:focus-visible,
.dpf-compare-bar .btn-buy:focus-visible {
  background: var(--finder-buy-hover) !important;
  color: var(--finder-buy-ink) !important;
  -webkit-text-fill-color: var(--finder-buy-ink) !important;
}

/* 12. The sticky bar owns the primary action; the summary CTA is secondary. */
#phoneModal .modal-summary-actions .btn-buy,
html[data-theme="dark"] #phoneModal .modal-summary-actions .btn-buy {
  width: auto;
  min-height: 40px;
  padding: .5rem .85rem;
  background: transparent !important;
  background-image: none !important;
  border: 1px solid var(--finder-border) !important;
  color: var(--finder-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  box-shadow: none !important;
  font-weight: 600;
}
#phoneModal .modal-summary-actions .btn-buy:hover,
#phoneModal .modal-summary-actions .btn-buy:focus-visible {
  background: var(--finder-media) !important;
  border-color: var(--finder-ink) !important;
  color: var(--finder-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}
#phoneModal .modal-sticky-buy .btn-buy {
  flex: 0 0 auto;
  width: auto;
  min-width: 8.5rem;
}

/* Keep the sheet at its natural height for short details; tall details still
   shrink and scroll inside #modalContent with the sticky buy bar visible. */
#phoneModal #modalContent {
  flex: 1 1 auto;
  min-height: 0;
}

/* 2. Warm material surfaces for the detail sheet and comparison dialog. */
#phoneModal > .bg-white,
html[data-theme="dark"] #phoneModal > .bg-white {
  background: var(--finder-surface) !important;
  border-color: var(--finder-border) !important;
  color: var(--finder-ink) !important;
}
#phoneModal .modal-media,
#phoneModal .modal-at-glance,
html[data-theme="dark"] #phoneModal .modal-media,
html[data-theme="dark"] #phoneModal .modal-at-glance {
  background: var(--finder-media) !important;
  border-color: var(--finder-border) !important;
  color: var(--finder-ink) !important;
}
#phoneModal .modal-at-glance {
  border: 1px solid var(--finder-border) !important;
}
#phoneModal .modal-sticky-buy,
html[data-theme="dark"] #phoneModal .modal-sticky-buy {
  background: var(--finder-surface) !important;
  border-top-color: var(--finder-border) !important;
}
#phoneModal .modal-spec-row,
#phoneModal .modal-spec-group {
  border-color: var(--finder-border) !important;
}
#phoneModal .modal-spec-row dt {
  color: var(--finder-muted) !important;
}
#phoneModal .modal-spec-row dd {
  color: var(--finder-ink) !important;
}
.dpf-comparison-overlay .dpf-comparison-dialog,
html[data-theme="dark"] .dpf-comparison-overlay .dpf-comparison-dialog {
  background: var(--finder-surface) !important;
  border-color: var(--finder-border) !important;
  color: var(--finder-ink) !important;
}
.dpf-comparison-overlay .dpf-comparison-heading {
  border-bottom-color: var(--finder-border) !important;
}
.dpf-comparison-overlay .dpf-comparison-table th,
.dpf-comparison-overlay .dpf-comparison-table td {
  border-color: var(--finder-border) !important;
}
html[data-theme="dark"] .dpf-comparison-overlay .dpf-comparison-table thead th,
html[data-theme="dark"] .dpf-comparison-overlay .dpf-comparison-table thead th:first-child,
html[data-theme="dark"] .dpf-comparison-overlay .dpf-comparison-table tbody th:first-child {
  background: var(--finder-media) !important;
}
html[data-theme="dark"] .dpf-comparison-overlay .dpf-comparison-table tbody tr:nth-child(even) td {
  background: transparent !important;
}
html[data-theme="dark"] .dpf-comparison-overlay .dpf-comparison-price,
html[data-theme="dark"] .dpf-comparison-overlay .comparison-phone-price {
  color: #86efac !important;
}
.dpf-compare-bar,
html[data-theme="dark"] .dpf-compare-bar {
  background: var(--finder-surface) !important;
  border-color: var(--finder-border) !important;
  color: var(--finder-ink) !important;
}

/* 11. Masthead: one line, flat active tab, integrated theme utility. */
#dpf-root.finder-redesign .finder-masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin: 0 0 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--finder-border);
}
#dpf-root.finder-redesign .finder-masthead-row [aria-label="Regions"] {
  flex: 1 1 auto;
  justify-content: center;
  margin: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}
#dpf-root.finder-redesign .finder-masthead-row .finder-masthead-utility {
  flex: 0 0 auto;
  margin: 0 0 0 auto !important;
  justify-content: flex-end;
}
.comparison-page {
  position: relative;
}
.comparison-page > .finder-masthead-utility {
  position: absolute;
  top: .85rem;
  right: .85rem;
  margin: 0 !important;
}
@media (max-width: 700px) {
  .comparison-page > .finder-masthead-utility {
    position: static;
    margin: 0 0 .6rem !important;
  }
}
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link,
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link:hover,
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link[aria-current="page"],
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link.border-b-2,
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link.text-blue-700,
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link.border-blue-500,
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link.border-blue-700,
html[data-theme="dark"] #dpf-root.finder-redesign [aria-label="Regions"] .nav-link,
html[data-theme="dark"] #dpf-root.finder-redesign [aria-label="Regions"] .nav-link:hover,
html[data-theme="dark"] #dpf-root.finder-redesign [aria-label="Regions"] .nav-link[aria-current="page"],
html[data-theme="dark"] #dpf-root.finder-redesign [aria-label="Regions"] .nav-link.border-b-2 {
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link:hover,
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link[aria-current="page"],
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link.border-b-2,
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link.text-blue-700,
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link.border-blue-500,
#dpf-root.finder-redesign [aria-label="Regions"] .nav-link.border-blue-700,
html[data-theme="dark"] #dpf-root.finder-redesign [aria-label="Regions"] .nav-link:hover,
html[data-theme="dark"] #dpf-root.finder-redesign [aria-label="Regions"] .nav-link[aria-current="page"],
html[data-theme="dark"] #dpf-root.finder-redesign [aria-label="Regions"] .nav-link.border-b-2 {
  color: var(--finder-ink) !important;
  border-bottom-color: var(--finder-ink) !important;
}

/* 12. A quieter pick marker: hairline chip with a small green dot. */
#dpf-root.finder-redesign .card-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .14rem .4rem;
  border: 1px solid var(--finder-border);
  border-radius: 2px !important;
  background: var(--finder-surface) !important;
  color: var(--finder-muted) !important;
  font-size: .62rem;
  font-weight: 600 !important;
  letter-spacing: .02em;
  text-transform: none;
  box-shadow: none;
}
#dpf-root.finder-redesign .card-tag::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #047857;
}
html[data-theme="dark"] #dpf-root.finder-redesign .card-tag {
  background: var(--finder-surface) !important;
  border-color: var(--finder-border);
  color: var(--finder-muted) !important;
}

/* 11. Count and Share share one results row. */
#dpf-root.finder-redesign .finder-results-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 .75rem;
}
#dpf-root.finder-redesign .finder-results-row #filterResultCount {
  width: auto;
  margin: 0 !important;
  text-align: left;
}
#dpf-root.finder-redesign .finder-results-row .finder-results-tools {
  flex: 0 0 auto;
  margin: 0 !important;
}

/* 11. Neutralize the dead gradient title system. */
#dpf-root.finder-redesign .finder-page-title.retro-title,
#dpf-root.finder-redesign .finder-title-gradient,
html[data-theme="dark"] #dpf-root.finder-redesign .finder-page-title.retro-title,
html[data-theme="dark"] #dpf-root.finder-redesign .finder-title-gradient {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--finder-ink) !important;
  text-shadow: none !important;
  animation: none !important;
  font-weight: 700 !important;
}
.header-gradient {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
  text-shadow: none !important;
  filter: none !important;
  animation: none !important;
}
.header-gradient::after {
  content: none !important;
  display: none !important;
}

/* 11. Finlandica is loaded 400-700; avoid synthesized 800s in finder chrome. */
.dpf-comparison-overlay .dpf-comparison-heading h2,
.dpf-comparison-overlay .comparison-group-row th,
.dpf-comparison-overlay .comparison-empty h2,
.comparison-page .comparison-phone-price,
.comparison-page .dpf-comparison-price,
.comparison-page .comparison-phone-rating,
.comparison-page .dpf-comparison-rating,
.comparison-page .comparison-group-row th,
.comparison-page .dpf-comparison-table .comparison-group-row th,
.comparison-page .comparison-empty h2,
.comparison-page .dpf-comparison-heading h2 {
  font-weight: 700 !important;
}

/* 3. Clear focus-visible rings after the late box-shadow reset. */
#dpf-root.finder-redesign :is(#featureSearch, #searchInput, select, textarea, input:not([type="range"]), button, a, .btn, .quick-filter-btn, .filter-toggle):focus-visible,
#phoneModal :is(button, a, input, select, textarea):focus-visible,
.dpf-comparison-overlay :is(button, a, input, select, textarea):focus-visible,
.dpf-compare-bar :is(button, a, input, select, textarea):focus-visible,
.comparison-page :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--finder-focus) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px var(--finder-surface), 0 0 0 5px var(--finder-focus) !important;
}
html[data-theme="dark"] #dpf-root.finder-redesign :is(#featureSearch, #searchInput, select, textarea, input:not([type="range"]), button, a, .btn, .quick-filter-btn, .filter-toggle):focus-visible,
html[data-theme="dark"] #phoneModal :is(button, a, input, select, textarea):focus-visible,
html[data-theme="dark"] .dpf-comparison-overlay :is(button, a, input, select, textarea):focus-visible,
html[data-theme="dark"] .dpf-compare-bar :is(button, a, input, select, textarea):focus-visible {
  outline-color: var(--finder-focus) !important;
  box-shadow: 0 0 0 2px var(--finder-surface), 0 0 0 5px var(--finder-focus) !important;
}
#dpf-root.finder-redesign #priceSlider:focus-visible {
  outline: 3px solid var(--finder-focus) !important;
  outline-offset: 6px !important;
  border-radius: 3px;
  box-shadow: none !important;
}
#dpf-root.finder-redesign #priceSlider:focus-visible::-webkit-slider-thumb {
  border-color: var(--finder-focus) !important;
  box-shadow: 0 0 0 3px var(--finder-surface), 0 0 0 6px var(--finder-focus) !important;
}
#dpf-root.finder-redesign #priceSlider:focus-visible::-moz-range-thumb {
  border-color: var(--finder-focus) !important;
  box-shadow: 0 0 0 3px var(--finder-surface), 0 0 0 6px var(--finder-focus) !important;
}

/* 11. Tabular numerals only where digits need to align. */
#dpf-root.finder-redesign,
#dpf-root.finder-redesign *,
#phoneModal,
#phoneModal *,
.dpf-comparison-overlay,
.dpf-comparison-overlay *,
.dpf-compare-bar,
.dpf-compare-bar * {
  font-variant-numeric: normal;
}
#dpf-root.finder-redesign :is(#filterResultCount, .result-count, .card-price-main, .card-price-note, .card-score-value, .card-signal-value, #priceCurrent, #priceMin, #priceMax, .facet-count, .facet-section-badge, .filter-sheet-count, .dpf-compare-count, .dpf-compare-action),
#dpf-root.finder-redesign .comparison-matrix td,
#dpf-root.finder-redesign .dpf-comparison-table td,
#dpf-root.finder-redesign .comparison-phone-price,
#dpf-root.finder-redesign .dpf-comparison-price,
#dpf-root.finder-redesign .comparison-phone-rating,
#dpf-root.finder-redesign .dpf-comparison-rating,
#phoneModal :is(.modal-price-main, .modal-price-note, .modal-sticky-price, .modal-spec-row dd, .modal-rating strong, .modal-stars),
.dpf-comparison-overlay :is(.dpf-comparison-price, .dpf-comparison-rating, .dpf-comparison-table td, .comparison-phone-price, .comparison-phone-rating),
.dpf-compare-bar :is(.dpf-compare-count) {
  font-variant-numeric: tabular-nums;
}

/* =========================
   Audit fixes: comparison width, sticky headers, difference markers
   ========================= */

/* One marker for every differing row, on both comparison surfaces. */
.comparison-diff-marker {
  margin-left: .35em;
  color: #c8452d;
  font-weight: 800;
}
.comparison-diff-legend {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--finder-muted, #6b7280);
  font-size: .78rem;
  font-weight: 600;
}
.comparison-diff-dot {
  color: #c8452d;
  font-size: 1rem;
  line-height: 1;
}
html[data-theme="dark"] .comparison-diff-marker,
html[data-theme="dark"] .comparison-diff-dot {
  color: #ff8a70 !important;
}
/* The base dark theme forces every span white with !important. */
html[data-theme="dark"] .comparison-diff-legend {
  color: #a9b2c8 !important;
}

/* Carrier lists render as one region per line instead of a run-on blob. */
.comparison-matrix td.comparison-carriers,
.dpf-comparison-table td.comparison-carriers {
  white-space: pre-line;
}

/* Keep the match note against the right edge of the full-width toolbar. */
.comparison-view-toolbar .comparison-match-note {
  margin-left: auto;
  color: var(--finder-muted, #6b7280);
  text-align: right;
}
/* The live-region helper is a flex item by default and would reserve width at
   the far right, pushing the note inward. Take it out of the flex flow. */
.comparison-view-toolbar > .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Outlier cells and tied rows no longer use a red inset/fill; the row-label
   dot is the single visual difference cue. */
.comparison-matrix td.comparison-different,
.dpf-comparison-table td.comparison-different,
html[data-theme="dark"] .comparison-matrix td.comparison-different,
html[data-theme="dark"] .dpf-comparison-table td.comparison-different {
  background: transparent !important;
  box-shadow: none !important;
  font-weight: inherit;
}
.comparison-matrix tr.comparison-tied th[scope="row"],
.dpf-comparison-table tr.comparison-tied th[scope="row"] {
  box-shadow: none !important;
}

/* Desktop tables fill the content width: a fixed spec rail plus equal,
   flexible phone columns. The wrapper stops scrolling so page-level sticky
   identity headers work while the page scrolls. */
@media (min-width: 641px) {
  .comparison-table-scroll {
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .comparison-matrix,
  .dpf-comparison-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
  }
  .comparison-col-spec {
    width: 180px;
  }
  .comparison-col-phone {
    width: auto;
  }
  .comparison-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    box-shadow: inset 0 -1px 0 #e4d9ff;
  }
  .comparison-matrix thead th:first-child {
    z-index: 4;
  }
  .comparison-matrix tbody th:first-child {
    left: 0;
  }
}
