/* EPUB to PDF v2.5.2a59.8-clean Release Prep */
.localpdf-epub-to-pdf-wrap {
    --localpdf-epub-to-pdf-primary: #2563eb;
    --localpdf-epub-to-pdf-button: #2563eb;
    --localpdf-epub-to-pdf-radius: 18px;
    --localpdf-epub-to-pdf-surface: #ffffff;
    --localpdf-epub-to-pdf-border: rgba(37, 99, 235, 0.16);
    --localpdf-epub-to-pdf-muted: #64748b;
    --localpdf-epub-to-pdf-text: #0f172a;
    max-width: min(100%, var(--localpdf-epub-to-pdf-tool-width, 1500px));
    margin: 0 auto;
    color: var(--localpdf-epub-to-pdf-text);
    font-family: inherit;
}


.localpdf-epub-to-pdf-wrap,
.localpdf-epub-to-pdf-wrap *,
.localpdf-epub-to-pdf-wrap *::before,
.localpdf-epub-to-pdf-wrap *::after {
    box-sizing: border-box;
}

.localpdf-epub-to-pdf-wrap button,
.localpdf-epub-to-pdf-wrap input,
.localpdf-epub-to-pdf-wrap select,
.localpdf-epub-to-pdf-wrap textarea {
    font: inherit;
}

/* v2.5.2a59.3.1-clean — Start screen visual parity fix.
 * The shared Convert start-screen layer is structural only, but on dark site pages the
 * EPUB scaffold was still transparent and under-stacked. This block makes the EPUB
 * start surface self-contained and keeps tool-specific paint after the shared layer.
 */
.localpdf-epub-to-pdf-wrap.is-empty.is-flow-start,
.localpdf-epub-to-pdf-wrap.localpdf-convert-family-start-aligned.localpdf-convert-format-to-pdf-epub.is-empty.is-flow-start {
    width: min(var(--localpdf-epub-to-pdf-tool-width, 1120px), calc(100% - 28px)) !important;
    max-width: min(100%, 1120px) !important;
    margin: clamp(18px, 2.4vw, 34px) auto clamp(28px, 4vw, 56px) !important;
    padding: clamp(22px, 3.2vw, 42px) !important;
    border: 1px solid rgba(191, 219, 254, .92) !important;
    border-radius: 30px !important;
    color: #334155 !important;
    background:
        radial-gradient(circle at 50% -5%, rgba(37, 99, 235, .08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 251, 255, .98) 100%) !important;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .07) !important;
}

.localpdf-epub-to-pdf-start {
    display: block;
    max-width: 1180px;
    margin: 0 auto;
}

