/* ============================================
   NEW WORLD PROJECTS — 2026 Editorial Design
   Luxury · Organic · Kinetic
   V33.0 — Conversational NEO Uplift
   ============================================ */

/* === PAGE LOAD ENTRANCE === */
@keyframes hero-fade-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes hero-img-reveal {
  0% { opacity: 0; transform: scale(1.05); clip-path: inset(8% 8% 8% 8%); }
  100% { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); }
}
.hero-left { animation: hero-fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-right { animation: hero-img-reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }

/* === IMAGE LOADING SKELETON === */
.work-item img[loading="lazy"],
.gallery-item img[loading="lazy"],
.atelier-img img[loading="lazy"] {
  background: linear-gradient(90deg, #e8e0d6 25%, #f0ebe5 50%, #e8e0d6 75%);
  background-size: 200% 100%;
  animation: img-shimmer 1.5s ease-in-out infinite;
}
@keyframes img-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === ENHANCED GALLERY HOVER === */
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }
.gallery-caption { transform: translateY(8px); opacity: 0.7; transition: all 0.4s ease; }

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:root {
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --ink: #050505;
  --paper: #f9f8f6;
  --warm: #ebe8e4;
  --stone: #b8b3ab;
  --clay: #8a847b;
  --charcoal: #1c1a19;
  --cream: #ffffff;
  --accent: #a39171;
  --accent-soft: rgba(163, 145, 113, 0.15);
  --white: #ffffff;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 0px;
}

html { scroll-behavior: smooth; font-size: 18px; letter-spacing: -0.015em; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
img[width][height] { aspect-ratio: attr(width) / attr(height); height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
p { max-width: 65ch; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 em, h2 em { font-style: normal; font-weight: 500; color: var(--accent); }

.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--clay);
  display: block;
  margin-bottom: 1rem;
}

/* === NAV === */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.5s var(--ease);
}
#navbar.scrolled {
  background: rgba(245, 240, 235, 0.82);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
  padding: 0.8rem 0;
}
.nav-inner {
  max-width: 1640px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
}
.logo-link { display: inline-flex; align-items: center; z-index: 101; max-height: 48px; transition: transform 0.4s var(--ease); overflow: hidden; }
.logo-link:hover { transform: scale(1.02); }
.logo-img { height: 44px; width: auto; max-width: 200px; object-fit: contain; display: block; mix-blend-mode: multiply; filter: contrast(1.05) brightness(0.95); }
.footer-logo { height: 36px; mix-blend-mode: normal; filter: invert(1) opacity(0.85); transition: opacity 0.3s var(--ease); }
.footer-logo:hover { opacity: 1; }

.neo-text-logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--sans);
  color: var(--charcoal);
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}
.neo-text-logo strong {
  font-weight: 800;
  text-transform: uppercase;
}
.neo-text-logo span {
  font-weight: 300;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-text-logo {
  color: var(--paper) !important;
}
.footer-text-logo span {
  color: #a0a0a0 !important;
}
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content:''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch {
  display: flex; gap: 2px;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 3px;
}
.lang-btn {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--stone);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.lang-btn.active { background: var(--ink); color: var(--paper); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.lang-btn:hover:not(.active) { color: var(--charcoal); background: rgba(0,0,0,0.05); }
.nav-links a::after {
  content:''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: none;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.burger {
  display: none; background:none; border:none; cursor:pointer;
  width: 28px; height: 20px; position: relative;
}
.burger span, .burger::before, .burger::after {
  content:''; position: absolute; left:0; width:100%; height: 1.5px;
  background: var(--ink); transition: all 0.3s;
}
.burger::before { top:0; }
.burger span { top:50%; transform:translateY(-50%); }
.burger::after { bottom:0; }
.burger.active::before { transform: rotate(45deg); top:50%; }
.burger.active span { opacity:0; }
.burger.active::after { transform: rotate(-45deg); bottom: auto; top:50%; }

/* === HERO === */
#hero {
  min-height: 100vh;
  padding: 8rem clamp(1.5rem, 4vw, 3rem) 0;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 1640px; margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 70vh;
}
.hero-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--clay);
  margin-bottom: 2rem;
}
#hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero-body {
  font-size: 1.05rem;
  color: var(--charcoal);
  max-width: 420px;
  margin-bottom: 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; align-items: center; }

.btn-dark {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-ghost {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid var(--stone);
  padding-bottom: 2px;
  transition: all 0.3s;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

.hero-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.hero-img-wrap img {
  width: 100%; height: 520px;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero-img-wrap:hover img { transform: scale(1.03); }
.hero-img-tag {
  position: absolute; bottom: 1.2rem; left: 1.2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  background: rgba(0,0,0,0.7);
  padding: 0.4rem 1rem;
  border-radius: 0;
  backdrop-filter: blur(8px);
}

/* Marquee */
.hero-marquee {
  margin-top: 4rem;
  border-top: 1px solid var(--warm);
  border-bottom: 1px solid var(--warm);
  padding: 1rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 2rem;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clay);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === SECTIONS === */
section { padding: clamp(7rem, 12vw, 11rem) clamp(1.5rem, 4vw, 3rem); max-width: 1640px; margin: 0 auto; }
.section-head { margin-bottom: clamp(3rem, 5vw, 5rem); }
.section-head h2 { font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.1; letter-spacing: -0.02em; }
.section-head.light .label { color: var(--stone); }
.section-head.light h2 { color: var(--paper); }

/* === WORK === */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.work-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.work-item.span-2 { grid-column: span 2; }
.work-item img {
  width: 100%; height: 380px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.work-item.span-2 img { height: 480px; }
.work-item:hover img { transform: scale(1.04); }
.work-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s var(--ease);
}
.work-item:hover .work-meta { opacity: 1; transform: translateY(0); }
.work-cat {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.3rem;
  display: block;
}
.work-meta h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.work-meta p { font-size: 0.82rem; opacity: 0.7; }

/* === DIENSTEN (dark) === */
.dark-section {
  background: var(--ink);
  max-width: none;
  padding: clamp(7rem, 12vw, 11rem) clamp(1.5rem, 4vw, 3rem);
}
.dark-section > * { max-width: 1640px; margin-left: auto; margin-right: auto; }
.services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}
.svc {
  padding: 2.5rem;
  background: var(--ink);
  color: var(--paper);
  transition: all 0.5s var(--ease);
  position: relative;
  z-index: 1;
}
.svc::after {
  content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(184,134,11,0.08), transparent 70%);
  opacity: 0; transition: opacity 0.6s var(--ease); z-index: -1;
}
.svc:hover { 
  background: #141210; 
  transform: translateY(-4px); 
  box-shadow: 0 16px 32px rgba(0,0,0,0.5); 
}
.svc:hover::after { opacity: 1; }
.svc-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.5rem;
}
.svc h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-family: var(--serif);
}
.svc > p { font-size: 0.88rem; color: var(--stone); margin-bottom: 1.5rem; line-height: 1.6; }
.svc ul { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1rem; }
.svc li {
  font-size: 0.8rem;
  color: var(--clay);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}
.svc li::before { content:'→'; position:absolute; left:0; color:var(--accent); }

