* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #000000;
  --bg2: #050608;
  --surface: rgba(255,255,255,.072);
  --surface-strong: rgba(255,255,255,.11);
  --panel: #0b0d12;
  --panel2: #11141b;
  --text: #FFFFFF;
  --muted: #aeb5c4;
  --soft: #e3e7ef;
  --line: rgba(255,255,255,.13);
  --accent: #1E73BE;
  --accent-ink: #FFFFFF;
  --blue: #1E73BE;
  --danger: #ff6b7a;
  --shadow: 0 32px 120px rgba(0,0,0,.48), 0 8px 24px rgba(0,0,0,.12);
  --radius: 28px;
  --button-radius: 999px;  /* pill */
  --pill: 999px;
  --page-pad: clamp(1rem, 1.8vw, 1.5rem);
  --panel-pad: clamp(.95rem, 1.45vw, 1.25rem);
  --stack-xs: .35rem;
  --stack-sm: .55rem;
  --stack-md: .85rem;
  --stack-lg: 1.15rem;
  --stack-xl: 1.6rem;
  --text-xs: .72rem;
  --text-sm: .82rem;
  --text-base: .94rem;
  --text-md: 1rem;
  --text-lg: 1.12rem;
  --h1-app: clamp(1.65rem, 2.25vw, 2.45rem);
  --h1-detail: clamp(1.7rem, 2.15vw, 2.55rem);
  --h2-app: clamp(1.2rem, 1.55vw, 1.55rem);
  --h3-card: clamp(1.05rem, 1.15vw, 1.25rem);
}


@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f7fb;
    --bg2: #ffffff;
    --surface: rgba(12,18,31,.055);
    --surface-strong: rgba(12,18,31,.1);
    --panel: #ffffff;
    --panel2: #f0f4fa;
    --text: #0b1020;
    --muted: #5e687a;
    --soft: #1f2937;
    --line: rgba(15,23,42,.14);
    --accent: #1E73BE;
    --accent-ink: #ffffff;
    --blue: #1E73BE;
    --danger: #c9364d;
    --shadow: 0 26px 80px rgba(23,36,58,.14);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg2: #ffffff;
  --surface: rgba(12,18,31,.055);
  --surface-strong: rgba(12,18,31,.1);
  --panel: #ffffff;
  --panel2: #f0f4fa;
  --text: #0b1020;
  --muted: #5e687a;
  --soft: #1f2937;
  --line: rgba(15,23,42,.14);
  --accent: #1E73BE;
  --accent-ink: #ffffff;
  --blue: #1E73BE;
  --danger: #c9364d;
  --shadow: 0 26px 80px rgba(23,36,58,.14);
}

:root[data-theme="dark"] { color-scheme: dark; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(30,115,190,.16), transparent 31rem),
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.08), transparent 34rem),
    linear-gradient(180deg, #000000 0%, #050608 48%, #000000 100%);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; }
.ambient { position: fixed; pointer-events: none; filter: blur(44px); opacity: .5; z-index: -1; border-radius: 50%; }
.ambient-one { width: 340px; height: 340px; left: -120px; top: 170px; background: rgba(30,115,190,.13); }
.ambient-two { width: 420px; height: 420px; right: -180px; top: 420px; background: rgba(255,255,255,.07); }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem 5vw;
  background: rgba(0,0,0,.72);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: var(--accent-ink); background: var(--accent); box-shadow: 0 12px 34px rgba(30,115,190,.24); font-size: .78rem; letter-spacing: -.06em; }
