/* =============================================================================
   VECTOR DRAFT — AI Home & Architectural Design Studio
   Aesthetic: Maket-inspired Modern Minimalist Architectural Canvas
   ============================================================================= */

:root {
  /* Surface Palette */
  --bg-canvas: #FAFAF8;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F4F4F0;
  --bg-hover: #F0F0EB;
  
  /* Borders */
  --border-subtle: #ECEBE5;
  --border-medium: #DCDCD4;
  --border-focus: #2563EB;
  
  /* Typography */
  --text-primary: #111827;
  --text-secondary: #52525B;
  --text-muted: #71717A;
  --text-light: #A1A1AA;
  
  /* Accent: Cobalt / Royal Architectural Blue */
  --blue-primary: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-subtle: #EFF6FF;
  --blue-border: #BFDBFE;

  /* Pastels (Maket Standard) */
  --pastel-lavender-bg: #F4EEFC;
  --pastel-lavender-border: #E8DAF7;
  --pastel-lavender-text: #7E22CE;

  --pastel-cyan-bg: #E8F4FC;
  --pastel-cyan-border: #CFE8F8;
  --pastel-cyan-text: #0284C7;

  --pastel-peach-bg: #FFF0E6;
  --pastel-peach-border: #FED7AA;
  --pastel-peach-text: #EA580C;

  --pastel-amber-bg: #FEF8E7;
  --pastel-amber-border: #FDE68A;
  --pastel-amber-text: #D97706;

  --pastel-emerald-bg: #ECFDF5;
  --pastel-emerald-border: #A7F3D0;
  --pastel-emerald-text: #059669;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-editorial: 'Newsreader', Georgia, serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.02), 0 8px 24px -4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 20px 40px -8px rgba(0, 0, 0, 0.16);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.maket-body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

input {
  font-family: inherit;
}

/* =============================================================================
   1. TOP NAVIGATION BAR (Maket Screenshot 1 standard)
   ============================================================================= */
.maket-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-cube-icon {
  width: 32px;
  height: 32px;
  background: #111827;
  color: #FFFFFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

/* Studio Breadcrumb */
.studio-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crumb-divider {
  color: var(--border-medium);
  font-size: 14px;
}

.crumb-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.crumb-back-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.crumb-project-title {
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  width: 280px;
  transition: var(--transition);
}

.crumb-project-title:hover,
.crumb-project-title:focus {
  border-color: var(--border-medium);
  background: var(--bg-surface);
  outline: none;
}

.crumb-status-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--pastel-emerald-text);
  background: var(--pastel-emerald-bg);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pastel-emerald-text);
}

/* Navigation Right Group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-greeting {
  font-size: 13px;
  color: var(--text-secondary);
  margin-right: 4px;
}

.nav-greeting strong {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-btn-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-medium);
}

.credits-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.credits-pill:hover {
  border-color: var(--blue-primary);
  background: var(--blue-subtle);
}

.credits-coin {
  font-size: 12px;
}

.nav-btn-primary {
  background: var(--blue-primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.nav-btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* User Profile Menu */
.user-profile-menu {
  position: relative;
}

.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111827;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.user-avatar-btn:hover {
  transform: scale(1.05);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  padding: 8px;
  display: none;
  z-index: 200;
}

.profile-dropdown.show,
.profile-dropdown.active {
  display: block;
}

.dropdown-header {
  padding: 10px 12px;
}

.dropdown-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.dropdown-email {
  font-size: 11px;
  color: var(--text-muted);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-hover);
}

.dropdown-item.text-danger {
  color: #DC2626;
}

.dropdown-item.text-danger:hover {
  background: #FEF2F2;
}

/* =============================================================================
   2. VIEW 1: CREATION HUB (Maket Screenshot 1 & 3 standard)
   ============================================================================= */
.view-hub {
  flex: 1;
  padding: 48px 24px 80px;
}

.hub-container {
  max-width: 1280px;
  margin: 0 auto;
}

.hub-hero {
  text-align: center;
  margin-bottom: 44px;
}

.hub-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hub-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* 4-Card Grid */
.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

@media (max-width: 1100px) {
  .hub-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hub-cards-grid {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: var(--transition);
  position: relative;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-hover);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-lavender {
  background: var(--pastel-lavender-bg);
  color: var(--pastel-lavender-text);
  border: 1px solid var(--pastel-lavender-border);
}

.badge-cyan {
  background: var(--pastel-cyan-bg);
  color: var(--pastel-cyan-text);
  border: 1px solid var(--pastel-cyan-border);
}

.badge-peach {
  background: var(--pastel-peach-bg);
  color: var(--pastel-peach-text);
  border: 1px solid var(--pastel-peach-border);
}

.badge-amber {
  background: var(--pastel-amber-bg);
  color: var(--pastel-amber-text);
  border: 1px solid var(--pastel-amber-border);
}

.card-tier-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 18px;
}

/* Inline Config Pills (Maket Screenshot 1) */
.inline-config-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.config-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pill-label {
  color: var(--text-muted);
}

.pill-val {
  font-weight: 600;
  color: var(--text-primary);
}

/* Format Pills */
.inline-format-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.format-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* File Type Chips (Screenshot 3) */
.file-type-chips-row {
  display: flex;
  gap: 8px;
}

