* {
  box-sizing: border-box;
}

.saved-results-drawer-backdrop {
  position: fixed;
  z-index: 76;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 64%, transparent);
}

.saved-results-drawer-backdrop[hidden],
.saved-results-drawer[hidden] {
  display: none;
}

.saved-results-drawer {
  position: fixed;
  z-index: 77;
  top: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: min(340px, 100vw);
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  animation: saved-results-drawer-enter var(--motion-standard);
}

@keyframes saved-results-drawer-enter {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

.saved-results-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5) var(--space-3);
}

.saved-results-drawer-header .eyebrow {
  margin: 0 0 var(--space-1);
}

.saved-results-drawer-header h2 {
  margin: 0;
  font-size: var(--text-title);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  line-height: 1.05;
}

.saved-results-drawer-close {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-title);
  font-weight: var(--weight-medium);
  line-height: 1;
  transition:
    background var(--motion-standard),
    border-color var(--motion-standard),
    color var(--motion-standard);
}

.saved-results-drawer-close:hover,
.saved-results-drawer-close:focus-visible {
  border-color: var(--color-brand-hot);
  color: var(--color-brand-hot);
}

.saved-results-drawer-close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.saved-results-drawer-filter {
  display: block;
  padding: 0 var(--space-5) var(--space-4);
}

.saved-results-drawer-filter input {
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
}

.saved-results-drawer-filter input:focus {
  outline: none;
  border-color: var(--color-brand-hot);
  box-shadow: var(--focus-ring);
}

.saved-results-drawer-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: var(--space-1);
  overflow-y: auto;
  padding: 0 var(--space-3) var(--space-4);
  scrollbar-gutter: stable;
}

.saved-results-drawer-row {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    background var(--motion-standard),
    border-color var(--motion-standard),
    color var(--motion-standard),
    transform var(--motion-standard);
}

.saved-results-drawer-row:hover,
.saved-results-drawer-row:focus-visible {
  border-color: color-mix(in srgb, var(--color-brand-hot) 46%, var(--line));
  background: color-mix(in srgb, var(--field) 80%, var(--color-brand-hot) 20%);
}

.saved-results-drawer-row:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.saved-results-drawer-row:active {
  transform: scale(0.99);
}

.saved-results-drawer-row.is-current {
  border-color: var(--color-brand-hot);
  background: color-mix(in srgb, var(--field) 84%, var(--color-brand-hot) 16%);
}

.saved-results-drawer-row.is-quiet {
  color: var(--muted);
}

.saved-results-drawer-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.saved-results-drawer-copy strong,
.saved-results-drawer-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-results-drawer-copy strong {
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
}

.saved-results-drawer-copy small {
  color: var(--muted);
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
}

.saved-results-drawer-marker {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}

.saved-results-drawer-marker span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--line);
}

.saved-results-drawer-marker.is-active::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid var(--color-brand-hot);
  border-radius: var(--radius-pill);
}

.saved-results-drawer-marker.is-active span {
  background: var(--color-brand-hot);
}

.saved-results-drawer-count {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  line-height: 1;
  white-space: nowrap;
}

.saved-results-drawer-count.has-new {
  background: var(--color-brand-hot);
  color: var(--source-ink-on-color);
}

.saved-results-drawer-empty {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-5);
  color: var(--muted);
  font-size: var(--text-caption);
}

.saved-results-drawer-empty strong {
  color: var(--ink);
  font-weight: var(--weight-bold);
}

.saved-results-drawer-footer {
  padding: var(--space-3);
  border-top: 1px solid var(--line);
}

.saved-results-drawer-footer button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  text-align: left;
  transition:
    background var(--motion-standard),
    border-color var(--motion-standard),
    color var(--motion-standard);
}

.saved-results-drawer-footer button:hover,
.saved-results-drawer-footer button:focus-visible {
  border-color: var(--color-brand-hot);
  color: var(--color-brand-hot);
}

.saved-results-drawer-footer button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

body.saved-results-drawer-mobile-open {
  overflow: hidden;
}

@media (min-width: 1920px) {
  .saved-results-drawer[data-drawer-mode="docked"] {
    top: 0;
    bottom: 0;
    left: 0;
    width: 320px;
  }
}

@media (max-width: 720px) {
  .saved-results-drawer {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: min(88vw, 360px);
    max-height: none;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    box-shadow: var(--shadow-action-sheet);
  }

  .saved-results-drawer-header {
    padding: var(--space-4) var(--space-4) var(--space-3);
  }

  .saved-results-drawer-filter {
    padding: 0 var(--space-4) var(--space-3);
  }

  .saved-results-drawer-list {
    padding-right: var(--space-2);
    padding-left: var(--space-2);
  }
}

@media (max-width: 720px) {
  .featured-home-section.is-watched-gear {
    padding: 16px;
    border-radius: 22px;
  }

  .watched-gear-placeholder {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
    padding: 16px;
  }

  .watched-placeholder-art {
    width: min(100%, 240px);
  }

  .watched-placeholder-action {
    justify-self: start;
  }
}

:root {
  --page-max-width: 1280px;
  --brand-logo-max-width: 333px;
  --gear-scanner-scene-max-height: 282px;
  --gear-scanner-scene-offset: -18px;
  --select-brand-chevron: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 7L9 11.5L13.5 7' stroke='%23ff00ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  transition: background var(--motion-standard), color var(--motion-standard);
}

body.modal-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:is(
  .quick-search-submit,
  .quick-search-clear,
  .mobile-search-submit,
  .theme-toggle,
  .saved-trigger,
  .watching-trigger,
  .watch-button,
  .source-avatar,
  .source-filter-avatar,
  .source-assist-avatar,
  .term-row-icon,
  .term-remove-button,
  .exclude-tag-remove,
  .back-to-top,
  .featured-carousel-control
) {
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  width: 100%;
  max-width: var(--page-max-width);
  min-height: 100vh;
  margin-inline: auto;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  background: var(--panel-soft);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-actions {
  display: flex;
  gap: 8px;
}

.brand-region-cluster {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
}

.region-selector {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  z-index: 8;
  pointer-events: auto;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-home-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.brand-home-link:hover .brand-logo {
  transform: translateY(-2px);
}

.brand-home-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 8px;
  border-radius: var(--radius-control);
}

.region-badge {
  position: relative;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--ink));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: none;
}

.region-popover-trigger::after {
  content: "▾";
  color: var(--brand-gradient-start);
  font-size: 10px;
  transform: translateY(-1px);
}

.region-native-select {
  display: block;
  width: auto;
  min-width: 112px;
  height: 30px;
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--select-brand-chevron);
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding: 0 34px 0 12px;
  line-height: normal;
}

.region-badge:hover,
.region-badge:focus-visible,
.region-badge.is-hovered,
.region-badge[aria-expanded="true"] {
  border-color: var(--brand-gradient-end);
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(0, 114, 255, 0.12), 0 12px 28px rgba(15, 23, 42, 0.08);
}

.region-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 80;
  display: grid;
  width: min(260px, 78vw);
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card-large);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.region-popover[hidden] {
  display: none;
}

.region-popover-list {
  display: grid;
  gap: 4px;
}

.region-popover-option,
.region-popover-settings {
  display: grid;
  width: 100%;
  align-items: center;
  border: 0;
  border-radius: var(--radius-card-list);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  text-align: left;
  transition: none;
}

.region-popover-option {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 12px;
}

.region-popover-option:hover,
.region-popover-option:focus-visible,
.region-popover-settings:hover,
.region-popover-settings:focus-visible {
  background: color-mix(in srgb, var(--color-panel) 82%, var(--panel));
  outline: none;
}

.region-popover-option.is-active {
  background: var(--ink);
  color: var(--panel);
}

.region-popover-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.region-popover-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-popover-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.region-popover-option.is-active .region-popover-meta {
  color: color-mix(in srgb, var(--panel) 72%, transparent);
}

.region-popover-check {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.region-popover-settings {
  margin-top: 3px;
  padding: 10px 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  justify-items: start;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 800;
  font-size: 22px;
}

.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
  color: var(--ink);
  cursor: pointer;
}

.theme-icon {
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.site-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.site-icon-saved-search {
  -webkit-mask-image: url("assets/ICONS-site/icon-saved-search.svg");
  mask-image: url("assets/ICONS-site/icon-saved-search.svg");
}

.site-icon-watched {
  -webkit-mask-image: url("assets/ICONS-site/icon-watched.svg");
  mask-image: url("assets/ICONS-site/icon-watched.svg");
}

.site-icon-settings {
  -webkit-mask-image: url("assets/ICONS-site/icon-settings.svg");
  mask-image: url("assets/ICONS-site/icon-settings.svg");
}

.header-action-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: currentColor;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  transition: color var(--motion-fast), filter var(--motion-fast), transform var(--motion-fast);
}

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

.brand-logo {
  display: block;
  width: clamp(230px, 26vw, var(--brand-logo-max-width));
  height: auto;
  aspect-ratio: 600.6 / 163.8;
  transition: none;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.saved-panel h2,
.listing-card h3 {
  margin: 0;
}

.brand h1 {
  font-size: 21px;
}

.brand-logo-stage {
  position: relative;
  display: inline-grid;
  align-items: center;
}

.brand-wave-wrap {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: clamp(92px, 9vw, 142px);
  overflow: hidden;
  color: var(--ink);
  cursor: crosshair;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.brand-wave-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.brand-wave-path {
  fill: none;
  stroke: url("#brandWaveGradient");
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.brand-logo-stage h1 {
  position: relative;
}

.brand p,
.eyebrow,
label span,
.search-terms-field > span,
.refine-terms-field > span,
legend,
.status-strip span,
.listing-meta,
.price-row span {
  color: var(--muted);
}

.brand p {
  margin-top: 2px;
  font-size: 13px;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-terms-field {
  --quick-search-left-padding: 24px;
  --quick-search-submit-size: 38px;
  --quick-search-submit-inset: 7px;
  --quick-search-refine-gap: 10px;
  --quick-search-refine-width: 108px;
  --quick-search-right-padding: calc(var(--quick-search-submit-inset) + var(--quick-search-submit-size) + var(--quick-search-refine-gap) + var(--quick-search-refine-width) + 14px);
  --quick-search-clear-space: 0px;
  --quick-search-extra-space: 0px;
  --quick-search-placeholder-size: 18px;
  --quick-search-placeholder-line: 48px;

  display: flex;
  position: relative;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.search-terms-field.has-clear-search {
  --quick-search-clear-space: 40px;
}

.search-terms-field.has-extra-terms {
  --quick-search-extra-space: 74px;
}

.terms-state-field {
  display: block;
}

.search-summary-pill,
.quick-search-input {
  display: grid;
  width: 100%;
  height: 48px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(var(--color-search-field), var(--color-search-field)) padding-box,
    var(--brand-gradient) border-box;
  color: var(--color-search-ink);
  padding: 12px 24px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 400;
  text-align: left;
}

.search-summary-pill:hover,
.search-summary-pill:focus-visible,
.quick-search-input:hover,
.quick-search-input:focus-visible {
  border-color: transparent;
  background:
    linear-gradient(var(--color-search-field), var(--color-search-field)) padding-box,
    var(--brand-gradient) border-box;
  box-shadow: none;
  outline: none;
}

body[data-theme="dark"] .search-summary-pill,
body[data-theme="dark"] .quick-search-input {
  background:
    linear-gradient(var(--color-search-field), var(--color-search-field)) padding-box,
    var(--brand-gradient) border-box;
  color: var(--color-search-ink);
}

.quick-search-input {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  min-height: 48px;
  padding-right: calc(var(--quick-search-right-padding) + var(--quick-search-clear-space) + var(--quick-search-extra-space));
  overflow: hidden;
  overflow-y: hidden;
  resize: none;
  line-height: 1.15;
  white-space: nowrap;
  cursor: text;
  transition: none;
}

.quick-search-input::-webkit-search-decoration,
.quick-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.quick-search-placeholder {
  position: absolute;
  top: calc(2px + var(--quick-search-vertical-padding) + var(--quick-search-placeholder-optical-nudge) - 2px);
  right: var(--quick-search-right-padding);
  left: var(--quick-search-left-padding);
  display: block;
  height: calc(var(--quick-search-font-size) * var(--quick-search-line-height));
  overflow: hidden;
  color: var(--color-search-ink);
  font-size: var(--quick-search-placeholder-size);
  font-weight: 400;
  line-height: calc(var(--quick-search-font-size) * var(--quick-search-line-height));
  pointer-events: none;
  transition: opacity var(--motion-standard);
  white-space: nowrap;
}

.quick-search-placeholder-terms {
  position: relative;
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.quick-search-placeholder-text {
  display: block;
  width: 100%;
  overflow: hidden;
  max-width: 100%;
  opacity: 1;
  text-overflow: ellipsis;
}

.quick-search-input:focus ~ .quick-search-placeholder,
.quick-search-input:not(:placeholder-shown) ~ .quick-search-placeholder {
  opacity: 0;
}

.quick-search-suggestions {
  display: flex;
  width: calc(100% - var(--quick-search-left-padding));
  max-width: calc(100% - var(--quick-search-left-padding));
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-left: var(--quick-search-left-padding);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 2px 2px 4px 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent);
  scrollbar-width: none;
}

.quick-search-suggestions::-webkit-scrollbar {
  display: none;
}

.quick-search-suggestions[hidden] {
  display: none;
}

.quick-search-link-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 16px;
  margin-top: 0;
  padding-inline: clamp(16px, 2.2vw, 28px);
}

.quick-search-save-link {
  display: inline-flex;
  min-width: 112px;
  min-height: 16px;
  align-items: center;
  justify-content: flex-end;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition:
    color var(--motion-fast),
    text-decoration-color var(--motion-fast);
}

.quick-search-save-link:hover,
.quick-search-save-link:focus-visible {
  color: var(--color-brand-hot);
  outline: none;
  text-decoration-color: currentColor;
}

.quick-search-save-link:focus-visible {
  box-shadow: 0 2px 0 var(--color-brand-hot);
}

.quick-search-save-link.is-saved {
  color: var(--brand-gradient-start);
}

.quick-search-save-link:disabled {
  color: color-mix(in srgb, var(--muted) 54%, transparent);
  cursor: default;
  text-decoration-color: transparent;
}

.quick-search-suggestion {
  display: inline-flex;
  min-height: var(--control-suggestion-height);
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--field) 88%, var(--accent) 12%);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast),
    color var(--motion-fast);
}

.quick-search-suggestion:hover,
.quick-search-suggestion:focus-visible {
  border-color: var(--color-brand-hot);
  background: color-mix(in srgb, var(--field) 76%, var(--color-brand-hot) 24%);
  outline: none;
}

.quick-search-suggestion:focus-visible {
  box-shadow: var(--focus-ring);
}

.quick-search-save,
.quick-search-refine,
.quick-search-extra,
.quick-search-clear,
.quick-search-submit {
  position: absolute;
  top: calc(var(--quick-search-height, 48px) / 2);
  right: 7px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transform: translateY(-50%);
}

.quick-search-refine {
  right: calc(var(--quick-search-submit-inset) + var(--quick-search-submit-size) + var(--quick-search-refine-gap));
  display: inline-flex;
  width: var(--quick-search-refine-width);
  height: min(var(--control-refine-action-height), calc(var(--quick-search-height, 48px) - 14px));
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #686868;
  font-size: clamp(15px, 1.55vw, 22px);
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.quick-search-refine .refine-icon {
  width: clamp(28px, 2.5vw, 34px);
  height: clamp(28px, 2.5vw, 34px);
}

.quick-search-refine:hover,
.quick-search-refine:focus-visible {
  outline: none;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--color-brand-hot);
  text-underline-offset: 4px;
}

.quick-search-refine:hover .refine-icon,
.quick-search-refine:focus-visible .refine-icon {
  animation: refineKnobTurn 2.4s ease-in-out infinite;
}

.quick-search-refine:active {
  transform: translateY(-50%) scale(0.96);
}

body[data-theme="dark"] .quick-search-refine {
  color: #f2f4f4;
}

.quick-search-extra {
  right: calc(var(--quick-search-right-padding) + 48px);
  width: auto;
  min-width: 58px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--field));
  color: var(--accent);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.search-terms-field.has-clear-search .quick-search-extra {
  right: calc(var(--quick-search-right-padding) + 48px);
}

.quick-search-extra[hidden] {
  display: none;
}

.quick-search-clear {
  right: calc(var(--quick-search-submit-inset) + var(--quick-search-submit-size) + var(--quick-search-refine-gap) + var(--quick-search-refine-width) + 8px);
  display: flex;
  width: var(--control-search-clear);
  height: var(--control-search-clear);
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--field) 84%, transparent);
  color: color-mix(in srgb, var(--ink) 62%, var(--muted));
  font-size: 0;
  font-weight: 900;
  line-height: 1;
}

.quick-search-clear::before {
  content: "×";
  display: block;
  font-size: 20px;
  line-height: 1;
}

.quick-search-clear[hidden] {
  display: none;
}

.quick-search-save {
  right: 50px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--field) 80%, transparent);
  color: color-mix(in srgb, var(--ink) 56%, var(--muted));
  font-size: 23px;
  line-height: 1;
}

.quick-search-save.is-saved {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--field));
  color: var(--accent);
}

.quick-search-save:disabled {
  opacity: 0;
  pointer-events: none;
}

.quick-search-submit::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11.8' cy='11.3' r='5.5' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3Cline x1='15.7' y1='15.2' x2='21.3' y2='20.8' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.quick-search-save:hover,
.quick-search-save:focus-visible,
.quick-search-clear:hover,
.quick-search-clear:focus-visible,
.quick-search-submit:hover,
.quick-search-submit:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.mobile-search-overlay {
  display: none;
}

.mobile-search-overlay-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--field) 88%, transparent);
  box-shadow: 0 18px 44px rgba(20, 24, 28, 0.18);
  padding: 6px;
  backdrop-filter: blur(18px) saturate(1.12);
}

.mobile-search-overlay input {
  height: 42px;
  min-width: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #686868;
  font-size: 18px;
  font-weight: 500;
  line-height: 42px;
  padding: 0 12px;
}

.mobile-search-overlay input:focus {
  box-shadow: none;
}

.mobile-search-submit {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(to bottom left, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
  cursor: pointer;
  padding: 0;
}

.mobile-search-submit::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11.8' cy='11.3' r='5.5' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3Cline x1='15.7' y1='15.2' x2='21.3' y2='20.8' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mobile-search-submit:focus-visible,
.mobile-search-overlay input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.search-summary-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-summary-count {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--button-bg);
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.search-summary-arrow {
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.search-mode-control,
.quality-mode-inline {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--button-bg);
}

.search-mode-control {
  grid-template-columns: 1fr 1fr;
  min-height: 42px;
}

.quality-mode-inline {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.quality-mode-button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  transition: color var(--motion-fast), opacity var(--motion-fast);
}

.quality-mode-button:first-child {
  padding: 0 2px;
}

.quality-mode-button.active[data-quality="all"] {
  color: var(--ink);
}

.quality-mode-button:hover,
.quality-mode-button:focus-visible {
  color: var(--ink);
}

.quality-mode-button.active:hover,
.quality-mode-button.active:focus-visible {
  color: var(--ink);
}

.quality-mode-button[data-quality="clean"] {
  position: relative;
  min-height: 38px;
  color: var(--ink);
  padding: 0 0 0 62px;
}

.quality-mode-button[data-quality="clean"]::before,
.quality-mode-button[data-quality="clean"]::after {
  content: "";
  position: absolute;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.quality-mode-button[data-quality="clean"]::before {
  left: 0;
  width: 54px;
  height: 32px;
  background: color-mix(in srgb, var(--muted) 28%, var(--button-bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 18%, transparent);
}

.quality-mode-button[data-quality="clean"]::after {
  top: 6px;
  left: 3px;
  width: 26px;
  height: 26px;
  background: #ffffff;
  box-shadow:
    0 3px 9px rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.12);
}

.quality-mode-button.active[data-quality="clean"]::before {
  background: linear-gradient(30deg, var(--brand-gradient-end) 0%, var(--color-brand-hot) 100%);
  box-shadow: none;
}

.quality-mode-button.active[data-quality="clean"]::after {
  transform: translateX(22px);
}

.quick-search-actions {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 8px;
}

.quick-search-actions .primary-action {
  grid-column: 1 / -1;
}

.refine-summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

label,
fieldset {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.search-terms-field > span,
.refine-terms-field > span,
label span,
legend {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background-color: var(--field);
  color: var(--ink);
  outline: none;
}

input {
  height: 42px;
}

select {
  height: 46px;
}

input {
  padding: 0 12px;
}

select {
  padding: 0 38px 0 12px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--select-brand-chevron);
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

textarea {
  resize: vertical;
  min-height: 84px;
  padding: 10px 12px;
  line-height: 1.35;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 10px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.advanced-options {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
}

.advanced-options summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.advanced-options summary::-webkit-details-marker {
  display: none;
}

.advanced-options summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 3px solid var(--color-brand-hot);
  border-bottom: 3px solid var(--color-brand-hot);
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--motion-fast);
}

.advanced-options[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.advanced-options summary > span:first-child {
  min-width: 0;
}

.advanced-options-meta {
  margin-left: auto;
  color: color-mix(in srgb, var(--muted) 78%, transparent);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  text-transform: none;
  white-space: nowrap;
}

.advanced-options label,
.source-options-fieldset {
  padding: 0 10px 10px;
}

.advanced-options textarea {
  min-height: 92px;
}

.source-options-fieldset {
  display: block;
  margin: 0;
  border: 0;
}

.exclude-tags-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exclude-tags-copy {
  display: grid;
  gap: 3px;
}

.exclude-tags-copy > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.exclude-tags-copy p {
  margin: 0;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.exclude-tag-cloud {
  display: flex;
  min-height: var(--control-exclude-field-min-height);
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--field);
  cursor: text;
  padding: 8px;
}

.exclude-tag-cloud:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.exclude-tag-list,
.refine-term-chip-list {
  display: contents;
}

.exclude-tag-chip,
.refine-term-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: var(--control-tag-min-height);
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, var(--muted));
  border-radius: var(--radius-pill);
  background: var(--button-bg);
  color: var(--ink);
  padding: 5px 6px 5px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.refine-term-chip.is-primary {
  font-weight: 950;
}

.exclude-tag-label,
.refine-term-chip-label {
  overflow: hidden;
  min-width: 0;
  max-width: min(42ch, calc(100vw - 150px));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exclude-tag-remove,
.refine-term-chip-remove {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 28%, transparent);
  color: #ffffff;
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.exclude-tag-remove:hover,
.exclude-tag-remove:focus-visible,
.refine-term-chip-remove:hover,
.refine-term-chip-remove:focus-visible {
  background: var(--color-brand-hot);
  outline: none;
}

.exclude-tag-remove:focus-visible,
.refine-term-chip-remove:focus-visible {
  box-shadow: var(--focus-ring);
}

.exclude-tag-cloud input {
  width: auto;
  min-width: min(180px, 100%);
  max-width: 100%;
  flex: 1 1 180px;
  height: 34px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  padding: 0 6px;
}

.exclude-tag-cloud input:focus {
  box-shadow: none;
}

.exclude-tag-cloud input::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.refine-terms-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.refine-term-entry {
  display: grid;
  min-height: var(--control-token-field-min-height);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(var(--color-search-field), var(--color-search-field)) padding-box,
    var(--brand-gradient) border-box;
  padding: 0 18px;
  transition: border-radius var(--motion-fast);
}

.refine-term-entry.is-expanded {
  border-radius: 26px;
}

.refine-term-entry:hover,
.refine-term-entry:focus-within {
  border-color: transparent;
  background:
    linear-gradient(var(--color-search-field), var(--color-search-field)) padding-box,
    var(--brand-gradient) border-box;
  box-shadow: none;
}

body[data-theme="dark"] .refine-term-entry,
body[data-theme="dark"] .refine-term-entry:hover,
body[data-theme="dark"] .refine-term-entry:focus-within {
  background:
    linear-gradient(var(--color-search-field), var(--color-search-field)) padding-box,
    var(--brand-gradient) border-box;
}

.refine-search-icon {
  align-self: center;
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.refine-term-cloud {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: text;
  padding: 8px 0;
}

.refine-term-cloud:focus-within {
  outline: none;
}

.refine-term-cloud input {
  width: auto;
  min-width: min(220px, 100%);
  max-width: 100%;
  flex: 1 1 220px;
  height: 38px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-search-ink);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  padding: 0 4px;
  box-shadow: none;
}

.refine-term-cloud input:focus {
  box-shadow: none;
}

.refine-term-cloud input::placeholder {
  color: color-mix(in srgb, var(--muted) 48%, transparent);
  font-weight: 400;
  opacity: 1;
}

body[data-theme="dark"] .refine-term-cloud input {
  color: var(--color-search-ink);
}

body[data-theme="dark"] .refine-term-cloud input::placeholder {
  color: color-mix(in srgb, var(--color-search-ink) 34%, transparent);
}

.term-dropdown {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
  border-radius: var(--radius-card-large);
  background: var(--field);
  box-shadow: 0 22px 44px rgba(20, 24, 28, 0.16);
}

.term-dropdown-row {
  display: grid;
  min-height: 52px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  color: var(--muted);
}

.term-dropdown-row + .term-dropdown-row {
  border-top: 1px solid color-mix(in srgb, var(--line) 54%, transparent);
}

.term-row-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--muted) 28%, transparent);
  border-radius: 50%;
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  font-size: 14px;
  line-height: 1;
}

