/* ==========================================================================
 * ChannelKids Smart Presentation Design Engine - Shared Visual Styles
 * 30 Structural Layouts | 20 Theme Tokens | 8 Transitions | 7 Animations
 * ========================================================================== */

.ck-slide-root {
    --ck-bg: linear-gradient(145deg, #f0fdfa 0%, #e0f2fe 52%, #fefce8 100%);
    --ck-bg-solid: #f0fdfa;
    --ck-surface: #ffffff;
    --ck-surface-alt: #ccfbf1;
    --ck-primary: #0f172a;
    --ck-secondary: #0284c7;
    --ck-accent: #0d9488;
    --ck-accent-soft: #ccfbf1;
    --ck-text: #1e293b;
    --ck-text-muted: #475569;
    --ck-font-head: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --ck-font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --ck-radius: 18px;
    --ck-border: 1.5px solid rgba(15, 23, 42, 0.10);
    --ck-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    --ck-head-scale: 1;
    --ck-bg-override: ;

    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: var(--ck-bg);
    color: var(--ck-text);
    font-family: var(--ck-font-body);
    container-type: inline-size;
    container-name: ckslide;
    padding: clamp(14px, 3.6cqw, 40px) clamp(16px, 4.4cqw, 52px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    user-select: text;
    isolation: isolate;
}

.ck-slide-root *,
.ck-slide-root *::before,
.ck-slide-root *::after {
    box-sizing: border-box;
}

.ck-slide-root[data-dark="true"] {
    --ck-border: 1.5px solid rgba(255, 255, 255, 0.14);
    --ck-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

/* Decorative theme geometry layer (non-intrusive safe framing) */
.ck-decor-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ck-decor-blob-1 {
    position: absolute;
    top: -16%;
    right: -8%;
    width: 38cqw;
    height: 38cqw;
    border-radius: 999px;
    background: var(--ck-accent-soft);
    opacity: 0.55;
    filter: blur(2px);
}

.ck-decor-blob-2 {
    position: absolute;
    bottom: -18%;
    left: -9%;
    width: 30cqw;
    height: 30cqw;
    border-radius: 999px;
    background: var(--ck-secondary);
    opacity: 0.08;
}

.ck-slide-root[data-dark="true"] .ck-decor-blob-1 {
    opacity: 0.14;
}

.ck-decor-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(100, 116, 139, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100, 116, 139, 0.07) 1px, transparent 1px);
    background-size: 3.4cqw 3.4cqw;
    opacity: 0;
}

.ck-slide-root[data-layout="math_exercise"] .ck-decor-grid,
.ck-slide-root[data-theme="matematicas"] .ck-decor-grid,
.ck-slide-root[data-theme="ciencia_moderna"] .ck-decor-grid {
    opacity: 0.55;
}

/* Header & Footer Chrome inside slide */
.ck-slide-chrome-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: clamp(6px, 1.4cqw, 16px);
    flex-shrink: 0;
}

.ck-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: clamp(3px, 0.45cqw, 6px) clamp(10px, 1.3cqw, 16px);
    border-radius: 999px;
    background: var(--ck-accent-soft);
    color: var(--ck-accent);
    font-family: var(--ck-font-head);
    font-weight: 800;
    font-size: clamp(9px, 1.15cqw, 13px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.ck-slide-root[data-dark="true"] .ck-eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ck-accent);
    border-color: rgba(255, 255, 255, 0.16);
}

.ck-slide-badge-num {
    font-family: var(--ck-font-head);
    font-weight: 800;
    font-size: clamp(10px, 1.2cqw, 13px);
    color: var(--ck-text-muted);
    background: var(--ck-surface);
    border: var(--ck-border);
    padding: clamp(3px, 0.4cqw, 5px) clamp(8px, 1cqw, 12px);
    border-radius: 999px;
}

.ck-slide-main {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ck-slide-chrome-foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: clamp(6px, 1.2cqw, 14px);
    padding-top: clamp(4px, 0.8cqw, 10px);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    font-size: clamp(9px, 1.05cqw, 12px);
    color: var(--ck-text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.ck-foot-accent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ck-accent);
    font-weight: 700;
}

/* Typography Hierarchy */
.ck-title {
    margin: 0;
    font-family: var(--ck-font-head);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ck-primary);
    font-size: calc(clamp(16px, 2.75cqw, 34px) * var(--ck-head-scale));
    word-break: break-word;
}

