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

:root {
  --wz-primary: #1f3a5f;
  --wz-primary-dark: #14263f;
  --wz-primary-light: #eaf1f7;
  --wz-primary-ring: rgba(31, 58, 95, 0.16);

  --wz-gray-50: #f9fafb;
  --wz-gray-100: #f3f4f6;
  --wz-gray-200: #e5e7eb;
  --wz-gray-300: #d1d5db;
  --wz-gray-400: #9ca3af;
  --wz-gray-500: #6b7280;
  --wz-gray-600: #4b5563;
  --wz-gray-700: #374151;
  --wz-gray-800: #1e293b;
  --wz-gray-900: #0f172a;

  --wz-success: #3f7f6f;
  --wz-warning: #f59e0b;
  --wz-danger: #ef4444;
  --wz-info: #3b82f6;

  --wz-surface: #ffffff;
  --wz-surface-muted: #f8fafc;
  --wz-bg: #f8fafc;

  --wz-font: 'Inter', system-ui, -apple-system, sans-serif;

  --wz-space-1: 0.25rem;
  --wz-space-2: 0.5rem;
  --wz-space-3: 0.75rem;
  --wz-space-4: 1rem;
  --wz-space-5: 1.5rem;
  --wz-space-6: 2rem;
  --wz-space-7: 3rem;
  --wz-space-8: 4rem;

  --wz-radius-sm: 0.375rem;
  --wz-radius-md: 0.5rem;
  --wz-radius-lg: 0.75rem;
  --wz-radius-xl: 1rem;
  --wz-radius-2xl: 1.25rem;

  --wz-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --wz-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --wz-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.03);
  --wz-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.03);

  --wz-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --wz-duration: 150ms;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--wz-bg);
  color: var(--wz-gray-900);
  line-height: 1.5;
}

main {
  min-width: 0;
}

main:focus {
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Accessibility utilities ── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: #fafafa;
  color: #09090b;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

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

/* ── Focus-visible outlines ── */

:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.app-nav-links a[aria-current="page"] {
  color: #fff;
  border-bottom: 2px solid #8fb5a7;
  padding-bottom: 0.15rem;
}

code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  color: #d4d4d8;
}

.app-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #09090b;
}

.app-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 90rem) {
  .app-nav-inner { max-width: 90rem; }
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.app-brand-mark {
  width: 2.125rem;
  height: 2.125rem;
  background: linear-gradient(135deg, #1f3a5f, #3f7f6f);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  box-shadow: 0 0 12px rgba(31, 58, 95, 0.28);
}

.app-brand-text {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  color: #fff;
}

.app-brand-text-muted {
  display: block;
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.65em;
  letter-spacing: 0.02em;
  margin-top: -0.125rem;
}

.app-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 0.3rem;
}

.app-nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #fafafa;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-nav-toggle[aria-expanded="true"] .app-nav-toggle-bar:nth-child(1) {
  transform: translateY(0.425rem) rotate(45deg);
}

.app-nav-toggle[aria-expanded="true"] .app-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.app-nav-toggle[aria-expanded="true"] .app-nav-toggle-bar:nth-child(3) {
  transform: translateY(-0.425rem) rotate(-45deg);
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.app-nav-links a {
  color: #cbd5e1;
  transition: color 0.15s ease;
}

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

@media (max-width: 767px) {
  .app-nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .app-nav-links {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .app-nav-links.open {
    display: flex;
  }

  .app-nav-links a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1rem;
  }

  .app-nav-links a:last-child {
    border-bottom: none;
  }

  .app-badge {
    order: 1;
  }

  .app-brand {
    order: 0;
  }
}

.app-badge {
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  font-size: 0.75rem;
  font-family: ui-monospace, monospace;
}

main {
  min-height: calc(100vh - 5rem);
}

main:has(> .page-dc > .dc-layout) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100dvh - 5rem);
  max-height: calc(100dvh - 5rem);
  overflow: hidden;
}

.home-root {
  min-height: calc(100vh - 5rem);
  background: #09090b;
}

.home-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.home-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.home-hero p {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  color: #a1a1aa;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-card {
  display: block;
  min-height: 2.75rem;
  padding: 2rem;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 1.5rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-card:hover {
  background: #27272a;
  border-color: #52525b;
  transform: translateY(-2px);
}

.home-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.home-card-icon.blue {
  background: #dbeafe;
}

.home-card-icon.emerald {
  background: #d1fae5;
}

.home-card-icon.amber {
  background: #fef3c7;
}

.home-card-icon.purple {
  background: #e9d5ff;
}

.home-card h2,
.home-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.home-card p {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.95rem;
}

.page-dc {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.page-dc:not(:has(> .dc-layout)) {
  min-height: calc(100vh - 3.5rem);
}

.page-dc:has(> .dc-layout) {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.page-dc:has(> .dc-layout) .dc-degraded-banner {
  flex-shrink: 0;
}

.dc-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  align-items: stretch;
  overflow: hidden;
}

.dc-sidebar {
  width: min(17.75rem, 92vw);
  flex-shrink: 0;
  align-self: stretch;
  max-height: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 14, 0.98);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0.85rem 1rem;
  min-height: 0;
  overflow: hidden;
}

.dc-sidebar-legend {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.15rem;
  margin-right: -0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}

.dc-sidebar-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0 0.5rem;
}

.dc-sidebar-logo {
  width: 100%;
  max-width: 11rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 0.65rem;
  color: #71717a;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dc-sidebar-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.15rem;
  font-size: 0.8rem;
  color: #a1a1aa;
  line-height: 1.45;
}

.dc-sidebar-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: baseline;
}

.dc-sidebar-k {
  color: #71717a;
  font-weight: 500;
}

.dc-sidebar-v {
  color: #e4e4e7;
  font-weight: 600;
}

.dc-sidebar-sep {
  color: #52525b;
  padding: 0 0.15rem;
}

.dc-sidebar-welcome {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.02em;
}

.dc-sidebar-stage {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dc-sidebar-stage-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #71717a;
}

.dc-stage-filters--sidebar {
  padding: 0;
}

.dc-hub-filter-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #a1a1aa;
  font-size: 0.9rem;
}

.dc-hub-filter-empty p {
  margin: 0 0 1rem;
}

.dc-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dc-sidebar-room {
  border-radius: 0.5rem;
}

.dc-sidebar-room-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dc-sidebar-room-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fafafa;
}

.dc-sidebar-room-name {
  flex: 1;
  min-width: 0;
}

.dc-sidebar-room-chevron {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: #71717a;
  transition: transform 0.2s ease;
}

.dc-sidebar-room-chevron--open {
  transform: rotate(-180deg);
}

.dc-sidebar-room-panel {
  padding: 0.15rem 0 0.35rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dc-sidebar-group-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.5rem;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  color: #a1a1aa;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dc-sidebar-group-btn:hover {
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
}

.dc-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .dc-layout {
    flex-direction: column;
  }

  .dc-sidebar {
    width: 100%;
    max-height: min(38vh, 20rem);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex: 0 1 auto;
  }

  .dc-sidebar-legend {
    flex: 1 1 auto;
    min-height: 3.5rem;
  }
}

.dc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font-size: 0.8rem;
  font-weight: 500;
}

.dc-chip-success {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
}

.dc-chip-warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

.dc-chip-muted {
  color: #a1a1aa;
}

.dc-price {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  font-family: ui-monospace, monospace;
  color: #34d399;
}

.dc-total-subtext {
  display: block;
  color: #a1a1aa;
  font-size: 0.8rem;
}

.dc-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.btn-sm {
  min-height: 2.15rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 0.65rem;
}

.btn-primary,
.btn-emerald {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.btn-primary:hover:not(:disabled),
.btn-emerald:hover:not(:disabled) {
  background: #047857;
  border-color: #047857;
}

.btn-secondary {
  background: transparent;
  color: #fafafa;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-dark {
  background: var(--wz-gray-900, #0f172a);
  color: #fff;
  border-color: var(--wz-gray-900, #0f172a);
}

.btn-dark:hover:not(:disabled) {
  background: #1e293b;
  border-color: #1e293b;
}

/* Full-screen tile layout */

.dc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(0.75rem, 3vw, 1.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.dc-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.dc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  color: #e4e4e7;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.dc-back-btn:hover {
  color: #fafafa;
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
}

.dc-topbar-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.dc-topbar-total {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.dc-topbar-price {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  color: #34d399;
}

.dc-topbar-count {
  color: #a1a1aa;
  font-size: 0.78rem;
  white-space: nowrap;
}

.dc-topbar-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  background: transparent;
  color: #e4e4e7;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dc-topbar-cart-btn:hover,
.dc-topbar-cart-btn--active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(52, 211, 153, 0.4);
}

.dc-topbar-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #34d399;
  color: #09090b;
  font-size: 0.72rem;
  font-weight: 800;
}

.dc-unsaved-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .dc-topbar-total {
    display: none;
  }
}

/* Tile grid */

.dc-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.85rem;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  flex: 1;
  align-content: start;
}

.dc-tile-grid > * {
  min-width: 0;
}

.dc-tile-grid--options {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
}

.dc-tile-grid--options > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dc-tile-grid--options .dc-tile--option {
  width: 100%;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
}

.dc-tile-grid--options .dc-collection {
  min-width: 0;
  width: 100%;
}

.dc-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: #18181b;
  color: #fafafa;
  font: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  animation: card-fade-in 0.25s ease both;
  position: relative;
}

.dc-tile--option {
  align-items: stretch;
  text-align: left;
}

.dc-tile:hover:not(:disabled) {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.04);
  transform: translateY(-2px);
}

.dc-tile:active:not(:disabled) {
  transform: translateY(0);
}

.dc-tile--selected {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.08);
}

.dc-tile--excluded {
  opacity: 0.4;
  cursor: not-allowed;
}

.dc-tile--past-cutoff {
  opacity: 0.5;
  cursor: not-allowed;
}

.dc-tile--past-cutoff.dc-tile--selected {
  opacity: 0.7;
  cursor: default;
}

.dc-tile-badge--past-cutoff {
  background: rgba(234, 179, 8, 0.18);
  color: #fbbf24;
}

.dc-cart-item--locked {
  opacity: 0.7;
}

.dc-cart-item-locked {
  font-size: 0.72rem;
  font-weight: 600;
  color: #fbbf24;
  white-space: nowrap;
  padding: 0.15rem 0.4rem;
}

.dc-tile-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.dc-tile--option .dc-tile-art {
  width: 100%;
  min-height: 11rem;
  aspect-ratio: 1 / 1;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  border-radius: 0.85rem;
}

.dc-tile-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.75rem;
}

.dc-tile--option .dc-tile-img {
  aspect-ratio: 1 / 1;
  min-height: 11rem;
  border-radius: 0.85rem;
  object-fit: cover;
}

.dc-tile--option .dc-tile-name {
  font-size: 0.92rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}

.dc-tile-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

.dc-tile-price {
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #34d399;
}

.dc-tile-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.dc-tile-picked {
  color: #34d399;
  font-weight: 600;
}

.dc-tile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin-top: 0.35rem;
}

.dc-tile-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
}

.dc-tile--package .dc-tile-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.dc-tile-badge--standard {
  background: rgba(161, 161, 170, 0.2);
  color: #d4d4d8;
}

.dc-tile-badge--upgrade {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

.dc-tile-badge--selected {
  background: rgba(52, 211, 153, 0.2);
  color: #86efac;
}

.dc-tile-badge--excluded {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  white-space: normal;
  word-break: break-word;
}

.dc-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dc-chip--selected {
  background: rgba(52, 211, 153, 0.2);
  color: #86efac;
}

/* Package tiles */

.dc-packages-section {
  padding: clamp(0.75rem, 3vw, 1.5rem);
  padding-bottom: 0;
}

.dc-packages-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a1aa;
  margin: 0 0 0.75rem;
}