.file-chip {
  flex: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* Card CTA Button (Clean Pill Button) */
.card-footer {
  margin-top: 20px;
}

.card-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-cta-btn:hover {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
}

/* Filter & Search Bar (Screenshot 3) */
.hub-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.search-input-wrapper {
  position: relative;
  width: 380px;
  max-width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 16px 10px 40px;
  font-size: 13.5px;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.view-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  box-shadow: var(--shadow-sm);
}

.view-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.view-btn.active {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

/* My Projects Section */
.hub-projects-section {
  margin-top: 10px;
}

.projects-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.projects-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  transition: all 0.2s ease;
}

/* List View Mode (Maket Screenshot 3) */
.projects-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.projects-grid.list-view .project-card {
  flex-direction: row;
  align-items: center;
  min-height: 104px;
}

.projects-grid.list-view .project-thumb-box {
  width: 160px;
  height: 104px;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.projects-grid.list-view .project-info {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  width: 100%;
  gap: 20px;
}

.projects-grid.list-view .project-name {
  margin-bottom: 4px;
}

.projects-grid.list-view .project-meta {
  margin-bottom: 0;
}

.projects-grid.list-view .project-card-footer {
  flex-shrink: 0;
  gap: 16px;
}

.projects-grid.list-view .new-project-card {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  gap: 16px;
  padding: 16px 24px;
}

.projects-grid.list-view .new-project-card .new-card-icon {
  margin-bottom: 0;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-hover);
}

.project-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #E5E5E0;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img {
  transform: scale(1.03);
}

.thumb-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.thumb-badge.status-ready {
  background: rgba(16, 185, 129, 0.9);
  color: #FFFFFF;
}

.thumb-precision {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  background: rgba(17, 24, 39, 0.85);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.project-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.project-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
  flex: 1;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.project-timestamp {
  font-size: 11.5px;
  color: var(--text-light);
}

.project-open-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-primary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--blue-subtle);
  transition: var(--transition);
}

.project-open-btn:hover {
  background: var(--blue-primary);
  color: #FFFFFF;
}

/* Quick New Project Card */
.new-project-card {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  min-height: 240px;
  transition: var(--transition);
}

.new-project-card:hover {
  background: var(--bg-surface);
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-card);
}

.new-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.new-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.new-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 200px;
}


/* =============================================================================
   3. VIEW 2: THE STUDIO / CANVAS WORKSPACE (Maket Screenshot 2 standard)
   ============================================================================= */
.view-studio {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 61px);
  overflow: hidden;
}

.studio-layout {
  display: flex;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

/* LEFT PANEL (Conversational Design Assistant) */
.studio-left-panel {
  width: 420px;
  max-width: 35%;
  min-width: 360px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.left-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 20px 16px;
  overflow: hidden;
}

/* Stepped Checklist Card (Maket Screenshot 2) */
.stepped-checklist-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.checklist-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.checklist-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue-primary);
  background: var(--blue-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.check-item.done {
  color: var(--text-primary);
}

.check-item.active {
  color: var(--blue-primary);
  font-weight: 600;
}

.check-icon {
  font-size: 12px;
  font-weight: 700;
  width: 16px;
}

.check-item.done .check-icon {
  color: var(--pastel-emerald-text);
}

.check-item.active .check-icon {
  color: var(--blue-primary);
}

/* Chat Stream */
.chat-stream-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 4px;
  margin-bottom: 16px;
}

.chat-msg {
  display: flex;
  gap: 10px;
}

.msg-user {
  justify-content: flex-end;
}

.user-bubble-txt {
  background: #111827;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  font-size: 13px;
  max-width: 85%;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}

.msg-assistant {
  align-items: flex-start;
}

.assistant-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.assistant-content {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  border-radius: 4px 18px 18px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.ai-text {
  margin-bottom: 8px;
}

/* Interactive Chips in Chat */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.option-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

.option-chip:hover {
  border-color: var(--blue-primary);
  background: var(--blue-subtle);
}

.option-chip.active {
  background: var(--blue-primary);
  color: #FFFFFF;
  border-color: var(--blue-primary);
  font-weight: 600;
}

/* Sticky Chat Input at Bottom */
.studio-chat-input-bar {
  margin-top: auto;
}

.chat-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-canvas);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.chat-input-box:focus-within {
  border-color: var(--blue-primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.chat-text-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111827;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chat-send-btn:hover {
  background: var(--blue-primary);
}


/* RIGHT PANEL (Architectural CAD Dot-Grid Canvas) */
.studio-canvas-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-canvas);
  position: relative;
  overflow: hidden;
}