.desktop-nav { display: flex; gap: 1.25rem; color: var(--muted); font-size: .94rem; }
.desktop-nav a, .footer-links a { text-decoration: none; transition: color .16s ease; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--text); }
.nav-cta { text-decoration: none; color: var(--accent-ink); background: var(--accent); border-radius: 8px; padding: .72rem 1rem; font-weight: 900; font-size: .9rem; }
main { padding: 0 5vw 5rem; }
.hero-shell { min-height: 86vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: 4rem 0 2rem; }
.hero-copy { max-width: 970px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 900; margin: 0 0 .8rem; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { font-size: clamp(3.4rem, 10.4vw, 10rem); font-weight: 900; line-height: .88; letter-spacing: -.055em; word-spacing: .04em; margin: .2rem 0 1.25rem; max-width: 1050px; }
h2 { font-size: clamp(2rem, 4.1vw, 3.25rem); font-weight: 800; line-height: .96; letter-spacing: -.045em; word-spacing: .035em; margin: .2rem 0 1rem; }
h3 { margin: .2rem 0; font-size: 1.35rem; line-height: 1.12; letter-spacing: -.02em; }
.lede { color: #d7dbe8; font-size: clamp(1.06rem, 2vw, 1.42rem); line-height: 1.55; max-width: 790px; }
.command-search { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: .55rem; padding: .55rem; margin: 2.2rem 0 1rem; background: rgba(255,255,255,.09); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.command-search label { display: grid; gap: .15rem; padding: .55rem .85rem; border-right: 1px solid rgba(255,255,255,.09); }
.command-search label:nth-of-type(3) { border-right: 0; }
.command-search span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
input, textarea { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.075); color: var(--text); padding: .95rem 1.1rem; border-radius: 18px; font: inherit; outline: none; }
.command-search input { border: 0; background: transparent; border-radius: 0; padding: 0; font-weight: 700; }
input:focus, textarea:focus { border-color: rgba(30,115,190,.8); box-shadow: 0 0 0 5px rgba(30,115,190,.18); }
textarea { min-height: 130px; resize: vertical; }
button, .button { border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); padding: .95rem 1.4rem; font-weight: 950; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: transform .2s cubic-bezier(.34,1.56,.64,1), opacity .2s ease, background .2s ease, box-shadow .2s ease; }
button:hover, .button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,115,190,.35); }
button:disabled { opacity: .65; cursor: not-allowed; }
.secondary { background: rgba(255,255,255,.09); color: var(--text); border: 1px solid var(--line); }
.ghost { background: transparent; color: var(--soft); border: 1px solid rgba(255,255,255,.11); }
.hero-pills, .mood-cloud, .tag-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-pills a, .mood-cloud a, .tag-row span { text-decoration: none; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.065); border-radius: 8px; padding: .55rem .78rem; color: #dce2ee; font-size: .84rem; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-device { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.055)); border: 1px solid var(--line); border-radius: 24px; padding: 1rem; min-height: 560px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.device-top { display: flex; gap: .4rem; padding: .5rem; }
.device-top span { width: .62rem; height: .62rem; border-radius: 50%; background: rgba(255,255,255,.24); }
.device-map { position: relative; min-height: 410px; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(30,115,190,.24), transparent 9rem), radial-gradient(circle at 70% 58%, rgba(30,115,190,.30), transparent 12rem), linear-gradient(135deg, #11131d, #000000); border: 1px solid rgba(255,255,255,.09); }
.device-map:before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(circle, black, transparent 76%); }
.map-pin { position: absolute; z-index: 2; border-radius: 8px; background: var(--accent); color: var(--accent-ink); padding: .55rem .7rem; font-weight: 950; box-shadow: 0 12px 36px rgba(0,0,0,.36); }
.pin-one { left: 58%; top: 24%; } .pin-two { left: 22%; top: 54%; } .pin-three { left: 45%; top: 72%; }
.map-card { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 3; display: grid; gap: .25rem; padding: 1rem; border-radius: 22px; background: rgba(0,0,0,.72); border: 1px solid var(--line); backdrop-filter: blur(18px); }
.map-card span, .mini-player small { color: var(--muted); }
.mini-player { margin-top: 1rem; display: flex; gap: .85rem; align-items: center; padding: .9rem; border-radius: 24px; background: rgba(255,255,255,.075); border: 1px solid var(--line); }
.play-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: .78rem; }
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 1rem 0 5rem; }
.metric-strip div { padding: 1.2rem; border-radius: 22px; background: rgba(255,255,255,.065); border: 1px solid var(--line); }
.metric-strip strong { display: block; font-size: clamp(1.55rem, 3vw, 2.5rem); letter-spacing: -.06em; }
.metric-strip span { color: var(--muted); font-weight: 800; }
.hero-shell-premium { grid-template-columns: minmax(0, 1.06fr) minmax(380px, .8fr); align-items: start; }
.hero-copy-premium { display: grid; gap: 1.15rem; }
.command-search-premium { margin-bottom: 0; }
.hero-subgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .75fr); gap: 1rem; margin-top: .8rem; }
.hero-story-card, .hero-stat-card, .results-map-card, .spotlight-card, .sticky-results-panel, .booking-card-premium, .owner-claim-disclosure, .profile-decision-strip div { border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.05); box-shadow: 0 18px 60px rgba(0,0,0,.16); }
.hero-story-card, .hero-stat-card { padding: 1.2rem 1.25rem; border-radius: 24px; }
.hero-story-card h3 { font-size: 1.7rem; max-width: 18ch; }
.hero-story-card p:last-child, .hero-stat-card small { color: var(--muted); line-height: 1.55; margin: 0; }
.hero-stat-card { display: grid; align-content: start; gap: .4rem; }
.hero-stat-card span { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 900; }
.hero-stat-card strong { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.05em; }
.hero-device-premium { transform: none; display: grid; gap: 1rem; padding: 1.1rem; }
.device-map-premium { min-height: 380px; }
.hero-device-rail { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.metric-strip-premium div { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045)); }
.card-meta-row { display: flex; justify-content: space-between; gap: .8rem; align-items: center; flex-wrap: wrap; }
.card-meta-row b { font-size: 1rem; color: var(--text); }
.card-meta-row span { color: var(--muted); font-size: .9rem; }
.tag-row { align-items: flex-start; }
.spotlight-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: .9rem; padding: .9rem; border-radius: 24px; text-decoration: none; overflow: hidden; }
.spotlight-card.compact { grid-template-columns: 96px minmax(0, 1fr); }
.spotlight-media { min-height: 112px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.05); }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spotlight-card-body { display: grid; gap: .35rem; align-content: center; min-width: 0; }
.spotlight-card-body strong { font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }
.spotlight-card-body small { color: var(--muted); }
.spotlight-topline { display: flex; justify-content: space-between; gap: .6rem; color: var(--muted); font-size: .78rem; }
.spotlight-topline b { color: var(--accent); font-size: .82rem; }
.results-toolbar-shell { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(320px, .72fr); gap: 1rem; align-items: stretch; padding-top: 3rem; }
.results-toolbar-copy { display: grid; gap: 1rem; }
.results-chip-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.results-chip-row span, .results-side-stats span { padding: .55rem .72rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: var(--soft); font-size: .84rem; font-weight: 800; }
.results-map-shell { display: grid; }
.results-map-card { border-radius: 22px; padding: 1rem; display: grid; gap: .9rem; }
.results-map-header { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.results-map-surface { min-height: 300px; border-radius: 24px; position: relative; overflow: hidden; background: radial-gradient(circle at 16% 18%, rgba(30,115,190,.16), transparent 10rem), radial-gradient(circle at 80% 40%, rgba(30,115,190,.22), transparent 14rem), linear-gradient(180deg, #131722, #050608); border: 1px solid rgba(255,255,255,.08); }
.results-map-surface:before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 32px 32px; opacity: .15; pointer-events: none; }
.results-map-pin { position: absolute; z-index: 2; }
.results-map-pin span { display: inline-flex; padding: .5rem .7rem; border-radius: 8px; background: rgba(0,0,0,.88); border: 1px solid rgba(255,255,255,.14); font-weight: 900; font-size: .76rem; }
.results-map-pin:before { content: ''; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: translate(-50%, .3rem); box-shadow: 0 0 0 8px rgba(30,115,190,.14); }
.results-map-surface .pin-1 { left: 16%; top: 26%; }
.results-map-surface .pin-2 { left: 62%; top: 18%; }
.results-map-surface .pin-3 { left: 48%; top: 48%; }
.results-map-surface .pin-4 { left: 28%; top: 62%; }
.results-map-surface .pin-5 { left: 70%; top: 58%; }
.results-map-surface .pin-6 { left: 56%; top: 74%; }
.search-results-premium { grid-template-columns: 290px minmax(0, 1fr); gap: 1rem; align-items: start; }
.sticky-results-panel { padding: 1.1rem; border-radius: 24px; top: 92px; }
.results-side-stats { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.results-cards { gap: 1.15rem; }
.rail-section, .mood-panel, .owner-section, .directory-section { margin-top: 5rem; }
.section-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(260px, .45fr); gap: 2rem; align-items: end; margin-bottom: 1.4rem; }
.section-heading p:last-child { color: var(--muted); line-height: 1.55; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.collection-card { position: relative; overflow: hidden; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; padding: 1.2rem; border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045)); border: 1px solid var(--line); transition: transform .16s ease, background .16s ease; }
.collection-card-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.collection-card-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.72) 60%, rgba(0,0,0,.88) 100%); }
.collection-card.has-bg { background: none; }
.collection-card h3, .collection-card p, .collection-card .collection-stat { position: relative; z-index: 2; }
.collection-card.has-bg h3 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.collection-card.has-bg p { color: rgba(255,255,255,.72); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.collection-card:hover, .studio-card:hover { transform: translateY(-6px); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.collection-stat { align-self: flex-start; margin-bottom: auto; color: var(--accent-ink); background: var(--accent); border-radius: 8px; padding: .4rem .6rem; font-size: .78rem; font-weight: 950; }
.collection-card p { color: var(--muted); margin-bottom: 0; }
.mood-panel, .owner-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, .7fr); gap: 2rem; align-items: center; padding: clamp(1.4rem, 4vw, 3rem); border-radius: 24px; background: linear-gradient(135deg, rgba(30,115,190,.14), rgba(30,115,190,.08) 48%, rgba(255,255,255,.07)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mood-cloud a { padding: .8rem 1rem; background: rgba(0,0,0,.45); }
.section-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 2rem; align-items: start; }
.sticky-intro { position: sticky; top: 92px; }
.sticky-intro p { color: var(--muted); line-height: 1.55; }
.cards { display: grid; gap: 1rem; }
.studio-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1rem; padding: 1rem; border-radius: 28px; background: rgba(255,255,255,.064); border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(0,0,0,.18); transition: transform .16s ease; min-width: 0; overflow: hidden; }
.featured-card { grid-template-columns: 1fr; }
.studio-art { min-height: 180px; position: relative; overflow: hidden; border-radius: 22px; display: grid; place-items: center; text-decoration: none; background: radial-gradient(circle at 25% 20%, rgba(30,115,190,.28), transparent 7rem), radial-gradient(circle at 75% 78%, rgba(255,255,255,.10), transparent 9rem), linear-gradient(145deg, #1c2030, #050608); isolation: isolate; }
.studio-art img, .profile-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform: scale(1.02); transition: transform .35s ease, filter .35s ease; }
.studio-card:hover .studio-art img { transform: scale(1.07); filter: saturate(1.08) contrast(1.04); }
.studio-art-overlay, .profile-art-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.72)); }
.studio-art > span { position: relative; z-index: 2; font-size: 3rem; font-weight: 950; letter-spacing: -.12em; color: rgba(255,255,255,.92); text-shadow: 0 14px 36px rgba(0,0,0,.6); }
.studio-art-meta { position: absolute; left: .7rem; right: .7rem; bottom: .7rem; z-index: 3; display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .58rem .68rem; border-radius: 16px; background: rgba(0,0,0,.66); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(18px); min-width: 0; }
.studio-art-meta b, .studio-art-meta small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-art-meta small { color: var(--muted); flex: 0 1 auto; }
.studio-card-body { display: grid; align-content: center; gap: .65rem; min-width: 0; }
.card-topline { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .82rem; font-weight: 850; min-width: 0; }
.card-topline span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-card h3 a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.studio-card p { color: var(--muted); margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .35rem; }
.empty-state { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.owner-steps { display: grid; gap: .7rem; }
.owner-steps span { padding: 1rem; border-radius: 18px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.11); font-weight: 900; }
.detail { padding-top: 2rem; }
.back-link { display: inline-flex; margin-bottom: 1rem; color: var(--muted); text-decoration: none; }
.profile-hero { display: grid; grid-template-columns: minmax(280px, .6fr) minmax(0, 1fr) 280px; gap: 1rem; align-items: stretch; }
.profile-art, .profile-copy, .booking-card-mini, .profile-panel, .panel { border: 1px solid var(--line); background: rgba(255,255,255,.068); border-radius: 22px; box-shadow: 0 22px 80px rgba(0,0,0,.22); }
.profile-art { min-height: 470px; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(30,115,190,.28), transparent 14rem), radial-gradient(circle at 80% 75%, rgba(30,115,190,.26), transparent 16rem), linear-gradient(145deg, #171b28, #000000); }
.profile-art > span { position: relative; z-index: 2; font-size: clamp(4rem, 10vw, 8rem); font-weight: 950; letter-spacing: -.14em; text-shadow: 0 18px 50px rgba(0,0,0,.65); }
.wave-line { position: absolute; z-index: 2; left: 8%; right: 8%; bottom: 13%; height: 70px; background: repeating-linear-gradient(90deg, rgba(30,115,190,.75) 0 5px, transparent 5px 14px); mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent); opacity: .55; }
.profile-copy { padding: clamp(1.4rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.profile-copy h1 { font-size: clamp(2.1rem, 4.2vw, 4.8rem); line-height: .94; overflow-wrap: anywhere; max-width: 14ch; }
.trust-row, .profile-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.trust-row span { padding: .7rem .85rem; border-radius: 8px; background: rgba(255,255,255,.075); border: 1px solid var(--line); font-weight: 850; color: var(--soft); }
.profile-hero-premium { grid-template-columns: minmax(0, 1.05fr) minmax(440px, .9fr) 330px; gap: 1rem; align-items: stretch; }
.profile-hero-editorial { min-height: auto; padding: 1rem; border-radius: 24px; background: radial-gradient(circle at 30% 8%, rgba(30,115,190,.12), transparent 20rem), radial-gradient(circle at 92% 34%, rgba(30,115,190,.14), transparent 24rem), rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1); }
.profile-copy-editorial { min-height: 520px; justify-content: center; background: transparent; border: 0; box-shadow: none; padding: clamp(1.2rem, 3vw, 2.2rem); }
.profile-copy-editorial h1 { max-width: 760px; font-size: clamp(2.35rem, 4.9vw, 5.6rem); line-height: .9; letter-spacing: -.06em; word-break: normal; overflow-wrap: normal; }
.profile-copy-editorial .lede { max-width: 660px; }
.profile-decision-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-top: .35rem; }
.profile-decision-strip div { border-radius: 18px; padding: .8rem .85rem; min-width: 0; background: rgba(255,255,255,.06); }
.profile-decision-strip span { display: block; color: var(--muted); text-transform: uppercase; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.profile-decision-strip strong { display: block; margin-top: .35rem; font-size: 1rem; letter-spacing: -.02em; }
.profile-hero-gallery-card { min-height: 620px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.045); box-shadow: var(--shadow); }
.profile-hero-gallery-card .gallery-shell { height: 100%; grid-template-columns: 1fr; gap: 0; }
.profile-hero-gallery-card .gallery-hero-shot img { min-height: 390px; border-radius: 0; border: 0; }
.profile-hero-gallery-card .gallery-hero-shot { border-radius: 0; }
.profile-hero-gallery-card .gallery-thumb-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.profile-hero-gallery-card .gallery-thumb-grid figure { min-height: 230px; border-radius: 0; }
.profile-hero-gallery-card .gallery-thumb-grid img { border-radius: 0; border: 0; }
.profile-hero-gallery-card figcaption { background: rgba(0,0,0,.72); }
.booking-card-floating { min-height: 620px; border-radius: 24px; padding: 1.45rem; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055)); }
.profile-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.profile-kpis div { padding: .9rem; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.055)); border: 1px solid rgba(255,255,255,.12); min-width: 0; }
.profile-kpis b { display: block; font-size: 1.35rem; letter-spacing: -.04em; color: var(--accent); }
.profile-kpis span { display: block; color: var(--muted); font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.booking-card-mini { padding: 1.2rem; align-self: end; }
.booking-card-premium { display: grid; gap: 1rem; align-content: start; padding: 1.35rem; align-self: start; }
.booking-mini-top { display: flex; align-items: center; gap: .55rem; }
.booking-card-premium > strong { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -.05em; }
.booking-mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; color: var(--muted); }
.booking-mini-list li { padding-left: 1rem; position: relative; }
.booking-mini-list li:before { content: ''; position: absolute; left: 0; top: .55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.booking-mini-grid { display: grid; gap: .6rem; }
.booking-mini-grid span { padding: .7rem .85rem; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.32); color: var(--soft); font-weight: 850; }
.availability-dot { width: 12px; height: 12px; display: inline-block; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(30,115,190,.14); }
.booking-card-mini p { color: var(--muted); line-height: 1.5; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 1rem; margin-top: 1.15rem; align-items: start; }
.profile-main { display: grid; gap: 1.15rem; }
.profile-panel { padding: clamp(1.45rem, 3vw, 2.25rem); }
.profile-grid-premium { gap: 1.15rem; }
.profile-section-topline { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .7rem; }
.subtle-link, .subtle-stat { color: var(--muted); font-size: .88rem; text-decoration: none; }
.subtle-link:hover { color: var(--text); }
.trust-proof-panel { margin-top: .2rem; padding: 1rem 1.1rem; border-radius: 22px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.045); }
.trust-proof-panel h2 { font-size: clamp(1.25rem, 2.2vw, 1.85rem); line-height: 1.05; margin-bottom: .75rem; }
.detail-list { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: .8rem 1rem; }
.detail-list span { color: var(--muted); }
.detail-list b { overflow-wrap: anywhere; }
.feature-matrix .matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.matrix div { padding: 1rem; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.matrix span { display: block; margin-top: .35rem; color: var(--muted); }
.signal-panel { background: linear-gradient(160deg, rgba(30,115,190,.10), rgba(30,115,190,.08) 52%, rgba(255,255,255,.055)); }
.signal-note { max-width: 860px; color: var(--muted); line-height: 1.65; margin-top: -.35rem; }
.source-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: .85rem 0 1rem; }
.source-badges span { border-radius: 8px; border: 1px solid rgba(255,255,255,.13); background: rgba(0,0,0,.36); color: var(--soft); padding: .48rem .68rem; font-weight: 900; font-size: .78rem; }
.signal-grid .signal-card { display: grid; align-content: start; gap: .45rem; min-width: 0; }
.signal-card > b { font-size: 1.1rem; letter-spacing: -.02em; }
.signal-card > small { color: var(--muted); line-height: 1.45; }
.signal-source { color: var(--accent) !important; margin: 0 !important; font-size: .68rem; font-weight: 950; text-transform: uppercase; letter-spacing: .14em; }
.profile-sidebar { position: sticky; top: 92px; display: grid; gap: 1rem; }
.panel { display: grid; gap: .95rem; padding: 1.35rem; align-content: start; }
.panel h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
.claim-form { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.055)); }
.form-intro { color: var(--muted); line-height: 1.55; margin: -.2rem 0 .3rem; }
.form-status { min-height: 1.4rem; color: var(--accent); font-weight: 850; margin: 0; }
.owner-claim-disclosure { border-radius: 24px; padding: .2rem; overflow: hidden; }
.owner-claim-disclosure summary { list-style: none; cursor: pointer; padding: 1rem 1.15rem; font-weight: 900; color: var(--soft); }
.owner-claim-disclosure summary::-webkit-details-marker { display: none; }
.owner-claim-disclosure[open] summary { border-bottom: 1px solid rgba(255,255,255,.08); }
.compact-cards .studio-card { grid-template-columns: 150px minmax(0, 1fr); }
.compact-cards .studio-art { min-height: 130px; }
.compact-cards .studio-art > span { font-size: 2rem; }
.blueprint-hero { padding: clamp(1.5rem, 2.5vw, 2.5rem) 0 clamp(1rem, 1.5vw, 1.5rem); }
.blueprint-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.blueprint-grid article { min-height: 280px; padding: 1.2rem; border-radius: var(--radius); background: rgba(255,255,255,.065); border: 1px solid var(--line); display: flex; flex-direction: column; }
.blueprint-grid span { color: var(--accent); font-weight: 950; }
.blueprint-grid p { color: var(--muted); line-height: 1.55; margin-top: 2rem; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 5vw; color: var(--muted); border-top: 1px solid var(--line); background: rgba(0,0,0,.22); }
.gallery-caption-row, .trust-proof-grid, .review-highlight-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.gallery-caption-row span, .trust-proof-grid span, .review-highlight-chips span { padding: .55rem .72rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: var(--soft); font-size: .82rem; font-weight: 800; }
.gallery-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .9fr); gap: .8rem; margin-top: 1rem; }
.gallery-hero-shot, .gallery-thumb-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 22px; }
.gallery-hero-shot img, .gallery-thumb-grid img { width: 100%; height: 100%; object-fit: cover; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.055); display: block; }
.gallery-hero-shot img { min-height: 360px; }
.gallery-hero-shot figcaption, .gallery-thumb-grid figcaption { position: absolute; left: .8rem; bottom: .8rem; padding: .45rem .6rem; border-radius: 8px; background: rgba(0,0,0,.82); border: 1px solid rgba(255,255,255,.12); font-size: .78rem; font-weight: 900; }
.gallery-thumb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-content: start; }
.gallery-thumb-grid figure { min-height: 175px; }
.gallery-more-chip { display: grid; place-items: center; min-height: 175px; border-radius: 22px; border: 1px dashed rgba(255,255,255,.2); color: var(--muted); font-weight: 900; background: rgba(255,255,255,.03); }
.chip-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.chip-list span, .chip-list a { display: inline-flex; max-width: 100%; padding: .52rem .68rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.065); color: var(--soft); text-decoration: none; font-size: .82rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.link-chips a { color: var(--accent); }
.signal-card .chip-list span, .signal-card .chip-list a { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.35; }
.signal-card .muted:empty { display: none; }
.hours-list { list-style: none; padding: 0; margin: .55rem 0 0; display: grid; gap: .35rem; color: var(--muted); font-size: .88rem; }
.review-summary-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.review-summary-bar > div { padding: 1rem; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
.review-summary-bar span { display: block; color: var(--muted); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.review-summary-bar strong { display: block; margin-top: .35rem; font-size: 1.45rem; letter-spacing: -.04em; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.review-grid blockquote { margin: 0; padding: 1rem; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.055); }
.review-grid p { color: var(--soft); line-height: 1.5; }
.review-grid small { color: var(--muted); }
.site-footer strong { color: var(--text); }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; align-content: start; }

/* Style pass: make search/results feel more like a polished venue marketplace. */
.marketplace-results-shell { padding-inline: 0; padding-bottom: 0; }
.marketplace-search-bar {
  position: sticky;
  top: 66px;
  z-index: 15;
  padding: 1rem 5vw .85rem;
  background: rgba(0,0,0,.88);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(24px) saturate(160%);
}
.market-search {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(180px, .85fr) minmax(140px, .65fr) auto;
  gap: .5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: .5rem;
  border-radius: 16px;
  background: #fff;
  color: #0b0d12;
  box-shadow: 0 18px 70px rgba(0,0,0,.32);
}
.market-search label { display: grid; gap: .1rem; padding: .55rem 1rem; border-right: 1px solid rgba(8,10,16,.10); }
.market-search label:nth-of-type(3) { border-right: 0; }
.market-search span { color: #687083; font-size: .68rem; font-weight: 950; text-transform: uppercase; letter-spacing: .13em; }
.market-search input { border: 0; background: transparent; padding: 0; color: #0b0d12; font-weight: 850; border-radius: 0; }
.market-search input::placeholder { color: #8d93a1; }
.market-search button { padding-inline: 1.4rem; }
.filter-chip-row { max-width: 1180px; margin: .75rem auto 0; display: flex; gap: .55rem; overflow-x: auto; padding-bottom: .15rem; }
.filter-chip-row button { flex: 0 0 auto; padding: .62rem .9rem; background: rgba(255,255,255,.08); color: var(--soft); border: 1px solid rgba(255,255,255,.13); box-shadow: none; }
.marketplace-browser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 42vw); min-height: calc(100vh - 68px); }
.marketplace-list-pane { padding: 2rem 2.2rem 4rem 5vw; background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)); }
.marketplace-results-header { display: flex; justify-content: space-between; align-items: end; gap: 1.4rem; margin: .5rem 0 1.35rem; }
.marketplace-results-header h1 { font-size: clamp(2.2rem, 4vw, 4.7rem); line-height: .93; max-width: 760px; margin-bottom: .65rem; }
.marketplace-results-header p:not(.eyebrow) { color: var(--muted); margin: 0; font-weight: 800; }
.sort-pill { flex: 0 0 auto; border-radius: 8px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.07); padding: .7rem 1rem; color: var(--soft); font-weight: 900; }
.marketplace-map-pane { position: sticky; top: 151px; height: calc(100vh - 151px); padding: 1.1rem 5vw 1.1rem 1rem; align-self: start; }
.marketplace-map-card { height: 100%; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045)); }
.marketplace-map-card .results-map-header a { color: var(--accent); text-decoration: none; font-weight: 950; }
.marketplace-map-card .results-map-surface { min-height: 0; height: 100%; border-radius: 22px; }
.price-map-surface { background: radial-gradient(circle at 20% 20%, rgba(30,115,190,.18), transparent 12rem), radial-gradient(circle at 82% 35%, rgba(30,115,190,.22), transparent 16rem), linear-gradient(135deg, #171c26, #050608) !important; }
.price-map-surface:after { content: ''; position: absolute; inset: 12%; border: 1px solid rgba(255,255,255,.08); border-radius: 48% 52% 44% 56%; transform: rotate(-9deg); pointer-events: none; }
.results-map-pin span { background: #fff; color: #0b0d12; border-color: rgba(0,0,0,.08); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.marketplace-card-stack { gap: 1rem; }
.venue-card-style {
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
  padding: .85rem;
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  color: #101219;
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.venue-card-style:hover { transform: translateY(-4px); }
.venue-card-style .studio-card-body { color: #101219; }
.venue-card-style .studio-art { min-height: 255px; border-radius: 24px; }
.venue-card-style .studio-art-overlay { background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.48)); }
.venue-card-style .studio-art-meta { background: rgba(255,255,255,.92); color: #0b0d12; border-color: rgba(0,0,0,.08); }
.venue-card-style .studio-art-meta small { color: #4e5667; }
.venue-card-style .card-topline { color: #5f6675; }
.venue-card-style h3 a { color: #0c0e14; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.02; }
.venue-card-style p { color: #50596a; -webkit-line-clamp: 3; }
.marketplace-amenity-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.marketplace-amenity-row span { padding: .5rem .68rem; border-radius: 8px; background: #f1f3f6; color: #151922; border: 1px solid #e3e6eb; font-size: .8rem; font-weight: 900; }
.venue-card-style .button.secondary { background: #101219; color: #fff; border: 0; }
.venue-card-style .button.ghost { background: #f2f4f7; color: #101219; border: 1px solid #e1e5ea; }
.photo-dots { position: absolute; z-index: 4; left: 50%; bottom: .9rem; transform: translateX(-50%); display: flex; gap: .32rem; }
.photo-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.72); box-shadow: 0 1px 8px rgba(0,0,0,.35); }
.photo-dots span:first-child { width: 18px; border-radius: 8px; background: var(--accent); }
.featured-card.venue-card-style { grid-template-columns: 1fr; background: rgba(255,255,255,.9); }

@media (max-width: 1180px) { .hero-shell, .profile-hero, .profile-grid, .mood-panel, .owner-section, .results-toolbar-shell, .hero-subgrid, .search-results-premium, .marketplace-browser { grid-template-columns: 1fr; } .booking-card-mini, .profile-sidebar, .sticky-intro, .marketplace-map-pane { position: static; } .marketplace-map-pane { height: 420px; padding: 0 5vw 2rem; } .featured-grid, .blueprint-grid { grid-template-columns: repeat(2, 1fr); } .collection-grid { grid-template-columns: repeat(2, 1fr); } .profile-hero-premium { grid-template-columns: 1fr; } .profile-copy-editorial, .booking-card-floating, .profile-hero-gallery-card { min-height: auto; } }
@media (max-width: 1100px) {
  .app-command-bar:not(.app-results-command) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "query query"
      "city state"
      "button button";
  }
  .app-command-bar:not(.app-results-command) label:first-child { grid-area: query; }
  .app-command-bar:not(.app-results-command) label:nth-child(2) { grid-area: city; }
  .app-command-bar:not(.app-results-command) label:nth-child(3) { grid-area: state; }
  .app-command-bar:not(.app-results-command) button { grid-area: button; width: 100%; }
}
@media (max-width: 820px) { main { padding-inline: 1rem; } .marketplace-results-shell { padding-inline: 0; } .desktop-nav, .nav-cta { display: none; } .hero-shell { min-height: auto; padding-top: 3rem; } .command-search, .market-search, .app-command-bar { grid-template-columns: 1fr; grid-template-areas: none; border-radius: 22px; padding: .8rem; } .command-search label, .market-search label, .app-command-bar label { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); grid-area: auto !important; } .app-dashboard .app-command-bar, .home-page .app-dashboard .app-command-bar { grid-template-columns: 1fr; grid-template-areas: "query" "city" "state" "button"; } .metric-strip, .section-heading, .section-grid, .featured-grid, .collection-grid, .blueprint-grid, .review-grid, .profile-decision-strip, .review-summary-bar, .gallery-shell { grid-template-columns: 1fr; } .studio-card, .compact-cards .studio-card, .spotlight-card, .venue-card-style { grid-template-columns: 1fr; } .marketplace-search-bar { top: 56px; padding-inline: 1rem; } .marketplace-list-pane { padding: 1.4rem 1rem 3rem; } .marketplace-results-header { display: grid; align-items: start; } .marketplace-map-pane { padding-inline: 1rem; } .profile-art { min-height: 320px; } .feature-matrix .matrix { grid-template-columns: 1fr; } .detail-list { grid-template-columns: 1fr; } .site-footer { display: grid; } .results-map-surface { min-height: 220px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* App-shell pass: directory application, not marketing site. */
.app-body { background: #080a0f; color: var(--text); }
.app-body .site-header, .app-body .site-footer, .app-body .ambient { display: none !important; }
.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; height: 100vh; padding: 1.2rem; display: grid; grid-template-rows: auto auto 1fr; gap: 1.2rem; background: #0d1018; border-right: 1px solid rgba(255,255,255,.10); }
.app-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; padding: .5rem; }
.app-brand > span:last-child { display: grid; gap: .08rem; }
.app-brand small { color: var(--muted); font-weight: 800; }
.app-nav { display: grid; gap: .35rem; }
.app-nav a { display: flex; align-items: center; gap: .7rem; padding: .85rem .95rem; border-radius: 18px; text-decoration: none; color: #c8cede; font-weight: 900; font-size: .9rem; transition: all .2s ease; }
.app-nav a:hover, .app-nav a.active { background: rgba(255,255,255,.09); color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.sidebar-card { align-self: end; display: grid; gap: .3rem; padding: 1rem; border-radius: 20px; background: linear-gradient(160deg, rgba(30,115,190,.13), rgba(255,255,255,.055)); border: 1px solid rgba(255,255,255,.1); }
.sidebar-card span { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 950; }
.sidebar-card strong { font-size: 1.4rem; letter-spacing: -.04em; }
.sidebar-card small { color: var(--muted); line-height: 1.45; }
.app-workspace { min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .9rem 1.4rem; background: rgba(8,10,15,.88); backdrop-filter: blur(24px) saturate(160%); border-bottom: 1px solid rgba(255,255,255,.09); }
.app-global-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .5rem; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.app-global-search input { border: 0; background: transparent; padding: .55rem .3rem; box-shadow: none; }
.app-global-search button { padding: .65rem .95rem; }
.app-global-search span:first-child { font-size: 1.15rem; line-height: 1; }
.app-top-actions { display: flex; gap: .55rem; }
.mobile-topbar-brand { display: none; }
.app-page { padding: 1.2rem; min-width: 0; overflow-x: clip; }
.app-dashboard { max-width: 100%; }
.app-page-header { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr); gap: 1rem; align-items: end; padding: clamp(1.5rem, 2.5vw, 2.5rem) var(--page-pad) clamp(1rem, 1.5vw, 1.5rem); border-radius: 32px; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.04) 60%, rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); min-width: 0; overflow: hidden; }
.app-page-header h1, .app-results-toolbar h1 { font-size: clamp(2.2rem, 4.2vw, 5rem); line-height: .9; margin: .15rem 0 .45rem; }
.app-page-header .lede { margin: 0; max-width: 560px; }
.app-command-bar { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(120px, .72fr) minmax(100px, .58fr) minmax(110px, auto); gap: .55rem; padding: .55rem; border-radius: 22px; background: rgba(0,0,0,.52); border: 1px solid rgba(255,255,255,.1); min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.app-command-bar label { display: grid; gap: .2rem; min-width: 0; }
.app-command-bar label span { color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; font-weight: 950; }
.app-command-bar input { width: 100%; min-width: 0; padding: .78rem .85rem; border-radius: 14px; background: rgba(255,255,255,.07); box-sizing: border-box; }
.app-command-bar button { min-width: 0; }

/* Home search: wrap fields so the bar stays inside the viewport */
.app-dashboard .app-command-bar,
.home-page .app-dashboard .app-command-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "query query"
    "city state"
    "button button";
}
.app-dashboard .app-command-bar label:first-child,
.home-page .app-dashboard .app-command-bar label:first-child { grid-area: query; }
.app-dashboard .app-command-bar label:nth-child(2),
.home-page .app-dashboard .app-command-bar label:nth-child(2) { grid-area: city; }
.app-dashboard .app-command-bar label:nth-child(3),
.home-page .app-dashboard .app-command-bar label:nth-child(3) { grid-area: state; }
.app-dashboard .app-command-bar button,
.home-page .app-dashboard .app-command-bar button {
  grid-area: button;
  width: 100%;
}
.app-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 1rem 0; }
.app-kpi-grid div, .app-panel { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.055); border-radius: 24px; box-shadow: 0 18px 60px rgba(0,0,0,.16); }
.app-kpi-grid div { padding: 1.1rem; display: grid; gap: .35rem; border-radius: 24px; }
.app-kpi-grid span { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 950; }
.app-kpi-grid strong { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -.05em; }
.app-kpi-grid small { color: var(--muted); }
.app-two-column { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; margin-bottom: 1rem; }
.app-panel { padding: 1rem; }
.app-panel-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.app-panel-head.compact { align-items: center; margin-bottom: .75rem; }
.app-panel-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.app-panel h2 { font-size: clamp(1.35rem, 2.6vw, 2.3rem); line-height: 1; margin: .1rem 0; }
.app-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.app-card-grid .featured-card.venue-card-style { grid-template-columns: 160px minmax(0, 1fr); }
.app-card-grid .studio-art { min-height: 145px; }
.app-filter-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.app-filter-cloud a { text-decoration: none; padding: .62rem .78rem; border-radius: 8px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.1); color: var(--soft); font-weight: 900; font-size: .84rem; }
.app-inspector-panel hr { width: 100%; border: 0; border-top: 1px solid rgba(255,255,255,.09); margin: 1rem 0; }
.app-market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.app-market-grid .collection-card { min-height: 130px; }
.app-results-page { padding: 0; }
.app-results-toolbar { position: sticky; top: 69px; z-index: 20; display: grid; grid-template-columns: minmax(0, .78fr) minmax(520px, 1fr); gap: 1rem; align-items: end; padding: 1rem 1.2rem; background: rgba(8,10,15,.9); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(20px); }
.app-results-toolbar p:not(.eyebrow) { color: var(--muted); margin: 0; font-weight: 850; }
.app-directory-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 420px; gap: 1rem; padding: 1rem 1.2rem 2rem; align-items: start; }
.app-filter-panel { position: sticky; top: 190px; }
.app-inspector { position: static; grid-column: 1 / -1; }
.app-filter-panel { display: grid; gap: .9rem; padding: 1rem; border-radius: 24px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); }
.app-filter-panel .filter-chip-row { display: grid; margin: 0; overflow: visible; }
.app-filter-panel .filter-chip-row button { justify-content: flex-start; width: 100%; border-radius: 14px; }
.app-filter-panel .filter-chip-row button.is-active,
.app-filter-panel .filter-chip-row button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.user-filter-form { display: grid; gap: .75rem; }
.user-filter-form label { display: grid; gap: .35rem; color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.user-filter-form select { width: 100%; border: 1px solid rgba(255,255,255,.12); background: rgba(7,9,14,.92); color: var(--text); border-radius: 14px; padding: .72rem .78rem; font: inherit; font-weight: 850; outline: 0; }
.checkbox-filter { display: flex !important; grid-template-columns: auto 1fr; grid-auto-flow: column; align-items: center; justify-content: start; gap: .55rem !important; padding: .72rem .78rem; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--soft) !important; }
.checkbox-filter input { width: 1rem; height: 1rem; accent-color: var(--accent); }
.filter-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; }
.filter-actions .button { justify-content: center; padding: .68rem .82rem; }
.active-filter-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.active-filter-badges span { padding: .48rem .62rem; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: var(--soft); font-weight: 850; font-size: .78rem; }
.app-map-card { display: grid; gap: .75rem; }
.app-map-card .results-map-surface { min-height: 250px; border-radius: 16px; overflow: hidden; }
.app-map-card #results-map { width: 100%; height: 250px; border-radius: 16px; }
.app-map-card.is-expanded #results-map { height: 100%; min-height: 0; }
.map-expand-button { padding: .45rem .7rem; background: rgba(255,255,255,.08); color: var(--accent); border: 1px solid rgba(255,255,255,.12); box-shadow: none; cursor: pointer; border-radius: 10px; font-weight: 800; }
.map-backdrop { display: none; position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); }
.map-backdrop.is-visible { display: block; }
.app-map-card.is-expanded { position: fixed; inset: 80px 1rem 1rem calc(260px + 1rem); z-index: 9999; padding: 1rem; border-radius: 24px; background: #0d1018; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 120px rgba(0,0,0,.55); display: grid; grid-template-rows: auto 1fr; }
.app-map-card.is-expanded .results-map-surface { min-height: 0; height: 100%; }
.leaflet-container { background: transparent !important; font-family: Manrope, system-ui, sans-serif; }
.studio-map-popup .leaflet-popup-content-wrapper { background: rgba(13,16,24,.95); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; color: var(--text); backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.studio-map-popup .leaflet-popup-content { margin: .7rem .9rem; line-height: 1.4; }
.studio-map-popup .leaflet-popup-tip { background: rgba(13,16,24,.95); border: 1px solid rgba(255,255,255,.12); }
.studio-map-popup a { color: var(--accent); }
html[data-theme="light"] .studio-map-popup .leaflet-popup-content-wrapper { background: rgba(255,255,255,.96); border-color: rgba(15,23,42,.12); color: #0b1020; }
html[data-theme="light"] .studio-map-popup .leaflet-popup-tip { background: rgba(255,255,255,.96); border-color: rgba(15,23,42,.12); }
.app-record-list .venue-card-style { grid-template-columns: minmax(240px, 34%) minmax(0, 1fr); background: rgba(255,255,255,.94); }
.app-inspector p { color: var(--muted); line-height: 1.55; }
.app-inspector-stats { display: flex; flex-wrap: wrap; gap: .5rem; }
.app-inspector-stats span { padding: .55rem .7rem; border-radius: 8px; background: rgba(255,255,255,.075); color: var(--soft); font-weight: 900; }
.record-toolbar { position: sticky; top: 69px; z-index: 18; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem 0; background: rgba(8,10,15,.86); backdrop-filter: blur(18px); }
.record-tabs { display: flex; flex-wrap: wrap; gap: .45rem; }
.record-tabs a { text-decoration: none; padding: .55rem .75rem; border-radius: 8px; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.1); color: var(--soft); font-weight: 900; font-size: .84rem; }
.app-record-page { padding-top: 0; }
.app-record-hero { margin-top: .2rem; }
.app-record-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr) 320px; gap: 1rem; align-items: stretch; margin-top: .2rem; }
/* Profile page: only 2 columns since media panel is hidden */
.app-record-page .app-record-summary { grid-template-columns: minmax(0, 1fr) 320px; }
.app-record-page .record-booking-card { grid-column: auto; }
.record-title-panel, .record-media-panel, .record-booking-card { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.055); border-radius: 24px; box-shadow: 0 18px 60px rgba(0,0,0,.16); }
.record-title-panel { padding: 1.35rem; display: grid; align-content: center; gap: .85rem; min-width: 0; }
.record-hero-image { width: 100%; height: auto; border-radius: 16px; object-fit: cover; aspect-ratio: 16/9; display: block; }
.record-title-panel h1 { font-size: clamp(2rem, 3.35vw, 3.8rem); line-height: .96; letter-spacing: -.045em; max-width: 920px; margin: 0; overflow-wrap: normal; word-break: normal; }
.record-title-panel p:not(.eyebrow) { color: var(--muted); line-height: 1.55; margin: 0; max-width: 760px; }
.record-meta-strip { display: flex; flex-wrap: wrap; gap: .55rem; }
.record-meta-strip span { padding: .62rem .78rem; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: var(--soft); font-weight: 900; font-size: .86rem; }
.record-media-panel { overflow: hidden; min-height: 420px; }
.record-media-panel .gallery-shell { height: 100%; grid-template-columns: 1fr; gap: 0; margin: 0; }
.record-media-panel .gallery-hero-shot, .record-media-panel .gallery-thumb-grid figure { border-radius: 0; }
.record-media-panel .gallery-hero-shot img { min-height: 260px; border: 0; border-radius: 0; }
.record-media-panel .gallery-thumb-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.record-media-panel .gallery-thumb-grid figure { min-height: 160px; }
.record-media-panel .gallery-thumb-grid img { border: 0; border-radius: 0; }
.record-booking-card { min-height: auto; align-self: stretch; }

