:root {
  --ink: #1c1916;
  --ink-soft: #6b635a;
  --muted: #6b635a;
  --paper: #f6f1e8;
  --card: #fffdf8;
  --line: #e4d9c8;
  --accent: #9a7b3c;
  --accent-2: #c4a574;
  --accent-soft: #f3ebe0;
  --online: #6b635a;
  --video: #9a7b3c;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(40, 30, 10, 0.05);
  --shadow-hover: 0 16px 40px rgba(40, 30, 10, 0.1);
  --font: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --display: "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Author display:flex on .control-row must not defeat HTML hidden */
[hidden] {
  display: none !important;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 560px at 8% -8%, #e4d7f8 0%, transparent 55%),
    radial-gradient(800px 480px at 100% 0%, #f7e0cf 0%, transparent 48%),
    radial-gradient(600px 400px at 50% 100%, #e8f0f0 0%, transparent 40%),
    var(--paper);
}

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

.modes { display: none; }

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.25rem 1.25rem 3.5rem;
}

/* —— Hero (compact for investor scan) —— */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0.35rem 0 0.85rem;
  min-height: auto;
  overflow: hidden;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  background:
    linear-gradient(120deg, rgba(255, 252, 249, 0.92) 0%, rgba(239, 232, 248, 0.75) 55%, rgba(248, 230, 216, 0.55) 100%);
  border: 1px solid rgba(232, 224, 214, 0.9);
  box-shadow: var(--shadow);
}
.hero-compact { min-height: 0; }
.hero-copy { position: relative; z-index: 1; max-width: 36rem; }
.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.5vw, 1.95rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
  line-height: 1.15;
}
.lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 34rem;
}
.hero-orb {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(28vw, 160px);
  height: min(28vw, 160px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0%, transparent 35%),
    radial-gradient(circle at 60% 70%, #c45c26 0%, transparent 45%),
    radial-gradient(circle at 40% 50%, #5b3d8a 0%, #2a1f3d 70%);
  opacity: 0.4;
  filter: blur(2px);
  pointer-events: none;
}

/* —— Controls —— */
.controls {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.35rem;
}
.controls.glass {
  background: var(--card);
}
.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}
.search-wrap {
  display: flex;
  flex: 1;
  min-width: 220px;
  gap: 0.4rem;
}
#place-search {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.78rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
#place-search:focus {
  outline: 2px solid rgba(91, 61, 138, 0.35);
  border-color: var(--accent);
}
.btn {
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: linear-gradient(165deg, #6b4a9e 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(91, 61, 138, 0.28);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost {
  background: var(--accent-soft);
  color: var(--accent);
}
.btn.ghost:hover { filter: brightness(0.98); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-end;
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}
.filter {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.filter select {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  background: #fff;
  min-width: 8.5rem;
}
.loc-status {
  margin: 0;
  flex: 1;
  min-width: 12rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  align-self: center;
}

/*
 * Location / studio chrome is ONLY for In studio.
 * Use both body.mode-* and #geo-controls.is-online so cached CSS or
 * display:flex on .control-row cannot leave zip UI on Live/Video.
 */
body.mode-live #place-row,
body.mode-video #place-row,
body.mode-live #metro-row,
body.mode-video #metro-row,
body.mode-live #browse-tabs,
body.mode-video #browse-tabs,
body.mode-live #near-filters,
body.mode-video #near-filters,
body.mode-live #grow-tools,
body.mode-video #grow-tools,
body.mode-live #radius-filter,
body.mode-video #radius-filter,
body.mode-live #loc-status,
body.mode-video #loc-status,
body.mode-video #when-chips,
body.mode-video #tod-chips,
body.mode-live #tod-chips,
body.mode-video #sort-filter,
/* Hard class on controls panel (set by JS) */
#geo-controls.is-online #place-row,
#geo-controls.is-online #metro-row,
#geo-controls.is-online #browse-tabs,
#geo-controls.is-online #near-filters,
#geo-controls.is-online #grow-tools,
#geo-controls.is-online #radius-filter,
#geo-controls.is-online #loc-status,
#geo-controls.is-online #tod-chips,
#geo-controls.is-video #when-chips,
#geo-controls.is-video #tod-chips,
#geo-controls.is-video #near-filters,
#geo-controls.is-video #place-row,
#geo-controls.is-video #browse-tabs,
#geo-controls.is-video #grow-tools,
.studio-only-chrome.is-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}

#geo-controls.is-online,
#geo-controls.is-video {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
#geo-controls.is-online .omnibox-row,
#geo-controls.is-video .omnibox-row {
  margin-top: 0;
}
body.mode-live .practice-as,
body.mode-video .practice-as {
  margin-bottom: 0.65rem;
}
body.mode-live .mode-banner,
body.mode-video .mode-banner {
  margin-bottom: 0.75rem;
}
body.mode-live #results,
body.mode-video #results {
  min-height: 40vh;
}