.term-row-label {
  overflow: hidden;
  color: color-mix(in srgb, var(--ink) 58%, var(--muted));
  font-size: 18px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-remove-button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 42%, transparent);
  color: #ffffff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.term-remove-button:hover,
.term-remove-button:focus-visible {
  background: var(--primary);
  outline: none;
}

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

.source-toggle {
  display: flex;
  flex-direction: row;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
  font-size: 13px;
}

.source-toggle span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.source-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.primary-action {
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: var(--primary-ink);
  cursor: pointer;
  font-weight: 800;
}

.secondary-action {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.secondary-action:hover,
.panel-heading button:hover,
.toolbar-actions button:hover {
  border-color: var(--accent);
}

.bumpers-secondary-button {
  border: 2px solid var(--secondary-button-stroke);
  border-radius: var(--radius-pill);
  background: var(--secondary-button-bg);
  color: var(--secondary-button-ink);
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    color var(--motion-fast);
}

.bumpers-secondary-button:hover,
.bumpers-secondary-button:focus-visible {
  border-color: var(--secondary-button-hover-bg);
  background: var(--secondary-button-hover-bg);
  color: var(--secondary-button-hover-ink);
}

.refine-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: url("assets/ICONS-site/icon-refine-animated-v02-spin.svg") center / contain no-repeat;
  transform-origin: 50% 50%;
}

body[data-theme="dark"] .refine-icon {
  background-image: url("assets/ICONS-site/icon-refine-animated-v02-spin-dark.svg");
}

.bumpers-secondary-button:hover .refine-icon,
.bumpers-secondary-button:focus-visible .refine-icon {
  background-image: url("assets/ICONS-site/icon-refine-animated-v02-spin-dark.svg");
}

body[data-theme="dark"] .bumpers-secondary-button:hover .refine-icon,
body[data-theme="dark"] .bumpers-secondary-button:focus-visible .refine-icon {
  background-image: url("assets/ICONS-site/icon-refine-animated-v02-spin.svg");
}

body[data-theme="dark"] .region-badge:hover,
body[data-theme="dark"] .region-badge:focus-visible,
body[data-theme="dark"] .region-badge.is-hovered,
body[data-theme="dark"] .region-badge[aria-expanded="true"] {
  background-color: color-mix(in srgb, var(--panel) 94%, var(--brand-gradient-end));
}

.quick-search-actions .refine-icon {
  width: var(--refine-icon-size, 32px);
  height: var(--refine-icon-size, 32px);
}

.secondary-action:hover .refine-icon,
.secondary-action:focus-visible .refine-icon,
.refine-inline-button:hover .refine-icon,
.refine-inline-button:focus-visible .refine-icon {
  animation: refineKnobTurn 2.4s ease-in-out infinite;
}

@keyframes refineKnobTurn {
  0%,
  10% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0.55, 0, 0.95, 0.35);
  }

  40% {
    transform: rotate(-68deg);
    animation-timing-function: cubic-bezier(0.34, 1.6, 0.64, 1);
  }

  62% {
    transform: rotate(26deg);
    animation-timing-function: cubic-bezier(0.36, 0, 0.66, -0.56);
  }

  74% {
    transform: rotate(-9deg);
    animation-timing-function: cubic-bezier(0.34, 1.3, 0.64, 1);
  }

  83% {
    transform: rotate(4deg);
    animation-timing-function: ease-in-out;
  }

  90%,
  100% {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .secondary-action:hover .refine-icon,
  .secondary-action:focus-visible .refine-icon,
  .refine-inline-button:hover .refine-icon,
  .refine-inline-button:focus-visible .refine-icon {
    animation: none;
  }

  .listing-card.is-dismissing-noise {
    transition: none;
  }
}

.saved-panel {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-heading h2 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-heading button,
.toolbar-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
  color: var(--ink);
  cursor: pointer;
}

.saved-searches {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
}

.saved-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
}

.saved-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  width: 100%;
  min-height: 64px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.saved-search:hover,
.saved-search:focus-visible {
  background: color-mix(in srgb, var(--button-bg) 68%, transparent);
}

.saved-search-delete {
  display: grid;
  width: 40px;
  min-width: 40px;
  min-height: var(--control-toast-min-height);
  place-items: center;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.saved-search-delete:hover,
.saved-search-delete:focus-visible {
  border-color: var(--rose);
  color: var(--rose);
}

.saved-search-title {
  grid-column: 1;
  overflow: hidden;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-search-region {
  grid-column: 1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.saved-search-region.is-away {
  color: var(--primary);
}

.saved-search-matches {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.saved-search-new {
  grid-column: 2;
  grid-row: 3;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.saved-search-new.is-empty {
  color: var(--muted);
}

.save-confirmation-toast {
  position: fixed;
  left: 50%;
  bottom: clamp(18px, 4vw, 44px);
  z-index: 1300;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: min(430px, calc(100vw - 36px));
  min-height: 58px;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--color-mobile-nav-border);
  border-radius: var(--radius-card-media);
  background: var(--color-toast-surface);
  color: var(--color-toast-ink);
  box-shadow: var(--shadow-toast);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 16px, 0) scale(0.98);
  transition: opacity var(--motion-toast-fade) ease, transform var(--motion-toast-travel) ease;
}

.save-confirmation-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0) scale(1);
}

body.modal-open .save-confirmation-toast {
  top: 50%;
  bottom: auto;
  z-index: 1400;
  transform: translate3d(-50%, calc(-50% + 16px), 0) scale(0.98);
}

body.modal-open .save-confirmation-toast.is-visible {
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.save-confirmation-toast[hidden] {
  display: none;
}

.save-toast-icon {
  color: var(--color-brand-hot);
  font-size: 24px;
  line-height: 1;
}

.save-toast-copy {
  overflow: hidden;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.save-toast-view,
.save-toast-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.save-toast-view {
  min-height: 34px;
  padding: 0 4px;
  border-bottom: 2px solid var(--brand-gradient-end);
  font-size: 18px;
  font-weight: 800;
}

.save-toast-view:hover,
.save-toast-view:focus-visible {
  color: var(--color-toast-link);
}

.save-toast-close {
  display: grid;
  width: var(--control-toast-close-size);
  height: var(--control-toast-close-size);
  place-items: center;
  border-radius: var(--radius-pill);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.save-toast-close:hover,
.save-toast-close:focus-visible {
  background: var(--color-overlay-interaction);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--color-modal-backdrop);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-modal);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.saved-region-modal {
  display: grid;
  width: min(560px, 100%);
  gap: 16px;
  padding: 18px;
}

.saved-region-detail {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.saved-region-actions {
  display: grid;
  gap: 10px;
}

.settings-modal {
  width: min(520px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  overflow: hidden;
}

.settings-modal form {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  max-height: inherit;
  padding: 0;
}

.settings-modal .modal-header {
  padding: 18px 18px 0;
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 18px;
}

.settings-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--button-bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}

.settings-tab:hover,
.settings-tab:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

.settings-tab.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

.settings-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 0 18px;
  overscroll-behavior: contain;
}

.settings-panel {
  display: grid;
  gap: 16px;
}

.settings-panel[hidden] {
  display: none;
}

.settings-section {
  display: grid;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--panel-soft);
}

.settings-section-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.settings-section-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 50%;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--brand-gradient) border-box;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 12%, transparent);
}

.settings-section-icon svg {
  display: block;
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-section-icon-title {
  width: 32px;
  height: 32px;
}

.settings-section-icon-title svg {
  width: 19px;
  height: 19px;
}

body[data-theme="dark"] .settings-section-icon {
  background:
    linear-gradient(var(--panel-soft), var(--panel-soft)) padding-box,
    var(--brand-gradient) border-box;
  color: #f7f8f4;
}

.settings-section h3,
.settings-section p {
  margin: 0;
}

.settings-section h3 {
  font-size: 16px;
}

.settings-section p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.brand-gradient-lab {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.brand-gradient-lab-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-gradient-lab h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.brand-gradient-preview {
  flex: 0 0 auto;
  width: 82px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-gradient-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.brand-gradient-stop {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.brand-gradient-stop-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.brand-gradient-picker-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.brand-gradient-color-control,
.brand-gradient-hex-control,
.brand-gradient-rgb-fields label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.brand-gradient-color-control span,
.brand-gradient-hex-control span,
.brand-gradient-rgb-fields span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-gradient-color-control input[type="color"] {
  width: 52px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.brand-gradient-color-control input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 3px;
}

.brand-gradient-color-control input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 10px;
}

.brand-gradient-color-control input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 10px;
}

.brand-gradient-hex-control input {
  text-transform: lowercase;
}

.brand-gradient-rgb-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.brand-gradient-rgb-fields input {
  min-width: 0;
  text-align: center;
}

.brand-gradient-color-control input[type="color"]:focus-visible,
.brand-gradient-hex-control input:focus-visible,
.brand-gradient-rgb-fields input:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.brand-gradient-actions {
  grid-template-columns: repeat(2, minmax(0, 120px));
  justify-content: start;
}

.settings-advanced {
  display: grid;
  gap: 12px;
}

.settings-advanced summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  list-style: none;
}

.settings-advanced summary::-webkit-details-marker {
  display: none;
}

.settings-advanced summary::before {
  width: 0;
  height: 0;
  margin-right: 8px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  content: "";
  transition: transform var(--motion-fast);
}

.settings-advanced[open] summary::before {
  transform: rotate(90deg);
}

.settings-advanced[open] {
  gap: 12px;
}

.account-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 52%),
    var(--panel-soft);
}

.account-panel {
  display: grid;
  gap: 12px;
}

.account-panel[hidden] {
  display: none;
}

.account-panel .primary-action {
  width: 100%;
}

.account-panel-signed-in {
  gap: 10px;
}

.account-auth-fields,
.account-password-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.account-auth-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-3);
}

.account-password-setup {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.account-password-setup h4,
.account-password-setup p {
  margin: 0;
}

.account-password-setup > .secondary-action {
  justify-self: start;
}

@media (max-width: 700px) {
  .account-auth-fields,
  .account-password-fields,
  .account-auth-actions {
    grid-template-columns: 1fr;
  }

  .account-password-setup > .secondary-action {
    width: 100%;
  }
}

.settings-cloud-profile {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--panel-soft);
}

.settings-cloud-profile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-cloud-profile strong {
  font-size: 15px;
}

.settings-status {
  min-height: 18px;
}

.settings-sync-detail {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin: -2px 0 0;
}

.setting-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  position: relative;
}

.setting-toggle input {
  position: absolute;
  right: 0;
  width: 52px;
  height: 30px;
  cursor: pointer;
  opacity: 0;
  z-index: 1;
}

.toggle-track {
  position: relative;
  width: 52px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--button-bg);
  transition: background var(--motion-standard), border-color var(--motion-standard);
}

.toggle-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--muted);
  content: "";
  transition: transform var(--motion-standard), background var(--motion-standard);
}

.setting-toggle input:checked + .toggle-track {
  border-color: transparent;
  background: var(--brand-gradient);
}

.setting-toggle input:checked + .toggle-track::after {
  background: var(--color-control-on-ink);
  transform: translateX(22px);
}

.setting-toggle:focus-within .toggle-track {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.save-search-alert-toggle {
  gap: 18px;
  padding: 12px 0;
}

.save-search-alert-toggle strong,
.save-search-alert-toggle small {
  display: block;
}

.save-search-alert-toggle strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.save-search-alert-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.modal-header,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
}

.modal-header h2.refine-title {
  display: grid;
  gap: clamp(6px, 1vw, 12px);
  align-items: start;
  font-family: var(--font-ui);
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.refine-title-label,
.refine-title-separator {
  color: color-mix(in srgb, var(--ink) 58%, var(--muted));
  font-family: var(--font-ui);
  font-size: clamp(19px, 3.1vw, 38px);
  font-weight: 650;
  line-height: 1.05;
}

.refine-title-separator {
  display: none;
}

.refine-title-term {
  display: inline-block;
  padding-bottom: 0.12em;
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: inherit;
  font-family: var(--font-ui);
  font-weight: 650;
  line-height: 1.04;
  overflow-wrap: anywhere;
  -webkit-text-fill-color: transparent;
}

.refine-title:not(.has-term) {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.96;
}

.refine-title:not(.has-term) .refine-title-label {
  font-size: inherit;
}

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

.icon-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-actions {
  justify-content: flex-end;
}

.settings-modal .modal-actions {
  position: sticky;
  bottom: 0;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(to top, var(--panel) 78%, color-mix(in srgb, var(--panel) 82%, transparent));
}

.modal-actions .primary-action,
.modal-actions .secondary-action {
  min-width: 120px;
  padding: 0 16px;
}

.refine-backdrop {
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  background: color-mix(in srgb, var(--app-bg) 18%, rgba(0, 0, 0, 0.58));
  backdrop-filter: blur(14px) saturate(0.92);
}

.refine-modal {
  --refine-scroll-inset: 14px;
  --refine-modal-max-height: min(84vh, 820px);
  width: min(720px, calc(100vw - 32px));
  max-height: var(--refine-modal-max-height);
  overflow: hidden;
  border-radius: var(--radius-control);
  background: var(--panel);
}

.refine-panel {
  --refine-pad-y: clamp(30px, 3.4vw, 42px);
  --refine-pad-x: clamp(30px, 3.4vw, 42px);
  --refine-pad-scroll: clamp(44px, 4.4vw, 58px);
  display: flex;
  max-height: calc(var(--refine-modal-max-height) - (var(--refine-scroll-inset) * 2));
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  margin-block: var(--refine-scroll-inset);
  margin-inline-end: var(--refine-scroll-inset);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--refine-pad-y) var(--refine-pad-scroll) var(--refine-pad-y) var(--refine-pad-x);
  scrollbar-gutter: stable;
  scrollbar-color: color-mix(in srgb, var(--muted) 74%, transparent) transparent;
  scrollbar-width: auto;
}

.refine-panel::-webkit-scrollbar {
  width: 16px;
}

.refine-panel::-webkit-scrollbar-track {
  background: transparent;
  margin-block: var(--refine-scroll-inset);
}

.refine-panel::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--muted) 74%, transparent);
  background-clip: content-box;
}

.refine-panel::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gradient);
  background-clip: content-box;
}

.refine-panel .modal-header {
  position: sticky;
  top: calc(var(--refine-pad-y) * -1);
  z-index: 1;
  margin: calc(var(--refine-pad-y) * -1) calc(var(--refine-pad-scroll) * -1) 0 calc(var(--refine-pad-x) * -1);
  padding: var(--refine-pad-y) var(--refine-pad-scroll) 14px var(--refine-pad-x);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(10px);
}

.refine-panel .modal-actions {
  position: sticky;
  bottom: calc(var(--refine-pad-y) * -1);
  margin: auto calc(var(--refine-pad-scroll) * -1) calc(var(--refine-pad-y) * -1) calc(var(--refine-pad-x) * -1);
  padding: 14px var(--refine-pad-scroll) var(--refine-pad-y) var(--refine-pad-x);
  border-top: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--panel) 84%, transparent),
    var(--panel) 30%
  );
  backdrop-filter: blur(10px);
}

.save-refine-search-action {
  min-width: 154px;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 14px 32px rgba(0, 114, 255, 0.22);
  transition: box-shadow var(--motion-fast), filter var(--motion-fast), transform var(--motion-fast);
}

.save-refine-search-action::before {
  content: "";
  display: block;
  width: 22px;
  height: 24px;
  flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg width='22' height='24' viewBox='0 0 22 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 4.5C6 3.67 6.67 3 7.5 3H14.5C15.33 3 16 3.67 16 4.5V20.5L11 17.5L6 20.5V4.5Z' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.save-refine-search-action:hover,
.save-refine-search-action:focus-visible {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #ffffff;
  filter: saturate(1.12) brightness(1.05);
  box-shadow: 0 18px 42px rgba(0, 114, 255, 0.3), 0 8px 20px rgba(255, 0, 255, 0.16);
  transform: translateY(-1px);
  outline: none;
}

.save-refine-search-action:focus-visible {
  box-shadow: var(--focus-ring), 0 18px 42px rgba(0, 114, 255, 0.3), 0 8px 20px rgba(255, 0, 255, 0.16);
}

.save-refine-search-action:active {
  filter: saturate(1.02) brightness(0.94);
  box-shadow: 0 8px 20px rgba(0, 114, 255, 0.2);
  transform: translateY(0) scale(0.98);
}

.save-refine-search-action:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  filter: grayscale(0.28);
  box-shadow: none;
  transform: none;
}

.save-refine-search-action.is-saved span {
  color: #ffffff;
}

.content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar h2 {
  font-size: clamp(28px, 4vw, 52px);
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.status-strip div {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 0;
  border: 0;
}

.status-strip strong,
.status-strip span {
  display: inline;
}

.status-strip strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
}

.status-strip span {
  margin: 0;
  font-size: 11px;
  line-height: 1;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0 18px;
}

.result-options {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.result-options label {
  position: relative;
  min-width: 132px;
  gap: 0;
}

.result-options label span {
  position: absolute;
  top: -17px;
  left: 2px;
  font-size: 11px;
}

.result-options select {
  height: 38px;
}

.result-options .quality-mode-inline {
  min-width: 176px;
}

.refine-inline-button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.refine-inline-button:hover,
.refine-inline-button:focus-visible {
  border-color: var(--accent);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(4, 1fr);
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
}

.segmented button {
  min-width: 92px;
  height: 38px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}

.segmented button:first-child {
  border-left: 0;
}

.segmented button.active {
  background: var(--primary);
  color: var(--primary-ink);
}

.toolbar-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.live-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.live-status[data-state="live"] {
  border-color: rgba(47, 125, 88, 0.28);
  color: var(--green);
}

.live-status[data-state="error"] {
  border-color: rgba(177, 59, 87, 0.34);
  color: var(--rose);
}

.source-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 18px;
}

.source-filter-panel > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.source-filter-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

.source-quality-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.source-quality-status[hidden] {
  display: none;
}

.source-quality-separator {
  color: color-mix(in srgb, var(--muted) 68%, transparent);
}

.source-quality-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  line-height: 1;
  text-align: inherit;
  transition: border-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}

.source-quality-link:hover {
  border-bottom-color: var(--color-brand-hot);
  color: var(--ink);
  transform: translateY(-1px);
}

.source-quality-link:focus-visible {
  outline: none;
  border-bottom-color: var(--color-brand-hot);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--color-brand-hot);
}

.source-quality-link[aria-pressed="false"] {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.source-quality-link[aria-pressed="false"] .source-quality-check {
  color: color-mix(in srgb, var(--muted) 68%, transparent);
}

.source-quality-check {
  color: var(--color-brand-hot);
  font-size: 10px;
  line-height: 1;
}

.source-filter-list {
  display: flex;
  min-width: 0;
  flex: 1;
  align-self: start;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1;
}

.source-filter-list.is-collapsed {
  flex-wrap: nowrap;
  overflow: hidden;
}

.source-row-meta {
  display: flex;
  grid-column: 2;
  align-self: start;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.source-assist-panel {
  display: flex;
  grid-column: 1 / -1;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 8px;
  margin-top: -4px;
}

.source-assist-panel[hidden] {
  display: none;
}

.source-assist-panel > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.source-assist-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.source-assist-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 4px;
  border: 1px solid color-mix(in srgb, var(--source-solid, var(--line)) 30%, var(--line));
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--button-bg) 92%, var(--source-solid, var(--primary)) 8%);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    color var(--motion-fast),
    transform var(--motion-fast);
}

.source-assist-button:hover,
.source-assist-button:focus-visible {
  border-color: var(--source-solid, var(--primary));
  background: color-mix(in srgb, var(--button-bg) 84%, var(--source-solid, var(--primary)) 16%);
  box-shadow: 0 8px 18px rgba(20, 24, 28, 0.11);
  transform: translateY(-1px);
}

.source-assist-button:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.source-assist-label {
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-assist-arrow {
  color: var(--source-solid-mark, var(--source-solid, var(--primary)));
  font-size: 13px;
  line-height: 1;
}

.result-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--button-bg);
}

.result-view-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background var(--motion-fast),
    color var(--motion-fast),
    opacity var(--motion-fast);
}

.result-view-button:hover,
.result-view-button:focus-visible {
  color: var(--ink);
}

.result-view-button:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.result-view-button.is-active {
  background: var(--primary);
  color: var(--primary-ink);
}

.result-view-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.result-view-icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.result-view-icon-grid {
  background:
    linear-gradient(currentColor 0 0) left top / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) right top / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) left bottom / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) right bottom / 6px 6px no-repeat;
}

.result-view-icon-list {
  background:
    linear-gradient(currentColor 0 0) 50% 50% / 15px 3px no-repeat;
}

.result-view-icon-list::before,
.result-view-icon-list::after {
  position: absolute;
  left: 50%;
  width: 15px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.result-view-icon-list::before {
  top: 1px;
}

.result-view-icon-list::after {
  top: 12px;
}

.result-view-icon-gallery {
  background:
    linear-gradient(currentColor 0 0) left top / 6px 10px no-repeat,
    linear-gradient(currentColor 0 0) right top / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) left bottom / 6px 4px no-repeat,
    linear-gradient(currentColor 0 0) right bottom / 6px 10px no-repeat;
}

.source-sort-control {
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  align-items: center;
  align-self: start;
  flex-direction: row;
  gap: 6px;
  margin-left: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 12px;
  font-weight: 900;
}

.source-sort-control::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 18px;
  height: 18px;
  background: var(--brand-gradient-start);
  -webkit-mask: var(--select-brand-chevron) center / contain no-repeat;
  mask: var(--select-brand-chevron) center / contain no-repeat;
  pointer-events: none;
  transform: translateY(-50%);
}

.source-sort-control span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.source-sort-control select {
  appearance: none;
  -webkit-appearance: none;
  height: 34px;
  min-width: 112px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--ink));
  border-radius: var(--radius-pill);
  background-color: var(--select-bg);
  background-image: none;
  color: var(--ink);
  padding: 0 34px 0 14px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 52%, transparent);
  transition: none;
}