.dc-tile-grid--packages {
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.dc-package-wrap {
  display: flex;
  flex-direction: column;
}

.dc-tile--package {
  cursor: default;
}

.dc-package-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.dc-package-toggle-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 0.5rem;
  background: transparent;
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dc-package-toggle-btn:hover {
  background: rgba(52, 211, 153, 0.1);
}

.dc-package-toggle-btn--active {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.dc-package-toggle-btn--active:hover {
  background: rgba(239, 68, 68, 0.1);
}

.dc-package-expand-btn {
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  font-size: 0.7rem;
  transition: background 0.15s ease;
}

.dc-package-expand-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dc-package-items {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  border-radius: 0 0 1rem 1rem;
  background: rgba(24, 24, 27, 0.6);
  animation: card-fade-in 0.2s ease both;
}

.dc-package-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  gap: 0.5rem;
}

.dc-package-item--selected {
  background: rgba(52, 211, 153, 0.04);
}

.dc-package-item--disabled {
  opacity: 0.4;
}

.dc-package-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.dc-package-item-name {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-package-item-price {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: #34d399;
}

.dc-package-item-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dc-package-item-tag--required {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.dc-package-item-tag--unavailable {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.dc-package-item-toggle {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 0.4rem;
  background: transparent;
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.dc-package-item-toggle:hover {
  background: rgba(52, 211, 153, 0.1);
}

.dc-package-item-toggle--active {
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.dc-package-item-toggle--active:hover {
  background: rgba(239, 68, 68, 0.1);
}

.dc-package-conflict-banner {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.6rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-top: none;
  color: #fca5a5;
  font-size: 0.78rem;
  animation: card-fade-in 0.2s ease both;
}

.dc-package-conflict-icon {
  flex-shrink: 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.dc-package-conflict-msgs {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dc-package-conflict-msg {
  line-height: 1.4;
}

.dc-tile--package.dc-package--expanded,
.dc-tile--package.dc-package--has-conflicts {
  border-radius: 1rem 1rem 0 0;
}

/* Loading / error states */
.dc-loading,
.dc-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex: 1;
  padding: 3rem 1rem;
  color: #a1a1aa;
  font-size: 0.95rem;
  text-align: center;
}

/* Cart drawer */

.dc-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(22rem, 90vw);
  z-index: 200;
  background: #18181b;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.dc-cart-drawer--open {
  transform: translateX(0);
}

.dc-cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dc-cart-drawer-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.dc-cart-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #a1a1aa;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dc-cart-drawer-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fafafa;
}

.dc-cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem;
}

.dc-cart-empty {
  color: #71717a;
  font-size: 0.88rem;
  text-align: center;
  padding: 2rem 0;
}

.dc-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dc-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dc-cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dc-cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e4e4e7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-cart-item-price {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: #34d399;
}

.dc-cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 0.4rem;
  background: transparent;
  color: #71717a;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.dc-cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.dc-cart-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dc-cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  font-weight: 700;
  color: #e4e4e7;
}

.dc-cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dc-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dc-degraded-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  font-size: 0.82rem;
  font-weight: 500;
}

.dc-panel {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.96), rgba(15, 15, 17, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.dc-panel-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.dc-panel-kicker {
  margin: 0;
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dc-panel h2,
.dc-panel h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fafafa;
}

.dc-panel-support {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.9rem;
}

.dc-definition-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.dc-definition-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dc-definition-list dt {
  color: #a1a1aa;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dc-definition-list dd {
  margin: 0;
  color: #fafafa;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
}

/* Snapshot disclosure (Compare to MarkSystems) */
.dc-snapshot-disclosure {
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.dc-snapshot-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: #a1a1aa;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  list-style: none;
}

.dc-snapshot-toggle::-webkit-details-marker {
  display: none;
}

.dc-snapshot-toggle::before {
  content: "▸";
  font-size: 0.75rem;
  transition: transform 0.15s ease;
}

.dc-snapshot-disclosure[open] .dc-snapshot-toggle::before {
  transform: rotate(90deg);
}

.dc-snapshot-disclosure[open] .dc-snapshot-toggle {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dc-snapshot-disclosure > .selection-summary-block {
  padding: 0.75rem 1rem 1rem;
}

.dc-snapshot-panel {
  align-self: start;
}

.dc-options-panel {
  min-width: 0;
}

.dc-cart {
  display: grid;
  gap: 1rem;
}

.dc-cart summary {
  list-style: none;
  cursor: pointer;
}

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

.dc-cart-summary {
  display: grid;
  gap: 1rem;
}

.dc-cart-summary-copy {
  display: grid;
  gap: 0.35rem;
}

.dc-cart-summary-copy h3 {
  margin: 0;
}

.dc-cart-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dc-cart-metric {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.dc-cart-metric-label {
  display: block;
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dc-cart-metric-value {
  display: block;
  margin-top: 0.35rem;
  color: #fafafa;
  font-size: 1rem;
  font-weight: 800;
  font-family: ui-monospace, monospace;
}

.dc-placeholder {
  padding: 3rem 1rem;
  color: #71717a;
  text-align: center;
}

.dc-nav-link {
  color: #34d399;
  text-decoration: none;
  font-size: 0.9rem;
}

.dc-nav-link:hover {
  color: #10b981;
  text-decoration: underline;
}

.page-simple {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-simple-title {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--wz-gray-900, #0f172a);
}

.page-simple-lead {
  margin: 0 0 2rem;
  color: #64748b;
  font-size: 1.05rem;
  max-width: 48rem;
}

.page-simple-lead strong {
  color: var(--wz-gray-900, #0f172a);
}

.page-simple h1 {
  margin: 0 0 2rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--wz-gray-900, #0f172a);
}

.page-simple .panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  color: #64748b;
}

.page-simple .hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.prospects-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.prospects-search {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.prospects-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.85rem;
}

.prospects-field input[type="text"] {
  min-width: 16rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--wz-gray-900, #0f172a);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.prospects-field input[type="text"]:focus {
  border-color: var(--wz-primary, #273ba0);
  box-shadow: 0 0 0 3px var(--wz-primary-ring, rgba(39, 59, 160, 0.15));
}

.prospects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}

.prospect-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.prospect-card:hover {
  border-color: var(--wz-primary, #273ba0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.prospect-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.prospect-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wz-gray-900, #0f172a);
}

.prospect-card-case {
  font-size: 0.78rem;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
  flex-shrink: 0;
}

.prospect-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.82rem;
  color: #64748b;
}

.prospect-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
}

.prospect-card-price {
  font-family: ui-monospace, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wz-primary, #273ba0);
}

.prospect-card-options {
  font-size: 0.8rem;
  color: #64748b;
}

.prospects-summary-card {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
}

.prospects-summary-label {
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prospects-summary-value {
  margin-top: 0.35rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fafafa;
}

.prospects-empty {
  max-width: 44rem;
}

.prospects-table .prospects-case {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prospects-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.prospect-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
}

.prospect-badge.live {
  background: rgba(52, 211, 153, 0.16);
  color: #86efac;
}

.prospect-badge.synthetic {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

.prospect-badge.missing {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.prospects-subtle {
  margin-top: 0.35rem;
  color: #a1a1aa;
  font-size: 0.85rem;
}

.prospects-money {
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #34d399;
}

.prospects-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lots-empty {
  max-width: 40rem;
}

.lots-toolbar {
  margin-bottom: 1rem;
  color: #a1a1aa;
  font-size: 0.9rem;
}

.lots-count {
  font-weight: 600;
  color: #fafafa;
}

.lots-table-wrap {
  overflow-x: auto;
  border: 1px solid #3f3f46;
  border-radius: 1rem;
  background: #18181b;
}

.lots-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lots-table th,
.lots-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #27272a;
}

.lots-table th {
  background: #27272a;
  color: #fafafa;
  font-weight: 600;
}

.lots-table tbody tr:hover {
  background: #27272a;
}

.lots-table td {
  color: #d4d4d8;
}

.lots-mono {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}

.lots-footnote {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.lot-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.lot-status-available {
  background: rgba(52, 211, 153, 0.16);
  color: #86efac;
}

.lot-status-unavailable {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.btn-lot-info {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  background: #27272a;
  color: #d4d4d8;
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-lot-info:hover {
  background: #3f3f46;
  border-color: #52525b;
  color: #fafafa;
}

.btn-lot-info.htmx-request {
  opacity: 0.65;
  pointer-events: none;
}

.lot-detail-inline {
  margin-top: 0.5rem;
}

.lot-detail-card {
  padding: 0.75rem;
  background: #1c1c20;
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  color: #d4d4d8;
  line-height: 1.5;
}

.lot-detail-card p {
  margin: 0.25rem 0;
}

.lot-detail-card .lot-detail-models {
  color: #a5b4fc;
}

.lot-detail-card .lot-detail-elevations {
  color: #93c5fd;
}

.lot-detail-card .lot-detail-note {
  color: #a1a1aa;
  font-size: 0.78rem;
}

.lots-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.lots-pagination a,
.lots-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--wz-radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--wz-duration) var(--wz-ease);
}

/* DC landing (no lot context) */
.dc-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem;
  text-align: center;
}

.dc-landing-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fafafa;
  margin: 0 0 0.5rem;
}

.dc-landing-sub {
  color: #a1a1aa;
  font-size: 0.95rem;
  margin: 0 0 2rem;
  max-width: 28rem;
}

.dc-landing-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.dc-landing-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.dc-landing-actions a:active {
  transform: scale(0.97);
}

.dc-landing-link-prospects {
  background: var(--wz-primary);
  color: #fff;
}

.dc-landing-link-prospects:hover {
  background: var(--wz-primary-dark);
  color: #fff;
}

.dc-landing-link-lots {
  background: #059669;
  color: #fff;
}

.dc-landing-link-lots:hover {
  background: #047857;
  color: #fff;
}

.btn-lot-design {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  background: #059669;
  color: #fff;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-lot-design:hover {
  background: #047857;
  color: #fff;
  text-decoration: none;
}

.lot-unavailable {
  color: #a1a1aa;
  font-size: 0.85rem;
  font-style: italic;
}

.lot-details p {
  margin: 0.5rem 0;
  color: #d4d4d8;
  font-size: 0.9rem;
}

.lot-details strong {
  color: #fafafa;
}

.quote-item {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid #3f3f46;
  font-size: 0.9rem;
  color: #d4d4d8;
}

.quote-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #3f3f46;
  font-weight: 600;
  color: #fafafa;
}

.quote-success {
  background: #065f46;
  border: 1px solid #047857;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #d1fae5;
}

.error {
  background: #7f1d1d;
  border: 1px solid #dc2626;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #fecaca;
}

.dc-nav-link {
  color: #34d399;
  text-decoration: none;
  font-size: 0.9rem;
}

.dc-nav-link:hover {
  color: #10b981;
  text-decoration: underline;
}

/* Options UI */
.options-container {
  display: grid;
  gap: 1rem;
}

.options-shell {
  display: grid;
  grid-template-columns: minmax(14rem, 16rem) minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
}

.options-tabs {
  margin-bottom: 0.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

@media (max-width: 900px) {
  .options-shell {
    grid-template-columns: 1fr;
  }
}

.options-shell--hub {
  grid-template-columns: 1fr;
}

.dc-options-htmx-indicator {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #a1a1aa;
  min-height: 1.1rem;
}

.dc-options-htmx-indicator.htmx-request {
  color: #fde68a;
}

.dc-room-hub {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.dc-room-hub-header h3 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #fafafa;
}

.dc-room-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.dc-room-tile {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  text-align: left;
  padding: 1rem 1.1rem;
  min-height: 6.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(39, 39, 42, 0.95), rgba(24, 24, 27, 0.98));
  color: #e4e4e7;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: card-fade-in 0.25s ease both;
}

.dc-room-tile:hover {
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.dc-room-tile.htmx-request {
  opacity: 0.65;
  pointer-events: none;
}

.dc-room-tile-art {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(16, 185, 129, 0.08));
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #a7f3d0;
}

.dc-room-tile-body {
  display: grid;
  gap: 0.2rem;
  align-content: center;
  min-width: 0;
}

.dc-room-tile-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #34d399;
}

.dc-room-tile-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fafafa;
  line-height: 1.25;
}

.dc-room-tile-meta {
  font-size: 0.78rem;
  color: #a1a1aa;
}

.dc-room-tile-picked--empty {
  opacity: 0.75;
}

.room-rail {
  display: grid;
  gap: 1rem;
  align-content: start;
  position: sticky;
  top: 1.25rem;
}

@media (max-width: 899px) {
  .room-rail {
    position: static;
    top: auto;
  }

  .room-rail-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin: 0 -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .room-rail-list .dc-tab {
    width: auto;
    flex: 0 0 auto;
    max-width: min(85vw, 18rem);
    white-space: nowrap;
  }
}

.room-rail-header {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.room-rail-header h4 {
  margin: 0;
  color: #fafafa;
  font-size: 1rem;
  font-weight: 700;
}

.room-rail-list {
  display: grid;
  gap: 0.5rem;
}

.room-stage {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.room-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.room-stage-header h3 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fafafa;
}

.room-gallery {
  display: grid;
  gap: 1rem;
}

.room-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.03);
}

.room-card-media {
  min-height: 11rem;
}

.room-card-art {
  display: grid;
  place-items: center;
  min-height: 11rem;
  border-radius: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(63, 63, 70, 0.85), rgba(24, 24, 27, 0.95));
  color: #e4e4e7;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.room-card-copy {
  display: grid;
  gap: 0.25rem;
}

.room-card-kicker {
  margin: 0;
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.room-card h4 {
  margin: 0;
  color: #fafafa;
  font-size: 1.1rem;
  font-weight: 800;
}

.room-card-count {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
  font-size: 0.8rem;
  font-weight: 700;
}

.options-notice {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 1rem;
  background: rgba(16, 185, 129, 0.08);
  color: #d1fae5;
  font-size: 0.85rem;
}

.options-notice p {
  margin: 0;
}

.dc-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.dc-tab {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: #a1a1aa;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dc-tab:hover {
  border-color: rgba(52, 211, 153, 0.35);
  color: #fafafa;
}

.dc-tab.active {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.16);
  color: #a7f3d0;
}

.option-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.option-meta span {
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
}

.option-group {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.option-group h4 {
  margin: 0;
  color: #fafafa;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.option-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.25s ease;
  animation: card-fade-in 0.25s ease both;
}

.option-card:hover {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.option-card.selected {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(6, 95, 70, 0.22);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.1), 0 0 20px rgba(52, 211, 153, 0.06);
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.option-header h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fafafa;
  flex: 1;
  line-height: 1.3;
}

.option-price {
  font-weight: 800;
  color: #34d399;
  font-size: 0.95rem;
  margin-left: 1rem;
  white-space: nowrap;
}

.option-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.option-card-preview {
  min-height: 8.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.option-card-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 8.5rem;
  max-height: 14rem;
  object-fit: cover;
  border-radius: 1rem;
  background: rgba(24, 24, 27, 0.05);
}

.option-card-art {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(63, 63, 70, 0.85), rgba(24, 24, 27, 0.95));
  color: #e4e4e7;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.option-card-title {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.option-card-title h4,
.option-card-title h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fafafa;
  line-height: 1.3;
}

.option-card-code {
  color: #a1a1aa;
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.option-card-body {
  color: #d4d4d8;
  font-size: 0.92rem;
}

.option-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.option-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  font-size: 0.72rem;
}

.option-chip.required {
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
}

.option-chip.upgrade {
  border-color: rgba(168, 85, 247, 0.28);
  background: rgba(168, 85, 247, 0.12);
  color: #e9d5ff;
}

.option-chip.selected {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}

.option-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.htmx-indicator.htmx-request {
  opacity: 1;
}

.options-shell .dc-placeholder .htmx-indicator,
.selection-summary .dc-placeholder .htmx-indicator {
  opacity: 1;
}

/* Toast notifications for HTMX errors */
.htmx-toast-container {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(92vw, 28rem);
  width: 100%;
}

.htmx-toast {
  pointer-events: auto;
  padding: 0.75rem 1.15rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.htmx-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.htmx-toast-error {
  background: rgba(127, 29, 29, 0.96);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #fecaca;
}

.htmx-toast-warn {
  background: rgba(120, 53, 15, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

/* Room tab loading state during HTMX request */
.dc-tab.htmx-request {
  opacity: 0.7;
  pointer-events: none;
}

.dc-tab.htmx-request::after {
  content: "\2026";
  margin-left: 0.35rem;
}

.btn-option-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  min-width: 9rem;
  padding: 0.65rem 1rem;
  background: #059669;
  color: #fff;
  border: 1px solid #059669;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.15s ease;
}

.btn-option-select.htmx-request {
  opacity: 0.92;
  pointer-events: none;
}

.btn-option-select.htmx-request .btn-option-select-label {
  visibility: hidden;
}

.btn-option-select.htmx-request::after {
  content: "Adding…";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
}

.btn-option-select:hover:not(:disabled) {
  background: #047857;
  border-color: #047857;
}

.btn-option-select:disabled {
  background: transparent;
  border-color: rgba(52, 211, 153, 0.25);
  color: #a7f3d0;
  cursor: default;
}

.option-card.selected .btn-option-select {
  background: transparent;
  border-color: rgba(52, 211, 153, 0.25);
  color: #a7f3d0;
}

.option-card.selected .btn-option-select.htmx-request::after {
  color: #a7f3d0;
}

.option-card.excluded {
  opacity: 0.5;
  filter: grayscale(0.4);
}

.option-card.excluded .btn-option-select {
  cursor: not-allowed;
}

.option-card.excluded .option-card-preview,
.option-card.excluded .option-card-header,
.option-card.excluded .option-card-body {
  pointer-events: none;
}

.option-chip.excluded {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  font-size: 0.75rem;
}

.btn-option-selected {
  background: rgba(52, 211, 153, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
  color: #a7f3d0 !important;
}

.dc-unsaved-badge {
  display: inline-block;
  background: rgba(250, 204, 21, 0.15);
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  animation: badge-pop 0.2s ease;
}

.dc-save-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-saving {
  opacity: 0.7;
  cursor: wait;
}

.dc-save-success {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #86efac;
  font-size: 0.82rem;
  font-weight: 600;
  animation: success-fade-in 0.3s ease;
}

.dc-save-error {
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 500;
  max-width: 20rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-draft-remove {
  background: none;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  min-width: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.btn-draft-remove:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

[x-cloak] { display: none !important; }

/* Quotes page */
.quotes-empty {
  max-width: 40rem;
}

.quotes-toolbar {
  margin-bottom: 2rem;
  color: #a1a1aa;
  font-size: 0.9rem;
}

.quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .quotes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .quotes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.quote-card:hover {
  border-color: var(--wz-primary, #273ba0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quote-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.quote-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wz-gray-900, #0f172a);
}

.quote-date {
  font-size: 0.85rem;
  color: #94a3b8;
}

.quote-stat {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.quote-stat-label {
  color: #64748b;
  font-size: 0.9rem;
}

.quote-stat-value {
  color: var(--wz-gray-900, #0f172a);
  font-weight: 500;
  font-size: 0.9rem;
}

.quote-selections {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.quote-selections strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--wz-gray-900, #0f172a);
  font-size: 0.85rem;
}

.selection-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  margin: 0.125rem 0.25rem 0.125rem 0;
}

.selection-more {
  color: #94a3b8;
  font-size: 0.75rem;
  font-style: italic;
}

.quote-card-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.btn-quote-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem;
  background: var(--wz-primary, #273ba0);
  color: #fff;
  text-decoration: none;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s;
}

.btn-quote-resume:hover {
  background: var(--wz-primary-dark, #1e2f80);
  color: #fff;
  text-decoration: none;
}

.selection-summary-staged {
  margin-bottom: 0.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.selection-summary-staged-eyebrow {
  margin: 0 0 0.25rem;
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.selection-summary-staged-title {
  margin: 0 0 0.35rem;
  color: #fafafa;
  font-size: 1.05rem;
  font-weight: 700;
}

.selection-summary-staged-hint {
  margin: 0 0 0.85rem;
  color: #a1a1aa;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 36rem;
}

.selection-summary-staged-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  max-width: 22rem;
}

.selection-summary {
  display: grid;
  gap: 1rem;
}

.selection-summary-block {
  display: grid;
  gap: 1rem;
}

.selection-summary-block h4 {
  margin: 0;
  color: #fafafa;
  font-size: 1.05rem;
  font-weight: 700;
}

.selection-summary-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.selection-summary-intro {
  min-width: 0;
}

.selection-summary-eyebrow {
  margin: 0 0 0.25rem;
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.selection-summary-lead {
  margin: 0.35rem 0 0;
  color: #a1a1aa;
  font-size: 0.9rem;
}

.selection-summary-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.selection-summary-metric {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.selection-summary-metric-label {
  display: block;
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selection-summary-metric-value {
  display: block;
  margin-top: 0.35rem;
  color: #fafafa;
  font-size: 1rem;
  font-weight: 700;
}

.selection-summary-metric-secondary {
  display: block;
  margin-top: 0.2rem;
  color: #a1a1aa;
  font-size: 0.8rem;
}

.selection-summary-notice {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 1rem;
  background: rgba(16, 185, 129, 0.08);
  color: #d1fae5;
  font-size: 0.85rem;
}

.selection-summary-notice p {
  margin: 0;
}

.selection-group {
  display: grid;
  gap: 0.75rem;
}

.selection-group h5 {
  margin: 0;
  font-size: 0.8rem;
  color: #34d399;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.selection-addendum {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.selection-addendum-title {
  margin-bottom: 0.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fafafa;
}

.selection-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.selection-list-item {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.18);
  animation: item-slide-in 0.2s ease both;
}

.selection-name {
  color: #fafafa;
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.selection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.selection-meta span {
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
}

.selection-empty {
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1aa;
  font-size: 0.85rem;
}

/* Degraded-mode banner */
.dc-degraded-banner {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 1rem;
  background: rgba(250, 204, 21, 0.06);
}

.dc-degraded-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.dc-degraded-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  color: #facc15;
}

.dc-degraded-copy {
  flex: 1;
  min-width: 0;
}

.dc-degraded-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #facc15;
  margin: 0 0 0.25rem;
}

.dc-degraded-copy p {
  margin: 0;
  font-size: 0.85rem;
  color: #d4d4d8;
  line-height: 1.5;
}

.dc-degraded-retry {
  flex-shrink: 0;
  align-self: center;
}

/* Error state for HTMX swaps */
.dc-error-state {
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px dashed rgba(239, 68, 68, 0.25);
  border-radius: 1rem;
  background: rgba(239, 68, 68, 0.04);
}

.dc-error-title {
  font-weight: 700;
  font-size: 1rem;
  color: #fafafa;
  margin: 0 0 0.5rem;
}

.dc-error-copy {
  font-size: 0.88rem;
  color: #a1a1aa;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.dc-error-retry-spinner {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: #a1a1aa;
}

/* Lots empty state enhancements */
.lots-empty-title {
  font-weight: 700;
  font-size: 1rem;
  color: #fafafa;
  margin: 0 0 0.5rem;
}

/* (mobile cart bar removed — cart drawer replaces it) */

/* Responsive table → card layout on narrow viewports */
@media (max-width: 767px) {
  .responsive-table thead {
    display: none;
  }

  .lots-table-wrap {
    border: none;
    border-radius: 0;
    background: transparent;
    overflow-x: visible;
  }

  .responsive-table {
    display: block;
    border: none;
    background: transparent;
  }

  .responsive-table tbody {
    display: grid;
    gap: 1rem;
  }

  .responsive-table tbody tr {
    display: grid;
    gap: 0;
    padding: 1rem;
    border: 1px solid #3f3f46;
    border-radius: 1rem;
    background: #18181b;
  }

  .responsive-table tbody tr:hover {
    background: #1f1f23;
  }

  .responsive-table td {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .responsive-table td:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
  }

  .responsive-table td::before {
    content: attr(data-label);
    flex: 0 0 6.5rem;
    color: #a1a1aa;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-top: 0.15rem;
  }

  .responsive-table td[data-label="Actions"] {
    justify-content: flex-end;
  }

  .responsive-table td[data-label="Actions"]::before {
    display: none;
  }

  .prospects-field input[type="text"] {
    min-width: 0;
    width: 100%;
  }

  .prospects-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .prospects-search {
    flex-direction: column;
  }

  .htmx-toast-container {
    bottom: 4.5rem;
  }
}

/* (old sheet/rail/collapsed styles removed — replaced by dc-cart-drawer) */

/* ── Option search + stage toolbar ── */

.dc-options-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.35rem clamp(0.75rem, 3vw, 1.5rem) 0.15rem;
  box-sizing: border-box;
}

.dc-options-toolbar-search {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
}

.dc-search {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: none;
}

.dc-search-input {
  width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
  background: #1e1e24;
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  color: #e4e4e7;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dc-search-input::placeholder {
  color: #71717a;
}

.dc-search-input:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.15);
}

.dc-search-clear {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #a1a1aa;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.25rem 0.35rem;
  line-height: 1;
  border-radius: 0.25rem;
}

.dc-search-clear:hover {
  color: #e4e4e7;
}

.dc-search-meta {
  color: #a1a1aa;
  font-size: 0.8rem;
  margin: 0;
}

@media (min-width: 768px) {
  .dc-options-toolbar:has(.dc-stage-filters) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
  }

  .dc-options-toolbar:has(.dc-stage-filters) .dc-options-toolbar-search {
    flex: 1 1 min(28rem, 100%);
    max-width: min(36rem, 100%);
  }

  .dc-options-toolbar:has(.dc-stage-filters) .dc-stage-filters {
    flex: 1 1 auto;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    margin-left: auto;
    min-width: 0;
  }
}

/* ── Stage filter pills ── */

.dc-stage-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0;
  margin: 0;
}

.dc-stage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.dc-stage-pill:hover {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.06);
  color: #fafafa;
}

.dc-stage-pill--active {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
}

.dc-stage-pill--past {
  opacity: 0.55;
  text-decoration: line-through;
}

.dc-stage-pill--past.dc-stage-pill--active {
  opacity: 0.75;
}

.dc-stage-pill--clear {
  color: #a1a1aa;
  border-color: transparent;
  background: transparent;
  font-weight: 500;
}

.dc-stage-pill--clear:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Color collection tiles ── */

.dc-collection {
  grid-column: 1 / -1;
  border: 1px solid #3f3f46;
  border-radius: 1rem;
  background: #18181b;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.dc-collection--has-draft {
  border-color: rgba(52, 211, 153, 0.4);
}

.dc-collection-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  margin: 0;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  border-radius: 0.65rem;
  transition: background 0.15s ease;
}

.dc-collection-summary:hover {
  background: rgba(52, 211, 153, 0.06);
}

.dc-collection-summary-thumb {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #27272a;
}

.dc-collection-summary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dc-collection-summary-thumb--text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f4f4f5;
  background: radial-gradient(ellipse at 30% 20%, #3f3f46 0%, #1f1f23 65%);
}

.dc-collection-chevron--forward {
  margin-left: auto;
  font-size: 0.75rem;
  color: #a1a1aa;
  transform: none;
}

.dc-finish-detail {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(0.5rem, 2vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.dc-finish-detail.dc-collection-unavailable {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.dc-collection-unavailable {
  text-align: center;
  color: #a1a1aa;
}

.dc-collection-unavailable .btn {
  margin-top: 0.75rem;
}

.dc-collection-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 1rem;
  position: relative;
}

.dc-collection-header-toggle {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  border-radius: 0.5rem;
  transition: background 0.15s ease;
}

.dc-collection-header-toggle:hover {
  background: rgba(52, 211, 153, 0.04);
}

.dc-collection-header-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.dc-collection-chip-strip {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.5rem 0.6rem;
  overflow: visible;
  padding: 0.2rem 0 0.1rem;
  margin: 0;
}

.dc-variant-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  flex: 1 1 6rem;
  min-width: 5.5rem;
  max-width: 9rem;
  padding: 0.45rem 0.4rem 0.5rem;
  border: 1px solid rgba(63, 63, 70, 0.85);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #232329 0%, #1a1a1f 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.dc-variant-chip:hover:not(:disabled) {
  border-color: rgba(113, 113, 122, 0.9);
  background: linear-gradient(180deg, #2a2a31 0%, #1f1f24 100%);
  transform: translateY(-1px);
}

.dc-variant-chip--selected {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35), 0 4px 14px rgba(16, 185, 129, 0.12);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, #1a1f1d 100%);
}

.dc-variant-chip--disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dc-variant-chip--more {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 3rem;
  min-height: 4.5rem;
  padding: 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #71717a;
  cursor: default;
  border-radius: 0.75rem;
}

.dc-variant-chip__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-height: 3.5rem;
}

.dc-variant-chip__media {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #27272a;
}

.dc-variant-chip__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dc-variant-chip__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 0.45rem;
  background: radial-gradient(ellipse at 30% 20%, #3f3f46 0%, #1f1f23 65%);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: #f4f4f5;
}

.dc-variant-chip__fallback {
  position: absolute;
  inset: 0;
}

.dc-variant-chip__label {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  min-height: 2.4em;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #f4f4f5;
  word-break: break-word;
  hyphens: auto;
}

.dc-collection-swatches {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.dc-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 2px solid #3f3f46;
  padding: 0;
  background: #27272a;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #a1a1aa;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.dc-swatch:hover:not(:disabled) {
  border-color: #a1a1aa;
  transform: scale(1.1);
}

.dc-swatch--selected {
  border-color: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.35);
}

.dc-swatch--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dc-swatch--more {
  font-size: 0.65rem;
  color: #71717a;
  background: #1f1f23;
}

.dc-collection-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dc-collection-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-collection-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: #a1a1aa;
}

.dc-collection-meta > span:first-child {
  white-space: nowrap;
}

.dc-collection-price {
  font-family: ui-monospace, monospace;
  font-weight: 600;
  color: #34d399;
  white-space: nowrap;
}

.dc-collection-chevron {
  font-size: 0.55rem;
  color: #71717a;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.dc-collection-chevron--open {
  transform: rotate(180deg);
}

.dc-collection-variants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.65rem;
  padding: 0 0.75rem 0.75rem;
  animation: card-fade-in 0.25s ease;
}

.dc-collection-variants > * {
  min-width: 0;
}

.dc-collection-variants .dc-tile--variant {
  align-items: stretch;
  text-align: left;
}

.dc-collection-variants.dc-collection-variants--detail {
  grid-column: unset;
  margin: 0;
  padding: 1rem;
  border: 1px solid #3f3f46;
  border-radius: 1rem;
  background: linear-gradient(180deg, #1c1c1f 0%, #18181b 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  grid-template-columns: repeat(auto-fill, minmax(12.25rem, 1fr));
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .dc-tile-grid {
    grid-template-columns: 1fr;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .dc-tile-grid--options {
    grid-template-columns: 1fr;
  }

  .dc-tile {
    padding: 1rem 0.9rem;
  }

  .dc-tile--option .dc-tile-img,
  .dc-tile--option .dc-tile-art {
    min-height: 9.5rem;
  }

  .dc-tile-badges {
    justify-content: flex-start;
    gap: 0.3rem;
  }

  .dc-options-toolbar {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .dc-collection-header {
    padding: 0.75rem 0.85rem;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .dc-collection-meta {
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
  }

  .dc-swatch {
    width: 1.75rem;
    height: 1.75rem;
  }

  .dc-collection-variants {
    grid-template-columns: 1fr;
    padding: 0 0.75rem 0.75rem;
  }
}
.dc-tile--variant {
  border-color: rgba(63, 63, 70, 0.6);
}

/* ── Login page ── */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4rem);
  padding: 2rem 1rem;
}

.login-card {
  width: 100%;
  max-width: 24rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.login-brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #1f3a5f, #3f7f6f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(31, 58, 95, 0.22);
}

.login-brand-text {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--wz-gray-900, #0f172a);
}

.login-brand-text-group {
  display: flex;
  flex-direction: column;
}
.login-brand-muted {
  display: block;
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.65em;
  letter-spacing: 0.02em;
  margin-top: -0.125rem;
}

.login-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--wz-gray-900, #0f172a);
  margin: 0 0 1.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.login-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}

.login-input {
  padding: 0.625rem 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: var(--wz-gray-900, #0f172a);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.login-input:focus {
  border-color: var(--wz-primary, #273ba0);
  box-shadow: 0 0 0 3px var(--wz-primary-ring, rgba(39, 59, 160, 0.15));
}

.login-input::placeholder {
  color: #94a3b8;
}

.login-submit {
  padding: 0.75rem;
  background: var(--wz-primary, #273ba0);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.login-submit:hover {
  background: var(--wz-primary-dark, #1e2f80);
}

.login-error {
  color: #dc2626;
  font-size: 0.875rem;
}

.login-error:empty {
  display: none;
}

/* ── Staff page ── */

.page-simple-subtitle {
  margin: -0.5rem 0 2rem;
  color: #64748b;
  font-size: 1rem;
}

.staff-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.staff-table th {
  padding: 0.625rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #64748b;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
  white-space: nowrap;
}

.staff-table td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  white-space: nowrap;
}

.staff-table tbody tr:last-child td {
  border-bottom: none;
}

.staff-table tbody tr:hover {
  background: #f8fafc;
}

.text-right {
  text-align: right !important;
}

.staff-case-link {
  color: #6366f1;
  text-decoration: none;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
}

.staff-case-link:hover {
  color: var(--wz-primary);
  text-decoration: underline;
}

.staff-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.staff-spinner {
  display: none;
  font-size: 0.85rem;
}

.staff-spinner.htmx-request {
  display: inline;
}

.staff-action-result {
  margin-top: 1.5rem;
  scroll-margin-top: 1.25rem;
  outline: none;
}

.staff-action-result:empty {
  display: none;
}

.staff-action-result:not(:empty) {
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.staff-action-result .session-history h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.staff-action-result .history-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.staff-action-result .history-table {
  white-space: normal;
}

.staff-action-result .history-table .history-detail {
  white-space: normal;
  max-width: 36rem;
  word-break: break-word;
  color: #475569;
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-green {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.badge-muted {
  background: rgba(113, 113, 122, 0.2);
  color: #71717a;
}

.home-card-icon.rose {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

/* ── Motion system ── */

@keyframes card-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

@keyframes item-slide-in {
  from {
    opacity: 0;
    transform: translateX(-0.5rem);
  }
}

@keyframes badge-pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}

@keyframes success-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.25rem);
  }
}

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

/* ══════════════════════════════════════════════
   WIZARD FLOW — Light theme Design Center
   ══════════════════════════════════════════════ */

html:has(main .wz-page) {
  height: 100%;
  overflow: hidden;
}

body:has(main .wz-page) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body:has(main .wz-page) main#main-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wz-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f9fafb;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wz-page > .wz-degraded-banner {
  flex-shrink: 0;
}

.wz-page-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.wz-page-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 0.5rem;
}

.wz-page-main > div {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: 5.75rem;
}

.wz-page-main > div:has(.wz-rooms-layout) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.wz-page-main > div:has(.wz-rooms-layout) > .wz-step-rooms {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wz-page-main > div:has(.wz-rooms-layout) > .wz-step-rooms > .wz-rooms-layout {
  flex: 1 1 auto;
  min-height: 0;
}

/* ── Wizard Header ── */

.wz-header {
  position: relative;
  flex-shrink: 0;
  height: 4rem;
  background: var(--wz-surface);
  border-bottom: 1px solid var(--wz-gray-50);
  z-index: 50;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  box-shadow: var(--wz-shadow-sm);
}

.wz-header-inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 90rem) {
  .wz-header-inner { max-width: 90rem; }
}

.wz-header-brand { display: flex; align-items: center; }

.wz-header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.wz-header-logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--wz-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.wz-header-logo-icon svg { width: 1.25rem; height: 1.25rem; }

.wz-header-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: #111827;
}

.wz-header-context {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wz-header-buyer { display: flex; flex-direction: column; align-items: flex-end; }

.wz-header-buyer-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: #0f172a;
}

.wz-header-buyer-lot {
  font-size: 0.75rem;
  color: #64748b;
}

.wz-header-avatar {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--wz-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--wz-primary-ring);
  color: var(--wz-primary);
}

.wz-header-avatar svg { width: 1rem; height: 1rem; }

/* ── Stepper ── */

.wz-stepper-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 40;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.wz-stepper { padding: 0.625rem 1.25rem; }

.wz-stepper-desktop { display: none; }

@media (min-width: 64rem) {
  .wz-stepper-desktop { display: block; }
  .wz-stepper-mobile { display: none; }
}

.wz-stepper-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 64rem;
}

.wz-stepper-item {
  position: relative;
  flex: 1;
  padding-right: 2rem;
}

.wz-stepper-item--last { flex: 0 0 auto; padding-right: 0; }

.wz-stepper-connector {
  position: absolute;
  top: 1rem;
  left: 2rem;
  right: 0;
  height: 2px;
  background: #e2e8f0;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.wz-stepper-connector-fill {
  height: 100%;
  width: 0;
  background: var(--wz-primary);
  transition: width 0.5s ease;
}

.wz-stepper-connector-fill--done { width: 100%; }

.wz-stepper-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  position: relative;
  z-index: 1;
}

