/* ── APP INTERFACE & THEME (SLATE ACCENTS) ── */
:root {
    --app-bg: #0f172a;
    --app-sidebar-bg: #1e293b;
    --app-border: #334155;
    --app-text: #f1f5f9;
    --app-text-muted: #94a3b8;
    --app-accent: #3b82f6;
    --app-accent-hover: #2563eb;
    --app-danger: #ef4444;

    /* ── EPELBAUM DESIGN SYSTEM TOKENS ── */
    --epelbaum-bg-primary: #F5F7FF;     /* Ghost White */
    --epelbaum-bg-lavender: #DFE5F9;    /* Lavender */
    --epelbaum-accent-deep: #00104C;    /* Cetacean Blue */
    --epelbaum-accent-mid: #2E4699;     /* YlnMn Blue */
    
    /* Fonts */
    --font-main: 'Inter Tight', system-ui, sans-serif;
    --font-accent: 'Arapey', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--app-bg);
    color: var(--app-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── HEADER ── */
.app-header {
    height: 60px;
    background-color: var(--app-sidebar-bg);
    border-bottom: 1px solid var(--app-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 10;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--epelbaum-bg-lavender);
    color: var(--epelbaum-accent-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 20px;
    font-weight: bold;
}

.header-logo h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo h1 .subtitle {
    font-size: 12px;
    color: var(--app-accent);
    font-weight: 500;
    background-color: rgba(59, 130, 246, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
}

/* ── CONTAINER ── */
.app-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ── SIDEBAR EDITOR ── */
.sidebar {
    width: 420px;
    background-color: var(--app-sidebar-bg);
    border-right: 1px solid var(--app-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px;
    gap: 24px;
}

.sidebar-section {
    border-bottom: 1px solid var(--app-border);
    padding-bottom: 20px;
}

.sidebar-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--app-text-muted);
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.label-small {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--app-text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background-color: var(--app-bg);
    border: 1px solid var(--app-border);
    border-radius: 6px;
    color: var(--app-text);
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--app-accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

textarea.form-control {
    resize: vertical;
}

.help-text {
    display: block;
    font-size: 11px;
    color: var(--app-text-muted);
    margin-top: 4px;
}

.help-text code {
    background-color: rgba(0,0,0,0.3);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
    color: #f472b6;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Slide buttons row */
.slide-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slide-counter-badge {
    font-size: 12px;
    font-weight: 600;
    background-color: var(--app-bg);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid var(--app-border);
}

.slide-actions-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-icon {
    background-color: var(--app-bg);
    border: 1px solid var(--app-border);
    color: var(--app-text);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background-color: var(--app-border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-primary {
    background-color: var(--app-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--app-accent-hover);
}

.btn-primary-outline {
    background-color: transparent;
    border: 1px solid var(--app-accent);
    color: var(--app-accent);
}

.btn-primary-outline:hover {
    background-color: rgba(59, 130, 246, 0.15);
}

.btn-secondary {
    background-color: var(--app-border);
    color: var(--app-text);
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--app-danger);
    color: var(--app-danger);
}

.btn-danger:hover {
    background-color: var(--app-danger);
    color: white;
}

.btn-block {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* ── PREVIEW AREA ── */
.preview-area {
    flex: 1;
    background-color: var(--app-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

/* High Fidelity Phone Frame */
.instagram-mockup-wrapper {
    background-color: #000000;
    border: 10px solid #27272a;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 400px;
    min-width: 400px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    width: 120px;
    height: 18px;
    background-color: #27272a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.instagram-post-container {
    background-color: #ffffff;
    color: #000000;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Instagram Header */
.ig-post-header {
    height: 52px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-bottom: 0.5px solid #efefef;
}

.ig-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 2px;
    margin-right: 10px;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--epelbaum-accent-deep);
    color: white;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.ig-user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ig-username {
    font-size: 13px;
    font-weight: 600;
    color: #262626;
    line-height: 1.2;
}

.ig-location {
    font-size: 11px;
    color: #8e8e8e;
}

.ig-more-options {
    color: #262626;
    cursor: pointer;
}

/* Viewport Scale System */
.slide-viewport-wrapper {
    width: 100%;
    background-color: #fafafa;
    overflow: hidden;
    position: relative;
}

/* The actual 1080px wide canvas that will be scaled */
.slide-canvas {
    width: 1080px;
    height: 1350px; /* Classic 4:5 by default */
    transform-origin: top left;
    position: relative;
    box-sizing: border-box;
    user-select: none;
}

/* Formats height adjustments */
.slide-canvas.aspect-4-5 {
    height: 1350px;
}
.slide-canvas.aspect-3-4 {
    height: 1440px;
}
.slide-canvas.aspect-1-1 {
    height: 1080px;
}
.slide-canvas.aspect-16-9-approx {
    height: 608px;
}
.slide-canvas.aspect-9-16 {
    height: 1920px;
}

/* ── SLIDE GRAPHICS & STYLE ── */
.slide-canvas.theme-light {
    background-color: var(--epelbaum-bg-primary);
    color: var(--epelbaum-accent-deep);
}
.slide-canvas.theme-dark {
    background-color: var(--epelbaum-accent-mid);
    color: var(--epelbaum-bg-primary);
}

/* Global Overrides for background */
.slide-canvas.bg-primary {
    background-color: var(--epelbaum-bg-primary) !important;
    color: var(--epelbaum-accent-deep) !important;
}
.slide-canvas.bg-lavender {
    background-color: var(--epelbaum-bg-lavender) !important;
    color: var(--epelbaum-accent-deep) !important;
}
.slide-canvas.bg-dark {
    background-color: var(--epelbaum-accent-mid) !important;
    color: var(--epelbaum-bg-primary) !important;
}
.slide-canvas.bg-white {
    background-color: #FFFFFF !important;
    color: var(--epelbaum-accent-deep) !important;
}

/* Layout container inside slide */
.slide-content-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 80px 70px 80px; /* Large professional padding */
}

/* Header Row (Badge + Logo) */
.slide-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.slide-badge {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: rgba(201, 207, 227, 0.4);
    padding: 8px 24px;
    border-radius: 40px; /* radius pill */
}

/* In dark slides, badge should look contrasty */
.theme-dark .slide-badge,
.bg-dark .slide-badge {
    background-color: rgba(223, 229, 249, 0.15);
    color: var(--epelbaum-bg-lavender);
}

/* Logo icon styling */
.epelbaum-icon-logo {
    width: 54px;
    height: 54px;
    color: currentColor;
    opacity: 0.85;
}

/* Footer Row */
.slide-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
    font-size: 22px;
    font-weight: 500;
    opacity: 0.75;
    height: 40px;
}

.slide-branding {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.slide-swipe-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.slide-swipe-indicator svg {
    margin-top: 1px;
}

/* ── MAIN CONTENT & TYPOGRAPHY SYSTEM ── */
.slide-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 40px 0;
    gap: 30px;
}

/* Headline Styling */
.slide-title {
    font-family: var(--font-main);
    font-size: 72px; /* --text-h1 */
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

/* Aspect-specific title scaling */
.slide-canvas.aspect-16-9-approx .slide-title {
    font-size: 52px;
    margin-bottom: 12px;
}
.slide-canvas.aspect-9-16 .slide-title {
    font-size: 80px;
    margin-bottom: 32px;
}

.slide-title-line1 {
    display: block;
    margin-bottom: 4px;
}

.slide-title-line2 {
    display: block;
}

/* Arapey italic highlights */
.font-accent {
    font-family: var(--font-accent) !important;
    font-style: italic !important;
    font-weight: 400 !important;
    letter-spacing: 0em !important;
}

/* Body Text */
.slide-body-text {
    font-family: var(--font-main);
    font-size: 26px; /* --text-body scaled for 1080px */
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.01em;
    max-width: 840px;
    opacity: 0.9;
}

/* Aspect-specific body scaling */
.slide-canvas.aspect-16-9-approx .slide-body-text {
    font-size: 20px;
    line-height: 1.35;
}
.slide-canvas.aspect-9-16 .slide-body-text {
    font-size: 28px;
    line-height: 1.5;
}

/* ── LAYOUT SPECIFIC DESIGNS ── */

/* 1. Layout Quote */
.layout-quote-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.quote-mark {
    font-family: var(--font-accent);
    font-size: 160px;
    line-height: 1;
    height: 60px;
    margin-bottom: -10px;
    opacity: 0.15;
}

.quote-text {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 56px;
    line-height: 1.25;
    margin-bottom: 30px;
    max-width: 860px;
}

.quote-author {
    font-family: var(--font-main);
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

/* 2. Layout Split (Text on left, Image card on right) */
.layout-split-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    height: 100%;
}

/* On vertical 9:16 or horizontal 16:9, adjust grid */
.slide-canvas.aspect-9-16 .layout-split-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 32px;
}
.slide-canvas.aspect-16-9-approx .layout-split-wrapper {
    gap: 24px;
}

.split-image-container {
    width: 100%;
    height: 100%;
    min-height: 380px;
    background-color: var(--epelbaum-bg-lavender);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 16, 76, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-canvas.aspect-16-9-approx .split-image-container {
    min-height: 200px;
}

/* Image visual styles */
.gradient-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--epelbaum-bg-lavender) 0%, #c9cfe3 100%);
    position: absolute;
    top: 0;
    left: 0;
}

.theme-dark .gradient-overlay {
    background: linear-gradient(135deg, var(--epelbaum-accent-mid) 0%, var(--epelbaum-accent-deep) 100%);
}

.custom-user-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

/* Dynamic SVGs for placeholders */
.placeholder-svg-graphic {
    position: absolute;
    width: 50%;
    height: 50%;
    opacity: 0.35;
    color: var(--epelbaum-accent-deep);
    z-index: 1;
}

.theme-dark .placeholder-svg-graphic {
    color: var(--epelbaum-bg-lavender);
}

.image-prompt-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--epelbaum-accent-deep);
    font-family: var(--font-main);
    z-index: 3;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 3. Layout List */
.layout-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.layout-list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: rgba(223, 229, 249, 0.4);
    padding: 24px 30px;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

.theme-dark .layout-list-item {
    background-color: rgba(255, 255, 255, 0.08);
}

.list-check-icon {
    width: 28px;
    height: 28px;
    color: var(--epelbaum-accent-mid);
    margin-top: 2px;
    flex-shrink: 0;
}

.theme-dark .list-check-icon {
    color: var(--epelbaum-bg-lavender);
}

/* 4. Layout Team (Lavender background box) */
.layout-team-wrapper {
    background-color: var(--epelbaum-bg-lavender);
    border-radius: 16px;
    padding: 48px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    box-shadow: 0 4px 30px rgba(0,16,76,0.04);
}

.slide-canvas.aspect-9-16 .layout-team-wrapper {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 24px;
}

.team-image-box {
    width: 100%;
    aspect-ratio: 1;
    background-color: rgba(255,255,255,0.7);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-badge-row {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--epelbaum-accent-deep);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.team-name {
    font-family: var(--font-main);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--epelbaum-accent-deep);
    margin-bottom: 6px;
}

.team-role {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 500;
    color: var(--epelbaum-accent-mid);
    margin-bottom: 20px;
}

.team-bio {
    font-family: var(--font-main);
    font-size: 20px;
    line-height: 1.4;
    color: var(--epelbaum-accent-deep);
    opacity: 0.85;
}

/* 5. Layout Service (White centered card) */
.layout-service-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.service-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 16, 76, 0.08);
    width: 720px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid rgba(201, 207, 227, 0.60);
}

.slide-canvas.aspect-9-16 .service-card {
    width: 100%;
}

.service-image-box {
    height: 240px;
    border-radius: 12px;
    background-color: var(--epelbaum-bg-lavender);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 20px;
}

.service-price {
    font-family: var(--font-main);
    font-size: 26px;
    font-weight: 700;
    color: var(--epelbaum-accent-deep);
}

.service-link {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 600;
    color: var(--epelbaum-accent-mid);
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

/* ── INSTAGRAM FOOTER ── */
.ig-post-footer {
    padding: 12px 14px;
    border-top: 0.5px solid #efefef;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ig-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ig-left-actions {
    display: flex;
    gap: 16px;
}

.ig-action-icon {
    color: #262626;
    cursor: pointer;
    transition: transform 0.1s;
}

.ig-action-icon:hover {
    transform: scale(1.08);
}

/* Dot pagination indicators */
.ig-carousel-dots {
    display: flex;
    gap: 4px;
}

.ig-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #a8a8a8;
    transition: background-color 0.2s, transform 0.2s;
}

.ig-dot.active {
    background-color: #0095f6;
    transform: scale(1.2);
}

.ig-right-actions {
    color: #262626;
    cursor: pointer;
}

.ig-likes-section {
    font-size: 13px;
    color: #262626;
}

.ig-likes-section strong {
    font-weight: 600;
}

.ig-caption-section {
    font-size: 13px;
    line-height: 1.4;
    color: #262626;
    word-break: break-word;
}

.ig-caption-username {
    font-weight: 600;
    margin-right: 6px;
}

.ig-caption-text {
    font-weight: 400;
}

/* ── BOTTOM CANVAS CONTROLS ── */
.canvas-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.btn-icon-round {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-dots-labels {
    font-size: 14px;
    font-weight: 600;
    color: var(--app-text-muted);
    background-color: var(--app-sidebar-bg);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--app-border);
}

.export-notes {
    margin-top: 24px;
    max-width: 400px;
    text-align: center;
}

.export-notes p {
    font-size: 12px;
    color: var(--app-text-muted);
    line-height: 1.5;
}

/* ── EXPORT SANDBOX ── */
/* Hidden off-screen, used to render high resolution */
.export-sandbox {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1080px;
    overflow: visible;
}

.export-sandbox .slide-canvas {
    transform: none !important;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--app-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--app-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ── UTILITY SPIN ANIMATION ── */
.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ── LAYOUT EDITORIAL (WHITE CLINIC STYLE) ── */
.layout-editorial-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* For bg-bleed cover layout */
.slide-canvas.editorial-bleed-active {
    padding: 0 !important; /* Remove parent padding to allow full bleed */
}

.editorial-cover-container {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 80px 80px 70px 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5;
    color: #FFFFFF !important;
}

.editorial-cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.editorial-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 10, 76, 0.96) 0%, rgba(0, 10, 76, 0.70) 35%, rgba(0, 10, 76, 0.15) 75%, rgba(0, 10, 76, 0) 100%);
    z-index: 2;
}

.editorial-cover-badge {
    font-family: var(--font-main);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--epelbaum-bg-lavender);
    margin-bottom: 8px;
    z-index: 5;
}

