/* ═══════════════════════════════════════════════════════════════
   Sites — Apple Spatial studio
   Map browse · detail · owner dashboard · publish wizard
   ═══════════════════════════════════════════════════════════════ */

.sites-studio,
.sites-detail,
.sites-dash {
  --c-blue: #0a84ff;
  --c-mint: #30d158;
  --c-amber: #ff9f0a;
  --c-fill: oklch(1 0 0 / 0.08);
  --c-fill-hi: oklch(1 0 0 / 0.12);
  --c-stroke: oklch(1 0 0 / 0.12);
  --c-stroke-hi: oklch(1 0 0 / 0.22);
  --c-label: oklch(0.93 0.01 260);
  --c-secondary: oklch(0.72 0.015 260);
  --c-tertiary: oklch(0.55 0.012 260);
  --c-radius: 22px;
  --c-radius-sm: 14px;
  --c-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --c-spring: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: calc(100dvh - var(--nav-h, 72px));
  padding-bottom: calc(var(--page-pb, 72px) + var(--mobile-nav-h, 0px));
  font-family: var(--font-ui), -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  color: var(--c-label);
  background:
    radial-gradient(90% 55% at 50% -8%, oklch(0.42 0.08 250 / 0.34), transparent 58%),
    radial-gradient(50% 40% at 100% 30%, oklch(0.4 0.06 200 / 0.12), transparent 55%),
    oklch(0.09 0.015 260);
}

.sites-studio__fx,
.sites-detail__fx,
.sites-dash__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.sites-studio__aurora,
.sites-detail__aurora,
.sites-dash__aurora {
  position: absolute;
  inset: -28% -18% auto;
  height: 68%;
  background:
    radial-gradient(42% 50% at 30% 40%, oklch(0.55 0.1 250 / 0.28), transparent 70%),
    radial-gradient(36% 42% at 72% 28%, oklch(0.58 0.06 200 / 0.14), transparent 68%);
  filter: blur(44px);
}
.sites-studio__inner,
.sites-detail__inner,
.sites-dash__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(14px, 2.5vw, 26px) var(--page-px, 20px) 0;
}

/* ── Hero ───────────────────────────────────────────────── */
.sites-hero { margin-bottom: clamp(14px, 2.5vw, 22px); }
.sites-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sites-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--c-stroke);
  border-radius: 980px;
  background: var(--c-fill);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: var(--c-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s var(--c-ease), color 0.2s ease;
}
.sites-hero__back:hover {
  background: var(--c-fill-hi);
  color: var(--c-label);
}
.sites-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 980px;
  border: 1px solid var(--c-stroke);
  background: var(--c-fill);
  color: var(--c-secondary);
  font-size: 12px;
  font-weight: 500;
}
.sites-hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 0 0 0 3px oklch(0.55 0.18 250 / 0.25);
}
.sites-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sites-hero__copy { display: grid; gap: 8px; max-width: 560px; }
.sites-hero__title {
  margin: 0;
  font-size: clamp(30px, 5.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--c-label);
}
.sites-hero__sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--c-secondary);
  max-width: 42ch;
}
.sites-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sites-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 980px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--c-spring), background 0.2s ease, border-color 0.2s ease;
}
.sites-btn:active { transform: scale(0.97); }
.sites-btn--primary {
  background: var(--c-blue);
  color: #fff;
  box-shadow: 0 8px 24px oklch(0.55 0.18 250 / 0.35);
}
.sites-btn--primary:hover { filter: brightness(1.06); }
.sites-btn--ghost {
  background: var(--c-fill);
  border-color: var(--c-stroke);
  color: var(--c-label);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.sites-btn--ghost:hover {
  background: var(--c-fill-hi);
  border-color: var(--c-stroke-hi);
}
.sites-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ── Segmented filters ───────────────────────────────────── */
.sites-seg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 10px;
  border-radius: 16px;
  border: 1px solid var(--c-stroke);
  background: oklch(1 0 0 / 0.05);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}