.wz-stepper-btn .wz-stepper-label {
  background: #f8fafc;
  padding: 0 0.5rem;
}

.wz-stepper-btn--disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.wz-stepper-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid #cbd5e1;
  background: #fff;
  color: #64748b;
  transition: all 0.2s;
  flex-shrink: 0;
}

.wz-stepper-circle--active {
  border-color: var(--wz-primary);
  color: var(--wz-primary);
  box-shadow: 0 0 0 4px var(--wz-primary-ring);
}

.wz-stepper-circle--complete {
  border-color: var(--wz-primary);
  background: var(--wz-primary);
  color: #fff;
}

.wz-stepper-circle--pending {
  border-color: #cbd5e1;
  color: #94a3b8;
}

.wz-stepper-check { width: 1.1rem; height: 1.1rem; }

.wz-stepper-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  letter-spacing: 0.025em;
}

.wz-stepper-label--active { color: #1e1b4b; }

/* Mobile stepper */
.wz-stepper-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  padding: 0 1rem;
}

.wz-stepper-mobile-arrow {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  transition: color 0.15s;
}

.wz-stepper-mobile-arrow:hover { color: var(--wz-primary); }
.wz-stepper-mobile-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.wz-stepper-mobile-arrow svg { width: 1.5rem; height: 1.5rem; }

.wz-stepper-mobile-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wz-stepper-mobile-meta {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.wz-stepper-mobile-label {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
}

/* Design Center — compact wizard chrome (site nav omitted via layout) */
main .wz-page .wz-header {
  height: auto;
  min-height: 2.5rem;
  padding: 0.3rem 1rem;
  box-shadow: none;
  border-bottom: 1px solid var(--wz-gray-100);
}

main .wz-page .wz-header-logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
}

main .wz-page .wz-header-logo-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

main .wz-page .wz-header-logo-text {
  font-size: 1rem;
}

main .wz-page .wz-header-context {
  gap: 0.65rem;
}

main .wz-page .wz-header-buyer-name {
  font-size: 0.8125rem;
}

main .wz-page .wz-header-buyer-lot {
  font-size: 0.6875rem;
}

main .wz-page .wz-header-avatar {
  width: 1.75rem;
  height: 1.75rem;
}

main .wz-page .wz-stepper-wrap {
  background: var(--wz-surface);
  border-bottom: 1px solid var(--wz-gray-100);
}

main .wz-page .wz-stepper {
  padding: 0.2rem 1rem 0.3rem;
}

main .wz-page .wz-stepper-list {
  max-width: 72rem;
}

main .wz-page .wz-stepper-item {
  padding-right: 1.25rem;
}

main .wz-page .wz-stepper-connector {
  top: 0.6875rem;
  left: 1.5rem;
}

main .wz-page .wz-stepper-btn {
  gap: 0.35rem;
}

main .wz-page .wz-stepper-circle {
  width: 1.375rem;
  height: 1.375rem;
  font-size: 0.68rem;
  border-width: 1.5px;
}

main .wz-page .wz-stepper-circle--active {
  box-shadow: 0 0 0 2px var(--wz-primary-ring);
}

main .wz-page .wz-stepper-check {
  width: 0.8rem;
  height: 0.8rem;
}

main .wz-page .wz-stepper-label {
  font-size: 0.75rem;
}

main .wz-page .wz-stepper-btn .wz-stepper-label {
  padding: 0 0.3rem;
}

main .wz-page .wz-stepper-mobile {
  height: auto;
  min-height: 2.5rem;
  padding: 0.2rem 0.65rem;
}

main .wz-page .wz-stepper-mobile-meta {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

main .wz-page .wz-stepper-mobile-label {
  font-size: 0.875rem;
}

main .wz-page .wz-stepper-mobile-arrow {
  padding: 0.2rem;
}

main .wz-page .wz-stepper-mobile-arrow svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* ── Content area ── */

.wz-card {
  background: var(--wz-surface);
  border-radius: var(--wz-radius-xl);
  border: 1px solid var(--wz-gray-50);
  box-shadow: var(--wz-shadow-sm);
  transition: box-shadow var(--wz-duration) var(--wz-ease), border-color var(--wz-duration) var(--wz-ease);
}

.wz-card:hover {
  box-shadow: var(--wz-shadow-md);
}

/* ── Step common ── */

.wz-step {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  overflow-x: clip;
}

.wz-step.wz-step-rooms {
  padding: 0.75rem 1rem;
}

@media (min-width: 48rem) {
  .wz-step.wz-step-rooms {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 1rem;
  }
}

@media (min-width: 90rem) {
  .wz-step.wz-step-rooms {
    max-width: none;
    padding: 1rem 1.5rem;
  }
}

.wz-step-review {
  overflow: visible;
}

@media (min-width: 48rem) {
  .wz-step { padding: 2rem 2rem; }
}

@media (min-width: 90rem) {
  .wz-step { max-width: 90rem; padding: 2.5rem 3rem; }
}

.wz-step-header { margin-bottom: 2rem; }

.wz-step-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--wz-gray-900);
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.wz-step-desc {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  max-width: 48rem;
}

/* ── Buttons ── */

.wz-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--wz-primary);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px var(--wz-primary-ring);
}

.wz-btn-primary:hover { background: var(--wz-primary-dark); }
.wz-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.wz-btn-primary svg { width: 1rem; height: 1rem; }

.wz-btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.wz-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.wz-btn-secondary:hover { background: #f8fafc; }
.wz-btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

/* ── Loading / Error ── */

.wz-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  gap: 1rem;
  color: #64748b;
  padding-top: 2rem;
}

.wz-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e2e8f0;
  border-top-color: var(--wz-primary);
  border-radius: 50%;
  animation: wz-spin 0.8s linear infinite;
}

@keyframes wz-spin { to { transform: rotate(360deg); } }

.wz-error {
  text-align: center;
  padding: 6rem 2rem;
  color: #64748b;
}

.wz-degraded-banner {
  background: #fef3c7;
  color: #92400e;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.wz-staff-hint-banner {
  flex-shrink: 0;
  background: #eff6ff;
  color: #1e3a5f;
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid #bfdbfe;
}

.wz-staff-hint-banner__title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.wz-staff-hint-banner__body {
  margin: 0 0 0.5rem;
  line-height: 1.45;
}

/* ── Empty step ── */

.wz-empty-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  max-width: 28rem;
  margin: 2rem auto;
}

.wz-empty-step-icon {
  width: 5rem;
  height: 5rem;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  margin-bottom: 1.5rem;
}

.wz-empty-step-icon svg { width: 2.5rem; height: 2.5rem; }

.wz-empty-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.wz-empty-step p {
  color: #64748b;
  margin: 0 0 2rem;
}

/* ── Welcome Screen ── */

.wz-welcome {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

@media (min-width: 64rem) {
  .wz-welcome {
    max-width: 80rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 3rem 2.5rem 4rem;
  }
}

@media (min-width: 90rem) {
  .wz-welcome {
    max-width: 90rem;
    padding: 3rem 3rem 4rem;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
  }
}

.wz-welcome-hero {
  position: relative;
  border-radius: var(--wz-radius-2xl);
  overflow: hidden;
  height: 20rem;
}

@media (min-width: 48rem) {
  .wz-welcome-hero { height: 24rem; }
}

@media (min-width: 64rem) {
  .wz-welcome-hero { height: 100%; min-height: 28rem; }
}

.wz-welcome-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wz-welcome-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #fff;
}

.wz-welcome-hero-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.375rem 0.875rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.wz-welcome-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
}

.wz-welcome-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 32rem;
  line-height: 1.5;
}

.wz-welcome-body {
  padding-top: 2rem;
}

@media (min-width: 64rem) {
  .wz-welcome-body {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.wz-welcome-details-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--wz-gray-900);
  margin: 0 0 1rem;
}

.wz-welcome-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 48rem) {
  .wz-welcome-details-grid { grid-template-columns: repeat(4, 1fr); }
}

.wz-welcome-detail-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-50);
  border-radius: var(--wz-radius-lg);
  box-shadow: var(--wz-shadow-sm);
}

.wz-welcome-detail-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--wz-primary);
  margin-bottom: 0.25rem;
}

.wz-welcome-detail-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wz-welcome-detail-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wz-gray-900);
}

.wz-welcome-callout {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  background: var(--wz-primary-light);
  border: 1px solid var(--wz-primary-ring);
  border-radius: var(--wz-radius-lg);
}

.wz-welcome-callout-icon {
  flex-shrink: 0;
  color: var(--wz-primary);
}

.wz-welcome-callout-icon svg { width: 1.25rem; height: 1.25rem; }

.wz-welcome-callout-text {
  font-size: 0.875rem;
  color: var(--wz-primary-dark);
  line-height: 1.5;
}

.wz-welcome-callout-text strong { font-weight: 700; }

.wz-welcome-begin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--wz-primary);
  color: #fff;
  border: none;
  border-radius: var(--wz-radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--wz-duration) var(--wz-ease);
  box-shadow: 0 10px 25px var(--wz-primary-ring);
}

.wz-welcome-begin-btn:hover {
  background: var(--wz-primary-dark);
  transform: translateY(-1px);
}

.wz-welcome-begin-btn:active {
  transform: translateY(0);
}

@media (min-width: 64rem) {
  .wz-welcome-begin-btn { max-width: 24rem; }
}

body:has(main .wz-page) .wz-welcome.wz-page-stage {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
}

@media (min-width: 64rem) {
  body:has(main .wz-page) .wz-welcome-hero {
    height: 28rem;
    min-height: 28rem;
  }
}

/* ── Plan & Elevation (Step 1) ── */

.wz-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wz-space-6);
}

@media (min-width: 64rem) {
  .wz-plan-grid { grid-template-columns: 7fr 5fr; }
}

.wz-plan-visuals {
  display: flex;
  flex-direction: column;
  gap: var(--wz-space-5);
}

.wz-plan-visual-card {
  background: var(--wz-surface);
  border-radius: var(--wz-radius-xl);
  border: 1px solid var(--wz-gray-200);
  padding: var(--wz-space-4);
  box-shadow: var(--wz-shadow-sm);
  transition: border-color var(--wz-duration) var(--wz-ease),
              box-shadow var(--wz-duration) var(--wz-ease);
}

.wz-plan-visual-card:hover {
  border-color: var(--wz-gray-300);
  box-shadow: var(--wz-shadow-md);
}

.wz-plan-visual-card--floor { cursor: pointer; }

.wz-plan-visual-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wz-gray-400);
  display: block;
  margin-bottom: var(--wz-space-2);
}

.wz-plan-visual-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--wz-radius-lg);
  overflow: hidden;
  background: var(--wz-gray-100);
}

.wz-plan-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--wz-ease);
}

.wz-plan-visual-card:hover .wz-plan-visual-img { transform: scale(1.03); }

.wz-plan-visual-expand {
  position: absolute;
  top: var(--wz-space-2);
  right: var(--wz-space-2);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--wz-radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--wz-gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--wz-shadow-sm);
  opacity: 0;
  transition: opacity var(--wz-duration) var(--wz-ease);
}

.wz-plan-visual-card:hover .wz-plan-visual-expand { opacity: 1; }

.wz-plan-visual-expand svg { width: 1.1rem; height: 1.1rem; }

.wz-plan-visual-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--wz-space-2);
  color: var(--wz-gray-400);
  font-size: 0.85rem;
}

.wz-plan-visual-placeholder-icon { width: 3rem; height: 3rem; opacity: 0.5; }

.wz-plan-details-card {
  background: var(--wz-surface-muted);
  border-radius: var(--wz-radius-xl);
  padding: var(--wz-space-5);
  border: 1px solid var(--wz-gray-200);
}

.wz-plan-details-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wz-gray-500);
  margin: 0 0 var(--wz-space-4);
}

.wz-plan-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wz-space-4);
}

@media (min-width: 48rem) {
  .wz-plan-details-grid { grid-template-columns: repeat(4, 1fr); }
}

.wz-plan-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--wz-space-2);
}

.wz-plan-detail-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--wz-gray-400);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.wz-plan-detail-label {
  display: block;
  font-size: 0.7rem;
  color: var(--wz-gray-400);
  margin-bottom: var(--wz-space-1);
}

.wz-plan-detail-value {
  display: block;
  font-weight: 600;
  color: var(--wz-gray-900);
}

.wz-plan-options {
  display: flex;
  flex-direction: column;
  gap: var(--wz-space-5);
}

.wz-plan-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wz-gray-900);
  margin: 0;
}

.wz-plan-allset {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--wz-space-7) var(--wz-space-6);
  background: #f0fdf4;
  border-radius: var(--wz-radius-xl);
  border: 1px solid #dcfce7;
}

.wz-plan-allset-icon {
  width: 4rem;
  height: 4rem;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  margin-bottom: var(--wz-space-4);
}

.wz-plan-allset-icon svg { width: 2rem; height: 2rem; }

.wz-plan-allset-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #14532d;
  margin: 0 0 var(--wz-space-2);
}

.wz-plan-allset-text { color: #15803d; margin: 0; }

.wz-plan-group + .wz-plan-group { margin-top: var(--wz-space-3); }

.wz-plan-group-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wz-gray-500);
  margin: 0 0 var(--wz-space-3);
}

.wz-plan-group-options { display: flex; flex-direction: column; gap: var(--wz-space-3); }

.wz-plan-option-card {
  display: flex;
  align-items: center;
  gap: var(--wz-space-3);
  padding: var(--wz-space-4);
  background: var(--wz-surface);
  border: 2px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-lg);
  cursor: pointer;
  transition: border-color var(--wz-duration) var(--wz-ease),
              background var(--wz-duration) var(--wz-ease),
              box-shadow var(--wz-duration) var(--wz-ease);
}

.wz-plan-option-card:hover {
  border-color: var(--wz-gray-300);
  box-shadow: var(--wz-shadow-sm);
}

.wz-plan-option-card--selected {
  border-color: var(--wz-primary);
  background: var(--wz-primary-light);
  box-shadow: 0 0 0 1px var(--wz-primary);
}

.wz-plan-option-card--selected:hover {
  border-color: var(--wz-primary);
}

.wz-plan-option-radio {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--wz-gray-300);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--wz-duration) var(--wz-ease),
              background var(--wz-duration) var(--wz-ease);
}

.wz-plan-option-card--selected .wz-plan-option-radio {
  border-color: var(--wz-primary);
  background: var(--wz-primary);
}

.wz-plan-option-radio-inner {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--wz-surface);
}

.wz-plan-option-info { flex: 1; min-width: 0; }

.wz-plan-option-name {
  display: block;
  font-weight: 600;
  color: var(--wz-gray-900);
}

.wz-plan-option-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--wz-gray-500);
  margin-top: var(--wz-space-1);
}

.wz-plan-option-price {
  font-weight: 600;
  color: var(--wz-gray-900);
  white-space: nowrap;
  font-size: 0.9375rem;
}

.wz-plan-confirm {
  padding-top: var(--wz-space-5);
  border-top: 1px solid var(--wz-gray-100);
  margin-top: auto;
}

.wz-plan-confirm-note {
  font-size: 0.75rem;
  color: var(--wz-gray-400);
  text-align: center;
  margin-top: var(--wz-space-3);
}

.wz-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wz-modal {
  background: #fff;
  border-radius: 0.75rem;
  max-width: 28rem;
  width: 100%;
  max-height: min(90vh, 40rem);
  overflow: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.wz-modal-header {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.wz-modal-header-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wz-modal-header-icon svg { width: 1.35rem; height: 1.35rem; }

.wz-modal-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.wz-modal-header-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.wz-modal-body { padding: 1.25rem 1.5rem 1.5rem; }

.wz-modal-summary-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0 0 0.75rem;
}

.wz-modal-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.wz-modal-summary-label { color: #334155; }
.wz-modal-summary-value { font-weight: 600; color: #0f172a; white-space: nowrap; }

.wz-modal-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #e2e8f0;
  font-weight: 700;
  color: #0f172a;
}

.wz-modal-summary-total-label { font-size: 0.9rem; }
.wz-modal-summary-total-value { font-size: 1rem; color: var(--wz-primary); }

.wz-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.wz-modal-cancel {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-weight: 600;
  cursor: pointer;
}

.wz-modal-confirm {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--wz-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.wz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wz-lightbox-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wz-lightbox-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wz-lightbox-btn svg { width: 1.25rem; height: 1.25rem; }

.wz-lightbox-img-wrap {
  overflow: auto;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wz-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.15s ease;
}

/* ── Structural Options (Step 2) ── */

.wz-structural-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wz-space-6);
}

@media (min-width: 64rem) {
  .wz-structural-layout {
    grid-template-columns: 1fr 20rem;
    min-height: calc(100vh - 16rem);
  }
}

.wz-structural-main { min-width: 0; }

.wz-structural-sidebar {
  display: none;
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-xl);
  box-shadow: var(--wz-shadow-sm);
  padding: var(--wz-space-5);
  position: sticky;
  top: 9rem;
  height: fit-content;
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
}

