/* ============================================
   Tutorial System v1.0
   Step-by-step practical work navigation
   ============================================ */

:root {
    --tut-bg: #0a0a0f;
    --tut-surface: rgba(255, 255, 255, 0.04);
    --tut-surface-hover: rgba(255, 255, 255, 0.08);
    --tut-border: rgba(255, 255, 255, 0.08);
    --tut-border-hover: rgba(255, 255, 255, 0.15);
    --tut-text: #f0f0f0;
    --tut-text-muted: #9ca3af;
    --tut-text-dim: #6b7280;
    --tut-accent: #10b981;
    --tut-accent-light: rgba(16, 185, 129, 0.1);
    --tut-accent-glow: rgba(16, 185, 129, 0.4);
    --tut-info: #3b82f6;
    --tut-warning: #f59e0b;
    --tut-success: #10b981;
    --tut-danger: #ef4444;
    --tut-tip: #a855f7;
    --tut-header-h: 3.5rem;
    --tut-footer-h: 3.5rem;
    --tut-radius: 0.75rem;
    --tut-radius-lg: 1rem;
    --tut-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --tut-duration: 0.35s;
    --tut-max-w: 760px;
    --tut-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--tut-font);
    background: var(--tut-bg);
    color: var(--tut-text);
    line-height: 1.65;
    font-size: 1rem;
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 15%, rgba(16, 185, 129, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 85%, rgba(59, 130, 246, 0.03) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--tut-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }
code { font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace; font-size: 0.9em; background: rgba(255,255,255,0.06); padding: 0.15em 0.4em; border-radius: 4px; }

/* --- Header --- */
.tut-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--tut-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tut-border);
    z-index: 100;
}

.tut-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.tut-logo {
    height: 1.6rem;
    width: auto;
    opacity: 0.9;
}

.tut-back {
    font-size: 0.8rem;
    color: var(--tut-text-muted);
    white-space: nowrap;
    transition: color 0.2s;
}
.tut-back:hover { color: var(--tut-accent); text-decoration: none; }

.tut-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tut-icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tut-surface);
    border: 1px solid var(--tut-border);
    border-radius: 0.5rem;
    color: var(--tut-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.tut-icon-btn:hover {
    background: var(--tut-surface-hover);
    border-color: var(--tut-border-hover);
    color: var(--tut-text);
}
.tut-icon-btn svg { width: 1rem; height: 1rem; }

/* --- Progress Bar --- */
.tut-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--tut-accent);
    transition: width var(--tut-duration) var(--tut-ease);
    z-index: 101;
    box-shadow: 0 0 12px var(--tut-accent-glow);
}

/* --- Stepper --- */
.tut-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.stepper-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--tut-ease);
    padding: 0;
    position: relative;
}
.stepper-dot:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.3);
}
.stepper-dot.active {
    background: var(--tut-accent);
    box-shadow: 0 0 12px var(--tut-accent-glow);
    transform: scale(1.4);
}
.stepper-dot.completed {
    background: var(--tut-accent);
    opacity: 0.5;
}

.stepper-line {
    width: 1rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    transition: background 0.3s;
}
.stepper-line.completed { background: rgba(16, 185, 129, 0.3); }

/* Stepper tooltip */
.stepper-dot[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--tut-text);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    border: 1px solid var(--tut-border);
}

/* --- Main Area --- */
.tut-main {
    position: fixed;
    top: var(--tut-header-h);
    bottom: var(--tut-footer-h);
    left: 0; right: 0;
    z-index: 1;
}

/* --- Steps --- */
.tutorial-step {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
    transition: opacity var(--tut-duration) var(--tut-ease), transform var(--tut-duration) var(--tut-ease);
}
.tutorial-step.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.tutorial-step.enter-right { transform: translateX(12%); opacity: 0; }
.tutorial-step.enter-left  { transform: translateX(-12%); opacity: 0; }
.tutorial-step.exit-right  { transform: translateX(12%); opacity: 0; }
.tutorial-step.exit-left   { transform: translateX(-12%); opacity: 0; }