.sites-seg__btn {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--c-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.sites-seg__btn:hover { color: var(--c-label); background: oklch(1 0 0 / 0.06); }
.sites-seg__btn.on {
  background: oklch(1 0 0 / 0.12);
  color: var(--c-label);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.08);
}
.sites-seg__divider {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: var(--c-stroke);
  flex-shrink: 0;
}

.sites-types {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.sites-types::-webkit-scrollbar { display: none; }
.sites-type {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 980px;
  border: 1px solid var(--c-stroke);
  background: transparent;
  color: var(--c-tertiary);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.sites-type:hover { color: var(--c-secondary); border-color: var(--c-stroke-hi); }
.sites-type.on {
  background: oklch(0.55 0.18 250 / 0.22);
  border-color: oklch(0.55 0.18 250 / 0.45);
  color: #fff;
}

/* ── Layout: map + feed ──────────────────────────────────── */
.sites-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: clamp(14px, 2vw, 20px);
  align-items: start;
}

.sites-map-col { min-width: 0; }
.sites-map {
  position: relative;
  min-height: 520px;
  height: min(68vh, 720px);
  border-radius: var(--c-radius);
  overflow: hidden;
  border: 1px solid var(--c-stroke);
  background: #e8eaed;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.06) inset,
    0 20px 48px oklch(0 0 0 / 0.28);
}
.sites-map__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 520px;
  touch-action: none;
}
.sites-map__toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  pointer-events: none;
}
.sites-map__toolbar > * { pointer-events: auto; }
.sites-map__search {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 980px;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #1c1c1e;
  font: inherit;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.08);
  outline: none;
}
.sites-map__search:focus {
  box-shadow: 0 2px 16px rgba(10, 132, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.sites-map__loc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--c-blue);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
  transition: transform 0.18s var(--c-spring);
}
.sites-map__loc:hover { background: #f5f5f7; }
.sites-map__loc:active { transform: scale(0.94); }
.sites-map__fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 24px;
  text-align: center;
  color: #5f6368;
  font-size: 14px;
  background: #e8eaed;
  line-height: 1.55;
}
.sites-map__fallback strong {
  display: block;
  margin-bottom: 6px;
  color: #202124;
}
.sites-map__fallback p { margin: 0; color: #5f6368; }
.sites-map__loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.sites-map__orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-blue);
  animation: sites-orb 1.1s ease-in-out infinite;
}
@keyframes sites-orb {
  0%, 100% { transform: scale(0.85); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 1; }
}
.sites-map__hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--c-tertiary);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

/* Leaflet / map pins */
.cb-map-pin { background: transparent !important; border: 0 !important; }
.sites-map .leaflet-container,
.wizard-map .leaflet-container,
.opp-map-shell .leaflet-container {
  width: 100%;
  height: 100%;
  z-index: 1;
  font: inherit;
}
.sites-map .leaflet-control-container,
.wizard-map .leaflet-control-container,
.opp-map-shell .leaflet-control-container { z-index: 3; }

/* Selection sheet */
.sites-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid oklch(1 0 0 / 0.14);
  background: oklch(0.16 0.02 260 / 0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 16px 40px oklch(0 0 0 / 0.35), inset 0 1px 0 oklch(1 0 0 / 0.1);
  animation: sites-sheet-in 0.36s var(--c-spring) both;
}
@keyframes sites-sheet-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sites-sheet__meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-tertiary);
  margin-bottom: 6px;
}
.sites-sheet__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--c-label);
}
.sites-sheet__desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.sites-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sites-sheet__actions .sites-btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.sites-sheet__close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--c-stroke);
  background: var(--c-fill);
  color: var(--c-secondary);
  font-size: 14px;
  cursor: pointer;
}
.sites-sheet__close:hover { color: var(--c-label); background: var(--c-fill-hi); }