/* Practice-as switcher — four ways in */
.practice-as {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem 1.05rem;
}
.practice-as-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.practice-as-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.practice-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  min-height: 4.4rem;
}
.practice-icon { display: none; }
.practice-tab:hover {
  border-color: #c9b8ea;
  transform: translateY(-1px);
}
.practice-tab.on {
  border-color: var(--accent);
  background: linear-gradient(165deg, #faf7ff, #fff);
  box-shadow: 0 6px 18px rgba(91, 61, 138, 0.14);
}
.practice-icon { font-size: 1.1rem; line-height: 1; }
.practice-name {
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--ink);
}
.practice-tab.on .practice-name { color: var(--accent); }
.practice-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}
@media (max-width: 720px) {
  .practice-as {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.75rem 0.75rem;
    backdrop-filter: blur(10px);
    background: rgba(255, 252, 249, 0.92);
    border-radius: 0 0 16px 16px;
  }
  .practice-as-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .practice-tab {
    min-height: 4.25rem;
    padding: 0.6rem 0.65rem;
  }
  .practice-sub { font-size: 0.7rem; }
  .metro-chips {
    margin: 0 -0.15rem;
    padding-left: 0.1rem;
  }
  .trust-strip {
    font-size: 0.72rem !important;
  }
}
.mode-banner {
  margin: 0 0 1rem;
}
.mode-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.mode-banner-inner.live {
  background: linear-gradient(120deg, #fff7f5, #faf7ff);
  border-color: #f0d0c8;
}
.mode-banner-inner.video {
  background: linear-gradient(120deg, #f7f9ff, #faf7ff);
}
.mode-banner-inner strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.mode-banner-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 28rem;
}
.mode-banner-inner .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.live-room-foot {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
.live-room-foot a {
  color: var(--accent);
  font-weight: 650;
}
.text-link {
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Omnibox + browse tabs (Mindbody-inspired) */
.omnibox-row {
  margin-top: 0.75rem;
}
#class-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.78rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
#class-search:focus {
  outline: 2px solid rgba(91, 61, 138, 0.35);
  border-color: var(--accent);
}
.browse-tabs {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.75rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  width: fit-content;
  max-width: 100%;
}
.browse-tab {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 650;
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}
.browse-tab.on {
  background: var(--ink);
  color: #fff;
}
.tod-chips { margin-top: 0.5rem; }
.decision-strip {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
}
.badge.spots {
  background: #e8f3ff;
  color: #1a5f9e;
}
.badge.spots.tight {
  background: #fde8e4;
  color: #b33a22;
}
.entity-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .entity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.entity-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(26, 21, 35, 0.05);
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0;
}
.teacher-entity {
  grid-template-columns: 1fr;
}
.entity-card .studio-cover {
  width: 5.5rem;
  height: 100%;
  min-height: 7rem;
  object-fit: cover;
  border-radius: 0;
}
.entity-card .studio-cover.placeholder,
.entity-card .studio-cover.logo-only {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  width: 5.5rem;
  min-height: 7rem;
}
.entity-card .studio-cover.logo-only img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}
.entity-body {
  padding: 0.85rem 1rem;
  min-width: 0;
}
.entity-head {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.entity-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.entity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
  align-items: center;
}
.link-soft {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--accent);
  text-decoration: none;
}
.link-soft:hover { text-decoration: underline; }
.teacher-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  background: var(--accent-soft);
}
.teacher-avatar.mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
}
.teacher-avatar.quiet {
  background: linear-gradient(180deg, #f3eee6 0%, #e8e0d4 100%);
  box-shadow: none;
  border: 1px solid var(--line);
}
.teacher-avatar.quiet.waiting {
  animation: photo-pulse 1.2s ease-in-out infinite;
}
@keyframes photo-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.empty.photo-wait {
  margin-bottom: 0.75rem;
}
.teacher-upcoming {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Metro chips — national demo density */
.metro-row {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}
.metro-label {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.metro-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}
.metro-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}
.metro-chip.is-demo:not(.on) {
  border-style: dashed;
}
.demo-banner {
  margin: 0 0 0.85rem;
}
.demo-banner-inner {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px dashed #d4c8f0;
  background: linear-gradient(120deg, #faf7ff, #fff9f4);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.demo-banner-inner.live-metro {
  border-style: solid;
  border-color: #c8e0d0;
  background: linear-gradient(120deg, #f4fbf6, #faf7ff);
}
.demo-banner-inner strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.demo-banner-inner p { margin: 0; }
.trust-strip {
  margin: 0.25rem 0 0 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  letter-spacing: 0.01em;
}
.card-trust {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.badge.spots.soft {
  background: #f0eef6;
  color: var(--ink-soft);
}
.live-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #e23d3d;
  margin-right: 0.35rem;
  box-shadow: 0 0 0 3px rgba(226, 61, 61, 0.2);
  animation: live-pulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.card.always-on {
  border-color: var(--line);
}
.live-always-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0.75rem;
  grid-column: 1 / -1;
}
.live-always-sub {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.live-always-grid {
  display: contents;
}
.day-head.day-sub {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.35rem;
}
.live-room-foot {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.live-room-foot a { color: var(--accent); font-weight: 650; }
.empty-metro-jump { margin-top: 1.1rem; }
.text-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Quick filter chips — investor-demo obvious */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.chip:hover {
  border-color: #c9b8ea;
  color: var(--accent);
}
.chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 61, 138, 0.22);
}

.how-it-works { display: none; }

.filters-compact {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}
.book-policy {
  margin: 0.2rem 0 0 !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: var(--muted) !important;
}
.results-meta-main { min-width: 0; }

/* Next up curated strip */
.next-up {
  margin: 0 0 1.35rem;
}
.next-up-title {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
}
.next-up-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .next-up-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .next-up-grid .card.rich {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  .next-up-grid .class-cover {
    width: 100%;
    min-height: 7.5rem;
    max-height: 8.5rem;
  }
  .next-up-grid .card-actions {
    max-width: none;
    min-width: 0;
    padding: 0 0.85rem 0.85rem;
    background: transparent;
  }
  .next-up-grid .book { width: 100%; }
}
.pick-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.all-classes-head {
  margin-top: 0.25rem !important;
  font-size: 1.2rem !important;
}

.grow-tools {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--line);
}
/* Public visitors never see coverage/admin tooling */
.grow-tools.ops-only { display: none !important; }
body:not(.ops-mode) #grow-tools,
body:not(.ops-mode) #ingest-area,
body:not(.ops-mode) .ingest-row,
body:not(.ops-mode) .ingest-hint { display: none !important; }
body.ops-mode .grow-tools.ops-only { display: block !important; }

/* Quiet filter drawer — default first screen is paths + city */
.more-filters {
  margin-top: 0.75rem;
}
.more-filters > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0;
  user-select: none;
  width: max-content;
}
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters > summary::after {
  content: " ·";
  color: transparent;
}
.more-filters[open] > summary { color: var(--ink-soft); margin-bottom: 0.55rem; }
.more-filters-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.more-filters .filters { margin-top: 0.25rem; padding-top: 0.65rem; }

/* Public: never ship the swipe deck */
#vibe-swipe {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.video-swipe-cta { display: none !important; }
.ask-place { max-width: 28rem; }
.grow-tools.ops-only summary {
  opacity: 0.72;
  font-size: 0.78rem;
}
.grow-tools summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  list-style: none;
  user-select: none;
}
.grow-tools summary::-webkit-details-marker { display: none; }
.grow-tools summary::before {
  content: "▸ ";
  color: var(--accent);
}
.grow-tools[open] summary::before { content: "▾ "; }
.grow-tools[open] summary { color: var(--accent); margin-bottom: 0.55rem; }

