@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette — Swiss Editorial × Retro 80s/90s */
  --bg-primary: #F2F0E8;          /* Aged warm parchment */
  --bg-dark: #0E0E0E;             /* True black */
  --bg-card: #E8E5DB;             /* Warm linen card */
  --bg-teal: #006A5B;             /* Deep 80s teal */
  --bg-vermillion: #D93B1A;       /* Vivid vermillion */
  --bg-yellow: #E8C84A;           /* Warm 80s yellow */
  --bg-indigo: #1A1A3E;           /* Deep retro indigo */
  
  --text-primary: #0A0A0A;        /* Near-black */
  --text-on-dark: #F2F0E8;        /* Parchment on dark */
  --text-on-teal: #F2F0E8;        /* On teal */
  --text-on-yellow: #0A0A0A;      /* Black on yellow */
  --text-secondary: #1C1C1C;      /* Dark body */
  --text-muted: #4A4640;          /* Readable muted */
  
  --accent-vermillion: #D93B1A;   /* Primary vivid accent */
  --accent-teal: #006A5B;         /* Secondary vivid accent */
  --accent-yellow: #E8C84A;       /* Tertiary warm yellow */
  --accent-copper: #B85A1E;       /* Warm copper retained */
  --accent-copper-light: #D4783C; /* Lighter copper */
  
  --border-subtle: rgba(10, 10, 10, 0.2);
  --border-strong: #0A0A0A;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Space Grotesk', -apple-system, sans-serif;  /* Retro-digital grotesk */
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Baseline */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Layout Utilities & Spacing */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-container.no-border {
  border-bottom: none;
}

/* Grid Systems */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.section-header {
  grid-column: span 12;
  margin-bottom: 5rem;
}

.section-tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--bg-primary);
  background: var(--accent-vermillion);
  display: inline-block;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.75rem;
}

/* Typography — High Contrast Weights */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 5.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

h2 {
  font-size: 3.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 450;
  line-height: 1.65;
}

p.lead {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.italic {
  font-style: italic;
  font-family: var(--font-serif);
}

/* Buttons — Bold Retro Swiss */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 0px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 2px solid var(--border-strong);
  gap: 0.75rem;
  background: transparent;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-vermillion);
  transition: width 0.3s ease;
}

.btn:hover::after {
  width: 100%;
}

.btn-primary {
  background: var(--accent-vermillion);
  color: var(--bg-primary);
  border-color: var(--accent-vermillion);
}

.btn-primary:hover {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--bg-primary);
}

.btn-primary::after {
  display: none;
}

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: transparent;
}

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

.btn:active {
  transform: scale(0.97);
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(248, 247, 243, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 1rem 0;
  border-color: var(--border-subtle);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-logo .logo-img {
  height: 38px;
}

.logo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-copper);
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 14rem;
  padding-bottom: 8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
  line-height: 0.95;
}

.hero p.lead {
  margin-bottom: 3.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SVG Line Art Styling */
.technical-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
}

.hairline {
  stroke: var(--text-primary);
  stroke-width: 1;
  fill: none;
}

.hairline-subtle {
  stroke: var(--text-muted);
  stroke-width: 0.75;
  stroke-dasharray: 2 4;
  fill: none;
}

.hairline-accent {
  stroke: var(--accent-vermillion);
  stroke-width: 1.5;
  fill: none;
}

.anim-dash {
  stroke-dasharray: 6 6;
  animation: strokeMove 40s linear infinite;
}

.anim-rotate {
  transform-origin: center;
  animation: rotateSlow 60s linear infinite;
}

@keyframes strokeMove {
  to { stroke-dashoffset: -1000; }
}

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

/* Services Section — Warm Linen with Bold Card Accents */
.services {
  background: var(--bg-primary);
}

/* Services Architectural Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-strong);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-vermillion);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:nth-child(even) {
  background: var(--bg-primary);
}

.service-card:hover {
  background: var(--accent-vermillion);
  border-color: var(--accent-vermillion);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover h3,
.service-card:hover p {
  color: var(--text-on-dark);
}

.service-card:hover svg * {
  stroke: var(--text-on-dark);
  fill: none;
}

.service-card-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-visual-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

/* Operational Framework Section — Deep Teal Block */
.framework {
  background: var(--bg-teal);
  color: var(--text-on-teal);
}

