:root {
  --ink: #13202b;
  --navy: #173c59;
  --muted: #647680;
  --paper: #fbfcfc;
  --line: #dce5e8;
  --orange: #ef6c12;
  --orange-deep: #c94d0b;
  --orange-soft: #fff0e5;
  --blue-soft: #eaf3f7;
  --green: #6eae88;
  --stage-scale: 1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #e9eef1;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { overflow: hidden; background: linear-gradient(135deg, #f7f9fa, #e6edf0); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(239,108,18,.45); outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.app-shell { height: 100dvh; display: grid; grid-template-rows: 76px minmax(0, 1fr) 34px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); z-index: 2; }
.brand-lockup, .topbar-actions, .hero-meta, .hero-actions, .content-heading, .lesson-kicker, .screen-nav, .builder-header, .preview-top, .sources-header, .rail-heading, .continue-top, .dashboard-footer-note, .commitment-top { display: flex; align-items: center; }
.brand-lockup { gap: 13px; }
.brand-logo { width: 82px; height: auto; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; border-left: 1px solid var(--line); padding-left: 13px; }
.brand-copy strong { font-size: 17px; letter-spacing: -.02em; }
.eyebrow, .kicker, .mini-label, .rail-label, .case-label { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; color: var(--muted); }
.topbar-actions { gap: 12px; }
.audio-toggle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.audio-toggle .audio-symbol { font-size: 14px; line-height: 1; }
.audio-toggle.is-playing { color: var(--orange-deep); background: var(--orange-soft); }
.audio-toggle:disabled { cursor: not-allowed; opacity: .55; }
.top-progress { display: flex; align-items: center; gap: 10px; min-width: 134px; }
.top-progress > span { font-size: 14px; font-weight: 850; }
.progress-track, .rail-progress-track { height: 6px; background: #e4eaed; border-radius: 999px; overflow: hidden; flex: 1; }
.progress-track { width: 74px; }
.course-rail .rail-progress-track, .lesson-rail .rail-progress-track { flex: 0 0 auto; }
.progress-track span, .rail-progress-track span { height: 100%; display: block; width: 0; background: var(--orange); border-radius: inherit; transition: width .35s ease; }
.small-button { padding: 9px 12px !important; font-size: 11px; }
.fullscreen-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.fullscreen-button > span:first-child { font-size: 16px; line-height: 1; }
.fullscreen-button.is-active { background: var(--orange-soft); color: var(--orange-deep); }
.app-shell:fullscreen { background: #e9eef1; }
.app-shell:fullscreen .stage-shell { padding: 18px 24px; }

.stage-shell { position: relative; display: grid; place-items: center; min-height: 0; padding: 14px 20px; }
.stage { width: 1280px; height: 720px; zoom: var(--stage-scale); background: var(--paper); border: 1px solid rgba(19,32,43,.09); border-radius: 18px; box-shadow: 0 24px 60px rgba(35,61,75,.14); overflow: hidden; }
.screen { display: none; width: 100%; height: 100%; background: var(--paper); }
.screen.active { display: block; }
.bottombar { display: flex; align-items: center; justify-content: center; gap: 12px; color: #75838c; font-size: 10px; letter-spacing: .04em; }
.footer-divider { width: 4px; height: 4px; background: var(--orange); border-radius: 50%; }

.fullscreen-welcome { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow: hidden; padding: 24px; background: linear-gradient(120deg, rgba(10,25,37,.88), rgba(19,52,73,.74)), url("assets/img/hero-estudia-con-ia.webp") center / cover; backdrop-filter: blur(12px) saturate(120%); }
.fullscreen-welcome.is-hidden { display: none; }
.welcome-card { position: relative; z-index: 1; width: min(650px, 100%); padding: 38px 42px 30px; border: 1px solid rgba(255,255,255,.33); border-radius: 24px; color: #fff; background: linear-gradient(145deg, rgba(22,45,61,.84), rgba(16,35,49,.67)); box-shadow: 0 28px 80px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(18px); }
.welcome-mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px; border: 1px solid rgba(255,190,145,.55); border-radius: 19px; color: #ffad76; background: rgba(239,108,18,.18); box-shadow: 0 0 0 10px rgba(239,108,18,.07); }
.welcome-mark span { font-size: 31px; line-height: 1; }
.welcome-eyebrow { margin: 0 0 12px; color: #ffbf91; font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.welcome-card h2 { max-width: 525px; margin: 0 0 14px; color: #fff; font-size: 40px; line-height: 1.05; letter-spacing: -.045em; }
.welcome-card > p:not(.welcome-eyebrow):not(.welcome-note) { max-width: 540px; margin-bottom: 22px; color: rgba(231,241,245,.82); font-size: 15px; line-height: 1.55; }
.welcome-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 27px; }
.welcome-benefits span { display: grid; gap: 7px; min-height: 70px; padding: 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: rgba(231,241,245,.78); background: rgba(255,255,255,.07); font-size: 10px; line-height: 1.3; }
.welcome-benefits b { color: #ffad76; font-size: 17px; }
.welcome-actions { display: flex; align-items: center; gap: 20px; }
.welcome-continue { border: 1px solid rgba(255,255,255,.27); color: #fff; background: rgba(255,255,255,.08); font-size: 12px; }
.welcome-continue:hover { color: #fff; border-color: rgba(255,190,145,.65); background: rgba(255,255,255,.14); }
.welcome-note { margin: 23px 0 0; color: rgba(231,241,245,.57); font-size: 10px; }
.welcome-orbit { position: absolute; border: 1px solid rgba(255,190,145,.2); border-radius: 50%; pointer-events: none; }
.welcome-orbit-one { width: 610px; height: 280px; transform: rotate(-18deg); }
.welcome-orbit-two { width: 900px; height: 430px; transform: rotate(28deg); border-color: rgba(160,207,225,.18); }

.depth-dialog { width: min(680px, calc(100% - 28px)); max-width: 680px; max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: transparent; box-shadow: 0 28px 80px rgba(16,37,50,.28); }
.depth-dialog::backdrop { background: rgba(9,25,36,.58); backdrop-filter: blur(7px) saturate(115%); }
.depth-dialog-card { max-height: calc(100dvh - 28px); overflow: auto; border: 1px solid rgba(19,32,43,.12); border-radius: 20px; background: #fff; }
.depth-dialog-head { display: grid; grid-template-columns: 76px 1fr auto; gap: 17px; align-items: center; padding: 24px 26px 21px; background: linear-gradient(135deg, #f8fbfc, #eef5f7); border-bottom: 1px solid var(--line); }
.depth-dialog-icon { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid rgba(23,60,89,.12); border-radius: 18px; background: rgba(255,255,255,.9); }
.depth-dialog-icon img { width: 66px; height: 66px; object-fit: contain; }
.depth-dialog-icon span { color: var(--navy); font-size: 42px; font-weight: 800; line-height: 1; }
.depth-dialog-heading { min-width: 0; }
.depth-dialog-heading .mini-label { display: block; margin-bottom: 9px; color: var(--orange-deep); }
.depth-dialog-heading h2 { margin: 0; max-width: 475px; font-size: 28px; line-height: 1.08; letter-spacing: -.035em; }
.dialog-close { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; font-size: 26px; line-height: 1; }
.dialog-close:hover { color: var(--orange-deep); border-color: #f3b489; background: var(--orange-soft); }
.depth-dialog-body { padding: 24px 28px 14px; }
.depth-dialog-body > p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.popup-example, .popup-guide { border-radius: 13px; }
.popup-example { padding: 16px 17px; background: #f7fafb; }
.popup-example .mini-label { display: block; margin-bottom: 8px; color: var(--navy); }
.popup-example p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.48; }
.popup-guide { display: flex; gap: 11px; align-items: flex-start; margin-top: 11px; padding: 14px 16px; color: #226542; background: #edf7f0; }
.popup-guide > span { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #6eae88; font-size: 12px; font-weight: 900; }
.popup-guide p { margin: 0; font-size: 13px; line-height: 1.4; }
.popup-guide b { color: #174d31; }
.depth-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 28px 22px; }
.depth-dialog-foot > span { color: #87959c; font-size: 10px; }

.depth-intro { margin: 11px 0 1px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.five-pieces, .three-questions { display: grid; gap: 10px; margin: 18px 0 22px; }
.five-piece, .detail-question { display: flex; align-items: center; width: 100%; gap: 10px; padding: 8px 0 9px; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); background: transparent; text-align: left; }
.five-piece:hover, .five-piece:focus-visible, .detail-question:hover, .detail-question:focus-visible { color: var(--ink); border-bottom-color: #b9cbd2; }
.five-piece > span, .detail-question > span { display: block; flex: 1; font-size: 13px; }
.five-piece > span strong, .detail-question > span strong { display: block; color: var(--ink); font-size: 13px; }
.five-piece > span small, .detail-question > span small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.five-piece > i, .detail-question > i { color: var(--orange); font-size: 16px; font-style: normal; font-weight: 900; }
.five-piece b, .detail-question b { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 7px; color: var(--navy); background: var(--blue-soft); font-size: 9px; }
.detail-question b { color: var(--ink); background: #e8edef; }

.primary-button, .ghost-button, .outline-button, .text-button { border: 0; border-radius: 10px; padding: 13px 19px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-button:hover, .ghost-button:hover, .outline-button:hover { transform: translateY(-2px); }
.primary-button { background: var(--orange); color: #fff; font-weight: 850; box-shadow: 0 9px 19px rgba(239,108,18,.2); }
.primary-button:hover { background: var(--orange-deep); box-shadow: 0 12px 25px rgba(239,108,18,.27); }
.primary-button span { margin-left: 13px; font-size: 17px; }
.compact-button { padding: 11px 15px; font-size: 12px; }
.ghost-button { background: #f3f6f7; color: var(--ink); font-weight: 750; }
.ghost-button:hover { background: #e8eef1; }
.outline-button { background: transparent; border: 1px solid #d7e1e5; color: var(--navy); font-size: 11px; font-weight: 800; }
.text-button { padding-left: 0; padding-right: 0; background: transparent; color: var(--navy); font-size: 12px; font-weight: 800; }
.text-button:hover { color: var(--orange-deep); }

.home-grid { display: grid; grid-template-columns: 46% 54%; height: 100%; background: #fff; }
.hero-copy { position: relative; z-index: 1; padding: 95px 0 0 84px; max-width: 630px; }
.hero-copy .kicker { color: var(--orange-deep); margin-bottom: 22px; }
h1 { font-size: 65px; line-height: .96; letter-spacing: -.065em; margin-bottom: 24px; }
h1 em, h2 em { color: var(--orange); font-style: normal; }
.hero-lede { max-width: 465px; color: #50616d; font-size: 19px; line-height: 1.52; margin-bottom: 28px; }
.hero-meta { gap: 18px; color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.hero-meta span { padding-right: 18px; border-right: 1px solid var(--line); }
.hero-meta span:last-child { border: 0; }
.hero-meta b { color: var(--ink); font-size: 18px; }
.hero-actions { gap: 18px; }
.hero-note { color: #77858d; font-size: 11px; margin-top: 34px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px #e9f5ee; }
.audio-transcript { max-width: 465px; margin-top: 14px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.audio-transcript summary { display: inline-block; cursor: pointer; color: var(--navy); font-size: 11px; font-weight: 800; }
.audio-transcript p { max-height: 135px; overflow: auto; margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid var(--orange); border-radius: 0 8px 8px 0; background: #f5f8f9; white-space: pre-line; }
.hero-visual { position: relative; overflow: hidden; background: #13202b; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 63% center; opacity: .9; }
.intro-video-overlay { position: fixed; inset: 0; z-index: 30; overflow: hidden; color: #fff; background: #08131e; }
.intro-video-overlay.is-hidden { display: none; }
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #08131e; }
.intro-video-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,17,28,.72) 0%, rgba(5,17,28,.08) 34%, rgba(5,17,28,.18) 58%, rgba(5,17,28,.92) 100%); pointer-events: none; }
.intro-video-header, .intro-video-footer { position: absolute; left: clamp(24px, 5vw, 84px); right: clamp(24px, 5vw, 84px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.intro-video-header { top: clamp(24px, 5vh, 58px); color: rgba(255,255,255,.78); font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.intro-video-kicker { color: #ff8a3d; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.intro-video-footer { bottom: clamp(24px, 6vh, 72px); align-items: flex-end; }
.intro-video-footer h2 { margin: 0 0 8px; color: #fff; font-size: clamp(28px, 4vw, 54px); line-height: 1; letter-spacing: -.045em; }
.intro-video-footer p { max-width: 560px; margin: 0; color: rgba(231,241,245,.82); font-size: clamp(13px, 1.25vw, 17px); line-height: 1.45; }
.intro-video-continue { flex: 0 0 auto; white-space: nowrap; box-shadow: 0 12px 30px rgba(239,108,18,.28); }
.hero-image-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19,32,43,.9) 0%, rgba(19,32,43,.35) 33%, rgba(19,32,43,.08) 68%, rgba(19,32,43,.28) 100%); }
.hero-image-caption { position: absolute; right: 48px; bottom: 48px; display: grid; gap: 7px; max-width: 230px; color: #fff; text-align: right; }
.hero-image-caption span { font-size: 16px; font-weight: 850; }
.hero-image-caption small { color: rgba(255,255,255,.75); font-size: 11px; line-height: 1.4; }
.hero-route-badge { position: absolute; left: 42px; top: 148px; display: grid; grid-template-columns: 35px 1fr; gap: 0 9px; align-items: center; padding: 10px 13px; width: 204px; border: 1px solid rgba(255,255,255,.55); border-radius: 12px; color: #fff; background: rgba(19,32,43,.68); backdrop-filter: blur(5px); font: inherit; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.hero-route-badge:hover, .hero-route-badge:focus-visible { transform: translateY(-3px); border-color: #ffb27f; background: rgba(19,32,43,.82); }
.hero-route-badge > span { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: var(--orange); font-size: 10px; font-weight: 900; }
.hero-route-badge b { font-size: 13px; }
.hero-route-badge small { color: rgba(255,255,255,.72); font-size: 10px; }
.hero-route-badge.badge-two { top: 315px; left: auto; right: 64px; }
.hero-route-badge.badge-two > span { background: var(--navy); }
.hero-route-badge.badge-three { top: auto; bottom: 150px; left: 78px; }
.hero-route-badge.badge-three > span { background: #30404a; }

.course-layout { display: grid; grid-template-columns: 250px 1fr; height: 100%; }
.course-rail, .lesson-rail { background: #f5f8f9; border-right: 1px solid var(--line); padding: 33px 22px 22px; display: flex; flex-direction: column; }
.rail-heading { justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 800; }
.rail-heading > span:last-child { color: var(--orange-deep); }
.rail-progress-track { margin: 12px 0 22px; height: 5px; }
.rail-nav { display: grid; gap: 5px; }
.rail-item { position: relative; display: grid; grid-template-columns: 29px 1fr 16px; align-items: center; gap: 9px; padding: 10px 8px; color: var(--muted); border: 0; border-radius: 10px; background: transparent; text-align: left; }
.rail-item:hover, .rail-item.is-current { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(19,32,43,.06); }
.rail-item.is-current::before { content: ""; position: absolute; left: -22px; width: 3px; height: 22px; background: var(--orange); border-radius: 0 5px 5px 0; }
.rail-item b, .rail-item small { display: block; }
.rail-item b { font-size: 12px; }
.rail-item small { font-size: 10px; margin-top: 2px; color: #81909a; }
.rail-item i { font-style: normal; color: #9aa8af; font-size: 17px; }
.rail-item i.is-done { color: var(--green); }
.rail-icon { display: grid; place-items: center; width: 28px; height: 28px; background: #e9eff1; color: var(--navy); border-radius: 8px; font-size: 10px; font-weight: 900; }
.rail-callout { margin-top: auto; padding: 13px; border-radius: 12px; background: var(--orange-soft); color: #6b4429; font-size: 10px; line-height: 1.4; }
.callout-icon { display: grid; place-items: center; float: left; margin: 1px 8px 0 0; width: 19px; height: 19px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; }
.rail-callout p { margin: 0; }
.screen-content, .lesson-content { min-width: 0; padding: 42px 54px 30px; overflow: hidden; }
.content-heading { justify-content: space-between; align-items: flex-start; gap: 24px; }
h2 { font-size: 40px; line-height: 1.05; letter-spacing: -.045em; margin: 7px 0 10px; }
h3 { letter-spacing: -.025em; }
.muted-copy { color: var(--muted); font-size: 15px; line-height: 1.45; margin-bottom: 0; }
.completion-badge { display: grid; place-items: center; width: 82px; height: 82px; flex: 0 0 auto; border: 6px solid #ffdfc8; border-top-color: var(--orange); border-radius: 50%; color: var(--orange-deep); }
.completion-badge span { font-size: 18px; font-weight: 900; line-height: 1; }
.completion-badge small { font-size: 8px; color: var(--muted); margin-top: -20px; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 28px; }
.continue-card { padding: 22px 24px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #153c59, #235d80); box-shadow: 0 14px 27px rgba(23,60,90,.17); }
.continue-top { justify-content: space-between; }
.continue-card .mini-label { color: #b7d0dd; }
.orange-chip, .attempt-pill, .score-chip, .live-chip { padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 900; }
.orange-chip { background: #ffdfc8; color: var(--orange-deep); }
.continue-card h3 { max-width: 390px; font-size: 28px; line-height: 1.05; margin: 28px 0 8px; }
.continue-card p { color: #d1e2ea; font-size: 14px; max-width: 420px; line-height: 1.45; margin-bottom: 20px; }
.stat-stack { display: grid; gap: 18px; }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.stat-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; font-size: 18px; font-weight: 900; }
.stat-icon.orange { color: var(--orange); background: var(--orange-soft); }
.stat-icon.navy { color: var(--navy); background: var(--blue-soft); }
.stat-card strong, .stat-card small { display: block; }
.stat-card strong { font-size: 23px; letter-spacing: -.04em; }
.stat-card small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.module-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.module-card { position: relative; min-height: 160px; padding: 16px; border: 0; border-radius: 14px; color: #fff; text-align: left; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.module-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(19,32,43,.13); }
.module-card::after { content: ""; position: absolute; width: 145px; height: 145px; right: -42px; bottom: -56px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.module-orange { background: linear-gradient(140deg, #ef6c12, #c94d0b); }
.module-blue { background: linear-gradient(140deg, #205c82, #14394f); }
.module-ink { background: linear-gradient(140deg, #263844, #111e27); }
.module-index { font-size: 11px; font-weight: 900; opacity: .7; }
.module-status { float: right; padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.15); font-size: 9px; }
.module-card h3 { margin: 27px 0 4px; font-size: 23px; }
.module-card p { margin: 0; color: rgba(255,255,255,.75); font-size: 13px; }
.module-open { position: absolute; left: 16px; bottom: 15px; color: rgba(255,255,255,.82); font-size: 10px; font-weight: 800; }
.module-arrow { position: absolute; right: 16px; bottom: 13px; font-size: 18px; }
.dashboard-footer-note { gap: 8px; color: var(--muted); font-size: 10px; margin-top: 18px; }
.dashboard-footer-note span { color: var(--orange); font-size: 16px; }

.lesson-layout { display: grid; grid-template-columns: 205px 1fr; height: 100%; }
.lesson-rail { padding: 33px 20px 22px; }
.lesson-rail .rail-progress-track { margin-bottom: 18px; }
.lesson-steps { display: flex; gap: 8px; margin: 8px 0 22px; }
.lesson-steps span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; border: 1px solid #d8e0e4; color: #94a0a6; font-size: 10px; font-weight: 900; }
.lesson-steps span.is-done { color: #fff; background: var(--green); border-color: var(--green); }
.lesson-steps span.is-active { color: var(--orange-deep); background: var(--orange-soft); border-color: #f3b489; }
.rail-quote { margin-top: auto; margin-bottom: 20px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.rail-back { border: 0; background: transparent; color: var(--navy); padding: 0; text-align: left; font-size: 11px; font-weight: 800; }
.module-orange-theme .lesson-rail { background: #fff7f1; }
.module-blue-theme .lesson-rail { background: #f1f7fa; }
.module-ink-theme .lesson-rail { background: #f2f5f6; }
.final-theme .lesson-rail { background: #13202b; color: #fff; border-color: rgba(255,255,255,.12); }
.final-theme .rail-heading, .final-theme .rail-label, .final-theme .rail-quote, .final-theme .rail-back { color: rgba(255,255,255,.72); }
.final-theme .rail-heading > span:last-child { color: #ffad77; }
.final-theme .rail-quote { border-color: rgba(255,255,255,.25); }
.final-mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 18px auto; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #ff9b59; font-size: 29px; }
.lesson-content { padding-top: 34px; }
.lesson-kicker { gap: 9px; color: var(--muted); font-size: 11px; font-weight: 800; }
.module-pill { padding: 6px 9px; border-radius: 6px; font-size: 9px; color: #fff; }
.orange-pill { background: var(--orange); }
.blue-pill { background: var(--navy); }
.ink-pill { background: var(--ink); }
.lesson-time { margin-left: auto; color: #8c999f; font-size: 10px; font-weight: 700; }
.split-heading { margin-top: 18px; }
.split-heading h2 { font-size: 38px; }
.lesson-counter { min-width: 80px; padding: 12px 13px; border-left: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.3; text-align: right; text-transform: uppercase; letter-spacing: .09em; }
.lesson-counter strong { display: block; color: var(--ink); font-size: 20px; letter-spacing: -.04em; margin-top: 4px; }
.lesson-counter strong span { color: #9ba7ad; font-size: 11px; }
.lesson-body { display: grid; grid-template-columns: 1.25fr .95fr; gap: 18px; margin-top: 26px; }
.photo-card, .insight-card, .audit-card, .map-detail, .builder-card, .prompt-preview, .case-card, .traffic-card, .commitment-card, .protocol-result, .case-brief, .final-visual-card { border: 1px solid var(--line); border-radius: 15px; background: #fff; overflow: hidden; }
.photo-card { position: relative; min-height: 365px; }
.photo-card > img { display: block; width: 100%; height: 365px; object-fit: cover; }
.photo-caption { position: absolute; inset: auto 0 0; display: grid; gap: 7px; padding: 20px; color: #fff; background: linear-gradient(transparent, rgba(19,32,43,.88)); }
.photo-caption span { color: #ffd4b8; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.photo-caption b { max-width: 490px; font-size: 18px; line-height: 1.18; }
.insight-card { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.check-list { display: grid; gap: 16px; padding: 0; margin: 22px 0 24px; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.35; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--orange); font-size: 11px; font-weight: 900; }
.icon-callout { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 11px; background: #f7f9fa; border-radius: 10px; }
.icon-callout img, .animated-hint img, .commitment-top img { width: 58px; height: 58px; flex: 0 0 auto; object-fit: contain; }
.icon-callout p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.icon-callout b { color: var(--ink); }
.blue-insight { background: linear-gradient(145deg, #fff, #f1f7fa); }
.ink-insight { background: linear-gradient(145deg, #fff, #f1f4f5); }
.screen-nav { justify-content: space-between; gap: 16px; margin-top: 20px; }
.screen-nav .text-button { margin-left: auto; }
.animated-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; text-align: right; }
.animated-hint img { width: 54px; height: 54px; }

.explore-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; margin-top: 24px; }
.tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-card { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; min-height: 100px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; text-align: left; }
.tool-card:hover, .tool-card.is-selected { border-color: #f3b489; background: #fff8f2; transform: translateY(-2px); }
.tool-symbol, .use-index { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: var(--orange-deep); background: var(--orange-soft); font-size: 10px; font-weight: 900; }
.tool-card b, .tool-card small { display: block; }
.tool-card b { font-size: 14px; }
.tool-card small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.map-detail { min-height: 210px; padding: 24px; background: linear-gradient(145deg, #fff, #fff8f3); }
.map-detail h3 { max-width: 340px; font-size: 26px; line-height: 1.1; margin: 20px 0 10px; }
.map-detail p { max-width: 380px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.map-example { margin-top: 14px; padding: 10px 12px; border-left: 3px solid var(--orange); border-radius: 0 9px 9px 0; background: #fff5ed; color: var(--muted); font-size: 11px; line-height: 1.35; }
.map-example b, .map-review b { color: var(--ink); }
.map-example p { margin: 4px 0 0; font-size: 11px; }
.map-review { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.detail-placeholder > span, .result-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--orange); background: var(--orange-soft); font-size: 20px; font-weight: 900; }
.feedback-box { margin-top: 12px; padding: 10px 12px; min-height: 34px; border-radius: 9px; background: #f2f6f7; color: var(--muted); font-size: 11px; line-height: 1.4; }
.feedback-box.is-positive { color: #226542; background: #edf7f0; }
.feedback-box.is-caution { color: #824a1f; background: #fff4e9; }

.audit-card { display: grid; grid-template-columns: 35% 1fr; gap: 20px; padding: 24px; margin-top: 26px; background: linear-gradient(145deg, #fff, #fff9f5); }
.audit-question h3 { margin: 18px 0 0; max-width: 290px; font-size: 23px; line-height: 1.12; }
.audit-options { display: grid; gap: 10px; }
.audit-option { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; }
.audit-option:hover, .audit-option.is-selected { border-color: #f3b489; background: #fff4eb; }
.audit-option > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--orange-deep); background: var(--orange-soft); font-size: 11px; font-weight: 900; }
.audit-option b { font-size: 13px; line-height: 1.3; }

.builder-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 22px; }
.builder-card, .prompt-preview { padding: 20px; }
.builder-card { background: #fbfcfd; }
.builder-header { justify-content: space-between; }
.live-chip { display: flex; align-items: center; gap: 5px; color: #347456; background: #ebf7ef; }
.live-chip span { width: 6px; height: 6px; border-radius: 50%; background: #5fa87b; }
.builder-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.builder-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 850; }
.builder-fields input { min-width: 0; padding: 11px 12px; border: 1px solid #d9e3e6; border-radius: 9px; color: var(--ink); background: #fff; font-size: 12px; }
.builder-fields input::placeholder { color: #a0abb0; }
.prompt-preview { background: linear-gradient(145deg, #173c59, #102d43); color: #fff; }
.preview-top { justify-content: space-between; }
.prompt-preview .mini-label { color: #b6cbd6; }
.score-chip { color: var(--orange-deep); background: #ffdfc8; }
.prompt-output { min-height: 130px; margin: 20px 0; padding: 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: #fff; font-size: 15px; line-height: 1.45; }
.prompt-output span { color: #c7dbe4; }
.prompt-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; color: #a9c2ce; font-size: 11px; }
.prompt-checklist .is-done { color: #baf0cf; }
.prompt-tip { display: flex; gap: 9px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); color: #c7dbe4; }
.prompt-tip > span { color: #ffab72; font-size: 19px; }
.prompt-tip p { margin: 0; font-size: 11px; line-height: 1.4; }
.prompt-tip b { color: #fff; }

.challenge-instruction { margin: 15px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.42; }
.fragment-bank { display: grid; gap: 8px; min-height: 240px; }
.fragment-card { display: grid; grid-template-columns: 1fr 18px; gap: 9px; align-items: center; width: 100%; min-height: 45px; padding: 8px 10px; border: 1px solid #d8e3e6; border-radius: 10px; color: var(--ink); background: #fff; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease; }
.fragment-card:hover, .fragment-card.is-selected { border-color: #79a8ba; background: #f1f7fa; transform: translateY(-1px); }
.fragment-card.is-dragging { opacity: .45; transform: scale(.98); }
.fragment-letter, .slot-number { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: var(--navy); background: var(--blue-soft); font-size: 10px; font-weight: 900; }
.fragment-text { color: var(--muted); font-size: 11px; line-height: 1.3; }
.fragment-drag { color: #8ca1aa; font-size: 19px; line-height: 1; }
.challenge-actions { display: flex; align-items: center; gap: 9px; margin-top: 13px; }
.challenge-actions .ghost-button { padding: 11px 14px; }
.prompt-slots { display: grid; gap: 7px; margin: 16px 0 12px; }
.prompt-slot { display: grid; grid-template-columns: 25px 1fr 20px; gap: 9px; align-items: center; width: 100%; min-height: 54px; padding: 7px 9px; border: 1px dashed rgba(176,197,205,.95); border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.08); text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.prompt-slot:hover, .prompt-slot:focus-visible, .prompt-slot.is-over { border-color: #ffab72; background: rgba(255,255,255,.14); transform: translateY(-1px); }
.prompt-slot.is-over { box-shadow: 0 0 0 3px rgba(255,171,114,.16); }
.prompt-slot.is-selected, .prompt-slot.is-dragging { border-color: #ffab72; background: rgba(255,171,114,.16); }
.prompt-slot.is-dragging { opacity: .55; }
.prompt-slot.has-fragment { border-style: solid; border-color: rgba(152,195,211,.65); background: rgba(255,255,255,.11); }
.slot-number { color: #b9d5e0; background: rgba(255,255,255,.12); }
.slot-body { min-width: 0; }
.slot-body b, .slot-body small { display: block; }
.slot-body b { color: #fff; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.slot-body small { margin-top: 3px; overflow: hidden; color: #bad0d9; font-size: 10px; line-height: 1.28; text-overflow: ellipsis; white-space: nowrap; }
.slot-state { color: #8ca1aa; font-size: 17px; font-weight: 900; text-align: center; }
.prompt-slot.has-fragment .slot-state { color: #baf0cf; }
.prompt-slot.is-correct { border-color: #6eae88; background: rgba(110,174,136,.18); }
.prompt-slot.is-error { border-color: #f0a26c; background: rgba(240,162,108,.16); }
.prompt-slot.is-incorrect { border-color: #e05252; background: rgba(224,82,82,.2); box-shadow: 0 0 0 2px rgba(224,82,82,.2); }
.prompt-slot.is-incorrect .slot-number { color: #fff; background: #c94242; }
.prompt-slot.is-incorrect .slot-state { color: #ffb8b8; }
.prompt-slot.is-incorrect .slot-body b { color: #ffd5d5; }
.prompt-preview .prompt-output { min-height: 86px; margin: 12px 0 0; font-size: 11px; }
.prompt-preview .prompt-output span { display: block; margin-bottom: 5px; }
.course-bridge { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 18px; padding: 9px 11px; border-radius: 9px; color: var(--muted); background: #f5f8f9; font-size: 10px; line-height: 1.35; }
.course-bridge > span { color: var(--orange); font-size: 17px; font-weight: 900; line-height: 1; }
.course-bridge p { margin: 0; }
.course-bridge b { color: var(--ink); }

/* El constructor conserva una fila propia para la actividad y otra para la navegación, sin superponerlas. */
.screen[data-screen="m2-builder"] .lesson-content { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; min-height: 0; }
.screen[data-screen="m2-builder"] .builder-layout { min-height: 0; margin-top: 16px; overflow: hidden; }
.screen[data-screen="m2-builder"] .builder-card, .screen[data-screen="m2-builder"] .prompt-preview { min-height: 0; }
.screen[data-screen="m2-builder"] .fragment-bank { min-height: 0; }
.screen[data-screen="m2-builder"] .screen-nav { position: static; margin-top: 14px; padding-top: 0; background: transparent; }
.screen[data-screen="m2-builder"] .builder-card, .screen[data-screen="m2-builder"] .prompt-preview { padding: 16px; }
.screen[data-screen="m2-builder"] .prompt-slots { gap: 5px; margin: 10px 0 8px; }
.screen[data-screen="m2-builder"] .prompt-slot { min-height: 48px; padding: 5px 7px; }
.screen[data-screen="m2-builder"] .fragment-card { min-height: 40px; padding: 6px 8px; }
.screen[data-screen="m2-builder"] .fragment-text { font-size: 10px; line-height: 1.2; }
.screen[data-screen="m2-builder"] .prompt-preview .prompt-output { min-height: 58px; margin-top: 8px; font-size: 10px; }
.screen[data-screen="m2-builder"] .prompt-tip { gap: 7px; margin-top: 10px; padding-top: 10px; }
.screen[data-screen="m2-builder"] .prompt-tip p { font-size: 10px; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.prompt-card { position: relative; min-height: 216px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: #fff; text-align: left; }
.prompt-card:hover, .prompt-card.is-selected { border-color: #83aebe; box-shadow: 0 10px 22px rgba(23,60,89,.1); transform: translateY(-2px); }
.prompt-card.recommended { background: linear-gradient(145deg, #f1f7fa, #fff); }
.prompt-card-label { display: block; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.prompt-card strong { display: block; margin: 22px 0 14px; max-width: 430px; font-size: 23px; line-height: 1.15; }
.prompt-card-note { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.recommended-badge { position: absolute; right: 19px; top: 18px; padding: 5px 8px; border-radius: 99px; color: #226542; background: #e9f6ed; font-size: 9px; font-weight: 900; }

.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.use-card { min-height: 190px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; text-align: left; }
.use-card:hover, .use-card.is-selected { border-color: #8ba9b4; background: #f4f8f9; transform: translateY(-2px); }
.use-index { width: 35px; height: 35px; margin-bottom: 22px; color: var(--ink); background: #e8edef; }
.use-card b, .use-card small { display: block; }
.use-card b { font-size: 18px; line-height: 1.1; }
.use-card small { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.verify-layout { display: grid; grid-template-columns: 1.25fr .9fr; gap: 18px; margin-top: 22px; }
.case-card { padding: 22px; }
.case-label { color: var(--orange-deep); }
.case-card h3 { max-width: 490px; margin: 17px 0 8px; font-size: 22px; line-height: 1.15; }
.case-card > p { color: var(--muted); font-size: 13px; }
.case-options { display: grid; gap: 8px; margin-top: 17px; }
.case-option { display: grid; grid-template-columns: 24px 1fr; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; text-align: left; font-size: 12px; }
.case-option:hover, .case-option.is-selected { border-color: #8ba9b4; background: #f4f8f9; }
.case-option > span { color: var(--orange-deep); font-weight: 900; }
.traffic-card { padding: 22px; background: linear-gradient(145deg, #fff, #f5f8f9); }
.traffic-row { display: grid; grid-template-columns: 72px 1fr; gap: 11px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.traffic-row:last-child { border-bottom: 0; }
.traffic-row > span { display: grid; place-items: center; padding: 7px 5px; border-radius: 7px; font-size: 9px; font-weight: 900; }
.traffic-row p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.traffic-row.red > span { color: #9f3e32; background: #fae7e4; }
.traffic-row.yellow > span { color: #946b1f; background: #fff3d3; }
.traffic-row.green > span { color: #2c734a; background: #e5f4e9; }

.final-case-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 18px; margin-top: 22px; }
.case-brief { padding: 23px; background: linear-gradient(145deg, #fff, #fff8f3); }
.case-brief > p { margin: 16px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.case-decision-list { display: grid; gap: 7px; }
.decision-choice { display: grid; grid-template-columns: 31px 1fr; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; text-align: left; }
.decision-choice:hover, .decision-choice.is-selected { border-color: #f3b489; background: #fff4eb; }
.decision-choice > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--orange-deep); background: var(--orange-soft); font-size: 9px; font-weight: 900; }
.decision-choice b { font-size: 11px; line-height: 1.25; }
.final-visual-card { position: relative; min-height: 300px; background: #13202b; }
.final-visual-card > img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; opacity: .74; }
.final-visual-card > div { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 13px; border-radius: 10px; color: #fff; background: rgba(19,32,43,.78); }
.final-visual-card .mini-label { color: #ffd4b8; }
.final-visual-card p { margin: 8px 0 0; font-size: 13px; line-height: 1.35; }

.protocol-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 22px; }
.commitment-card, .protocol-result { padding: 21px; }
.commitment-card { background: #fbfcfc; }
.commitment-top { justify-content: space-between; min-height: 45px; }
.commitment-top img { width: 54px; height: 54px; }
.commitment { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.commitment input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-ui { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #cbd7da; border-radius: 5px; color: transparent; background: #fff; font-size: 13px; font-weight: 900; }
.commitment input:checked + .checkbox-ui { border-color: var(--orange); color: #fff; background: var(--orange); }
.commitment b, .commitment small { display: block; }
.commitment b { font-size: 13px; line-height: 1.25; }
.commitment small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.commitment-card > .primary-button { margin-top: 16px; }
.download-button { margin: 16px 0 0 7px; }
.download-button:disabled, button:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none !important; }
.primary-button.is-locked { background: #dbe3e6; color: #78888f; box-shadow: none; }
.attempt-chip { display: inline-flex; align-items: center; margin-left: 8px; padding: 4px 7px; border-radius: 999px; color: #8c6a4f; background: #fff0e5; font-size: 9px; font-weight: 900; letter-spacing: .02em; white-space: nowrap; }
.attempt-chip.is-unlocked { color: #226542; background: #edf7f0; }
.protocol-result { background: linear-gradient(145deg, #173c59, #102d43); color: #fff; }
.protocol-result .mini-label { color: #b6cbd6; }
.result-placeholder { display: flex; flex-direction: column; justify-content: center; min-height: 235px; }
.result-placeholder h3 { margin: 19px 0 7px; font-size: 27px; line-height: 1.05; }
.result-placeholder p { max-width: 270px; color: #c7dbe4; font-size: 12px; line-height: 1.45; }
.protocol-result h3 { font-size: 24px; margin: 20px 0 12px; }
.protocol-result ul { display: grid; gap: 8px; margin: 0; padding-left: 19px; color: #e3edf1; font-size: 12px; line-height: 1.35; }
.result-stamp { display: inline-block; margin-top: 20px; padding: 7px 9px; border-radius: 99px; color: #baf0cf; background: rgba(104,177,137,.18); font-size: 10px; font-weight: 900; }

.sources-layout { height: 100%; padding: 42px 54px 32px; overflow: hidden; }
.sources-header { justify-content: space-between; align-items: flex-start; gap: 24px; }
.sources-header h2 { margin-top: 8px; }
.reference-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 27px; }
.reference-item { min-height: 160px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ref-type { color: var(--orange-deep); font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.reference-item h3 { margin: 13px 0 7px; font-size: 14px; }
.reference-item p { min-height: 47px; margin: 0 0 9px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.reference-item a { color: var(--navy); font-size: 10px; font-weight: 850; }
.verified-badge { color: #2f7650; font-size: 9px; font-weight: 850; }
.sources-note { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding: 11px 13px; border-radius: 10px; color: #376b4b; background: #edf7f0; }
.sources-note span { font-size: 17px; }
.sources-note p { margin: 0; font-size: 10px; line-height: 1.35; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 900px) {
  html, body { overflow: auto; }
  .app-shell { min-height: 100dvh; height: auto; grid-template-rows: auto auto auto; }
  .topbar { padding: 9px 10px; gap: 6px; align-items: center; }
  .brand-logo { width: 62px; }
  .brand-copy { min-width: 0; gap: 1px; padding-left: 8px; }
  .brand-copy .eyebrow { display: none; }
  .brand-copy strong { font-size: 14px; white-space: nowrap; }
  .topbar-actions { gap: 4px; flex-wrap: nowrap; justify-content: flex-end; }
  .audio-toggle .audio-label { display: none; }
  .top-progress { display: none; }
  .small-button { padding: 8px 9px !important; font-size: 10px; }
  .fullscreen-label { display: none; }
  .stage-shell { padding: 8px; place-items: start; }
  .stage { width: 100%; height: auto; min-height: 760px; zoom: 1; border-radius: 12px; }
  .screen { height: auto; min-height: 760px; }
  .home-grid, .course-layout, .lesson-layout { grid-template-columns: 1fr; height: auto; min-height: 760px; }
  .hero-copy { padding: 46px 28px 35px; max-width: none; }
  .hero-visual { min-height: 390px; }
  h1 { font-size: 48px; }
  .hero-lede { font-size: 16px; }
  .audio-transcript { max-width: none; }
  .audio-transcript p { max-height: 180px; }
  .course-rail, .lesson-rail { min-height: 170px; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-nav { grid-template-columns: 1fr 1fr; }
  .rail-callout, .rail-quote { display: none; }
  .screen-content, .lesson-content, .sources-layout { padding: 28px 22px 24px; overflow: visible; }
  h2, .split-heading h2 { font-size: 31px; }
  .dashboard-grid, .lesson-body, .builder-layout, .verify-layout, .protocol-layout, .final-case-grid, .audit-card { grid-template-columns: 1fr; }
  .module-cards, .reference-list { grid-template-columns: 1fr; }
  .module-card { min-height: 140px; }
  .explore-grid, .compare-grid { grid-template-columns: 1fr; }
  .use-grid { grid-template-columns: 1fr; }
  .photo-card, .photo-card > img { min-height: 260px; height: 260px; }
  .audit-card { padding: 18px; }
  .sources-header { align-items: flex-start; flex-direction: column; }
  .bottombar { padding: 10px; text-align: center; }
  .fullscreen-welcome { padding: 14px; }
  .welcome-card { padding: 28px 24px 23px; border-radius: 19px; }
  .welcome-mark { width: 54px; height: 54px; margin-bottom: 18px; }
  .welcome-card h2 { font-size: 31px; }
  .welcome-card > p:not(.welcome-eyebrow):not(.welcome-note) { font-size: 14px; }
  .welcome-benefits { grid-template-columns: 1fr; gap: 6px; margin-bottom: 21px; }
  .welcome-benefits span { min-height: auto; grid-template-columns: 25px 1fr; align-items: center; padding: 8px 10px; }
  .welcome-benefits b { grid-row: span 1; }
  .welcome-actions { align-items: flex-start; flex-direction: column; gap: 11px; }
  .intro-video-header, .intro-video-footer { left: 20px; right: 20px; }
  .intro-video-footer { display: grid; gap: 18px; }
  .intro-video-footer h2 { font-size: 32px; }
  .intro-video-continue { justify-self: start; }
  .depth-dialog { width: calc(100% - 20px); }
  .depth-dialog-head { grid-template-columns: 58px 1fr auto; gap: 11px; padding: 18px 18px 16px; }
  .depth-dialog-icon { width: 58px; height: 58px; border-radius: 14px; }
  .depth-dialog-icon img { width: 50px; height: 50px; }
  .depth-dialog-icon span { font-size: 31px; }
  .depth-dialog-heading h2 { font-size: 23px; }
  .depth-dialog-body { padding: 19px 19px 9px; }
  .depth-dialog-body > p { font-size: 14px; }
  .depth-dialog-foot { align-items: flex-start; flex-direction: column; padding: 14px 19px 19px; }
  .fragment-bank { min-height: 0; }
  .challenge-actions { align-items: flex-start; flex-direction: column; }
  .challenge-actions button { width: 100%; }
  .prompt-slot { min-height: 62px; }
  .slot-body small { white-space: normal; }
  .screen[data-screen="m2-builder"] .lesson-content { display: block; min-height: 0; }
  .screen[data-screen="m2-builder"] .builder-layout { overflow: visible; }
  .screen[data-screen="m2-builder"] .fragment-bank { overflow: visible; }
}