.source-sort-control select:hover {
  border-color: color-mix(in srgb, var(--line) 64%, var(--ink));
  background-color: var(--select-hover-bg);
}

.source-sort-control select:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.source-filter-button {
  display: inline-flex;
  min-width: 68px;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 9px 4px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--button-bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: none;
}

.source-filter-source {
  min-width: 58px;
  gap: 4px;
  padding: 4px 8px 4px 4px;
  transform-origin: left center;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    max-width 220ms ease,
    margin 220ms ease,
    padding 220ms ease,
    border-width 220ms ease,
    background var(--motion-fast),
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    color var(--motion-fast);
}

.source-filter-source.has-single-digit-count {
  min-width: 50px;
  gap: 2px;
  padding-right: 7px;
}

.source-filter-list.is-collapsed .source-filter-source {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  max-width: 0;
  overflow: hidden;
  margin-left: -8px;
  padding-right: 0;
  padding-left: 0;
  border-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px) scale(0.94);
}

.source-filter-list.is-expanded .source-filter-source {
  max-width: 120px;
  opacity: 1;
  transform: translateX(0) scale(1);
}

.source-filter-button.is-active {
  border-color: var(--source-solid, var(--primary));
  background: var(--source-solid, var(--primary));
  color: var(--source-solid-ink, var(--primary-ink));
  box-shadow: 0 8px 18px rgba(20, 24, 28, 0.14);
}

body[data-theme="dark"] .source-filter-button.is-active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.24);
}

.source-filter-button:disabled {
  cursor: default;
  opacity: 0.68;
}

.source-filter-button.is-loading {
  border-color: color-mix(in srgb, var(--source-solid, var(--primary)) 42%, var(--line));
}

.source-filter-button.is-parked {
  border-color: color-mix(in srgb, var(--muted) 32%, var(--line));
  color: var(--muted);
  background: color-mix(in srgb, var(--button-bg) 92%, var(--muted) 8%);
}

.source-filter-button.is-pending {
  border-color: color-mix(in srgb, var(--source-solid, var(--primary)) 46%, var(--line));
  color: var(--source-solid-mark, var(--ink));
  background: color-mix(in srgb, var(--button-bg) 90%, var(--source-solid, var(--primary)) 10%);
}

.source-filter-button.is-manual {
  border-color: color-mix(in srgb, var(--source-solid, var(--primary)) 48%, var(--line));
  color: var(--source-solid-mark, var(--ink));
  background: color-mix(in srgb, var(--button-bg) 88%, var(--source-solid, var(--primary)) 12%);
}

.source-filter-button.is-manual:hover,
.source-filter-button.is-manual:focus-visible {
  border-color: var(--source-solid, var(--primary));
  color: var(--source-solid-mark, var(--ink));
  box-shadow: 0 8px 18px rgba(20, 24, 28, 0.12);
}

.source-filter-button.is-error {
  border-color: rgba(177, 59, 87, 0.46);
  color: var(--rose);
}

.source-filter-button.is-zero:not(.is-active) {
  opacity: 0.72;
}

.source-filter-source.is-zero {
  min-width: 34px;
  gap: 0;
  padding: 4px;
}

.source-filter-source.is-zero .source-count {
  display: none;
}

.source-filter-source.is-zero .source-filter-avatar {
  opacity: 0.42;
}

.source-filter-button .source-count {
  min-width: 1.4em;
  margin-left: auto;
  line-height: 1;
  text-align: right;
}

.source-filter-source .source-count {
  min-width: 1ch;
  margin-left: 0;
}

.source-filter-source.has-single-digit-count .source-count {
  min-width: 0.72ch;
}

.source-filter-all {
  --source-solid: #48494B;
  --source-solid-ink: #ffffff;
  --source-solid-mark: #ffffff;

  min-width: 104px;
  gap: 7px;
  padding: 4px 10px 4px 12px;
  position: relative;
}

.source-filter-all::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand-gradient-end);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(20, 24, 28, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: none;
}

.source-filter-all:hover::after,
.source-filter-all:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

body[data-theme="dark"] .source-filter-all::after {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.source-filter-all.is-filter-reset {
  border-color: var(--line);
  background: var(--button-bg);
  color: var(--ink);
  box-shadow: none;
}

.source-filter-all-label {
  overflow: hidden;
  max-width: min(36vw, 220px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-filter-disclosure {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--brand-gradient-start);
  opacity: 0.68;
  transform: rotate(-45deg);
  transition: none;
}

.source-filter-all.is-expanded .source-filter-disclosure {
  transform: rotate(135deg);
}

.source-filter-all.is-filter-reset .source-filter-disclosure {
  transform: rotate(135deg);
}

.source-filter-button[data-source="mercari"] {
  --source-solid: var(--source-mercari);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-mercari);
}

.source-filter-button[data-source="yahoo-auctions"] {
  --source-solid: var(--source-yahoo-auctions);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-yahoo-auctions);
}

.source-filter-button[data-source="yahoo-fleamarket"] {
  --source-solid: var(--source-yahoo-fleamarket);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-yahoo-fleamarket);
}

.source-filter-button[data-source="rakuma"] {
  --source-solid: var(--source-rakuma);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-rakuma);
}

.source-filter-button[data-source="digimart"] {
  --source-solid: var(--source-digimart);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-digimart);
}

.source-filter-button[data-source="qsic"] {
  --source-solid: var(--source-qsic);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-qsic);
}

.source-filter-button[data-source="reverb"] {
  --source-solid: var(--source-reverb);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-reverb);
}

.source-filter-button[data-source="reverb-us"],
.source-filter-button[data-source="reverb-uk"] {
  --source-solid: var(--source-reverb);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-reverb);
}

.source-filter-button[data-source="ebay-us"],
.source-filter-button[data-source="ebay-uk"] {
  --source-solid: var(--source-ebay);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-ebay);
}

.source-filter-button[data-source="sweetwater-used"],
.source-assist-button[data-source="sweetwater-used"] {
  --source-solid: var(--source-sweetwater);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-sweetwater);
}

.source-filter-button[data-source="guitar-center-used"],
.source-assist-button[data-source="guitar-center-used"] {
  --source-solid: var(--source-guitar-center);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-guitar-center);
}

.source-filter-button[data-source="main-drag"],
.source-assist-button[data-source="main-drag"] {
  --source-solid: var(--source-main-drag);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-main-drag);
}

.source-filter-button[data-source="rogue-music"],
.source-assist-button[data-source="rogue-music"] {
  --source-solid: var(--source-rogue-music);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-rogue-music);
}

.source-filter-button[data-source="craigslist-sfbay"],
.source-filter-button[data-source="craigslist-la"],
.source-filter-button[data-source="craigslist-east"],
.source-assist-button[data-source="craigslist-sfbay"],
.source-assist-button[data-source="craigslist-la"],
.source-assist-button[data-source="craigslist-east"] {
  --source-solid: var(--source-craigslist);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-craigslist);
}

.source-filter-button[data-source="jimoty"] {
  --source-solid: var(--source-jimoty);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-jimoty);
}

.source-filter-button[data-source="three-wave"],
.source-assist-button[data-source="three-wave"] {
  --source-solid: var(--source-three-wave);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-three-wave);
}

.source-filter-button[data-source="alto-music"],
.source-assist-button[data-source="alto-music"] {
  --source-solid: var(--source-alto-music);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-alto-music);
}

.source-filter-button[data-source="pro-audio-star"],
.source-assist-button[data-source="pro-audio-star"] {
  --source-solid: var(--source-pro-audio-star);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-pro-audio-star);
}

.source-filter-button[data-source="tone-tweakers"],
.source-assist-button[data-source="tone-tweakers"] {
  --source-solid: var(--source-tone-tweakers);
  --source-solid-ink: var(--source-ink-on-yellow);
  --source-solid-mark: var(--source-ink-on-yellow);
}

.source-filter-button[data-source="offmall"],
.source-filter-button[data-source="hardoff"] {
  --source-solid: var(--source-offmall);
  --source-solid-ink: var(--source-ink-on-yellow);
  --source-solid-mark: var(--source-ink-on-yellow);
}

.source-filter-button[data-source="five-g"] {
  --source-solid: var(--source-five-g);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-five-g);
}

.source-filter-button[data-source="implant4"] {
  --source-solid: var(--source-implant4);
  --source-solid-ink: var(--source-ink-on-color);
  --source-solid-mark: var(--source-implant4);
}

.alert-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel-glass);
}

.alert-panel.is-featured-home {
  gap: 10px;
  padding: 14px;
}

.alert-panel[hidden] {
  display: none;
}

.alert-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.alert-panel h3,
.alert-panel p,
.alert-item h4 {
  margin: 0;
}

.alert-panel h3 {
  font-size: 18px;
}

.alert-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.alert-summary strong {
  color: var(--ink);
  font-size: 26px;
}

.alert-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.alert-panel.is-featured-home .alert-list {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.alert-item {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.alert-item.is-featured-home-item {
  cursor: pointer;
}

.alert-item.is-featured-home-item:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.alert-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--image-bg);
  box-shadow: 0 22px 48px rgba(20, 24, 28, 0.12), 0 7px 18px rgba(20, 24, 28, 0.08);
}

.alert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.alert-copy {
  display: none;
  min-width: 0;
  gap: 5px;
}

.alert-item h4 {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.alert-price {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  color: #17191a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 850;
  line-height: 1;
}

.alert-open {
  display: none;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.alert-item.is-featured-home-item .alert-open {
  display: none;
}

.alert-item.is-featured-home-item .listing-meta {
  gap: 6px;
}

.alert-item.is-featured-home-item .source-chip {
  max-width: 94px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-item.is-featured-home-item h4 {
  font-size: 12px;
}

.alert-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: start;
  gap: 18px;
}

.result-grid.is-list-view {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.result-grid.is-gallery-view {
  display: block;
  column-width: clamp(140px, 15vw, 190px);
  column-gap: 12px;
}

.result-grid.is-gallery-view > :not(.listing-card) {
  column-span: all;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.result-grid.is-featured-home {
  display: block;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 4px;
}

.pagination[hidden] {
  display: none;
}

.pagination-summary,
#paginationPage {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-actions .secondary-action {
  min-width: 108px;
  border: 2px solid transparent;
  background: #ffffff;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    var(--brand-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #111418;
  box-shadow: 0 10px 24px rgba(17, 20, 24, 0.1);
  padding: 0 14px;
  font-weight: 850;
}

.pagination-actions .secondary-action:hover,
.pagination-actions .secondary-action:focus-visible {
  border-color: transparent;
  background: #111418;
  background-image:
    linear-gradient(#111418, #111418),
    var(--brand-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #ffffff;
}

.pagination-actions .secondary-action:disabled {
  border-color: color-mix(in srgb, var(--muted) 28%, transparent);
  background: transparent;
  background-image: none;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.58;
}

body[data-theme="dark"] .pagination-actions .secondary-action {
  border-color: transparent;
  background: #111418;
  background-image:
    linear-gradient(#111418, #111418),
    var(--brand-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .pagination-actions .secondary-action:hover,
body[data-theme="dark"] .pagination-actions .secondary-action:focus-visible {
  border-color: transparent;
  background: #ffffff;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    var(--brand-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #111418;
}

body[data-theme="dark"] .pagination-actions .secondary-action:disabled {
  border-color: color-mix(in srgb, #ffffff 22%, transparent);
  background: transparent;
  background-image: none;
  color: var(--muted);
}

.back-to-top {
  --back-to-top-offset: clamp(18px, 3vw, 34px);

  position: fixed;
  left: 50%;
  bottom: var(--back-to-top-offset);
  z-index: 45;
  display: grid;
  width: var(--control-back-to-top-size);
  height: var(--control-back-to-top-size);
  place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 114, 255, 0.2), 0 12px 30px rgba(255, 0, 255, 0.16);
  cursor: pointer;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
  transform: translateX(-50%);
  transition:
    background var(--motion-standard),
    bottom 180ms ease,
    box-shadow var(--motion-standard),
    opacity var(--motion-standard),
    transform var(--motion-standard);
}

.back-to-top.is-above-pagination {
  bottom: calc(var(--back-to-top-offset) + 118px);
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top:hover {
  background: #111418;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.back-to-top:active {
  background: #111418;
  color: #ffffff;
  transform: translateX(-50%) translateY(1px);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

body[data-theme="dark"] .back-to-top {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

body[data-theme="dark"] .back-to-top:hover,
body[data-theme="dark"] .back-to-top:active {
  background: #111418;
  color: #fff;
}

.listing-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card-large);
  background: var(--panel);
  box-shadow: var(--card-shadow);
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 420ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.listing-card.is-dismissing-noise {
  pointer-events: none;
  opacity: 0;
  backface-visibility: hidden;
  transform: translate3d(0, 14px, 0) scale(0.68);
  transform-origin: center;
  will-change: opacity, transform;
}

.result-grid.is-list-view .listing-card {
  display: grid;
  min-height: 176px;
  grid-template-columns: 176px minmax(0, 1fr) 64px;
  border-radius: var(--radius-card-list);
  box-shadow: var(--card-shadow);
}

.result-grid.is-list-view .image-stage,
.result-grid.is-list-view .image-link {
  width: 176px;
  height: 176px;
  min-width: 176px;
  min-height: 176px;
  overflow: hidden;
  border-radius: inherit;
}

.result-grid.is-list-view .image-stage {
  position: static;
}

.result-grid.is-list-view .image-link {
  aspect-ratio: 1 / 1;
}

.result-grid.is-list-view .image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-grid.is-list-view .new-pill {
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
}

.result-grid.is-list-view .listing-body {
  min-height: 0;
  gap: 7px;
  padding: 12px 14px;
}

.result-grid.is-list-view .listing-meta {
  min-width: 0;
}

.result-grid.is-list-view .source-chip {
  padding: 3px 7px;
  font-size: 11px;
}

.result-grid.is-list-view .listing-card h3 {
  max-width: 54%;
  min-height: 0;
  -webkit-line-clamp: 2;
  font-size: var(--text-listing-title-list);
  line-height: 1.22;
}

.result-grid.is-list-view .shop-name {
  min-height: 0;
  margin: -2px 0 0;
  font-size: 11px;
}

.result-grid.is-list-view .price-row {
  margin-top: 0;
}

.result-grid.is-list-view .price-row strong {
  font-size: var(--text-listing-price-list);
}

.result-grid.is-list-view .price-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-grid.is-list-view .auction-detail-row {
  display: flex;
  max-width: min(54%, 520px);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: -1px;
}

.auction-detail-row[hidden] {
  display: none;
}

.result-grid.is-list-view .auction-detail-row[hidden] {
  display: none;
}

.auction-detail-row {
  display: none;
}

.auction-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.auction-detail-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.auction-detail strong {
  font-size: 14px;
  line-height: 1;
}

.result-grid.is-list-view .card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.result-grid.is-list-view .feedback-button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 10px;
}

.result-grid.is-list-view .open-link {
  width: 92px;
  height: 32px;
  flex: 0 0 auto;
  font-size: 13px;
}

.result-grid.is-list-view .watch-button {
  top: 50%;
  right: 15px;
  bottom: auto;
  left: auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--secondary-button-stroke);
  border-radius: 50%;
  background: var(--secondary-button-bg);
  color: var(--secondary-button-ink);
  box-shadow: none;
  font-size: 0;
  transition:
    background var(--motion-standard),
    border-color var(--motion-standard),
    color var(--motion-standard),
    transform var(--motion-standard);
  transform: translateY(-50%);
}

.result-grid.is-list-view .watch-button:hover,
.result-grid.is-list-view .watch-button:focus-visible {
  border-color: var(--secondary-button-hover-bg);
  background: var(--secondary-button-hover-bg);
  color: var(--color-brand-hot);
  box-shadow: none;
  transform: translateY(calc(-50% - 1px));
}

.result-grid.is-list-view .watch-button:active {
  color: var(--color-brand-hot);
  box-shadow: none;
  transform: translateY(-50%) scale(0.96);
}

.result-grid.is-list-view .watch-button.is-watching {
  border-color: color-mix(in srgb, var(--color-brand-hot) 44%, var(--line));
  background: var(--secondary-button-bg);
  color: var(--color-brand-hot);
  box-shadow: none;
  transform: translateY(-50%);
}

.result-grid.is-list-view .watch-button.is-watching:hover,
.result-grid.is-list-view .watch-button.is-watching:focus-visible {
  border-color: color-mix(in srgb, var(--color-brand-hot) 54%, var(--secondary-button-hover-bg));
  background: var(--secondary-button-hover-bg);
  color: var(--color-brand-hot);
  box-shadow: none;
  transform: translateY(calc(-50% - 1px));
}

.result-grid.is-list-view .watch-button::before {
  display: none;
  content: none;
}

.result-grid.is-list-view .watch-button.is-watching::before {
  display: none;
  content: none;
}

.watch-button.has-watch-svg::before,
.watch-button.has-watch-svg.is-watching::before {
  display: none;
  content: none;
}

.watch-button-svg {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  pointer-events: none;
  transform: translateZ(0);
}

.result-grid.is-list-view .watch-button-svg {
  width: 19px;
  height: 19px;
}

body[data-theme="dark"] .result-grid.is-list-view .watch-button,
body[data-theme="dark"] .result-grid.is-list-view .watch-button.is-watching {
  border-color: var(--secondary-button-hover-bg);
  background: var(--secondary-button-hover-bg);
  color: var(--secondary-button-hover-ink);
  box-shadow: none;
}

body[data-theme="dark"] .result-grid.is-list-view .watch-button:hover,
body[data-theme="dark"] .result-grid.is-list-view .watch-button:focus-visible,
body[data-theme="dark"] .result-grid.is-list-view .watch-button.is-watching:hover,
body[data-theme="dark"] .result-grid.is-list-view .watch-button.is-watching:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--color-brand-hot);
  box-shadow: none;
}

.result-grid.is-list-view .listing-action-menu {
  position: absolute;
  top: auto;
  right: 15px;
  bottom: 18px;
  left: auto;
  width: 34px;
  margin-left: 0;
}

.result-grid.is-list-view .more-action-button {
  width: 34px;
  height: 34px;
}

.result-grid.is-list-view .list-source-avatar {
  top: 18px;
  right: 15px;
  bottom: auto;
  left: auto;
  display: grid;
  width: 34px;
  height: 34px;
  border-width: 2px;
  box-shadow: none;
}

.result-grid.is-gallery-view .listing-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  border-radius: var(--radius-card-media);
  background: transparent;
  box-shadow: 0 14px 30px rgba(17, 20, 24, 0.12);
  vertical-align: top;
}

.result-grid.is-gallery-view .image-stage,
.result-grid.is-gallery-view .image-link {
  min-height: 0;
}

.result-grid.is-gallery-view .image-link {
  aspect-ratio: 1 / 1.18;
}

.result-grid.is-gallery-view .listing-card:nth-of-type(4n + 1) .image-link {
  aspect-ratio: 4 / 5;
}

.result-grid.is-gallery-view .listing-card:nth-of-type(4n + 2) .image-link {
  aspect-ratio: 1 / 1;
}

.result-grid.is-gallery-view .listing-card:nth-of-type(4n + 3) .image-link {
  aspect-ratio: 3 / 4;
}

.result-grid.is-gallery-view .listing-card:nth-of-type(5n + 4) .image-link {
  aspect-ratio: 4 / 3;
}

.result-grid.is-gallery-view .listing-body {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: auto;
  height: auto;
  min-height: 0;
  gap: 0;
  padding: 0;
  pointer-events: none;
}

.result-grid.is-gallery-view .listing-meta,
.result-grid.is-gallery-view .shop-name,
.result-grid.is-gallery-view .open-link,
.result-grid.is-gallery-view .feedback-button,
.result-grid.is-gallery-view .list-source-avatar,
.result-grid.is-gallery-view .watch-button,
.result-grid.is-gallery-view .price-row span {
  display: none;
}

.result-grid.is-gallery-view .listing-card h3 {
  position: absolute;
  right: 0;
  bottom: 48px;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 52px;
  min-height: 0;
  max-height: 52px;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-top: 1px solid color-mix(in srgb, #ffffff 18%, transparent);
  border-bottom: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.86), rgba(17, 20, 24, 0.58)),
    var(--brand-gradient);
  color: #ffffff;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 48px 0 rgba(17, 20, 24, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0;
  font-weight: 750;
  line-height: 0;
  opacity: 0;
  overflow-wrap: anywhere;
  padding: 10px 12px 12px;
  pointer-events: none;
  text-shadow: none;
  transform: translateY(calc(100% + 48px));
  transition:
    opacity 80ms ease,
    transform 80ms ease;
}

.result-grid.is-gallery-view .listing-card h3::before {
  content: attr(data-preview-title);
  display: -webkit-box;
  max-height: 30px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #ffffff;
  font-size: var(--text-listing-title-gallery);
  font-weight: 750;
  line-height: 15px;
  overflow-wrap: anywhere;
}

.result-grid.is-gallery-view .listing-card:hover h3,
.result-grid.is-gallery-view .listing-card:focus-within h3 {
  opacity: 1;
  transform: translateY(0);
}

.result-grid.is-gallery-view .price-row {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 4;
  justify-content: flex-start;
  margin-top: 0;
}

.result-grid.is-gallery-view .card-actions {
  display: none;
}

.result-grid.is-gallery-view .listing-action-menu {
  right: 8px;
  bottom: 8px;
  left: auto;
  width: 36px;
  pointer-events: auto;
}

.result-grid.is-gallery-view .more-action-button {
  height: 28px;
  border-radius: var(--radius-pill);
  font-size: 18px;
}

.result-grid.is-gallery-view .price-row strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: #111418;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.result-grid.is-gallery-view .listing-card:hover .price-row strong,
.result-grid.is-gallery-view .listing-card:focus-within .price-row strong {
  background: var(--brand-gradient);
  color: #ffffff;
}

body[data-theme="dark"] .result-grid.is-gallery-view .listing-card,
body[data-theme="dark"] .listing-card.is-browse-home-card {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

.listing-card.is-featured-home-card {
  cursor: pointer;
}

.featured-home-section {
  --home-section-title-size: var(--text-home-section-title);
  display: grid;
  gap: 22px;
}

.is-gear-browser-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background: #ffffff;
  padding: clamp(24px, 3.2vw, 46px) clamp(28px, 4vw, 56px) clamp(30px, 3.2vw, 46px);
}

body[data-theme="dark"] .is-gear-browser-frame {
  background: #171c21;
}

.is-gear-browser-frame .featured-home-header {
  padding-top: 0;
}

.featured-home-section.is-gear-browser-frame {
  margin-inline: calc(clamp(22px, 3vw, 42px) * -1);
  padding: clamp(22px, 2.8vw, 38px) clamp(22px, 3vw, 42px) clamp(26px, 3vw, 42px);
  border-radius: 34px;
  gap: clamp(22px, 2.4vw, 34px);
}

.gear-browser-scene {
  position: absolute;
  inset: var(--gear-scanner-scene-offset) 0 auto;
  z-index: 0;
  height: clamp(230px, 22vw, var(--gear-scanner-scene-max-height));
  pointer-events: none;
}

.gear-browser-scene img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
}

.gear-browser-scene-static {
  opacity: 1;
}

.gear-browser-scene-active {
  opacity: 1;
}

.gear-browser-scene.is-animating .gear-browser-scene-static {
  opacity: 0;
}

.gear-browser-scene.is-fading .gear-browser-scene-active {
  animation: gearBrowserSceneFadeOut 420ms ease-out forwards;
}

body[data-theme="dark"] .gear-browser-scene img {
  filter: invert(1);
}

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

.is-gear-browser-frame .featured-home-header,
.is-gear-browser-frame .featured-home-carousel,
.is-gear-browser-frame .gear-browser-preview,
.is-gear-browser-frame .browse-expanded-loader,
.is-gear-browser-frame .listing-card,
.is-gear-browser-frame .empty-state,
.is-gear-browser-frame .pagination,
.is-gear-browser-frame .quality-mode-controls,
.is-gear-browser-frame .result-view-controls {
  position: relative;
  z-index: 1;
}

.is-gear-browser-frame .featured-home-header {
  z-index: 2;
}

.featured-home-section + .featured-home-section {
  margin-top: 34px;
}

.featured-home-section.is-watched-gear {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-theme="dark"] .featured-home-section.is-watched-gear {
  background: transparent;
  border-color: transparent;
}

.watched-gear-placeholder {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
  min-height: 138px;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 22px;
  background:
    linear-gradient(var(--field), var(--field)) padding-box,
    var(--brand-gradient) border-box;
  border: 1px solid transparent;
}

body[data-theme="dark"] .watched-gear-placeholder {
  background:
    linear-gradient(#20262b, #20262b) padding-box,
    var(--brand-gradient) border-box;
}

.watched-placeholder-art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 8px;
  min-height: 90px;
}

.watched-placeholder-card {
  display: block;
  height: 72px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
}

.watched-placeholder-card:nth-child(3) {
  height: 88px;
}

.watched-placeholder-card:nth-child(4) {
  height: 62px;
}

.watched-placeholder-heart {
  position: absolute;
  top: -2px;
  right: 12px;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.watched-placeholder-heart::before {
  content: "♡";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 31px;
  font-weight: 850;
  line-height: 1;
}

.watched-placeholder-copy {
  display: grid;
  gap: 6px;
}

.watched-placeholder-copy strong {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 850;
  letter-spacing: 0;
}

.watched-placeholder-copy span {
  max-width: 58ch;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.watched-placeholder-action {
  justify-self: end;
  white-space: nowrap;
}

.featured-home-carousel {
  position: relative;
  min-width: 0;
  overflow: visible;
}

.featured-home-rail {
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  padding: 2px 4px 12px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: normal;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.featured-home-rail::-webkit-scrollbar {
  display: none;
}

.featured-home-rail .listing-card {
  flex: 0 0 clamp(270px, 22vw, 340px);
  min-width: 0;
  scroll-snap-align: start;
}

.featured-home-rail.is-programmatic-scroll {
  scroll-snap-type: none;
}

.featured-home-section.is-gear-browser-frame .featured-home-rail.is-programmatic-scroll,
.featured-home-section.is-gear-browser-frame .gear-browser-live-rail.is-programmatic-scroll {
  scroll-snap-type: none;
}

.featured-home-section.is-gear-browser-frame .featured-home-rail {
  gap: clamp(18px, 2vw, 26px);
}

.featured-home-section.is-gear-browser-frame .featured-home-rail .listing-card {
  flex-basis: clamp(230px, 20vw, 300px);
}

.featured-home-section.is-gear-browser-frame .gear-browser-double-carousel {
  margin-inline: -4px;
}

.featured-home-section.is-gear-browser-frame .gear-browser-double-rail {
  display: grid;
  grid-auto-columns: clamp(158px, 12.6vw, 198px);
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(0, auto));
  gap: clamp(12px, 1.3vw, 18px);
  padding: 4px clamp(42px, 4.8vw, 68px) 18px;
  scroll-padding-inline: clamp(42px, 4.8vw, 68px);
}

.featured-home-section.is-gear-browser-frame .gear-browser-double-rail .listing-card {
  width: 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.featured-home-section.is-gear-browser-frame .featured-home-rail-endcap {
  flex: 0 0 clamp(118px, 10vw, 156px);
  align-self: stretch;
  scroll-snap-align: end;
  pointer-events: none;
}

.featured-home-section.is-gear-browser-frame .gear-browser-live-carousel {
  margin-inline: calc(clamp(8px, 1.2vw, 16px) * -1);
}

.featured-home-section.is-gear-browser-frame .gear-browser-live-rail {
  --gear-live-card-size: clamp(146px, 12vw, 184px);
  display: grid;
  grid-auto-columns: var(--gear-live-card-size);
  grid-auto-flow: column;
  grid-template-rows: repeat(2, var(--gear-live-card-size));
  align-items: stretch;
  gap: clamp(12px, 1.5vw, 20px);
  padding: clamp(8px, 1vw, 14px) clamp(42px, 4.8vw, 68px) clamp(18px, 2vw, 28px);
  scroll-padding-inline: clamp(42px, 4.8vw, 68px);
  scroll-snap-type: x proximity;
}

.featured-home-section.is-gear-browser-frame .gear-browser-live-rail .listing-card.is-browse-home-card {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
}

.featured-home-section.is-gear-browser-frame .gear-browser-live-rail .listing-card.is-browse-home-card:first-of-type {
  grid-row: 1 / span 2;
  grid-column: span 2;
}

.gear-browser-preview {
  display: grid;
  gap: clamp(20px, 2vw, 30px);
  min-width: 0;
}

.gear-browser-see-all-link {
  appearance: none;
  justify-self: start;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-float);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    background var(--motion-standard),
    border-color var(--motion-standard),
    color var(--motion-standard),
    transform var(--motion-standard);
}

.gear-browser-see-all-link:hover,
.gear-browser-see-all-link:focus-visible {
  border-color: #000;
  background: #000;
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

.gear-browser-see-all-link:focus-visible {
  box-shadow: var(--shadow-float), 0 0 0 3px color-mix(in srgb, var(--brand-gradient-end) 34%, transparent);
}

body[data-theme="dark"] .gear-browser-see-all-link:hover,
body[data-theme="dark"] .gear-browser-see-all-link:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.brand-browser-section {
  --home-section-title-size: var(--text-home-section-title);
  position: relative;
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  margin-top: clamp(26px, 3vw, 38px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  overflow: visible;
}

.brand-browser-section::after {
  content: none;
}

.brand-browser-header,
.brand-browser-grid {
  position: relative;
  z-index: 1;
}

.brand-browser-header {
  display: grid;
  gap: 4px;
}

.brand-browser-header h3 {
  margin: 0;
  background: var(--brand-gradient);
  background-clip: text;
  color: transparent;
  font-size: var(--home-section-title-size);
  font-weight: var(--weight-home-section-title);
  letter-spacing: 0;
  line-height: 1.05;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-browser-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.brand-browser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.brand-browser-card {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 10px;
  padding: 4px 2px;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition:
    filter var(--motion-standard),
    transform var(--motion-standard);
}

.brand-browser-avatar {
  display: grid;
  width: clamp(132px, 13vw, 192px);
  aspect-ratio: 1 / 1;
  place-items: center;
  border: 2px solid color-mix(in srgb, #ffffff 28%, transparent);
  border-radius: 50%;
  background:
    linear-gradient(#171d23, #171d23) padding-box,
    var(--brand-gradient) border-box;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
}

.brand-browser-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-browser-name {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 850;
  line-height: 1.1;
}

.brand-browser-card:hover,
.brand-browser-card:focus-visible {
  filter: saturate(1.12) brightness(1.04);
  outline: none;
  transform: translateY(-3px);
}

.brand-browser-card:hover .brand-browser-avatar,
.brand-browser-card:focus-visible .brand-browser-avatar {
  border-color: transparent;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.3),
    0 0 0 4px color-mix(in srgb, var(--brand-gradient-start) 18%, transparent);
}

.brand-browser-card:focus-visible .brand-browser-name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 1120px) {
  .brand-browser-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.featured-home-section.is-watched-gear .featured-home-rail {
  gap: 16px;
  padding-bottom: 22px;
}

.featured-home-section.is-watched-gear .featured-home-rail .listing-card {
  flex-basis: clamp(150px, 14vw, 210px);
}

.featured-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 54px;
  height: 54px;
  aspect-ratio: 1 / 1;
  flex: 0 0 54px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(20, 24, 28, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background var(--motion-standard),
    box-shadow var(--motion-standard),
    opacity var(--motion-standard),
    transform var(--motion-standard);
}

.featured-carousel-control::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  border-bottom: 5px solid #111418;
  border-left: 5px solid #111418;
  background: transparent;
  transform: translateX(3px) rotate(45deg);
}

body[data-theme="dark"] .featured-carousel-control {
  background: rgba(247, 248, 244, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.featured-carousel-control:hover {
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(20, 24, 28, 0.28);
  transform: translateY(-50%) scale(1.04);
}

.featured-carousel-control:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.featured-carousel-control:disabled {
  cursor: default;
  opacity: 0.22;
  transform: translateY(-50%);
}

.featured-carousel-control[hidden] {
  display: none;
}

.featured-carousel-control-prev {
  left: -8px;
}

.featured-carousel-control-next {
  right: -8px;
}

.featured-carousel-control-next::before {
  transform: translateX(-3px) rotate(225deg);
}

.browse-carousel-see-more {
  position: absolute;
  right: clamp(28px, 4vw, 56px);
  top: 50%;
  z-index: 6;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 18px 42px rgba(20, 24, 28, 0.2);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  transform: translateY(-50%);
  transition:
    background var(--motion-standard),
    border-color var(--motion-standard),
    color var(--motion-standard),
    opacity var(--motion-standard),
    transform var(--motion-standard);
}

.browse-carousel-see-more:hover,
.browse-carousel-see-more:focus-visible {
  border-color: #000;
  background: #000;
  color: #fff;
  outline: none;
  transform: translateY(calc(-50% - 1px));
}

.browse-carousel-see-more[hidden] {
  display: none;
}

body[data-theme="dark"] .browse-carousel-see-more:hover,
body[data-theme="dark"] .browse-carousel-see-more:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.listing-card.is-featured-home-card {
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  background: var(--image-bg);
  color: #fff;
  box-shadow:
    0 28px 72px rgba(24, 28, 30, 0.16),
    0 8px 22px rgba(24, 28, 30, 0.08);
  min-height: 0;
}

body[data-theme="dark"] .listing-card.is-featured-home-card {
  background: #111418;
  box-shadow:
    0 30px 78px rgba(0, 0, 0, 0.62),
    0 8px 24px rgba(0, 0, 0, 0.36);
}

.listing-card.is-featured-home-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.64) 25%, rgba(0, 0, 0, 0.2) 56%, rgba(0, 0, 0, 0.02) 82%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22), transparent 30%);
  pointer-events: none;
}

.listing-card.is-featured-home-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.featured-home-loading-card {
  pointer-events: none;
}

.featured-home-loading-card::after {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.03) 54%),
    linear-gradient(120deg, rgba(0, 114, 255, 0.08), rgba(255, 0, 255, 0.09));
}

.featured-home-loading-image {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.4), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 88%, var(--brand-gradient-end)), color-mix(in srgb, var(--panel) 86%, var(--color-brand-hot)));
}

.featured-home-loading-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.44) 48%, transparent 76%);
  animation: loadingPulse 1.35s ease-in-out infinite;
}

