/* ChildPathshala Next-Gen Coloring Engine Stylesheet */
.ce-root {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03);
  font-family: 'Fredoka', 'Quicksand', system-ui, -apple-system, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-root.ce-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  border-radius: 0;
  margin: 0;
  padding: 16px 24px;
  overflow-y: auto;
  background: #f8fafc;
}

/* Header & HUD */
.ce-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f1f5f9;
}

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

.ce-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ce-chip-stars {
  background: #fef3c7;
  color: #b45309;
  border: 1.5px solid #fde68a;
}

.ce-chip-progress {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1.5px solid #bfdbfe;
}

/* Mode Tabs */
.ce-modes-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}

.ce-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ce-mode-pill:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.ce-mode-pill.active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4338ca;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Picture Ribbon */
.ce-pics-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}

.ce-pic-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ce-pic-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.ce-pic-btn.active {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 800;
}

/* Canvas Viewport */
.ce-viewport {
  position: relative;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 20px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
  background-image: radial-gradient(#e2e8f0 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

.ce-viewport.paper-watercolor {
  background-color: #fdfbf7;
  background-image: none;
  box-shadow: inset 0 0 40px rgba(180, 160, 120, 0.1);
}

.ce-viewport.paper-dark {
  background-color: #0f172a;
  background-image: radial-gradient(#1e293b 1.5px, transparent 1.5px);
}

/* SVG Elements & Cells */
.ce-svg {
  max-width: 90%;
  max-height: 460px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.06));
  cursor: crosshair;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-cell {
  transition: fill 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.15s ease, stroke 0.15s ease;
  cursor: pointer;
}

.ce-cell:hover {
  filter: brightness(0.94) drop-shadow(0 0 3px rgba(99,102,241,0.5));
}

.ce-cell.ce-cell-pulse {
  animation: cellPulseAnim 1.6s infinite alternate ease-in-out;
}

@keyframes cellPulseAnim {
  0% { stroke: #6366f1; stroke-width: 3px; }
  100% { stroke: #ec4899; stroke-width: 5px; }
}

.ce-label {
  font-family: 'Fredoka', 'Quicksand', system-ui, -apple-system, sans-serif;
  font-weight: 900 !important;
  fill: #0f172a !important;
  stroke: none !important;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.5px;
}

.ce-cell-badge {
  pointer-events: none;
  user-select: none;
  transform-origin: center;
  transition: transform 0.18s ease, opacity 0.2s ease;
}

.ce-cell-badge circle {
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.2));
}

.ce-cell-badge.ce-badge-pulse circle {
  fill: #fef08a !important;
  stroke: #eab308 !important;
  stroke-width: 2.2px !important;
  animation: badgeGlowAnim 1.2s infinite alternate ease-in-out;
}

@keyframes badgeGlowAnim {
  0% { transform: scale(1); }
  100% { transform: scale(1.18); }
}

/* Style Shifter Filters */
.ce-lines-gold {
  filter: drop-shadow(0 0 1px #d97706) drop-shadow(0 0 3px #f59e0b) !important;
}

.ce-lines-neon {
  filter: drop-shadow(0 0 4px #06b6d4) drop-shadow(0 0 8px #3b82f6) !important;
}

.ce-lines-none line, .ce-lines-none path, .ce-lines-none rect, .ce-lines-none circle, .ce-lines-none polygon {
  stroke-width: 0.5px !important;
  stroke: rgba(0,0,0,0.08) !important;
}

/* Floating Viewport Controls */
.ce-vp-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.ce-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1.5px solid #e2e8f0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
}

.ce-btn-icon:hover {
  background: #ffffff;
  border-color: #38bdf8;
  color: #0284c7;
  transform: scale(1.06);
}

/* Palette & Tool Tray */
.ce-tray {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 18px;
  margin-top: 14px;
}

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

.ce-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.ce-swatch {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-swatch:hover {
  transform: translateY(-3px) scale(1.08);
}

.ce-swatch.active {
  transform: translateY(-4px) scale(1.18);
  border-color: #0f172a;
  box-shadow: 0 0 0 3px #38bdf8, 0 8px 18px rgba(0,0,0,0.22);
}

.ce-swatch-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
}

.ce-swatch-num {
  font-family: 'Fredoka', 'Quicksand', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 2px rgba(0,0,0,0.9);
}

.ce-picker-swatch {
  border: 3px solid #ffffff;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.ce-picker-swatch:hover {
  transform: translateY(-2px) scale(1.08);
}

.ce-picker-swatch.active {
  border-color: #0f172a !important;
  box-shadow: 0 0 0 3px #4f46e5, 0 6px 16px rgba(79, 70, 229, 0.35) !important;
  transform: translateY(-3px) scale(1.12);
}

/* Tool Actions Toolbar */
.ce-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px solid #f1f5f9;
}

.ce-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1.5px solid transparent;
}

.ce-btn-primary {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
}

.ce-btn-primary:hover {
  background: #059669;
  transform: translateY(-1px);
}

.ce-btn-ghost {
  background: #ffffff;
  color: #475569;
  border-color: #cbd5e1;
}

.ce-btn-ghost:hover {
  background: #f8fafc;
  color: #1e293b;
}

.ce-btn-magic {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.ce-btn-magic:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.35);
}

