/* Dense, grouped rankings with one responsive layout. */
.account-rate-display {
  position: relative;
  display: inline-block;
}

/* Keep the public rate's original line box and all neighbouring metrics fixed. */
.account-effective-multiplier {
  position: absolute;
  top: 100%;
  left: 0;
  color: #b9b1ed;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  white-space: nowrap;
}

html[data-theme="day"] .account-effective-multiplier,
html[data-theme="soft"] .account-effective-multiplier {
  color: #6655a5;
}

@media (max-width: 640px) {
  .account-effective-multiplier {
    top: 50%;
    left: calc(100% + 6px);
    transform: translateY(-50%);
  }
}

@media (max-width: 360px) {
  .account-effective-multiplier {
    left: calc(100% + 4px);
    font-size: 11px;
  }
}

/* Site actions use the unlayered ranking UI so base button resets cannot
   override the compact typography or label contrast. */
.ranking-site-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  max-width: 100%;
}

.ranking-site-actions .site-groups-filter-button {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 48px;
  height: 24px;
  min-height: 24px;
  padding: 1px 5px;
  gap: 0;
  border: 1px solid rgba(115, 161, 151, .34);
  border-radius: 4px;
  background: rgba(8, 66, 59, .56);
  color: #a2b8b3;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.ranking-site-actions .site-groups-filter-button > span { display: inline; line-height: 1; }
.ranking-site-actions .site-groups-filter-button:hover {
  border-color: rgba(137, 195, 182, .52);
  background: rgba(14, 91, 81, .72);
  color: #c5d7d3;
}

html[data-theme="night"] .ranking-site-actions .site-groups-filter-button {
  border-color: rgba(133, 218, 195, .32);
  background: rgba(95, 208, 179, .12);
  color: #b8ddd2;
}
html[data-theme="night"] .ranking-site-actions .site-groups-filter-button:hover {
  border-color: rgba(152, 232, 210, .48);
  background: rgba(95, 208, 179, .2);
  color: #d4f1e8;
}
html[data-theme="soft"] .ranking-site-actions .site-groups-filter-button {
  border-color: rgba(64, 121, 106, .22);
  background: rgba(64, 121, 106, .055);
  color: #49685b;
}
html[data-theme="soft"] .ranking-site-actions .site-groups-filter-button:hover {
  border-color: rgba(50, 103, 75, .34);
  background: rgba(64, 121, 106, .11);
  color: #31594b;
}
html[data-theme="day"] .ranking-site-actions .site-groups-filter-button {
  border-color: rgba(8, 125, 111, .2);
  background: rgba(8, 125, 111, .04);
  color: #4e6b63;
}
html[data-theme="day"] .ranking-site-actions .site-groups-filter-button:hover {
  border-color: rgba(13, 112, 96, .34);
  background: rgba(13, 112, 96, .085);
  color: #365e56;
}

.ranking-site-visit-button {
  display: inline-flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 3px;
  border: 1px solid rgba(var(--primary-rgb), .45);
  border-radius: 4px;
  background: rgba(var(--primary-rgb), .08);
  color: var(--cyan-text);
  text-decoration: none;
}

.ranking-site-visit-button svg { width: 13px; height: 13px; flex: 0 0 13px; }
.ranking-site-visit-button:hover { background: rgba(var(--primary-rgb), .18); border-color: var(--cyan-text); }
.ranking-site-actions :is(button, a):focus-visible {
  outline: 2px solid var(--cyan-text);
  outline-offset: 2px;
}

/* Keep the mobile actions at the existing touch target size; the compact
   screenshot density applies to the desktop table only. */
@media (max-width: 640px) {
  .ranking-site-actions { gap: 5px; }
  .ranking-site-actions .site-groups-filter-button {
    height: 28px;
    min-height: 28px;
    min-width: 52px;
    padding: 2px 5px;
    font-size: 11px;
    line-height: 1;
    border-radius: 6px;
  }
  .ranking-site-actions .site-groups-filter-button > span { line-height: 1; }
  .ranking-site-visit-button {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 5px;
    border-radius: 6px;
  }
  .ranking-site-visit-button svg { width: 16px; height: 16px; flex-basis: 16px; }
}

/* Narrow phones keep both site actions without squeezing short site names or
   multi-digit ranks out of the existing single-line heading. */
@media (max-width: 360px) {
  .rank-refined #mobileGroupCards .mobile-group-card-head { column-gap: 4px; --mobile-site-font-size: 13px; }
  .rank-refined #mobileGroupCards .mobile-group-rank { font-size: 13px; }
  .rank-refined #mobileGroupCards .mobile-group-site { gap: 4px; }
  .rank-refined #mobileGroupCards .mobile-group-card-head .site-link { font-size: 13px; }
  .rank-refined #mobileGroupCards .mobile-group-card-head .platform-pill { padding-inline: 4px; gap: 4px; font-size: 10px; }
  .rank-refined #mobileGroupCards .mobile-group-card-head .platform-pill::before { width: 12px; height: 12px; flex-basis: 12px; }
  .rank-refined #mobileGroupCards .ranking-site-actions { gap: 4px; }
  .rank-refined #mobileGroupCards .site-groups-filter-button {
    min-width: 44px;
    padding-inline: 1px;
    font-size: 10px;
  }
  .rank-refined #mobileGroupCards .ranking-site-visit-button {
    flex-basis: 23px;
    width: 23px;
    padding-inline: 3px;
  }
  .rank-refined #mobileGroupCards .ranking-site-visit-button svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }
}