/* Canvas Toolbar */
.canvas-toolbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.canvas-mode-group {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.mode-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.mode-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.canvas-layer-toggles {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}

.scale-ruler {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.scale-bar-line {
  width: 48px;
  height: 2px;
  background: var(--text-muted);
}

.scale-tick {
  color: var(--text-muted);
  font-weight: bold;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
}

.zoom-btn {
  width: 24px;
  height: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.zoom-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.zoom-level {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 0 4px;
  color: var(--text-primary);
}


/* Canvas Viewport (Dot-Grid Background) */
.canvas-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--bg-canvas);
  background-image: radial-gradient(#D4D4D8 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

/* Split Comparison Stage */
.cad-slider-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 100%;
  max-height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  background: #111827;
  user-select: none;
}

.slider-render-layer,
.slider-blueprint-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-blueprint-layer {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  background: #0D1117;
  z-index: 2;
}

.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.layer-badge {
  position: absolute;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.badge-render {
  right: 14px;
  background: rgba(17, 24, 39, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-cad {
  left: 14px;
  background: rgba(37, 99, 235, 0.9);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Divider Handle */
.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FFFFFF;
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.divider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #111827;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* Telemetry Pill in Canvas */
.canvas-telemetry-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.telemetry-divider {
  color: var(--border-medium);
}


/* Canvas Bottom Action Bar */
.canvas-footer-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-spec-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--pastel-emerald-text);
  background: var(--pastel-emerald-bg);
  border: 1px solid var(--pastel-emerald-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.footer-spec-detail {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-authorize-commission {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-primary);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: var(--transition);
}

.btn-authorize-commission:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.export-dropdown-wrapper {
  position: relative;
}

.btn-export-dropdown {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-export-dropdown:hover {
  background: var(--bg-hover);
}

.export-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  padding: 6px;
  display: none;
  z-index: 200;
}

.export-menu.show,
.export-menu.active {
  display: block;
}

.export-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.export-item:hover {
  background: var(--bg-hover);
}


/* =============================================================================
   4. MODALS (Upgrade / Pricing Modal — Maket Screenshot 4)
   ============================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: var(--shadow-modal);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Upgrade Modal Specifically */
.modal-upgrade-dialog {
  width: 1160px;
  max-width: 96vw;
  padding: 40px;
}

.modal-header {
  text-align: center;
  margin-bottom: 36px;
}

.modal-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 24px;
}

.billing-switch-wrapper {
  display: flex;
  justify-content: center;
}

.billing-switch {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.switch-opt {
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.switch-opt.active {
  background: #111827;
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.badge-save {
  font-size: 10px;
  background: #22C55E;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

/* 4 Pricing Columns Grid */
.pricing-columns-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 990px) {
  .pricing-columns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pricing-columns-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.pricing-col:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-card);
}

.pricing-col.popular-tier {
  border: 2px solid var(--blue-primary);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

.col-header {
  margin-bottom: 20px;
}

.tier-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tier-tagline {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  min-height: 36px;
  margin-bottom: 16px;
}

.tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-val {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.price-period {
  font-size: 13px;
  color: var(--text-muted);
}

.col-features {
  flex: 1;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  margin-bottom: 24px;
}

.features-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-list li {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.feat-check {
  color: var(--blue-primary);
  font-weight: 700;
}

.feat-ico {
  font-size: 11px;
}

.col-footer {
  margin-top: auto;
}

.btn-tier-action {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  display: block;
  text-decoration: none;
}

.btn-current-plan {
  background: var(--bg-subtle);
  color: var(--text-light);
  border: 1px solid var(--border-subtle);
  cursor: default;
}

.btn-upgrade-primary {
  background: var(--blue-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-upgrade-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-contact-us {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-contact-us:hover {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
}

/* Instant Checkout Modal */
.modal-checkout-dialog {
  width: 480px;
  max-width: 90vw;
  padding: 32px;
}

.checkout-header {
  text-align: center;
  margin-bottom: 24px;
}

.checkout-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--blue-primary);
  background: var(--blue-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.checkout-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.checkout-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.checkout-order-summary {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
}

.summary-line strong {
  color: var(--text-primary);
}

.summary-line .text-success {
  color: var(--pastel-emerald-text);
}

.summary-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
}

.total-line {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.total-price {
  font-size: 22px;
  color: var(--blue-primary);
}

.btn-confirm-pay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue-primary);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}

.btn-confirm-pay:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.checkout-guarantee {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}


/* =============================================================================
   5. CLAUDE DESIGN ARCHITECTURAL STUDIO EXTENSIONS
      4-Theme Swatch Cards, 60-30-10 Munsell Harmony Bar, N/S/E/W Wall Inspector
   ============================================================================= */

.studio-left-panel {
  width: 430px;
  max-width: 38%;
  min-width: 370px;
}

.left-panel-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 4px;
  margin-bottom: 12px;
}

.studio-config-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.studio-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.studio-config-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.studio-config-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--blue-primary);
  background: var(--blue-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* 4-Theme Swatch Grid */
.theme-swatch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-swatch-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-swatch-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.theme-swatch-card.active {
  border-color: var(--blue-primary);
  background: var(--blue-subtle);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.theme-dots-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.theme-kelvin-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 1px 5px;
  border-radius: 4px;
}

.theme-card-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.theme-card-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Household Preferences Grid */
.prefs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.pref-field label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.pref-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.btn-apply-prefs {
  width: 100%;
  background: #111827;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-apply-prefs:hover {
  background: var(--blue-primary);
}

/* Scrollable Right Studio Area */
.studio-canvas-area {
  overflow-y: auto;
}

.canvas-viewport {
  min-height: 440px;
  max-height: 520px;
  flex-shrink: 0;
  padding: 18px 24px;
}

.cad-slider-stage {
  height: 440px;
  max-height: 480px;
}

/* Wall-by-Wall & Munsell 60-30-10 Inspector Panel */
.wall-inspector-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inspector-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.inspector-heading-group h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.inspector-heading-group p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* 60-30-10 Munsell Harmony Bar */
.munsell-bar-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.munsell-visual-strip {
  display: flex;
  height: 26px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.munsell-seg-60 {
  width: 60%;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.munsell-seg-30 {
  width: 30%;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.munsell-seg-10 {
  width: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.munsell-legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

.munsell-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.munsell-swatch-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  margin-top: 2px;
}

.munsell-legend-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 12px;
}

.munsell-legend-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

/* 4-Wall (North / South / East / West) Elevation Grid */
.walls-nsew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1200px) {
  .walls-nsew-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .walls-nsew-grid {
    grid-template-columns: 1fr;
  }
}

.wall-spec-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wall-dir-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue-primary);
  background: var(--blue-subtle);
  padding: 3px 8px;
  border-radius: 6px;
}

.wall-primary-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.wall-joinery-detail {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

.wall-elec-foot {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-medium);
  padding-top: 6px;
}

/* FF&E Schedule Table */
.ffe-schedule-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  overflow-x: auto;
}

.ffe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ffe-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-medium);
}

.ffe-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.ffe-code-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 2px 6px;
  border-radius: 4px;
}

/* =============================================================================
   6. UNIFIED STUDIO & DASHBOARD LAYOUT HARMONIZATION (v2.4)
      Fixes all thumbnail badge containment, navbar dropdown, modals & viewport
   ============================================================================= */

/* Navbar & User Menu Dropdown */
.user-menu-wrapper {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  padding: 8px;
  display: none;
  z-index: 600;
}

.user-dropdown.active,
.user-dropdown.show {
  display: block;
}

.dropdown-user-header {
  padding: 10px 12px;
}

.nav-btn-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.nav-btn-upgrade:hover {
  background: var(--blue-primary);
}

/* Hub Container & Project Thumbnail Containment (Prevents absolute badge escape!) */
.view-hub {
  flex: 1;
  width: 100%;
}

.hub-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 32px 64px;
  width: 100%;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-subtle);
  color: var(--blue-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}

.project-card {
  position: relative;
  cursor: pointer;
}

.project-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #E5E5E0;
  overflow: hidden;
}

/* Commission & Upload Workflow Banner */
.commission-workflow-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.workflow-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #60A5FA;
  margin-bottom: 4px;
}

.workflow-heading {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.workflow-steps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.workflow-step-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: #E2E8F0;
}

.workflow-step-pill strong {
  color: #FFFFFF;
  margin-right: 4px;
}

.workflow-arrow {
  color: #94A3B8;
  font-weight: 700;
}

.btn-workflow-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-workflow-cta:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

/* Studio Left Panel Controls */
.room-selector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.room-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.room-pill:hover {
  border-color: var(--blue-primary);
  color: var(--text-primary);
}

.room-pill.active {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
}

.theme-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-dots span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.req-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.req-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.req-field span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.req-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.btn-apply-engine {
  width: 100%;
  background: var(--blue-primary);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}

.btn-apply-engine:hover {
  background: var(--blue-hover);
}

/* Studio Right Panel & Split Render Viewport */
.maket-navbar {
  padding: 10px 22px;
  gap: 12px;
}

.nav-left {
  gap: 10px;
  min-width: 0;
}

.nav-right {
  gap: 8px;
  flex-shrink: 0;
}

.nav-left,
.nav-right,
.studio-breadcrumb,
.crumb-status-pill,
.nav-btn-secondary,
.nav-btn-upgrade {
  white-space: nowrap;
}

.crumb-project-title {
  width: 165px;
  text-overflow: ellipsis;
}

.view-studio {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: calc(100vh - 61px);
  overflow: visible;
}

.studio-layout {
  display: flex;
  align-items: flex-start;
  flex: 1;
  height: auto;
  overflow: visible;
}

.studio-left-panel {
  position: sticky;
  top: 61px;
  height: calc(100vh - 61px);
  flex-shrink: 0;
}

.studio-right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-canvas);
  overflow: visible;
  height: auto;
  min-width: 0;
}