/* Framing Modal & Virtual Gallery */
.ce-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 20px;
}

.ce-modal-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 650px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  position: relative;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.ce-frame-preview {
  margin: 18px auto;
  padding: 20px;
  border-radius: 16px;
  transition: all 0.3s ease;
  display: inline-block;
}

.ce-frame-gold {
  border: 14px solid #d97706;
  outline: 4px solid #fef3c7;
  background: #fffbeb;
  box-shadow: 0 16px 36px rgba(180, 83, 9, 0.25);
}

.ce-frame-wood {
  border: 14px solid #78350f;
  background: #fefce8;
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.25);
}

.ce-frame-modern {
  border: 10px solid #0f172a;
  background: #f8fafc;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
}

.ce-frame-neon {
  border: 8px solid #06b6d4;
  outline: 4px solid #38bdf8;
  background: #0f172a;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

/* 5,800+ Artwork Library Explorer Modal & Navigation */
.ce-library-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ceFadeIn 0.2s ease-out;
}

.ce-library-card {
  background: #ffffff;
  border-radius: 28px;
  max-width: 980px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
}

.ce-lib-header {
  padding: 20px 24px 14px;
  border-bottom: 1.5px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.ce-lib-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ce-lib-badge {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.ce-lib-controls {
  padding: 14px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ce-lib-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .ce-lib-search-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.ce-lib-search-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid #cbd5e1;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: #ffffff;
  transition: all 0.2s ease;
}

.ce-lib-search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.ce-lib-cats-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.ce-lib-cat-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.ce-lib-cat-pill:hover, .ce-lib-cat-pill.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.ce-lib-grid-wrap {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 320px;
}

.ce-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.ce-art-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.ce-art-card:hover {
  transform: translateY(-3px);
  border-color: #6366f1;
  box-shadow: 0 12px 24px -8px rgba(99, 102, 241, 0.2);
}

.ce-art-card.active-art {
  border-color: #6366f1;
  background: #f5f3ff;
  box-shadow: 0 0 0 2px #6366f1;
}

.ce-card-thumb-wrap {
  width: 100%;
  height: 105px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ce-card-svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  background: #ffffff;
  padding: 6px;
  box-sizing: border-box;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-art-card:hover .ce-card-svg,
.ce-art-card:hover .ce-card-thumb-img {
  transform: scale(1.06);
}

.ce-card-icon-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.ce-art-thumb {
  font-size: 2.4rem;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

.ce-art-card:hover .ce-art-thumb {
  transform: scale(1.15);
}

.ce-art-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.ce-art-meta {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.ce-art-badge-diff {
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
}

.ce-diff-Beginner { background: #dcfce7; color: #15803d; }
.ce-diff-Intermediate { background: #eff6ff; color: #1d4ed8; }
.ce-diff-Advanced { background: #fef3c7; color: #b45309; }
.ce-diff-Master { background: #fae8ff; color: #86198f; }

.ce-lib-footer {
  padding: 12px 24px;
  border-top: 1.5px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.ce-cat-select {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  outline: none;
}

.ce-cat-select:focus {
  border-color: #6366f1;
}

/* ==========================================================================
   INTERACTIVE DRAW LINES & FLOOD-FILL STUDIO CANVAS
   ========================================================================== */
.ce-draw-canvas {
  width: 100%;
  max-width: 800px;
  height: auto;
  max-height: 480px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  touch-action: none;
  cursor: crosshair;
  display: block;
  margin: 0 auto;
  border: 1.5px solid #cbd5e1;
}

/* ==========================================================================
   DUAL EXPERIENCE SWITCHER (STORYBOOK LINE ART VS VECTOR MESH)
   ========================================================================== */
.ce-dual-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 680px) {
  .ce-dual-switcher {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.ce-dual-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.ce-dual-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08);
}

.ce-dual-card.active {
  border-color: #6366f1;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  box-shadow: 0 0 0 1.5px #6366f1, 0 10px 24px -6px rgba(99, 102, 241, 0.22);
  transform: translateY(-2px);
}

.ce-dual-card.active[data-primary-mode="draw"] {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  box-shadow: 0 0 0 1.5px #10b981, 0 10px 24px -6px rgba(16, 185, 129, 0.22);
}

.ce-dual-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.12));
}

.ce-dual-text {
  flex: 1;
  min-width: 0;
}

.ce-dual-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.ce-dual-text span {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.25;
}

.ce-dual-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ce-dual-card.active[data-primary-mode="draw"] .ce-dual-badge {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
}

.ce-dual-card.active[data-primary-mode="vector"] .ce-dual-badge {
  background: #6366f1;
  color: #ffffff;
  border-color: #4f46e5;
}

/* Guided Sub-Mode Bar */
.ce-modes-sub-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
  margin-bottom: 6px;
}

/* ==========================================================================
   DOCKED STUDIO DRAWING & FLOOD-FILL TOOLBAR
   ========================================================================== */
.ce-draw-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  margin-bottom: 12px;
}

.ce-draw-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ce-draw-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ce-draw-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.ce-draw-btn.active {
  background: #eef2ff;
  border-color: #6366f1;
  color: #4338ca;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.22);
}

.ce-draw-size {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.65rem;
  transition: all 0.15s;
}

.ce-draw-size[data-size="6"] {
  font-size: 0.9rem;
}
.ce-draw-size[data-size="12"] {
  font-size: 1.25rem;
}

.ce-draw-size.active {
  border-color: #4f46e5;
  background: #e0e7ff;
  color: #4338ca;
}

@media (max-width: 640px) {
  .ce-draw-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }
  .ce-draw-group {
    justify-content: flex-start;
  }
}

/* Custom Icon / Logo Outline Tracing Modal */
.ce-outline-modal-card {
  background: #ffffff;
  border-radius: 24px;
  width: 94%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4);
  border: 1px solid #cbd5e1;
  overflow: hidden;
  animation: ceModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-outline-preview-box {
  width: 100%;
  height: 280px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.ce-outline-preview-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 8px;
}

.ce-emoji-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 110px;
  overflow-y: auto;
  padding: 4px;
}

.ce-emoji-pill-btn {
  font-size: 1.4rem;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ce-emoji-pill-btn:hover {
  transform: scale(1.15);
  background: #e0e7ff;
  border-color: #6366f1;
}

.ce-upload-dropzone {
  border: 2px dashed #6366f1;
  background: #f5f3ff;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ce-upload-dropzone:hover {
  background: #ede9fe;
  border-color: #4f46e5;
}