.api-keys-dropdown {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px dashed var(--app-border);
    border-radius: 6px;
    padding: 10px;
}

.api-keys-dropdown summary {
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    color: var(--app-accent);
}

.api-keys-dropdown[open] summary {
    margin-bottom: 8px;
    border-bottom: 1px solid var(--app-border);
    padding-bottom: 6px;
}

.editorial-cover-text {
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Content block styles */
.editorial-text-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.editorial-serif-quote {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 32px;
    line-height: 1.35;
    margin-top: 10px;
    border-left: 3px solid var(--epelbaum-accent-mid);
    padding-left: 24px;
}

.theme-dark .editorial-serif-quote {
    border-left-color: var(--epelbaum-bg-lavender);
}

/* Split structures */
.editorial-img-bottom-wrapper {
    display: grid;
    grid-template-rows: 1.1fr 0.9fr;
    gap: 32px;
    height: 100%;
}

.slide-canvas.aspect-16-9-approx .editorial-img-bottom-wrapper {
    grid-template-rows: 1.3fr 0.7fr;
    gap: 16px;
}
.slide-canvas.aspect-9-16 .editorial-img-bottom-wrapper {
    grid-template-rows: 1.2fr 0.8fr;
    gap: 24px;
}

.editorial-img-right-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    height: 100%;
    align-items: center;
}

.slide-canvas.aspect-9-16 .editorial-img-right-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: 1.2fr 0.8fr;
    gap: 24px;
}

.editorial-image-box {
    width: 100%;
    height: 100%;
    background-color: var(--epelbaum-bg-lavender);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 16, 76, 0.05);
}

/* Text formatting highlights */
.editorial-body {
    font-family: var(--font-main);
    font-size: 24px;
    line-height: 1.45;
    opacity: 0.95;
}

.editorial-body strong {
    font-weight: 700;
}

.slide-canvas.aspect-16-9-approx .editorial-body {
    font-size: 19px;
}

.editorial-read-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 600;
    opacity: 0.8;
}

.editorial-page-index {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.85;
}


