/* TCrown Studio responsive brand-stage polish — 2026-10-29 */
/* All rules are scoped to #brand-stage; desktop styling is left untouched. */
@media (max-width: 1024px) {
  #brand-stage.dashboard-brand-directory,
  .dashboard-brand-directory#brand-stage {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 12px 0 0;
    padding: 0 clamp(8px, 2.2vw, 16px);
  }

  #brand-stage,
  #brand-stage *,
  #brand-stage *::before,
  #brand-stage *::after {
    box-sizing: border-box;
  }

  #brand-stage .brand-directory-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0 0 9px;
    padding: 0;
  }

  #brand-stage .brand-directory-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 8px 10px;
    border-radius: 11px;
  }

  #brand-stage .brand-directory-search input,
  #brand-stage input[data-brand-search] {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 12px;
  }

  #brand-stage .brand-directory-search svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
  }

  #brand-stage .brand-directory-shortcut {
    display: none;
  }

  #brand-stage .brand-directory-result-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
    min-width: max-content;
    margin: 0;
    padding: 0;
    line-height: 1.15;
    font-size: 10px;
    white-space: nowrap;
  }

  #brand-stage .brand-directory-result-count strong {
    font-size: 13px;
    line-height: 1.1;
  }

  #brand-stage .brand-directory-alphabet {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    min-width: 0;
    margin: 0 0 10px;
    padding: 1px 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #brand-stage .brand-directory-alphabet::-webkit-scrollbar,
  #brand-stage .brand-directory-letter-list::-webkit-scrollbar {
    display: none;
  }

  #brand-stage .brand-directory-letter-list {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    width: max-content;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  #brand-stage .brand-directory-letter {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 29px;
    margin: 0;
    padding: 0 7px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 1;
  }

  #brand-stage .brand-directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  #brand-stage .brand-directory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 96px;
    height: auto;
    margin: 0;
    padding: 9px 7px 8px;
    border-radius: 11px;
    text-align: center;
    overflow: hidden;
    color: inherit;
  }

  #brand-stage .brand-directory-card:focus-visible {
    outline: 2px solid rgba(190, 154, 82, .85);
    outline-offset: 2px;
  }

  #brand-stage .brand-directory-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 100%;
    min-width: 0;
    height: 25px;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  #brand-stage .brand-directory-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 24px;
    margin: 0 auto;
    object-fit: contain;
  }

  #brand-stage .brand-directory-name {
    display: -webkit-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.18;
    text-align: center;
  }

  #brand-stage .brand-directory-count {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    line-height: 1.15;
    opacity: .78;
    text-align: center;
  }

  #brand-stage .brand-directory-empty {
    margin: 12px 0 0;
    padding: 12px;
    text-align: center;
  }
}

/* Narrow phones: compact cards and balanced gutters without clipping names. */
@media (max-width: 389px) {
  #brand-stage.dashboard-brand-directory,
  .dashboard-brand-directory#brand-stage {
    padding-right: 7px;
    padding-left: 7px;
  }
  #brand-stage .brand-directory-tools { gap: 6px; }
  #brand-stage .brand-directory-search { min-height: 38px; padding: 7px 8px; gap: 6px; }
  #brand-stage .brand-directory-result-count { font-size: 9px; }
  #brand-stage .brand-directory-grid { gap: 7px; }
  #brand-stage .brand-directory-card { min-height: 90px; padding: 7px 6px; gap: 3px; }
  #brand-stage .brand-directory-logo { flex-basis: 22px; height: 22px; }
  #brand-stage .brand-directory-logo img { max-height: 21px; }
  #brand-stage .brand-directory-name { font-size: 10.5px; }
  #brand-stage .brand-directory-count { font-size: 8.5px; }
}

/* Wider phones / mobile landscape: three columns reduce scrolling while remaining legible. */
@media (min-width: 520px) and (max-width: 767px) {
  #brand-stage .brand-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  #brand-stage .brand-directory-card { min-height: 98px; padding: 9px 8px; }
  #brand-stage .brand-directory-name { font-size: 11px; }
}

