/* HookupBooking interface — black/white shopfront with a warm burnt-orange accent.
   Mobile first. Every selector here is used by a real view; there is no theme demo. */

:root {
  --ink: #161616;
  --ink-2: #3b3b3b;
  --muted: #70706c;
  --faint: #9a9a94;
  --line: #e6e4df;
  --line-strong: #d3d0c7;
  --paper: #f4f3ef;
  --card: #ffffff;
  --accent: #df5a12;
  --accent-dark: #b84507;
  --accent-soft: #fff0e6;
  --green: #1d7a4d;
  --green-soft: #eaf5ee;
  --gold: #b9820f;
  --gold-soft: #fbf3dd;
  --danger: #a12b2b;
  --danger-soft: #fbecec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 22, 22, .05);
  --shadow-lift: 0 10px 24px rgba(22, 22, 22, .09);
  --max: 1280px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

p { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

[hidden] { display: none !important; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 200;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 10px; }

/* ---------- top bar ---------- */

.topbar {
  background: #121212;
  color: #fff;
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 60px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .1em;
  white-space: nowrap;
}

.brand span { color: var(--accent); }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 10px;
}

.topbar-nav a {
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.topbar-nav a:hover { color: #fff; }

.topbar-nav a.is-active {
  color: #fff;
  border-color: var(--accent);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar .btn-ghost { color: #fff; }

.topbar .btn-ghost:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 620px) {
  /* The links are the only way between screens on a phone, so hiding the row
     left every member page a dead end with one back button. It becomes a second
     row that scrolls sideways instead — same links, no extra chrome. */
  .topbar-inner { flex-wrap: wrap; row-gap: 4px; }
  .topbar-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topbar-nav::-webkit-scrollbar { display: none; }
  .topbar-nav a { white-space: nowrap; padding-bottom: 8px; }
}

/* ---------- buttons, chips, notices ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary { background: var(--ink); color: #fff; }

.btn-primary:hover:not(:disabled) { background: #000; }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover:not(:disabled) { border-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) { background: rgba(22, 22, 22, .06); }

.btn-danger {
  background: var(--card);
  color: var(--danger);
  border-color: #efc9c9;
}

.btn-danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); }

.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }

.btn-block { width: 100%; }

.text-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
}

.icon-button:hover { border-color: var(--ink); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: #fbfaf7;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.chip-live { border-color: #bfe0cd; background: var(--green-soft); color: var(--green); }

.chip-verified { border-color: #bfe0cd; background: var(--green-soft); color: var(--green); }

.chip-warn { border-color: #f0cfb6; background: var(--accent-soft); color: var(--accent-dark); }

.notice {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.notice-soft {
  border: 1px solid #ecdfd2;
  background: #fffaf4;
  color: #6f4a2c;
}

.muted-note { color: var(--muted); font-size: 12.5px; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(92vw, 460px);
  padding: 11px 16px;
  border-radius: 999px;
  background: #161616;
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  box-shadow: var(--shadow-lift);
}

/* ---------- catalogue shell ---------- */

.catalog-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 16px 64px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 12.5px;
}

.crumbs a { color: var(--muted); text-decoration: none; }

.crumbs a:hover { color: var(--ink); }

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

.catalog-heading h1 { font-size: clamp(26px, 4.6vw, 38px); }

.catalog-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  max-width: 60ch;
}

.catalog-total {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.catalog-total strong { color: var(--ink); font-size: 17px; }

.catalog-shell .notice { margin-bottom: 18px; }

@media (max-width: 560px) {
  .catalog-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
}

.catalog-layout { display: block; }

.catalog-rail { margin-bottom: 16px; }

@media (min-width: 900px) {
  .catalog-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
  }

  .catalog-rail {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
    position: sticky;
    top: 14px;
  }

  .catalog-main { grid-column: 2; grid-row: 1; }

  .catalog-side { grid-column: 2; grid-row: 2; }

  /* Opened by app.js at this width, so the summary is a heading, not a toggle. */
  .filters-summary { cursor: default; pointer-events: none; }
}

@media (min-width: 1180px) {
  .catalog-layout { grid-template-columns: 232px minmax(0, 1fr) 280px; }
  .catalog-shell { max-width: 1460px; }

  .catalog-rail { grid-row: 1; }
  .catalog-main { grid-column: 2; grid-row: 1; }
  .catalog-side { grid-column: 3; grid-row: 1; }
}

.filters-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filters-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.filters-summary::-webkit-details-marker { display: none; }

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.filters-body { padding: 4px 16px 18px; }

.filter-group {
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0 0 16px;
  padding: 0 0 16px;
  min-width: 0;
}

.filter-group:last-of-type { border-bottom: 0; }

.filter-group legend {
  padding: 0;
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 8px;
}

.range-label {
  display: block;
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.range input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 13.5px;
}

.range-dash { padding-bottom: 10px; color: var(--faint); }

.filter-hint {
  margin-top: 8px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.45;
}

.filter-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.rail-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

/* toolbar */

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.search-field {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

.search-field svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 39px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 14px;
}

.search-field input::placeholder { color: var(--faint); }

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.result-count { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

.result-count strong { color: var(--ink); }

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.sort-control select {
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  font-size: 13px;
}

@media (max-width: 620px) {
  .catalog-toolbar { align-items: stretch; }
  .search-field { flex-basis: 100%; }
  .toolbar-actions { margin-left: 0; justify-content: space-between; width: 100%; }
}

/* ---------- product-style listing cards ---------- */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.listing-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.listing-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.listing-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.listing-media {
  position: relative;
  flex: none;
  aspect-ratio: 3 / 4;
  background: #f2f1ec;
  overflow: hidden;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.listing-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(to top, rgba(12, 12, 12, .82), rgba(12, 12, 12, 0));
  pointer-events: none;
}

.listing-card:hover .listing-media img { transform: scale(1.025); }

.listing-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #c4c2ba;
  font-size: clamp(34px, 8vw, 54px);
  font-weight: 800;
}

/* who the card is, written on the photo the way a shopfront reads it */
.listing-identity {
  position: absolute;
  inset: auto 9px 9px 9px;
  z-index: 1;
  color: #fff;
}

.listing-identity .listing-name {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.listing-identity .listing-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-tick { flex: none; color: #6cc0ff; }

.listing-area {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: rgba(255, 255, 255, .84);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .94);
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.listing-flag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.listing-flag-new {
  background: var(--gold);
  color: #fff;
}

/* Both edges are pinned by the base rule at desktop sizes, so the right-hand
   chip has to release the left one with the same specificity. */
.listing-flag.listing-flag-new { left: auto; right: 8px; }

.listing-flag-new::before { display: none; }

/* A listing that publishes no photo still needs a readable tile to write its
   name on, so the placeholder is dark rather than an empty grey box. */
.listing-media-empty { background: linear-gradient(155deg, #2c2c31, #4b4a53); }

/* On the narrowest screens the shop header has room for the brand and signing
   out only. The provider's own screens stay reachable from the member nav. */
@media (max-width: 479px) {
  .topbar-shop .topbar-actions a.btn { display: none; }
}

.listing-media-empty .listing-initial { color: rgba(255, 255, 255, .42); }

.listing-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 11px 11px;
}

.listing-kicker {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.listing-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.32;
}

/* The line under the photo says whether there is anything to browse behind the
   card, so a member does not open a profile to find an empty gallery. */
.listing-posts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f2f1ec;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.listing-posts-none {
  padding: 0;
  background: none;
  color: var(--faint);
  font-weight: 500;
}

.listing-handle {
  margin-top: 2px;
  color: var(--faint);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  margin-top: 6px;
  color: var(--gold);
  font-size: 11.5px;
}

.listing-rating span { color: var(--muted); }

.listing-rating strong { color: var(--ink-2); }

.rating-empty { color: var(--faint); }

.listing-bio {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.listing-note {
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 7px;
  background: #f2f1ec;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.listing-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.listing-price { min-width: 0; color: var(--ink); }

.listing-price strong { font-size: 16.5px; letter-spacing: -.02em; }

.listing-price span { color: var(--muted); font-size: 11px; }

.price-kind { display: block; }

.price-lead {
  display: block;
  color: var(--faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.price-none { color: var(--faint); font-size: 12px; }

.listing-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  flex: none;
}

@media (min-width: 640px) {
  .listing-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
  .listing-body { padding: 13px 14px 15px; }
  .listing-name { font-size: 15.5px; }
  .listing-price strong { font-size: 18px; }
  .listing-flag { top: 10px; left: 10px; font-size: 10.5px; padding: 4px 8px; }
  .listing-flag.listing-flag-new { right: 10px; }
}

/* ---------- directory side rail ---------- */

.catalog-side { display: grid; gap: 14px; margin-top: 22px; }

.rail-block {
  padding: 14px 15px 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rail-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rail-now {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e9f3ec;
  color: var(--green);
  font-size: 9.5px;
  letter-spacing: .04em;
  text-transform: none;
}

.rail-list { display: grid; gap: 1px; list-style: none; }

.rail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  margin: 0 -6px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}

.rail-row:hover { background: #f4f3ee; }

.rail-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.rail-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f1ec;
  color: #c4c2ba;
  font-size: 17px;
  font-weight: 800;
}

.rail-thumb-empty {
  background: linear-gradient(155deg, #2c2c31, #4b4a53);
  color: rgba(255, 255, 255, .42);
}

.rail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.rail-text { display: grid; gap: 2px; min-width: 0; }

.rail-name {
  font-size: 13.5px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-sub {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.rail-cta {
  display: inline-block;
  margin-top: 9px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 650;
}

.area-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 6px;
  margin: 0 -6px;
  border-radius: 9px;
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}

.area-row:hover { background: #f4f3ee; }

.area-row > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.area-count { flex: none; color: var(--faint); font-size: 11.5px; }

.rail-empty { color: var(--muted); font-size: 12px; line-height: 1.5; }

.rail-block .rail-note { margin-top: 12px; padding-top: 10px; }

/* ---------- empty state, pager, footnote ---------- */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 40px 20px;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty-state-wide { padding: 56px 24px; }

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #f3f1eb;
  color: var(--muted);
  margin-bottom: 4px;
}

.empty-state h2, .empty-state h3 { font-size: 18px; }

.empty-state p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 13.5px;
}

.empty-state .btn { margin-top: 8px; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
}

.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pager-link:hover { border-color: var(--ink); }

.pager-link.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pager-link.is-disabled { color: var(--faint); cursor: default; }

.pager-link.is-disabled:hover { border-color: var(--line-strong); }

.catalog-footnote {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.55;
}

/* ---------- provider profile ---------- */

.page-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 14px 56px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-media { align-self: start; }

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  background: #efede6;
  color: #b6b3a9;
  font-size: 38px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-lg { width: 96px; height: 96px; }

.hero-body { min-width: 0; }

.hero-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.display-name { font-size: 24px; }

.handle { color: var(--muted); font-size: 13px; margin-top: 2px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.badge-verified,
.badge-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
}

.badge-verified {
  background: var(--green-soft);
  border: 1px solid #bfe0cd;
  color: var(--green);
}

.badge-rating {
  background: var(--gold-soft);
  border: 1px solid #eeddb4;
  color: #7d5a09;
}

.hero-meta {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 13px;
}

.meta-line svg { color: var(--faint); flex: none; }

.meta-soft, .meta-line.meta-soft { color: var(--faint); }

.bio-wrap { margin-top: 12px; }

.bio {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.bio.is-expanded { display: block; -webkit-line-clamp: unset; }

.bio-wrap .text-button { margin-top: 5px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.stat {
  display: grid;
  gap: 1px;
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.stat strong { font-size: 18px; letter-spacing: -.02em; }

.stat span { color: var(--muted); font-size: 11.5px; }

/* The post count is the shortest way onto the gallery, so it is a link rather
   than a figure that only describes the page it already sits on. */
.stat-link { color: inherit; text-decoration: none; }

.stat-link:hover strong { color: var(--accent-dark); }

.stat-link:hover span { color: var(--accent-dark); }

.stat-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.hero-actions .btn-primary { flex: 1 1 150px; }

.menu { position: relative; }

.menu summary { list-style: none; }

.menu summary::-webkit-details-marker { display: none; }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 190px;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
}

.menu-panel button {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  font-size: 13px;
}

.menu-panel button:hover { background: #f5f3ee; }

.menu-panel .menu-danger { color: var(--danger); }

@media (min-width: 720px) {
  .page-shell { padding: 26px 24px 72px; }
  .profile-hero { grid-template-columns: 156px minmax(0, 1fr); gap: 26px; padding: 28px; }
  .avatar, .avatar-lg { width: 144px; height: 144px; font-size: 54px; }
  .display-name { font-size: 32px; }
  .hero-actions .btn-primary { flex: 0 0 auto; }
}

.notice + .owner-strip { margin-top: 12px; }

.notice-soft + .tabs { margin-top: 16px; }

.owner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid #f0d6c2;
  border-radius: 12px;
  background: #fff8f1;
  font-size: 13px;
}

.owner-strip strong { display: block; font-size: 13px; }

.owner-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }

.tabs {
  display: flex;
  gap: 2px;
  margin-top: 18px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 25;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
}

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

.tab {
  flex: none;
  padding: 12px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.tab span {
  margin-left: 4px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
}

.tab:hover { color: var(--ink); }

.tab[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--ink);
}

.panel { padding-top: 18px; }

.panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.panel-heading h2 { font-size: 19px; }

.panel-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.panel-count { color: var(--faint); font-size: 12px; white-space: nowrap; }

/* gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.media-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #eceae4;
  color: inherit;
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.media-tile:hover img { transform: scale(1.025); }

.video-tile {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1c;
  color: #fff;
}

.play-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(3px);
}

.video-label {
  position: absolute;
  left: 8px;
  bottom: 7px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-footer { display: flex; justify-content: center; margin-top: 16px; }

@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
}

/* services */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.service-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.kicker {
  color: var(--accent-dark);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-card h3 { font-size: 17px; }

.service-price { display: flex; align-items: baseline; gap: 5px; }

.service-price .price { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }

.price-unit { color: var(--muted); font-size: 12px; }

.price-muted { color: var(--faint); font-size: 14px; font-weight: 600; }

.facts {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}

.facts li { display: flex; gap: 7px; }

.facts li::before { content: "·"; color: var(--faint); }

.service-note { color: var(--faint); font-size: 11.5px; line-height: 1.5; }

.service-card .btn { margin-top: auto; }

@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* rates: the durations a listing sells time under */

.rate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.rate-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.rate-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.rate-card h3 { font-size: 19px; letter-spacing: -.01em; }

.rate-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; margin: 0; }

.rate-price strong { font-size: 27px; font-weight: 750; letter-spacing: -.025em; }

.rate-price span { color: var(--muted); font-size: 12px; }

.rate-blurb { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0; }

.rate-window {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 9px 11px;
  background: var(--paper);
  border-radius: 10px;
  font-size: 12.5px;
}

.rate-window span {
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rate-window strong { font-weight: 650; }

.rate-window-muted strong { color: var(--muted); font-weight: 550; }

.rate-terms {
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.55;
  margin: 0;
}

.rate-card .btn { margin-top: auto; }

@media (min-width: 700px) {
  .rate-grid { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 14px; }
}

/* booking sheet: duration choice and the period agreement */

.duration-picker {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.duration-picker legend {
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
}

.duration-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.duration-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.duration-card input { margin-top: 3px; accent-color: var(--accent); }

.duration-body { display: grid; gap: 2px; }

.duration-body strong { font-size: 14.5px; }

.duration-body em { font-style: normal; font-size: 13.5px; font-weight: 700; }

.duration-body small { color: var(--muted); font-size: 11.5px; line-height: 1.45; }

.confirm-box {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 12px;
  background: var(--gold-soft);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.confirm-range { margin: 0; font-size: 12.5px; line-height: 1.5; }

.confirm-terms { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; }

.confirm-terms input { margin-top: 2px; accent-color: var(--accent); }

.confirm-box .field-hint { margin: 0; }

/* provider durations console */

.hours-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.hours-day-block {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hours-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hours-day { display: grid; gap: 6px; }

.hours-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hours-row input[type="time"] {
  padding: 7px 9px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
}

.hours-dash { color: var(--faint); }

.day-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-flag {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 12.5px;
  cursor: pointer;
}

.day-flag input { accent-color: var(--accent); }

.option-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.option-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.option-price {
  margin-left: auto;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.015em;
}

.option-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.page-durations .panel-card form > .btn { margin-top: 4px; }

@media (min-width: 760px) {
  .hours-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* reviews */

.review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rating-big {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.rating-big strong { font-size: 34px; letter-spacing: -.03em; }

.stars { display: inline-flex; gap: 2px; color: var(--gold); }

.review-summary p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.review-policy { max-width: 42ch; }

.review-list { display: grid; gap: 10px; margin-top: 14px; }

.review-card {
  padding: 15px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-comment { margin-top: 9px; color: var(--ink-2); font-size: 14px; }

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: var(--faint);
  font-size: 11.5px;
}

/* about */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.about-block {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.about-block h3 { margin-bottom: 8px; font-size: 14px; }

.about-block p { color: var(--ink-2); font-size: 13.5px; }

.about-block p + p { margin-top: 6px; }

.trust-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 13px;
}

.trust-list strong { color: var(--ink); }

@media (min-width: 760px) {
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .about-wide { grid-column: span 2; }
}

/* mobile booking bar */

.mobile-book-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.mobile-price { display: grid; line-height: 1.25; min-width: 0; }

.mobile-price span,
.mobile-price small { color: var(--muted); font-size: 10.5px; }

.mobile-price strong { font-size: 15.5px; letter-spacing: -.02em; }

.mobile-book-bar .btn { flex: 1 1 auto; max-width: 220px; margin-left: auto; }

body.page-profile { padding-bottom: 78px; }

@media (min-width: 860px) {
  .mobile-book-bar { display: none; }
  body.page-profile { padding-bottom: 0; }
}

/* ---------- dialogs, sheets, viewer ---------- */

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-height: none;
}

dialog::backdrop { background: rgba(12, 12, 12, .48); }

.sheet {
  width: 100%;
  max-width: 560px;
  margin: auto auto 0;
  position: fixed;
  inset: auto 0 0 0;
}

.sheet-inner {
  max-height: 92vh;
  overflow-y: auto;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--card);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sheet-head h2 { margin-top: 3px; font-size: 21px; }

.sheet-notice {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: #71401f;
  font-size: 12.5px;
  line-height: 1.5;
}

.field { display: grid; gap: 6px; margin-bottom: 12px; }

.field > label,
.field-label {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.field textarea { min-height: 96px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 22, 22, .08);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.field-hint { color: var(--faint); font-size: 11.5px; }

.quote-box {
  margin: 4px 0 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf6;
  font-size: 13px;
}

.quote-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  color: var(--muted);
}

.quote-row strong { color: var(--ink); }

.quote-row.total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
}

.quote-row.total strong { font-size: 18px; }

.quote-requirements {
  margin: 8px 0 0;
  padding-left: 16px;
  color: var(--danger);
  font-size: 12px;
}

.sheet-actions { display: grid; gap: 8px; margin-top: 14px; }

.sheet-fineprint {
  margin-top: 10px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.5;
}

.result-panel {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid #bfe0cd;
  background: var(--green-soft);
  color: #155c3a;
  font-size: 13px;
}

.result-panel p + p { margin-top: 5px; }

@media (min-width: 720px) {
  .sheet { margin: auto; }
  .sheet-inner { border-radius: 18px; padding: 24px 24px 22px; max-height: 88vh; }
}

.viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  background: #0d0d0d;
  color: #fff;
}

.viewer[open] { display: flex; flex-direction: column; }

.viewer::backdrop { background: #0d0d0d; }

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

.viewer-count { font-size: 12px; color: rgba(255, 255, 255, .68); }

.viewer .icon-button {
  background: transparent;
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}

.viewer .icon-button:hover { border-color: #fff; }

.viewer-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

.viewer-stage img,
.viewer-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
}

.viewer-nav:hover { border-color: #fff; }

.viewer-nav[disabled] { opacity: .24; cursor: default; }

.viewer-nav.prev { left: 10px; }

.viewer-nav.next { right: 10px; }

.viewer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.viewer-caption { font-size: 14px; line-height: 1.45; }

.viewer-date { display: block; margin-top: 3px; color: rgba(255, 255, 255, .55); font-size: 11.5px; }

.viewer-links { display: flex; align-items: center; gap: 10px; }

.viewer-links a {
  color: #fff;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.viewer .btn-primary { background: #fff; color: #111; }

/* ---------- sign-in, gate and management pages ---------- */

.page-auth .topbar-inner { justify-content: center; }

.auth-shell {
  max-width: 460px;
  margin: 0 auto;
  padding: 36px 16px 64px;
}

.auth-card {
  padding: 26px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.auth-card h1 { margin-top: 5px; font-size: 28px; }

.auth-lead { margin-top: 8px; color: var(--muted); font-size: 13.5px; }

.auth-form { margin-top: 20px; }

.auth-form[hidden] { display: none !important; }

.auth-step { margin-bottom: 14px; color: var(--ink-2); font-size: 13px; }

.auth-step-title { margin: 0 0 6px; font-size: 16px; }

input[data-enroll-secret] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em;
  background: var(--paper);
}

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
  padding: 12px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: .04em;
}

.form-error {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.45;
}

.auth-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.55;
}

/* the guest gate on a profile link */

.gate-shell {
  max-width: 460px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

.gate-card {
  padding: 28px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #f3f1eb;
  color: var(--muted);
}

.gate-card h1 { font-size: 23px; }

.gate-card p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }

.gate-card .btn { margin-top: 18px; }

/* media manager and moderation queue */

.manage-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 64px;
}

.manage-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.manage-heading h1 { font-size: clamp(24px, 4vw, 32px); }

.manage-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; }

/* The heading link is an action, not part of the sentence above it, so it keeps
   the ink colour the rest of the page uses for a real link. */
.heading-link a { color: var(--accent-dark); font-weight: 650; }

.stack { display: grid; gap: 14px; }

.panel-card {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.panel-card h2 { font-size: 17px; }

.panel-card > * + * { margin-top: 10px; }

.upload-form { display: grid; gap: 10px; }

.upload-form input[type="file"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #fbfaf6;
  font-size: 13px;
}

.upload-form .row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.media-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.media-admin-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.media-admin-card > .media-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f2f1ec;
}

.media-admin-card .media-frame > a {
  display: block;
  width: 100%;
  height: 100%;
}

.media-admin-card .media-frame img,
.media-admin-card .media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-admin-card .media-frame .video-tile { position: absolute; inset: 0; }

.media-admin-body { padding: 10px 11px 12px; display: grid; gap: 6px; }

.media-admin-body .caption { color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }

.media-admin-body .meta { color: var(--faint); font-size: 11px; }

.media-admin-actions { display: flex; flex-wrap: wrap; gap: 5px; }

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fbfaf6;
}

.status-tag.approved { border-color: #bfe0cd; background: var(--green-soft); color: var(--green); }

.status-tag.rejected { border-color: #efc9c9; background: var(--danger-soft); color: var(--danger); }

.status-tag.pending { border-color: #f0d6b8; background: var(--accent-soft); color: var(--accent-dark); }

.queue-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.queue-tab {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.queue-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.decision-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.decision-form select,
.decision-form input {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.decision-form input { flex: 1 1 130px; min-width: 0; }

.media-admin-card .decision-form input { flex-basis: 100%; }

@media (min-width: 640px) {
  .media-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 1024px) {
  .media-admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* viewer canvas */

.viewer-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 56px;
  min-height: 0;
}

.viewer-canvas img,
.viewer-canvas video {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: 4px;
}

@media (max-width: 620px) {
  .viewer-canvas { padding: 0 4px; }
  .viewer-nav { top: auto; bottom: 12px; transform: none; }
  .viewer-nav.prev { left: 12px; }
  .viewer-nav.next { right: 12px; }
  .viewer-canvas img,
  .viewer-canvas video { max-height: calc(100vh - 230px); }
}

/* booking pages */

.booking-stack { display: grid; gap: 10px; }

.booking-row {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.booking-who { display: grid; gap: 5px; min-width: 0; }

.booking-who b { font-size: 15px; }

.booking-meta { color: var(--muted); font-size: 12px; }

.booking-when { color: var(--ink-2); font-size: 13px; }

.booking-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.booking-facts { display: grid; gap: 8px; }

.booking-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.booking-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }

.booking-facts dt { color: var(--muted); font-size: 12.5px; }

.booking-facts dd { color: var(--ink); font-size: 13px; font-weight: 600; text-align: right; min-width: 0; }

.booking-note {
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .booking-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; }
}

/* live access and the platform-fee wallet */

.wallet-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 22px;
}

.wallet-figure b { font-size: 30px; letter-spacing: -.02em; }

.wallet-figure span { color: var(--muted); font-size: 12.5px; }

.notice-warn {
  border-color: #efc9c9;
  background: var(--danger-soft);
  color: var(--danger);
}

.access-actions { display: grid; gap: 14px; }

.channel-list,
.plan-list,
.receipt-list { display: grid; gap: 8px; list-style: none; }

.channel-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.plan-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfaf6;
}

.plan-list li > div { flex: 1 1 220px; min-width: 0; display: grid; gap: 3px; }

.plan-list p { color: var(--ink-2); font-size: 13px; }

.plan-list small { color: var(--muted); font-size: 12px; }

.receipt-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.receipt-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.receipt-list b { min-width: 110px; }

.receipt-list span { color: var(--muted); font-size: 12px; }

.wallet-rows { display: grid; gap: 10px; }

.wallet-rows li {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.wallet-rows span { color: var(--muted); font-size: 12px; }

.wallet-rows b { font-size: 15px; }

@media (min-width: 760px) {
  .wallet-rows li { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .8fr) auto; align-items: center; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .listing-card:hover { transform: none; }

  .listing-card:hover .listing-media img,
  .media-tile:hover img { transform: none; }
}

/* ---------- pre-launch page ---------- */

/* One column, one form, no hero art. The page has to be readable on a phone
   over a slow connection, and everything it claims is text that is already
   true. */
.launch {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.launch h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.launch h2 { margin: 0 0 8px; font-size: 15px; }

.launch-lead {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.launch-form { display: grid; gap: 4px; }

.launch-points { display: grid; gap: 12px; }

.launch-points h3 { margin: 0 0 6px; font-size: 14px; }

.launch-points p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}

/* Each duration is a heading and a sentence, so this is not the label/value
   row of .booking-facts: a right-aligned bold value reads as a price. */
.launch-terms { display: grid; gap: 12px; margin: 0; }

.launch-terms > div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.launch-terms > div:last-child { border-bottom: 0; padding-bottom: 0; }

.launch-terms dt {
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.launch-terms dd {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.launch-foot {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.launch-foot a { color: var(--accent-dark); font-weight: 600; }

/* Present in the form for a bot that reads the markup, and out of the way for a
   person tabbing through it. */
.launch-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 760px) {
  .launch-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* Booking chat.
   One conversation, two people, and no third column: the log is a single
   readable stack, and whose message it is comes from the side it sits on plus a
   label a screen reader also gets. */
.chat-list { display: grid; gap: 10px; }

.chat-list-row {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.chat-list-row:hover { border-color: var(--line-strong); }

.chat-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-list-body { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }

.chat-list-body em { color: var(--faint); font-style: normal; }

.chat-list-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 11.5px;
}

.chat-unread {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.chat-clock { color: var(--faint); font-size: 11.5px; }

.chat-log {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.chat-day {
  margin-top: 6px;
  color: var(--faint);
  font-size: 11.5px;
  text-align: center;
}

.chat-row { display: flex; }

.chat-row.is-mine { justify-content: flex-end; }

.chat-bubble {
  max-width: 84%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.chat-row.is-mine .chat-bubble {
  border-color: #cfe3d7;
  background: var(--green-soft);
}

.chat-bubble p { font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; }

.chat-meta {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
}

.chat-compose { margin-top: 18px; }