.ingest-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.ingest-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  flex: 1;
  min-width: 12rem;
}
.ingest-row .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ingest-panel {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid #d4c8f0;
  background: linear-gradient(180deg, #faf7ff 0%, #fff 100%);
}
.ingest-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}
.ingest-head strong { color: var(--ink); }
#ingest-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}
.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #ebe4f7;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6 60%, #c45c26);
  transition: width 0.35s ease;
}
.ingest-log {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  max-height: 9.5rem;
  overflow-y: auto;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.ingest-log li {
  padding: 0.28rem 0;
  border-bottom: 1px solid #f0ebe4;
  line-height: 1.35;
}
.ingest-log li:last-child { border-bottom: 0; }
.ingest-log li.ok { color: #0d6e6e; font-weight: 600; }
.ingest-log li.err { color: #8a3a4a; font-weight: 600; }
.ingest-log li .tick {
  display: inline-block;
  width: 1.1rem;
  color: var(--accent);
  font-weight: 700;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.results-meta p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); font-weight: 600; }
.freshness { font-size: 0.8rem !important; color: var(--muted) !important; font-weight: 500 !important; }

/* —— Class cards (photo-first) —— */
.results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.day-head {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 1.15rem 0 0.15rem;
  color: var(--ink);
  grid-column: 1 / -1;
}
.day-head:first-child { margin-top: 0; }

.card {
  display: grid;
  grid-template-columns: 9.5rem 1fr auto;
  gap: 0;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(26, 21, 35, 0.05);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.card.rich,
.card.video {
  grid-template-columns: 10.5rem 1fr auto;
}
.card:hover {
  border-color: #d0c0ee;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.class-cover {
  width: 10.5rem;
  min-height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #dccff3, #f3d9c4);
  align-self: stretch;
  position: relative;
}
.class-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 8.5rem;
}
.class-cover.logo-only {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  padding: 1rem;
}
.class-cover.logo-only img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  min-height: 0;
  border-radius: 12px;
}
.class-cover.placeholder {
  background:
    radial-gradient(circle at 30% 28%, #e8dcff 0%, transparent 48%),
    linear-gradient(155deg, #c9b4ec 0%, #e8a882 55%, #5b3d8a 120%);
}
.class-cover.mono-cover {
  display: grid;
  place-items: center;
}
.class-cover.mono-cover span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}
.class-cover.placeholder:not(.mono-cover)::after {
  content: "yoga";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

.card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem 0.9rem 1rem;
}
.time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  line-height: 1.2;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.35rem;
  background: linear-gradient(165deg, #6b4a9e, var(--accent));
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  width: fit-content;
}
.time .ampm { font-size: 0.68rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.time .dur { font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.75); }

.card h3 {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.decision-facts {
  margin-top: 0.35rem !important;
}
.blurb {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 38rem;
}
.where {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}
.meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.meta.room { font-size: 0.82rem; }
.teacher-name {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.studio-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}
a.studio-name, .entity-head h3 a, a.studio-room, a.studio-page-link {
  color: inherit;
  text-decoration: none;
}
a.studio-name:hover, .entity-head h3 a:hover, a.studio-room:hover, a.studio-page-link:hover {
  text-decoration: underline;
}
.who-text { min-width: 0; }

.who {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.45rem 0 0.1rem;
}
.studio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}
.studio-link:hover { color: var(--accent); }
.studio-link.static { cursor: default; }
.studio-logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.studio-logo.mono,
.teacher-photo.mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 0;
}
.teacher-line {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.teacher-photo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  flex-shrink: 0;
  background: var(--accent-soft);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.badge {
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.online { background: #e0f4f3; color: var(--online); }
.badge.video { background: #f8e8ec; color: var(--video); }
.badge.price { background: #f3efe8; color: var(--ink-soft); }
.badge.price.free {
  background: #dcf5ee;
  color: #0a6b52;
}
.badge.price.deal {
  background: #fff3e0;
  color: #a85a12;
}
.badge.heat {
  background: #fde8e4;
  color: #b33a22;
}
.badge.level { background: #ebe4f7; color: var(--accent); }
.badge.style { background: #f0ebe4; color: var(--ink-soft); text-transform: none; letter-spacing: 0.01em; font-weight: 650; }

.card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.45rem;
  min-width: 8.25rem;
  max-width: 10.5rem;
  padding: 0.9rem 0.95rem 0.9rem 0;
  background: linear-gradient(180deg, transparent, rgba(239, 232, 248, 0.35));
}
.dist {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
.book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.25;
  padding: 0.72rem 0.7rem;
  border-radius: 12px;
  white-space: normal;
  min-height: 2.75rem;
  box-shadow: 0 4px 12px rgba(20, 16, 28, 0.18);
  font-family: inherit;
  border: 0;
  cursor: pointer;
  width: 100%;
}
.book:hover { background: var(--accent); }
.link-studio { display: none; }
.yt-optional-row {
  margin: 0;
  text-align: center;
  line-height: 1.3;
}
.yt-optional {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
  text-decoration: none;
}
.yt-optional:hover {
  color: var(--ink);
  text-decoration: underline;
}

.practice-dock {
  margin: 0 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0.5rem;
  z-index: 30;
}
.practice-play-gate {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #140f0a;
}
.practice-play-gate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.practice-play-hit {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 5.75rem;
  min-height: 3.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
}
.practice-play-gate:hover .practice-play-hit {
  background: var(--paper);
}
.practice-frame {
  aspect-ratio: 16 / 9;
  background: #140f0a;
}
.practice-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.yt-more {
  margin-top: 0.45rem;
}
.yt-more summary {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--muted);
  list-style: none;
}
.yt-more summary::-webkit-details-marker { display: none; }
body.mode-live .hero-photos,
body.mode-video .hero-photos {
  display: none !important;
}
.practice-player-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1rem 1rem;
}
.practice-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.practice-player-meta h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.practice-player-meta p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.practice-close {
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}
.practice-close:hover { background: var(--accent-soft); }
@media (max-width: 640px) {
  .practice-dock { margin: 0 0.75rem 1rem; top: 0; }
  .practice-player-meta { flex-direction: column; align-items: stretch; }
  .practice-play-hit {
    min-height: 56px;
    min-width: 7rem;
    font-size: 1.12rem;
    padding: 0.95rem 1.9rem;
  }
  .book {
    min-height: 48px;
  }
  body.mode-live .hero,
  body.mode-video .hero {
    display: none;
  }
}

.thumb {
  width: 5.5rem;
  height: 3.8rem;
  object-fit: cover;
  border-radius: 8px;
  background: var(--line);
}

.empty {
  text-align: center;
  padding: 2.75rem 1.4rem;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.empty strong { color: var(--ink); }
.empty > strong:first-child {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
  font-family: var(--display);
  font-weight: 600;
}
.queue-note {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.queue-note strong { color: var(--accent); }
.queue-hint {
  margin: 0.9rem auto 0;
  max-width: 26rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.queue-note.grow-active {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  border: 1px solid #ddd0f0;
}

.studios-near {
  margin-top: 2.25rem;
}
.studios-near h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0 0 0.85rem;
}
.studios-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.studio-card {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  padding: 0.55rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(26, 21, 35, 0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.studio-card.rich { display: grid; grid-template-columns: 5.75rem 1fr; }
.studio-card:hover {
  border-color: #d4c8f0;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.studio-card .book-mini {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.studio-card .book-mini:hover { text-decoration: underline; }
.studio-card strong { display: block; font-size: 0.98rem; }
.studio-card span { font-size: 0.85rem; color: var(--ink-soft); }
.studio-cover {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(145deg, #e9dff8, #f8e6d8);
}
.studio-cover.placeholder { display: block; }
.studio-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.3rem 0.4rem 0.3rem 0;
  min-width: 0;
}
.studio-card-head {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.studio-card-head .studio-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
}

.foot { display: none; }
.fine { font-size: 0.8rem; }

.more-paths {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.more-paths h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin: 0 0 0.9rem;
}
.more-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.more-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.15rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-height: 7rem;
}
.more-card.visual {
  background:
    linear-gradient(165deg, rgba(255,252,249,0.95), rgba(239,232,248,0.65));
}
.more-card:hover {
  border-color: #d4c8f0;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.more-emoji { font-size: 1.35rem; line-height: 1; }
.more-card strong {
  font-size: 1.08rem;
  color: var(--accent);
}
.more-card span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-visual {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0.85rem 1rem;
    margin-bottom: 0.7rem;
  }
  .hero-orb {
    width: 100px;
    height: 100px;
    right: -24px;
    opacity: 0.28;
  }
  .hero h1 { font-size: 1.4rem; }
  .lede { font-size: 0.9rem; }

  /* Mobile card: body first, small media, full-width CTA */
  .card.rich,
  .card.video {
    grid-template-columns: minmax(0, 1fr) 4.5rem;
    grid-template-areas:
      "body media"
      "actions actions";
    gap: 0.35rem 0.65rem;
    padding: 0.85rem 0.85rem 0.75rem;
  }
  .class-cover {
    grid-area: media;
    width: 4.5rem;
    height: 4.5rem;
    min-height: 4.5rem;
    border-radius: 12px;
    align-self: start;
  }
  .class-cover img {
    min-height: 4.5rem;
    height: 4.5rem;
  }
  .class-cover.logo-only img {
    width: 2.5rem;
    height: 2.5rem;
  }
  .card-body {
    grid-area: body;
    padding: 0;
    min-width: 0;
  }
  .card-actions {
    grid-area: actions;
    grid-column: auto;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    max-width: none;
    min-width: 0;
    padding: 0.35rem 0 0;
    background: transparent;
  }
  .book {
    flex: 1;
    max-width: none;
    width: 100%;
    min-height: 48px;
    white-space: nowrap;
    font-size: 0.88rem;
  }
  .blurb {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .time-row .dist { display: none; }
  .controls { padding: 0.85rem 0.9rem; margin-bottom: 0.9rem; }
  .results-meta { margin-bottom: 0.55rem; }
  .next-up { margin-bottom: 1rem; }
}

@media (max-width: 480px) {
  main { padding-left: 1rem; padding-right: 1rem; }
  .hero h1 { font-size: 1.35rem; }
  .chip { font-size: 0.78rem; padding: 0.38rem 0.7rem; }
  .practice-as-label { font-size: 0.68rem; }
  .practice-name { font-size: 0.88rem; }
  .hero-compact { margin-bottom: 0.5rem; }
  .card-trust { font-size: 0.72rem; }
  /* Discover CTA full-width on phone */
  .video-swipe-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .video-swipe-cta .btn {
    width: 100%;
    min-height: 48px;
  }
}

a.studio-page-link {
  color: inherit;
  text-decoration: none;
}
a.studio-page-link:hover,
a.studio-page-link:focus {
  text-decoration: underline;
}
.studio-page { max-width: 52rem; margin: 0 auto; padding: 0 1.25rem 3rem; }
.studio-hero {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  margin: 0.75rem 0 1.25rem;
}
.studio-hero-cover {
  width: 7.5rem;
  min-height: 7.5rem;
  border-radius: 18px;
  overflow: hidden;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}
.studio-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.studio-hero-copy h1 { margin: 0 0 0.35rem; font-family: Fraunces, serif; font-size: 1.85rem; }
.claim-room { min-height: 0; }
@media (max-width: 640px) {
  .studio-hero { grid-template-columns: 1fr; }
  .studio-hero-cover { width: 100%; min-height: 8rem; }
}


/* Visitor wait — determinate bar, honest time, then finished empty */
.week-wait-track {
  height: 10px;
  max-width: 22rem;
  margin: 0.85rem auto 0;
  border-radius: 999px;
  background: var(--line, #efe6d4);
  overflow: hidden;
}
.week-wait-bar {
  height: 100%;
  width: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft, #ddd0f0), var(--accent, #6b4aa0));
  animation: week-wait-fill 15s linear forwards;
}
@keyframes week-wait-fill {
  from { width: 12%; }
  to { width: 99%; }
}
.week-wait-time {
  margin: 0.55rem auto 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Free teachers rail (main course on Free video) */
.free-teachers-rail {
  margin: 12px 18px 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(228, 217, 200, 0.9);
}
.free-teachers-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.free-teachers-head p {
  margin: 4px 0 12px;
  color: #6b635a;
  font-size: 0.92rem;
}
.free-teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.teacher-entity.free-teacher {
  border-color: rgba(154, 123, 60, 0.35);
  box-shadow: 0 8px 24px rgba(154, 123, 60, 0.08);
}
.enrich-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3ebe0;
  color: #3a3228;
  font-size: 0.92rem;
}
