html {
  overflow: hidden;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
div { margin: 0; padding: 0; }
.ui-toolip { width: auto; height: auto; }
#interfaces, #interface-controls { position: absolute; }
#interfaces { z-index: 0; width: 100vw; height: 100vh; top: 0; left: 0; }
#interface-controls { margin: 0 auto; width: 100%; text-align: center; bottom: 20px; z-index: 1000; pointer-events: none; }
#interface-controls > * { pointer-events: auto; }
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
#camera-controls { float: left; }
#floorplanner, #viewer { position: absolute; width: 100vw; height: 100vh; top: 0; left: 0; }
/* Inline Floating Action Bar (2D and 3D Studio Mini-Toolbar) */
#floorplanner-controls, #main-controls {
  position: absolute; left: 180px; top: 66px; margin: 0; padding: 3px 6px; width: auto; z-index: 1000;
  background: #ffffff; border-radius: 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0; display: inline-flex; align-items: center; gap: 3px;
  height: 34px; box-sizing: border-box;
}
#floorplanner-controls button, #floorplanner-controls label.btn-file,
#main-controls button, #main-controls label.btn-file,
.canvas-tool-btn {
  background: transparent !important; border: none !important; box-shadow: none !important;
  color: #475569 !important; width: 28px; height: 28px; border-radius: 6px;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  font-size: 15px; transition: all 0.15s ease; padding: 0 !important; margin: 0 !important;
  cursor: pointer; line-height: 1; box-sizing: border-box; vertical-align: middle;
}
#floorplanner-controls button:hover, #floorplanner-controls label.btn-file:hover,
#main-controls button:hover, #main-controls label.btn-file:hover,
.canvas-tool-btn:hover { background: #f1f5f9 !important; color: #0f172a !important; }
#floorplanner-controls .active, #main-controls .active, .canvas-tool-btn.active {
  background: #eff6ff !important; color: #2563eb !important;
}
#floorplanner-controls .material-symbols-rounded, #main-controls .material-symbols-rounded {
  font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.canvas-tool-divider {
  width: 1px; height: 16px; background: #e2e8f0; margin: 0 2px; flex-shrink: 0;
}

#walltextures { position: absolute; right: 100px; top: 100px; z-index: 1000; }
.btn-file { display: inline-flex; cursor: pointer; position: relative; overflow: hidden; margin: 0; padding: 0; }
.btn-file input[type=file] { position: absolute; top: 0; right: 0; min-width: 100%; min-height: 100%; filter: alpha(opacity=0); opacity: 0; cursor: inherit; display: block; }
.btn-hint { position: absolute; left: 20px; bottom: 20px; background-color: rgba(0,0,0,0.50); color: #fff; padding: 5px 10px; z-index: 10; display: none; }
.nav-sidebar > .active > a, .nav-sidebar > .active > a:hover, .nav-sidebar > .active > a:focus { color: #fff; background-color: #2563eb; }
.inventory-content { max-height: 500px; overflow-y: scroll; }

/* ============================================================
   LEFT SIDEBAR WITH SHORTCUTS
   ============================================================ */
.left-sidebar-modern {
  position: absolute; top: 68px; left: 16px;
  width: 154px; background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0; padding: 6px;
  display: flex; flex-direction: column; gap: 2px; z-index: 1000;
  box-sizing: border-box;
}

.modern-sidebar-tool {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 34px; padding: 0 8px 0 8px; border-radius: 8px;
  background: transparent; border: none; cursor: pointer; color: #64748b;
  font-size: 11.5px; font-weight: 600; font-family: var(--font-ui);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  box-sizing: border-box;
}

/* Left accent bar — hidden by default */
.modern-sidebar-tool::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  transition: background 0.15s ease, opacity 0.15s ease;
  opacity: 0;
}

/* Hover state */
.modern-sidebar-tool:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.modern-sidebar-tool:hover .tool-icon-wrap .material-symbols-rounded {
  color: #2563eb;
}

/* ACTIVE / SELECTED STATE */
.modern-sidebar-tool.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(37,99,235,0.35) !important;
}
.modern-sidebar-tool.active::before {
  background: rgba(255,255,255,0.55);
  opacity: 1;
}
.modern-sidebar-tool.active .tool-icon-wrap {
  background: rgba(255,255,255,0.18) !important;
  border-radius: 6px;
  animation: toolIconPulse 2s ease-in-out infinite;
}
@keyframes toolIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50%       { box-shadow: 0 0 0 5px rgba(255,255,255,0); }
}
.modern-sidebar-tool.active .tool-icon-wrap .material-symbols-rounded {
  color: #ffffff !important;
}
.modern-sidebar-tool.active .tool-title {
  color: #ffffff !important;
  font-weight: 700;
}
.modern-sidebar-tool.active .tool-shortcut {
  color: #bfdbfe !important;
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.25) !important;
}

/* Tool icon wrap base */
.modern-sidebar-tool .tool-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.modern-sidebar-tool .tool-icon-wrap .material-symbols-rounded {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.modern-sidebar-tool .tool-title {
  flex: 1; text-align: left; margin-left: 6px; white-space: nowrap;
  font-size: 11.5px; line-height: 1;
  transition: color 0.15s ease;
}
.modern-sidebar-tool .tool-shortcut {
  font-size: 9.5px; font-weight: 700; color: #94a3b8;
  background: #f8fafc; border: 1px solid #e2e8f0;
  padding: 2px 5px; border-radius: 4px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

/* Undo / Redo hover */
#tool-undo:hover .tool-icon-wrap .material-symbols-rounded,
#tool-redo:hover .tool-icon-wrap .material-symbols-rounded { color: #2563eb; }
#tool-undo:disabled, #tool-redo:disabled { opacity: 0.38; cursor: not-allowed; }

.modern-sidebar-divider { height: 1px; background: #e2e8f0; margin: 4px 2px; }

.tooltip-inner { white-space: pre-wrap; }
.dg select { color: #111827; }

/* ============================================================
   ARCHITECT 3D — BLUE MODERN THEME
   ============================================================ */

:root {
  --bg-page:      #f8fafc;
  --bg-surface:   #FFFFFF;
  --bg-raised:    #EDF1EF;
  --bg-hover:     #E2E8E4;
  --bg-active:    #D1D8D4;
  --bg-overlay:   rgba(244, 248, 246, 0.96);
  --primary:         #2563eb;
  --primary-hover:   #1d4ed8;
  --primary-active:  #1e40af;
  --primary-light:   #eff6ff;
  --primary-border:  rgba(37, 99, 235, 0.3);
  --primary-glow:    0 6px 20px rgba(37, 99, 235, 0.25);
  --secondary:       #171717;
  --secondary-hover: #262626;
  --secondary-light: #F5F5F5;
  --secondary-border:rgba(23, 23, 23, 0.2);
  --success:       #16A34A;
  --success-light: #DCFCE7;
  --warning:       #F59E0B;
  --warning-light: #FEF3C7;
  --error:         #EF4444;
  --error-light:   #FEE2E2;
  --info:          #8B5CF6;
  --info-light:    #EDE9FE;
  --text-h:      #111827;
  --text-p:      #374151;
  --text-muted:  #6B7280;
  --text-faint:  #9CA3AF;
  --border:        #E5E7EB;
  --border-strong: #D1D5DB;
  --border-focus:  var(--primary);
  --shadow-xs:   0 1px 3px rgba(17, 24, 39, 0.05);
  --shadow-sm:   0 3px 10px rgba(17, 24, 39, 0.06);
  --shadow-md:   0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg:   0 12px 36px rgba(17, 24, 39, 0.12);
  --shadow-xl:   0 24px 60px rgba(17, 24, 39, 0.15);
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;
  --font-ui:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-ui) !important;
  color: var(--text-p);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); color: var(--text-h); margin: 0; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }
p { margin: 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-raised); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.hidden,
.project-page-container.hidden,
.landing-page-container.hidden,
.login-overlay.hidden,
.auth-overlay.hidden { 
  display: none !important; 
  visibility: hidden !important; 
  opacity: 0 !important; 
  pointer-events: none !important; 
}

html.is-authenticated #login-overlay {
  display: none !important; opacity: 0 !important;
  visibility: hidden !important; pointer-events: none !important;
}

@keyframes blinkDot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fadeInStep { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   CADITAI LOGO
   ============================================================ */
.caditai-logo-img {
  height: 40px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.caditai-logo-img:hover {
  opacity: 0.95;
}
.caditai-logo-img.sm { height: 34px; max-width: 160px; }
.caditai-logo-img.lg { height: 54px; max-width: 260px; }
.caditai-logo-img.xl { height: 64px; max-width: 300px; }

/* Brand text fallback (shown alongside or instead of image) */
.brand-logo-wrap { display: flex; align-items: center; gap: 10px; }
.brand-name-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.4px;
}
.brand-tag-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================================
   LOGIN / AUTH PAGE
   ============================================================ */
.login-overlay {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; font-family: var(--font-ui); overflow: hidden;
  background: #E8EBE9;
}
.login-overlay.hidden { display: none !important; }

.login-overlay::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: url('../images/pngtree-architect-with-a-blueprint-examining-a-3d-sketch-image_3840183.jpg');
  background-size: cover; background-position: center 30%;
  filter: grayscale(100%) sepia(80%) hue-rotate(85deg) saturate(2.5) brightness(1.2) contrast(0.9);
}

.login-overlay::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(244, 248, 246, 0.4) 0%, rgba(33, 197, 93, 0.15) 100%);
}

.versa-login-card {
  position: relative; z-index: 10; display: flex;
  width: 1020px; max-width: 96vw; height: 660px; max-height: 94vh;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(33, 197, 93, 0.05);
  overflow: hidden;
}

.versa-hero {
  flex: 0 0 46%;
  background: linear-gradient(150deg, var(--primary-light) 0%, #F4F8F6 100%);
  border-right: 1px solid var(--border);
  padding: 44px 40px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.versa-hero::before {
  content: ''; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 197, 93, 0.12) 0%, transparent 70%); pointer-events: none;
}
.versa-hero-bg { display: none; }
.versa-hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.versa-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.versa-logo-icon {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--secondary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: var(--shadow-md);
  overflow: hidden;
}
.versa-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.versa-brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text-h); letter-spacing: -0.4px; }

.versa-tag-wrapper { margin-top: 24px; margin-bottom: 14px; }
.versa-live-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: var(--r-pill); border: 1px solid var(--primary-border);
  background: rgba(33, 197, 93, 0.08); color: var(--primary); font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.versa-live-tag .pulse-dot { animation: blinkDot 1.5s infinite; font-size: 9px; }

.versa-hero-title { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--text-h); line-height: 1.2; margin: 0 0 14px 0; letter-spacing: -0.6px; }
.hero-accent-highlight { color: var(--primary) !important; }
.versa-hero-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 28px; max-width: 320px; }

.versa-stats-card {
  background: var(--secondary); border: 1px solid var(--secondary-border); color: #fff;
  border-radius: var(--r-md); padding: 16px 20px; display: flex; justify-content: space-between; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.stat-col { text-align: left; }
.stat-value { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #fff; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 3px; font-weight: 500; }

.versa-chart-wrapper { background: rgba(255,255,255,0.7); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; }
.chart-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.chart-title { font-size: 10px; font-weight: 700; color: var(--text-faint); letter-spacing: 1.2px; text-transform: uppercase; }
.chart-badge { font-size: 11px; font-weight: 700; color: var(--primary); }
.chart-bars { display: flex; align-items: flex-end; gap: 7px; height: 38px; }
.chart-bars .bar { flex: 1; background: var(--border-strong); border-radius: 3px; transition: height 0.4s ease; }
.chart-bars .bar.teal { background: var(--primary); }

.versa-form-section { flex: 1; background: #fff; padding: 50px 48px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.login-step { width: 100%; max-width: 360px; margin: 0 auto; animation: fadeInStep 0.35s ease; }
.form-header-align-left { text-align: left; margin-bottom: 32px; }
.auth-heading { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--text-h); margin: 0 0 8px 0; letter-spacing: -0.5px; }
.auth-subheading { font-size: 14px; color: var(--text-muted); margin: 0; }

.email-summary-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-raised); border: 1px solid var(--border); padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px; color: var(--text-p); font-weight: 500; margin-top: 10px; }
.btn-edit-email { background: none; border: none; color: var(--primary); font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; }
.btn-edit-email:hover { color: var(--primary-hover); text-decoration: underline; }

.form-group-field { margin-bottom: 20px; text-align: left; }
.field-label { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.9px; text-transform: uppercase; margin-bottom: 8px; display: block; }

.input-with-icon { position: relative; width: 100%; display: flex; align-items: center; }
.input-with-icon .input-icon, .input-with-icon .pwd-toggle-icon { position: absolute; top: 50% !important; transform: translateY(-50%) !important; color: var(--text-faint); font-size: 14px; z-index: 5; margin-top: 0 !important; line-height: 1 !important; }
.input-with-icon .input-icon { left: 15px; pointer-events: none; }
.input-with-icon .pwd-toggle-icon { right: 15px; cursor: pointer; transition: color 0.2s; }
.input-with-icon .pwd-toggle-icon:hover { color: var(--primary); }

.versa-input {
  height: 48px !important; background: var(--bg-raised) !important; border: 1.5px solid var(--border) !important; border-radius: var(--r-md) !important;
  padding-left: 44px !important; padding-right: 44px !important; font-size: 14px !important; color: var(--text-h) !important; font-weight: 500 !important;
  width: 100% !important; transition: all 0.22s ease !important; box-shadow: none !important; line-height: 48px !important; font-family: var(--font-ui) !important;
}
.versa-input::placeholder { color: var(--text-faint) !important; }
.versa-input:focus { background: #fff !important; border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(33, 197, 93, 0.15) !important; outline: none !important; }

.select-input { height: 48px !important; background: var(--bg-raised) !important; border: 1.5px solid var(--border) !important; border-radius: var(--r-md) !important; padding-left: 14px !important; font-size: 14px !important; color: var(--text-h) !important; width: 100% !important; appearance: none; cursor: pointer; font-family: var(--font-ui) !important; }
.select-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(33, 197, 93, 0.15) !important; outline: none !important; }