.step-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
.step-scroll::-webkit-scrollbar { width: 5px; }
.step-scroll::-webkit-scrollbar-track { background: transparent; }
.step-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
.step-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.step-content {
    max-width: var(--tut-max-w);
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem;
}

/* --- Step Header (exercise badge + time) --- */
.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.step-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.9rem;
    background: var(--tut-accent-light);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tut-accent);
    letter-spacing: 0.02em;
}
.step-badge.overview { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.25); color: #a855f7; }
.step-badge.summary { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.25); color: #3b82f6; }

.step-time {
    font-size: 0.8rem;
    color: var(--tut-text-dim);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.step-time svg { width: 0.9rem; height: 0.9rem; opacity: 0.6; }

/* --- Typography --- */
.step-content h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--tut-text) 0%, var(--tut-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    color: var(--tut-text);
}

.step-subtitle {
    font-size: 1.05rem;
    color: var(--tut-text-muted);
    margin-bottom: 1.5rem;
}

.step-content p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.step-content ul, .step-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.step-content li { margin-bottom: 0.4rem; }
.step-content li ul, .step-content li ol { margin-top: 0.3rem; margin-bottom: 0.3rem; }

.step-content blockquote {
    border-left: 3px solid var(--tut-accent);
    padding: 0.75rem 1.25rem;
    margin: 1rem 0;
    background: var(--tut-surface);
    border-radius: 0 var(--tut-radius) var(--tut-radius) 0;
    color: var(--tut-text-muted);
    font-style: italic;
}

/* --- Meta Row (overview step) --- */
.meta-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.meta-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--tut-surface);
    border: 1px solid var(--tut-border);
    border-radius: 2rem;
    font-size: 0.85rem;
    color: var(--tut-text-muted);
}
.meta-pill svg { width: 1rem; height: 1rem; opacity: 0.6; }

/* --- Meta Grid (alt overview layout) --- */
.meta-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.meta-card {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--tut-surface);
    border: 1px solid var(--tut-border);
    border-radius: var(--tut-radius);
    text-align: center;
}
.meta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tut-text-dim);
    margin-bottom: 0.25rem;
}
.meta-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tut-text);
}

/* --- Callouts --- */
.callout {
    padding: 1rem 1.25rem;
    border-radius: 0;
    border-left: 3px solid var(--tut-border);
    background: var(--tut-surface);
    margin: 1.25rem 0;
}
.callout p { margin-bottom: 0.4rem; font-size: 0.9rem; }
.callout p:last-child { margin-bottom: 0; }
.callout ul, .callout ol { margin-bottom: 0.4rem; font-size: 0.9rem; }

.callout.info    { border-color: var(--tut-info); background: rgba(59, 130, 246, 0.06); }
.callout.tip     { border-color: var(--tut-tip); background: rgba(168, 85, 247, 0.06); }
.callout.warning { border-color: var(--tut-warning); background: rgba(245, 158, 11, 0.06); }
.callout.success { border-color: var(--tut-success); background: rgba(16, 185, 129, 0.06); }

/* --- Checkpoint --- */
.checkpoint {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0;
    background: var(--tut-accent-light);
    border-left: 3px solid var(--tut-accent);
    margin-top: 1.5rem;
}
.checkpoint-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--tut-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.checkpoint-icon svg { width: 1rem; height: 1rem; color: white; stroke: white; }
.checkpoint p { margin: 0; font-size: 0.9rem; }