.ck-title-hero {
    font-size: calc(clamp(20px, 3.6cqw, 46px) * var(--ck-head-scale));
    line-height: 1.06;
}

.ck-subtitle {
    margin: clamp(4px, 0.8cqw, 10px) 0 0;
    font-size: clamp(11px, 1.45cqw, 17px);
    line-height: 1.38;
    color: var(--ck-text-muted);
    font-weight: 600;
}

.ck-body {
    margin: clamp(6px, 1.1cqw, 14px) 0 0;
    font-size: clamp(11px, 1.42cqw, 17px);
    line-height: 1.5;
    color: var(--ck-text);
}

.ck-card {
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    box-shadow: var(--ck-shadow);
    padding: clamp(10px, 1.8cqw, 22px);
}

.ck-card-alt {
    background: var(--ck-surface-alt);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    padding: clamp(10px, 1.6cqw, 20px);
}

/* Editable state inside visual editor */
.ck-slide-root [data-ck-field][contenteditable="true"] {
    outline: none;
    border-radius: 6px;
    transition: box-shadow 0.15s ease, background 0.15s ease;
    cursor: text;
}

.ck-slide-root [data-ck-field][contenteditable="true"]:hover {
    box-shadow: 0 0 0 1.5px rgba(2, 132, 199, 0.45);
}

.ck-slide-root [data-ck-field][contenteditable="true"]:focus {
    box-shadow: 0 0 0 2.5px #0284c7;
    background: rgba(255, 255, 255, 0.25);
}

/* Media Frames */
.ck-media-box {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: clamp(90px, 18cqw, 240px);
    border-radius: var(--ck-radius);
    overflow: hidden;
    background: var(--ck-surface);
    border: var(--ck-border);
    box-shadow: var(--ck-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ck-media-box img.ck-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ck-media-box.ck-is-illustration {
    background: radial-gradient(circle at 50% 42%, var(--ck-surface) 0%, var(--ck-accent-soft) 100%);
    padding: clamp(12px, 2.2cqw, 28px);
    flex-direction: column;
    gap: 10px;
}

.ck-media-box.ck-is-illustration img.ck-svg-art {
    width: clamp(54px, 13cqw, 165px);
    height: clamp(54px, 13cqw, 165px);
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.14));
}

.ck-media-caption {
    font-size: clamp(9px, 1.1cqw, 12.5px);
    font-weight: 700;
    color: var(--ck-text-muted);
    text-align: center;
    padding: 4px 10px;
    background: var(--ck-surface);
    border-radius: 999px;
    border: var(--ck-border);
}

/* Bullets / Key Points */
.ck-points-list {
    list-style: none;
    margin: clamp(8px, 1.2cqw, 14px) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 0.85cqw, 10px);
}

.ck-point-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(7px, 1cqw, 12px);
    font-size: clamp(10.5px, 1.32cqw, 15.5px);
    line-height: 1.4;
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: calc(var(--ck-radius) * 0.65);
    padding: clamp(6px, 0.9cqw, 11px) clamp(8px, 1.2cqw, 15px);
}

.ck-point-dot {
    width: clamp(16px, 2cqw, 24px);
    height: clamp(16px, 2cqw, 24px);
    border-radius: 999px;
    background: var(--ck-accent);
    color: #ffffff;
    font-family: var(--ck-font-head);
    font-weight: 800;
    font-size: clamp(9px, 1.05cqw, 12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ==========================================================================
 * 30 STRUCTURAL LAYOUTS
 * ========================================================================== */

/* 1 & 2: Cover Editorial / Cover Illustration */
.ck-grid-cover {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: clamp(12px, 2.8cqw, 36px);
    align-items: center;
    height: 100%;
}

.ck-cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: clamp(10px, 1.8cqw, 20px);
}

.ck-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: clamp(4px, 0.6cqw, 8px) clamp(10px, 1.3cqw, 16px);
    border-radius: 999px;
    background: var(--ck-surface);
    border: var(--ck-border);
    font-size: clamp(9.5px, 1.15cqw, 13px);
    font-weight: 700;
    color: var(--ck-primary);
}

.ck-cover-accent-bar {
    width: clamp(42px, 6.5cqw, 84px);
    height: clamp(4px, 0.55cqw, 7px);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ck-accent), var(--ck-secondary));
    margin: clamp(8px, 1.4cqw, 16px) 0;
}