/* === ATELIER === */
.atelier-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.atelier-img img {
  width: 100%; height: 520px;
  object-fit: cover;
  border-radius: 12px;
}
.atelier-content h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}
.lead {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.atelier-content > p { color: var(--clay); font-size: 0.95rem; margin-bottom: 2rem; }
.stats-row { display: flex; gap: 2.5rem; }
.stat-big {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat-sm {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clay);
}

/* === CONTACT === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}
#contact h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.cd { font-size: 0.9rem; line-height: 1.6; }
.cd strong { font-size: 0.7rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--clay); }
.cd a { border-bottom: 1px solid var(--stone); transition: all 0.2s; }
.cd a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid var(--warm);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--cream);
  transition: all 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.btn-dark.full { width: 100%; text-align: center; border: none; cursor: pointer; font-family: var(--sans); }

/* === FOOTER === */
footer {
  border-top: 1px solid var(--warm);
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
}
.footer-inner {
  max-width: 1640px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-left p { font-size: 0.82rem; color: var(--clay); margin-top: 0.5rem; }
.footer-right { text-align: right; }
.footer-right p { font-size: 0.82rem; color: var(--clay); }
.footer-right .small { font-size: 0.72rem; opacity: 0.6; }

/* ═══════════════════════════════════════════════════════════════
   NEO DESIGN HUB v2.0 — Premium Conversational Interface
   One-of-a-kind chat room · Smart · Effortless · Alive
   ═══════════════════════════════════════════════════════════════ */

/* ── Command Tab (collapsed state) ── */
.neo-command-tab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  background: rgba(250, 247, 243, 0.85);
  backdrop-filter: blur(40px) saturate(1.5); -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid rgba(0,0,0,0.08); border-right: none;
  padding: 1.5rem 0.5rem;
  border-radius: 12px 0 0 12px;
  font-family: var(--mono); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em;
  color: var(--accent); cursor: pointer; z-index: 90;
  writing-mode: vertical-rl; text-orientation: mixed;
  box-shadow: -4px 0 16px rgba(0,0,0,0.05); transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.neo-command-tab:hover { background: var(--white); padding-right: 1.2rem; }

/* ── Panel Container ── */
.ai-panel {
  position: fixed; bottom: 5.5rem; right: 2rem;
  width: 420px; max-height: 520px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(40px) saturate(2.2);
  -webkit-backdrop-filter: blur(40px) saturate(2.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  z-index: 95;
  display: none;
  flex-direction: column;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.14),
    0 0 0 1px rgba(255,255,255,0.6) inset,
    0 1px 4px rgba(184,134,11,0.08) inset,
    0 0 80px -20px rgba(184,134,11,0.06);
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.ai-panel.open { display: flex; animation: neo-panel-reveal 0.5s var(--ease) both; }
@keyframes neo-panel-reveal {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ai-panel:hover {
  box-shadow:
    0 28px 90px rgba(0,0,0,0.17),
    0 0 0 1px rgba(255,255,255,0.6) inset,
    0 1px 4px rgba(184,134,11,0.1) inset,
    0 0 100px -20px rgba(184,134,11,0.08);
}

/* Desktop Persistent Sidebar (REMOVED: Now a floating Glassmorphism Drawer) */
@media (min-width: 1024px) {
  .ai-panel {
    bottom: 2rem; right: 2rem; top: auto;
    height: 85vh; max-height: 800px;
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(40px) saturate(2);
    -webkit-backdrop-filter: blur(40px) saturate(2);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    color: var(--white);
  }
  .ai-panel.collapsed { transform: translateY(120%) scale(0.95); opacity: 0; pointer-events: none; }
  .ai-panel.maximized {
    left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important;
    width: 100vw !important; max-width: 100vw !important;
    height: 100vh !important; max-height: 100vh !important;
    border-radius: 0 !important;
    background: rgba(250, 247, 243, 0.98) !important;
    z-index: 9999 !important;
    transform: none !important;
  }
}

/* ── Premium Header ── */
.ai-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  min-height: 64px;
  position: relative;
}
.ai-title {
  display: flex; align-items: center; gap: 0.6rem;
}

/* NEO Avatar */
.neo-avatar {
  position: relative;
  width: 36px; height: 36px;
  flex-shrink: 0;
}
.neo-avatar svg { display: block; }
.neo-avatar-pulse {
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: avatar-breathe 3s ease-in-out infinite;
}
@keyframes avatar-breathe {
  0%, 100% { opacity: 0; transform: scale(0.95); }
  50% { opacity: 0.3; transform: scale(1.05); }
}

.neo-title-group {
  display: flex; flex-direction: column; gap: 0;
}
.neo-name {
  font-family: var(--mono); font-weight: 700;
  font-size: 0.92rem; color: var(--cream);
  letter-spacing: 0.06em; line-height: 1.2;
}
.neo-sub {
  font-size: 0.62rem; font-weight: 400;
  color: #a0a0a0; letter-spacing: 0.02em;
}

/* Context Meter */
.neo-context-meter {
  position: relative;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: help;
}
.neo-context-meter svg { display: block; }
#contextRing {
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.context-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.45rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* Header Action Buttons */
.ai-header-actions { display: flex; align-items: center; gap: 0.2rem; }
.ai-header-btn {
  background: none; border: none; cursor: pointer;
  color: #cccccc;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: all 0.2s var(--ease);
}
.ai-header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
}
.ai-header-btn.active {
  background: var(--accent); color: var(--ink);
}
.ai-header-btn svg { flex-shrink: 0; }

/* ── Mesh Status Strip ── */
.mesh-status-strip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(184, 134, 11, 0.03);
  border-bottom: 1px solid rgba(184, 134, 11, 0.06);
  font-size: 0.7rem; color: var(--clay);
  cursor: pointer; transition: background 0.2s;
}
.mesh-status-strip:hover { background: rgba(184, 134, 11, 0.06); }
.mesh-indicator {
  width: 7px; height: 7px; border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}
.mesh-indicator.ok { color: #22c55e; background: #22c55e; }
.mesh-indicator.warn { color: #eab308; background: #eab308; }
.mesh-indicator.error { color: #ef4444; background: #ef4444; }

.mesh-diagnostics {
  display: none; padding: 1rem;
  background: rgba(250,247,243,0.97); border-bottom: 1px solid var(--warm);
  font-family: var(--mono); font-size: 0.7rem; color: var(--clay);
  position: absolute; top: 64px; left: 0; right: 0; z-index: 10;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mesh-diagnostics.active { display: block; }
.mesh-diagnostics h4 { color: var(--ink); font-size: 0.75rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse-dot 2s infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── Messages Area ── */
.ai-messages {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 1.2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,134,11,0.2) transparent;
}
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb {
  background: rgba(184,134,11,0.2); border-radius: 4px;
}
.ai-messages::-webkit-scrollbar-thumb:hover { background: rgba(184,134,11,0.35); }

/* ── Message Bubbles ── */
.ai-msg {
  max-width: 82%; font-size: 0.9rem; line-height: 1.6;
  animation: msg-enter 0.4s var(--ease) both;
  transition: transform 0.2s var(--ease);
}
.ai-msg p { margin: 0; }

.ai-msg.bot {
  background: #ffffff;
  padding: 1rem 1.2rem;
  border-radius: 6px 16px 16px 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  border-left: 3px solid var(--accent);
  position: relative;
  animation-name: msg-enter-left;
}
.ai-msg.bot:hover {
  transform: translateX(2px);
}
.ai-msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.2rem;
  border-radius: 16px 16px 6px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  animation-name: msg-enter-right;
}
.ai-msg.user:hover {
  transform: translateX(-2px);
}

@keyframes msg-enter-left {
  from { opacity: 0; transform: translateX(-16px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes msg-enter-right {
  from { opacity: 0; transform: translateX(16px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes msg-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typing Indicator — Neural Wave */
.ai-msg.typing {
  background: transparent;
  border: none;
  box-shadow: none;
  border-left: none;
  padding: 0.5rem 0;
}
.ai-msg.typing .dots {
  display: inline-flex; gap: 5px;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(184,134,11,0.06);
  border-radius: 14px;
  border: 1px solid rgba(184,134,11,0.08);
}
.ai-msg.typing .dots span {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: neo-wave-dot 1.4s ease-in-out infinite;
}
.ai-msg.typing .dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-msg.typing .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes neo-wave-dot {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-5px) scale(1.2); opacity: 1; }
}

/* ── Welcome Screen ── */
.neo-welcome {
  text-align: center;
  padding: 1rem 0.5rem 0.5rem;
}
.neo-welcome-greeting {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.3rem;
}
.neo-wave {
  font-size: 1.8rem;
  animation: wave-hand 2s ease-in-out 0.5s 1;
  display: inline-block;
}
@keyframes wave-hand {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-4deg); }
  75% { transform: rotate(10deg); }
}
.neo-welcome h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 400;
  margin: 0;
}
.neo-welcome-text {
  font-size: 0.82rem;
  color: var(--clay);
  line-height: 1.55;
  max-width: 32ch;
  margin: 0 auto;
}
.neo-welcome-text strong { color: var(--accent); }

/* ── Bento v2 ── */
.neo-bento-v2 {
  display: flex; flex-direction: column;
  gap: 0.6rem;
  padding: 0 0.25rem;
}

/* Upload CTA */
.neo-upload-cta {
  display: flex; align-items: center; gap: 0.8rem;
  width: 100%; padding: 0.7rem 1rem;
  background: linear-gradient(135deg, rgba(184,134,11,0.05), rgba(212,168,68,0.08));
  border: 1.5px dashed rgba(184,134,11,0.25);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  color: var(--ink);
}
.neo-upload-cta:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(184,134,11,0.08), rgba(212,168,68,0.12));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,134,11,0.1);
}
.neo-upload-ring {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.neo-upload-ring svg {
  animation: upload-ring-spin 12s linear infinite;
}
@keyframes upload-ring-spin {
  to { transform: rotate(360deg); }
}
.neo-upload-icon {
  position: absolute;
  font-size: 1.2rem;
}
.neo-upload-text {
  text-align: left; flex: 1;
}
.neo-upload-text strong {
  display: block; font-size: 0.82rem;
  color: var(--accent); letter-spacing: 0.01em;
}
.neo-upload-text small {
  display: block; font-size: 0.68rem;
  color: var(--clay); margin-top: 1px;
}

/* Bento Grid v2 */
.bento-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.bento-card {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  background: var(--white);
  border: 1px solid rgba(184, 134, 11, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  text-align: left;
}
.bento-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,134,11,0.1);
}
.bento-card:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}
.bento-icon {
  font-size: 1.1rem;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(184,134,11,0.06);
  border-radius: 8px;
  flex-shrink: 0;
}
.bento-text {
  flex: 1; min-width: 0;
}
.bento-text strong {
  display: block; font-size: 0.78rem;
  color: var(--ink); font-weight: 600;
}
.bento-text small {
  display: block; font-size: 0.62rem;
  color: var(--clay); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bento-arrow {
  font-size: 0.8rem; color: var(--stone);
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.bento-card:hover .bento-arrow {
  transform: translateX(3px); color: var(--accent);
}

/* ── Smart Input Bar ── */
.neo-input-bar {
  display: flex; align-items: flex-end; gap: 0.5rem;
  margin: 0.5rem 1rem 1.2rem 1rem;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(184,134,11,0.1);
  border-radius: 22px;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05), 0 0 0 0.5px rgba(255,255,255,0.5) inset;
  transition: all 0.35s var(--ease);
}
.neo-input-bar:focus-within {
  border-color: rgba(184,134,11,0.3);
  box-shadow: 0 6px 32px rgba(0,0,0,0.06), 0 0 0 3px rgba(184,134,11,0.08), 0 0 0 0.5px rgba(255,255,255,0.5) inset;
  background: rgba(255, 255, 255, 0.9);
}
.neo-input-wrap {
  flex: 1; position: relative;
}
.neo-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.65rem 0.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  transition: all 0.25s var(--ease);
}
.neo-input-wrap input:focus {
  outline: none;
  box-shadow: none;
}
.neo-input-wrap input::placeholder {
  color: var(--stone);
  transition: opacity 0.3s;
}
.neo-input-wrap input:focus::placeholder { opacity: 0.5; }

/* Smart-compose hint */
.neo-smart-hint {
  position: absolute;
  bottom: -16px; left: 0.85rem; right: 0.85rem;
  font-size: 0.6rem;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s var(--ease);
  pointer-events: none;
}
.neo-input-wrap input:focus ~ .neo-smart-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Input Action Buttons */
.neo-input-actions {
  display: flex; gap: 0.25rem;
  align-items: center;
}
.neo-action-btn {
  background: none;
  border: 1px solid rgba(184, 134, 11, 0.1);
  width: 34px; height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--clay);
  transition: all 0.2s var(--ease);
}
.neo-action-btn:hover {
  background: rgba(184, 134, 11, 0.06);
  border-color: var(--accent);
  color: var(--accent);
}
.neo-action-btn.listening {
  background: #ef4444; border-color: #ef4444; color: white;
  animation: pulse-mic 1s infinite;
}
@keyframes pulse-mic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.neo-send-btn {
  background: linear-gradient(135deg, var(--ink), #1a1815);
  border: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  transition: all 0.3s var(--ease);
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}
.neo-send-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent), #d4a844);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.neo-send-btn:hover {
  transform: translateX(2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(184,134,11,0.25);
}
.neo-send-btn:hover::before { opacity: 1; }
.neo-send-btn svg { position: relative; z-index: 1; }

