/**
 * ChildPathSalaZone — Core Stylesheet (Phase 1: Foundation)
 * Ultra-modern, playful, responsive, accessible design system.
 */

:root {
  --cpz-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --cpz-font-display: 'Fredoka', 'Quicksand', cursive, sans-serif;
  
  /* Color Tokens */
  --cpz-primary: #10aeb2;
  --cpz-primary-dark: #0b4b4e;
  --cpz-primary-light: #e0f7f8;
  --cpz-accent: #f59e0b;
  --cpz-accent-hover: #d97706;
  --cpz-secondary: #ff5e62;
  --cpz-success: #10b981;
  --cpz-purple: #8b5cf6;
  --cpz-blue: #3b82f6;
  --cpz-pink: #ec4899;
  
  /* Neutrals */
  --cpz-bg: #f8fafc;
  --cpz-card-bg: #ffffff;
  --cpz-text-main: #1e293b;
  --cpz-text-muted: #64748b;
  --cpz-border: #e2e8f0;
  --cpz-border-subtle: #f1f5f9;
  
  /* Shadows & Radius */
  --cpz-radius-sm: 8px;
  --cpz-radius-md: 14px;
  --cpz-radius-lg: 20px;
  --cpz-radius-full: 9999px;
  --cpz-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --cpz-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --cpz-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --cpz-shadow-glow: 0 8px 25px rgba(16, 174, 178, 0.25);
  
  /* Layout */
  --cpz-header-height: 64px;
  --cpz-max-width: 1200px;
}

/* Base Resets */
.cpz-body {
  font-family: var(--cpz-font);
  background-color: var(--cpz-bg);
  color: var(--cpz-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

.cpz-body * {
  box-sizing: border-box;
}

/* Container — Aligned with site wrap (1200px) */
.cpz-container {
  width: 100%;
  max-width: var(--cpz-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Zone Command Header (Experience Selector + Quota Status) */
.cpz-header {
  min-height: var(--cpz-header-height);
  height: auto;
  background: #ffffff;
  border-bottom: 1px solid var(--cpz-border);
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.cpz-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  width: 100%;
}

.cpz-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cpz-text-main);
  transition: transform 0.2s ease;
}

.cpz-brand:hover {
  transform: translateY(-1px);
}

.cpz-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10aeb2, #0b4b4e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 174, 178, 0.25);
  flex-shrink: 0;
}

.cpz-brand-text {
  display: flex;
  flex-direction: column;
}

.cpz-brand-title {
  font-family: var(--cpz-font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--cpz-primary-dark);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cpz-brand-badge {
  background: linear-gradient(135deg, #e0f7f8, #cff4f6);
  color: #0b4b4e;
  border: 1px solid rgba(16, 174, 178, 0.35);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--cpz-radius-full);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cpz-brand-sub {
  font-size: 0.76rem;
  color: var(--cpz-text-muted);
  font-weight: 500;
}

/* Role Experience Switcher */
.cpz-role-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--cpz-radius-full);
  border: 1px solid var(--cpz-border);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.cpz-role-nav::-webkit-scrollbar {
  display: none;
}

.cpz-role-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--cpz-radius-full);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cpz-text-muted);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cpz-role-link:hover {
  color: var(--cpz-primary-dark);
  background: rgba(255, 255, 255, 0.7);
}

.cpz-role-link.active {
  background: #ffffff;
  color: var(--cpz-primary-dark);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  font-weight: 700;
}

/* Header Actions */
.cpz-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cpz-quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--cpz-primary-light);
  color: var(--cpz-primary-dark);
  border-radius: var(--cpz-radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(16, 174, 178, 0.25);
  white-space: nowrap;
}

.cpz-quota-badge.pro {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border-color: #f59e0b;
}

/* Action Buttons (Pill-shaped matching homepage) */
.cpz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--cpz-radius-full);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.cpz-btn-primary {
  background: linear-gradient(135deg, var(--cpz-primary), #0d8285);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 174, 178, 0.35);
}

.cpz-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16, 174, 178, 0.45);
}

.cpz-btn-ghost {
  background: transparent;
  color: var(--cpz-text-muted);
  border: 1.5px solid var(--cpz-border);
}

.cpz-btn-ghost:hover {
  background: var(--cpz-border-subtle);
  color: var(--cpz-text-main);
  border-color: #cbd5e1;
}

.cpz-btn-accent {
  background: linear-gradient(135deg, #ff7f50, #ff4162);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 65, 98, 0.35);
}

.cpz-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 65, 98, 0.45);
}

.cpz-btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}

/* Zone Studio Tools Subbar (Horizontal Scrollable, No Page Overflow) */
.cpz-subbar {
  background: #ffffff;
  border-bottom: 1px solid var(--cpz-border);
  padding: 8px 0;
  position: relative;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.cpz-subbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.cpz-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
  padding: 4px 2px;
}

.cpz-nav-links::-webkit-scrollbar {
  display: none;
}

.cpz-nav-link {
  text-decoration: none;
  color: var(--cpz-text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--cpz-radius-full);
  background: #f8fafc;
  border: 1px solid #eef2f6;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.cpz-nav-link:hover {
  color: var(--cpz-primary-dark);
  background: #f1f5f9;
  border-color: var(--cpz-border);
}

