/* Hallmark · component: market selector · genre: modern-minimal · theme: existing Member / Minimal Flat owner reference
 * states: default · hover · focus · active · disabled · loading · error · success
 * contrast: pass (40–41) · 20 light/dark width cases verified · no new motion or data access
 * Scope: market selection panel only. Existing queries, handlers and count meanings retained.
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4
 */
.home-market-chip-dot, .home-market-stat-icon, .home-market-sort-icon { display: none; }
.home-market-today, .home-market-chip-count, .home-market-waiting { display: none !important; }
html body:not(.light-theme) #main-content .app-shell-home .home-market-tools .home-market-waiting { display: none !important; }

@media (max-width: 24rem) {
  html body.mode-mobile #main-content .app-shell-home .home-market-tools .home-market-summary .summary-card {
    padding-inline: var(--space-2xs) !important;
  }
}

/* Hallmark · component: compact market counts · theme: existing light Member
 * Counts keep the existing summary policy; dark mode retains its summary row.
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-tools__main {
  --compact-ink: #102b49;
  --compact-muted: #6d80a0;
  --compact-line: #dce6ef;
  --compact-green: #00864c;
  --compact-open-dot: #18ba83;
  --compact-open-bg: #e1f8ed;
  --compact-amber: #a76413;
  --compact-amber-dot: #ff990b;
  --compact-amber-bg: #fff0dc;
  --compact-waiting: #63728a;
  --compact-waiting-bg: #eef2f6;
  --compact-stock-dot: #5d9fff;
  --compact-vip-dot: #a347ee;
  --compact-online-dot: #39bf9e;
  --compact-search-bg: #f6f9fc;
  --compact-surface: #fff;
  --compact-focus: #2362ba;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  grid-template-rows: auto auto auto !important;
  align-items: center;
  gap: 8px 18px !important;
  padding: 12px 16px !important;
  border: 1px solid var(--compact-line) !important;
  border-radius: 9px !important;
  background: var(--compact-surface) !important;
}
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-tools__heading,
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-tools__heading > div:first-child { display: contents !important; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-tools__heading h2 {
  grid-area: 1 / 1;
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  min-height: 32px;
  margin: 0 !important;
  font-size: 20px !important;
  color: var(--compact-ink) !important;
}
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-tools__heading h2::before { display: none !important; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-heading-icon { display: block !important; width: 22px; height: 22px; flex: 0 0 22px; color: var(--compact-green); }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-today {
  grid-area: 1 / 2;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--compact-line);
  border-radius: 6px;
  color: var(--compact-muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-today strong { color: var(--compact-ink); font-size: 18px; font-variant-numeric: tabular-nums; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-help {
  grid-area: 1 / 3 !important;
  display: block !important;
  justify-self: end;
  margin: 0 !important;
  color: var(--compact-muted);
  font-size: 12px !important;
}
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-help summary { display: flex; align-items: center; gap: 6px; min-height: 32px; white-space: nowrap; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-summary { display: none !important; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-chip-row {
  grid-area: 2 / 1 / 3 / -1 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  width: 100%;
  min-width: 0;
  overflow-x: auto !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--compact-line) !important;
  scrollbar-width: thin;
}
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-chip {
  display: inline-flex !important;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px !important;
  min-width: 0;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 5px 10px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--compact-ink) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  white-space: nowrap !important;
}
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-chip.is-active { color: var(--compact-green) !important; border-bottom-color: var(--compact-green) !important; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-waiting { cursor: default; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-chip-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--compact-waiting); }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools [data-market-filter="open"] .home-market-chip-dot { background: var(--compact-open-dot); }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools [data-market-filter="closing"] .home-market-chip-dot { background: var(--compact-amber-dot); }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools [data-market-filter="stock"] .home-market-chip-dot { background: var(--compact-stock-dot); }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools [data-market-filter="vip"] .home-market-chip-dot { background: var(--compact-vip-dot); }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools [data-market-filter="online"] .home-market-chip-dot { background: var(--compact-online-dot); }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-waiting .home-market-chip-dot { background: var(--compact-waiting); }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-chip-count {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--compact-green);
  background: var(--compact-open-bg);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools [data-market-filter="closing"] .home-market-chip-count { color: var(--compact-amber); background: var(--compact-amber-bg); }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-waiting .home-market-chip-count { color: var(--compact-waiting); background: var(--compact-waiting-bg); }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-tools__actions {
  grid-area: 3 / 1 / 4 / -1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  width: 100% !important;
  gap: 22px !important;
  margin: 0 !important;
}
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools :is(.home-market-search-wrap,.home-market-sort-track) { height: 38px !important; min-height: 0 !important; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-search-wrap { padding: 0 10px !important; border: 1px solid var(--compact-line) !important; background: var(--compact-search-bg) !important; border-radius: 7px !important; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-search { height: 100% !important; min-height: 0 !important; padding: 0 !important; font-size: 13px !important; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-sort { height: 100% !important; min-height: 0 !important; padding: 0 16px !important; font-size: 13px !important; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-sort-track::before { inset-inline-start: -11px !important; top: 7px; bottom: 7px; }
html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools :is(button,summary):focus-visible { outline: 2px solid var(--compact-focus) !important; outline-offset: 2px; }
@media (max-width: 60rem) {
  html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-tools__main { gap: 7px 10px !important; padding: 10px 12px !important; }
  html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-tools__heading h2 { font-size: 17px !important; }
  html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-chip { min-height: 40px !important; padding-inline: 12px !important; }
}
@media (max-width: 30rem) {
  html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-tools__main { grid-template-columns: minmax(0,1fr) auto !important; }
  html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-help { display: none !important; }
  html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-today { padding: 4px 7px; gap: 5px; font-size: 11px; }
  html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-today strong { font-size: 16px; }
  html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-tools__actions { gap: 8px !important; }
  html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-sort { padding-inline: 9px !important; font-size: 12px !important; }
  html body.light-theme.member-authenticated #main-content .app-shell-home .home-market-tools .home-market-sort-track::before { display: none !important; }
}

@media (min-width: 60.01rem) {
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__main {
    --market-tool-surface: var(--member-market-surface);
    --market-tool-wash: oklch(98.3% .006 255);
    --market-tool-ink: oklch(26% .055 255);
    --market-tool-muted: oklch(51% .04 255);
    --market-tool-rule: oklch(89% .025 255);
    --market-tool-green: oklch(46% .125 155);
    --market-tool-green-top: oklch(52% .135 155);
    --market-tool-icon-green: var(--market-tool-green);
    --market-tool-heading-green: var(--market-tool-green-top);
    --market-tool-action-ink: oklch(100% 0 0);
    --market-tool-focus: var(--color-liveboard-blue-deep);
    --market-tool-pink: oklch(56% .22 8);
    --market-tool-pink-soft: oklch(96% .026 8);
    --market-tool-blue: oklch(53% .21 255);
    --market-tool-blue-soft: oklch(95.5% .035 255);
    --market-tool-purple: oklch(52% .22 300);
    --market-tool-purple-soft: oklch(96% .023 300);
    --market-tool-green-soft: oklch(96% .028 160);
    --market-tool-dot-open: oklch(76% .17 12);
    --market-tool-dot-closing: oklch(78% .16 65);
    --market-tool-dot-stock: oklch(73% .15 255);
    --market-tool-dot-vip: oklch(64% .23 300);
    --market-tool-dot-online: oklch(75% .13 165);
    --market-tool-dot-closed: oklch(67% .015 260);
    --market-tool-shadow: 0 3px 8px oklch(26% .055 255 / .07);
    --market-tool-font: var(--font-body);
    padding: clamp(20px, 2.2cqw, 32px) !important;
    border-radius: var(--space-md) !important;
    background: var(--market-tool-surface) !important;
    color: var(--market-tool-ink);
  }
  html body:not(.light-theme).member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__main {
    --market-tool-surface: oklch(23% .025 255);
    --market-tool-wash: oklch(26% .026 255);
    --market-tool-ink: oklch(95% .01 255);
    --market-tool-muted: oklch(77% .025 255);
    --market-tool-rule: oklch(40% .03 255);
    --market-tool-focus: oklch(73% .14 250);
    --market-tool-pink: oklch(78% .13 8);
    --market-tool-pink-soft: oklch(29% .045 8);
    --market-tool-blue: oklch(76% .13 255);
    --market-tool-blue-soft: oklch(29% .05 255);
    --market-tool-purple: oklch(78% .13 300);
    --market-tool-purple-soft: oklch(29% .045 300);
    --market-tool-green-soft: oklch(29% .045 160);
    --market-tool-icon-green: oklch(78% .12 160);
    --market-tool-heading-green: oklch(76% .12 155);
    --market-tool-shadow: none;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__heading > div:first-child {
    margin-bottom: var(--space-md) !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__heading h2 {
    gap: var(--space-md) !important;
    color: var(--market-tool-ink) !important;
    font-family: var(--market-tool-font) !important;
    font-size: clamp(23px, 2.3cqw, 32px) !important;
    font-weight: 700 !important;
    font-style: normal;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-heading-icon { color: var(--market-tool-heading-green); }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-help {
    color: var(--market-tool-muted);
    font-size: clamp(14px, 1.3cqw, 18px);
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-help summary { min-height: 44px; }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-chip-row {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 0 !important;
    border-bottom: 1px solid var(--market-tool-rule);
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-chip {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: var(--space-sm);
    min-height: clamp(52px, 4.6cqw, 64px) !important;
    padding: var(--space-sm) clamp(8px, 1.2cqw, 16px) !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--market-tool-ink) !important;
    box-shadow: none !important;
    font-family: var(--market-tool-font) !important;
    font-size: clamp(15px, 1.5cqw, 20px) !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: none !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-chip.is-active {
    border-bottom-color: var(--market-tool-heading-green) !important;
    background: transparent !important;
    color: var(--market-tool-heading-green) !important;
    font-weight: 700 !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-sort {
    background: linear-gradient(180deg, var(--market-tool-green-top), var(--market-tool-green)) !important;
    border-color: var(--market-tool-green) !important;
    color: var(--market-tool-action-ink) !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-chip-dot {
    display: block;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--market-tool-dot-closed);
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools [data-market-filter="open"] .home-market-chip-dot { background: var(--market-tool-dot-open); }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools [data-market-filter="closing"] .home-market-chip-dot { background: var(--market-tool-dot-closing); }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools [data-market-filter="stock"] .home-market-chip-dot { background: var(--market-tool-dot-stock); }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools [data-market-filter="vip"] .home-market-chip-dot { background: var(--market-tool-dot-vip); }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools [data-market-filter="online"] .home-market-chip-dot { background: var(--market-tool-dot-online); }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__actions {
    grid-template-columns: minmax(0, 1fr) minmax(200px, .22fr);
    width: 100% !important;
    gap: var(--space-xl) !important;
    margin: var(--space-lg) 0 var(--space-lg) !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools :is(.home-market-search-wrap, .home-market-sort-track) {
    height: clamp(46px, 4.5cqw, 62px);
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-search-wrap {
    transition: none !important;
    gap: var(--space-sm);
    border-color: var(--market-tool-rule);
    border-radius: var(--space-sm);
    background: var(--market-tool-wash);
    color: var(--market-tool-muted);
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-search {
    transition: none !important;
    padding-inline: 0 !important;
    font-family: var(--market-tool-font) !important;
    font-size: clamp(15px, 1.5cqw, 20px) !important;
    color: var(--market-tool-ink) !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-search::placeholder { color: var(--market-tool-muted) !important; }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-sort {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    border-radius: var(--space-sm) !important;
    font-family: var(--market-tool-font) !important;
    font-size: clamp(15px, 1.45cqw, 20px) !important;
    transition: none !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-sort-icon { display: block; flex: 0 0 auto; }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-sort-track { position: relative; }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-sort-track::before {
    content: "";
    position: absolute;
    inset-inline-start: calc(var(--space-xl) / -2);
    top: var(--space-xs);
    bottom: var(--space-xs);
    border-inline-start: 1px solid var(--market-tool-rule);
  }
  /* Keep the summary's inherited ink. */
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-summary { color: var(--member-market-ink); }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__main :is(button, summary, input):focus-visible,
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-search-wrap:focus-within {
    outline: 2px solid var(--market-tool-focus) !important;
    outline-offset: 3px !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-search:focus-visible { outline-offset: 0 !important; }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__main :is(button, input):disabled { opacity: .5; cursor: not-allowed; }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__main button:is(:active, .is-pressed) { transform: translateY(1px); }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__main .is-focus { outline: 2px solid var(--market-tool-focus) !important; outline-offset: 3px; }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__main [data-state="loading"] { cursor: progress; opacity: .65; border-style: dashed !important; }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__main [data-state="error"] { outline: 2px solid var(--market-tool-pink) !important; outline-offset: 2px; }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__main [data-state="success"] { outline: 2px solid var(--market-tool-green-top) !important; outline-offset: 2px; }
  @media (hover: hover) and (pointer: fine) {
    html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-chip:not(.is-active):hover,
    html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-chip.is-hover {
      background: var(--market-tool-wash) !important;
      color: var(--market-tool-heading-green) !important;
    }
    html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-sort:hover { background: var(--market-tool-green) !important; }
  }
  @media (max-width: 70rem) {
    html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__actions { width: 100% !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__main button { transform: none !important; }
  }
}

/* Compact desktop selector: existing summary values share the title row.
 * CSS-only rearrangement; mobile markup, filters and data updates are unchanged. */
@media (min-width: 60.01rem) {
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__main {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 0;
    row-gap: 12px;
    padding: 20px !important;
    border: 1px solid var(--market-tool-rule) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__heading > div:first-child {
    display: contents !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__heading h2 {
    grid-area: 1 / 1 / 2 / 3 !important;
    margin: 0 !important;
    gap: 10px !important;
    font-size: 24px !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-help {
    grid-area: 1 / 7 / 2 / 8 !important;
    justify-self: center;
    margin: 0 !important;
    font-size: 14px;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-summary {
    grid-area: 1 / 3 / 2 / 7 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    justify-self: end;
    overflow: visible;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-summary .summary-card {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    min-height: 58px !important;
    gap: 4px !important;
    padding: 4px 8px !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-summary .summary-card::after {
    content: "";
    display: block;
    position: absolute;
    inset-inline-end: 0;
    top: 18% !important;
    height: 64% !important;
    border-inline-end: 1px solid color-mix(in srgb, var(--market-tool-rule) 65%, transparent);
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-summary .summary-card span {
    font-size: 14px !important;
    white-space: nowrap;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-summary .summary-card strong {
    font-size: 26px !important;
    font-variant-numeric: tabular-nums;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-chip-row {
    grid-area: 2 / 1 / 3 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-bottom-color: color-mix(in srgb, var(--market-tool-rule) 55%, transparent);
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-chip {
    min-height: 48px !important;
    min-width: 0;
    gap: 8px;
    padding: 6px 4px !important;
    border-bottom-width: 2px !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-tools__actions {
    grid-area: 3 / 1 / 4 / -1 !important;
    gap: 32px !important;
    margin: 0 !important;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools :is(.home-market-search-wrap, .home-market-sort-track) {
    height: 48px;
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-search-wrap {
    border-color: color-mix(in srgb, var(--market-tool-rule) 65%, transparent);
  }
  html body.member-authenticated.mode-desktop .app-shell-home .home-market-tools .home-market-sort-track::before {
    display: block;
    inset-inline-start: -16px;
    top: 10px;
    bottom: 10px;
  }
}