/* ── Suggestion Chips v2 ── */
.neo-suggestions {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  padding: 0.15rem 0;
}
.neo-suggestion-chip {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 134, 11, 0.12);
  color: var(--charcoal);
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.3;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  max-width: 100%;
  text-align: left;
  animation: chip-enter-v2 0.4s var(--ease) both;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.neo-suggestion-chip:hover {
  border-color: var(--accent);
  background: rgba(184,134,11,0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(184,134,11,0.1);
}
.neo-suggestion-chip:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}
.neo-suggestion-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@keyframes chip-enter-v2 {
  from { opacity: 0; transform: translateY(10px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Formatted Text ── */
.neo-bullet { color: var(--accent); font-weight: 600; margin-right: 0.1rem; }
.ai-msg.bot strong { color: var(--charcoal); font-weight: 600; }

/* ── Share Buttons ── */
.ai-share {
  display: flex; gap: 0.3rem;
  margin-top: 0.5rem; padding-top: 0.4rem;
  border-top: 1px solid rgba(184,134,11,0.06);
}
.ai-share button {
  background: none;
  border: 1px solid rgba(184,134,11,0.1);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--clay);
}
.ai-share button:hover {
  background: rgba(184,134,11,0.06);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Degraded Mode Notice ── */
.neo-degraded-notice {
  padding: 0.5rem 0.8rem; margin-top: 0.5rem;
  background: rgba(184,134,11,0.06);
  border: 1px solid rgba(184,134,11,0.12);
  border-radius: 10px; font-size: 0.7rem; color: var(--accent);
  animation: neo-draw-fade 0.5s ease;
  line-height: 1.4;
}
@keyframes neo-draw-fade {
  0% { opacity:0; transform:translateY(5px); }
  100% { opacity:1; transform:translateY(0); }
}

/* ── Agentic Widgets ── */
.neo-agentic-widget {
  margin-top: 0.8rem;
  background: var(--white);
  border: 1px solid rgba(184,134,11,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  animation: widget-enter 0.5s var(--ease) both;
}
.neo-widget-header {
  padding: 0.7rem 1rem;
  background: rgba(184,134,11,0.03);
  border-bottom: 1px solid rgba(184,134,11,0.06);
  font-family: var(--sans); font-weight: 600;
  font-size: 0.82rem; color: var(--charcoal);
  display: flex; align-items: center; gap: 0.5rem;
}
.neo-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.5rem; padding: 1rem;
}
.neo-material-swatch {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  background: transparent; border: none;
  cursor: pointer; transition: transform 0.2s var(--ease);
}
.neo-material-swatch:hover { transform: translateY(-2px); }
.swatch-color {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.neo-material-swatch span {
  font-family: var(--sans); font-size: 0.7rem; color: var(--clay);
}
@keyframes widget-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Lead Form */
.neo-lead-form {
  display: flex; flex-direction: column;
  gap: 0.5rem; padding: 1rem;
}
.neo-lead-form input {
  padding: 0.75rem;
  border: 1px solid rgba(184,134,11,0.12);
  border-radius: 10px; background: var(--cream);
  font-family: var(--sans); font-size: 0.88rem;
  transition: border-color 0.2s;
}
.neo-lead-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.08);
}
.neo-lead-btn {
  margin-top: 0.5rem; padding: 0.75rem;
  background: var(--ink); color: var(--white);
  border: none; border-radius: 10px;
  font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.neo-lead-btn:hover { background: var(--accent); color: var(--ink); }
.neo-lead-success {
  padding: 1rem; text-align: center;
  color: #1b5e20; font-weight: 500;
  background: #e8f5e9; border-radius: 0 0 14px 14px;
}
.neo-hp {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}
.neo-lead-label {
  display: flex; flex-direction: column;
  gap: 0.25rem; font-size: 0.78rem; color: var(--clay);
}
.neo-lead-gdpr {
  display: flex; align-items: flex-start;
  gap: 0.5rem; font-size: 0.72rem;
  margin-top: 0.25rem; line-height: 1.35;
}
.neo-lead-gdpr input { margin-top: 0.2rem; flex-shrink: 0; }
.neo-lead-gdpr a { color: var(--charcoal); text-decoration: underline; }
.neo-lead-error {
  padding: 0.6rem 0.75rem; background: #ffebee;
  color: #b71c1c; border-radius: 10px; font-size: 0.82rem;
}
/* ═══════════════════════════════════════════════════════════════
   NEO v2.1 — Final Premium Uplift
   Streaming · Thinking · Toolbar · Search · Timestamps
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Typewriter Cursor ── */
.neo-cursor {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--accent);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: neo-blink 0.8s step-end infinite;
  border-radius: 1px;
}
@keyframes neo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── 2. "Thinking Out Loud" Status ── */
.neo-thinking-label {
  display: block;
  font-size: 0.68rem;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 0.03em;
  margin-top: 0.3rem;
  background: linear-gradient(90deg, var(--accent) 0%, var(--clay) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: neo-shimmer-text 2.5s linear infinite;
}
@keyframes neo-shimmer-text {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 3. SVG Message Toolbar (hover reveal) ── */
.neo-msg-toolbar {
  display: flex; gap: 0.2rem;
  margin-top: 0.45rem; padding-top: 0.35rem;
  border-top: 1px solid rgba(184,134,11,0.06);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s var(--ease);
  pointer-events: none;
}
.ai-msg.bot:hover .neo-msg-toolbar,
.ai-msg.bot:focus-within .neo-msg-toolbar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.neo-toolbar-btn {
  background: none;
  border: 1px solid rgba(184,134,11,0.08);
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.65rem; font-family: var(--sans);
  color: var(--clay);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.neo-toolbar-btn:hover {
  background: rgba(184,134,11,0.06);
  border-color: var(--accent);
  color: var(--accent);
}
.neo-toolbar-btn svg { flex-shrink: 0; }
.neo-toolbar-btn.neo-copied {
  border-color: #22c55e; color: #22c55e;
}

/* ── 4. Conversation Search ── */
.neo-search-bar {
  display: none;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid rgba(184,134,11,0.08);
  background: rgba(250,247,243,0.95);
}
.neo-search-bar.active { display: flex; align-items: center; gap: 0.4rem; }
.neo-search-bar input {
  flex: 1;
  border: 1px solid rgba(184,134,11,0.12);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s;
}
.neo-search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184,134,11,0.08);
}
.neo-search-bar .neo-search-close {
  background: none; border: none; cursor: pointer;
  color: var(--clay); padding: 0.25rem;
  border-radius: 4px; transition: color 0.2s;
  display: flex; align-items: center;
}
.neo-search-bar .neo-search-close:hover { color: var(--accent); }
.neo-search-hit {
  background: rgba(184,134,11,0.18);
  border-radius: 2px;
  padding: 0 1px;
  color: inherit;
  box-shadow: 0 0 0 1px rgba(184,134,11,0.25);
}

/* ── 5. Avatar Thinking Pulse ── */
.neo-avatar.thinking .neo-avatar-pulse {
  animation: avatar-think-pulse 0.8s ease-in-out infinite;
  opacity: 0.5;
}
.neo-avatar.thinking svg circle:first-of-type {
  animation: avatar-ring-glow 1.2s ease-in-out infinite;
}
@keyframes avatar-think-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.12); }
}
@keyframes avatar-ring-glow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.35; }
}

