

:root{color-scheme:dark;--bg:#0b1220;--surface:#121d2e;--surface2:#182538;--line:#29364a;--text:#eef3fa;--muted:#9baec5;--brand:#69dfcf;--green:#b8e979;--blue:#3579ed;--warn:#f5c76c;--red:#ff9b9f;--shadow:0 18px 44px #0002;--radius:18px;--font:16px}
[data-theme=light]{color-scheme:light;--bg:#f2f5f8;--surface:#fff;--surface2:#f5f8fc;--line:#dae2ec;--text:#142238;--muted:#526780;--brand:#076d65;--green:#477a16;--blue:#215fcd;--warn:#8a5a00;--red:#b52638;--shadow:0 12px 34px #1c345309}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:var(--font)/1.55 'Segoe UI',Inter,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--brand);text-underline-offset:3px}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--brand);outline-offset:4px}button{transition:background .15s,transform .15s,border-color .15s}button:not(:disabled):active{transform:translateY(1px)}input,select{padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);color:var(--text);min-width:0}input[type=checkbox],input[type=radio]{accent-color:var(--brand);width:19px;height:19px}h1,h2,h3,h4,p{margin-top:0}h1{font-size:clamp(1.8rem,3vw,2.4rem);letter-spacing:-.045em;line-height:1.2;margin-bottom:8px}h2{font-size:1.18rem;letter-spacing:-.025em;margin-bottom:14px}h3{font-size:1.02rem;line-height:1.4;margin-bottom:9px}p{margin-bottom:12px}.muted{color:var(--muted)}.tiny{font-size:.77rem}.small{font-size:.87rem}.eyebrow{font-size:.69rem;text-transform:uppercase;letter-spacing:.15em;font-weight:700;color:var(--brand)}.skip{position:fixed;top:-100px;left:20px;z-index:100;background:var(--surface);padding:12px}.skip:focus{top:10px}.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:30px 18px 20px;z-index:30}.brand{display:flex;gap:11px;align-items:center;padding:0 12px 28px}.brand-mark{display:grid;place-items:center;width:40px;height:44px;background:var(--brand);color:#10252c;border-radius:12px}.brand-mark svg{width:26px;height:30px}.brand-name{font-size:1.45rem;letter-spacing:.02em;font-weight:850;line-height:1.15}.brand-caption{font-size:.62rem;color:var(--muted);margin-top:4px}.nav-caption{font-size:.63rem;letter-spacing:.14em;color:var(--muted);font-weight:700;margin:7px 14px 12px}.nav{display:grid;gap:5px}.nav button{border:0;background:none;text-align:left;padding:12px 15px;display:flex;gap:14px;align-items:center;border-radius:10px;font-size:.87rem;color:var(--muted);font-weight:550}.nav button:hover{background:var(--surface2);color:var(--text)}.nav button.active{background:#69dfcf16;color:var(--brand)}.nav button.active:after{content:'';width:5px;height:5px;border-radius:50%;background:var(--brand);margin-left:auto}.sidebar-end{margin-top:auto;padding:22px 12px 0}.local-status{font-size:.71rem;color:var(--muted);display:flex;gap:8px;align-items:center}.dot{width:6px;height:6px;background:var(--green);border-radius:100%;display:inline-block}.profile{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin-top:19px}.avatar{border-radius:12px;background:var(--surface2);width:35px;height:35px;display:grid;place-items:center;color:var(--brand);font-weight:700}.profile b{font-size:.78rem}.profile span{display:block;font-size:.67rem;color:var(--muted)}.workspace{margin-left:238px}.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;gap:15px}.breadcrumb{font-size:.8rem;color:var(--muted)}.breadcrumb b{color:var(--text);font-weight:500}.top-tools{display:flex;align-items:center;gap:15px}.date-label{font-size:.73rem;color:var(--muted)}.icon-btn{border:1px solid var(--line);background:var(--surface);border-radius:10px;width:37px;height:37px;display:inline-grid;place-items:center;flex:none}.icon-btn:hover{border-color:var(--brand)}.mobile-menu{display:none}.content{max-width:1450px;margin:auto;padding:34px 42px 45px;min-height:calc(100vh - 150px)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-heading p{margin:0}.chip,.badge{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:99px;padding:5px 10px;font-size:.7rem;font-weight:550}.chip{color:var(--brand);background:#69dfcf0c}.badge.success{background:#b8e97912;color:var(--green);border-color:#b8e97930}.badge.warning{color:var(--warn);border-color:#f5c76c30}.badge.error{color:var(--red);border-color:#ff9b9f33}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.grid{display:grid;gap:20px}.grid-2{grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr)}.grid-equal{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.mb{margin-bottom:22px}.mt{margin-top:22px}.flex{display:flex;gap:12px;align-items:center}.between{display:flex;justify-content:space-between;align-items:center;gap:12px}.wrap{flex-wrap:wrap}.hero{position:relative;overflow:hidden;background:linear-gradient(120deg,#14364c,#123d43);border-color:#28585e;min-height:270px;padding:31px;isolation:isolate}.hero:after{content:'';position:absolute;width:270px;height:270px;border:45px solid #69dfcf08;border-radius:50%;right:-50px;bottom:-150px;z-index:-1}.hero h2{font-size:clamp(1.8rem,2.8vw,2.65rem);line-height:1.12;letter-spacing:-.05em;max-width:360px;margin:13px 0 14px;color:#f6fcff}.hero p{font-size:.84rem;color:#b1d1d5;max-width:330px}.hero .eyebrow{color:#8ce9d9}.hero-road{position:absolute;right:8px;bottom:10px;width:37%;height:220px;z-index:-1;opacity:.9}.btn{display:inline-flex;gap:9px;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--line);padding:11px 16px;background:var(--surface2);text-decoration:none;font-size:.86rem;font-weight:650;line-height:1.4}.btn:hover{border-color:var(--brand)}.btn.primary{background:var(--brand);color:#092b2b;border-color:transparent}.btn.blue{background:var(--blue);border-color:transparent;color:#fff}.btn.danger{color:var(--red);background:#ff9b9f10}.btn.ghost{background:none}.btn.compact{padding:7px 11px;font-size:.77rem}.btn .icon{width:17px;height:17px}.hero .btn.primary{background:#b8e979;color:#192a1c}.link-button{background:none;border:0;color:var(--brand);font-size:.8rem;padding:3px}.exam-card{display:flex;flex-direction:column;justify-content:space-between}.exam-date{font-size:2.7rem;line-height:1;letter-spacing:-.06em;font-weight:750;margin:17px 0 12px}.exam-date span{font-size:1rem;letter-spacing:0;font-weight:450;color:var(--muted);margin-left:8px}.exam-location{font-size:.8rem;color:var(--muted);margin-bottom:15px}.countdown{display:flex;align-items:center;gap:9px;color:var(--warn);font-size:.78rem;border-top:1px solid var(--line);padding-top:14px}.metric{padding:20px}.metric-head{color:var(--muted);font-size:.75rem;display:flex;align-items:center;justify-content:space-between;gap:5px}.metric-head .icon{color:var(--brand);width:18px;height:18px}.metric-value{font-size:1.9rem;font-weight:730;letter-spacing:-.04em;line-height:1.2;margin:12px 0 8px}.metric-foot{font-size:.69rem;color:var(--muted)}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.section-title h2{margin:0}.progress{height:7px;border-radius:100px;background:var(--surface2);overflow:hidden}.progress>span{display:block;height:100%;border-radius:100px;background:var(--brand)}.progress.green>span{background:var(--green)}.task{display:flex;gap:13px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.task:last-child{border:0;padding-bottom:0}.task-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:var(--surface2);color:var(--brand);flex:none}.task-body{flex:1}.task-body b{font-size:.84rem;font-weight:600}.task-body p{font-size:.72rem;color:var(--muted);margin:2px 0}.readiness{display:grid;grid-template-columns:110px 1fr;gap:20px;align-items:center}.ring{width:110px;height:110px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--brand) var(--pct),var(--surface2) 0);position:relative}.ring:before{content:'';position:absolute;inset:9px;border-radius:50%;background:var(--surface)}.ring b{position:relative;font-size:1.8rem;letter-spacing:-.05em}.readiness p{font-size:.75rem}.notice{border:1px solid #f5c76c35;color:var(--warn);background:#f5c76c08;border-radius:12px;padding:13px 16px;font-size:.79rem;margin-bottom:20px}.notice.info{border-color:#69dfcf30;background:#69dfcf08;color:var(--muted)}.resume{display:flex;gap:15px;align-items:center;justify-content:space-between;border:1px solid var(--brand);background:#69dfcf09;border-radius:14px;padding:15px 20px;margin-bottom:22px;font-size:.83rem}.empty{padding:30px 18px;text-align:center;color:var(--muted);font-size:.85rem}.empty .icon{display:block;margin:0 auto 13px;width:30px;height:30px;color:var(--brand)}.empty p{max-width:370px;margin:0 auto 17px}.chart{width:100%;height:auto;min-height:130px;display:block}.chart text{fill:var(--muted);font:10px 'Segoe UI',Arial}.chart .axis{stroke:var(--line);stroke-width:1}.chart .pass{stroke:var(--green);stroke-width:1;stroke-dasharray:4 5}.chart .line{fill:none;stroke:var(--brand);stroke-width:2.5}.chart .point{fill:var(--surface);stroke:var(--brand);stroke-width:2;cursor:pointer}.chart .point:hover,.chart .point:focus{r:6;fill:var(--brand)}.legend{display:flex;gap:18px;font-size:.69rem;color:var(--muted);align-items:center}.legend i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--brand);margin-right:5px}.legend i.pass{background:var(--green)}.category-row{margin:13px 0;display:block;width:100%;text-align:left;background:transparent;border:0;padding:0}.category-row>span{display:flex;justify-content:space-between;font-size:.75rem;margin-bottom:6px}.category-row .progress{height:5px}.filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.filters input{flex:1;min-width:180px}.filters select{max-width:100%;flex:1;min-width:170px}.questions-list{display:grid;gap:12px}.question-list-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px 20px;display:flex;align-items:flex-start;gap:16px}.question-list-card .main{flex:1;min-width:0}.question-list-card h3{font-size:.91rem;margin:8px 0}.question-list-card .badge{font-size:.63rem}.question-list-card .icon-btn.starred{color:var(--warn)}.pagination{display:flex;justify-content:center;gap:15px;align-items:center;margin-top:23px}.signal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.signal-card{text-align:left;display:flex;flex-direction:column;gap:12px;padding:20px;border:1px solid var(--line);background:var(--surface);border-radius:15px}.signal-card:hover{border-color:var(--brand)}.signal-image{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:12px;padding:16px;height:145px;width:100%}.signal-image img{max-width:100%;max-height:115px;object-fit:contain}.signal-card b{font-size:.76rem;font-weight:650;line-height:1.4}.signal-card small{color:var(--muted);font-size:.67rem}.study-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.study-card{padding:23px;display:flex;flex-direction:column}.study-card p{font-size:.8rem;color:var(--muted);flex:1}.study-card h3{margin-top:16px;font-size:1rem}.study-card .eyebrow{color:var(--muted)}.article{max-width:820px;margin:auto}.article p,.article li{line-height:1.8;font-size:.96rem}.article ul{padding-left:22px}.article h2{margin-top:30px}.article .example{padding:20px;border-left:3px solid var(--brand);background:var(--surface2);border-radius:0 12px 12px 0}.glossary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.glossary div{border:1px solid var(--line);padding:16px;border-radius:12px}.glossary dt{font-weight:650;margin-bottom:6px;font-size:.9rem}.glossary dd{margin:0;color:var(--muted);font-size:.8rem}.exam-shell{max-width:1100px;margin:auto}.exam-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.timer{font-size:1.2rem;letter-spacing:.04em;font-variant-numeric:tabular-nums;color:var(--brand);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:9px 15px}.timer.urgent{color:var(--red);border-color:var(--red)}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 225px;gap:22px}.question-panel{padding:30px}.question-number{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:16px 0 12px}.question-title{font-size:1.24rem;font-weight:650;line-height:1.5;letter-spacing:-.022em;margin-bottom:20px}.question-picture{width:100%;background:#fff;border-radius:12px;padding:16px;text-align:center;margin:15px 0 23px}.question-picture img{max-width:100%;max-height:250px;object-fit:contain}.options{border:0;padding:0;margin:18px 0;display:grid;gap:11px}.option{display:flex;gap:13px;align-items:center;border:1px solid var(--line);padding:15px;border-radius:12px;background:var(--surface2);font-size:.88rem;cursor:pointer}.option.selected{border-color:var(--brand);background:#69dfcf09}.option.correct{border-color:var(--green);background:#b8e9790d}.option.wrong{border-color:var(--red);background:#ff9b9f09}.option input{flex:none;margin:0}.option-label{flex:1}.option-key{color:var(--muted);font-weight:600;margin-right:7px}.feedback{background:#69dfcf09;border-left:3px solid var(--brand);border-radius:0 12px 12px 0;padding:18px;margin:20px 0}.feedback.bad{background:#ff9b9f07;border-color:var(--red)}.feedback h3{color:var(--green)}.feedback.bad h3{color:var(--red)}.feedback p{font-size:.86rem}.question-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:15px}.q-num{border:1px solid var(--line);border-radius:7px;background:var(--surface2);aspect-ratio:1;font-size:.75rem;position:relative}.q-num.answered{background:#69dfcf22;border-color:#69dfcf80}.q-num.current{outline:2px solid var(--brand);outline-offset:2px}.q-num.flagged:after{content:'';position:absolute;right:2px;top:2px;background:var(--warn);width:5px;height:5px;border-radius:50%}.exam-aside{align-self:start;padding:19px;position:sticky;top:20px}.q-legend{font-size:.67rem;color:var(--muted);display:grid;gap:9px;margin:19px 0}.exam-actions{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.result-hero{text-align:center;padding:32px}.result-score{font-size:4rem;letter-spacing:-.06em;line-height:1.2;font-weight:750;color:var(--brand);margin:15px 0}.result-score span{font-size:1.3rem;color:var(--muted);letter-spacing:0}.result-facts{display:flex;justify-content:center;gap:35px;flex-wrap:wrap;margin:22px 0}.result-facts b{display:block;font-size:1.25rem}.result-facts span{font-size:.72rem;color:var(--muted)}.history-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);font-size:.8rem}.history-row:last-child{border:0}.activity-chart{display:grid;grid-template-columns:repeat(7,1fr);gap:9px;align-items:end;height:150px;margin-top:16px}.activity-day{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;font-size:.66rem;gap:7px;color:var(--muted)}.activity-bar{background:var(--brand);min-height:3px;width:75%;max-width:45px;border:0;border-radius:6px 6px 0 0;transition:opacity .2s}.activity-bar:hover{opacity:.65}.achievements{display:flex;gap:10px;flex-wrap:wrap}.achievement{padding:13px 16px;background:var(--surface2);border:1px solid var(--line);border-radius:12px;font-size:.76rem;opacity:.6}.achievement.unlocked{opacity:1;border-color:#b8e97945;color:var(--green)}.achievement .icon{margin-right:7px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:grid;gap:7px;font-size:.8rem}.field small{color:var(--muted)}.field.inline{display:flex;align-items:center;gap:11px}.settings-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.source{font-size:.69rem;color:var(--muted);line-height:1.6;margin-top:14px}.manual-page{white-space:pre-wrap;font: .88rem/1.85 'Segoe UI',Arial,sans-serif;overflow-wrap:anywhere;background:var(--surface2);padding:20px;border-radius:12px}.manual-search-results{max-height:230px;overflow:auto;display:grid;gap:7px;margin:15px 0}.manual-search-results button{text-align:left}.footer{max-width:1450px;margin:auto;padding:15px 42px 30px;font-size:.66rem;color:var(--muted);display:flex;justify-content:space-between;gap:20px}.screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.toast{position:fixed;bottom:22px;left:calc(50% + 100px);transform:translateX(-50%);background:var(--text);color:var(--bg);padding:13px 22px;border-radius:12px;box-shadow:var(--shadow);max-width:min(500px,90vw);font-size:.8rem;z-index:100}.toast:empty{display:none}dialog{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:20px;padding:27px;max-width:min(730px,94vw);width:100%;max-height:88vh;overflow:auto;box-shadow:0 24px 90px #0008}dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.dialog-head h2{font-size:1.2rem}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.dialog-body p{font-size:.9rem}.backdrop-nav{display:none}.focus-label{cursor:pointer}.checklist{padding-left:22px;font-size:.86rem;line-height:1.9}.chart-status{font-size:.75rem;color:var(--muted);margin-top:12px;min-height:23px}.plan-row{display:flex;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.plan-day{min-width:65px;color:var(--brand);font-size:.75rem;font-weight:700}.plan-row p{margin:0;font-size:.84rem}.plan-row small{font-size:.72rem;color:var(--muted)}
@media(min-width:1500px){.hero-road{right:40px;width:40%}.content{padding-top:40px}.grid{gap:24px}}
@media(max-width:1150px){.sidebar{width:206px;padding-left:12px;padding-right:12px}.workspace{margin-left:206px}.topbar{padding:0 26px}.content{padding:27px 26px 35px}.grid-4{gap:12px}.metric{padding:16px}.grid-2{grid-template-columns:1.4fr 1fr}.hero{padding:26px}.hero-road{opacity:.45}.hero p{max-width:280px}.signal-grid,.study-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-layout{grid-template-columns:minmax(0,1fr) 195px}.question-panel{padding:23px}.footer{padding-left:26px;padding-right:26px}}
@media(max-width:850px){.grid-2{grid-template-columns:1fr}.grid-4{grid-template-columns:repeat(2,1fr)}.exam-card{min-height:220px}.grid-equal{grid-template-columns:1fr}.exam-layout{grid-template-columns:1fr}.exam-aside{position:static}.question-grid{grid-template-columns:repeat(10,1fr)}.q-legend{display:flex;flex-wrap:wrap}.settings-grid{grid-template-columns:1fr 1fr}.date-label{display:none}.hero-road{opacity:.9;width:35%}.hero p{max-width:340px}.glossary{grid-template-columns:1fr}}
@media(max-width:650px){:root{--font:15px}.sidebar{transform:translateX(-100%);width:255px;transition:transform .2s}.sidebar.open{transform:translateX(0)}.sidebar.open+.backdrop-nav{display:block;position:fixed;inset:0;background:#0008;z-index:29;border:0}.workspace{margin:0}.mobile-menu{display:inline-grid}.topbar{padding:0 18px;height:65px}.content{padding:24px 17px 30px}.breadcrumb{font-size:.72rem}.page-heading{margin-bottom:22px;gap:13px}.page-heading .chip{display:none}.page-heading p{font-size:.82rem}.panel{padding:20px}.hero{padding:25px;min-height:277px}.hero h2{max-width:270px}.hero p{max-width:260px}.hero-road{opacity:.4;right:-20px;width:43%}.grid{gap:15px}.grid-4{gap:12px}.metric{padding:17px}.metric-value{font-size:1.75rem}.metric-head{font-size:.71rem}.signal-grid,.study-grid{gap:12px}.signal-card{padding:14px;gap:10px}.signal-image{height:122px;padding:12px}.signal-image img{max-height:95px}.signal-card b{font-size:.71rem}.study-grid{grid-template-columns:1fr}.grid-3{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.question-title{font-size:1.1rem}.question-panel{padding:20px 17px}.option{padding:13px;font-size:.88rem}.exam-top{flex-wrap:wrap}.question-grid{grid-template-columns:repeat(7,1fr)}.exam-actions{flex-wrap:wrap}.exam-actions .btn{flex:1}.result-facts{gap:20px}.result-score{font-size:3.5rem}.footer{padding:0 18px 25px;display:block}.footer span{display:block;margin:6px 0}.toast{left:50%;bottom:15px}.resume{flex-wrap:wrap;padding:16px}.question-list-card{padding:16px;gap:10px}.question-list-card>.icon-btn{width:32px;height:32px}.top-tools{gap:9px}.readiness{grid-template-columns:100px 1fr;gap:15px}.ring{width:100px;height:100px}.question-picture img{max-height:220px}.btn{padding:11px 13px}.btn.compact{padding:8px 10px}.plan-row{gap:12px}.filters{gap:10px}.filters input,.filters select{min-width:0;width:100%;flex:auto}.filters .field{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}[data-reduced=true] *,[data-reduced=true] *:before,[data-reduced=true] *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
@media print{.sidebar,.topbar,.footer,.btn,.filters{display:none!important}.workspace{margin:0}.content{padding:0}.panel{break-inside:avoid;box-shadow:none}body{background:#fff;color:#111}}

[data-theme=light] .btn.primary,[data-theme=light] .brand-mark{color:#fff}[data-theme=light] .hero .btn.primary{color:#192a1c}

.hero .btn.ghost{color:#deeff2;border-color:#6d949b}

/* 3.0: denser navigation, review tools, touch-friendly editor. */
.sidebar{padding-top:22px;overflow-y:auto}.brand{padding-bottom:17px}.nav{gap:2px}.nav button{padding:9px 12px;min-height:42px;font-size:.82rem}.sidebar-end{padding-top:16px}.nav-caption{margin-top:0}.field textarea,textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);color:var(--text);resize:vertical}.field input,.field select{width:100%}.field.inline input{width:auto;flex:none}.editor-option{display:grid;grid-template-columns:70px 1fr;gap:12px;margin:12px 0}.editor-option input[type=text]{width:100%}.editor-option>input{min-width:0;width:100%}fieldset{border:1px solid var(--line);border-radius:12px;padding:14px}legend{font-size:.82rem;padding:0 6px}.image-editor{box-shadow:none}.crop-source{width:auto;max-width:100%;max-height:380px;display:block;margin:15px auto;background:#fff}.zoom-image{max-width:100%;height:auto;display:block;margin:auto}.visual-art{background:#0b1524;border-radius:14px;margin-bottom:20px}.visual-art img{width:100%;height:auto;max-height:245px;object-fit:contain;display:block}.visual-card p{min-height:65px}.negative-cue{font-weight:650;margin-top:8px}.import-preview{max-height:340px;overflow:auto}.import-preview article{padding:12px 0;border-bottom:1px solid var(--line)}.plan-task.complete{border-color:var(--green)}.complete h3:before{content:'✓ ';color:var(--green)}details{margin:15px 0}summary{cursor:pointer;color:var(--brand);font-size:.86rem;min-height:32px}code{font-size:.8em;overflow-wrap:anywhere}.question-picture .btn{display:flex;width:max-content;margin:10px auto 0;background:var(--surface2);color:var(--text)}.source{overflow-wrap:anywhere}.history-row{flex-wrap:wrap}#reaction-speed{width:100%;accent-color:var(--brand)}.dialog-actions{flex-wrap:wrap}.content{overflow-wrap:anywhere}.question-list-card h3{overflow-wrap:anywhere}input[type=file]{max-width:100%}#question-form>fieldset{margin-left:0;margin-right:0} .nav button:focus-visible{outline-offset:-2px}
@media(max-width:650px){.sidebar{padding-top:18px;padding-bottom:18px}.brand{padding-bottom:14px}.nav button{min-height:43px;padding:10px 12px}.profile{margin-top:12px;padding-top:12px}.local-status{display:none}.editor-option{grid-template-columns:55px minmax(0,1fr);gap:7px}.visual-art img{max-height:205px}.question-picture{padding:10px}.dialog-actions .btn{flex:1}dialog{padding:20px}.field.inline{min-height:36px} .settings-grid{min-width:0}.panel{min-width:0}}


/* RUTA B4 quality tools and focused examination. */
.tool-tabs{display:flex;flex-wrap:wrap;gap:8px}.training-modes{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:14px}.training-modes .panel{padding:19px}.map-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(80px,180px) auto;gap:15px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.map-row span{display:block}.table-scroll{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:.81rem}td,th{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.revision{border:1px solid var(--line);border-radius:10px;padding:15px;margin:12px 0}.model-chart{width:100%;height:auto;display:block;margin-top:15px}.hotspot-canvas{position:relative;width:min(100%,630px);margin:auto;aspect-ratio:630/400}.question-picture .hotspot-canvas img{width:100%;max-height:none;display:block;height:auto}.hotspot{position:absolute;transform:translate(-50%,-50%);min-width:44px;min-height:44px;border-radius:50%;border:2px solid #e9faff;background:#13283dcd;color:#fff;font-weight:700;box-shadow:0 0 0 3px #10203277;z-index:2}.hotspot.chosen{background:#69dfcf;color:#072c2c;border-color:#fff}.hotspot:active{transform:translate(-50%,-50%)!important}.concentration{max-width:1100px}.concentration .question-title{font-size:1.35rem}.concentration .exam-top .eyebrow{letter-spacing:.06em}@media(max-width:650px){.map-row{grid-template-columns:1fr}.training-modes{grid-template-columns:1fr}.tool-tabs .btn{flex:1;min-width:130px}.concentration .question-title{font-size:1.15rem}.table-scroll{font-size:.75rem}.hotspot{min-width:44px;min-height:44px}}

.exam-focus .sidebar,.exam-focus .mobile-menu,.exam-focus .top-tools{display:none}.exam-focus .workspace{margin-left:0}.exam-focus .topbar{height:48px}.exam-focus .content{max-width:1220px;padding-top:22px}.exam-focus .footer{display:none}

.question-picture>.tiny{color:#324b62}

/* 4.1 educational controls */
.editor-reason41{grid-column:1/-1}.calc-steps41{padding-left:22px}.calc-data41{display:flex;gap:10px;flex-wrap:wrap}.calc-data41 span{padding:6px 10px;background:var(--surface2);border-radius:8px}.selection-table41{max-height:440px;overflow:auto}.concept-grid41{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:15px}.sign-challenge41 .btn{min-height:44px}.concept-card41{border:1px solid var(--line);border-radius:12px;padding:17px}.signal41-image{max-height:170px;max-width:100%;object-fit:contain}.calc-hint41{border-left:3px solid var(--brand);padding:12px 18px;margin:15px 0;background:var(--surface2)}

.sidebar{overflow-y:auto}.editor-option{align-items:start}

/*4.2 sessions and study tools*/
.session-controls42{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.pause-panel42{max-width:760px;margin:32px auto;padding:36px}.pause-panel42 h2{font-size:2rem;margin:24px 0}.confidence42{border:1px solid var(--line);border-radius:12px;margin:22px 0;padding:16px}.confidence42 legend{font-size:.82rem;padding:0 6px}.confidence42 label{display:inline-flex;gap:6px;margin:10px 18px 0 0;font-size:.82rem;align-items:center}.scenario-preview42{width:100%;height:auto;max-height:350px;object-fit:contain;background:#0c1523;border-radius:12px}.owner-warning42{border:2px solid var(--warn)}[inert]{opacity:.68}.visual-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:18px}@media(max-width:600px){.pause-panel42{padding:20px;margin:16px 0}.session-controls42 .flex{width:100%}.session-controls42 button{flex:1}.confidence42 label{display:flex}}
/* 4.3 learning surfaces share the existing palette and responsive shell. */
.nav-group43{border-top:1px solid var(--line);padding:8px 0}.nav-group43 summary{padding:10px 12px;color:var(--muted);font-size:.8rem;cursor:pointer}.nav-group43[open] summary{color:var(--text)}.nav-group43 button{padding-left:20px}.action-grid43{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.tabs43{display:flex;gap:8px;flex-wrap:wrap}.lesson-image43{display:block;width:100%;max-height:550px;object-fit:contain;border-radius:14px;background:#f4f7f8}.example43{margin-top:20px;padding:18px;border-radius:12px;border-left:4px solid #69cbb3;background:rgba(105,203,179,.06)}.example43.bad{border-left-color:#dfac71;background:rgba(223,172,113,.06)}.example43 p{font-size:.9rem;margin-top:8px}.component-grid43{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.component43{display:flex;align-items:center;gap:12px;min-height:65px;padding:12px;color:var(--text);background:var(--surface2);border:1px solid var(--line);border-radius:12px;text-align:left;cursor:pointer}.component43.selected{border-color:#62d9c4;box-shadow:0 0 0 1px #62d9c4}.component43 img{width:48px;height:48px;object-fit:contain;flex-shrink:0;background:#0d1924;border-radius:8px}.warning-symbol43{width:100px;height:85px;object-fit:contain;background:#0d1924;border-radius:14px;padding:10px;float:right;margin:0 0 15px 15px}.dashboard43,.scenario-stage43{display:block;width:100%;height:auto;max-height:520px;margin:18px 0;overflow:visible}.svg-target43{cursor:pointer}.svg-target43:focus{outline:3px solid #e6b86a;outline-offset:3px}.component-detail43 h3{font-size:.9rem;margin-bottom:7px}.comparison43 .grid{margin:15px 0}.compare-row43{border-bottom:1px solid var(--line);padding:14px 0}.steps43{display:flex;flex-wrap:wrap;gap:10px;padding:0;list-style:none;margin:22px 0 0}.steps43 li{flex:1 1 125px;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:.8rem;color:var(--muted)}.steps43 .current{border-color:#62d9c4;color:var(--text);background:rgba(98,217,196,.1)}.steps43 .done{border-color:#7b9d85}.formula-bars43{padding:18px 0}.formula-bars43>div{margin-bottom:15px}.formula-bars43 span{font-size:.82rem}.formula-bars43>div>div{height:16px;background:#64c3e6;margin-top:6px;border-radius:5px}.formula-bars43>div:nth-child(2)>div{background:#e0b465}.historical43{margin-bottom:18px}.move-car43{animation:cross-lane43 2.5s ease-in-out forwards}@keyframes cross-lane43{to{transform:translateY(-300px)}}[data-reduced="true"] .move-car43{animation:none}@media(prefers-reduced-motion:reduce){.move-car43{animation:none}}@media(max-width:650px){.component-grid43{grid-template-columns:1fr}.dashboard43,.scenario-stage43{min-width:0;max-height:none}.action-grid43{grid-template-columns:1fr}.steps43 li{flex-basis:100px}.tabs43 .btn{font-size:.78rem;flex:1}.warning-symbol43{width:75px;height:65px}.history-row{flex-wrap:wrap;gap:12px}}

/* Post-exam record, sign comparisons and guided practice. */
.assessment-label44 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: .95rem;
}
.signal-detail-image44 {
  display: grid;
  place-items: center;
  margin: 0 0 14px;
  padding: 16px;
  min-height: 180px;
  border-radius: 12px;
  background: var(--surface2);
}
.signal-detail-image44 img,
.expanded-sign44 {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 245px;
  object-fit: contain;
}
.expanded-sign44 {
  width: 100%;
  max-height: min(65vh, 550px);
}
.signal-pair44,
.signal-options44 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 12px;
  margin-top: 16px;
}
.signal-pair44 article,
.signal-pair44 figure,
.component-choice44 {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
  text-align: center;
  overflow-wrap: anywhere;
}
.signal-pair44 img,
.signal-option44 img,
.control-symbol44 {
  display: block;
  width: min(100%, 145px);
  height: 116px;
  margin: 0 auto 8px;
  object-fit: contain;
}
.signal-pair44 figure:only-child img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 290px;
  margin-bottom: 0;
}
.signal-options44 {
  border: 0;
  padding: 0;
  min-width: 0;
}
.signal-options44 legend {
  padding: 0;
  margin-bottom: 8px;
  color: var(--muted);
}
.signal-option44 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 12px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
  cursor: pointer;
}
.signal-option44:has(img) {
  grid-template-columns: 1fr;
  justify-items: center;
}
.signal-option44:has(input:checked),
.signal-option44:focus-within,
.component-choice44:hover {
  border-color: var(--brand);
}
.signal-option44.correct44 {
  border-color: var(--green);
}
.signal-option44 input { accent-color: var(--brand); }
.formula-expression44 {
  color: var(--brand);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.exam-card .countdown { margin: 12px 0; }
#real-exam-form44 .confidence42 { margin-top: 16px; }
@media (max-width: 540px) {
  .signal-options44 { grid-template-columns: 1fr; }
  .signal-options44:has(img) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-option44 img, .component-choice44 img, .control-symbol44 { height: 94px; }
}
.signal-filters44 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.signal-filters44 > input,
.signal-filters44 > select {
  flex: 1 1 210px;
  min-width: 0;
}
.signal-filters44 label.field.inline {
  display: inline-flex;
  gap: 7px;
  width: auto;
  min-width: 0;
  align-items: center;
}
.signal-filters44 label.field.inline input { flex: none; }
.signal-detail-image44 img { max-height: 200px; }


/* =============== RUTA B 4.4 · Diseño Pro (presentation-only) ===============
   Non-destructive UI enhancement. App logic and question bank are unchanged. */
:root {
  --bg:#090f1a;
  --surface:#131f2e;
  --surface2:#1b2a3a;
  --line:#324257;
  --text:#f1f6fc;
  --muted:#adbed1;
  --brand:#72ead7;
  --green:#b7eb88;
  --blue:#5e97ff;
  --warn:#ffd18c;
  --red:#ffaaa8;
  --shadow:0 10px 30px rgba(0,0,0,.13);
  --radius:19px;
  --font:16px;
}
[data-theme="light"] {
  --bg:#f2f6fb;
  --surface:#ffffff;
  --surface2:#f4f8fc;
  --line:#dce5ee;
  --text:#192a3e;
  --muted:#50647c;
  --brand:#087b72;
  --green:#438323;
  --blue:#255dd2;
  --warn:#8c580f;
  --red:#b52939;
  --shadow:0 8px 28px rgba(27,48,75,.052);
}
html {scroll-padding-top:26px}
body {line-height:1.6;letter-spacing:.003em;font-family:Inter,'Segoe UI',system-ui,-apple-system,Arial,sans-serif}
h1 {font-size:clamp(2rem,3.1vw,2.65rem);line-height:1.13;letter-spacing:-.048em}
h2 {font-size:1.27rem;letter-spacing:-.025em}
h3 {font-size:1.06rem}
.muted,.source,.metric-foot,.small {line-height:1.58}
.eyebrow {font-size:.72rem;letter-spacing:.12em}
.sidebar {width:255px;padding:27px 17px 21px;background:var(--surface);border-right:1px solid var(--line)}
.workspace {margin-left:255px}
.brand {gap:12px;padding:1px 9px 23px}
.brand-mark {height:46px;width:46px;border-radius:14px;box-shadow:0 6px 18px rgba(40,179,164,.13)}
.brand-name {font-size:1.5rem;letter-spacing:-.04em}
.brand-caption {font-size:.66rem;line-height:1.5;letter-spacing:.03em}
.nav-caption {font-size:.7rem;letter-spacing:.115em;margin:8px 13px 11px}
.nav {gap:5px}
.nav button {font-size:.9rem;padding:12px 13px;min-height:45px;border:1px solid transparent;border-radius:12px;gap:12px}
.nav button:hover {background:var(--surface2);color:var(--text)}
.nav button.active {background:rgba(105,223,207,.11);border-color:rgba(105,223,207,.19);color:var(--brand);font-weight:700}
.nav button.active:after {height:7px;width:7px}
.nav-group43 {padding:9px 0;border-color:var(--line)}
.nav-group43 summary {padding:12px 13px;font-size:.86rem;border-radius:10px;color:var(--muted)}
.nav-group43 summary:hover {background:var(--surface2);color:var(--text)}
.nav-group43 button {padding-left:22px}
.profile {gap:12px}
.avatar {width:39px;height:39px;border-radius:12px}
.topbar {height:76px;padding:0 38px;background:var(--bg);border-bottom-color:var(--line)}
.breadcrumb {font-size:.87rem}
.icon-btn {height:41px;width:41px;border-radius:12px}
.content {max-width:1440px;padding:35px 38px 52px}
.page-heading {margin-bottom:27px}
.page-heading p {font-size:.95rem}
.panel {border-radius:19px;padding:26px;box-shadow:var(--shadow)}
.panel h2 {line-height:1.35}
.grid {gap:19px}
.grid-4 {gap:16px}
.hero {min-height:295px;padding:34px 34px 30px;background:linear-gradient(112deg,#134454,#115056 60%,#123b4d);border:1px solid #36757c;border-radius:23px}
.hero h2 {font-size:clamp(2rem,3.2vw,2.8rem);max-width:460px;letter-spacing:-.046em;margin:14px 0}
.hero p {font-size:.95rem;max-width:400px;line-height:1.7;color:#d1e9e7}
.hero .eyebrow {color:#a0f9e8}
.hero-road {right:8px;width:37%;opacity:.75}
.hero .btn.primary {background:#baf080;color:#142813}
.btn {font-size:.9rem;font-weight:700;min-height:43px;padding:11px 17px;border-radius:11px;transition:background .17s,border-color .17s,transform .17s,box-shadow .17s}
.btn:not(:disabled):hover {box-shadow:0 4px 15px rgba(22,64,68,.15)}
.btn.primary {background:var(--brand);color:#082d2c}
[data-theme="light"] .btn.primary {color:#fff}
.btn.compact {padding:8px 12px;min-height:38px;font-size:.81rem}
.btn.ghost:hover {background:var(--surface2)}
.chip,.badge {font-size:.74rem;padding:6px 11px}
.metric {padding:23px;min-height:145px;border-radius:16px}
.metric-head {font-size:.81rem;line-height:1.4}
.metric-value {font-size:2.2rem;letter-spacing:-.055em;margin:16px 0 8px}
.metric-foot {font-size:.75rem}
.exam-date {font-size:3.15rem;margin:14px 0 12px}
.exam-date span {font-size:1rem}
.exam-location {font-size:.86rem;line-height:1.6}
.task {gap:14px;padding:17px 0}
.task-icon {width:43px;height:43px;border-radius:12px}
.task-body b {font-size:.92rem}
.task-body p {font-size:.79rem;line-height:1.5}
.section-title {margin-bottom:19px}
.section-title h2 {font-size:1.23rem}
.readiness p,.countdown {font-size:.85rem}
.progress {height:9px}
.question-list-card {gap:18px;padding:20px 22px;border-radius:15px}
.question-list-card h3 {font-size:1rem;line-height:1.55}
.signal-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.signal-card {border-radius:16px;padding:19px;gap:11px;transition:background .17s,border-color .17s,transform .17s}
.signal-card:hover {transform:translateY(-2px);background:var(--surface2)}
.signal-image {height:170px;border-radius:13px;padding:13px}
.signal-image img {max-height:143px}
.signal-card b {font-size:.89rem;line-height:1.5}
.signal-card small {font-size:.75rem;line-height:1.45}
.study-card {padding:25px;border-radius:17px}
.study-card p {font-size:.9rem;line-height:1.7}
.study-card h3 {font-size:1.08rem}
.lesson-image43 {max-height:610px;border-radius:16px}
.component43 {padding:14px;min-height:72px;border-radius:13px;font-size:.89rem}
.component43:hover,.component43:focus-visible {border-color:var(--brand);background:var(--surface)}
.component43 img {width:56px;height:56px}
/* Exam mode: reduce reading effort and clearly differentiate selections. */
.exam-shell {max-width:1160px}
.exam-layout {grid-template-columns:minmax(0,1fr) 245px;gap:24px}
.question-panel {padding:34px 36px;border-color:var(--line)}
.question-number {font-size:.78rem;letter-spacing:.11em;margin:13px 0 14px}
.question-title {font-size:clamp(1.28rem,1.65vw,1.58rem);line-height:1.58;font-weight:730;letter-spacing:-.022em;margin-bottom:25px}
.question-picture {padding:19px;margin:16px 0 26px;border:1px solid var(--line);border-radius:16px}
.question-picture img {max-height:350px}
.question-picture .tiny {font-size:.8rem}
.options {gap:13px;margin:22px 0}
.option {gap:15px;align-items:flex-start;padding:17px 18px;font-size:1rem;line-height:1.55;border-radius:13px;transition:background .17s,border-color .17s,box-shadow .17s}
.option:hover {border-color:var(--brand);background:rgba(114,234,215,.045)}
.option.selected,.signal-option44:has(input:checked) {background:rgba(114,234,215,.10);border-color:var(--brand);box-shadow:inset 0 0 0 1px rgba(114,234,215,.3)}
.option input {margin-top:4px;width:21px;height:21px}
.option-label {line-height:1.6}
.option-key {font-size:.98rem}
.option.correct {border-color:var(--green);background:rgba(183,235,136,.085)}
.option.wrong {border-color:var(--red);background:rgba(255,170,168,.065)}
.exam-aside {padding:22px}
.timer {font-size:1.35rem;font-weight:750;border-radius:13px;padding:11px 16px}
.question-grid {gap:9px}
.q-num {border-radius:9px;font-size:.83rem;min-width:33px}
.feedback {padding:22px 23px;border-radius:0 13px 13px 0}
.feedback p {font-size:.93rem;line-height:1.75}
.confidence42 {padding:20px;border-radius:14px}
.confidence42 legend {font-size:.92rem;font-weight:650}
.confidence42 label {font-size:.9rem}
.exam-actions {padding-top:24px;gap:12px}
.result-score {font-size:4.7rem}
.result-facts b {font-size:1.42rem}
.result-facts span {font-size:.77rem}
/* Forms, charts, tables and informational surfaces. */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea {border-radius:11px;min-height:43px;font-size:.92rem}
input:focus,select:focus,textarea:focus {border-color:var(--brand)}
article p,.article li {line-height:1.83}
.table-scroll {border-radius:12px}
table {font-size:.89rem}
td,th {padding:14px 13px;line-height:1.6}
th {font-weight:700;color:var(--text)}
.revision,.concept-card41 {border-radius:14px;padding:19px}
details {scroll-margin-top:30px}
summary {font-size:.91rem;line-height:1.55}
.notice {font-size:.86rem;line-height:1.65;padding:15px 18px;border-radius:13px}
.notice.info {color:var(--text)}
.signal-detail-image44 {min-height:210px;border-radius:15px}
.signal-detail-image44 img {max-height:235px}
.signal-pair44 article,.signal-pair44 figure,.component-choice44 {border-radius:14px;padding:17px}
.signal-pair44 img,.signal-option44 img {height:125px}
.signal-option44 {padding:14px;border-radius:13px;font-size:.9rem}
.lesson-image43 {background:#fff}
dialog {border-radius:22px;padding:31px;box-shadow:0 28px 90px rgba(0,0,0,.35)}
.dialog-head h2 {font-size:1.34rem}
.footer {padding-top:18px}
/* Both desktop and narrow layouts get the same spacing / typography treatment. */
@media(max-width:1200px) {
  .sidebar {width:220px;padding-left:12px;padding-right:12px}
  .workspace {margin-left:220px}
  .content {padding:29px 25px 38px}
  .topbar {padding:0 25px}
  .question-panel {padding:28px}
  .exam-layout {grid-template-columns:minmax(0,1fr) 205px;gap:17px}
  .hero {padding:29px}
}
@media(max-width:850px) {
  .grid-2,.grid-equal {grid-template-columns:1fr}
  .exam-layout {grid-template-columns:1fr}
  .exam-aside {position:static}
  .question-grid {grid-template-columns:repeat(10,minmax(0,1fr))}
  .hero-road {width:35%;opacity:.55}
  .signal-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px) {
  :root {--font:16px}
  .sidebar {width:274px;padding:20px 12px}
  .workspace,.exam-focus .workspace {margin:0}
  .topbar {height:65px;padding:0 16px}
  .content {padding:20px 14px 33px}
  .page-heading {align-items:flex-start;margin-bottom:20px}
  .page-heading p {font-size:.86rem}
  .panel {padding:19px;border-radius:16px}
  .hero {min-height:295px;padding:24px 22px;border-radius:18px}
  .hero h2 {font-size:2rem;max-width:265px}
  .hero p {font-size:.9rem;max-width:270px}
  .hero-road {width:43%;opacity:.32}
  .grid,.grid-4 {gap:12px}
  .metric {padding:17px;min-height:130px}
  .metric-head {font-size:.75rem}
  .metric-value {font-size:1.9rem}
  .exam-date {font-size:2.6rem}
  .signal-grid {gap:12px}
  .signal-card {padding:13px}
  .signal-image {height:144px;padding:8px}
  .signal-image img {max-height:125px}
  .signal-card b {font-size:.81rem}
  .study-card {padding:20px}
  .question-panel {padding:22px 17px}
  .question-title,.concentration .question-title {font-size:1.23rem;line-height:1.6}
  .question-picture {padding:11px;margin:14px 0 22px}
  .question-picture img {max-height:280px}
  .option {font-size:.98rem;padding:15px 13px;gap:11px}
  .options {gap:10px}
  .timer {font-size:1.2rem}
  .exam-actions .btn {min-height:45px}
  .confidence42 {padding:15px}
  .confidence42 label {display:flex;margin:12px 0 0}
  .question-grid {grid-template-columns:repeat(7,minmax(0,1fr))}
  .dialog-head h2 {font-size:1.18rem}
  dialog {padding:21px}
  .component43 img {width:50px;height:50px}
  .signal-options44:has(img) {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}
}
/* Ensure exam focus stays distraction free after all desktop overrides. */
.exam-focus .sidebar,.exam-focus .mobile-menu,.exam-focus .top-tools {display:none}
.exam-focus .workspace {margin-left:0}
.exam-focus .content {max-width:1240px;padding-top:25px}
.exam-focus .topbar {height:48px}

/* Desafío 280 */
.challenge-hero280 {
  display:grid;grid-template-columns:1.6fr 1fr;gap:24px;align-items:center;color:var(--text);
  background:linear-gradient(125deg,var(--surface2),var(--surface));border-color:var(--line);
}
.challenge-hero280 h2 {margin-top:0;color:var(--text)}
.challenge-hero280 p {color:var(--muted)}
.challenge-hero280 .challenge-meter280 {display:grid;gap:9px;padding:18px;border-radius:16px;background:var(--surface);border:1px solid var(--line)}
.challenge-meter280 strong {font-size:clamp(1.6rem,4vw,2.6rem);font-variant-numeric:tabular-nums}
.progress280 {display:block;width:100%;height:10px;appearance:none;border:0;border-radius:10px;background:var(--line);overflow:hidden;accent-color:var(--blue)}
.progress280::-webkit-progress-bar {background:var(--line)}
.progress280::-webkit-progress-value {background:var(--blue);border-radius:10px}
.progress280::-moz-progress-bar {background:var(--blue);border-radius:10px}
.blocks280 {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.block280 {background:var(--surface2);border:1px solid var(--line);border-radius:14px;padding:15px}
.block280 h3 {margin:0 0 6px}
.block280 p {margin:0 0 12px}
.choices280 {display:grid;gap:8px;min-width:0;padding:0;margin:20px 0;border:0}
.choices280 legend {margin-bottom:10px;color:var(--muted);font-size:.88rem}
.choice280 {display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:10px;cursor:pointer;padding:12px 14px;min-height:45px;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}
.choice280.chosen,.choice280:focus-within {border-color:var(--blue)}
.choice280 input {margin:4px 0 0;width:17px;height:17px;accent-color:var(--blue)}
.matching280 {display:grid;grid-template-columns:minmax(0,1fr) minmax(115px,36%);align-items:center;gap:10px}
.figure280 {margin:16px 0;display:grid;justify-items:center;gap:8px}
.figure280 img {display:block;width:min(100%,620px);max-height:420px;object-fit:contain;background:#fff;border-radius:10px}
.source-canvas280 {display:block;width:100%;height:auto;background:#fff;border-radius:7px}
.grid280 {max-height:420px;overflow-y:auto;padding:3px}
.grid280 .q-num,.browse280 .q-num {min-height:40px}
.browse280 {grid-template-columns:repeat(auto-fill,minmax(44px,1fr))}
.layout280 .exam-aside {min-width:0}
.layout280 .question-panel [aria-pressed=true] {border-color:var(--blue);color:var(--blue)}
.review-options280 {display:grid;gap:9px;margin:16px 0}
.review-options280 article {background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.review-options280 p {margin:5px 0;font-size:.9rem}
.result-item280 {padding:12px 0;border-bottom:1px solid var(--line)}
.result-item280 .feedback {margin-top:10px}
.availability45,.bank-count45 {display:grid;grid-template-columns:repeat(auto-fit,minmax(116px,1fr));gap:8px}
.availability45>div,.bank-count45>div {background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column}
.availability45 b,.bank-count45 dd {font-size:1.35rem;font-weight:750;margin:0;font-variant-numeric:tabular-nums}
.availability45 span,.bank-count45 dt {font-size:.78rem;color:var(--muted)}
@media(max-width:1050px) { .blocks280 {grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:550px) {
  .challenge-hero280 {grid-template-columns:1fr;gap:16px}
  .challenge-hero280 .challenge-meter280 {padding:12px}
  .layout280 .question-panel {padding:16px}
  .availability45,.bank-count45 {grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid280 {grid-template-columns:repeat(auto-fill,minmax(39px,1fr));max-height:248px}
  .blocks280 {gap:8px}
  .block280 {padding:11px}
}

:root {--bg:#101823;--surface:#152130;--surface2:#1a2838;--line:#2b3a4d;--brand:#70dbc3}
[data-theme=light] {--bg:#edf2f4;--surface:#fff;--surface2:#f3f7f8;--line:#d4e0e6;--brand:#076a60}
.sidebar .brand-mark {background:#c9ea9a;color:#172a26}
.sidebar .brand-caption {letter-spacing:.07em}
.nav button {min-height:42px}
.nav-group43 summary {font-size:.8rem;line-height:1.5;color:var(--muted)}
.nav-group43[open] summary {color:var(--text)}
.header46 {display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:20px}
.header46 h1 {margin:0;font-size:clamp(1.5rem,3vw,2.4rem);line-height:1.1;letter-spacing:-.035em}
.eyebrow46 {font-size:.78rem;font-weight:700;color:var(--brand);margin:0 0 8px}
.hero46 {
  position:relative;overflow:hidden;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(235px,.85fr);
  min-height:302px;margin-bottom:18px;border:1px solid #354e56;border-radius:20px;
  color:#f0f7f5;background:linear-gradient(112deg,#1b3138,#172a38 69%,#182634)
}
.hero-copy46 {padding:clamp(22px,4vw,42px);position:relative;z-index:1}
.hero-copy46 h2 {font-size:clamp(2.1rem,4.25vw,4.45rem);line-height:.98;letter-spacing:-.06em;margin:21px 0 15px}
.hero-copy46 p {color:#bfdbd8;max-width:425px;font-size:.92rem;margin:0 0 23px}
.date46 {display:inline-flex;align-items:center;gap:7px;color:#dbefeb;font-size:.76rem;font-weight:650}
.date46 .icon {width:16px;height:16px;color:#84daca}
.hero46 .btn.primary,[data-theme=light] .hero46 .btn.primary {background:#c9ea9a;color:#172a26;border-color:#c9ea9a;font-weight:750}
.hero-secondary46 {color:#edf8f5;background:#253f47;border-color:#426468}
.road46 {position:relative;min-height:220px;align-self:stretch}
.road46 svg {position:absolute;inset:0;width:100%;height:100%;opacity:.88}
.road-sign46 {position:absolute;object-fit:contain;max-width:19%;width:75px;height:75px;filter:drop-shadow(0 9px 9px #0006)}
.road-sign46.first46 {top:26%;left:29%;transform:rotate(-8deg);border-radius:50%}
.road-sign46.second46 {top:49%;right:9%;transform:rotate(6deg)}
.road-date46 {position:absolute;right:15px;bottom:15px;font-size:.73rem;color:#dcebe5;border:1px solid #69858e;padding:5px 10px;border-radius:20px;background:#142533}
.metrics46 {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 17px}
.metrics46 .metric {padding:15px;min-width:0}
.metrics46 .metric-value {font-size:clamp(1.45rem,3vw,2.2rem);line-height:1.22}
.dashboard-grid46 {display:grid;grid-template-columns:minmax(0,1.28fr) minmax(0,.72fr);gap:16px;margin-bottom:17px}
.dashboard-grid46 h2,.mode46 h2,.prep46 h2 {font-size:1.22rem;line-height:1.22}
.route-row46 {display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.route-row46:last-child {border-bottom:0;padding-bottom:0}
.route-row46 h3 {font-size:.95rem;line-height:1.25;margin:0}
.route-row46 p,.weak46 p {font-size:.77rem;color:var(--muted);margin:4px 0 0}
.mode-icon46 {display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:color-mix(in srgb,var(--brand) 15%,var(--surface2));color:var(--brand)}
.weak46 {padding:5px 0 10px;font-size:.87rem}
.weak46 progress {display:block;width:100%;height:6px;margin-top:7px;accent-color:var(--brand)}
.prep46 {display:flex;justify-content:space-between;align-items:center;gap:14px}
.prep46 p {margin:4px 0 0}
.prep46 button {flex-shrink:0}
.mode-grid46 {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.mode46 {display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0}
.mode46 h2,.mode46 p {margin:0}
.mode46 p {font-size:.88rem}
.mode46>.btn {margin-top:auto}
.mode46.feature46 {border-color:color-mix(in srgb,var(--brand) 56%,var(--line))}
.attempts46 {max-height:330px;overflow:auto}
.compare-signs46 {display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:10px}
.compare-signs46 article {border:1px solid var(--line);border-radius:13px;background:var(--surface2);padding:13px;min-width:0}
.compare-signs46 img {display:block;height:115px;width:100%;object-fit:contain;border-radius:8px;background:white;padding:8px;margin-bottom:8px}
.compare-signs46 h3,.error-card46 h3 {font-size:1rem;line-height:1.3}
.error-card46 {margin-bottom:10px}
.error-card46 h3 {margin-top:10px}
.retry-option46 {display:block;max-width:110px;max-height:100px}
.plan46 li {margin-bottom:14px}
.plan46 p {margin:4px 0}
.distance-values46 {border:1px solid var(--line);border-radius:14px;padding:4px 14px;background:var(--surface2)}
.distance-values46>div:not(.distance-bar46) {display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid var(--line)}
.distance-values46 strong {font-variant-numeric:tabular-nums}
.distance-bar46 {margin:12px 0 8px;height:10px;border-radius:8px;background:linear-gradient(90deg,var(--brand) var(--reaction),var(--warn) var(--reaction))}
.manual-toolbar46 {display:flex;flex-wrap:wrap;align-items:flex-end;gap:9px;margin-bottom:14px}
.manual-toolbar46 .field {margin:0}
.manual-toolbar46 input {width:90px}
.manual-canvas46 {overflow:auto;max-width:100%;max-height:72vh;background:#c4cdd4;border-radius:8px}
.manual-canvas46 canvas {display:block;height:auto;max-width:none;margin:0 auto;background:#fff}
body[data-view46=session] .question-title {font-size:clamp(1.3rem,2.45vw,2rem);line-height:1.3;text-wrap:pretty}
body[data-view46=session] .question-picture img {max-height:350px}
body[data-view46=session] .option {min-height:50px}
body[data-view46=session] .q-num {min-height:40px}
@media(max-width:1150px) {
  .mode-grid46 {grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero46 {grid-template-columns:minmax(0,1.25fr) minmax(190px,.75fr)}
}
@media(max-width:850px) {
  .dashboard-grid46 {grid-template-columns:1fr}
  .metrics46 {grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero46 {grid-template-columns:minmax(0,1fr) minmax(100px,.42fr)}
  .road-sign46 {max-width:38%;width:59px;height:59px}
}
@media(max-width:650px) {
  .hero46 {display:block;min-height:0}
  .hero-copy46 {padding:22px 19px}
  .hero-copy46 h2 {font-size:clamp(2.12rem,9.4vw,3.15rem)}
  .hero-copy46 p {max-width:100%}
  .road46 {display:none}
  .metrics46 {gap:8px}
  .metrics46 .metric {padding:12px}
  .mode-grid46,.prep46 {display:grid;grid-template-columns:1fr}
  .prep46 .btn {justify-self:start}
  .route-row46 {grid-template-columns:34px minmax(0,1fr) auto;gap:8px}
  body[data-view46=session] .question-grid {grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
  body[data-view46=session] .exam-top {align-items:flex-start;gap:8px}
  body[data-view46=session] .question-panel {padding:15px}
}
@media(max-width:355px) {
  .header46 {align-items:flex-start}
  .header46 .btn {padding-inline:8px;font-size:.75rem}
  .route-row46 {grid-template-columns:32px minmax(0,1fr)}
  .route-row46 .btn {grid-column:2;justify-self:start}
}

/* Academy layouts inherit RUTA B color, type, responsive sidebar and reduced motion. */
.quick47 {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-block:18px}
.quick-card47 {display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.quick-card47 h2 {font-size:1rem;margin:0}
.quick-card47 p {margin:4px 0 0}
.quick-card47 .btn {margin-left:auto}
.book47 {display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,1.65fr);gap:16px;align-items:start}
.book-index47,.book-content47,.law-card47 {min-width:0}
.book-index47 {padding:16px}
.book-content47 {display:grid;gap:13px}
.chapter47,.contrast47 {border-top:1px solid var(--line);padding:9px 0}
.chapter47:first-of-type {margin-top:12px}
.chapter47 summary,.contrast47 summary {cursor:pointer;font-weight:680;padding:7px 0}
.chapter47 summary small {display:block;font-weight:500;color:var(--muted);margin:3px 0 0 16px}
.book-item47 {text-align:left;display:block;width:100%;margin-top:4px;background:transparent;white-space:normal;overflow-wrap:anywhere}
.book-item47 small {display:block;color:var(--muted);margin-top:3px}
.book-item47[aria-current] {border-color:var(--brand);background:var(--surface2)}
.lesson47 h2 {margin-top:10px;font-size:clamp(1.25rem,3vw,2.05rem)}
.summary47 {font-size:1.04rem;line-height:1.65}
.detail47 {display:grid;gap:12px;margin:12px 0}
.detail47 > div {padding:10px 14px;border-inline-start:3px solid var(--brand);background:var(--surface2);border-radius:4px 9px 9px 4px}
.detail47 dt {font-weight:700;margin-bottom:4px}
.detail47 dd {margin:0;line-height:1.55}
.law-tabs47 {display:flex;gap:6px;flex-wrap:wrap}
.law-tabs47 small {margin-left:4px}
.law-tabs47 .btn[aria-pressed="true"] {border-color:var(--brand);background:var(--surface2)}
.law-grid47 {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:start}
.law-card47 {scroll-margin-top:78px}
.law-card47 h3 {margin-top:8px}
.law-grade47[data-grade="gravisima"],.law-grade47[data-grade="delito"] {border:1px solid var(--brand)}
.tutor-options47 {padding-inline-start:24px}
.tutor-options47 li {padding:10px 0;border-bottom:1px solid var(--line)}
.tutor-options47 .badge {margin-left:7px;vertical-align:middle}
.tutor-options47 p {margin:4px 0 0}
.tutor-image47 {max-height:40vh;object-fit:contain}
.table-wrap47 {overflow:auto}
.table47 {width:100%;border-collapse:collapse;text-align:left}
.table47 th,.table47 td {padding:9px;border-bottom:1px solid var(--line);vertical-align:top}
.chapter47 :focus-visible,.law-tabs47 :focus-visible,.tutor-options47 :focus-visible {outline:2px solid var(--brand);outline-offset:2px}
[data-view46="book47"] .btn,[data-view46="law47"] .btn,[data-view46="tutor47"] .btn {min-height:40px}
@media(max-width:1050px) {.quick47 {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:790px) {
  .book47,.law-grid47,.quick47 {grid-template-columns:minmax(0,1fr)}
  .book-index47 {max-height:65vh;overflow:auto}
  .book47 .btn,.law-tabs47 .btn,.law-grid47 .btn {min-height:44px}
}
@media(prefers-reduced-motion:reduce) {.book47 *, .law-grid47 * {scroll-behavior:auto;animation:none;transition:none}}



:root{--edge48:color-mix(in srgb,var(--brand) 35%,var(--line));--paper48:var(--surface);--pad48:clamp(1rem,2.6vw,2.7rem)}
html,body{max-width:100%}.workspace,.content,.panel,.grid>*,.book-content47,.topbar>.flex{min-width:0}
.sr48{position:absolute;width:1px;height:1px;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
[hidden]{display:none!important}.content :where(button,select,input):focus-visible,.topbar :focus-visible,.nav :focus-visible,dialog :focus-visible,summary:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.bread-brand48{font-weight:750;font-size:1rem}.bread-brand48 span,.crumb48{color:var(--muted)}
.crumb48{display:flex;gap:.32rem;flex-wrap:wrap;align-items:center;font-size:.87rem;font-weight:500}.crumb-home48.btn{margin:0;padding:.2rem;min-height:32px;border:0;background:none;color:var(--brand)}
.tools48,.shortcuts48,.reader-mainbar48,.reader-tools48,.reader-scale48,.reader-switch48,.reader-foot48,.tour-controls48{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.tools48{flex-wrap:nowrap;gap:.25rem}.tools48 .icon-btn{min-width:42px;min-height:42px;padding:.4rem}.tools48 .help48{width:auto;gap:.35rem}.context48{display:flex;justify-content:flex-end;margin-bottom:.6rem}
.content button,.content select,.content summary,.tour-controls48 .btn,.access-check48{touch-action:manipulation}
.home48{display:grid;gap:1rem}.home-hero48{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1fr auto;align-items:center;gap:1.2rem;padding:clamp(1.4rem,3.9vw,3.7rem);background:linear-gradient(118deg,#102f31,#154744 67%,#25605b);color:#f7fff9;border:1px solid #407469;border-radius:24px}
.home-hero48::before{content:"";position:absolute;z-index:-1;width:85%;height:220%;left:42%;top:-38%;transform:rotate(26deg);background:repeating-linear-gradient(90deg,transparent 0 47px,#dafff00c 48px 49px,transparent 50px 62px)}
.home-hero48 h1{margin:.2rem 0 .9rem;max-width:14ch;font-size:clamp(2.4rem,4.6vw,4.9rem);line-height:.99;letter-spacing:-.055em;color:#f8fff9}.home-label48{margin:0 0 1.25rem;color:#b5e9cb;font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.82rem}.home-next48{color:#e7f4ec;margin:0 0 .75rem;font-size:1.02rem}
.home-hero48 .primary{background:#d4f1ac;color:#102923;border-color:transparent;min-height:46px;font-weight:750}
.cover48{border:0;padding:0;background:none;color:white;display:grid;justify-items:center;gap:.7rem;cursor:pointer;font-weight:700;margin:0 2vw}.cover48 img{display:block;width:clamp(110px,15vw,190px);height:auto;border-radius:3px 7px 7px 3px;box-shadow:5px 4px 0 #d6dfd4,9px 8px 28px #051e2580;transform:rotate(3deg)}.cover48 span{font-size:.87rem}
.welcome48{display:flex;flex-wrap:wrap;gap:.8rem;align-items:center;justify-content:space-between;padding:1rem 1.25rem;background:var(--surface);border:1px solid var(--edge48);border-radius:14px}.welcome48 p{margin:.2rem 0 0;font-size:.91rem}
.intent-grid48{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}
.intent48{min-width:0;text-align:left;display:grid;gap:.45rem;align-content:start;justify-items:start;padding:1.2rem;border:1px solid var(--line);background:var(--surface);border-radius:15px;color:var(--text);cursor:pointer}.intent48:hover,.cover48:hover img{border-color:var(--brand)}.intent48 strong{font-size:1.22rem;letter-spacing:-.025em}.intent48>span:last-child{font-size:.9rem;color:var(--muted);line-height:1.45}
.intent-icon48{width:2.6rem;height:2.6rem;display:grid;place-items:center;background:color-mix(in srgb,var(--brand) 13%,var(--surface));color:var(--brand);border-radius:11px;margin-bottom:.35rem}.intent-icon48 svg{width:1.4rem;height:1.4rem}
.home-bottom48,.directory48,.tour-library48{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.home-bottom48 .panel h2,.directory48 h2,.tour-library48 h2{margin-top:0}
.read-meter48{display:flex;align-items:baseline;gap:.65rem;flex-wrap:wrap}.read-meter48 strong{font-size:2rem}.read-meter48 small{font-size:.95rem;color:var(--muted)}.home48 progress,.tour-panel48 progress{width:100%;height:.45rem;accent-color:var(--brand);border:0;background:var(--line);border-radius:30px}
.search48{margin-bottom:1rem;max-width:45rem}.shortcuts48 .btn,.reader48 .btn,.context48 .btn,.access-check48,.preferences48 select,.micro48 summary,.tour-library48 .btn{min-height:44px}.access-check48{display:flex;align-items:center;gap:.8rem}
.micro48,.reader-details48{border-top:1px solid var(--line);padding:.45rem 0}.micro48 summary,.reader-details48 summary{padding:.6rem .15rem;cursor:pointer}.micro48 summary small{display:block;padding-left:1.1rem;color:var(--muted);font-size:.85rem}.coverage-row48{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;border-top:1px solid var(--line);padding:.6rem 0}
.reader48{border:1px solid var(--line);border-radius:16px;padding:var(--pad48);background:var(--surface);min-width:0}
.reader-heading48,.tour-meta48{display:flex;gap:1rem;justify-content:space-between;align-items:center;flex-wrap:wrap}.reader-heading48 h1{margin:.2rem 0 1rem}.reader-heading48 p{margin:0}.reader-mainbar48,.reader-tools48{margin:.5rem 0 1rem}
.reader-goto48{display:grid;gap:.1rem;margin:0}.reader-goto48 label,.reader-pageinfo48{font-size:.82rem;color:var(--muted)}.reader-goto48>div{display:flex;gap:.25rem}.reader-goto48 input{width:4.75rem;min-width:0;min-height:44px}.reader-scale48 select{width:auto;max-width:100%;min-height:44px}.reader-switch48 .btn[aria-pressed=true]{border-color:var(--brand);color:var(--brand);font-weight:750;background:var(--surface2)}.reader-details48>summary{font-weight:650}.reader-results48{display:grid;gap:.25rem;max-height:13rem;overflow-y:auto}.reader-results48 button{text-align:left;white-space:normal}
.paper48{display:block;background:#54616a;border-radius:9px;padding:2px;overflow:auto;width:100%;height:clamp(340px,70vh,1100px);overscroll-behavior:contain}.paper48 canvas{display:block;max-width:none;max-height:none;margin:0 auto;background:white}
.flow48{background:var(--surface2);color:var(--text);padding:clamp(.9rem,3vw,2rem);border:1px solid var(--line);border-radius:10px;margin:.7rem auto;overflow-wrap:anywhere}.flow48 p{max-width:var(--reader-width);font-size:var(--reader-size);line-height:var(--reader-leading);margin:0 auto var(--reader-space);white-space:normal}.flow48 .flow-note48{font-size:1rem;margin-bottom:1.2rem;border-bottom:1px solid currentColor;padding-bottom:.6rem}.flow48[data-paper=sepia]{background:#f3e7cc;color:#34271d}.flow48[data-paper=dark]{background:#121b20;color:#eef5f3}.flow48[data-paper=light]{background:white;color:#1c2927}.flow48[data-paper=contrast]{background:black;color:white}
.reader-foot48{margin:1rem 0 0;justify-content:space-between}.wide-reader48 :is(.sidebar,.topbar,.footer,.context48,.backdrop-nav){display:none!important}.wide-reader48 .workspace{margin-left:0!important;width:100%}.wide-reader48 .content{max-width:none!important;padding:0!important}.wide-reader48 .reader48{border-radius:0;min-height:100dvh}.wide-reader48 .paper48{height:75vh}
#tour48:modal{position:fixed;inset:0;max-width:none;max-height:none;width:100%;height:100%;padding:0;margin:0;border:0;background:transparent;color:var(--text);border-radius:0;overflow:hidden;box-shadow:none}#tour48::backdrop{background:transparent}.tour-hole48{position:fixed;border:3px solid #a6f6ca;border-radius:.6rem;box-shadow:0 0 0 160vmax rgb(0 12 17 / 70%);pointer-events:none}.tour-panel48{position:fixed;width:min(25rem,calc(100vw - 14px));max-height:calc(100dvh - 12px);overflow:auto;padding:1rem;border:1px solid var(--brand);background:var(--surface);border-radius:14px;box-shadow:0 8px 36px #0006}.tour-panel48 h2{margin:.6rem 0 .25rem;font-size:1.25rem}.tour-panel48 p{font-size:1rem;line-height:1.45}.tour-panel48 progress{display:block;margin-top:.4rem}.tour-meta48{color:var(--brand);font-size:.9rem;font-weight:650}.tour-meta48 .btn{min-height:36px}.tour-controls48 .btn{min-height:44px}
.sign-target48,.compare-sign48{display:flex;gap:1rem;align-items:center;justify-content:center;flex-wrap:wrap;margin:.7rem 0}.sign-target48 img,.sign-opts48 img,.compare-sign48 img{object-fit:contain;padding:.6rem;border-radius:8px;background:#fff}.sign-target48 img{width:clamp(120px,25vw,225px);height:clamp(120px,25vw,225px)}.sign-opts48 img,.compare-sign48 img{width:5.5rem;height:5.5rem}.compare-sign48 button{display:grid;justify-items:center}.detail-sign48{border-top:1px solid var(--line);margin-top:1rem}.detail-sign48 details .btn{margin:.25rem}
html[data-high48=true]{--bg:#000;--surface:#0a0a0a;--surface2:#151515;--text:#fff;--muted:#eee;--line:#c6c6c6;--brand:#aaffef;--green:#e1ff9f;--blue:#004caa;--warn:#ffed8a}html[data-high48=true] :is(.sidebar,.topbar,.panel,.intent48,.nav-group43,.reader48,.home-hero48,.workspace,.home48){background:#080808!important;color:white!important}html[data-high48=true] :is(.small,.muted,.date-label,.nav-caption,.brand-caption){color:#eee}
@media(max-width:950px){.intent-grid48{grid-template-columns:repeat(2,minmax(0,1fr))}.tools48 .help48 span,.bread-brand48 span{display:none}.topbar{gap:.25rem}}
@media(max-width:650px){.home-bottom48,.directory48,.tour-library48{grid-template-columns:1fr}.welcome48{align-items:start}.home-hero48{padding:1.1rem;gap:.75rem;border-radius:16px}.cover48{margin:0}.cover48 img{width:clamp(74px,20vw,124px)}.cover48 span{font-size:.76rem}.home-hero48 h1{font-size:clamp(2rem,7.6vw,3rem)}.home-label48{font-size:.75rem;margin-bottom:.6rem}.topbar{flex-wrap:wrap}.topbar>.flex{flex:1;flex-wrap:nowrap}.crumb48{font-size:.8rem}.workspace .content{max-width:100%}.book47,.grid,.settings-grid,.filters{min-width:0}.reader48{padding:.75rem}.home48 .btn,.intent48{white-space:normal}.intent48{padding:.8rem}.intent48 strong{font-size:1.05rem}.reader-foot48>.btn{max-width:100%}.review-row,.micro48{overflow-wrap:anywhere}.paper48{height:58vh}.reader-mainbar48{gap:.35rem}.tour-panel48{padding:.75rem}.tour-controls48{gap:.3rem}}
@media(max-width:380px){.topbar .tools48{gap:0}.tools48 .icon-btn{min-width:36px;min-height:38px}.crumb48{display:none}.cover48 img{width:67px}.intent48>span:last-child{font-size:.84rem}.home-hero48 h1{font-size:1.9rem}.home-next48{font-size:.85rem}.content .grid-4,.content .grid-3{grid-template-columns:1fr}.field input,.field select{max-width:100%}.welcome48 .btn{font-size:.82rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* El diálogo ocupa la capa superior. La zona transparente deja ver el control original. */
#tour48:modal,
#tour48:modal::backdrop {
  background: transparent;
  opacity: 1;
  filter: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#tour48 .tour-hole48 {
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  background: transparent;
  box-shadow: 0 0 0 180vmax rgb(8 23 35 / 18%);
  pointer-events: none;
}
#tour48 .tour-panel48 {
  box-sizing: border-box;
  margin: 0;
  opacity: 1;
  filter: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--text);
  background-color: var(--surface);
  box-shadow: 0 2px 7px rgb(12 26 35 / 23%);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#tour48 .tour-controls48 { display: flex; flex-wrap: wrap; gap: .35rem; }
#tour48 :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (forced-colors: active) {
  #tour48 .tour-hole48 { outline: 3px solid Highlight; box-shadow: none; }
  #tour48 .tour-panel48 { border-color: CanvasText; background: Canvas; color: CanvasText; }
}
.paper48 { scrollbar-gutter: stable; overflow-anchor: none; position: relative; }
.paper48[data-loading49="true"]::before {
  display: block; padding: 1.5rem; content: "Preparando la página…"; color: white;
}

.acciones49 { display:flex; flex-wrap:wrap; gap:.65rem 1rem; padding:.65rem .2rem; font-size:.88rem }
.acciones49 a,.acciones49 a:visited { color:var(--brand); text-decoration:underline; text-underline-offset:.2em }
#sync-state49 { color:var(--muted); min-height:1.3em }
