/* Exact Match Redesign - OrbixaPDFTool Premium UI */
:root {
  /* Color Palette - Deep Dark Mode */
  --bg-color: #070B19;
  --bg-secondary: #0A1128;
  --surface-color: rgba(17, 24, 39, 0.4);
  --text-main: #ffffff;
  --text-muted: #8b9bb4;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-solid: rgba(255, 255, 255, 0.1);
  
  /* Accents */
  --primary-gradient: linear-gradient(90deg, #3b82f6, #8b5cf6);
  --primary-solid: #6366f1;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --accent-cyan: #06b6d4;
  
  /* Shadows */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-btn: 0 8px 24px rgba(59, 130, 246, 0.3);
  
  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Base Aliases for existing JS */
  --bg: var(--bg-color);
  --text: var(--text-main);
  --muted: var(--text-muted);
  --line: var(--border-solid);
  --card: var(--surface-color);
}

/* Force dark mode styling as default */
body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Animated Orbs for subtle background */
.bg-orb {
  position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; opacity: 0.3;
}
.orb-one { width: 500px; height: 500px; background: rgba(59, 130, 246, 0.15); top: -200px; left: -200px; }
.orb-two { width: 600px; height: 600px; background: rgba(139, 92, 246, 0.1); bottom: -200px; right: -200px; }

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(10, 17, 40, 0.5);
}
.top-bar-left {
  display: flex;
  gap: 24px;
}
.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-theme-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-theme-btn:hover {
  color: var(--text-main);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  position: relative;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.manual-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-text-container {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: 2px;
}
.brand-sub {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-align: center;
  position: relative;
  margin-top: 4px;
}
.brand-sub::before, .brand-sub::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--text-muted);
}
.brand-sub::before { left: 0; }
.brand-sub::after { right: 0; }

nav[aria-label="Main Navigation"] {
  display: flex;
  gap: 32px;
}
nav[aria-label="Main Navigation"] a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}
nav[aria-label="Main Navigation"] a:hover {
  color: var(--primary-solid);
}
.navBtn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-btn);
  font-family: var(--font-body);
}
.navBtn:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Exact Hero Section */
.exact-hero {
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-left {
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #8b5cf6;
  border-radius: 50%;
  box-shadow: 0 0 10px #8b5cf6;
}
.hero-left h1 {
  font-size: clamp(48px, 5.5vw, 64px);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Inline Search Bar */
.hero-search-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.search-box {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  gap: 12px;
}
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  outline: none;
  font-family: var(--font-body);
}
.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.explore-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-btn);
  white-space: nowrap;
}
.explore-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Trust Checkmarks */
.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}
.hero-trust span::first-letter {
  color: var(--accent-cyan);
}

/* Right Side - Platform & 3D Logo */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
}
.platform-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 50px;
}
.logo-3d {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(20px);
  animation: float-logo 4s ease-in-out infinite alternate;
}
@keyframes float-logo {
  0% { transform: translateY(20px); }
  100% { transform: translateY(-5px); }
}
.logo-3d svg {
  filter: drop-shadow(0 15px 25px rgba(59, 130, 246, 0.4));
  margin-bottom: 20px;
}
.logo-text-3d {
  text-align: center;
}
.logo-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 4px;
  line-height: 1;
}
.logo-line-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.logo-line-sub span {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 8px;
}
.logo-line-sub .line {
  height: 2px;
  width: 60px;
  background: #fff;
}

.platform-base {
  position: absolute;
  bottom: 30px;
  width: 350px;
  height: 80px;
  background: #0a1128;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
    inset 0 10px 20px rgba(0,0,0,0.8),
    0 20px 40px rgba(0,0,0,0.8);
  z-index: 5;
}
.platform-glow {
  position: absolute;
  bottom: 50px;
  width: 300px;
  height: 40px;
  background: var(--primary-solid);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 4;
  opacity: 0.6;
  animation: pulse-glow 3s infinite alternate;
}
@keyframes pulse-glow {
  0% { opacity: 0.4; filter: blur(30px); }
  100% { opacity: 0.8; filter: blur(50px); }
}

/* Category Chips (Moved down) */
.categoryChips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.categoryChips button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-solid);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.categoryChips button:hover {
  background: rgba(255, 255, 255, 0.1);
}
.categoryChips button.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-btn);
}