.localpdf-epub-to-pdf-wrap.localpdf-convert-family-start-aligned.localpdf-convert-format-to-pdf-epub.is-empty.is-flow-start .localpdf-epub-to-pdf-dropzone,
.localpdf-epub-to-pdf-dropzone {
    position: relative;
    min-height: clamp(500px, 64vh, 640px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-align: center !important;
    padding: clamp(42px, 5.8vw, 64px) clamp(20px, 5vw, 58px) !important;
    border: 2px dashed #93c5fd !important;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at 50% 18%, rgba(37, 99, 235, .12), transparent 30%),
        radial-gradient(circle at 50% 74%, rgba(34, 197, 94, .055), transparent 38%),
        linear-gradient(180deg, #fff 0%, #f8fbff 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 24px 72px rgba(37, 99, 235, .09) !important;
    cursor: default;
}

.localpdf-epub-to-pdf-wrap.localpdf-convert-family-start-aligned.localpdf-convert-format-to-pdf-epub.is-empty.is-flow-start .localpdf-epub-to-pdf-dropzone:hover,
.localpdf-epub-to-pdf-dropzone:hover,
.localpdf-epub-to-pdf-dropzone.is-dragover {
    border-color: var(--localpdf-epub-to-pdf-primary) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 30px 82px rgba(37, 99, 235, .13) !important;
}

.localpdf-epub-to-pdf-start-illustration {
    position: relative;
    width: 246px !important;
    height: 132px !important;
    min-height: 132px !important;
    margin: 0 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    isolation: isolate;
    transform-origin: center;
}

.localpdf-epub-to-pdf-start-illustration::before {
    content: '';
    position: absolute;
    width: 168px !important;
    height: 168px !important;
    border-radius: 999px;
    opacity: .78;
    background:
        radial-gradient(circle at 50% 40%, rgba(37, 99, 235, .18), transparent 54%),
        linear-gradient(180deg, rgba(147, 197, 253, .18), rgba(37, 99, 235, .08));
    box-shadow: 0 28px 82px rgba(37, 99, 235, .18);
    z-index: -1;
}

.localpdf-epub-to-pdf-start-card {
    position: absolute;
    display: grid !important;
    place-items: center !important;
    border-radius: 18px;
    background: rgba(239, 246, 255, .78);
    border: 1px solid rgba(191, 219, 254, .78);
    box-shadow: 0 18px 44px rgba(37, 99, 235, .10);
}

.localpdf-epub-to-pdf-start-card svg {
    width: 100% !important;
    height: 100% !important;
    padding: 12px !important;
    overflow: visible;
}

.localpdf-epub-to-pdf-start-card svg path,
.localpdf-epub-to-pdf-start-card svg rect,
.localpdf-epub-to-pdf-start-card svg circle {
    fill: none !important;
    stroke: #2563eb !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.localpdf-epub-to-pdf-start-card-left {
    left: 8px !important;
    top: 44px !important;
    width: 58px !important;
    height: 70px !important;
    opacity: .34 !important;
    transform: rotate(-9deg) translateY(0) !important;
    border-radius: 17px !important;
    background: rgba(239, 246, 255, .62) !important;
    border-color: rgba(191, 219, 254, .58) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .07) !important;
    z-index: 0;
}

.localpdf-epub-to-pdf-start-card-main {
    left: 40px !important;
    top: 28px !important;
    width: 104px !important;
    height: 74px !important;
    border: 0 !important;
    border-radius: 24px !important;
    z-index: 6 !important;
    padding: 0 12px !important;
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    box-shadow: 0 22px 52px rgba(37, 99, 235, .30) !important;
}

.localpdf-epub-to-pdf-start-card-main span {
    color: #fff !important;
    font-size: 23px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: -.045em !important;
    white-space: nowrap !important;
}

.localpdf-epub-to-pdf-start-arrow {
    position: absolute;
    display: grid !important;
    place-items: center !important;
    left: 140px !important;
    top: 51px !important;
    width: 38px !important;
    height: 38px !important;
    z-index: 7 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(191, 219, 254, .82) !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #2563eb !important;
    box-shadow: 0 14px 34px rgba(37, 99, 235, .15) !important;
    backdrop-filter: blur(8px);
}

.localpdf-epub-to-pdf-start-arrow svg {
    width: 23px !important;
    height: 23px !important;
}

.localpdf-epub-to-pdf-start-arrow svg path,
.localpdf-epub-to-pdf-start-arrow svg rect {
    fill: none !important;
    stroke: #2563eb !important;
    stroke-width: 3.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.localpdf-epub-to-pdf-start-card-right {
    right: 24px !important;
    top: 20px !important;
    width: 76px !important;
    height: 92px !important;
    z-index: 5 !important;
    padding: 8px 8px 9px !important;
    border-radius: 20px !important;
    transform: rotate(5deg) translateY(0) !important;
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(239, 246, 255, .90)) !important;
    border: 1px solid rgba(147, 197, 253, .74) !important;
    box-shadow: 0 18px 44px rgba(37, 99, 235, .16) !important;
    filter: none !important;
}

.localpdf-epub-to-pdf-start-card-right svg {
    width: 42px !important;
    height: 50px !important;
    padding: 0 !important;
}

.localpdf-epub-to-pdf-start-card-right b {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 20px !important;
    padding: 4px 7px !important;
    border-radius: 999px !important;
    background: rgba(37, 99, 235, .10) !important;
    color: #1d4ed8 !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: .035em !important;
}

.localpdf-epub-to-pdf-start-spark {
    display: none !important;
}

.localpdf-epub-to-pdf-wrap.localpdf-convert-family-start-aligned.localpdf-convert-format-to-pdf-epub.is-empty.is-flow-start .localpdf-epub-to-pdf-dropzone h2,
.localpdf-epub-to-pdf-dropzone h2 {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto 12px !important;
    color: #0f172a !important;
    font-size: clamp(34px, 4.2vw, 52px) !important;
    font-weight: 950 !important;
    line-height: 1.06 !important;
    letter-spacing: -.06em !important;
    text-shadow: none !important;
}

.localpdf-epub-to-pdf-wrap.localpdf-convert-family-start-aligned.localpdf-convert-format-to-pdf-epub.is-empty.is-flow-start .localpdf-epub-to-pdf-dropzone p,
.localpdf-epub-to-pdf-dropzone p {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto !important;
    color: #64748b !important;
    font-size: clamp(14px, 1.3vw, 17px) !important;
    font-weight: 650 !important;
    line-height: 1.65 !important;
    text-shadow: none !important;
}

.localpdf-epub-to-pdf-start-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: clamp(22px, 3vw, 28px) 0 16px !important;
}