/* Peerspace-style detail page layout */
.detail-hero-image { width: 100%; margin: 0 0 1.5rem; }
.detail-hero-image img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 24px; display: block; }
.detail-header-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr); gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
.detail-title-block { display: grid; gap: .85rem; min-width: 0; }
.detail-title-block .eyebrow { margin-bottom: .2rem; }
.detail-title-block h1 { font-size: clamp(2.2rem, 3.8vw, 4.2rem); line-height: .95; letter-spacing: -.05em; margin: 0; max-width: 900px; }
.detail-description { color: var(--muted); line-height: 1.55; margin: 0; max-width: 720px; font-size: 1.05rem; }
.detail-meta-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .2rem; }
.detail-meta-row span { padding: .55rem .78rem; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: var(--soft); font-weight: 900; font-size: .84rem; }
.booking-panel-sticky { position: sticky; top: 92px; display: grid; gap: 1rem; padding: 1.5rem; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055)); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 22px 80px rgba(0,0,0,.22); }
.booking-panel-header { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .2rem; }
.booking-price { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.05em; }
.booking-price-note { color: var(--muted); font-weight: 800; }
.booking-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.booking-inputs input { padding: .85rem 1rem; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--text); font: inherit; font-weight: 750; }
.booking-inputs input::placeholder { color: var(--muted); }
.booking-primary-cta { width: 100%; padding: 1rem; font-size: 1.05rem; border-radius: 14px; }
.booking-trust-row { display: grid; gap: .5rem; }
.booking-trust-row span { padding: .55rem .7rem; border-radius: 12px; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.08); color: var(--soft); font-weight: 850; font-size: .82rem; }
.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.amenity-item { display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font-weight: 850; font-size: .88rem; }
.amenity-item svg, .amenity-item .icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }

/* Mobile detail page */
@media (max-width: 1180px) {
  .detail-header-grid { grid-template-columns: 1fr; }
  .booking-panel-sticky { position: static; }
  .detail-hero-image img { max-height: 380px; border-radius: 18px; }
}
@media (max-width: 820px) {
  .detail-hero-image img { max-height: 280px; border-radius: 14px; }
  .detail-title-block h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .booking-panel-sticky { padding: 1.2rem; }
  .amenity-grid { grid-template-columns: 1fr; }
}

.app-record-page .profile-panel h2, .app-record-page .panel h2, .app-record-page .trust-proof-band h2 { font-size: clamp(1.45rem, 2.5vw, 2.4rem); line-height: 1.02; }
.app-record-page .trust-proof-band { padding: 1.1rem; border-radius: 24px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); margin-top: 1rem; }
.app-record-page .review-summary-bar { grid-template-columns: 180px 160px minmax(0, 1fr); align-items: stretch; }
.app-record-page .review-summary-bar > div { min-width: 0; }
.app-record-page .review-highlight-chips { display: grid; gap: .45rem; margin-top: .55rem; }
.app-record-page .review-highlight-chips em { display: block; padding: .6rem .7rem; border-radius: 14px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.1); color: var(--soft); font-size: .82rem; font-style: normal; font-weight: 750; line-height: 1.35; text-transform: none; overflow-wrap: anywhere; }
.auth-modern-page { min-height: calc(100vh - 70px); display: grid; align-items: center; padding: clamp(1rem, 2.4vw, 2rem); position: relative; overflow: hidden; }
.auth-modern-page:before { content: ''; position: absolute; inset: 1rem; border-radius: 34px; background: radial-gradient(circle at 18% 16%, rgba(30,115,190,.22), transparent 22rem), radial-gradient(circle at 86% 74%, rgba(255,255,255,.09), transparent 28rem); pointer-events: none; }
.auth-modern-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .64fr); gap: 1rem; width: min(1180px, 100%); margin: 0 auto; align-items: stretch; }
.auth-copy-panel, .auth-card-modern { padding: clamp(1.25rem, 3vw, 2rem); overflow: hidden; }
.auth-copy-panel { min-height: 620px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, rgba(30,115,190,.16), rgba(255,255,255,.065) 42%, rgba(255,255,255,.035)); }
.auth-copy-panel h1 { font-size: clamp(2.6rem, 6.2vw, 6.25rem); line-height: .88; letter-spacing: -.065em; max-width: 820px; margin: .2rem 0 1rem; }
.auth-copy-panel .lede { max-width: 700px; margin-bottom: auto; }
.auth-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 2rem; }
.auth-benefit-grid div, .auth-proof-card { display: grid; gap: .35rem; padding: 1rem; border-radius: 20px; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.12); min-width: 0; }
.auth-benefit-grid span, .auth-proof-card span { color: var(--accent); font-weight: 950; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.auth-benefit-grid b, .auth-proof-card b { font-size: 1.05rem; letter-spacing: -.025em; }
.auth-benefit-grid small, .auth-proof-card small, .auth-card-header p, .auth-switch { color: var(--muted); line-height: 1.45; }
.auth-card-modern { align-self: center; background: rgba(255,255,255,.078); backdrop-filter: blur(22px); }
.auth-card-header { display: grid; gap: .35rem; margin-bottom: 1rem; }
.auth-card-header h2 { font-size: clamp(2rem, 4.2vw, 3.45rem); margin: 0; letter-spacing: -.055em; }
.auth-form-modern { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.auth-form-modern.single-column { grid-template-columns: 1fr; }
.auth-field { display: grid; gap: .38rem; min-width: 0; color: var(--muted); font-size: .73rem; font-weight: 950; text-transform: uppercase; letter-spacing: .11em; }
.auth-field.full, .auth-submit { grid-column: 1 / -1; }
.auth-field input, .auth-field select { width: 100%; border: 1px solid rgba(255,255,255,.13); background: rgba(2,4,9,.6); color: var(--text); padding: .98rem 1rem; border-radius: 18px; font: inherit; font-weight: 750; outline: 0; min-height: 54px; }
.auth-field input:focus, .auth-field select:focus { border-color: rgba(30,115,190,.86); box-shadow: 0 0 0 4px rgba(30,115,190,.16); }
.auth-submit { min-height: 56px; margin-top: .25rem; }
.auth-switch { text-align: center; margin: 1rem 0 0; }
.auth-switch a { color: var(--text); font-weight: 950; }
.login-shell { grid-template-columns: minmax(0, .88fr) minmax(380px, .54fr); }
.compact-auth-copy { min-height: 520px; }
.auth-proof-card { margin-top: 2rem; max-width: 420px; background: rgba(30,115,190,.13); }
.claim-workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); gap: 1rem; margin-top: 1rem; align-items: start; }
.claim-match-list { display: grid; gap: .65rem; }
.claim-match-card { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .9rem; border-radius: 18px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); }
.claim-match-card div { min-width: 0; display: grid; gap: .2rem; }
.claim-match-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claim-match-card span { color: var(--muted); font-weight: 800; }
.add-studio-form { display: grid; gap: .8rem; }
@media (max-width: 1180px) { .app-record-summary { grid-template-columns: 1fr; } .record-media-panel { min-height: auto; } }
@media (max-width: 820px) { .app-record-page .review-summary-bar { grid-template-columns: 1fr; } }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 70;
    height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: .75rem;
    padding: .7rem .9rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 18px 55px rgba(0,0,0,.28);
  }
  .app-brand { padding: .15rem .25rem; min-width: max-content; }
  .app-brand small { display: none; }
  .app-nav {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: .12rem .05rem;
  }
  .app-nav::-webkit-scrollbar { display: none; }
  .app-nav a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: .62rem .78rem;
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
  }
  .sidebar-card { display: none; }
  .app-page-header, .app-results-toolbar, .app-directory-grid, .app-two-column, .claim-workspace-grid, .auth-modern-shell, .login-shell { grid-template-columns: 1fr; }
  .app-results-map-pane { display: none; }
  .app-filter-panel, .app-inspector { position: static; }
  .app-card-grid, .app-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-copy-panel, .compact-auth-copy { min-height: auto; }
}