/* Tablet portrait: three comfortable columns. */
@media (min-width: 768px) and (max-width: 899px) {
  #brand-stage.dashboard-brand-directory,
  .dashboard-brand-directory#brand-stage { padding-right: 16px; padding-left: 16px; }
  #brand-stage .brand-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  #brand-stage .brand-directory-card { min-height: 104px; padding: 10px 9px; }
  #brand-stage .brand-directory-logo { flex-basis: 28px; height: 28px; }
  #brand-stage .brand-directory-logo img { max-height: 27px; }
  #brand-stage .brand-directory-name { font-size: 12px; }
  #brand-stage .brand-directory-count { font-size: 10px; }
}

/* Tablet landscape / wide tablet. */
@media (min-width: 900px) and (max-width: 1024px) {
  #brand-stage.dashboard-brand-directory,
  .dashboard-brand-directory#brand-stage { padding-right: 18px; padding-left: 18px; }
  #brand-stage .brand-directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  #brand-stage .brand-directory-card { min-height: 108px; padding: 11px 10px; }
  #brand-stage .brand-directory-logo { flex-basis: 30px; height: 30px; }
  #brand-stage .brand-directory-logo img { max-height: 29px; }
  #brand-stage .brand-directory-name { font-size: 12px; }
  #brand-stage .brand-directory-count { font-size: 10px; }
}

/* TCROWN BRAND-STAGE OVERLAP REPAIR v2 START */
/*
  Mobile/tablet cards must participate in normal CSS grid flow. The prior
  dashboard/orbit styles can position cards absolutely or transform them;
  reset those layout properties only below 1025px. Do not force display with
  !important on cards, so JS filtering (including inline display:none) survives.
*/
@media (max-width: 1024px) {
  #brand-stage#brand-stage {
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    transform: none !important;
    translate: none !important;
    rotate: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 10px 0 0 !important;
    padding: 0 clamp(8px, 2.4vw, 14px) 12px !important;
    overflow: visible !important;
  }

  #brand-stage *,
  #brand-stage *::before,
  #brand-stage *::after {
    box-sizing: border-box;
  }

  #brand-stage .brand-directory-tools {
    display: grid !important;
    position: relative !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    transform: none !important;
  }

  #brand-stage .brand-directory-search {
    display: flex !important;
    position: relative !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 36px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 9px !important;
  }

  #brand-stage .brand-directory-search input,
  #brand-stage input[data-brand-search] {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
  }

  #brand-stage .brand-directory-search svg {
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
  }

  #brand-stage .brand-directory-shortcut { display: none !important; }

  #brand-stage .brand-directory-result-count {
    display: flex !important;
    position: relative !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 1px !important;
    min-width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }
  #brand-stage .brand-directory-result-count strong {
    font-size: 12px !important;
    line-height: 1.05 !important;
  }

  #brand-stage .brand-directory-alphabet {
    display: flex !important;
    position: relative !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 7px !important;
    padding: 1px 0 3px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transform: none !important;
  }
  #brand-stage .brand-directory-alphabet::-webkit-scrollbar,
  #brand-stage .brand-directory-letter-list::-webkit-scrollbar { display: none; }

  #brand-stage .brand-directory-letter-list {
    display: flex !important;
    position: relative !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    width: max-content !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  #brand-stage .brand-directory-letter {
    display: inline-flex !important;
    position: relative !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 25px !important;
    min-height: 27px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 6px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    transform: none !important;
  }

  #brand-stage .brand-directory-grid#brand-orbit {
    display: grid !important;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-rows: minmax(0, auto) !important;
    align-items: stretch !important;
    align-content: start !important;
    justify-content: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    translate: none !important;
  }

  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card {
    /* Position reset is the critical fix for orbit/absolute card overlap. */
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
    clear: none !important;
    grid-area: auto !important;
    grid-row: auto !important;
    grid-column: auto !important;
    flex: initial !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 66px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 6px 5px !important;
    gap: 3px !important;
    border-radius: 9px !important;
    overflow: hidden !important;
    transform: none !important;
    translate: none !important;
    rotate: none !important;
    scale: 1 !important;
    animation: none !important;
    transition: background-color .15s ease, border-color .15s ease !important;
    text-align: center !important;
  }

  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-logo {
    display: flex !important;
    position: relative !important;
    flex: 0 0 17px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 17px !important;
    min-height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transform: none !important;
  }

  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-logo img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 17px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    transform: none !important;
  }

  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-name {
    display: -webkit-box !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 2.3em !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2;
    overflow-wrap: anywhere !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-count {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 1.2em !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }

  #brand-stage .brand-directory-empty {
    position: relative !important;
    margin: 10px 0 0 !important;
    padding: 10px !important;
    text-align: center !important;
    transform: none !important;
  }
}

