:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #2dd4bf;
    --secondary: #6366f1;
    --accent: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #0c1222;
    --bg-darker: #070b14;
    --text-primary: #f8fafc;
    --text-secondary: rgba(248, 250, 252, 0.72);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
    --gradient-primary: linear-gradient(135deg, #0d9488 0%, #6366f1 55%, #2dd4bf 100%);
    --gradient-card: linear-gradient(135deg, rgba(13, 148, 136, 0.12) 0%, rgba(99, 102, 241, 0.06) 100%);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-primary);
    font-family: "Outfit", "Segoe UI", sans-serif;
    background: var(--bg-dark);
}

.bg-animation {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 10%, rgba(13, 148, 136, 0.18), transparent 45%),
        radial-gradient(ellipse at 85% 80%, rgba(99, 102, 241, 0.15), transparent 50%),
        linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    animation: float 22s infinite ease-in-out;
}

.shape-1 { width: 320px; height: 320px; background: var(--primary); top: -8%; left: -5%; }
.shape-2 { width: 260px; height: 260px; background: var(--secondary); bottom: 10%; right: -3%; animation-delay: -7s; }
.shape-3 { width: 200px; height: 200px; background: var(--primary-light); top: 40%; left: 55%; animation-delay: -12s; }

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -24px) scale(1.05); }
}

.app-shell {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 16px 48px;
}

.card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.card-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 20px;
    margin-bottom: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.saved-manuals-panel {
    padding: 16px 18px;
    margin-bottom: 14px;
}

.saved-manuals-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.saved-manuals-head h2 {
    margin: 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.saved-manuals-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.saved-manuals-list:empty::after {
    content: "Aún no hay manuales guardados.";
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 8px 0;
}

.saved-manual-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.saved-manual-item.active {
    border-color: var(--primary-light);
    background: rgba(13, 148, 136, 0.15);
}

.saved-manual-item .meta {
    flex: 1;
    min-width: 160px;
}

.saved-manual-item .meta strong {
    display: block;
    font-size: 0.92rem;
}

.saved-manual-item .meta span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.saved-manual-actions {
    display: flex;
    gap: 6px;
}

.saved-id-label {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--primary-light);
    min-height: 1.2em;
}

.preview-toolbar {
    gap: 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.2);
    color: var(--primary-light);
    margin-bottom: 8px;
}

.hero-title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 800;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    margin: 8px 0 0;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
    filter: grayscale(0.4);
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

#btn-new-manual-top:disabled,
#btn-new-manual:disabled {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-portal {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }

.btn-file { position: relative; }
.btn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.wizard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    margin-bottom: 14px;
}

.wizard-tab {
    flex: 1;
    min-width: 120px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.wizard-tab span {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 6px;
    font-size: 0.8rem;
}

.wizard-tab.active {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(13, 148, 136, 0.2);
}

.wizard-panel {
    display: none;
    padding: 22px;
    margin-bottom: 14px;
}

.wizard-panel.active { display: block; }

.wizard-panel h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-text, .note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.note { margin-top: 8px; font-size: 0.82rem; }
.note .small, .capture-zone .small { font-size: 0.78rem; opacity: 0.85; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.field.full { grid-column: 1 / -1; }

label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

input[type="text"],
input[type="url"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

textarea { resize: vertical; min-height: 120px; }

.source-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.source-tab {
    flex: 1;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 10px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.source-tab.active {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(13, 148, 136, 0.15);
}

.source-panel { display: none; }
.source-panel.active { display: block; }

.toolbar-end, .toolbar-split, .platform-actions, .preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

.toolbar-split, .preview-toolbar { justify-content: space-between; }

.capture-zone {
    margin-top: 14px;
    border: 2px dashed rgba(45, 212, 191, 0.4);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.capture-zone:focus,
.capture-zone.dragover {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(13, 148, 136, 0.08);
}

.capture-zone i { font-size: 2rem; color: var(--primary-light); margin-bottom: 8px; }

.photos-summary-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.25);
    font-size: 0.9rem;
    color: var(--primary-light);
}

.photos-summary-bar.has-photos {
    background: rgba(13, 148, 136, 0.22);
}

.upload-quick-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.upload-quick-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.captures-gallery-global {
    margin-top: 12px;
    min-height: 8px;
}

.captures-gallery-global:empty {
    display: none;
}

#status-upload {
    margin-top: 8px;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

.capture-text-preview {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 6px 0 0;
    line-height: 1.35;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

.sec-linked-photo {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.35);
}

.sec-linked-head {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-light, #5eead4);
}

.sec-linked-thumb {
    max-width: 100%;
    width: 280px;
    max-height: 180px;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sec-linked-thumb img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.sec-linked-text {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0;
}

.capture-zone-photos {
    margin-top: 12px;
}

.captures-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.captures-gallery-rich {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.capture-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
}

.capture-card .capture-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 120px;
    max-height: 200px;
    background: #0f172a;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.capture-card .capture-thumb img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.capture-card .capture-thumb img.img-error {
    object-fit: contain;
    background: #1e293b;
    padding: 8px;
}

.capture-card .capture-order {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(13, 148, 136, 0.9);
    color: #fff;
}

.capture-thumb .btn-remove-cap {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
}

.capture-card .capture-meta {
    padding: 8px 10px 10px;
}

.capture-card label {
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.capture-card input.capture-caption {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.82rem;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.capture-card .capture-assigned {
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--primary-light);
    min-height: 1em;
}

.capture-card.assigned .capture-assigned {
    color: #a7f3d0;
}

.editor-sections { margin-top: 20px; }
.editor-sections.hidden { display: none; }

.section-editor {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.15);
}

.section-editor h4 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-editor .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.section-editor .row.full { grid-template-columns: 1fr; }

.section-editor .sec-image-block {
    margin-top: 8px;
}

.section-editor .caption-label {
    display: block;
    margin-top: 10px;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.image-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    max-height: 220px;
    overflow-y: auto;
}

.image-pick-opt {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    font-family: inherit;
    color: var(--text-primary);
}

.image-pick-opt:hover {
    border-color: rgba(45, 212, 191, 0.5);
    transform: translateY(-2px);
}

.image-pick-opt.selected {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.35), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.image-pick-opt.pick-error {
    border-color: var(--danger);
}

.image-pick-opt .pick-img-wrap {
    height: 72px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    overflow: hidden;
}

.image-pick-opt img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.image-pick-opt .pick-auto {
    height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.25), rgba(99, 102, 241, 0.2));
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
}

.image-pick-opt .pick-auto i {
    font-size: 1.25rem;
}

.image-pick-opt .pick-label {
    display: block;
    padding: 5px 6px;
    font-size: 0.68rem;
    line-height: 1.25;
    text-align: center;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.35);
    max-height: 2.6em;
    overflow: hidden;
}