.localpdf-epub-to-pdf-primary {
    min-width: 176px;
    min-height: 48px;
    padding: 15px 20px !important;
    border: 0;
    border-radius: 16px !important;
    color: #fff !important;
    background: linear-gradient(180deg, var(--localpdf-epub-to-pdf-button) 0%, #1d4ed8 100%) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: -.015em;
    box-shadow: 0 18px 42px rgba(37, 99, 235, .28) !important;
}

.localpdf-epub-to-pdf-wrap.localpdf-convert-family-start-aligned.localpdf-convert-format-to-pdf-epub.is-empty.is-flow-start .localpdf-epub-to-pdf-dropzone small,
.localpdf-epub-to-pdf-dropzone small {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 760px;
    min-height: 0 !important;
    margin-top: 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.55 !important;
    text-shadow: none !important;
}

.localpdf-epub-to-pdf-badges {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: min(830px, 100%) !important;
    margin: clamp(22px, 3vw, 30px) auto 0 !important;
}

.localpdf-epub-to-pdf-badges span {
    min-height: 76px !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    grid-template-areas: 'icon title' 'icon text';
    align-items: center;
    column-gap: 10px;
    padding: 13px 12px !important;
    border: 1px solid rgba(191, 219, 254, .74) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .88) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .055) !important;
    text-align: left !important;
}

.localpdf-epub-to-pdf-badges i {
    grid-area: icon;
    width: 28px !important;
    height: 28px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 10px !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    position: relative;
}

.localpdf-epub-to-pdf-badges i::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    width: 11px;
    height: 7px;
    border-left: 3px solid #2563eb;
    border-bottom: 3px solid #2563eb;
    transform: rotate(-45deg);
}

.localpdf-epub-to-pdf-badges strong {
    grid-area: title;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.22 !important;
}