@media (min-width: 64rem) {
  .wz-structural-sidebar { display: block; }
}

.wz-structural-sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wz-gray-500);
  margin: 0 0 var(--wz-space-5);
}

.wz-structural-sidebar-empty {
  text-align: center;
  padding: 2.5rem var(--wz-space-4);
  background: var(--wz-surface-muted);
  border-radius: var(--wz-radius-lg);
  border: 1px dashed var(--wz-gray-200);
  color: var(--wz-gray-400);
  font-size: 0.875rem;
}

.wz-structural-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: var(--wz-space-4);
}

.wz-structural-sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--wz-space-3);
  font-size: 0.875rem;
}

.wz-structural-sidebar-item-info { min-width: 0; }

.wz-structural-sidebar-item-name {
  display: block;
  font-weight: 500;
  color: var(--wz-gray-900);
}

.wz-structural-sidebar-item-cat {
  display: block;
  font-size: 0.75rem;
  color: var(--wz-gray-500);
  margin-top: 0.125rem;
}

.wz-structural-sidebar-item-price {
  font-weight: 600;
  color: var(--wz-gray-900);
  white-space: nowrap;
}

.wz-structural-sidebar-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--wz-space-4);
  margin-top: var(--wz-space-4);
  border-top: 2px solid var(--wz-gray-200);
}

.wz-structural-sidebar-total span:first-child {
  font-weight: 700;
  color: var(--wz-gray-900);
}

.wz-structural-sidebar-total-value {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--wz-primary);
}

.wz-structural-cat { margin-bottom: var(--wz-space-7); }

.wz-structural-cat-header {
  display: flex;
  align-items: center;
  gap: var(--wz-space-3);
  margin-bottom: var(--wz-space-5);
  padding-bottom: var(--wz-space-2);
  border-bottom: 1px solid var(--wz-gray-100);
}

.wz-structural-cat-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--wz-primary-light);
  color: var(--wz-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wz-structural-cat-icon svg { width: 1.25rem; height: 1.25rem; }

.wz-structural-cat-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wz-gray-900);
  margin: 0;
}

.wz-structural-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wz-space-4);
}

@media (min-width: 36rem) {
  .wz-structural-options-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .wz-structural-options-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Option card (shared structural + room) ── */

.wz-option-card {
  background: var(--wz-surface);
  border: 2px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--wz-duration) var(--wz-ease),
              box-shadow 0.3s var(--wz-ease),
              transform var(--wz-duration) var(--wz-ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--wz-shadow-sm);
}

.wz-option-card:hover {
  border-color: var(--wz-primary-ring);
  box-shadow: var(--wz-shadow-md);
  transform: translateY(-2px);
}

.wz-option-card--selected {
  border-color: var(--wz-primary);
  background: var(--wz-primary-light);
  box-shadow: 0 0 0 3px var(--wz-primary-ring), var(--wz-shadow-md);
}

.wz-option-card--selected:hover {
  box-shadow: 0 0 0 3px var(--wz-primary-ring), var(--wz-shadow-lg);
}

.wz-option-card--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.3);
}

.wz-option-card-visual {
  aspect-ratio: 16/10;
  background: var(--wz-surface-muted);
  position: relative;
  overflow: hidden;
}

.wz-option-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--wz-ease);
}

.wz-option-card:hover .wz-option-card-img { transform: scale(1.03); }

.wz-option-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wz-gray-300);
}

.wz-option-card-checkbox {
  position: absolute;
  top: var(--wz-space-3);
  right: var(--wz-space-3);
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  border: 2px solid var(--wz-gray-300);
  background: var(--wz-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wz-shadow-sm);
  transition: all var(--wz-duration) var(--wz-ease);
}

.wz-option-card-checkbox--checked {
  background: var(--wz-primary);
  border-color: var(--wz-primary);
  color: #fff;
  box-shadow: 0 2px 6px var(--wz-primary-ring);
}

.wz-option-card-checkbox svg { width: 0.85rem; height: 0.85rem; }

.wz-option-card-price-badge {
  position: absolute;
  bottom: var(--wz-space-3);
  left: var(--wz-space-3);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.6rem;
  border-radius: var(--wz-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wz-gray-900);
  box-shadow: var(--wz-shadow-sm);
}

.wz-option-card-body { padding: var(--wz-space-3) var(--wz-space-4); }

.wz-option-card-name {
  font-weight: 600;
  color: var(--wz-gray-900);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.3;
}

.wz-option-card-code {
  font-size: 0.75rem;
  color: var(--wz-gray-400);
  margin: var(--wz-space-1) 0 0;
}

/* ── Packages (Step 3) ── */

.wz-packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wz-space-5);
}

@media (min-width: 48rem) {
  .wz-packages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .wz-packages-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 90rem) {
  .wz-packages-grid { gap: var(--wz-space-6); }
}

.wz-package-card {
  background: var(--wz-surface);
  border: 2px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--wz-shadow-sm);
  transition: border-color var(--wz-duration) var(--wz-ease),
              box-shadow 0.3s var(--wz-ease),
              transform var(--wz-duration) var(--wz-ease);
}

.wz-package-card:hover {
  box-shadow: var(--wz-shadow-lg);
  transform: translateY(-2px);
}

.wz-package-card--selected {
  border-color: var(--wz-primary);
  box-shadow: 0 0 0 3px var(--wz-primary-ring), var(--wz-shadow-lg);
  transform: translateY(-2px);
}

.wz-package-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--wz-primary), var(--wz-primary-dark));
}

.wz-package-card--selected .wz-package-card-accent {
  height: 6px;
}

.wz-package-card-header {
  padding: var(--wz-space-5) var(--wz-space-5) var(--wz-space-3);
  background: linear-gradient(180deg, var(--wz-primary-light) 0%, var(--wz-surface) 100%);
}

.wz-package-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wz-gray-900);
  margin: 0 0 var(--wz-space-2);
  line-height: 1.3;
}

.wz-package-card-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--wz-primary);
  line-height: 1.2;
  margin-bottom: var(--wz-space-2);
}

.wz-package-card-meta {
  display: flex;
  align-items: center;
  gap: var(--wz-space-2);
  font-size: 0.8rem;
  color: var(--wz-gray-500);
}

.wz-package-card-meta-sep {
  color: var(--wz-gray-300);
}

.wz-package-conflict {
  margin: 0 var(--wz-space-5);
  padding: var(--wz-space-3);
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--wz-radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--wz-space-2);
  font-size: 0.8rem;
  color: #92400e;
}

.wz-package-conflict-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.wz-package-conflict-msgs {
  display: flex;
  flex-direction: column;
  gap: var(--wz-space-1);
}

.wz-package-card-items {
  padding: var(--wz-space-3) var(--wz-space-5);
  flex: 1;
  overflow-y: auto;
  max-height: 16rem;
}

.wz-package-items-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wz-gray-500);
  margin: 0 0 var(--wz-space-3);
  padding-bottom: var(--wz-space-2);
  border-bottom: 1px solid var(--wz-gray-100);
}

.wz-package-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wz-package-items-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wz-space-2);
  padding: var(--wz-space-2) 0;
  border-bottom: 1px solid var(--wz-gray-50);
  font-size: 0.8rem;
}

.wz-package-items-row:last-child { border-bottom: none; }

.wz-package-items-row--mandatory {
  background: var(--wz-primary-light);
  margin: 0 calc(-1 * var(--wz-space-2));
  padding: var(--wz-space-2);
  border-radius: var(--wz-radius-sm);
  border-bottom-color: transparent;
}

.wz-package-items-name {
  color: var(--wz-gray-700);
  flex: 1;
  min-width: 0;
}

.wz-package-items-end {
  display: flex;
  align-items: center;
  gap: var(--wz-space-2);
  flex-shrink: 0;
}

.wz-package-items-price {
  color: var(--wz-gray-500);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.wz-package-items-tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wz-primary);
  background: var(--wz-surface);
  padding: 0.125rem 0.375rem;
  border-radius: var(--wz-radius-sm);
  border: 1px solid var(--wz-primary-ring);
  white-space: nowrap;
}

.wz-package-card-action {
  padding: var(--wz-space-4) var(--wz-space-5);
  margin-top: auto;
}

.wz-package-select-btn {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-lg);
  background: var(--wz-surface);
  color: var(--wz-primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--wz-duration) var(--wz-ease);
}

.wz-package-select-btn:hover {
  background: var(--wz-primary-light);
  border-color: var(--wz-primary);
}

.wz-package-select-btn--active {
  background: var(--wz-primary);
  border-color: var(--wz-primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--wz-primary-ring);
}

.wz-package-select-btn--active:hover {
  background: var(--wz-primary-dark);
  border-color: var(--wz-primary-dark);
}

/* ── Room Upgrades (Step 4) ── */

.wz-rooms-layout {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (min-width: 48rem) {
  .wz-rooms-layout {
    display: grid;
    grid-template-columns: var(--wz-rooms-sidebar-w, 15rem) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    column-gap: var(--wz-space-4);
    row-gap: 0;
    width: 100%;
    min-height: 0;
  }
}

@media (min-width: 80rem) {
  .wz-rooms-layout {
    grid-template-columns: var(--wz-rooms-sidebar-w, 16rem) minmax(0, 1fr);
  }
}

.wz-rooms-sidebar {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
  max-height: 100%;
  background: var(--wz-surface);
  border-radius: var(--wz-radius-xl);
  box-shadow: var(--wz-shadow-sm);
  padding: var(--wz-space-4);
  margin: 0;
  overflow: hidden;
}

@media (min-width: 48rem) {
  .wz-rooms-sidebar {
    display: flex;
    width: var(--wz-rooms-sidebar-w, 15rem);
    min-width: var(--wz-rooms-sidebar-w, 15rem);
    max-width: var(--wz-rooms-sidebar-w, 15rem);
    box-sizing: border-box;
  }
}

@media (min-width: 80rem) {
  .wz-rooms-sidebar {
    width: var(--wz-rooms-sidebar-w, 16rem);
    min-width: var(--wz-rooms-sidebar-w, 16rem);
    max-width: var(--wz-rooms-sidebar-w, 16rem);
  }
}

/* Circular progress ring */
.wz-rooms-sidebar-progress {
  display: flex;
  align-items: center;
  gap: var(--wz-space-3);
  padding-bottom: var(--wz-space-4);
  margin-bottom: var(--wz-space-3);
  border-bottom: 1px solid var(--wz-gray-100);
}

.wz-rooms-progress-ring {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.wz-rooms-progress-ring-bg {
  stroke: var(--wz-gray-100);
}

.wz-rooms-progress-ring-fill {
  stroke: var(--wz-primary);
  transition: stroke-dashoffset 0.6s var(--wz-ease);
}

.wz-rooms-progress-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.wz-rooms-progress-count {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--wz-gray-900);
}

.wz-rooms-progress-label {
  font-size: 0.6875rem;
  color: var(--wz-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Room navigation */
.wz-rooms-nav {
  display: flex;
  flex-direction: column;
  gap: var(--wz-space-1);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.wz-rooms-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--wz-space-2);
  padding: 0.5rem 0.625rem;
  border: none;
  border-radius: var(--wz-radius-md);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wz-gray-600);
  transition: all var(--wz-duration) var(--wz-ease);
  text-align: left;
}

.wz-rooms-nav-btn:hover {
  background: var(--wz-surface-muted);
  color: var(--wz-gray-900);
}

.wz-rooms-nav-btn--active {
  background: var(--wz-primary-light);
  color: var(--wz-primary-dark);
  box-shadow: inset 3px 0 0 var(--wz-primary);
}

.wz-rooms-nav-btn--complete {
  color: var(--wz-success);
}

.wz-rooms-nav-icon {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: var(--wz-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--wz-duration) var(--wz-ease);
}

.wz-rooms-nav-icon svg {
  width: 0.75rem;
  height: 0.75rem;
}

.wz-rooms-nav-icon--active {
  background: var(--wz-primary);
  box-shadow: 0 0 0 3px var(--wz-primary-ring);
}

.wz-rooms-nav-icon--complete {
  background: var(--wz-success);
  color: var(--wz-surface);
}

.wz-rooms-nav-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-rooms-sidebar-bottom {
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--wz-space-3);
  padding-top: var(--wz-space-3);
  border-top: 1px solid var(--wz-gray-100);
}

.wz-rooms-sidebar-proceed {
  font-size: 0.8125rem;
}

/* Mobile room pills */
.wz-rooms-mobile-nav {
  display: block;
  flex-shrink: 0;
  background: var(--wz-surface);
  border-bottom: 1px solid var(--wz-gray-100);
  z-index: 20;
}

@media (min-width: 48rem) {
  .wz-rooms-mobile-nav { display: none; }
}

.wz-rooms-pills {
  display: flex;
  gap: var(--wz-space-2);
  padding: var(--wz-space-3) var(--wz-space-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wz-rooms-pills::-webkit-scrollbar { display: none; }

.wz-rooms-pill {
  display: flex;
  align-items: center;
  gap: var(--wz-space-1);
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-lg);
  background: var(--wz-surface);
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--wz-gray-600);
  cursor: pointer;
  transition: all var(--wz-duration) var(--wz-ease);
  flex-shrink: 0;
  box-shadow: var(--wz-shadow-sm);
}

.wz-rooms-pill:hover {
  border-color: var(--wz-gray-300);
}

.wz-rooms-pill--active {
  background: var(--wz-gray-900);
  border-color: var(--wz-gray-900);
  color: var(--wz-surface);
  box-shadow: var(--wz-shadow-md);
}

.wz-rooms-pill--complete {
  color: var(--wz-success);
  border-color: #bbf7d0;
}

.wz-rooms-pill-check { width: 0.75rem; height: 0.75rem; }

/* Main content area */
.wz-rooms-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: 5.25rem;
  scrollbar-gutter: stable;
}

.wz-rooms-content [data-option-code] {
  scroll-margin-top: var(--wz-space-5);
  scroll-margin-bottom: var(--wz-space-3);
}

.wz-rooms-detail {
  padding: var(--wz-space-4);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (min-width: 48rem) {
  .wz-rooms-detail { padding: var(--wz-space-5); }
}

.wz-rooms-detail-focus.wz-collection-expanded {
  flex: 1 1 auto;
  width: 100%;
  min-height: min(65vh, 36rem);
  box-sizing: border-box;
}

.wz-room-category { margin-bottom: var(--wz-space-6); }

.wz-room-category-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--wz-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--wz-space-4);
  padding-bottom: var(--wz-space-2);
  border-bottom: 1px solid var(--wz-gray-100);
}

.wz-room-next-wrap {
  display: flex;
  justify-content: center;
  padding: var(--wz-space-2) 0 var(--wz-space-6);
}

.wz-room-next-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--wz-space-2);
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--wz-border);
  border-radius: var(--wz-radius-full, 9999px);
  background: var(--wz-surface);
  color: var(--wz-gray-600);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--wz-ease);
}

.wz-room-next-btn:hover {
  border-color: var(--wz-primary);
  color: var(--wz-primary-dark);
  transform: translateY(-1px);
}

.wz-room-next-btn svg {
  width: 1rem;
  height: 1rem;
}

.wz-room-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wz-space-4);
}

@media (min-width: 48rem) {
  .wz-room-options-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 80rem) {
  .wz-room-options-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 100rem) {
  .wz-room-options-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ── Collection expanded ── */

.wz-collection-expanded {
  grid-column: 1 / -1;
  background: var(--wz-gray-50, #f9fafb);
  border-radius: var(--wz-radius-xl);
  padding: var(--wz-space-4);
}

.wz-collection-expanded-header {
  display: flex;
  align-items: center;
  gap: var(--wz-space-3);
  margin-bottom: var(--wz-space-4);
}

.wz-collection-expanded-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.wz-collection-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--wz-gray-200);
  background: var(--wz-surface);
  cursor: pointer;
  flex-shrink: 0;
}

.wz-collection-back:hover {
  background: var(--wz-gray-100);
}

.wz-collection-back svg {
  width: 1rem;
  height: 1rem;
}

/* ── Finish card ── */

.wz-finish-card {
  background: var(--wz-surface);
  border: 2px solid var(--wz-gray-100);
  border-radius: var(--wz-radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--wz-duration) var(--wz-ease),
              box-shadow 0.25s var(--wz-ease),
              transform 0.25s var(--wz-ease);
}

.wz-finish-card:hover {
  border-color: var(--wz-gray-300);
  box-shadow: var(--wz-shadow-lg);
  transform: translateY(-2px);
}

.wz-finish-card--selected {
  border-color: var(--wz-primary);
  box-shadow: 0 0 0 3px var(--wz-primary-ring), var(--wz-shadow-md);
}

.wz-finish-card--selected:hover {
  border-color: var(--wz-primary-dark);
}

.wz-finish-card--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.wz-finish-card-img-wrap {
  aspect-ratio: 1;
  background: var(--wz-gray-50);
  position: relative;
  overflow: hidden;
}

.wz-finish-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--wz-ease);
}

.wz-finish-card:hover .wz-finish-card-img { transform: scale(1.05); }

.wz-finish-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wz-gray-300);
}

.wz-finish-card-check-overlay {
  position: absolute;
  inset: 0;
  background: var(--wz-primary-ring);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.wz-finish-card-check-circle {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--wz-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--wz-shadow-md);
}

.wz-finish-card-check-circle svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--wz-primary);
}

.wz-finish-card-body {
  padding: var(--wz-space-3) var(--wz-space-3);
}

.wz-finish-card-name {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--wz-gray-900);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wz-finish-card-price {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wz-gray-600);
  margin-top: 0.15rem;
}

/* ── Collection expanded subtitle ── */

.wz-collection-expanded-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wz-gray-500, #64748b);
  margin-top: 0.1rem;
}

.wz-finish-card-excluded-badge {
  position: absolute;
  top: var(--wz-space-2);
  left: var(--wz-space-2);
  background: rgba(239, 68, 68, 0.9);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--wz-surface);
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
}

.wz-finish-card-cutoff-badge {
  position: absolute;
  top: var(--wz-space-2);
  left: var(--wz-space-2);
  background: rgba(245, 158, 11, 0.9);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--wz-surface);
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
}

.wz-finish-card-urgency-badge {
  position: absolute;
  top: var(--wz-space-2);
  right: var(--wz-space-2);
  background: rgba(239, 68, 68, 0.9);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--wz-surface);
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
}

.wz-finish-card-count-badge {
  position: absolute;
  top: var(--wz-space-2);
  right: var(--wz-space-2);
  background: var(--wz-primary);
  color: var(--wz-surface);
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2rem;
  padding: 0 0.4rem;
}

.wz-finish-card-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--wz-gray-500);
  margin-top: 0.1rem;
}

.wz-finish-card--collection {
  border-style: dashed;
}

.wz-finish-card--collection:hover {
  border-color: var(--wz-primary);
  border-style: solid;
}

.wz-finish-card-zoom {
  position: absolute;
  bottom: var(--wz-space-2);
  right: var(--wz-space-2);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s var(--wz-ease);
}

.wz-finish-card:hover .wz-finish-card-zoom {
  opacity: 1;
}

.wz-finish-card-zoom svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--wz-gray-600);
}

/* Room confirm + subtotal (sidebar or mobile strip, not sticky in grid) */
.wz-room-footer {
  background: var(--wz-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wz-space-3);
  flex-wrap: wrap;
}

.wz-room-footer--sidebar {
  display: none;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border-top: none;
}

@media (min-width: 48rem) {
  .wz-room-footer--sidebar {
    display: flex;
  }
}

.wz-room-footer--sidebar .wz-room-footer-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.wz-room-footer--sidebar .wz-room-confirm-btn {
  width: 100%;
  justify-content: center;
}

.wz-room-footer--mobile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: var(--wz-space-2) var(--wz-space-4) var(--wz-space-1);
  border-top: 1px solid var(--wz-gray-100);
}

@media (min-width: 48rem) {
  .wz-room-footer--mobile {
    display: none !important;
  }
}

.wz-room-footer--mobile .wz-room-footer-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.wz-room-footer--mobile .wz-room-confirm-btn {
  width: 100%;
  justify-content: center;
}

.wz-room-footer-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--wz-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wz-room-footer-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wz-gray-900);
}

.wz-room-confirm-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--wz-space-2);
  padding: var(--wz-space-3) var(--wz-space-6);
  border: none;
  border-radius: var(--wz-radius-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--wz-duration) var(--wz-ease);
  font-size: 0.875rem;
  background: var(--wz-primary);
  color: var(--wz-surface);
}

.wz-room-confirm-btn:hover {
  background: var(--wz-primary-dark);
}

.wz-room-confirm-btn--done {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.wz-room-confirm-btn--done:hover { background: #dcfce7; }

.wz-room-confirm-check { width: 1.1rem; height: 1.1rem; }

.wz-room-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--wz-space-8) var(--wz-space-6);
}

.wz-room-empty-icon {
  width: 5rem;
  height: 5rem;
  background: var(--wz-gray-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wz-gray-400);
  margin-bottom: var(--wz-space-5);
}

.wz-room-empty-icon svg { width: 2.5rem; height: 2.5rem; }

.wz-room-loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--wz-gray-200);
  border-top-color: var(--wz-primary, #1f3a5f);
  border-radius: 50%;
  animation: wz-spin 0.7s linear infinite;
  margin-bottom: var(--wz-space-5);
}
@keyframes wz-spin { to { transform: rotate(360deg); } }