.canvas-mode-tabs {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 4px;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.mode-tab.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.toolbar-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.toolbar-action-btn:hover {
  background: var(--bg-hover);
}

.toolbar-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.toolbar-primary-btn:hover {
  background: var(--blue-primary);
}

.canvas-stage-wrapper {
  position: relative;
  padding: 18px 24px;
  background-color: var(--bg-canvas);
  background-image: radial-gradient(#D4D4D8 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  flex-shrink: 0;
}

.studio-split-viewport {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border-subtle);
  background: #0D1117;
  user-select: none;
}

.viewport-layer-photo,
.viewport-layer-cad,
.viewport-cad-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.viewport-layer-cad {
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.viewport-slider-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #FFFFFF;
  z-index: 5;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.viewport-slider-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.canvas-badge {
  position: absolute;
  top: 14px;
  z-index: 6;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.badge-left {
  left: 14px;
  background: rgba(37, 99, 235, 0.9);
  color: #FFFFFF;
}

.badge-right {
  right: 14px;
  background: rgba(17, 24, 39, 0.88);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.canvas-synthesis-overlay {
  position: absolute;
  inset: 18px 24px;
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.82);
  backdrop-filter: blur(8px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  gap: 8px;
}

.synth-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #60A5FA;
  animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.synth-title {
  font-size: 15px;
  font-weight: 700;
}

.synth-sub {
  font-size: 12.5px;
  color: #9CA3AF;
}

/* Telemetry Bar */
.canvas-telemetry-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.telemetry-left,
.telemetry-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.telemetry-sep {
  color: var(--border-medium);
}

.text-emerald {
  color: var(--pastel-emerald-text);
}

/* Wall-by-Wall & Munsell Harmony Inspector Drawer */
.arch-inspector-drawer {
  background: var(--bg-surface);
  padding: 22px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inspector-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.inspector-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.inspector-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.inspector-summary-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.insp-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.insp-badge-emerald {
  background: var(--pastel-emerald-bg);
  color: var(--pastel-emerald-text);
  border-color: var(--pastel-emerald-border);
}

.munsell-harmony-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.munsell-bar-visual {
  display: flex;
  height: 30px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

/* Modals: Upload Floor Plan Modal & Studio Commission Pricing Modal */
.maket-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.maket-modal-overlay.active {
  display: flex;
}

.maket-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
}

.maket-modal-dialog.modal-lg {
  max-width: 1040px;
}

.modal-close-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-x:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-badge-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-primary);
  background: var(--blue-subtle);
  border: 1px solid var(--blue-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.modal-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-subtext {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.upload-dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-canvas);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 18px;
  transition: var(--transition);
}

.upload-dropzone:hover {
  border-color: var(--blue-primary);
  background: var(--blue-subtle);
}

.dropzone-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: var(--shadow-sm);
}

.dropzone-main-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dropzone-sub-text {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .modal-form-row {
    grid-template-columns: 1fr;
  }
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-medium);
  background: var(--bg-canvas);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-primary-cta {
  width: 100%;
  background: var(--blue-primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: var(--transition);
}

.modal-primary-cta:hover {
  background: var(--blue-hover);
}

/* Dashboard Pricing Grid inside #pricing-modal */
.dashboard-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.dash-price-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.dash-price-card.featured-card {
  background: var(--bg-surface);
  border: 2px solid var(--blue-primary);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.14);
}

.featured-ribbon {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--blue-primary);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.price-tier-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.price-tier-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.price-tier-val span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.price-tier-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
}

.price-tier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  flex: 1;
}

.price-tier-list li {
  font-size: 12.5px;
  color: var(--text-primary);
  font-weight: 500;
}

.dash-price-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-solid-blue {
  background: var(--blue-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-solid-blue:hover {
  background: var(--blue-hover);
}

.btn-dark-outline {
  background: #111827;
  color: #FFFFFF;
}

.btn-dark-outline:hover {
  background: var(--blue-primary);
}

/* =============================================================================
   8. CLAUDE & STITCH 3-STEP ARCHITECTURAL COMMISSION WORKSPACE (8:4 SPLIT)
   Flow: 1. Collect Customer Data -> 2. Pay Commission -> 3. Process Pipeline
   ============================================================================= */
.atelier-commission-workspace {
  margin-bottom: 36px;
}

.atelier-workspace-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E5E0D5;
}

.atelier-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #121820;
  color: #EAE4DC;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.atelier-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C5A880;
  box-shadow: 0 0 8px rgba(197, 168, 128, 0.8);
}

.atelier-main-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #121820;
  line-height: 1.15;
  margin-bottom: 6px;
}