.localpdf-epub-to-pdf-badges em {
    grid-area: text;
    color: #64748b !important;
    font-style: normal !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

@media (max-width: 640px) {
    .localpdf-epub-to-pdf-wrap.is-empty.is-flow-start,
    .localpdf-epub-to-pdf-wrap.localpdf-convert-family-start-aligned.localpdf-convert-format-to-pdf-epub.is-empty.is-flow-start {
        width: min(100%, calc(100% - 16px)) !important;
        padding: 10px !important;
        border-radius: 22px !important;
    }

    .localpdf-epub-to-pdf-wrap.localpdf-convert-family-start-aligned.localpdf-convert-format-to-pdf-epub.is-empty.is-flow-start .localpdf-epub-to-pdf-dropzone,
    .localpdf-epub-to-pdf-dropzone {
        min-height: auto !important;
        padding: 32px 14px !important;
        border-radius: 20px !important;
    }

    .localpdf-epub-to-pdf-start-illustration {
        width: 220px !important;
        height: 120px !important;
        min-height: 120px !important;
        margin-bottom: 18px !important;
        transform: scale(.92);
    }

    .localpdf-epub-to-pdf-start-card-main {
        left: 32px !important;
        top: 28px !important;
        width: 94px !important;
        height: 68px !important;
    }

    .localpdf-epub-to-pdf-start-card-main span {
        font-size: 20px !important;
    }

    .localpdf-epub-to-pdf-start-arrow {
        left: 126px !important;
        top: 50px !important;
        width: 34px !important;
        height: 34px !important;
    }

    .localpdf-epub-to-pdf-start-card-right {
        right: 18px !important;
        top: 22px !important;
        width: 70px !important;
        height: 84px !important;
    }

    .localpdf-epub-to-pdf-badges {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: min(100%, 380px) !important;
    }

    .localpdf-epub-to-pdf-start-actions,
    .localpdf-epub-to-pdf-primary {
        width: 100% !important;
    }
}

.localpdf-epub-to-pdf-wrap[hidden],
.localpdf-epub-to-pdf-wrap [hidden] {
    display: none !important;
}

.localpdf-epub-to-pdf-tool,
.localpdf-epub-to-pdf-process-shell {
    width: 100%;
}

.localpdf-epub-to-pdf-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.localpdf-epub-to-pdf-dropzone {
    position: relative;
    overflow: hidden;
}

.localpdf-epub-to-pdf-dropzone.is-dragover,
.localpdf-epub-to-pdf-workspace-card.is-dragover,
.localpdf-epub-to-pdf-preview-frame.is-dragover {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 4px;
}

.localpdf-epub-to-pdf-start-illustration {
    position: relative;
    width: min(420px, 86vw);
    min-height: 170px;
    margin: 0 auto 18px;
}

.localpdf-epub-to-pdf-start-card {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.16);
}

.localpdf-epub-to-pdf-start-card svg {
    width: 58px;
    height: 68px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    color: #2563eb;
}

.localpdf-epub-to-pdf-start-card-left {
    left: 34px;
    top: 44px;
    width: 88px;
    height: 104px;
    transform: rotate(-8deg);
    opacity: 0.88;
}

.localpdf-epub-to-pdf-start-card-main {
    left: 50%;
    top: 14px;
    width: 150px;
    height: 126px;
    transform: translateX(-50%);
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 24px 65px rgba(37, 99, 235, 0.28);
}

.localpdf-epub-to-pdf-start-card-main span {
    font-size: 28px;
}

.localpdf-epub-to-pdf-start-card-right {
    right: 28px;
    top: 48px;
    width: 96px;
    height: 110px;
    transform: rotate(8deg);
}

.localpdf-epub-to-pdf-start-card-right b {
    position: absolute;
    bottom: 18px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #2563eb;
}

.localpdf-epub-to-pdf-start-arrow {
    position: absolute;
    left: 50%;
    top: 118px;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.15);
}

.localpdf-epub-to-pdf-start-arrow svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.localpdf-epub-to-pdf-start-spark {
    position: absolute;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.28);
}

.localpdf-epub-to-pdf-start-spark-one {
    width: 48px;
    height: 48px;
    top: 8px;
    left: 92px;
}

.localpdf-epub-to-pdf-start-spark-two {
    width: 30px;
    height: 30px;
    right: 96px;
    bottom: 18px;
}

.localpdf-epub-to-pdf-primary,
.localpdf-epub-to-pdf-secondary-button,
.localpdf-epub-to-pdf-light-button,
.localpdf-epub-to-pdf-export {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.localpdf-epub-to-pdf-primary,
.localpdf-epub-to-pdf-export {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    background: var(--localpdf-epub-to-pdf-button);
    color: #fff;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.24);
}

.localpdf-epub-to-pdf-export:disabled {
    cursor: not-allowed;
    opacity: 0.56;
    box-shadow: none;
}

.localpdf-epub-to-pdf-secondary-button,
.localpdf-epub-to-pdf-light-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.14);
}

.localpdf-epub-to-pdf-message {
    margin: 16px auto;
    max-width: 900px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.localpdf-epub-to-pdf-message.is-error {
    background: #fff1f2;
    color: #9f1239;
    border-color: rgba(225, 29, 72, 0.22);
}

.localpdf-epub-to-pdf-message.is-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: rgba(5, 150, 105, 0.2);
}