/* Feed */
.sites-feed-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sites-feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.sites-feed__title {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.sites-feed__count {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  background: var(--c-fill);
  border: 1px solid var(--c-stroke);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-secondary);
}
.sites-feed__loading,
.sites-feed__err,
.sites-feed__empty {
  padding: 18px 16px;
  border-radius: var(--c-radius-sm);
  border: 1px solid var(--c-stroke);
  background: var(--c-fill);
  color: var(--c-secondary);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 10px;
}
.sites-feed__err { color: #ff6961; border-color: oklch(0.65 0.18 25 / 0.35); }
.sites-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(68vh, 720px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.sites-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--c-stroke);
  background: oklch(1 0 0 / 0.05);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--c-spring);
}
.sites-card:hover {
  border-color: var(--c-stroke-hi);
  background: oklch(1 0 0 / 0.08);
  transform: translateY(-1px);
}
.sites-card.is-selected {
  border-color: oklch(0.55 0.18 250 / 0.55);
  background: oklch(0.55 0.18 250 / 0.12);
  box-shadow: 0 0 0 1px oklch(0.55 0.18 250 / 0.2);
}
.sites-card__thumb {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
  background:
    linear-gradient(145deg, oklch(0.28 0.04 250), oklch(0.18 0.02 260));
}
.sites-card__thumb--empty {
  box-shadow: inset 0 0 0 1px var(--c-stroke);
}
.sites-card__body { min-width: 0; display: grid; gap: 4px; align-content: start; }
.sites-card__meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-tertiary);
}
.sites-card__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--c-label);
}
.sites-card__req {
  font-size: 13px;
  color: var(--c-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sites-card__open {
  justify-self: start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sites-card__open:hover { text-decoration: underline; }

/* ── Detail page ─────────────────────────────────────────── */
.sites-detail .sites-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.sites-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 980px;
  border: 1px solid var(--c-stroke);
  background: var(--c-fill);
  font-size: 12px;
  font-weight: 550;
  color: var(--c-secondary);
  text-transform: capitalize;
}
.sites-chip--blue {
  color: #fff;
  background: oklch(0.55 0.18 250 / 0.28);
  border-color: oklch(0.55 0.18 250 / 0.4);
}
.sites-chip--mint {
  color: var(--c-mint);
  border-color: oklch(0.7 0.16 145 / 0.35);
  background: oklch(0.7 0.16 145 / 0.12);
}
.sites-chip--amber {
  color: var(--c-amber);
  border-color: oklch(0.75 0.14 70 / 0.4);
  background: oklch(0.75 0.14 70 / 0.12);
}

.sites-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.sites-gallery__hero,
.sites-gallery__side > * {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--c-stroke);
  object-fit: cover;
  background: oklch(1 0 0 / 0.05);
}
.sites-gallery__hero { height: min(42vw, 300px); min-height: 200px; }
.sites-gallery__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sites-gallery__side > * { flex: 1; min-height: 95px; }

.sites-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  padding-bottom: 40px;
}

.sites-panel {
  border-radius: 18px;
  border: 1px solid var(--c-stroke);
  background: oklch(1 0 0 / 0.05);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  padding: 18px 18px 16px;
  margin-bottom: 12px;
}
.sites-panel h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-tertiary);
}
.sites-panel p {
  margin: 0;
  color: var(--c-secondary);
  line-height: 1.65;
  font-size: 15px;
}
.sites-panel__meta {
  font-size: 13px;
  color: var(--c-tertiary);
  margin-bottom: 10px;
  line-height: 1.45;
}
.sites-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.sites-fund-amt {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--c-mint);
  line-height: 1;
  margin-bottom: 4px;
}
.sites-fund-track {
  height: 8px;
  border-radius: 980px;
  background: oklch(1 0 0 / 0.08);
  overflow: hidden;
  margin: 12px 0 14px;
}
.sites-fund-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c-blue), var(--c-mint));
  transition: width 0.4s var(--c-ease);
}
.sites-field {
  display: block;
  width: 100%;
  margin: 6px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--c-stroke);
  background: oklch(1 0 0 / 0.04);
  color: var(--c-label);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.sites-field:focus {
  border-color: oklch(0.55 0.18 250 / 0.55);
  box-shadow: 0 0 0 3px oklch(0.55 0.18 250 / 0.18);
}
.sites-field-label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: var(--c-tertiary);
  margin-bottom: 2px;
}

