/* ============================================================
   PRESENTATION WIZARD — Production CSS
   ============================================================ */

/* ---- Wizard Shell ---------------------------------------- */
.pptw-wizard-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---- Step Progress Bar ----------------------------------- */
.pptw-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 10px 16px;
    background: #fff;
    border-radius: 12px 12px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    flex-wrap: wrap;
}

.pptw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 80px;
    max-width: 140px;
}

.pptw-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: #ddd;
    transition: background 0.4s;
    z-index: 0;
}

.pptw-step.done:not(:last-child)::after,
.pptw-step.active:not(:last-child)::after {
    background: #6C63FF;
}

.pptw-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #aaa;
    transition: all 0.3s;
    z-index: 1;
    position: relative;
}

.pptw-step.active .pptw-step-circle {
    border-color: #6C63FF;
    background: #6C63FF;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(108,99,255,0.15);
}

.pptw-step.done .pptw-step-circle {
    border-color: #4CAF50;
    background: #4CAF50;
    color: #fff;
}

.pptw-step-label {
    font-size: 11px;
    color: #aaa;
    margin-top: 5px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pptw-step.active .pptw-step-label {
    color: #6C63FF;
}

.pptw-step.done .pptw-step-label {
    color: #4CAF50;
}

/* ---- Step Panels ----------------------------------------- */
.pptw-panel {
    display: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 28px 28px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    animation: pptw-fade-in 0.3s ease;
}

.pptw-panel.active {
    display: block;
}

@keyframes pptw-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Step Navigation Buttons ----------------------------- */
.pptw-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 10px;
}

.pptw-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pptw-btn-back {
    background: #f0f0f0;
    color: #555;
}
.pptw-btn-back:hover { background: #e0e0e0; }

.pptw-btn-next {
    background: linear-gradient(135deg, #6C63FF, #8B85FF);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108,99,255,0.3);
}
.pptw-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(108,99,255,0.4);
}

.pptw-btn-generate {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #fff;
    box-shadow: 0 4px 12px rgba(76,175,80,0.3);
    padding: 12px 28px;
    font-size: 15px;
}
.pptw-btn-generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(76,175,80,0.4);
}

.pptw-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

/* ---- Step 1: Input Mode Cards ---------------------------- */
.pptw-input-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 4px;
}

.pptw-input-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: #fafafa;
}

.pptw-input-card:hover {
    border-color: #6C63FF;
    background: #f3f2ff;
    transform: translateY(-2px);
}

.pptw-input-card.selected {
    border-color: #6C63FF;
    background: #f0eeff;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.pptw-input-card-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.pptw-input-card-title {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    display: block;
}

.pptw-input-card-desc {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    display: block;
}

/* ---- Step 1: Input sub-forms ----------------------------- */
.pptw-input-form {
    display: none;
    margin-top: 18px;
    animation: pptw-fade-in 0.25s ease;
}
.pptw-input-form.active { display: block; }

/* ---- Step 2: Theme Picker -------------------------------- */
.pptw-theme-section-title {
    display: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin: 20px 0 10px;
}
.pptw-theme-section-title:first-child { margin-top: 0; }

.pptw-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    justify-content: start;
    gap: 14px;
    margin: 18px 0 6px;
}

.pptw-theme-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s;
    background: #fff;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
}

.pptw-theme-card:hover {
    border-color: #6C63FF;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.pptw-theme-card.selected {
    border-color: #6C63FF;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.2), 0 6px 18px rgba(0,0,0,0.1);
}

.pptw-theme-preview {
    flex: 1 1 auto;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    position: relative;
    overflow: hidden;
}