.localpdf-epub-to-pdf-workspace {
    margin-top: 22px;
}

.localpdf-epub-to-pdf-workspace-toolbar,
.localpdf-epub-to-pdf-process-summary,
.localpdf-epub-to-pdf-workspace-card,
.localpdf-epub-to-pdf-copy-guidance {
    background: var(--localpdf-epub-to-pdf-surface);
    border: 1px solid var(--localpdf-epub-to-pdf-border);
    border-radius: var(--localpdf-epub-to-pdf-radius);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.localpdf-epub-to-pdf-workspace-toolbar {
    padding: 16px;
}

.localpdf-epub-to-pdf-workspace-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.localpdf-epub-to-pdf-toolbar-file-zone,
.localpdf-epub-to-pdf-toolbar-nav-export-zone {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.localpdf-epub-to-pdf-file-chip {
    display: grid;
    gap: 2px;
    padding: 9px 12px;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--localpdf-epub-to-pdf-text);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.localpdf-epub-to-pdf-file-chip strong {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.localpdf-epub-to-pdf-file-chip span {
    font-size: 12px;
    color: var(--localpdf-epub-to-pdf-muted);
}

.localpdf-epub-to-pdf-process-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
}

.localpdf-epub-to-pdf-process-summary span,
.localpdf-epub-to-pdf-copy-guidance span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.localpdf-epub-to-pdf-process-summary strong {
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.localpdf-epub-to-pdf-process-summary em,
.localpdf-epub-to-pdf-copy-guidance em {
    font-size: 12px;
    color: var(--localpdf-epub-to-pdf-muted);
    font-style: normal;
}

.localpdf-epub-to-pdf-workspace-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
    margin-top: 14px;
    padding: 18px;
}

.localpdf-epub-to-pdf-preview-frame {
    min-height: 410px;
    height: 100%;
    border-radius: 22px;
    border: 1px dashed rgba(37, 99, 235, 0.26);
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 34px;
}

.localpdf-epub-to-pdf-book-icon {
    width: 148px;
    height: 176px;
    display: grid;
    place-items: center;
    border-radius: 18px 24px 24px 18px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 28px 60px rgba(37, 99, 235, 0.25);
}

.localpdf-epub-to-pdf-preview-frame h3 {
    margin: 22px 0 8px;
    font-size: clamp(22px, 2vw, 32px);
}

.localpdf-epub-to-pdf-preview-frame p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--localpdf-epub-to-pdf-muted);
}

.localpdf-epub-to-pdf-details-column {
    display: grid;
    gap: 14px;
}

.localpdf-epub-to-pdf-details-card {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.localpdf-epub-to-pdf-details-card > span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    font-weight: 800;
}

.localpdf-epub-to-pdf-details-card strong {
    display: block;
    margin-bottom: 7px;
    font-size: 17px;
}

.localpdf-epub-to-pdf-details-card p {
    margin: 0;
    color: var(--localpdf-epub-to-pdf-muted);
    font-size: 13px;
    line-height: 1.55;
}


.localpdf-epub-to-pdf-parser-breakdown p + p {
    margin-top: 6px;
}

.localpdf-epub-to-pdf-wrap.has-epub-container-ready .localpdf-epub-to-pdf-book-icon {
    box-shadow: 0 30px 70px rgba(37, 99, 235, 0.32);
}

.localpdf-epub-to-pdf-filename-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.localpdf-epub-to-pdf-filename-control input {
    min-width: 0;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    color: #475569;
}

.localpdf-epub-to-pdf-filename-control strong {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1d4ed8;
}

.localpdf-epub-to-pdf-copy-guidance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
}

.localpdf-epub-to-pdf-copy-guidance strong {
    font-size: 14px;
}

.localpdf-epub-to-pdf-wrap.has-valid-epub [data-epub-to-pdf-container-status] {
    color: #047857;
}

.localpdf-epub-to-pdf-wrap.has-blocked-epub [data-epub-to-pdf-container-status],
.localpdf-epub-to-pdf-wrap [data-epub-to-pdf-export-status] {
    color: #9f1239;
}