/* 3: Cover Full Photo */
.ck-cover-full {
    position: relative;
    height: 100%;
    border-radius: var(--ck-radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: clamp(16px, 3cqw, 36px);
    background: var(--ck-primary);
}

.ck-cover-full-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ck-cover-full-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(12deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.15) 100%);
}

.ck-cover-full-content {
    position: relative;
    z-index: 2;
    max-width: 78%;
    color: #ffffff;
}

.ck-cover-full-content .ck-title,
.ck-cover-full-content .ck-subtitle,
.ck-cover-full-content .ck-body {
    color: #ffffff;
}

/* 4: Title & Explanation */
.ck-title-expl {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(12px, 2.5cqw, 32px);
    align-items: center;
    height: 100%;
}

.ck-expl-lead {
    position: relative;
    padding-left: clamp(10px, 1.8cqw, 22px);
    border-left: clamp(4px, 0.5cqw, 6px) solid var(--ck-accent);
}

/* 5 & 6: Image Left / Right */
.ck-split-media {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(12px, 2.6cqw, 32px);
    align-items: center;
    height: 100%;
}

.ck-split-media.is-reversed {
    grid-template-columns: 1.05fr 0.95fr;
}

/* 7: Image Top / Bottom Text */
.ck-top-bottom {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.6cqw, 20px);
    height: 100%;
}

.ck-top-banner-media {
    height: 44%;
    min-height: 0;
}

.ck-bottom-cols {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(10px, 1.8cqw, 24px);
    flex: 1 1 auto;
    align-items: start;
}

/* 8: Comparison Two */
.ck-compare-two {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(8px, 1.5cqw, 20px);
    align-items: stretch;
    margin-top: clamp(8px, 1.4cqw, 18px);
    flex: 1 1 auto;
    min-height: 0;
}

.ck-vs-pill {
    align-self: center;
    width: clamp(28px, 3.8cqw, 44px);
    height: clamp(28px, 3.8cqw, 44px);
    border-radius: 999px;
    background: var(--ck-accent);
    color: #fff;
    font-family: var(--ck-font-head);
    font-weight: 900;
    font-size: clamp(10px, 1.25cqw, 15px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ck-shadow);
}

.ck-compare-col {
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    padding: clamp(10px, 1.6cqw, 20px);
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.9cqw, 10px);
    border-top: 5px solid var(--ck-accent);
}

.ck-compare-col.is-second {
    border-top-color: var(--ck-secondary);
}

.ck-col-head {
    margin: 0;
    font-family: var(--ck-font-head);
    font-weight: 800;
    font-size: clamp(12px, 1.55cqw, 19px);
    color: var(--ck-primary);
}

.ck-mini-list {
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 0.6cqw, 8px);
    font-size: clamp(10px, 1.25cqw, 14.5px);
    line-height: 1.38;
}

/* 9: Comparison Three */
.ck-compare-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.5cqw, 18px);
    margin-top: clamp(8px, 1.4cqw, 18px);
    flex: 1 1 auto;
}

/* 10: Four Cards Horizontal */
.ck-four-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1.3cqw, 16px);
    margin-top: clamp(10px, 1.6cqw, 20px);
    flex: 1 1 auto;
}

.ck-hcard {
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    box-shadow: var(--ck-shadow);
    padding: clamp(10px, 1.4cqw, 18px);
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.9cqw, 10px);
    position: relative;
    overflow: hidden;
}

.ck-hcard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ck-accent);
}

.ck-hcard:nth-child(even)::before {
    background: var(--ck-secondary);
}

.ck-hcard-num {
    width: clamp(22px, 2.8cqw, 34px);
    height: clamp(22px, 2.8cqw, 34px);
    border-radius: 10px;
    background: var(--ck-accent-soft);
    color: var(--ck-accent);
    font-family: var(--ck-font-head);
    font-weight: 900;
    font-size: clamp(11px, 1.35cqw, 16px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 11: Concept Grid (Bento) */
.ck-concept-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.3cqw, 16px);
    margin-top: clamp(8px, 1.3cqw, 16px);
    flex: 1 1 auto;
}