.sites-submission {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-stroke);
}
.sites-submission:last-child { border-bottom: 0; }
.sites-submission__title {
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--c-label);
  margin-bottom: 2px;
}
.sites-submission__meta {
  font-size: 12px;
  color: var(--c-tertiary);
  margin-bottom: 4px;
}
.sites-submission__blurb {
  font-size: 13px;
  color: var(--c-secondary);
  line-height: 1.45;
}
.sites-submission__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.sites-submission__actions .sites-btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}
.sites-submission__thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--c-stroke);
  flex-shrink: 0;
}

/* ── Owner dashboard ─────────────────────────────────────── */
.sites-dash .owner-shell,
.owner-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 48px;
}
.owner-side {
  border: 1px solid var(--c-stroke, oklch(1 0 0 / 0.12));
  border-radius: 18px;
  background: oklch(1 0 0 / 0.05);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  padding: 10px;
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-h, 72px) + 12px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.owner-side button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--c-secondary, var(--text-dim));
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, color 0.15s ease;
}
.owner-side button:hover {
  background: oklch(1 0 0 / 0.06);
  color: var(--c-label, var(--text));
}
.owner-side button.on {
  background: oklch(0.55 0.18 250 / 0.2);
  color: #fff;
}

.opp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.opp-stat {
  border: 1px solid var(--c-stroke, var(--border));
  border-radius: 16px;
  padding: 14px 16px;
  background: oklch(1 0 0 / 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.opp-stat .v {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--c-mint, var(--lime));
  line-height: 1.1;
}
.opp-stat .l {
  font-size: 11px;
  font-weight: 550;
  color: var(--c-tertiary, var(--text-faint));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Legacy section / card / wizard (dashboard + publish) */
.opp-screen { padding-bottom: 100px; }
.opp-hero {
  padding: calc(var(--nav-h, 72px) + 28px) var(--page-px, 24px) 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.opp-hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--c-label, var(--text));
}
.opp-hero p {
  color: var(--c-secondary, var(--text-dim));
  max-width: 560px;
  line-height: 1.55;
  margin: 0;
  font-size: 15px;
}

.opp-section,
.sites-dash .opp-section {
  background: oklch(1 0 0 / 0.05);
  border: 1px solid var(--c-stroke, var(--border));
  border-radius: 16px;
  padding: 18px 18px;
  margin-bottom: 12px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.opp-section h3 {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-tertiary, var(--violet));
  margin: 0 0 10px;
}

.opp-feed { display: flex; flex-direction: column; gap: 10px; }
.opp-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--c-stroke, var(--border));
  background: oklch(1 0 0 / 0.05);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.opp-card:hover {
  border-color: var(--c-stroke-hi, var(--violet));
  transform: translateY(-1px);
}
.opp-card-thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  background: oklch(0.22 0.03 250);
}
.opp-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--c-label, var(--text));
}
.opp-card-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-tertiary, var(--text-faint));
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.opp-card-req {
  font-size: 13px;
  color: var(--c-secondary, var(--text-dim));
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opp-map-shell {
  position: relative;
  min-height: 360px;
  height: min(52vh, 480px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--c-stroke, var(--border));
  background: #e8eaed;
}
.opp-map-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #5f6368;
  font-size: 13px;
  background: #e8eaed;
  line-height: 1.55;
}
.opp-map-hint {
  font-size: 12px;
  color: var(--c-tertiary, var(--text-faint));
  margin: 10px 0 0;
  line-height: 1.45;
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.wizard-step-pill {
  font-size: 11px;
  font-weight: 550;
  padding: 6px 10px;
  border-radius: 980px;
  border: 1px solid var(--c-stroke, var(--border));
  color: var(--c-tertiary, var(--text-faint));
}
.wizard-step-pill.on {
  color: #fff;
  border-color: oklch(0.55 0.18 250 / 0.5);
  background: oklch(0.55 0.18 250 / 0.28);
}
.wizard-step-pill.done {
  color: var(--c-mint, var(--lime));
  border-color: oklch(0.7 0.16 145 / 0.4);
}

.wizard-panel {
  border: 1px solid var(--c-stroke, var(--border));
  border-radius: 18px;
  background: oklch(1 0 0 / 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 20px;
}
.wizard-panel label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-tertiary, var(--text-faint));
  margin: 0 0 6px;
}
.wizard-panel input,
.wizard-panel textarea,
.wizard-panel select {
  width: 100%;
  background: oklch(1 0 0 / 0.04);
  border: 1px solid var(--c-stroke, var(--border));
  border-radius: 12px;
  color: var(--c-label, var(--text));
  padding: 12px 14px;
  margin-bottom: 14px;
  font: inherit;
}
.wizard-panel textarea { min-height: 120px; resize: vertical; }
.wizard-map {
  position: relative;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--c-stroke, var(--border));
  margin-bottom: 12px;
  background: #e8eaed;
}
.wizard-map--tall { height: min(52vh, 480px); min-height: 360px; }
.wizard-map > div {
  width: 100% !important;
  height: 100% !important;
}
.wizard-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
  flex-wrap: wrap;
}