@media (max-width: 820px) {
  .app-sidebar { padding: .7rem 1.05rem; }
  .brand-mark { width: 38px; height: 38px; }
  .app-brand b { font-size: .95rem; }
  .app-nav a { min-height: 38px; padding: .55rem .68rem; font-size: .82rem; }
  .app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: static;
    padding: .7rem .85rem;
    background: rgba(8,10,15,.74);
  }
  .mobile-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--text);
  }
  .app-global-search { display: none; }
  .app-top-actions { display: flex; }
  .app-kpi-grid, .app-card-grid, .app-market-grid, .auth-form-modern, .auth-benefit-grid { grid-template-columns: 1fr; }
  .app-card-grid .featured-card.venue-card-style, .app-record-list .venue-card-style { grid-template-columns: 1fr; }
  .app-page, .app-directory-grid, .app-results-toolbar { padding-inline: 1.15rem; }
  .marketplace-hero-polish { border: 0; border-radius: 0; padding: 0; }
  .marketplace-trust-grid { display: none; }
  .auth-modern-page { padding-inline: .85rem; align-items: start; }
  .auth-copy-panel h1 { font-size: clamp(2.35rem, 13vw, 4.2rem); }
  .app-map-card.is-expanded { inset: 70px .75rem .75rem .75rem; z-index: 9999; }
}

/* Standardized text + spacing scale: dense app surfaces, not landing-page hero sizing. */
.app-shell { font-size: 15px; }
.app-shell p,
.app-shell li,
.app-shell input,
.app-shell textarea,
.app-shell select,
.app-shell button,
.app-shell .button { line-height: 1.45; }

.app-page { padding: var(--page-pad); }
.app-page-header,
.app-results-toolbar,
.record-title-panel,
.app-panel,
.profile-panel,
.panel,
.app-filter-panel,
.record-media-panel,
.record-booking-card { border-radius: 18px; }
.app-page-header { gap: var(--stack-md); padding: var(--panel-pad); align-items: center; }
.app-results-toolbar { gap: var(--stack-md); padding: .75rem var(--page-pad); align-items: center; top: 64px; }
.app-command-bar { gap: var(--stack-sm); padding: .45rem; border-radius: 16px; }
.app-command-bar input { padding: .62rem .72rem; border-radius: 12px; }
.app-topbar { padding: .65rem var(--page-pad); }
.app-global-search { padding: .35rem; border-radius: 14px; }
.app-global-search input { padding: .45rem .25rem; }
.app-global-search button,
.app-top-actions .button,
.theme-toggle { min-height: 38px; padding: .55rem .78rem; font-size: var(--text-sm); }

.app-topbar input,
.app-command-bar input,
.app-results-command input,
.market-search input { font-size: var(--text-base); }

.app-page-header h1,
.app-results-toolbar h1 {
  font-size: var(--h1-app);
  line-height: 1.08;
  letter-spacing: -.04em;
  max-width: 22ch;
  margin: .05rem 0 .35rem;
}
.app-page-header .lede,
.app-results-toolbar p:not(.eyebrow) { font-size: var(--text-base); line-height: 1.45; }
.eyebrow { font-size: var(--text-xs); line-height: 1.2; margin-bottom: var(--stack-sm); }
.app-panel h2,
.app-record-page .profile-panel h2,
.app-record-page .panel h2,
.app-record-page .trust-proof-band h2 { font-size: var(--h2-app); line-height: 1.12; letter-spacing: -.03em; }
.app-panel-head { margin-bottom: var(--stack-md); }
.app-panel,
.profile-panel,
.panel { padding: var(--panel-pad); }
.app-kpi-grid { gap: var(--stack-sm); margin: var(--stack-md) 0; }
.app-kpi-grid div { padding: .82rem; border-radius: 16px; }
.app-kpi-grid strong { font-size: clamp(1.35rem, 2vw, 1.9rem); }

.app-filter-panel { font-size: var(--text-sm); padding: .85rem; border-radius: 18px; }
.user-filter-form { gap: var(--stack-sm); }
.user-filter-form label,
.app-command-bar label span,
.market-search span { font-size: .68rem; line-height: 1.2; }
.user-filter-form select,
.checkbox-filter,
.filter-chip-row button,
.app-filter-cloud a { font-size: var(--text-sm); line-height: 1.25; }
.user-filter-form select,
.checkbox-filter { padding: .58rem .68rem; border-radius: 12px; }
.filter-actions .button { padding: .58rem .72rem; }
.active-filter-badges span,
.results-chip-row span,
.results-side-stats span { font-size: .76rem; line-height: 1.22; padding: .45rem .58rem; }

.app-record-list .venue-card-style,
.venue-card-style { font-size: 14.5px; }
.venue-card-style { padding: .72rem; border-radius: 18px; }
.venue-card-style .studio-art { min-height: 210px; border-radius: 18px; }
.venue-card-style .studio-card-body { gap: var(--stack-sm); }
.venue-card-style .card-topline { font-size: .76rem; line-height: 1.22; }
.venue-card-style h3 { margin: 0; }
.venue-card-style h3 a {
  font-size: var(--h3-card);
  line-height: 1.16;
  letter-spacing: -.024em;
}
.venue-card-style p { font-size: var(--text-sm); line-height: 1.42; }
.marketplace-amenity-row { gap: .38rem; }
.marketplace-amenity-row span,
.studio-art-meta b,
.studio-art-meta small { font-size: .74rem; line-height: 1.2; }
.marketplace-amenity-row span { padding: .4rem .54rem; }
.card-actions { gap: .45rem; margin-top: .15rem; }
.card-actions .button { font-size: var(--text-sm); line-height: 1.15; padding: .58rem .78rem; }

.app-record-summary { grid-template-columns: minmax(360px, 1.04fr) minmax(320px, .88fr) 280px; gap: var(--stack-md); }
.record-title-panel { align-content: start; gap: var(--stack-sm); padding: var(--panel-pad); }
.record-title-panel h1 {
  font-size: var(--h1-detail);
  line-height: 1.1;
  letter-spacing: -.038em;
  max-width: none;
  margin: 0;
  overflow-wrap: break-word;
}
.record-title-panel p:not(.eyebrow) { font-size: var(--text-base); line-height: 1.45; }
.record-meta-strip { gap: .42rem; }
.record-meta-strip span,
.record-tabs a { font-size: .76rem; line-height: 1.22; padding: .48rem .62rem; }
.record-booking-card > strong,
.booking-card-premium > strong { font-size: clamp(1.35rem, 1.75vw, 1.7rem); line-height: 1.08; }
.booking-card-premium { gap: var(--stack-md); padding: var(--panel-pad); }
.booking-mini-list,
.booking-mini-grid span,
.detail-list,
.hours-list { font-size: var(--text-sm); line-height: 1.4; }
.booking-mini-grid span { padding: .58rem .68rem; border-radius: 14px; }
.review-summary-bar { gap: var(--stack-sm); }
.review-summary-bar > div { padding: .78rem; border-radius: 16px; }
.review-summary-bar span { font-size: .68rem; line-height: 1.22; }
.review-summary-bar strong { font-size: 1.08rem; }
.app-record-page .review-highlight-chips em { font-size: .76rem; line-height: 1.32; padding: .48rem .58rem; }
.gallery-hero-shot figcaption,
.gallery-thumb-grid figcaption,
.gallery-caption-row span,
.trust-proof-grid span,
.review-highlight-chips span,
.chip-list span,
.chip-list a { font-size: .76rem; line-height: 1.22; }

.blueprint-page { padding: var(--page-pad); }
.blueprint-page .blueprint-hero,
.seed-page .blueprint-hero,
.cities-page .blueprint-hero { padding: clamp(1.5rem, 2.5vw, 2.5rem) 0 clamp(1rem, 1.5vw, 1.5rem); }
.blueprint-page .blueprint-hero h1,
.seed-page .blueprint-hero h1,
.cities-page .blueprint-hero h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.042em;
  margin: 0 0 var(--stack-md);
}
.blueprint-page .blueprint-hero .lede,
.seed-page .blueprint-hero .lede,
.cities-page .blueprint-hero .lede { font-size: var(--text-base); line-height: 1.48; }
.blueprint-hero h1 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; letter-spacing: -.042em; margin: 0 0 var(--stack-md); }
.blueprint-hero .lede { font-size: var(--text-base); line-height: 1.48; }
.blueprint-grid { gap: var(--stack-md); }
.blueprint-grid article { min-height: 210px; padding: var(--panel-pad); border-radius: 18px; }
.blueprint-grid h3 { font-size: var(--h3-card); line-height: 1.15; margin: var(--stack-sm) 0; }
.blueprint-grid p { font-size: var(--text-sm); line-height: 1.45; }
.blueprint-page .owner-section { margin-top: var(--stack-xl); padding: var(--panel-pad); gap: var(--stack-lg); border-radius: 18px; }
.blueprint-page .owner-section h2 { font-size: var(--h2-app); line-height: 1.12; }
.blueprint-page .owner-section p { font-size: var(--text-base); line-height: 1.45; }
.blueprint-page .owner-steps span { padding: .7rem .8rem; border-radius: 14px; font-size: var(--text-sm); }

@media (max-width: 1500px) {
  .app-record-summary { grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); }
  .record-booking-card { grid-column: 1 / -1; }
  .record-title-panel h1 { font-size: var(--h1-detail); }
}

@media (max-width: 1180px) {
  .app-page-header h1,
  .app-results-toolbar h1 { max-width: 24ch; }
  .app-results-toolbar p:not(.eyebrow) { max-width: 68ch; }
}

@media (max-width: 820px) {
  .app-shell { font-size: 14.5px; }
  .app-page-header,
  .blueprint-hero,
  .nearby-hero,
  .marketplace-hero-polish { padding: 1.25rem 1rem; }
  .app-page-header h1,
  .app-results-toolbar h1,
  .record-title-panel h1,
  .blueprint-hero h1,
  .blueprint-page .blueprint-hero h1,
  .seed-page .blueprint-hero h1,
  .cities-page .blueprint-hero h1 { font-size: clamp(1.55rem, 7vw, 2.1rem); line-height: 1.1; }
  .venue-card-style h3 a { font-size: 1.05rem; }
  .venue-card-style .studio-art { min-height: 180px; }
  .record-booking-card { grid-column: auto; }
  .app-record-page .app-record-summary { grid-template-columns: 1fr; }
  .record-media-panel { min-height: auto; }
  .record-media-panel .gallery-thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .record-title-panel { padding: 1rem; }
  .record-meta-strip { gap: .35rem; }
  .record-meta-strip span { font-size: .72rem; padding: .45rem .55rem; }
  .record-toolbar { background: transparent; backdrop-filter: none; }
}

/* Mobile bottom tab bar */
.mobile-tab-bar {
  display: none;
}

@media (max-width: 820px) {
  .mobile-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    background: var(--panel);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--line);
  }
  .mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 12px;
    transition: color 0.15s ease, background 0.15s ease;
    min-width: 64px;
  }
  .mobile-tab-item.active {
    color: var(--text);
    background: var(--surface);
  }
  .mobile-tab-icon {
    font-size: 1.25rem;
    line-height: 1;
  }
  .mobile-tab-label {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
  }
  /* Add bottom padding to body so content isn't hidden behind tab bar */
  .app-body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  /* Hide sidebar nav on mobile — tab bar replaces it */
  .app-sidebar {
    display: none !important;
  }
}

/* Light/dark theme support. Defaults follow the OS; the top-bar toggle persists a user choice. */
body,
.app-body {
  background:
    radial-gradient(circle at 18% 8%, rgba(30,115,190,.16), transparent 31rem),
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.08), transparent 34rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 48%, var(--bg) 100%);
}

.app-body { color: var(--text); }
.theme-toggle {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--soft);
  padding: .4rem;
  min-height: auto;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: none;
  white-space: nowrap;
  cursor: pointer;
}
.theme-toggle-icon { font-size: 1.15rem; }