.form-options-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font-size: 13px; }
.remember-label { display: inline-flex; align-items: center; gap: 9px; color: var(--text-muted); font-weight: 500; cursor: pointer; margin: 0; }
.remember-label input[type=checkbox] { display: none; }
.custom-checkbox { width: 18px; height: 18px; border-radius: 5px; background: var(--bg-raised); border: 1.5px solid var(--border-strong); color: transparent; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; transition: all 0.2s; }
.remember-label input[type=checkbox]:checked + .custom-checkbox { background: var(--primary); border-color: var(--primary); color: #fff; }

.teal-link { color: var(--primary); font-weight: 700; text-decoration: none; transition: color 0.2s; }
.teal-link:hover { color: var(--primary-hover); text-decoration: underline; }

.versa-btn-dark {
  height: 50px !important; background: var(--primary) !important; color: #fff !important;
  font-weight: 800 !important; font-size: 14px !important; border-radius: var(--r-md) !important;
  width: 100% !important; border: none !important; display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 8px; transition: all 0.22s !important; box-shadow: var(--primary-glow) !important; letter-spacing: 0.3px; cursor: pointer; font-family: var(--font-ui) !important;
}
.versa-btn-dark:hover { background: var(--primary-hover) !important; transform: translateY(-1px) !important; box-shadow: 0 6px 24px rgba(33, 197, 93, 0.3) !important; }
.versa-btn-dark:active { background: var(--primary-active) !important; transform: translateY(0) !important; }

.versa-divider { display: flex; align-items: center; margin: 22px 0; color: var(--text-faint); font-size: 12px; }
.versa-divider::before, .versa-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border); }
.versa-divider span { padding: 0 14px; }

.versa-btn-google { height: 46px !important; background: #fff !important; border: 1.5px solid var(--border-strong) !important; border-radius: var(--r-md) !important; width: 100% !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px; font-size: 13px !important; font-weight: 600 !important; color: var(--text-p) !important; transition: all 0.22s !important; cursor: pointer; font-family: var(--font-ui) !important; }
.versa-btn-google:hover { background: var(--bg-raised) !important; border-color: var(--border-strong) !important; box-shadow: var(--shadow-sm) !important; }

.signup-footer-text { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 22px; margin-bottom: 20px; }
.security-badges { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 11px; color: var(--text-faint); font-weight: 500; border-top: 1px solid var(--border); padding-top: 18px; }

@media (max-width: 860px) {
  .versa-login-card { flex-direction: column; height: auto; max-height: 95vh; overflow-y: auto; }
  .versa-hero, .versa-form-section { width: 100%; flex: none; }
  .versa-hero { padding: 28px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .versa-form-section { padding: 32px 24px; }
}

/* ============================================================
   TOP NAVIGATION HEADER (3D Architect Planner)
   ============================================================ */
.top-navbar {
  display: none !important;
  position: fixed; top: 0; left: 0; right: 0; height: 52px;
  background: #090e1a !important;
  border-bottom: 1px solid #1e293b !important;
  align-items: center; justify-content: space-between;
  padding: 0 16px; z-index: 10000; box-shadow: 0 2px 10px rgba(0,0,0,0.3); font-family: var(--font-ui);
  box-sizing: border-box;
}
html.editor-active .top-navbar {
  display: flex !important;
}
.left-sidebar-modern, .bottom-zoom-pill, .right-properties-panel {
  display: none !important;
}
html.editor-active .left-sidebar-modern {
  display: flex !important;
}
html.editor-active .right-properties-panel.open {
  display: flex !important;
}
.top-brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; flex-shrink: 0; }
.top-brand .dash-nav-logo-icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.top-brand .dash-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.top-brand .dash-brand-name { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: #ffffff !important; letter-spacing: -0.4px; }
.top-brand .dash-brand-sub { font-size: 8.5px; font-weight: 800; color: #22c55e !important; letter-spacing: 0.6px; }

.top-nav-center { display: flex; align-items: center; gap: 10px; }
.top-pill-dropdown {
  display: inline-flex; align-items: center; gap: 6px;
  background: #131b2e; border: 1px solid #1e293b; border-radius: 20px;
  padding: 4px 12px; font-size: 12px; cursor: pointer; color: #94a3b8; line-height: 1;
}
.top-pill-dropdown .pill-label { color: #64748b; font-weight: 500; }
.top-pill-dropdown .pill-value { color: #f8fafc; font-weight: 600; }
.top-pill-dropdown .pill-arrow { font-size: 16px; color: #64748b; line-height: 1; }

.top-stats-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #131b2e; border: 1px solid #1e293b; border-radius: 20px;
  padding: 4px 12px; font-size: 12px; color: #94a3b8; line-height: 1;
}
.top-stats-badge .stats-text strong { color: #f8fafc; }

.top-actions-group {
  display: flex; align-items: center; gap: 8px;
}
.btn-top-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 16px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.18s ease; border: 1px solid transparent; font-family: var(--font-ui);
  line-height: 1; box-sizing: border-box;
}
.btn-top-action .material-symbols-rounded {
  font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}

/* Save Now Button */
.btn-save-now {
  background: var(--primary) !important; color: #ffffff !important;
  border-color: var(--primary-hover) !important; box-shadow: var(--primary-glow) !important;
}
.btn-save-now:hover {
  background: var(--primary-hover) !important; transform: translateY(-1px);
}

/* Status Button (Draft / Completed) */
.btn-status-toggle {
  background: #1e293b !important; color: #f59e0b !important;
  border-color: #334155 !important;
}
.btn-status-toggle:hover {
  background: #334155 !important; color: #fbbf24 !important;
}
.btn-status-toggle.status-completed {
  color: #34d399 !important; border-color: rgba(52,211,153,0.3) !important;
}

/* Canvas Settings Button in Top Nav */
.canvas-settings-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}
.btn-canvas-settings {
  background: #1e293b !important; color: #cbd5e1 !important;
  border-color: #334155 !important;
  gap: 4px;
}
.btn-canvas-settings:hover, .btn-canvas-settings.active {
  background: #2563eb !important; color: #ffffff !important;
  border-color: #3b82f6 !important;
}

/* Canvas Settings Dropdown Menu (Workspace, Plan, Size) */
.canvas-settings-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
  padding: 14px 16px;
  z-index: 10002;
  min-width: 260px;
  font-family: var(--font-ui);
  text-align: left;
}
.canvas-settings-dropdown-menu.show {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeDown 0.18s ease-out;
}
.cs-popup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cs-popup-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cs-popup-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cs-popup-val {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  background: #1e293b;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}
.cs-popup-val.highlight {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

.top-nav-right { display: flex; align-items: center; gap: 10px; }
.btn-top-projects {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #2563eb; color: #fff; border: none; border-radius: 8px;
  height: 32px; padding: 0 14px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3); transition: all 0.2s;
  font-family: var(--font-ui); line-height: 1; box-sizing: border-box;
}
.btn-top-projects .material-symbols-rounded {
  font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.btn-top-projects:hover { background: #1d4ed8; }

/* User Profile & Hover Sign Out Menu */
.user-profile-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 0 12px 0 2px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.user-profile-badge:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}
.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1.5px solid #60a5fa;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
  transition: transform 0.15s;
  flex-shrink: 0;
}
.user-profile-badge:hover .user-avatar-circle {
  transform: scale(1.05);
}
.user-name-text {
  font-size: 12px;
  font-weight: 600;
  color: #f8fafc;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.user-hover-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  padding: 8px;
  z-index: 10001;
  min-width: 220px;
}
.user-hover-header {
  padding: 6px 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 6px;
}
.user-hover-fullname {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}
.user-hover-email {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-profile-badge:hover .user-hover-menu {
  display: block;
}
.btn-hover-signout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-hover-signout .material-symbols-rounded { font-size: 16px; }
.btn-hover-signout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* ============================================================
   SELECTION BADGE & BOTTOM CONTROLS
   ============================================================ */
.sidebar-selection-card {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  box-sizing: border-box;
  font-family: var(--font-ui);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
  transition: all 0.15s ease;
}

.sidebar-sel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  line-height: 1;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
  min-width: 0;
}

.selection-info-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sidebar-sel-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sel-meta-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
  line-height: 1.25;
  gap: 6px;
  min-width: 0;
}

.sel-meta-item span {
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
  flex-shrink: 0;
}

.sel-meta-item strong {
  color: #0f172a;
  font-weight: 700;
  font-size: 10px;
  text-align: right;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-badge-delete {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #ef4444 !important;
  border-radius: 4px !important;
  padding: 1px 5px !important;
  cursor: pointer;
  font-size: 10px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 18px;
}
.btn-badge-delete:hover {
  background: rgba(239, 68, 68, 0.2) !important;
}

.modern-view-toggle-pill {
  display: inline-flex; align-items: center; background: #ffffff;
  border-radius: 30px; padding: 4px; border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); gap: 4px;
}
.modern-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px;
  border-radius: 20px; border: none; background: transparent;
  color: #64748b; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-ui); line-height: 1;
}
.modern-toggle-btn .material-symbols-rounded {
  font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.modern-toggle-btn:hover { color: #0f172a; }
.modern-toggle-btn.active {
  background: #2563eb !important; color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(37,99,235,0.3) !important;
  font-weight: 700 !important;
}

.bottom-zoom-pill {
  position: absolute; bottom: 20px; right: 350px;
  display: inline-flex; align-items: center; gap: 6px; background: #ffffff;
  border-radius: 30px; padding: 4px 10px; border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); z-index: 1000;
}
.zoom-btn {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: transparent; color: #64748b; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all 0.15s; padding: 0;
}
.zoom-btn .material-symbols-rounded { font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.zoom-btn:hover { background: #f1f5f9; color: #0f172a; }
.zoom-level-text { font-size: 12px; font-weight: 700; color: #1e293b; padding: 0 4px; line-height: 1; }

/* ============================================================
   RIGHT PROPERTIES PANEL
   ============================================================ */
.right-properties-panel {
  position: absolute; top: 68px; right: 16px; bottom: 16px;
  width: 310px; background: #ffffff; border-radius: 12px;
  border: 1px solid #e2e8f0; box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; z-index: 1000; overflow: hidden;
  font-family: var(--font-ui); box-sizing: border-box;
}
.properties-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 14px; border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0; box-sizing: border-box;
}
.properties-title { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0; line-height: 1; }
.btn-close-properties {
  background: none; border: none; font-size: 20px; color: #94a3b8; cursor: pointer;
  line-height: 1; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; padding: 0; transition: all 0.15s ease;
}
.btn-close-properties:hover { background: #f1f5f9; color: #0f172a; }

.properties-tabs {
  display: flex; align-items: center; padding: 4px 6px;
  border-bottom: 1px solid #f1f5f9; gap: 2px;
  background: #ffffff; flex-shrink: 0; box-sizing: border-box;
}
.properties-tabs::-webkit-scrollbar { display: none; }
.prop-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 6px 2px; border: none; background: transparent; border-radius: 6px;
  color: #64748b; font-size: 10px; font-weight: 600; cursor: pointer; min-width: 0;
  transition: all 0.15s ease; font-family: var(--font-ui);
}
.prop-tab .material-symbols-rounded {
  font-size: 17px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.prop-tab span:not(.material-symbols-rounded) {
  line-height: 1; font-size: 10px;
}
.prop-tab:hover { color: #0f172a; background: #f8fafc; }
.prop-tab.active { color: #2563eb !important; background: #eff6ff !important; font-weight: 700; }

.properties-content {
  flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
  box-sizing: border-box;
}
.prop-form-group { display: flex; flex-direction: column; gap: 4px; }
.prop-label { font-size: 10.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.2; }
.prop-input, .prop-textarea, .prop-select {
  border: 1px solid #e2e8f0 !important; border-radius: 7px !important;
  padding: 0 10px !important; height: 34px !important; font-size: 12px !important; color: #0f172a !important;
  background: #f8fafc !important; width: 100% !important; font-family: var(--font-ui) !important;
  box-sizing: border-box !important; display: flex; align-items: center;
}
.prop-input:focus, .prop-textarea:focus, .prop-select:focus {
  border-color: #2563eb !important; background: #fff !important; outline: none; box-shadow: 0 0 0 2px rgba(37,99,235,0.15) !important;
}
.prop-textarea { resize: vertical; min-height: 44px; padding: 8px 10px !important; height: auto !important; }
.prop-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prop-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  height: 34px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
}
.prop-stat-box span {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.prop-stat-box span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.prop-divider { height: 1px; background: #f1f5f9; margin: 2px 0; }
.prop-toggle-group {
  display: grid; grid-template-columns: 1fr 1fr; background: #f1f5f9;
  border-radius: 8px; padding: 3px; gap: 2px;
}
.prop-unit-btn {
  border: none; background: transparent; padding: 5px; border-radius: 6px;
  font-size: 11px; font-weight: 600; color: #64748b; cursor: pointer;
}
.prop-unit-btn.active { background: #2563eb !important; color: #ffffff !important; }
.prop-section-title { font-size: 12px; font-weight: 700; color: #0f172a; margin: 0; }
.prop-switch-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: #334155; height: 26px; }
.prop-switch { accent-color: #2563eb; width: 16px; height: 16px; cursor: pointer; margin: 0; }
.prop-angle-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.angle-btn {
  border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 6px;
  padding: 4px; font-size: 11px; font-weight: 600; color: #475569; cursor: pointer;
}
.angle-btn.active { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
.prop-tab-pane {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.prop-tab-pane.active {
  display: flex;
}
.prop-units-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}
.prop-radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  margin: 0;
}
.prop-radio-item input[type="radio"] {
  accent-color: #2563eb;
  cursor: pointer;
}
.prop-range {
  width: 100%;
  accent-color: #2563eb;
  cursor: pointer;
}
.btn-cta-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-cta-panel:hover {
  background: #1d4ed8;
}

.prop-footer-action { margin-top: 6px; padding-bottom: 8px; }
.btn-reset-defaults {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 8px; border: 1px solid #e2e8f0; background: #ffffff;
  border-radius: 8px; font-size: 12px; font-weight: 600; color: #64748b; cursor: pointer;
}
.btn-reset-defaults:hover { background: #f8fafc; color: #0f172a; }

/* ============================================================
   MODALS OVERRIDE
   ============================================================ */
.modal {
  z-index: 100050 !important;
}
.modal-backdrop {
  z-index: 100040 !important;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-page-container { background: var(--bg-page) !important; color: var(--text-p); position: fixed !important; inset: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; z-index: 5000; }
.landing-nav { height: 68px; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.92) !important; backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 999; box-shadow: var(--shadow-xs); }
.landing-nav-links { display: flex; align-items: center; gap: 4px; }
.landing-nav-link { color: var(--text-muted) !important; font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: var(--r-sm); transition: all 0.2s; text-decoration: none; }
.landing-nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }
.landing-nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-landing-login,
.btn-landing-signin,
.btn-landing-dashboard { 
  background: var(--primary) !important; 
  color: #fff !important; 
  border: none !important; 
  border-radius: var(--r-pill) !important; 
  padding: 9px 22px !important; 
  font-size: 13px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.22s; 
  font-family: var(--font-ui) !important; 
  box-shadow: var(--primary-glow); 
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}
.btn-landing-login:hover,
.btn-landing-signin:hover,
.btn-landing-dashboard:hover { 
  background: var(--primary-hover) !important; 
  transform: translateY(-1px); 
  color: #fff !important;
}

.landing-content { overflow: hidden; }
.landing-hero-section { padding: 80px 48px 60px; background: transparent !important; }
.hero-split-container { display: flex; gap: 60px; align-items: center; max-width: 1300px; margin: 0 auto; }
.hero-left-content { flex: 1; max-width: 560px; }
.landing-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light) !important; border: 1px solid var(--primary-border) !important; color: var(--primary) !important; border-radius: var(--r-pill); padding: 6px 18px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 24px; }
.landing-hero-badge .pulse-dot { animation: blinkDot 1.5s infinite; }
.landing-hero-title { font-family: var(--font-display); font-size: 54px; font-weight: 800; color: var(--text-h); line-height: 1.12; letter-spacing: -1px; margin-bottom: 20px; }
.gradient-text { color: var(--primary) !important; background: none !important; -webkit-text-fill-color: initial !important; }
.landing-hero-subtitle { font-size: 17px; color: var(--text-muted); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }

.hero-feature-cards-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 36px; }
.hero-feature-card { display: flex; align-items: center; gap: 12px; background: #fff !important; border: 1px solid var(--border) !important; border-radius: var(--r-md) !important; padding: 14px !important; box-shadow: var(--shadow-xs); transition: all 0.2s; }
.hero-feature-card:hover { border-color: var(--primary-border) !important; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon-box { width: 36px; height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.card-icon-box.bg-blue { background: var(--primary-light) !important; color: var(--primary) !important; }
.card-icon-box.bg-teal { background: var(--secondary-light) !important; color: var(--secondary) !important; }
.card-icon-box.bg-purple { background: var(--success-light) !important; color: var(--success) !important; }
.card-text strong { display: block; font-size: 12px; font-weight: 700; color: var(--text-h); }
.card-text small { font-size: 11px; color: var(--text-muted); }

.landing-hero-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-landing-hero-primary { display: inline-flex; align-items: center; gap: 10px; background: var(--primary) !important; color: #fff !important; border: none !important; border-radius: var(--r-md) !important; padding: 16px 32px !important; font-size: 16px; font-weight: 800; cursor: pointer; transition: all 0.22s; width: fit-content; font-family: var(--font-ui) !important; box-shadow: var(--primary-glow); }
.btn-landing-hero-primary:hover { background: var(--primary-hover) !important; transform: translateY(-2px); box-shadow: var(--primary-glow); }
.hero-subtext-note { font-size: 12px; color: var(--text-faint); font-weight: 500; }

.hero-right-showcase { flex: 1; max-width: 560px; }
.landing-hero-preview-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.preview-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--bg-raised); border-bottom: 1px solid var(--border); }
.preview-window-dots { display: flex; gap: 7px; }
.preview-window-dots .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: var(--error); }
.dot.yellow { background: var(--warning); }
.dot.green { background: var(--success); }
.preview-title-badge { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.badge-tag-2d { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); border-radius: var(--r-pill); padding: 3px 10px; font-size: 11px; font-weight: 700; }
.badge-tag-3d { background: var(--secondary); color: #fff; border: 1px solid var(--secondary-border); border-radius: var(--r-pill); padding: 3px 10px; font-size: 11px; font-weight: 700; }
.badge-arrow { color: var(--text-faint); }
.preview-status-pill { font-size: 11px; color: var(--primary); font-weight: 600; }

.comparison-slider-container { position: relative; overflow: hidden; height: 300px; cursor: ew-resize; user-select: none; }
.slider-img-wrapper { position: absolute; inset: 0; overflow: hidden; }
.slider-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-overlay-badge { position: absolute; bottom: 14px; background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); border: 1px solid var(--border); color: var(--text-p); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--r-pill); display: flex; align-items: center; gap: 6px; }
.label-3d { right: 14px; }
.label-2d { left: 14px; }
.slider-divider { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--secondary); transform: translateX(-50%); pointer-events: none; }
.slider-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(23, 23, 23, 0.4), var(--shadow-md); pointer-events: all; cursor: ew-resize; }
.handle-arrows { color: #fff; font-size: 13px; }

/* ============================================================
   LANDING STATS / SECTIONS / FAQ / CTA / FOOTER
   ============================================================ */
.landing-stats-bar { display: flex; align-items: center; justify-content: center; gap: 0; background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 48px; }
.stat-item { flex: 1; text-align: center; max-width: 180px; }
.stat-num { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text-h); }
.stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.landing-section { padding: 80px 48px; max-width: 1300px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { display: inline-block; font-size: 10px; font-weight: 800; color: var(--primary); letter-spacing: 1.5px; text-transform: uppercase; background: var(--primary-light); border: 1px solid var(--primary-border); padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 14px; }
.section-title { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--text-h); margin-bottom: 12px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 16px; color: var(--text-muted); max-width: 540px; margin: 0 auto; line-height: 1.7; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.2s; }
.step-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.step-badge-pill { font-size: 10px; font-weight: 800; color: var(--primary); background: var(--primary-light); border: 1px solid var(--primary-border); padding: 3px 10px; border-radius: var(--r-pill); }
.step-num { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--border-strong); }
.step-img-box { position: relative; margin: 12px 20px; border-radius: var(--r-md); overflow: hidden; height: 160px; background: var(--bg-raised); }
.step-img-box img { width: 100%; height: 100%; object-fit: cover; }
.step-img-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(17,24,39,0.6)); padding: 10px 12px; }
.step-overlay-tag { font-size: 11px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; }
.step-card-content { padding: 16px 20px 20px; }
.step-card-content h4 { font-size: 15px; font-weight: 700; color: var(--text-h); margin-bottom: 8px; }
.step-card-content p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.step-feature-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.step-feature-pills span { font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px 10px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-xs); transition: all 0.2s; }
.feature-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 16px; }
.feature-icon.bg-blue { background: var(--primary-light); color: var(--primary); }
.feature-icon.bg-teal { background: var(--secondary-light); color: var(--secondary); }
.feature-icon.bg-purple { background: var(--info-light); color: var(--info); }
.feature-icon.bg-amber { background: var(--warning-light); color: var(--warning); }
.feature-icon.bg-emerald { background: var(--success-light); color: var(--success); }
.feature-icon.bg-rose { background: var(--error-light); color: var(--error); }
.feature-card h3 { font-size: 15px; font-weight: 700; color: var(--text-h); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

.templates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing-template-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.2s; }
.landing-template-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.template-img-header { height: 160px; overflow: hidden; position: relative; background: var(--bg-raised); }
.template-img-header img { width: 100%; height: 100%; object-fit: cover; }
.template-img-header .badge-tag { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); background: var(--secondary); color: #fff; }
.blank-preview-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--border-strong); }
.template-card-body { padding: 20px; }
.template-card-body h3 { font-size: 15px; font-weight: 700; color: var(--text-h); margin-bottom: 6px; }
.template-card-body p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }
.template-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.btn-landing-template { width: 100%; height: 40px; border-radius: var(--r-md); background: var(--secondary) !important; color: #fff !important; border: none !important; font-size: 13px !important; font-weight: 700 !important; cursor: pointer; transition: all 0.2s; font-family: var(--font-ui) !important; }
.btn-landing-template:hover { background: var(--secondary-hover) !important; }

.faq-container { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; transition: border-color 0.2s; }
.faq-item.active { border-color: var(--primary-border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-h); background: var(--bg-surface); transition: background 0.2s; gap: 16px; }
.faq-question:hover { background: var(--primary-light); }
.faq-icon { color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-answer { display: none; padding: 0 20px 18px; font-size: 13px; color: var(--text-muted); line-height: 1.72; }

.landing-cta-banner { background: var(--secondary); padding: 80px 48px; text-align: center; }
.landing-cta-banner h2 { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.btn-landing-cta-large { display: inline-flex; align-items: center; gap: 10px; background: var(--primary) !important; color: #fff !important; border: none !important; border-radius: var(--r-lg) !important; padding: 18px 40px !important; font-size: 16px; font-weight: 800; cursor: pointer; transition: all 0.22s; font-family: var(--font-ui) !important; box-shadow: var(--primary-glow); }
.btn-landing-cta-large:hover { background: var(--primary-hover) !important; transform: translateY(-2px); }

.landing-footer { background: var(--secondary); padding: 60px 48px 32px; color: rgba(255,255,255,0.7); }
.footer-newsletter-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-lg); padding: 28px 32px; margin-bottom: 48px; }
.newsletter-info .newsletter-tag { font-size: 10px; font-weight: 800; color: var(--primary); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.newsletter-info h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.newsletter-info p { font-size: 13px; color: rgba(255,255,255,0.55); }
.newsletter-form-container { flex-shrink: 0; min-width: 340px; }
.newsletter-pill-wrapper { display: flex; align-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--r-pill); padding: 6px 6px 6px 16px; gap: 8px; }
.newsletter-icon { color: rgba(255,255,255,0.4); font-size: 14px; }
.newsletter-pill-input { flex: 1; background: transparent; border: none; color: #fff; font-size: 13px; font-family: var(--font-ui); outline: none; }
.newsletter-pill-input::placeholder { color: rgba(255,255,255,0.35); }
.btn-newsletter-pill { background: var(--primary); color: #fff; border: none; border-radius: var(--r-pill); padding: 9px 18px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--font-ui); display: flex; align-items: center; gap: 6px; transition: background 0.2s; }
.btn-newsletter-pill:hover { background: var(--primary-hover); }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 0 0 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-logo-wrap { margin-bottom: 4px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-top: 10px; max-width: 280px; }
.footer-social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-icon { width: 34px; height: 34px; border-radius: var(--r-md); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.65); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.2s; text-decoration: none; }
.social-icon:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-links-col h4 { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 16px; }
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 10px; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--primary); }
.engine-spec-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.spec-icon { font-size: 8px; }
.spec-icon.green { color: var(--primary); }
.spec-icon.blue { color: #60A5FA; }
.spec-icon.purple { color: #A78BFA; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-security { display: flex; align-items: center; gap: 12px; }
.divider-dot { opacity: 0.4; }

/* ============================================================
   PROJECT DASHBOARD
   ============================================================ */
.project-page-container { background: var(--bg-page) !important; color: var(--text-p); position: fixed !important; inset: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; z-index: 5000; isolation: auto; }
.project-page-nav { height: 64px; padding: 0 32px; background: rgba(255,255,255,0.92) !important; backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 200; box-shadow: var(--shadow-xs); }
.project-page-nav .brand-name { color: var(--text-h); }
.project-page-nav .brand-tag  { color: var(--primary); font-size: 13px; }
.project-page-content { padding: 0 48px 80px; max-width: 1300px; margin: 0 auto; }

.project-page-header { text-align: center; padding: 60px 0 48px; }
.canva-hero-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light) !important; border: 1px solid var(--primary-border) !important; color: var(--primary) !important; border-radius: var(--r-pill); padding: 6px 18px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 20px; }
.project-page-title { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--text-h); margin-bottom: 14px; }
.project-page-subtitle { font-size: 15px; color: var(--text-muted); max-width: 540px; margin: 0 auto; line-height: 1.65; }

