:root {
  color-scheme: light;
  --ink: #111014;
  --muted: #6f6875;
  --faint: #9a929d;
  --surface: #fff;
  --surface-soft: #fff8fb;
  --line: #ebe5ed;
  --line-strong: #ded5e0;
  --brand: #cf3f78;
  --brand-strong: #9b2855;
  --brand-soft: #fff0f6;
  --lavender: #f3efff;
  --peach: #fff6ee;
  --shadow: 0 18px 46px rgba(64, 43, 58, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.directory-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(235, 229, 237, 0.72);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(38, 28, 36, 0.055);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 950;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    var(--brand);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(207, 63, 120, 0.24);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(235, 229, 237, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 24px rgba(38, 28, 36, 0.055);
}

.mobile-menu-button,
.topbar-search-button {
  display: none;
}

.topbar-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: #554d58;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.topbar-actions a:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.topbar-actions a:focus-visible,
.language-switcher button:focus-visible {
  outline: 2px solid rgba(207, 63, 120, 0.32);
  outline-offset: 2px;
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  margin-left: 4px;
  padding: 3px;
  border: 1px solid rgba(235, 229, 237, 0.9);
  border-radius: 999px;
  background: #fff;
}

.language-switcher button,
.filter-tabs button,
.search-row button,
.card-action,
.detail-actions a {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.language-switcher button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
}

.language-switcher button.is-active {
  background: var(--brand);
  color: #fff;
}

.workspace-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.market-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 70px;
  background:
    radial-gradient(circle at 50% -10%, rgba(213, 208, 255, 0.8), transparent 36%),
    radial-gradient(circle at 50% 45%, rgba(255, 198, 229, 0.6), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fff9fc 100%);
}

.hero-grid {
  display: grid;
  justify-items: center;
  gap: 26px;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: #4f4853;
  font-size: 1rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(207, 63, 120, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 850;
}

.search-panel {
  width: min(760px, 100%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.search-panel label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-panel p {
  display: none;
}

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

.search-row input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.search-row input:focus {
  box-shadow: inset 0 0 0 2px rgba(207, 63, 120, 0.16);
}

.search-row button {
  padding: 0 22px;
  background: #111014;
  color: #fff;
}

.search-row .search-clear {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.search-row .search-clear:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.browse-section {
  padding: 46px 0 86px;
}

.directory-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.directory-tools h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: 0;
}

.result-count {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
  white-space: nowrap;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 2px;
}

.filter-tabs button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: #4f4853;
}

.filter-tabs button:hover {
  border-color: var(--line-strong);
}

.filter-tabs button.is-active {
  border-color: #111014;
  background: #111014;
  color: #fff;
}

.directory-layout {
  display: block;
}

.workspace-list {
  display: grid;
  gap: 46px;
}

.workspace-section {
  position: relative;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.workspace-section::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 18px;
  z-index: 1;
  width: 56px;
  height: calc(100% - 48px);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
}

.workspace-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.workspace-section-header h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.05;
}

.workspace-section-header span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
}

.workspace-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 276px);
  gap: 18px;
  min-width: 0;
  margin-inline: -2px;
  padding: 2px 2px 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 2px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 63, 120, 0.28) transparent;
}

.workspace-grid::-webkit-scrollbar {
  height: 8px;
}

.workspace-grid::-webkit-scrollbar-track {
  background: transparent;
}

.workspace-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(207, 63, 120, 0.28);
}

.workspace-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  scroll-snap-align: start;
}

.workspace-card a {
  text-decoration: none;
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 240, 246, 0.94), rgba(241, 236, 255, 0.94)),
    var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(207, 63, 120, 0.08);
}

.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.9), transparent 18%),
    linear-gradient(135deg, rgba(207, 63, 120, 0.08), rgba(105, 91, 218, 0.08));
}

.workspace-card--spa .card-media {
  background:
    linear-gradient(135deg, rgba(236, 248, 245, 0.96), rgba(242, 238, 255, 0.96)),
    var(--surface-soft);
}

.workspace-card--clinic .card-media {
  background:
    linear-gradient(135deg, rgba(238, 246, 255, 0.96), rgba(255, 241, 246, 0.96)),
    var(--surface-soft);
}