.ck-concept-tile {
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    padding: clamp(9px, 1.4cqw, 18px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ck-concept-tile.is-lead {
    grid-column: span 2;
    background: var(--ck-accent-soft);
}

/* 12: Timeline */
.ck-timeline-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: clamp(8px, 1.2cqw, 16px);
    margin-top: clamp(14px, 2.4cqw, 28px);
    padding-top: clamp(16px, 2.4cqw, 28px);
}

.ck-timeline-track::before {
    content: '';
    position: absolute;
    top: clamp(9px, 1.2cqw, 14px);
    left: 4%;
    right: 4%;
    height: 3px;
    background: linear-gradient(90deg, var(--ck-accent), var(--ck-secondary));
    border-radius: 999px;
}

.ck-tl-node {
    position: relative;
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    padding: clamp(9px, 1.3cqw, 16px);
    box-shadow: var(--ck-shadow);
}

.ck-tl-node::before {
    content: '';
    position: absolute;
    top: calc(-1 * clamp(12px, 1.75cqw, 21px));
    left: 50%;
    transform: translateX(-50%);
    width: clamp(12px, 1.6cqw, 18px);
    height: clamp(12px, 1.6cqw, 18px);
    border-radius: 999px;
    background: var(--ck-surface);
    border: 4px solid var(--ck-accent);
}

/* 13: Step by Step */
.ck-steps-row {
    display: flex;
    align-items: stretch;
    gap: clamp(6px, 1cqw, 14px);
    margin-top: clamp(10px, 1.8cqw, 22px);
    flex: 1 1 auto;
}

.ck-step-card {
    flex: 1 1 0;
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    padding: clamp(10px, 1.5cqw, 18px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ck-step-arrow {
    align-self: center;
    color: var(--ck-accent);
    font-size: clamp(12px, 1.8cqw, 22px);
    font-weight: 900;
}

/* 14 & 15: Circular Diagram & Concept Map */
.ck-diagram-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 2.2cqw, 28px);
    align-items: center;
    flex: 1 1 auto;
    min-height: 0;
}

.ck-svg-stage {
    width: 100%;
    height: 100%;
    max-height: clamp(180px, 34cqw, 420px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ck-svg-stage svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: visible;
}

.ck-cmap-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 1.6cqw, 20px);
    margin-top: clamp(8px, 1.2cqw, 14px);
    flex: 1 1 auto;
    justify-content: center;
}

.ck-cmap-root {
    background: var(--ck-accent);
    color: #fff;
    font-family: var(--ck-font-head);
    font-weight: 800;
    font-size: clamp(12px, 1.6cqw, 20px);
    padding: clamp(8px, 1.2cqw, 14px) clamp(16px, 2.4cqw, 28px);
    border-radius: 999px;
    box-shadow: var(--ck-shadow);
}

.ck-cmap-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(8px, 1.3cqw, 16px);
    width: 100%;
}

/* 16 & 17: Infographics */
.ck-info-vert {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: clamp(10px, 2cqw, 24px);
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

.ck-info-hero-pane {
    background: linear-gradient(155deg, var(--ck-accent), var(--ck-secondary));
    color: #ffffff;
    border-radius: var(--ck-radius);
    padding: clamp(14px, 2cqw, 24px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ck-info-hero-pane .ck-title,
.ck-info-hero-pane .ck-body {
    color: #ffffff;
}

.ck-info-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(7px, 1cqw, 12px);
    justify-content: center;
}

.ck-info-ribbon {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2cqw, 14px);
    background: var(--ck-surface);
    border: var(--ck-border);
    border-left: 5px solid var(--ck-accent);
    border-radius: calc(var(--ck-radius) * 0.75);
    padding: clamp(8px, 1.1cqw, 14px);
}

.ck-info-horiz {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.6cqw, 18px);
    flex: 1 1 auto;
    justify-content: center;
}

.ck-kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.4cqw, 16px);
}

.ck-kpi-card {
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    padding: clamp(10px, 1.4cqw, 16px);
    text-align: center;
}

.ck-kpi-val {
    font-family: var(--ck-font-head);
    font-weight: 900;
    font-size: clamp(18px, 2.7cqw, 34px);
    color: var(--ck-accent);
    line-height: 1.1;
}

/* 18, 19, 20: Reflection / Activity / Math */
.ck-reflection-stage {
    position: relative;
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: calc(var(--ck-radius) * 1.2);
    box-shadow: var(--ck-shadow);
    padding: clamp(16px, 3cqw, 36px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.3cqw, 16px);
    flex: 1 1 auto;
}