.submission-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-stroke, var(--border));
}
.submission-row:last-child { border-bottom: 0; }
.submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* Legacy aliases used by map helpers / tours */
.opp-map-shell .opp-sheet { z-index: 5; }
.opp-filters { margin: 0 0 14px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .sites-layout { grid-template-columns: 1fr; }
  .sites-map {
    min-height: 420px;
    height: min(58vh, 560px);
  }
  .sites-map__canvas { min-height: 420px; }
  .sites-feed { max-height: none; }
  .sites-detail-grid { grid-template-columns: 1fr; }
  .sites-gallery { grid-template-columns: 1fr; }
  .sites-gallery__hero { height: 220px; }
  .sites-gallery__side { flex-direction: row; }
  .sites-gallery__side > * { height: 110px; }
}

@media (max-width: 800px) {
  .owner-shell,
  .sites-dash .owner-shell {
    grid-template-columns: 1fr;
  }
  .owner-side {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .owner-side::-webkit-scrollbar { display: none; }
  .owner-side button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    padding: 10px 14px;
  }
}

@media (max-width: 640px) {
  .sites-studio__inner,
  .sites-detail__inner,
  .sites-dash__inner {
    padding-left: 14px;
    padding-right: 14px;
  }
  .sites-hero__row { align-items: stretch; }
  .sites-hero__actions { width: 100%; }
  .sites-hero__actions .sites-btn { flex: 1; }
  .sites-hero__title { font-size: clamp(26px, 8vw, 34px); }
  .sites-seg { gap: 2px; }
  .sites-seg__btn { padding: 0 10px; font-size: 12px; min-height: 32px; }
  .sites-seg__divider { display: none; }
  .sites-map {
    min-height: 360px;
    height: min(52vh, 480px);
    border-radius: 18px;
  }
  .sites-map__canvas { min-height: 360px; }
  .sites-map__search { font-size: 15px; padding: 11px 14px; }
  .sites-sheet { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
  .sites-sheet__actions .sites-btn { flex: 1 1 auto; }
  .sites-sheet__close { margin-left: 0; }
  .sites-card {
    grid-template-columns: 76px 1fr;
    gap: 10px;
    padding: 10px;
  }
  .sites-card__thumb { width: 76px; height: 76px; border-radius: 12px; }
  .sites-card__title { font-size: 15px; }
}

@media (max-width: 380px) {
  .sites-hero__actions { flex-direction: column; }
  .sites-card { grid-template-columns: 1fr; }
  .sites-card__thumb {
    width: 100%;
    height: 140px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .sites-map {
    min-height: 280px;
    height: min(70vh, 420px);
  }
  .sites-map__canvas { min-height: 280px; }
  .sites-layout { grid-template-columns: 1.2fr 0.8fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sites-sheet,
  .sites-map__orb,
  .sites-card,
  .sites-btn { animation: none !important; transition: none !important; }
}