.listing-card.is-browse-loading-card {
  background: color-mix(in srgb, var(--panel) 92%, var(--brand-gradient-end));
}

.listing-card.is-browse-loading-card .featured-home-loading-image {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  padding: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.82), transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 94%, var(--brand-gradient-end)), color-mix(in srgb, var(--panel) 91%, var(--color-brand-hot)));
}

.gear-browser-loader-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  color: var(--ink);
  filter: none;
  transform: none;
}

.gear-browser-loader-copy {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  color: var(--ink);
  text-align: left;
  backdrop-filter: blur(12px);
}

.gear-browser-loader-copy strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.08;
}

.gear-browser-loader-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.listing-card.is-browse-loading-card .new-pill,
.listing-card.is-browse-loading-card .loading-body {
  display: none;
}

body[data-theme="dark"] .listing-card.is-browse-loading-card {
  background: color-mix(in srgb, #171c21 90%, var(--brand-gradient-end));
}

body[data-theme="dark"] .listing-card.is-browse-loading-card .featured-home-loading-image {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, #171c21 84%, var(--brand-gradient-end)), color-mix(in srgb, #171c21 86%, var(--color-brand-hot)));
}

body[data-theme="dark"] .gear-browser-loader-svg {
  color: #f7f8f4;
  filter: invert(1);
}

body[data-theme="dark"] .gear-browser-loader-copy {
  background: color-mix(in srgb, #101214 76%, transparent);
  color: #f7f8f4;
}

body[data-theme="dark"] .gear-browser-loader-copy span {
  color: color-mix(in srgb, #f7f8f4 72%, transparent);
}

.featured-home-loading-card .new-pill {
  opacity: 0.8;
}

.featured-home-loading-card .listing-body {
  right: 24px;
}

.featured-home-loading-card .loading-line {
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.46) 48%, transparent 76%),
    rgba(255, 255, 255, 0.42);
  background-size: 220% 100%;
}

.loading-card {
  pointer-events: none;
}

.image-stage {
  position: relative;
}

.image-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: inherit;
  background: var(--image-bg);
  color: transparent;
}

.image-link img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
  color: transparent;
  font-size: 0;
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .listing-card:hover img {
    transform: scale(1.03);
  }
}

.loading-card:hover img {
  transform: none;
}

.loading-image {
  color: color-mix(in srgb, var(--image-bg) 78%, var(--panel));
}

.source-loading-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.source-loading-sweep {
  animation: sourceSweep 1.2s ease-in-out infinite;
}

@keyframes sourceSweep {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(580px);
  }
}

.new-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  background: transparent;
  color: var(--color-brand-hot);
}

.new-pill svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.listing-card.is-new .new-pill {
  display: inline-grid;
}

.source-avatar {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--source-default);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
}

.alert-thumb .source-avatar {
  top: 5px;
  right: 5px;
  bottom: auto;
  width: 24px;
  height: 24px;
  border-width: 1px;
  font-size: 9px;
}

.source-avatar.has-logo {
  border-color: rgba(255, 255, 255, 0.96);
  background: transparent;
  color: transparent;
}

.source-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.source-avatar[data-source="mercari"] {
  background: var(--source-mercari);
}

.source-avatar.has-logo[data-source="mercari"] {
  background: transparent;
}

.source-avatar[data-source="yahoo-auctions"] {
  background: var(--source-yahoo-auctions);
}

.source-avatar.has-logo[data-source="yahoo-auctions"] {
  background: transparent;
}

.source-avatar[data-source="yahoo-fleamarket"] {
  background: var(--source-yahoo-fleamarket);
}

.source-avatar.has-logo[data-source="yahoo-fleamarket"] {
  background: transparent;
}

.source-avatar[data-source="rakuma"] {
  background: var(--source-rakuma);
}

.source-avatar.has-logo[data-source="rakuma"] {
  background: transparent;
}

.source-avatar[data-source="digimart"] {
  background: var(--source-digimart);
}

.source-avatar[data-source="qsic"] {
  background: var(--source-qsic);
}

.source-avatar[data-source="reverb"] {
  background: var(--source-reverb);
}

.source-avatar[data-source="reverb-us"],
.source-avatar[data-source="reverb-uk"] {
  background: var(--source-reverb);
}

.source-avatar[data-source="ebay-us"],
.source-avatar[data-source="ebay-uk"] {
  background: var(--source-ebay);
}

.source-avatar[data-source="sweetwater-used"] {
  background: var(--source-sweetwater);
}

.source-avatar[data-source="guitar-center-used"] {
  background: var(--source-guitar-center);
}

.source-avatar[data-source="robotspeak"] {
  background: var(--source-robotspeak);
}

.source-avatar[data-source="mission-synths"] {
  background: var(--source-mission-synths);
}

.source-avatar[data-source="starving-musician"] {
  background: var(--source-starving-musician);
}

.source-avatar[data-source="bananas-at-large"] {
  background: var(--source-bananas-at-large);
  color: var(--source-ink-on-yellow);
}

.source-avatar[data-source="gelb-music"] {
  background: var(--source-gelb-music);
}

.source-avatar[data-source="main-drag"] {
  background: var(--source-main-drag);
}

.source-avatar[data-source="rogue-music"] {
  background: var(--source-rogue-music);
}

.source-avatar[data-source="craigslist-sfbay"],
.source-avatar[data-source="craigslist-la"],
.source-avatar[data-source="craigslist-east"] {
  background: var(--source-craigslist);
}

.source-avatar[data-source="three-wave"] {
  background: var(--source-three-wave);
}

.source-avatar[data-source="alto-music"] {
  background: var(--source-alto-music);
}

.source-avatar[data-source="tone-tweakers"] {
  background: var(--source-tone-tweakers);
  color: var(--source-ink-on-yellow);
}

.source-avatar[data-source="pro-audio-star"] {
  background: var(--source-pro-audio-star);
}

.source-avatar[data-source="jimoty"] {
  background: var(--source-jimoty);
}

.source-avatar[data-source="offmall"],
.source-avatar[data-source="hardoff"] {
  background: var(--source-offmall);
  color: var(--source-ink-on-yellow);
}

.source-avatar.has-logo[data-source="offmall"],
.source-avatar.has-logo[data-source="hardoff"] {
  background: transparent;
}

.source-avatar[data-source="five-g"] {
  background: var(--source-five-g);
}

.source-avatar[data-source="implant4"] {
  background: var(--source-implant4);
}

.source-filter-button .source-filter-avatar {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-width: 1px;
  box-shadow: none;
  font-size: 9px;
  overflow: visible;
}

.source-assist-button .source-assist-avatar {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-width: 1px;
  box-shadow: none;
  font-size: 7px;
  overflow: hidden;
}

.source-filter-button .source-filter-avatar::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 3px solid transparent;
  border-top-color: var(--source-solid, var(--primary));
  border-right-color: color-mix(in srgb, var(--source-solid, var(--primary)) 46%, transparent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: rotate(0deg);
}

.source-filter-button.is-loading .source-filter-avatar::after {
  opacity: 1;
  animation: sourceLoadingRing 0.85s linear infinite;
}

.source-filter-button.is-error .source-filter-avatar::after {
  inset: -3px;
  border-color: var(--rose);
  opacity: 1;
  animation: none;
}

.source-filter-button.is-parked .source-filter-avatar::after {
  inset: -3px;
  border-color: currentColor;
  opacity: 0.48;
  animation: none;
}

.source-filter-button.is-pending .source-filter-avatar::after {
  inset: -3px;
  border-color: var(--source-solid, var(--primary));
  opacity: 0.34;
  animation: sourceLoadingRing 1.6s linear infinite;
}

.source-filter-button.is-manual .source-filter-avatar::after {
  inset: -3px;
  border-color: var(--source-solid, var(--primary));
  opacity: 0.42;
  animation: none;
}

.source-filter-button.is-active .source-filter-avatar {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: var(--source-solid-mark, var(--primary));
}

.source-filter-button.is-active .source-filter-avatar.has-logo {
  border-color: rgba(255, 255, 255, 0.9);
  background: transparent;
  color: transparent;
}

.source-filter-button[data-source="offmall"].is-active .source-filter-avatar,
.source-filter-button[data-source="hardoff"].is-active .source-filter-avatar {
  border-color: rgba(26, 26, 26, 0.28);
  background: rgba(26, 26, 26, 0.1);
  color: #1a1a1a;
}

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

.listing-body {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.listing-card.is-featured-home-card .listing-body {
  position: absolute;
  right: 82px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  min-height: 0;
  gap: 9px;
  padding: 0;
}

.listing-card.is-featured-home-card .image-stage,
.listing-card.is-featured-home-card .image-link {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

.listing-card.is-featured-home-card .listing-meta,
.listing-card.is-featured-home-card .source-chip,
.listing-card.is-featured-home-card .watch-button {
  display: none;
}

.listing-card.is-featured-home-card .new-pill {
  z-index: 3;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
}

.listing-card.is-featured-home-card .source-avatar {
  z-index: 3;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-width: 3px;
}

.listing-card.is-watched-home-card {
  border-radius: 18px;
  box-shadow:
    0 18px 42px rgba(24, 28, 30, 0.13),
    0 6px 16px rgba(24, 28, 30, 0.08);
}

body[data-theme="dark"] .listing-card.is-watched-home-card {
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.48),
    0 7px 18px rgba(0, 0, 0, 0.3);
}

.listing-card.is-watched-home-card .listing-body {
  right: 46px;
  bottom: 14px;
  left: 14px;
  gap: 6px;
}

.listing-card.is-watched-home-card .new-pill {
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
}

.listing-card.is-watched-home-card .source-avatar {
  right: 12px;
  bottom: 12px;
  width: 30px;
  height: 30px;
  border-width: 2px;
}

.loading-body {
  gap: 12px;
}

.loading-line,
.loading-button {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-control);
  background:
    linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--loading-accent, #e53935) 18%, transparent) 48%, transparent 76%),
    color-mix(in srgb, var(--line) 70%, var(--panel));
  background-size: 220% 100%;
  animation: loadingPulse 1.35s ease-in-out infinite;
}

.loading-line-short {
  width: 38%;
  height: 18px;
}

.loading-line-title {
  width: 92%;
  height: 22px;
}

.loading-line-title-alt {
  width: 74%;
}

.loading-line-shop {
  width: 54%;
  height: 16px;
}

.loading-line-price {
  width: 42%;
  height: 28px;
}

.loading-line-date {
  width: 34%;
  height: 18px;
}

.loading-button {
  height: 36px;
}

.loading-button-wide {
  grid-column: 1 / -1;
}

@keyframes loadingPulse {
  from {
    background-position: 130% 0;
  }

  to {
    background-position: -90% 0;
  }
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 12px;
}

.source-chip {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 800;
  white-space: nowrap;
}

.listing-card h3 {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--listing-title);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
}

.listing-card.is-featured-home-card h3 {
  min-height: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.46);
}

.listing-card.is-watched-home-card h3 {
  font-size: 13px;
  line-height: 1.12;
  -webkit-line-clamp: 2;
}

.shop-name {
  display: -webkit-box;
  min-height: 18px;
  margin: -4px 0 0;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.listing-card.is-featured-home-card .shop-name {
  display: none;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 0;
}

.price-row strong {
  font-size: 26px;
  line-height: 1.05;
}

.listing-card.is-featured-home-card .price-row {
  margin-top: 0;
}

.listing-card.is-featured-home-card .price-row strong {
  color: #fff;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.46);
}

.listing-card.is-watched-home-card .price-row strong {
  font-size: 17px;
}

.listing-card.is-featured-home-card .price-row span {
  display: none;
}

.price-row span:empty,
.feedback-button[hidden] {
  display: none;
}

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

.listing-card.is-featured-home-card .card-actions {
  display: none;
}

.listing-card.is-featured-home-card .image-stage .listing-action-menu {
  display: none;
}

.listing-card.is-featured-home-card .listing-action-menu {
  display: none;
}

.watch-button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: auto;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #111418;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  transition:
    background var(--motion-standard),
    box-shadow var(--motion-standard),
    color var(--motion-standard),
    transform var(--motion-standard);
}

.watch-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 21px;
  height: 21px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78z' fill='white' stroke='%23111418' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.watch-button:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 11px 22px rgba(0, 0, 0, 0.3);
}

.watch-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.watch-button.is-watching {
  border-color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-brand-hot);
}

.watch-button.is-watching::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78z' fill='%23ff00ff' stroke='%23ff00ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.feedback-button {
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--button-bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.feedback-button.is-active,
.listing-card.is-feedback-gear .gear-button {
  border-color: rgba(47, 125, 88, 0.36);
  color: var(--green);
}

.listing-card.is-feedback-noise .noise-button {
  border-color: rgba(177, 59, 87, 0.4);
  color: var(--rose);
}

.open-link {
  display: flex;
  grid-column: 1 / -2;
  height: 36px;
  flex: 1;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, #111418 14%, transparent);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #111418;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition:
    background var(--motion-standard),
    border-color var(--motion-standard),
    box-shadow var(--motion-standard),
    color var(--motion-standard),
    transform var(--motion-standard);
}

.image-stage:has(.image-link:hover) + .listing-body .open-link,
.image-stage:has(.image-link:focus-visible) + .listing-body .open-link,
.open-link:hover,
.open-link:focus-visible {
  border-color: transparent;
  background: var(--brand-gradient);
  box-shadow: 0 12px 28px rgba(0, 114, 255, 0.22), 0 10px 24px rgba(255, 0, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.open-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-gradient-end) 54%, var(--brand-gradient-start));
  outline-offset: 3px;
}