html[data-theme="light"] body,
html[data-theme="light"] .app-body {
  background:
    radial-gradient(circle at 14% 6%, rgba(30,115,190,.12), transparent 30rem),
    radial-gradient(circle at 88% 16%, rgba(30,115,190,.08), transparent 32rem),
    linear-gradient(180deg, #f6f8fc 0%, #ffffff 48%, #eef3f9 100%);
}
html[data-theme="light"] .app-sidebar { background: #ffffff; border-right-color: rgba(15,23,42,.12); box-shadow: 18px 0 60px rgba(30,41,59,.06); }
html[data-theme="light"] .app-topbar,
html[data-theme="light"] .app-results-toolbar,
html[data-theme="light"] .record-toolbar { background: rgba(255,255,255,.88); border-bottom-color: rgba(15,23,42,.1); }
html[data-theme="light"] .app-nav a { color: #475569; }
html[data-theme="light"] .app-nav a:hover,
html[data-theme="light"] .app-nav a.active { background: #eaf2fb; color: #0b1020; }
html[data-theme="light"] .app-global-search,
html[data-theme="light"] .app-command-bar,
html[data-theme="light"] .app-page-header,
html[data-theme="light"] .app-kpi-grid div,
html[data-theme="light"] .app-panel,
html[data-theme="light"] .app-filter-panel,
html[data-theme="light"] .record-title-panel,
html[data-theme="light"] .record-media-panel,
html[data-theme="light"] .record-booking-card,
html[data-theme="light"] .profile-panel,
html[data-theme="light"] .panel,
html[data-theme="light"] .trust-proof-band,
html[data-theme="light"] .owner-claim-disclosure,
html[data-theme="light"] .review-summary-bar > div,
html[data-theme="light"] .review-grid blockquote,
html[data-theme="light"] .sidebar-card,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .claim-match-card {
  background: rgba(255,255,255,.88);
  border-color: rgba(15,23,42,.12);
  box-shadow: 0 18px 60px rgba(30,41,59,.08);
}
html[data-theme="light"] .app-page-header { background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(235,242,251,.82)); }
html[data-theme="light"] .sidebar-card { background: linear-gradient(160deg, rgba(30,115,190,.1), rgba(255,255,255,.92)); }
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] .app-command-bar input,
html[data-theme="light"] .user-filter-form select,
html[data-theme="light"] .auth-field input,
html[data-theme="light"] .auth-field select { background: #ffffff; color: var(--text); border-color: rgba(15,23,42,.14); }
html[data-theme="light"] .app-global-search input { background: transparent; }
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #8994a6; }
html[data-theme="light"] .secondary,
html[data-theme="light"] .ghost,
html[data-theme="light"] .record-tabs a,
html[data-theme="light"] .active-filter-badges span,
html[data-theme="light"] .app-filter-cloud a,
html[data-theme="light"] .record-meta-strip span,
html[data-theme="light"] .trust-row span,
html[data-theme="light"] .chip-list span,
html[data-theme="light"] .chip-list a,
html[data-theme="light"] .gallery-caption-row span,
html[data-theme="light"] .trust-proof-grid span,
html[data-theme="light"] .review-highlight-chips span,
html[data-theme="light"] .booking-mini-grid span,
html[data-theme="light"] .matrix div,
html[data-theme="light"] .filter-chip-row button,
html[data-theme="light"] .checkbox-filter,
html[data-theme="light"] .app-inspector-stats span {
  background: #eef3f8;
  color: #172033;
  border-color: rgba(15,23,42,.12);
}
html[data-theme="light"] .venue-card-style,
html[data-theme="light"] .featured-card.venue-card-style,
html[data-theme="light"] .app-record-list .venue-card-style { background: rgba(255,255,255,.96); color: #101219; border-color: rgba(15,23,42,.1); }
html[data-theme="light"] .marketplace-amenity-row span { background: #eef3f8; color: #172033; border-color: rgba(15,23,42,.1); }
html[data-theme="light"] .results-map-surface,
html[data-theme="light"] .price-map-surface,
html[data-theme="light"] .device-map { background: radial-gradient(circle at 20% 18%, rgba(30,115,190,.16), transparent 12rem), radial-gradient(circle at 80% 42%, rgba(30,115,190,.12), transparent 16rem), linear-gradient(135deg, #f8fbff, #dfe9f6) !important; border-color: rgba(15,23,42,.1); }
html[data-theme="light"] .results-map-surface:before,
html[data-theme="light"] .device-map:before { background-image: linear-gradient(rgba(15,23,42,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.06) 1px, transparent 1px); }
html[data-theme="light"] .map-card,
html[data-theme="light"] .studio-art-meta,
html[data-theme="light"] .gallery-hero-shot figcaption,
html[data-theme="light"] .gallery-thumb-grid figcaption { background: rgba(255,255,255,.88); color: #0b1020; border-color: rgba(15,23,42,.12); }
html[data-theme="light"] .app-map-card.is-expanded { background: #ffffff; border-color: rgba(15,23,42,.14); }
html[data-theme="light"] .map-backdrop { background: rgba(0,0,0,.45); }
html[data-theme="light"] .lede,
html[data-theme="light"] .form-intro,
html[data-theme="light"] .signal-note,
html[data-theme="light"] .app-inspector p,
html[data-theme="light"] .record-title-panel p:not(.eyebrow),
html[data-theme="light"] .profile-copy p,
html[data-theme="light"] .review-grid small,
html[data-theme="light"] .hours-list { color: var(--muted); }


html[data-theme="dark"] .venue-card-style,
html[data-theme="dark"] .featured-card.venue-card-style,
html[data-theme="dark"] .app-record-list .venue-card-style {
  background: rgba(255,255,255,.075);
  color: var(--text);
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
html[data-theme="dark"] .venue-card-style .studio-card-body,
html[data-theme="dark"] .venue-card-style h3 a { color: var(--text); }
html[data-theme="dark"] .venue-card-style p,
html[data-theme="dark"] .venue-card-style .card-topline,
html[data-theme="dark"] .venue-card-style .studio-art-meta small { color: var(--muted); }
html[data-theme="dark"] .marketplace-amenity-row span { background: rgba(255,255,255,.075); color: var(--soft); border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .venue-card-style .button.ghost { background: rgba(255,255,255,.07); color: var(--soft); border: 1px solid rgba(255,255,255,.12); }
html[data-theme="dark"] .venue-card-style .button.secondary { background: var(--accent); color: var(--accent-ink); }

/* Modern Account Dashboard — compact */
.account-modern-page { }
.account-command-center {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(160deg, rgba(30,115,190,.10), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1.1rem;
  margin: .8rem 0 1rem;
}
.account-identity { display: flex; align-items: center; gap: .75rem; }
.account-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: .9rem; letter-spacing: .02em;
  flex-shrink: 0;
}
.account-command-header h1 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); margin: 0 0 .15rem; line-height: 1.1; }
.account-command-header .lede { color: var(--muted); margin: 0; font-size: .82rem; }
.account-command-header .eyebrow { margin: 0 0 .2rem; font-size: .65rem; }
.account-meta-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.account-stat-grid { display: flex; gap: .45rem; }
.account-stat-grid > div {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .7rem;
  display: flex; align-items: center; gap: .35rem;
  font-size: .8rem;
}
.account-stat-grid > div span { color: var(--muted); font-size: .75rem; }
.account-stat-grid > div strong { font-weight: 800; }
.account-quick-actions { display: flex; gap: .45rem; }
.account-quick-actions .button {
  border-radius: var(--button-radius);
  padding: .5rem .8rem;
  font-size: .82rem;
}
.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
}
.account-profile-card { display: grid; gap: .5rem; padding: .9rem 1rem; }
.account-profile-card h2 { font-size: var(--h2-app); margin: .1rem 0 .3rem; }
.account-field-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
.account-field-group label { display: flex; flex-direction: column; gap: .2rem; font-size: .78rem; color: var(--muted); }
.account-field-group label.full { grid-column: 1 / -1; }
.account-field-group input,
.account-field-group textarea {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .45rem .6rem;
  color: var(--text);
  font: inherit;
  font-size: .88rem;
}
.account-field-group textarea { min-height: 64px; resize: vertical; }
.account-form-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.account-form-actions button { border-radius: var(--button-radius); padding: .5rem .9rem; font-size: .85rem; }
.account-activity-feed { display: grid; gap: .7rem; }
.account-activity-panel { display: grid; gap: .35rem; padding: .9rem 1rem; }
.account-activity-panel h2 { font-size: var(--h2-app); margin: .1rem 0 .25rem; }
.account-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.account-table-wrap table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.account-table-wrap th,
.account-table-wrap td { padding: .4rem .6rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.account-table-wrap th { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.account-table-wrap td a { color: var(--accent); text-decoration: none; }
.account-table-wrap td a:hover { text-decoration: underline; }
.account-table-wrap tbody tr:last-child td { border-bottom: none; }
@media (max-width: 980px) {
  .account-dashboard-grid { grid-template-columns: 1fr; }
  .account-command-center { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .account-meta-row { flex-direction: column; align-items: flex-start; }
  .account-field-group { grid-template-columns: 1fr; }
  .account-command-header h1 { font-size: 1.15rem; }
}

/* Full-width layout for dedicated account pages */
.profile-page .account-dashboard-grid,
.sessions-page .account-dashboard-grid,
.booking-requests-page .account-dashboard-grid {
  grid-template-columns: 1fr;
}
.bookmarks-page .app-directory-grid {
  grid-template-columns: 1fr;
}
.add-studio-page .claim-workspace-grid {
  grid-template-columns: 1fr;
}

/* Owner / studio manager styles */
.account-left-col { display: grid; gap: .7rem; }
.account-claimed-panel { padding: .9rem 1rem; display: grid; gap: .35rem; }
.account-claimed-panel h2 { font-size: var(--h2-app); margin: .1rem 0 .25rem; }
.account-claimed-studio { display: flex; align-items: center; gap: .5rem; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.account-claimed-studio:last-child { border-bottom: none; }
.account-claimed-studio a { color: var(--text); text-decoration: none; font-weight: 700; }
.account-claimed-studio a:hover { color: var(--accent); }
.account-claimed-studio span { color: var(--muted); font-size: .78rem; }
.account-claimed-studio .button.small { padding: .25rem .5rem; font-size: .72rem; }

.owner-page { }
.owner-dashboard-grid { display: grid; gap: .7rem; margin-top: .7rem; }
.owner-studios-panel { display: grid; gap: .5rem; }
.owner-studio-list { display: grid; gap: .55rem; }
.owner-studio-card { padding: .9rem 1rem; display: grid; gap: .35rem; }
.owner-studio-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.owner-studio-header h3 { margin: 0; font-size: 1rem; }
.owner-studio-header h3 a { color: var(--text); text-decoration: none; }
.owner-studio-header h3 a:hover { color: var(--accent); }
.claim-badge { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .5rem; border-radius: 999px; background: rgba(30,115,190,.18); color: var(--accent); font-weight: 700; }
.owner-studio-meta { color: var(--muted); font-size: .82rem; margin: 0; }
.owner-studio-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.owner-studio-actions .button { padding: .45rem .8rem; font-size: .82rem; }

.edit-studio-page { }
.edit-studio-form { padding: .9rem 1rem; display: grid; gap: .5rem; margin-top: .7rem; }
.edit-studio-form h2 { font-size: var(--h2-app); margin: .1rem 0 .3rem; }
.edit-studio-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edit-studio-fields textarea { min-height: 80px; }
.edit-studio-form .account-form-actions { margin-top: .3rem; }

.edit-section { padding: 0 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.edit-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.edit-section .eyebrow { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.edit-section h2 { font-size: var(--h2-app); margin: .1rem 0 .5rem; }

/* Hours editor */
.hours-editor { display: grid; gap: .35rem; }
.hours-row { display: flex; align-items: center; gap: .5rem; padding: .35rem .45rem; border-radius: var(--radius); background: rgba(255,255,255,.04); }
.hours-day { width: 42px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.hours-closed-label { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); cursor: pointer; margin-right: auto; }
.hours-closed-label input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.hours-time { padding: .28rem .5rem; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: .8rem; font-family: inherit; }
.hours-time:disabled { opacity: .35; cursor: not-allowed; }
.hours-sep { color: var(--muted); font-size: .85rem; }

/* Social editor */
.social-editor { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .5rem; }
.social-input-row { display: flex; align-items: center; gap: .45rem; padding: .4rem .55rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.social-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; flex-shrink: 0; }
.social-label { font-size: .78rem; color: var(--muted); width: 80px; flex-shrink: 0; }
.social-url { flex: 1; padding: .3rem .45rem; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: .8rem; font-family: inherit; }

/* Photo manager */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; margin: .5rem 0; }
.photo-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; }
.photo-item img { width: 100%; height: 70%; object-fit: cover; display: block; }
.photo-tag { position: absolute; bottom: 0; left: 0; right: 0; padding: .2rem .3rem; font-size: .72rem; border: none; border-top: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,.7); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-remove:hover { background: #c00; }
.photo-placeholder { grid-column: 1 / -1; text-align: center; padding: 1rem; }
.photo-add-row { display: flex; gap: .4rem; align-items: center; }
.photo-url-input { flex: 1; padding: .35rem .55rem; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: .82rem; font-family: inherit; }
.photo-add-btn { padding: .35rem .8rem; font-size: .8rem; }
.form-hint { font-size: .75rem; color: var(--muted); margin: .3rem 0 0; }

/* About section */
.about-label { display: flex; flex-direction: column; gap: .3rem; }
.about-label span { font-size: .78rem; color: var(--muted); }
.about-label textarea { min-height: 140px; resize: vertical; }

@media (max-width: 980px) {
  .edit-studio-fields { grid-template-columns: 1fr; }
  .hours-row { flex-wrap: wrap; gap: .35rem; }
  .hours-day { width: 36px; }
  .social-editor { grid-template-columns: 1fr; }
  .owner-studio-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 980px) {
  .edit-studio-fields { grid-template-columns: 1fr; }
  .owner-studio-header { flex-direction: column; align-items: flex-start; }
}

/* Claim page */
.claim-page { }
.claim-workspace-grid { display: grid; grid-template-columns: minmax(280px, .38fr) minmax(0, 1fr); gap: .7rem; margin-top: .7rem; }
.claim-studio-info { padding: .9rem 1rem; display: grid; gap: .35rem; }
.claim-studio-info h2 { font-size: var(--h2-app); margin: .1rem 0 .25rem; }
.claim-info-meta { color: var(--muted); font-size: .85rem; margin: 0; }
.claim-info-fields { display: grid; gap: .35rem; margin-top: .4rem; }
.claim-info-fields > div { display: flex; justify-content: space-between; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.claim-info-fields > div:last-child { border-bottom: none; }
.claim-info-fields > div span { color: var(--muted); font-size: .78rem; }
.claim-info-fields > div strong { font-weight: 700; font-size: .85rem; }
.claim-form-standalone { padding: .9rem 1rem; display: grid; gap: .5rem; }
.claim-form-standalone h2 { font-size: var(--h2-app); margin: .1rem 0 .25rem; }
.claim-match-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.button.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.button.ghost:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 980px) {
  .claim-workspace-grid { grid-template-columns: 1fr; }
}

/* Role-specific account dashboards */
.owner-dashboard .account-command-header .eyebrow {
  color: var(--accent);
}

.owner-dashboard .account-stat-grid div:first-child span { color: var(--accent); }

.owner-dashboard .account-activity-panel h2 {
  font-size: 1.05rem;
  margin: .25rem 0 .6rem;
}

/* Homepage marketplace polish pass — clearer hero, trust copy, and less cramped studio cards. */
.marketplace-hero-polish {
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .82fr);
  align-items: center;
  min-height: clamp(260px, 30vh, 400px);
  padding: clamp(1.5rem, 2.5vw, 2.5rem) var(--page-pad);
  background:
    radial-gradient(circle at 12% 18%, rgba(30,115,190,.24), transparent 23rem),
    radial-gradient(circle at 86% 12%, rgba(255,255,255,.11), transparent 21rem),
    linear-gradient(145deg, rgba(255,255,255,.095), rgba(255,255,255,.035));
}
.marketplace-hero-polish h1 {
  max-width: 13ch;
  font-size: clamp(2.25rem, 5vw, 5.2rem);
  letter-spacing: -.07em;
}
.marketplace-hero-polish .lede {
  max-width: 720px;
  color: var(--soft);
}
.marketplace-hero-polish .app-command-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "query query"
    "city state"
    "button button";
  padding: .72rem;
  background: rgba(0,0,0,.42);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  width: 100%;
  max-width: 560px;
  justify-self: end;
}
.marketplace-hero-polish .app-command-bar label:first-child { grid-area: query; }
.marketplace-hero-polish .app-command-bar label:nth-child(2) { grid-area: city; }
.marketplace-hero-polish .app-command-bar label:nth-child(3) { grid-area: state; }
.marketplace-hero-polish .app-command-bar button { grid-area: button; min-height: 54px; font-size: .98rem; }
.marketplace-hero-polish .app-command-bar input { min-height: 52px; }
.marketplace-trust-grid { margin: 1rem 0 1.15rem; }
.marketplace-trust-grid div {
  background: linear-gradient(180deg, rgba(255,255,255,.078), rgba(255,255,255,.038));
}
.marketplace-home-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 300px); }
.featured-marketplace-panel { padding: clamp(1rem, 1.7vw, 1.35rem); }
.featured-marketplace-panel .app-panel-head h2 { max-width: 16ch; }
.marketplace-featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .95rem;
}
.marketplace-featured-grid .featured-card.venue-card-style {
  grid-template-columns: 1fr;
  gap: .82rem;
  padding: .78rem;
  border-radius: 24px;
}
.marketplace-featured-grid .studio-art {
  min-height: clamp(178px, 17vw, 230px);
  border-radius: 20px;
}
.marketplace-featured-grid .studio-card-body {
  align-content: start;
  gap: .58rem;
}
.marketplace-featured-grid .card-topline {
  display: grid;
  grid-template-columns: 1fr;
  gap: .18rem;
  font-size: .78rem;
}
.marketplace-featured-grid .card-topline span {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.marketplace-featured-grid .studio-card h3 a { -webkit-line-clamp: 2; }
.marketplace-featured-grid .marketplace-amenity-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.marketplace-featured-grid .marketplace-amenity-row span {
  font-size: .73rem;
  padding: .36rem .48rem;
}
.marketplace-featured-grid .card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .45rem;
}
.marketplace-featured-grid .card-actions .button {
  width: 100%;
  padding: .68rem .8rem;
}
.intent-panel-polish {
  align-content: start;
  background:
    radial-gradient(circle at 20% 0%, rgba(30,115,190,.13), transparent 12rem),
    rgba(255,255,255,.055);
}
.intent-panel-polish h2 { font-size: clamp(1.25rem, 1.7vw, 1.65rem); line-height: 1.08; }
.intent-panel-polish .app-filter-cloud a {
  border-radius: 999px;
  padding: .58rem .75rem;
}
.market-index-polish { margin-top: .1rem; }
.market-index-polish .collection-card {
  min-height: 150px;
  background:
    radial-gradient(circle at 80% 12%, rgba(30,115,190,.14), transparent 9rem),
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
}
html[data-theme="light"] .marketplace-hero-polish {
  background:
    radial-gradient(circle at 12% 18%, rgba(30,115,190,.16), transparent 23rem),
    radial-gradient(circle at 86% 12%, rgba(30,115,190,.08), transparent 21rem),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(235,242,251,.82));
}
html[data-theme="light"] .marketplace-hero-polish .lede { color: #3d485a; }
html[data-theme="light"] .marketplace-hero-polish .app-command-bar { background: rgba(255,255,255,.76); }
html[data-theme="light"] .marketplace-trust-grid div,
html[data-theme="light"] .intent-panel-polish,
html[data-theme="light"] .market-index-polish .collection-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,245,252,.82));
}
@media (max-width: 1340px) {
  .marketplace-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .marketplace-hero-polish,
  .marketplace-home-grid { grid-template-columns: 1fr; }
  .marketplace-hero-polish { background: transparent; border: 0; border-radius: 0; padding: .2rem 0 .85rem; }
  .marketplace-hero-polish .app-command-bar { justify-self: stretch; max-width: none; }
}
@media (max-width: 720px) {
  .marketplace-hero-polish .app-command-bar {
    grid-template-columns: 1fr;
    grid-template-areas: "query" "city" "state" "button";
  }
  .marketplace-featured-grid { grid-template-columns: 1fr; }
}

/* Mobile app bar: keep the application navigation compact instead of stacked like a page header. */
@media (max-width: 1180px) {
  html[data-theme="light"] .app-sidebar {
    border-right: 0;
    border-bottom-color: rgba(15,23,42,.1);
    box-shadow: 0 18px 45px rgba(30,41,59,.1);
  }
  html[data-theme="light"] .app-nav a { background: #f3f7fc; border-color: rgba(15,23,42,.08); }
}

@media (max-width: 820px) {
  .app-sidebar {
    min-height: 56px;
    backdrop-filter: blur(22px);
  }
  .app-nav { mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 22px), transparent 100%); }
  .app-topbar { border-top: 0; }
}

/* Design optimization pass: responsive IA based on modern marketplace/mobile search patterns. */
.mobile-filter-details,
.mobile-results-meta { display: none; }

@media (max-width: 820px) {
  /* Mobile apps should have one primary search surface per view. The app bar handles nav; contextual pages handle search. */
  .app-topbar { display: grid; }
  .app-page { padding-top: .8rem; }

  /* Mobile home: search dashboard, not sales card */
  .home-page .marketplace-hero-polish {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: .2rem 0 .85rem;
    gap: .35rem;
  }
  .home-page .marketplace-hero-polish .app-command-bar,
  .home-page .app-dashboard .app-command-bar {
    background: transparent;
    border: 0;
    border-radius: 16px;
    padding: .45rem;
    gap: .4rem;
    margin: 0;
    grid-template-columns: 1fr;
    grid-template-areas: "query" "city" "state" "button";
  }
  .home-page .marketplace-hero-polish .app-command-bar label span {
    font-size: .58rem;
    letter-spacing: .14em;
  }
  .home-page .marketplace-hero-polish .app-command-bar input {
    min-height: 44px;
    padding: .6rem .7rem;
    border-radius: 12px;
    background: rgba(255,255,255,.055);
  }
  .home-page .marketplace-hero-polish .app-command-bar button {
    min-height: 46px;
    border-radius: 12px;
    font-size: .82rem;
  }
  .home-page .marketplace-trust-grid {
    display: none;
  }
  .home-page .marketplace-home-grid {
    gap: .75rem;
  }
  .home-page .intent-panel-polish {
    display: none;
  }
  .home-page .featured-marketplace-panel .app-panel-head {
    align-items: center;
    margin-bottom: .8rem;
  }
  .home-page .featured-marketplace-panel .app-panel-head p,
  .home-page .featured-marketplace-panel .app-panel-head .button {
    display: none;
  }

  /* Search/results: mobile marketplace pattern = compact search + filter drawer + cards immediately. */
  .results-page .app-results-toolbar {
    position: sticky;
    top: 63px;
    z-index: 62;
    display: grid;
    gap: .6rem;
    padding: .7rem 1.15rem .75rem;
    margin: -.8rem -1.15rem 0;
    border-radius: 0 0 22px 22px;
    background: rgba(246,248,252,.94);
    border-bottom: 1px solid rgba(15,23,42,.1);
    box-shadow: 0 16px 35px rgba(15,23,42,.08);
  }
  html[data-theme="dark"] .results-page .app-results-toolbar {
    background: rgba(8,10,15,.92);
    border-bottom-color: rgba(255,255,255,.08);
    box-shadow: 0 16px 35px rgba(0,0,0,.28);
  }
  .results-page .app-results-toolbar > div:first-child {
    display: none;
  }
  .results-page .app-results-command {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "what what"
      "where state"
      "button button";
    gap: .45rem;
    padding: .45rem;
    border-radius: 18px;
    background: rgba(255,255,255,.82);
  }
  html[data-theme="dark"] .results-page .app-results-command {
    background: rgba(255,255,255,.075);
  }
  .results-page .app-results-command label:first-child { grid-area: what; }
  .results-page .app-results-command label:nth-child(2) { grid-area: where; }
  .results-page .app-results-command label:nth-child(3) { grid-area: state; }
  .results-page .app-results-command button { grid-area: button; min-height: 44px; padding-inline: .85rem; }
  .results-page .app-results-command label span { display: none; }
  .results-page .app-results-command input { min-height: 44px; padding: .66rem .75rem; border-radius: 14px; }
  .mobile-filter-details {
    display: block;
    border: 1px solid rgba(15,23,42,.1);
    background: rgba(255,255,255,.72);
    border-radius: 16px;
    overflow: hidden;
  }
  html[data-theme="dark"] .mobile-filter-details {
    border-color: rgba(255,255,255,.1);
    background: rgba(255,255,255,.06);
  }
  .mobile-filter-details summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .72rem .82rem;
    font-weight: 950;
    cursor: pointer;
  }
  .mobile-filter-details summary::-webkit-details-marker { display: none; }
  .mobile-filter-details summary span:before { content: '☰ '; color: var(--accent); }
  .mobile-filter-details summary b {
    padding: .28rem .5rem;
    border-radius: 999px;
    background: rgba(30,115,190,.13);
    color: var(--accent);
    font-size: .78rem;
  }
  .mobile-filter-form {
    padding: 0 .82rem .82rem;
  }
  .mobile-active-filter-badges {
    padding: 0 .82rem .82rem;
  }
  .mobile-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 850;
  }
  .mobile-results-meta b {
    color: var(--text);
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .results-page .app-directory-grid {
    display: block;
    padding-top: .75rem;
  }
  .results-page .app-filter-panel,
  .results-page .app-inspector,
  .results-page .app-results-map-pane {
    display: none;
  }
  .results-page .app-record-list {
    display: grid;
    gap: .85rem;
  }

  /* Secondary collection pages: keep the title context, skip duplicated global search and reduce page-hero height. */
  .cities-page .blueprint-hero,
  .seed-page .blueprint-hero {
    padding: 1.15rem;
    border-radius: 22px;
    margin-bottom: .75rem;
  }
  .cities-page .blueprint-hero .lede,
  .seed-page .blueprint-hero .lede {
    display: none;
  }
}

/* Mobile profile toolbar: transparent regardless of theme */
@media (max-width: 820px) {
  html .record-toolbar,
  html[data-theme="light"] .record-toolbar,
  html[data-theme="dark"] .record-toolbar {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: 0 !important;
  }
  html .record-tabs a,
  html[data-theme="light"] .record-tabs a,
  html[data-theme="dark"] .record-tabs a {
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    color: var(--soft) !important;
  }
  html[data-theme="light"] .record-tabs a {
    background: #eef3f8 !important;
    border-color: rgba(15,23,42,.14) !important;
    color: #172033 !important;
  }
}

/* Profile page toolbar: always transparent, not sticky */
.app-record-page .record-toolbar,
html[data-theme="light"] .app-record-page .record-toolbar,
html[data-theme="dark"] .app-record-page .record-toolbar {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  position: relative;
  top: auto;
}
.app-record-page .record-tabs a,
html[data-theme="light"] .app-record-page .record-tabs a,
html[data-theme="dark"] .app-record-page .record-tabs a {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--soft);
}
html[data-theme="light"] .app-record-page .record-tabs a {
  background: #eef3f8;
  border-color: rgba(15,23,42,.14);
  color: #172033;
}

/* Hide duplicate gallery from top of profile — hero image now in title panel */
.app-record-page .record-media-panel { display: none; }


/* ── Bookmark button ── */
.bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--soft);
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1;
}
.bookmark-btn .bm-icon {
  font-size: 1rem;
  line-height: 1;
}
.bookmark-btn:hover {
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.bookmark-btn.is-bookmarked {
  border-color: #ff4d6d;
  color: #ff4d6d;
}
.bookmark-btn.is-bookmarked:hover {
  border-color: #ff1f4c;
  color: #ff1f4c;
}
html[data-theme="light"] .bookmark-btn {
  border-color: rgba(15,23,42,.14);
  color: #5a6a7a;
}
html[data-theme="light"] .bookmark-btn:hover {
  border-color: rgba(15,23,42,.28);
  color: #172033;
}
html[data-theme="light"] .bookmark-btn.is-bookmarked {
  border-color: #ff4d6d;
  color: #ff4d6d;
}

/* Small variant for account page */
.bookmark-btn.small {
  padding: .2rem .5rem;
  font-size: .72rem;
}

/* Search card bookmark */
.studio-card-body .bookmark-btn {
  margin-top: .5rem;
  align-self: flex-start;
}

/* Profile toolbar bookmark */
.record-toolbar .bookmark-btn {
  margin-left: auto;
}

/* ── Account bookmarks panel ── */
.account-bookmarks-panel {
  margin-bottom: 1rem;
}
.account-bookmarks-panel .bookmark-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 .4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  margin-left: .4rem;
  vertical-align: middle;
}
.account-bookmark-studio {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
html[data-theme="light"] .account-bookmark-studio {
  border-bottom-color: rgba(15,23,42,.08);
}
.account-bookmark-studio:last-child {
  border-bottom: 0;
}
.account-bookmark-studio a:first-child {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  flex: 1;
}
.account-bookmark-studio a:first-child:hover {
  color: var(--accent);
}
.account-bookmark-studio span {
  color: var(--soft);
  font-size: .8rem;
}
.account-bookmark-studio .bookmark-btn {
  flex-shrink: 0;
}

/* Nearby page */
.nearby-page { padding: 0; }
.nearby-page .blueprint-hero { padding-inline: var(--page-pad); }
.blueprint-hero .nearby-actions { justify-content: flex-start; }
.app-page > .app-command-bar { margin: 0 0 1rem; }
.nearby-hero { display: flex; align-items: center; justify-content: center; min-height: auto; padding: clamp(1.5rem, 2.5vw, 2.5rem) var(--page-pad) clamp(1rem, 1.5vw, 1.5rem); text-align: center; }
.nearby-hero-inner { max-width: 520px; }
.nearby-hero .nearby-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, rgba(30,115,190,.2), rgba(30,115,190,.08)); border: 1px solid rgba(30,115,190,.25); font-size: 1.6rem; color: var(--accent); margin-bottom: 1.2rem; }
.nearby-hero h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.045em; margin: 0 0 var(--stack-md); }
.nearby-hero .lede { color: var(--muted); font-size: var(--text-base); line-height: 1.55; margin: 0 auto 1.4rem; max-width: 420px; }
.nearby-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.nearby-actions-bar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: 0 var(--page-pad) 1rem; }
.nearby-actions-bar .nearby-status { margin: 0; min-height: auto; }
.nearby-actions .button { display: inline-flex; align-items: center; gap: .45rem; padding: .85rem 1.4rem; border-radius: 14px; font-weight: 900; }
.nearby-btn-icon { font-size: 1.15rem; line-height: 1; }
.nearby-status { margin-top: 1rem; color: var(--muted); font-size: var(--text-sm); min-height: 1.8em; }
.nearby-hero.is-compact { min-height: auto; padding: clamp(1.5rem, 2.5vw, 2.5rem) var(--page-pad) clamp(1rem, 1.5vw, 1.5rem); align-items: start; justify-content: start; text-align: left; }
.nearby-hero.is-compact .nearby-hero-inner { max-width: none; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.nearby-hero.is-compact .nearby-icon { display: none; }
.nearby-hero.is-compact h1 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); margin: 0; }
.nearby-hero.is-compact .lede { display: none; }
.nearby-hero.is-compact .nearby-actions { margin: 0; }
.nearby-hero.is-compact .nearby-status { display: none; }