/* Main Layout & Features */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}
.trustStrip {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.trustStrip span {
  padding: 8px 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 100px;
}
.features div {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-color);
  border: 1px solid var(--border-solid);
  transition: all 0.3s ease;
}
.features div:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4);
}
.featureIcon {
  width: 48px; height: 48px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 24px; margin-bottom: 20px;
}
.features strong {
  display: block; font-size: 22px; font-family: var(--font-heading); margin-bottom: 12px;
}
.features p { color: var(--text-muted); }
/* Eyebrow labels */
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.12);
  color: #a78bfa;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Tools Grid */
.sectionHead { text-align: center; margin-bottom: 60px; }
.sectionHead h2 { font-size: 42px; margin-bottom: 16px; }
.sectionHead .muted { font-size: 18px; max-width: 600px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tool {
  padding: 30px; border-radius: var(--radius-lg); cursor: pointer; transition: all 0.3s ease;
  background: var(--surface-color); border: 1px solid var(--border-solid);
  display: flex; flex-direction: column; height: 100%; position: relative;
  text-decoration: none; color: var(--text-main);
}
.tool:hover {
  transform: translateY(-8px); border-color: rgba(59, 130, 246, 0.5); box-shadow: var(--shadow-hover);
}
.icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--primary-gradient);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}
.tool h3 { font-size: 22px; margin-bottom: 8px; }
.tool p { color: var(--text-muted); flex-grow: 1; font-size: 15px; }
.tag {
  position: absolute; top: 24px; right: 24px;
  background: rgba(6, 182, 212, 0.1); color: #06b6d4; padding: 4px 12px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; text-transform: uppercase;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 28px 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ===== BLOG SECTION ===== */
.blog-section {
  margin-top: 120px;
  text-align: center;
}
.blog-section h2 {
  font-size: 42px;
  margin-bottom: 16px;
}
.blog-muted {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 60px;
  color: var(--text-muted);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  text-align: left;
  margin-top: 40px;
}
.blog-card {
  background: var(--surface-color);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-hover);
}
.blog-card:hover::before {
  opacity: 1;
}
.blog-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.blog-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.blog-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-main);
}
.blog-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}
.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.blog-read-btn {
  background: transparent;
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  align-self: flex-start;
}
.blog-read-btn:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}

/* ===== SEO TEXT SECTION ===== */
.seo-text-section {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 24px;
  margin-top: 80px;
}
.seo-text-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.seo-text-inner h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--text-main);
}
.seo-text-inner p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.seo-keywords-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.seo-keywords-row span {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}

/* Footer nav links */
footer nav {
  display: flex;
  gap: 24px;
}
footer nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
footer nav a:hover {
  color: var(--text-main);
}

/* Workflow & FAQ & CTA */
.workflow { margin-top: 120px; text-align: center; }
.workflow h2 { font-size: 42px; margin-bottom: 40px; }
.workflowGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
.workflowGrid div { padding: 40px 30px; border-radius: var(--radius-lg); background: var(--surface-color); border: 1px solid var(--border-solid); }
.workflowGrid b { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--primary-gradient); color: white; border-radius: 16px; font-size: 20px; font-family: var(--font-heading); margin-bottom: 24px; }
.workflowGrid h3 { font-size: 24px; margin-bottom: 12px; }

.faq { margin-top: 100px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq h2 { font-size: 36px; margin-bottom: 30px; text-align: center; }
details { background: var(--surface-color); border: 1px solid var(--border-solid); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; }
summary { padding: 24px; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; color: var(--primary-solid); transition: transform 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 24px; color: var(--text-muted); }

.ctaBand { margin-top: 100px; background: var(--primary-gradient); border-radius: var(--radius-lg); padding: 60px; display: flex; justify-content: space-between; align-items: center; color: white; }
.ctaBand h2 { color: white; font-size: 42px; margin-bottom: 16px; }
.ctaBand p { color: rgba(255,255,255,0.9); font-size: 18px; max-width: 500px; }
.ctaBand .eyebrow { background: rgba(255,255,255,0.2); color: white; border: none; }
.ctaBand button { background: white; color: #3b82f6; font-size: 18px; padding: 16px 32px; border-radius: var(--radius-sm); border: none; font-weight: 700; cursor: pointer; }

footer { max-width: 1200px; margin: 0 auto; padding: 40px 24px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-solid); color: var(--text-muted); }
footer b { color: var(--text-main); font-size: 20px; font-family: var(--font-heading); }

/* Buttons & Inputs */
.primary { width: 100%; background: var(--primary-gradient); color: white; border: none; padding: 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px; cursor: pointer; transition: 0.3s; margin-top: 16px; }
.primary:hover { filter: brightness(1.1); }
.field { margin-bottom: 24px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.field input, .field textarea, .field select { width: 100%; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-solid); background: rgba(0,0,0,0.2); color: var(--text-main); font-size: 16px; font-family: var(--font-body); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary-solid); }