.framework .section-tag {
  background: var(--accent-yellow);
  color: var(--text-on-yellow);
}

.framework h2,
.framework h3 {
  color: var(--text-on-teal);
}

.framework p {
  color: rgba(242, 240, 232, 0.8);
}

.framework-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}

.framework-content h2 {
  margin-bottom: 2rem;
}

.framework-diagram-wrapper {
  border: 1.5px solid rgba(242, 240, 232, 0.3);
  padding: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

/* Case Studies (Large Editorial Layout) */
.case-studies-list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  margin-top: 2rem;
}

.case-study-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: center;
  border: 1.5px solid var(--border-strong);
  padding: 4rem;
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.case-study-card:hover {
  background: var(--bg-primary);
  box-shadow: 8px 8px 0 var(--accent-vermillion);
  transform: translate(-4px, -4px);
}

.cs-info h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cs-info p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 580px;
}

.cs-metrics {
  display: flex;
  gap: 4rem;
}

.cs-metric-item {
  display: flex;
  flex-direction: column;
}

.cs-metric-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--accent-vermillion);
  line-height: 1;
}

.cs-metric-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.cs-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-left: 3px solid var(--accent-teal);
  padding-left: 2rem;
}

.cs-detail-item {
  font-size: 0.95rem;
}

.cs-detail-label {
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.25rem;
}

.cs-detail-val {
  color: var(--text-secondary);
}

/* Methodology — Deep Indigo Retro Block */
.process {
  background: var(--bg-indigo);
  color: var(--text-on-dark);
}

.process .section-tag {
  background: var(--accent-yellow);
  color: var(--text-on-yellow);
}

.process h2 {
  color: var(--text-on-dark);
}

.process .timeline-step {
  border-top: 2px solid rgba(232, 200, 74, 0.5);
}

.process .timeline-step::before {
  background: var(--accent-yellow);
}

.process .timeline-step:hover {
  transform: translateY(-6px);
}

.process .timeline-num {
  color: var(--accent-yellow);
}

.process .timeline-step h3 {
  color: var(--text-on-dark);
}

.process .timeline-step p {
  color: rgba(242, 240, 232, 0.7);
}

/* Timeline Process (Methodology) */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.timeline-step {
  border-top: 2px solid var(--text-primary);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--accent-copper);
}

.timeline-step:hover {
  transform: translateY(-4px);
}

.timeline-num {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-step h3 {
  font-size: 1.6rem;
  font-weight: 700;
}

.timeline-step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* About Section (Editorial prose) */
.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: flex-start;
}

.about-editorial-prose {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-editorial-prose p {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  border-left: 4px solid var(--accent-vermillion);
  padding-left: 4rem;
}

.about-stat-card {
  display: flex;
  flex-direction: column;
}

.about-stat-num {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--accent-vermillion);
  line-height: 1;
}

.about-stat-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* FAQ Accordion (Clean lines) */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1.5px solid var(--border-strong);
}

.faq-item:first-child {
  border-top: 1.5px solid var(--border-strong);
}

.faq-header {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.editing-active-mode .faq-body {
  max-height: none !important;
  overflow: visible !important;
}

.faq-content {
  padding-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-vermillion);
}

/* Call to Action & Contact */
.cta-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.cta-info h2 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.cta-info p {
  margin-bottom: 3.5rem;
}

/* Contact Section — Deep Teal Retro Block */
.contact {
  background: var(--bg-teal);
  color: var(--text-on-teal);
}

.contact .section-container {
  border-bottom: none;
}

.contact .cta-info h2 {
  color: var(--text-on-teal);
}

.contact .cta-info p {
  color: rgba(242, 240, 232, 0.75);
}

.contact .section-tag {
  background: var(--accent-yellow);
  color: var(--text-on-yellow);
}