.wz-room-empty h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wz-gray-900);
  margin: 0 0 var(--wz-space-2);
}

.wz-room-empty p { color: var(--wz-gray-500); margin: 0 0 var(--wz-space-6); max-width: 20rem; }

/* ── Review / Approval (Step 5) ──────────────────────────────
   New `rv-*` namespace (replaces legacy `wz-review-*`).
   Goal: demo-ready buyer experience — premium hero, at-a-glance
   snapshot cards, clean breakdown sections, sticky summary.
   ─────────────────────────────────────────────────────────── */

.wz-step-review { padding-bottom: 4rem; }

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

/* Hero banner */
.rv-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--wz-radius-2xl);
  margin-bottom: 2rem;
  isolation: isolate;
  box-shadow: var(--wz-shadow-lg);
}

.rv-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.10), transparent 40%),
    linear-gradient(135deg, var(--wz-primary) 0%, var(--wz-primary-dark) 55%, #312e81 100%);
}

.rv-hero-inner {
  position: relative;
  padding: 3rem 2.5rem;
  color: #fff;
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .rv-hero-inner { grid-template-columns: 1fr auto; align-items: end; }
}

.rv-hero-head { max-width: 42rem; }

.rv-hero-elevation {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: min(22rem, 100%);
  max-width: 30rem;
  margin: 0;
  padding: 0.75rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: calc(var(--wz-radius-2xl) - 0.25rem);
  box-shadow: 0 22px 45px -28px rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
}

.rv-hero-elevation-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--wz-radius-xl);
  background: rgba(255,255,255,0.18);
}

.rv-hero-elevation-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
}

.rv-hero-elevation-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35), transparent 32%),
    linear-gradient(0deg, rgba(15,23,42,0.26), transparent 45%);
  pointer-events: none;
}

.rv-hero-elevation-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
}

.rv-hero-elevation-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
}

.rv-hero-elevation-name {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-hero-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.rv-hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.rv-hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 38rem;
}

.rv-hero-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}

@media (min-width: 40rem) {
  .rv-hero-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.rv-hero-meta-item { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.rv-hero-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.rv-hero-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-hero-price {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--wz-radius-xl);
  backdrop-filter: blur(6px);
}

@media (min-width: 40rem) {
  .rv-hero-price { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 47.98rem) {
  .rv-hero-elevation {
    max-width: none;
  }
}

.rv-hero-price-total { display: flex; flex-direction: column; gap: 0.25rem; }
.rv-hero-price-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.rv-hero-price-value { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.rv-hero-price-hint { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

.rv-hero-approve {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--wz-primary-dark);
  background: #fff;
  border: none;
  border-radius: var(--wz-radius-lg);
  cursor: pointer;
  transition: transform var(--wz-duration) var(--wz-ease), box-shadow var(--wz-duration) var(--wz-ease);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.25);
  white-space: nowrap;
}
.rv-hero-approve:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -6px rgba(0,0,0,0.3); }
.rv-hero-approve:focus-visible { outline: 3px solid rgba(255,255,255,0.7); outline-offset: 2px; }
.rv-hero-approve:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,0.15);
}
.rv-hero-approve:disabled:hover { transform: none; box-shadow: 0 6px 16px -4px rgba(0,0,0,0.15); }
.rv-hero-approve svg { width: 1.1rem; height: 1.1rem; }

.rv-hero-approve--secondary { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3); box-shadow: none; }
.rv-hero-approve--secondary:hover { background: rgba(255,255,255,0.22); box-shadow: none; }

/* Layout */
.rv-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 64rem) {
  .rv-layout { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
}

@media (min-width: 90rem) {
  .rv-layout { grid-template-columns: minmax(0, 1fr) 26rem; gap: 2.5rem; }
}

.rv-main { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }

/* Snapshot cards */
.rv-snapshot {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 32rem) { .rv-snapshot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .rv-snapshot { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.rv-snap-card {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.5rem;
  padding: 1rem 1.125rem;
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-xl);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color var(--wz-duration) var(--wz-ease), box-shadow var(--wz-duration) var(--wz-ease), transform var(--wz-duration) var(--wz-ease);
  box-shadow: var(--wz-shadow-sm);
  width: 100%;
}
.rv-snap-card:hover { border-color: var(--wz-primary); box-shadow: var(--wz-shadow-md); transform: translateY(-1px); }
.rv-snap-card:focus-visible { outline: 2px solid var(--wz-primary); outline-offset: 2px; }

.rv-snap-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--wz-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  grid-row: 1 / span 2;
}
.rv-snap-icon svg { width: 1.25rem; height: 1.25rem; }
.rv-snap-icon--plan { background: linear-gradient(135deg, var(--wz-primary), var(--wz-primary-dark)); }
.rv-snap-icon--structural { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.rv-snap-icon--packages { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.rv-snap-icon--rooms { background: linear-gradient(135deg, #10b981, #059669); }

.rv-snap-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}
.rv-snap-label { font-size: 0.9rem; font-weight: 700; color: var(--wz-gray-900); }
.rv-snap-count { font-size: 0.75rem; color: var(--wz-gray-500); }

.rv-snap-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wz-gray-900);
  white-space: nowrap;
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
}
/* Section cards */
.rv-section {
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-xl);
  overflow: hidden;
  box-shadow: var(--wz-shadow-sm);
  transition: box-shadow var(--wz-duration) var(--wz-ease);
}
.rv-section:hover { box-shadow: var(--wz-shadow-md); }

.rv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--wz-duration) var(--wz-ease);
}
.rv-section-head:hover { background: var(--wz-surface-muted); }
.rv-section-head:focus-visible { outline: 2px solid var(--wz-primary); outline-offset: -2px; }

.rv-section-head-left { display: flex; align-items: center; gap: 0.875rem; min-width: 0; }

.rv-section-chev {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--wz-gray-50);
  color: var(--wz-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--wz-duration) var(--wz-ease), color var(--wz-duration) var(--wz-ease);
}
.rv-section-chev svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--wz-ease); }
.rv-section-chev--open { background: var(--wz-primary-light); color: var(--wz-primary); }
.rv-section-chev--open svg { transform: rotate(180deg); }

.rv-section-title { font-size: 1rem; font-weight: 700; color: var(--wz-gray-900); margin: 0; }
.rv-section-meta { font-size: 0.8rem; color: var(--wz-gray-500); margin: 0.2rem 0 0; }

.rv-section-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wz-primary);
  background: var(--wz-primary-light);
  border-radius: var(--wz-radius-md);
  cursor: pointer;
  transition: background var(--wz-duration) var(--wz-ease);
  user-select: none;
}
.rv-section-edit:hover { background: color-mix(in srgb, var(--wz-primary-light) 80%, var(--wz-primary) 20%); }
.rv-section-edit svg { width: 0.875rem; height: 0.875rem; }

.rv-section-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--wz-gray-100);
}

.rv-line-list { list-style: none; margin: 0; padding: 0; }

.rv-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--wz-gray-100);
}
.rv-line:last-child { border-bottom: none; }

.rv-line-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.rv-line-name { font-size: 0.925rem; font-weight: 600; color: var(--wz-gray-900); }
.rv-line-tag { font-size: 0.75rem; color: var(--wz-gray-500); text-transform: capitalize; }

.rv-line-price { font-size: 0.925rem; font-weight: 700; color: var(--wz-gray-900); white-space: nowrap; }

.rv-empty { color: var(--wz-gray-400); font-size: 0.875rem; font-style: italic; padding: 0.75rem 0 0; margin: 0; }

/* Agreement block */
.rv-agreement {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: var(--wz-primary-light);
  border: 1px solid var(--wz-primary-ring);
  border-radius: var(--wz-radius-xl);
  margin-top: 0.5rem;
}

.rv-agreement-badge {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--wz-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rv-agreement-badge svg { width: 1.25rem; height: 1.25rem; }

.rv-agreement-title { font-size: 1rem; font-weight: 700; color: var(--wz-gray-900); margin: 0 0 0.35rem; }
.rv-agreement-text { font-size: 0.875rem; line-height: 1.6; color: var(--wz-gray-600); margin: 0; }
.rv-agreement-text strong { color: var(--wz-gray-900); font-weight: 700; }

/* Sidebar */
.rv-side { min-width: 0; }

.rv-side-sticky {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rv-side-card {
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--wz-shadow-sm);
}

.rv-side-head { padding-bottom: 1.25rem; border-bottom: 1px solid var(--wz-gray-100); margin-bottom: 1rem; }
.rv-side-eyebrow { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wz-gray-500); margin-bottom: 0.35rem; }
.rv-side-title { font-size: 2rem; font-weight: 800; color: var(--wz-gray-900); letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
.rv-side-sub { display: block; font-size: 0.8rem; color: var(--wz-gray-500); margin-top: 0.4rem; }

.rv-side-lines { display: flex; flex-direction: column; gap: 0.65rem; margin: 0; padding: 0; }
.rv-side-line { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; }
.rv-side-line dt { color: var(--wz-gray-500); margin: 0; }
.rv-side-line dd { color: var(--wz-gray-900); font-weight: 600; margin: 0; }

.rv-side-grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--wz-gray-100);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wz-gray-900);
}
.rv-side-grand-value { font-size: 1.25rem; color: var(--wz-primary); letter-spacing: -0.01em; }

.rv-side-monthly {
  font-size: 0.8rem;
  color: var(--wz-gray-500);
  text-align: right;
  margin-top: 0.35rem;
}
.rv-side-monthly strong { color: var(--wz-gray-900); }

.rv-side-deposit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 0.875rem;
  background: color-mix(in srgb, var(--wz-success) 8%, white);
  border: 1px solid color-mix(in srgb, var(--wz-success) 25%, white);
  border-radius: var(--wz-radius-md);
  color: color-mix(in srgb, var(--wz-success) 80%, black);
  font-size: 0.825rem;
}
.rv-side-deposit svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.rv-side-deposit strong { font-weight: 700; }

.rv-side-actions { display: flex; flex-direction: column; gap: 0.75rem; }

.rv-approve-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--wz-success), #059669);
  border: none;
  border-radius: var(--wz-radius-lg);
  cursor: pointer;
  box-shadow: 0 10px 20px -6px color-mix(in srgb, var(--wz-success) 50%, transparent);
  transition: transform var(--wz-duration) var(--wz-ease), box-shadow var(--wz-duration) var(--wz-ease);
}
.rv-approve-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 24px -6px color-mix(in srgb, var(--wz-success) 60%, transparent); }
.rv-approve-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--wz-success) 40%, white); outline-offset: 2px; }
.rv-approve-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.15);
  box-shadow: none;
}
.rv-approve-btn:disabled:hover { transform: none; box-shadow: none; }
.rv-approve-btn svg { width: 1.1rem; height: 1.1rem; }

.rv-save-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wz-gray-900);
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-lg);
  cursor: pointer;
  transition: background var(--wz-duration) var(--wz-ease);
}
.rv-save-btn:hover:not(:disabled) { background: var(--wz-surface-muted); }
.rv-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.rv-save-btn--primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--wz-primary), var(--wz-primary-dark));
  border: none;
  box-shadow: 0 10px 20px -6px color-mix(in srgb, var(--wz-primary) 50%, transparent);
  transition: transform var(--wz-duration) var(--wz-ease), box-shadow var(--wz-duration) var(--wz-ease);
}
.rv-save-btn--primary svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.rv-save-btn--primary:hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(135deg, var(--wz-primary), var(--wz-primary-dark)); box-shadow: 0 14px 24px -6px color-mix(in srgb, var(--wz-primary) 60%, transparent); }
.rv-save-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.rv-side-secondary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }

.rv-ghost-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.625rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wz-gray-700);
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-md);
  cursor: pointer;
  transition: background var(--wz-duration) var(--wz-ease), color var(--wz-duration) var(--wz-ease);
}
.rv-ghost-btn:hover { background: var(--wz-surface-muted); color: var(--wz-gray-900); }
.rv-ghost-btn svg { width: 0.9rem; height: 0.9rem; }

.rv-status-msg { display: block; text-align: center; font-size: 0.8rem; padding: 0.25rem 0; }
.rv-disclaimer { font-size: 0.7rem; color: var(--wz-gray-400); margin: 0.5rem 0 0; text-align: center; line-height: 1.4; }

/* Print: give buyer a clean takeaway */
@media print {
  html:has(main .wz-page),
  body:has(main .wz-page) {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  body:has(main .wz-page) main#main-content {
    overflow: visible !important;
    display: block !important;
  }

  .wz-page {
    overflow: visible !important;
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
  }

  .wz-page-main,
  .wz-page-main > div,
  .wz-page-stage,
  .wz-rooms-content,
  .wz-rooms-sidebar {
    overflow: visible !important;
    max-height: none !important;
    padding-bottom: 0 !important;
  }

  .rv-hero-approve,
  .rv-side-actions,
  .rv-section-edit,
  .rv-snapshot,
  .wz-stepper-wrap,
  .wz-pricing,
  #priceout-htmx-trigger { display: none !important; }

  .rv-layout { grid-template-columns: 1fr !important; }
  .rv-hero { background: #fff !important; color: #000 !important; box-shadow: none !important; border: 1px solid #000 !important; }
  .rv-hero-bg { display: none !important; }
  .rv-hero-inner { color: #000 !important; }
  .rv-hero-elevation { background: none !important; border-color: #000 !important; box-shadow: none !important; }
  .rv-hero-elevation-shine { display: none !important; }
  .rv-hero-title, .rv-hero-meta-value, .rv-hero-price-value, .rv-hero-elevation-name { color: #000 !important; }
  .rv-hero-sub, .rv-hero-meta-label, .rv-hero-price-label, .rv-hero-price-hint, .rv-hero-elevation-label { color: #333 !important; }
  .rv-hero-price { background: none !important; border-color: #000 !important; }

  .rv-section, .rv-side-card { break-inside: avoid; box-shadow: none !important; border-color: #000 !important; }
  .rv-section-body { display: block !important; }
}

/* ── Pricing Bar ── */

.wz-pricing {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.wz-pricing-drawer {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
}

.wz-pricing-drawer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

@media (min-width: 90rem) {
  .wz-pricing-drawer-inner { max-width: 90rem; padding: 1.5rem 3rem; }
}

.wz-pricing-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.wz-pricing-drawer-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin: 0; }

.wz-pricing-drawer-close {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wz-primary);
  cursor: pointer;
}

.wz-pricing-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 48rem) {
  .wz-pricing-breakdown-grid { grid-template-columns: repeat(4, 1fr); }
}

.wz-pricing-breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--wz-surface-muted);
  border-radius: var(--wz-radius-lg);
  border: 1px solid var(--wz-gray-50);
}

.wz-pricing-breakdown-icon {
  color: var(--wz-primary);
  margin-bottom: 0.25rem;
}

.wz-pricing-breakdown-label { display: block; font-size: 0.8rem; color: #64748b; }

.wz-pricing-breakdown-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wz-gray-900);
}

.wz-pricing-drawer-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.wz-pricing-save-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.wz-pricing-save-btn:hover { color: var(--wz-primary); }
.wz-pricing-save-icon { width: 1rem; height: 1rem; }

.wz-pricing-bar {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.wz-pricing-bar-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .wz-pricing-bar-inner { padding: 0 2rem; }
}

@media (min-width: 90rem) {
  .wz-pricing-bar-inner { max-width: 90rem; padding: 0 3rem; }
}

.wz-pricing-total-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.wz-pricing-chevron {
  padding: 0.25rem;
  color: #94a3b8;
  transition: transform 0.3s;
}

.wz-pricing-chevron svg { width: 1.5rem; height: 1.5rem; }

.wz-pricing-chevron--open { transform: rotate(180deg); }

.wz-pricing-total-amount {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

@media (min-width: 48rem) {
  .wz-pricing-total-amount { font-size: 1.875rem; }
}

.wz-pricing-total-hint {
  display: none;
  font-size: 0.7rem;
  color: #94a3b8;
}

@media (min-width: 48rem) {
  .wz-pricing-total-hint { display: block; }
}

.wz-pricing-count {
  display: none;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 48rem) {
  .wz-pricing-count { display: flex; }
}

.wz-pricing-count-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--wz-primary-light);
  color: var(--wz-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.wz-pricing-count-label { font-size: 0.7rem; color: #64748b; margin-top: 0.125rem; }

.wz-pricing-next-btn {
  height: 3rem;
  padding: 0 1.75rem;
  border-radius: var(--wz-radius-lg);
  background: var(--wz-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--wz-duration) var(--wz-ease);
  box-shadow: 0 10px 20px var(--wz-primary-ring);
  white-space: nowrap;
  transform: scale(1);
}

.wz-pricing-next-btn:hover { background: var(--wz-primary-dark); }

.wz-pricing-next-btn:active { transform: scale(0.95); }

.wz-pricing-next-btn--final { background: #16a34a; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2); }

.wz-pricing-next-btn--final:hover { background: #15803d; }

.wz-pricing-next-arrow { width: 1.1rem; height: 1.1rem; }

/* ── Explore Plan Actions ── */
.wz-plan-explore-actions {
  display: flex;
  gap: var(--wz-space-3);
}
.wz-plan-explore-btn,
.wz-plan-tour-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wz-space-2);
  padding: 0.625rem var(--wz-space-4);
  border-radius: var(--wz-radius-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--wz-duration) var(--wz-ease),
              border-color var(--wz-duration) var(--wz-ease);
  border: 1px solid var(--wz-gray-200);
  background: var(--wz-surface);
  color: var(--wz-gray-700);
}
.wz-plan-explore-btn:hover { background: var(--wz-gray-50); border-color: var(--wz-gray-300); }
.wz-plan-tour-btn {
  background: var(--wz-primary-light);
  border-color: #c7d2fe;
  color: var(--wz-primary-dark);
}
.wz-plan-tour-btn:hover { background: #e0e7ff; }

/* ── Explore Plan Modal ── */
.wz-explore-modal {
  background: #fff;
  border-radius: 1rem;
  width: 95vw;
  max-width: 72rem;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: wz-modal-in 0.2s ease-out;
}
.wz-explore-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.wz-explore-modal-title { font-size: 1.125rem; font-weight: 700; color: #0f172a; }
.wz-explore-modal-close {
  background: none;
  border: none;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.15s;
}
.wz-explore-modal-close:hover { background: #f1f5f9; color: #475569; }
.wz-explore-modal-close svg { width: 1.25rem; height: 1.25rem; }
.wz-explore-modal-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.wz-explore-modal-plan {
  flex: 1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: auto;
}
.wz-explore-modal-sidebar {
  width: 20rem;
  border-left: 1px solid #f1f5f9;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 48rem) {
  .wz-explore-modal-body { flex-direction: column; }
  .wz-explore-modal-sidebar { width: 100%; border-left: none; border-top: 1px solid #f1f5f9; max-height: 14rem; }
  .wz-explore-modal { height: 92vh; }
}
.wz-explore-modal-info-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 0.75rem;
  padding: 1rem;
}
.wz-explore-modal-info-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin: 0 0 0.75rem;
}
.wz-explore-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.wz-explore-detail-row:last-child { border-bottom: none; }
.wz-explore-detail-row span { color: #94a3b8; }
.wz-explore-detail-row strong { color: #0f172a; font-weight: 600; }
.wz-explore-room-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #475569;
  padding: 0.25rem 0;
}
.wz-explore-elev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.wz-explore-elev-thumb {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.15s;
}
.wz-explore-elev-thumb:hover { opacity: 1; }
.wz-explore-elev-thumb--active { border-color: var(--wz-primary); opacity: 1; }
.wz-explore-elev-thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.wz-explore-elev-thumb span {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  text-align: center;
  padding: 0.25rem 0;
  color: #475569;
}

/* ── Virtual Tour Modal ── */
.wz-tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.wz-tour-modal { display: flex; flex-direction: column; height: 100%; }
.wz-tour-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  flex-shrink: 0;
}
.wz-tour-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}
.wz-tour-close {
  background: rgba(255,255,255,0.1);
  border: none;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s;
}
.wz-tour-close:hover { background: rgba(255,255,255,0.2); }
.wz-tour-close svg { width: 1.25rem; height: 1.25rem; }
.wz-tour-body { flex: 1; display: flex; }
.wz-tour-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* ── Plan Confirm Modal ── */

.wz-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wz-modal {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 32rem;
  overflow: hidden;
  animation: wz-modal-in 0.2s ease-out;
}

@keyframes wz-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.wz-modal-header {
  background: #fffbeb;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #fef3c7;
}

.wz-modal-header-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: #fef3c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  flex-shrink: 0;
}

.wz-modal-header-icon svg { width: 1.5rem; height: 1.5rem; }

.wz-modal-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #78350f;
  margin: 0 0 0.25rem;
}

.wz-modal-header-desc {
  font-size: 0.875rem;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

.wz-modal-body { padding: 1.5rem; }

.wz-modal-summary-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 1rem;
}

.wz-modal-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.wz-modal-summary-row:last-of-type { border-bottom: none; }

.wz-modal-summary-label { color: #111827; }

.wz-modal-summary-value { font-weight: 500; color: #111827; }

.wz-modal-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.wz-modal-summary-total-label { font-weight: 700; color: #111827; }

.wz-modal-summary-total-value { font-weight: 700; color: var(--wz-primary); }

.wz-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.wz-modal-cancel {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
}

.wz-modal-cancel:hover { background: #f9fafb; }

.wz-modal-confirm {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--wz-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 4px 12px var(--wz-primary-ring);
}

.wz-modal-confirm:hover { background: var(--wz-primary-dark); }

/* ── Option Detail Modal ── */

.wz-detail-modal {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 56rem;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: wz-modal-in 0.2s ease-out;
}

@media (min-width: 48rem) {
  .wz-detail-modal { flex-direction: row; }
}

.wz-detail-modal-img {
  background: #f1f5f9;
  flex: 0 0 auto;
  height: 18rem;
  position: relative;
}

@media (min-width: 48rem) {
  .wz-detail-modal-img { width: 60%; height: auto; min-height: 24rem; }
}

.wz-detail-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wz-detail-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.wz-detail-modal-close:hover { background: rgba(0,0,0,0.4); }
.wz-detail-modal-close svg { width: 1.25rem; height: 1.25rem; }

.wz-detail-modal-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.wz-detail-modal-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wz-primary);
  margin-bottom: 0.5rem;
}

.wz-detail-modal-name {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
}

.wz-detail-modal-price {
  font-size: 1.25rem;
  font-weight: 500;
  color: #6b7280;
  margin: 0 0 1.5rem;
}

.wz-detail-modal-desc {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.wz-detail-modal-action {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f3f4f6;
}

.wz-detail-modal-select {
  width: 100%;
  padding: 0.875rem;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wz-detail-modal-select:hover { background: #1f2937; }
.wz-detail-modal-select svg { width: 1rem; height: 1rem; }

/* ── Lightbox / Floor Plan Viewer ── */

.wz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wz-lightbox-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.wz-lightbox-btn {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
}

.wz-lightbox-btn:hover { background: rgba(255,255,255,0.2); }
.wz-lightbox-btn svg { width: 1.5rem; height: 1.5rem; }

.wz-lightbox-img-wrap {
  max-width: 75rem;
  max-height: 90vh;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.wz-lightbox-img {
  max-width: none;
  transition: transform 0.2s ease-out;
  transform-origin: center;
}

/* ── Floor Plan Viewer (Electrical) ── */

.wz-floorplan-viewer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: #f3f4f6;
  border-radius: 0.75rem;
  overflow: hidden;
}

.wz-floorplan-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wz-floorplan-pin {
  position: absolute;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: all 0.2s;
  font-size: 0.6rem;
  font-weight: 700;
  z-index: 5;
  border: 2px solid transparent;
}

.wz-floorplan-pin--base {
  background: #e5e7eb;
  color: #6b7280;
  border-color: #d1d5db;
}

.wz-floorplan-pin--available {
  background: #fff;
  color: var(--wz-primary);
  border-color: var(--wz-primary-ring);
  box-shadow: 0 2px 8px var(--wz-primary-ring);
}

.wz-floorplan-pin--available:hover {
  background: var(--wz-primary-light);
  transform: translate(-50%, -50%) scale(1.15);
}

.wz-floorplan-pin--selected {
  background: var(--wz-primary);
  color: #fff;
  border-color: var(--wz-primary);
  box-shadow: 0 2px 12px var(--wz-primary-ring);
}

.wz-floorplan-pin svg { width: 0.75rem; height: 0.75rem; }

.wz-floorplan-legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 10;
}

.wz-floorplan-legend-item { display: flex; align-items: center; gap: 0.375rem; color: #374151; }

.wz-floorplan-legend-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
}

.wz-floorplan-legend-dot--base { background: #d1d5db; }
.wz-floorplan-legend-dot--available { background: #a5b4fc; }
.wz-floorplan-legend-dot--selected { background: var(--wz-primary); }

/* ── Sign Off Flow ── */

.wz-signoff-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

@media (min-width: 48rem) {
  .wz-signoff-backdrop { padding: 1rem; }
}

.wz-signoff-dialog {
  background: var(--wz-surface);
  width: 100%;
  max-width: 64rem;
  border-radius: 0;
  box-shadow: var(--wz-shadow-xl);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  animation: wz-modal-in 0.25s ease-out;
}

@media (min-width: 48rem) {
  .wz-signoff-dialog { border-radius: var(--wz-radius-xl); height: auto; max-height: 90vh; }
}

.wz-signoff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--wz-gray-100);
}

.wz-signoff-header-title { font-size: 1.5rem; font-weight: 700; color: var(--wz-gray-900); margin: 0; }

.wz-signoff-header-sub { font-size: 0.875rem; color: var(--wz-gray-500); margin: 0.25rem 0 0; }

.wz-signoff-close {
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--wz-gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--wz-duration) var(--wz-ease);
}

.wz-signoff-close:hover { background: var(--wz-gray-100); color: var(--wz-gray-700); }
.wz-signoff-close svg { width: 1.5rem; height: 1.5rem; }

.wz-signoff-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  background: var(--wz-bg);
}

.wz-signoff-price-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.wz-signoff-price-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wz-gray-500);
  margin-bottom: 0.25rem;
}

.wz-signoff-price-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--wz-primary);
}

@media (min-width: 48rem) {
  .wz-signoff-price-value { font-size: 3rem; }
}

.wz-signoff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 64rem) {
  .wz-signoff-grid { grid-template-columns: 1fr 1fr; }
}

