/* Discovery, catalog controls, and the customer's dashboard. */
body .home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  min-height: 0;
  background: #181818;
  color: var(--brand-white);
}
.home-hero .hero-copy {
  min-width: 0;
  padding: clamp(24px, 4.2vw, 58px);
}
.home-hero .hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 66px);
  letter-spacing: -.045em;
  line-height: 1.25;
}
.home-hero .hero-copy h1 > span { display: block; }
.home-hero .hero-copy > p {
  max-inline-size: 42ch;
  color: #d0cece;
  font-size: clamp(14px, 1.38vw, 17px);
  line-height: 1.8;
  margin-block: 14px 24px;
}
.home-hero .hero-copy a:focus-visible { outline-color: var(--brand-red-ink); }
.home-hero .hero-actions { gap: 8px; }
.home-hero-map {
  min-height: 48px;
  padding-inline: 13px;
  border-color: #515151;
  background: transparent;
  color: var(--brand-white);
}
.home-hero .hero-network {
  grid-row: auto;
  min-height: clamp(330px, 35vw, 450px);
  background: #211b18;
}
.home-hero .hero-network img {
  position: absolute;
  height: 100%;
  object-position: center top;
}
.home-hero-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block-start: 1px solid #373737;
  background: #151515;
}
.home-hero-links a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  min-height: 61px;
  padding: 9px clamp(10px, 2.3vw, 29px);
  font-size: 14px;
  font-weight: 700;
}
.home-hero-links a + a { border-inline-start: 1px solid #343434; }
.home-hero-links a:hover { background: #252525; }
.home-hero-links a:focus-visible { outline-offset: -4px; }
.home-hero-links .icon { width: 20px; height: 20px; color: var(--brand-red-ink); }
.home-hero-links .icon:last-child { width: 16px; height: 16px; color: #bcbcbc; }

@media (max-width: 640px) {
  body .home-hero { grid-template-columns: minmax(0, 1fr); }
  .home-hero .hero-copy { padding: 20px 16px 17px; }
  .home-hero .hero-copy h1 { font-size: clamp(29px, 8vw, 42px); }
  .home-hero .hero-copy > p { margin-block: 10px 14px; font-size: 13px; }
  .home-hero .hero-network { width: 100%; min-height: 0; aspect-ratio: 5 / 4; }
  .home-hero-links a { grid-template-columns: 1fr; justify-items: center; gap: 3px; font-size: 12px; text-align: center; }
  .home-hero-links .icon:last-child { display: none; }
}

.finder-browse { padding-block-end: clamp(32px, 5vw, 64px); }
.finder-browse .finder-title { margin-block-end: 16px; }
.finder-browse .finder-title :is(h1, h2) { font-size: clamp(24px, 3.2vw, 41px); }
.finder-browse .finder-controls {
  padding: clamp(13px, 2.5vw, 22px);
  margin-block-end: clamp(17px, 2.4vw, 28px);
  border: 1px solid var(--frame-edge);
  border-radius: 12px;
  background: var(--frame);
}
.finder-browse .finder-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, .8fr));
  align-items: start;
  gap: 12px;
}
.finder-browse .finder-field {
  display: grid;
  grid-template-rows: auto 46px;
  align-items: stretch;
  gap: 5px;
  max-width: none;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
}
.finder-browse .finder-field :is(select, .finder-search) { min-height: 46px; min-width: 0; }
.finder-browse .finder-field :is(select, input) { font-size: 14px; }
.finder-browse .finder-field select { width: 100%; text-overflow: ellipsis; }
.finder-local { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.finder-local > p { flex: 1 1 230px; margin-block: 9px 0; color: var(--reading-muted); font-size: 12px; line-height: 1.65; }
.finder-local :is(.radius, .sample-toggle) { margin: 7px 0 0; align-items: center; gap: 6px; }
.finder-local [hidden] { display: none; }
.finder-display { display: none; }
.finder-browse .finder-split {
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(14px, 2.4vw, 28px);
}
.finder-browse .results-panel { padding: clamp(12px, 2vw, 21px); }
.finder-browse .results-head { border-block-end: 1px solid var(--line); padding-block-end: 11px; }
.finder-browse .results-head h2 { margin: 0; }
.finder-browse #salonResults { margin-block-start: 4px; max-height: clamp(210px, 54vh, 490px); }
.finder-browse .salon-result { padding-block: 9px; }
.finder-browse .pick-salon { font-size: 14px; }
.finder-browse .result-open { white-space: nowrap; color: var(--ink); border-radius: 7px; padding-inline: 9px; font-size: 12px; }
.finder-browse .result-open:hover { background: var(--soft); }
.finder-browse .atlas-head { padding: 12px 16px; }
.finder-browse .selected-salon { padding: 13px 16px; }
.finder-browse .finder-paths { margin-block-start: clamp(28px, 4.5vw, 56px); }
.finder-browse .finder-paths .quick-title { margin-block: 0 12px; }
.finder-browse .finder-paths .quick-paths { border: 0; gap: 8px; }
.finder-browse .quick-paths .quick-tile {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--frame);
}
.finder-browse .quick-paths .quick-tile:hover { background: var(--soft); }
.finder-browse .quick-paths .quick-icon { color: var(--brand-red-ink); }