body[data-theme="dark"] .open-link {
  border-color: color-mix(in srgb, #ffffff 18%, transparent);
  background: #111418;
  color: #ffffff;
}

body[data-theme="dark"] .image-stage:has(.image-link:hover) + .listing-body .open-link,
body[data-theme="dark"] .image-stage:has(.image-link:focus-visible) + .listing-body .open-link,
body[data-theme="dark"] .open-link:hover,
body[data-theme="dark"] .open-link:focus-visible {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #ffffff;
}

.listing-action-menu {
  position: relative;
  grid-column: -2 / -1;
}

.listing-card:has(.open-menu:not([hidden])) {
  overflow: visible;
  z-index: 80;
}

.listing-action-menu:has(.open-menu:not([hidden])) {
  z-index: 1100;
}

.image-stage .listing-action-menu {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  width: 32px;
  pointer-events: auto;
}

.more-action-button {
  position: relative;
  display: grid;
  width: 100%;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, #111418 72%, var(--line));
  border-radius: var(--radius-control);
  background: #111418;
  color: #ffffff;
  cursor: pointer;
  font-size: 0;
  font-weight: 900;
  line-height: 0;
}

.more-action-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 18px;
  height: 6px;
  background:
    radial-gradient(circle at 2px 50%, currentColor 0 2px, transparent 2.25px),
    radial-gradient(circle at 9px 50%, currentColor 0 2px, transparent 2.25px),
    radial-gradient(circle at 16px 50%, currentColor 0 2px, transparent 2.25px);
  transform: translate(-50%, -50%);
}