.project-dashboard-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.dash-card { background: #fff !important; border: 1px solid var(--border) !important; border-radius: var(--r-lg) !important; padding: 28px !important; box-shadow: var(--shadow-sm) !important; transition: border-color 0.22s; }
.dash-card:hover { border-color: var(--primary-border) !important; box-shadow: var(--shadow-md) !important; }
.dash-card-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.dash-icon-box { width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.dash-icon-box.primary   { background: var(--primary-light) !important; color: var(--primary) !important; border: 1px solid var(--primary-border); }
.dash-icon-box.secondary { background: var(--secondary) !important; color: #fff !important; }
.dash-card-title    { font-size: 18px; font-weight: 700; color: var(--text-h); margin-bottom: 4px; }
.dash-card-subtitle { font-size: 13px; color: var(--text-muted); }

.dimension-presets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.preset-btn { background: var(--bg-raised) !important; border: 1.5px solid var(--border) !important; border-radius: var(--r-md) !important; padding: 14px !important; cursor: pointer; text-align: left; transition: all 0.22s; font-family: var(--font-ui) !important; }
.preset-btn:hover  { border-color: var(--primary-border) !important; background: var(--primary-light) !important; }
.preset-btn.active { border-color: var(--primary) !important; background: var(--primary-light) !important; box-shadow: 0 0 0 1px var(--primary); }
.preset-name { display: block; font-size: 13px; font-weight: 700; color: var(--text-h); margin-bottom: 3px; }
.preset-size { display: block; font-size: 11px; color: var(--text-muted); }

.dash-templates-list { display: flex; flex-direction: column; gap: 14px; }
.dash-template-card { display: flex; align-items: center; gap: 16px; background: #fff !important; border: 1.5px solid var(--border) !important; border-radius: var(--r-md) !important; padding: 18px !important; transition: all 0.22s ease; cursor: pointer; box-shadow: var(--shadow-xs); }
.dash-template-card:hover { border-color: var(--primary) !important; box-shadow: var(--primary-glow) !important; background: var(--primary-light) !important; transform: translateY(-1px); }
.dash-template-card.active { border-color: var(--primary) !important; box-shadow: var(--primary-glow) !important; background: var(--primary-light) !important; }

.template-icon-wrap { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.template-icon-wrap.empty { background: var(--bg-raised); color: var(--text-muted); }
.template-details { flex: 1; text-align: left; }
.template-header-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.template-name { font-size: 15px; font-weight: 700; color: var(--text-h); margin: 0; }
.template-desc { font-size: 13px; color: var(--text-muted); margin: 0; }
.badge-tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-pill); background: var(--primary-light); color: var(--primary); letter-spacing: 0.5px; text-transform: uppercase; }
.badge-tag.empty { background: var(--bg-raised); color: var(--text-muted); }

.btn-open-template { background: var(--primary-light) !important; color: var(--primary) !important; border: 1px solid var(--primary-border) !important; font-size: 12px !important; font-weight: 700 !important; padding: 8px 16px !important; border-radius: var(--r-pill) !important; display: flex; align-items: center; gap: 6px; transition: all 0.2s; cursor: pointer; }
.btn-open-template:hover { background: var(--primary) !important; color: #fff !important; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.dash-project-form .form-group-field { margin-bottom: 18px; }
.canva-btn-primary { width: 100%; height: 50px; background: var(--primary) !important; color: #fff !important; border: none !important; border-radius: var(--r-md) !important; font-size: 15px !important; font-weight: 800 !important; cursor: pointer; transition: all 0.22s !important; font-family: var(--font-ui) !important; box-shadow: var(--primary-glow) !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; }
.canva-btn-primary:hover { background: var(--primary-hover) !important; transform: translateY(-1px) !important; }

/* Project row with icon buttons */
.project-row-actions { display: flex; gap: 8px; align-items: center; }
.btn-icon-action {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--bg-raised); color: var(--text-muted);
  cursor: pointer; transition: all 0.2s; font-size: 13px;
}
.btn-icon-action:hover { background: var(--bg-hover); color: var(--text-h); }
.btn-icon-action.view:hover  { color: var(--primary); border-color: var(--primary-border); background: var(--primary-light); }
.btn-icon-action.delete:hover{ color: var(--error); border-color: rgba(239,68,68,0.3); background: var(--error-light); }

/* ============================================================
   EDITOR CONTROLS
   ============================================================ */
#main-controls, #floorplanner-controls {
  background: rgba(255,255,255,0.94) !important;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 10px !important;
}
.nav-sidebar { margin: 0; padding: 0; list-style: none; }
.nav-sidebar > li > a { color: var(--text-muted) !important; border-radius: var(--r-sm) !important; margin-bottom: 4px; display: block; padding: 9px 14px; font-size: 13px; font-weight: 600; transition: all 0.2s; text-decoration: none; background: transparent !important; }
.nav-sidebar > li > a:hover { background: var(--primary-light) !important; color: var(--primary) !important; }
.nav-sidebar > .active > a { background: var(--primary) !important; color: #fff !important; box-shadow: var(--primary-glow) !important; }

.btn { border-radius: var(--r-sm) !important; font-family: var(--font-ui) !important; font-weight: 600 !important; font-size: 13px !important; border: 1px solid transparent !important; transition: all 0.2s ease !important; text-shadow: none !important; box-shadow: none !important; }
.btn-primary { background: var(--primary) !important; color: #fff !important; border-color: var(--primary-hover) !important; box-shadow: var(--primary-glow) !important; }
.btn-primary:hover { background: var(--primary-hover) !important; transform: translateY(-1px) !important; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], textarea, select {
  background: var(--bg-raised) !important; color: var(--text-h) !important;
  border: 1.5px solid var(--border) !important; border-radius: var(--r-sm) !important;
  font-family: var(--font-ui) !important; transition: all 0.2s !important;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(33, 197, 93, 0.15) !important; outline: none !important; background: #fff !important; }

.ui-widget { font-family: var(--font-ui) !important; }
.ui-widget-content { background: #fff !important; border: 1px solid var(--border) !important; color: var(--text-p) !important; }
.ui-widget-header { background: var(--bg-raised) !important; border: 1px solid var(--border) !important; color: var(--text-h) !important; border-radius: var(--r-md) var(--r-md) 0 0 !important; font-family: var(--font-display); font-weight: 700; }
.ui-dialog { border: 1px solid var(--border) !important; border-radius: var(--r-lg) !important; box-shadow: var(--shadow-xl) !important; }
.ui-button { background: var(--primary) !important; color: #fff !important; border: none !important; border-radius: var(--r-sm) !important; font-family: var(--font-ui) !important; font-weight: 700 !important; text-shadow: none !important; }
.ui-button:hover { background: var(--primary-hover) !important; }

#interfaces.card { width: 100vw !important; height: 100vh !important; }
#floorplanner.front, #viewer.back { width: 100% !important; height: 100% !important; }

/* ── dat.GUI dark navy ── */
.dg.ac, .dg.main, .dg { display: none !important; visibility: hidden !important; }
.dg * { box-sizing: content-box !important; }
.dg.main { background: #1a2236 !important; }
.dg.main .close-button { display: none !important; }
.dg ul { background: #1a2236 !important; }
.dg li:not(.folder) { background: #1e2740 !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; }
.dg li.folder { background: #141d2f !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
.dg li.title { background: #141d2f !important; color: #9eb0c8 !important; text-transform: uppercase; letter-spacing: .8px; font-size: 10px; }
.dg .cr .property-name { color: #c5cfe0 !important; font-size: 12px; }
.dg .c input[type="text"] { background: #0f1621 !important; border: none !important; border-radius: 4px !important; color: #e0e8f0 !important; padding: 3px 8px !important; font-size: 11px !important; height: auto !important; box-shadow: none !important; font-family: monospace !important; width: 100% !important; }
.dg .c input[type="text"]:focus { outline: 1px solid #21C55D !important; background: #0f1621 !important; box-shadow: none !important; border-color: transparent !important; }
.dg .c input[type="checkbox"], .dg .c input[type="color"] { appearance: auto !important; -webkit-appearance: auto !important; background: none !important; border: none !important; box-shadow: none !important; width: auto !important; height: auto !important; }
.dg select { background: #0f1621 !important; color: #e0e8f0 !important; border: none !important; border-radius: 4px !important; height: auto !important; }
.dg .cr.boolean { background: #1e2740 !important; }
.dg .cr.boolean:hover { background: #263256 !important; }
.dg .c .slider { background: #0f1621 !important; }
.dg .c .slider-fg { background: #21C55D !important; }

/* ── Bottom controls ── */
#interface-controls {
  position: absolute !important; bottom: 20px !important; left: 0 !important; right: 0 !important;
  width: 100% !important; transform: none !important;
  display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important;
  gap: 10px !important; z-index: 1000 !important; padding: 0 80px !important; pointer-events: none !important;
}
#interface-controls > * { pointer-events: all !important; }

.view-mode-toggle { display: inline-flex !important; align-items: center !important; background: rgba(18, 22, 34, 0.92) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; border-radius: 999px !important; padding: 4px !important; border: 1px solid rgba(255,255,255,0.14) !important; box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important; gap: 2px !important; }
.view-switch-btn { display: inline-flex !important; align-items: center !important; gap: 7px !important; background: transparent !important; color: rgba(255,255,255,0.55) !important; border: none !important; border-radius: 999px !important; padding: 8px 20px !important; font-size: 13px !important; font-weight: 600 !important; cursor: pointer !important; transition: all 0.22s !important; font-family: var(--font-ui) !important; text-shadow: none !important; box-shadow: none !important; white-space: nowrap !important; }
.view-switch-btn:hover { color: #fff !important; background: rgba(255,255,255,0.08) !important; }
.view-switch-btn.active { background: #21C55D !important; color: #fff !important; box-shadow: 0 2px 14px rgba(33,197,93,0.45) !important; }

.view-controls-bar { display: inline-flex !important; align-items: center !important; gap: 5px !important; background: rgba(18, 22, 34, 0.92) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; border-radius: 999px !important; padding: 6px 14px !important; border: 1px solid rgba(255,255,255,0.14) !important; box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important; }
.view-dpad-group, .view-tools-group { display: inline-flex !important; align-items: center !important; gap: 4px !important; }
.view-tools-divider { width: 1px !important; height: 22px !important; background: rgba(255,255,255,0.15) !important; margin: 0 6px !important; display: inline-block !important; }
.view-control-btn { width: 34px !important; height: 34px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; background: rgba(255,255,255,0.07) !important; border: 1px solid rgba(255,255,255,0.10) !important; border-radius: 8px !important; color: rgba(255,255,255,0.60) !important; cursor: pointer !important; transition: all 0.2s !important; font-size: 13px !important; padding: 0 !important; text-shadow: none !important; box-shadow: none !important; }
.view-control-btn:hover { background: rgba(255,255,255,0.15) !important; color: #fff !important; border-color: rgba(255,255,255,0.22) !important; }
.view-control-btn.active { background: #21C55D !important; border-color: #21C55D !important; color: #fff !important; box-shadow: 0 2px 10px rgba(33,197,93,0.4) !important; }

.btn-add-items-floating { width: 42px !important; height: 42px !important; border-radius: 50% !important; background: #21C55D !important; border: none !important; color: #fff !important; font-size: 20px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; box-shadow: 0 4px 16px rgba(33,197,93,0.45) !important; transition: all 0.22s !important; position: static !important; flex-shrink: 0 !important; }
.btn-add-items-floating:hover { background: #1BA34D !important; transform: scale(1.1) !important; }

/* Catalog modal */
.modal-content { border: 1px solid var(--border) !important; border-radius: var(--r-xl) !important; box-shadow: var(--shadow-xl) !important; font-family: var(--font-ui) !important; }
.modal-header { background: var(--bg-surface) !important; border-bottom: 1px solid var(--border) !important; padding: 20px 24px !important; }
.modal-title-wrapper { display: flex; align-items: center; gap: 14px; }
.modal-title-icon { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 17px; border: 1px solid var(--primary-border); }
.modal-title  { font-size: 17px !important; font-weight: 700 !important; color: var(--text-h) !important; margin: 0 !important; }
.modal-subtitle { font-size: 13px !important; color: var(--text-muted) !important; margin: 3px 0 0 !important; }
.close-modal-btn { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--bg-raised); border: 1px solid var(--border); color: var(--text-muted); font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-family: var(--font-ui); }
.close-modal-btn:hover { background: var(--error-light); color: var(--error); }
.modal-body { padding: 20px 24px !important; background: var(--bg-surface) !important; }
.modal-footer { background: var(--bg-raised) !important; border-top: 1px solid var(--border) !important; padding: 14px 24px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; }
.footer-hint-text { font-size: 12px; color: var(--text-faint); }
.btn-modern-close { background: var(--secondary) !important; color: #fff !important; border: none !important; border-radius: var(--r-md) !important; padding: 8px 20px !important; font-size: 13px !important; font-weight: 700 !important; cursor: pointer !important; font-family: var(--font-ui) !important; }
.btn-modern-close:hover { background: var(--secondary-hover) !important; }

.inventory-search-box { position: relative; margin-bottom: 16px; display: flex; align-items: center; }
.inventory-search-box .search-icon { position: absolute; left: 13px; color: var(--text-faint); font-size: 13px; z-index: 1; }
.inventory-search-input { width: 100%; height: 42px; padding: 0 36px; background: var(--bg-raised) !important; border: 1.5px solid var(--border) !important; border-radius: var(--r-md) !important; font-size: 13px !important; color: var(--text-h) !important; font-family: var(--font-ui) !important; }
.inventory-search-input:focus { background: #fff !important; border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(33,197,93,.12) !important; outline: none !important; }
.search-clear-btn { position: absolute; right: 13px; color: var(--text-faint); font-size: 16px; cursor: pointer; display: none; }
.search-clear-btn:hover { color: var(--text-h); }

.panel { border: 1px solid var(--border) !important; border-radius: var(--r-md) !important; margin-bottom: 10px !important; overflow: hidden; }
.panel-heading { background: var(--bg-raised) !important; border-bottom: 1px solid var(--border) !important; padding: 12px 16px !important; }
.category-toggle-link { display: flex !important; align-items: center !important; justify-content: space-between !important; color: var(--text-h) !important; font-size: 13px !important; font-weight: 700 !important; text-decoration: none !important; }
.category-toggle-link:hover { color: var(--primary) !important; }
.cat-label { display: flex; align-items: center; gap: 8px; }
.cat-icon { color: var(--primary); }
.cat-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); background: var(--primary-light); color: var(--primary); }
.items-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 12px; padding: 14px !important; }

.catalog-item-card {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px;
  cursor: pointer; text-decoration: none !important; color: var(--text-p) !important;
  transition: all 0.2s; background: #fff; height: 100%; box-shadow: var(--shadow-xs);
}
.catalog-item-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px);
}
.catalog-item-card img {
  width: 100%; height: 80px; object-fit: contain; margin-bottom: 8px;
}
.catalog-item-name {
  font-size: 11px; font-weight: 600; text-align: center; line-height: 1.3;
}

/* ============================================================
   AUTH CARD — new HTML structure styles
   ============================================================ */
.auth-card {
  position: relative; z-index: 10; display: flex;
  width: 1020px; max-width: 96vw; height: 660px; max-height: 94vh;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow-xl); overflow: hidden;
}
.auth-panel-left {
  flex: 0 0 46%;
  background: linear-gradient(150deg, #0f172a 0%, #1e293b 100%);
  padding: 44px 40px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-panel-left::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size: 32px 32px;
}
.auth-panel-left::after {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(33,197,93,.18) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.auth-left-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.auth-left-logo { margin-bottom: 28px; }

.auth-live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(33,197,93,.15); border: 1px solid rgba(33,197,93,.3);
  color: #4ade80; border-radius: var(--r-pill);
  padding: 5px 14px; font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 22px; width: fit-content;
}
.auth-live-pill .blink { animation: blinkDot 1.5s infinite; font-size: 8px; }
.auth-hero-title { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.5px; margin-bottom: 14px; }
.auth-hero-title span { color: #4ade80; }
.auth-hero-desc { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 28px; max-width: 300px; }
.auth-stats-row { display: flex; gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); overflow: hidden; margin-bottom: 24px; }
.auth-stat { flex: 1; padding: 14px 12px; background: rgba(255,255,255,.04); text-align: center; }
.auth-stat-val { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: #fff; }
.auth-stat-lbl { font-size: 10px; color: rgba(255,255,255,.5); margin-top: 3px; }
.auth-chart { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 14px 16px; margin-top: auto; }
.auth-chart-hdr { display: flex; justify-content: space-between; margin-bottom: 10px; }
.auth-chart-title { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: 1.2px; text-transform: uppercase; }
.auth-chart-badge { font-size: 11px; font-weight: 700; color: #4ade80; }
.auth-chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 36px; }
.auth-bar { flex: 1; background: rgba(255,255,255,.12); border-radius: 3px; }
.auth-bar.hi { background: #4ade80; }

.auth-panel-right { flex: 1; background: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.auth-form-wrap { width: 100%; max-width: 340px; margin: 0 auto; }
.auth-form-step { animation: fadeInStep .3s ease; }
.auth-form-step.hidden { display: none !important; }
.auth-form-heading { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text-h); margin-bottom: 6px; }
.auth-form-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; display: block; }

.email-pill { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-raised); border: 1px solid var(--border); padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px; color: var(--text-p); font-weight: 500; }
.btn-email-edit { background: none; border: none; color: var(--primary); font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 13px; }
.check-label { display: flex; align-items: center; gap: 8px; color: var(--text-muted); cursor: pointer; margin: 0; font-weight: 500; }
.check-label input { display: none; }
.check-box { width: 18px; height: 18px; border-radius: 5px; background: var(--bg-raised); border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 9px; color: transparent; transition: all .2s; flex-shrink: 0; }
.check-label input:checked + .check-box { background: var(--primary); border-color: var(--primary); color: #fff; }

.auth-divider { display: flex; align-items: center; margin: 20px 0; color: var(--text-faint); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--border); }
.auth-divider span { padding: 0 12px; }

.btn-google { width: 100%; height: 44px; background: #fff; border: 1.5px solid var(--border-strong); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-p); cursor: pointer; transition: all .2s; font-family: var(--font-ui); }
.btn-google:hover { background: var(--bg-raised); box-shadow: var(--shadow-sm); }

.auth-footer-text { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.auth-link { color: var(--primary); font-weight: 700; cursor: pointer; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 11px; color: var(--text-faint); font-weight: 500; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 18px; flex-wrap: wrap; }

/* Field group / viz-input / viz-alert */
.field-group { margin-bottom: 18px; }
.field-error { display: none; font-size: 12px; color: var(--error); font-weight: 500; margin-top: 5px; }
.field-group.has-error .field-error { display: block; }
.field-group.has-error .viz-input { border-color: var(--error) !important; }

.viz-input-wrap { position: relative; }
.viz-input-wrap .viz-input { padding-left: 40px !important; }
.viz-input-wrap .input-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 13px; pointer-events: none; z-index: 1; }
.viz-input-wrap .input-ico-right { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 13px; cursor: pointer; z-index: 1; transition: color .2s; }
.viz-input-wrap .input-ico-right:hover { color: var(--primary); }
.viz-input-wrap .viz-input.has-right { padding-right: 40px !important; }

.viz-input {
  width: 100%; height: 46px; padding: 0 14px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  color: var(--text-h); background: var(--bg-raised);
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  outline: none; transition: all .2s; -webkit-appearance: none;
}
.viz-input::placeholder { color: var(--text-faint); font-weight: 400; }
.viz-input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(33,197,93,.15); }

.viz-alert { display: none; padding: 11px 14px; border-radius: var(--r-md); font-size: 13px; font-weight: 500; align-items: center; gap: 8px; border: 1px solid; margin-bottom: 14px; }
.viz-alert.show { display: flex; }
.viz-alert.error   { background: var(--error-light); color: #991b1b; border-color: #fecaca; }
.viz-alert.success { background: var(--success-light); color: #14532d; border-color: #bbf7d0; }
.viz-alert.info    { background: var(--info-light); color: #1e40af; border-color: #bfdbfe; }

/* btn-viz system */
.btn-viz { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 18px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; border: none; border-radius: var(--r-md); cursor: pointer; transition: all .18s; white-space: nowrap; }
.btn-viz:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-viz.primary { background: var(--primary); color: #fff; box-shadow: var(--primary-glow); }
.btn-viz.primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-viz.ghost { background: transparent; color: var(--text-p); border: 1.5px solid var(--border); }
.btn-viz.ghost:hover { background: var(--bg-raised); }
.btn-viz.danger { background: var(--error); color: #fff; }
.btn-viz.danger:hover { background: #b91c1c; transform: translateY(-1px); }
.btn-viz.lg   { height: 50px; padding: 0 24px; font-size: 15px; font-weight: 800; }
.btn-viz.full { width: 100%; }
.btn-viz .spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* caditai-logo wordmark classes */
.caditai-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.caditai-logo-icon { width: 34px; height: 34px; background: #0f172a; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.caditai-logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.caditai-logo-name { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text-h); letter-spacing: -.5px; }
.caditai-logo-tag  { font-size: 10px; font-weight: 600; color: var(--primary); letter-spacing: .6px; text-transform: uppercase; margin-top: 1px; }
.caditai-logo.light .caditai-logo-name { color: #fff; }
.caditai-logo.light .caditai-logo-icon { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }

/* footer grid */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 16px; }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 0 0 24px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.4); }
.footer-bottom-right { display: flex; gap: 16px; }

/* landing sections using new class names */
.accent-green { color: var(--primary) !important; }
.hero-feature-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 28px; }
.hero-feat-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; box-shadow: var(--shadow-xs); transition: all .2s; }
.hero-feat-card:hover { border-color: var(--primary-border); transform: translateY(-2px); }
.feat-icon { width: 34px; height: 34px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.feat-icon.g { background: var(--primary-light); color: var(--primary); }
.feat-icon.d { background: var(--secondary-light); color: var(--secondary); }
.feat-icon.s { background: var(--success-light); color: var(--success); }
.feat-card-text strong { display: block; font-size: 11px; font-weight: 700; color: var(--text-h); }
.feat-card-text small  { font-size: 10px; color: var(--text-muted); }
.landing-hero-btns { display: flex; flex-direction: column; gap: 10px; }
.hero-subtext { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.btn-cta-large { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 36px; border-radius: var(--r-lg); background: var(--primary); color: #fff; border: none; font-size: 16px; font-weight: 800; cursor: pointer; transition: all .22s; font-family: var(--font-ui); box-shadow: var(--primary-glow); }
.btn-cta-large:hover { background: var(--primary-hover); transform: translateY(-2px); }
.btn-landing-signin { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 20px; background: var(--primary); color: #fff; border: none; border-radius: var(--r-md); font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: var(--font-ui); box-shadow: var(--primary-glow); }
.btn-landing-signin:hover { background: var(--primary-hover); transform: translateY(-1px); }

.landing-preview-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.preview-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg-raised); border-bottom: 1px solid var(--border); }
.win-dots { display: flex; gap: 6px; }
.win-dot { width: 10px; height: 10px; border-radius: 50%; }
.win-dot.r { background: var(--error); } .win-dot.y { background: var(--warning); } .win-dot.g { background: var(--success); }
.preview-badges { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.badge-2d { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); border-radius: var(--r-pill); padding: 2px 9px; font-size: 10px; font-weight: 700; }
.badge-3d { background: var(--secondary); color: #fff; border-radius: var(--r-pill); padding: 2px 9px; font-size: 10px; font-weight: 700; }
.preview-hint { font-size: 11px; color: var(--primary); font-weight: 600; }
.slider-badge { position: absolute; bottom: 12px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border: 1px solid var(--border); color: var(--text-p); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); display: flex; align-items: center; gap: 5px; }
.slider-badge.b3d { right: 12px; } .slider-badge.b2d { left: 12px; }
.handle-icon { color: #fff; font-size: 12px; }

.feature-ico { width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.feature-ico.g { background: var(--primary-light); color: var(--primary); }
.feature-ico.d { background: var(--secondary-light); color: var(--secondary); }
.feature-ico.p { background: var(--info-light); color: var(--info); }
.feature-ico.a { background: var(--warning-light); color: var(--warning); }
.feature-ico.e { background: var(--success-light); color: var(--success); }
.feature-ico.r { background: var(--error-light); color: var(--error); }

.template-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .2s; }
.template-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.template-card-img { height: 160px; overflow: hidden; position: relative; background: var(--bg-raised); }
.template-card-img img { width: 100%; height: 100%; object-fit: cover; }
.template-card-img .tpl-badge { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); background: var(--primary); color: #fff; }
.template-blank-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--border-strong); }
.template-card-body { padding: 20px; }
.template-card-body h3 { font-size: 15px; font-weight: 700; color: var(--text-h); margin-bottom: 6px; }
.template-card-body p  { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.template-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.btn-use-template { width: 100%; height: 40px; border-radius: var(--r-md); background: var(--primary); color: #fff; border: none; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: var(--font-ui); box-shadow: var(--primary-glow); }
.btn-use-template:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* dashboard new layout */
.dash-header { display: flex; align-items: center; justify-content: space-between; padding: 32px 48px 24px; max-width: 1300px; margin: 0 auto; }
.dash-header-left h1 { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text-h); margin-bottom: 4px; }
.dash-header-left p { font-size: 14px; color: var(--text-muted); }
.btn-new-project { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 20px; background: var(--primary); color: #fff; border: none; border-radius: var(--r-md); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: var(--font-ui); box-shadow: var(--primary-glow); }
.btn-new-project:hover { background: var(--primary-hover); transform: translateY(-1px); }
.dash-content { max-width: 1300px; margin: 0 auto; padding: 0 48px 80px; }
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-xs); }
.stat-card-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.stat-card-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text-h); }
.stat-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-card-icon { float: right; width: 38px; height: 38px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.stat-card-icon.g { background: var(--primary-light); color: var(--primary); }
.stat-card-icon.d { background: var(--secondary-light); color: var(--secondary); }
.stat-card-icon.w { background: var(--warning-light); color: var(--warning); }
.stat-card-icon.i { background: var(--info-light); color: var(--info); }

.dash-main-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
.dash-card-new { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); overflow: hidden; }
.dash-card-header-new { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--border); }
.dash-card-title-new { display: flex; align-items: center; gap: 10px; }
.dash-card-title-ico { width: 34px; height: 34px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.dash-card-title-ico.g { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }
.dash-card-title-ico.d { background: var(--secondary-light); color: var(--secondary); }
.dash-card-title-new h3 { font-size: 15px; font-weight: 700; color: var(--text-h); margin: 0; }
.dash-card-title-new p  { font-size: 12px; color: var(--text-muted); margin: 0; }
.dash-card-body-new { padding: 18px 22px; }

.project-row { display: flex; align-items: center; gap: 12px; padding: 13px 22px; transition: background .18s; border-bottom: 1px solid var(--border); }
.project-row:last-child { border-bottom: none; }
.project-row:hover { background: var(--bg-raised); }
.project-row-icon { width: 36px; height: 36px; border-radius: var(--r-md); flex-shrink: 0; background: var(--primary-light); border: 1px solid var(--primary-border); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.project-row-info { flex: 1; min-width: 0; }
.project-row-name { font-size: 14px; font-weight: 600; color: var(--text-h); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-row-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.project-row-actions { display: flex; gap: 6px; flex-shrink: 0; }

.projects-empty { padding: 40px 22px; text-align: center; }
.projects-empty-icon { width: 58px; height: 58px; border-radius: var(--r-lg); background: var(--bg-raised); border: 1.5px dashed var(--border-strong); color: var(--text-faint); font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.projects-empty h3 { font-size: 15px; font-weight: 700; color: var(--text-h); margin-bottom: 6px; }
.projects-empty p  { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }

.skeleton-row { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--border); }
.skeleton { background: linear-gradient(90deg, var(--bg-raised) 25%, var(--bg-hover) 50%, var(--bg-raised) 75%); background-size: 400px 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0%{background-position:-400px 0} 100%{background-position:400px 0} }
.skel-icon { width: 36px; height: 36px; border-radius: var(--r-md); flex-shrink: 0; }
.skel-line-lg { height: 13px; width: 45%; }
.skel-line-sm { height: 11px; width: 28%; margin-top: 6px; }

.templates-sidebar { display: flex; flex-direction: column; gap: 10px; }
.tpl-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: #fff; transition: all .2s; cursor: pointer; }
.tpl-item:hover { border-color: var(--primary-border); background: var(--primary-light); }
.tpl-item-icon { width: 38px; height: 38px; border-radius: var(--r-sm); flex-shrink: 0; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; border: 1px solid var(--primary-border); }
.tpl-item-icon.blank { background: var(--bg-raised); color: var(--text-muted); border-color: var(--border); }
.tpl-item-info { flex: 1; }
.tpl-item-name { font-size: 13px; font-weight: 700; color: var(--text-h); }
.tpl-item-desc { font-size: 12px; color: var(--text-muted); }
.tpl-item-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); background: var(--primary-light); color: var(--primary); flex-shrink: 0; }
.tpl-item-badge.blank { background: var(--bg-raised); color: var(--text-muted); }

/* viz-modal overlay — must beat project-page-container z-index:5000 AND login-overlay z-index:999999 */
.viz-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}
.viz-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.viz-modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 25px 80px rgba(15,23,42,.25);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  transform: translateY(20px) scale(.98);
  transition: transform .22s ease;
  font-family: var(--font-ui);
  position: relative;
  z-index: 10000000;
}
.viz-modal-overlay.open .viz-modal {
  transform: translateY(0) scale(1);
}
.viz-modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
.viz-modal-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-h); margin: 0; }
.viz-modal-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.viz-modal-close { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--bg-raised); border: 1px solid var(--border); color: var(--text-muted); font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; flex-shrink: 0; line-height: 1; padding: 0; font-family: var(--font-ui); }
.viz-modal-close:hover { background: var(--error-light); color: var(--error); }
.viz-modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.viz-modal-danger-icon { width: 50px; height: 50px; border-radius: var(--r-lg); background: var(--error-light); border: 1.5px solid #fecaca; color: var(--error); font-size: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }

.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }

/* project page nav */
.project-page-nav .nav-right { display: flex; align-items: center; gap: 10px; }

/* tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--secondary); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; padding: 4px 8px; border-radius: var(--r-sm); opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 1000; }
[data-tooltip]:hover::after { opacity: 1; }

/* responsive */
@media (max-width: 860px) {
  .auth-card { flex-direction: column; height: auto; max-height: 95vh; overflow-y: auto; min-height: auto; }
  .auth-panel-left { flex: none; padding: 28px 24px; }
  .auth-panel-right { padding: 32px 24px; }
  .auth-hero-title { font-size: 26px; }
  .auth-chart { display: none; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-header, .dash-content { padding-left: 24px; padding-right: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-feature-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DASHBOARD NAV — matches screenshot style
   ============================================================ */
.project-page-nav {
  height: 54px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-xs);
  gap: 16px;
}

/* Left — brand */
.dash-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.dash-nav-logo-icon {
  width: 30px; height: 30px;
  background: #0f172a;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-nav-brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.4px;
}
.dash-nav-brand-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--r-pill);
  padding: 2px 8px;
}

/* Center — project info pills */
.dash-nav-project-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.dash-nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-p);
  white-space: nowrap;
  transition: border-color 0.2s;
}
.dash-nav-pill:hover { border-color: var(--primary-border); }

/* Right — actions */
.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.dash-nav-btn-projects {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all 0.2s;
  box-shadow: var(--primary-glow);
}
.dash-nav-btn-projects:hover { background: var(--primary-hover); transform: translateY(-1px); }

.dash-nav-user {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-p);
}
.dash-nav-signout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all 0.2s;
}
.dash-nav-signout:hover { color: var(--error); background: var(--error-light); border-color: #fecaca; }

/* ============================================================
   DASHBOARD HERO — "What space will you create today?"
   ============================================================ */
.dash-hero {
  text-align: center;
  padding: 52px 48px 40px;
  background: var(--bg-page);
}
.dash-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1.5px solid var(--primary-border);
  color: var(--primary);
  border-radius: var(--r-pill);
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.dash-hero-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--text-h);
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  line-height: 1.15;
}
.dash-hero-accent { color: var(--primary); }
.dash-hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .dash-nav-project-pills { display: none; }
  .dash-hero-title { font-size: 30px; }
  .dash-hero { padding: 36px 24px 28px; }
}
@media (max-width: 640px) {
  .project-page-nav { padding: 0 16px; }
  .dash-nav-brand-tag { display: none; }
  .dash-hero-title { font-size: 24px; }
}

/* ============================================================
   CANVAS SETTINGS BUTTON (editor navbar)
   ============================================================ */
.btn-nav-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-body);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all 0.2s;
}
.btn-nav-tool:hover {
  background: var(--bg-hover);
  border-color: var(--primary-border);
  color: var(--primary);
}
.btn-nav-tool.active {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* Legacy dat.GUI panel — hidden completely */
.dg, .dg.ac, .dg.main {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ============================================================
   DASHBOARD "+ NEW PROJECT" BUTTON
   ============================================================ */
.dash-nav-btn-new-project {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all 0.2s;
  box-shadow: var(--primary-glow);
  white-space: nowrap;
}
.dash-nav-btn-new-project:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33,197,93,0.3);
}

/* ── Dashboard hero "New Project" button ── */
.dash-hero-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  margin-top: 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(33,197,93,0.30);
  letter-spacing: 0.2px;
}
.dash-hero-create-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(33,197,93,0.38);
}
.dash-hero-create-btn:active {
  transform: translateY(0);
}

/* Dashboard grid — single column now that right cards are removed */
.dash-main-grid {
  grid-template-columns: 1fr !important;
}
.dash-main-grid > div:empty {
  display: none !important;
}

/* Canvas Settings button — only visible in editor (#view route) */
#btn-canvas-settings {
  display: none !important;
}
html.is-authenticated.editor-active #btn-canvas-settings {
  display: inline-flex !important;
}

/* Hide project info pills from editor navbar */
#header-project-info { display: none !important; }

/* ============================================================
   PROJECT STATUS BADGES — dashboard table
   ============================================================ */
.proj-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  white-space: nowrap;
}
.proj-status-draft {
  background: #fef9c3; color: #854d0e;
  border: 1px solid #fde047;
}
.proj-status-completed {
  background: var(--primary-light); color: #14532d;
  border: 1px solid var(--primary-border);
}

/* Size badge inside project row meta */
.proj-size-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 1px 8px;
}
.meta-dot { color: var(--border-strong); margin: 0 3px; }

/* Status column in project row */
.project-row-status {
  flex-shrink: 0;
  margin-right: 8px;
}

/* ============================================================
   EDITOR STATUS CONTROLS — shown in #view navbar
   ============================================================ */
#project-status-controls {
  display: none !important;
}
html.is-authenticated.editor-active #project-status-controls {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.editor-status-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
}

.btn-status-action {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px;
  border-radius: var(--r-md);
  font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: var(--font-ui);
  transition: all 0.2s;
  border: 1.5px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
}
.btn-status-action:hover { background: var(--bg-hover); color: var(--text-h); border-color: var(--border-strong); }
.btn-status-action:disabled { opacity: .55; cursor: not-allowed; }

.btn-mark-completed:hover { border-color: var(--primary-border); color: #14532d; background: var(--primary-light); }
.btn-mark-completed.btn-status-active { background: var(--primary-light); border-color: var(--primary-border); color: #14532d; }

.btn-mark-draft:hover { border-color: #fde047; color: #854d0e; background: #fef9c3; }
.btn-mark-draft.btn-status-active { background: #fef9c3; border-color: #fde047; color: #854d0e; }

/* ============================================================
   MATERIAL SYMBOLS — icon sizing
   ============================================================ */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

/* Modern icon button styles */
.btn-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  font-size: 16px;
}
.btn-icon:hover { background: var(--bg-raised); color: var(--text-h); border-color: var(--border-strong); }
.btn-icon.view:hover  { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
.btn-icon.edit:hover  { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }
.btn-icon.delete:hover{ color: var(--error); border-color: var(--error-border); background: var(--error-light); }

/* Project row — size column */
.project-row-size {
  min-width: 130px;
  max-width: 160px;
  flex-shrink: 0;
  padding: 0 8px;
}
.proj-size-visual { display: flex; flex-direction: column; gap: 4px; }
.proj-size-top    { display: flex; align-items: center; justify-content: space-between; }
.proj-size-label  { font-size: 11px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.proj-size-bar-track {
  height: 5px;
  background: var(--bg-raised);
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid var(--border);
}
.proj-size-bar-fill {
  height: 100%;
  border-radius: var(--r-pill);
  transition: width 0.4s ease;
}

/* project row icon — use material symbol */
.project-row-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}

/* ── Size visual in project row ── */
.project-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.project-row:last-child { border-bottom: none; }
.project-row:hover { background: var(--bg-raised); }

.project-row-size {
  flex-shrink: 0;
  width: 140px;
}
.proj-size-visual {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.proj-size-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-size-bar-track {
  height: 4px;
  background: var(--bg-raised);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.proj-size-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
  min-width: 4px;
}

/* ============================================================
   PROJECT ROW — Category + Size meta block
   ============================================================ */
.project-row-size {
  flex-shrink: 0;
  width: 160px;
}
.proj-meta-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proj-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-body);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  width: fit-content;
  white-space: nowrap;
}
.proj-cat-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
.proj-size-visual {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proj-size-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.proj-size-bar-track {
  height: 4px;
  background: var(--bg-hover);
  border-radius: 99px;
  overflow: hidden;
}
.proj-size-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
  min-width: 4px;
}

/* ============================================================
   SAVED PROJECTS — proper table with columns
   ============================================================ */
.projects-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 100px 110px;
  align-items: center;
  padding: 10px 22px;
  background: var(--bg-raised);
  border-bottom: 1.5px solid var(--border);
  gap: 12px;
}
.pth-name, .pth-category, .pth-size, .pth-created, .pth-status, .pth-actions {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.pth-actions { text-align: right; }

.project-row {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr 100px 110px;
  align-items: center;
  padding: 14px 22px !important;
  gap: 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.project-row:last-child { border-bottom: none; }
.project-row:hover { background: var(--bg-raised); }

/* Column styles */
.pr-col { display: flex; align-items: center; }
.pr-name { gap: 12px; min-width: 0; }
.pr-category { }
.pr-size { flex-direction: column; align-items: flex-start; gap: 4px; }
.pr-status { }
.pr-actions { gap: 6px; justify-content: flex-end; }

/* Category chip */
.pr-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
}

/* Size text + bar */
.pr-size-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .projects-table-header { display: none; }
  .project-row {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
  .pr-actions { justify-content: flex-start; }
}

/* ============================================================
   EXACT REFERENCE MATCH: COMPACT & USER-FRIENDLY DASHBOARD
   ============================================================ */

/* Container */
.project-page-container {
  background: #fafcfb !important;
  color: #1e293b !important;
  font-family: var(--font-ui) !important;
}

/* Navbar */
.project-page-nav {
  height: 52px !important;
  padding: 0 28px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 500 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
}

.dash-nav-brand {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
}

.dash-nav-logo-icon {
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
}

.dash-brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.05 !important;
}

.dash-brand-name {
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.4px !important;
}

.dash-brand-sub {
  font-size: 8.5px !important;
  font-weight: 800 !important;
  color: #22c55e !important;
  letter-spacing: 0.6px !important;
}

.dash-nav-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dash-studio-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #ffffff !important;
  border: 1.5px solid #22c55e !important;
  color: #16a34a !important;
  border-radius: 999px !important;
  padding: 4px 14px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  cursor: default !important;
}

.dash-studio-tag .plus-sign {
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.dash-nav-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.dash-nav-user-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
}

.dash-user-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  display: inline-block !important;
}

.dash-nav-signout-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 30px !important;
  padding: 0 10px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  color: #334155 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  font-family: var(--font-ui) !important;
  transition: all 0.2s !important;
}

.dash-nav-signout-btn:hover {
  background: #fef2f2 !important;
  color: #ef4444 !important;
  border-color: #fca5a5 !important;
}

/* Wrapper */
.dash-main-wrapper {
  max-width: 1060px !important;
  margin: 0 auto !important;
  padding: 10px 20px 30px !important;
}

/* Hero */
.dash-hero-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 12px !important;
}

.dash-hero-left {
  flex: 1.2 !important;
}

.dash-welcome-text {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-bottom: 4px !important;
}

.dash-hero-title {
  font-family: var(--font-display) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.15 !important;
  letter-spacing: -0.6px !important;
  margin: 0 0 6px 0 !important;
}

.dash-hero-green {
  color: var(--primary) !important;
}

.dash-hero-subtitle {
  font-size: 12.5px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  margin-bottom: 12px !important;
}

.dash-hero-btn-new {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 34px !important;
  padding: 0 16px !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: var(--font-ui) !important;
  transition: all 0.2s !important;
  box-shadow: var(--primary-glow) !important;
}

.dash-hero-btn-new:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.dash-hero-right {
  flex: 0.9 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.dash-hero-img {
  max-width: 270px !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.03)) !important;
}