.wz-signoff-terms-title {
  font-weight: 700;
  color: var(--wz-gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.wz-signoff-terms-title svg { width: 1rem; height: 1rem; color: var(--wz-gray-500); }

.wz-signoff-terms-scroll {
  height: 16rem;
  overflow-y: auto;
  background: var(--wz-surface);
  padding: 1rem;
  border-radius: var(--wz-radius-lg);
  border: 1px solid var(--wz-gray-200);
  font-size: 0.875rem;
  color: var(--wz-gray-500);
  line-height: 1.6;
  box-shadow: var(--wz-shadow-sm);
}

.wz-signoff-terms-scroll p { margin: 0 0 0.75rem; }
.wz-signoff-terms-scroll p:last-child { margin: 0; }

.wz-signoff-accept {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--wz-radius-lg);
  cursor: pointer;
  margin-top: 1rem;
  transition: all var(--wz-duration) var(--wz-ease);
  border: 1px solid transparent;
}

.wz-signoff-accept:hover { background: var(--wz-surface); border-color: var(--wz-gray-200); box-shadow: var(--wz-shadow-sm); }

.wz-signoff-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--wz-gray-300);
  border-radius: var(--wz-radius-sm);
  cursor: pointer;
  appearance: none;
  flex-shrink: 0;
  margin-top: 0.125rem;
  transition: all var(--wz-duration) var(--wz-ease);
  position: relative;
}

.wz-signoff-checkbox:checked {
  background: var(--wz-primary);
  border-color: var(--wz-primary);
}

.wz-signoff-accept-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wz-gray-700);
  line-height: 1.4;
}

.wz-signoff-accept-text strong { color: var(--wz-gray-900); }

.wz-signoff-sig-section {
  background: var(--wz-surface);
  padding: 1.5rem;
  border-radius: var(--wz-radius-lg);
  border: 1px solid var(--wz-gray-200);
  box-shadow: var(--wz-shadow-sm);
}

.wz-signoff-sig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.wz-signoff-sig-title { font-weight: 700; color: var(--wz-gray-900); margin: 0; }

.wz-signoff-sig-modes {
  display: flex;
  background: var(--wz-gray-100);
  border-radius: var(--wz-radius-md);
  padding: 0.25rem;
}

.wz-signoff-sig-mode {
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: var(--wz-radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: transparent;
  color: var(--wz-gray-500);
  transition: all var(--wz-duration) var(--wz-ease);
}

.wz-signoff-sig-mode--active {
  background: var(--wz-surface);
  color: var(--wz-primary);
  box-shadow: var(--wz-shadow-sm);
}

.wz-signoff-sig-mode svg { width: 0.75rem; height: 0.75rem; }

.wz-signoff-sig-pad {
  border: 2px dashed var(--wz-gray-300);
  border-radius: var(--wz-radius-lg);
  background: var(--wz-surface);
  height: 8rem;
  position: relative;
  overflow: hidden;
  touch-action: none;
}

.wz-signoff-sig-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wz-gray-300);
  font-size: 1.1rem;
  font-weight: 500;
  pointer-events: none;
}

.wz-signoff-sig-canvas { width: 100%; height: 100%; cursor: crosshair; display: block; }

.wz-signoff-sig-typed {
  width: 100%;
  height: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px dashed var(--wz-gray-200);
  border-radius: var(--wz-radius-lg);
  background: var(--wz-bg);
  padding: 0 1rem;
}

.wz-signoff-sig-input {
  width: 100%;
  text-align: center;
  font-size: 1.75rem;
  font-family: 'Brush Script MT', cursive;
  color: var(--wz-primary-dark);
  border: none;
  border-bottom: 2px solid var(--wz-gray-300);
  background: transparent;
  outline: none;
  padding-bottom: 0.5rem;
}

.wz-signoff-sig-input:focus { border-bottom-color: var(--wz-primary); }

.wz-signoff-sig-input::placeholder {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--wz-gray-300);
  font-size: 1rem;
}

.wz-signoff-sig-clear {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: var(--wz-radius-sm);
  padding: 0.25rem 0.5rem;
  color: var(--wz-gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: var(--wz-shadow-sm);
}

.wz-signoff-sig-clear:hover { color: var(--wz-danger); }
.wz-signoff-sig-clear svg { width: 0.75rem; height: 0.75rem; }

.wz-signoff-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--wz-gray-500);
  margin-top: 0.75rem;
}

.wz-signoff-date svg { width: 0.75rem; height: 0.75rem; }
.wz-signoff-date strong { color: var(--wz-gray-900); }

.wz-signoff-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--wz-gray-100);
  background: var(--wz-surface);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}

.wz-signoff-cancel-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--wz-radius-lg);
  background: none;
  font-weight: 700;
  color: var(--wz-gray-500);
  cursor: pointer;
  transition: background var(--wz-duration) var(--wz-ease);
}

.wz-signoff-cancel-btn:hover { background: var(--wz-gray-100); }

.wz-signoff-submit-btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--wz-radius-lg);
  background: var(--wz-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 12rem;
  justify-content: center;
  transition: all var(--wz-duration) var(--wz-ease);
  box-shadow: 0 4px 12px var(--wz-primary-ring);
}

.wz-signoff-submit-btn:hover { background: var(--wz-primary-dark); }

.wz-signoff-submit-btn:disabled {
  background: var(--wz-gray-100);
  color: var(--wz-gray-400);
  box-shadow: none;
  cursor: not-allowed;
}

.wz-signoff-submit-btn svg { width: 1.25rem; height: 1.25rem; }

.wz-signoff-success {
  background: var(--wz-surface);
  width: 100%;
  max-width: 40rem;
  border-radius: var(--wz-radius-xl);
  overflow: hidden;
  box-shadow: var(--wz-shadow-xl);
  animation: wz-modal-in 0.25s ease-out;
}

.wz-signoff-success-header {
  background: var(--wz-primary);
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.wz-signoff-success-icon {
  width: 5rem;
  height: 5rem;
  background: var(--wz-surface);
  color: var(--wz-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--wz-shadow-lg);
}

.wz-signoff-success-icon svg { width: 2.5rem; height: 2.5rem; }

.wz-signoff-success-title { font-size: 1.875rem; font-weight: 700; margin: 0 0 0.5rem; }

.wz-signoff-success-sub { color: var(--wz-primary-light); margin: 0; }

.wz-signoff-success-body { padding: 2rem; }

.wz-signoff-approval-id {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.wz-signoff-approval-tag {
  background: var(--wz-gray-100);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--wz-gray-500);
  border: 1px solid var(--wz-gray-200);
}

.wz-signoff-timeline { margin-bottom: 2rem; }

.wz-signoff-timeline-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wz-gray-900);
  margin: 0 0 1.5rem;
}

.wz-signoff-timeline-steps { padding-left: 0.5rem; position: relative; }

.wz-signoff-timeline-line {
  position: absolute;
  left: 0.6875rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: var(--wz-gray-100);
}

.wz-signoff-timeline-step {
  display: flex;
  gap: 1rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.wz-signoff-timeline-step:last-child { margin-bottom: 0; }

.wz-signoff-timeline-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.wz-signoff-timeline-dot--done {
  background: var(--wz-success);
  color: #fff;
  box-shadow: 0 0 0 4px var(--wz-surface);
}

.wz-signoff-timeline-dot--current {
  background: var(--wz-surface);
  border: 2px solid var(--wz-primary);
  box-shadow: 0 0 0 4px var(--wz-surface);
}

.wz-signoff-timeline-dot--future {
  background: var(--wz-gray-200);
  box-shadow: 0 0 0 4px var(--wz-surface);
}

.wz-signoff-timeline-dot svg { width: 0.75rem; height: 0.75rem; }

.wz-signoff-timeline-dot--current::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: var(--wz-primary);
  border-radius: 50%;
}

.wz-signoff-timeline-name { font-weight: 700; color: var(--wz-gray-900); }
.wz-signoff-timeline-desc { font-size: 0.875rem; color: var(--wz-gray-500); }
.wz-signoff-timeline-meta { font-size: 0.75rem; color: var(--wz-primary); font-weight: 500; margin-top: 0.25rem; }

.wz-signoff-success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wz-signoff-success-actions .wz-signoff-row {
  display: flex;
  gap: 0.75rem;
}

.wz-signoff-success-actions .wz-signoff-row button {
  flex: 1;
}

.wz-signoff-action-secondary {
  padding: 0.75rem;
  background: var(--wz-primary-light);
  color: var(--wz-primary-dark);
  border: none;
  border-radius: var(--wz-radius-lg);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background var(--wz-duration) var(--wz-ease);
}

.wz-signoff-action-secondary:hover { background: #e0e7ff; }
.wz-signoff-action-secondary svg { width: 1rem; height: 1rem; }

.wz-signoff-action-primary {
  padding: 0.75rem;
  background: var(--wz-gray-900);
  color: #fff;
  border: none;
  border-radius: var(--wz-radius-lg);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background var(--wz-duration) var(--wz-ease);
}

.wz-signoff-action-primary:hover { background: var(--wz-gray-800); }
.wz-signoff-action-primary svg { width: 1rem; height: 1rem; }

/* ── Plan step placeholder images ── */

.wz-plan-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.wz-plan-visual-card:hover .wz-plan-visual-img { transform: scale(1.05); }

.wz-plan-visual-expand {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 0.375rem;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.wz-plan-visual-card:hover .wz-plan-visual-expand { opacity: 1; }
.wz-plan-visual-expand:hover { background: #fff; color: var(--wz-primary); }
.wz-plan-visual-expand svg { width: 1rem; height: 1rem; }

/* ── Room hero image ── */

.wz-room-hero {
  position: relative;
  border-radius: var(--wz-radius-2xl);
  overflow: hidden;
  background: var(--wz-gray-900);
  margin-bottom: var(--wz-space-4);
  box-shadow: var(--wz-shadow-lg);
}

.wz-room-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 10rem;
  max-height: 14rem;
}

.wz-room-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(15, 23, 42, 0.3) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.wz-room-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--wz-space-4);
  color: var(--wz-surface);
}

.wz-room-hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 var(--wz-space-1);
}

@media (min-width: 48rem) {
  .wz-room-hero-title { font-size: 2.25rem; }
}

.wz-room-hero-desc {
  color: var(--wz-gray-300);
  font-size: 0.9375rem;
  max-width: 32rem;
  margin: 0;
}

/* ── Room header (no image fallback) ── */

.wz-room-header {
  padding: var(--wz-space-4) var(--wz-space-4) var(--wz-space-3);
  border-bottom: 1px solid var(--wz-border);
}
.wz-room-header-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wz-text);
  margin: 0 0 0.25rem;
}
.wz-room-header-desc {
  color: var(--wz-text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ── Zoom button on finish cards ── */

.wz-finish-card-zoom {
  position: absolute;
  top: var(--wz-space-2);
  right: var(--wz-space-2);
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 50%;
  color: var(--wz-gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--wz-duration) var(--wz-ease),
              background var(--wz-duration) var(--wz-ease);
  box-shadow: var(--wz-shadow-sm);
  z-index: 5;
}

.wz-finish-card:hover .wz-finish-card-zoom { opacity: 1; }
.wz-finish-card-zoom:hover { background: var(--wz-surface); color: var(--wz-primary); }
.wz-finish-card-zoom svg { width: 0.875rem; height: 0.875rem; }

/* ══════════════════════════════════════════════
   COMMUNITY BROWSER — Index page
   ══════════════════════════════════════════════ */

.cb-page {
  min-height: 100vh;
  background: var(--wz-bg);
  color: var(--wz-gray-900);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.cb-hero {
  background:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--wz-primary) 22%, transparent) 0%, transparent 55%),
    linear-gradient(135deg, #182536 0%, #24384f 58%, #425f5a 100%);
  padding: 5rem 1.5rem 4rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.cb-hero-inner { max-width: 40rem; margin: 0 auto; position: relative; z-index: 1; }

.cb-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: #fff;
}

@media (min-width: 48rem) {
  .cb-hero-title { font-size: 3.25rem; }
}

.cb-hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.cb-filter-bar {
  background: var(--wz-surface);
  border-bottom: 1px solid var(--wz-gray-200);
  box-shadow: var(--wz-shadow-sm);
  position: sticky;
  top: 4rem;
  z-index: 30;
}
.cb-filter-bar-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.cb-filter-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cb-search-wrap {
  position: relative;
  flex: 1;
  max-width: 28rem;
}
.cb-search-wrap .cb-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--wz-gray-400);
}
.cb-search-wrap .cb-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid var(--wz-gray-200);
  background: var(--wz-gray-50);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--wz-gray-900);
  transition: all var(--wz-duration) var(--wz-ease);
  outline: none;
}
.cb-search-wrap .cb-search-input:focus {
  background: var(--wz-surface);
  border-color: var(--wz-primary);
  box-shadow: 0 0 0 3px var(--wz-primary-ring);
}
.cb-filter-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cb-saved-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wz-gray-500);
  cursor: pointer;
  transition: color var(--wz-duration) var(--wz-ease);
}
.cb-saved-btn:hover { color: #f43f5e; }
.cb-view-toggle {
  display: flex;
  background: var(--wz-gray-100);
  padding: 0.25rem;
  border-radius: var(--wz-radius-md);
}
.cb-view-btn {
  padding: 0.5rem;
  border: none;
  background: none;
  border-radius: var(--wz-radius-sm);
  color: var(--wz-gray-500);
  cursor: pointer;
  transition: all var(--wz-duration) var(--wz-ease);
}
.cb-view-btn:hover { color: var(--wz-gray-700); }
.cb-view-btn--active {
  background: var(--wz-surface);
  color: var(--wz-primary);
  box-shadow: var(--wz-shadow-sm);
}
.cb-filter-row-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  overflow-x: auto;
  gap: 0.75rem;
}
.cb-filter-tags {
  display: flex;
  gap: 0.375rem;
}
.cb-filter-tag {
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--wz-gray-200);
  background: var(--wz-surface);
  color: var(--wz-gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--wz-duration) var(--wz-ease);
}
.cb-filter-tag:hover { border-color: var(--wz-gray-300); background: var(--wz-surface-muted); }
.cb-filter-tag--active {
  background: var(--wz-primary);
  color: #fff;
  border-color: var(--wz-primary);
}
.cb-filter-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wz-gray-400);
  white-space: nowrap;
}

.cb-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
  pointer-events: none;
}
.cb-card-price-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--wz-primary-dark);
  box-shadow: var(--wz-shadow-md);
  pointer-events: auto;
}
.cb-card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.75rem;
}
.cb-card-amenity {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--wz-primary-light);
  border: 1px solid transparent;
  border-radius: var(--wz-radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--wz-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cb-card-arrow-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wz-gray-100);
  color: var(--wz-gray-400);
  transition: all 0.2s var(--wz-ease);
}
.cb-card:hover .cb-card-arrow-circle {
  background: var(--wz-primary);
  color: #fff;
}
.cb-empty-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--wz-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.cb-search-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.cb-search-input {
  width: 100%;
  padding: 0.875rem 0.75rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.cb-search-input::placeholder { color: rgba(255, 255, 255, 0.6); }

.cb-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.cb-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--wz-gray-500);
}

.cb-empty h2 { color: var(--wz-gray-900); margin: 0 0 0.5rem; }

.cb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 36rem) {
  .cb-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .cb-grid { grid-template-columns: repeat(3, 1fr); }
}

.cb-card {
  display: flex;
  flex-direction: column;
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--wz-duration), box-shadow 0.3s var(--wz-ease), transform 0.3s var(--wz-ease);
  box-shadow: var(--wz-shadow-sm);
}

.cb-card:hover {
  border-color: #c7d2fe;
  box-shadow: var(--wz-shadow-xl);
  transform: translateY(-4px);
}

.cb-card-img {
  aspect-ratio: 16 / 9;
  background: var(--wz-gray-200);
  position: relative;
  overflow: hidden;
}
.cb-card-img img {
  transition: transform 0.7s ease;
}
.cb-card:hover .cb-card-img img {
  transform: scale(1.06);
}

.cb-card-img-placeholder {
  position: absolute;
  inset: 0;
  color: var(--wz-gray-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cb-card-img-placeholder svg { width: 2.5rem; height: 2.5rem; }

.cb-card-body { padding: 1.25rem; flex: 1; }

.cb-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wz-gray-900);
  margin: 0 0 1rem;
}

.cb-card-stats { display: flex; gap: 2rem; }

.cb-card-stat { display: flex; flex-direction: column; }

.cb-card-stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wz-primary);
  line-height: 1;
}

.cb-card-stat-label {
  font-size: 0.75rem;
  color: var(--wz-gray-500);
  margin-top: 0.25rem;
}

.cb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--wz-gray-100);
  background: var(--wz-surface-muted);
}

.cb-card-explore {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wz-primary);
}

.cb-card-arrow {
  width: 1rem;
  height: 1rem;
  color: var(--wz-primary);
  transition: transform 0.2s var(--wz-ease);
}

.cb-card:hover .cb-card-arrow { transform: translateX(4px); }

.cb-quicklinks {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--wz-gray-200);
}

.cb-quicklink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--wz-gray-500);
  text-decoration: none;
  transition: color var(--wz-duration) var(--wz-ease);
}