/* Compact handset viewport: allow three short grid rows to fit more easily. */
@media (max-width: 519px) and (max-height: 760px) {
  #brand-stage#brand-stage { margin-top: 6px !important; padding-right: 7px !important; padding-left: 7px !important; }
  #brand-stage .brand-directory-tools { gap: 5px !important; margin-bottom: 5px !important; }
  #brand-stage .brand-directory-search { min-height: 33px !important; padding: 5px 7px !important; }
  #brand-stage .brand-directory-alphabet { gap: 3px !important; margin-bottom: 5px !important; }
  #brand-stage .brand-directory-letter-list { gap: 3px !important; }
  #brand-stage .brand-directory-letter { min-width: 23px !important; min-height: 24px !important; padding-right: 5px !important; padding-left: 5px !important; }
  #brand-stage .brand-directory-grid#brand-orbit { gap: 5px !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card { min-height: 59px !important; padding: 4px 4px !important; gap: 2px !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-logo,
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-logo img { flex-basis: 14px !important; height: 14px !important; min-height: 14px !important; max-height: 14px !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-name { font-size: 9.5px !important; line-height: 1.1 !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-count { font-size: 7.5px !important; }
}

/* Wider phones/tablets: add columns while keeping each card in normal flow. */
@media (min-width: 520px) and (max-width: 767px) {
  #brand-stage .brand-directory-grid#brand-orbit { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card { min-height: 70px !important; padding: 6px 6px !important; }
}
@media (min-width: 768px) and (max-width: 899px) {
  #brand-stage#brand-stage { padding-right: 16px !important; padding-left: 16px !important; }
  #brand-stage .brand-directory-grid#brand-orbit { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 9px !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card { min-height: 76px !important; padding: 7px 8px !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-name { font-size: 11px !important; }
}
@media (min-width: 900px) and (max-width: 1024px) {
  #brand-stage#brand-stage { padding-right: 18px !important; padding-left: 18px !important; }
  #brand-stage .brand-directory-grid#brand-orbit { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 9px !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card { min-height: 78px !important; padding: 8px 8px !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-name { font-size: 11px !important; }
}
/* TCROWN BRAND-STAGE OVERLAP REPAIR v2 END */

/* TCROWN BRAND-STAGE LOGO PLATE COMPACT + FULL-SIZE SVG START */
/* Keep the existing responsive grid; only correct its logo scale and logo plate. */
@media (max-width: 1024px) {
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card {
    min-height: 100px !important;
    height: auto !important;
    padding: 5px 5px 6px !important;
    gap: 3px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* The white plate now hugs the SVG rather than stretching across the card. */
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-logo {
    display: inline-flex !important;
    position: relative !important;
    flex: 0 1 auto !important;
    align-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto 1px !important;
    padding: 2px 5px !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
  }

  /* SVGs use the same 52px target height as the full-size brand directory. */
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-logo img {
    display: block !important;
    flex: 0 1 auto !important;
    width: auto !important;
    height: 52px !important;
    max-width: 100% !important;
    max-height: 52px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }

  /* Preserve the compact brand name/count and allow a card to grow if text wraps. */
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-name {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-height: 2.3em !important;
    margin: 0 !important;
    line-height: 1.15 !important;
  }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-count {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
  }
}

/* Narrow phones retain the larger logo but use tighter card gutters. */
@media (max-width: 519px) {
  #brand-stage .brand-directory-grid#brand-orbit {
    gap: 6px !important;
  }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card {
    min-height: 96px !important;
    padding: 4px 4px 5px !important;
    gap: 2px !important;
  }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-logo {
    padding: 2px 4px !important;
  }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-name {
    font-size: 9.5px !important;
  }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-count {
    font-size: 7.5px !important;
  }
}

@media (min-width: 520px) and (max-width: 767px) {
  #brand-stage .brand-directory-grid#brand-orbit { gap: 8px !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card { min-height: 100px !important; padding: 5px 6px !important; }
}
@media (min-width: 768px) and (max-width: 899px) {
  #brand-stage .brand-directory-grid#brand-orbit { gap: 9px !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card { min-height: 100px !important; padding: 5px 7px !important; }
}
@media (min-width: 900px) and (max-width: 1024px) {
  #brand-stage .brand-directory-grid#brand-orbit { gap: 9px !important; }
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card { min-height: 100px !important; padding: 5px 7px !important; }
}
/* TCROWN BRAND-STAGE LOGO PLATE COMPACT + FULL-SIZE SVG END */

/* TCROWN BRAND-STAGE STANDARDIZED LOGO PLATE START */
/* Keep the repaired responsive grid. Standardize only the logo plate and image box. */
@media (max-width: 1024px) {
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-logo {
    display: flex !important;
    position: relative !important;
    box-sizing: border-box !important;
    flex: 0 0 52px !important;
    align-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 150px !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    margin: 0 auto 1px !important;
    padding: 4px 5px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
  }

  /* Every SVG gets the same 140×44 viewport. contain preserves each logo's proportions. */
  #brand-stage .brand-directory-grid#brand-orbit > .brand-directory-card .brand-directory-logo img {
    display: block !important;
    box-sizing: border-box !important;
    flex: 0 1 auto !important;
    width: 140px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
  }
}
/* TCROWN BRAND-STAGE STANDARDIZED LOGO PLATE END */

/* TCROWN BRAND-STAGE ALPHABET WRAP START */
/* Keep every alphabet filter button inside the viewport. The letter row wraps instead of overflowing horizontally. */
@media (max-width: 1024px) {
  #brand-stage .brand-directory-alphabet {
    display: flex !important;
    position: relative !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    column-gap: 5px !important;
    row-gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 9px !important;
    padding: 0 0 4px !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    white-space: normal !important;
    overscroll-behavior-x: auto !important;
    transform: none !important;
  }

  /* ALL remains compact on the first line; the remaining letters use the remaining width. */
  #brand-stage .brand-directory-alphabet > .brand-directory-letter[data-brand-letter="all"] {
    display: inline-flex !important;
    position: relative !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  #brand-stage .brand-directory-letter-list {
    display: flex !important;
    position: relative !important;
    flex: 1 1 calc(100% - 41px) !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: flex-start !important;
    justify-content: flex-start !important;
    column-gap: 5px !important;
    row-gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 41px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    white-space: normal !important;
    transform: none !important;
  }

  #brand-stage .brand-directory-letter-list > .brand-directory-letter {
    display: inline-flex !important;
    position: relative !important;
    flex: 0 0 27px !important;
    width: 27px !important;
    min-width: 27px !important;
    max-width: 27px !important;
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    transform: none !important;
  }
}
/* TCROWN BRAND-STAGE ALPHABET WRAP END */