.cpz-nav-link.active {
  background: linear-gradient(135deg, #e0f7f8, #cff4f6);
  color: var(--cpz-primary-dark);
  border-color: rgba(16, 174, 178, 0.4);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(16, 174, 178, 0.15);
}

.cpz-subbar-meta {
  font-size: 0.8rem;
  color: var(--cpz-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 5px 12px;
  background: #f8fafc;
  border-radius: var(--cpz-radius-full);
  border: 1px solid var(--cpz-border);
}

/* Main Content Area */
.cpz-main {
  width: 100%;
  padding: 28px 0 50px;
}

/* Hero Section (Vibrant, cohesive with homepage theme) */
.cpz-hero {
  background: radial-gradient(800px 320px at 90% 10%, rgba(255, 127, 80, 0.22), transparent 60%),
              radial-gradient(600px 280px at 10% 90%, rgba(23, 222, 238, 0.22), transparent 60%),
              linear-gradient(135deg, #0b2b4c 0%, #0a4354 50%, #0e747c 100%);
  border-radius: 24px;
  padding: 44px 38px;
  color: #ffffff;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(11, 43, 76, 0.16);
}

.cpz-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 860px) {
  .cpz-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.cpz-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  color: #a5f3fc;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.cpz-hero-title {
  font-family: var(--cpz-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.cpz-hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #ffd166, #ff7f50);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cpz-hero-desc {
  font-size: 1.05rem;
  max-width: 660px;
  margin: 0 0 24px;
  color: #e0f2fe;
  line-height: 1.6;
}

.cpz-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Grid Layouts */
.cpz-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.cpz-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.cpz-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

/* Card Styles */
.cpz-card {
  background: #ffffff;
  border: 1px solid var(--cpz-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.cpz-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #10aeb2, #17deee);
}

.cpz-card.card-child::before {
  background: linear-gradient(90deg, #ff7f50, #ff4162);
}

.cpz-card.card-parent::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.cpz-card.card-teacher::before {
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
}

.cpz-card.card-school::before {
  background: linear-gradient(90deg, #3b82f6, #0284c7);
}

.cpz-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(11, 43, 76, 0.12);
  border-color: rgba(16, 174, 178, 0.4);
}

.cpz-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.cpz-card:hover .cpz-card-icon {
  transform: scale(1.12) rotate(-4deg);
}

.cpz-card-title {
  font-family: var(--cpz-font-display);
  font-size: 1.22rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--cpz-primary-dark);
}

.cpz-card-desc {
  font-size: 0.9rem;
  color: var(--cpz-text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.cpz-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--cpz-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Subject Card for Learning Explorer */
.cpz-subject-card {
  background: #ffffff;
  border: 1px solid var(--cpz-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cpz-subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 174, 178, 0.14);
  border-color: #10aeb2;
}

.cpz-subject-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f7f8, #f0fdfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* Learning Explorer Chips */
.cpz-chip-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cpz-chip {
  padding: 8px 16px;
  background: var(--cpz-card-bg);
  border: 1px solid var(--cpz-border);
  border-radius: var(--cpz-radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cpz-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cpz-chip:hover {
  border-color: var(--cpz-primary);
  color: var(--cpz-primary-dark);
}

.cpz-chip.active {
  background: var(--cpz-primary-dark);
  color: #ffffff;
  border-color: var(--cpz-primary-dark);
}

/* Creative Studio & Drawing Canvas */
.cpz-studio-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: #ffffff;
  border: 1px solid var(--cpz-border);
  border-radius: var(--cpz-radius-lg);
  padding: 20px;
  box-shadow: var(--cpz-shadow-md);
  min-height: 650px;
}

.cpz-studio-tools {
  background: var(--cpz-bg);
  border-radius: var(--cpz-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cpz-tool-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--cpz-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.cpz-tool-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cpz-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: #ffffff;
  border: 2px solid var(--cpz-border);
  border-radius: var(--cpz-radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cpz-text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cpz-tool-btn:hover {
  border-color: var(--cpz-primary);
}

.cpz-tool-btn.active {
  border-color: var(--cpz-primary);
  background: var(--cpz-primary-light);
  color: var(--cpz-primary-dark);
}

.cpz-color-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.cpz-color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--cpz-radius-sm);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--cpz-border);
  transition: transform 0.15s ease;
}

.cpz-color-swatch:hover, .cpz-color-swatch.active {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px var(--cpz-primary-dark);
}

.cpz-canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: var(--cpz-radius-md);
  padding: 16px;
  position: relative;
  overflow: auto;
}

#cpzDrawingCanvas {
  background: #ffffff;
  box-shadow: var(--cpz-shadow-md);
  border-radius: 4px;
  cursor: crosshair;
  touch-action: none;
}

/* Worksheet Sheet Preview (Printable Page Look) */
.cpz-worksheet-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.cpz-worksheet-editor {
  background: #ffffff;
  border: 1px solid var(--cpz-border);
  border-radius: var(--cpz-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cpz-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cpz-field-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cpz-text-main);
}

.cpz-input, .cpz-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--cpz-border);
  border-radius: var(--cpz-radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
}

.cpz-input:focus, .cpz-select:focus {
  border-color: var(--cpz-primary);
}

.cpz-sheet-paper {
  background: #ffffff;
  width: 100%;
  max-width: 794px; /* Standard A4 width at 96 DPI */
  aspect-ratio: 210 / 297; /* Standard international ISO 216 A4 ratio */
  min-height: auto;
  margin: 0 auto;
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content spilling out of the A4 page */
  transition: all 0.2s ease;
}

/* Multi-Page Mode */
.cpz-sheet-paper.mode-multipage {
  max-height: none !important;
  aspect-ratio: auto !important;
  min-height: 1123px !important;
  overflow: visible !important;
}

.cpz-sheet-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 10px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.cpz-sheet-brand {
  font-family: var(--cpz-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cpz-primary-dark);
}

.cpz-sheet-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: #334155;
  margin-top: 4px;
  flex-wrap: wrap;
}

.cpz-sheet-question-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
  align-content: stretch;
  overflow: hidden;
}

.cpz-sheet-question-grid.cols-1 {
  grid-template-columns: 1fr;
  gap: 10px;
}

.cpz-sheet-question-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Multi-Page Sheet Stacking */
#cpzMultiPageContainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

#cpzMultiPageContainer .cpz-sheet-paper {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}

.cpz-question-box {
  border: 1.5px dashed #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}

.cpz-question-box .cpz-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.cpz-question-box .cpz-q-num {
  font-weight: 800;
  font-size: 0.84rem;
  color: #475569;
}

.cpz-question-box .cpz-q-marks {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.cpz-question-box .cpz-q-prompt {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 4px;
}

.cpz-question-box .cpz-answer-line {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.cpz-question-box .cpz-answer-line .cpz-ans-blank {
  flex: 1;
  border-bottom: 1.5px dashed #94a3b8;
  height: 14px;
  margin-left: 8px;
}

/* Density Adaptations based on Question Counts to Guarantee 0 Overflow */
/* Spacious Mode (4-6 Questions) */
.cpz-sheet-paper.density-spacious {
  padding: 32px 40px;
}
.cpz-sheet-paper.density-spacious .cpz-sheet-question-grid {
  gap: 16px;
}
.cpz-sheet-paper.density-spacious .cpz-question-box {
  padding: 12px 16px;
}

/* Compact Mode (8-10 Questions) */
.cpz-sheet-paper.density-compact {
  padding: 20px 28px;
}
.cpz-sheet-paper.density-compact .cpz-sheet-header {
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.cpz-sheet-paper.density-compact .cpz-sheet-question-grid {
  gap: 8px;
}
.cpz-sheet-paper.density-compact .cpz-question-box {
  padding: 6px 10px;
  font-size: 0.86rem;
}
.cpz-sheet-paper.density-compact .cpz-visual-container {
  padding: 4px 8px;
  margin: 3px 0;
}
.cpz-sheet-paper.density-compact .cpz-clock-svg {
  width: 52px;
  height: 52px;
}
.cpz-sheet-paper.density-compact .cpz-fraction-svg {
  width: 46px;
  height: 46px;
}
.cpz-sheet-paper.density-compact .cpz-base10-rod {
  height: 40px;
}
.cpz-sheet-paper.density-compact .cpz-count-item {
  font-size: 1.25rem;
  padding: 2px 5px;
}
.cpz-sheet-paper.density-compact .cpz-step-workspace {
  margin-top: 4px;
  padding: 4px;
}

/* Tight Mode (12-16 Questions) */
.cpz-sheet-paper.density-tight {
  padding: 14px 22px;
}
.cpz-sheet-paper.density-tight .cpz-sheet-header {
  padding-bottom: 6px;
  margin-bottom: 6px;
}
.cpz-sheet-paper.density-tight .cpz-sheet-question-grid {
  gap: 5px;
}
.cpz-sheet-paper.density-tight .cpz-question-box {
  padding: 4px 8px;
  font-size: 0.78rem;
}
.cpz-sheet-paper.density-tight .cpz-visual-container {
  padding: 2px 5px;
  margin: 2px 0;
}
.cpz-sheet-paper.density-tight .cpz-clock-svg {
  width: 42px;
  height: 42px;
}
.cpz-sheet-paper.density-tight .cpz-fraction-svg {
  width: 38px;
  height: 38px;
}
.cpz-sheet-paper.density-tight .cpz-base10-rod {
  height: 30px;
}
.cpz-sheet-paper.density-tight .cpz-count-item {
  font-size: 1rem;
  padding: 1px 4px;
}
.cpz-sheet-paper.density-tight .cpz-sheet-rubric {
  margin-top: 6px;
  padding: 4px 8px;
  font-size: 0.7rem;
}
.cpz-sheet-paper.density-tight #paperSigLine {
  margin-top: 4px !important;
  padding-top: 4px !important;
  font-size: 0.72rem !important;
}

.cpz-sheet-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Worksheet Sheet Variations & Print Themes */
.cpz-sheet-paper.border-double {
  border: 5px double #0f172a;
}
.cpz-sheet-paper.border-dotted {
  border: 3px dashed #10aeb2;
}
.cpz-sheet-paper.border-star {
  border: 6px solid #f59e0b;
  border-radius: 10px;
}
.cpz-sheet-paper.border-clean {
  border: 1px solid #e2e8f0;
}

/* Answer Key Highlighting */
.cpz-answer-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 6px;
}

.cpz-teacher-hint {
  font-size: 0.78rem;
  color: #047857;
  font-style: italic;
  margin-top: 2px;
}

/* Sheet Mascot Badge */
.cpz-sheet-mascot {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2.2rem;
  opacity: 0.9;
}

/* Sheet Rubric / Scoring Section */
.cpz-sheet-rubric {
  margin-top: 20px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #334155;
}

/* Interactive & Content-Aware Visual Components for Worksheets */
.cpz-visual-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cpz-count-emoji-array {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 6px;
}

.cpz-count-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-size: 1.8rem;
  line-height: 1;
}

.cpz-count-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  border-radius: 99px;
  background: #f1f5f9;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cpz-trace-svg {
  width: 100%;
  max-width: 320px;
  height: 48px;
  display: block;
}

.cpz-base10-group {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: center;
  padding: 6px 0;
}

.cpz-base10-tens {
  display: flex;
  gap: 6px;
}

.cpz-base10-rod {
  width: 12px;
  height: 70px;
  background: linear-gradient(180deg, #10aeb2 0%, #0d8a8d 100%);
  border: 1px solid #0a6668;
  border-radius: 2px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.4);
  position: relative;
  background-size: 100% 7px;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.3) 1px, transparent 1px);
}

.cpz-base10-ones {
  display: flex;
  flex-wrap: wrap;
  width: 32px;
  gap: 4px;
}

.cpz-base10-cube {
  width: 9px;
  height: 9px;
  background: #f59e0b;
  border: 1px solid #b45309;
  border-radius: 1px;
}

.cpz-clock-svg {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.cpz-fraction-svg {
  width: 80px;
  height: 80px;
}

.cpz-flow-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
}

.cpz-flow-node {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.cpz-flow-arrow {
  color: #10aeb2;
  font-size: 1.1rem;
  font-weight: 900;
}

.cpz-step-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px;
}

.cpz-step-col {
  border-right: 1px dashed #cbd5e1;
  padding: 0 6px;
  min-height: 52px;
}
.cpz-step-col:last-child {
  border-right: none;
}

.cpz-step-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Engaging Interactive Worksheet Elements */
.cpz-match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 5px 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}
.cpz-match-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cpz-match-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 6px;
}

.cpz-wordsearch-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 8px;
  margin: 4px 0;
  text-align: center;
}
.cpz-wordsearch-matrix {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #0f172a;
  line-height: 1.35;
}
.cpz-wordsearch-bank {
  margin-top: 4px;
  padding-top: 3px;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0369a1;
}

.cpz-mcq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 5px 0;
}
.cpz-mcq-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #334155;
}
.cpz-mcq-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 99px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cpz-tf-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 5px 0;
}
.cpz-tf-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #475569;
}

.cpz-riddle-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 3.5px solid #16a34a;
  border-radius: 6px;
  padding: 5px 8px;
  margin: 4px 0;
  font-size: 0.78rem;
  color: #14532d;
}

.cpz-odd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 5px 0;
}
.cpz-odd-item {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 6px;
  padding: 5px 3px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1e293b;
}

.cpz-bond-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px;
}
.cpz-bond-circle {
  width: 30px;
  height: 30px;
  border-radius: 99px;
  border: 2px solid #0f172a;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}
.cpz-bond-branches {
  display: flex;
  gap: 20px;
  position: relative;
}
.cpz-bond-branches::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 5px;
  border-top: 2px solid #64748b;
  border-left: 2px solid #64748b;
  border-right: 2px solid #64748b;
}

.cpz-scratch-block {
  background: #4c97ff;
  color: #ffffff;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 6px 12px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  border-left: 5px solid #2f74d6;
  margin: 4px 0;
}

.cpz-scratch-block.hat {
  background: #ffbf00;
  color: #4d3800;
  border-left-color: #d19900;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.cpz-scratch-block.control {
  background: #ffab19;
  border-left-color: #cf8400;
}

.cpz-word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 8px;
}

