/* Hallmark · macrostructure: Catalogue · tone: operational · anchor hue: blue · scope: Member desktop home controls only */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R5 V4 */
.home-market-showcase { display: none; }
.home-market-search-wrap { display: contents; }
.home-market-search-wrap > span { display: none; }
.home-market-helper { display: none !important; }
.home-market-heading-icon, .home-market-help { display: none; }
.home-market-sort-track { display: contents; }
.home-market-tab__icon { display: none; }

@media (min-width: 60.01rem) {
  body.light-theme.member-authenticated.mode-desktop .app-shell-home {
    --dashboard-blue-deep: var(--member-market-sidebar);
    --dashboard-blue: var(--color-liveboard-blue-deep);
    --dashboard-navy-highlight: color-mix(in oklch, var(--dashboard-blue-deep) 82%, var(--dashboard-blue));
    --dashboard-navy-gradient: linear-gradient(180deg, var(--dashboard-navy-highlight), var(--dashboard-blue-deep));
    --dashboard-blue-bright: var(--color-liveboard-blue);
    --dashboard-blue-soft: var(--color-liveboard-blue-soft);
    --dashboard-blue-soft-2: var(--color-liveboard-blue-soft-2);
    --dashboard-blue-rule: var(--color-liveboard-blue-rule);
    --dashboard-white: var(--member-market-surface);
    --dashboard-ink: var(--member-market-ink);
    --dashboard-muted: var(--member-market-ink-soft);
    --dashboard-panel-rule: color-mix(in oklch, var(--dashboard-blue-rule) 35%, var(--member-market-rule));
    --dashboard-input-rule: color-mix(in oklch, var(--member-market-green) 24%, var(--dashboard-white));
    --dashboard-summary-surface: color-mix(in oklch, var(--dashboard-blue-soft-2) 32%, var(--dashboard-white));
  }

  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-topbar {
    min-height: 92px !important;
    border-bottom-color: var(--dashboard-blue-rule) !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-topbar__inner {
    min-height: 92px !important;
    padding-block: 13px !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-eyebrow {
    color: var(--dashboard-blue) !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-topbar h1 {
    margin: 0 !important;
    color: var(--dashboard-blue-deep) !important;
    font-size: clamp(1.6rem, 2.4vw, 2rem) !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home #home-time {
    color: var(--dashboard-muted) !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-credit-card {
    justify-content: flex-start !important;
    gap: 11px !important;
    min-width: 210px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding-inline: 13px !important;
    border-color: var(--dashboard-blue-deep) !important;
    background: var(--dashboard-navy-gradient) !important;
    color: var(--dashboard-white) !important;
    box-shadow: var(--member-market-shadow-hover) !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-credit-card span.home-credit-card__icon,
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-credit-card span.home-credit-card__copy,
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-credit-card span.home-credit-card__label,
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-credit-card #member-header-credit {
    color: var(--dashboard-white) !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-credit-card__icon {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-credit-card__copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-credit-card__label {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-credit-card #member-header-credit {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .layout-toggle-btn.is-active,
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .layout-toggle-btn[aria-pressed="true"] {
    border-color: var(--dashboard-blue) !important;
    background: var(--dashboard-blue) !important;
    color: var(--dashboard-white) !important;
  }

  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tools {
    --dashboard-controls-font: "Noto Sans Thai", sans-serif;
    --dashboard-control-ink: #13233b;
    --dashboard-control-muted: #8693aa;
    --dashboard-control-rule: #dde5ef;
    --dashboard-control-surface: #ffffff;
    --dashboard-control-wash: #f8fafc;
    --dashboard-nav-muted: #728097;
    --dashboard-nav-gradient: linear-gradient(135deg, #1b2a40, #203148);
    --dashboard-green-gradient: linear-gradient(180deg, #259361, #147447);
    --dashboard-control-shadow: 0 5px 18px #172d4806;
    container-type: inline-size;
    padding: 12px 18px 0 !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-quick-row {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(8px, 1cqw, 16px);
    min-height: 58px;
    padding: 5px 5px 5px 9px;
    margin-bottom: clamp(16px, 1.73cqw, 25px);
    border: 1px solid var(--dashboard-control-rule);
    border-radius: 9px;
    background: var(--dashboard-control-wash);
    box-shadow: var(--dashboard-control-shadow);
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tabs {
    display: grid !important;
    grid-template-columns: minmax(0, .85fr) minmax(0, .95fr) repeat(2, minmax(0, 1.55fr)) !important;
    min-width: 0 !important;
    height: clamp(42px, 4.33cqw, 62px) !important;
    min-height: 42px !important;
    gap: var(--space-2xs) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tab {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(6px, .65cqw, 10px);
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 5px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: var(--dashboard-nav-muted) !important;
    font-family: var(--dashboard-controls-font) !important;
    font-size: clamp(14px, 1.55cqw, 22px) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tab:nth-child(2)::after,
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tab:nth-child(3)::after {
    content: none;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tab__icon {
    display: block;
    flex: 0 0 auto;
    width: clamp(16px, 1.75cqw, 25px);
    height: clamp(16px, 1.75cqw, 25px);
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tab.is-active {
    border-color: var(--dashboard-blue-deep) !important;
    background: var(--dashboard-nav-gradient) !important;
    color: var(--dashboard-white) !important;
    box-shadow: none !important;
    font-weight: 700 !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tab:disabled {
    opacity: 1 !important;
    cursor: not-allowed !important;
  }
  @media (hover: hover) and (pointer: fine) {
    body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tab:hover:not(.is-active, :disabled) {
      border-color: var(--dashboard-blue) !important;
      background: var(--dashboard-blue) !important;
      color: var(--dashboard-white) !important;
    }
  }

  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    height: auto;
    aspect-ratio: 656 / 94;
    overflow: hidden;
    padding: 0 12px 0 18px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(115deg, var(--dashboard-blue-soft-2), var(--dashboard-blue-soft));
    color: var(--dashboard-blue);
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-showcase__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-showcase__copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.75rem, 1.25vw, 1rem);
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-showcase__copy span {
    color: var(--dashboard-muted);
    font-size: 0.7rem;
    white-space: nowrap;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-showcase__art {
    position: relative;
    flex: 0 0 70px;
    height: 100%;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-showcase__art span {
    position: absolute;
    right: 19px;
    bottom: 4px;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 23%, var(--dashboard-white), var(--dashboard-blue-soft) 67%, var(--dashboard-blue));
    color: var(--dashboard-blue-deep);
    font-family: var(--font-outlier);
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: var(--member-market-shadow-hover);
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-showcase__art span:last-child {
    right: 0;
    bottom: 22px;
    width: 31px;
    height: 31px;
    font-size: 1.05rem;
  }

  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tools__main {
    padding: clamp(16px, 1.7cqw, 25px) clamp(20px, 2.2cqw, 32px) clamp(16px, 1.8cqw, 26px) !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--dashboard-white) !important;
    box-shadow: var(--dashboard-control-shadow) !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tools__heading > div:first-child {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: clamp(30px, 3.1cqw, 45px);
    margin: 0 0 clamp(13px, 1.4cqw, 20px);
    padding: 0 !important;
    border: 0 !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tools__heading h2 {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2cqw, 29px);
    color: var(--dashboard-control-ink) !important;
    font-family: var(--dashboard-controls-font) !important;
    font-size: clamp(20px, 2.2cqw, 31px) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tools__heading h2::before {
    content: none !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tools__heading p {
    display: none !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-heading-icon {
    display: block;
    flex: 0 0 auto;
    width: clamp(22px, 2.3cqw, 33px);
    height: clamp(22px, 2.3cqw, 33px);
    color: #238e5c;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-help {
    position: relative;
    display: block;
    margin-inline-start: auto;
    color: var(--dashboard-control-muted);
    font-family: var(--dashboard-controls-font);
    font-size: clamp(14px, 1.5cqw, 21px);
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-help summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    list-style: none;
    cursor: pointer;
    white-space: nowrap;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-help summary::-webkit-details-marker {
    display: none;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-help summary:focus-visible {
    outline: 2px solid var(--dashboard-blue);
    outline-offset: 2px;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-help[open] summary {
    color: var(--dashboard-blue);
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-help summary:hover {
    color: var(--dashboard-blue);
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-help__content {
    position: absolute;
    z-index: 30;
    inset-inline-end: 0;
    top: calc(100% + 8px);
    width: 300px;
    padding: 16px;
    border: 1px solid var(--dashboard-panel-rule);
    border-radius: 8px;
    background: var(--dashboard-white);
    color: var(--dashboard-blue-deep);
    box-shadow: var(--member-market-shadow-hover);
    line-height: 1.7;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-help__content ol {
    margin: 8px 0 0;
    padding-inline-start: 20px;
    list-style: decimal;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-chip-row {
    padding: 0 !important;
    gap: clamp(6px, 0.7cqw, 10px) !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-chip {
    min-height: clamp(35px, 3.68cqw, 53px) !important;
    padding: 0 clamp(18px, 2cqw, 29px) !important;
    border-color: var(--dashboard-control-rule) !important;
    border-radius: 999px !important;
    background: var(--dashboard-white) !important;
    color: var(--dashboard-control-ink) !important;
    font-family: var(--dashboard-controls-font) !important;
    font-size: clamp(14px, 1.53cqw, 22px) !important;
    font-weight: 400 !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-chip.is-active {
    border-color: transparent !important;
    background: var(--dashboard-green-gradient) !important;
    color: var(--dashboard-white) !important;
    box-shadow: none !important;
    font-weight: 600 !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tools__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.355fr);
    width: 68.5% !important;
    gap: clamp(10px, 1cqw, 15px) !important;
    margin: clamp(14px, 1.45cqw, 21px) 0 clamp(16px, 1.65cqw, 24px) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-search-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
    height: clamp(38px, 3.98cqw, 57px);
    padding: 0 clamp(12px, 1.35cqw, 20px);
    border: 1px solid var(--dashboard-control-rule);
    border-radius: 8px;
    color: var(--dashboard-control-muted);
    background: var(--dashboard-white);
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-search-wrap > span {
    display: flex !important;
    flex: 0 0 auto;
    line-height: 1;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-search-wrap svg {
    width: clamp(18px, 1.7cqw, 25px);
    height: clamp(18px, 1.7cqw, 25px);
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-search {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: var(--dashboard-controls-font) !important;
    font-size: clamp(14px, 1.5cqw, 21px) !important;
    font-weight: 400 !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-search::placeholder {
    color: var(--dashboard-control-muted) !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-search-wrap:focus-within {
    outline: 2px solid var(--dashboard-blue-bright);
    outline-offset: 1px;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-sort-track {
    display: flex;
    align-items: stretch;
    min-width: 0;
    height: clamp(38px, 3.98cqw, 57px);
    border: 0;
    background: transparent;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-sort {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    border-color: transparent !important;
    background: var(--dashboard-green-gradient) !important;
    color: var(--dashboard-white) !important;
    font-family: var(--dashboard-controls-font) !important;
    font-size: clamp(14px, 1.5cqw, 21px) !important;
    font-weight: 600 !important;
    white-space: nowrap;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-summary {
    gap: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--dashboard-control-rule) !important;
    border-radius: 8px !important;
    background: var(--dashboard-control-wash) !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-summary .summary-card {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    position: relative;
    min-height: clamp(76px, 8.15cqw, 117px) !important;
    gap: clamp(3px, 0.45cqw, 6px) !important;
    padding: 12px clamp(22px, 2.4cqw, 35px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-summary .summary-card:not(:last-child)::after {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    top: 13%;
    height: 74%;
    border-inline-end: 1px solid var(--dashboard-control-rule);
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-summary .summary-card::before {
    content: none !important;
    display: none !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-summary .summary-card span {
    margin: 0 !important;
    color: var(--dashboard-control-muted) !important;
    font-family: var(--dashboard-controls-font) !important;
    font-size: clamp(14px, 1.5cqw, 21px) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
  }
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-summary .summary-card strong {
    color: var(--dashboard-control-ink) !important;
    font-family: var(--dashboard-controls-font) !important;
    font-size: clamp(25px, 2.65cqw, 38px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  @media (max-width: 70rem) {
    body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-quick-row {
      grid-template-columns: minmax(0, 1fr);
    }
    body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-showcase {
      display: none;
    }
    body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-tools__actions {
      width: 85% !important;
    }
  }
  @media (min-width: 70.01rem) {
    body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-showcase {
      padding: 0;
      background: var(--dashboard-white) url("assets/home-market-banner-ref.webp") center / cover no-repeat;
    }
    body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-showcase__copy,
    body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-showcase__art {
      display: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-chip,
  body.light-theme.member-authenticated.mode-desktop .app-shell-home .home-market-sort {
    transition-duration: 0ms !important;
  }
}