.cb-quicklink:hover { color: var(--wz-primary); }

.cb-quicklink svg { width: 1rem; height: 1rem; }

/* ══════════════════════════════════════════════
   LOTS PAGE — Card-based layout
   ══════════════════════════════════════════════ */

.lots-page {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  background: var(--wz-bg);
  color: var(--wz-gray-900);
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.lots-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.lots-breadcrumb-link {
  color: var(--wz-primary);
  text-decoration: none;
  font-weight: 500;
}

.lots-breadcrumb-link:hover { text-decoration: underline; }

.lots-breadcrumb-sep { color: var(--wz-gray-400); }

.lots-breadcrumb-current { color: var(--wz-gray-500); }

.lots-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lots-header-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wz-gray-900);
  margin: 0 0 0.5rem;
}

.lots-header-sub {
  font-size: 1rem;
  color: var(--wz-gray-500);
  margin: 0;
}

.lots-header-controls { display: flex; align-items: center; gap: 1rem; }

.lots-view-toggle {
  display: flex;
  background: var(--wz-gray-100);
  padding: 0.25rem;
  border-radius: var(--wz-radius-md);
}
.lots-view-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wz-gray-500);
  cursor: pointer;
  border-radius: var(--wz-radius-sm);
  transition: all var(--wz-duration) var(--wz-ease);
}
.lots-view-btn:hover { color: var(--wz-gray-700); }
.lots-view-btn--active {
  background: var(--wz-surface);
  color: var(--wz-primary);
  box-shadow: var(--wz-shadow-sm);
}

.lots-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--wz-gray-800);
  border-radius: var(--wz-radius-lg);
  color: var(--wz-gray-400);
}
.lots-breadcrumb-bar .lots-breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--wz-gray-400);
  text-decoration: none;
  transition: color var(--wz-duration) var(--wz-ease);
}
.lots-breadcrumb-bar .lots-breadcrumb-link:hover { color: #fff; }
.lots-breadcrumb-bar .lots-breadcrumb-current { color: #fff; font-weight: 600; }

.lots-map-container {
  border-radius: var(--wz-radius-xl);
  overflow: hidden;
  border: 1px solid var(--wz-gray-200);
  background: var(--wz-surface);
  margin-bottom: 1.5rem;
  position: relative;
  min-height: 28rem;
  box-shadow: var(--wz-shadow-sm);
}
.lots-map-placeholder {
  position: relative;
  width: 100%;
  min-height: 28rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4 0%, var(--wz-surface-muted) 100%);
}
.lots-map-svg-wrap {
  width: 100%;
  max-width: 40rem;
  padding: 2rem;
}
.lots-map-legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--wz-radius-lg);
  border: 1px solid var(--wz-gray-200);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  min-width: 10rem;
  box-shadow: var(--wz-shadow-md);
}
.lots-map-legend-title {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wz-gray-400);
  margin-bottom: 0.5rem;
}
.lots-map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wz-gray-600);
  font-weight: 500;
  padding: 0.125rem 0;
}
.lots-map-legend-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 1.5px solid;
}
.lots-map-controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--wz-surface);
  border-radius: var(--wz-radius-md);
  box-shadow: var(--wz-shadow-md);
  border: 1px solid var(--wz-gray-200);
  padding: 0.25rem;
}
.lots-map-ctrl-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--wz-radius-sm);
  cursor: pointer;
  color: var(--wz-gray-500);
  transition: background var(--wz-duration) var(--wz-ease);
}
.lots-map-ctrl-btn:hover { background: var(--wz-gray-100); }
.lots-map-ctrl-btn svg { width: 1.125rem; height: 1.125rem; }

.lots-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--wz-surface);
  border-radius: var(--wz-radius-xl);
  border: 1px solid var(--wz-gray-200);
}

.lots-empty-state h2 { color: var(--wz-gray-900); margin: 0 0 0.5rem; }
.lots-empty-state p { color: var(--wz-gray-500); margin: 0 0 2rem; }

.lots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 36rem) {
  .lots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .lots-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 80rem) {
  .lots-grid { grid-template-columns: repeat(4, 1fr); }
}

.lot-card {
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--wz-duration), box-shadow 0.3s var(--wz-ease), transform 0.3s var(--wz-ease);
  box-shadow: var(--wz-shadow-sm);
}

.lot-card:hover {
  border-color: #c7d2fe;
  box-shadow: var(--wz-shadow-lg);
  transform: translateY(-3px);
}

.lot-card--unavailable { opacity: 0.7; }

.lot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--wz-gray-100);
}

.lot-card-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wz-gray-900);
}

.lot-card-status {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  border-radius: 2rem;
}

.lot-card-status--available {
  background: #ecfdf5;
  color: var(--wz-success);
}

.lot-card-status--taken {
  background: #fef2f2;
  color: #dc2626;
}

.lot-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lot-card-detail { display: flex; justify-content: space-between; }

.lot-card-detail-label {
  font-size: 0.75rem;
  color: var(--wz-gray-400);
}

.lot-card-detail-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--wz-gray-900);
}

.lot-card-price {
  font-weight: 700;
  color: var(--wz-primary, #273ba0);
}

.lot-card-action { padding: 0.75rem 1.25rem; border-top: 1px solid var(--wz-gray-100); }

.lot-card-design-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem;
  background: var(--wz-primary);
  color: #fff;
  border: none;
  border-radius: var(--wz-radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background var(--wz-duration) var(--wz-ease);
}

.lot-card-design-btn:hover { background: var(--wz-primary-dark); color: #fff; }

.lot-card-arrow { width: 1rem; height: 1rem; }

.lot-card-unavailable-label {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--wz-gray-400);
  font-weight: 500;
}

.lots-pagination a {
  background: var(--wz-gray-100);
  color: var(--wz-gray-700);
  border: 1px solid var(--wz-gray-200);
}

.lots-pagination a:hover {
  background: var(--wz-primary-light);
  color: var(--wz-primary);
  border-color: #c7d2fe;
}

.lots-pagination .lots-page-current {
  background: var(--wz-primary);
  color: #fff;
  border-color: var(--wz-primary);
}

.lots-pagination .lots-page-disabled {
  opacity: 0.4;
  background: var(--wz-surface-muted);
  color: var(--wz-gray-400);
  border: 1px solid var(--wz-gray-200);
}

.lots-pagination .lots-page-info {
  color: var(--wz-gray-400);
}

/* ══════════════════════════════════════════════
   MODELS PAGE
   ══════════════════════════════════════════════ */

.models-page {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  background: var(--wz-bg);
  color: var(--wz-gray-900);
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.models-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-xl);
  box-shadow: var(--wz-shadow-sm);
}
.models-filter-bar-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wz-gray-500);
}
.models-filter-bar-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.models-filter-bar-sort select {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-md);
  font-size: 0.8125rem;
  color: var(--wz-gray-700);
  background: var(--wz-surface);
  cursor: pointer;
}

.models-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 36rem) {
  .models-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .models-grid { grid-template-columns: repeat(3, 1fr); }
}

.model-card {
  background: var(--wz-surface);
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--wz-duration), box-shadow 0.3s var(--wz-ease), transform 0.3s var(--wz-ease);
  box-shadow: var(--wz-shadow-sm);
}

.model-card:hover {
  border-color: #c7d2fe;
  box-shadow: var(--wz-shadow-xl);
  transform: translateY(-4px);
}
.model-card:hover .model-card-visual img { transform: scale(1.06); }

.model-card-visual {
  aspect-ratio: 16 / 9;
  background: var(--wz-gray-200);
  overflow: hidden;
  position: relative;
  border-radius: var(--wz-radius-xl) var(--wz-radius-xl) 0 0;
}
.model-card-visual img {
  transition: transform 0.7s ease;
}

.model-card-body { padding: 1.25rem; flex: 1; }

.model-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wz-gray-900);
  margin: 0 0 0.5rem;
}

.model-card-elevations {
  font-size: 0.8125rem;
  color: var(--wz-gray-500);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.model-card-stats { display: flex; gap: 2rem; }

.model-card-stat { display: flex; flex-direction: column; }

.model-card-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wz-primary);
  line-height: 1;
}

.model-card-stat-label {
  font-size: 0.7rem;
  color: var(--wz-gray-500);
  margin-top: 0.25rem;
}

/* ── Model Detail ──────────────────────────────────────────── */

.md-elevations-section { margin-bottom: 2rem; }

.md-elevation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.md-elevation-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: var(--wz-gray-100);
  border: 1px solid var(--wz-gray-200);
  border-radius: var(--wz-radius-full, 9999px);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wz-gray-700);
}