.atelier-main-title-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: #785E3A;
}

.atelier-main-sub {
  font-size: 14px;
  color: #4B5563;
  max-width: 680px;
  line-height: 1.55;
}

/* 3-Step Flow Breadcrumb Rail */
.atelier-stepper-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F4EFE6;
  border: 1px solid #E2DACB;
  padding: 6px;
  border-radius: 999px;
  flex-wrap: wrap;
}

.atelier-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #4B5563;
  background: transparent;
  transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.atelier-step-chip.active {
  background: #121820;
  color: #FDFBF7;
  box-shadow: 0 4px 14px rgba(18, 24, 32, 0.14);
}

.atelier-step-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(197, 168, 128, 0.22);
  color: #C5A880;
}

/* Asymmetric 8:4 Grid */
.atelier-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(340px, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 1080px) {
  .atelier-split-grid {
    grid-template-columns: 1fr;
  }
}

/* Double-Bezel Step Cards */
.atelier-bezel-outer {
  background: rgba(18, 24, 32, 0.035);
  border: 1px solid rgba(18, 24, 32, 0.08);
  border-radius: 22px;
  padding: 6px;
  margin-bottom: 20px;
}

.atelier-bezel-inner {
  background: #FFFFFF;
  border: 1px solid #ECE7DF;
  border-radius: 17px;
  padding: 24px 26px;
  box-shadow: 0 8px 26px -6px rgba(18, 24, 32, 0.04);
}

.atelier-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F1EDE6;
}

.atelier-card-step-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8C6D46;
  background: #F9F5EE;
  border: 1px solid #E6DEC8;
  padding: 4px 10px;
  border-radius: 999px;
}

.atelier-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #121820;
  letter-spacing: -0.015em;
}

/* Blueprint Ingestion Dropzone */
.atelier-dropzone {
  border: 1.5px dashed #C5A880;
  background: linear-gradient(180deg, #FDFBF7 0%, #F7F3EB 100%);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  margin-bottom: 18px;
  position: relative;
}

.atelier-dropzone:hover,
.atelier-dropzone.has-file {
  border-style: solid;
  border-color: #121820;
  background: #F6F2E9;
  transform: translateY(-1px);
}

.atelier-dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #121820;
  color: #C5A880;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* Room Dimensions Matrix Grid */
.atelier-room-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.atelier-room-cell {
  background: #FBF9F5;
  border: 1px solid #E6E0D4;
  border-radius: 12px;
  padding: 11px 12px;
  transition: all 0.25s ease;
}

.atelier-room-cell:focus-within {
  border-color: #121820;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(18, 24, 32, 0.06);
}

.atelier-room-chk-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #121820;
  margin-bottom: 7px;
  cursor: pointer;
}

.atelier-room-dim-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #DCD4C6;
  border-radius: 8px;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #121820;
}

/* Theme Swatch Selector Grid */
.atelier-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 680px) {
  .atelier-theme-grid {
    grid-template-columns: 1fr;
  }
}

.atelier-theme-card {
  text-align: left;
  background: #FBF9F5;
  border: 1.5px solid #E6E0D4;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atelier-theme-card:hover {
  border-color: #8C6D46;
  transform: translateY(-1px);
}

.atelier-theme-card.active {
  background: #121820;
  border-color: #121820;
  color: #FDFBF7;
  box-shadow: 0 10px 24px -6px rgba(18, 24, 32, 0.25);
}

.atelier-theme-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

.atelier-swatch-pill {
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* Commission Plan Radio Cards (Step 03) */
.atelier-plan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 780px) {
  .atelier-plan-cards {
    grid-template-columns: 1fr;
  }
}

.atelier-plan-card {
  text-align: left;
  background: #FBF9F5;
  border: 1.5px solid #E6E0D4;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.atelier-plan-card:hover {
  border-color: #8C6D46;
}

