/* DocGato · identidad clínica aurora. Diseño original, sin símbolos de terceros. */
:root{--ink:#153445;--teal:#087f82;--deep:#102d42;--paper:#10293b;--line:#cfe1e3;--muted:#5b7581;--mint:#e3f7f1;--shadow:0 22px 55px rgba(5,30,46,.16)}
html{background:#10293b}body{background:#10293b;color:var(--ink)}
.shell{grid-template-columns:264px minmax(0,1fr);background:#10293b}
.sidebar{background:linear-gradient(165deg,#071c30 0%,#103550 58%,#0a3c45 100%);border-right:1px solid rgba(161,228,224,.16);box-shadow:14px 0 48px rgba(2,18,31,.13);z-index:6}
.sidebar:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 10% 9%,rgba(45,181,181,.2),transparent 35%),radial-gradient(circle at 93% 87%,rgba(73,121,185,.22),transparent 40%);pointer-events:none}
.sidebar>*{position:relative}.sidebar .logo{font-size:21px;letter-spacing:-.7px;display:flex;align-items:center;gap:5px}.sidebar .logo span{color:#78e2cf}.sidebar .logo small{color:#a5d1d1}
.nav a,.nav button{border:1px solid transparent!important;border-radius:14px;transition:background .18s,border-color .18s,transform .18s}.nav a:hover,.nav button:hover{background:rgba(133,222,222,.11)!important;transform:translateX(3px)}.nav a.active,.nav button.active{background:linear-gradient(100deg,rgba(32,160,163,.39),rgba(78,130,177,.23))!important;border-color:rgba(152,243,230,.39)!important;box-shadow:inset 3px 0 #72e5d2,0 7px 20px rgba(3,28,45,.14);color:#fff!important}.side-foot{border-color:rgba(170,226,225,.2);color:#b6d2d6}
.main{position:relative;isolation:isolate;background:radial-gradient(ellipse 58% 40% at 92% 3%,rgba(87,149,202,.46),transparent 70%),radial-gradient(ellipse 52% 43% at 2% 53%,rgba(28,160,155,.25),transparent 75%),linear-gradient(150deg,#16384c 0%,#173f59 40%,#112b46 69%,#0a2534 100%);min-height:100vh}
.main:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(rgba(174,230,224,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(174,230,224,.045) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,#000,transparent 70%)}
.topbar{background:rgba(8,35,53,.72);border-bottom:1px solid rgba(201,242,238,.16);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);color:#eaf8f7}.crumb{color:#a8c8d0}.crumb strong{color:#fff}.mobile{color:#fff}.pill{background:rgba(219,248,245,.14);border:1px solid rgba(215,251,246,.26);color:#e3f8f4;padding:8px 13px}.avatar{background:linear-gradient(135deg,#7bdbc9,#91b9db);color:#0d3444}.logout{background:rgba(235,250,248,.1);color:#fff;border-color:rgba(235,250,248,.27)}.logout:hover{background:rgba(235,250,248,.2)}
.content{max-width:1300px;padding-top:40px}.content>.eyebrow,.content>.section-head,.content>.page-title,.content>.page-desc,.content>h1,.content>h2,.content>p:first-child{color:#f4fcfb}.content>.page-desc{color:#c6dcdf}.content>.eyebrow,.eyebrow{color:#39d1bd}.content>.section-head h2{color:#f4fcfb}.content>.section-head .muted{color:#c1d7da}.content>p:first-child a{color:#abebdf}
.page-intro,.hero{background:linear-gradient(125deg,rgba(8,43,61,.92),rgba(18,100,108,.78) 62%,rgba(71,129,170,.67));border:1px solid rgba(190,246,239,.26);box-shadow:0 26px 70px rgba(3,28,45,.23);color:#fff}.page-intro:after,.hero:after{opacity:.5}.page-intro .page-title,.page-intro .page-desc,.hero h1{color:#fff}.page-intro .page-desc,.hero p{color:#d3e9e9}
.card,.control-card{background:rgba(250,254,254,.95);border:1px solid rgba(208,232,233,.9);border-radius:23px;box-shadow:0 16px 40px rgba(4,31,48,.14)}.card h2,.card h3{letter-spacing:-.4px}.grid{gap:17px}.metric .m-icon,.mode .m-icon{background:linear-gradient(135deg,#d4f7ed,#dceefa);color:#0c6671}.metric strong{color:#11354a}.mode,.room-entry,.room-topic,.study-room-card,.editor-nav-item,.module-tile{transition:transform .18s,box-shadow .18s,border-color .18s,background .18s}.mode:hover,.room-entry:hover,.room-topic:hover,.study-room-card:hover,.editor-nav-item:hover,.module-tile:not(:disabled):hover{transform:translateY(-3px);border-color:#8bd8cc;box-shadow:0 22px 48px rgba(2,37,55,.22)}
.primary{background:linear-gradient(110deg,#087b84,#158f8a);color:#fff;box-shadow:0 8px 18px rgba(3,107,116,.2)}.primary:hover{background:linear-gradient(110deg,#096d77,#107e7c)}.secondary{background:#f5fcfb;color:#145265;border-color:#bedcdd}.secondary:hover{background:#e3f4f1}.primary,.secondary,.text-button,.logout{min-height:40px}.primary:focus-visible,.secondary:focus-visible,.text-button:focus-visible,.nav a:focus-visible,.nav button:focus-visible,.answer:focus-visible,.editor-nav-item:focus-visible{outline:3px solid #e9b56a;outline-offset:3px}
.field input,.field select,.field textarea,.form input,.form select,.form textarea,.toolbar select,.toolbar input,.install-card input{background:#fbfefe;color:#123445;border-color:#bbd4d8;border-radius:12px}.field input:focus,.field select:focus,.field textarea:focus,.form input:focus,.form select:focus,.form textarea:focus,.toolbar input:focus,.toolbar select:focus{border-color:#0e9a96;box-shadow:0 0 0 4px rgba(22,171,162,.2)}
.question{background:linear-gradient(145deg,rgba(247,253,252,.98),rgba(232,245,247,.96));border-color:rgba(195,234,230,.9);box-shadow:0 28px 65px rgba(3,30,49,.24)}.question h2{color:#103447}.question-head{color:#0b7880}.answer{border:1px solid #bad6db;background:#fff;border-radius:15px;min-height:62px;transition:transform .15s,background .15s,border-color .15s,box-shadow .15s}.answer:hover{transform:translateX(3px);background:#eef9f7;border-color:#53aeb0;box-shadow:0 8px 18px rgba(6,73,86,.1)}.answer b{background:#e3f4f2;color:#136570;font-weight:800;flex:none}.answer.selected{background:#e7f7f1;border-color:#159982}.answer.correct{background:#ddf7e9;border-color:#168f63}.answer.wrong{background:#fff0ed;border-color:#d48675}
.editor-nav-item{background:rgba(249,253,253,.96);border-radius:17px}.editor-nav-item.active{background:#dcf5ed;border-color:#48ad9e;box-shadow:inset 4px 0 #159988,0 10px 25px rgba(5,57,69,.13)}.editor-shortcut{color:#123445}.home-quick,.room-intro,.room-summary,.room-focus,.room-source{background:linear-gradient(120deg,rgba(246,253,251,.98),rgba(221,244,241,.96));border-color:#a9dcd5}.room-entry,.room-topic{border-top:4px solid #38a99d}.room-entry .badge,.room-topic .badge{justify-self:start}.room-source a{color:#077b7a}
.modal-wrap,.signup-backdrop{background:rgba(3,17,31,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.modal,.signup-dialog{background:#f9fdfc;border:1px solid #cce5e4;border-radius:24px;box-shadow:0 28px 85px rgba(0,20,37,.36)}.report{background:#ebf5f4}.balance{background:#ddf4eb}
.signin,.install{background:radial-gradient(ellipse 55% 55% at 83% 13%,rgba(82,156,202,.52),transparent 72%),radial-gradient(ellipse 65% 60% at 9% 88%,rgba(25,160,154,.36),transparent 71%),linear-gradient(145deg,#09253b,#173e56 60%,#092637)}.signin-card,.install-card{background:rgba(249,254,253,.96);border:1px solid rgba(196,236,233,.74);box-shadow:0 32px 90px rgba(1,18,31,.35);border-radius:28px}.signin-card .logo,.install-card .logo{color:#103c49}.signin-card .logo span,.install-card .logo span{color:#07887e}

/* Páginas autónomas y panel de instituciones */
body>.content{min-height:100vh}body>.content>.card{margin:18px 0}body>.content a{color:#167f83}body>.content>p:first-child a{color:#b8f1e8}
body>.legal-wrap,body>.manual-wrap{min-height:100vh}body>.legal-wrap .card,body>.manual-wrap .card{background:#f9fdfc}body>.legal-wrap>p,body>.manual-wrap>p{color:#deeff0}
.secure-exam{background:linear-gradient(150deg,#102c41,#16485a)}.secure-header{background:rgba(6,32,49,.94)}.secure-content{background:#f9fdfc;border-radius:22px}.secure-option{border-radius:13px}
@media(max-width:820px){.shell{display:block}.sidebar{width:min(290px,85vw)}.content{padding:28px 18px 66px}.topbar{padding:0 18px}.main{min-height:100vh}}
@media(max-width:560px){.content{padding:23px 14px 56px}.topbar{height:62px}.card{border-radius:18px;padding:19px}.page-intro,.hero{padding:27px 22px}.question h2{font-size:clamp(20px,6vw,27px)}.answer{padding:12px;min-height:55px}.editor-nav{gap:8px}.editor-nav-item{border-radius:13px}.signin-card,.install-card{border-radius:21px}}
@media(prefers-reduced-motion:reduce){.nav a,.nav button,.mode,.room-entry,.room-topic,.study-room-card,.editor-nav-item,.module-tile,.answer{transition:none!important}.mode:hover,.room-entry:hover,.room-topic:hover,.study-room-card:hover,.editor-nav-item:hover,.module-tile:not(:disabled):hover,.answer:hover,.nav a:hover,.nav button:hover{transform:none!important}}
/* Anatomía legible aun si los fotogramas tardan en cargar. */


.room-group .section-head h2,.room-group .section-head .muted,.room-group .section-head span{color:#f4fcfb}
/* Ajustes de lectura y contención: cada bloque respeta su ancho. */
.shell,.main,.content,.grid,.card,.home-quick,.room-entry,.room-topic{min-width:0}
.sidebar{overflow-x:hidden}.sidebar .logo{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.15;max-width:100%;font-size:21px}.sidebar .logo .brand-icon{float:left;margin:0 9px 2px 0}.sidebar .logo small{display:block;clear:both;padding-top:5px;font-size:9px;letter-spacing:.12em;line-height:1.35;white-space:normal;color:#a5d1d1}
.topbar{min-width:0;gap:12px}.crumb{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions{flex:none}
.content{width:100%;max-width:none;overflow-wrap:break-word}.content .card,.content .page-intro{max-width:100%}.content h1,.content h2,.content h3,.content strong{overflow-wrap:anywhere}.home-quick>div{min-width:0}

.year-pattern{margin:15px 0;padding:15px;border-radius:13px;background:#e7f5f2;display:grid;gap:9px}.year-pattern small{display:block;color:#4c6870}.year-pattern>div{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.year-chip{display:inline-block;padding:3px 9px;background:#fff;border:1px solid #a9d9d4;border-radius:999px;font-size:12px;font-weight:700;color:#0d6670}
.progress-panels{margin-top:18px}.progress-panels>.card{min-width:0}.progress-panels h2{margin-top:0}.trend-chart{height:190px;display:flex;align-items:end;gap:5px;overflow-x:auto;padding:12px 2px 0}.trend-day{height:100%;min-width:32px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:6px}.trend-bar{height:145px;width:100%;max-width:35px;border-radius:8px 8px 0 0;background:#e9f0f0;display:flex;flex-direction:column-reverse;overflow:hidden}.trend-good{display:block;width:100%;background:#138f88}.trend-miss{display:block;width:100%;background:#f2aa82}.trend-day small{font-size:10px;color:#5a727a;white-space:nowrap}.progress-delta{font-size:clamp(28px,4vw,46px)}.progress-delta.positive{color:#07856f}.progress-delta.negative{color:#b85f47}.progress-table-wrap{overflow-x:auto}.progress-table{width:100%;border-collapse:collapse;font-size:13px}.progress-table th,.progress-table td{padding:10px 7px;border-bottom:1px solid #dce9e8;text-align:left}.progress-table thead th{font-size:11px;color:#59717a}.accuracy-cell{display:flex;align-items:center;gap:7px;white-space:nowrap}.accuracy-track{width:50px;height:7px;background:#e4eeee;border-radius:5px;overflow:hidden}.accuracy-track i{display:block;height:100%;background:#0f9288;border-radius:5px}

@media(max-width:820px){.topbar{gap:8px}}
@media(max-width:620px){.top-actions .avatar{display:none}.topbar .pill{display:none}.progress-panels{grid-template-columns:1fr}}
.progress-dashboard{isolation:isolate}.progress-metrics>.card{background:linear-gradient(145deg,rgba(19,58,81,.94),rgba(17,43,76,.92));border:1px solid rgba(119,229,245,.27);color:#f0ffff;box-shadow:0 16px 36px rgba(2,18,43,.19),inset 0 1px rgba(255,255,255,.13)}.progress-metrics .muted,.progress-metrics small{color:#afd0de}.progress-glass{position:relative;overflow:hidden;background:linear-gradient(140deg,rgba(17,49,76,.94),rgba(24,38,85,.92) 64%,rgba(42,26,91,.92));border:1px solid rgba(121,218,255,.28);color:#eefbff;box-shadow:0 20px 45px rgba(1,17,41,.23),inset 0 1px rgba(255,255,255,.1)}.progress-glass:before{content:"";position:absolute;width:220px;height:220px;right:-105px;top:-125px;background:radial-gradient(circle,rgba(55,226,218,.27),transparent 68%);pointer-events:none}.progress-glass h2{color:#fff;position:relative}.progress-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.progress-eyebrow{display:block;color:#75efe3;font-size:11px;font-weight:800;letter-spacing:.17em;margin-bottom:9px}.progress-badge{flex:none;border:1px solid rgba(115,237,229,.38);border-radius:999px;padding:7px 11px;background:rgba(52,234,220,.11);color:#bffff7;font-size:11px;font-weight:800}.progress-muted,.progress-note,.progress-glass .muted,.progress-glass .help{color:#b9d5e5}.progress-note{font-size:12px;margin:20px 0 0}.progress-glass .trend-chart{height:230px;gap:7px;border-bottom:1px solid rgba(135,215,237,.2)}.progress-glass .trend-bar{height:180px;max-width:38px;border-radius:12px 12px 2px 2px;background:rgba(142,195,227,.11);box-shadow:inset 0 0 0 1px rgba(172,225,244,.07)}.progress-glass .trend-good{background:linear-gradient(0deg,#14aaa8,#69f6e9);box-shadow:0 0 17px rgba(65,238,227,.62)}.progress-glass .trend-miss{background:linear-gradient(0deg,#aa55d8,#e7a1ff);box-shadow:0 0 13px rgba(208,125,255,.48)}.progress-glass .trend-day small{color:#a8c6db}.progress-legend{display:flex;gap:20px;flex-wrap:wrap;margin-top:14px;font-size:12px;color:#cbebf4}.progress-legend span{display:flex;align-items:center;gap:7px}.progress-legend i{display:inline-block;width:9px;height:9px;border-radius:50%}.legend-good{background:#63f3e4;box-shadow:0 0 10px #63f3e4}.legend-miss{background:#dc91f8;box-shadow:0 0 10px #dc91f8}.benchmark-visual{display:grid;grid-template-columns:minmax(130px,180px) 1fr;align-items:center;gap:20px;margin-top:26px}.benchmark-ring{width:min(100%,180px);aspect-ratio:1;border-radius:50%;padding:13px;background:conic-gradient(#5ff2df var(--accuracy),rgba(159,205,238,.13) var(--accuracy));box-shadow:0 0 31px rgba(82,237,218,.26),inset 0 0 14px rgba(75,236,225,.2)}.benchmark-ring>div{height:100%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#173454;box-shadow:inset 0 0 27px rgba(3,20,44,.7)}.benchmark-ring strong{font-size:clamp(32px,4vw,52px);line-height:1;color:white}.benchmark-ring small{font-size:11px;color:#acd5e4;text-align:center}.benchmark-detail{min-width:0}.benchmark-detail>strong{font-size:clamp(20px,2vw,30px);color:#e9ffff}.benchmark-detail p{color:#c0dce9}.benchmark-detail small{color:#a9cddd}.benchmark-track{height:11px;border-radius:20px;background:rgba(177,222,243,.15);overflow:hidden;margin:16px 0 7px}.benchmark-track span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#5de9dc,#9b82fa);box-shadow:0 0 17px rgba(105,231,233,.75)}.progress-glass .progress-table th,.progress-glass .progress-table td{border-color:rgba(163,213,235,.16);color:#e8f8ff}.progress-glass .progress-table thead th{color:#a6cde0}.progress-glass .accuracy-track{background:rgba(180,220,240,.16)}.progress-glass .accuracy-track i{background:linear-gradient(90deg,#46dbce,#7af5e5);box-shadow:0 0 8px #54eadc}
@media(max-width:720px){.benchmark-visual{grid-template-columns:1fr;justify-items:start}.progress-card-top{flex-wrap:wrap}.progress-glass .trend-chart{gap:4px}.progress-glass .trend-day{min-width:27px}.progress-badge{margin-bottom:8px}}
.progress-dashboard .progress-metrics .metric strong{color:#f2ffff;text-shadow:0 0 18px rgba(90,242,226,.33)}.progress-dashboard .progress-metrics .metric>span:not(.m-icon){color:#b9dbe6}.progress-dashboard .progress-metrics .metric small{color:#d1e7ef}.progress-dashboard .progress-metrics .metric .m-icon{color:#073f4c}

/* DocGato UI 2026-10-29. Una escala, una familia y espacios consistentes. */
:root{--ink:#193b43;--muted:#60757c;--teal:#087f83;--deep:#123b43;--paper:#f4f7f8;--line:#dce6e8;--mint:#eaf6f3;--shadow:0 3px 14px rgba(22,54,64,.035);--font-app:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
html{font-family:var(--font-app);font-size:16px;background:var(--paper);-webkit-text-size-adjust:100%;text-size-adjust:100%}body{font-family:var(--font-app);font-size:15px;line-height:1.6;background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}button,input,select,textarea{font-family:inherit;font-size:14px;line-height:1.45}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.55}a{text-underline-offset:3px}svg{flex-shrink:0;vertical-align:middle}
.shell{grid-template-columns:240px minmax(0,1fr);background:var(--paper)}.main{background:var(--paper);isolation:auto}.main:before{display:none}.content{width:100%;max-width:1280px!important;margin:0 auto;padding:36px clamp(24px,3.5vw,48px) 64px;overflow-wrap:break-word}.content h1,.content h2,.content h3,.content strong{overflow-wrap:normal;word-break:normal}.content h1{font-size:30px;line-height:1.25;font-weight:750;letter-spacing:-.8px}.content h2{font-size:20px;line-height:1.35;font-weight:700;letter-spacing:-.35px}.content h3{font-size:17px;line-height:1.4;font-weight:650;letter-spacing:-.2px}.content p{line-height:1.7}.content>.section-head,.content>.section-head h2,.content>.page-title,.content>.page-desc,.content>h1,.content>h2,.content>p:first-child,.room-group .section-head h2,.room-group .section-head span{color:var(--ink)}.content>.section-head .muted,.room-group .section-head .muted{color:var(--muted)}
.sidebar{padding:28px 16px 22px;gap:23px;background:#133c44;border-right:0;box-shadow:none;overflow-y:auto;scrollbar-width:thin}.sidebar:before{display:none}.sidebar .logo{font-size:23px;letter-spacing:-.6px;font-weight:750;padding:0 8px;line-height:1.3}.sidebar .logo .brand-icon{width:30px;height:30px;margin-right:8px}.sidebar .logo small{font-size:9px;font-weight:650;letter-spacing:1.35px;padding-top:7px;color:#a9cbc9}.side-caption{font-size:10px;font-weight:650;letter-spacing:1.4px;margin:8px 12px 0;color:#9dbebb}.nav{gap:4px}.nav a,.nav button{font-size:14px;font-weight:550;min-height:44px;padding:10px 12px;gap:11px;border-radius:9px;line-height:1.4;transform:none!important;box-shadow:none!important}.nav a.active{background:#245760!important;border-color:transparent!important;box-shadow:inset 3px 0 #75d5c7!important}.nav a:hover{background:#204b54!important}.nav .icon{font-size:17px;width:22px;color:#b4d5d2}.institution-link{font-size:12px;line-height:1.5;color:#c3dcda!important;text-decoration:none;padding:0 12px}.institution-link:hover{text-decoration:underline}.side-foot{font-size:11px;line-height:1.6;color:#aac9c7;border-color:#31545a;padding:16px 10px 0}
.topbar{height:68px;padding:0 clamp(24px,3.5vw,48px);background:#fff;border-bottom:1px solid var(--line);backdrop-filter:none;-webkit-backdrop-filter:none;color:var(--ink);box-shadow:none;gap:16px}.crumb{color:var(--muted);font-size:13px}.crumb strong{color:var(--ink);font-weight:650}.top-actions{gap:12px}.pill{padding:6px 11px;background:#f0f7f5;color:#3c6964;border:1px solid #d5e8e3;font-size:11px;font-weight:650}.avatar{width:32px;height:32px;font-size:13px;background:#e4f0ec;color:#285a56}.logout{min-height:34px;padding:7px 12px;font-size:12px;font-weight:550;color:#4f696e;border:1px solid var(--line);background:#fff;border-radius:8px}.logout:hover{background:#f3f7f7}.mobile{color:var(--ink)}
.page-intro{padding:0!important;margin:0 0 28px!important;border:0!important;border-radius:0;background:none!important;box-shadow:none!important;max-width:900px}.page-intro:after{display:none}.page-intro .page-title{font-size:30px;line-height:1.25;margin:8px 0 12px;color:var(--ink);max-width:29ch;letter-spacing:-.8px}.page-intro .page-desc{font-size:15px;line-height:1.7;color:var(--muted);max-width:72ch;margin:0}.eyebrow,.page-intro .eyebrow{font-size:10px;font-weight:750;line-height:1.5;letter-spacing:1.7px;color:var(--teal)}.section-head{margin:28px 0 16px;align-items:center;gap:16px}.section-head h2{font-size:20px;margin:0}.section-head .muted,.section-head>span{font-size:12px;color:var(--muted)}
.card,.control-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:24px;box-shadow:var(--shadow);color:var(--ink)}.grid{gap:16px}.grid>*{min-width:0}.card h2:first-child,.card h3:first-child{margin-top:0}.card p:last-child{margin-bottom:0}.primary,.secondary,.text-button{font-size:13px;font-weight:650;letter-spacing:0;min-height:42px;border-radius:9px;padding:10px 15px;line-height:1.4;display:inline-flex;justify-content:center;align-items:center;gap:9px;text-decoration:none;transition:background .16s,border-color .16s;box-shadow:none;transform:none!important}.primary{background:#087f83;border:1px solid #087f83;color:#fff}.primary:hover{background:#066d72}.secondary{background:#fff;border:1px solid #d0e0e2;color:#2b5961}.secondary:hover{background:#f0f7f6;border-color:#97bfbc}.text-button{background:transparent;border:1px solid transparent;color:var(--teal);padding:7px 6px}.text-button:hover{background:#e9f3f1}.primary svg,.secondary svg{width:17px;height:17px}.primary:focus-visible,.secondary:focus-visible,.text-button:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #52b7b2;outline-offset:3px}.mode,.room-entry,.room-topic,.study-room-card,.editor-nav-item,.module-tile{transform:none!important}.mode:hover,.room-entry:hover,.room-topic:hover,.study-room-card:hover,.editor-nav-item:hover,.module-tile:not(:disabled):hover{transform:none!important;box-shadow:var(--shadow);border-color:#9ebfbd}.badge{font-size:10px;letter-spacing:.5px;font-weight:650;line-height:1.35;padding:4px 9px;background:#edf6f3;color:#38766c}.help,.muted{color:var(--muted)}.help{font-size:12px;line-height:1.65}.field,label.field{font-size:12px;line-height:1.4;font-weight:650;gap:8px;color:#405f67}.field input,.field select,.field textarea,.form input,.form select,.form textarea,.toolbar select,.toolbar input{min-height:44px;border-radius:9px;padding:10px 12px;background:#fff;border-color:#cfdee1;font-size:14px;color:var(--ink);font-weight:400}.field textarea,.form textarea{line-height:1.7;min-height:110px}.form{gap:18px}.toolbar{gap:16px;margin-bottom:22px}.toolbar label{min-width:180px}.form-grid{gap:18px}.row{padding:16px 0;gap:16px}.row strong{font-size:14px;line-height:1.5}.row small{font-size:12px}.row-actions{gap:8px}.editor-nav{gap:10px;margin:24px 0}.editor-nav-item{border-radius:10px;padding:13px;background:#fff;box-shadow:none}.editor-nav-item strong{font-size:13px}.editor-nav-item small{font-size:11px}.editor-nav-item.active{box-shadow:inset 3px 0 #168b83;background:#edf7f4}.editor-workspace{max-width:none}.editor-pages{font-size:12px}.alert{font-size:13px;padding:13px 16px;border:1px solid #bfdfce;border-radius:10px}.alert.error{border-color:#efc7bd}.empty{padding:40px 24px}.empty p{max-width:60ch;margin-inline:auto}
/* Biblioteca: tres entradas; los años contienen filas compactas. */
.study-library{max-width:1120px;margin:0 auto}.library-overview{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin:-2px 0 28px;padding-bottom:25px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}.library-overview strong{font-size:16px;color:var(--ink);font-weight:700;margin-right:3px}.library-overview-note{margin-left:auto;font-size:12px}.library-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.library-type{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:26px;min-height:310px;cursor:pointer;color:var(--ink);transition:border-color .16s,box-shadow .16s}.library-type:hover{border-color:#80bcb5;box-shadow:0 7px 24px rgba(22,75,77,.07)}.library-type-top{display:flex;align-items:center;justify-content:space-between;align-self:stretch;margin-bottom:25px}.library-icon{width:46px;height:46px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#edf6f3;color:#147d76;flex:none}.library-forward{color:#9aafb0}.library-type .library-caption{font-size:10px;font-weight:650;color:#6b8286;line-height:1.4;margin-bottom:6px;letter-spacing:.15px}.library-type h2{font-size:22px;margin:0 0 13px;line-height:1.3;letter-spacing:-.4px}.library-type p{font-size:14px;line-height:1.7;color:var(--muted);margin:0 0 24px;max-width:35ch}.library-type-footer{margin-top:auto;padding-top:18px;border-top:1px solid #e5ecee;align-self:stretch;font-size:12px;font-weight:600;color:#31726d}.library-study-link{margin-top:28px;display:flex;align-items:center;gap:18px;background:#edf5f3;border-color:#d6e8e2;box-shadow:none}.library-study-link>div{flex:1}.library-study-link h2{font-size:16px;margin:0 0 6px}.library-study-link p{font-size:13px;margin:0;color:#5e777c;max-width:66ch}.library-study-link>.secondary{flex:none}.library-breadcrumb{display:flex;align-items:center;gap:10px;font-size:12px;color:#6b8287;margin-bottom:22px}.library-breadcrumb button{font-size:12px;border:0;padding:0;background:none;color:var(--teal);font-weight:550;cursor:pointer}.library-filter-panel{display:flex;flex-wrap:wrap;gap:18px 24px;align-items:flex-end;padding:20px 22px;margin-bottom:18px}.library-filter-panel form{display:flex;align-items:flex-end;gap:10px;flex:1;min-width:260px}.library-search{flex:1}.search-input{position:relative;display:block}.search-input>svg{position:absolute;left:12px;top:13px;width:18px;height:18px;color:#81979c;pointer-events:none}.search-input input{padding-left:39px!important;width:100%}.library-selects{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end}.library-selects>.field{min-width:145px;flex:1}.library-selects .text-button{font-size:12px;white-space:nowrap}.library-result-summary{font-size:12px;color:var(--muted);margin:0 0 15px}.library-year{background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:14px;overflow:hidden}.library-year>summary{list-style:none;cursor:pointer;padding:18px 22px;display:flex;align-items:center;gap:18px;background:#fff;user-select:none;min-height:64px}.library-year>summary::-webkit-details-marker{display:none}.year-label{font-size:20px;font-weight:700;letter-spacing:-.4px;color:var(--ink)}.year-summary{font-size:12px;color:var(--muted)}.year-chevron{margin-left:auto;font-size:19px;color:#779297;transform:rotate(-90deg);transition:transform .12s}.library-year[open] .year-chevron{transform:rotate(0)}.library-year[open]>summary{background:#f9fbfb}.library-bank-list{border-top:1px solid var(--line);padding:0 22px}.library-bank{display:grid;grid-template-columns:38px minmax(0,1fr) 84px auto;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid #e8eff0}.library-bank:last-child{border-bottom:0}.bank-mark{display:flex;align-items:center;justify-content:center;width:36px;height:42px;background:#f1f6f5;border-radius:9px;color:#71958e}.bank-description{min-width:0}.bank-description h3{font-size:15px;margin:0 0 4px;font-weight:650;letter-spacing:0}.bank-description p{font-size:12px;line-height:1.5;margin:0;color:var(--muted)}.bank-quantity{text-align:right;display:grid;line-height:1.4;padding-right:12px}.bank-quantity strong{font-size:17px;color:#31575d;font-weight:650}.bank-quantity span{font-size:11px;color:#799095}.library-bank .secondary{min-height:38px;font-size:12px;padding:9px 14px}.library-segments{display:inline-flex;gap:5px;padding:5px;border:1px solid var(--line);border-radius:11px;background:#eaf0f1;margin-bottom:24px}.library-segments button{border:0;border-radius:7px;background:transparent;color:#627b80;padding:10px 16px;font-size:13px;font-weight:550;min-height:40px}.library-segments button.active{background:#fff;color:#24635f;box-shadow:0 1px 5px #183b4010}.library-empty{padding:32px;text-align:center}.library-empty>.library-icon{margin-bottom:14px}.library-empty h2{font-size:19px;margin:0 0 10px}.library-empty p{max-width:60ch;margin:0 auto 18px;color:var(--muted);font-size:14px}.library-documents{margin-top:24px}.library-documents>.section-head{margin:0 0 12px}.library-documents>p{max-width:65ch;color:var(--muted);font-size:14px;margin-bottom:22px}.document-years{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.document-years a{display:flex;align-items:center;justify-content:space-between;padding:12px 15px;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-size:13px;font-weight:600;color:#41686b}.document-years a:hover{background:#f0f8f4;border-color:#8dbeb2}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Sala y lectura: jerarquía compacta y ancho de línea controlado. */
.room-workspace{margin-bottom:0}.room-nav{gap:16px;margin:-8px 0 18px}.room-summary{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);gap:22px;margin-bottom:20px}.room-summary h2{font-size:21px;margin:7px 0 8px}.room-summary p{font-size:13px;max-width:63ch;color:var(--muted)}.room-summary-actions{min-width:0;gap:10px}.room-source{padding:15px 20px;background:#f0f5f5;border-color:#dce7e7;margin:18px 0}.syllabus-disclosure>summary{font-size:12px;font-weight:650;color:#486b70;cursor:pointer;line-height:1.6}.syllabus-disclosure p,.syllabus-disclosure a{font-size:12px;line-height:1.7}.syllabus-disclosure p{margin:12px 0;max-width:80ch}.room-topic,.room-entry,.study-room-card{border-top:1px solid var(--line);min-height:185px;gap:10px;padding:22px}.room-topic h3,.room-entry h3{font-size:17px;line-height:1.4;margin:0}.room-topic p,.room-entry p{font-size:12px;line-height:1.65}.room-topic button,.room-entry button{margin-top:6px;min-height:38px;font-size:12px;padding:9px 12px}.room-focus{background:#fff;margin-bottom:18px;font-size:13px}.room-focus strong{font-size:18px}.room-syllabus{background:#fff;margin:18px 0}.room-syllabus h3{font-size:14px}.room-syllabus-list{gap:8px}.room-syllabus-list span{font-size:12px;background:#f5f9f8;border-color:#e0e9e7;padding:6px 10px}.module-tile{padding:20px;border-radius:12px;min-height:105px}.module-tile strong{font-size:16px}.module-tile span{font-size:12px}
.question{width:100%;max-width:900px;margin:22px auto;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);padding:30px}.question h2{font-family:var(--font-app);font-size:20px!important;line-height:1.7!important;letter-spacing:-.15px;font-weight:550;max-width:69ch;margin:22px 0 28px;white-space:normal;text-align:left;color:var(--ink)}.question-head{font-size:10px;font-weight:750;line-height:1.6;letter-spacing:1.4px;color:#45827e}.answers{gap:11px;margin-bottom:24px}.answer{font-size:15px;line-height:1.6;min-height:58px;border-radius:10px;padding:13px 16px;gap:14px;align-items:flex-start;transform:none!important;box-shadow:none!important}.answer:hover{transform:none!important;background:#f3f9f7}.answer b{width:28px;height:28px;min-width:28px;line-height:28px;border-radius:7px;font-size:12px;font-weight:650}.answer.selected{border-color:#29938a;background:#eef8f3}.feedback{padding:22px;border-radius:12px;line-height:1.8}.feedback h3{font-size:16px}.feedback p{font-size:15px;line-height:1.85;max-width:72ch;margin:12px 0;text-align:justify;hyphens:auto}.feedback details{margin-top:18px;padding-top:16px}.feedback summary{font-size:13px}.feedback small{font-size:12px;line-height:1.7}.content:has(.question)>.card:not(.question){max-width:900px;margin-inline:auto}.content:has(.question) .toolbar{gap:16px}.pocket-reading,.theory-reading{max-width:850px;margin-inline:auto}.card p[style*="white-space:pre-wrap"]{font-size:15px;line-height:1.9;max-width:75ch;text-align:justify;hyphens:auto}.content>.card:has(>h2){margin-bottom:20px}.content .tabbar{gap:8px}.content .tabbar button{font-size:13px;min-height:42px}.room-study-link{margin-top:20px}
/* Paneles de apoyo: misma tipografía y superficies, sin brillo ni efectos. */
.metric{padding:22px;gap:9px}.metric strong{font-size:28px}.metric span,.metric small{font-size:12px}.home-quick{padding:20px 24px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:none}.home-quick strong{font-size:20px;line-height:1.4}.progress-glass,.progress-metrics .metric{background:#fff!important;border:1px solid var(--line)!important;box-shadow:var(--shadow)!important;color:var(--ink)}.progress-glass:before,.progress-glass:after{display:none}.progress-glass h2,.progress-glass .progress-table th,.progress-glass .progress-table td,.progress-dashboard .progress-metrics .metric strong,.benchmark-detail>strong{color:var(--ink)!important;text-shadow:none}.progress-muted,.progress-note,.progress-glass .muted,.progress-glass .help,.progress-dashboard .progress-metrics .metric>span:not(.m-icon),.progress-dashboard .progress-metrics .metric small,.benchmark-detail p,.benchmark-detail small{color:var(--muted)!important}.progress-glass .trend-good,.progress-glass .accuracy-track i{background:#168a80;box-shadow:none}.progress-glass .trend-miss{background:#e2a783;box-shadow:none}.progress-glass .trend-bar{background:#edf2f2;box-shadow:none}.progress-glass .trend-day small{color:var(--muted)}.progress-legend{color:var(--muted);font-size:12px}.legend-good,.legend-miss,.benchmark-ring,.benchmark-track span{box-shadow:none}.benchmark-ring{background:conic-gradient(#258b83 var(--accuracy),#e6eeee var(--accuracy))}.benchmark-ring>div{background:#fff;box-shadow:none}.benchmark-ring strong{color:var(--ink);font-size:36px}.benchmark-ring small{color:var(--muted)}.benchmark-track{background:#e8eeee}.benchmark-track span{background:#258b83}.signin{background:#eef5f3;padding:24px}.signin-card{width:min(460px,100%);padding:34px;border:1px solid #d3e3df;border-radius:20px;background:#fff;box-shadow:0 12px 44px #143e4410}.signin-card h1{font-size:29px;line-height:1.25;margin:25px 0 12px}.signin-card p{font-size:14px;line-height:1.75}.signin-card .logo small{font-size:10px}.signin-card .form{margin-top:24px}.recovery-panel{font-size:12px;margin-top:16px}.modal{padding:28px;border-radius:16px}.modal header h2{font-size:22px}.report{font:13px/1.75 var(--font-app)}
@media(min-width:821px){.nav a{font-size:13px}.sidebar .logo{font-size:22px}}
@media(max-width:1150px){.library-types{gap:14px}.library-type{padding:22px}.library-type h2{font-size:20px}.library-filter-panel{display:block}.library-selects{margin-top:18px}.library-filter-panel form{min-width:0}.library-study-link{flex-wrap:wrap}.library-study-link>.secondary{margin-left:64px}.content{padding-inline:28px}}
@media(max-width:900px) and (min-width:821px){.library-types{grid-template-columns:1fr}.library-type{min-height:0}.library-type-top{margin-bottom:15px}.library-type p{max-width:65ch}.document-years{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:820px){.shell{display:block}.sidebar{width:260px;position:fixed;transform:translateX(-100%);height:100dvh;z-index:20;top:0;left:0}.sidebar.open{transform:translateX(0)}.mobile{display:block}.content{padding:28px 22px 48px}.topbar{height:62px;padding:0 22px}.topbar .pill{display:none}.topbar .avatar{display:grid}.page-intro .page-title,.content h1{font-size:27px}.library-overview-note{display:none}.library-type{min-height:300px;padding:20px}.library-type h2{font-size:19px}.library-type p{font-size:13px}.library-types{gap:12px}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.room-summary{align-items:flex-start;flex-direction:column}.room-summary-actions{width:100%;justify-content:flex-start}.room-topic{min-height:175px}.document-years{grid-template-columns:repeat(4,minmax(0,1fr))}.question{padding:24px}.card p[style*="white-space:pre-wrap"],.feedback p{text-align:left}}
@media(max-width:620px){.content{padding:24px 16px 44px}.topbar{padding:0 16px}.top-actions{gap:8px}.topbar .avatar{display:none}.topbar .logout{font-size:11px;padding:6px 9px}.crumb{font-size:12px}.page-intro{margin-bottom:24px!important}.page-intro .page-title,.content h1{font-size:26px;letter-spacing:-.6px}.page-intro .page-desc{font-size:14px;line-height:1.7}.library-types{grid-template-columns:1fr;gap:14px}.library-type{min-height:0;padding:24px}.library-type-top{margin-bottom:18px}.library-type h2{font-size:22px}.library-type p{font-size:14px;max-width:55ch;margin-bottom:19px}.library-type-footer{padding-top:15px}.library-overview{gap:9px 18px;font-size:12px;margin-bottom:22px;padding-bottom:20px}.library-overview strong{font-size:15px}.library-study-link{padding:22px;gap:14px;margin-top:20px}.library-study-link>.library-icon{display:none}.library-study-link>.secondary{margin-left:0}.library-study-link h2{font-size:16px}.library-filter-panel{padding:18px}.library-filter-panel form{flex-wrap:wrap}.library-search{min-width:150px}.library-selects{gap:12px}.library-selects>.field{min-width:100px}.library-selects>.text-button{padding-left:0}.library-year>summary{padding:16px;gap:14px}.year-question-count{display:none}.year-label{font-size:19px}.library-bank-list{padding:0 16px}.library-bank{grid-template-columns:minmax(0,1fr) auto;gap:13px;padding:18px 0}.bank-mark{display:none}.bank-description{grid-column:1/-1}.bank-description h3{font-size:15px}.bank-description p{font-size:11px}.bank-quantity{text-align:left;display:flex;align-items:baseline;gap:6px}.bank-quantity strong{font-size:15px}.bank-quantity span{font-size:11px}.library-bank .secondary{justify-self:end}.library-segments{display:flex;width:100%}.library-segments button{flex:1;padding:9px 8px;font-size:12px}.library-empty{padding:26px 20px}.library-documents{padding:20px}.document-years{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.document-years a{padding:11px}.grid.two,.grid.three,.grid.four{grid-template-columns:1fr}.card,.control-card{padding:20px;border-radius:13px}.room-topic{min-height:0}.room-topic button{margin-top:8px}.section-head{margin:26px 0 15px}.section-head h2{font-size:18px}.room-source{padding:14px 16px}.question{padding:22px 20px;margin-top:18px}.question h2{font-size:18px!important;line-height:1.75!important;margin:18px 0 24px}.answer{font-size:14px;padding:13px 12px;gap:11px}.answer b{width:25px;min-width:25px;height:25px;font-size:11px}.feedback{padding:18px}.feedback p{font-size:14px;line-height:1.85;text-align:left}.toolbar{gap:14px}.toolbar label{min-width:100%;width:100%}.field input,.field select,.field textarea{font-size:16px}.form-grid{grid-template-columns:1fr}.editor-nav-item small{display:none}.signin-card{padding:28px 24px}.signin-card h1{font-size:27px}.row-actions{width:100%}.modal{padding:21px}.home-quick{align-items:flex-start}.home-quick strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Simulador: una navegación continua, dos momentos de retroalimentación. */
.sim-layout{display:grid;grid-template-columns:248px minmax(0,1fr);gap:24px;align-items:start}.sim-panel{position:sticky;top:84px;padding:20px}.sim-panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.sim-panel-head h2{font-size:16px;margin:0}.sim-panel-head>strong{font-size:11px;color:var(--muted);white-space:nowrap}.sim-panel>p{font-size:12px;color:var(--muted);margin:10px 0}.sim-panel .field{font-size:12px;margin:16px 0}.sim-progress{height:5px;background:#edf2f3;border-radius:6px;overflow:hidden;margin:12px 0 16px}.sim-progress span{display:block;height:100%;background:var(--teal)}.sim-legend{display:flex;flex-wrap:wrap;gap:8px 12px;font-size:10px;color:var(--muted);margin:15px 0}.sim-legend span{display:inline-flex;align-items:center;gap:5px}.sim-dot{display:inline-block;width:8px;height:8px;border:1px solid #cbd9dc;background:#fff;border-radius:3px}.sim-dot.answered{background:#d3ece6;border-color:#78b8aa}.sim-dot.marked{background:#ffebbc;border-color:#d6b16a}.sim-dot.incorrect{background:#f8dfdc;border-color:#d7a09b}.sim-numbers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-height:355px;overflow-y:auto;padding:5px 3px 8px;scrollbar-width:thin}.sim-number{min-height:34px;padding:5px 2px;border:1px solid #d6e1e3;border-radius:7px;background:#fff;color:#516c73;font-size:12px;font-weight:650;position:relative;line-height:1.2}.sim-number.answered{background:#e5f4ef;border-color:#a5d3c6;color:#296d5c}.sim-number.incorrect{background:#fbecea;border-color:#e5b6af;color:#914a41}.sim-number.current{outline:2px solid #147f83;outline-offset:1px}.sim-number.marked:after{content:'';width:7px;height:7px;background:#c79836;border-radius:50%;position:absolute;right:2px;top:2px}.sim-map>summary{font-size:12px;font-weight:650;padding:8px 0 12px;color:var(--teal);cursor:pointer}.sim-finish{width:100%;margin-top:20px}.sim-question{margin-top:0!important;padding:28px}.sim-question h2{font-size:20px!important;line-height:1.7!important}.sim-question .answer span{flex:1;min-width:0}.sim-status{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:24px;padding:18px 24px}.sim-status>div:first-child{display:flex;align-items:baseline;gap:8px}.sim-status>div:first-child strong{font-size:20px}.sim-status>div:first-child span{font-size:12px;color:var(--muted)}.sim-time{display:flex;align-items:center;gap:14px}.sim-time small{font-size:12px;color:var(--muted)}.sim-time strong{font-size:22px;font-variant-numeric:tabular-nums;letter-spacing:.5px}.sim-clock-low{color:#b45339}.sim-tools,.sim-navigation{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;margin-top:20px}.sim-navigation{padding-top:18px;border-top:1px solid var(--line)}.sim-tools .text-button{font-size:12px}.sim-question .answer:disabled{opacity:1;cursor:default}.sim-question .answer.selected{border-color:#168b88;background:#e8f5f2}.sim-question .answer.correct{border-color:#5ca786;background:#e9f5eb}.sim-question .answer.wrong{border-color:#d7968d;background:#fbecea}.sim-media{margin:20px 0}.sim-media img{max-width:100%;max-height:500px;object-fit:contain}.sim-media figcaption{font-size:12px;color:var(--muted)}.sim-setup{max-width:820px;padding:30px}.sim-setup-count{display:flex;align-items:baseline;gap:12px;margin-bottom:24px}.sim-setup-count strong{font-size:32px;line-height:1}.sim-setup-count span{font-size:14px;color:var(--muted)}.sim-mode-picker{border:0;padding:0;margin:0 0 25px;display:grid;grid-template-columns:1fr 1fr;gap:14px}.sim-mode-picker legend{font-size:14px;font-weight:650;margin-bottom:12px}.sim-mode-picker label{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--line);border-radius:12px;padding:18px;cursor:pointer}.sim-mode-picker label:has(input:checked){border-color:#559e99;background:#eff8f5}.sim-mode-picker input{width:17px;height:17px;margin-top:3px;accent-color:var(--teal)}.sim-mode-picker strong{display:block;font-size:14px}.sim-mode-picker small{display:block;margin-top:5px;font-size:12px;line-height:1.7;color:var(--muted)}.sim-setup>.field{max-width:330px}.sim-setup .row-actions{margin-top:22px}.sim-grading{max-width:750px}.sim-result-summary{display:grid;grid-template-columns:1fr auto;gap:16px 24px;margin-bottom:28px}.sim-result-summary h2{font-size:25px;margin:8px 0}.sim-result-summary p{font-size:13px;color:var(--muted);margin-bottom:0}.sim-grade{display:flex;flex-direction:column;justify-content:center;align-items:flex-end}.sim-grade strong{font-size:42px;line-height:1.2;color:var(--teal);font-variant-numeric:tabular-nums}.sim-grade span{font-size:12px;color:var(--muted)}.sim-score-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:10px}.sim-score-grid div{display:flex;flex-direction:column;gap:3px}.sim-score-grid strong{font-size:25px}.sim-score-grid span{font-size:12px;color:var(--muted)}.sim-result-summary>.help{grid-column:1/-1}.sim-result-summary>.secondary{justify-self:start}.sim-resume{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:26px}.sim-resume p{font-size:12px;color:var(--muted);margin:5px 0 0}.sim-your-answer{font-size:13px;line-height:1.7;padding-top:10px}
@media(max-width:1050px){.sim-layout{grid-template-columns:1fr}.sim-panel{position:static}.sim-numbers{grid-template-columns:repeat(10,minmax(0,1fr));max-height:200px}.sim-panel .sim-finish{width:auto;margin-top:12px}.sim-panel>p.help{display:none}.sim-panel-head h2{font-size:17px}.sim-map>summary{padding-bottom:4px}.sim-status{flex-wrap:wrap}}
@media(max-width:620px){.sim-status{padding:16px;gap:12px}.sim-time{gap:8px}.sim-time small{font-size:10px}.sim-time strong{font-size:20px}.sim-status>div:first-child strong{font-size:17px}.sim-status>.badge{font-size:9px}.sim-layout{gap:18px}.sim-panel{padding:17px}.sim-numbers{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.sim-number{min-height:36px;font-size:12px}.sim-question{padding:22px 18px}.sim-question h2{font-size:18px!important;line-height:1.75!important}.sim-mode-picker{grid-template-columns:1fr}.sim-setup{padding:22px}.sim-result-summary{gap:16px}.sim-grade strong{font-size:34px}.sim-score-grid{grid-template-columns:repeat(2,1fr);row-gap:18px}.sim-result-summary h2{font-size:22px}.sim-resume{align-items:flex-start;flex-direction:column}.sim-navigation>.secondary,.sim-navigation>.primary{flex:1}.sim-tools .text-button{padding-inline:0}.sim-score-grid strong{font-size:23px}}

/* App shell and study library */
.docgato-app {font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.docgato-app .shell .sidebar {background:linear-gradient(155deg,#092433,#06333b);border-color:#24515c}
.docgato-app .shell .nav a {gap:.8rem;min-height:44px;font-size:.93rem;border-radius:.75rem}
.docgato-app .shell .nav a.active {color:#efffff;background:linear-gradient(110deg,#07525f,#008c91);border:1px solid #29e3e4}
.docgato-app .nav .icon {display:inline-grid;place-items:center;color:#a6f3f3}
.docgato-app .shell .topbar {border-bottom:1px solid #bdd5df}
.docgato-app .top-actions .avatar {text-decoration:none;background:#08777d;color:#fff}
.docgato-app .study-hero {position:relative;isolation:isolate;overflow:hidden;margin:0 0 1rem;padding:clamp(1.25rem,3vw,2.55rem);min-height:245px;border-radius:1.25rem;border:1px solid #247a88;background:#062632 url(docgato-study-hero.jpg) center right / cover no-repeat;color:#f1fcff;display:flex;align-items:center}
.study-hero::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#051b29 0%,rgba(5,27,41,.91) 29%,rgba(5,27,41,.35) 59%,transparent 83%)}
.study-hero-copy {max-width:min(68%,42rem)}
.study-hero .eyebrow {display:inline-flex;align-items:center;gap:.55rem;color:#98fbff;background:#06434c;border-radius:3rem;padding:.35rem .7rem}
.study-hero .eyebrow svg {width:16px;height:16px}
.study-hero h1 {margin:.7rem 0 .5rem;color:inherit;font-size:clamp(1.9rem,3.5vw,3.4rem);line-height:1.03;letter-spacing:-.045em}
.study-hero h1 em {color:#5af6ed;font-style:normal}
.study-hero p {margin:0 0 .9rem;color:#e1f3f7;max-width:50ch;line-height:1.55}
.study-hero .primary {display:inline-flex;text-decoration:none;background:#64f1e7;color:#06232d}
.study-dashboard {display:grid;grid-template-columns:minmax(0,2.7fr) minmax(13rem,1fr);gap:1rem}
.study-dashboard .study-hero {min-height:285px}
.study-quick {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}
.study-quick a.card {display:flex;align-items:center;gap:.55rem;font-size:.87rem;font-weight:750;padding:.8rem;text-decoration:none;color:#082938;margin:0}
.study-quick svg,.study-stats svg {flex:none;color:#087f84}
.study-stats h2 {display:flex;align-items:center;gap:.55rem;font-size:1.15rem}
.study-stats dl {display:grid;grid-template-columns:1fr auto;gap:.65rem;margin:1.1rem 0}
.study-stats dd {margin:0;font-weight:800;font-variant-numeric:tabular-nums}
.study-anatomy {margin-block:1rem;color:inherit}
.study-anatomy > summary {cursor:pointer}
.study-library .library-type {overflow:hidden;isolation:isolate;position:relative}
.study-library .library-type::before {content:"";z-index:-1;position:absolute;inset:0;background:linear-gradient(120deg,rgba(91,203,217,.20),transparent 70%)}
.study-library .library-type-residentado::before {background:linear-gradient(135deg,rgba(142,127,226,.21),transparent 70%)}
.theory-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:.85rem;margin:1rem 0}
.theory-grid .theory-tile {display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.8rem;text-align:left;margin:0;min-height:95px;padding:.9rem;border:1px solid #bdd6df}
.theory-tile strong,.theory-tile small {display:block}
.theory-tile small {margin-top:.3rem;color:#466472}
.theory-tile > svg {color:#007e85}
.theory-tile:hover,.study-quick a:hover {border-color:#0a9097}
.theory-reading {max-width:82ch}
.theory-reading section+section {border-top:1px solid #bed3dd;margin-top:1.1rem;padding-top:1.1rem}
.theory-reading p {font-size:1.02rem;line-height:1.7}
.theory-practice,.theory-back {margin-top:1rem}
.account-icon {display:inline-grid;place-items:center;width:2rem;height:2rem;vertical-align:middle;margin-right:.4rem;border-radius:50%;color:#00606c;background:#d2edef}
.row-actions button svg {width:17px;height:17px;vertical-align:middle;margin-right:.25rem}
.row-actions .account-danger {color:#932532;border-color:#dca8ae}
@media(max-width:1050px){.study-dashboard{grid-template-columns:1fr}.study-quick{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.docgato-app .study-hero{background-position:72% center}.study-hero::before{background:linear-gradient(90deg,#051b29 5%,rgba(5,27,41,.85) 67%,rgba(5,27,41,.38))}.study-hero-copy{max-width:92%}}
.top-navigation {display:flex;align-items:center;gap:1rem;flex:1;min-width:0}
#study-search {display:flex;align-items:center;gap:.45rem;max-width:33rem;flex:1;min-width:0;padding:.25rem .4rem .25rem .65rem;border:1px solid #b0ccd7;border-radius:2rem;background:#f4fbfc;color:#104453}
#study-search svg {flex:none;width:18px;height:18px}
#study-search input {border:0;background:transparent;color:#092d3c;flex:1;min-width:0;padding:.3rem}
#study-search button {padding:.32rem .65rem;border:0;border-radius:2rem;background:#d7eef0;color:#063b45;font-weight:700}
@media(max-width:1100px){.top-navigation .crumb{display:none}}
@media(max-width:560px){#study-search button{display:none}.docgato-app .shell .topbar{gap:.45rem}.docgato-app .top-actions .pill{display:none}}

/* Match the activity bars and their legend, including after theme changes. */
.progress-dashboard {--trend-correct:#168a80;--trend-incorrect:#e2a783}
.progress-dashboard .trend-good,.progress-dashboard .legend-good {background:var(--trend-correct);box-shadow:none}
.progress-dashboard .trend-miss,.progress-dashboard .legend-miss {background:var(--trend-incorrect);box-shadow:none}
.manual-page {display:grid;gap:1rem;max-width:1000px}
.manual-page .card {margin:0}
.manual-page .manual-reading {max-width:none}
.manual-reading section,.manual-history {min-width:0}
.manual-table-wrap {overflow:auto;border:1px solid #c9dce4;border-radius:12px}
.manual-table {border-collapse:collapse;width:100%;min-width:480px;text-align:left}
.manual-table caption {padding:.65rem 1rem;text-align:left;color:#355667;font-size:.85rem}
.manual-table :is(th,td) {padding:.65rem .8rem;border-bottom:1px solid #d7e5ea;vertical-align:top}
.manual-table thead th {background:#e7f4f7;color:#114655}
.manual-table tbody tr:nth-child(even) {background:#f4f8fa}
.manual-table tbody tr:last-child :is(th,td) {border-bottom:0}
.manual-reading .manual-pepas {background:#e9f8f5;border:1px solid #b6dfda;border-radius:12px;padding:1rem}
.manual-pepas li+li {margin-top:.4rem}
.manual-page .manual-note {font-size:.83rem;color:#426270}
.manual-frequencies {display:flex;flex-wrap:wrap;gap:.55rem;list-style:none;padding:0}
.manual-frequencies li {display:grid;gap:.15rem;padding:.55rem .75rem;background:#edf6f8;border-radius:.55rem;font-size:.86rem}