/* --- Code Blocks --- */
.code-wrapper {
    position: relative;
    margin: 1.25rem 0;
    border-radius: var(--tut-radius);
    overflow: hidden;
    border: 1px solid var(--tut-border);
}
.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--tut-border);
    font-size: 0.75rem;
}
.code-lang { color: var(--tut-text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

pre {
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--tut-radius);
    border: 1px solid var(--tut-border);
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}
.code-wrapper pre {
    margin: 0;
    border: none;
    border-radius: 0;
}
pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.copy-btn {
    padding: 0.2rem 0.6rem;
    background: var(--tut-surface);
    border: 1px solid var(--tut-border);
    border-radius: 4px;
    color: var(--tut-text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}
.copy-btn:hover { background: var(--tut-surface-hover); color: var(--tut-text); }
.copy-btn.copied { background: rgba(16, 185, 129, 0.15); border-color: var(--tut-accent); color: var(--tut-accent); }

/* --- Tables --- */
.step-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}
.step-content th, .step-content td {
    padding: 0.65rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--tut-border);
}
.step-content th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tut-text-muted);
    background: var(--tut-surface);
}
.step-content tr:hover td { background: var(--tut-surface); }

/* --- Checklist --- */
.checklist { margin: 1rem 0; }
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: var(--tut-accent);
    cursor: pointer;
    flex-shrink: 0;
}
.checklist-item label { cursor: pointer; line-height: 1.5; }

/* --- Bonus Challenges --- */
.bonus-challenges { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
.challenge {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--tut-surface);
    border: 1px solid var(--tut-border);
    border-radius: var(--tut-radius);
}
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.badge-intermediate { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.badge-advanced { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* --- Footer --- */
.tut-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--tut-footer-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--tut-border);
    z-index: 100;
}

.tut-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: var(--tut-surface);
    border: 1px solid var(--tut-border);
    border-radius: 0.5rem;
    color: var(--tut-text);
    font-size: 0.85rem;
    font-family: var(--tut-font);
    cursor: pointer;
    transition: all 0.2s;
    min-width: 7rem;
    justify-content: center;
}
.tut-nav-btn:hover:not(:disabled) {
    background: var(--tut-surface-hover);
    border-color: var(--tut-border-hover);
}
.tut-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.tut-nav-btn.primary {
    background: var(--tut-accent);
    border-color: var(--tut-accent);
    color: white;
    font-weight: 600;
}
.tut-nav-btn.primary:hover:not(:disabled) {
    background: #0ea572;
    box-shadow: 0 0 20px var(--tut-accent-glow);
}

.tut-counter {
    font-size: 0.85rem;
    color: var(--tut-text-muted);
    font-variant-numeric: tabular-nums;
}

/* --- Sorter Overlay --- */
.tut-sorter {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.95);
    backdrop-filter: blur(30px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--tut-ease);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}
.tut-sorter.open {
    opacity: 1;
    pointer-events: auto;
}

.tut-sorter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}
.tut-sorter-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}
.tut-sorter-close {
    padding: 0.4rem 1rem;
    background: var(--tut-surface);
    border: 1px solid var(--tut-border);
    border-radius: 0.5rem;
    color: var(--tut-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--tut-font);
    transition: all 0.2s;
}
.tut-sorter-close:hover { background: var(--tut-surface-hover); color: var(--tut-text); }

.tut-sorter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    overflow-y: auto;
    flex: 1;
}

.sorter-card {
    padding: 1.25rem;
    background: var(--tut-surface);
    border: 1px solid var(--tut-border);
    border-radius: var(--tut-radius-lg);
    cursor: pointer;
    transition: all 0.25s var(--tut-ease);
}
.sorter-card:hover {
    background: var(--tut-surface-hover);
    border-color: var(--tut-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.sorter-card.active {
    border-color: var(--tut-accent);
    box-shadow: 0 0 0 1px var(--tut-accent), 0 0 20px var(--tut-accent-glow);
}
.sorter-card-num {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tut-text-dim);
    margin-bottom: 0.4rem;
}
.sorter-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tut-text);
    margin-bottom: 0.3rem;
}
.sorter-card-time {
    font-size: 0.75rem;
    color: var(--tut-text-dim);
}