.catalog-browse .catalog-controls {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin-block-end: clamp(22px, 3.2vw, 38px);
}
.catalog-browse .catalog-tools { margin: 0; }
.catalog-browse .catalog-controls h2, .catalog-results-head h2 { margin: 0; font-size: clamp(16px, 2vw, 21px); }
.catalog-browse .catalog-traits {
  padding: 3px clamp(12px, 2vw, 22px);
  border: 1px solid var(--frame-edge);
  border-radius: 12px;
  background: var(--frame);
}
.catalog-browse .catalog-traits[open] { padding-block-end: 10px; }
.catalog-browse .catalog-traits summary { padding: 5px 0; }
.catalog-browse .catalog-traits .look-fit { margin: 0; border: 0; }
.fit-explain { display: flex; gap: 8px 15px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.fit-explain p { flex: 1 1 210px; line-height: 1.65; }
.fit-explain .btn { min-height: 44px; font-size: 12px; }
.catalog-results-head {
  display: flex;
  justify-content: flex-start;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 12px clamp(12px, 2vw, 22px);
  border: 1px solid var(--frame-edge);
  border-radius: 12px;
  background: var(--frame);
}
.catalog-categories { display: flex; align-items: stretch; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.catalog-categories button, .finder-display button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--frame-edge);
  border-radius: 8px;
  background: var(--frame);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 660;
}
:is(.catalog-categories, .finder-display) button:hover { background: var(--soft); }
:is(.catalog-categories, .finder-display) button[aria-pressed=true] { border-color: var(--brand-red-ink); background: var(--brand-red-tint); }
:is(.catalog-categories, .finder-display) button[aria-pressed=true] .icon { color: var(--brand-red-ink); }
:is(.catalog-categories, .finder-display) button .icon { width: 16px; height: 16px; }
#catalogSubgroup { flex: 0 1 245px; min-width: 0; }
#catalogSubgroup:empty { display: none; }
#catalogSubgroup .field { margin: 0; }
#catalogSubgroup select { min-height: 44px; }