/* ── 6. Response Timestamps ── */
.neo-timestamp {
  display: block;
  text-align: right;
  font-size: 0.58rem;
  font-family: var(--mono);
  color: var(--stone);
  margin-top: 0.35rem;
  opacity: 0.5;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}
.ai-msg:hover .neo-timestamp { opacity: 0.9; }

/* ── 7. Keyboard Shortcut Hint ── */
.neo-shortcut-hint {
  position: absolute;
  bottom: -15px; right: 0.85rem;
  font-size: 0.55rem;
  font-family: var(--mono);
  color: var(--stone);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.neo-input-wrap input:not(:focus) ~ .neo-shortcut-hint {
  opacity: 0.6;
}
.neo-shortcut-kbd {
  background: rgba(184,134,11,0.08);
  border: 1px solid rgba(184,134,11,0.12);
  border-radius: 3px;
  padding: 0 3px;
  font-size: 0.5rem;
}

/* ── 8. Image Generation Container (GenUI Card) ── */
.neo-gen-card {
  margin-top: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.neo-gen-card img {
  width: 100%;
  height: auto;
  display: block;
}
.neo-gen-header {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250,247,243,0.8);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.neo-gen-header span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.neo-gen-dl {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}
.neo-gen-dl:hover { opacity: 0.8; }

.neo-img-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.8rem;
  padding: 3rem 1rem;
  color: var(--accent); font-family: var(--mono); font-size: 0.7rem;
}

/* ── AI Animations & GenUI Skeleton ── */
.neo-glide-in {
  animation: glideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes glideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.neo-skeleton {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonLoad 1.5s infinite linear;
}
@keyframes skeletonLoad {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.neo-pulse-glow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, rgba(184,134,11,0) 70%);
  animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes pulseGlow {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* ── Global Hardening ── */
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { content-visibility: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none !important; }
  .neo-upload-ring svg { animation: none !important; }
  .neo-avatar-pulse { animation: none !important; }
  .neo-wave { animation: none !important; }
  .neo-cursor { animation: none !important; }
  .neo-thinking-label { animation: none !important; -webkit-text-fill-color: var(--accent) !important; }
  .hero-left, .hero-right { animation: none !important; }
}

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 2rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1640px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.cookie-inner p { font-size: 0.82rem; color: var(--stone); max-width: 600px; }
.cookie-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.cookie-btn { padding: 0.6rem 1.5rem; font-size: 0.78rem; }
.cookie-link { font-size: 0.75rem; color: var(--clay); border-bottom: 1px solid var(--clay); }

/* === REVIEWS === */
.reviews-section { background: var(--cream); max-width: none; padding: clamp(5rem,10vw,9rem) clamp(1.5rem,4vw,3rem); }
.reviews-section > * { max-width: 1640px; margin-left: auto; margin-right: auto; }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.review-card {
  background: var(--paper);
  border: 1px solid var(--warm);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); }
.review-stars { color: var(--accent); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.review-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.review-author { border-top: 1px solid var(--warm); padding-top: 1rem; }
.review-name { font-weight: 600; font-size: 0.85rem; display: block; }
.review-loc { font-family: var(--mono); font-size: 0.65rem; color: var(--clay); text-transform: uppercase; letter-spacing: 0.1em; }

/* === PROCESS STEPS === */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}
.step h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.step p {
  font-size: 0.85rem;
  color: var(--clay);
  line-height: 1.6;
}
.step-line {
  width: 60px;
  height: 1px;
  background: var(--warm);
  margin-top: 2rem;
  flex-shrink: 0;
}

/* === FORM STATUS === */
.form-status {
  font-size: 0.82rem;
  padding: 0.5rem 0;
  min-height: 1.5rem;
}
.form-status.success { color: #22c55e; }
.form-status.error { color: #ef4444; }

/* === GDPR CHECKBOX === */
.gdpr-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--clay);
  cursor: pointer;
  line-height: 1.4;
}
.gdpr-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
}
.gdpr-check a { color: var(--ink); text-decoration: underline; }