.nearby-results { padding: 0 1.2rem 2rem; }
.nearby-map-wrap { margin-bottom: 1.5rem; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); position: relative; }
.nearby-map { height: 280px; width: 100%; background: #0b0f18; }
.nearby-map-caption { position: absolute; bottom: .6rem; left: .6rem; z-index: 400; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: 10px; background: rgba(13,16,24,.92); border: 1px solid rgba(255,255,255,.12); font-size: .78rem; font-weight: 800; color: var(--soft); }
.nearby-map-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(30,115,190,.35); }

.nearby-results-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem; }
.nearby-section { min-width: 0; }
.nearby-section .app-panel-head span { color: var(--muted); font-size: .82rem; font-weight: 800; }
.nearby-studio-list { display: flex; flex-direction: column; gap: .55rem; }
.nearby-result-row { display: grid; grid-template-columns: 68px 1fr; gap: .85rem; align-items: center; padding: .75rem; border-radius: 16px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.nearby-result-row:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); }
.nearby-result-row img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; }
.nearby-result-info { min-width: 0; }
.nearby-result-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .15rem; }
.nearby-result-top strong { font-size: var(--text-base); font-weight: 900; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby-result-top span { font-size: .78rem; font-weight: 800; color: var(--accent); flex-shrink: 0; }
.nearby-result-meta { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby-result-rating { font-size: .78rem; color: var(--soft); margin-top: .15rem; }

.nearby-city-list { display: flex; flex-direction: column; gap: .35rem; }
.nearby-city-row { display: grid; grid-template-columns: 1fr auto; gap: .4rem .8rem; align-items: center; padding: .72rem .85rem; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.nearby-city-row:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); }
.nearby-city-name { font-size: var(--text-base); font-weight: 900; color: var(--text); grid-column: 1 / -1; }
.nearby-city-meta { font-size: .78rem; color: var(--muted); }
.nearby-city-dist { font-size: .78rem; font-weight: 800; color: var(--accent); }

@media (max-width: 1180px) {
  .nearby-results-inner { grid-template-columns: 1fr; }
  .nearby-hero.is-compact .nearby-hero-inner { grid-template-columns: 1fr auto; }
}
@media (max-width: 820px) {
  .nearby-hero { min-height: auto; padding: 1.25rem 1rem; }
  .nearby-hero h1 { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }
  .nearby-actions .button { width: 100%; justify-content: center; }
  .nearby-map { height: 220px; }
  .nearby-result-row { grid-template-columns: 56px 1fr; gap: .65rem; padding: .6rem; }
  .nearby-result-row img { width: 56px; height: 56px; }
  .nearby-result-top strong { font-size: var(--text-sm); }
  .nearby-hero.is-compact { padding: 1rem; }
  .nearby-hero.is-compact .nearby-hero-inner { grid-template-columns: 1fr; gap: .6rem; }
  .nearby-hero.is-compact h1 { font-size: 1.15rem; }
  .nearby-hero.is-compact .nearby-actions { display: none; }
}

/* Nearby cities infinite marquee */
.nearby-cities-preview { margin-top: 2rem; padding: 0 var(--page-pad); }
.nearby-page.app-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0;
}
.nearby-page .nearby-cities-preview {
  margin-top: 2rem;
  margin-bottom: 0;
  padding: 1rem var(--page-pad) 1.5rem;
}
.nearby-city-scroll { overflow: hidden; }
.nearby-city-track { display: flex; gap: .9rem; width: max-content; animation: marquee-scroll 40s linear infinite; will-change: transform; }
.nearby-city-track:hover { animation-play-state: paused; }
.nearby-city-track .collection-card { flex: 0 0 220px; min-height: 140px; }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Owner Inquiry Inbox ── */
.owner-inquiries-page .inquiries-list { display: grid; gap: 1rem; padding: 1.5rem; }
.inquiry-row { padding: 1.25rem; border-radius: 12px; }
.inquiry-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.inquiry-meta strong { font-size: 1.05rem; }
.inquiry-meta time { color: var(--muted); font-size: 0.85rem; margin-left: auto; }
.inquiry-client { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.inquiry-details { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.9rem; margin-bottom: 0.5rem; }
.inquiry-message { font-size: 0.95rem; line-height: 1.5; margin: 0.5rem 0; }
.inquiry-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.status-badge { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.25rem 0.6rem; border-radius: 999px; }
.status-badge.new { background: #e8f0fe; color: #1557b0; }
.status-badge.pending { background: #fff8e1; color: #7c4a03; }
.status-badge.confirmed { background: #e6f4ea; color: #137333; }
.status-badge.declined { background: #fce8e6; color: #c5221f; }
.status-badge.completed { background: #f3e8fd; color: #681da8; }

/* Desktop split-view map pane */

.app-results-map-pane {
  position: sticky;
  top: 190px;
  height: calc(100vh - 210px);
  min-height: 420px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: .75rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
}
.app-results-map-pane .results-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .92rem;
  font-weight: 800;
  color: var(--soft);
  padding: 0 .2rem;
}
.app-results-map-pane #results-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
}
.app-results-map-pane .results-map-surface {
  min-height: 0;
  height: 100%;
}

/* PWA install banner */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: rgba(13, 16, 24, .95);
  border-top: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px);
  font-size: .88rem;
  font-weight: 600;
}
.pwa-install-banner span { flex: 1; color: var(--soft); }
.pwa-install-banner .button {
  padding: .55rem 1rem;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 900;
  flex-shrink: 0;
}
.pwa-install-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: .2rem .4rem;
  flex-shrink: 0;
}
.pwa-install-close:hover { color: var(--text); }

html[data-theme="light"] .pwa-install-banner {
  background: rgba(255, 255, 255, .95);
  border-top-color: rgba(15, 23, 42, .1);
  color: #0b1020;
}
html[data-theme="light"] .pwa-install-banner span { color: #475569; }
html[data-theme="light"] .pwa-install-close { color: #8994a6; }
html[data-theme="light"] .pwa-install-close:hover { color: #0b1020; }

/* Avatar dropdown */
.avatar-dropdown { position: relative; }
.avatar-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  border: none; cursor: pointer; font-weight: 800; font-size: .82rem;
  letter-spacing: .01em; padding: 0; flex-shrink: 0;
}
.avatar-button:hover { filter: brightness(1.1); }
.avatar-menu {
  position: absolute; top: calc(100% + .35rem); right: 0;
  min-width: 190px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: none; flex-direction: column; overflow: hidden; z-index: 2000;
}
.avatar-dropdown.is-open .avatar-menu { display: flex; }
.avatar-menu a,
.avatar-menu form button {
  display: flex; align-items: center; gap: .55rem;
  padding: .65rem .85rem; text-decoration: none; color: var(--text);
  font-size: .88rem; font-weight: 700; background: none; border: none;
  cursor: pointer; width: 100%; text-align: left; font-family: inherit;
}
.avatar-menu a:hover,
.avatar-menu form button:hover { background: rgba(255,255,255,.07); }
.avatar-menu form { margin: 0; }
.avatar-menu form button { color: var(--muted); }

html[data-theme="light"] .avatar-menu {
  background: #fff; border-color: rgba(15,23,42,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
html[data-theme="light"] .avatar-menu a:hover,
html[data-theme="light"] .avatar-menu form button:hover { background: rgba(15,23,42,.06); }

/* Pagination */
.pagination-nav {
  padding: 1.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.pagination-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.35rem;
}
.pagination-inner a,
.pagination-inner span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--soft);
  transition: background 0.15s, color 0.15s;
}
.pagination-inner a:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text);
}
.pagination-current {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}
.pagination-ellipsis {
  color: var(--muted);
  cursor: default;
}
.pagination-prev,
.pagination-next {
  font-weight: 800 !important;
  padding: 0 0.9rem !important;
}
.pagination-prev.disabled,
.pagination-next.disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}
.pagination-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

html[data-theme="light"] .pagination-inner {
  background: #fff;
  border-color: rgba(15,23,42,.12);
}
html[data-theme="light"] .pagination-inner a:hover {
  background: rgba(15,23,42,.06);
  color: #0b1020;
}

@media (max-width: 820px) {
  .pwa-install-banner { padding: .75rem .8rem; font-size: .82rem; }
  .pwa-install-banner .button { padding: .5rem .85rem; }
  .pagination-inner a,
  .pagination-inner span {
    min-width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }
  .pagination-prev,
  .pagination-next {
    padding: 0 0.6rem !important;
  }
}