.customer-dashboard { width: 100%; max-width: 1140px; margin-inline: auto; }
.customer-welcome :is(h1, p), .customer-next :is(h2, p), .customer-actions > h2, .customer-records > header :is(h2, p) { margin: 0; }
.customer-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 clamp(16px, 2.5vw, 28px);
}
.customer-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.customer-name h1 { font-size: clamp(22px, 3vw, 36px); line-height: 1.4; overflow-wrap: anywhere; }
.customer-profile-note { color: var(--reading-muted); font-size: 13px; overflow-wrap: anywhere; }
.customer-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--brand-white);
  color: var(--brand-black);
  font-weight: 770;
  font-size: 19px;
}
.customer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.customer-edit {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.customer-edit .icon { width: 15px; height: 15px; }
.customer-edit:hover { background: var(--soft); }
.customer-next {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(11px, 2.6vw, 24px);
  padding: clamp(16px, 3vw, 28px);
  border-radius: 14px;
  background: var(--brand-white);
  color: var(--brand-black);
}
.customer-next-mark {
  display: grid;
  place-items: center;
  width: clamp(46px, 6.8vw, 68px);
  aspect-ratio: 1;
  border-radius: 12px;
  background: #f2dbe0;
  color: #a41830;
}
.customer-next-mark .icon { width: 52%; height: 52%; }
.customer-next-content h2 { font-size: clamp(17px, 2.2vw, 23px); line-height: 1.4; }
.customer-next-content p { color: #424242; font-size: clamp(12px, 1.4vw, 15px); line-height: 1.75; overflow-wrap: anywhere; }
.customer-next-content .customer-next-date { color: var(--brand-black); font-weight: 750; }
.customer-next .btn { min-height: 44px; gap: 8px; }
.customer-next .btn .icon { height: 16px; width: 16px; }
.customer-next a:focus-visible { outline-color: var(--brand-red); }
.customer-actions, .customer-records { margin-block-start: clamp(22px, 3.5vw, 39px); }
.customer-actions h2, .customer-records > header h2 { font-size: clamp(18px, 2vw, 24px); margin-block-end: 11px; }
.customer-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(7px, 1.2vw, 12px); }
.customer-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 72px;
  padding: clamp(9px, 1.5vw, 14px);
  border: 1px solid var(--frame-edge);
  border-radius: 10px;
  background: var(--frame);
  color: var(--ink);
  text-align: start;
  font: inherit;
  cursor: pointer;
}
.customer-tile:hover { background: var(--soft); }
.customer-tile-icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 9px;
  background: #2e2527;
  color: var(--brand-red-ink);
}
.customer-tile-icon .icon { width: 20px; height: 20px; }
.customer-tile-text { min-width: 0; display: grid; line-height: 1.5; }
.customer-tile-text strong { font-size: 13px; overflow-wrap: anywhere; }
.customer-tile-text small { color: var(--reading-muted); font-size: 11px; }
.customer-unread {
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: -5px;
  min-width: 17px;
  padding: 0 3px;
  border-radius: 9px;
  background: var(--brand-red);
  color: #fff;
  text-align: center;
  font-size: 10px;
}
.customer-records { scroll-margin-block-start: 75px; }
.customer-records > header p { margin-block: -5px 12px; color: var(--reading-muted); font-size: 13px; }
.customer-records .desk-pane[hidden] { display: none; }
.customer-records .desk-tabs { margin-block-end: 10px; }

@media (max-width: 740px) {
  .finder-browse .finder-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-browse .finder-field-search { grid-column: 1 / -1; }
  .finder-browse .finder-field input { font-size: 16px; }
  .finder-browse .finder-split { grid-template-columns: minmax(0, 1fr); }
  .finder-display { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-block-end: 9px; }
  .finder-browse [data-view=list] #finderMap, .finder-browse [data-view=map] #finderList { display: none; }
  .finder-browse #salonResults { max-height: 420px; }
  .finder-browse .finder-paths .quick-tile { min-height: 70px; text-align: center; }
  .catalog-browse .catalog-categories { gap: 5px; }
  .catalog-browse .catalog-categories button { padding-inline: 8px; }
  .catalog-browse .catalog-categories button .icon { display: none; }
  #catalogSubgroup { flex-basis: 100%; }
  .customer-tile { flex-direction: column; text-align: center; gap: 6px; padding: 9px 5px; }
}
@media (max-width: 440px) {
  .customer-avatar { width: 41px; height: 41px; }
  .customer-name { gap: 8px; }
  .customer-edit { padding-inline: 6px; font-size: 11px; }
  .customer-edit .icon { display: none; }
  .customer-next { grid-template-columns: auto minmax(0, 1fr); }
  .customer-next > a { grid-column: 1/-1; justify-content: center; }
  .customer-tile-text strong { font-size: 12px; }
  .customer-tile-text small { font-size: 10px; }
  .catalog-browse .catalog-search-tools .catalog-inputs { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .catalog-browse .catalog-inputs input { font-size: 16px; }
}

.fit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.fit-actions .icon { width: 16px; height: 16px; }
.catalog-result-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin-block-end: 14px; }
.catalog-result-summary h2 { margin: 0; font-size: clamp(18px, 2.5vw, 26px); scroll-margin-block-start: 78px; }
.catalog-result-summary .catalog-count { margin: 0; }
#catalogMatchFilters { display: flex; flex: 0 0 100%; flex-wrap: wrap; gap: 5px; padding: 0; margin: 0; list-style: none; }
#catalogMatchFilters li { max-width: 100%; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--reading-muted); font-size: 12px; overflow-wrap: anywhere; }
@media (min-width: 741px) {
  .catalog-spotlight .look-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .fit-actions { width: 100%; }
  .fit-actions [data-catalog-search] { flex: 1 0 max-content; justify-content: center; }
}