.cpz-word-pill {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Exhaustive Worksheet Catalog Grid & Cards */
.cpz-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.cpz-catalog-card {
  background: #ffffff;
  border: 1px solid var(--cpz-border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cpz-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(16, 174, 178, 0.15);
  border-color: #10aeb2;
}

.cpz-catalog-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cpz-catalog-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cpz-catalog-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cpz-catalog-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}

.cpz-catalog-badge.grade {
  background: #e0f2fe;
  color: #0369a1;
}

.cpz-catalog-badge.subject {
  background: #fef3c7;
  color: #92400e;
}

.cpz-catalog-badge.tier {
  background: #f3e8ff;
  color: #7e22ce;
}

.cpz-catalog-title {
  font-family: var(--cpz-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cpz-primary-dark);
  margin: 0 0 6px;
  line-height: 1.25;
}

.cpz-catalog-desc {
  font-size: 0.82rem;
  color: var(--cpz-text-muted);
  line-height: 1.45;
  margin: 0 0 14px;
  flex: 1;
}

.cpz-catalog-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Privacy Notice Banner */
.cpz-privacy-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #e6fcfd 100%);
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: #065f46;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

.cpz-privacy-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .cpz-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cpz-studio-layout, .cpz-worksheet-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cpz-grid-4, .cpz-grid-3, .cpz-grid-2 {
    grid-template-columns: 1fr;
  }
  .cpz-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cpz-role-nav {
    width: 100%;
  }
  .cpz-hero {
    padding: 28px 20px;
    border-radius: 18px;
  }
  .cpz-hero-title {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   PHASE 2: CORE EDUCATIONAL TOOLS STYLES
   ========================================================================== */

/* Quiz Question & Option Bubbles */
.cpz-quiz-item {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  margin-bottom: 16px;
}

.cpz-quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.cpz-quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.cpz-quiz-bubble {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

/* Teacher Answer Key Sheet */
.cpz-answer-key-box {
  background: #fefce8;
  border: 2px dashed #ca8a04;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

/* Interactive CBT Test Styles & OMR Grid */
.cpz-quiz-option.cbt-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.cpz-quiz-option.cbt-clickable:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  transform: translateY(-1px);
}
.cpz-quiz-option.cbt-selected {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
}
.cpz-quiz-option.cbt-selected .cpz-quiz-bubble {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}
.cpz-quiz-option.cbt-correct {
  background: #f0fdf4 !important;
  border-color: #16a34a !important;
  color: #166534;
}
.cpz-quiz-option.cbt-correct .cpz-quiz-bubble {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.cpz-quiz-option.cbt-wrong {
  background: #fef2f2 !important;
  border-color: #dc2626 !important;
  color: #991b1b;
}
.cpz-quiz-option.cbt-wrong .cpz-quiz-bubble {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

/* OMR Printable Grid */
.cpz-omr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px;
}
.cpz-omr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}
.cpz-omr-bubbles {
  display: flex;
  gap: 8px;
}
.cpz-omr-bubble {
  width: 20px;
  height: 20px;
  border: 1.5px solid #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
}


/* Flashcards Grid & Cut Guides */
.cpz-flashcard-sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 10px;
}

.cpz-flashcard-item {
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  background: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}

.cpz-flashcard-cut-mark {
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 14px;
}

.cpz-flashcard-front {
  font-family: var(--cpz-font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
}

.cpz-flashcard-back {
  border-top: 1px dotted #cbd5e1;
  margin-top: 16px;
  padding-top: 12px;
  font-size: 1rem;
  color: #64748b;
  font-weight: 600;
}

/* Award Certificate Sheet (Landscape A4) */
.cpz-certificate-paper {
  background: #ffffff;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 1.414 / 1; /* A4 Landscape */
  margin: 0 auto;
  padding: 36px;
  border: 12px double #b45309;
  border-radius: 4px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: radial-gradient(#fef3c7 1px, transparent 1px);
  background-size: 20px 20px;
}

.cpz-cert-inner-frame {
  border: 2px solid #d97706;
  padding: 24px 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 2px;
  position: relative;
}

/* 5 Distinct Certificate Template Themes */
.cpz-certificate-paper.cpz-cert-theme-gold {
  border-color: #b45309 !important;
  background-image: radial-gradient(#fef3c7 1.5px, transparent 1.5px) !important;
}
.cpz-certificate-paper.cpz-cert-theme-gold .cpz-cert-inner-frame {
  border-color: #d97706 !important;
}
.cpz-certificate-paper.cpz-cert-theme-gold .cpz-cert-title {
  color: #92400e !important;
}
.cpz-certificate-paper.cpz-cert-theme-gold .cpz-cert-name {
  border-bottom-color: #b45309 !important;
}

.cpz-certificate-paper.cpz-cert-theme-navy {
  border: 12px double #1e3a8a !important;
  background-image: radial-gradient(#e0e7ff 1.5px, transparent 1.5px) !important;
}
.cpz-certificate-paper.cpz-cert-theme-navy .cpz-cert-inner-frame {
  border: 2px solid #3b82f6 !important;
}
.cpz-certificate-paper.cpz-cert-theme-navy .cpz-cert-title {
  color: #1e3a8a !important;
}
.cpz-certificate-paper.cpz-cert-theme-navy .cpz-cert-name {
  border-bottom-color: #1e3a8a !important;
  color: #0f172a !important;
}
.cpz-certificate-paper.cpz-cert-theme-navy .cpz-cert-seal {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a) !important;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.35) !important;
}

.cpz-certificate-paper.cpz-cert-theme-kids {
  border: 10px dashed #f59e0b !important;
  background: #fffdf5 !important;
  background-image: radial-gradient(#fef08a 2px, transparent 2px) !important;
}
.cpz-certificate-paper.cpz-cert-theme-kids .cpz-cert-inner-frame {
  border: 3px dashed #10b981 !important;
  border-radius: 12px !important;
}
.cpz-certificate-paper.cpz-cert-theme-kids .cpz-cert-title {
  color: #ea580c !important;
}
.cpz-certificate-paper.cpz-cert-theme-kids .cpz-cert-name {
  border-bottom-color: #f59e0b !important;
  color: #15803d !important;
}
.cpz-certificate-paper.cpz-cert-theme-kids .cpz-cert-seal {
  background: linear-gradient(135deg, #10b981, #047857) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

.cpz-certificate-paper.cpz-cert-theme-botanical {
  border: 12px double #166534 !important;
  background-image: radial-gradient(#dcfce7 1.5px, transparent 1.5px) !important;
}
.cpz-certificate-paper.cpz-cert-theme-botanical .cpz-cert-inner-frame {
  border: 2px solid #22c55e !important;
}
.cpz-certificate-paper.cpz-cert-theme-botanical .cpz-cert-title {
  color: #14532d !important;
}
.cpz-certificate-paper.cpz-cert-theme-botanical .cpz-cert-name {
  border-bottom-color: #166534 !important;
  color: #14532d !important;
}
.cpz-certificate-paper.cpz-cert-theme-botanical .cpz-cert-seal {
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.35) !important;
}

.cpz-certificate-paper.cpz-cert-theme-modern {
  border: 6px solid #0f172a !important;
  background-image: none !important;
}
.cpz-certificate-paper.cpz-cert-theme-modern .cpz-cert-inner-frame {
  border: 1px solid #cbd5e1 !important;
}
.cpz-certificate-paper.cpz-cert-theme-modern .cpz-cert-title {
  color: #0f172a !important;
  letter-spacing: 4px !important;
}
.cpz-certificate-paper.cpz-cert-theme-modern .cpz-cert-name {
  border-bottom-color: #0f172a !important;
  color: #0f172a !important;
}
.cpz-certificate-paper.cpz-cert-theme-modern .cpz-cert-seal {
  background: linear-gradient(135deg, #475569, #0f172a) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35) !important;
}

/* 6. Cosmic Star Explorer Theme */
.cpz-certificate-paper.cpz-cert-theme-cosmic {
  background: #090d16 !important;
  background-image: radial-gradient(#1e293b 1.5px, transparent 1.5px) !important;
  border: 10px double #38bdf8 !important;
  color: #e2e8f0 !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25) !important;
}
.cpz-certificate-paper.cpz-cert-theme-cosmic .cpz-cert-inner-frame {
  border: 2px solid #0284c7 !important;
}
.cpz-certificate-paper.cpz-cert-theme-cosmic .cpz-cert-title {
  color: #38bdf8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}
.cpz-certificate-paper.cpz-cert-theme-cosmic .cpz-cert-name {
  color: #fde047 !important;
  border-bottom-color: #38bdf8 !important;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.3);
}
.cpz-certificate-paper.cpz-cert-theme-cosmic .cpz-cert-seal {
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5) !important;
}
.cpz-certificate-paper.cpz-cert-theme-cosmic .cpz-cert-sig-line {
  border-bottom-color: #38bdf8 !important;
  color: #e2e8f0 !important;
}
.cpz-certificate-paper.cpz-cert-theme-cosmic .cpz-cert-script-sign {
  color: #f1f5f9 !important;
}

/* 7. Antique Vintage Parchment Theme */
.cpz-certificate-paper.cpz-cert-theme-vintage {
  background: #fdfbf7 !important;
  background-image: radial-gradient(#fde68a 1px, transparent 1px) !important;
  border: 14px double #881337 !important;
  color: #451a03 !important;
}
.cpz-certificate-paper.cpz-cert-theme-vintage .cpz-cert-inner-frame {
  border: 2px solid #d97706 !important;
}
.cpz-certificate-paper.cpz-cert-theme-vintage .cpz-cert-title {
  color: #881337 !important;
  font-family: 'Cinzel', serif !important;
}
.cpz-certificate-paper.cpz-cert-theme-vintage .cpz-cert-name {
  color: #78350f !important;
  border-bottom-color: #881337 !important;
}
.cpz-certificate-paper.cpz-cert-theme-vintage .cpz-cert-seal {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.4) !important;
}
.cpz-certificate-paper.cpz-cert-theme-vintage .cpz-cert-sig-line {
  border-bottom-color: #881337 !important;
}

/* 8. Creative Arts & Pastel Watercolor Theme */
.cpz-certificate-paper.cpz-cert-theme-pastel {
  background: linear-gradient(135deg, #fdf4ff 0%, #f0fdfa 50%, #eff6ff 100%) !important;
  border: 8px solid #c084fc !important;
  color: #334155 !important;
}
.cpz-certificate-paper.cpz-cert-theme-pastel .cpz-cert-inner-frame {
  border: 2px dashed #ec4899 !important;
  border-radius: 8px !important;
}
.cpz-certificate-paper.cpz-cert-theme-pastel .cpz-cert-title {
  color: #9333ea !important;
}
.cpz-certificate-paper.cpz-cert-theme-pastel .cpz-cert-name {
  color: #db2777 !important;
  border-bottom-color: #c084fc !important;
}
.cpz-certificate-paper.cpz-cert-theme-pastel .cpz-cert-seal {
  background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35) !important;
}
.cpz-certificate-paper.cpz-cert-theme-pastel .cpz-cert-sig-line {
  border-bottom-color: #a855f7 !important;
}

/* Name Typography Options */
.cpz-name-font-script { font-family: 'Great Vibes', 'Alex Brush', cursive !important; font-size: 3rem !important; font-weight: 400 !important; }
.cpz-name-font-cinzel { font-family: 'Cinzel', serif !important; font-size: 2.3rem !important; font-weight: 700 !important; letter-spacing: 2px !important; }
.cpz-name-font-playfair { font-family: 'Playfair Display', serif !important; font-size: 2.5rem !important; font-weight: 800 !important; font-style: italic !important; }
.cpz-name-font-fredoka { font-family: 'Fredoka', cursive !important; font-size: 2.6rem !important; font-weight: 700 !important; }
.cpz-name-font-modern { font-family: 'Montserrat', sans-serif !important; font-size: 2.2rem !important; font-weight: 800 !important; letter-spacing: 3px !important; text-transform: uppercase !important; }

/* Visual Template Picker Gallery */
.cpz-cert-template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.cpz-cert-tpl-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  position: relative;
}
.cpz-cert-tpl-card:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}
.cpz-cert-tpl-card.active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 1px #0284c7, 0 4px 10px rgba(2, 132, 199, 0.15);
}
.cpz-cert-tpl-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  background: #e2e8f0;
  color: #475569;
}
.cpz-cert-tpl-card.active .cpz-cert-tpl-badge {
  background: #0284c7;
  color: #ffffff;
}
.cpz-cert-tpl-swatches {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}
.cpz-cert-tpl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.1);
}

/* Portrait Orientation Modifier */
.cpz-certificate-paper.orientation-portrait {
  aspect-ratio: 1 / 1.414 !important;
  max-width: 660px !important;
}

.cpz-cert-title {
  font-family: var(--cpz-font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: #92400e;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 4px;
  line-height: 1.2;
}

.cpz-cert-name {
  font-family: 'Fredoka', cursive, serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 2px solid #b45309;
  display: inline-block;
  padding: 0 40px 4px;
  margin: 8px auto;
  line-height: 1.2;
}

.cpz-cert-seal {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
  position: relative;
  z-index: 2;
}

/* Signatures & Logo */
.cpz-cert-logo-img {
  max-height: 52px;
  max-width: 170px;
  object-fit: contain;
  margin-bottom: 6px;
}

.cpz-cert-signature-img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: -6px;
}

.cpz-cert-script-sign {
  font-family: 'Great Vibes', 'Dancing Script', cursive, serif;
  font-size: 1.85rem;
  color: #1e293b;
  line-height: 1;
  margin-bottom: -4px;
}

.cpz-cert-sig-slot {
  text-align: center;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.cpz-cert-sig-line {
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 4px;
  border-bottom: 1.5px solid #0f172a;
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media print {
  .cpz-certificate-paper {
    page-break-after: always !important;
    break-after: page !important;
    box-shadow: none !important;
    margin: 0 auto !important;
  }
}


/* Learning Planner & Habit Trackers */
.cpz-planner-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.cpz-planner-day-col {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 380px;
}

.cpz-planner-day-header {
  font-weight: 800;
  color: var(--cpz-primary-dark);
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1.5px solid #e2e8f0;
}

.cpz-planner-slot {
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 8px;
  background: #ffffff;
  font-size: 0.82rem;
  color: #334155;
}

/* Preschool Tracing Dotted Text */
.cpz-tracing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed #cbd5e1;
  padding: 18px 0;
  margin-bottom: 12px;
}

.cpz-dotted-char {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: 24px;
  border-bottom: 1px dotted #94a3b8;
}

/* ==========================================================================
   PHASE 3: TEACHER & CLASSROOM TOOLS STYLES
   ========================================================================== */

/* Lesson Planner Flow Blocks */
.cpz-lesson-block {
  border-left: 4px solid var(--cpz-primary);
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.cpz-lesson-time-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 6px;
}

/* Rubric 4-Level Matrix Table */
.cpz-rubric-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.cpz-rubric-table th, .cpz-rubric-table td {
  border: 1px solid #cbd5e1;
  padding: 12px;
  vertical-align: top;
  font-size: 0.88rem;
}

.cpz-rubric-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  text-align: left;
}

/* Classroom Tools: Animated Student Card */
.cpz-picker-card {
  background: linear-gradient(135deg, #0b4b4e, #10aeb2);
  color: #ffffff;
  border-radius: var(--cpz-radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(16, 174, 178, 0.3);
  margin-bottom: 24px;
  transition: transform 0.2s ease;
}

.cpz-picker-name {
  font-family: var(--cpz-font-display);
  font-size: 3rem;
  font-weight: 800;
  margin: 12px 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Classroom Team Groups Grid */
.cpz-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.cpz-team-card {
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
}

.cpz-team-header {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--cpz-primary-dark);
  border-bottom: 2px solid var(--cpz-primary-light);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

/* Bulk Generator Sheet Preview Carousel */
.cpz-bulk-counter {
  background: #fef3c7;
  color: #92400e;
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ==========================================================================
   PHASE 4: ADVANCED FEATURES & ECOSYSTEM STYLES
   ========================================================================== */

/* Learning Pack Multi-Page Tabs */
.cpz-pack-tabs {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--cpz-radius-md);
  border: 1px solid #cbd5e1;
  margin-bottom: 16px;
  overflow-x: auto;
}

.cpz-pack-tab {
  padding: 8px 16px;
  border-radius: var(--cpz-radius-sm);
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cpz-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cpz-pack-tab:hover {
  color: var(--cpz-primary-dark);
}

.cpz-pack-tab.active {
  background: var(--cpz-primary-dark);
  color: #ffffff;
}

/* Portfolio Keepsake Cover */
.cpz-portfolio-cover {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  border: 8px solid #f59e0b;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  min-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  position: relative;
}

.cpz-portfolio-avatar-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #f59e0b;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  background: rgba(255, 255, 255, 0.05);
}

/* Differentiated 4-Tier Cards */
.cpz-tier-col {
  border-radius: var(--cpz-radius-md);
  border: 2px solid #cbd5e1;
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.cpz-tier-col.tier-a { border-color: #10b981; }
.cpz-tier-col.tier-b { border-color: #10aeb2; }
.cpz-tier-col.tier-c { border-color: #f59e0b; }
.cpz-tier-col.tier-d { border-color: #8b5cf6; }

.cpz-tier-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.tier-a .cpz-tier-badge { background: #dcfce7; color: #166534; }
.tier-b .cpz-tier-badge { background: #e0f7f8; color: #0b4b4e; }
.tier-c .cpz-tier-badge { background: #fef3c7; color: #92400e; }
.tier-d .cpz-tier-badge { background: #f3e8ff; color: #6b21a8; }

/* PDF Ink-Saver Mode */
.cpz-ink-saver-active {
  filter: grayscale(100%) contrast(150%) !important;
  background: #ffffff !important;
}

.cpz-ink-saver-active * {
  border-color: #000000 !important;
  color: #000000 !important;
  box-shadow: none !important;
}

/* ==========================================================================
   THEMED BORDERS (Kiddo & Education.com Styles)
   ========================================================================== */
.cpz-sheet-paper.border-theme-clean {
  border: 2px solid #334155;
}

.cpz-sheet-paper.border-theme-double {
  border: 4px double #0f172a;
}

.cpz-sheet-paper.border-theme-safari {
  border: 4px solid #15803d;
  outline: 2px dashed #86efac;
  outline-offset: -8px;
  background-image: radial-gradient(#dcfce7 1px, transparent 1px);
  background-size: 20px 20px;
}

.cpz-sheet-paper.border-theme-cosmic {
  border: 4px solid #4338ca;
  outline: 2px dotted #a5b4fc;
  outline-offset: -8px;
  background-image: radial-gradient(#e0e7ff 1px, transparent 1px);
  background-size: 22px 22px;
}

.cpz-sheet-paper.border-theme-academic {
  border: 4px solid #0f172a;
  outline: 2px solid #f59e0b;
  outline-offset: -7px;
}

.cpz-sheet-paper.border-theme-doodle {
  border: 3px dashed #64748b;
  border-radius: 12px;
}

/* ==========================================================================
   WORD SEARCH PUZZLE STYLES
   ========================================================================== */
.cpz-wordsearch-grid {
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 440px;
  margin: 12px auto;
  background: #f8fafc;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #cbd5e1;
}

.cpz-ws-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  user-select: none;
  transition: all 0.2s ease;
}

.cpz-ws-cell:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

.cpz-sheet-paper.show-answers .cpz-ws-cell.is-target {
  background: #fef08a !important;
  color: #854d0e !important;
  font-weight: 900 !important;
  border-color: #eab308 !important;
  box-shadow: 0 0 4px rgba(234, 179, 8, 0.4);
}

.cpz-wordsearch-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.cpz-word-tag {
  font-size: 0.8rem;
  font-weight: 700;
  background: #ffffff;
  color: #334155;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cpz-word-check {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ==========================================================================
   SECRET CODE / CRYPTOGRAM CIPHER STYLES
   ========================================================================== */
.cpz-cipher-key-table {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px;
  margin: 8px 0 14px;
  justify-content: center;
}

.cpz-cipher-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px;
}

.cpz-pair-letter {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
}

.cpz-pair-sym {
  font-size: 0.85rem;
}

.cpz-cipher-phrase-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 12px;
  background: #ffffff;
  border: 2px dashed #94a3b8;
  border-radius: 8px;
  margin-top: 8px;
}

.cpz-cipher-word {
  display: flex;
  gap: 4px;
  align-items: flex-end;
}

.cpz-cipher-char-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cpz-cipher-symbol {
  font-size: 1.15rem;
  line-height: 1;
}

.cpz-cipher-input {
  width: 26px;
  height: 28px;
  text-align: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 2px solid #0f172a;
  border-radius: 4px;
  background: #f8fafc;
  outline: none;
}

.cpz-cipher-input:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

/* ==========================================================================
   TIMED MATH SPEED DRILLS STYLES
   ========================================================================== */
.cpz-speed-drill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: #0369a1;
  font-weight: 700;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.cpz-speed-drill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
}

.cpz-speed-drill-card {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
}

.cpz-drill-num {
  font-size: 0.75rem;
  color: #94a3b8;
  width: 20px;
}

.cpz-drill-expr {
  font-weight: 800;
  color: #0f172a;
  flex: 1;
}

.cpz-drill-input {
  width: 48px;
  height: 26px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
}

.cpz-drill-input:focus {
  border-color: #0284c7;
  background: #f0f9ff;
}

/* ==========================================================================
   LIVE INTERACTIVE STUDENT SOLVE MODE
   ========================================================================== */
.cpz-interactive-student-bar {
  position: sticky;
  bottom: 14px;
  left: 0;
  right: 0;
  margin: 14px auto 0;
  max-width: 794px;
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 50;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cpz-interactive-input {
  border: 2px solid #0284c7 !important;
  background: #f0f9ff !important;
  color: #0369a1 !important;
  font-weight: 800 !important;
  border-radius: 4px !important;
  padding: 2px 8px !important;
  font-size: 0.95rem !important;
  outline: none !important;
  display: inline-block !important;
  min-width: 80px !important;
  transition: all 0.2s ease !important;
}

.cpz-interactive-input:focus {
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.3) !important;
  background: #ffffff !important;
}

.cpz-graded-correct {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
}

.cpz-graded-incorrect {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.cpz-score-celebration-banner {
  width: 100%;
  max-width: 794px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   EARLY FINISHER "COLOR ME" CORNER & PROMPT CHIPS
   ========================================================================== */
.cpz-early-finisher-corner {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1.5px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border-radius: 6px;
  padding: 6px 12px;
}

.cpz-prompt-chip {
  font-size: 0.68rem;
  font-weight: 700;
  background: #ffffff;
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 99px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.cpz-prompt-chip:hover {
  background: #dcfce7;
  border-color: #22c55e;
  transform: translateY(-1px);
}

/* ==========================================================================
   4-SECTION UNIT TEST PAPER STYLES
   ========================================================================== */
.cpz-exam-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-left: 4px solid var(--cpz-primary-dark);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.cpz-section-pill {
  background: var(--cpz-primary-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.cpz-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  flex: 1;
}
.cpz-section-marks {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
}
.cpz-exam-subquestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cpz-subq-item {
  font-size: 0.78rem;
  color: #1e293b;
  line-height: 1.4;
}
.cpz-subq-item p {
  margin: 0 0 3px;
}
.cpz-mcq-grid-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  font-size: 0.74rem;
  color: #334155;
  margin-left: 8px;
}
.cpz-exam-ans-slot {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0369a1;
  margin-top: 3px;
}

/* ==========================================================================
   ANALOG CLOCK & TIME STYLES
   ========================================================================== */
.cpz-clock-card {
  text-align: center;
}
.cpz-clock-svg {
  width: 90px;
  height: 90px;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   FACT FAMILY HOUSES
   ========================================================================== */
.cpz-fact-family-house {
  border: 2px solid #0f172a;
  border-radius: 8px;
  width: 140px;
  margin: 6px auto;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.cpz-ff-roof {
  background: #f8fafc;
  border-bottom: 2px solid #0f172a;
  padding: 6px 4px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.cpz-ff-body {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}
.cpz-ff-eq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* ==========================================================================
   SUDOKU LOGIC GRIDS
   ========================================================================== */
.cpz-sudoku-grid {
  display: inline-block;
  border: 3px solid #0f172a;
  background: #ffffff;
  margin: 6px auto;
}
.cpz-sudoku-row {
  display: flex;
}
.cpz-sudoku-cell {
  width: 34px;
  height: 34px;
  border: 1px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}
.cpz-sudoku-4x4 .cpz-sudoku-cell:nth-child(2) {
  border-right: 2.5px solid #0f172a;
}
.cpz-sudoku-4x4 .cpz-sudoku-row:nth-child(2) .cpz-sudoku-cell {
  border-bottom: 2.5px solid #0f172a;
}
.cpz-sudoku-given {
  background: #f1f5f9;
  color: #0f172a;
}
.cpz-sudoku-empty {
  background: #ffffff;
}
.cpz-sudoku-input {
  width: 100%;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #0284c7;
  outline: none;
  background: transparent;
}

/* ==========================================================================
   1,150+ CATALOG MODAL & FILTER TABS
   ========================================================================== */
.cpz-cat-tab {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.cpz-cat-tab:hover {
  border-color: #0284c7;
  color: #0284c7;
}
.cpz-cat-tab.active {
  background: var(--cpz-primary-dark);
  color: #ffffff;
  border-color: var(--cpz-primary-dark);
}
.cpz-catalog-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  border-color: #93c5fd !important;
}

/* ==========================================================================
   POWERHOUSE FEATURE 1: MULTI-PAGE THEMATIC WORKBOOK PACK
   ========================================================================== */
.cpz-workbook-cover {
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.cpz-wb-outer-border {
  border: 4px double #0f172a;
  border-radius: 12px;
  padding: 8px;
  height: 100%;
  box-sizing: border-box;
}
.cpz-wb-inner-border {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 24px 20px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, #ffffff 0%, #f8fafc 100%);
}
.cpz-wb-badge-top {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.cpz-wb-title {
  font-family: var(--cpz-font-display, 'Outfit', sans-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.15;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.cpz-wb-topic {
  font-family: var(--cpz-font-display, 'Outfit', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cpz-primary, #10aeb2);
  margin: 0 0 8px;
}
.cpz-wb-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.4;
}
.cpz-wb-mascot-row {
  display: flex;
  gap: 16px;
  font-size: 2rem;
  margin-bottom: 24px;
}
.cpz-wb-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.cpz-wb-student-box {
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.cpz-wb-field {
  font-size: 0.82rem;
  color: #334155;
  margin-bottom: 6px;
}
.cpz-wb-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cpz-wb-line {
  color: #94a3b8;
}
.cpz-wb-toc-box {
  width: 100%;
  max-width: 540px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: auto;
  text-align: left;
}
.cpz-wb-toc-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.cpz-wb-toc-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cpz-wb-toc-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #334155;
  font-weight: 600;
}
.cpz-wb-toc-check {
  font-weight: 700;
  color: #64748b;
}
.cpz-wb-footer-motto {
  font-size: 0.8rem;
  font-style: italic;
  color: #475569;
  margin-top: 18px;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  width: 100%;
  max-width: 500px;
}
.cpz-wb-page-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cpz-wb-page-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.cpz-wb-page-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  font-family: var(--cpz-font-display, 'Outfit', sans-serif);
}

/* ==========================================================================
   POWERHOUSE FEATURE 1 (CONT.): CERTIFICATE OF ACHIEVEMENT
   ========================================================================== */
.cpz-completion-certificate {
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.cpz-cert-border-outer {
  border: 5px double #b45309;
  border-radius: 12px;
  padding: 8px;
  height: 100%;
  box-sizing: border-box;
  background: #fffdf5;
}
.cpz-cert-border-inner {
  border: 2px solid #ca8a04;
  border-radius: 8px;
  padding: 30px 24px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #fffbeb 100%);
}
.cpz-cert-seal {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
}
.cpz-cert-badge {
  font-size: 0.78rem;
  font-weight: 900;
  color: #92400e;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cpz-cert-title {
  font-family: var(--cpz-font-display, 'Outfit', Georgia, serif);
  font-size: 2.3rem;
  font-weight: 900;
  color: #78350f;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cpz-cert-sub {
  font-size: 0.8rem;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
}
.cpz-cert-body {
  margin-bottom: auto;
  max-width: 580px;
}
.cpz-cert-present {
  font-size: 0.95rem;
  font-style: italic;
  color: #451a03;
  margin: 0 0 14px;
}
.cpz-cert-name-line {
  font-family: 'Brush Script MT', cursive, Georgia, serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: #1e3a8a;
  margin: 0 0 16px;
  line-height: 1.2;
}
.cpz-cert-reason {
  font-size: 0.85rem;
  color: #57534e;
  line-height: 1.5;
  margin: 0 0 12px;
}
.cpz-cert-unit-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #0f172a;
  font-family: var(--cpz-font-display, 'Outfit', sans-serif);
  padding: 6px 18px;
  background: #fef08a;
  border-radius: 99px;
  display: inline-block;
  margin-top: 4px;
}
.cpz-cert-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 14px;
  margin-top: 24px;
}
.cpz-cert-sign-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}
.cpz-cert-line {
  font-size: 0.85rem;
  color: #a8a29e;
  margin-bottom: 4px;
}
.cpz-cert-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #78350f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cpz-cert-gold-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border: 3px dashed #ca8a04;
  border-radius: 50%;
  background: #fef9c3;
  box-shadow: 0 4px 10px rgba(202, 138, 4, 0.2);
}

/* ==========================================================================
   POWERHOUSE FEATURE 2: NAME & HANDWRITING STENCILS
   ========================================================================== */
.cpz-stencil-ruler-track {
  transition: transform 0.15s ease;
}
.cpz-stencil-ruler-track:hover {
  border-color: #93c5fd !important;
}

/* ==========================================================================
   POWERHOUSE FEATURE 4: BOARD GAMES & CRAFTS
   ========================================================================== */
.cpz-boardgame-tile {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cpz-boardgame-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12) !important;
}

/* ==========================================================================
   SUPER-PLATFORM UPGRADES: THEMATIC SKINS & AUDIO & QR CODE & SEED
   ========================================================================== */

/* 1. Thematic Visual Skins */
.cpz-sheet-paper[data-theme="space"] {
  border-color: #6366f1 !important;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 120px) !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12) !important;
}
.cpz-sheet-paper[data-theme="space"] .cpz-sheet-title {
  color: #3730a3 !important;
}
.cpz-sheet-paper[data-theme="space"] .cpz-q-num {
  background: #6366f1 !important;
  color: #ffffff !important;
}

.cpz-sheet-paper[data-theme="dino"] {
  border-color: #059669 !important;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 120px) !important;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.12) !important;
}
.cpz-sheet-paper[data-theme="dino"] .cpz-sheet-title {
  color: #065f46 !important;
}
.cpz-sheet-paper[data-theme="dino"] .cpz-q-num {
  background: #059669 !important;
  color: #ffffff !important;
}

.cpz-sheet-paper[data-theme="ocean"] {
  border-color: #0284c7 !important;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 120px) !important;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.12) !important;
}
.cpz-sheet-paper[data-theme="ocean"] .cpz-sheet-title {
  color: #075985 !important;
}
.cpz-sheet-paper[data-theme="ocean"] .cpz-q-num {
  background: #0284c7 !important;
  color: #ffffff !important;
}

.cpz-sheet-paper[data-theme="safari"] {
  border-color: #d97706 !important;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 120px) !important;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.12) !important;
}
.cpz-sheet-paper[data-theme="safari"] .cpz-sheet-title {
  color: #92400e !important;
}
.cpz-sheet-paper[data-theme="safari"] .cpz-q-num {
  background: #d97706 !important;
  color: #ffffff !important;
}

.cpz-sheet-paper[data-theme="magic"] {
  border-color: #9333ea !important;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 120px) !important;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.12) !important;
}
.cpz-sheet-paper[data-theme="magic"] .cpz-sheet-title {
  color: #6b21a8 !important;
}
.cpz-sheet-paper[data-theme="magic"] .cpz-q-num {
  background: #9333ea !important;
  color: #ffffff !important;
}

/* Thematic Corner Flair SVG Container */
.cpz-theme-corner-topright {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 54px;
  height: 54px;
  pointer-events: none;
  opacity: 0.85;
}

/* 2. Scannable Answer Key QR Code Box on Footer */
.cpz-qr-footer-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cpz-qr-footer-box:hover {
  border-color: #6366f1;
  transform: translateY(-1px);
}
.cpz-qr-footer-box svg {
  flex-shrink: 0;
  display: block;
}
.cpz-qr-footer-box > div {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cpz-qr-footer-text {
  font-size: 0.65rem;
  line-height: 1.2;
  color: #475569;
}
.cpz-qr-footer-text strong {
  color: #1e293b;
  display: block;
}

/* 3. Audio Read-Aloud & Phonics Karaoke Highlighting */
.cpz-audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 8px;
  transition: all 0.15s ease;
  vertical-align: middle;
}
.cpz-audio-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
  transform: scale(1.08);
}
.cpz-speaking-active {
  border-left: 4px solid #6366f1 !important;
  background: #fdf4ff !important;
}
.cpz-word-token {
  display: inline-block;
  transition: background 0.1s ease, transform 0.1s ease;
  padding: 0 2px;
  border-radius: 3px;
}
.cpz-reading-highlight {
  background: #fef08a !important;
  color: #854d0e !important;
  font-weight: 800 !important;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.6);
  transform: scale(1.08);
}

/* 4. Solution Modal & 365 Daily Calendar Modal */
.cpz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cpz-modal-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2), 0 10px 10px -5px rgba(0,0,0,0.08);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cpz-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.cpz-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

@media print {
  .cpz-audio-btn {
    display: none !important;
  }
  .cpz-modal-overlay {
    display: none !important;
  }
}

/* ========================================================================= */
/* WORKSHEET STUDIO ENHANCEMENTS: IN-PLACE REMIXER, HEADERS, DYSLEXIA, RUBRIC */
/* ========================================================================= */

/* 1. In-Place Question Remixer Hover Toolbar */
.cpz-question-box {
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cpz-question-box:hover {
  border-color: #94a3b8;
}
.cpz-q-remix-bar {
  position: absolute;
  top: -12px;
  right: 12px;
  display: none;
  align-items: center;
  gap: 3px;
  background: #0f172a;
  border-radius: 6px;
  padding: 2px 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
}
.cpz-question-box:hover .cpz-q-remix-bar {
  display: flex;
}
.cpz-q-remix-btn {
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.cpz-q-remix-btn:hover {
  background: #334155;
  color: #38bdf8;
}
.cpz-q-remix-btn.cpz-q-remix-del:hover {
  background: #dc2626;
  color: #fff;
}
@media print {
  .cpz-q-remix-bar {
    display: none !important;
  }
}

/* 2. Multi-Style Header Banners */
.cpz-ws-header-crest {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.cpz-ws-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.cpz-ws-header-cloud {
  background: #f0f9ff;
  border: 3px dashed #0284c7;
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 14px;
  position: relative;
}

/* 3. Dyslexia-Friendly Accessibility Mode */
.cpz-sheet-paper.cpz-dyslexia-mode {
  background: #fdfbf7 !important;
  font-family: 'OpenDyslexic', 'Lexend', 'Comic Sans MS', sans-serif !important;
  line-height: 1.85 !important;
  letter-spacing: 0.04em !important;
}
.cpz-sheet-paper.cpz-dyslexia-mode .cpz-q-prompt {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  letter-spacing: 0.03em !important;
  color: #0f172a !important;
}

/* 4. Dual-Language English + Hindi Subtitles */
.cpz-bilingual-sub {
  display: block;
  font-size: 0.88rem;
  color: #0369a1;
  font-weight: 600;
  margin-top: 2px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* 5. Secret Message Cryptogram Riddle Decoder */
.cpz-cryptogram-box {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
}
.cpz-crypto-key-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}
.cpz-crypto-cell {
  background: #ffffff;
  border: 1px solid #d97706;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #92400e;
}
.cpz-crypto-solve-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cpz-crypto-letter-slot {
  width: 28px;
  height: 32px;
  border-bottom: 2px solid #92400e;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #b45309;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
}

/* 6. Dedicated Page 2 Teacher Answer Key & 4-Tier Rubric */
.cpz-page2-break {
  page-break-before: always !important;
  break-before: page !important;
}
.cpz-rubric-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.78rem;
}
.cpz-rubric-table th, .cpz-rubric-table td {
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  text-align: left;
}
.cpz-rubric-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 800;
}

/* 7. Watermark Overlay */
.cpz-sheet-paper.has-watermark {
  position: relative;
  overflow: hidden;
}
.cpz-watermark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-size: 3.8rem;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.045);
  letter-spacing: 6px;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
}

/* ========================================================================= */
/* UNIVERSAL HOMEWORK STUDIO & MASTER PLANNER STYLING */
/* ========================================================================= */

.cpz-hw-paper {
  background: #ffffff;
  border: 2px solid #0f172a;
  border-radius: 4px;
  padding: 24px;
  width: 100%;
  max-width: 820px;
  min-height: 1080px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto;
}
.cpz-hw-paper.orientation-landscape {
  max-width: 1100px;
  min-height: 780px;
}

/* Daily Slips (2-up and 4-up) */
.cpz-hw-multi-slips {
  display: grid;
  gap: 16px;
  width: 100%;
  height: 100%;
}
.cpz-hw-multi-slips.slips-2up {
  grid-template-rows: 1fr 1fr;
}
.cpz-hw-multi-slips.slips-4up {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.cpz-hw-slip-card {
  border: 1.5px dashed #475569;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
}

/* Weekly Choice Board (3x3 Tic-Tac-Toe / 5-Day Grid) */
.cpz-hw-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.cpz-hw-choice-cell {
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}
.cpz-hw-choice-cell.center-cell {
  background: #fefce8;
  border-color: #f59e0b;
}

/* Monthly Project Calendar Grid */
.cpz-hw-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.cpz-hw-month-day {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px;
  min-height: 80px;
  background: #ffffff;
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
}
.cpz-hw-month-day.weekend {
  background: #fefce8;
  border-color: #fde047;
}

/* Yearly Curriculum Roadmap Table */
.cpz-hw-yearly-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.75rem;
}
.cpz-hw-yearly-table th, .cpz-hw-yearly-table td {
  border: 1px solid #cbd5e1;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}
.cpz-hw-yearly-table th {
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
}
.cpz-hw-yearly-table tr:nth-child(even) {
  background: #f8fafc;
}

@media print {
  .cpz-hw-paper {
    page-break-after: always !important;
    break-after: page !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 12mm !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   CHILD PATHSHALA ZONE: REDESIGNED MASTER HUB & NAVIGATION DIRECTORY
   ========================================================================== */

.cpz-filter-pill {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--cpz-radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cpz-filter-pill:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.cpz-filter-pill.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cpz-tool-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.cpz-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  border-color: #94a3b8;
}

.cpz-tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cpz-tag-pill {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.cpz-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cpz-micro-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.cpz-grade-btn {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 7px 16px;
  border-radius: var(--cpz-radius-full);
  cursor: pointer;
  transition: all 0.18s ease;
}

.cpz-grade-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.cpz-grade-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.cpz-subject-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cpz-subject-box:hover {
  transform: translateY(-3px);
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.08);
}

/* Subbar Clean Dropdown Menu */
.cpz-nav-dropdown {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  z-index: 1000;
}

.cpz-nav-dropdown-btn {
  cursor: pointer;
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.cpz-nav-dropdown-btn:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}

.cpz-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  margin-top: 0;
  background: #ffffff;
  min-width: 440px;
  max-width: calc(100vw - 32px);
  border-radius: 16px;
  box-shadow: 0 20px 48px -6px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);
  border: 1.5px solid #e2e8f0;
  padding: 12px;
  z-index: 999999;
}

.cpz-nav-dropdown:hover .cpz-nav-dropdown-menu,
.cpz-nav-dropdown:focus-within .cpz-nav-dropdown-menu,
.cpz-nav-dropdown.is-open .cpz-nav-dropdown-menu {
  display: block;
  animation: cpzDropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cpzDropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cpz-dropdown-heading {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #64748b;
  padding: 8px 10px 4px;
  letter-spacing: 0.5px;
}

.cpz-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.cpz-dropdown-item:hover {
  background: #f0fdf4;
  color: #047857;
}

/* ==========================================================================
   UNIFIED PREMIUM MASTER NAVIGATION HEADER & RIBBON
   ========================================================================== */

/* ==========================================================================
   PRINT & PLAY ZONE: FLOATING MINIMALIST ISLAND (2026 REDESIGN)
   ========================================================================== */
.cpz-island-wrapper {
  padding: 16px 0 20px;
  position: relative;
  z-index: 40;
}

.cpz-island-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--cpz-radius-full, 9999px);
  padding: 6px 14px 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.07);
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  transition: all 0.25s ease;
}

.cpz-island-card:hover {
  box-shadow: 0 12px 36px -4px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

/* 4-Role Mode Switcher */
.cpz-island-role-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--cpz-radius-full, 9999px);
}

.cpz-island-role-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--cpz-radius-full, 9999px);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.cpz-island-role-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
}

.cpz-island-role-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.cpz-island-role-tab.role-child.active {
  color: #ea580c;
  background: #ffffff;
  border: 1px solid #fed7aa;
}
.cpz-island-role-tab.role-parent.active {
  color: #f43f5e;
  background: #ffffff;
  border: 1px solid #fecdd3;
}
.cpz-island-role-tab.role-teacher.active {
  color: #0d9488;
  background: #ffffff;
  border: 1px solid #99f6e4;
}
.cpz-island-role-tab.role-school.active {
  color: #4f46e5;
  background: #ffffff;
  border: 1px solid #c7d2fe;
}

.cpz-island-emoji {
  font-size: 1.15rem;
  line-height: 1;
}

/* Island Right Actions */
.cpz-island-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cpz-island-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--cpz-radius-full, 9999px);
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cpz-island-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0b4b4e;
  transform: translateY(-1px);
}

.cpz-island-btn.active {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

.cpz-count-pill {
  background: #0b4b4e;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

.cpz-island-quota {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: var(--cpz-radius-full, 9999px);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.cpz-island-quota.pro {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fef08a;
}

.cpz-island-cta {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--cpz-radius-full, 9999px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cpz-island-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

/* Responsive Island Navigation */
@media (max-width: 840px) {
  .cpz-island-card {
    border-radius: 20px;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }
  .cpz-island-role-nav {
    width: 100%;
    justify-content: center;
  }
  .cpz-island-actions {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
}

@media (max-width: 540px) {
  .cpz-island-role-nav {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }
  .cpz-island-role-nav::-webkit-scrollbar {
    display: none !important;
  }
  .cpz-island-role-tab {
    padding: 6px 8px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }
  .cpz-island-emoji {
    font-size: 0.95rem !important;
  }
  .cpz-island-btn,
  .cpz-island-quota,
  .cpz-island-cta {
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
  }
  .cpz-worksheet-wrapper {
    flex-direction: column !important;
  }
  .cpz-worksheet-editor {
    width: 100% !important;
    max-width: 100% !important;
  }
  #cpzCertificateBatchContainer {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 4px !important;
  }
  .cpz-certificate-paper {
    min-width: 680px !important;
    max-width: 680px !important;
    margin: 0 auto !important;
  }
  .cpz-sheet-paper:not(.cpz-certificate-paper) {
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 16px 14px !important;
  }
  .cpz-sheet-question-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    overflow: visible !important;
  }
  .cpz-question-box {
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .cpz-qr-footer-text {
    max-width: 100% !important;
    word-break: break-word !important;
  }
  .cpz-btn {
    white-space: normal !important;
    line-height: 1.3 !important;
    min-width: 0 !important;
    text-align: center !important;
  }
}

/* ==========================================================================
   Universal Worksheet Studio Redesign Styles
   ========================================================================== */
.cpz-ws-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.cpz-ws-title-group h1 {
  font-family: var(--cpz-font-display);
  font-size: 2rem;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.cpz-ws-title-group p {
  color: #64748b;
  font-size: 0.94rem;
  margin: 6px 0 0;
  max-width: 780px;
  line-height: 1.45;
}

.cpz-ws-actions-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Mode Navigation Segmented Bar */
.cpz-ws-mode-nav {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--cpz-radius-full);
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
}

.cpz-ws-mode-btn {
  padding: 8px 18px;
  border-radius: var(--cpz-radius-full);
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.cpz-ws-mode-btn:hover {
  color: #0f172a;
}

.cpz-ws-mode-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Studio 2-Column Layout */
.cpz-ws-studio-grid {
  display: grid;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* Left Sidebar Stepper Navigation */
.cpz-ws-sidebar {
  background: #ffffff;
  border-radius: var(--cpz-radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.cpz-ws-stepper-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.cpz-ws-step-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.cpz-ws-step-tab:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.cpz-ws-step-tab.active {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

.cpz-ws-step-tab.completed {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.cpz-ws-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.cpz-ws-step-tab.active .cpz-ws-step-badge {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.cpz-ws-step-tab.completed .cpz-ws-step-badge {
  background: #059669;
  color: #ffffff;
}

.cpz-ws-step-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.cpz-ws-step-num {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

.cpz-ws-step-tab.active .cpz-ws-step-num {
  color: #0284c7;
}

.cpz-ws-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpz-ws-step-tab.active .cpz-ws-step-label {
  color: #0c4a6e;
}

/* Quick Subject Selector Grid */
.cpz-ws-subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.cpz-ws-subject-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: center;
  box-sizing: border-box;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cpz-ws-subject-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.cpz-ws-subject-pill.active {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0369a1;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.14);
}

/* Step Footer Navigation */
.cpz-ws-step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: 8px;
  box-sizing: border-box;
}

/* Toggle Option Cards */
.cpz-ws-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 0;
}

.cpz-ws-toggle-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.cpz-ws-toggle-card label {
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
  margin-right: 10px;
  min-width: 0;
}

/* Sticky Preview Canvas */
.cpz-ws-preview-container {
  background: #e2e8f0;
  padding: 24px;
  border-radius: var(--cpz-radius-lg);
  overflow-x: auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 880px;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  box-shadow: inset 0 2px 10px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.cpz-ws-preview-toolbar {
  width: 100%;
  max-width: 794px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 16px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  flex-wrap: wrap;
  gap: 10px;
  z-index: 10;
  box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1100px) {
  .cpz-ws-studio-grid {
    grid-template-columns: 1fr;
  }
  .cpz-ws-preview-container {
    position: static;
    max-height: none;
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .cpz-ws-stepper-nav {
    grid-template-columns: 1fr;
  }
  .cpz-ws-subject-grid {
    grid-template-columns: 1fr;
  }
  .cpz-ws-mode-nav {
    width: 100%;
  }
  .cpz-ws-mode-btn {
    flex: 1;
    text-align: center;
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   PRINT & PLAY ZONE — REDESIGNED MODERN DESIGN SYSTEM (2026)
   ========================================================================== */

/* Privacy Capsule Ribbon */
.cpz-privacy-capsule {
  background: #ffffff;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--cpz-radius-full, 9999px);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
  font-size: 0.88rem;
}
.cpz-privacy-capsule-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #065f46;
}
.cpz-privacy-capsule-badge {
  background: #10b981;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.cpz-privacy-capsule-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cpz-privacy-pill-sm {
  background: #d1fae5;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--cpz-radius-full, 9999px);
}

/* Redesigned Hero Section */
.cpz-rd-hero {
  position: relative;
  background: radial-gradient(1100px 520px at 95% 10%, rgba(245, 158, 11, 0.18), transparent 60%),
              radial-gradient(850px 420px at 5% 90%, rgba(16, 174, 178, 0.22), transparent 60%),
              linear-gradient(135deg, #032527 0%, #083c40 45%, #052630 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 44px 40px;
  color: #ffffff;
  margin-bottom: 36px;
  box-shadow: 0 24px 60px -12px rgba(4, 37, 39, 0.35);
  overflow: hidden;
}
.cpz-rd-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.cpz-rd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: var(--cpz-radius-full, 9999px);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #67e8f9;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cpz-rd-hero-title {
  font-family: var(--cpz-font-display, inherit);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.cpz-rd-hero-title-accent {
  background: linear-gradient(90deg, #fcd34d 0%, #fb923c 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cpz-rd-hero-subtitle {
  font-family: var(--cpz-font-display, inherit);
  font-size: 1.25rem;
  font-weight: 700;
  color: #a5f3fc;
  margin: 0 0 14px;
  line-height: 1.4;
}
.cpz-rd-hero-desc {
  font-size: 1.02rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 620px;
}

/* Hero Search Capsule */
.cpz-rd-search-capsule {
  background: #ffffff;
  border-radius: 18px;
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  margin-bottom: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cpz-rd-search-capsule:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(16, 174, 178, 0.32);
}
.cpz-rd-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  color: #0f172a;
  background: transparent;
  padding: 10px 0;
}
.cpz-rd-search-input::placeholder {
  color: #64748b;
  font-size: 0.94rem;
}
.cpz-rd-search-clear {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.cpz-rd-search-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.cpz-rd-search-badge {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--cpz-radius-full, 9999px);
  white-space: nowrap;
}

/* Quick Search Trend Pills */
.cpz-rd-trend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cpz-rd-trend-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cpz-rd-trend-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--cpz-radius-full, 9999px);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}
.cpz-rd-trend-chip:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Hero Action Buttons */
.cpz-rd-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cpz-btn-hero-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff !important;
  font-size: 0.96rem;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}
.cpz-btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.45);
}
.cpz-btn-hero-secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.cpz-btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Hero Right: Live Interactive Floating Preview Bento Card */
.cpz-rd-hero-preview-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
}
.cpz-rd-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
}
.cpz-rd-preview-title {
  font-family: var(--cpz-font-display, inherit);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cpz-rd-preview-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--cpz-radius-full, 9999px);
  text-transform: uppercase;
}
.cpz-rd-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cpz-rd-mini-tile {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1.5px solid transparent;
}
.cpz-rd-mini-tile:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  border-color: #0b4b4e;
}
.cpz-rd-mini-tile-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 8px;
}
.cpz-rd-mini-tile-name {
  font-family: var(--cpz-font-display, inherit);
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  line-height: 1.3;
}
.cpz-rd-mini-tile-tag {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 700;
  margin-top: auto;
}

/* Glassmorphic Stats Strip */
.cpz-rd-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cpz-rd-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cpz-rd-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cpz-rd-stat-num {
  font-family: var(--cpz-font-display, inherit);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}
.cpz-rd-stat-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  line-height: 1.25;
}

/* Modern Section Headers */
.cpz-rd-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}
.cpz-rd-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  color: #ffffff;
  margin-bottom: 6px;
}
.cpz-rd-section-title {
  font-family: var(--cpz-font-display, inherit);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 4px;
  line-height: 1.25;
}
.cpz-rd-section-sub {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* 4 Tailored Role Portals Grid */
.cpz-rd-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.cpz-rd-role-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 22px;
  border: 2px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.cpz-rd-role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}
.cpz-rd-role-card.role-child {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 32%);
}
.cpz-rd-role-card.role-child:hover { border-color: #f97316; }
.cpz-rd-role-card.role-parent {
  border-color: #fecdd3;
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 32%);
}
.cpz-rd-role-card.role-parent:hover { border-color: #f43f5e; }
.cpz-rd-role-card.role-teacher {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 32%);
}
.cpz-rd-role-card.role-teacher:hover { border-color: #0d9488; }
.cpz-rd-role-card.role-school {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 32%);
}
.cpz-rd-role-card.role-school:hover { border-color: #6366f1; }

.cpz-rd-role-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cpz-rd-role-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cpz-rd-role-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cpz-rd-role-tag {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--cpz-radius-full, 9999px);
}
.role-child .cpz-rd-role-tag { background: #fef3c7; color: #b45309; }
.role-parent .cpz-rd-role-tag { background: #ffe4e6; color: #be123c; }
.role-teacher .cpz-rd-role-tag { background: #ccfbf1; color: #0f766e; }
.role-school .cpz-rd-role-tag { background: #e0e7ff; color: #4338ca; }

.cpz-rd-role-title {
  font-family: var(--cpz-font-display, inherit);
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
}
.cpz-rd-role-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.cpz-rd-role-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: #334155;
  border-top: 1px dashed #e2e8f0;
  padding-top: 14px;
}
.cpz-rd-role-features li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cpz-rd-role-btn {
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: transform 0.2s;
}
.role-child .cpz-rd-role-btn { color: #ea580c; }
.role-parent .cpz-rd-role-btn { color: #f43f5e; }
.role-teacher .cpz-rd-role-btn { color: #0d9488; }
.role-school .cpz-rd-role-btn { color: #4f46e5; }
.cpz-rd-role-card:hover .cpz-rd-role-btn { transform: translateX(4px); }

/* The 6 Crown Jewel Studios Bento Grid */
.cpz-rd-crown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 50px;
}
.cpz-rd-crown-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
.cpz-rd-crown-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
  border-color: #0b4b4e;
}
.cpz-rd-crown-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cpz-rd-crown-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.cpz-rd-crown-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cpz-rd-crown-badge {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--cpz-radius-full, 9999px);
}
.cpz-rd-crown-title {
  font-family: var(--cpz-font-display, inherit);
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
}
.cpz-rd-crown-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.cpz-rd-crown-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cpz-rd-micro-chip {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}
.cpz-rd-crown-btn {
  background: #0b4b4e;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(11, 75, 78, 0.18);
}
.cpz-rd-crown-btn:hover {
  background: #10aeb2;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 174, 178, 0.28);
}

/* Curriculum Subject Explorer Grid */
.cpz-rd-subjects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.cpz-rd-subject-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 14px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.cpz-rd-subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: #0b4b4e;
}
.cpz-rd-subj-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}
.cpz-rd-subj-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cpz-rd-subj-name {
  font-family: var(--cpz-font-display, inherit);
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}
.cpz-rd-subj-count {
  font-size: 0.74rem;
  font-weight: 700;
  color: #0d9488;
}

/* Secondary Specialized Studios Jump Grid */
.cpz-rd-sec-studios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 48px;
}
.cpz-rd-sec-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.cpz-rd-sec-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  border-color: #0b4b4e;
}
.cpz-rd-sec-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.cpz-rd-sec-text h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
  line-height: 1.25;
}
.cpz-rd-sec-text span {
  font-size: 0.76rem;
  color: #64748b;
  display: block;
}

/* Pedagogical Excellence 4 Pillars */
.cpz-rd-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.cpz-rd-pillar-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.cpz-rd-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e6f7f7;
  color: #0b4b4e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.cpz-rd-pillar-title {
  font-family: var(--cpz-font-display, inherit);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.cpz-rd-pillar-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* FAQ Accordion */
.cpz-rd-faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}
.cpz-rd-faq-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.cpz-rd-faq-item.open {
  border-color: #0b4b4e;
}
.cpz-rd-faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
}
.cpz-rd-faq-toggle {
  font-size: 1.25rem;
  color: #0b4b4e;
  line-height: 1;
  transition: transform 0.2s;
}
.cpz-rd-faq-item.open .cpz-rd-faq-toggle {
  transform: rotate(45deg);
}
.cpz-rd-faq-body {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  display: none;
}
.cpz-rd-faq-item.open .cpz-rd-faq-body {
  display: block;
}

/* Call to Action Banner */
.cpz-rd-cta-banner {
  background: linear-gradient(135deg, #042528 0%, #0b4b4e 50%, #00878a 100%);
  border-radius: 24px;
  padding: 44px 36px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(11, 75, 78, 0.28);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.cpz-rd-cta-title {
  font-family: var(--cpz-font-display, inherit);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  margin: 0 0 10px;
  line-height: 1.2;
}
.cpz-rd-cta-desc {
  font-size: 1.05rem;
  color: #e0f2fe;
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .cpz-rd-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cpz-rd-roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cpz-rd-crown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cpz-rd-subjects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cpz-rd-sec-studios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cpz-rd-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cpz-rd-hero {
    padding: 30px 20px;
    border-radius: 20px;
  }
  .cpz-rd-stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .cpz-rd-crown-grid {
    grid-template-columns: 1fr;
  }
  .cpz-rd-subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cpz-rd-roles-grid {
    grid-template-columns: 1fr;
  }
  .cpz-rd-stat-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cpz-rd-sec-studios-grid {
    grid-template-columns: 1fr;
  }
  .cpz-rd-pillars-grid {
    grid-template-columns: 1fr;
  }
  .cpz-rd-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .cpz-btn-hero-primary,
  .cpz-btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  .cpz-privacy-capsule {
    border-radius: 16px;
  }
}

/* ==========================================================================
   CHILD PATHSHALA ZONE: WORKSHEET PRINT & MOBILE ALIGNMENT
   ========================================================================== */
@media (max-width: 768px) {
  .cpz-container, .cpz-worksheet-wrapper, .cpz-ws-preview-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
  }
  .cpz-sheet-paper {
    padding: 18px 14px !important;
    max-width: 100% !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
  }
  .cpz-ws-actions-group, .cpz-toolbar, .cpz-role-nav, .cpz-ws-mode-nav {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .cpz-btn, .cpz-btn-primary, .cpz-btn-secondary {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .dx-header, .dx-footer, .site-header, .site-footer,
  .cpz-island-nav, .cpz-ws-header, .cpz-ws-actions-group,
  .cpz-ai-spotlight-banner, .cpz-ws-mode-nav,
  .cpz-worksheet-editor, .cpz-ws-preview-toolbar,
  .cpz-q-remix-bar, .wa-float, .ai-float, .cp-sticky, .cp-cartbar,
  #scrollProgress, #searchDrawer, #searchOverlay, .menu-btn,
  .cpz-modal-overlay, #globalQuotaModal, .cpz-audio-btn {
    display: none !important;
  }
  .cpz-worksheet-wrapper, .cpz-ws-preview-container, #cpzPaperScaleWrapper, #cpzMultiPageContainer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: none !important;
  }
  .cpz-sheet-paper {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 270mm !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 6mm 8mm !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    page-break-after: always !important;
    break-after: page !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  .cpz-sheet-paper:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
}