/* === MANUFACTURING EXCELLENCE === */
.section-sub {
  font-size: 0.9rem;
  color: var(--clay);
  margin-top: 0.5rem;
  max-width: 50ch;
}
.mfg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.mfg-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s var(--ease);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}
.mfg-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(184,134,11,0.5);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.15);
}
.mfg-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.mfg-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}
.mfg-card p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  max-width: 30ch;
  margin: 0 auto;
}

/* === MATERIAL & FINISH LIBRARY === */
.materials-section {
  background: var(--paper);
}
.mat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.mat-card {
  text-align: center;
  transition: transform 0.3s;
}
.mat-card:hover { transform: translateY(-3px); }
.mat-swatch {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.mat-card h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.mat-card p {
  font-size: 0.75rem;
  color: var(--clay);
  line-height: 1.4;
  max-width: 25ch;
  margin: 0 auto;
}

/* === STICKY QUOTE BUTTON (mobile) === */
.sticky-quote {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--sans);
  transition: background 0.3s;
}
.sticky-quote:hover { background: var(--accent); color: var(--ink); }

/* === VERTO GROUP LINK === */
.verto-link {
  font-size: 0.78rem;
  color: var(--clay);
  margin-top: 1.5rem;
  font-style: italic;
}
.verto-link a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.verto-link a:hover { border-color: var(--accent); }

/* === EXPANDED GALLERY === */
.gallery-section {
  padding: var(--pad) var(--side);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* === FAQ SECTION === */
.faq-section {
  padding: var(--pad) var(--side);
  max-width: 800px;
  margin: 0 auto;
}
.faq-list {
  margin-top: 2rem;
}
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.faq-item summary {
  padding: 1.2rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--clay);
  transition: transform 0.3s;
}
.faq-item[open] summary::after {
  content: '\2212';
  transform: rotate(180deg);
}
.faq-item p {
  padding: 0 0 1.2rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--clay);
  max-width: 75ch;
}
.faq-item[open] p {
  animation: faq-reveal 0.3s ease;
}
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === SVG ICONS IN MFG === */
.mfg-icon svg {
  stroke: var(--accent);
}

/* === SOCIAL LINKS === */
.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.footer-social a {
  color: var(--clay);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--accent); }