/* Stats */
.dash-stats-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.stat-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02) !important;
  transition: all 0.2s !important;
}

.stat-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.04) !important;
  transform: translateY(-1px) !important;
}

.stat-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 4px !important;
}

.stat-card-label {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.stat-card-badge {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.stat-card-badge.green { background: #ecfdf5 !important; }
.stat-card-badge.gray { background: #f1f5f9 !important; }
.stat-card-badge.yellow { background: #fef3c7 !important; }
.stat-card-badge.purple { background: #f3e8ff !important; }

.stat-card-value {
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 2px !important;
  line-height: 1.15 !important;
}

#stat-total {
  font-size: 18px !important;
}

.stat-card-sub {
  font-size: 10px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

/* Saved Projects Card */
.dash-projects-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important;
}

.dash-projects-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 10px !important;
}

.dash-projects-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.projects-icon-box {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.projects-title {
  font-family: var(--font-display) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.projects-subtitle {
  font-size: 11px !important;
  color: #64748b !important;
  margin: 1px 0 0 !important;
}

/* Table layout */
.projects-table-header {
  display: grid !important;
  grid-template-columns: 2.2fr 1.2fr 1.2fr 1.2fr 1fr 1.1fr !important;
  align-items: center !important;
  padding: 8px 14px !important;
  background: #f8fafc !important;
  border-radius: 6px !important;
  margin-bottom: 2px !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.project-row {
  display: grid !important;
  grid-template-columns: 2.2fr 1.2fr 1.2fr 1.2fr 1fr 1.1fr !important;
  align-items: center !important;
  padding: 8px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  transition: background 0.15s !important;
  background: transparent !important;
}

.project-row:last-child {
  border-bottom: none !important;
}

.project-row:hover {
  background: #f8fafc !important;
}

.project-row-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.pr-col.pr-name {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.project-row-name {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
}

.project-row-meta {
  font-size: 10.5px !important;
  color: #94a3b8 !important;
  margin-top: 1px !important;
}

.pr-cat-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 2px 9px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

.pr-size-text {
  font-size: 11.5px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.proj-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 10px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
}

.proj-status-draft {
  background: #fef9c3 !important;
  border: 1px solid #fef08a !important;
  color: #854d0e !important;
}

.proj-status-completed {
  background: #dcfce7 !important;
  border: 1px solid #bbf7d0 !important;
  color: #166534 !important;
}

.pr-col.pr-actions {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.btn-table-action {
  width: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  padding: 0 !important;
}

.btn-table-action:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
}

.btn-table-action.delete:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
}

/* Pagination */
.projects-table-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 10px !important;
  padding-top: 8px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.pagination-info {
  font-size: 11px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.pagination-controls {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.pag-btn {
  width: 24px !important;
  height: 24px !important;
  border-radius: 5px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #64748b !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}

.pag-btn.active {
  border-color: #22c55e !important;
  color: #16a34a !important;
  font-weight: 700 !important;
}

.pagination-per-page {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 3px 8px !important;
  font-size: 10.5px !important;
  color: #334155 !important;
  font-weight: 500 !important;
  background: #ffffff !important;
}

@media (max-width: 680px) {
  .dash-hero-banner {
    flex-direction: column !important;
    text-align: center !important;
  }
  .dash-hero-right {
    justify-content: center !important;
  }
  .dash-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dash-nav-center {
    display: none !important;
  }
}




/* Viewer Only Mode */
body.viewer-only-mode #left-sidebar { display: none !important; }
body.viewer-only-mode #top-navbar-tools { display: none !important; }
body.viewer-only-mode .btn-save { display: none !important; }


/* ============================================================
   EXECUTIVE ARCHITECTURAL MODAL DESIGN
   ============================================================ */
.pro-project-modal-card {
  max-width: 500px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 24px 28px !important;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a;
  overflow: hidden !important;
}

.pro-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.pro-modal-header .viz-modal-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pro-modal-header .viz-modal-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
  font-weight: 400;
}

.pro-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.pro-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* Micro-labels */
.pro-field-label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
  margin-bottom: 6px;
}

/* Segmented Control Switcher */
.pro-segmented-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

.pro-tab-btn {
  border: none;
  background: transparent;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 550;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
}

.pro-tab-btn:hover {
  color: #1e293b;
}

.pro-tab-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.pro-tab-icon {
  font-size: 16px;
  color: inherit;
}

.pro-tab-btn.active .ai-sparkle {
  color: #2563eb;
}

.pro-tab-ai-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
  letter-spacing: 0.3px;
}

.pro-tab-btn.active .pro-tab-ai-badge {
  background: #2563eb;
  color: #ffffff;
}

/* Inputs & Wrappers */
.pro-input-wrap {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.pro-input {
  width: 100% !important;
  box-sizing: border-box !important;
  height: 42px;
  padding: 0 14px;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 450;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: all 0.18s ease;
}

.pro-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.pro-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field-group.has-error .pro-input {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

/* Select */
.pro-select-wrap {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.pro-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 36px !important;
}

.pro-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* AI Box */
.pro-ai-box {
  background: #f8faff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
}

.pro-ai-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pro-ai-box-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #1e40af;
}

.pro-ai-chip-hint {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.pro-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 8px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.pro-chips-row::-webkit-scrollbar {
  display: none;
}

.pro-chips-row .ai-prompt-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.pro-chips-row .ai-prompt-chip:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.pro-chips-row .ai-prompt-chip.active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.pro-ai-textarea {
  height: auto !important;
  min-height: 68px !important;
  padding: 10px 12px !important;
  line-height: 1.45 !important;
  resize: none !important;
  background: #ffffff !important;
}

.pro-ai-footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  color: #475569;
}

/* Presets Grid */
.pro-presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.pro-presets-grid .preset-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.pro-presets-grid .preset-btn:hover {
  border-color: #93c5fd !important;
  background: #f8fafc !important;
}

.pro-presets-grid .preset-btn.active {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 1px #2563eb !important;
}

.pro-presets-grid .preset-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  display: block;
}

.pro-presets-grid .preset-size {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  display: block;
}

/* Modal Footer */
.pro-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.pro-btn-cancel {
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #475569 !important;
  background: transparent !important;
  border: 1px solid #cbd5e1 !important;
  transition: all 0.15s ease !important;
}

.pro-btn-cancel:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.pro-btn-submit {
  height: 40px !important;
  padding: 0 20px !important;
  border-radius: 8px !important;
  font-weight: 650 !important;
  font-size: 13.5px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.18s ease !important;
}

.pro-btn-submit:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
  transform: translateY(-1px) !important;
}


/* ============================================================
   STUDIO AI FLOATING PROMPT BAR & PROGRESS PILLS
   ============================================================ */
/* Top Progress Pills (Docked under navbar, perfectly centered) */
.ai-progress-pills-row {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow-x: auto;
  max-width: 90%;
  z-index: 92;
  transition: all 0.3s ease;
}

.ai-step-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 11px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.ai-step-pill .pill-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #334155;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.ai-step-pill .pill-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ai-step-pill .pill-title {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.ai-step-pill .pill-sub {
  font-size: 9px;
  color: #64748b;
}

.ai-step-pill.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(37,99,235,0.45);
}

.ai-step-pill.active .pill-num {
  background: #ffffff;
  color: #2563eb;
}

.ai-step-pill.active .pill-title,
.ai-step-pill.active .pill-sub {
  color: #ffffff;
}

.ai-step-pill.done {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.ai-step-pill.done .pill-num {
  background: #10b981;
  color: #ffffff;
}

/* Minimal live status badge (replaces the bulky 5-step bar) */
.ai-live-status-pill {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border-radius: 9999px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 95;
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  pointer-events: none;
  animation: fadeInDown 0.25s ease;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Studio AI Floating Left Container (Positioned on the open left side of canvas) */
.studio-ai-floating-container {
  position: absolute;
  bottom: 85px; /* Above bottom margin, clear of center 2D/3D controls */
  left: 36px;
  transform: none;
  width: min(580px, calc(100vw - 440px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  z-index: 100;
  pointer-events: none;
}

.chatgpt-capsule-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Pure White ChatGPT Style Capsule (Enlarged & Multi-line) */
.chatgpt-input-capsule {
  pointer-events: auto;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 26px;
  padding: 8px 14px 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatgpt-input-capsule:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 14px 38px -5px rgba(37, 99, 235, 0.18), 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* ChatGPT Plus Button */
.chatgpt-btn-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.chatgpt-btn-circle:hover {
  background: #f1f5f9;
  color: #111827;
}

/* ChatGPT Multi-Line Textarea Input */
.chatgpt-input-capsule textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 4px;
  font-family: inherit;
  resize: none;
  min-height: 44px;
  max-height: 110px;
  line-height: 1.45;
}

.chatgpt-input-capsule textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* ChatGPT Think Button */
.chatgpt-btn-think {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 12px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.chatgpt-btn-think:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.chatgpt-btn-think.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

/* Furnish 3D Quick Action Pill */
.chatgpt-quick-action-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 6px 12px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.chatgpt-quick-action-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* ChatGPT Circular Blue Send Button */
.chatgpt-btn-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2563eb;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.chatgpt-btn-send:hover {
  background: #1d4ed8;
  transform: scale(1.04);
}

.chatgpt-btn-send:active {
  transform: scale(0.96);
}

.chatgpt-btn-send:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   STEP 2 AI CONCEPTS MODAL (Clean Modern Architectural Theme)
   ============================================================ */
.ai-concept-modal-card {
  max-width: 700px !important;
  width: 95% !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-radius: 22px !important;
  box-shadow: 0 25px 80px -15px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border: 1px solid #e2e8f0 !important;
  padding: 24px 28px !important;
  color: #0f172a !important;
  position: relative !important;
}

.ai-concept-modal-card::-webkit-scrollbar {
  width: 6px;
}

.ai-concept-modal-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.ai-concept-modal-header {
  position: relative;
  margin-bottom: 14px;
  padding-right: 36px;
}

.ai-concept-modal-header .viz-modal-close {
  position: absolute;
  top: 0;
  right: 0;
}

.ai-concept-step-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ai-concept-main-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}

.ai-concept-main-subtitle {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Storytelling & Structured Architectural Consultation Banner */
.concept-dialogue-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 10px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.concept-dialogue-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  margin-top: 2px;
}

.concept-dialogue-content {
  flex: 1;
  min-width: 0;
}

.concept-dialogue-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.concept-dialogue-header {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.concept-dialogue-header .header-accent {
  color: #16a34a;
}

.concept-scroll-hint {
  font-size: 11px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-weight: 600;
}

.consult-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.consult-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.consult-pill.consult-pill-ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.consult-pill.consult-pill-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

/* Scroll Area for structured content */
.consult-scroll-area {
  max-height: 145px;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consult-scroll-area::-webkit-scrollbar {
  width: 5px;
}

.consult-scroll-area::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.consult-scroll-area::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.consult-scroll-area::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.consult-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.consult-block-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.consult-block-title .material-symbols-rounded {
  font-size: 15px;
  color: #2563eb;
}

.consult-block-title.text-amber .material-symbols-rounded {
  color: #d97706;
}

.consult-block-title.text-blue .material-symbols-rounded {
  color: #2563eb;
}

.consult-paragraph {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.consult-paragraph strong {
  color: #0f172a;
}

.spatial-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.spatial-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.spatial-chip .chip-icon {
  font-size: 13px;
}

.consult-advisory-box {
  background: #fffbeb;
  border-color: #fde68a;
}

.consult-guidance-box {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.consult-bullet-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
}

.consult-bullet-list li {
  margin-bottom: 3px;
}

.consult-bullet-list li:last-child {
  margin-bottom: 0;
}

.consult-bullet-list strong {
  color: #0f172a;
}

/* Dual-Persona Mode Tabs */
.persona-tab-switcher {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 14px;
}

.persona-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.persona-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.persona-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.persona-tab-btn.active .material-symbols-rounded {
  color: #2563eb;
}

.section-subheading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 8px;
}

/* Pakistani Plot Preset Grid */
.plot-presets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 820px) {
  .plot-presets-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

.plot-preset-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}

.plot-preset-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.plot-preset-card.active {
  background: #f0fdf4 !important;
  border-color: #16a34a !important;
  box-shadow: 0 0 0 1px #16a34a, 0 4px 14px rgba(22, 163, 74, 0.16) !important;
}

.plot-preset-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: #eff6ff;
  color: #2563eb;
  text-transform: uppercase;
}

.plot-preset-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.plot-preset-dims {
  font-size: 11.5px;
  color: #16a34a;
  font-weight: 700;
}

.plot-preset-area {
  font-size: 10.5px;
  color: #64748b;
}

/* Architect Custom Boundaries & Dimension Table */
.architect-custom-boundary-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.boundary-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.boundary-input-group label {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  margin: 0;
}

.boundary-input-group input {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 8px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease;
}

.boundary-input-group input:focus {
  border-color: #2563eb;
}

.boundary-summary-badge {
  align-self: flex-end;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.room-dimension-table-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.room-dimension-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.room-dimension-table thead {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 2;
}

.room-dimension-table th {
  padding: 8px 10px;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
}

.room-dimension-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.room-dimension-table tr:hover {
  background: #f8fafc;
}

.room-zone-pill {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}

.room-zone-pill.zone-front { background: #eff6ff; color: #2563eb; }
.room-zone-pill.zone-central { background: #faf5ff; color: #9333ea; }
.room-zone-pill.zone-rear { background: #f0fdf4; color: #16a34a; }

.room-dim-input {
  width: 65px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: #0f172a;
  font-size: 11.5px;
  padding: 4px 6px;
  font-weight: 600;
  text-align: right;
  outline: none;
}

.room-dim-input:focus {
  background: #ffffff;
  border-color: #2563eb;
}

.room-area-text {
  font-weight: 600;
  color: #0284c7;
  font-size: 11.5px;
}

.arch-tip-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 12px;
}

/* Stack of Concept Cards */
.ai-concepts-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.ai-concept-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.ai-concept-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.ai-concept-card.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px #2563eb, 0 4px 16px rgba(37, 99, 235, 0.16) !important;
}

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

.concept-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.concept-card-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.concept-card-badge.recommended {
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.concept-card-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

/* User POV & Custom Feedback Input in Step 2 */
.concept-user-pov-block {
  margin-top: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.concept-user-pov-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.concept-user-pov-header label {
  margin: 0;
  cursor: pointer;
}

.concept-user-pov-block textarea {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  font-size: 13px !important;
  padding: 8px 10px !important;
  line-height: 1.4 !important;
  resize: none !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease;
}

.concept-user-pov-block textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12) !important;
}

.concept-user-pov-block textarea::placeholder {
  color: #94a3b8 !important;
  font-size: 12.5px !important;
}

/* Footer Navigation Controls */
.ai-concept-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  position: relative;
  background: transparent;
  z-index: 10;
  width: 100%;
}

.btn-concept-prev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-concept-prev:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-concept-proceed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  border: none;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-concept-proceed:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-concept-proceed:active {
  transform: translateY(0);
}

/* ============================================================
   Furnish 3D Consultation Modal Styles (Clean Modern Architectural Theme)
   ============================================================ */
.furnish-modal-card {
  max-width: 560px !important;
  width: 95% !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 70px -12px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border: 1px solid #e2e8f0 !important;
  padding: 24px 28px !important;
  color: #0f172a !important;
  position: relative !important;
}

.furnish-modal-card::-webkit-scrollbar {
  width: 6px;
}

.furnish-modal-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.furnish-modal-header {
  position: relative;
  margin-bottom: 16px;
  padding-right: 36px;
}

.furnish-modal-header .viz-modal-close {
  position: absolute;
  top: 0;
  right: 0;
}

.furnish-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.furnish-main-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
}

.furnish-main-subtitle {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.furnish-section {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.furnish-section-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.furnish-style-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.furnish-style-pill {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.furnish-style-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.furnish-style-pill.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.furnish-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 165px;
  overflow-y: auto;
  padding-right: 4px;
}

.furnish-chips-grid::-webkit-scrollbar {
  width: 4px;
}

.furnish-chips-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.furnish-chip {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  margin: 0;
}

.furnish-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.furnish-chip.active {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.12);
}

.furnish-chip input[type="checkbox"] {
  accent-color: #16a34a;
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.furnish-textarea,
.furnish-modal-card textarea,
#furnish-custom-prompt {
  width: 100% !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  color: #0f172a !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
  line-height: 1.45 !important;
  resize: vertical !important;
  min-height: 60px !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
}

.furnish-textarea:focus,
.furnish-modal-card textarea:focus,
#furnish-custom-prompt:focus {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.furnish-textarea::placeholder,
.furnish-modal-card textarea::placeholder,
#furnish-custom-prompt::placeholder {
  color: #94a3b8 !important;
  font-size: 12.5px !important;
}

.furnish-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  position: sticky;
  bottom: -24px;
  background: #ffffff;
  z-index: 20;
  padding-bottom: 2px;
}

.ai-review-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.ai-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

/* Proposed Room Schedule Grid */
.ai-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.ai-room-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.ai-room-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.ai-room-pill-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.ai-room-pill-area {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Recommendations List */
.ai-recommendations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-recommendations-list li {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ai-recommendations-list li::before {
  content: "✦";
  color: #f59e0b;
  font-weight: bold;
}

/* Interactive Questions List */
.ai-questions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-question-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.ai-question-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.ai-choice-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-choice-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-choice-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.ai-choice-btn.selected {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

/* Toast Feedback (Appears above the prompt capsule) */
.studio-ai-toast {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(59, 130, 246, 0.45);
  border-radius: 14px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f1f5f9;
  font-size: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  animation: slideUpFade 0.3s ease;
  max-width: 90vw;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.toast-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

.toast-content strong {
  display: block;
  font-size: 12.5px;
  color: #60a5fa;
  margin-bottom: 2px;
}

.toast-content p {
  margin: 0;
  font-size: 11px;
  color: #cbd5e1;
  white-space: normal;
}

.toast-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 6px;
}

.toast-close:hover {
  color: #ffffff;
}

/* ============================================================
   STUDIO AI TOGGLE & TOP HEADER BUTTON (Bug 1)
   ============================================================ */
.btn-summon-ai {
  background: rgba(30, 58, 138, 0.25) !important;
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
  color: #93c5fd !important;
  transition: all 0.2s ease !important;
}

.btn-summon-ai:hover {
  background: rgba(37, 99, 235, 0.35) !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4) !important;
}

.btn-summon-ai.active {
  background: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.5) !important;
}

.studio-ai-hidden {
  display: none !important;
}

/* ============================================================
   3D ARCHITECTURAL BIM CONSTRUCTION HUD (Clean White Studio Theme)
   ============================================================ */
.ai-space-warp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000000;
  background: #ffffff !important;
  background-image: 
    linear-gradient(rgba(226, 232, 240, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.6) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  font-family: var(--font-ui);
  user-select: none;
}

.ai-space-warp-overlay.active {
  display: flex !important;
}

/* 3D Architectural BIM Assembly Canvas */
.ai-space-canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* Remove any bloom flash */
.ai-space-portal-flash {
  display: none !important;
}

/* Architectural Corner Brackets */
.space-hud-bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 10;
  pointer-events: none;
  border-color: #cbd5e1;
  border-style: solid;
}
.space-hud-bracket.top-left { top: 20px; left: 24px; border-width: 2px 0 0 2px; }
.space-hud-bracket.top-right { top: 20px; right: 24px; border-width: 2px 2px 0 0; }
.space-hud-bracket.bottom-left { bottom: 20px; left: 24px; border-width: 0 0 2px 2px; }
.space-hud-bracket.bottom-right { bottom: 20px; right: 24px; border-width: 0 2px 2px 0; }

/* Top Architectural HUD Header Bar — Mirrors CadItAi Topbar in Pic 3 */
.space-hud-top-bar {
  position: relative;
  z-index: 10;
  width: 96%;
  max-width: 1300px;
  margin-top: 18px;
  padding: 12px 24px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.space-hud-telemetry-left,
.space-hud-telemetry-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: #64748b;
  letter-spacing: 0.02em;
}

.space-hud-close-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.space-hud-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.space-telemetry-item strong {
  color: #0f172a;
  font-weight: 700;
  font-family: var(--font-ui);
}

.space-hud-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 4px 12px;
}

.space-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.5);
  animation: spacePulseDot 1.2s infinite ease-in-out;
}

@keyframes spacePulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.space-hud-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.space-core-icon {
  font-size: 18px;
  color: #16a34a;
}

/* Center 3D Floating Building Assembly Stage */
.arch-center-building-stage {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  pointer-events: none;
}

.arch-cad-elevation-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #0f172a;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

/* Bottom Construction Deck & Phased Progress — Mirrors Portfolio Card in Pic 3 */
.space-hud-bottom-deck {
  position: relative;
  z-index: 10;
  width: 96%;
  max-width: 1200px;
  margin-bottom: 24px;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 22px 28px 18px 28px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.space-deck-header {
  text-align: center;
  margin-bottom: 18px;
}

.space-deck-phase-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.space-deck-title {
  margin: 0 0 6px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.space-deck-subtitle {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

/* 4 Architectural Phased Milestones Cards Grid */
.space-proc-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .space-proc-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.space-proc-step-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.space-proc-step-card.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12) !important;
  transform: translateY(-2px);
}

.space-proc-step-card.completed {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.08) !important;
}

.space-step-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.space-step-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
}

.space-proc-step-card.active .space-step-num { color: #2563eb; }
.space-proc-step-card.completed .space-step-num { color: #16a34a; }

.space-step-state-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #64748b;
  transition: all 0.2s ease;
}

.space-proc-step-card.active .space-step-state-ico {
  background: #2563eb;
  color: #ffffff;
  animation: spaceIconSpin 1.2s linear infinite;
}

.space-proc-step-card.completed .space-step-state-ico {
  background: #16a34a;
  color: #ffffff;
  animation: none;
}

@keyframes spaceIconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.space-step-body {
  flex: 1;
  min-width: 0;
}

.space-step-head {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.space-proc-step-card.active .space-step-head { color: #0f172a; }
.space-proc-step-card.completed .space-step-head { color: #15803d; }

.space-step-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.space-proc-step-card.active .space-step-desc { color: #1e40af; }
.space-proc-step-card.completed .space-step-desc { color: #166534; }

/* Refined Progress Track */
.space-progress-bar-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
}

.space-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.space-progress-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
}

.space-progress-pct {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  font-family: var(--font-ui);
  letter-spacing: 0.02em;
}

.space-track-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.space-track-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e 60%, #2563eb);
  border-radius: 6px;
  position: relative;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.space-track-glow-head {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: #ffffff;
  filter: blur(2px);
  border-radius: 50%;
  opacity: 0.9;
}

/* ============================================================
   CADITAI 3D STUDIO — WORKSPACE & AI CARD REDESIGN
   ============================================================ */

/* Hide floating center AI capsule */
#studio-ai-floating-container,
.studio-ai-floating-container {
  display: none !important;
}

/* Left Sidebar Tools & Floors */
.sidebar-tools-header {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  height: 30px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  cursor: pointer;
  box-sizing: border-box;
}
.sidebar-tools-header .material-symbols-rounded {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   ARCHITECTURAL STOREY / FLOORS PANEL (EXECUTIVE SAAS DESIGN)
   ============================================================ */
.sidebar-floors-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 2px 0;
  box-sizing: border-box;
  width: 100%;
}

.sidebar-floors-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.sidebar-add-floor-btn {
  width: 100%;
  height: 26px;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  box-sizing: border-box;
}

.sidebar-add-floor-btn span {
  font-size: 15px;
  line-height: 1;
}

.sidebar-add-floor-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}


.sidebar-floor-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 550;
  color: #334155;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.sidebar-floor-btn .floor-btn-name {
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #334155;
  font-weight: 600;
  font-size: 11.5px;
  flex: 1;
}

.sidebar-floor-btn .floor-btn-right-icon {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 6px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-floor-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.sidebar-floor-btn:hover .floor-btn-right-icon {
  color: #2563eb;
}

.sidebar-floor-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #2563eb !important;
  box-shadow: 0 2px 7px rgba(37, 99, 235, 0.15), 0 0 0 1px #2563eb !important;
}

.sidebar-floor-btn.active .floor-btn-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.sidebar-floor-btn.active .floor-btn-right-icon {
  color: #2563eb !important;
}

/* Unified Bottom Floating Dock */
.bottom-dock-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}

.bottom-dock-wrapper {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-view-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.modern-toggle-btn {
  border-radius: 18px;
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  font-family: var(--font-ui);
}

.modern-toggle-btn:hover {
  color: #0f172a;
}

.modern-toggle-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

.modern-toggle-btn .material-symbols-rounded {
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-controls-bar {
  background: #0f172a;
  border-radius: 20px;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.view-control-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.view-control-btn:hover {
  background: #334155;
  color: #ffffff;
}

.view-control-btn .material-symbols-rounded {
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Green Center Target View Button */
.view-control-btn.center-target-btn {
  background: #22c55e !important;
  color: #ffffff !important;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.view-control-btn.center-target-btn:hover {
  background: #16a34a !important;
}

/* Right Properties Panel: AI Architect Card Pinned at Bottom */
.prop-ai-architect-card {
  border-top: 1px solid #f1f5f9;
  padding: 10px 12px;
  background: #ffffff;
  margin-top: auto;
  flex-shrink: 0;
  box-sizing: border-box;
}

.prop-ai-header {
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  line-height: 1;
}
.prop-ai-header .material-symbols-rounded {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.prop-ai-textarea {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #334155;
  width: 100%;
  box-sizing: border-box;
  resize: none;
  min-height: 50px;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
  display: block;
}

.prop-ai-textarea:focus {
  border-color: #2563eb;
  background: #ffffff;
}

.prop-ai-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.prop-ai-btn-think {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1;
  font-family: var(--font-ui);
}

.prop-ai-btn-furnish {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-sizing: border-box;
  line-height: 1;
  font-family: var(--font-ui);
}

.prop-ai-btn-furnish:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.prop-ai-btn-send {
  background: #2563eb;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  margin-left: auto;
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.prop-ai-btn-send .material-symbols-rounded {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.prop-ai-btn-send:hover {
  background: #1d4ed8;
  transform: scale(1.05);
}

/* ============================================================
   UNIFIED AI ARCHITECT SYNTHESIS & HUMAN-IN-THE-LOOP MODAL
   ============================================================ */
.ai-synthesis-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.ai-synthesis-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.ai-synthesis-card {
  width: 95%;
  max-width: 680px;
  max-height: 88vh;
  background: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 16px;
  box-shadow: 0 25px 80px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.1);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: var(--font-ui);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.ai-synthesis-overlay.active .ai-synthesis-card {
  transform: scale(1) translateY(0);
}

.ai-synthesis-card::-webkit-scrollbar {
  width: 4px;
}
.ai-synthesis-card::-webkit-scrollbar-track {
  background: transparent;
}
.ai-synthesis-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Header & Orbital Radar */
.ai-synthesis-header {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.ai-orbital-loader {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbital-ring-outer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 2px dashed rgba(37, 99, 235, 0.35);
  animation: spinOuter 6s linear infinite;
}

.orbital-ring-inner {
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #2563eb;
  border-right-color: #38bdf8;
  animation: spinInner 1.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.orbital-core {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;
}

.orbital-core .material-symbols-rounded {
  font-size: 15px;
  color: #2563eb;
  transition: all 0.3s ease;
}

.ai-orbital-loader.done .orbital-ring-outer {
  border: 2px solid #22c55e;
  animation: none;
}
.ai-orbital-loader.done .orbital-ring-inner {
  border: none;
  animation: none;
}
.ai-orbital-loader.done .orbital-core {
  background: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
}
.ai-orbital-loader.done .orbital-core .material-symbols-rounded {
  color: #ffffff;
}

@keyframes spinOuter {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinInner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ai-synthesis-titles {
  flex: 1;
  min-width: 0;
}

.ai-synthesis-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-synthesis-subtitle {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.25;
}

.ai-synthesis-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.ai-synthesis-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Progress Bar */
.ai-synthesis-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-progress-track {
  flex: 1;
  height: 5px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.ai-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  border-radius: 99px;
  transition: width 0.35s ease;
}

.ai-progress-percentage {
  font-size: 10.5px;
  font-weight: 700;
  color: #2563eb;
  min-width: 30px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Checklist Steps */
.ai-synthesis-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
}

.synthesis-step-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.synthesis-step-row.running {
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.synthesis-step-row.done {
  background: transparent;
}

.step-status-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* Pending step */
.synthesis-step-row.pending .step-status-badge {
  background: #e2e8f0;
}
.synthesis-step-row.pending .step-spinner,
.synthesis-step-row.pending .step-check {
  display: none;
}
.synthesis-step-row.pending .step-status-badge::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
}

/* Running step */
.synthesis-step-row.running .step-status-badge {
  background: #dbeafe;
}
.synthesis-step-row.running .step-check {
  display: none;
}
.synthesis-step-row.running .step-spinner {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-top-color: #2563eb;
  animation: spinInner 0.8s linear infinite;
  display: block;
}

/* Completed step (Glowing Blue Tick ✓) */
.synthesis-step-row.done .step-status-badge {
  background: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.35);
}
.synthesis-step-row.done .step-spinner {
  display: none;
}
.synthesis-step-row.done .step-check {
  display: inline-flex;
  font-size: 12px;
  color: #ffffff;
  font-weight: 800;
}

.step-details {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.synthesis-step-row.pending .step-title {
  color: #64748b;
  font-weight: 500;
}

.synthesis-step-row.running .step-title {
  color: #1d4ed8;
  font-weight: 700;
}

.synthesis-step-row.done .step-title {
  color: #0f172a;
}

.step-desc {
  font-size: 9px;
  color: #64748b;
  line-height: 1.2;
}

/* Human In The Loop (HITL) Interactive Section */
.ai-synthesis-hitl-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: fadeInDown 0.25s ease-out;
}

.hitl-panel-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 1px 0;
}

.hitl-panel-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.hitl-concepts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hitl-concept-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding: 7px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 65px;
  box-sizing: border-box;
}

.hitl-concept-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.hitl-concept-card.active {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 1px #2563eb !important;
}

.hitl-concept-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.hitl-concept-title {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hitl-concept-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: 99px;
  background: #e2e8f0;
  color: #475569;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

.hitl-concept-card.active .hitl-concept-badge {
  background: #2563eb;
  color: #ffffff;
}

.hitl-concept-desc {
  font-size: 9.5px;
  color: #64748b;
  line-height: 1.25;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hitl-section-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.hitl-plot-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hitl-preset-pill {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hitl-preset-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.hitl-preset-pill.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

.hitl-note-input {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  font-size: 10.5px;
  font-family: var(--font-ui);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  box-sizing: border-box;
}

.hitl-note-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.hitl-action-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.btn-hitl-synthesize {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 7px;
  height: 34px;
  padding: 0 16px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-ui);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35);
  transition: all 0.15s ease;
}

.btn-hitl-synthesize:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.btn-hitl-synthesize:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ai-synthesis-success-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #166534;
  font-size: 11px;
  font-weight: 600;
  animation: fadeInDown 0.25s ease-out;
}
.ai-synthesis-success-badge .material-symbols-rounded {
  font-size: 15px;
  color: #22c55e;
}

/* Compact Feasibility & Consultation Container */
.concept-dialogue-banner-compact {
  margin-bottom: 2px;
}

.consultation-container-compact {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.consult-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.consult-pill {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.consult-pill-ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.consult-pill-warn {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.consult-ai-message {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 10px;
  line-height: 1.35;
  color: #334155;
}

.consult-ai-message strong {
  color: #0f172a;
}

.ai-spark-icon {
  font-size: 13px !important;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Architect Custom Boundary Bar & Room Dimensions */
.architect-custom-boundary-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 2px;
  margin-bottom: 6px;
}

.boundary-input-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.boundary-input-group label {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.boundary-input-group input {
  width: 75px;
  height: 26px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  box-sizing: border-box;
}

.boundary-input-group input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.boundary-summary-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.room-dimension-table-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
}

.room-dimension-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.room-dimension-table th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  text-align: left;
  padding: 4px 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 9px;
  text-transform: uppercase;
}

.room-dimension-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.room-dimension-table tr:last-child td {
  border-bottom: none;
}

.room-dim-input {
  width: 55px;
  height: 22px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

.room-dim-input:focus {
  border-color: #2563eb;
  outline: none;
}

.room-zone-pill {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: capitalize;
}

.room-zone-pill.front {
  background: #fef3c7;
  color: #92400e;
}

.room-zone-pill.central {
  background: #e0e7ff;
  color: #3730a3;
}

.room-zone-pill.rear {
  background: #dcfce7;
  color: #166534;
}

.room-live-area {
  font-weight: 700;
  color: #2563eb;
  font-size: 9.5px;
  white-space: nowrap;
}