.image-stage .more-action-button {
  width: 32px;
  min-height: 32px;
  height: 32px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.result-grid.is-gallery-view .listing-body .listing-action-menu {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: auto;
  z-index: 4;
  width: 36px;
  pointer-events: auto;
}

.listing-card .source-avatar {
  display: none;
}

.listing-card .list-source-avatar {
  display: none;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .source-avatar:not(.list-source-avatar) {
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  border-width: 2px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .image-link {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card-media);
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .image-link img {
  border-radius: inherit;
  object-fit: cover;
  object-position: center center;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .listing-meta,
.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .source-chip {
  display: none;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card h3 {
  font-size: var(--text-listing-title-grid);
  line-height: 1.2;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .price-row strong {
  font-size: var(--text-listing-price-grid);
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card {
  display: flex;
  flex-direction: column;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .listing-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  grid-template-rows: auto auto;
  align-content: start;
  flex: 1 1 auto;
  min-height: 92px;
  gap: 6px;
  padding: 12px;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card h3 {
  grid-column: 1 / -1;
  min-height: 0;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .shop-name {
  display: none;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .price-row {
  grid-column: 1;
  grid-row: 2;
  min-height: 32px;
  align-items: center;
  margin-top: 0;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .price-row strong {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  line-height: 1;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .price-row span {
  display: none;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .card-actions {
  display: none;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .open-link {
  display: none;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .listing-action-menu {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  z-index: 3;
  width: 32px;
  margin-left: auto;
  pointer-events: auto;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card .more-action-button {
  width: 32px;
  min-height: 32px;
  height: 32px;
  border-radius: 12px;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card:hover,
.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card:focus-within {
  background: var(--brand-gradient);
  box-shadow: 0 22px 48px rgba(0, 114, 255, 0.18), 0 18px 42px rgba(255, 0, 255, 0.14);
  color: #ffffff;
}

.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card:hover h3,
.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card:focus-within h3,
.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card:hover .price-row strong,
.result-grid:not(.is-list-view):not(.is-gallery-view):not(.is-featured-home) .listing-card:focus-within .price-row strong {
  color: #ffffff;
}

.result-grid:not(.is-list-view) .listing-card .list-source-avatar {
  display: none;
}

.result-grid.is-gallery-view .listing-card .source-avatar:not(.list-source-avatar) {
  top: 8px;
  right: 8px;
  bottom: auto;
  left: auto;
  z-index: 5;
  display: grid;
  width: 32px;
  height: 32px;
  border-width: 2px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.result-grid.is-list-view .listing-card .source-avatar:not(.list-source-avatar) {
  display: none;
}

.result-grid.is-list-view .listing-meta,
.result-grid.is-list-view .source-chip,
.result-grid.is-list-view .open-link {
  display: none;
}

.result-grid.is-list-view .card-actions {
  display: none;
}

.result-grid.is-list-view .list-source-avatar {
  top: 18px;
  right: 15px;
  bottom: auto;
  left: auto;
  display: grid;
  width: 34px;
  height: 34px;
  border-width: 2px;
  box-shadow: none;
}

.more-action-button:hover,
.more-action-button:focus-visible,
.more-action-button[aria-expanded="true"] {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #ffffff;
  outline: none;
}

.open-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 8;
  display: grid;
  min-width: 180px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--shadow-action-menu);
}

.open-menu.is-floating {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 1000;
  width: max-content;
}

.open-menu.is-mobile-sheet {
  position: fixed;
  z-index: 1300;
  top: auto;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(var(--mobile-bottom-nav-space, 88px) + 12px);
  left: max(12px, env(safe-area-inset-left));
  display: grid;
  width: auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-overlay-edge) 70%, var(--line));
  border-radius: var(--radius-card-large);
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    var(--brand-gradient) border-box;
  box-shadow:
    0 0 0 1px var(--color-mobile-nav-interaction),
    var(--shadow-action-sheet),
    0 0 34px color-mix(in srgb, var(--brand-gradient-start) 18%, transparent);
}

.open-menu.is-mobile-sheet a,
.open-menu.is-mobile-sheet button {
  min-height: var(--control-action-sheet-row-height);
  gap: 14px;
  padding: 0 18px;
  font-size: 16px;
  border-top-color: color-mix(in srgb, var(--line) 72%, #ffffff 10%);
}

.open-menu.is-mobile-sheet .menu-source-avatar {
  width: var(--control-action-sheet-icon-size) !important;
  min-width: var(--control-action-sheet-icon-size);
  max-width: var(--control-action-sheet-icon-size);
  height: var(--control-action-sheet-icon-size) !important;
  min-height: var(--control-action-sheet-icon-size) !important;
  max-height: var(--control-action-sheet-icon-size);
  flex-basis: var(--control-action-sheet-icon-size);
  font-size: 12px;
}

.open-menu.is-mobile-sheet .noise-menu-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.open-menu.is-mobile-sheet .watch-menu-icon {
  width: var(--control-action-sheet-icon-size);
  height: var(--control-action-sheet-icon-size);
  flex-basis: var(--control-action-sheet-icon-size);
  font-size: 24px;
}

.open-menu.is-mobile-sheet .noise-menu-icon::after {
  height: 31px;
  width: 3px;
}

.open-menu[hidden] {
  display: none;
}

.open-menu [hidden] {
  display: none;
}

.open-menu a,
.open-menu button {
  display: flex;
  min-height: var(--control-action-menu-row-height);
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.open-menu .menu-source-avatar {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  display: inline-grid;
  box-sizing: border-box;
  width: var(--control-action-menu-icon-size) !important;
  min-width: var(--control-action-menu-icon-size);
  max-width: var(--control-action-menu-icon-size);
  height: var(--control-action-menu-icon-size) !important;
  min-height: var(--control-action-menu-icon-size) !important;
  max-height: var(--control-action-menu-icon-size);
  flex: 0 0 var(--control-action-menu-icon-size);
  align-self: center;
  border-width: 2px;
  border-radius: 50%;
  box-shadow: none;
  font-size: 9px;
  line-height: 1;
  aspect-ratio: 1 / 1;
}

.open-menu .menu-source-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
}

.open-menu .buyee-menu-avatar {
  border: 0;
  background: var(--source-buyee);
  color: var(--source-buyee-ink);
  place-items: center;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.open-menu .menu-action-label {
  min-width: 0;
}

.open-menu a:first-child,
.open-menu button:first-child {
  border-top: 0;
}

.open-menu a:hover,
.open-menu a:focus-visible,
.open-menu button:hover,
.open-menu button:focus-visible {
  background: var(--button-bg);
  outline: none;
}

.noise-menu-icon {
  position: relative;
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: var(--color-brand-hot);
}

.watch-menu-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.watch-menu-action.is-watching .watch-menu-icon {
  color: var(--color-brand-hot);
}

.watch-menu-action:hover .watch-menu-icon,
.watch-menu-action:focus-visible .watch-menu-icon {
  color: var(--color-brand-hot);
}

.noise-menu-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 21px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.noise-menu-action:hover .noise-menu-icon,
.noise-menu-action:focus-visible .noise-menu-icon {
  color: var(--accent);
}

.empty-state {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.empty-state-action {
  justify-self: center;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.featured-home-header {
  display: grid;
  gap: 6px;
  padding: 10px 2px 0;
}

.featured-home-header h3 {
  margin: 0;
  background: var(--brand-gradient);
  background-clip: text;
  color: transparent;
  font-size: var(--home-section-title-size);
  font-weight: var(--weight-home-section-title);
  line-height: 1.05;
  letter-spacing: 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-headline-button {
  appearance: none;
  border: 0;
  display: inline-block;
  padding: 0;
  padding-bottom: 0.06em;
  background: var(--brand-gradient);
  background-clip: text;
  color: transparent;
  cursor: pointer;
  font: inherit;
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-headline-button:hover {
  filter: saturate(1.2) brightness(0.94);
}

.feature-headline-button:focus-visible {
  border-radius: 12px;
  outline: 3px solid var(--brand-gradient-end);
  outline-offset: 5px;
}

.featured-home-header span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.featured-home-header.is-browse-header {
  --browse-headline-size: var(--text-home-section-title);
  --home-section-title-size: var(--browse-headline-size);

  display: block;
}

.featured-home-header.is-browse-header h3 {
  display: flex;
  align-items: baseline;
  gap: clamp(8px, 1vw, 14px);
  flex-wrap: wrap;
  min-width: 0;
}

.featured-home-header.is-browse-header .feature-headline-button {
  font-size: var(--browse-headline-size);
  font-weight: var(--weight-home-section-title);
  white-space: nowrap;
}

.featured-home-header.is-browse-header .browse-title-mobile-break {
  display: inline;
  color: inherit;
  font: inherit;
  line-height: inherit;
  -webkit-text-fill-color: inherit;
}

.featured-home-header.is-browse-header.is-brand-browse-header .feature-headline-button {
  white-space: normal;
  overflow-wrap: anywhere;
}

.browse-header-copy {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.browse-title-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 22px);
}

.browse-title-row h3 {
  flex: 1 1 auto;
}

.browse-title-row .browse-header-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.featured-home-section.is-gear-browser-frame .browse-header-actions {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.featured-home-section.is-gear-browser-frame .browse-category-control {
  order: 1;
}

.featured-home-section.is-gear-browser-frame .browse-category-control span {
  display: none;
}

.featured-home-section.is-gear-browser-frame .browse-view-all-button {
  order: 2;
}

.featured-home-header.is-browse-header > div:first-child > span {
  display: block;
  margin-top: clamp(3px, 0.45vw, 7px);
  font-size: clamp(22px, calc(1.35vw + 6px), 26px);
  line-height: 1.28;
}

.featured-home-header .browse-category-label {
  display: inline-block;
  color: #000000;
  font-weight: 900;
  -webkit-text-fill-color: currentColor;
}

body[data-theme="dark"] .featured-home-header .browse-category-label {
  color: #ffffff;
}

.featured-home-header .browse-detail-rest {
  font-weight: 500;
}

.featured-home-header .browse-loading-detail {
  color: var(--muted);
  font-weight: 700;
}

.featured-home-header .browse-headline-loading {
  color: var(--color-brand-hot);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
  -webkit-text-fill-color: currentColor;
}

.browse-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.browse-category-control {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: min(220px, 42vw);
  position: relative;
}

.browse-brand-control {
  min-width: min(280px, 48vw);
}

.browse-category-control span {
  position: static;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
}

.browse-category-control select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 46px;
  padding: 0 48px 0 18px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--ink));
  border-radius: var(--radius-pill);
  background-color: var(--select-bg);
  background-image: var(--select-brand-chevron);
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 18px 18px;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  letter-spacing: 0;
  word-spacing: normal;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 52%, transparent);
  transition: none;
}

.browse-category-control select:hover {
  border-color: color-mix(in srgb, var(--line) 64%, var(--ink));
  background-color: var(--select-hover-bg);
}

.browse-category-control select:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

body[data-theme="dark"] .browse-category-control select {
  background-image: var(--select-brand-chevron);
}

.browse-view-all-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-float);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    background var(--motion-standard),
    border-color var(--motion-standard),
    color var(--motion-standard),
    transform var(--motion-standard);
}

.browse-view-all-button:hover {
  border-color: #000;
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

body[data-theme="dark"] .browse-view-all-button {
  color: #fff;
}

body[data-theme="dark"] .browse-view-all-button:hover {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.browse-view-all-button:active {
  transform: translateY(0);
}

.browse-rescan-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--secondary-button-stroke);
  border-radius: var(--radius-pill);
  background: var(--secondary-button-bg);
  color: var(--secondary-button-ink);
  cursor: pointer;
  padding: 0;
  transition:
    background var(--motion-standard),
    border-color var(--motion-standard),
    color var(--motion-standard),
    transform var(--motion-standard);
}

.browse-rescan-button:hover,
.browse-rescan-button:focus-visible {
  border-color: var(--secondary-button-hover-bg);
  background: var(--secondary-button-hover-bg);
  color: var(--secondary-button-hover-ink);
  outline: none;
  transform: translateY(-1px);
}

.browse-rescan-button:focus-visible {
  box-shadow: var(--focus-ring);
}

.browse-rescan-button:active {
  transform: translateY(0) scale(0.98);
}

.browse-rescan-icon {
  display: block;
  width: 22px;
  height: 22px;
  transform-origin: center;
}

.browse-rescan-button.is-loading .browse-rescan-icon {
  animation: gearScannerRescanSpin var(--motion-standard) linear infinite;
}

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

@media (max-width: 1280px) {
  .featured-home-section.is-gear-browser-frame {
    gap: var(--space-2);
  }

  .featured-home-section.is-gear-browser-frame .browse-title-row {
    align-items: center;
  }

  .featured-home-section.is-gear-browser-frame .browse-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    align-items: center;
    width: fit-content;
    max-width: min(100%, calc((var(--space-7) * 6) + var(--space-6)));
    gap: var(--space-2);
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control {
    flex: 0 0 100%;
    justify-content: flex-end;
    order: 1;
    width: 100%;
    min-width: 0;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control select {
    width: 100%;
  }

  .featured-home-section.is-gear-browser-frame .browse-rescan-button {
    flex: 0 0 auto;
    margin-left: auto;
    order: 2;
  }

  .featured-home-section.is-gear-browser-frame .browse-view-all-button {
    flex: 0 0 auto;
    order: 3;
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-double-rail {
    padding-top: var(--space-1);
  }
}

@media (min-width: 721px) and (max-width: 1280px) {
  .featured-home-section.is-gear-browser-frame .browse-title-row h3 {
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  .featured-home-section,
  .brand-browser-section {
    --home-section-title-size: var(--text-home-section-title-reduced);
  }

  .featured-home-section.is-gear-browser-frame {
    margin-inline: -22px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .featured-home-header.is-browse-header {
    --browse-headline-size: var(--text-home-section-title-reduced);
  }

  .featured-home-section.is-gear-browser-frame .browse-view-all-button {
    order: 2;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control {
    order: 1;
  }
}

.listing-card.is-browse-home-card {
  min-width: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 14px 30px rgba(17, 20, 24, 0.12);
}

.gear-browser-preview-grid .listing-card.is-browse-home-card,
.gear-browser-double-rail .listing-card.is-browse-home-card {
  display: block;
  min-height: 0;
}

.gear-browser-preview-grid .listing-card.is-browse-home-card .image-stage,
.gear-browser-preview-grid .listing-card.is-browse-home-card .image-link,
.gear-browser-double-rail .listing-card.is-browse-home-card .image-stage,
.gear-browser-double-rail .listing-card.is-browse-home-card .image-link {
  min-height: 0;
}

.gear-browser-preview-grid .listing-card.is-browse-home-card .image-link,
.gear-browser-double-rail .listing-card.is-browse-home-card .image-link {
  aspect-ratio: 1 / 1;
}

.listing-card.is-browse-home-card .listing-body {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: auto;
  height: auto;
  min-height: 0;
  gap: 0;
  padding: 0;
  pointer-events: none;
}

.listing-card.is-browse-home-card .listing-meta,
.listing-card.is-browse-home-card .shop-name,
.listing-card.is-browse-home-card .open-link,
.listing-card.is-browse-home-card .feedback-button,
.listing-card.is-browse-home-card .new-pill,
.listing-card.is-browse-home-card .watch-button,
.listing-card.is-browse-home-card .price-row span {
  display: none;
}

.listing-card.is-browse-home-card .source-avatar:not(.list-source-avatar) {
  top: 8px;
  right: 8px;
  bottom: auto;
  left: auto;
  z-index: 4;
  display: inline-grid;
  width: 34px;
  height: 34px;
}

.listing-card.is-browse-home-card h3 {
  position: absolute;
  right: 0;
  bottom: 48px;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 52px;
  min-height: 0;
  max-height: 52px;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-top: 1px solid color-mix(in srgb, #ffffff 18%, transparent);
  border-bottom: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.86), rgba(17, 20, 24, 0.58)),
    var(--brand-gradient);
  color: #ffffff;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 48px 0 rgba(17, 20, 24, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0;
  font-weight: 750;
  line-height: 0;
  opacity: 0;
  overflow-wrap: anywhere;
  padding: 10px 12px 12px;
  pointer-events: none;
  text-shadow: none;
  transform: translateY(calc(100% + 48px));
  transition:
    opacity 80ms ease,
    transform 80ms ease;
}

.listing-card.is-browse-home-card h3::before {
  content: attr(data-preview-title);
  display: -webkit-box;
  max-height: 30px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  line-height: 15px;
  overflow-wrap: anywhere;
}

.listing-card.is-browse-home-card:hover h3,
.listing-card.is-browse-home-card:focus-within h3 {
  opacity: 1;
  transform: translateY(0);
}

.listing-card.is-browse-home-card .price-row {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 4;
  justify-content: flex-start;
  margin-top: 0;
}

.listing-card.is-browse-home-card .card-actions {
  display: none;
}

.listing-card.is-browse-home-card .listing-action-menu {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: auto;
  z-index: 4;
  width: 36px;
  margin: 0;
  pointer-events: auto;
}

.listing-card.is-browse-home-card .more-action-button {
  width: 36px;
  min-height: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
}

.listing-card.is-browse-home-card .price-row strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.94);
  color: #111418;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.listing-card.is-browse-home-card:hover .price-row strong,
.listing-card.is-browse-home-card:focus-within .price-row strong {
  background: var(--brand-gradient);
  color: #ffffff;
}

.listing-card.is-browse-home-card .watch-button {
  display: none;
}

.result-grid.is-browse-expanded {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.result-grid.is-browse-expanded.is-list-view {
  grid-template-columns: minmax(0, 1fr);
}

.result-grid.is-browse-expanded.is-gear-browser-frame {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  gap: clamp(20px, 2.2vw, 30px);
  padding-top: clamp(24px, 2.6vw, 38px);
  border-radius: 34px;
}

.result-grid.is-browse-expanded.is-gear-browser-frame:not(.is-list-view):not(.is-gallery-view) {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.result-grid.is-browse-expanded.is-gear-browser-frame.is-gallery-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  align-items: start;
  column-width: auto;
  column-gap: 14px;
  row-gap: 14px;
}

.result-grid.is-browse-expanded.is-gear-browser-frame.is-gallery-view > :not(.listing-card) {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.result-grid.is-browse-expanded.is-gear-browser-frame.is-gallery-view .listing-card {
  display: block;
  margin-bottom: 0;
}

.browse-infinite-sentinel {
  grid-column: 1 / -1;
  column-span: all;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  text-align: center;
}

.browse-infinite-sentinel > button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: var(--weight-bold);
  transition:
    border-color var(--motion-standard),
    color var(--motion-standard);
}

.browse-infinite-sentinel > button:hover,
.browse-infinite-sentinel > button:focus-visible {
  border-color: var(--color-brand-hot);
  color: var(--color-brand-hot);
}

.browse-infinite-sentinel > button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.browse-infinite-pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-brand-hot);
}

.browse-infinite-sentinel.is-loading .browse-infinite-pulse {
  box-shadow: var(--focus-ring);
}

.browse-infinite-sentinel.is-complete {
  min-height: 112px;
}

.browse-infinite-sentinel.is-complete > button {
  border-color: var(--line);
  color: var(--ink);
}

.browse-expanded-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding: 4px 0 8px;
}

.browse-expanded-copy {
  display: grid;
  gap: 4px;
}

.browse-expanded-eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.browse-expanded-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.browse-expanded-headline {
  cursor: default;
}

.featured-home-header.is-browse-header .browse-expanded-headline {
  font-size: var(--browse-headline-size);
  font-weight: 600;
  line-height: 1.08;
}

.browse-expanded-actions {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 10px;
}

.brrtz-gradient-arrow-link {
  display: inline-flex;
  min-height: 0;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding: 0;
}

.brrtz-gradient-arrow-link::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: var(--brand-gradient);
  clip-path: polygon(42% 8%, 0 50%, 42% 92%, 42% 64%, 100% 64%, 100% 36%, 42% 36%);
}

.brrtz-gradient-arrow-link:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  transform: none;
}

body[data-theme="dark"] .brrtz-gradient-arrow-link,
body[data-theme="dark"] .brrtz-gradient-arrow-link:hover {
  color: var(--ink);
}

.browse-expanded-empty {
  min-height: 220px;
}

.browse-expanded-loader {
  grid-column: 1 / -1;
  display: grid;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-right: calc(-1 * clamp(28px, 4vw, 56px));
  margin-left: calc(-1 * clamp(28px, 4vw, 56px));
  min-height: clamp(220px, 28vw, 340px);
  place-items: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9), transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 94%, var(--brand-gradient-end)), color-mix(in srgb, var(--panel) 91%, var(--color-brand-hot)));
  text-align: center;
}

.browse-home-loader {
  min-height: clamp(180px, 22vw, 260px);
  padding: clamp(22px, 4vw, 42px);
}

.browse-refresh-loader {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  justify-content: start;
  min-height: 92px;
  padding: 18px;
  text-align: left;
}

.browse-home-refresh-loader {
  min-height: 88px;
  padding: 16px;
}

.browse-refresh-loader .browse-expanded-loader-copy {
  max-width: min(420px, 92%);
}

.browse-refresh-loader .browse-expanded-loader-copy strong {
  font-size: 16px;
  line-height: 1.15;
}

.browse-expanded-loader-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
  color: var(--ink);
  filter: none;
  transform: none;
}

.browse-expanded-loader-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  max-width: 420px;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.4vw, 22px);
  border-radius: var(--radius-card-large);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.browse-expanded-loader-copy strong {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.05;
}

.browse-expanded-loader-copy span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

body[data-theme="dark"] .browse-expanded-loader {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, #171c21 84%, var(--brand-gradient-end)), color-mix(in srgb, #171c21 86%, var(--color-brand-hot)));
}

body[data-theme="dark"] .browse-expanded-loader-svg {
  color: #f7f8f4;
  filter: invert(1);
}

body[data-theme="dark"] .browse-expanded-loader-copy {
  background: color-mix(in srgb, #101214 78%, transparent);
}

.is-gear-browser-frame .browse-expanded-loader {
  background: transparent;
  min-height: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.is-gear-browser-frame .browse-expanded-loader-svg {
  display: none;
}

.is-gear-browser-frame .browse-expanded-loader-copy {
  display: none;
}

@media (max-width: 720px) {
  .featured-home-section,
  .brand-browser-section {
    --home-section-title-size: var(--text-home-section-title-compact);
  }

  .is-gear-browser-frame {
    --gear-browser-mobile-padding-top: clamp(18px, 6vw, 34px);
    --gear-scanner-scene-offset: calc(0px - var(--space-7));
    padding: var(--gear-browser-mobile-padding-top) 16px 18px;
    border-radius: 0;
  }

  .featured-home-section.is-gear-browser-frame {
    margin-inline: -14px;
    padding: var(--gear-browser-mobile-padding-top) 14px 18px;
    border-radius: 0;
  }

  .gear-browser-scene {
    top: var(--gear-scanner-scene-offset);
    height: clamp(230px, 64vw, 300px);
  }

  .gear-browser-scene img {
    object-position: center 28%;
  }

  .featured-home-section.is-gear-browser-frame {
    gap: var(--space-3);
  }

  .featured-home-header.is-browse-header {
    --browse-headline-size: var(--text-home-section-title-compact);
  }

  .browse-title-row {
    gap: clamp(7px, 2vw, 12px);
  }

  .browse-header-actions {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .browse-category-control {
    width: auto;
    min-width: 0;
    flex-direction: row;
    gap: 6px;
    justify-self: end;
    margin-left: auto;
  }

  .browse-category-control span {
    display: inline;
    font-size: 11px;
  }

  .browse-category-control select {
    display: block;
    width: clamp(96px, 26vw, 132px);
    min-height: 42px;
    padding: 0 36px 0 14px;
    background-position: right 14px center;
    background-size: 16px 16px;
    font-size: 12px;
  }

  .browse-category-control.browse-brand-control select {
    width: clamp(132px, 38vw, 190px);
  }

  .browse-view-all-button {
    min-height: 42px;
    min-width: 74px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .browse-headline-loading {
    display: none;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control {
    min-width: 0;
  }

  .featured-home-header.is-browse-header .feature-headline-button {
    font-size: var(--browse-headline-size);
  }

  .featured-home-section.is-gear-browser-frame .featured-home-header.is-browse-header {
    row-gap: 0;
  }

  .featured-home-section.is-gear-browser-frame .featured-home-header.is-browse-header > div:first-child > span {
    display: none;
  }

  .featured-home-section.is-gear-browser-frame .featured-home-header.is-browse-header .feature-headline-button {
    font-size: var(--browse-headline-size);
    line-height: 1.08;
    white-space: nowrap;
  }

  .featured-home-section.is-gear-browser-frame .browse-header-actions {
    align-items: center;
    width: auto;
  }

  .featured-home-section.is-gear-browser-frame .browse-header-actions {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "category category"
      "rescan seeall";
    justify-content: end;
    justify-items: end;
    gap: var(--space-2);
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control {
    grid-area: category;
    justify-self: end;
  }

  .featured-home-section.is-gear-browser-frame .browse-rescan-button {
    grid-area: rescan;
  }

  .featured-home-section.is-gear-browser-frame .browse-view-all-button {
    grid-area: seeall;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control select,
  .featured-home-section.is-gear-browser-frame .browse-view-all-button {
    min-height: 42px;
  }

  .featured-home-section.is-gear-browser-frame .browse-view-all-button {
    min-width: 74px;
    padding-inline: 12px;
  }

  .browse-expanded-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .browse-expanded-header.featured-home-header.is-browse-header {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }

  .browse-expanded-header .browse-header-actions {
    grid-template-columns: auto;
    gap: 0;
  }

  .browse-expanded-header.featured-home-header.is-browse-header > div:first-child > span {
    font-size: clamp(24px, calc(5vw + 6px), 28px);
    line-height: 1.3;
  }

  .browse-expanded-header .browse-expanded-copy,
  .browse-expanded-header .browse-expanded-headline {
    justify-self: start;
    text-align: left;
  }

  .browse-expanded-loader {
    margin-right: -16px;
    margin-left: -16px;
  }

  .result-grid.is-browse-expanded.is-gear-browser-frame {
    gap: calc(var(--gear-browser-mobile-padding-top) - 2px);
    padding: var(--gear-browser-mobile-padding-top) 16px 18px;
  }

  .result-grid.is-browse-expanded.is-gear-browser-frame:not(.is-list-view):not(.is-gallery-view) {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .browse-expanded-actions {
    align-items: end;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .listing-card.is-browse-home-card {
    flex-basis: clamp(190px, 62vw, 250px);
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-double-rail {
    grid-auto-columns: clamp(150px, 28vw, 210px);
    gap: 12px;
    padding-inline: 4px;
    scroll-padding-inline: 4px;
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-live-rail {
    --gear-live-card-size: clamp(118px, 25vw, 150px);
    display: grid;
    grid-auto-columns: var(--gear-live-card-size);
    grid-auto-flow: column;
    grid-template-rows: repeat(2, var(--gear-live-card-size));
    align-items: stretch;
    gap: 12px;
    padding-inline: 4px;
    scroll-padding-inline: 4px;
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-live-rail .listing-card.is-browse-home-card {
    width: 100%;
    height: 100%;
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-live-rail .listing-card.is-browse-home-card:first-of-type {
    grid-row: 1 / span 2;
    grid-column: span 2;
  }

  .brand-browser-section {
    margin-top: 24px;
    padding: 0;
    border-radius: 0;
  }

  .brand-browser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .brand-browser-card {
    gap: 8px;
  }

  .brand-browser-avatar {
    width: clamp(112px, 38vw, 184px);
  }

  .brand-browser-name {
    min-height: 2.2em;
    font-size: 12px;
  }

  .gear-browser-preview-grid .listing-card.is-browse-home-card,
  .gear-browser-double-rail .listing-card.is-browse-home-card {
    aspect-ratio: 1 / 1;
    background: var(--image-bg);
    box-shadow:
      0 16px 34px rgba(24, 28, 30, 0.13),
      0 5px 14px rgba(24, 28, 30, 0.08);
    color: #fff;
  }
}

@media (max-width: 620px) {
  .featured-home-section.is-gear-browser-frame .browse-title-row,
  .browse-expanded-header .browse-title-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .featured-home-section.is-gear-browser-frame .browse-title-row h3,
  .browse-expanded-header .browse-title-row h3 {
    flex: 0 0 auto;
    order: 1;
    text-align: left;
  }

  .featured-home-section.is-gear-browser-frame .feature-headline-button,
  .browse-expanded-header .feature-headline-button {
    text-align: left;
  }

  .featured-home-section.is-gear-browser-frame .browse-title-mobile-break,
  .browse-expanded-header.featured-home-header.is-browse-header .browse-title-mobile-break {
    display: block;
    color: inherit;
    font: inherit;
    line-height: inherit;
    -webkit-text-fill-color: inherit;
  }

  .featured-home-section.is-gear-browser-frame .browse-header-actions,
  .browse-expanded-header .browse-header-actions {
    display: flex;
    order: 2;
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    align-items: end;
    justify-content: flex-end;
    gap: var(--space-2);
    margin-left: auto;
    flex-wrap: wrap;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control,
  .browse-expanded-header .browse-category-control {
    display: inline-flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    order: 1;
    margin-left: 0;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control {
    flex: 0 0 100%;
    justify-content: flex-end;
  }

  .featured-home-section.is-gear-browser-frame .browse-rescan-button {
    flex: 0 0 42px;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control span,
  .browse-expanded-header .browse-category-control span {
    display: inline;
    font-size: 10px;
    line-height: 1;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control select,
  .browse-expanded-header .browse-category-control select {
    width: clamp(100px, 30vw, 132px);
  }

  .browse-expanded-header .browse-category-control.browse-brand-control select {
    width: clamp(128px, 40vw, 176px);
  }

  .featured-home-section.is-gear-browser-frame .browse-view-all-button {
    min-width: 58px;
    padding-inline: 9px;
    order: 3;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .featured-home-section.is-gear-browser-frame .browse-rescan-button {
    order: 2;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .featured-home-section.is-gear-browser-frame {
    margin-inline: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control span,
  .browse-expanded-header .browse-category-control span {
    display: inline;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control select,
  .browse-expanded-header .browse-category-control select {
    width: clamp(92px, 30vw, 118px);
  }

  .browse-expanded-header .browse-category-control.browse-brand-control select {
    width: clamp(122px, 42vw, 160px);
  }
}

@media (max-width: 360px) {
  .featured-home-section,
  .brand-browser-section {
    --home-section-title-size: var(--text-home-section-title-mini);
  }

  .featured-home-header.is-browse-header {
    --browse-headline-size: var(--text-home-section-title-mini);
  }

  .browse-title-row {
    gap: 6px;
  }

  .browse-category-control {
    min-width: 96px;
    gap: 5px;
  }

  .browse-category-control span {
    font-size: 10px;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control span,
  .browse-expanded-header .browse-category-control span {
    display: inline;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control select,
  .browse-expanded-header .browse-category-control select {
    width: clamp(82px, 28vw, 104px);
  }

  .browse-expanded-header .browse-category-control.browse-brand-control select {
    width: clamp(112px, 42vw, 142px);
  }

  .browse-category-control select {
    width: clamp(78px, 24vw, 92px);
    min-height: 38px;
    padding: 0 28px 0 10px;
    background-position: right 10px center;
    font-size: 12px;
  }

  .browse-view-all-button {
    min-height: 38px;
    min-width: 58px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .featured-home-section.is-gear-browser-frame .featured-home-header.is-browse-header {
    row-gap: 0;
  }

  .featured-home-section.is-gear-browser-frame .featured-home-header.is-browse-header .feature-headline-button {
    font-size: var(--browse-headline-size);
  }

  .featured-home-section.is-gear-browser-frame .browse-header-actions {
    width: auto;
  }
}

@media (max-width: 1280px) {
  .featured-home-section,
  .brand-browser-section {
    --home-section-title-size: var(--text-home-section-title-fit);
  }

  .featured-home-header.is-browse-header {
    --browse-headline-size: var(--text-home-section-title-fit);
  }

  .featured-home-section.is-gear-browser-frame .browse-title-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-2);
  }

  .featured-home-section.is-gear-browser-frame .browse-title-row h3 {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
  }

  .featured-home-section.is-gear-browser-frame .feature-headline-button {
    overflow: hidden;
    max-width: 100%;
    font-size: var(--home-section-title-size);
    text-overflow: clip;
    white-space: nowrap;
  }

  .featured-home-section.is-gear-browser-frame .browse-title-mobile-break {
    display: inline;
  }

  .featured-home-section.is-gear-browser-frame .browse-header-actions {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: none;
    min-width: 0;
    margin-left: auto;
    gap: var(--space-2);
    flex-wrap: nowrap;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control {
    display: inline-flex;
    flex: 0 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    min-width: 0;
    margin-left: 0;
    order: 1;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control select {
    width: clamp(146px, 21vw, 252px);
  }

  .featured-home-section.is-gear-browser-frame .browse-rescan-button {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin-left: 0;
    order: 2;
  }

  .featured-home-section.is-gear-browser-frame .browse-view-all-button {
    flex: 0 0 auto;
    order: 3;
  }
}

@media (max-width: 720px) {
  .featured-home-section,
  .brand-browser-section {
    --home-section-title-size: var(--text-home-section-title-mobile);
  }

  .featured-home-header.is-browse-header {
    --browse-headline-size: var(--text-home-section-title-mobile);
  }

  .featured-home-section.is-gear-browser-frame .browse-title-row {
    gap: var(--space-1);
  }

  .featured-home-section.is-gear-browser-frame .feature-headline-button {
    font-size: var(--browse-headline-size);
    line-height: 1;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control {
    gap: var(--space-1);
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control span {
    font-size: 10px;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control select {
    width: clamp(108px, 30vw, 150px);
    min-height: 38px;
    padding-left: var(--space-3);
    font-size: 11px;
  }

  .featured-home-section.is-gear-browser-frame .browse-rescan-button {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .featured-home-section.is-gear-browser-frame .browse-view-all-button {
    min-height: 38px;
    min-width: 62px;
    padding-inline: var(--space-2);
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .featured-home-section,
  .brand-browser-section {
    --home-section-title-size: var(--text-home-section-title-mini);
  }

  .featured-home-header.is-browse-header {
    --browse-headline-size: var(--text-home-section-title-mini);
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control span {
    display: none;
  }

  .featured-home-section.is-gear-browser-frame .browse-category-control select {
    width: clamp(86px, 27vw, 112px);
    min-height: 34px;
    padding-right: var(--space-6);
    font-size: 10px;
  }

  .featured-home-section.is-gear-browser-frame .browse-rescan-button {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .featured-home-section.is-gear-browser-frame .browse-rescan-icon {
    width: 18px;
    height: 18px;
  }

  .featured-home-section.is-gear-browser-frame .browse-view-all-button {
    min-height: 34px;
    min-width: 54px;
    padding-inline: var(--space-2);
    font-size: 10px;
  }
}

.featured-home-section.is-gear-browser-frame .browse-category-control span {
  display: none;
}

@media (max-width: 980px) {
  .result-grid.is-gallery-view .listing-action-menu,
  .result-grid.is-gallery-view .more-action-button {
    min-height: 28px;
    height: 28px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-strip {
    width: auto;
  }
}

@media (max-width: 620px) {
  .sidebar,
  .content {
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .quick-search-actions,
  .source-list {
    grid-template-columns: 1fr;
  }

  .status-strip div {
    border: 0;
  }

  .status-strip div:first-child {
    border: 0;
  }

  .controls {
    align-items: stretch;
    flex-direction: column;
  }

  .alert-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented,
  .result-options,
  .toolbar-actions,
  .source-filter-panel,
  .source-filter-list {
    width: 100%;
  }

  .source-filter-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented button {
    min-width: 0;
  }

  .result-options label {
    flex: 1;
    min-width: 0;
  }

  .refine-backdrop {
    place-items: center;
    padding: 12px;
  }

  .refine-modal {
    --refine-modal-max-height: calc(100vh - 24px);
    width: 100%;
    max-height: var(--refine-modal-max-height);
    border-radius: var(--radius-control);
  }

  .refine-panel .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .refine-panel .modal-actions .primary-action,
  .refine-panel .modal-actions .secondary-action {
    width: 100%;
  }

  .toolbar-actions button {
    flex: 1;
  }

  .live-status {
    flex: 1;
    justify-content: center;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #paginationPage {
    text-align: center;
  }

  .back-to-top.is-above-pagination {
    bottom: calc(var(--back-to-top-offset) + 180px);
  }
}

/* Top-search layout */
.app-shell {
  display: block;
  width: 100%;
  max-width: var(--page-max-width);
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(22px, 3vw, 42px);
}

.app-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.app-header > :not(.brand-wave-wrap) {
  position: relative;
  z-index: 1;
}

.app-header > .header-actions {
  z-index: 5;
}

.brand {
  min-width: 0;
  pointer-events: none;
}

.brand-home-link {
  z-index: 6;
  pointer-events: auto;
}

.brand-mark {
  display: none;
}

.brand h1 {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
}

.brand p {
  display: none;
}

.header-actions {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.theme-toggle,
.saved-trigger,
.watching-trigger {
  min-height: 46px;
  border: 1px solid var(--secondary-button-stroke);
  border-radius: var(--radius-pill);
  background: var(--secondary-button-bg);
  color: var(--secondary-button-ink);
  box-shadow: 0 6px 18px rgba(20, 24, 28, 0.04);
  transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}

.theme-toggle {
  width: var(--control-header-utility-size);
  height: var(--control-header-utility-size);
  min-width: var(--control-header-utility-size);
  min-height: var(--control-header-utility-size);
  padding: 0;
  border-radius: 50%;
}

.saved-trigger,
.watching-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-header-utility-size);
  min-width: var(--control-header-utility-size);
  gap: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 850;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.saved-trigger:hover,
.saved-trigger:focus-visible,
.watching-trigger:hover,
.watching-trigger:focus-visible {
  border-color: var(--secondary-button-hover-bg);
  background: var(--secondary-button-hover-bg);
  color: var(--secondary-button-hover-ink);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible,
.saved-trigger:focus-visible,
.watching-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 14px 32px rgba(15, 23, 42, 0.12);
}

.saved-trigger > span,
.watching-trigger > span,
.saved-trigger > .header-action-icon,
.watching-trigger > .header-action-icon {
  width: 24px;
  height: 24px;
  line-height: 1;
}

.watching-trigger.is-active {
  border-color: color-mix(in srgb, var(--color-brand-hot) 44%, var(--line));
  background: var(--secondary-button-bg);
  color: var(--ink);
}

.watching-trigger.is-active:hover,
.watching-trigger.is-active:focus-visible {
  border-color: color-mix(in srgb, var(--color-brand-hot) 54%, var(--secondary-button-hover-bg));
  background: var(--secondary-button-hover-bg);
  color: var(--secondary-button-hover-ink);
}

.watching-trigger.is-active .site-icon-watched,
.watching-trigger.is-active .header-action-icon {
  color: var(--color-brand-hot);
}

.watching-trigger.is-active .site-icon-watched {
  -webkit-mask-image: url("assets/ICONS-site/icon-watched-filled.svg");
  mask-image: url("assets/ICONS-site/icon-watched-filled.svg");
}

body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .saved-trigger,
body[data-theme="dark"] .watching-trigger,
body[data-theme="dark"] .watching-trigger.is-active {
  border-color: var(--secondary-button-hover-bg);
  background: var(--secondary-button-hover-bg);
  color: var(--secondary-button-hover-ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body[data-theme="dark"] .saved-trigger:hover,
body[data-theme="dark"] .saved-trigger:focus-visible,
body[data-theme="dark"] .watching-trigger:hover,
body[data-theme="dark"] .watching-trigger:focus-visible,
body[data-theme="dark"] .watching-trigger.is-active:hover,
body[data-theme="dark"] .watching-trigger.is-active:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #101214;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"] .theme-toggle:focus-visible,
body[data-theme="dark"] .saved-trigger:focus-visible,
body[data-theme="dark"] .watching-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 16px 34px rgba(0, 0, 0, 0.4);
}

.account-menu {
  position: relative;
}

.account-trigger {
  position: relative;
  cursor: pointer;
}

.account-person-icon {
  width: 24px;
  height: 24px;
}

.account-person-icon[hidden] {
  display: none;
}

.account-avatar-initial {
  font-size: var(--text-emphasis);
  font-weight: var(--weight-bold);
  line-height: 1;
  text-transform: uppercase;
}

.header-actions .account-trigger.is-signed-in,
.header-actions .account-trigger.is-signed-in:hover,
.header-actions .account-trigger.is-signed-in:focus-visible,
.header-actions .account-trigger.is-signed-in[aria-expanded="true"] {
  border-color: var(--brrtz-ink);
  background: var(--brrtz-ink);
  color: var(--color-control-on-ink);
}

.header-actions .account-trigger:hover,
.header-actions .account-trigger:focus-visible,
.header-actions .account-trigger[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--color-brand-hot) 58%, var(--line));
}

.header-actions .account-trigger.is-signed-in:hover,
.header-actions .account-trigger.is-signed-in:focus-visible,
.header-actions .account-trigger.is-signed-in[aria-expanded="true"] {
  border-color: var(--color-brand-hot);
}

.account-trigger:active {
  transform: translateY(0) scale(0.96);
}

.account-avatar-check {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--color-brand-hot);
  font-size: var(--text-micro);
  font-weight: var(--weight-black);
  line-height: 1;
}

.account-avatar-initial[hidden],
.account-avatar-check[hidden] {
  display: none;
}

.account-popover {
  position: absolute;
  z-index: 72;
  top: calc(100% + var(--space-3));
  right: 0;
  display: grid;
  width: min(310px, calc(100vw - 44px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-modal);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.account-popover[hidden] {
  display: none;
}

.account-popover-identity {
  display: grid;
  grid-template-columns: var(--control-header-utility-size) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
}

.account-popover-avatar {
  display: grid;
  width: var(--control-header-utility-size);
  height: var(--control-header-utility-size);
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--brrtz-ink);
  color: var(--color-control-on-ink);
  font-size: var(--text-emphasis);
  font-weight: var(--weight-bold);
  line-height: 1;
  text-transform: uppercase;
}

.account-popover-identity-copy {
  display: grid;
  min-width: 0;
  gap: var(--space-1);
}

.account-popover-identity-copy strong {
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
}

.account-popover-identity-copy span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
}

.account-popover-action {
  display: flex;
  width: 100%;
  min-height: var(--control-header-utility-size);
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  text-align: left;
  transition: background var(--motion-fast), color var(--motion-fast);
}

.account-popover-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.account-popover-action:hover,
.account-popover-action:focus-visible {
  outline: none;
  background: var(--select-hover-bg);
  color: var(--color-brand-hot);
}

.account-popover-action:focus-visible {
  box-shadow: inset var(--focus-ring);
}

.account-popover-sign-out {
  color: var(--rose);
}

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

.saved-trigger:hover > .header-action-icon,
.saved-trigger:focus-visible > .header-action-icon,
.watching-trigger:hover > .header-action-icon,
.watching-trigger:focus-visible > .header-action-icon {
  color: var(--color-brand-hot);
  filter: drop-shadow(0 2px 7px rgba(255, 0, 255, 0.22));
  transform: scale(1.08);
}

.saved-trigger:active,
.watching-trigger:active {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  transform: translateY(0) scale(0.96);
}

.saved-trigger:active > .header-action-icon,
.watching-trigger:active > .header-action-icon {
  color: var(--color-brand-hot);
  filter: drop-shadow(0 1px 4px rgba(255, 0, 255, 0.2));
  transform: scale(0.92);
}

.saved-trigger[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--color-brand-hot) 52%, var(--line));
}

.saved-trigger[aria-expanded="true"] > .header-action-icon,
.watching-trigger.is-active > .header-action-icon {
  color: var(--color-brand-hot);
}

.saved-menu {
  position: relative;
}

.saved-trigger > .saved-results-corner-count {
  position: absolute;
  top: calc(-1 * var(--space-1));
  right: calc(-1 * var(--space-1));
  display: inline-grid;
  width: auto;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 var(--space-1);
  border: 2px solid var(--panel);
  border-radius: var(--radius-pill);
  background: var(--color-brand-hot);
  color: var(--source-ink-on-color);
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  line-height: 1;
  pointer-events: none;
}

.saved-trigger > .saved-results-corner-count[hidden] {
  display: none;
}

.saved-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  display: grid;
  width: min(360px, calc(100vw - 44px));
  max-height: min(560px, calc(100vh - 120px));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-modal);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.saved-popover[hidden] {
  display: none;
}

.saved-popover .saved-searches {
  max-height: 390px;
  overflow: auto;
}

.saved-popover::before {
  content: none;
}

.save-current-action {
  width: 100%;
}

.saved-watch-action.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

.search-masthead {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.search-masthead[hidden],
.topbar[hidden],
.filter-bar[hidden] {
  display: none !important;
}

body.my-page-active .search-masthead,
body.my-page-active .topbar,
body.my-page-active .filter-bar,
body.my-page-active .mobile-search-overlay,
body.my-page-active .source-row-meta,
body.my-page-active .result-view-toggle,
body.my-page-active .source-sort-control {
  display: none !important;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.search-terms-field {
  gap: 0;
}

.search-terms-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-summary-pill,
.quick-search-input {
  height: var(--quick-search-height);
  padding: var(--quick-search-vertical-padding) clamp(76px, 6vw, 92px) var(--quick-search-vertical-padding) clamp(24px, 3vw, 34px);
  border-radius: var(--radius-pill);
  font-size: var(--quick-search-font-size);
  font-weight: 400;
  line-height: calc(var(--quick-search-font-size) * var(--quick-search-line-height));
}

.search-terms-field {
  --quick-search-height: clamp(58px, 5.4vw, var(--control-search-height-desktop));
  --quick-search-font-size: var(--control-search-font-size);
  --quick-search-line-height: 1.16;
  --quick-search-left-padding: clamp(24px, 3vw, 34px);
  --quick-search-submit-size: clamp(40px, 3.8vw, var(--control-search-submit-desktop));
  --quick-search-submit-inset: clamp(10px, 1.1vw, 14px);
  --quick-search-refine-gap: clamp(10px, 1vw, 18px);
  --quick-search-refine-width: clamp(112px, 9.2vw, 136px);
  --quick-search-right-padding: calc(var(--quick-search-submit-inset) + var(--quick-search-submit-size) + var(--quick-search-refine-gap) + var(--quick-search-refine-width) + 18px);
  --quick-search-placeholder-size: 18px;
  --quick-search-placeholder-line: clamp(58px, 5.4vw, 72px);
  --quick-search-vertical-padding: max(0px, calc((var(--quick-search-height) - (var(--quick-search-font-size) * var(--quick-search-line-height)) - 4px) / 2));
  --quick-search-input-optical-nudge: 0px;
  --quick-search-placeholder-optical-nudge: 4px;
}

.quick-search-input {
  padding:
    calc(var(--quick-search-vertical-padding) + var(--quick-search-input-optical-nudge))
    calc(var(--quick-search-right-padding) + var(--quick-search-clear-space) + var(--quick-search-extra-space))
    max(0px, calc(var(--quick-search-vertical-padding) - var(--quick-search-input-optical-nudge)))
    var(--quick-search-left-padding);
  line-height: calc(var(--quick-search-font-size) * var(--quick-search-line-height));
}

.quick-search-submit {
  right: var(--quick-search-submit-inset);
  width: var(--quick-search-submit-size);
  height: var(--quick-search-submit-size);
  background: linear-gradient(to bottom left, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
}

.quick-search-save {
  right: clamp(62px, 5.4vw, 78px);
  width: clamp(36px, 3.1vw, 44px);
  height: clamp(36px, 3.1vw, 44px);
  font-size: clamp(21px, 1.8vw, 27px);
}

.quick-search-clear {
  right: calc(var(--quick-search-submit-inset) + var(--quick-search-submit-size) + var(--quick-search-refine-gap) + var(--quick-search-refine-width) + 8px);
  width: clamp(32px, 2.7vw, 38px);
  height: clamp(32px, 2.7vw, 38px);
}

.quick-search-clear::before {
  font-size: clamp(19px, 1.5vw, 23px);
}

.quick-search-extra {
  right: calc(var(--quick-search-right-padding) + 48px);
}

.search-terms-field.has-clear-search .quick-search-extra {
  right: calc(var(--quick-search-right-padding) + 48px);
}

.search-summary-arrow {
  font-size: 34px;
}

.search-summary-count {
  min-height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.quick-search-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

.quick-search-actions .secondary-action {
  --refine-pill-height: clamp(58px, 5.4vw, 72px);
  --refine-icon-size: 32px;
  --refine-pill-inset: calc((var(--refine-pill-height) - var(--refine-icon-size)) / 2);

  height: var(--refine-pill-height);
  min-height: 0;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 calc(var(--refine-pill-inset) + 18px) 0 calc(var(--refine-pill-inset) - 1px);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

.refine-summary,
.topbar,
.segmented,
.refine-inline-button,
.toolbar-actions {
  display: none;
}

.content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0;
}

.site-footer {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding: 0 clamp(22px, 3vw, 42px) calc(clamp(28px, 3vw, 42px) + 88px);
  color: var(--muted);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-footer-brand {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
}

.site-footer-logo {
  display: block;
  width: clamp(88px, 9vw, 118px);
  aspect-ratio: 600.6 / 163.8;
  background: currentColor;
  -webkit-mask: url("assets/ICONS-site/bumpers_logo.svg") center / contain no-repeat;
  mask: url("assets/ICONS-site/bumpers_logo.svg") center / contain no-repeat;
}

.site-footer-brand:hover .site-footer-logo,
.site-footer-brand:focus-visible .site-footer-logo {
  background: var(--brand-gradient);
}

.site-footer-brand:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 8px;
  border-radius: var(--radius-control);
}

.site-footer p,
.site-footer-meta {
  margin: 0;
  white-space: nowrap;
}

.site-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.site-footer-links a {
  color: inherit;
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--color-brand-hot);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.controls {
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0;
}

.result-options {
  align-items: center;
  margin-left: auto;
}

.result-options .quality-mode-inline {
  min-width: 190px;
  height: 48px;
}

.result-options label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.result-options select {
  height: 48px;
}

.source-filter-panel {
  min-width: 0;
  width: 100%;
  margin-bottom: 0;
}

.source-filter-panel > span {
  margin-right: 0;
  font-size: 13px;
}

.source-filter-button {
  min-width: 70px;
  min-height: 42px;
  padding: 5px 12px 5px 6px;
  font-size: 15px;
}

.source-filter-source {
  min-width: 62px;
  gap: 4px;
  padding: 5px 9px 5px 5px;
}

.source-filter-source.has-single-digit-count {
  min-width: 54px;
  gap: 2px;
  padding-right: 8px;
}

.source-filter-source.is-zero {
  min-width: 42px;
  padding: 5px;
}

.source-filter-button .source-filter-avatar {
  width: 30px;
  height: 30px;
}

.source-filter-all {
  padding: 5px 16px;
}

.source-sort-control {
  min-height: 0;
  padding: 0;
  font-size: 15px;
}

.source-sort-control select {
  font-size: 15px;
}

.source-sort-control select {
  height: 42px;
  min-width: 132px;
}

.status-strip {
  justify-self: end;
  padding-right: 2px;
}

.status-strip strong {
  font-size: 12px;
  font-weight: 800;
}

.status-strip span {
  font-size: 11px;
}

.alert-panel {
  margin-bottom: 26px;
  padding: 20px;
}

.alert-list {
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}

.result-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

.refine-backdrop {
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  background: color-mix(in srgb, var(--bg) 50%, rgba(255, 255, 255, 0.46));
  backdrop-filter: blur(18px) saturate(0.82);
}

body[data-theme="dark"] .refine-backdrop {
  background: rgba(0, 0, 0, 0.52);
}

.refine-modal {
  --refine-modal-max-height: calc(100vh - clamp(32px, 8vw, 84px));
  width: min(860px, calc(100vw - 44px));
  max-height: var(--refine-modal-max-height);
  border-radius: var(--radius-sheet);
  animation: refineDrop 170ms ease-out;
  transform-origin: center center;
}

@keyframes refineDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .app-shell {
    padding: 22px;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: row;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .search-masthead {
    display: grid;
  }

  .search-form {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .search-terms-field {
    grid-column: 1 / -1;
  }

  .result-options {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-left: 0;
  }

  .result-options .quality-mode-inline {
    width: auto;
    min-width: 0;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 840px) {
  .brand-region-cluster {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brand-home-link {
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding: 16px;
  }

  .site-footer {
    padding: 0 16px calc(24px + env(safe-area-inset-bottom));
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    text-align: center;
  }

  .site-footer-logo {
    width: 96px;
  }

  .save-confirmation-toast {
    left: 50%;
    bottom: 18px;
    width: calc(100vw - 28px);
    transform: translate3d(-50%, 16px, 0) scale(0.98);
  }

  .save-confirmation-toast.is-visible {
    transform: translate3d(-50%, 0, 0) scale(1);
  }

  body.modal-open .save-confirmation-toast {
    top: 50%;
    bottom: auto;
    transform: translate3d(-50%, calc(-50% + 16px), 0) scale(0.98);
  }

  body.modal-open .save-confirmation-toast.is-visible {
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  .brand h1 {
    font-size: 44px;
  }

  .brand-logo {
    width: clamp(148px, 36vw, 220px);
  }

  .search-masthead,
  .controls {
    grid-template-columns: 1fr;
  }

  .search-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
  }

  .search-summary-pill,
  .quick-search-input {
    width: 100%;
  }

  .search-terms-field {
    grid-column: 1 / -1;
  }

  .search-summary-pill,
  .quick-search-input {
    height: 58px;
    padding: var(--quick-search-vertical-padding) 112px var(--quick-search-vertical-padding) 20px;
    font-size: var(--quick-search-font-size);
    line-height: calc(var(--quick-search-font-size) * var(--quick-search-line-height));
  }

  .search-terms-field {
    --quick-search-height: 58px;
    --quick-search-font-size: 18px;
    --quick-search-left-padding: 20px;
    --quick-search-submit-size: 42px;
    --quick-search-submit-inset: 9px;
    --quick-search-refine-gap: 8px;
    --quick-search-refine-width: 94px;
    --quick-search-right-padding: calc(var(--quick-search-submit-inset) + var(--quick-search-submit-size) + var(--quick-search-refine-gap) + var(--quick-search-refine-width) + 10px);
    --quick-search-placeholder-size: 18px;
    --quick-search-placeholder-line: 58px;
  }

  .quick-search-input {
    padding:
      calc(var(--quick-search-vertical-padding) + var(--quick-search-input-optical-nudge))
      calc(var(--quick-search-right-padding) + var(--quick-search-clear-space) + var(--quick-search-extra-space))
      max(0px, calc(var(--quick-search-vertical-padding) - var(--quick-search-input-optical-nudge)))
      var(--quick-search-left-padding);
    line-height: calc(var(--quick-search-font-size) * var(--quick-search-line-height));
  }

  .quick-search-save {
    right: 57px;
    width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .quick-search-extra {
    right: calc(var(--quick-search-right-padding) + 48px);
    height: 30px;
    min-width: 52px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .quick-search-submit {
    right: var(--quick-search-submit-inset);
    width: var(--quick-search-submit-size);
    height: var(--quick-search-submit-size);
  }

  .status-strip {
    justify-content: flex-start;
    justify-self: start;
  }

  .result-options {
    grid-column: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 8px;
  }

  .filter-bar {
    gap: 16px;
  }

  .result-options label {
    width: 100%;
    min-width: 0;
  }

  .refine-backdrop {
    place-items: center;
    padding: 10px;
  }

  .refine-modal {
    --refine-modal-max-height: calc(100vh - 20px);
    width: 100%;
    max-height: var(--refine-modal-max-height);
    border-radius: var(--radius-sheet);
    transform-origin: center center;
  }
}

/* Mobile responsive v1 */
@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .mobile-search-overlay {
    position: fixed;
    z-index: 50;
    top: max(8px, env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    display: block;
    transform: translateY(0);
  }

  .mobile-search-overlay[hidden] {
    display: none;
  }

  .app-shell {
    padding: max(14px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
  }

  .app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .brand-wave-wrap {
    top: 38px;
    left: 0;
    width: 100%;
    height: 76px;
    transform: translateY(-50%);
  }

  .brand-region-cluster {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brand-home-link {
    width: fit-content;
    max-width: min(220px, 42vw);
  }

  .region-badge {
    min-width: 118px;
    min-height: 30px;
    max-width: min(190px, 52vw);
    margin-top: 0;
    padding: 0 12px;
    gap: 5px;
    font-size: 12px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  }

  .region-native-select {
    height: 30px;
    min-height: 30px;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding: 0 34px 0 12px;
  }

  .region-popover {
    top: calc(100% + 8px);
    width: min(280px, 84vw);
  }

  .brand-logo {
    width: min(220px, 42vw);
  }

  .header-actions {
    display: flex;
    width: auto;
    justify-self: end;
    align-self: start;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: auto;
  }

  .watching-trigger {
    display: none;
  }

  .saved-trigger {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    gap: 0;
    padding: 0;
    border-radius: var(--radius-pill);
    font-size: 15px;
  }

  .saved-trigger > .site-icon,
  .saved-trigger > .header-action-icon {
    width: 24px;
    height: 24px;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
  }

  body.saved-popover-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 62;
    background: color-mix(in srgb, var(--bg) 34%, transparent);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    pointer-events: none;
  }

  body.saved-popover-open .app-header > .header-actions {
    z-index: 90;
  }

  body.saved-popover-open .saved-menu {
    z-index: 90;
  }

  .saved-popover {
    position: fixed;
    top: var(--saved-popover-mobile-top, calc(66px + env(safe-area-inset-top)));
    right: 12px;
    bottom: auto;
    left: auto;
    z-index: 72;
    width: min(360px, calc(100vw - 24px));
    max-height: min(68dvh, calc(100dvh - var(--saved-popover-mobile-top, 76px) - 16px));
    border-radius: var(--radius-modal);
  }

  .saved-popover::before {
    content: "";
    position: absolute;
    top: -7px;
    right: clamp(24px, var(--saved-popover-anchor-right, 72px), calc(100% - 24px));
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel) 96%, transparent);
    transform: rotate(45deg);
  }

  .search-masthead {
    gap: 10px;
    margin-bottom: 10px;
  }

  .search-form {
    gap: 8px;
  }

  .search-terms-field {
    --quick-search-height: var(--control-search-height-mobile);
    --quick-search-font-size: var(--control-search-font-size);
    --quick-search-left-padding: 18px;
    --quick-search-submit-size: var(--control-search-submit-mobile);
    --quick-search-submit-inset: 8px;
    --quick-search-refine-gap: 8px;
    --quick-search-refine-width: 92px;
    --quick-search-right-padding: calc(var(--quick-search-submit-inset) + var(--quick-search-submit-size) + var(--quick-search-refine-gap) + var(--quick-search-refine-width) + 9px);
    --quick-search-placeholder-size: 18px;
    --quick-search-placeholder-line: 56px;
  }

  .quick-search-input {
    height: var(--quick-search-height);
    min-height: var(--quick-search-height);
    padding:
      calc(var(--quick-search-vertical-padding) + var(--quick-search-input-optical-nudge))
      calc(var(--quick-search-right-padding) + var(--quick-search-clear-space) + var(--quick-search-extra-space))
      max(0px, calc(var(--quick-search-vertical-padding) - var(--quick-search-input-optical-nudge)))
      var(--quick-search-left-padding);
    font-size: var(--quick-search-font-size);
    line-height: calc(var(--quick-search-font-size) * var(--quick-search-line-height));
  }

  .quick-search-submit {
    right: var(--quick-search-submit-inset);
    width: var(--quick-search-submit-size);
    height: var(--quick-search-submit-size);
  }

  .quick-search-save {
    right: 56px;
    width: 36px;
    height: 36px;
  }

  .status-strip {
    display: none;
  }

  .filter-bar {
    gap: 12px;
    margin-bottom: 16px;
    min-width: 0;
  }

  .source-filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: calc(100vw - 28px);
    max-width: 100%;
    margin: 0;
    overflow: hidden;
  }

  .source-filter-panel > span {
    grid-column: 1 / -1;
  }

  .source-row-meta {
    grid-column: 2;
    align-self: start;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .result-view-toggle {
    gap: 2px;
    padding: 3px;
  }

  .result-view-button {
    width: 34px;
    height: 34px;
  }

  .source-filter-list {
    grid-column: 1;
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 0 2px 8px;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .source-filter-list.is-collapsed {
    overflow: hidden;
    padding-bottom: 0;
  }

  .source-filter-list.is-collapsed .source-filter-source {
    flex-basis: 0;
    min-width: 0;
  }

  .source-assist-panel {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
  }

  .source-assist-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 2px 4px;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .source-assist-list::-webkit-scrollbar {
    display: none;
  }

  .source-assist-button {
    flex: 0 0 auto;
    min-height: 34px;
  }

  .source-sort-control {
    grid-column: 2;
    width: 42px;
    height: 40px;
    min-height: 40px;
    align-self: start;
    justify-content: center;
    margin-left: 0;
    border: 1px solid color-mix(in srgb, var(--line) 82%, var(--ink));
    border-radius: var(--radius-pill);
    background: var(--select-bg);
    padding: 0;
    overflow: hidden;
    transition: none;
  }

  .source-sort-control:hover {
    border-color: color-mix(in srgb, var(--line) 64%, var(--ink));
    background: var(--select-hover-bg);
  }

  .source-sort-control::before {
    content: "⇅";
    background: var(--brand-gradient);
    background-clip: text;
    color: transparent;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .source-sort-control::after {
    display: none;
  }

  .source-sort-control span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .source-sort-control select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    opacity: 0;
    cursor: pointer;
  }

  .source-filter-list::-webkit-scrollbar {
    display: none;
  }

  .source-filter-button {
    flex: 0 0 auto;
    min-width: 70px;
    min-height: 40px;
    padding-right: 12px;
  }

  .source-filter-source {
    min-width: 60px;
    gap: 3px;
    padding-right: 8px;
    padding-left: 4px;
  }

  .source-filter-source.has-single-digit-count {
    min-width: 52px;
    gap: 1px;
    padding-right: 7px;
  }

  .source-filter-button .source-filter-avatar {
    width: 28px;
    height: 28px;
  }

  .controls {
    gap: 10px;
  }

  .result-options .quality-mode-inline {
    min-width: 0;
    width: auto;
    height: 46px;
  }

  .result-options select {
    height: 46px;
    border-radius: var(--radius-card-list);
  }

  .alert-panel {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: var(--radius-card-large);
  }

  .alert-panel-header {
    gap: 8px;
  }

  .alert-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .alert-item {
    border-radius: 0;
  }

  .alert-thumb {
    border-radius: var(--radius-card-large);
  }

  .alert-price {
    left: 9px;
    bottom: 9px;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 18px;
  }

  .result-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .featured-home-section {
    gap: 16px;
  }

  .featured-carousel-control {
    display: none;
  }

  .featured-home-header {
    padding-top: 4px;
  }

  .featured-home-header h3 {
    font-size: var(--home-section-title-size);
  }

  .featured-home-header span {
    font-size: 12px;
    font-weight: 600;
  }

  .featured-home-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 2px 26px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x proximity;
    scroll-snap-stop: normal;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .featured-home-rail::-webkit-scrollbar {
    display: none;
  }

  .featured-home-rail .listing-card {
    flex: 0 0 min(78vw, 380px);
    min-height: 0;
    scroll-snap-align: start;
  }

  .featured-home-section.is-watched-gear .featured-home-rail {
    gap: 12px;
    padding-bottom: 20px;
  }

  .featured-home-section.is-watched-gear .featured-home-rail .listing-card {
    flex-basis: min(42vw, 180px);
  }

  .listing-card.is-featured-home-card .image-link {
    height: 100%;
    aspect-ratio: auto;
  }

  .listing-card {
    border-radius: 20px;
  }

  .result-grid.is-list-view {
    gap: 10px;
  }

  .result-grid.is-list-view .listing-card {
    min-height: 152px;
    grid-template-columns: 152px minmax(0, 1fr) 54px;
    border-radius: 14px;
  }

  .result-grid.is-list-view .image-stage,
  .result-grid.is-list-view .image-link {
    width: 152px;
    height: 152px;
    min-width: 152px;
    min-height: 152px;
  }

  .result-grid.is-list-view .listing-body {
    gap: 5px;
    padding: 10px;
  }

  .result-grid.is-list-view .listing-card h3 {
    max-width: 58%;
    font-size: 14px;
    line-height: 1.18;
  }

  .result-grid.is-list-view .list-source-avatar {
    top: 14px;
    right: 11px;
  }

  .result-grid.is-list-view .watch-button {
    right: 11px;
    border-color: rgba(255, 255, 255, 0.92);
    background: #ffffff;
    color: #111418;
    box-shadow: none;
    font-size: 0;
  }

  .result-grid.is-list-view .watch-button::before,
  .result-grid.is-list-view .watch-button.is-watching::before {
    display: none;
    content: none;
  }

  .result-grid.is-list-view .watch-button.is-watching {
    border-color: rgba(255, 255, 255, 0.92);
    background: #ffffff;
    color: var(--color-brand-hot);
  }

  body[data-theme="dark"] .result-grid.is-list-view .watch-button,
  body[data-theme="dark"] .result-grid.is-list-view .watch-button.is-watching {
    border-color: rgba(255, 255, 255, 0.92);
    background: #ffffff;
    box-shadow: none;
  }

  body[data-theme="dark"] .result-grid.is-list-view .watch-button {
    color: #111418;
  }

  body[data-theme="dark"] .result-grid.is-list-view .watch-button.is-watching {
    color: var(--color-brand-hot);
  }

  .result-grid.is-list-view .listing-action-menu {
    right: 11px;
    bottom: 14px;
    width: 32px;
  }

  .result-grid.is-list-view .list-source-avatar,
  .result-grid.is-list-view .watch-button,
  .result-grid.is-list-view .more-action-button {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .result-grid.is-list-view .shop-name {
    display: none;
  }

  .result-grid.is-list-view .price-row strong {
    font-size: 27px;
  }

  .result-grid.is-list-view .price-row span {
    font-size: 11px;
  }

  .result-grid.is-list-view .card-actions {
    gap: 6px;
  }

  .result-grid.is-list-view .feedback-button {
    display: none;
  }

  .result-grid.is-list-view .open-link {
    width: 84px;
    height: 30px;
  }

  .result-grid.is-gallery-view {
    column-width: 128px;
    column-gap: 10px;
  }

  .result-grid.is-browse-expanded.is-gallery-view {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-width: auto;
    column-gap: 10px;
    row-gap: 10px;
  }

  .result-grid.is-browse-expanded.is-gallery-view > :not(.listing-card) {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .result-grid.is-gallery-view .listing-card {
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .result-grid.is-browse-expanded.is-gallery-view .listing-card {
    display: block;
    margin-bottom: 0;
  }

  .result-grid.is-gallery-view .image-link,
  .result-grid.is-gallery-view .listing-card:nth-of-type(4n + 1) .image-link,
  .result-grid.is-gallery-view .listing-card:nth-of-type(4n + 2) .image-link,
  .result-grid.is-gallery-view .listing-card:nth-of-type(4n + 3) .image-link,
  .result-grid.is-gallery-view .listing-card:nth-of-type(5n + 4) .image-link {
    aspect-ratio: 1 / 1;
  }

  .result-grid.is-gallery-view .image-link img {
    object-fit: cover;
    object-position: center center;
  }

  .result-grid.is-gallery-view .listing-body {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .result-grid.is-gallery-view .price-row strong {
    min-height: 26px;
    padding: 0 9px;
    font-size: 13px;
  }

  .result-grid.is-gallery-view .listing-action-menu,
  .result-grid.is-gallery-view .more-action-button {
    width: 36px;
    height: 26px;
  }

  .listing-body {
    min-height: 0;
    padding: 14px;
  }

  .listing-card h3 {
    min-height: auto;
    font-size: 15px;
  }

  .listing-card.is-featured-home-card .listing-body {
    right: 74px;
    bottom: 22px;
    left: 18px;
    min-height: 0;
    padding: 0;
  }

  .listing-card.is-watched-home-card .listing-body {
    right: 42px;
    bottom: 12px;
    left: 12px;
    gap: 5px;
  }

  .listing-card.is-featured-home-card h3 {
    min-height: 0;
    font-size: 24px;
    line-height: 1.04;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .listing-card.is-watched-home-card h3 {
    font-size: 13px;
    line-height: 1.1;
    -webkit-line-clamp: 2;
  }

  .price-row strong {
    font-size: 26px;
  }

  .listing-card.is-featured-home-card .price-row strong {
    font-size: 34px;
  }

  .listing-card.is-watched-home-card .price-row strong {
    font-size: 16px;
  }

  .card-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
    gap: 8px;
  }

  .feedback-button,
  .open-link,
  .more-action-button {
    min-height: 42px;
    border-radius: 14px;
  }

  .image-stage .listing-action-menu,
  .image-stage .more-action-button {
    width: 32px;
    min-height: 32px;
    height: 32px;
  }

  .open-link {
    height: 42px;
  }

  .open-menu {
    right: auto;
    bottom: calc(100% + 10px);
    left: 0;
    min-width: min(220px, calc(100vw - 48px));
    max-width: calc(100vw - 24px);
    border-radius: 18px;
  }

  .open-menu.is-anchor-right {
    right: 0;
    left: auto;
  }

  .open-menu.is-anchor-left {
    top: auto;
    right: auto;
    bottom: calc(100% + 10px);
    left: 0;
  }

  .open-menu.is-open-below {
    top: calc(100% + 10px);
    bottom: auto;
  }

  .open-menu.is-open-above {
    top: auto;
    bottom: calc(100% + 10px);
  }

  .pagination {
    padding-bottom: 76px;
  }

  .pagination-actions {
    grid-template-columns: 1fr auto 1fr;
  }

  .pagination-actions .secondary-action {
    min-width: 0;
  }

  .back-to-top {
    --mobile-back-to-top-offset: max(30px, calc(env(safe-area-inset-bottom) + 22px));

    left: 50%;
    bottom: var(--mobile-back-to-top-offset);
    width: 44px;
    height: 44px;
    font-size: 24px;
    transform: translateX(-50%);
  }

  .back-to-top.is-above-pagination {
    bottom: calc(var(--mobile-back-to-top-offset) + 132px);
  }

  .refine-backdrop {
    place-items: center;
    padding: 10px;
    background: color-mix(in srgb, var(--bg) 34%, rgba(0, 0, 0, 0.52));
    backdrop-filter: blur(16px) saturate(0.9);
  }

  .refine-modal {
    --refine-scroll-inset: 10px;
    --refine-modal-max-height: min(calc(100dvh - 20px), 760px);
    width: 100%;
    max-height: var(--refine-modal-max-height);
    border-radius: var(--radius-sheet);
    animation: refineDrop 170ms ease-out;
    transform-origin: center center;
  }

  .refine-panel {
    --refine-pad-y: 24px;
    --refine-pad-x: 22px;
    --refine-pad-scroll: 30px;
    gap: 14px;
    padding: var(--refine-pad-y) var(--refine-pad-scroll) var(--refine-pad-y) var(--refine-pad-x);
  }

  .refine-panel .modal-header {
    top: calc(var(--refine-pad-y) * -1);
    margin: calc(var(--refine-pad-y) * -1) calc(var(--refine-pad-scroll) * -1) 0 calc(var(--refine-pad-x) * -1);
    padding: var(--refine-pad-y) var(--refine-pad-scroll) 12px var(--refine-pad-x);
  }

  .refine-panel .modal-actions {
    bottom: calc(var(--refine-pad-y) * -1);
    grid-template-columns: 1fr 1fr;
    margin: auto calc(var(--refine-pad-scroll) * -1) calc(var(--refine-pad-y) * -1) calc(var(--refine-pad-x) * -1);
    padding: 12px var(--refine-pad-scroll) calc(var(--refine-pad-y) + env(safe-area-inset-bottom)) var(--refine-pad-x);
  }

  .refine-panel .modal-actions .save-refine-search-action {
    grid-column: 1 / -1;
  }

  .refine-panel .modal-actions .primary-action {
    grid-column: 1 / -1;
  }

  .refine-term-entry {
    min-height: 54px;
    padding: 0 16px;
  }

  .term-dropdown {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 20px;
  }

  .source-list {
    grid-template-columns: 1fr;
  }

  .settings-modal {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: var(--radius-sheet);
  }

  .settings-modal .modal-header {
    padding: 14px 14px 0;
  }

  .settings-tabs {
    gap: 5px;
    padding: 0 14px;
  }

  .settings-tab {
    min-height: 36px;
    font-size: 12px;
  }

  .settings-scroll {
    padding: 0 14px;
  }

  .settings-section {
    gap: 12px;
    padding: 12px;
  }

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

  .brand-gradient-picker-grid {
    grid-template-columns: 1fr;
  }

  .brand-gradient-actions {
    grid-template-columns: 1fr 1fr;
  }

  .settings-modal .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
  }

  .settings-modal .modal-actions .primary-action,
  .settings-modal .modal-actions .secondary-action {
    width: 100%;
    min-width: 0;
  }
}

@media (max-height: 680px) {
  .settings-modal {
    max-height: calc(100dvh - 16px);
  }

  .settings-modal .modal-header {
    padding-top: 12px;
  }

  .settings-section {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .header-actions {
    display: flex;
    width: auto;
    align-self: start;
    justify-content: flex-end;
    gap: 7px;
  }

  .brand-home-link {
    max-width: min(160px, 40vw);
  }

  .brand-logo {
    width: min(160px, 40vw);
  }

  .region-badge {
    min-width: 112px;
    max-width: min(178px, 52vw);
    padding: 0 12px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .region-native-select {
    background-position: right 10px center;
    padding-right: 34px;
    padding-left: 12px;
  }

  .region-popover {
    width: min(260px, 88vw);
  }

  .saved-trigger {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 14px;
  }

  .saved-trigger > span {
    width: 19px;
    height: 19px;
  }

  .search-terms-field {
    --quick-search-font-size: 18px;
    --quick-search-left-padding: 16px;
    --quick-search-refine-width: 84px;
    --quick-search-refine-gap: 6px;
    --quick-search-right-padding: calc(var(--quick-search-submit-inset) + var(--quick-search-submit-size) + var(--quick-search-refine-gap) + var(--quick-search-refine-width) + 6px);
    --quick-search-placeholder-size: 18px;
  }

  .quick-search-refine {
    gap: 5px;
    font-size: 14px;
  }

  .quick-search-refine .refine-icon {
    width: 26px;
    height: 26px;
  }

  .quick-search-save {
    right: 52px;
  }

  .filter-bar {
    margin-inline: -2px;
  }

  .source-filter-panel {
    width: calc(100vw - 24px);
  }

  .card-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 42px;
  }

  .noise-button {
    grid-column: auto;
  }
}

@keyframes refineSheetUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.result-grid.is-my-page,
.results-grid.is-my-page {
  display: block;
  width: 100%;
}

.my-page-view {
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: clamp(16px, 2.6vw, 30px);
}

.my-page-hero {
  display: grid;
  gap: clamp(10px, 1.4vw, 16px);
  padding: clamp(18px, 3.8vw, 48px) 0 0;
}

.my-page-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.my-page-hero h2,
.my-page-section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0;
}

.my-page-hero h2 {
  max-width: 920px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.95;
  -webkit-text-fill-color: transparent;
}

.my-page-summary {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.35;
}

.my-page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.my-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.my-page-meta span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.my-page-section {
  display: grid;
  width: 100%;
  gap: 12px;
}

.my-page-section-heading,
.my-page-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.my-page-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 10px;
  align-items: end;
}

.my-page-filter-field,
.my-page-sort-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.my-page-filter-field span,
.my-page-sort-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.my-page-filter-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background-color: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
}

.my-page-filter-field input {
  padding: 0 15px;
}

.my-page-sort-field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 46px;
  padding: 0 48px 0 18px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--ink));
  border-radius: var(--radius-pill);
  background-color: var(--select-bg);
  background-image: var(--select-brand-chevron);
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 18px 18px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 52%, transparent);
  transition: none;
}

.my-page-filter-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.my-page-filter-field input:focus {
  border-color: var(--brand-gradient-start);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-gradient-start) 22%, transparent);
}

.my-page-sort-field select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: var(--focus-ring);
}

.my-page-sort-field select:hover {
  border-color: color-mix(in srgb, var(--line) 64%, var(--ink));
  background-color: var(--select-hover-bg);
}

.my-page-section-heading h3 {
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 0.94;
}

.my-page-primary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 20px;
  background: var(--brand-gradient);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    filter var(--motion-standard),
    transform var(--motion-standard);
}

.my-page-primary-action:hover,
.my-page-primary-action:focus-visible {
  filter: saturate(1.12) brightness(1.06);
}

.my-page-primary-action:active {
  transform: translateY(1px) scale(0.98);
}

.my-page-saved-list {
  display: grid;
  width: 100%;
  gap: 0;
}

.my-page-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.my-page-saved-row {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 272px);
  gap: clamp(var(--space-5), 3vw, var(--space-7));
  align-items: stretch;
  padding: clamp(var(--space-5), 3vw, var(--space-7)) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  scroll-margin-block: 26vh;
  transition:
    background var(--motion-standard),
    color var(--motion-standard);
}

.my-page-saved-row:first-child {
  border-top: 1px solid var(--line);
}

.my-page-saved-row.is-quiet .my-page-saved-title,
.my-page-saved-row.is-quiet .my-page-saved-details,
.my-page-saved-row.is-quiet .my-page-saved-quick-meta,
.my-page-saved-row.is-quiet .my-page-utility-action,
.my-page-saved-row.is-quiet .my-page-alert-toggle {
  color: color-mix(in srgb, var(--muted) 82%, var(--ink));
}

.my-page-saved-row.is-quiet .my-page-saved-title {
  font-weight: inherit;
}

.my-page-saved-row.is-quiet .my-page-saved-title:hover,
.my-page-saved-row.is-quiet .my-page-saved-title:focus-visible {
  color: var(--color-brand-hot);
}

.my-page-saved-row.is-key-jump-target {
  background: color-mix(in srgb, var(--color-brand-hot) 7%, transparent);
  box-shadow: inset 3px 0 0 var(--color-brand-hot);
}

.my-page-saved-copy {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  min-width: 0;
}

.my-page-saved-mainline {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--space-4);
}

.my-page-new-radar {
  position: relative;
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
}

.my-page-new-radar::before,
.my-page-new-radar::after {
  content: "";
  position: absolute;
  border-radius: var(--radius-pill);
}

.my-page-new-radar::before {
  width: var(--space-2);
  height: var(--space-2);
  background: var(--color-brand-hot);
}

.my-page-new-radar::after {
  inset: 2px;
  border: 2px solid var(--color-brand-hot);
  animation: myPageRadarPing var(--motion-toast-travel) ease-out both;
}

@keyframes myPageRadarPing {
  from {
    opacity: 1;
    transform: scale(0.5);
  }

  to {
    opacity: 0.45;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .my-page-new-radar::after {
    animation: none;
    opacity: 0.45;
  }
}

.my-page-saved-title {
  width: fit-content;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-title);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  text-align: left;
  overflow-wrap: anywhere;
  transition: color var(--motion-standard);
}

.my-page-saved-title:hover,
.my-page-saved-title:focus-visible,
.my-page-utility-action:hover,
.my-page-utility-action:focus-visible,
.my-page-saved-row:has(.my-page-saved-details[aria-expanded="true"]) .my-page-saved-title {
  color: var(--brand-gradient-start);
}

.my-page-saved-controls {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-5);
}

.my-page-saved-details {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  gap: var(--space-3);
  grid-column: 1;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  line-height: 1.3;
  list-style: none;
  transition: color var(--motion-standard);
}

.my-page-saved-quick-meta {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-page-saved-details::after {
  content: "";
  width: 14px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--motion-standard);
}

.my-page-saved-details:hover,
.my-page-saved-details:focus-visible,
.my-page-saved-details[aria-expanded="true"] {
  color: var(--color-brand-hot);
}

.my-page-saved-details:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.my-page-saved-details[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.my-page-saved-details-copy {
  display: grid;
  grid-column: 1 / -1;
  gap: var(--space-2);
  padding-top: var(--space-2);
  color: var(--muted);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  line-height: 1.35;
}

.my-page-saved-details-copy[hidden] {
  display: none;
}

.my-page-saved-details-copy p {
  max-width: 640px;
  margin: 0;
}

.my-page-saved-stats {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.my-page-new-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 var(--space-4);
  background: var(--color-brand-hot);
  color: var(--source-ink-on-color);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  transition:
    background var(--motion-standard),
    box-shadow var(--motion-standard),
    filter var(--motion-standard),
    transform var(--motion-standard);
}

.my-page-new-pill:hover,
.my-page-new-pill:focus-visible {
  background: var(--brand-gradient);
  color: var(--source-ink-on-color);
  filter: saturate(1.08) brightness(1.04);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-hot) 24%, transparent);
}

.my-page-new-pill:focus-visible {
  outline: none;
}

.my-page-new-pill:active {
  transform: translateY(1px) scale(0.98);
}

.my-page-saved-utility {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 1px minmax(72px, 0.72fr);
  align-items: center;
  min-width: 0;
  gap: var(--space-4);
}

.my-page-utility-action {
  display: inline-flex;
  width: 100%;
  height: 96px;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 0;
  border-radius: var(--radius-control);
  padding: var(--space-3);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  transition:
    background var(--motion-standard),
    color var(--motion-standard),
    transform var(--motion-standard);
}

.my-page-utility-action:hover,
.my-page-utility-action:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--color-brand-hot) 10%, transparent);
}

.my-page-utility-action:focus-visible {
  box-shadow: var(--focus-ring);
}

.my-page-utility-action:active {
  transform: scale(0.97);
}

.my-page-utility-divider {
  width: 1px;
  height: min(108px, 78%);
  justify-self: center;
  background: var(--line);
}

.my-page-alert-toggle {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: var(--space-2);
  grid-column: 2;
  min-height: 36px;
  color: var(--ink);
  cursor: pointer;
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.my-page-alert-toggle > span:first-child {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.my-page-alert-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.my-page-alert-track {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--field) 88%, transparent);
  transition:
    background var(--motion-standard),
    border-color var(--motion-standard),
    box-shadow var(--motion-standard);
}

.my-page-alert-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    background var(--motion-standard),
    transform var(--motion-standard);
}

.my-page-alert-toggle input:checked + .my-page-alert-track {
  border-color: transparent;
  background: var(--brand-gradient);
}

.my-page-alert-toggle input:checked + .my-page-alert-track::after {
  background: #fff;
  transform: translateX(14px);
}

.my-page-alert-toggle:hover,
.my-page-alert-toggle:focus-within {
  color: var(--brand-gradient-start);
}

.my-page-alert-toggle:focus-within .my-page-alert-track {
  box-shadow: var(--focus-ring);
}

.my-page-refine-action .refine-icon {
  width: 32px;
  height: 32px;
}

.my-page-refine-action:hover .refine-icon,
.my-page-refine-action:focus-visible .refine-icon {
  animation: refineKnobTurn 2.4s ease-in-out infinite;
}

.my-page-delete-icon {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.my-page-delete-icon::before,
.my-page-delete-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transform-origin: center;
}

.my-page-delete-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.my-page-delete-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.my-page-delete-action {
  flex-direction: column;
  gap: var(--space-1);
}

.my-page-delete-label {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: var(--text-caption);
  transition:
    max-height var(--motion-standard),
    opacity var(--motion-standard);
}

.my-page-delete-action:hover,
.my-page-delete-action:focus-visible {
  color: var(--rose);
}

.my-page-delete-action:hover .my-page-delete-label,
.my-page-delete-action:focus-visible .my-page-delete-label {
  max-height: 24px;
  opacity: 1;
}

.my-page-empty {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: clamp(20px, 3vw, 34px);
  color: var(--muted);
}

.my-page-empty strong {
  color: var(--ink);
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
}

@media (max-width: 720px) {
  .my-page-view {
    gap: 18px;
  }

  .my-page-hero {
    padding-top: 18px;
  }

  .my-page-section-heading,
  .my-page-toolbar {
    display: grid;
    align-items: start;
  }

  .my-page-tools {
    grid-template-columns: 1fr;
  }

  .my-page-saved-row {
    grid-template-columns: minmax(0, 1fr) minmax(116px, 132px);
    gap: var(--space-3);
    padding: var(--space-5) 0;
  }

  .my-page-saved-mainline {
    align-items: center;
    flex-wrap: wrap;
  }

  .my-page-saved-title {
    font-size: var(--text-emphasis);
  }

  .my-page-saved-quick-meta {
    font-size: var(--text-caption);
    white-space: normal;
  }

  .my-page-primary-action {
    width: fit-content;
    min-height: 44px;
  }

  .my-page-saved-stats {
    justify-items: end;
  }

  .my-page-saved-controls {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-3);
  }

  .my-page-alert-toggle {
    min-height: 36px;
  }

  .my-page-saved-utility {
    grid-template-columns: minmax(54px, 1fr) 1px minmax(48px, 0.8fr);
    gap: var(--space-2);
  }

  .my-page-utility-action {
    height: 64px;
    min-height: 64px;
    padding-inline: var(--space-1);
    font-size: var(--text-caption);
  }

  .my-page-refine-action {
    flex-direction: column;
  }

  .my-page-refine-action .refine-icon {
    width: 26px;
    height: 26px;
  }

  .my-page-delete-icon {
    width: 34px;
    height: 34px;
  }

  .my-page-delete-icon::before,
  .my-page-delete-icon::after {
    width: 38px;
  }

  .my-page-delete-label {
    display: none;
  }

  .featured-home-section.is-gear-browser-frame .featured-home-rail {
    gap: 10px;
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-double-rail {
    grid-auto-columns: clamp(118px, calc((100vw - 58px) / 2.35), 170px);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: clamp(var(--space-7), 13vw, calc(var(--space-7) + var(--space-5))) var(--space-1) var(--space-4);
    scroll-padding-inline: 2px;
    scroll-snap-type: x proximity;
    scroll-snap-stop: normal;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .featured-home-section.is-gear-browser-frame .featured-home-rail .listing-card.is-browse-home-card,
  .featured-home-section.is-gear-browser-frame .gear-browser-double-rail .listing-card.is-browse-home-card {
    flex: 0 0 clamp(96px, calc((100% - 20px) / 2.5), 170px);
    aspect-ratio: 1 / 1;
    min-height: 0;
    overflow: hidden;
    background: var(--image-bg);
    box-shadow:
      0 16px 34px rgba(24, 28, 30, 0.13),
      0 5px 14px rgba(24, 28, 30, 0.08);
    color: #fff;
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-double-rail .listing-card.is-browse-home-card {
    width: 100%;
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-double-rail .listing-card.is-browse-home-card .image-stage,
  .featured-home-section.is-gear-browser-frame .gear-browser-double-rail .listing-card.is-browse-home-card .image-link,
  .featured-home-section.is-gear-browser-frame .gear-browser-double-rail .listing-card.is-browse-home-card .image-link img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: inherit;
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-live-carousel {
    margin-inline: calc(var(--space-1) * -1);
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-live-rail {
    --gear-live-card-size: clamp(108px, 31vw, 132px);
    display: grid;
    grid-auto-columns: var(--gear-live-card-size);
    grid-auto-flow: column;
    grid-template-rows: repeat(2, var(--gear-live-card-size));
    align-items: stretch;
    gap: 10px;
    padding: clamp(var(--space-7), 13vw, calc(var(--space-7) + var(--space-5))) var(--space-1) var(--space-4);
    scroll-padding-inline: var(--space-1);
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-live-rail .listing-card.is-browse-home-card {
    width: 100%;
    height: 100%;
  }

  .featured-home-section.is-gear-browser-frame .gear-browser-live-rail .listing-card.is-browse-home-card:first-of-type {
    grid-row: 1 / span 2;
    grid-column: span 2;
  }

  .listing-card.is-browse-home-card .price-row strong {
    min-height: 26px;
    padding: 0 9px;
    font-size: 13px;
  }

}

@media (max-width: 720px) {
  :root {
    --mobile-bottom-nav-height: var(--control-mobile-nav-height);
    --mobile-bottom-nav-space: calc(var(--mobile-bottom-nav-height) + 18px + env(safe-area-inset-bottom));
  }

  .app-shell {
    padding-bottom: calc(var(--mobile-bottom-nav-space) + 24px);
  }

  .site-footer {
    padding-bottom: calc(var(--mobile-bottom-nav-space) + 96px);
  }

  .pagination {
    padding-bottom: calc(var(--mobile-bottom-nav-space) + 76px);
  }

  .back-to-top {
    --mobile-back-to-top-offset: calc(var(--mobile-bottom-nav-space) + 16px);
  }

  .save-confirmation-toast {
    bottom: calc(var(--mobile-bottom-nav-space) + 12px);
  }

  .app-header .header-actions {
    width: 0;
    min-width: 0;
    gap: 0;
    margin-left: 0;
    overflow: visible;
    pointer-events: none;
  }

  .app-header .saved-menu {
    width: 0;
    height: 0;
    pointer-events: auto;
  }

  .app-header .account-menu {
    display: none;
  }

  .app-header .saved-trigger,
  .app-header .watching-trigger,
  .app-header .theme-toggle {
    display: none;
  }

  body.saved-popover-bottom-anchor .saved-popover {
    top: auto;
    bottom: var(--saved-popover-mobile-bottom, calc(var(--mobile-bottom-nav-space) + 12px));
    max-height: min(64dvh, calc(100dvh - var(--saved-popover-mobile-bottom, 96px) - 18px));
  }

  body.saved-popover-bottom-anchor .saved-popover::before {
    top: auto;
    bottom: -7px;
    transform: rotate(225deg);
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 64;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    min-height: var(--mobile-bottom-nav-height);
    gap: 4px;
    padding: 7px;
    border: 1px solid var(--color-mobile-nav-border);
    border-radius: var(--radius-sheet);
    background:
      linear-gradient(180deg, var(--color-mobile-nav-surface-top), var(--color-mobile-nav-surface-bottom));
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    backdrop-filter: blur(18px) saturate(1.1);
  }

  body.settings-modal-open #settingsModal {
    padding-bottom: calc(var(--mobile-bottom-nav-space) + 8px);
  }

  body.settings-modal-open .settings-modal {
    max-height: calc(100dvh - var(--mobile-bottom-nav-space) - 28px);
  }

  body.settings-modal-open .mobile-bottom-nav {
    z-index: 1001;
  }

  .mobile-bottom-nav-item {
    position: relative;
    display: inline-flex;
    min-width: 0;
    min-height: var(--control-mobile-nav-item-height);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border: 1px solid transparent;
    border-radius: var(--radius-navigation-item);
    background: transparent;
    color: var(--color-mobile-nav-ink);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition:
      background var(--motion-standard),
      border-color var(--motion-standard),
      color var(--motion-standard),
      transform var(--motion-standard);
  }

  .mobile-bottom-nav-item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-bottom-nav-icon {
    width: var(--control-mobile-nav-icon-size);
    height: var(--control-mobile-nav-icon-size);
    flex: 0 0 auto;
    stroke: currentColor;
  }

  .mobile-bottom-nav-item:hover,
  .mobile-bottom-nav-item:focus-visible {
    color: var(--color-control-on-ink);
    background: var(--color-mobile-nav-interaction);
  }

  .mobile-bottom-nav-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 114, 255, 0.42);
  }

  .mobile-bottom-nav-item.is-active {
    border-color: color-mix(in srgb, var(--brand-gradient-start) 30%, transparent);
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--brand-gradient-start) 26%, transparent), color-mix(in srgb, var(--brand-gradient-end) 18%, transparent)),
      var(--color-mobile-nav-interaction);
    color: var(--color-control-on-ink);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 8px 20px rgba(0, 0, 0, 0.22);
  }

  .mobile-bottom-nav-item.is-active::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 5px;
    left: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand-gradient);
  }

  .mobile-bottom-nav-item:active {
    transform: translateY(1px) scale(0.98);
  }
}