@media (max-width: 980px) {
    .localpdf-epub-to-pdf-process-summary,
    .localpdf-epub-to-pdf-copy-guidance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .localpdf-epub-to-pdf-workspace-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .localpdf-epub-to-pdf-start-illustration {
        min-height: 145px;
    }

    .localpdf-epub-to-pdf-start-card-main {
        width: 128px;
        height: 108px;
    }

    .localpdf-epub-to-pdf-start-card-main span {
        font-size: 22px;
    }

    .localpdf-epub-to-pdf-start-card-left,
    .localpdf-epub-to-pdf-start-card-right {
        width: 76px;
        height: 92px;
    }

    .localpdf-epub-to-pdf-workspace-actions,
    .localpdf-epub-to-pdf-toolbar-file-zone,
    .localpdf-epub-to-pdf-toolbar-nav-export-zone,
    .localpdf-epub-to-pdf-secondary-button,
    .localpdf-epub-to-pdf-light-button,
    .localpdf-epub-to-pdf-export {
        width: 100%;
    }

    .localpdf-epub-to-pdf-process-summary,
    .localpdf-epub-to-pdf-copy-guidance {
        grid-template-columns: 1fr;
    }

    .localpdf-epub-to-pdf-preview-frame {
        min-height: 320px;
        padding: 24px;
    }
}

/* v2.5.2a59.4-clean — XHTML chapter preview baseline retained in a59.5.
 * The preview is sanitized, scroll-contained, and intentionally separate from
 * the staged PDF export pipeline. Local image resources may be rewritten to
 * browser object URLs; active content and remote resources are blocked.
 */
.localpdf-epub-to-pdf-wrap.has-epub-xhtml-preview-ready [data-epub-to-pdf-parser-status] {
    color: #047857;
}

.localpdf-epub-to-pdf-chapter-preview-shell {
    width: 100%;
    height: 100%;
    max-height: 680px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 18px 48px rgba(15, 23, 42, .08);
    text-align: left;
}

.localpdf-epub-to-pdf-chapter-preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(226, 232, 240, .95);
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}

.localpdf-epub-to-pdf-chapter-preview-toolbar strong {
    min-width: 0;
    max-width: 100%;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.localpdf-epub-to-pdf-chapter-preview-toolbar span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.localpdf-epub-to-pdf-chapter-preview-content {
    width: 100%;
    min-height: 360px;
    max-height: 604px;
    overflow: auto;
    padding: clamp(22px, 4vw, 42px);
    color: #111827;
    background: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.72;
}

.localpdf-epub-to-pdf-chapter-preview-content :where(h1, h2, h3, h4) {
    margin: 0 0 .85em;
    color: #0f172a;
    font-family: inherit;
    font-weight: 800;
    line-height: 1.22;
}

.localpdf-epub-to-pdf-chapter-preview-content :where(p, ul, ol, blockquote, figure) {
    margin: 0 0 1em;
}

.localpdf-epub-to-pdf-chapter-preview-content :where(img, svg) {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px auto;
    border-radius: 12px;
}

.localpdf-epub-to-pdf-chapter-preview-content a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.localpdf-epub-to-pdf-chapter-preview-content .is-epub-preview-resource-missing,
.localpdf-epub-to-pdf-chapter-preview-content .is-epub-preview-resource-blocked,
.localpdf-epub-to-pdf-chapter-preview-content .is-epub-preview-resource-staged {
    min-height: 56px;
    border: 1px dashed rgba(148, 163, 184, .65);
    background: #f8fafc;
}

.localpdf-epub-to-pdf-xhtml-preview-card strong {
    color: #047857;
}

.localpdf-epub-to-pdf-wrap.has-epub-xhtml-preview-blocked .localpdf-epub-to-pdf-xhtml-preview-card strong {
    color: #9f1239;
}

@media (max-width: 640px) {
    .localpdf-epub-to-pdf-chapter-preview-content {
        max-height: 500px;
        padding: 20px;
        font-size: 15px;
    }

    .localpdf-epub-to-pdf-chapter-preview-toolbar strong {
        white-space: normal;
    }
}


/* v2.5.2a59.5-clean — Resource rewrite + chapter controls. */
.localpdf-epub-to-pdf-chapter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(100%, 420px);
}