/* Modal & Processing Box */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal.hidden { display: none; }
.box { background: var(--bg-secondary); width: 100%; max-width: 600px; border-radius: var(--radius-lg); padding: 40px; position: relative; border: 1px solid var(--border-solid); max-height: 90vh; overflow-y: auto; }
.x { position: absolute; top: 24px; right: 24px; background: rgba(255,255,255,0.05); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; color: var(--text-muted); cursor: pointer; }
.x:hover { color: #fff; background: rgba(255,255,255,0.1); }
.box h2 { font-size: 32px; margin-bottom: 12px; }
.box p { color: var(--text-muted); margin-bottom: 24px; }
#status { margin-top: 16px; font-weight: 600; color: #10b981; text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
  .top-bar { display: none; }
  .exact-hero { grid-template-columns: 1fr; text-align: center; }
  .hero-search-row { flex-direction: column; }
  .search-box { max-width: 100%; }
  .explore-btn { width: 100%; }
  .hero-trust { justify-content: center; }
  .hero-right { height: 400px; }
  .platform-base { width: 250px; height: 60px; }
  .platform-glow { width: 200px; }
  .logo-3d svg { width: 160px; }
  .logo-title { font-size: 36px; }
  .stats-bar { flex-wrap: wrap; gap: 20px; padding: 24px; }
  .stat-divider { display: none; }
  .stat-item { min-width: 40%; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { flex-direction: column; gap: 16px; padding: 16px; }
  nav[aria-label="Main Navigation"], .navBtn { display: none; }
  .exact-hero h1 { font-size: 36px; }
  .features, .workflowGrid { grid-template-columns: 1fr; }
  .ctaBand { flex-direction: column; text-align: center; gap: 24px; }
  .blog-section h2 { font-size: 28px; }
  .stats-bar { padding: 20px 16px; }
  .stat-item strong { font-size: 26px; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  footer nav { justify-content: center; }
  .seo-text-section { padding: 40px 16px; }
  .seo-text-inner h2 { font-size: 22px; }
}

/* PDF Editor Overrides (Ensuring tools keep working) */
#pdfEditorApp { background: var(--bg-color); color: var(--text-main); position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; }
.pe-header { padding: 16px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-solid); display: flex; justify-content: space-between; }
.pe-brand { display: flex; align-items: center; gap: 12px; }
.pe-logo { width: 40px; height: 40px; background: var(--primary-gradient); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.pe-actions button, .pe-close { background: transparent; border: 1px solid var(--border-solid); padding: 8px 16px; color: #fff; cursor: pointer; border-radius: 8px; }
.pe-close { color: #ef4444; border-color: rgba(239, 68, 68, 0.5); }
.pe-ribbon { padding: 16px; display: flex; gap: 16px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-solid); overflow-x: auto; }
.pe-group { padding: 8px 12px; background: rgba(255,255,255,0.05); border-radius: 8px; display: flex; gap: 8px; align-items: center; }
.pe-ribbon button { background: transparent; border: 1px solid var(--border-solid); color: #fff; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.pe-ribbon button.on, .pe-save { background: var(--primary-solid); border-color: var(--primary-solid); }
.pe-body { display: flex; flex: 1; overflow: hidden; }
.pe-body aside { width: 250px; background: var(--bg-secondary); border-right: 1px solid var(--border-solid); padding: 16px; overflow-y: auto; }
.pe-body main { flex: 1; padding: 30px; overflow: auto; display: flex; flex-direction: column; align-items: center; }
.pe-pageWrap { background: #fff; margin-bottom: 30px; position: relative; }
.pe-pageNo { position: absolute; top: -30px; left: 0; background: var(--primary-solid); padding: 4px 12px; border-radius: 12px; font-size: 12px; }