/* ── Bootstrap-like utilities for Admin/Staff pages ───────── */

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.py-5 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.me-3 { margin-right: 0.75rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.g-3 { gap: 1rem; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }
.align-items-center { align-items: center; }
.border { border: 1px solid #e2e8f0; }
.rounded { border-radius: 0.5rem; }
.small, small { font-size: 0.875rem; }
.text-muted { color: #64748b; }
.text-right { text-align: right; }
.bg-light { background: #f8fafc; }

.h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: var(--wz-gray-900, #0f172a); }
.h5 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--wz-gray-900, #0f172a); }
.h6 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--wz-gray-800, #1e293b); }

.row { display: flex; flex-wrap: wrap; gap: 1rem; }
.col-md-4 { flex: 1 1 calc(33.333% - 0.75rem); min-width: 10rem; }
.col-md-6 { flex: 1 1 calc(50% - 0.5rem); min-width: 14rem; }

fieldset.border {
  border: 1px solid #e2e8f0;
  background: #fff;
}
fieldset legend {
  float: none;
  width: auto;
  padding: 0 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wz-gray-800, #1e293b);
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--wz-gray-700, #334155);
  margin-bottom: 0.25rem;
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--wz-gray-900, #0f172a);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.form-control:focus {
  border-color: #818cf8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-control::placeholder { color: #94a3b8; }
.form-control-sm {
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
}
textarea.form-control { resize: vertical; min-height: 4rem; }

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-check-input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--wz-primary, #1f3a5f);
  cursor: pointer;
  flex-shrink: 0;
}
.form-check-label {
  font-size: 0.875rem;
  color: var(--wz-gray-800, #1e293b);
  cursor: pointer;
}

.alert {
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.btn-outline-secondary {
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline-secondary:hover { background: #f1f5f9; color: #334155; }

.btn-sm {
  padding: 0.3125rem 0.625rem;
  font-size: 0.75rem;
  border-radius: 0.3125rem;
}
.btn-secondary {
  background: #64748b;
  color: #fff;
  border: 1px solid #64748b;
}
.btn-secondary:hover { background: #475569; }
.btn-outline {
  background: transparent;
  color: #64748b;
  border: 1px solid #94a3b8;
}
.btn-outline:hover { background: #f1f5f9; color: #334155; }

.btn-success {
  background: #16a34a;
  color: #fff;
  border: 1px solid #16a34a;
}
.btn-success:hover { background: #15803d; }
.btn-outline-primary {
  background: transparent;
  color: #6366f1;
  border: 1px solid #6366f1;
}
.btn-outline-primary:hover { background: var(--wz-primary-light); color: var(--wz-primary); }

.badge.bg-success { background: #d1fae5; color: #065f46; }
.badge.bg-danger  { background: #fee2e2; color: #991b1b; }
.badge.bg-secondary { background: #f1f5f9; color: #64748b; }

.gap-1 { gap: 0.375rem; }
.text-center { text-align: center; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.ms-1 { margin-left: 0.25rem; }

.spinner-border {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner-border-sm { width: 0.625rem; height: 0.625rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.col-auto { flex: 0 0 auto; width: auto; }

.form-select {
  display: block;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--wz-gray-900, #0f172a);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.75rem center/0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  appearance: none;
  cursor: pointer;
}
.form-select:focus {
  border-color: #818cf8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-select-sm { padding: 0.375rem 1.75rem 0.375rem 0.5rem; font-size: 0.8125rem; }

.table-responsive { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.table th {
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #64748b;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
}
.table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}
.table-sm th, .table-sm td { padding: 0.375rem 0.625rem; }
.table-striped tbody tr:nth-child(even) { background: #f8fafc; }
.table tbody tr:hover { background: #f1f5f9; }
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Admin Dashboard ──────────────────────────────────────── */

.admin-dashboard { max-width: 72rem; }

.admin-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px)  { .admin-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .admin-cards { grid-template-columns: repeat(4, 1fr); } }

.admin-card {
  display: block;
  padding: 1.5rem;
  background: var(--wz-white, #fff);
  border: 1px solid var(--wz-gray-200, #e5e7eb);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.admin-card:hover { border-color: var(--wz-primary, #1f3a5f); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.admin-card--warn { border-color: var(--wz-amber-400, #fbbf24); }

.admin-card-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.625rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.25rem;
}
.admin-card-icon.emerald { background: #d1fae5; }
.admin-card-icon.blue    { background: #dbeafe; }
.admin-card-icon.amber   { background: #fef3c7; }
.admin-card-icon.red     { background: #fee2e2; }

.admin-card-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.admin-card-label { font-size: 0.85rem; color: var(--wz-gray-500, #6b7280); margin-top: 0.25rem; }
.admin-card-secondary { font-size: 0.75rem; color: var(--wz-gray-400, #9ca3af); margin-top: 0.375rem; }

.admin-section { margin-bottom: 2.5rem; }

.admin-sync-header {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--wz-gray-600, #4b5563);
  margin-bottom: 0.75rem;
}
.admin-sync-indicator {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--wz-gray-300, #d1d5db); flex-shrink: 0;
}
.admin-sync-indicator.syncing { background: #22c55e; animation: pulse-dot 1.2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.admin-sync-time { margin-left: auto; font-size: 0.75rem; color: var(--wz-gray-400, #9ca3af); }

.admin-sync-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.admin-sync-table th {
  text-align: left; padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--wz-gray-200, #e5e7eb);
  font-weight: 600; color: var(--wz-gray-500, #6b7280);
}
.admin-sync-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--wz-gray-100, #f3f4f6);
}

.admin-badge {
  display: inline-block; padding: 0.125rem 0.5rem;
  border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
}
.admin-badge--ok      { background: #d1fae5; color: #065f46; }
.admin-badge--error   { background: #fee2e2; color: #991b1b; }
.admin-badge--pending { background: #f3f4f6; color: #6b7280; }

.admin-empty { font-size: 0.85rem; color: var(--wz-gray-400, #9ca3af); }

.admin-spinner { font-size: 0.8rem; color: var(--wz-gray-400, #9ca3af); padding: 0.5rem 0; }

.admin-links {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.admin-link {
  padding: 0.5rem 1rem;
  background: var(--wz-gray-50, #f9fafb);
  border: 1px solid var(--wz-gray-200, #e5e7eb);
  border-radius: 0.5rem; font-size: 0.85rem;
  text-decoration: none; color: var(--wz-gray-700, #374151);
  transition: border-color 0.15s, background 0.15s;
}
.admin-link:hover { border-color: var(--wz-primary, #1f3a5f); background: #eaf1f7; }

/* ── Admin Branding ──────────────────────────────────────── */

.branding-color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .branding-color-grid { grid-template-columns: repeat(4, 1fr); } }

.branding-color-field label { font-size: 0.85rem; font-weight: 500; }

.branding-color-pair {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.branding-swatch {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--wz-gray-300, #d1d5db);
  border-radius: 0.375rem;
  padding: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.branding-hero-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.branding-preview {
  border: 1px solid var(--wz-gray-200, #e5e7eb);
  border-radius: 0.5rem;
  overflow: hidden;
}

.branding-preview-nav {
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-bottom: 1px solid var(--wz-gray-200, #e5e7eb);
}

.branding-preview-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  background: var(--wz-primary, #1f3a5f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.branding-preview-name { font-weight: 600; }

.branding-preview-body {
  padding: 2.5rem 1.5rem;
  background: #f9fafb;
  text-align: center;
}

.branding-preview-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  background: var(--wz-primary, #1f3a5f);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.branding-preview-tagline {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--wz-gray-700, #374151);
}

/* ── Community Landing Page ───────────────────────────────────────── */

.cl-page { min-height: 100vh; }

.cl-content {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.cl-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cl-stat-card {
  background: var(--wz-surface, #fff);
  border: 1px solid var(--wz-gray-200, #e5e7eb);
  border-radius: var(--wz-radius-xl, 1rem);
  padding: 1.25rem;
  text-align: center;
}

.cl-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wz-gray-900, #111827);
}

.cl-stat-label {
  font-size: 0.8rem;
  color: var(--wz-gray-400, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.cl-nav-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.cl-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--wz-border, #e2e8f0);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--wz-text, #1e293b);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--wz-surface, #fff);
  transition: border-color 0.15s, background 0.15s;
}

.cl-nav-link:hover {
  border-color: var(--wz-primary, #1f3a5f);
  background: var(--wz-primary-light, #eef2ff);
  color: var(--wz-primary, #1f3a5f);
}

.cl-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
}

/* Models section */
.cl-models-section { margin-bottom: 2.5rem; }

.cl-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wz-gray-900, #111827);
  margin-bottom: 1rem;
}

.cl-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.cl-model-card {
  background: var(--wz-surface, #fff);
  border: 1px solid var(--wz-gray-200, #e5e7eb);
  border-radius: var(--wz-radius-xl, 1rem);
  display: flex;
  flex-direction: column;
  transition: border-color var(--wz-duration, 0.15s), box-shadow 0.3s ease;
}

.cl-model-card:hover {
  border-color: #c7d2fe;
  box-shadow: var(--wz-shadow-md, 0 4px 6px -1px rgba(0,0,0,.1));
}

.cl-model-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--wz-gray-100, #f3f4f6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cl-model-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wz-gray-900, #111827);
  margin: 0;
}

.cl-model-card-avail {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wz-success, #16a34a);
  background: #ecfdf5;
  padding: 0.2rem 0.5rem;
  border-radius: 2rem;
}

.cl-model-card-body {
  padding: 0.75rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.cl-model-card-detail { display: flex; justify-content: space-between; }
.cl-model-card-label { font-size: 0.75rem; color: var(--wz-gray-400, #9ca3af); }
.cl-model-card-value { font-size: 0.85rem; font-weight: 500; color: var(--wz-gray-900, #111827); }

.cl-model-card-action {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--wz-gray-100, #f3f4f6);
}

.cl-model-card-btn {
  display: block;
  text-align: center;
  padding: 0.5rem;
  background: var(--wz-primary, #1f3a5f);
  color: #fff;
  border-radius: var(--wz-radius-md, 0.5rem);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background var(--wz-duration, 0.15s) ease;
}

.cl-model-card-btn:hover { background: var(--wz-primary-dark, #1d4ed8); color: #fff; }

a.cl-model-card { text-decoration: none; color: inherit; transition: box-shadow 0.15s, border-color 0.15s; }
a.cl-model-card:hover { border-color: var(--wz-primary, #1f3a5f); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.cl-models-see-all { text-align: center; margin-top: 1rem; }
.cl-models-see-all a { color: var(--wz-primary, #1f3a5f); font-weight: 500; font-size: 0.875rem; text-decoration: none; }
.cl-models-see-all a:hover { text-decoration: underline; }

/* Lots section */
.cl-lots-section { margin-bottom: 2rem; }

.cl-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cl-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cl-search-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--wz-gray-200, #e5e7eb);
  border-radius: var(--wz-radius-md, 0.5rem);
  font-size: 0.85rem;
  min-width: 200px;
  background: var(--wz-surface, #fff);
  color: var(--wz-gray-900, #111827);
}

.cl-search-input:focus {
  outline: none;
  border-color: var(--wz-primary, #1f3a5f);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cl-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--wz-gray-200, #e5e7eb);
  border-radius: var(--wz-radius-md, 0.5rem);
  font-size: 0.85rem;
  background: var(--wz-surface, #fff);
  color: var(--wz-gray-900, #111827);
}

.cl-select:focus {
  outline: none;
  border-color: var(--wz-primary, #1f3a5f);
}

.cl-spinner {
  font-size: 0.8rem;
  color: var(--wz-gray-400, #9ca3af);
}

.cl-lot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cl-price { color: var(--wz-primary, #1f3a5f); font-weight: 600; }

.cl-status--available {
  background: #ecfdf5;
  color: var(--wz-success, #16a34a);
}

.cl-status--taken {
  background: #fef2f2;
  color: #dc2626;
}

.cl-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--wz-gray-400, #9ca3af);
}

.cl-empty-state h3 {
  font-size: 1.1rem;
  color: var(--wz-gray-600, #4b5563);
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .cl-filter-bar { flex-direction: column; width: 100%; }
  .cl-search-input, .cl-select { width: 100%; }
  .cl-section-header { flex-direction: column; align-items: stretch; }
  .cl-lot-grid { grid-template-columns: 1fr; }
  .cl-model-grid { grid-template-columns: 1fr; }
}

/* ── Site Map Page ─────────────────────────────────────────────────── */

.sm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--wz-surface, #fff);
  border: 1px solid var(--wz-gray-200, #e5e7eb);
  border-radius: var(--wz-radius-lg, 0.75rem);
}

.sm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--wz-gray-700, #374151);
}

.sm-legend-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.125rem;
  flex-shrink: 0;
}

.sm-legend--available { background: #16a34a; }
.sm-legend--sold { background: #dc2626; }
.sm-legend--reserved { background: #ca8a04; }
.sm-legend--under-contract { background: #2563eb; }

.sm-section { margin-bottom: 2rem; }

.sm-price-input {
  max-width: 120px;
}

.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}

.sm-lot {
  border: 2px solid var(--wz-gray-200, #e5e7eb);
  border-radius: var(--wz-radius-md, 0.5rem);
  padding: 0.625rem;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.sm-lot:hover {
  box-shadow: var(--wz-shadow-sm, 0 1px 2px rgba(0,0,0,.05));
}

.sm-lot--available {
  border-color: #16a34a;
  background: #f0fdf4;
}
.sm-lot--available:hover { border-color: #15803d; }

.sm-lot--sold {
  border-color: #dc2626;
  background: #fef2f2;
  opacity: 0.7;
}

.sm-lot--reserved {
  border-color: #ca8a04;
  background: #fefce8;
}

.sm-lot--under-contract {
  border-color: #2563eb;
  background: #eff6ff;
}

.sm-lot-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  width: 100%;
}

.sm-lot-number {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--wz-gray-900, #111827);
}

.sm-lot-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 2rem;
  background: rgba(0,0,0,.06);
}

.sm-lot--available .sm-lot-badge { background: #dcfce7; color: #15803d; }
.sm-lot--sold .sm-lot-badge { background: #fecaca; color: #b91c1c; }
.sm-lot--reserved .sm-lot-badge { background: #fef08a; color: #854d0e; }
.sm-lot--under-contract .sm-lot-badge { background: #dbeafe; color: #1d4ed8; }

.sm-lot-model {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wz-gray-700, #374151);
}

.sm-lot-elev {
  font-size: 0.65rem;
  color: var(--wz-gray-400, #9ca3af);
}

.sm-lot-price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wz-primary, #2563eb);
}

.sm-lot-cta {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: var(--wz-primary, #2563eb);
  border-radius: var(--wz-radius-sm, 0.25rem);
  text-decoration: none;
  transition: background 0.15s;
}

.sm-lot-cta:hover {
  background: var(--wz-primary-dark, #1d4ed8);
  color: #fff;
}

.sm-refresh-text {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--wz-gray-400, #9ca3af);
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .sm-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .sm-legend { gap: 0.5rem; }
  .sm-price-input { max-width: 100%; }
}

/* ── Contact Form ── */

.contact-form-container {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contact-form-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wz-gray-900, #0f172a);
}

.contact-form-sub {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #64748b;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.contact-form-row .contact-form-field {
  margin-bottom: 0;
}

.contact-form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}

.contact-form-req {
  color: #dc2626;
}

.contact-form-input {
  padding: 0.625rem 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--wz-gray-900, #0f172a);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.contact-form-input:focus {
  border-color: var(--wz-primary, #273ba0);
  box-shadow: 0 0 0 3px var(--wz-primary-ring, rgba(39, 59, 160, 0.15));
}

.contact-form-input::placeholder {
  color: #94a3b8;
}

.contact-form-textarea {
  resize: vertical;
  min-height: 5rem;
}

.contact-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--wz-primary, #273ba0);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.contact-form-submit:hover {
  background: var(--wz-primary-dark, #1e2f80);
}

.contact-form-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.contact-form-result:empty {
  display: none;
}

.contact-form-result {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-container {
    padding: 1.5rem;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Room Mapping ─────────────────────────────────────── */

.mapping-name-cell {
  min-height: 2rem;
  display: flex;
  align-items: center;
}

.mapping-name {
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  border: 1px dashed transparent;
  transition: border-color 0.15s, background 0.15s;
}

.mapping-name:hover {
  border-color: var(--bs-primary, #273ba0);
  background: rgba(39, 59, 160, 0.04);
}

.mapping-overridden {
  font-weight: 600;
}

.mapping-auto-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-success, #198754);
  background: rgba(25, 135, 84, 0.1);
  padding: 0.05rem 0.35rem;
  border-radius: 0.75rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* ========================================================================
   Lead capture modal
   ======================================================================== */
.lead-capture {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lead-capture-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}
.lead-capture-card {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    max-width: 28rem;
    width: 100%;
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
    animation: lead-capture-pop 180ms ease-out;
}
@keyframes lead-capture-pop {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.lead-capture-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.4rem;
}
.lead-capture-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.25;
}
.lead-capture-sub {
    color: #475569;
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}
.lead-capture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.lead-capture-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}
.lead-capture-field--wide {
    grid-column: 1 / -1;
}
.lead-capture-field span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.02em;
}
.lead-capture-field input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 120ms, box-shadow 120ms, background 120ms;
}
.lead-capture-field input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
}
@media (max-width: 30rem) {
    .lead-capture-grid { grid-template-columns: 1fr; }
    .lead-capture-card { padding: 1.25rem; }
}
.lead-capture-error {
    margin: 0.9rem 0 0;
    color: #b91c1c;
    font-size: 0.85rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}
.lead-capture-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.1rem;
    justify-content: flex-end;
}
.lead-capture-cancel,
.lead-capture-submit {
    border: 0;
    border-radius: 0.55rem;
    padding: 0.65rem 1.1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 120ms, transform 80ms;
}
.lead-capture-cancel {
    background: #f1f5f9;
    color: #334155;
}
.lead-capture-cancel:hover:not(:disabled) {
    background: #e2e8f0;
}
.lead-capture-submit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.lead-capture-submit:hover:not(:disabled) {
    transform: translateY(-1px);
}
.lead-capture-submit:disabled,
.lead-capture-cancel:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.lead-capture-legal {
    margin: 0.85rem 0 0;
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* ========================================================================
   Staff image edit - hover button + upload modal
   ======================================================================== */
.staff-img-edit {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 140ms, transform 140ms, background 140ms;
    z-index: 5;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.staff-img-edit svg {
    width: 0.85rem;
    height: 0.85rem;
}
.wz-plan-visual-img-wrap:hover .staff-img-edit,
.option-card-preview:hover .staff-img-edit,
.staff-img-edit:focus-visible,
.staff-img-edit:hover {
    opacity: 1;
    transform: translateY(0);
}
.staff-img-edit:hover {
    background: #2563eb;
}

.staff-img-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.staff-img-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}
.staff-img-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    max-width: 32rem;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
}
.staff-img-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.staff-img-modal-head h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
}
.staff-img-modal-close {
    background: transparent;
    border: 0;
    color: #64748b;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 0.4rem;
}
.staff-img-modal-close svg {
    width: 1.1rem;
    height: 1.1rem;
}
.staff-img-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.staff-img-modal-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
    min-height: 14rem;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color 140ms, background 140ms;
}
.staff-img-modal-drop:hover {
    border-color: #2563eb;
    background: #eff6ff;
}
.staff-img-modal-drop--active {
    border-style: solid;
    padding: 0;
}
.staff-img-modal-drop img {
    width: 100%;
    height: 100%;
    max-height: 18rem;
    object-fit: contain;
    display: block;
}
.staff-img-modal-dropPlaceholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    text-align: center;
    padding: 1rem;
}
.staff-img-modal-dropPlaceholder svg {
    width: 2.25rem;
    height: 2.25rem;
    color: #2563eb;
}
.staff-img-modal-dropPlaceholder strong {
    font-size: 0.95rem;
    color: #0f172a;
}
.staff-img-modal-dropPlaceholder span {
    font-size: 0.8rem;
    color: #64748b;
}
.staff-img-modal-fileInput {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.staff-img-modal-error {
    margin-top: 0.75rem;
    color: #b91c1c;
    font-size: 0.85rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}
.staff-img-modal-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    justify-content: flex-end;
}
.staff-img-modal-cancel,
.staff-img-modal-submit {
    border: 0;
    border-radius: 0.55rem;
    padding: 0.6rem 1.05rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.staff-img-modal-cancel {
    background: #f1f5f9;
    color: #334155;
}
.staff-img-modal-cancel:hover:not(:disabled) {
    background: #e2e8f0;
}
.staff-img-modal-submit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
}
.staff-img-modal-submit:disabled,
.staff-img-modal-cancel:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Ensure option preview is relatively positioned so overlay button anchors correctly */
.option-card-preview { position: relative; }
.wz-plan-visual-img-wrap { position: relative; }

.wz-welcome-hero { position: relative; }
.wz-welcome-hero:hover .staff-img-edit { opacity: 1; transform: translateY(0); }
.staff-img-edit--hero { top: 1rem; right: 1rem; }

/* ===== Buyer Wishlists admin ===== */
.wl-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.wl-header { margin-bottom: 1.5rem; }
.wl-back { color: #64748b; font-size: 0.875rem; text-decoration: none; }
.wl-back:hover { color: #0f172a; }
.wl-title { font-size: 1.75rem; font-weight: 700; margin: 0.5rem 0 0.25rem; color: #0f172a; }
.wl-subtitle { color: #475569; margin: 0 0 1rem; }

.wl-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.wl-metric {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.wl-metric--accent { background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%); border-color: #c7d2fe; }
.wl-metric--cta { background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%); border-color: #fde68a; }
.wl-metric-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; font-weight: 600; }
.wl-metric-value { font-size: 2rem; font-weight: 700; color: #0f172a; line-height: 1.1; }
.wl-metric-frac { font-size: 1.1rem; font-weight: 500; color: #94a3b8; margin-left: 0.25rem; }
.wl-metric-sub { font-size: 0.8rem; color: #64748b; }

.wl-top { margin-bottom: 2rem; }
.wl-section-title { font-size: 1rem; font-weight: 600; color: #0f172a; margin: 0 0 0.75rem; }
.wl-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
}
.wl-top-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.wl-top-code { font-weight: 600; color: #0f172a; }
.wl-top-count { font-size: 0.85rem; color: #475569; }
.wl-top-value { font-size: 0.85rem; color: #0ea5e9; font-weight: 600; }

.wl-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.wl-filter-input,
.wl-filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  background: #fff;
  color: #0f172a;
  min-width: 0;
}
.wl-filter-input { flex: 1; min-width: 14rem; }
.wl-filter-btn {
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 0.4rem;
  background: #1e1b4b;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.wl-filter-btn:hover { background: #312e81; }

.wl-table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow-x: auto;
}
.wl-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 56rem;
}
.wl-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.wl-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  font-size: 0.9rem;
  color: #1e293b;
}
.wl-table tbody tr:last-child td { border-bottom: none; }
.wl-table tbody tr:hover { background: #f8fafc; }

.wl-name { font-weight: 600; color: #0f172a; }
.wl-case { font-size: 0.75rem; color: #64748b; margin-top: 0.1rem; font-family: ui-monospace, SFMono-Regular, monospace; }
.wl-contact-link { color: #2563eb; text-decoration: none; }
.wl-contact-link:hover { text-decoration: underline; }
.wl-contact-phone { font-size: 0.8rem; color: #475569; margin-top: 0.15rem; }
.wl-muted { color: #94a3b8; font-style: italic; font-size: 0.85rem; }
.wl-community { font-weight: 600; }
.wl-lot { font-size: 0.8rem; color: #64748b; }
.wl-num { text-align: right; font-variant-numeric: tabular-nums; }
.wl-total { font-weight: 600; color: #0f172a; }
.wl-date { font-size: 0.85rem; color: #475569; white-space: nowrap; }

.wl-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wl-badge--green { background: #dcfce7; color: #166534; }
.wl-badge--amber { background: #fef3c7; color: #92400e; }
.wl-badge--gray { background: #e2e8f0; color: #475569; }

.wl-actions { text-align: right; white-space: nowrap; }
.wl-action {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.wl-action--primary {
  background: #1e1b4b;
  color: #fff;
}
.wl-action--primary:hover { background: #312e81; }

.wl-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #475569;
}
.wl-empty-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.wl-empty h3 { margin: 0 0 0.25rem; color: #0f172a; }
.wl-empty p { margin: 0; }

/* ===== Community landing additions ===== */
.cl-hero {
  background-color: #1e293b;
  color: #fff;
}
.cl-hero .cb-hero-title,
.cl-hero .cb-hero-sub { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }

.cl-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.cl-pagination-info { color: #64748b; font-size: 0.875rem; }
.cl-pagination-controls { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.cl-pg-btn {
  padding: 0.45rem 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 2.4rem;
}
.cl-pg-btn:hover:not([disabled]) { background: #f1f5f9; border-color: #cbd5e1; }
.cl-pg-btn--active { background: #1e1b4b; color: #fff; border-color: #1e1b4b; }
.cl-pg-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ===== Model Detail page ===== */
.md-detail { max-width: 80rem; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.md-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  margin: 1rem 0 2rem;
}
@media (max-width: 48rem) {
  .md-hero { grid-template-columns: 1fr; }
}
.md-hero-media { background: #f1f5f9; }
.md-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 18rem; }
.md-hero-info { padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.md-hero-eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6366f1; font-weight: 700; }
.md-hero-title { font-size: 2rem; font-weight: 700; margin: 0; color: #0f172a; line-height: 1.15; }

.md-specs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 1rem;
}
@media (max-width: 32rem) { .md-specs { grid-template-columns: repeat(3, 1fr); } }
.md-spec { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.15rem; }
.md-spec-val { font-size: 1.3rem; font-weight: 700; color: #0f172a; }
.md-spec-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; font-weight: 600; }

.md-hero-price { display: flex; flex-direction: column; gap: 0.2rem; }
.md-price-from { font-size: 0.8rem; color: #64748b; }
.md-price-val { font-size: 1.75rem; font-weight: 700; color: #0f172a; }
.md-hero-avail { font-size: 0.85rem; color: #64748b; }

.md-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.md-styles-section { margin: 2rem 0; }
.md-section-sub { color: #64748b; margin: 0 0 1rem; }
.md-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}
.md-style-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.md-style-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: #c7d2fe;
}
.md-style-img-wrap { background: #f1f5f9; aspect-ratio: 16 / 10; }
.md-style-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-style-body { padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.md-style-code { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6366f1; font-weight: 700; }
.md-style-name { font-weight: 600; color: #0f172a; }
.md-style-card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.md-style-card--link:hover { border-color: #818cf8; }
.md-style-specs {
  display: flex;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}
.md-style-specs span { white-space: nowrap; }
.md-style-specs span + span::before {
  content: "·";
  margin-right: 0.6rem;
  color: #cbd5e1;
}
.md-style-design-cta {
  display: block;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6366f1;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
  transition: background 0.15s;
}
.md-style-card--link:hover .md-style-design-cta {
  background: var(--wz-primary-light);
  color: var(--wz-primary-dark);
}

/* ===== Community Images admin ===== */
.ci-main { max-width: 84rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.ci-header { margin-bottom: 1.5rem; }
.ci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr));
  gap: 1.5rem;
}
.ci-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ci-card-head { border-bottom: 1px solid #f1f5f9; padding-bottom: 0.75rem; }
.ci-card-title { margin: 0; font-size: 1.1rem; color: #0f172a; }
.ci-card-sub { font-size: 0.75rem; color: #64748b; font-family: ui-monospace, SFMono-Regular, monospace; }

.ci-slots { display: flex; flex-direction: column; gap: 1rem; }
.ci-slot { display: flex; flex-direction: column; gap: 0.4rem; }
.ci-slot-label { font-size: 0.75rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 0.04em; }
.ci-slot-preview {
  background: #f1f5f9;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #e2e8f0;
}
.ci-slot-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ci-upload-btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: #1e1b4b;
  color: #fff;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  align-self: flex-start;
}
.ci-upload-btn:hover { background: #312e81; }

.ci-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding-top: 0.5rem; border-top: 1px solid #f1f5f9; flex-wrap: wrap; }
.ci-advanced-link { font-size: 0.85rem; color: #2563eb; text-decoration: none; }
.ci-advanced-link:hover { text-decoration: underline; }
.ci-status { font-size: 0.8rem; }
.ci-status--ok { color: #166534; }
.ci-status--err { color: #b91c1c; }
.ci-status--info { color: #2563eb; }

/* ===== Model Links admin ===== */
.ml-main { max-width: 84rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.ml-header { margin-bottom: 1.5rem; }
.ml-community { margin-bottom: 2.5rem; }
.ml-community-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ml-community-title { font-size: 1.4rem; font-weight: 700; color: #0f172a; margin: 0; }
.ml-community-sub { font-size: 0.85rem; color: #64748b; font-family: ui-monospace, SFMono-Regular, monospace; }
.ml-empty-models { color: #64748b; font-style: italic; padding: 0.5rem 0; }
.ml-model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr)); gap: 1rem; }
.ml-model-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.ml-model-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; border-bottom: 1px solid #f1f5f9; padding-bottom: 0.5rem; }
.ml-model-name { font-size: 1.1rem; font-weight: 600; color: #0f172a; margin: 0; }
.ml-model-code { font-size: 0.75rem; color: #6366f1; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ml-elevation-row { display: grid; grid-template-columns: minmax(8rem, auto) 1fr auto auto; gap: 0.5rem; align-items: center; padding: 0.35rem 0; }
.ml-elevation-label { font-weight: 600; color: #334155; font-size: 0.9rem; }
.ml-elevation-code { font-weight: 400; color: #94a3b8; font-size: 0.75rem; margin-left: 0.35rem; }
.ml-link { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.35rem; padding: 0.35rem 0.5rem; font-size: 0.75rem; color: #475569; overflow-x: auto; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, monospace; }
.ml-copy-btn, .ml-open-btn { background: #1e1b4b; color: #ffffff; border: none; border-radius: 0.35rem; padding: 0.4rem 0.75rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.ml-copy-btn:hover, .ml-open-btn:hover { background: #312e81; }
.ml-copy-btn--ok { background: #166534 !important; }
.ml-open-btn { background: transparent; color: #2563eb; border: 1px solid #bfdbfe; }
.ml-open-btn:hover { background: #eff6ff; color: #1d4ed8; }

.ml-image-slot { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; }
.ml-image-slot--elevation { padding-left: 0; }
.ml-image-preview { width: 8rem; height: 5rem; border-radius: 0.5rem; overflow: hidden; background: #f8fafc; border: 1px solid #e2e8f0; flex-shrink: 0; }
.ml-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-upload-btn { background: #1e1b4b; color: #ffffff; border: none; border-radius: 0.35rem; padding: 0.5rem 0.85rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; display: inline-block; }
.ml-upload-btn:hover { background: #312e81; }
.ml-upload-btn--compact { padding: 0.35rem 0.65rem; font-size: 0.75rem; }
.ml-links-list { display: flex; flex-direction: column; gap: 0.75rem; }
.ml-elevation-block { border-top: 1px solid #f1f5f9; padding-top: 0.5rem; }
.ml-elevation-block:first-child { border-top: none; padding-top: 0; }
.ml-status { font-size: 0.8rem; min-height: 1.1em; }
.ml-status--ok { color: #166534; }
.ml-status--err { color: #b91c1c; }
.ml-status--info { color: #2563eb; }

.model-card-visual-img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
  .ml-elevation-row { grid-template-columns: 1fr; }
  .ml-link { white-space: normal; word-break: break-all; }
  .ml-image-preview { width: 6rem; height: 4rem; }
}

/* ===== Image Wizard ===== */
.iw-main { max-width: 84rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.iw-header { margin-bottom: 1.5rem; }

.iw-community-select { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.iw-select-label { font-size: 0.85rem; font-weight: 600; color: #475569; }
.iw-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  background: #fff;
  color: #0f172a;
  min-width: 14rem;
}

.iw-stepper {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0;
}
.iw-step-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.15s, border-color 0.15s;
}
.iw-step-btn:hover { color: #334155; }
.iw-step-btn--active { color: #1e1b4b; border-bottom-color: #1e1b4b; }
.iw-step-btn--done { color: #16a34a; }
.iw-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
}
.iw-step-btn--active .iw-step-num { background: #1e1b4b; color: #fff; }
.iw-step-btn--done .iw-step-num { background: #16a34a; color: #fff; }

.iw-step-title { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin: 0 0 0.25rem; }
.iw-step-desc { color: #64748b; font-size: 0.9rem; margin: 0 0 1.5rem; }

.iw-drop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.25rem;
}
.iw-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}
.iw-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
}

.iw-drop-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.iw-drop-card--compact { padding: 0.75rem; }
.iw-drop-label { font-weight: 600; color: #0f172a; font-size: 0.9rem; }
.iw-drop-sub { font-size: 0.75rem; color: #6366f1; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.iw-drop-zone {
  position: relative;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 0.5rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.iw-drop-zone:hover { border-color: #94a3b8; background: #f1f5f9; }
.iw-drop-zone--over { border-color: #6366f1; background: #eef2ff; }
.iw-drop-zone--sm { aspect-ratio: 4 / 3; }

.iw-drop-preview { width: 100%; height: 100%; object-fit: cover; display: block; }
.iw-drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.75rem;
}
.iw-drop-empty--sm { gap: 0.25rem; font-size: 0.7rem; }
.iw-drop-icon { width: 2rem; height: 2rem; }
.iw-drop-empty--sm .iw-drop-icon { width: 1.5rem; height: 1.5rem; }

.iw-drop-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.iw-drop-status { font-size: 0.8rem; min-height: 1.1em; }
.iw-drop-status--ok { color: #166534; }
.iw-drop-status--err { color: #b91c1c; }
.iw-drop-status--info { color: #2563eb; }

.iw-empty-step { color: #64748b; font-style: italic; padding: 2rem 0; text-align: center; }

.iw-option-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.iw-filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
}
.iw-filter-toggle input { accent-color: #1e1b4b; }
.iw-filter-count { font-size: 0.8rem; color: #94a3b8; margin-left: auto; }

.iw-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.iw-nav-spacer { flex: 1; }
.iw-nav-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
}
.iw-nav-btn--primary { background: #1e1b4b; color: #fff; }
.iw-nav-btn--primary:hover { background: #312e81; }
.iw-nav-btn--secondary { background: #fff; color: #475569; border: 1px solid #e2e8f0; }
.iw-nav-btn--secondary:hover { background: #f1f5f9; }

@media (max-width: 640px) {
  .iw-stepper { flex-wrap: wrap; gap: 0; }
  .iw-step-label { display: none; }
  .iw-step-btn { padding: 0.6rem 0.75rem; }
  .iw-drop-grid { grid-template-columns: 1fr; }
  .iw-model-grid { grid-template-columns: 1fr 1fr; }
  .iw-option-grid { grid-template-columns: 1fr 1fr; }
}