/* --- Light Theme --- */
body.light-theme {
    --tut-bg: #f8f9fb;
    --tut-surface: rgba(0, 0, 0, 0.03);
    --tut-surface-hover: rgba(0, 0, 0, 0.06);
    --tut-border: rgba(0, 0, 0, 0.08);
    --tut-border-hover: rgba(0, 0, 0, 0.15);
    --tut-text: #1a1a2e;
    --tut-text-muted: #6b7280;
    --tut-text-dim: #9ca3af;
}
body.light-theme { background: var(--tut-bg); }
body.light-theme::before {
    background:
        radial-gradient(ellipse at 25% 15%, rgba(16, 185, 129, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 85%, rgba(59, 130, 246, 0.04) 0%, transparent 55%);
}
body.light-theme .tut-header,
body.light-theme .tut-footer { background: rgba(248, 249, 251, 0.9); }
body.light-theme pre { background: #f8f8fa; color: #383a42; border-color: rgba(0, 0, 0, 0.12); }
body.light-theme .code-wrapper { border-color: rgba(0, 0, 0, 0.12); }
body.light-theme .code-header { background: rgba(0, 0, 0, 0.04); border-bottom-color: rgba(0, 0, 0, 0.1); }
body.light-theme .code-lang { color: #6b7280; }
body.light-theme .tut-sorter { background: rgba(248, 249, 251, 0.97); }
body.light-theme code { background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.15); color: #6d28d9; }
body.light-theme pre code { background: none; border: none; color: inherit; }
body.light-theme .tut-nav-btn.primary { color: white; }

/* Light theme - darken colors for contrast on white */
body.light-theme {
    --tut-accent: #059669;
    --tut-accent-light: rgba(5, 150, 105, 0.1);
    --tut-accent-glow: rgba(5, 150, 105, 0.3);
    --tut-info: #2563eb;
    --tut-warning: #d97706;
    --tut-success: #059669;
    --tut-tip: #9333ea;
}
body.light-theme .step-badge.overview { color: #7c3aed; }
body.light-theme .step-badge.summary { color: #1d4ed8; }
body.light-theme .badge-intermediate { color: #7c3aed; }
body.light-theme .badge-advanced { color: #d97706; }

/* --- Theme Toggle --- */
.tut-theme-toggle svg { display: none; }
body:not(.light-theme) .tut-theme-toggle .sun-icon { display: block; }
body.light-theme .tut-theme-toggle .moon-icon { display: block; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.step-content > * {
    animation: fadeInUp 0.4s var(--tut-ease) both;
}
.step-content > *:nth-child(1) { animation-delay: 0.05s; }
.step-content > *:nth-child(2) { animation-delay: 0.1s; }
.step-content > *:nth-child(3) { animation-delay: 0.15s; }
.step-content > *:nth-child(4) { animation-delay: 0.2s; }
.step-content > *:nth-child(5) { animation-delay: 0.25s; }
.step-content > *:nth-child(n+6) { animation-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .tut-header { padding: 0 0.75rem; }
    .tut-footer { padding: 0 0.75rem; }
    .tut-back { display: none; }
    .step-content { padding: 1.5rem 1.25rem 2.5rem; }
    .step-content h1 { font-size: 1.5rem; }
    .step-content h2 { font-size: 1.3rem; }
    .meta-row, .meta-grid { flex-wrap: wrap; gap: 0.5rem; }
    .meta-pill, .meta-card { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
    .tut-nav-btn { min-width: 5rem; padding: 0.5rem 0.75rem; font-size: 0.8rem; }
    .tut-nav-btn .btn-label { display: none; }
    .stepper-line { width: 0.5rem; }
    .tut-sorter-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 480px) {
    .stepper-line { width: 0.35rem; }
    .stepper-dot { width: 0.5rem; height: 0.5rem; }
    .step-content { padding: 1.25rem 1rem 2rem; }
}

/* --- Print --- */
@media print {
    .tut-header, .tut-footer, .tut-progress, .tut-sorter,
    .tut-icon-btn, .copy-btn { display: none !important; }
    body { overflow: visible; height: auto; }
    .tut-main { position: static; }
    .tutorial-step { position: static; opacity: 1; pointer-events: auto; display: block; page-break-after: always; }
    .step-scroll { overflow: visible; height: auto; }
    .step-content { max-width: 100%; padding: 1rem; }
}