.localpdf-epub-to-pdf-chapter-select {
    min-width: 190px;
    max-width: 300px;
    height: 42px;
    padding: 0 36px 0 12px;
    border: 1px solid rgba(148, 163, 184, .38);
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.localpdf-epub-to-pdf-chapter-select:disabled,
.localpdf-epub-to-pdf-chapter-nav:disabled {
    cursor: not-allowed;
    opacity: .56;
}

.localpdf-epub-to-pdf-chapter-preview-title-wrap {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.localpdf-epub-to-pdf-chapter-preview-toolbar em {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .09);
    color: #1d4ed8;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .02em;
}

.localpdf-epub-to-pdf-resource-rewrite-card strong,
.localpdf-epub-to-pdf-wrap.has-epub-resource-rewrite-ready .localpdf-epub-to-pdf-resource-rewrite-card strong {
    color: #047857;
}

.localpdf-epub-to-pdf-wrap.has-epub-xhtml-preview-blocked .localpdf-epub-to-pdf-resource-rewrite-card strong {
    color: #9f1239;
}

.localpdf-epub-to-pdf-chapter-preview-content style[data-epub-preview-inline-css] {
    display: none !important;
}

@media (max-width: 760px) {
    .localpdf-epub-to-pdf-chapter-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    .localpdf-epub-to-pdf-chapter-select {
        flex: 1 1 100%;
        max-width: none;
        width: 100%;
        order: -1;
    }

    .localpdf-epub-to-pdf-chapter-nav {
        flex: 1 1 calc(50% - 6px);
    }
}


/* v2.5.2a59.7-clean — Pagination + PDF export pipeline. */
.localpdf-epub-to-pdf-wrap.has-epub-pagination-pdf-export .localpdf-epub-to-pdf-export:not(:disabled) {
    cursor: pointer;
}
.localpdf-epub-to-pdf-wrap[data-epub-pdf-export-status="running"] .localpdf-epub-to-pdf-export,
.localpdf-epub-to-pdf-wrap[data-localpdf-export-state="exporting"] .localpdf-epub-to-pdf-export {
    opacity: .72;
    cursor: progress;
}
.localpdf-epub-to-pdf-pagination-export-card strong {
    color: #172554;
}
.localpdf-epub-to-pdf-wrap.has-epub-pdf-export-ready .localpdf-epub-to-pdf-pagination-export-card strong {
    color: #166534;
}
.localpdf-epub-to-pdf-wrap[data-epub-pdf-export-status="blocked"] .localpdf-epub-to-pdf-pagination-export-card strong {
    color: #991b1b;
}
.localpdf-epub-to-pdf-wrap.has-epub-pdf-export-ready .localpdf-epub-to-pdf-export {
    box-shadow: 0 16px 34px rgba(37, 99, 235, .28);
}


/* v2.5.2a59.7-clean — Export Polish + QA states. */
.localpdf-epub-to-pdf-wrap.has-epub-export-polish-ready [data-epub-to-pdf-export-status],
.localpdf-epub-to-pdf-wrap.has-epub-export-validated [data-epub-to-pdf-pagination-status] {
    color: #166534;
}
.localpdf-epub-to-pdf-wrap.has-epub-export-polish-ready .localpdf-epub-to-pdf-pagination-export-card {
    border-color: rgba(22, 163, 74, 0.28);
    box-shadow: 0 18px 44px rgba(22, 163, 74, 0.12);
}
.localpdf-epub-to-pdf-wrap.is-flow-export .localpdf-epub-to-pdf-pagination-export-card {
    border-color: rgba(37, 99, 235, 0.32);
}


/* v2.5.2a59.8-clean — EPUB Release Prep markers. */
.localpdf-epub-to-pdf-wrap.has-epub-release-prep[data-epub-release-prep-status="ready"] [data-epub-to-pdf-pagination-status] {
    letter-spacing: -0.01em;
}
.localpdf-epub-to-pdf-wrap.has-epub-release-prepped[data-epub-accepted-baseline-status="ready"] [data-epub-to-pdf-export-meta] {
    overflow-wrap: anywhere;
}