.workspace-card--salon .card-media {
  background:
    linear-gradient(135deg, rgba(255, 244, 232, 0.96), rgba(255, 239, 247, 0.96)),
    var(--surface-soft);
}

.venue-visual {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  width: 42%;
  max-width: 130px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.96), transparent 28%),
    linear-gradient(135deg, rgba(207, 63, 120, 0.18), rgba(105, 91, 218, 0.16));
  opacity: 0.78;
}

.workspace-logo,
.detail-logo,
.detail-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  color: var(--brand-strong);
  font-weight: 950;
}

.workspace-logo {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(49, 38, 47, 0.12);
}

.workspace-logo img,
.detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: grid;
  gap: 7px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.workspace-card h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-card h2 a:hover {
  color: var(--brand-strong);
}

.workspace-meta,
.detail-meta,
.detail-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
}

.workspace-meta li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-meta li,
.detail-meta li,
.detail-list li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workspace-type {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(207, 63, 120, 0.18);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.68rem;
  font-weight: 950;
}

.workspace-slug {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 46%;
  overflow: hidden;
  color: var(--brand-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.25;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.card-action.primary {
  flex: 0 0 auto;
  background: var(--brand);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.card-action.secondary {
  min-width: 0;
  max-width: 44%;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
}

.workspace-card:hover .card-media,
.workspace-card:focus-visible .card-media,
.workspace-card.is-active .card-media {
  box-shadow: inset 0 0 0 1px rgba(207, 63, 120, 0.18), 0 16px 34px rgba(66, 42, 55, 0.12);
}

.workspace-card:active {
  transform: scale(0.985);
}

.workspace-card-skeleton {
  cursor: default;
  pointer-events: none;
}

.workspace-card-skeleton .card-media,
.skeleton-line {
  background: linear-gradient(90deg, #f7f1f5 0%, #fff 44%, #f7f1f5 88%);
  background-size: 220% 100%;
  animation: skeleton-pulse 1.25s ease-in-out infinite;
}

.workspace-card-skeleton .card-media::before,
.workspace-card-skeleton .venue-visual {
  display: none;
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 11px;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 42%;
}

.skeleton-line.title {
  width: 70%;
  height: 16px;
}

.skeleton-line.button {
  width: 54%;
  height: 30px;
  margin-top: 3px;
}

@keyframes skeleton-pulse {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.workspace-detail {
  display: none;
}

.directory-state {
  grid-column: 1 / -1;
  padding: 44px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: #fffafa;
  color: var(--muted);
  text-align: center;
}

html[dir="rtl"] body {
  font-family: Tahoma, Arial, sans-serif;
}

html[dir="rtl"] .workspace-card {
  text-align: right;
}

html[dir="rtl"] .workspace-section::after {
  right: auto;
  left: -1px;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0), #fff);
}

html[dir="rtl"] .workspace-logo {
  right: 12px;
  left: auto;
}

@media (max-width: 1100px) {
  .workspace-grid {
    grid-auto-columns: minmax(220px, 264px);
  }
}

@media (max-width: 820px) {
  body {
    background: #fff;
  }

  .workspace-shell {
    width: min(100% - 24px, 1180px);
  }

  .directory-topbar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 9px 12px;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid rgba(235, 229, 237, 0.86);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(31, 25, 34, 0.07);
    backdrop-filter: blur(18px);
  }

  .brand-link {
    gap: 8px;
    flex: 0 0 auto;
    justify-self: center;
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.66rem;
    box-shadow: 0 8px 18px rgba(207, 63, 120, 0.16);
  }

  .mobile-menu-button,
  .topbar-search-button {
    position: relative;
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-menu-button::before,
  .mobile-menu-button::after {
    content: "";
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 7px 0 currentColor;
  }

  .mobile-menu-button::after {
    display: none;
  }

  .topbar-search-button::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2.5px solid currentColor;
    border-radius: 999px;
    transform: translate(-1px, -1px);
  }

  .topbar-search-button::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 2.5px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(10px, 10px) rotate(45deg);
  }

  .topbar-actions {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-self: stretch;
    justify-content: stretch;
    gap: 8px;
    min-width: 0;
    max-width: none;
    padding: 10px;
    border: 1px solid rgba(235, 229, 237, 0.92);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 46px rgba(31, 25, 34, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .topbar-actions.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .topbar-actions::-webkit-scrollbar {
    display: none;
  }

  .topbar-actions a {
    flex: 0 0 auto;
    display: inline-flex;
    width: auto;
    height: auto;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #f8f6f9;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    white-space: nowrap;
  }

  .topbar-actions a[href*="customer"] {
    display: inline-flex;
  }

  .language-switcher {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex: 0 0 auto;
    gap: 2px;
    margin-left: 0;
    padding: 4px;
    border-radius: 16px;
    background: #f8f6f9;
    border: 1px solid var(--line);
  }

  .language-switcher button {
    min-width: 0;
    min-height: 36px;
    padding: 0 5px;
    font-size: 0.62rem;
  }

  .language-switcher button:not(.is-active) {
    display: inline-flex;
  }

  .language-switcher button.is-active {
    min-width: 0;
    background: var(--brand);
    box-shadow: 0 8px 18px rgba(207, 63, 120, 0.18);
  }

  .market-hero {
    padding: 28px 0 22px;
    background:
      radial-gradient(circle at 50% 0%, rgba(213, 208, 255, 0.58), transparent 42%),
      linear-gradient(180deg, #ffffff 0%, #fff8fb 100%);
  }

  .hero-grid {
    gap: 16px;
    text-align: left;
    justify-items: stretch;
  }

  .hero-copy {
    justify-items: start;
  }

  .eyebrow,
  .section-kicker {
    margin-bottom: 6px;
    font-size: 0.66rem;
  }

  h1 {
    max-width: 420px;
    margin-bottom: 8px;
    font-size: clamp(2rem, 10vw, 2.9rem);
    line-height: 0.98;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 34rem;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-highlights {
    justify-content: flex-start;
    gap: 6px;
    margin-top: 12px;
  }

  .hero-highlights span {
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .search-panel {
    position: sticky;
    top: 64px;
    z-index: 4;
    width: 100%;
    padding: 6px;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(64, 43, 58, 0.1);
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .search-row input {
    min-height: 40px;
    padding: 0 11px;
    font-size: 0.86rem;
  }

  .search-row button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.78rem;
  }

  .search-row .search-clear {
    padding: 0 10px;
  }

  .search-row input,
  .search-row button {
    border-radius: 12px;
  }

  .browse-section {
    padding: 24px 0 46px;
  }

  .directory-tools {
    align-items: end;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 12px;
  }

  .directory-tools h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .result-count {
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .filter-tabs {
    position: relative;
    top: auto;
    z-index: 3;
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin-right: -12px;
    margin-bottom: 22px;
    padding: 8px 12px 9px 0;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.94);
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tabs button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .workspace-list {
    gap: 32px;
  }

  .workspace-section {
    gap: 12px;
  }

  .workspace-section::after {
    width: 34px;
    bottom: 14px;
    height: calc(100% - 42px);
  }

  .workspace-section-header h3 {
    font-size: 1.15rem;
  }

  .workspace-section-header span {
    font-size: 0.74rem;
  }

  .workspace-grid {
    grid-auto-columns: minmax(152px, 44vw);
    gap: 12px;
    margin-inline: -12px;
    padding: 2px 12px 14px;
    scrollbar-width: none;
  }

  .workspace-grid::-webkit-scrollbar {
    display: none;
  }

  .card-media {
    aspect-ratio: 1.08 / 1;
    border-radius: 13px;
  }

  .workspace-logo {
    top: 9px;
    left: 9px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 0.78rem;
  }

  html[dir="rtl"] .workspace-logo {
    right: 9px;
    left: auto;
  }

  .venue-visual {
    right: 10px;
    bottom: 10px;
    width: 48%;
  }

  .card-body {
    gap: 5px;
  }

  .card-topline {
    gap: 6px;
  }

  .workspace-type {
    min-height: 20px;
    padding: 0 7px;
    font-size: 0.6rem;
  }

  .workspace-slug {
    display: none;
  }

  .workspace-card h2 {
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .workspace-meta {
    gap: 2px;
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .workspace-card-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 3px;
  }

  .card-action.primary {
    width: 100%;
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.74rem;
  }

  .workspace-card:active {
    transform: scale(0.975);
  }

  .skeleton-line.title {
    height: 13px;
  }

  .skeleton-line.button {
    width: 100%;
    height: 32px;
  }

  .directory-state {
    padding: 30px 18px;
    border-radius: 14px;
    font-size: 0.88rem;
  }
}

@media (max-width: 520px) {
  .workspace-shell {
    width: min(100% - 20px, 1180px);
  }

  .directory-topbar {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    width: 100%;
    min-height: 60px;
    padding: 8px 10px;
    gap: 10px;
    border-radius: 0;
  }

  .brand-link {
    width: auto;
    font-size: 0.94rem;
  }

  .topbar-actions {
    right: 10px;
    left: 10px;
    width: auto;
    gap: 8px;
  }

  .topbar-actions a {
    width: auto;
    height: auto;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .language-switcher {
    margin-left: auto;
  }

  .language-switcher button {
    min-width: 0;
    min-height: 34px;
    font-size: 0.66rem;
  }

  .market-hero {
    padding-top: 22px;
  }

  .search-panel {
    top: 68px;
  }

  .filter-tabs {
    top: auto;
  }

  h1 {
    font-size: clamp(1.86rem, 10vw, 2.45rem);
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 0.82rem;
  }

  .hero-highlights span {
    font-size: 0.68rem;
  }

  .search-row .search-clear {
    max-width: 42px;
    overflow: hidden;
    padding: 0 9px;
    text-indent: 100px;
    white-space: nowrap;
  }

  .search-row .search-clear::before {
    content: "x";
    display: block;
    text-indent: 0;
    text-transform: uppercase;
  }

  .directory-tools h2 {
    font-size: 1.42rem;
  }

  .workspace-grid {
    grid-auto-columns: minmax(148px, 46vw);
    gap: 10px;
  }

  .workspace-section-header h3 {
    font-size: 1.05rem;
  }

  .workspace-section-header span {
    display: none;
  }
}

@media (max-width: 360px) {
  .directory-topbar {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .mobile-menu-button,
  .topbar-search-button {
    width: 34px;
    height: 34px;
  }

  .workspace-grid {
    grid-auto-columns: minmax(210px, 82vw);
  }

  .card-media {
    aspect-ratio: 1.55 / 1;
  }
}

.mobile-header-actions,
.mobile-language-button {
  display: none;
}

@media (max-width: 820px) {
  .directory-topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 8px 12px;
  }

  .brand-link {
    justify-self: center;
  }

  .mobile-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .mobile-menu-button,
  .topbar-search-button,
  .mobile-language-button {
    position: relative;
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-menu-button::before {
    content: "";
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor;
  }

  .mobile-menu-button::after {
    display: none;
  }

  .topbar-search-button::before {
    content: "";
    width: 15px;
    height: 15px;
    border: 2.4px solid currentColor;
    border-radius: 999px;
    transform: translate(-1px, -1px);
  }

  .topbar-search-button::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2.4px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(9px, 9px) rotate(45deg);
  }

  .mobile-language-button {
    background: var(--brand);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(207, 63, 120, 0.18);
  }

  .topbar-actions {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(235, 229, 237, 0.92);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 46px rgba(31, 25, 34, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .topbar-actions.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .topbar-actions a,
  .topbar-actions a[href*="customer"] {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 14px;
    background: #f8f6f9;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 900;
  }

  .topbar-actions a::before,
  .topbar-actions a::after {
    display: none !important;
  }

  .language-switcher {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    z-index: 31;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 92px;
    padding: 8px;
    border: 1px solid rgba(235, 229, 237, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(31, 25, 34, 0.13);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .language-switcher.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .language-switcher button,
  .language-switcher button:not(.is-active),
  .language-switcher button.is-active {
    display: inline-flex;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 950;
    box-shadow: none;
  }

  .language-switcher button.is-active {
    background: var(--brand);
    color: #fff;
  }
}

@media (max-width: 520px) {
  .directory-topbar {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .mobile-menu-button,
  .topbar-search-button,
  .mobile-language-button {
    width: 36px;
    height: 36px;
  }

  .topbar-actions {
    right: 10px;
    left: 10px;
  }

  .language-switcher {
    right: 10px;
  }
}