.pptw-theme-preview-title {
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pptw-theme-preview-body {
    font-size: 8px;
    line-height: 1.5;
    opacity: 0.9;
}

.pptw-theme-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pptw-theme-label {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    border-top: 1px solid #eee;
    background: #fafafa;
}

/* Theme: Modern Purple */
.pptw-theme-modern .pptw-theme-preview {
    background: linear-gradient(135deg, #6C63FF 0%, #3f3d89 100%);
}
.pptw-theme-modern .pptw-theme-preview-title { color: #fff; }
.pptw-theme-modern .pptw-theme-preview-body  { color: rgba(255,255,255,0.85); }
.pptw-theme-modern .pptw-theme-badge { background: rgba(255,255,255,0.2); color: #fff; }

/* Theme: Chalk */
.pptw-theme-chalk .pptw-theme-preview {
    background: #1a1a2e;
}
.pptw-theme-chalk .pptw-theme-preview-title {
    color: #f5f0e0;
    font-family: 'Courier New', monospace;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-color: rgba(255,255,255,0.3);
}
.pptw-theme-chalk .pptw-theme-preview-body {
    color: #e0d7c0;
    font-family: 'Courier New', monospace;
}
.pptw-theme-chalk .pptw-theme-badge { background: rgba(255,255,255,0.1); color: #f5f0e0; }

/* Theme: Ocean */
.pptw-theme-ocean .pptw-theme-preview {
    background: linear-gradient(135deg, #0f4c75 0%, #1b6ca8 100%);
}
.pptw-theme-ocean .pptw-theme-preview-title { color: #e0f4ff; }
.pptw-theme-ocean .pptw-theme-preview-body  { color: rgba(224,244,255,0.85); }
.pptw-theme-ocean .pptw-theme-badge { background: rgba(255,255,255,0.15); color: #e0f4ff; }

/* Theme: Sunrise */
.pptw-theme-sunrise .pptw-theme-preview {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}
.pptw-theme-sunrise .pptw-theme-preview-title { color: #fff; }
.pptw-theme-sunrise .pptw-theme-preview-body  { color: rgba(255,255,255,0.9); }
.pptw-theme-sunrise .pptw-theme-badge { background: rgba(255,255,255,0.2); color: #fff; }

/* Theme: Forest */
.pptw-theme-forest .pptw-theme-preview {
    background: linear-gradient(135deg, #2d6a4f 0%, #52b788 100%);
}
.pptw-theme-forest .pptw-theme-preview-title { color: #f0fff4; }
.pptw-theme-forest .pptw-theme-preview-body  { color: rgba(240,255,244,0.9); }
.pptw-theme-forest .pptw-theme-badge { background: rgba(255,255,255,0.15); color: #f0fff4; }

/* Theme: Clean White */
.pptw-theme-clean .pptw-theme-preview {
    background: #ffffff;
    border-bottom: 1px solid #eee;
}
.pptw-theme-clean .pptw-theme-preview-title { color: #222; }
.pptw-theme-clean .pptw-theme-preview-body  { color: #555; }
.pptw-theme-clean .pptw-theme-badge { background: #f0f0f0; color: #333; }

/* Theme: Midnight */
.pptw-theme-midnight .pptw-theme-preview {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%);
}
.pptw-theme-midnight .pptw-theme-preview-title { color: #e0e0e0; }
.pptw-theme-midnight .pptw-theme-preview-body  { color: rgba(224,224,224,0.8); }
.pptw-theme-midnight .pptw-theme-badge { background: rgba(255,255,255,0.1); color: #ddd; }

/* Theme: Rose Gold */
.pptw-theme-rosegold .pptw-theme-preview {
    background: linear-gradient(135deg, #c9a88e 0%, #e8c5a0 100%);
}
.pptw-theme-rosegold .pptw-theme-preview-title { color: #3d2b1f; }
.pptw-theme-rosegold .pptw-theme-preview-body  { color: rgba(61,43,31,0.85); }
.pptw-theme-rosegold .pptw-theme-badge { background: rgba(255,255,255,0.3); color: #3d2b1f; }

/* Studio Collection previews */
.pptw-theme-aurora .pptw-theme-preview { background: linear-gradient(135deg, #134e4a 0%, #312e81 100%); }
.pptw-theme-graphite .pptw-theme-preview { background: linear-gradient(135deg, #111827 0%, #3f3f46 100%); }
.pptw-theme-crimson .pptw-theme-preview { background: linear-gradient(135deg, #7f1d1d 0%, #2b1216 100%); }
.pptw-theme-sage .pptw-theme-preview { background: linear-gradient(135deg, #f7fbf6 0%, #dfe9df 100%); }
.pptw-theme-sandstone .pptw-theme-preview { background: linear-gradient(135deg, #fff8f0 0%, #f0c7a5 100%); }
.pptw-theme-cobalt .pptw-theme-preview { background: linear-gradient(135deg, #0f172a 0%, #155e75 100%); }
.pptw-theme-copper .pptw-theme-preview { background: linear-gradient(135deg, #2b160f 0%, #7c2d12 100%); }
.pptw-theme-orchid .pptw-theme-preview { background: linear-gradient(135deg, #3b0a2f 0%, #8b3a62 100%); }
.pptw-theme-mint .pptw-theme-preview { background: linear-gradient(135deg, #f6fff8 0%, #d8f3dc 100%); }
.pptw-theme-ruby .pptw-theme-preview { background: linear-gradient(135deg, #9f1239 0%, #4a0d20 100%); }

.pptw-theme-aurora .pptw-theme-preview-title,
.pptw-theme-graphite .pptw-theme-preview-title,
.pptw-theme-crimson .pptw-theme-preview-title,
.pptw-theme-cobalt .pptw-theme-preview-title,
.pptw-theme-copper .pptw-theme-preview-title,
.pptw-theme-orchid .pptw-theme-preview-title,
.pptw-theme-ruby .pptw-theme-preview-title { color: #fff; }

.pptw-theme-aurora .pptw-theme-preview-body,
.pptw-theme-graphite .pptw-theme-preview-body,
.pptw-theme-crimson .pptw-theme-preview-body,
.pptw-theme-cobalt .pptw-theme-preview-body,
.pptw-theme-copper .pptw-theme-preview-body,
.pptw-theme-orchid .pptw-theme-preview-body,
.pptw-theme-ruby .pptw-theme-preview-body { color: rgba(255,255,255,0.84); }

.pptw-theme-aurora .pptw-theme-badge,
.pptw-theme-graphite .pptw-theme-badge,
.pptw-theme-crimson .pptw-theme-badge,
.pptw-theme-cobalt .pptw-theme-badge,
.pptw-theme-copper .pptw-theme-badge,
.pptw-theme-orchid .pptw-theme-badge,
.pptw-theme-ruby .pptw-theme-badge { background: rgba(255,255,255,0.16); color: #fff; }

.pptw-theme-sage .pptw-theme-preview-title,
.pptw-theme-sandstone .pptw-theme-preview-title,
.pptw-theme-mint .pptw-theme-preview-title { color: #18251f; }
.pptw-theme-sage .pptw-theme-preview-body,
.pptw-theme-sandstone .pptw-theme-preview-body,
.pptw-theme-mint .pptw-theme-preview-body { color: rgba(24,37,31,0.78); }
.pptw-theme-sage .pptw-theme-badge,
.pptw-theme-sandstone .pptw-theme-badge,
.pptw-theme-mint .pptw-theme-badge { background: rgba(24,37,31,0.1); color: #18251f; }

/* ---- Step 3: Review / Settings --------------------------- */
.pptw-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pptw-review-item {
    background: #f8f8fb;
    border: 1px solid #e8e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}

.pptw-review-item-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.pptw-review-item-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

.pptw-review-theme-swatch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pptw-review-swatch-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.12);
}

.pptw-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.pptw-option-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8fb;
    border: 1px solid #e8e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
}

.pptw-option-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6C63FF;
    cursor: pointer;
}

.pptw-option-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.pptw-option-toggle-desc {
    font-size: 11px;
    color: #888;
    display: block;
}

.pptw-slide-count-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pptw-slide-count-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #6C63FF;
    background: transparent;
    color: #6C63FF;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s;
}
.pptw-slide-count-btn:hover {
    background: #6C63FF;
    color: #fff;
}

.pptw-slide-count-display {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    min-width: 28px;
    text-align: center;
}

/* ---- Loading State --------------------------------------- */
.pptw-generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 16px;
}

.pptw-generating-icon {
    font-size: 48px;
    animation: pptw-spin-pulse 2s infinite;
}

@keyframes pptw-spin-pulse {
    0%   { transform: scale(1) rotate(0deg); opacity: 1; }
    50%  { transform: scale(1.15) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

.pptw-generating-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.pptw-generating-sub {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.pptw-progress-bar-outer {
    width: 260px;
    height: 6px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.pptw-progress-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6C63FF, #4CAF50);
    border-radius: 6px;
    transition: width 0.5s ease;
    animation: pptw-progress-pulse 2s infinite;
}

@keyframes pptw-progress-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

/* ---- Slide Deck Preview ---------------------------------- */
.pptw-deck-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f8fb;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    flex-wrap: wrap;
    gap: 10px;
}

.pptw-deck-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pptw-slide-counter {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.pptw-deck-nav {
    display: flex;
    gap: 6px;
}

.pptw-deck-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.pptw-deck-nav-btn:hover {
    background: #6C63FF;
    color: #fff;
    border-color: #6C63FF;
}

.pptw-deck-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pptw-regen-slide-btn {
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid #6C63FF;
    border-radius: 6px;
    background: transparent;
    color: #6C63FF;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pptw-regen-slide-btn:hover {
    background: #6C63FF;
    color: #fff;
}

/* ---- Slide Wrapper + Display ----------------------------- */
.pptw-workspace {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: #f3f4f6;
    overflow: hidden;
}

.pptw-slide-wrapper {
    min-width: 0;
    overflow: hidden;
    background: #fff;
}

.pptw-slide-viewport {
    display: none;
    position: relative;
}
.pptw-slide-viewport.active { display: block; }

/* ---- THE ACTUAL SLIDE DESIGNS --- */

/* All slides share aspect ratio base */
.pptw-slide {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* --- Title Slide layout --- */
.pptw-slide-title-only {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8%;
}

/* --- Content Slide layout (text + optional image) --- */
.pptw-slide-content-layout {
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
}

.pptw-slide-content-layout.has-image {
    grid-template-columns: 58% 42%;
}

.pptw-slide-text-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 6% 5% 5%;
    overflow: hidden;
}

.pptw-slide-image-col {
    position: relative;
    overflow: hidden;
    padding-right: 12px;
    box-sizing: border-box;
    border-radius: 10px;
}

.pptw-slide-image-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.pptw-slide-header-bar {
    height: 7px;
    width: 100%;
    flex-shrink: 0;
}

.pptw-slide-title {
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 3% 0;
}

.pptw-slide-subtitle {
    font-weight: 400;
    opacity: 0.8;
    margin: 0;
}

.pptw-slide-body {
    font-size: clamp(9px, 1.5vw, 16px);
    line-height: 1.65;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 12;
    line-clamp: 12;
    -webkit-box-orient: vertical;
}

.pptw-slide-type-badge {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.pptw-slide-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pptw-slide-bullet-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: clamp(9px, 1.4vw, 15px);
    line-height: 1.5;
}

.pptw-bullet-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 6px;
}

/* Success criteria - style same as learning objectives */
.pptw-slide-sc-label {
    font-size: clamp(7px, 1vw, 11px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 10px 0 6px 0;
    opacity: 0.85;
}

.pptw-sc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pptw-sc-list li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: clamp(9px, 1.4vw, 15px);
    line-height: 1.5;
}

.pptw-bullet-sc {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 6px;
}

.pptw-slide-activity-box {
    margin: 6px 5% 0;
    border-radius: 8px;
    padding: 4% 5%;
    flex-shrink: 0;
}

.pptw-slide-activity-label {
    font-size: clamp(7px, 1vw, 11px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pptw-slide-activity-text {
    font-size: clamp(8px, 1.2vw, 13px);
    line-height: 1.55;
}

/* ===== THEME: MODERN PURPLE ===== */
.pptw-slide.theme-modern {
    background: linear-gradient(135deg, #6C63FF 0%, #3f3d89 100%);
    color: #fff;
}
.theme-modern .pptw-slide-header-bar { background: rgba(255,255,255,0.2); }
.theme-modern .pptw-slide-title { color: #fff; font-size: clamp(14px,3.5vw,38px); }
.theme-modern .pptw-slide-subtitle { color: rgba(255,255,255,0.82); font-size: clamp(10px,1.8vw,20px); }
.theme-modern .pptw-slide-body { color: rgba(255,255,255,0.92); }
.theme-modern .pptw-bullet-dot { background: #c9c5ff; }
.theme-modern .pptw-slide-activity-box { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); }
.theme-modern .pptw-slide-activity-label { color: #c9c5ff; }
.theme-modern .pptw-slide-activity-text { color: rgba(255,255,255,0.9); }
.theme-modern .pptw-slide-type-badge { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.theme-modern .pptw-slide-header-bar { background: rgba(255,255,255,0.25); height: 5px; }

/* ===== THEME: CHALK ===== */
.pptw-slide.theme-chalk {
    background: #1a1a2e;
    color: #f5f0e0;
    font-family: 'Courier New', monospace;
}
.theme-chalk .pptw-slide-header-bar { background: #f5f0e0; height: 3px; }
.theme-chalk .pptw-slide-title {
    color: #f5f0e0;
    font-size: clamp(14px,3.2vw,36px);
    text-shadow: 1px 1px 0 rgba(255,255,255,0.08), -1px -1px 0 rgba(0,0,0,0.3);
    letter-spacing: 0.02em;
}
.theme-chalk .pptw-slide-subtitle { color: #c8bfa8; font-size: clamp(10px,1.6vw,18px); }
.theme-chalk .pptw-slide-body { color: #e0d7c0; }
.theme-chalk .pptw-bullet-dot { background: #f5f0e0; opacity: 0.7; }
.theme-chalk .pptw-slide-activity-box { background: rgba(245,240,224,0.07); border: 1px dashed rgba(245,240,224,0.25); }
.theme-chalk .pptw-slide-activity-label { color: #f5c842; }
.theme-chalk .pptw-slide-activity-text { color: #e0d7c0; }
.theme-chalk .pptw-slide-type-badge { background: rgba(245,240,224,0.1); color: rgba(245,240,224,0.6); }
.theme-chalk .pptw-slide-image-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26,26,46,0.35);
}

/* ===== THEME: OCEAN ===== */
.pptw-slide.theme-ocean {
    background: linear-gradient(160deg, #0f4c75 0%, #1b6ca8 60%, #1899d6 100%);
    color: #e0f4ff;
}
.theme-ocean .pptw-slide-header-bar { background: #63c5da; height: 5px; }
.theme-ocean .pptw-slide-title { color: #fff; font-size: clamp(14px,3.5vw,38px); }
.theme-ocean .pptw-slide-subtitle { color: rgba(224,244,255,0.85); font-size: clamp(10px,1.8vw,20px); }
.theme-ocean .pptw-slide-body { color: rgba(224,244,255,0.92); }
.theme-ocean .pptw-bullet-dot { background: #63c5da; }
.theme-ocean .pptw-slide-activity-box { background: rgba(255,255,255,0.1); border: 1px solid rgba(99,197,218,0.35); }
.theme-ocean .pptw-slide-activity-label { color: #63c5da; }
.theme-ocean .pptw-slide-activity-text { color: rgba(224,244,255,0.9); }
.theme-ocean .pptw-slide-type-badge { background: rgba(99,197,218,0.18); color: #63c5da; }

/* ===== THEME: SUNRISE ===== */
.pptw-slide.theme-sunrise {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
}
.theme-sunrise .pptw-slide-header-bar { background: rgba(255,255,255,0.3); height: 5px; }
.theme-sunrise .pptw-slide-title { color: #fff; font-size: clamp(14px,3.5vw,38px); }
.theme-sunrise .pptw-slide-subtitle { color: rgba(255,255,255,0.85); font-size: clamp(10px,1.8vw,20px); }
.theme-sunrise .pptw-slide-body { color: rgba(255,255,255,0.92); }
.theme-sunrise .pptw-bullet-dot { background: rgba(255,255,255,0.8); }
.theme-sunrise .pptw-slide-activity-box { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); }
.theme-sunrise .pptw-slide-activity-label { color: #ffe0c0; }
.theme-sunrise .pptw-slide-activity-text { color: rgba(255,255,255,0.9); }
.theme-sunrise .pptw-slide-type-badge { background: rgba(255,255,255,0.2); color: #fff; }

/* ===== THEME: FOREST ===== */
.pptw-slide.theme-forest {
    background: linear-gradient(135deg, #2d6a4f 0%, #52b788 100%);
    color: #f0fff4;
}
.theme-forest .pptw-slide-header-bar { background: #b7e4c7; height: 5px; }
.theme-forest .pptw-slide-title { color: #f0fff4; font-size: clamp(14px,3.5vw,38px); }
.theme-forest .pptw-slide-subtitle { color: rgba(240,255,244,0.85); font-size: clamp(10px,1.8vw,20px); }
.theme-forest .pptw-slide-body { color: rgba(240,255,244,0.92); }
.theme-forest .pptw-bullet-dot { background: #b7e4c7; }
.theme-forest .pptw-slide-activity-box { background: rgba(255,255,255,0.1); border: 1px solid rgba(183,228,199,0.3); }
.theme-forest .pptw-slide-activity-label { color: #b7e4c7; }
.theme-forest .pptw-slide-activity-text { color: rgba(240,255,244,0.9); }
.theme-forest .pptw-slide-type-badge { background: rgba(183,228,199,0.15); color: #b7e4c7; }

/* ===== THEME: CLEAN WHITE ===== */
.pptw-slide.theme-clean {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e8e8e8;
}
.theme-clean .pptw-slide-header-bar { background: #6C63FF; height: 5px; }
.theme-clean .pptw-slide-title { color: #1a1a1a; font-size: clamp(14px,3.5vw,38px); }
.theme-clean .pptw-slide-subtitle { color: #555; font-size: clamp(10px,1.8vw,20px); }
.theme-clean .pptw-slide-body { color: #333; }
.theme-clean .pptw-bullet-dot { background: #6C63FF; }
.theme-clean .pptw-slide-activity-box { background: #f8f7ff; border: 1px solid #e0deff; }
.theme-clean .pptw-slide-activity-label { color: #6C63FF; }
.theme-clean .pptw-slide-activity-text { color: #333; }
.theme-clean .pptw-slide-type-badge { background: #f0eeff; color: #6C63FF; }

/* ===== THEME: MIDNIGHT ===== */
.pptw-slide.theme-midnight {
    background: linear-gradient(160deg, #0d0d0d 0%, #1a1a2e 100%);
    color: #e0e0e0;
}
.theme-midnight .pptw-slide-header-bar { background: #e040fb; height: 4px; }
.theme-midnight .pptw-slide-title { color: #f0f0f0; font-size: clamp(14px,3.5vw,38px); }
.theme-midnight .pptw-slide-subtitle { color: rgba(224,224,224,0.75); font-size: clamp(10px,1.8vw,20px); }
.theme-midnight .pptw-slide-body { color: rgba(224,224,224,0.85); }
.theme-midnight .pptw-bullet-dot { background: #e040fb; }
.theme-midnight .pptw-slide-activity-box { background: rgba(224,64,251,0.08); border: 1px solid rgba(224,64,251,0.25); }
.theme-midnight .pptw-slide-activity-label { color: #e040fb; }
.theme-midnight .pptw-slide-activity-text { color: rgba(224,224,224,0.85); }
.theme-midnight .pptw-slide-type-badge { background: rgba(224,64,251,0.12); color: #e040fb; }

/* ===== THEME: ROSE GOLD ===== */
.pptw-slide.theme-rosegold {
    background: linear-gradient(135deg, #c9a88e 0%, #e8c5a0 100%);
    color: #3d2b1f;
}
.theme-rosegold .pptw-slide-header-bar { background: #8b5e3c; height: 5px; }
.theme-rosegold .pptw-slide-title { color: #3d2b1f; font-size: clamp(14px,3.5vw,38px); }
.theme-rosegold .pptw-slide-subtitle { color: rgba(61,43,31,0.8); font-size: clamp(10px,1.8vw,20px); }
.theme-rosegold .pptw-slide-body { color: rgba(61,43,31,0.9); }
.theme-rosegold .pptw-bullet-dot { background: #8b5e3c; }
.theme-rosegold .pptw-slide-activity-box { background: rgba(255,255,255,0.3); border: 1px solid rgba(139,94,60,0.25); }
.theme-rosegold .pptw-slide-activity-label { color: #8b5e3c; }
.theme-rosegold .pptw-slide-activity-text { color: rgba(61,43,31,0.9); }
.theme-rosegold .pptw-slide-type-badge { background: rgba(139,94,60,0.15); color: #8b5e3c; }

/* ===== STUDIO COLLECTION THEMES ===== */
.pptw-slide.theme-aurora {
    --pptw-theme-title: #f8fafc;
    --pptw-theme-subtitle: rgba(204,251,241,0.84);
    --pptw-theme-body: rgba(248,250,252,0.92);
    --pptw-theme-accent: #5eead4;
    --pptw-theme-panel: rgba(94,234,212,0.1);
    --pptw-theme-panel-border: rgba(94,234,212,0.28);
    background: linear-gradient(135deg, #134e4a 0%, #312e81 100%);
    color: #f8fafc;
}
.pptw-slide.theme-graphite {
    --pptw-theme-title: #f8fafc;
    --pptw-theme-subtitle: rgba(209,213,219,0.82);
    --pptw-theme-body: rgba(248,250,252,0.9);
    --pptw-theme-accent: #f59e0b;
    --pptw-theme-panel: rgba(245,158,11,0.1);
    --pptw-theme-panel-border: rgba(245,158,11,0.3);
    background: linear-gradient(135deg, #111827 0%, #3f3f46 100%);
    color: #f8fafc;
}
.pptw-slide.theme-crimson {
    --pptw-theme-title: #fff7f7;
    --pptw-theme-subtitle: rgba(255,228,230,0.82);
    --pptw-theme-body: rgba(255,247,247,0.92);
    --pptw-theme-accent: #fda4af;
    --pptw-theme-panel: rgba(253,164,175,0.1);
    --pptw-theme-panel-border: rgba(253,164,175,0.28);
    background: linear-gradient(135deg, #7f1d1d 0%, #2b1216 100%);
    color: #fff7f7;
}
.pptw-slide.theme-sage {
    --pptw-theme-title: #18251f;
    --pptw-theme-subtitle: rgba(64,83,74,0.82);
    --pptw-theme-body: rgba(24,37,31,0.9);
    --pptw-theme-accent: #3a6b4f;
    --pptw-theme-panel: rgba(58,107,79,0.1);
    --pptw-theme-panel-border: rgba(58,107,79,0.22);
    background: linear-gradient(135deg, #f7fbf6 0%, #dfe9df 100%);
    color: #18251f;
}
.pptw-slide.theme-sandstone {
    --pptw-theme-title: #1f2937;
    --pptw-theme-subtitle: rgba(75,85,99,0.82);
    --pptw-theme-body: rgba(31,41,55,0.9);
    --pptw-theme-accent: #b45309;
    --pptw-theme-panel: rgba(180,83,9,0.1);
    --pptw-theme-panel-border: rgba(180,83,9,0.24);
    background: linear-gradient(135deg, #fff8f0 0%, #f0c7a5 100%);
    color: #1f2937;
}
.pptw-slide.theme-cobalt {
    --pptw-theme-title: #f8fafc;
    --pptw-theme-subtitle: rgba(207,250,254,0.82);
    --pptw-theme-body: rgba(248,250,252,0.92);
    --pptw-theme-accent: #facc15;
    --pptw-theme-panel: rgba(250,204,21,0.1);
    --pptw-theme-panel-border: rgba(250,204,21,0.3);
    background: linear-gradient(135deg, #0f172a 0%, #155e75 100%);
    color: #f8fafc;
}
.pptw-slide.theme-copper {
    --pptw-theme-title: #fff7ed;
    --pptw-theme-subtitle: rgba(254,215,170,0.84);
    --pptw-theme-body: rgba(255,247,237,0.92);
    --pptw-theme-accent: #fdba74;
    --pptw-theme-panel: rgba(253,186,116,0.1);
    --pptw-theme-panel-border: rgba(253,186,116,0.28);
    background: linear-gradient(135deg, #2b160f 0%, #7c2d12 100%);
    color: #fff7ed;
}
.pptw-slide.theme-orchid {
    --pptw-theme-title: #fff7fb;
    --pptw-theme-subtitle: rgba(252,231,243,0.82);
    --pptw-theme-body: rgba(255,247,251,0.92);
    --pptw-theme-accent: #f9a8d4;
    --pptw-theme-panel: rgba(249,168,212,0.1);
    --pptw-theme-panel-border: rgba(249,168,212,0.28);
    background: linear-gradient(135deg, #3b0a2f 0%, #8b3a62 100%);
    color: #fff7fb;
}
.pptw-slide.theme-mint {
    --pptw-theme-title: #10231d;
    --pptw-theme-subtitle: rgba(54,86,75,0.82);
    --pptw-theme-body: rgba(16,35,29,0.9);
    --pptw-theme-accent: #087f5b;
    --pptw-theme-panel: rgba(8,127,91,0.1);
    --pptw-theme-panel-border: rgba(8,127,91,0.22);
    background: linear-gradient(135deg, #f6fff8 0%, #d8f3dc 100%);
    color: #10231d;
}
.pptw-slide.theme-ruby {
    --pptw-theme-title: #fff7fb;
    --pptw-theme-subtitle: rgba(252,231,243,0.82);
    --pptw-theme-body: rgba(255,247,251,0.92);
    --pptw-theme-accent: #fbcfe8;
    --pptw-theme-panel: rgba(251,207,232,0.12);
    --pptw-theme-panel-border: rgba(251,207,232,0.3);
    background: linear-gradient(135deg, #9f1239 0%, #4a0d20 100%);
    color: #fff7fb;
}

.theme-aurora .pptw-slide-header-bar,
.theme-graphite .pptw-slide-header-bar,
.theme-crimson .pptw-slide-header-bar,
.theme-sage .pptw-slide-header-bar,
.theme-sandstone .pptw-slide-header-bar,
.theme-cobalt .pptw-slide-header-bar,
.theme-copper .pptw-slide-header-bar,
.theme-orchid .pptw-slide-header-bar,
.theme-mint .pptw-slide-header-bar,
.theme-ruby .pptw-slide-header-bar {
    background: var(--pptw-theme-accent);
    height: 5px;
}
.theme-aurora .pptw-slide-title,
.theme-graphite .pptw-slide-title,
.theme-crimson .pptw-slide-title,
.theme-sage .pptw-slide-title,
.theme-sandstone .pptw-slide-title,
.theme-cobalt .pptw-slide-title,
.theme-copper .pptw-slide-title,
.theme-orchid .pptw-slide-title,
.theme-mint .pptw-slide-title,
.theme-ruby .pptw-slide-title {
    color: var(--pptw-theme-title);
    font-size: clamp(14px,3.5vw,38px);
}
.theme-aurora .pptw-slide-subtitle,
.theme-graphite .pptw-slide-subtitle,
.theme-crimson .pptw-slide-subtitle,
.theme-sage .pptw-slide-subtitle,
.theme-sandstone .pptw-slide-subtitle,
.theme-cobalt .pptw-slide-subtitle,
.theme-copper .pptw-slide-subtitle,
.theme-orchid .pptw-slide-subtitle,
.theme-mint .pptw-slide-subtitle,
.theme-ruby .pptw-slide-subtitle {
    color: var(--pptw-theme-subtitle);
    font-size: clamp(10px,1.8vw,20px);
}
.theme-aurora .pptw-slide-body,
.theme-graphite .pptw-slide-body,
.theme-crimson .pptw-slide-body,
.theme-sage .pptw-slide-body,
.theme-sandstone .pptw-slide-body,
.theme-cobalt .pptw-slide-body,
.theme-copper .pptw-slide-body,
.theme-orchid .pptw-slide-body,
.theme-mint .pptw-slide-body,
.theme-ruby .pptw-slide-body { color: var(--pptw-theme-body); }
.theme-aurora .pptw-bullet-dot,
.theme-graphite .pptw-bullet-dot,
.theme-crimson .pptw-bullet-dot,
.theme-sage .pptw-bullet-dot,
.theme-sandstone .pptw-bullet-dot,
.theme-cobalt .pptw-bullet-dot,
.theme-copper .pptw-bullet-dot,
.theme-orchid .pptw-bullet-dot,
.theme-mint .pptw-bullet-dot,
.theme-ruby .pptw-bullet-dot { background: var(--pptw-theme-accent); }
.theme-aurora .pptw-slide-activity-box,
.theme-graphite .pptw-slide-activity-box,
.theme-crimson .pptw-slide-activity-box,
.theme-sage .pptw-slide-activity-box,
.theme-sandstone .pptw-slide-activity-box,
.theme-cobalt .pptw-slide-activity-box,
.theme-copper .pptw-slide-activity-box,
.theme-orchid .pptw-slide-activity-box,
.theme-mint .pptw-slide-activity-box,
.theme-ruby .pptw-slide-activity-box {
    background: var(--pptw-theme-panel);
    border: 1px solid var(--pptw-theme-panel-border);
}
.theme-aurora .pptw-slide-activity-label,
.theme-graphite .pptw-slide-activity-label,
.theme-crimson .pptw-slide-activity-label,
.theme-sage .pptw-slide-activity-label,
.theme-sandstone .pptw-slide-activity-label,
.theme-cobalt .pptw-slide-activity-label,
.theme-copper .pptw-slide-activity-label,
.theme-orchid .pptw-slide-activity-label,
.theme-mint .pptw-slide-activity-label,
.theme-ruby .pptw-slide-activity-label { color: var(--pptw-theme-accent); }
.theme-aurora .pptw-slide-activity-text,
.theme-graphite .pptw-slide-activity-text,
.theme-crimson .pptw-slide-activity-text,
.theme-sage .pptw-slide-activity-text,
.theme-sandstone .pptw-slide-activity-text,
.theme-cobalt .pptw-slide-activity-text,
.theme-copper .pptw-slide-activity-text,
.theme-orchid .pptw-slide-activity-text,
.theme-mint .pptw-slide-activity-text,
.theme-ruby .pptw-slide-activity-text { color: var(--pptw-theme-body); }
.theme-aurora .pptw-slide-type-badge,
.theme-graphite .pptw-slide-type-badge,
.theme-crimson .pptw-slide-type-badge,
.theme-sage .pptw-slide-type-badge,
.theme-sandstone .pptw-slide-type-badge,
.theme-cobalt .pptw-slide-type-badge,
.theme-copper .pptw-slide-type-badge,
.theme-orchid .pptw-slide-type-badge,
.theme-mint .pptw-slide-type-badge,
.theme-ruby .pptw-slide-type-badge {
    background: var(--pptw-theme-panel);
    color: var(--pptw-theme-accent);
}

/* ---- Slide Thumbnail Strip ------------------------------- */
.pptw-thumbnail-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 10px;
    background: #eceff3;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid #d8dde5;
    scroll-behavior: smooth;
    max-height: 560px;
}

.pptw-thumb {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    opacity: 0.65;
}

.pptw-thumb:hover { opacity: 0.9; border-color: #aaa; }
.pptw-thumb.active { opacity: 1; border-color: #6C63FF; box-shadow: 0 0 0 2px rgba(108,99,255,0.25); }

.pptw-thumb-inner {
    width: 960px;
    height: 540px;
    transform-origin: top left;
    transform: scale(var(--pptw-thumb-scale, 0.16));
    pointer-events: none;
}

.pptw-thumb .pptw-slide {
    width: 960px;
    height: 540px;
    aspect-ratio: auto;
}

.pptw-thumb-num {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.35);
    border-radius: 3px;
    padding: 1px 4px;
}

/* ---- Inline Edit Toolbar --------------------------------- */
.pptw-edit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f9f9fb;
    border-top: 1px solid #eee;
}

.pptw-edit-hint {
    font-size: 12px;
    color: #888;
    flex: 1;
}

.pptw-edit-chip {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0eeff;
    color: #6C63FF;
    font-weight: 700;
    border: 1px solid #d8d4ff;
    cursor: default;
}

/* ---- Export Section (Post-Generation) -------------------- */
.pptw-export-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.pptw-export-title {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.pptw-export-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pptw-export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.pptw-export-btn-ppt  { background: #d44638; color: #fff; }
.pptw-export-btn-ppt:hover { background: #c13b2e; transform: translateY(-1px); }

.pptw-export-btn-google { background: #4285f4; color: #fff; }
.pptw-export-btn-google:hover { background: #3065d0; transform: translateY(-1px); }

.pptw-export-btn-ms { background: #d83b01; color: #fff; }
.pptw-export-btn-ms:hover { background: #b83000; transform: translateY(-1px); }

.pptw-export-btn-restart { background: #f0f0f0; color: #555; }
.pptw-export-btn-restart:hover { background: #e0e0e0; }

.pptw-export-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.pptw-export-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

/* ---- Panel headings -------------------------------------- */
.pptw-panel-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

.pptw-panel-sub {
    margin: 0 0 20px;
    color: #888;
    font-size: 13px;
    line-height: 1.55;
}

/* ---- Misc Helpers ---------------------------------------- */
.pptw-form-group {
    margin-bottom: 18px;
}

.pptw-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.pptw-label-hint {
    font-weight: 400;
    color: #999;
    font-size: 12px;
    margin-left: 4px;
}

.pptw-error-msg {
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    color: #d32f2f;
    font-size: 14px;
    margin-top: 12px;
}

.pptw-spec-align-wrapper {
    margin-top: 14px;
    padding: 14px;
    background: #f8f7ff;
    border: 1px solid #e0deff;
    border-radius: 10px;
}

/* ---- Options section label + divider --------------------- */
.pptw-options-section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6C63FF;
    margin: 18px 0 0;
}

.pptw-options-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 0;
}
.pptw-options-divider::before,
.pptw-options-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0f0;
}
.pptw-options-divider span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6C63FF;
    white-space: nowrap;
}

/* ---- Objectives slide — success criteria ----------------- */
.pptw-slide-sc-label {
    font-size: clamp(7px, 1.4vw, 13px);
    font-weight: 700;
    color: var(--pptw-vivid, #FFD700);
    margin: 6px 0 3px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.pptw-sc-list li {
    font-size: clamp(9px, 1.4vw, 15px);
    opacity: 0.9;
}

/* ---- Sortable drag-to-reorder ---------------------------- */
.pptw-thumb {
    cursor: grab;
}
.pptw-thumb:active {
    cursor: grabbing;
}
.pptw-thumb-ghost {
    opacity: 0.35;
    background: #e8e4ff;
    border-radius: 10px;
}
.pptw-thumb-chosen {
    box-shadow: 0 8px 24px rgba(108,99,255,0.35);
    transform: scale(1.04);
    z-index: 10;
}

/* ---- Visual / Diagram Column ---------------------------- */
/* Layout: text left (55%), visual right (45%) */
.pptw-slide-content-layout.has-visual {
    grid-template-columns: 55% 45%;
}

/* Layout: text left (60%), image right (40%) */
.pptw-slide-content-layout.has-image {
    grid-template-columns: 60% 40%;
}

/* Layout: text top-left, visual bottom-left, image full-height right */
.pptw-slide-content-layout.has-visual-image {
    grid-template-columns: 58% 42%;
    grid-template-rows: 3fr 2fr;
    grid-template-areas:
        "text image"
        "visual image";
}

.pptw-slide-content-layout.has-visual-image .pptw-slide-text-col {
    grid-area: text;
}

.pptw-slide-content-layout.has-visual-image .pptw-slide-image-col {
    grid-area: image;
    height: 100%;
}

.pptw-slide-content-layout.has-visual-image .pptw-slide-visual-col {
    grid-area: visual;
    padding: 2% 4% 2% 5%;
}

.pptw-slide-visual-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Scale visual content to fit container instead of stacking */
.pptw-visual-container > div,
.pptw-visual-container > .eai-visual-container {
    max-width: 100%;
    max-height: 100%;
    transform-origin: top left;
}

/* For process-flow and other horizontal layouts, force single row with scale */
.pptw-slide-visual-col .eai-process-track,
.pptw-slide-visual-col .eai-process-steps {
    display: flex;
    flex-wrap: nowrap !important;
    min-width: 0;
    width: 100%;
    transform-origin: center left;
}

.pptw-slide-visual-col .eai-process-step,
.pptw-slide-visual-col .eai-process-node {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

.pptw-slide-visual-col .eai-step-number,
.pptw-slide-visual-col .eai-node-badge {
    flex-shrink: 0;
}

/* If content overflows, scale down the entire container */
.pptw-visual-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pptw-visual-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ================================================================
   VISUAL ENGINE OVERRIDES — Theme-aware, preserves internal styling
   ================================================================ */

/* 1. Strip ONLY the outer container backgrounds that would create
   white boxes on the slide. Preserve internal element styling. */
.pptw-slide-visual-col .eai-visual-container,
.pptw-slide-visual-col .eai-worked-container,
.pptw-slide-visual-col .eai-process-flow-container,
.pptw-slide-visual-col .eai-quote-container,
.pptw-slide-visual-col .eai-cause-effect-container,
.pptw-slide-visual-col .eai-hierarchy-container,
.pptw-slide-visual-col .eai-cycle-container,
.pptw-slide-visual-col .eai-comparison-container,
.pptw-slide-visual-col .eai-sequence-container,
.pptw-slide-visual-col .eai-formula-container,
.pptw-slide-visual-col .eai-table-container,
.pptw-slide-visual-col .eai-key-concepts-container,
.pptw-slide-visual-col .eai-flowchart-container,
.pptw-slide-visual-col .eai-case-study-container,
.pptw-slide-visual-col .eai-vocab-container,
.pptw-slide-visual-col .eai-data-chart-container,
.pptw-slide-visual-col .eai-image-callout-container,
.pptw-slide-visual-col .eai-statistics-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. THEME-AWARE TEXT COLOURS on the visual column container
   Dark slides → white text    Light slides → dark text */
.theme-modern .pptw-slide-visual-col,
.theme-chalk .pptw-slide-visual-col,
.theme-ocean .pptw-slide-visual-col,
.theme-sunrise .pptw-slide-visual-col,
.theme-forest .pptw-slide-visual-col,
.theme-midnight .pptw-slide-visual-col,
.theme-aurora .pptw-slide-visual-col,
.theme-graphite .pptw-slide-visual-col,
.theme-crimson .pptw-slide-visual-col,
.theme-cobalt .pptw-slide-visual-col,
.theme-copper .pptw-slide-visual-col,
.theme-orchid .pptw-slide-visual-col,
.theme-ruby .pptw-slide-visual-col {
    color: #fff !important;
}
.theme-clean .pptw-slide-visual-col,
.theme-rosegold .pptw-slide-visual-col,
.theme-sage .pptw-slide-visual-col,
.theme-sandstone .pptw-slide-visual-col,
.theme-mint .pptw-slide-visual-col {
    color: #1a1a1a !important;
}

/* Text elements inherit the theme colour, but KEEP their native
   font sizes, backgrounds, borders and padding where needed */
.pptw-slide-visual-col h1,
.pptw-slide-visual-col h2,
.pptw-slide-visual-col h3,
.pptw-slide-visual-col h4,
.pptw-slide-visual-col p,
.pptw-slide-visual-col li,
.pptw-slide-visual-col span.eai-process-title,
.pptw-slide-visual-col span.eai-node-title,
.pptw-slide-visual-col span.eai-node-description,
.pptw-slide-visual-col .eai-step-explanation,
.pptw-slide-visual-col .eai-step-operation,
.pptw-slide-visual-col .eai-tip-text,
.pptw-slide-visual-col .eai-answer-check,
.pptw-slide-visual-col .eai-quote-source {
    color: inherit !important;
}

/* Scale down titles/headers inside visuals */
.pptw-slide-visual-col .eai-worked-title,
.pptw-slide-visual-col .eai-process-title,
.pptw-slide-visual-col .eai-cycle-title,
.pptw-slide-visual-col .eai-hierarchy-title,
.pptw-slide-visual-col .eai-cause-effect-title,
.pptw-slide-visual-col .eai-comparison-title,
.pptw-slide-visual-col .eai-quote-title,
.pptw-slide-visual-col .eai-sequence-title,
.pptw-slide-visual-col .eai-formula-title,
.pptw-slide-visual-col .eai-table-title,
.pptw-slide-visual-col .eai-key-concepts-title,
.pptw-slide-visual-col .eai-flowchart-title,
.pptw-slide-visual-col .eai-case-study-title,
.pptw-slide-visual-col .eai-vocab-title,
.pptw-slide-visual-col .eai-data-chart-title,
.pptw-slide-visual-col .eai-image-callout-title,
.pptw-slide-visual-col .eai-statistics-title {
    font-size: clamp(9px, 1.3vw, 14px) !important;
    line-height: 1.2 !important;
    margin: 0 0 4px 0 !important;
}

/* Scale down body text */
.pptw-slide-visual-col .eai-node-description,
.pptw-slide-visual-col .eai-step-explanation,
.pptw-slide-visual-col .eai-label-desc,
.pptw-slide-visual-col .eai-quote-source,
.pptw-slide-visual-col .eai-annotation-note,
.pptw-slide-visual-col .eai-context-box,
.pptw-slide-visual-col .eai-themes-label,
.pptw-slide-visual-col .eai-theme-tag {
    font-size: clamp(7px, 1.0vw, 11px) !important;
    line-height: 1.3 !important;
}

/* 3. Reduce padding on internal boxes so they fit in the slide */
.pptw-slide-visual-col .eai-solution-step,
.pptw-slide-visual-col .eai-problem-box,
.pptw-slide-visual-col .eai-answer-box,
.pptw-slide-visual-col .eai-quote-block,
.pptw-slide-visual-col .eai-annotations-panel,
.pptw-slide-visual-col .eai-cycle-label,
.pptw-slide-visual-col .eai-node-box,
.pptw-slide-visual-col .eai-comparison-column,
.pptw-slide-visual-col .eai-comparison-similarities,
.pptw-slide-visual-col .eai-context-box {
    padding: 4px 6px !important;
    margin: 2px 0 !important;
}

/* 4. Smaller badges / labels */
.pptw-slide-visual-col .eai-step-badge,
.pptw-slide-visual-col .eai-problem-label,
.pptw-slide-visual-col .eai-answer-label,
.pptw-slide-visual-col .eai-label-number {
    font-size: clamp(6px, 0.9vw, 10px) !important;
    padding: 2px 6px !important;
}

/* 5. Kill animations inside slides */
.pptw-slide-visual-col .eai-animate-fade,
.pptw-slide-visual-col .eai-animate-slide-up,
.pptw-slide-visual-col .eai-animate-scale,
.pptw-slide-visual-col .eai-animate-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* 6. Allow content to overflow so nothing is clipped */
.pptw-slide-visual-col,
.pptw-visual-container,
.pptw-visual-container .eai-visual-container {
    overflow: visible !important;
}

/* 7. SVG / Canvas should fill the container */
.pptw-slide-visual-col svg,
.pptw-visual-container svg,
.pptw-slide-visual-col canvas,
.pptw-visual-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    overflow: visible !important;
}

/* 8. SVG stroke/fill inherit the theme colour */
.pptw-slide-visual-col svg [stroke]:not([stroke="none"]) {
    stroke: currentColor !important;
}
.pptw-slide-visual-col svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

/* 9. Process-flow specific: horizontal, compact */
.pptw-slide-visual-col .eai-process-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.pptw-slide-visual-col .eai-process-node {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    align-items: center !important;
}

.pptw-slide-visual-col .eai-connector-line {
    display: none !important;
}

/* 10. Thumbnail visuals — hide them to keep thumbnails clean */
.pptw-thumb .pptw-slide-visual-col {
    display: none !important;
}

/* 11. Presentation visual cleanup: remove outer chrome, keep useful data titles */
.pptw-slide-visual-col .eai-card {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pptw-slide-visual-col .eai-card-header {
    display: none !important;
}

.pptw-slide-visual-col .eai-worked-title,
.pptw-slide-visual-col .eai-process-title,
.pptw-slide-visual-col .eai-cycle-title,
.pptw-slide-visual-col .eai-hierarchy-title,
.pptw-slide-visual-col .eai-cause-effect-title,
.pptw-slide-visual-col .eai-comparison-title,
.pptw-slide-visual-col .eai-quote-title,
.pptw-slide-visual-col .eai-sequence-title,
.pptw-slide-visual-col .eai-formula-title,
.pptw-slide-visual-col .eai-table-title,
.pptw-slide-visual-col .eai-key-concepts-title,
.pptw-slide-visual-col .eai-flowchart-title,
.pptw-slide-visual-col .eai-case-title,
.pptw-slide-visual-col .eai-vocab-title,
.pptw-slide-visual-col .eai-vocabulary-title,
.pptw-slide-visual-col .eai-image-callout-title {
    display: none !important;
}

.pptw-slide-visual-col .eai-data-chart .eai-card-header,
.pptw-slide-visual-col .eai-statistics-container .eai-card-header {
    display: block !important;
    background: transparent !important;
    padding: 0 0 4px 0 !important;
    margin: 0 !important;
}

.pptw-slide-visual-col .eai-data-chart .eai-card-title,
.pptw-slide-visual-col .eai-data-chart .eai-card-subtitle,
.pptw-slide-visual-col .eai-statistics-container .eai-card-title,
.pptw-slide-visual-col .eai-statistics-container .eai-card-subtitle {
    color: inherit !important;
}

/* 12. Dark text inside light cards; theme text only on transparent surfaces */
.pptw-slide-visual-col .eai-process-step,
.pptw-slide-visual-col .eai-node-box,
.pptw-slide-visual-col .eai-solution-step,
.pptw-slide-visual-col .eai-problem-box,
.pptw-slide-visual-col .eai-answer-box,
.pptw-slide-visual-col .eai-comparison-column,
.pptw-slide-visual-col .eai-cause-item,
.pptw-slide-visual-col .eai-effect-item,
.pptw-slide-visual-col .eai-variable-item,
.pptw-slide-visual-col .eai-factor-card,
.pptw-slide-visual-col .eai-concept-card,
.pptw-slide-visual-col .eai-vocab-card,
.pptw-slide-visual-col .eai-stat-card,
.pptw-slide-visual-col .eai-callout-panel,
.pptw-slide-visual-col .eai-annotation,
.pptw-slide-visual-col .eai-quote-text,
.pptw-slide-visual-col .eai-context-box,
.pptw-slide-visual-col .eai-flow-node-card {
    color: #1a1a1a !important;
}

.pptw-slide-visual-col .eai-process-step *,
.pptw-slide-visual-col .eai-node-box *,
.pptw-slide-visual-col .eai-solution-step *,
.pptw-slide-visual-col .eai-problem-box *,
.pptw-slide-visual-col .eai-answer-box *,
.pptw-slide-visual-col .eai-comparison-column *,
.pptw-slide-visual-col .eai-cause-item *,
.pptw-slide-visual-col .eai-effect-item *,
.pptw-slide-visual-col .eai-variable-item *,
.pptw-slide-visual-col .eai-factor-card *,
.pptw-slide-visual-col .eai-concept-card *,
.pptw-slide-visual-col .eai-vocab-card *,
.pptw-slide-visual-col .eai-stat-card *,
.pptw-slide-visual-col .eai-callout-panel *,
.pptw-slide-visual-col .eai-annotation *,
.pptw-slide-visual-col .eai-quote-text *,
.pptw-slide-visual-col .eai-context-box *,
.pptw-slide-visual-col .eai-flow-node-card * {
    color: inherit !important;
}

.pptw-slide-visual-col .eai-step-badge,
.pptw-slide-visual-col .eai-card-badge,
.pptw-slide-visual-col .eai-label-number,
.pptw-slide-visual-col .eai-sequence-number,
.pptw-slide-visual-col .eai-cycle-number,
.pptw-slide-visual-col .eai-callout-marker {
    color: #fff !important;
}

/* 13. Process steps: number above each box, full text width inside the box */
.pptw-slide-visual-col .eai-process-steps {
    align-items: stretch !important;
    gap: 10px !important;
}

.pptw-slide-visual-col .eai-process-step {
    position: relative !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 24px 8px 8px 8px !important;
    overflow: visible !important;
}

.pptw-slide-visual-col .eai-process-step .eai-step-number {
    position: absolute !important;
    top: -9px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.2) !important;
    color: #1a1a1a !important;
    font-size: 10px !important;
    line-height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    z-index: 2 !important;
}

.pptw-slide-visual-col .eai-process-step .eai-step-content {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
}

.pptw-slide-visual-col .eai-process-step .eai-step-title,
.pptw-slide-visual-col .eai-process-step .eai-step-desc {
    color: #1a1a1a !important;
}

.pptw-slide-visual-col .eai-step-arrow {
    position: absolute !important;
    right: -9px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: currentColor !important;
    z-index: 3 !important;
}

/* 13b. Flowcharts: robust auto-layout with readable cards */
.pptw-slide-visual-col .eai-flowchart {
    width: 100% !important;
}

.pptw-slide-visual-col .eai-flowchart-canvas {
    position: relative !important;
    width: min(100%, 860px) !important;
    aspect-ratio: 760 / 330 !important;
    margin: 0 auto !important;
    background: transparent !important;
    overflow: visible !important;
    --eai-flow-accent: #3b82f6;
}

.pptw-slide-visual-col .eai-flowchart-svg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
}

.pptw-slide-visual-col .eai-flow-link {
    stroke: currentColor !important;
    stroke-width: 3 !important;
    stroke-linecap: round !important;
    opacity: 0.8 !important;
}

.pptw-slide-visual-col .eai-flow-arrowhead {
    fill: currentColor !important;
}

.pptw-slide-visual-col .eai-flow-link-label {
    fill: currentColor !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    paint-order: stroke !important;
    stroke: rgba(255,255,255,0.88) !important;
    stroke-width: 5px !important;
    stroke-linejoin: round !important;
}

.pptw-slide-visual-col .eai-flow-node-card {
    position: absolute !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 10px 12px !important;
    background: rgba(255,255,255,0.96) !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    border-top: 4px solid var(--eai-flow-accent) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.14) !important;
    text-align: center !important;
    color: #1a1a1a !important;
    overflow: visible !important;
}

.pptw-slide-visual-col .eai-flow-node-card strong {
    display: block !important;
    width: 100% !important;
    font-size: clamp(10px, 1.25vw, 15px) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
}

.pptw-slide-visual-col .eai-flow-node-card small {
    display: block !important;
    width: 100% !important;
    font-size: clamp(8px, 1vw, 11px) !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    opacity: 0.78 !important;
}

.pptw-slide-visual-col .eai-flow-step-number {
    position: absolute !important;
    top: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: var(--eai-flow-accent) !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.9) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

.pptw-slide-visual-col .eai-flow-node-decision {
    border-radius: 18px 6px 18px 6px !important;
}

.theme-modern .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #c9c5ff; }
.theme-ocean .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #7dd3fc; }
.theme-sunrise .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #fde68a; }
.theme-forest .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #b7e4c7; }
.theme-midnight .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #93c5fd; }
.theme-clean .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #2563eb; }
.theme-rosegold .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #be185d; }
.theme-aurora .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #5eead4; }
.theme-graphite .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #f59e0b; }
.theme-crimson .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #fda4af; }
.theme-sage .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #3a6b4f; }
.theme-sandstone .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #b45309; }
.theme-cobalt .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #facc15; }
.theme-copper .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #fdba74; }
.theme-orchid .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #f9a8d4; }
.theme-mint .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #087f5b; }
.theme-ruby .pptw-slide-visual-col .eai-flowchart-canvas { --eai-flow-accent: #fbcfe8; }

/* 14. Worked examples: compact, classroom-ready working */
.pptw-slide-visual-col .eai-worked-example {
    width: 100% !important;
}

.pptw-slide-visual-col .eai-worked-example > .eai-card {
    width: min(100%, 920px) !important;
    margin: 0 auto !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    border-radius: 14px !important;
    padding: 8px !important;
    box-shadow: 0 14px 30px rgba(0,0,0,0.12) !important;
}

.pptw-slide-visual-col .eai-example-problem {
    background: rgba(255,255,255,0.94) !important;
    color: #1a1a1a !important;
    border-left: 3px solid currentColor !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
    margin: 0 0 6px 0 !important;
}

.pptw-slide-visual-col .eai-problem-label {
    display: block !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #555 !important;
    margin-bottom: 2px !important;
}

.pptw-slide-visual-col .eai-problem-content {
    color: #1a1a1a !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}

.pptw-slide-visual-col .eai-example-steps {
    display: grid !important;
    gap: 5px !important;
    padding: 0 !important;
}

.pptw-slide-visual-col .eai-example-step {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 6px !important;
    align-items: start !important;
    background: rgba(255,255,255,0.94) !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 6px !important;
    padding: 6px !important;
}

.pptw-slide-visual-col .eai-example-step .eai-step-badge {
    background: #1a1a1a !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 3px 7px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.pptw-slide-visual-col .eai-example-step .eai-step-content {
    color: #1a1a1a !important;
    min-width: 0 !important;
}

.pptw-slide-visual-col .eai-example-step .eai-step-action,
.pptw-slide-visual-col .eai-example-step .eai-step-result,
.pptw-slide-visual-col .eai-example-check,
.pptw-slide-visual-col .eai-example-answer {
    color: #1a1a1a !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
}

.pptw-slide-visual-col .eai-example-step .eai-step-calc {
    background: rgba(0,0,0,0.055) !important;
    color: #1a1a1a !important;
    border-radius: 5px !important;
    padding: 4px 6px !important;
    margin: 3px 0 !important;
    font-family: Consolas, Monaco, monospace !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
}

.pptw-slide-visual-col .eai-example-answer,
.pptw-slide-visual-col .eai-example-check {
    background: rgba(255,255,255,0.94) !important;
    border-radius: 6px !important;
    padding: 5px 7px !important;
    margin: 6px 0 0 0 !important;
}

.pptw-slide-visual-col sup,
.pptw-slide-visual-col sub {
    font-size: 0.7em !important;
    line-height: 0 !important;
}

/* 15. Cycle diagrams: labelled stages on the actual cycle path */
.pptw-slide-visual-col .eai-cycle-container {
    width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

.pptw-slide-visual-col .eai-cycle-map {
    position: relative !important;
    width: min(100%, 460px) !important;
    aspect-ratio: 1 / 1 !important;
    color: inherit !important;
    margin: 0 auto !important;
}

.pptw-slide-visual-col .eai-cycle-svg {
    position: absolute !important;
    inset: 10% !important;
    width: 80% !important;
    height: 80% !important;
    opacity: 0.82 !important;
    color: inherit !important;
}

.pptw-slide-visual-col .eai-cycle-stage {
    position: absolute !important;
    transform: translate(-50%, -50%) !important;
    width: clamp(92px, 25%, 132px) !important;
    min-height: 54px !important;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-areas: "num title" "desc desc" !important;
    gap: 3px 7px !important;
    align-items: center !important;
    background: rgba(255,255,255,0.95) !important;
    color: #102033 !important;
    border: 1px solid rgba(255,255,255,0.65) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.16) !important;
    padding: 8px 9px !important;
    text-align: left !important;
}

.pptw-slide-visual-col .eai-cycle-stage-index {
    grid-area: num !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #102033 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
}

.pptw-slide-visual-col .eai-cycle-stage-title {
    grid-area: title !important;
    color: #102033 !important;
    font-size: clamp(11px, 1.3vw, 15px) !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
}

.pptw-slide-visual-col .eai-cycle-stage-desc {
    grid-area: desc !important;
    color: #334155 !important;
    font-size: clamp(8px, 0.9vw, 11px) !important;
    line-height: 1.18 !important;
}

.pptw-slide-visual-col .eai-cycle-topic {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 120px !important;
    padding: 7px 10px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,0.22) !important;
    color: inherit !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

/* 16. Cause/effect: readable on themed slide backgrounds */
.pptw-slide-visual-col .eai-cause-effect {
    width: min(100%, 900px) !important;
    margin: 0 auto !important;
}

.pptw-slide-visual-col .eai-cause-effect-layout {
    align-items: center !important;
    gap: 14px !important;
}

.pptw-slide-visual-col .eai-causes-column,
.pptw-slide-visual-col .eai-effects-column {
    color: inherit !important;
}

.pptw-slide-visual-col .eai-column-title {
    color: inherit !important;
    text-align: center !important;
    font-size: clamp(16px, 2vw, 24px) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    margin-bottom: 10px !important;
}

.pptw-slide-visual-col .eai-causes-list,
.pptw-slide-visual-col .eai-effects-list {
    display: grid !important;
    gap: 8px !important;
}

.pptw-slide-visual-col .eai-cause-item,
.pptw-slide-visual-col .eai-effect-item {
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255,255,255,0.94) !important;
    color: #102033 !important;
    border-radius: 9px !important;
    border: 1px solid rgba(255,255,255,0.65) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12) !important;
    padding: 8px 12px !important;
}

.pptw-slide-visual-col .eai-cause-text,
.pptw-slide-visual-col .eai-effect-text {
    color: #102033 !important;
    font-size: clamp(11px, 1.25vw, 15px) !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
}

.pptw-slide-visual-col .eai-cause-arrow,
.pptw-slide-visual-col .eai-effect-arrow {
    color: #102033 !important;
    font-weight: 900 !important;
}

.pptw-slide-visual-col .eai-central-node {
    min-width: 110px !important;
    border-radius: 14px !important;
    background: rgba(0,0,0,0.22) !important;
    color: inherit !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12) !important;
    padding: 12px 14px !important;
}

.pptw-slide-visual-col .eai-central-node .eai-node-content {
    color: inherit !important;
    font-size: clamp(13px, 1.5vw, 18px) !important;
    font-weight: 900 !important;
    text-align: center !important;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 768px) {
    .pptw-input-cards { grid-template-columns: 1fr; }
    .pptw-theme-grid  {
        grid-template-columns: repeat(auto-fill, 132px);
        justify-content: start;
    }
    .pptw-review-grid { grid-template-columns: 1fr; }
    .pptw-options-grid { grid-template-columns: 1fr; }
    .pptw-panel { padding: 18px 16px; }
    .pptw-steps { padding: 14px 8px 12px; }
    .pptw-step-label { font-size: 9px; }
    .pptw-workspace {
        display: flex;
        flex-direction: column;
    }
    .pptw-thumbnail-strip {
        order: 2;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-top: 1px solid #d8dde5;
    }
    .pptw-thumb {
        width: 120px;
    }
    .pptw-export-bar { flex-direction: column; align-items: stretch; }
    .pptw-export-btns { justify-content: center; }
    .pptw-slide-content-layout.has-visual,
    .pptw-slide-content-layout.has-image,
    .pptw-slide-content-layout.has-visual-image {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: none;
    }
    .pptw-slide-content-layout.has-visual-image .pptw-slide-text-col,
    .pptw-slide-content-layout.has-visual-image .pptw-slide-image-col,
    .pptw-slide-content-layout.has-visual-image .pptw-slide-visual-col {
        grid-area: auto;
    }
    .pptw-slide-visual-col {
        padding: 2% 4%;
        max-height: 200px;
    }
    .pptw-slide-image-col {
        max-height: 220px;
    }
}

/* Image replacement modal */
.pptw-change-image-trigger {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: inherit;
}

.pptw-change-image-trigger:focus-visible {
    outline: 3px solid rgba(108, 99, 255, 0.65);
    outline-offset: 3px;
}

.pptw-change-image-chip {
    position: absolute;
    right: 18px;
    bottom: 10px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.pptw-change-image-trigger:hover .pptw-change-image-chip,
.pptw-change-image-trigger:focus-visible .pptw-change-image-chip {
    opacity: 1;
    transform: translateY(0);
}

.pptw-image-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pptw-image-modal.open {
    display: flex;
}

.pptw-image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
}

.pptw-image-modal-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 96vw);
    max-height: min(760px, 90vh);
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    padding: 22px;
}

.pptw-image-modal-panel h3 {
    margin: 0 42px 6px 0;
    font-size: 22px;
    line-height: 1.2;
    color: #111827;
}

.pptw-image-modal-panel p {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 14px;
}

.pptw-image-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.pptw-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.pptw-image-choice {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 0;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pptw-image-choice:hover,
.pptw-image-choice:focus-visible {
    border-color: #6C63FF;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.pptw-image-choice.selected {
    border-color: #6C63FF;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.18);
}

.pptw-image-choice-img {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
}

.pptw-image-choice-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pptw-image-choice-meta {
    display: block;
    padding: 9px 10px 10px;
}

.pptw-image-choice-meta strong,
.pptw-image-choice-meta em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pptw-image-choice-meta strong {
    color: #111827;
    font-size: 13px;
    line-height: 1.25;
}

.pptw-image-choice-meta em {
    margin-top: 3px;
    color: #6b7280;
    font-size: 11px;
    font-style: normal;
}

.pptw-image-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border-radius: 8px;
    background: #f9fafb;
    color: #4b5563;
    text-align: center;
}