.ck-reflection-qmark {
    position: absolute;
    right: clamp(14px, 2.5cqw, 30px);
    bottom: -8%;
    font-family: var(--ck-font-head);
    font-weight: 900;
    font-size: clamp(64px, 12cqw, 150px);
    color: var(--ck-accent-soft);
    line-height: 1;
    pointer-events: none;
}

.ck-chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.ck-activity-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(12px, 2cqw, 26px);
    align-items: center;
    flex: 1 1 auto;
}

.ck-reveal-btn {
    margin-top: 8px;
    border: none;
    border-radius: 999px;
    padding: clamp(6px, 0.8cqw, 10px) clamp(12px, 1.5cqw, 18px);
    background: var(--ck-accent);
    color: #ffffff;
    font-family: var(--ck-font-head);
    font-weight: 800;
    font-size: clamp(10px, 1.2cqw, 14px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ck-answer-box {
    margin-top: 8px;
    padding: clamp(8px, 1.1cqw, 13px);
    border-radius: 12px;
    background: var(--ck-accent-soft);
    border: 1px dashed var(--ck-accent);
    font-size: clamp(10px, 1.25cqw, 14px);
    font-weight: 700;
    color: var(--ck-primary);
}

.ck-formula-box {
    margin: clamp(8px, 1.4cqw, 16px) 0;
    padding: clamp(12px, 2cqw, 24px);
    border-radius: var(--ck-radius);
    background: var(--ck-surface);
    border: 2px solid var(--ck-accent);
    text-align: center;
    font-size: clamp(16px, 2.3cqw, 30px);
    font-weight: 800;
    color: var(--ck-primary);
    box-shadow: var(--ck-shadow);
}

/* 21: Problem & Solution */
.ck-prob-sol {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(8px, 1.5cqw, 20px);
    align-items: stretch;
    margin-top: clamp(8px, 1.4cqw, 18px);
    flex: 1 1 auto;
}

.ck-prob-card {
    background: var(--ck-surface);
    border: var(--ck-border);
    border-left: 6px solid #f59e0b;
    border-radius: var(--ck-radius);
    padding: clamp(12px, 1.8cqw, 22px);
}

.ck-sol-card {
    background: var(--ck-surface);
    border: var(--ck-border);
    border-left: 6px solid #10b981;
    border-radius: var(--ck-radius);
    padding: clamp(12px, 1.8cqw, 22px);
}

/* 22 & 23: Amazing Fact / Featured Quote */
.ck-fact-banner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(12px, 2.2cqw, 28px);
    align-items: center;
    flex: 1 1 auto;
}

.ck-quote-stage {
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: calc(var(--ck-radius) * 1.2);
    box-shadow: var(--ck-shadow);
    padding: clamp(18px, 3.2cqw, 40px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
}

.ck-quote-mark {
    font-family: Georgia, serif;
    font-size: clamp(36px, 6cqw, 72px);
    line-height: 0.7;
    color: var(--ck-accent);
    opacity: 0.45;
    margin-bottom: 6px;
}

.ck-quote-text {
    margin: 0;
    font-family: var(--ck-font-head);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(15px, 2.25cqw, 28px);
    line-height: 1.35;
    color: var(--ck-primary);
}

.ck-quote-author {
    margin-top: clamp(10px, 1.5cqw, 18px);
    font-weight: 800;
    color: var(--ck-accent);
    font-size: clamp(11px, 1.3cqw, 15px);
}

/* 24 & 25: Chart & Table */
.ck-chart-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(12px, 2cqw, 26px);
    align-items: center;
    flex: 1 1 auto;
    min-height: 0;
}

.ck-chart-card {
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    box-shadow: var(--ck-shadow);
    padding: clamp(10px, 1.6cqw, 20px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ck-table-wrap {
    margin-top: clamp(8px, 1.4cqw, 16px);
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    box-shadow: var(--ck-shadow);
    overflow: hidden;
    flex: 1 1 auto;
}

.ck-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(10px, 1.28cqw, 15px);
}

.ck-table th {
    background: var(--ck-accent);
    color: #ffffff;
    font-family: var(--ck-font-head);
    font-weight: 800;
    text-align: left;
    padding: clamp(7px, 1.1cqw, 13px) clamp(10px, 1.4cqw, 16px);
}

.ck-table td {
    padding: clamp(7px, 1cqw, 12px) clamp(10px, 1.4cqw, 16px);
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: var(--ck-text);
}

.ck-table tr:nth-child(even) td {
    background: rgba(148, 163, 184, 0.06);
}

/* 26: Documentary Photo */
.ck-doc-photo {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: clamp(10px, 1.8cqw, 24px);
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

.ck-museum-frame {
    padding: clamp(8px, 1.2cqw, 14px);
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    box-shadow: var(--ck-shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 27: Illustrated Sequence */
.ck-sequence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: clamp(8px, 1.4cqw, 16px);
    margin-top: clamp(10px, 1.5cqw, 18px);
    flex: 1 1 auto;
}

.ck-seq-panel {
    background: var(--ck-surface);
    border: var(--ck-border);
    border-radius: var(--ck-radius);
    padding: clamp(9px, 1.3cqw, 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

/* 28: Before & After */
.ck-before-after {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(8px, 1.5cqw, 18px);
    margin-top: clamp(10px, 1.4cqw, 18px);
    flex: 1 1 auto;
}

.ck-ba-pane {
    border-radius: var(--ck-radius);
    padding: clamp(12px, 1.8cqw, 22px);
    border: var(--ck-border);
}

.ck-ba-pane.is-before {
    background: rgba(148, 163, 184, 0.14);
}

.ck-ba-pane.is-after {
    background: var(--ck-accent-soft);
    border-color: var(--ck-accent);
}

/* 29 & 30: Visual Summary & Closing Conclusions */
.ck-closing-stage {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(12px, 2.2cqw, 28px);
    align-items: center;
    flex: 1 1 auto;
}

.ck-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 1.4cqw, 16px);
    margin-top: clamp(10px, 1.5cqw, 18px);
}

/* Custom Draggable / Rotatable Floating Canvas Layer */
.ck-elements-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.ck-el-node {
    position: absolute;
    pointer-events: auto;
    user-select: none;
    transform-origin: center center;
    border-radius: 10px;
}

.ck-el-node.is-interactive {
    cursor: move;
}

.ck-el-node.is-locked {
    cursor: default;
}

.ck-el-node.is-selected {
    outline: 2px dashed #0284c7;
    outline-offset: 4px;
}

.ck-el-handle-scale,
.ck-el-handle-rotate {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #0284c7;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
    display: none;
}

.ck-el-node.is-selected .ck-el-handle-scale {
    display: block;
    right: -8px;
    bottom: -8px;
    cursor: nwse-resize;
}

.ck-el-node.is-selected .ck-el-handle-rotate {
    display: block;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    background: #f97316;
    cursor: grab;
}

.ck-el-text {
    padding: 6px 10px;
    font-family: var(--ck-font-head);
    font-weight: 800;
    line-height: 1.25;
}

.ck-el-sticker {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ck-el-shape {
    width: 100%;
    height: 100%;
}

/* Alignment Smart Guides */
.ck-guide-line {
    position: absolute;
    z-index: 6;
    pointer-events: none;
    display: none;
}

.ck-guide-line.is-v {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    border-left: 1.5px dashed #ef4444;
}

.ck-guide-line.is-h {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    border-top: 1.5px dashed #ef4444;
}

/* ==========================================================================
 * 8 SLIDE TRANSITIONS
 * ========================================================================== */
@keyframes ckTransFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ckTransSlide { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ckTransPush { from { opacity: 0.4; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes ckTransZoom { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes ckTransSweep { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes ckTransReveal { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ckTransHorizontal { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ckTransVertical { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: translateY(0); } }

.ck-trans-fade { animation: ckTransFade 0.34s ease both; }
.ck-trans-slide { animation: ckTransSlide 0.38s cubic-bezier(.2,.8,.2,1) both; }
.ck-trans-push { animation: ckTransPush 0.42s cubic-bezier(.2,.8,.2,1) both; }
.ck-trans-zoom { animation: ckTransZoom 0.36s cubic-bezier(.2,.8,.2,1) both; }
.ck-trans-sweep { animation: ckTransSweep 0.46s ease both; }
.ck-trans-reveal { animation: ckTransReveal 0.40s ease both; }
.ck-trans-horizontal { animation: ckTransHorizontal 0.38s ease both; }
.ck-trans-vertical { animation: ckTransVertical 0.38s ease both; }

/* ==========================================================================
 * 7 ELEMENT ANIMATIONS
 * ========================================================================== */
@keyframes ckAnimFlyLeft { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ckAnimScaleUp { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
@keyframes ckAnimHighlight { 0%,100% { box-shadow: var(--ck-shadow); } 50% { box-shadow: 0 0 0 4px var(--ck-accent-soft), var(--ck-shadow); } }

.ck-anim-appear .ck-slide-main > * { animation: ckTransFade 0.25s ease both; }
.ck-anim-fade_in .ck-slide-main > * { animation: ckTransReveal 0.45s ease both; }
.ck-anim-fly_left .ck-point-item,
.ck-anim-fly_left .ck-card { animation: ckAnimFlyLeft 0.42s ease both; }
.ck-anim-scale_up .ck-media-box,
.ck-anim-scale_up .ck-hcard { animation: ckAnimScaleUp 0.42s cubic-bezier(.2,.8,.2,1) both; }
.ck-anim-step_by_step .ck-point-item:nth-child(1),
.ck-anim-step_by_step .ck-hcard:nth-child(1) { animation: ckTransReveal 0.35s 0.05s ease both; }
.ck-anim-step_by_step .ck-point-item:nth-child(2),
.ck-anim-step_by_step .ck-hcard:nth-child(2) { animation: ckTransReveal 0.35s 0.16s ease both; }
.ck-anim-step_by_step .ck-point-item:nth-child(3),
.ck-anim-step_by_step .ck-hcard:nth-child(3) { animation: ckTransReveal 0.35s 0.27s ease both; }
.ck-anim-step_by_step .ck-point-item:nth-child(4),
.ck-anim-step_by_step .ck-hcard:nth-child(4) { animation: ckTransReveal 0.35s 0.38s ease both; }
.ck-anim-highlight .ck-card,
.ck-anim-highlight .ck-quote-stage { animation: ckAnimHighlight 1.6s ease 1; }
.ck-anim-typewriter .ck-title { animation: ckTransFade 0.55s steps(14, end) both; }

/* Mobile Readable Adaptation when viewing vertical/small screen */
@media (max-width: 720px) {
    .ck-slide-root.ck-mobile-fluid {
        height: auto;
        min-height: 290px;
        overflow-y: visible;
        padding: 16px;
    }
    .ck-slide-root.ck-mobile-fluid .ck-grid-cover,
    .ck-slide-root.ck-mobile-fluid .ck-title-expl,
    .ck-slide-root.ck-mobile-fluid .ck-split-media,
    .ck-slide-root.ck-mobile-fluid .ck-compare-two,
    .ck-slide-root.ck-mobile-fluid .ck-compare-three,
    .ck-slide-root.ck-mobile-fluid .ck-four-cards,
    .ck-slide-root.ck-mobile-fluid .ck-concept-grid,
    .ck-slide-root.ck-mobile-fluid .ck-steps-row,
    .ck-slide-root.ck-mobile-fluid .ck-diagram-split,
    .ck-slide-root.ck-mobile-fluid .ck-info-vert,
    .ck-slide-root.ck-mobile-fluid .ck-kpi-strip,
    .ck-slide-root.ck-mobile-fluid .ck-activity-card,
    .ck-slide-root.ck-mobile-fluid .ck-prob-sol,
    .ck-slide-root.ck-mobile-fluid .ck-fact-banner,
    .ck-slide-root.ck-mobile-fluid .ck-chart-grid,
    .ck-slide-root.ck-mobile-fluid .ck-doc-photo,
    .ck-slide-root.ck-mobile-fluid .ck-before-after,
    .ck-slide-root.ck-mobile-fluid .ck-closing-stage,
    .ck-slide-root.ck-mobile-fluid .ck-summary-grid,
    .ck-slide-root.ck-mobile-fluid .ck-bottom-cols {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .ck-slide-root.ck-mobile-fluid .ck-concept-tile.is-lead {
        grid-column: span 1;
    }
    .ck-slide-root.ck-mobile-fluid .ck-title { font-size: 20px; }
    .ck-slide-root.ck-mobile-fluid .ck-title-hero { font-size: 23px; }
    .ck-slide-root.ck-mobile-fluid .ck-subtitle,
    .ck-slide-root.ck-mobile-fluid .ck-body,
    .ck-slide-root.ck-mobile-fluid .ck-point-item { font-size: 13.5px; }
    .ck-slide-root.ck-mobile-fluid .ck-vs-pill,
    .ck-slide-root.ck-mobile-fluid .ck-step-arrow { align-self: center; margin: 2px auto; }
}