.image-pick-opt.selected .pick-label {
    color: var(--primary-light);
    font-weight: 600;
}

.image-picker-large {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #0f172a;
    min-height: 100px;
    max-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-picker-large img.sec-image-preview {
    width: 100%;
    max-width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.image-picker-large--auto {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    text-align: center;
}

.image-picker-large--auto i {
    color: var(--primary-light);
    margin-right: 6px;
}

.status {
    min-height: 1.2em;
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--primary-light);
}

.status.error { color: #fca5a5; }

.preview-wrap {
    margin-top: 12px;
    padding: 16px;
    background: #e2e8f0;
    border-radius: 14px;
    overflow: auto;
}

/* Documento del manual (vista previa / PDF) */
.manual-document {
    max-width: 210mm;
    margin: 0 auto;
    background: #fff;
    color: #0f172a;
    font-family: "Source Serif 4", Georgia, serif;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
}

.manual-document.empty {
    padding: 48px;
    text-align: center;
    color: #64748b;
}

.md-cover {
    padding: 48px 40px 40px;
    background: linear-gradient(145deg, #0f766e 0%, #134e4a 40%, #1e3a5f 100%);
    color: #fff;
    min-height: 280px;
}

.md-cover .brand {
    font-family: "Outfit", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 20px;
}

.md-cover h1 {
    font-family: "Outfit", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
}

.md-cover .sub {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 16px;
}

.md-cover .summary {
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 90%;
    opacity: 0.92;
}

.md-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 40px;
    background: #f1f5f9;
    font-family: "Outfit", sans-serif;
    font-size: 0.78rem;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.md-toc {
    padding: 28px 40px;
    border-bottom: 1px solid #e2e8f0;
}

.md-toc h2 {
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f766e;
    margin: 0 0 12px;
}

.md-toc ol {
    margin: 0;
    padding-left: 1.2rem;
    line-height: 1.8;
    color: #334155;
}

.md-section {
    padding: 28px 40px 32px;
    page-break-inside: avoid;
}

.md-section + .md-section {
    border-top: 1px solid #f1f5f9;
}

.md-section h2 {
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
    color: #0f766e;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.md-section .badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    background: #ccfbf1;
    color: #0f766e;
    font-weight: 700;
}

.md-section .body {
    line-height: 1.65;
    font-size: 0.98rem;
    color: #334155;
}

.md-section .body p { margin: 0 0 12px; }

.md-steps {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.md-steps li {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #0d9488;
}

.md-steps .num {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    color: #0d9488;
    min-width: 24px;
}

.md-figure {
    margin: 18px 0 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.md-figure img {
    width: 100%;
    display: block;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
    background: #f1f5f9;
}

.md-figure figcaption {
    padding: 10px 14px;
    font-family: "Outfit", sans-serif;
    font-size: 0.82rem;
    color: #64748b;
    background: #f8fafc;
}

.md-tip, .md-warning {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: "Outfit", sans-serif;
    font-size: 0.9rem;
}

.md-tip {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.md-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.md-footer-page {
    padding: 20px 40px 36px;
    text-align: center;
    font-family: "Outfit", sans-serif;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; }
    .section-editor .row { grid-template-columns: 1fr; }
    .md-cover, .md-section, .md-toc { padding-left: 22px; padding-right: 22px; }
}

@media print {
    body,
    body.md-printing {
        background: #fff !important;
        color: #0f172a;
    }

    .bg-animation,
    .wizard-nav,
    .preview-toolbar,
    .card-hero,
    .status,
    .photos-summary-bar,
    .wizard-panel:not([data-panel="4"]) {
        display: none !important;
    }

    .app-shell {
        max-width: none;
        padding: 0;
    }

    .wizard-panel[data-panel="4"] {
        display: block !important;
        border: none !important;
        box-shadow: none !important;
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .preview-wrap {
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
        overflow: visible !important;
    }

    .manual-document {
        box-shadow: none !important;
        max-width: 100% !important;
    }

    .md-section,
    .md-cover,
    .md-toc,
    .md-figure {
        page-break-inside: avoid;
    }

    .md-figure img {
        max-height: none !important;
    }
}