.atelier-plan-card.active {
  background: #121820;
  border-color: #121820;
  color: #FDFBF7;
  box-shadow: 0 12px 28px -6px rgba(18, 24, 32, 0.25);
}

.atelier-plan-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 6px 0;
}

/* Sticky Right 4-Col Dossier & Checkout Card */
.atelier-sticky-dossier {
  position: sticky;
  top: 84px;
  background: #121820;
  color: #F9F6F0;
  border: 1px solid rgba(197, 168, 128, 0.32);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 44px -12px rgba(18, 24, 32, 0.28);
}

.dossier-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
}

.dossier-row-label {
  color: #9CA3AF;
  font-size: 11.5px;
}

.dossier-row-val {
  color: #F9F6F0;
  font-weight: 600;
  text-align: right;
}

.atelier-pay-process-btn {
  width: 100%;
  background: linear-gradient(135deg, #D4B996 0%, #B89768 100%);
  color: #121820;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 8px 24px rgba(197, 168, 128, 0.3);
}

.atelier-pay-process-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(197, 168, 128, 0.45);
}

.atelier-pay-process-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.atelier-btn-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #121820;
  color: #D4B996;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(18, 24, 32, 0.14);
  background: #FAF8F5;
  color: #1F2937;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.custom-swatch-chip:hover {
  border-color: #C5A880;
  background: #FFFFFF;
}

.custom-swatch-chip.active {
  background: #121820;
  color: #FFFFFF;
  border-color: #C5A880;
  box-shadow: 0 3px 10px rgba(18, 24, 32, 0.16);
}

.swatch-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.custom-swatch-chip.active .swatch-dot {
  border-color: rgba(255, 255, 255, 0.65);
}

/* =============================================================================
   5. APPLIANCE CHIPS, PINTEREST PIP, 3D SPATIAL CALLOUT PINS & 5-AGENT SWARM
   ============================================================================= */
.appliance-chip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(18, 24, 32, 0.14);
  background: #FAF8F5;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.appliance-chip:hover {
  border-color: #10B981;
  background: #FFFFFF;
}

.appliance-chip:has(input:checked) {
  background: #ECFDF5;
  border-color: #10B981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.appliance-chip input[type="checkbox"] {
  accent-color: #059669;
  margin-top: 2px;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.appliance-chip-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.appliance-chip-title {
  font-size: 12px;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}

.appliance-chip-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #4B5563;
}

.appliance-chip-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #047857;
  margin-top: 2px;
}

.studio-render-pins-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.render-pin-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 7;
  transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

.render-pin-marker:hover,
.render-pin-marker.active {
  transform: translate(-50%, -50%) scale(1.06);
  z-index: 15;
}

.render-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid #10B981;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.render-pin-marker.pin-idea .render-pin-badge {
  border-color: #F59E0B;
  background: rgba(28, 25, 23, 0.92);
}

.render-pin-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10B981;
  color: #064E3B;
  font-size: 10.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.render-pin-marker.pin-idea .render-pin-num {
  background: #F59E0B;
  color: #451A03;
}

.render-pin-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 270px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(197, 168, 128, 0.55);
  border-radius: 12px;
  padding: 10px 12px;
  color: #F9FAFB;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  display: none;
  pointer-events: auto;
  text-align: left;
  white-space: normal;
}

.render-pin-marker:hover .render-pin-popover,
.render-pin-marker.active .render-pin-popover {
  display: block;
}

.studio-pinterest-pip {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 8;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.65);
  border-radius: 12px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  max-width: 340px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.swarm-agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
}

.swarm-agent-card {
  background: #FFFFFF;
  border: 1px solid #E6E2DA;
  border-radius: 12px;
  padding: 12px 14px;
}

/* =============================================================================
   6. AUTHENTIC CLAUDE DESIGN SYSTEM OVERHAUL (WARM PARCHMENT, EDITORIAL SERIF,
      TERRACOTTA ACCENTS, ZERO DOUBLE-BEZEL / NEON CLUTTER)
   ============================================================================= */
:root {
  --bg-app: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-sidebar: #F3F0EA;
  --bg-canvas: #191918;
  --bg-subtle: #F3F0EA;

  --border-subtle: #E6E2DA;
  --border-medium: #D5CFC4;
  --border-focus: #D97757;

  --text-primary: #141413;
  --text-secondary: #5E5D59;
  --text-muted: #8C8A84;

  --blue-primary: #D97757;
  --blue-hover: #C46445;
  --blue-light: #FDF4F0;
  --blue-border: #F2D0C2;

  --emerald: #2E6F40;
  --emerald-bg: #EBF5EE;
  --amber: #B45309;
  --amber-bg: #FEF6E7;

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'DM Mono', monospace;

  --shadow-sm: 0 1px 2px rgba(20, 20, 19, 0.04);
  --shadow-card: 0 2px 10px rgba(20, 20, 19, 0.035), 0 1px 2px rgba(20, 20, 19, 0.02);
  --shadow-float: 0 12px 32px rgba(20, 20, 19, 0.08);
}

body.maket-body {
  background-color: #FAF8F5;
  color: #141413;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* --- 6.1 Top Navigation Bar (Claude Workspace Header) --- */
.maket-navbar {
  height: 62px;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E6E2DA;
  padding: 0 28px;
}

.brand-cube-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #D97757;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(217, 119, 87, 0.25);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #141413;
}

.nav-greeting {
  font-size: 12.5px;
  color: #5E5D59;
  padding-right: 4px;
}

.nav-greeting strong {
  color: #141413;
  font-weight: 600;
}

.nav-btn-secondary {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid #E6E2DA;
  background: #FFFFFF;
  color: #141413;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.03);
}