.contact-form {
  border: 1.5px solid rgba(242, 240, 232, 0.3);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: rgba(0, 0, 0, 0.15);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(245, 244, 239, 0.55);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 244, 239, 0.3);
  padding: 0.75rem 0;
  color: var(--text-on-dark);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-fast);
  width: 100%;
}

.form-input::placeholder {
  color: rgba(242, 240, 232, 0.35);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-yellow);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23F5F4EF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 1.1rem;
  padding-right: 2rem;
  cursor: pointer;
}

.form-select option {
  background: #1a1a1a;
  color: var(--text-on-dark);
}

/* Footer — Deep Retro Indigo */
footer {
  padding: 6rem 2rem 4rem 2rem;
  background: var(--bg-indigo);
  border-top: none;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

.footer-logo {
  color: var(--text-on-dark) !important;
}

.footer-nav {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.footer-nav a {
  color: rgba(245, 244, 239, 0.5);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-yellow);
}

.footer-copy {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(232, 200, 74, 0.5);
  font-size: 0.75rem;
  border-top: 1px solid rgba(232, 200, 74, 0.15);
  padding-top: 2rem;
}

/* Media Adapters */
@media (max-width: 1024px) {
  h1 { font-size: 3.75rem; }
  h2 { font-size: 2.75rem; }
  
  .hero-grid, .framework-layout, .case-study-card, .about-layout, .cta-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .about-stats {
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .services-grid, .timeline-grid {
    grid-template-columns: 1fr;
  }
  
  .section-container {
    padding: 6rem 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-active {
  overflow: hidden;
}

.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  padding: 8rem 3rem;
  gap: 2.5rem;
  z-index: 99;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.05);
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* --- Visual Copy Editor Redesign (Swiss Minimal style) --- */
.lytenia-editable {
  position: relative;
  transition: outline 0.15s ease, background-color 0.15s ease;
}

.lytenia-editable.editing-active {
  outline: 1px dashed var(--accent-copper) !important;
  outline-offset: 3px;
  cursor: text !important;
}

.lytenia-editable.editing-active:hover {
  background-color: rgba(181, 106, 66, 0.05);
}

/* Editor floating trigger */
.lytenia-editor-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid var(--text-primary);
  cursor: pointer;
  display: none; /* Hidden by default for privacy */
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 9999;
  transition: var(--transition-fast);
}

.lytenia-editor-trigger.unlocked {
  display: flex;
}

.lytenia-editor-trigger:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
  transform: rotate(-15deg);
}

/* Floating Editor Console (Swiss Minimal style - dark slate box, sharp corners) */
.lytenia-editor-console {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 310px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  font-family: 'Courier New', Courier, monospace;
}

.lytenia-editor-console.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.editor-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

.editor-console-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-console-close {
  background: none;
  border: none;
  color: #888888;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.editor-console-close:hover {
  color: #ffffff;
}

.editor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #cccccc;
}

/* Custom Toggle Switch (Dark Minimal style) */
.switch-wrapper {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch-wrapper input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .2s;
  border-radius: 0px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .2s;
}

input:checked + .switch-slider {
  background-color: var(--accent-copper);
}

input:checked + .switch-slider:before {
  transform: translateX(16px);
}

.editor-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.editor-console-btn {
  width: 100%;
  padding: 0.6rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0px;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-editor-primary {
  background: #ffffff;
  color: #111111;
}

.btn-editor-primary:hover {
  background: #cccccc;
}

.btn-editor-secondary {
  background: transparent;
  color: #cccccc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-editor-secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.editor-status-text {
  font-size: 0.7rem;
  color: #666666;
  text-align: center;
  line-height: 1.4;
}

/* Floating Formatting Toolbar */
.lytenia-floating-toolbar {
  position: absolute;
  background: #111111;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
  border-radius: 0px;
  font-family: 'Courier New', Courier, monospace;
}

.lytenia-floating-toolbar button {
  background: transparent;
  border: none;
  color: #cccccc;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.lytenia-floating-toolbar button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.lytenia-floating-toolbar select {
  background: #222222;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0px;
}

.toolbar-separator {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  user-select: none;
}

