.match-page { width: min(100%,760px); margin: auto; }
.match-page.stack { gap: 8px; }
.match-filters section {display:flex; flex-wrap:wrap; gap:5px;}
.match-chip { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-height:36px; padding:5px 12px; border-radius:99px; border:1px solid var(--line); background:#fff; font-size:.86rem; }
.match-chip[aria-pressed=true],.match-chip[aria-expanded=true] {color:white;background:var(--ink);}
.match-filters,.booking-record {padding:12px;border-radius:18px;background:var(--paper);border:1px solid var(--line);}
.match-filters > div {display:grid; grid-template-columns:65px 1fr; align-items:baseline; gap:5px; margin-bottom:12px;font-size:.86rem;}
.match-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; }
.match-card {
  display: grid;
  grid-template-columns: clamp(82px, 25vw, 108px) minmax(0,1fr);
  gap: clamp(9px, 3vw, 14px);
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}
.match-photo { position: relative; align-self: start; aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.match-photo > button:first-child,.match-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; border: 0; padding: 0; }
.match-photo > button:first-child:focus-visible { outline-offset: -3px; }
.match-heart,.match-voice {position:absolute;border:0;background:rgba(255,255,255,.94);border-radius:99px;}
.match-heart {right:3px;top:3px;width:30px;height:30px;font-size:1.18rem;line-height:1;}
.match-heart[aria-pressed=true] {color:#884644;}
.match-voice { bottom: 4px; left: 4px; max-width: calc(100% - 8px); min-height: 26px; padding: 3px 7px; font-size: .73rem; }
.match-photo .match-voice { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-copy {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-content: center;
  gap: 4px;
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 2px 0;
  text-align: left;
}
.match-name, .match-card-footer { display: flex; align-items: center; gap: 5px; min-width: 0; }
.match-name strong,.match-intro {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-name strong { font-size: 1.04rem; font-weight: 750; line-height: 1.25; }
.match-name .gender-mark { width: 19px; height: 19px; }
.match-name .gender-mark svg { width: 13px; height: 13px; }
.match-name small { margin-inline-start: auto; font-size: .69rem; white-space: nowrap; }
.match-name small,.match-intro,.match-caption { color: var(--muted); }
.match-intro { font-size: .75rem; line-height: 1.35; }
.match-rate { font-size: .73rem; white-space: nowrap; }
.match-rate b { font-size: .97rem; }
.match-card-footer svg { margin-inline-start: auto; flex: none; color: var(--muted); }
.match-availability { color: var(--muted); font-size: .69rem; white-space: nowrap; }
.match-availability.is-online { color: #236044; }
.match-availability.is-online::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-inline: 3px; border-radius: 50%; background: currentColor; vertical-align: 2px; }
.match-copy .achievement-badges { gap: 4px; }
.match-copy .achievement-badge {
  min-width: 0;
  max-width: 100%;
  min-height: 27px;
  padding: 1px 5px 1px 2px;
  font-size: .68rem;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
.match-copy .achievement-seal { width: 16px; height: 16px; }
.match-page > [data-audio-status]:empty { display: none; }
.match-avatar-placeholder {display:grid;place-items:center;width:100%;height:100%;background:var(--surface);color:var(--muted);}

.match-profile-prices { display: grid; gap: 7px; }
.match-profile-prices > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: .85rem;
}
.match-profile-prices dd { flex: none; color: var(--muted); font-size: .75rem; }
.match-profile-prices strong { color: var(--ink); font-size: .9rem; }
.match-profile-quotes { display:grid; gap:7px; list-style:none; margin:0; padding:0; }
.match-profile-quotes button {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto auto;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:46px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--paper);
  text-align:start;
}
.match-quote-name { overflow-wrap:anywhere; font-size:.85rem; }
.match-quote-price { color:var(--muted); white-space:nowrap; font-size:.75rem; }
.match-quote-price strong { color:var(--ink); font-size:.92rem; }
.match-profile-quotes svg { color:var(--muted); }
.match-booking-soonest, .match-booking-notice { color: var(--muted); font-size: .8rem; }
.match-profile-calendar { border: 1px solid var(--line); border-radius: 12px; }
.match-profile-calendar summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  font-size: .84rem;
}
.match-profile-calendar summary::-webkit-details-marker { display: none; }
.match-profile-calendar summary small {
  margin-inline-start: auto;
  color: var(--muted);
  font-weight: 500;
}
.match-profile-calendar[open] summary svg { transform: rotate(180deg); }
.match-profile-calendar ul { list-style: none; padding: 0 10px; }
.match-profile-calendar li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 45px;
  border-top: 1px solid var(--line);
  padding: 4px 0;
  font-size: .78rem;
}
.match-profile-calendar li > div { display: grid; gap: 2px; }
.match-profile-calendar li .button { min-height: 34px; padding: 3px 5px; font-size: .72rem; }
.booking-open-window { color: #275d49; }

.booking-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(68px, .38fr); gap: 8px; }
.match-booking .field select { padding: 8px; min-height: 44px; }
.booking-slots { border: 0; padding: 0; min-width: 0; }
.booking-slots legend { font-weight: 650; }
.booking-slots > p { font-size: .81rem; margin: 2px 0 8px; }
.booking-slots > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 6px; }
.booking-slot { position: relative; min-width: 0; }
.booking-slot input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.booking-slot > span {
  display: grid;
  place-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px 2px;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-align: center;
}
.booking-slot-range { white-space: nowrap; font-weight: 690; }
.booking-slot small { font-size: .68rem; }
.booking-slot :checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.booking-slot :disabled + span { color: var(--muted); background: var(--surface); cursor: default; }
.booking-slot.is-reserved :disabled + span { background: #f7eee9; border-color: #e5d8d0; color: #764732; }
.booking-slot :focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.booking-slot-empty { grid-column: 1 / -1; padding: 9px 11px; border-radius: 9px; background: var(--surface); font-size: .82rem; }
.booking-checkout { display: grid; gap: 5px; border-top: 1px solid var(--line); padding-top: 9px; }
.booking-checkout > p { font-size: .78rem; }
.booking-picked-range { color: var(--ink); font-weight: 640; }
.booking-checkout > button { margin-top: 3px; }
.booking-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; }
.booking-total strong { font-size: 1.18rem; }
.booking-record header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; align-items: center; }
.booking-record p { margin: 6px 0; }
.booking-record-status { border-radius: 50px; background: var(--surface); padding: 2px 8px; font-size: .75rem; }
.booking-record-status[data-status="confirmed"] { color: #275d49; background: #e9f2eb; }
.booking-record-status[data-status="pending"] { color: #76542a; background: #f8f0df; }

.match-hub {
  width: min(100%, 760px);
  margin-inline: auto;
}
.match-switch {
  display: flex;
  justify-content: center;
  width: fit-content;
  gap: 3px;
  margin: 0 auto 8px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.match-switch button {
  min-inline-size: 79px;
  min-block-size: 32px;
  padding: 3px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: .81rem;
  font-weight: 650;
}
.match-switch button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.match-catalog {
  display: grid;
  grid-template-columns: clamp(72px, 21%, 134px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(7px, 2vw, 16px);
}
.match-category-nav {
  display: grid;
  gap: 4px;
}
.match-category-nav button {
  min-height: 42px;
  display: flex;
  gap: 3px;
  justify-content: space-between;
  align-items: center;
  padding: 5px clamp(6px, 2vw, 12px);
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: clamp(.77rem, 3vw, .92rem);
  font-weight: 620;
}
.match-category-nav button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
}
.match-category-nav button svg {
  flex-shrink: 0;
}
.match-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.match-project-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: clamp(5px, 1.5vw, 10px);
  border: 1px solid var(--line);
  border-radius: clamp(10px, 3vw, 17px);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}
.match-project-card:hover {
  border-color: var(--muted);
}
.match-project-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  overflow: hidden;
  border-radius: clamp(6px, 1.8vw, 11px);
  background: #efede8;
}
.match-project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.match-project-name {
  font-size: clamp(.83rem, 3.4vw, 1rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.match-project-price {
  margin-top: auto;
  font-size: .79rem;
}
.match-project-price strong {
  color: #995631;
  font-size: clamp(1rem, 4.5vw, 1.33rem);
  font-variant-numeric: tabular-nums;
}
.match-project-price span {
  color: var(--muted);
}
.match-projects .empty-state {
  min-height: 158px;
  padding-inline: 8px;
}

.match-toolbar {
  position: relative;
  display: grid;
  gap: 4px;
}
.match-quick {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(64px, .65fr) auto;
  align-items: center;
  gap: 4px;
}
.match-select {
  position: relative;
  min-width: 0;
}
.match-select select {
  appearance: none;
  width: 100%;
  min-height: 34px;
  padding: 4px 17px 4px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  text-overflow: ellipsis;
}
.match-select svg {
  position: absolute;
  inset-inline-end: 5px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.match-filter-toggle {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 34px;
  padding: 3px 8px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: .76rem;
  white-space: nowrap;
}
.match-filter-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.match-filter-toggle i {
  position: absolute;
  inset: 3px 3px auto auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a63864;
}
.match-preferences {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.match-preferences .match-chip {
  min-height: 27px;
  padding: 2px 8px;
  font-size: .72rem;
}
.match-caption { margin-inline-start: auto; font-size: .73rem; white-space: nowrap; }
.match-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  border: 0;
  background: #28272559;
}
.match-filter-backdrop:disabled { pointer-events: none; }
.match-filter-backdrop + .match-filters {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 21;
  max-height: min(70dvh, 535px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 15px 40px #1a17172a;
  transform-origin: center top;
}
.match-filters .match-chip {
  min-height: 32px;
  padding-inline: 9px;
}
.match-filter-actions {
  display: grid;
  grid-template-columns: minmax(65px,.35fr) minmax(100px,1fr);
  gap: 8px;
}
.match-filter-actions .button {
  width: 100%;
}
@media (max-width: 360px) {
  .match-filter-toggle span { display: none; }
}

.match-project-grid > li {
  position: relative;
  min-width: 0;
}

.match-project-grid .project-favorite {
  position: absolute;
  inset: 9px 9px auto auto;
  width: 36px;
  height: 36px;
  background: #fffffff0;
}

.project-favorite[aria-pressed="true"] {
  color: #a52f52;
  border-color: #e9c1cd;
}
.project-favorite[aria-pressed="true"] svg {
  fill: #d4627d;
}

.gender-mark {
  display: inline-grid;
  place-items: center;
  inline-size: 24px;
  block-size: 24px;
  flex: none;
  border-radius: 50%;
  vertical-align: -.25em;
}
.gender-mark--male { color: #205b8d; background: #e8f2fc; }
.gender-mark--female { color: #a63864; background: #fcecf2; }

.app-dialog:has(.companion-profile) {
  --profile-height: min(calc(100dvh - max(24px, env(safe-area-inset-top) + env(safe-area-inset-bottom))), 690px);
  width: min(calc(100% - 24px), 500px);
  max-height: var(--profile-height);
  padding: 0;
  overflow: hidden;
}
.app-dialog:has(.companion-profile) > .dialog-close {
  inset: 8px 10px auto auto;
  z-index: 2;
  width: 44px;
  height: 44px;
}
.companion-profile {
  display: flex;
  flex-direction: column;
  max-block-size: calc(var(--profile-height) - 2px);
  min-inline-size: 0;
}
.match-profile-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  justify-content: space-between;
  min-block-size: 60px;
  padding: 8px 62px 8px 19px;
  border-bottom: 1px solid var(--line);
}
.match-profile-topline h2 {
  font-size: 1.05rem;
  font-weight: 680;
}
.match-profile-topline .icon-button {
  width: 44px;
  height: 44px;
}
.match-profile-favorite[aria-pressed="true"] { color: #a63864; }
.match-profile-favorite[aria-pressed="true"] svg { fill: currentColor; }
.match-profile-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-block-size: 0;
  min-inline-size: 0;
  padding: 18px clamp(14px, 5vw, 22px) max(20px, env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
}
.match-profile-overview {
  display: grid;
  gap: 12px;
  min-inline-size: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.match-profile-identity {
  display: grid;
  grid-template-columns: clamp(70px, 20vw, 90px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.match-profile-photo {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
}
.match-profile-photo > img { width: 100%; height: 100%; object-fit: cover; }
.match-profile-name {
  display: grid;
  align-content: center;
  gap: 5px;
  min-inline-size: 0;
}
.match-profile-name > div, .match-profile-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.match-profile-name h3 {
  min-inline-size: 0;
  font-size: clamp(1.27rem, 5vw, 1.7rem);
  overflow-wrap: anywhere;
}
.match-profile-id, .match-profile-meta {
  color: var(--muted);
  font-size: .78rem;
}
.match-profile-id { font-variant-numeric: tabular-nums; }
.match-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--surface);
}
.match-profile-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.match-profile-status.is-online { background: #e8f3eb; color: #236044; }
.match-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 12px;
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}
.match-profile-stats > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  padding-inline: 4px;
}
.match-profile-stats > div + div { border-inline-start: 1px solid var(--line); }
.match-profile-stats dt, .match-profile-stats dd > :is(span, small) {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
}
.match-profile-stats dd { font-size: 1.1rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.match-profile-section {
  display: grid;
  gap: 9px;
  padding-block-start: 13px;
  border-block-start: 1px solid var(--line);
}
.match-profile-section h3 { font-size: .97rem; font-weight: 700; }
.match-profile-highlights {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--canvas);
}
.match-profile-highlights:has(.match-profile-labels + .match-profile-voice-row) {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}
.match-profile-highlights > section { display: grid; align-content: start; gap: 6px; min-inline-size: 0; }
.match-profile-highlights h3, .match-profile-intro h3 { font-size: .81rem; font-weight: 680; }
.match-profile-labels + .match-profile-voice-row { border-inline-start: 1px solid var(--line); padding-inline-start: 9px; }
.match-profile-labels .achievement-badge {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
}
.match-profile-voice-row .match-voice {
  position: static;
  justify-self: start;
  min-height: 44px;
  max-width: 100%;
  padding-inline: 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
}
.match-profile-voice-row .match-voice[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.match-profile-body [data-audio-status]:empty { display: none; }
.match-profile-highlights [data-audio-status] { grid-column: 1 / -1; font-size: .74rem; }
.match-profile-intro { display: grid; gap: 5px; border-block-start: 1px solid var(--line); padding-block-start: 9px; }
.match-profile-bio { color: var(--muted); font-size: .87rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.match-profile-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.match-profile-tags li {
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--surface);
  color: var(--muted);
  font-size: .75rem;
}

.match-photo .match-voice[aria-pressed="true"] {
  background: #e5f4eb;
  color: #24583e;
}
.match-reviews-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: .82rem;
  font-weight: 650;
  text-align: start;
}
.match-reviews-entry > span { display: inline-flex; align-items: center; gap: 7px; }
.match-reviews-entry > svg { color: var(--muted); }
.match-profile-topline.match-reviews-topline { justify-content: flex-start; padding-inline-start: 10px; }
.match-reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border-radius: 14px;
  background: var(--surface);
}
.match-reviews-summary h3 { font-size: 1rem; overflow-wrap: anywhere; }
.match-reviews-summary p,
.match-reviews-summary small,
.match-review time { color: var(--muted); font-size: .75rem; }
.match-reviews-summary strong { font-size: 1.4rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.match-review-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.match-review {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.match-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: .82rem; }
.match-review-stars { display: inline-flex; gap: 2px; color: var(--muted); }
.match-review-stars .is-filled { color: #9a5d1c; }
.match-review-stars .is-filled svg { fill: currentColor; }
.match-review > p { font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.match-reviews-status { padding: 10px 0; color: var(--muted); text-align: center; font-size: .82rem; }
.match-reviews-more { min-height: 42px; }

.match-hub :is(button, select), .companion-profile button { touch-action: manipulation; }
@media (prefers-reduced-motion: no-preference) {
  :is(.match-switch button, .match-chip, .match-filter-toggle, .match-heart, .match-voice, .match-reviews-entry, .match-project-card) {
    transition: background-color var(--tap-time, 120ms) ease, color var(--tap-time, 120ms) ease,
      border-color var(--tap-time, 120ms) ease, scale var(--tap-time, 120ms) ease;
  }
  :is(.match-switch button, .match-chip, .match-filter-toggle, .match-heart, .match-voice, .match-reviews-entry, .match-project-card):active:not(:disabled) {
    scale: .97;
  }
  :is(.match-heart, .match-photo .match-voice):active:not(:disabled) { scale: .92; }
}

.match-category-nav button span { min-width: 0; overflow-wrap: anywhere; }
.service-poster-pending { font-size: .9rem; opacity: .8; }
.match-project-pending {
  margin-top: auto;
  color: var(--muted);
  font-size: .78rem;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  min-width: 0;
  border: 0;
}
.project-specs legend { margin-bottom: 8px; font-weight: 700; }
.project-specs select { width: 100%; }
.project-spec-total { margin: 2px 0 8px; }
.project-spec-total strong { margin-inline-start: 4px; font-size: 1.25rem; }

.profile-gallery-grid { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:0; margin:0; }
.profile-gallery-grid button { display:grid; gap:4px; width:100%; min-height:44px; padding:0; text-align:left; border:0; background:none; color:var(--ink); }
.profile-gallery-grid img { display:block; width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; background:var(--surface); }
.profile-gallery-grid span { font-size:.74rem; overflow-wrap:anywhere; }
.profile-gallery-viewer { min-width:0; gap:10px; }
.profile-gallery-viewer .match-profile-topline h2 { min-width:0; overflow-wrap:anywhere; }
.profile-gallery-track {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:100%;
  min-width:0;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.profile-gallery-track::-webkit-scrollbar { display:none; }
.profile-gallery-full { margin:0; min-width:0; text-align:center; scroll-snap-align:start; scroll-snap-stop:always; }
.profile-gallery-full img { display:block; width:100%; height:clamp(170px,55dvh,500px); object-fit:contain; background:var(--surface); border-radius:12px; }
.profile-gallery-full figcaption { margin:8px 0 0; padding:0 6px; overflow-wrap:anywhere; }
.profile-gallery-controls { display:grid; grid-template-columns:44px auto 44px; justify-content:center; align-items:center; gap:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.profile-gallery-controls .icon-button { width:44px; height:44px; }
.profile-gallery-controls [aria-disabled="true"] { opacity:.4; cursor:default; }
.gallery-caption-heading { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.gallery-caption-heading small { color:var(--muted); font-variant-numeric:tabular-nums; }
.gallery-editor-items { list-style:none; display:grid; gap:8px; margin:0; padding:0; }
.gallery-editor-row { display:grid; grid-template-columns:clamp(52px,18vw,80px) minmax(0,1fr); align-items:center; gap:10px; }
.gallery-editor-thumb { width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; }
.gallery-editor-actions { display:flex; flex-wrap:wrap; gap:4px; }
.gallery-editor-actions .button { min-height:36px; padding-inline:8px; }
.gallery-editor-row:first-child [data-gallery-move="up"], .gallery-editor-row:last-child [data-gallery-move="down"] { visibility:hidden; }

.booking-slots > div:has([data-booking-range]) { display: block; }
.booking-range-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 6px;
  padding: 2px 0;
  user-select: none;
  -webkit-user-select: none;
}
.booking-range-grid .booking-range-slot {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  touch-action: none;
}
.booking-range-slot small { font-size: .62rem; }
.booking-range-slot[aria-disabled="true"] { color: var(--muted); background: var(--surface); touch-action: auto; }
.booking-range-slot.is-reserved { color: #764732; background: #f7eee9; border-color: #e5d8d0; }
.booking-range-grid:not([data-range-preview-active]) .booking-range-slot[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.booking-range-slot[data-range-preview] { color: #fff; background: #444; border-color: #444; }
.booking-range-slot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.booking-range-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.booking-range-actions [data-range-reset] { min-height: 44px; flex: none; }
.booking-range-tip { font-size: .78rem; }