.nav-btn-secondary:hover {
  background: #F3F0EA;
  border-color: #D5CFC4;
}

.nav-btn-upgrade {
  padding: 7px 13px;
  border-radius: 9px;
  background: #F3F0EA;
  color: #141413;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #E6E2DA;
}

.nav-btn-upgrade:hover {
  background: #EAE5DC;
}

.user-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #191918;
  color: #FAF8F5;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid #E6E2DA;
}

.user-Avatar-btn:hover,
.user-avatar-btn:hover {
  border-color: #D97757;
  transform: none;
}

.crumb-back-btn {
  background: #F3F0EA;
  border: 1px solid #E6E2DA;
  color: #141413;
  border-radius: 8px;
  font-weight: 500;
}

.crumb-back-btn:hover {
  background: #EAE5DC;
}

.crumb-status-pill {
  background: #EBF5EE;
  color: #2E6F40;
  border: 1px solid #CBE4D2;
  font-weight: 500;
}

.dot-green {
  background: #2E6F40;
}

/* --- 6.2 Step-by-Step Onboarding Workspace Header & Stepper --- */
.view-hub {
  background: #FAF8F5;
  padding: 28px 28px 64px;
}

.hub-container {
  max-width: 1320px;
}

.atelier-commission-workspace {
  margin-bottom: 32px;
}

.atelier-workspace-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E6E2DA;
}

.atelier-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #F3F0EA;
  color: #5E5D59;
  border: 1px solid #E6E2DA;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.atelier-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D97757;
  box-shadow: none;
}

.atelier-main-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #141413;
  margin: 0 0 8px 0;
}

.atelier-main-title-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #D97757;
}

.atelier-main-sub {
  font-size: 14.5px;
  color: #5E5D59;
  max-width: 680px;
  line-height: 1.55;
  margin: 0;
}

.atelier-stepper-rail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F3F0EA;
  border: 1px solid #E6E2DA;
  padding: 5px;
  border-radius: 12px;
}

.atelier-step-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #5E5D59;
  transition: all 0.18s ease;
}

.atelier-step-chip:hover {
  color: #141413;
  background: rgba(255, 255, 255, 0.55);
}

.atelier-step-chip.active {
  background: #FFFFFF;
  color: #141413;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(20, 20, 19, 0.08);
}

.atelier-step-num {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #E6E2DA;
  color: #5E5D59;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.atelier-step-chip.active .atelier-step-num {
  background: #D97757;
  color: #FFFFFF;
}

/* --- 6.3 Clean Claude Cards (No Double Bezels) --- */
.atelier-split-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1120px) {
  .atelier-split-grid {
    grid-template-columns: 1fr;
  }
}

.atelier-bezel-outer {
  padding: 0;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 20px;
}

.atelier-bezel-inner {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px 30px;
  border: 1px solid #E6E2DA;
  box-shadow: 0 2px 12px rgba(20, 20, 19, 0.035);
}

.atelier-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F0ECE3;
}

.atelier-card-step-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D97757;
}

.atelier-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #141413;
  margin: 4px 0 0 0;
}

/* --- 6.4 Floor Plan Dropzone & Pinterest Box --- */
.atelier-dropzone {
  border: 1.5px dashed #D5CFC4;
  background: #FAF8F5;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.atelier-dropzone:hover,
.atelier-dropzone.has-file {
  border-color: #D97757;
  background: #FDF4F0;
  box-shadow: none;
}

.atelier-dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #D97757;
  border: 1px solid #E6E2DA;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 1px 3px rgba(20, 20, 19, 0.05);
}

.atelier-room-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.atelier-room-cell {
  background: #FAF8F5;
  border: 1px solid #E6E2DA;
  border-radius: 10px;
  padding: 10px 12px;
}

.atelier-room-chk-label {
  font-size: 12px;
  font-weight: 600;
  color: #141413;
}

.atelier-room-dim-input {
  border: 1px solid #E6E2DA;
  border-radius: 7px;
  background: #FFFFFF;
  color: #141413;
}

/* --- 6.5 Fixed Appliance Chip Grid (Clean 2-Line Stack) --- */
.appliance-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid #E6E2DA;
  background: #FAF8F5;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.appliance-chip:hover {
  border-color: #D5CFC4;
  background: #FFFFFF;
}

.appliance-chip.active,
.appliance-chip:has(input:checked) {
  background: #FDF4F0;
  border-color: #D97757;
  box-shadow: 0 1px 3px rgba(217, 119, 87, 0.1);
}