/* Administrator selection shares the ranking's theme and compact row layout. */
.ai-recommendation-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 1px;
  padding: 0;
  vertical-align: middle;
  cursor: help;
}
.ai-recommendation-flame {
  position: relative;
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.ai-recommendation-flame svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
}
.ai-recommendation-flame path {
  fill: #d87943;
  stroke: #e6a56d;
  stroke-width: .4;
}
.ai-recommendation-flame-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3px;
  color: #fffdf5;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(116, 37, 16, .75);
  font-variant-numeric: tabular-nums;
}
html[data-theme="night"] .ai-recommendation-flame path {
  fill: #d9894d;
  stroke: #edbc7e;
}
.rank-refined #groupTableWrap .site-cell .ai-recommendation-badge,
.rank-refined .mobile-group-site .ai-recommendation-badge {
  line-height: 1;
}
@media (max-width: 640px) {
  .rank-refined .mobile-group-site .ai-recommendation-badge {
    width: 19px;
    max-width: 19px;
    height: 19px;
    margin-left: 0;
  }
  .rank-refined .mobile-group-site .ai-recommendation-flame,
  .rank-refined .mobile-group-site .ai-recommendation-flame svg {
    flex-basis: 19px;
    width: 19px;
    height: 19px;
  }
}
.group-selection-toolbar { min-width: 0; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.group-selection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.group-selection-actions strong { margin-right: auto; color: var(--text-strong); font-size: 12px; font-variant-numeric: tabular-nums; }
.group-selection-actions button { min-width: 0; min-height: 32px; padding: 5px 10px; font-size: 11px; white-space: nowrap; }
#groupSelectionScope { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
#toggleGroupSelectionBtn[aria-pressed="true"] { color: var(--primary); border-color: var(--primary); background: var(--accent-soft); }
.ranking-group-choice { display: inline-flex; justify-content: center; align-items: center; width: 25px; min-height: 32px; margin: 0; vertical-align: middle; cursor: pointer; }
.ranking-group-choice input.ranking-group-checkbox { flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--primary); cursor: pointer; }
.ranking-group-choice:has(input:disabled) { cursor: default; opacity: .65; }
.ranking-group-choice input:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.rank-recommended { display: inline-block; color: #976100; white-space: nowrap; text-align: center; vertical-align: middle; font-size: 11px; line-height: 16px; }
html[data-theme="night"] .rank-recommended { color: #f4c65a; }
.rank-recommended.rank-recommended-brand { color: #2563eb; }
html[data-theme="night"] .rank-recommended-brand { color: #93c5fd; }
.rank-recommended.rank-recommended-long { width: 2.2em; max-width: 25px; white-space: normal; overflow-wrap: anywhere; word-break: break-all; line-height: 14px; }
#groupRows > tr.group-model-selected > td { background: var(--accent-soft); }
#mobileGroupCards > .group-model-selected { border-color: var(--primary); background: var(--accent-soft); }
.batch-settings-card .batch-models-coverage-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
#appView.is-public-view :is(#toggleGroupSelectionBtn, #groupSelectionToolbar, .ranking-group-choice) { display: none; }
@media (max-width: 640px) {
  .group-selection-toolbar { padding: 10px; margin-bottom: 10px; }
  .group-selection-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-selection-actions strong { grid-column: 1 / -1; margin-bottom: 3px; }
  .group-selection-actions button { padding-inline: 5px; }
  #groupSelectionScope { font-size: 10px; }
}
.group-test-models-panel { width: min(580px, calc(100vw - 24px)); }
.group-test-models-body { display: grid; gap: 16px; }
.group-test-models-summary { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.group-test-models-summary strong { min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }
#groupTestModelsStatus { flex: 0 0 auto; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; }
.group-test-models-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.group-test-models-fields label { display: grid; min-width: 0; gap: 8px; }
.group-test-models-fields input { min-width: 0; width: 100%; }
.group-test-models-fields small { color: var(--muted); font-size: 12px; font-weight: 400; }
.group-test-models-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
#groupTestModelsError { margin: 0; color: var(--danger-text); line-height: 1.6; overflow-wrap: anywhere; }
#groupTestModelsError:empty { display: none; }
.group-test-models-actions { display: flex; gap: 8px; }
#resetGroupTestModelsBtn { margin-right: auto; }
.group-fission-panel { width: min(420px, calc(100vw - 24px)); }
.group-fission-body { display: grid; gap: 16px; }
.group-fission-body label { display: grid; min-width: 0; gap: 8px; }
.group-fission-body select { width: 100%; min-width: 0; }
#groupFissionDescription { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
#groupFissionError { margin: 0; color: var(--danger-text); overflow-wrap: anywhere; }
#groupFissionError:empty { display: none; }
.group-fission-badge { display: inline-flex; align-items: center; margin-right: 5px; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--accent-soft); color: var(--primary); font-size: 10px; font-weight: 500; line-height: 16px; vertical-align: 1px; white-space: nowrap; }
.group-context-menu { max-height: calc(100dvh - 16px); overflow-y: auto; }
.group-context-menu .group-pin-chevron { width: 14px; height: 14px; margin-left: auto; transition: transform .15s ease; }
#pinRankingGroupBtn[aria-expanded="true"] .group-pin-chevron { transform: rotate(90deg); }
.group-pin-choices { margin: 2px 0 5px 18px; border-left: 1px solid var(--line); }
.group-pin-choices button::before { content: ""; width: 14px; flex: 0 0 14px; }
.group-pin-choices button[aria-checked="true"]::before { content: "✓"; color: var(--primary); }
.group-pin-panel { width: min(420px, calc(100vw - 24px)); }
.group-pin-body { display: grid; min-width: 0; gap: 14px; }
#groupPinDescription { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.group-pin-label-field { display: grid; min-width: 0; gap: 8px; }
.group-pin-label-field input { width: 100%; min-width: 0; }
.group-pin-label-field small, .group-pin-note { color: var(--muted); font-size: 12px; font-weight: 400; }
.group-pin-note { margin: -6px 0 0; line-height: 1.6; }
.group-pin-colors { margin: 0; padding: 0; min-width: 0; border: 0; }
.group-pin-colors legend { padding: 0; margin-bottom: 8px; }
.group-pin-color-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.group-pin-color-options button { min-height: 32px; padding: 4px 9px; font-size: 12px; }
.group-pin-color-options .group-pin-swatch { width: 32px; height: 32px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.group-pin-swatch::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 4px; background: var(--pin-swatch); }
.group-pin-color-options button[aria-pressed="true"] { outline: 2px solid var(--primary); outline-offset: 2px; }
.group-pin-custom-color { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.group-pin-custom-color input[type="color"] { width: 46px; height: 32px; min-height: 32px; padding: 3px; cursor: pointer; }
.group-pin-preview { display: flex; align-items: center; min-height: 48px; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.group-pin-preview > span { color: var(--muted); font-size: 12px; }
#groupPinPreview { display: flex; align-items: center; justify-content: center; flex: 0 0 28px; min-height: 28px; }
#groupPinScopeLabel { margin-left: auto; color: var(--muted); text-align: right; font-size: 11px; }
#groupPinError { margin: 0; color: var(--danger-text); line-height: 1.6; overflow-wrap: anywhere; }
#groupPinError:empty { display: none; }
.mobile-group-admin-menu { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-height: 32px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--text); }
.mobile-group-admin-menu svg { width: 18px; height: 18px; }
.mobile-group-admin-menu:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 600px) {
  .group-test-models-fields { grid-template-columns: minmax(0, 1fr); }
  .group-test-models-actions { flex-wrap: wrap; }
  .group-test-models-actions button { min-width: 0; padding-inline: 10px; }
}
.rank-refined .hero-inner { display: block; padding: 20px 40px 16px; }
.rank-refined .hero-copy { position: relative; padding-right: 235px; }
.rank-refined .hero-copy h2 { font-size: 28px; margin: 8px 0 5px; letter-spacing: -1px; }
.rank-refined .hero-copy > p { font-size: 12px; }
.rank-refined .hero-eyebrow { padding: 0; background: none; border: 0; }
.rank-refined .hero-actions { position: absolute; right: 0; bottom: 5px; margin: 0; }
.rank-refined .hero-preview { display: none; margin-top: 18px; }
.rank-refined.rank-overview-open .hero-preview { display: block; }
.rank-refined .hero-channel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rank-refined .hero-channel { border: 0; }
.rank-refined .hero-bottom { width: min(1240px, calc(100% - 80px)); margin: auto; display: flex; flex-wrap: wrap; padding: 10px 0; gap: 16px; }
.rank-overview-toggle { border: 0; background: transparent; color: #b0d2c2; padding: 5px 0; font-size: 11px; min-height: 30px; white-space: nowrap; box-shadow: none; margin-left: auto; }
.rank-refined .provider-strip { min-height: 36px; padding-block: 8px; }
.rank-refined .provider-strip strong { font-size: 12px; }
.rank-refined .workspace { margin-top: 22px; }
.rank-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.rank-heading-actions button { font-size: 11px; min-height: 36px; }
.rank-refined .page-section-heading { margin-bottom: 18px; }
.rank-refined .primary-filters { flex-wrap: nowrap; }
.market-search-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.rank-platform-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank-platform-label { flex: 0 0 44px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.platform-filter-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
/* Scope the reference-style chips to filters, leaving recommendation tabs intact. */
#platformFilterButtons .platform-filter-button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 36px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; box-shadow: none; }
#platformFilterButtons .platform-filter-button::before { width: 16px; height: 16px; flex: 0 0 16px; background: var(--tab-color); }
#platformFilterButtons .platform-filter-button:not(.is-active):hover { color: var(--text); background: transparent; border-color: var(--line-strong); box-shadow: none; }
#platformFilterButtons .platform-filter-button.is-active { color: #fff; background: #087d6f; border-color: #087d6f; box-shadow: none; }
#platformFilterButtons .platform-filter-button.is-active::before { background: currentColor; }
#platformFilterButtons .platform-filter-button.platform-gemini::before { background: var(--platform-image) center / contain no-repeat; -webkit-mask: none; mask: none; }
#platformFilterButtons .platform-filter-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Give model shortcuts, preferences and filter actions the same quiet outline
   as brand buttons, without styling the model editor's small delete controls. */
.rank-refined .table-head :is(.rank-model-shortcuts [data-rank-model], .catalog-presets button, .primary-filter-actions > button) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; box-shadow: none; }
.rank-refined .table-head :is(.rank-model-shortcuts [data-rank-model], .catalog-presets button) { min-height: 36px; }
.rank-refined .table-head :is(.rank-model-shortcuts [data-rank-model], .catalog-presets button, .primary-filter-actions > button):not([aria-pressed="true"]):not([aria-expanded="true"]):hover:not(:disabled) { background: transparent; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.rank-refined .table-head :is(.rank-model-shortcuts [data-rank-model], .catalog-presets button, .primary-filter-actions > button):is([aria-pressed="true"], [aria-expanded="true"]) { background: #087d6f; border-color: #087d6f; color: #fff; box-shadow: none; }
.rank-refined .table-head :is(.rank-model-shortcuts [data-rank-model], .catalog-presets button, .primary-filter-actions > button):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.rank-refined .table-head .catalog-presets { gap: 6px; }
.rank-refined .table-head #favoriteCount { color: inherit; font-size: inherit; margin-left: 0; }
.rank-refined .market-search-field { min-width: 180px; flex: 1 1 320px; }
.rank-refined .market-search-field #groupSearch { flex: 1 1 0; }
.rank-refined .primary-filters .model-filter-control { flex: 0 1 205px; min-width: 140px; max-width: 260px; }
.rank-refined .primary-filters .model-filter-control input { width: 100%; height: 44px; font-size: 12px; }
.rank-refined .primary-filters select { flex: 0 1 auto; font-size: 12px; }
.rank-refined .primary-filter-actions { flex: 0 0 auto; width: auto; }
.rank-refined .primary-filter-actions button { white-space: nowrap; }
.rank-refined .table-head .primary-filter-actions { gap: 6px; }
.rank-refined .table-head .primary-filter-actions > button { flex: 1 1 0; width: auto; min-width: 0; padding-inline: 8px; }
.rank-refined #clearFiltersBtn { gap: 5px; }
.rank-refined #clearFiltersBtn .button-icon { width: 14px; height: 14px; }
.rank-refined .table-head { gap: 9px; flex-wrap: nowrap; align-items: stretch; }
.rank-refined .table-head > * { min-width: 0; max-width: 100%; }
.rank-refined .table-head .market-search-controls { order: 0; }
.rank-refined .table-head .rank-model-row { order: 1; }
.rank-refined .table-head .rank-platform-row { order: 2; }
.rank-refined .table-head .catalog-toolbar { order: 3; }
.rank-refined .table-head .active-filter-row { order: 4; }
.rank-refined .table-head .advanced-filters { order: 5; }
.rank-refined .table-head .quick-filter-bar { order: 6; }
.rank-refined :is(.rank-model-row, .rank-platform-row, .catalog-toolbar, .active-filter-row, .quick-filter-bar) { width: 100%; }
.rank-refined .model-filter-menu { width: min(360px, calc(100vw - 64px)); }
.rank-refined .catalog-toolbar { display: flex; min-width: 0; }
.rank-refined .active-filter-row:has(.filter-idle) { min-height: 0; }
@media (min-width: 1100px) {
  /* Lift model shortcuts into the space beside a bounded search panel. */
  .rank-refined .table-head {
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(460px, 40vw, 620px);
    grid-template-areas: "models search" "platforms platforms" "presets presets" "active active" "quick quick";
    gap: 8px 24px; align-items: center;
  }
  .rank-refined .table-head:has(.advanced-filters:not(.hidden)) { grid-template-areas: "models search" "platforms platforms" "presets presets" "active active" "advanced advanced" "quick quick"; }
  .rank-refined .table-head .market-search-controls { grid-area: search; align-self: start; }
  .rank-refined .table-head .primary-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(162px, 1fr); gap: 8px;
  }
  .rank-refined .table-head .market-search-field { grid-column: 1 / 3; min-width: 0; width: 50%; height: 40px; }
  .rank-refined .table-head .primary-filter-actions { grid-column: 2 / -1; }
  .rank-refined .table-head .primary-filters .model-filter-control { min-width: 0; max-width: none; width: 150%; justify-self: end; }
  .rank-refined .table-head .primary-filters :is(select, .model-filter-control input) { width: 100%; min-width: 0; height: 40px; min-height: 40px; }
  .rank-refined .table-head .primary-filter-actions button { min-height: 40px; }
  .rank-refined .table-head .model-filter-menu { left: auto; right: 0; }
  .rank-refined .table-head .rank-model-row { grid-area: models; align-self: start; gap: 10px; }
  .rank-refined .table-head .rank-platform-row { grid-area: platforms; }
  .rank-refined .table-head .catalog-toolbar { grid-area: presets; }
  .rank-refined .table-head .active-filter-row { grid-area: active; }
  .rank-refined .table-head .advanced-filters:not(.hidden) { grid-area: advanced; }
  .rank-refined .table-head .quick-filter-bar { grid-area: quick; }
}
@media (min-width: 1600px) {
  .rank-refined .table-head { grid-template-columns: minmax(0, 1fr) clamp(660px, 42vw, 780px); }
  /* The former search track was the panel minus 434px. Halve that track,
     grow the former 120px model track by 50%, and retain the action widths. */
  .rank-refined .table-head .primary-filters { grid-template-columns: calc((100% - 434px) / 2) 180px 128px 162px; justify-content: end; }
  .rank-refined .table-head .market-search-field { grid-column: auto; width: 100%; }
  .rank-refined .table-head .primary-filters .model-filter-control { width: 100%; }
  .rank-refined .table-head .primary-filter-actions { grid-column: auto; }
  .rank-refined .table-head .rank-model-shortcuts { gap: 5px; }
  .rank-refined .table-head .rank-model-shortcuts button { padding-inline: 8px; }
}
.rank-sample-count { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 7px; white-space: nowrap; }
.availability-24h.is-empty .availability-24h-summary strong { color: var(--muted); font-size: 12px; font-weight: 400; }
.rank-model-row { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.rank-model-row > span { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.rank-model-label { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rank-refined .table-head #editRankModelsBtn { min-height: 20px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2); color: var(--muted); font-size: 10px; line-height: 16px; box-shadow: none; }
.rank-refined .table-head #editRankModelsBtn:hover,
.rank-refined .table-head #editRankModelsBtn[aria-pressed="true"] { color: var(--primary); border-color: var(--primary); }
@media (max-width: 640px) { #editRankModelsBtn { display: none !important; } }
.rank-model-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.rank-model-shortcuts button { border: 1px solid var(--line); background: var(--panel-2); color: var(--text-soft); font-size: 10px; padding: 5px 10px; min-height: 30px; border-radius: 6px; box-shadow: none; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-model-chip { position: relative; display: inline-flex; flex: 0 0 auto; min-width: 0; max-width: 210px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rank-refined .table-head .rank-model-shortcuts .rank-model-chip > [data-rank-model] { cursor: pointer; }
.rank-refined .table-head .rank-model-shortcuts.is-editing .rank-model-chip > [data-rank-model] { padding-right: 21px; cursor: grab; }
.rank-model-shortcuts.is-editing .rank-model-chip { touch-action: none; }
.rank-model-shortcuts [data-rank-model] { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rank-model-shortcuts:not(.is-editing) :is(.rank-model-remove, .rank-model-add, .rank-model-finish) { display: none; }
.rank-refined .table-head .rank-model-shortcuts .rank-model-finish { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 10px; color: var(--text); border-color: var(--primary); }
.rank-model-chip.is-dragging { outline: 2px solid var(--primary); border-radius: 8px; background: var(--accent-soft); opacity: .8; }
.rank-refined .table-head .rank-model-chip.is-dragging > [data-rank-model] { cursor: grabbing; }
.rank-refined .table-head .rank-model-chip > [data-rank-model]:disabled { cursor: not-allowed; }
.rank-refined .table-head .rank-model-chip .rank-model-remove { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-height: 20px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; border-radius: 0 8px 0 8px; }
.rank-refined .table-head .rank-model-chip .rank-model-remove:hover { color: var(--danger-text); background: var(--panel); }
.rank-model-new-badge,
.rank-model-new-toggle > span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 9px; border-radius: 4px; background: #087d49; color: #fff; font-size: 7px; font-weight: 750; line-height: 1; letter-spacing: .15px; white-space: nowrap; }
.rank-model-new-badge { position: absolute; top: 0; left: 3px; pointer-events: none; }
.rank-refined .table-head .rank-model-chip .rank-model-new-toggle { position: absolute; top: 0; left: 3px; z-index: 1; display: flex; align-items: flex-start; justify-content: flex-start; width: 28px; height: 17px; min-height: 17px; padding: 0; border: 0; border-radius: 4px; background: transparent; box-shadow: none; overflow: visible; cursor: pointer; }
.rank-model-new-toggle:not(.is-new) > span { background: #6b7280; }
.rank-refined .table-head .rank-model-chip .rank-model-new-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.rank-refined .table-head .rank-model-chip > [aria-pressed="true"] + .rank-model-remove { color: #fff; }
.rank-refined .table-head .rank-model-chip > [aria-pressed="true"] + .rank-model-remove:hover:not(:disabled) { background: #ffffff24; }
#addRankModelShortcutBtn { display: inline-flex; align-items: center; justify-content: center; align-self: center; flex: 0 0 32px; width: 32px; height: 32px; min-height: 32px; padding: 0; line-height: 1; text-overflow: clip; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); }
#addRankModelShortcutBtn > svg { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
#addRankModelShortcutBtn:hover:not(:disabled) { border-color: var(--line-strong); }
#addRankModelShortcutBtn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.rank-model-shortcuts[aria-busy="true"] { opacity: .65; }
@media (min-width: 641px) {
  .rank-model-shortcuts.is-admin:has(.rank-model-chip) { max-height: 82px; overflow-y: auto; padding: 2px; }
}
.rank-list-meta { padding: 11px 22px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 18px; background: var(--panel-2); }
.rank-list-meta > p { font-size: 10px; color: var(--muted); margin: 0; line-height: 1.8; }
.rank-metric-guide { font-size: 11px; color: var(--text-soft); flex: 0 0 auto; }
.rank-metric-guide summary { cursor: pointer; color: var(--primary); min-height: 28px; line-height: 28px; }
.rank-metric-guide[open] { flex-basis: 100%; }
.rank-list-meta:has(.rank-metric-guide[open]) { flex-wrap: wrap; }
.rank-metric-guide > div { padding: 10px 0; max-width: 850px; line-height: 1.9; }
.rank-metric-guide p { margin: 7px 0 0; }
.rank-refined .quick-filter-meta .rank-metric-guide summary { grid-column: 2; grid-row: 1; justify-self: end; }
.rank-refined .quick-filter-meta .leaderboard-refresh-age { justify-self: start; width: max-content; max-width: 100%; }
.rank-refined .quick-filter-meta .rank-metric-guide > div { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: 850px; }
.rank-refined .rank-list-meta:has(#rankPermissionHint.hidden) { display: none; }
.rank-refined #summaryGrid .ai-recommendation-title { min-width: 0; max-width: 100%; flex-wrap: wrap; row-gap: 2px; }
.rank-refined #summaryGrid .ai-recommendation-meta { min-width: 0; max-width: min(260px, 58vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Original business controls are moved, never duplicated. */
.rank-action-icon { display: none; }
.rank-refined .group-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; flex: 0 0 100%; min-width: 0; max-width: 100%; margin-top: 2px; overflow: hidden; overflow-wrap: anywhere; white-space: normal; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 16px; text-align: left; }
.group-description.is-full { display: block; margin: 6px 0 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.rank-history-button { color: var(--primary); background: none; box-shadow: none; border: 0; padding: 4px 0; min-height: 28px; font-size: 10px; }
.rank-refined #modelMarketplace :is(.route-button, .group-vote-button, .veridrop-score-pill, .veridrop-score-action, .channel-actions button, .rank-history-button, .rank-heading-actions button, .primary-filter-actions button, .catalog-presets button, .filter-chip) { display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; }
.rank-refined #modelMarketplace .score-column-help { display: inline-grid; place-items: center; line-height: 1; }
/* Sticky headers create separate stacking contexts; lift the active help's cell. */
.rank-refined #groupTableWrap th:has(.score-column-help-wrap:hover, .score-column-help:focus-visible, .score-column-help-wrap.is-open) { z-index: 2; }
.rank-refined #modelMarketplace :is(.rank-group-name, .mobile-group-name) > .auto-rate-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 5px; margin-bottom: 3px; line-height: 18px; }
.rank-refined #modelMarketplace .auto-rate-badge { line-height: 16px; font-size: 10px; }
.rank-refined #modelMarketplace .auto-rate-range { font-size: 10px; line-height: 18px; overflow-wrap: anywhere; white-space: normal; }
.rank-refined .table-wrap { max-height: 760px; overscroll-behavior: contain; }
/* Paint the padded edges too; the background stays at the top while rows scroll. */
.rank-refined #groupTableWrap { scrollbar-gutter: stable; background: linear-gradient(to bottom, var(--panel-2) calc(100% - 1px), var(--line) 0) left top / 100% var(--rank-table-header-height, 64px) no-repeat; }
.rank-refined #modelMarketplace .test-button { color: #fff; border-color: #087d6f; background: #087d6f; font-weight: 700; box-shadow: 0 1px 3px rgba(var(--primary-rgb), .18); }
.rank-refined #modelMarketplace .test-button:hover:not(:disabled) { border-color: #096c60; background: #096c60; }
html[data-theme="night"] .rank-refined #modelMarketplace .test-button { border-color: #48b79b; background: #217b68; }
html[data-theme="night"] .rank-refined #modelMarketplace .test-button:hover:not(:disabled) { background: #196c5b; }
.rank-refined #modelMarketplace .test-button.is-loading { opacity: 1; cursor: wait; }
.rank-refined #modelMarketplace .test-button .button-spinner { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
/* Keep button edges aligned; show the entire rate above the route checkmarks. */
.rank-refined #modelMarketplace .sub2api-bind-rate { top: -18px; right: 0; min-width: 0; max-width: none; padding: 1px 3px; overflow: visible; white-space: nowrap; box-shadow: none; }
.rank-refined #modelMarketplace .sub2api-bind-button { border-style: dashed; border-radius: 5px; color: var(--violet); }
.rank-refined #modelMarketplace .sub2api-bind-button.is-bound { border-style: solid; background: rgba(139, 124, 246, .14); border-color: var(--violet); }
/* Keep the native scroll interaction, with its visible track below the sticky header.
   Browsers without scrollbar pseudo-elements retain the standard thin scrollbar. */
@supports selector(::-webkit-scrollbar) {
  .rank-refined #groupTableWrap { scrollbar-width: auto; scrollbar-color: auto; }
  .rank-refined #groupTableWrap::-webkit-scrollbar { width: 8px; height: 8px; }
  .rank-refined #groupTableWrap::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  .rank-refined #groupTableWrap::-webkit-scrollbar-track { background: transparent; margin: calc(var(--rank-table-header-height, 64px) + 4px) 0 6px; }
  .rank-refined #groupTableWrap::-webkit-scrollbar-track:horizontal { margin: 0 4px; }
  .rank-refined #groupTableWrap::-webkit-scrollbar-thumb { min-height: 28px; border: 2px solid transparent; border-radius: 8px; background: var(--line-strong); background-clip: padding-box; }
  .rank-refined #groupTableWrap::-webkit-scrollbar-thumb:hover { background-color: var(--primary); }
  .rank-refined #groupTableWrap::-webkit-scrollbar-corner { background: transparent; }
}
/* Selected routes remain visually marked while their enabled buttons clear the
   current binding; these selectors match routeToneClass(), unlike the retired
   route-slot-route* names. */
.rank-refined #modelMarketplace .route-slot-action { --rank-route-fill: #087d6f; --rank-route-ink: #fff; position: relative; border-color: var(--line-strong); background: var(--panel); color: var(--muted); box-shadow: none; text-shadow: none; }
.rank-refined #modelMarketplace .route-slot-action.route-tone-route1 { --rank-route-fill: #976112; }
.rank-refined #modelMarketplace .route-slot-action:not(.route-active) { color: var(--rank-route-fill); border-color: color-mix(in srgb, var(--rank-route-fill) 40%, var(--line)); }
html[data-theme="night"] .rank-refined #modelMarketplace .route-slot-action { --rank-route-fill: #5fd0b3; --rank-route-ink: #10211b; }
html[data-theme="night"] .rank-refined #modelMarketplace .route-slot-action.route-tone-route1 { --rank-route-fill: #e9c177; }
.rank-refined #modelMarketplace .route-slot-action:hover:not(:disabled) { color: var(--rank-route-fill); border-color: var(--rank-route-fill); background: var(--panel-2); }
.rank-refined #modelMarketplace .route-slot-action.route-active { border-color: var(--rank-route-fill); background: var(--rank-route-fill); color: var(--rank-route-ink); opacity: 1; font-weight: 750; cursor: default; }
.rank-refined #modelMarketplace .route-slot-action.route-active:not(:disabled) { cursor: pointer; }
.rank-refined #modelMarketplace .route-slot-action.route-active::after { content: "✓"; position: absolute; top: -5px; right: 0; display: grid; place-items: center; width: 11px; height: 11px; border: 1px solid var(--rank-route-fill); border-radius: 50%; background: var(--panel); color: var(--rank-route-fill); font-size: 8px; font-weight: 800; line-height: 1; pointer-events: none; }
@media (min-width: 1440px) {
  /* Give the standard ranking room on wide screens without widening other workspaces. */
  .rank-refined #modelMarketplace[data-catalog-view="simple"] { width: calc(100% - clamp(80px, 8vw, 200px)); max-width: none; }
}
.rank-refined [data-catalog-view="simple"] #groupTableWrap table { min-width: 1130px; }
.rank-refined #groupTableWrap table { width: 100%; table-layout: fixed; }
.iq-test-column, .iq-test-cell { display: none; }
#groupTableWrap.iq-test-visible :is(.iq-test-column, .iq-test-cell) { display: table-cell; text-align: center; }
.iq-preview-button { display: flex; align-items: center; justify-content: center; width: 120px; max-width: 100%; height: 72px; margin-inline: auto; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--text-soft); overflow: hidden; font-size: 10px; }
.iq-preview-button :is(iframe, .iq-static-preview) { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; border-radius: 3px; }
.iq-static-preview { object-fit: contain; background: #fff; }
.iq-preview-button.is-playing .iq-static-preview { display: none; }
.mobile-group-iq-preview { display: none; }
.iq-status-button { padding: 4px 2px; border: 0; background: transparent; color: var(--muted); font-size: 11px; line-height: 1.5; }
.iq-preview-button:hover, .iq-status-button:hover { color: var(--cyan-text); border-color: var(--cyan-text); }
.iq-result-cell { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; max-width: 100%; height: 72px; overflow: hidden; line-height: 0; }
.iq-result-cell > .iq-preview-button { flex: 0 1 120px; min-width: 0; margin: 0; }
.iq-result-cell > .iq-refresh-button { width: 24px; height: 24px; border-radius: 5px; }
.iq-result-cell > .iq-status-button { line-height: 1.5; }
.iq-refresh-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; min-height: 0; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--cyan-text); cursor: pointer; }
.iq-refresh-button:disabled { cursor: default; opacity: .75; }
.iq-detail-head, .iq-result-target-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.iq-detail-head h4 { margin-block: 0 10px; }
.iq-result-target-row > p { flex: 1; min-width: 0; }
.iq-result-target-row > span { flex: 0 0 auto; }
.iq-empty { color: var(--muted); }
.rank-refined #groupTableWrap tr > :is(.platform-column, .platform-cell, .test-action-column, .test-action-cell, .group-vote-column, .group-vote-cell, #groupRouteColumn, .group-route-cell) { display: none; }
@media (min-width: 641px) {
  /* Compact information lanes preserve the existing ranking controls.
     Extra-long values can ellipsize; status, counts and original detail controls remain. */
  .rank-refined #groupTableWrap :is(th, td) { min-width: 0; max-width: none; padding: 12px 4px; white-space: normal; vertical-align: middle; font-size: 14px; }
  .rank-refined #groupTableWrap tbody tr[data-group-snapshot-id] { height: 88px; }
  .rank-refined #groupTableWrap th { padding-block: 13px; color: var(--muted); font-size: 13px; font-weight: 500; }
  .rank-refined #groupTableWrap th:first-child { width: 3.5%; }
  .rank-refined [data-catalog-view="simple"] .site-name-column { width: 8%; }
  .rank-refined [data-catalog-view="simple"] .group-name-column { width: 19%; }
  .rank-refined [data-catalog-view="simple"] .rate-column { width: 5.5%; }
  .rank-refined [data-catalog-view="simple"] #availability24hColumn { width: 11.5%; }
  .rank-refined [data-catalog-view="simple"] .latency-column { width: 4%; }
  .rank-refined [data-catalog-view="simple"] th.recommendation-cell { width: 6%; }
  .rank-refined [data-catalog-view="simple"] .veridrop-score-column { width: 6.5%; }
  .rank-refined [data-catalog-view="simple"] #groupTableWrap.iq-test-visible .iq-test-column { width: 128px; }
  .rank-refined [data-catalog-view="simple"] #groupTableWrap.iq-test-visible .group-name-column { width: 11%; }
  .rank-refined #groupTableWrap .iq-test-cell { padding-block: 4px; }
  .rank-refined #groupTableWrap.iq-test-visible .catalog-actions-cell { padding-block: 9px; }
  .rank-refined [data-catalog-view="simple"] .group-model-column { width: 7.5%; }
  .rank-refined [data-catalog-view="simple"] .refresh-time-column { width: 4%; }
  .rank-refined [data-catalog-view="simple"] .catalog-actions-column { width: 20%; }
  .rank-refined [data-catalog-view="simple"] .actual-balance-column { width: 4.5%; }
  /* Bound public group names and give remaining fixed-table width to actions.
     Use one auto column; mixed px/percentage calculations on th are unreliable. */
  .rank-refined.is-public-view [data-catalog-view="simple"] #groupTableWrap .group-name-column { width: 160px; }
  .rank-refined.is-public-view [data-catalog-view="simple"] #groupTableWrap .catalog-actions-column { width: auto; }
  .rank-refined.is-public-view [data-catalog-view="simple"] #groupTableWrap.iq-test-visible .rate-column { width: 6%; }
  .rank-refined.is-public-view [data-catalog-view="simple"] #groupTableWrap.iq-test-visible #availability24hColumn { width: 12.5%; }
  .rank-refined #groupTableWrap .rate-column { white-space: nowrap; }
  .rank-refined #groupTableWrap :is(.rank-identity-line, .rank-price-line, .rank-availability-line, .rank-action-line) { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
  .rank-refined #groupTableWrap .rank-identity-line { flex-direction: column; align-items: flex-start; gap: 5px; }
  .rank-refined #groupTableWrap .site-cell { flex: 1; min-width: 0; max-width: 100%; gap: 5px; line-height: 24px; }
  /* Site stays independent; platform precedes the name in the wider group cell. */
  .rank-refined [data-catalog-view="simple"] #groupTableWrap .site-cell { flex: 0 1 auto; max-width: clamp(76px, 6vw, 112px); }
  .rank-refined #groupTableWrap .site-dot { width: 6px; height: 6px; }
  .rank-refined #groupTableWrap :is(.site-link, .group-link) { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rank-refined #groupTableWrap .history-hover { min-width: 0; max-width: 100%; }
  .rank-refined #groupTableWrap .rank-group-name > .history-hover { display: block; flex: 1; }
  .rank-refined #groupTableWrap .rank-group-name > .auto-rate-topline { flex-basis: 100%; margin-bottom: 0; }
  .rank-refined #groupTableWrap .rank-group-name .group-link { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; line-height: 21px; }
  .rank-platform { flex: 0 0 auto; }
  .rank-platform .platform-pill { min-width: 0; min-height: 24px; height: auto; padding: 2px 6px; font-size: 12px; }
  .rank-group-name { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 3px 6px; min-width: 0; font-size: 14px; color: var(--text-soft); line-height: 21px; }
  .rank-refined #groupTableWrap .rank-group-name > .rank-platform,
  .rank-refined #groupTableWrap .rank-group-name > .group-name-with-site-filter {
    grid-column: 1;
    width: 100%;
    min-width: 0;
  }
  .rank-refined #groupTableWrap .rank-group-name > .rank-platform { justify-self: start; }
  .rank-refined #groupTableWrap .rank-group-name > .auto-rate-topline {
    grid-column: 1;
    min-width: 0;
  }
  .rank-refined #groupTableWrap .rate-cell { font-size: 21px; color: var(--primary); letter-spacing: -.5px; }
  .rank-refined #groupTableWrap .auto-rate-control { display: contents; }
  .rank-refined #groupTableWrap .auto-rate-current { font-size: 21px; line-height: 28px; }
  .rank-refined #groupTableWrap .rank-availability-line { flex-wrap: nowrap; justify-content: center; }
  .rank-refined #groupTableWrap .availability-24h { display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-width: 0; flex: 1 1 130px; width: 100%; max-width: 180px; }
  .rank-refined #groupTableWrap .availability-24h-summary { display: flex; align-items: baseline; justify-content: center; flex: 0 0 auto; gap: 5px; font-size: 13px; white-space: nowrap; }
  .rank-refined #groupTableWrap .availability-24h-summary strong { font-size: 14px; }
  .rank-refined #groupTableWrap .rank-sample-count { margin: 0; font-size: 10px; }
  .rank-refined #groupTableWrap .availability-24h-spark { flex: none; min-width: 28px; width: 100%; max-width: none; height: 32px; }
  .rank-refined #groupTableWrap .availability-24h-spark svg { width: 100%; height: 32px; }
  .rank-refined #groupTableWrap .rank-history-button { flex: 0 0 24px; width: 24px; height: 26px; padding: 0; font-size: 15px; }
  .rank-latency { font-size: 12px; color: var(--text-soft); white-space: nowrap; }
  .rank-refined #groupTableWrap :is(.latency-column, .latency-cell, .recommendation-cell, .veridrop-score-column, .veridrop-score-cell) { text-align: center; }
  .rank-refined #groupTableWrap :is(.availability-column-title, .score-column-title) { flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
  .rank-refined #groupTableWrap #availability24hColumn { text-align: center; }
  .rank-refined #groupTableWrap :is(.recommendation-pill, .veridrop-score-pill) { min-width: 0; max-width: 100%; font-size: 13px; padding: 5px 6px; white-space: nowrap; }
  .rank-refined #groupTableWrap .recommendation-pill { overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
  .rank-recommendation, .rank-credibility { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 28px; }
  .rank-refined #groupTableWrap .veridrop-score-control { min-width: 0; max-width: 100%; padding: 0; gap: 3px; flex-wrap: wrap; }
  .rank-refined #groupTableWrap .veridrop-score-action { min-width: 28px; height: 30px; padding: 3px; font-size: 12px; }
  .rank-model-line { display: flex; align-items: center; justify-content: center; min-width: 0; }
  .rank-refined #groupTableWrap .group-model-summary { min-width: 0; width: fit-content; max-width: min(128px, 100%); display: grid; align-content: center; justify-items: center; text-align: center; min-height: 42px; gap: 3px; padding: 5px 7px; }
  .rank-refined #groupTableWrap .group-model-item { display: block; font-size: 12px; font-weight: 600; line-height: 17px; white-space: nowrap; }
  .rank-refined #groupTableWrap .group-model-count { justify-content: center; font-size: 11px; background: transparent; }
  .rank-refined #groupTableWrap :is(.refresh-time-column, .rank-checked-at) { text-align: center; }
  .rank-refined #groupTableWrap .rank-checked-at { font-size: 12px; color: var(--muted); line-height: 18px; }
  .rank-checked-at > span { display: block; white-space: nowrap; }
  .rank-refined #groupTableWrap .rank-action-line { justify-content: flex-end; gap: 4px; }
  .rank-row-tools, .rank-refined #groupTableWrap .channel-actions, .rank-admin-actions .route-actions { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; margin: 0; justify-content: flex-end; }
  .rank-votes { min-width: 0; }
  .rank-refined #groupTableWrap .group-vote-actions { gap: 3px; flex-wrap: wrap; }
  .rank-refined #groupTableWrap :is(.test-button, .group-vote-button, .channel-actions button, .route-slot-action, .sub2api-bind-button) { width: auto; min-width: 30px; min-height: 32px; padding: 5px; font-size: 12px; line-height: 20px; }
  .rank-refined #groupTableWrap .test-button { min-width: 38px; }
  .rank-refined #groupTableWrap .group-vote-button { gap: 3px; }
  .rank-refined #groupTableWrap .group-vote-icon { width: 14px; height: 14px; }
  .rank-refined #groupTableWrap .channel-actions button { width: 30px; flex: 0 0 30px; font-size: 18px; }
  .rank-refined #groupTableWrap .channel-actions button.channel-favorite { width: auto; min-width: 54px; flex: 0 0 auto; padding: 5px 8px; font-size: 12px; }
  .rank-refined #groupTableWrap .rank-action-text { display: none; }
  .rank-refined #groupTableWrap .rank-action-icon { display: inline; }
  .rank-refined #groupTableWrap .rank-admin-actions { min-width: 0; position: relative; top: -3px; }
  .rank-refined #groupTableWrap .sub2api-bind-button { flex-wrap: wrap; max-width: 100%; }
}
@media (min-width: 1440px) {
  .rank-refined.is-public-view [data-catalog-view="simple"] #groupTableWrap .group-name-column { width: 200px; }
}
@media (min-width: 1800px) {
  /* Keep wide-screen controls on one line even when vote counts gain digits.
     Transfer the extra room from the group column, keeping site and group separate. */
  /* Fixed-layout tables do not reliably resolve mixed percentage/px math on th.
     A fixed action width and one automatic column preserve the remaining space. */
  .rank-refined:not(.is-public-view) #groupTableWrap .catalog-actions-column { width: 432px; }
  .rank-refined:not(.is-public-view) #groupTableWrap .group-name-column { width: auto; }
  .rank-refined #groupTableWrap :is(.rank-action-line, .rank-row-tools, .group-vote-actions, .channel-actions, .rank-admin-actions .route-actions, .sub2api-bind-button) { flex-wrap: nowrap; }
  .rank-refined #groupTableWrap .rank-action-line > * { flex: 0 0 auto; }
  .rank-refined #groupTableWrap.iq-test-visible .rank-action-line { flex-wrap: wrap; }
  .rank-refined.is-public-view [data-catalog-view="simple"] #groupTableWrap .group-name-column { width: 260px; }
  .rank-refined.is-public-view [data-catalog-view="simple"] #groupTableWrap.iq-test-visible .rank-action-line { flex-wrap: wrap; }
  .rank-refined:not(.is-public-view) [data-catalog-view="simple"] #groupTableWrap.iq-test-visible .catalog-actions-column { width: 338px; }
  .rank-refined:not(.is-public-view) [data-catalog-view="simple"] #groupTableWrap.iq-test-visible .group-name-column { width: auto; }
}
@media (min-width: 1920px) {
  .rank-refined.is-public-view [data-catalog-view="simple"] #groupTableWrap .group-name-column { width: 300px; }
}
@media (min-width: 2048px) {
  .rank-refined.is-public-view [data-catalog-view="simple"] #groupTableWrap .group-name-column { width: 350px; }
}
@media (min-width: 2400px) {
  .rank-refined:not(.is-public-view) #groupTableWrap :is(.catalog-actions-column, .group-name-column) { width: 20%; }
  .rank-refined:not(.is-public-view) [data-catalog-view="simple"] #groupTableWrap.iq-test-visible .catalog-actions-column { width: 20%; }
  .rank-refined:not(.is-public-view) [data-catalog-view="simple"] #groupTableWrap.iq-test-visible .group-name-column { width: 12%; }
  .rank-refined #groupTableWrap.iq-test-visible .rank-action-line { flex-wrap: nowrap; }
}
.rank-drawer-history .history-card-head { display: flex; margin: 18px 0 12px; }
.rank-drawer-history .history-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.rank-drawer-history .history-metrics > span { padding: 9px; border-radius: 7px; background: var(--panel-2); font-size: 11px; }
.rank-drawer-history .history-chart { width: 100%; height: auto; margin-top: 18px; }
.rank-drawer-history .history-foot { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; }
.rank-drawer-test { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.rank-drawer-test > button { width: 100%; min-height: 40px; }
.rank-mobile-checked { font-size: 10px; color: var(--text-soft); line-height: 1.8; margin-top: 10px; }
.rank-mobile-checked > span { color: var(--muted); margin-left: 6px; }
@media (min-width: 641px) and (max-width: 1200px) {
  .rank-refined .primary-filters { flex-wrap: wrap; }
  .rank-refined .market-search-field { flex-basis: 45%; }
  .rank-refined .primary-filters .model-filter-control { flex: 1 1 30%; max-width: none; }
  .rank-refined .primary-filters select { flex: 1; }
  .rank-refined [data-catalog-view="simple"] .table-wrap::after { content: "左右滑动查看"; position: sticky; left: 0; display: block; padding: 8px 12px; font-size: 11px; color: var(--muted); }
}
@media (max-width: 640px) {
  .rank-refined .hero-inner { padding: 18px 20px 12px; }
  .rank-refined .hero-copy { padding-right: 0; }
  .rank-refined .hero-copy h2 { font-size: 24px; margin-top: 9px; }
  .rank-refined .hero-copy > p { font-size: 11px; }
  .rank-refined .hero-actions { display: none; }
  .rank-refined .hero-bottom { width: calc(100% - 40px); gap: 7px 12px; padding-block: 10px; }
  .rank-refined .hero-stats { flex: 1 1 100%; }
  .rank-refined .hero-stats > div { flex-direction: row; gap: 5px; align-items: baseline; }
  .rank-refined .hero-stats strong { font-size: 18px; }
  .rank-refined .hero-data-note { margin-top: 0; flex: 1 1 140px; }
  .rank-refined .rank-overview-toggle { font-size: 10px; }
  .rank-refined .hero-channel-list { grid-template-columns: 1fr; gap: 0; }
  .rank-refined .provider-strip { display: none; }
  .rank-refined .page-section-heading { flex-wrap: wrap; gap: 9px; }
  .rank-refined .page-section-heading h2 { font-size: 21px; }
  .rank-heading-actions { gap: 12px; justify-content: flex-start; }
  .rank-heading-actions button { min-height: 32px; padding: 5px 10px; font-size: 10px; }
  .rank-refined .primary-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rank-refined .primary-filters .model-filter-control { grid-column: auto; max-width: none; min-width: 0; }
  .rank-refined .primary-filters .primary-filter-actions { grid-column: 1 / -1; }
  .rank-refined .table-head :is(.rank-model-shortcuts [data-rank-model], .catalog-presets button, .primary-filter-actions > button) { min-height: 34px; padding: 5px 8px; font-size: 11px; }
  .rank-refined .table-head .catalog-presets { gap: 5px; }
  .rank-platform-row { flex-direction: column; align-items: stretch; gap: 5px; }
  .rank-platform-label { display: none; }
  .platform-filter-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #platformFilterButtons .platform-filter-button { padding: 5px 4px; gap: 4px; font-size: 11px; min-height: 34px; }
  #platformFilterButtons .platform-filter-button::before { width: 14px; height: 14px; flex-basis: 14px; }
  .rank-refined .primary-filters .model-filter-control input { height: 38px; font-size: 11px; }
  .rank-refined .primary-filter-actions button { width: 100%; min-height: 32px; }
  .rank-refined .table-head .primary-filter-actions { gap: 4px; }
  .rank-refined .table-head .primary-filter-actions > button { padding-inline: 4px; }
  .rank-refined #clearFiltersBtn { gap: 3px; }
  .rank-refined #clearFiltersBtn .button-icon { width: 12px; height: 12px; }
  .rank-refined .market-search-field { min-width: 0; }
  .rank-model-row { align-items: start; gap: 8px; }
  .rank-model-row > span { font-size: 10px; padding-top: 8px; }
  .rank-model-shortcuts { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .rank-model-shortcuts button { flex: 0 0 auto; max-width: 175px; min-height: 32px; }
  .rank-list-meta { padding: 10px 12px; gap: 4px; flex-wrap: wrap; }
  .rank-refined .mobile-group-cards { padding-inline: 6px; gap: 8px; }
  .rank-refined .mobile-group-card { padding: 10px; gap: 4px; }
  /* Let multi-digit ranks grow before the site dot; only the site name may shrink. */
  .rank-refined .mobile-group-card-head { position: relative; grid-template-columns: minmax(25px, max-content) minmax(0, 1fr) auto auto; gap: 5px; --mobile-site-font-size: 15px; }
  .rank-refined .mobile-group-rank { white-space: nowrap; font-variant-numeric: tabular-nums; }
  .rank-refined .mobile-group-card-head .site-link { flex: 1 1 auto; font-size: var(--mobile-site-font-size); line-height: 1.2; }
  .rank-refined .mobile-group-card-head .platform-pill { min-width: 0; min-height: 24px; padding: 2px 7px; font-size: 11px; }
  .rank-refined .mobile-group-name { min-height: 28px; padding-left: 30px; font-size: 13px; line-height: 20px; }
  .rank-refined .mobile-group-card-head .ranking-site-actions { justify-self: end; }
  /* Reuse the empty gutter beside the group name instead of shortening the
     site name to make room for a second action in the heading. */
  .rank-refined #mobileGroupCards .ranking-site-visit-button { position: absolute; top: calc(100% + 4px); left: 0; }
  .rank-refined .mobile-group-main-metrics { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 2px 0 6px; }
  .rank-refined #mobileGroupCards .mobile-group-main-metrics.has-iq-preview { grid-template-columns: minmax(0, 1fr) auto; }
  .rank-refined #mobileGroupCards .mobile-group-main-metrics.has-iq-preview > .mobile-group-metric { grid-column: 1; grid-row: 1; }
  .rank-refined #mobileGroupCards .mobile-group-main-metrics.has-iq-preview > .mobile-group-recommendation { grid-column: 2; grid-row: 1; }
  .rank-refined #mobileGroupCards .mobile-group-main-metrics.has-iq-preview > .mobile-group-models { grid-column: 1 / -1; grid-row: 2; width: calc(100% - 72px); min-width: 0; }
  .rank-refined #mobileGroupCards .mobile-group-main-metrics.has-iq-preview > .mobile-group-iq-preview { grid-column: 2; grid-row: 2; }
  .rank-refined #mobileGroupCards .mobile-group-iq-preview { display: flex; align-items: flex-start; justify-content: flex-end; justify-self: end; width: 64px; height: 40px; min-width: 64px; min-height: 40px; }
  .rank-refined #mobileGroupCards .iq-preview-button.iq-mobile-preview-button { width: 64px; height: 40px; min-width: 64px; min-height: 40px; margin: 0; padding: 2px; border-radius: 6px; }
  .rank-refined #mobileGroupCards .iq-preview-button.iq-mobile-preview-button:focus-visible { outline-offset: 2px; }
  .rank-refined .mobile-group-main-metrics > span { display: flex; flex-direction: row; align-items: center; gap: 5px; min-width: 0; }
  .rank-refined .mobile-group-main-metrics > span > small { flex: 0 0 auto; align-self: center; }
  .rank-refined .mobile-group-main-metrics .auto-rate-current { font-size: 24px; }
  .rank-refined .mobile-group-main-metrics .mobile-group-models { grid-column: 1 / -1; grid-row: 2; width: 100%; text-align: left; }
  .rank-refined .mobile-group-main-metrics .rate-strong { min-height: 28px; font-size: 24px; color: var(--primary); }
  .rank-refined .mobile-group-main-metrics .recommendation-pill { min-width: 0; padding: 3px 7px; font-size: 11px; }
  .rank-refined .mobile-group-model-button { flex: 0 1 auto; align-items: center; justify-content: center; gap: 6px; text-align: left; width: fit-content; max-width: 100%; padding: 4px 7px; }
  .rank-mobile-model-results { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .rank-refined .mobile-group-model-name { max-width: 100%; white-space: nowrap; text-overflow: ellipsis; line-height: 16px; font-size: 11px; }
  .rank-refined .mobile-group-health { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 10px; padding-top: 2px; }
  .rank-refined .mobile-group-availability { grid-column: 1; grid-row: 1 / 3; display: block; min-width: 0; }
  .rank-mobile-availability-label { display: none; }
  .rank-refined .mobile-group-availability .availability-24h { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .rank-refined .mobile-group-availability .availability-24h-summary { display: flex; align-items: baseline; justify-content: center; gap: 5px; }
  .rank-refined .mobile-group-availability .availability-24h-summary strong { font-size: 14px; }
  .rank-refined .mobile-group-availability .rank-sample-count { margin-left: 0; font-size: 10px; }
  .rank-refined .mobile-group-availability .availability-24h-spark { width: 100%; height: 32px; }
  .rank-refined .mobile-group-availability .availability-24h-spark svg { width: 100%; height: 32px; }
  .rank-refined .mobile-group-latency, .rank-refined .mobile-group-veridrop { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 5px; }
  .rank-refined .mobile-group-latency { grid-column: 2; grid-row: 1; }
  .rank-refined .mobile-group-veridrop { grid-column: 2; grid-row: 2; }
  .rank-refined .mobile-group-veridrop :is(.veridrop-score-pill, .veridrop-score-action) { width: auto; min-width: 32px; min-height: 32px; height: auto; padding: 3px 5px; font-size: 12px; line-height: 20px; }
  .rank-mobile-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; border-top: 1px solid var(--line); margin-top: 2px; }
  .rank-refined .mobile-group-details { margin: 0; border: 0; }
  .rank-refined .mobile-group-details[open] { flex-basis: 100%; }
  .rank-refined .mobile-group-details summary { min-height: 32px; line-height: 32px; padding: 0; font-size: 11px; }
  .rank-refined .rank-mobile-checked { margin: 0; font-size: 10px; }
  .rank-refined .mobile-group-card-actions { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 3px; }
  .rank-refined .mobile-group-card-actions :is(.test-button, .group-vote-button, .route-button, .channel-actions button, .rank-history-button) { width: auto; min-width: 32px; min-height: 32px; padding: 4px 3px; font-size: 11px; line-height: 22px; }
  .rank-refined .mobile-group-card-actions .channel-actions button.channel-favorite { font-size: 12px; }
  .rank-refined .mobile-group-card-actions :is([data-channel-action="compare"], [data-channel-action="detail"]) .rank-action-icon { display: inline; font-size: 18px; }
  .rank-refined .mobile-group-card-actions :is([data-channel-action="compare"], [data-channel-action="detail"]) .rank-action-text { display: none; }
  /* Keep details with the other card tools; inherited flex: 1 otherwise
     stretches it across a separate row once vote counts take extra space. */
  .rank-refined .mobile-group-card-actions button[data-channel-action="detail"] { flex: 0 0 32px; width: 32px; }
  /* The history chart remains available from the details drawer; hide the
     duplicate mobile action so it cannot create another row in the card. */
  .rank-refined #modelMarketplace .mobile-group-card .rank-history-button { display: none; }
  .rank-refined .mobile-group-votes { margin: 0; min-width: 0; }
  .rank-refined .mobile-group-votes .group-vote-actions { flex-wrap: wrap; }
  .rank-refined .mobile-group-card-actions :is(.catalog-actions-cell, .channel-actions) { display: contents; }
  .rank-refined .rank-mobile-meta:has(.mobile-group-routes) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 6px; padding-top: 6px; }
  .rank-refined .rank-mobile-meta:has(.sub2api-bind-rate) { padding-top: 18px; }
  .rank-refined .rank-mobile-meta:has(.mobile-group-routes) .rank-mobile-checked { grid-column: 2; }
  .rank-refined .rank-mobile-meta:has(.mobile-group-routes) .mobile-group-details[open] { grid-column: 1 / -1; grid-row: 2; }
  .rank-refined .mobile-group-routes { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: 3px; flex-wrap: nowrap; }
  .rank-refined .mobile-group-routes .route-button { width: auto; min-width: 32px; min-height: 32px; padding: 4px 5px; font-size: 11px; line-height: 22px; }
  .rank-refined .mobile-group-card-head .site-cell a { white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; }
  .rank-refined .mobile-group-name .group-link { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
}

/* Homepage: recommendations, community choices and rankings share one page. */
.rank-refined .provider-strip { display: none; }
.rank-refined #home { width: min(1320px, calc(100% - 80px)); margin: 20px auto 0; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(115deg, var(--accent-soft), var(--panel) 75%); }
.rank-refined #home::before { display: none; }
.rank-refined #home .hero-inner { max-width: none; padding: 20px 24px 16px; }
.rank-refined #home .hero-topline { display: flex; align-items: center; flex-wrap: nowrap; min-width: 0; gap: 14px; }
.rank-refined #home .hero-topline .hero-eyebrow { flex: 0 0 auto; white-space: nowrap; }
.rank-refined #home .hero-tagline { padding-left: 8px; border-left: 1px solid var(--line); color: var(--primary); font-weight: 500; letter-spacing: 0; }
.rank-refined #home .hero-providers { display: flex; align-items: center; flex-wrap: nowrap; gap: 16px; min-width: 0; max-width: 100%; padding: 3px 2px 3px 14px; border-left: 1px solid var(--line); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.rank-refined #home .hero-providers::-webkit-scrollbar { display: none; }
.rank-refined #home .hero-providers:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
.rank-refined #home .hero-provider { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 4px; padding: 0; border: 0; background: none; color: rgb(var(--platform-rgb)); font-size: 11px; font-weight: 600; line-height: 18px; letter-spacing: 0; white-space: nowrap; }
.rank-refined #home .hero-provider::before { content: ""; width: 12px; height: 12px; flex: 0 0 12px; background: currentColor; -webkit-mask: var(--platform-icon) center / contain no-repeat; mask: var(--platform-icon) center / contain no-repeat; }
.rank-refined #home .hero-provider.platform-gemini::before { background: var(--platform-image) center / contain no-repeat; -webkit-mask: none; mask: none; }
.rank-refined #home .hero-provider.platform-openai { color: var(--platform-openai); }
.rank-refined #home .hero-provider.platform-anthropic { color: var(--anthropic); }
.rank-refined #home .hero-provider.platform-deepseek { color: #3f5cce; }
html[data-theme="night"] .rank-refined #home .hero-provider.platform-deepseek { color: #a0b4ff; }
.rank-refined #home .hero-copy { padding-right: 300px; }
.rank-refined #home .hero-copy h2 { color: var(--text-strong); font-size: 28px; margin: 7px 0; }
.rank-refined #home .hero-copy h2 span { background: none; -webkit-text-fill-color: currentColor; color: var(--primary); }
.rank-refined #home :is(.hero-eyebrow, .hero-copy > p, .hero-stats span, .hero-data-note, .rank-overview-toggle) { color: var(--muted); }
.rank-refined #home .hero-actions { display: flex; gap: 12px; }
.rank-refined #home .hero-primary { background: var(--primary); color: var(--panel); box-shadow: none; }
.rank-refined #home .hero-secondary { color: var(--primary); }
.rank-refined #home .hero-bottom { width: auto; max-width: none; margin-inline: 0; flex-direction: row; padding: 10px 24px; border-top: 1px solid var(--line); gap: 10px 22px; }
.rank-refined #home .hero-stats { gap: 20px; }
.rank-refined #home .hero-stats strong { color: var(--text-strong); font-size: 16px; }
.rank-refined #home .hero-preview { background: var(--panel); border: 1px solid var(--line); }
.rank-refined #home .hero-channel-copy strong { color: var(--text-strong); }
.rank-refined #summaryGrid { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: stretch; gap: 14px 18px; margin: 22px auto 28px; }
.rank-refined #summaryGrid > .recommendation-section-heading { grid-column: 1 / -1; order: 0; min-height: 30px; flex-direction: row; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; align-items: center; }
.rank-refined #summaryGrid .recommendation-section-heading h2 { font-size: 19px; margin: 0; line-height: 1.5; }
.rank-refined #summaryGrid .recommendation-section-heading .section-kicker { display: none; }
.rank-refined #summaryGrid > :is(#aiRecommendationCard, #siteRecommendationsCard) { grid-column: auto; order: 0; min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: none; }
.rank-refined #summaryGrid #siteRecommendationsCard { padding: 16px !important; }
.rank-refined #summaryGrid #aiRecommendationCard { display: flex; flex-direction: column; }
.rank-refined #summaryGrid .ai-recommendation-disclaimer { margin: 0; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.65; overflow-wrap: anywhere; }
.ai-recommendation-brand-settings { min-width: 0; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ai-recommendation-brand-settings legend { padding: 0 5px; color: var(--text); font-size: 12px; font-weight: 600; }
.ai-recommendation-brand-options { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 8px; }
.ai-recommendation-brand-option { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; cursor: pointer; }
.ai-recommendation-brand-option input { width: 16px; height: 16px; margin: 0; padding: 0; flex: 0 0 16px; accent-color: var(--primary); }
.ai-recommendation-brand-option .platform-pill { padding: 2px 7px; font-size: 11px; }
.ai-recommendation-brand-settings p { line-height: 1.6; }
.ai-recommendation-blocked-groups {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel-2) 80%, transparent);
}
.ai-recommendation-blocked-groups-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.ai-recommendation-blocked-groups-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.ai-recommendation-blocked-groups-head span,
.ai-recommendation-blocked-groups-empty {
  color: var(--muted);
  font-size: 11px;
}
.ai-recommendation-blocked-group-list { display: grid; gap: 5px; }
.ai-recommendation-blocked-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 5px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.ai-recommendation-blocked-group:first-child { border-top: 0; }
.ai-recommendation-blocked-group-label {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
}
.ai-recommendation-blocked-group-label strong,
.ai-recommendation-blocked-group-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-recommendation-blocked-group-label strong { color: var(--text-strong); }
.ai-recommendation-blocked-group-label em { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-style: normal; }
.ai-recommendation-blocked-group .compact-button { flex: 0 0 auto; min-height: 27px; padding: 4px 8px; font-size: 11px; }
.rank-refined #summaryGrid .ai-recommendation-content { display: flex; flex-direction: column; flex: 1; }
.rank-refined #summaryGrid .ai-recommendation-head { padding: 0 0 10px; gap: 6px 12px; }
.rank-refined #summaryGrid .ai-recommendation-primary-controls { flex-wrap: wrap; gap: 8px; }
.rank-refined #summaryGrid .ai-recommendation-title { font-size: 14px; font-weight: 650; color: var(--text-strong); }
.rank-refined #summaryGrid .ai-recommendation-title-icon { width: 22px; height: 22px; flex-basis: 22px; color: var(--primary); }
.rank-refined #summaryGrid .ai-recommendation-tabs { padding: 3px; }
.rank-refined #summaryGrid .ai-recommendation-tab { padding: 3px 12px; min-height: 28px; font-size: 11px; }
.rank-refined #summaryGrid .ai-recommendation-head-status { gap: 6px; font-size: 10px; }
.rank-refined #summaryGrid .ai-recommendation-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; gap: 8px; border: 0; padding: 0; }
.rank-refined #summaryGrid .ai-recommendation-category { padding: 8px 10px; gap: 0; box-shadow: none; border-radius: 10px; background: var(--panel-2); }
.rank-refined #summaryGrid .ai-recommendation-category-value { border-color: rgba(var(--primary-rgb), .25); background: linear-gradient(130deg, var(--accent-soft), var(--panel-2)); }
.rank-refined #summaryGrid .ai-recommendation-category-head { margin-bottom: 5px; }
.rank-refined #summaryGrid .recommendation-category-label { flex-direction: row; align-items: center; gap: 6px; }
.rank-refined #summaryGrid .recommendation-category-icon { width: 23px; height: 23px; border-radius: 6px; }
.rank-refined #summaryGrid .recommendation-category-icon svg { width: 15px; height: 15px; }
.rank-refined #summaryGrid .ai-recommendation-category-head strong { font-size: 12px; }
.rank-refined #summaryGrid .ai-recommendation-category-choices { display: block; }
.rank-refined #summaryGrid .ai-recommendation-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 6px; }
.rank-refined #summaryGrid .ai-recommendation-choice + .ai-recommendation-choice { margin-top: 4px; padding: 4px 0 0; border-left: 0; border-top: 1px solid var(--line); }
.rank-refined #summaryGrid .ai-recommendation-choice-head { grid-column: 1 / -1; flex-direction: row; flex-wrap: nowrap; align-items: baseline; justify-content: space-between; gap: 3px 8px; line-height: 18px; }
.rank-refined #summaryGrid .ai-recommendation-site { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.rank-refined #summaryGrid .ai-recommendation-choice-metrics { flex: 0 0 auto; font-size: 11px; font-variant-numeric: tabular-nums; }
.rank-refined #summaryGrid .ai-recommendation-group { grid-column: 1 / -1; text-align: left; padding: 0; line-height: 18px; background: none; color: #4267a5; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="night"] .rank-refined #summaryGrid .ai-recommendation-group { color: #9bbcf1; }
.rank-refined #summaryGrid :is(.ai-recommendation-reason, .ai-recommendation-alternative-meta) { min-width: 0; margin: 0; min-height: 0; line-height: 16px; font-size: 11px; -webkit-line-clamp: 1; }
.rank-refined #summaryGrid .ai-recommendation-reason { font-size: 10px; }
.rank-refined #summaryGrid .ai-recommendation-choice > .ai-recommendation-detail-trigger { min-height: 24px; height: auto; margin: 0; padding: 2px 4px; border: 0; background: var(--accent-soft); color: var(--primary); text-align: center; font-weight: 500; font-size: 10px; }
.rank-refined #summaryGrid .site-recommendations-head { min-height: 37px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rank-refined #summaryGrid .site-recommendations-head > div { flex-direction: row; align-items: center; gap: 3px 7px; }
.rank-refined #summaryGrid .site-recommendations-title { color: var(--text-strong); font-size: 14px; font-weight: 650; }
.rank-refined #summaryGrid .site-recommendations-controls { gap: 6px; }
.rank-refined #summaryGrid .site-recommendations-controls .icon-button { width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 3px; }
.rank-refined #summaryGrid .site-recommendation-item { min-height: 58px; padding: 9px 0; gap: 8px; border-bottom-color: var(--line); }
.rank-refined #summaryGrid .site-recommendation-rank { flex-basis: 24px; width: 24px; height: 24px; line-height: 24px; border-radius: 7px; background: var(--panel-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-refined #summaryGrid .site-recommendation-item:nth-child(-n+3) .site-recommendation-rank { color: var(--primary); background: var(--accent-soft); }
.rank-refined #summaryGrid .site-recommendation-copy { gap: 4px; }
.rank-refined #summaryGrid .site-recommendation-copy strong { font-size: 13px; font-weight: 650; }
.rank-refined #summaryGrid .site-recommendation-copy small { font-size: 10px; font-weight: 400; }
.rank-refined #summaryGrid .site-recommendation-detail-button { min-height: 30px; padding: 4px 7px; font-size: 10px; font-weight: 500; border-radius: 6px; background: var(--accent-soft); color: var(--primary); }
.rank-refined #summaryGrid .site-recommendations-more { color: var(--primary); min-height: 34px; margin-top: 4px; padding: 7px 0 0; font-size: 11px; font-weight: 500; }
.rank-refined #modelMarketplace .marketplace-heading { margin-bottom: 14px; }
.rank-refined #modelMarketplace .section-kicker { display: none; }
.rank-refined #modelMarketplace .marketplace-heading h2 { font-size: 21px; }
@media (min-width: 1440px) {
  .rank-refined :is(#summaryGrid, #home) { width: calc(100% - clamp(80px, 8vw, 200px)); max-width: none; }
}
@media (max-width: 1199px) {
  .rank-refined #home { width: calc(100% - 36px); }
  .rank-refined #summaryGrid { grid-template-columns: minmax(0, 1fr); }
  .rank-refined #summaryGrid .ai-recommendation-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .rank-refined #home .hero-copy { padding-right: 0; }
  .rank-refined #home .hero-actions { position: static; margin-top: 12px; }
  .rank-refined #summaryGrid .ai-recommendation-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rank-refined #home { margin-top: 12px; border-radius: 12px; }
  .rank-refined #home .hero-inner { padding: 14px 16px 12px; }
  .rank-refined #home .hero-topline { flex-direction: column; align-items: stretch; gap: 7px; }
  .rank-refined #home .hero-topline .hero-eyebrow { display: flex; font-size: 10px; letter-spacing: .2px; gap: 6px; }
  .rank-refined #home .hero-topline .hero-eyebrow::after { content: ""; height: 1px; flex: 1; margin-left: 4px; background: var(--line); }
  .rank-refined #home .hero-providers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 10px; padding: 0 0 4px; border: 0; overflow: visible; }
  .rank-refined #home .hero-provider { min-width: 0; font-size: 11px; gap: 4px; line-height: 20px; }
  .rank-refined #home .hero-provider::before { width: 11px; height: 11px; flex-basis: 11px; }
  .rank-refined #home .hero-copy h2 { font-size: 22px; letter-spacing: -.6px; }
  .rank-refined #home .hero-copy > p { font-size: 11px; line-height: 1.6; }
  .rank-refined #home .hero-bottom { padding: 9px 16px; gap: 5px 12px; }
  .rank-refined #home .hero-data-note { flex: 1 1 0; min-width: 0; grid-template-columns: 6px minmax(0, 1fr); padding-top: 0; border: 0; }
  .rank-refined #home .rank-overview-toggle { flex: 0 0 auto; align-self: center; }
  .rank-refined #home .hero-stats { gap: 12px; justify-content: space-between; }
  .rank-refined #home .hero-stats strong { font-size: 14px; }
  .rank-refined #home .hero-stats span { font-size: 9px; }
  .rank-refined #summaryGrid { margin-top: 16px; gap: 12px; margin-bottom: 22px; }
  .rank-refined #summaryGrid .recommendation-section-heading h2 { font-size: 16px; }
  .rank-refined #summaryGrid .recommendation-section-heading .section-text-link { font-size: 10px; }
  .rank-refined #summaryGrid > #aiRecommendationCard { padding: 12px; }
  .rank-refined #summaryGrid #siteRecommendationsCard { padding: 12px !important; }
  .rank-refined #summaryGrid .ai-recommendation-tabs { order: 3; flex: 1 0 100%; width: 100%; }
  .rank-refined #summaryGrid .ai-recommendation-tabs.has-extra-platforms { order: 3; flex: 1 0 100%; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; }
  .rank-refined #summaryGrid .ai-recommendation-tabs.has-extra-platforms .ai-recommendation-tab { gap: 4px; padding: 3px 5px; }
  .rank-refined #summaryGrid .ai-recommendation-title { flex: 0 0 auto; flex-wrap: nowrap; }
  .rank-refined #summaryGrid .ai-recommendation-update { order: 2; flex: 0 1 auto; }
  .rank-refined #summaryGrid .ai-recommendation-meta { flex: 0 0 auto; min-width: 0; max-width: 100%; }
  .rank-refined #summaryGrid .ai-recommendation-head-status { display: none; }
  .rank-refined .quick-filter-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; flex: 0 0 100%; width: 100%; min-width: 0; gap: 0 8px; margin: 4px 0 0; }
  .rank-refined .quick-filter-meta .leaderboard-refresh-age { flex-basis: auto; margin: 0; min-width: 0; max-width: 100%; }
  .rank-refined .quick-filter-meta .rank-metric-guide { font-size: 10px; }
  .rank-refined .quick-filter-meta .rank-metric-guide summary { min-height: 28px; line-height: 28px; white-space: nowrap; }
  #appView.is-public-view.rank-refined .quick-filter-meta { grid-column: 1 / -1; display: grid; }
  .rank-refined #summaryGrid .ai-recommendation-category-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rank-refined #summaryGrid .ai-recommendation-category { padding: 9px; }
  .rank-refined #summaryGrid .ai-recommendation-category.has-choices { display: grid; grid-template-columns: minmax(0, 1fr); }
  .rank-refined #summaryGrid .ai-recommendation-category.has-choices > .ai-recommendation-category-head { grid-area: 1 / 1; align-self: start; min-height: 28px; max-width: calc(50% - 49px); margin: 0; z-index: 1; }
  .rank-refined #summaryGrid .ai-recommendation-category.has-choices > .ai-recommendation-category-choices { grid-area: 1 / 1; }
  .rank-refined #summaryGrid .recommendation-category-label { min-width: 0; gap: 4px; }
  .rank-refined #summaryGrid .ai-recommendation-category-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rank-refined #summaryGrid .ai-recommendation-choice + .ai-recommendation-choice { margin: 0; padding: 0; border-top: 0; border-left: 0; }
  .rank-refined #summaryGrid .ai-recommendation-choice:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--line); }
  .rank-refined #summaryGrid .ai-recommendation-choice { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 28px auto auto auto; align-content: start; }
  .rank-refined #summaryGrid .ai-recommendation-choice-head { display: contents; }
  .rank-refined #summaryGrid .ai-recommendation-site { grid-column: 1; grid-row: 2; font-size: 12px; line-height: 18px; text-align: left; }
  .rank-refined #summaryGrid .ai-recommendation-site-label { flex: 1 1 auto; }
  .rank-refined #summaryGrid #aiRecommendationCard .ai-recommendation-site .ai-recommendation-badge { display: none; }
  .rank-refined #summaryGrid .ai-recommendation-choice-metrics { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: flex-end; align-self: start; font-size: 10px; line-height: 18px; white-space: nowrap; }
  .rank-refined #summaryGrid .ai-recommendation-group { grid-column: 1 / -1; grid-row: 3; }
  .rank-refined #summaryGrid .ai-recommendation-choice > .ai-recommendation-detail-trigger { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; min-height: 28px; }
  .rank-refined #summaryGrid :is(.ai-recommendation-reason, .ai-recommendation-alternative-meta) { grid-column: 1 / -1; grid-row: 4; font-size: 10px; -webkit-line-clamp: 2; }
  .rank-refined #summaryGrid .ai-recommendation-reason { font-size: 9px; }
  .rank-refined #summaryGrid .ai-recommendation-category-head strong { font-size: 11px; }
  .rank-refined #summaryGrid .recommendation-category-icon { width: 18px; height: 18px; flex: 0 0 18px; }
  .rank-refined #summaryGrid .site-recommendation-item { min-height: 53px; padding: 7px 0; }
}

.ai-recommendation-card { position: relative; }
.ai-recommendation-actions { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.ai-recommendation-actions:not(:has(button:not(.hidden))) { display: none; }
.ai-recommendation-settings-button.icon-button { width: 26px; min-width: 26px; height: 26px; min-height: 26px; padding: 4px; border-radius: 5px; color: var(--cyan-text); }
.ai-recommendation-settings-button svg { width: 16px; height: 16px; }
.ai-recommendation-title { position: relative; }
.ai-recommendation-carousel-progress { position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; overflow: hidden; border-radius: 2px; background: var(--accent-soft); pointer-events: none; }
.ai-recommendation-carousel-progress > span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--primary); }
.ai-recommendation-carousel-progress[data-state="stopped"] > span { background: var(--muted); }
#aiRecommendationTabs { position: relative; isolation: isolate; }
#aiRecommendationTabs .ai-recommendation-tab { position: relative; z-index: 1; }
#aiRecommendationTabIndicator { position: absolute; z-index: 0; pointer-events: none; border-radius: 20px; transform-origin: 0 0; background: color-mix(in srgb, var(--indicator-color, var(--primary)) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--indicator-color, var(--primary)) 36%, transparent); }
#aiRecommendationTabs.has-tab-indicator .ai-recommendation-tab.is-active { background: transparent; box-shadow: none; }
#aiRecommendationSettingsModal .ai-recommendation-settings-modal-panel { width: min(820px, 100%); }
#aiRecommendationSettingsModal .ai-recommendation-settings { margin: 0; border: 0; padding: 0; background: none; }
#aiRecommendationSettingsModal .ai-recommendation-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#aiRecommendationSettingsModal .ai-recommendation-url-field { grid-column: auto; }
.ai-recommendation-carousel-setting { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ai-recommendation-carousel-setting input { width: 84px; min-width: 0; }
@media (max-width: 640px) {
  .ai-recommendation-update { gap: 5px; }
  .ai-recommendation-blocked-groups-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .ai-recommendation-blocked-group-label { gap: 4px; }
  #aiRecommendationSettingsModal .ai-recommendation-settings-grid { grid-template-columns: minmax(0, 1fr); }
  #aiRecommendationSettingsModal .modal-body { padding: 14px; }
  #aiRecommendationSettingsModal .ai-recommendation-settings-footer { flex-wrap: wrap; }
}

/* AI recommendations start with two choices on every screen. Desktop keeps
   full-width rows; the shared more action reveals the remaining pair. */
@media (min-width: 641px) {
  .rank-refined #summaryGrid .ai-recommendation-choice {
    grid-template-rows: 18px 16px 26px;
    align-content: start;
  }
  .rank-refined #summaryGrid .ai-recommendation-choice-head { display: contents; }
  .rank-refined #summaryGrid .ai-recommendation-site { grid-column: 1; grid-row: 1; line-height: 18px; }
  .rank-refined #summaryGrid .ai-recommendation-choice-metrics {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    line-height: 18px;
  }
  .rank-refined #summaryGrid .ai-recommendation-group { grid-column: 1 / -1; grid-row: 2; line-height: 16px; }
  .rank-refined #summaryGrid .ai-recommendation-choice > .ai-recommendation-detail-trigger {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }
  .rank-refined #summaryGrid :is(.ai-recommendation-reason, .ai-recommendation-alternative-meta) {
    grid-column: 1;
    grid-row: 3;
    display: -webkit-box;
    max-height: 26px;
    line-height: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
.ai-recommendation-availability-mini { display: none; }
@media (min-width: 641px) {
  .rank-refined #summaryGrid .ai-recommendation-choice.has-mini-availability {
    grid-template-columns: minmax(0, 1fr) auto 76px;
  }
  .rank-refined #summaryGrid .has-mini-availability .ai-recommendation-group {
    grid-column: 1 / 3;
  }
  .rank-refined #summaryGrid .has-mini-availability > .ai-recommendation-detail-trigger {
    grid-column: 3;
  }
  .rank-refined #summaryGrid .has-mini-availability > :is(.ai-recommendation-reason, .ai-recommendation-alternative-meta) {
    grid-column: 1 / 3;
  }
  .rank-refined #summaryGrid .ai-recommendation-availability-mini {
    display: flex;
    flex-direction: column;
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    width: 76px;
    height: 26px;
    min-width: 0;
    overflow: hidden;
  }
  .rank-refined #summaryGrid .ai-recommendation-availability-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    flex: 0 0 12px;
    min-width: 0;
    height: 12px;
    line-height: 12px;
    white-space: nowrap;
  }
  .rank-refined #summaryGrid .ai-recommendation-availability-window {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
  }
  .rank-refined #summaryGrid .ai-recommendation-availability-separator {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 9px;
    white-space: pre;
  }
  .rank-refined #summaryGrid .ai-recommendation-availability-rate { flex: 0 0 auto; color: var(--success-text); }
  .rank-refined #summaryGrid .ai-recommendation-availability-mini.is-warn .ai-recommendation-availability-rate { color: var(--warning-text); }
  .rank-refined #summaryGrid .ai-recommendation-availability-mini.is-danger .ai-recommendation-availability-rate { color: var(--danger-text); }
  .rank-refined #summaryGrid .ai-recommendation-availability-mini .availability-24h-spark,
  .rank-refined #summaryGrid .ai-recommendation-availability-mini .availability-24h-spark svg {
    width: 76px;
    max-width: 100%;
    height: 14px;
  }
  .rank-refined #summaryGrid .ai-recommendation-availability-mini .availability-24h-spark svg {
    width: var(--ai-mini-chart-width, 100%);
  }
  .ai-recommendation-availability-mini .availability-24h-spark path { stroke-width: 1; }
  .ai-recommendation-availability-rate {
    display: block;
    height: 12px;
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
}
#aiRecommendationContent .ai-recommendation-more {
  --recommendation-more-color: #2563eb;
  --recommendation-more-hover: #1d4ed8;
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 40;
  justify-self: end;
  gap: 4px;
  margin-top: 2px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--recommendation-more-color);
  font-size: 10px;
  line-height: 18px;
  white-space: nowrap;
}
html[data-theme="night"] #aiRecommendationContent .ai-recommendation-more {
  --recommendation-more-color: #93c5fd;
  --recommendation-more-hover: #bfdbfe;
}
#aiRecommendationContent .ai-recommendation-more:hover,
#aiRecommendationContent .ai-recommendation-more:focus-visible {
  color: var(--recommendation-more-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#aiRecommendationContent .ai-recommendation-category:not(.is-expanded) .ai-recommendation-choice:nth-child(n + 3) {
  display: none;
}
#aiRecommendationContent .ai-recommendation-category.is-expanded .ai-recommendation-more {
  display: none;
}
@media (min-width: 641px) {
  #aiRecommendationContent .ai-recommendation-category.has-more-choices:not(.is-expanded) .ai-recommendation-category-head {
    padding-right: 72px;
  }
  #aiRecommendationContent .ai-recommendation-more {
    position: absolute;
    top: 8px;
    right: 10px;
    margin-top: 0;
  }
}