.footer-social svg { display: block; }

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* === DIMENSION CALCULATOR === */
.ai-dims {
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dims-toggle {
  font-size: 0.72rem;
  color: var(--clay);
  cursor: pointer;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.dims-toggle:hover { color: var(--accent); }
.dims-fields {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.dims-fields input {
  flex: 1;
  min-width: 70px;
  padding: 0.4rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--sans);
  text-align: center;
}
.dims-fields button {
  padding: 0.4rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.dims-fields button:hover { background: var(--accent); color: var(--ink); }



/* === ZERO HORIZONTAL SCROLL === */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* === FOOTER CENTER === */
.footer-center { text-align: center; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.78rem;
  color: var(--clay);
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.footer-links a:hover { color: var(--accent); border-color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .hero-img-wrap img { height: 300px; }
  .services-row { grid-template-columns: 1fr; }
  .mfg-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .atelier-grid { grid-template-columns: 1fr; }
  .atelier-img { order: -1; }
  .atelier-img img { height: 320px; }
  .contact-layout { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; }
  .step-line { width: 1px; height: 40px; }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: fixed; inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.8rem; font-family: var(--serif); }
  .nav-cta { display: none; }
  .burger { display: block; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item.span-2 { grid-column: span 1; }
  .work-item img, .work-item.span-2 img { height: 280px; }
  .mfg-grid { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-quote { display: block; }
  .ai-fab { bottom: 4rem; }
  .stats-row { gap: 1.5rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-right { text-align: center; }
  .footer-links { justify-content: center; }
  .ai-panel { right: 1rem; left: 1rem; width: auto; bottom: 5rem; border-radius: 20px; }
  .bento-grid-v2 { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; text-align: center; }
}

/* === iPhone & Small Mobile (≤428px: iPhone 14 Pro Max) === */
@media (max-width: 428px) {
  h1, .hero-left h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .hero-label { font-size: 0.6rem; }
  .hero-body { font-size: 0.85rem; }
  .hero-img-wrap img { height: 240px; border-radius: 8px; }
  .hero-img-tag { font-size: 0.55rem; padding: 0.3rem 0.6rem; }
  .hero-ctas .btn-dark, .hero-ctas .btn-ghost { width: 100%; text-align: center; padding: 1rem; font-size: 0.75rem; }
  section { padding: clamp(3rem,8vw,5rem) 1rem; }
  .section-head { margin-bottom: 2rem; }
  .work-item img, .work-item.span-2 img { height: 200px; }
  .work-meta h3 { font-size: 1rem; }
  .svc { padding: 1.5rem; }
  .svc-num { font-size: 0.55rem; }
  .svc h3 { font-size: 1rem; }
  .review-card { padding: 1.5rem; }
  .review-text { font-size: 0.88rem; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: 0.8rem; }
  .stat-big { font-size: 2rem; }
  .contact-form input, .contact-form select, .contact-form textarea {
    font-size: 16px; /* Prevent iOS zoom on focus */
    padding: 0.8rem 0.6rem;
  }
  .contact-form .btn-dark { padding: 1rem; font-size: 0.8rem; }
  .ai-panel {
    position: fixed;
    right: 0; left: 0; bottom: 0;
    width: 100%; height: 70vh;
    border-radius: 16px 16px 0 0;
  }
  .ai-fab { right: 1rem; bottom: 1rem; width: 48px; height: 48px; }
  .fab-badge { font-size: 0.45rem; }
  .neo-input-wrap input { font-size: 16px; } /* Prevent iOS zoom */
  .footer-inner { padding: 2rem 1rem; }
  .footer-links { flex-direction: column; gap: 0.5rem; }
  .nav-inner { padding: 0 0.75rem; }
  .logo-img { height: 32px; }
  .lang-btn { padding: 0.2rem 0.4rem; font-size: 0.55rem; }
  .map-wrap iframe { height: 160px; }
}

/* === iPhone SE / Small (≤375px) === */
@media (max-width: 375px) {
  h1, .hero-left h1 { font-size: 1.8rem; }
  .hero-img-wrap img { height: 200px; }
  .stats-row { flex-direction: column; gap: 1rem; }
  .ai-panel { height: 80vh; }
}

/* =========================================================================
   V25.3 NEO DESIGN HUB — UNIFIED (Chat + Studio in one panel)
   ========================================================================= */

/* Hub Tabs */
.hub-tabs {
  display: flex; gap: 2px; margin: 0 0.5rem;
}
.hub-tab {
  padding: 0.35rem 0.8rem; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.04em; color: #666; background: transparent;
  border: 1px solid transparent; border-bottom: none;
  border-radius: 4px 4px 0 0; cursor: pointer; transition: 0.2s;
}
.hub-tab:hover { color: #aaa; }
.hub-tab.active {
  color: #22c55e; background: #1a2e1f; border-color: #22c55e;
}

/* Hub Content Panels */
.hub-content { display: none; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.hub-content.active { display: flex; }

/* Chat tab inherits existing .ai-messages / .ai-input / .ai-dims styles */
.hub-chat { flex: 1 1 auto; min-height: 0; position: relative; }

/* Studio tab content */
.hub-studio { flex: 1; overflow: hidden; }
.hub-studio .studio-ui { display: flex; flex-direction: column; width: 100%; height: 100%; }

/* === STUDIO MODE: When active, expand panel to fullscreen === */
.ai-panel.studio-mode {
  position: fixed !important; inset: 0 !important;
  width: 100% !important; max-width: 100% !important; height: 100% !important;
  border-radius: 0 !important; z-index: 10000;
  transition: all 350ms cubic-bezier(0.19, 1, 0.22, 1);
}
.ai-panel.studio-mode .ai-header {
  background: #0d0d0f; border-bottom: 1px solid #2a2a30;
}

/* === STUDIO-MAXIMIZED: Hide config/insight rails === */
.ai-panel.studio-maximized .studio-rail,
.ai-panel.studio-maximized .studio-insight {
  width: 0; min-width: 0; overflow: hidden; padding: 0; border: none;
  transition: all 350ms cubic-bezier(0.19, 1, 0.22, 1);
}

/* Top Utility Bar */
.studio-ui { display: flex; flex-direction: column; width: 100%; height: 100%; }
.studio-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 1rem; height: 48px; min-height: 48px;
  background: #151518; border-bottom: 1px solid #2a2a30;
}
.studio-brand { display: flex; align-items: center; gap: 0.6rem; }
.studio-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; flex-shrink: 0; }
.studio-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: #fff; }
.studio-subtitle { font-size: 0.72rem; color: #888; margin-left: 0.5rem; }
.studio-actions { display: flex; align-items: center; gap: 0.4rem; }
.studio-export-group { display: flex; gap: 0.25rem; }
.studio-btn {
  background: #1e1e22; border: 1px solid #333; color: #ccc;
  padding: 0.35rem 0.7rem; font-size: 0.72rem; cursor: pointer;
  border-radius: 4px; transition: 0.2s; white-space: nowrap;
}
.studio-btn:hover { background: #2a2a30; color: #fff; border-color: #555; }
.studio-btn-primary { background: #1a5c2e; border-color: #22c55e; color: #22c55e; }
.studio-btn-primary:hover { background: #22c55e; color: #000; }
.studio-btn-close { background: transparent; border: none; color: #888; font-size: 1rem; }
.studio-btn-close:hover { color: #fff; }

/* Studio Body: 3-rail layout */
.studio-body { display: flex; flex: 1; overflow: hidden; }

/* Left Rail */
.studio-rail {
  width: 280px; min-width: 280px; background: #131316;
  border-right: 1px solid #2a2a30;
  overflow-y: auto; padding: 0.75rem;
}
.rail-section { margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #1e1e22; }
.rail-section:last-child { border-bottom: none; }
.rail-title { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; color: #888; margin-bottom: 0.5rem; text-transform: uppercase; }
.rail-select {
  width: 100%; padding: 0.4rem; background: #1e1e22; border: 1px solid #333;
  color: #e0e0e0; font-size: 0.78rem; border-radius: 4px;
}

/* Dimension controls */
.dim-control { margin-bottom: 0.6rem; }
.dim-control label { display: flex; justify-content: space-between; font-size: 0.75rem; color: #ccc; margin-bottom: 0.25rem; }
.dim-control strong { color: #fff; }
.dim-range { font-size: 0.6rem; color: #555; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; margin: 0.25rem 0; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; height: 14px; width: 14px; border-radius: 50%;
  background: #fff; cursor: pointer; margin-top: -5px;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%; height: 4px; cursor: pointer; background: #333; border-radius: 2px;
}
input[type=range]:focus { outline: none; }

/* Material buttons */
.material-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.mat-btn {
  display: flex; align-items: center; gap: 0.4rem;
  background: #1a1a1e; border: 1px solid #2a2a30; color: #888;
  padding: 0.45rem 0.5rem; font-size: 0.68rem; cursor: pointer;
  border-radius: 4px; transition: 0.2s;
}
.mat-btn:hover { background: #222; color: #ddd; }
.mat-btn.active { border-color: #22c55e; color: #fff; background: #1a2e1f; }
.mat-swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; border: 1px solid #444; }

/* Checkboxes */
.rail-checkbox { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: #ccc; margin-bottom: 0.4rem; cursor: pointer; }
.rail-checkbox input { accent-color: #22c55e; }

/* Markov guidance */
.markov-guidance { background: #1a1e24; border: 1px solid #2a3a30; border-radius: 6px; padding: 0.75rem !important; }
.markov-guidance p { font-size: 0.75rem; color: #88ccaa; margin: 0; line-height: 1.4; }

/* Center viewport */
.studio-center { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.viewport-toolbar {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.3rem 0.5rem; background: #151518;
  border-bottom: 1px solid #2a2a30;
}
.vp-btn {
  background: #1a1a1e; border: 1px solid #2a2a30; color: #888;
  padding: 0.3rem 0.6rem; font-size: 0.68rem; cursor: pointer;
  border-radius: 3px; transition: 0.2s;
}
.vp-btn:hover { color: #fff; background: #2a2a30; }
.vp-btn.active { background: #2a3a30; color: #22c55e; border-color: #22c55e; }
.vp-sep { width: 1px; height: 18px; background: #333; margin: 0 0.3rem; }
.studio-viewport { flex: 1; position: relative; background: #0a0a0c; overflow: hidden; }
.studio-viewport canvas { display: block; width: 100% !important; height: 100% !important; }

/* Right insight rail */
.studio-insight {
  width: 260px; min-width: 260px; background: #131316;
  border-left: 1px solid #2a2a30;
  overflow-y: auto; padding: 0.75rem;
}

/* BOM table */
.bom-table { width: 100%; border-collapse: collapse; font-size: 0.68rem; }
.bom-table th { text-align: left; color: #666; font-weight: 500; padding: 0.3rem 0.2rem; border-bottom: 1px solid #2a2a30; }
.bom-table td { padding: 0.25rem 0.2rem; color: #ccc; border-bottom: 1px solid #1a1a1e; }
.bom-total td { font-weight: 700; color: #fff; border-top: 1px solid #333; }

/* Hardware rows */
.hw-row { display: flex; justify-content: space-between; font-size: 0.72rem; color: #aaa; margin-bottom: 0.35rem; }
.hw-row span:last-child { color: #fff; font-weight: 600; }

/* Price breakdown */
.price-breakdown { margin-bottom: 0.5rem; }
.price-row { display: flex; justify-content: space-between; font-size: 0.72rem; color: #aaa; margin-bottom: 0.3rem; }
.price-row span:last-child { color: #ccc; }
.price-total { border-top: 1px solid #333; padding-top: 0.4rem; margin-top: 0.3rem; }
.price-total span { color: #fff !important; font-weight: 700; font-size: 0.85rem; }
.price-note { font-size: 0.62rem; color: #555; font-style: italic; line-height: 1.3; }

/* Validation */
.validation-list { font-size: 0.72rem; }
.val-ok { color: #22c55e; margin-bottom: 0.25rem; }
.val-warn { color: #f59e0b; margin-bottom: 0.25rem; }
.val-error { color: #ef4444; margin-bottom: 0.25rem; }

/* Bottom status bar */
.studio-statusbar {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 1rem; height: 28px; min-height: 28px;
  background: #151518; border-top: 1px solid #2a2a30;
  font-size: 0.62rem; color: #555;
}
.status-right { margin-left: auto; color: #444; }

/* Studio responsive */
@media (max-width: 1024px) {
  .studio-body { flex-direction: column; }
  .studio-rail, .studio-insight { width: 100%; min-width: auto; max-height: 30vh; flex-direction: row; flex-wrap: wrap; }
  .studio-center { min-height: 40vh; }
}
@media (max-width: 768px) {
  .studio-actions { flex-wrap: wrap; }
  .studio-export-group { display: none; }
  .studio-insight { display: none; }
}

/* =========================================================================
   WAVE 6: HERO STUDIO CTA + ACCESSIBILITY + NEO PROPOSAL
   ========================================================================= */

/* ── Hero Studio CTA ── */
.btn-studio-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.8rem; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; border-radius: 6px;
  background: linear-gradient(135deg, #16a34a, #22c55e, #4ade80);
  background-size: 200% 200%;
  color: #fff; transition: all 0.35s ease;
  animation: cta-gradient-shift 4s ease infinite;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}
.btn-studio-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.45);
}
.studio-cta-icon { font-size: 0.7rem; opacity: 0.8; }
@keyframes cta-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (max-width: 768px) {
  .btn-studio-cta { width: 100%; justify-content: center; }
}

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
  z-index: 99999; background: #fff; color: #000;
  padding: 0.8rem 1.5rem; font-size: 0.85rem; font-weight: 600;
  border-radius: 0 0 8px 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Keyboard Focus Outlines ── */
.keyboard-nav *:focus {
  outline: 2px solid #22c55e !important;
  outline-offset: 2px;
}
.keyboard-nav *:focus:not(:focus-visible) { outline: none !important; }

/* ── NEO Proposal in AI Chat ── */
.neo-proposal p { font-size: 0.82rem; line-height: 1.6; }
.neo-apply-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.2rem; margin-top: 0.5rem;
  background: #22c55e; color: #000; border: none;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  border-radius: 5px; transition: 0.2s;
}
.neo-apply-btn:hover { background: #4ade80; transform: scale(1.03); }

/* ── Maximize Studio Mode ── */
.neo-studio-overlay {
  transition: all 350ms cubic-bezier(0.19, 1, 0.22, 1);
}
.neo-studio-overlay.maximized .studio-rail,
.neo-studio-overlay.maximized .studio-insight {
  width: 0; min-width: 0; overflow: hidden;
  padding: 0; border: none;
  transition: all 350ms cubic-bezier(0.19, 1, 0.22, 1);
}
.neo-studio-overlay.maximized .studio-center {
  flex: 1;
}
.neo-studio-overlay.maximized .studio-topbar {
  background: rgba(21, 21, 24, 0.85);
  backdrop-filter: blur(12px);
}
.neo-studio-overlay.maximized .studio-statusbar {
  background: rgba(21, 21, 24, 0.85);
  backdrop-filter: blur(12px);
}

/* ── Dimension Labels (CSS2DRenderer overlay) ── */
.dim-label {
  color: #00ff88 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  background: rgba(0, 0, 0, 0.75) !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  border: 1px solid rgba(0, 255, 136, 0.3) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  user-select: none;
}

/* ── Dims button active state ── */
#btnDims.active { background: #2a3a30; color: #00ff88; border-color: #00ff88; }

/* =========================================================================
   V27.0 — DRAWINGS & PRODUCTION TABS
   ========================================================================= */

/* ── Drawings Tab ── */
.hub-drawings { flex: 1; overflow: hidden; }
.drawings-ui { display: flex; flex-direction: column; width: 100%; height: 100%; background: #0d0d0f; }
.drawings-toolbar {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.3rem 0.5rem; background: #151518;
  border-bottom: 1px solid #2a2a30;
}
.draw-view-btn {
  background: #1a1a1e; border: 1px solid #2a2a30; color: #888;
  padding: 0.3rem 0.6rem; font-size: 0.68rem; cursor: pointer;
  border-radius: 3px; transition: 0.2s; white-space: nowrap;
}
.draw-view-btn:hover { color: #fff; background: #2a2a30; }
.draw-view-btn.active { background: #2a3a30; color: #22c55e; border-color: #22c55e; }
.drawings-canvas-wrap {
  flex: 1; position: relative; overflow: auto;
  display: flex; align-items: center; justify-content: center;
  background: #0a0a0c;
}
.drawings-canvas-wrap canvas {
  max-width: 100%; max-height: 100%;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.drawings-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #555; text-align: center; font-size: 0.82rem;
}
.drawings-empty p { line-height: 1.6; }
.drawings-info {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 1rem; height: 28px; min-height: 28px;
  background: #151518; border-top: 1px solid #2a2a30;
  font-size: 0.62rem; color: #555;
}

/* ── Production Tab ── */
.hub-production { flex: 1; overflow: hidden; }
.production-ui { display: flex; flex-direction: column; width: 100%; height: 100%; background: #131316; color: #ccc; }
.production-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid #2a2a30;
}
.production-body { flex: 1; overflow-y: auto; padding: 0.75rem; }
.production-section { margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #1e1e22; }
.production-section:last-child { border-bottom: none; }
.prod-summary { font-size: 0.78rem; color: #aaa; line-height: 1.6; }
.prod-summary strong { color: #fff; }

/* ── Variant Comparison Cards ── */
.variant-cards { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.variant-card {
  flex: 1; min-width: 140px; background: #1a1a1e; border: 1px solid #2a2a30;
  padding: 0.6rem; border-radius: 8px; cursor: pointer; transition: 0.2s;
  font-size: 0.72rem;
}
.variant-card:hover { border-color: #22c55e; transform: translateY(-2px); }
.variant-card.recommended { border-color: #22c55e; background: #1a2e1f; }
.variant-card h5 { font-size: 0.75rem; color: #fff; margin: 0 0 0.3rem; }
.variant-card .var-price { color: #22c55e; font-weight: 700; font-size: 0.82rem; }
.variant-card .var-delta { font-size: 0.65rem; color: #888; }
.variant-card .var-tag {
  display: inline-block; font-size: 0.55rem; padding: 1px 5px;
  border-radius: 3px; margin-top: 0.3rem;
}
.var-tag-rec { background: #1a3d2a; color: #22c55e; }
.var-tag-budget { background: #2a2a1e; color: #f59e0b; }
.var-tag-prem { background: #2a1e2e; color: #a78bfa; }

/* =========================================================================
   V28.0 — IMAGE GENERATION & UPLOAD STYLES
   ========================================================================= */

/* Upload button in chat input */
.ai-upload-btn {
  background: none; border: none; font-size: 1rem;
  cursor: pointer; padding: 0.3rem; opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}
.ai-upload-btn:hover { opacity: 1; transform: scale(1.1); }

/* Generated image container */
.neo-image-wrap {
  margin-top: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  max-width: 100%;
}
.neo-image-wrap.loading {
  background: linear-gradient(135deg, #1a1a2e, #1e2a3a);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  animation: neo-img-pulse 2s ease-in-out infinite;
}
@keyframes neo-img-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
.neo-image-loader {
  text-align: center; color: #888;
}
.neo-image-loader p {
  font-size: 0.72rem; margin-top: 0.5rem; color: #22c55e;
}
.neo-image-loader .dots { margin: 0 auto; }

/* Generated image */
.neo-gen-image {
  width: 100%;
  border-radius: 10px;
  display: block;
  cursor: pointer;
  transition: transform 0.3s;
}
.neo-gen-image:hover { transform: scale(1.02); }

/* Image action buttons */
.neo-image-actions {
  display: flex; gap: 0.4rem; padding: 0.5rem 0 0.2rem;
}
.neo-image-actions button {
  background: #1a2e1f; border: 1px solid #22c55e;
  color: #22c55e; padding: 0.35rem 0.8rem;
  font-size: 0.7rem; font-weight: 600;
  border-radius: 5px; cursor: pointer;
  transition: all 0.2s;
}
.neo-image-actions button:hover {
  background: #22c55e; color: #000;
}

/* Image error */
.neo-image-error {
  color: #f59e0b; font-size: 0.78rem;
  margin-top: 0.3rem; padding: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 6px; border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Uploaded room image */
.neo-uploaded-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 0.4rem;
  border: 2px solid rgba(255,255,255,0.1);
}

/* Drawing notice styling (reused) */
.neo-drawing-notice {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem; margin-top: 0.5rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px; font-size: 0.75rem; color: #88ccaa;
}
.neo-drawing-spinner {
  width: 14px; height: 14px; border: 2px solid #22c55e;
  border-top-color: transparent; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ═══════════════════════════════════════
   NEO VISUAL LAUNCHER — Phase 1
   ═══════════════════════════════════════ */

/* Drag handle — mobile bottom-sheet indicator */
.neo-drag-handle {
  display: none;
  width: 36px; height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
  margin: 8px auto 0;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .neo-drag-handle { display: block; }
}

/* ── Main launcher container ── */
.neo-launcher {
  padding: 0.75rem 0.85rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: launcherFadeIn 0.35s ease both;
}
@keyframes launcherFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.neo-enterprise-header {
  padding: 0 0 0.8rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 1rem;
}
.neo-ent-title {
  font-family: var(--mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--charcoal, #1a1a1a);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.2rem;
}
.neo-ent-sub {
  font-size: 0.72rem;
  color: var(--clay, #888);
  margin: 0;
}

.neo-ent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.neo-ent-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.neo-ent-card svg {
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}
.neo-ent-card.highlight {
  background: var(--ink);
  border-color: var(--ink);
}
.neo-ent-card.highlight svg,
.neo-ent-card.highlight span,
.neo-ent-card.highlight small {
  color: var(--paper);
}
.neo-ent-card span {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
}
.neo-ent-card small {
  font-size: 0.65rem;
  color: var(--clay);
  line-height: 1.3;
}
.neo-ent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.15);
}
.neo-ent-status {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem;
  background: #f4fdf8;
  border: 1px solid #dcfce7;
  border-radius: 4px;
}
.ent-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse-dot 2s infinite; }

/* ── Template Picker ── */
.neo-template-picker {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(250,247,243,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  border-radius: inherit;
  overflow: hidden;
  animation: launcherFadeIn 0.2s ease both;
}
.neo-template-picker[hidden] { display: none; }
.neo-template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal, #1a1a1a);
  flex-shrink: 0;
}
.neo-template-close {
  padding: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--clay, #888);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; min-height: 32px;
}
.neo-template-close:hover { background: rgba(0,0,0,0.06); color: var(--charcoal); }
.neo-template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
  overflow-y: auto;
  flex: 1;
}
.neo-template-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.3rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  font-size: 0.68rem;
  color: var(--charcoal, #1a1a1a);
  font-weight: 500;
  font-family: inherit;
}
.neo-template-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}
.neo-template-item:hover { background: rgba(255,255,255,0.95); box-shadow: 0 4px 14px rgba(0,0,0,0.1); transform: translateY(-2px); }
.neo-template-item:active { transform: translateY(0); }

/* ─── Enhanced Image Result Card ─── */
.neo-image-result {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  animation: launcherFadeIn 0.4s ease both;
}
.neo-image-result--error {
  background: rgba(255,235,235,0.5);
  border-color: rgba(200,0,0,0.1);
}
.neo-image-result-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.neo-image-result-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  background: rgba(184,134,11,0.12);
  color: var(--accent, #b8860b);
  border-radius: 100px;
  flex-shrink: 0;
}
.neo-image-result-title {
  font-size: 0.68rem;
  color: var(--clay, #888);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.neo-image-result-imgwrap { position: relative; }
.neo-gen-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 260px;
}
.neo-image-result-actions {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  flex-wrap: wrap;
}
.neo-img-btn {
  flex: 1;
  min-height: 32px;
  padding: 0.35rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 500;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  cursor: pointer;
  color: var(--charcoal, #1a1a1a);
  transition: background 0.14s, transform 0.1s;
  font-family: inherit;
  white-space: nowrap;
}
.neo-img-btn:hover { background: rgba(0,0,0,0.09); }
.neo-img-btn:active { transform: scale(0.97); }
.neo-img-btn--dl { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-width: 36px; }

/* Progress stage text */
.neo-image-stage {
  font-size: 0.7rem;
  color: var(--clay, #888);
  margin: 0.4rem 0 0;
  text-align: center;
  min-height: 1em;
  transition: opacity 0.3s;
}

/* ─── Mobile Bottom-Sheet Improvements ─── */
@media (max-width: 767px) {
  .ai-panel {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-height: 88vh !important;
    border-radius: 20px 20px 0 0 !important;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex !important;
  }
  .ai-panel.open {
    transform: translateY(0);
  }
  /* Larger tap targets on mobile */
  .neo-tile { min-height: 76px; }
  .neo-launcher-chip { min-height: 44px; font-size: 0.74rem; }
  .neo-img-btn { min-height: 40px; font-size: 0.72rem; }
  .neo-template-item { padding: 0.6rem 0.4rem; }
  .ai-header-btn { min-width: 44px; min-height: 44px; }
}

/* Template picker parent needs position relative for overlay */
.hub-content { position: relative; }

/* ─── Neo Context Strip — live understanding panel ─── */
.neo-context-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 1rem;
  background: linear-gradient(90deg, rgba(184,134,11,0.06) 0%, rgba(212,168,68,0.04) 100%);
  border-bottom: 1px solid rgba(184,134,11,0.12);
  flex-wrap: wrap;
  animation: neoStripSlide 0.28s ease;
}
@keyframes neoStripSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.neo-ctx-header {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clay, #888);
  white-space: nowrap;
  flex-shrink: 0;
}
.neo-ctx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.neo-ctx-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.18em 0.55em;
  border-radius: 20px;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.5;
}
.neo-ctx-tag--room    { background: rgba(184,134,11,0.1); color: #7a5c00; border-color: rgba(184,134,11,0.2); }
.neo-ctx-tag--pain    { background: rgba(220, 90, 60, 0.09); color: #8b3020; border-color: rgba(220,90,60,0.18); }
.neo-ctx-tag--style   { background: rgba(60, 130, 180, 0.09); color: #1e4d70; border-color: rgba(60,130,180,0.18); }
.neo-ctx-tag--budget  { background: rgba(50, 150, 90, 0.09); color: #1a5c35; border-color: rgba(50,150,90,0.18); }

/* ─── Neo launcher chip updated size for 5 chips ─── */
.neo-launcher-chips { gap: 0.45rem; }
.neo-launcher-chips .neo-launcher-chip { font-size: 0.77rem; padding: 0.48rem 0.8rem; }

/* ─── Neo SOTA Dynamic Rails (Project Mode) ─── */
.neo-context-rail {
  margin: 0 1rem 0.5rem 1rem;
  padding: 0.6rem 0.8rem;
  background: #111e15;
  border-left: 3px solid #22c55e;
  border-radius: 6px;
  font-family: var(--mono, monospace);
  font-size: 0.68rem;
  color: #a8cdb6;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.neo-context-rail[hidden] {
  display: none !important;
}
.neo-context-rail > div {
  line-height: 1.4;
}
.neo-progress-indicator strong,
.neo-brief-summary strong,
.neo-missing-facts strong,
.neo-action-cards strong {
  color: #fff;
  font-weight: 600;
  margin-right: 0.25rem;
}
.neo-missing-facts span {
  font-weight: 500;
  letter-spacing: 0.02em;
}