.appliance-chip input[type="checkbox"] {
  accent-color: #D97757;
  margin: 0;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.app-chip-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #E6E2DA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.app-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.app-chip-text strong {
  font-size: 12.5px;
  font-weight: 600;
  color: #141413;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-chip-text small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #5E5D59;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- 6.6 Curated Architectural Theme Cards & Plan Tier Cards --- */
.atelier-theme-card {
  background: #FAF8F5;
  border: 1px solid #E6E2DA;
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #141413;
}

.atelier-theme-card:hover {
  border-color: #D5CFC4;
  background: #FFFFFF;
  transform: none;
}

.atelier-theme-card.active {
  background: #FFFFFF;
  color: #141413;
  border: 1.5px solid #D97757;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.12);
}

.atelier-swatch-pill {
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(20, 20, 19, 0.12);
}

.custom-swatch-chip {
  border: 1px solid #E6E2DA;
  background: #FAF8F5;
  color: #141413;
  font-weight: 500;
}

.custom-swatch-chip:hover {
  border-color: #D5CFC4;
  background: #FFFFFF;
}

.custom-swatch-chip.active {
  background: #191918;
  color: #FAF8F5;
  border-color: #191918;
  box-shadow: none;
}

.atelier-plan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.atelier-plan-card {
  background: #FAF8F5;
  border: 1px solid #E6E2DA;
  border-radius: 14px;
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  color: #141413;
}

.atelier-plan-card:hover {
  background: #FFFFFF;
  border-color: #D5CFC4;
}

.atelier-plan-card.active {
  background: #FFFFFF;
  color: #141413;
  border: 1.5px solid #D97757;
  box-shadow: 0 4px 16px rgba(217, 119, 87, 0.12);
}

.atelier-plan-price {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #141413;
  margin: 6px 0;
}

.atelier-plan-card.active .atelier-plan-price {
  color: #D97757;
}

/* --- 6.7 Right Sticky Summary Card (Claude Warm Parchment Dossier) --- */
.atelier-sticky-dossier {
  position: sticky;
  top: 84px;
  background: #F3F0EA;
  color: #141413;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #E6E2DA;
  box-shadow: 0 2px 12px rgba(20, 20, 19, 0.04);
}

.dossier-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #E6E2DA;
  font-size: 12px;
}

.dossier-row-label {
  color: #5E5D59;
  font-family: var(--font-mono);
  font-size: 11px;
}

.dossier-row-val {
  color: #141413;
  font-weight: 600;
  text-align: right;
}

.atelier-pay-process-btn {
  width: 100%;
  margin-top: 14px;
  padding: 13px 18px;
  border-radius: 12px;
  background: #D97757;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #C46445;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(217, 119, 87, 0.25);
  transition: all 0.18s ease;
}

.atelier-pay-process-btn:hover {
  background: #C46445;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 87, 0.32);
}

.atelier-btn-circle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* --- 6.8 Residence Hub & Room Cards --- */
.project-card {
  background: #FFFFFF;
  border: 1px solid #E6E2DA;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(20, 20, 19, 0.035);
}

.project-card:hover {
  border-color: #D5CFC4;
  box-shadow: 0 8px 24px rgba(20, 20, 19, 0.07);
}

.project-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: #141413;
}

.project-open-btn {
  background: #F3F0EA;
  color: #141413;
  border: 1px solid #E6E2DA;
  border-radius: 8px;
  font-weight: 600;
}

.project-card:hover .project-open-btn {
  background: #191918;
  color: #FAF8F5;
  border-color: #191918;
}

/* --- 6.9 Interactive 3D Room Studio (Claude Workspace Sidebar & Inspector) --- */
.studio-left-panel {
  background: #F3F0EA;
  border-right: 1px solid #E6E2DA;
}

.stepped-checklist-card {
  background: #FFFFFF;
  border: 1px solid #E6E2DA;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(20, 20, 19, 0.025);
}

.checklist-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: #141413;
}

.checklist-pill {
  background: #F3F0EA;
  color: #5E5D59;
  border: 1px solid #E6E2DA;
}

.room-pill {
  background: #FAF8F5;
  border: 1px solid #E6E2DA;
  color: #5E5D59;
  border-radius: 8px;
  font-weight: 500;
}

.room-pill:hover {
  border-color: #D5CFC4;
  color: #141413;
}

.room-pill.active {
  background: #191918;
  border-color: #191918;
  color: #FAF8F5;
}

.theme-swatch-card {
  background: #FAF8F5;
  border: 1px solid #E6E2DA;
  border-radius: 10px;
}

.theme-swatch-card:hover {
  border-color: #D5CFC4;
  background: #FFFFFF;
}

.theme-swatch-card.active {
  background: #FDF4F0;
  border-color: #D97757;
  box-shadow: 0 0 0 1px #D97757;
}

.btn-apply-engine {
  background: #191918;
  color: #FAF8F5;
  border-radius: 10px;
  font-weight: 600;
}

.btn-apply-engine:hover {
  background: #D97757;
}

.canvas-toolbar {
  background: #FAF8F5;
  border-bottom: 1px solid #E6E2DA;
}

.canvas-mode-tabs {
  background: #F3F0EA;
  border: 1px solid #E6E2DA;
  border-radius: 10px;
}

.mode-tab.active {
  background: #FFFFFF;
  color: #141413;
}

.toolbar-primary-btn {
  background: #D97757;
  color: #FFFFFF;
  border-radius: 9px;
  font-weight: 600;
}

.toolbar-primary-btn:hover {
  background: #C46445;
}

.canvas-telemetry-bar {
  background: #F3F0EA;
  border-top: 1px solid #E6E2DA;
  color: #5E5D59;
}

.arch-inspector-drawer {
  background: #FAF8F5;
  border-top: 1px solid #E6E2DA;
}

.inspector-eyebrow {
  color: #D97757;
}

.inspector-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: #141413;
}

.insp-badge {
  background: #F3F0EA;
  border: 1px solid #E6E2DA;
  color: #141413;
}

.insp-badge-emerald {
  background: #EBF5EE;
  border-color: #CBE4D2;
  color: #2E6F40;
}

.munsell-harmony-card,
.wall-spec-card,
.ffe-schedule-card {
  background: #FFFFFF;
  border: 1px solid #E6E2DA;
  border-radius: 14px;
}

.wall-dir-badge {
  color: #D97757;
}

.render-pin-badge {
  background: rgba(25, 25, 24, 0.92);
  border: 1.5px solid #D97757;
  color: #FAF8F5;
}

.render-pin-num {
  background: #D97757;
  color: #FFFFFF;
}

.render-pin-popover {
  background: #191918;
  border: 1px solid rgba(250, 248, 245, 0.2);
  color: #FAF8F5;
}





