:root{--bg:#f2f4f6;--surface:#fff;--surface-2:#f8f9fa;--text:#17202a;--muted:#66717c;--line:#dfe4e8;--brand:#941c20;--brand-dark:#6f1115;--brand-soft:#f8e9e9;--success:#177245;--warning:#8a5a00;--danger:#b42318;--shadow:0 12px 34px rgba(18,27,35,.08);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light}*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{margin:0;color:var(--text);background:var(--bg);line-height:1.5}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:#171b20;color:#f5f7f8;padding:20px 14px;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 20px}.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#bd2f34,#741015);font-weight:900;font-size:21px;box-shadow:0 7px 20px rgba(189,47,52,.3);overflow:hidden}.brand-mark img{width:31px;height:31px;object-fit:contain}.brand-name{font-weight:850}.brand-sub{font-size:12px;color:#aab3bb}.nav-label{margin:18px 10px 7px;color:#7f8a94;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.nav-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:#d7dde2;font-size:14px;margin:2px 0}.nav-link:hover,.nav-link.active{background:#2a3037;color:#fff}.nav-link.active{box-shadow:inset 3px 0 var(--brand)}.nav-dot{width:8px;height:8px;border-radius:50%;background:#5f6b75}.nav-link.active .nav-dot{background:#dc555a}.main{min-width:0}.topbar{position:sticky;top:0;z-index:15;height:68px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 26px}.top-actions{display:flex;align-items:center;gap:10px}.user-chip{display:flex;align-items:center;gap:9px;padding:7px 10px;border-radius:10px;background:var(--surface-2)}.avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#e2e6e9;display:grid;place-items:center;font-weight:800;color:#5e6870}.icon-button{position:relative;border:1px solid var(--line);background:#fff;border-radius:10px;min-width:40px;height:40px;padding:0 10px;display:grid;place-items:center}.badge{position:absolute;right:-5px;top:-6px;background:var(--brand);color:#fff;border-radius:999px;font-size:10px;font-weight:800;min-width:19px;height:19px;padding:0 5px;display:grid;place-items:center}.menu-button{display:none}.content{max-width:1380px;margin:0 auto;padding:28px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}.page-head h1{margin:0;font-size:clamp(25px,3vw,36px);letter-spacing:-.025em}.page-head p{margin:6px 0 0;color:var(--muted)}.actions{display:flex;gap:9px;flex-wrap:wrap}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 2px 3px rgba(18,27,35,.02)}.card h2,.card h3{margin-top:0}.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:16px}.stat{padding:18px}.stat-value{font-size:30px;font-weight:900;letter-spacing:-.03em}.stat-label{color:var(--muted);font-size:13px}.stack{display:flex;flex-direction:column;gap:14px}.row{display:flex;align-items:center;gap:12px}.row.between{justify-content:space-between}.muted{color:var(--muted)}.small{font-size:13px}.button{border:1px solid transparent;background:var(--brand);color:#fff;border-radius:10px;padding:10px 14px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px}.button:hover{background:var(--brand-dark)}.button.secondary{background:#fff;color:var(--text);border-color:var(--line)}.button.secondary:hover{background:var(--surface-2)}.button.danger{background:var(--danger)}.button.ghost{background:transparent;color:var(--brand);padding:7px 9px}.button.small{min-height:34px;padding:6px 10px;font-size:13px}.button[disabled]{opacity:.5;cursor:not-allowed}.field{display:flex;flex-direction:column;gap:7px}.field label{font-weight:750;font-size:14px}.field small{color:var(--muted)}.input,.select,.textarea{width:100%;border:1px solid #b9c2ca;border-radius:10px;padding:10px 12px;background:#fff;color:var(--text)}.textarea{min-height:110px;resize:vertical}.input:focus,.select:focus,.textarea:focus{outline:3px solid rgba(148,28,32,.13);border-color:var(--brand)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .full{grid-column:1/-1}.checkbox{display:flex;gap:8px;align-items:flex-start}.checkbox input{margin-top:5px}.alert{padding:13px 15px;border-radius:11px;margin-bottom:16px;border:1px solid}.alert.success{color:#115f38;background:#ebf8f1;border-color:#bde5cf}.alert.error{color:#851b16;background:#ffedeb;border-color:#f4c4bf}.alert.warning{color:#724b00;background:#fff7dd;border-color:#ead18b}.empty{text-align:center;padding:46px 24px;color:var(--muted)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}table{width:100%;border-collapse:collapse;min-width:680px}th,td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{background:var(--surface-2);font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#56616a}tr:last-child td{border-bottom:0}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:750;background:#edf0f2;color:#45515a}.pill.active,.pill.accepted,.pill.resolved{background:#e5f6ec;color:#12663a}.pill.pending,.pill.review{background:#fff3ce;color:#785000}.pill.suspended,.pill.rejected,.pill.disabled{background:#fde9e7;color:#8b2018}.tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow:auto}.tab{padding:10px 13px;border-bottom:3px solid transparent;white-space:nowrap;color:var(--muted)}.tab.active{color:var(--brand);border-color:var(--brand);font-weight:800}.bank-card{display:flex;flex-direction:column;gap:10px}.progress{height:9px;border-radius:99px;background:#e7eaed;overflow:hidden}.progress>span{display:block;height:100%;background:var(--brand);border-radius:inherit}.question-shell{max-width:880px;margin:0 auto}.question-card{padding:28px}.question-text{font-size:clamp(19px,2.5vw,27px);font-weight:800;line-height:1.35;margin:8px 0 22px}.option{display:flex;gap:12px;width:100%;text-align:left;background:#fff;border:1px solid #cbd2d8;border-radius:12px;padding:13px 14px;margin:9px 0}.option:hover{border-color:#858f98;background:#fafbfb}.option.correct{border-color:#2d8b5b;background:#eaf7f0}.option.wrong{border-color:#c34238;background:#fff0ef}.option-key{width:29px;height:29px;flex:none;border-radius:8px;background:#edf0f2;display:grid;place-items:center;font-weight:850}.explanation{margin-top:18px;padding:16px;border-left:4px solid var(--brand);background:var(--brand-soft);border-radius:8px}.post{display:flex;gap:12px}.post-body{min-width:0;flex:1}.post-content{white-space:pre-wrap;overflow-wrap:anywhere}.post-image{margin-top:12px;border-radius:12px;max-height:600px;object-fit:cover}.chat-layout{display:grid;grid-template-columns:330px minmax(0,1fr);min-height:620px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}.chat-list{border-right:1px solid var(--line);overflow:auto}.chat-link{display:block;padding:14px;border-bottom:1px solid var(--line)}.chat-link:hover,.chat-link.active{background:#f6f7f8}.chat-panel{display:flex;flex-direction:column;min-width:0}.messages{flex:1;overflow:auto;padding:20px;background:#f4f1ed;min-height:460px;max-height:65vh}.message{max-width:min(78%,650px);background:#fff;border-radius:14px;padding:10px 12px;margin:8px auto 8px 0;box-shadow:0 1px 2px rgba(0,0,0,.08)}.message.mine{margin-left:auto;margin-right:0;background:#e8f5e9}.message-meta{font-size:11px;color:var(--muted);margin-top:5px}.chat-form{border-top:1px solid var(--line);padding:12px;display:flex;gap:8px}.chat-form .input{flex:1}.profile-head{display:flex;gap:18px;align-items:center}.profile-head .avatar{width:92px;height:92px;font-size:30px}.two-col{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:18px}.pagination{display:flex;justify-content:center;gap:8px;margin:24px 0}.pagination a,.pagination span{padding:8px 11px;border:1px solid var(--line);border-radius:8px;background:#fff}.footer{padding:25px;text-align:center;color:var(--muted);font-size:12px}.mobile-overlay{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-290px;width:270px;transition:left .2s}.sidebar.open{left:0}.mobile-overlay.open{display:block;position:fixed;inset:0;background:rgba(0,0,0,.42);z-index:19}.menu-button{display:grid}.content{padding:20px}.chat-layout{grid-template-columns:1fr}.chat-list{display:none}.two-col{grid-template-columns:1fr}}@media(max-width:650px){.topbar{padding:0 14px}.user-chip span{display:none}.content{padding:16px 12px}.page-head{flex-direction:column}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.card{padding:16px}.question-card{padding:18px}.message{max-width:90%}}

/* === Identidad visual heredada, reconstruida sin CSS duplicado === */
:root{
  --brand:#0b4a6f;
  --brand-dark:#073653;
  --brand-soft:#eaf4fa;
  --legacy-blue:#0b4a6f;
  --legacy-red:#b91c1c;
  --legacy-green:#177245;
  --legacy-purple:#6d4aa2;
  --legacy-lavender:#5967a9;
  --legacy-gold:#c8942f;
  --legacy-gold-dark:#8f6517;
}
body{background:
  radial-gradient(900px 260px at 12% -10%,rgba(11,74,111,.10),transparent 60%),
  var(--bg)}
.sidebar{
  width:280px;
  padding:18px 14px;
  background-color:#073653;
  background-image:linear-gradient(180deg,rgba(4,35,54,.75),rgba(7,54,83,.88)),url("../img/legacy/sidebar-bomberos.png");
  background-size:cover;
  background-position:center;
  box-shadow:10px 0 30px rgba(4,30,47,.18)
}
.app-shell{grid-template-columns:280px minmax(0,1fr)}
.brand{padding:9px 10px 17px;border-radius:16px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.17);backdrop-filter:blur(7px);margin-bottom:12px}
.brand-mark{background:rgba(255,255,255,.92);box-shadow:0 7px 20px rgba(0,0,0,.20)}
.brand-name{color:#fff}.brand-sub{color:#d5e5ef}
.sidebar-emblem{display:block;width:150px;max-height:64px;object-fit:contain;margin:2px auto 14px;filter:drop-shadow(0 5px 10px rgba(0,0,0,.28))}
.nav-label{color:#bed2df;margin-top:17px}
.nav-link{color:#eff7fb;background:rgba(255,255,255,.075);border:1px solid transparent;backdrop-filter:blur(4px)}
.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.20);transform:translateX(2px)}
.nav-link.active{box-shadow:inset 3px 0 #f0c15a,0 6px 16px rgba(0,0,0,.12)}
.nav-dot{background:#a8c8d9}.nav-link.active .nav-dot{background:#f0c15a}
.nav-sublinks{display:grid;gap:3px;margin:3px 0 10px 17px;padding-left:10px;border-left:1px solid rgba(255,255,255,.22)}
.nav-sublink{display:block;padding:7px 9px;border-radius:8px;color:#dcebf3;font-size:11.5px;background:rgba(255,255,255,.05)}
.nav-sublink:hover{background:rgba(255,255,255,.16);color:#fff}
.topbar{border-bottom-color:#d2e0e8;box-shadow:0 3px 15px rgba(11,74,111,.05)}
.button{background:var(--legacy-blue)}.button:hover{background:var(--brand-dark)}
.button.gold{background:var(--legacy-gold);color:#241b09}.button.gold:hover{background:#b27d1f}
.button.light{background:rgba(255,255,255,.94);color:#12364b;border-color:rgba(255,255,255,.68)}
.button.light:hover{background:#fff}
.input:focus,.select:focus,.textarea:focus{outline-color:rgba(11,74,111,.16);border-color:var(--legacy-blue)}
.tabs .tab.active{color:var(--legacy-blue);border-color:var(--legacy-blue)}
.progress>span{background:var(--legacy-blue)}
.explanation{border-color:var(--legacy-blue);background:var(--brand-soft)}
.row.wrap{flex-wrap:wrap}.select.compact{min-height:34px;padding:6px 8px;border-radius:8px;font-size:12px}

.study-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 32px;margin-bottom:18px;border-radius:22px;color:#fff;background:linear-gradient(135deg,#0b4a6f,#0a668a);box-shadow:0 16px 35px rgba(11,74,111,.19)}
.study-hero.theory{background:linear-gradient(135deg,#0b4a6f 0%,#0d698e 64%,#b91c1c 145%)}
.study-hero.street{background:linear-gradient(135deg,#0b4a6f 0%,#0d627e 65%,#c8942f 150%)}
.study-hero:after{content:"";position:absolute;right:-90px;top:-110px;width:310px;height:310px;border-radius:50%;background:rgba(255,255,255,.08)}
.study-hero-copy{position:relative;z-index:2;max-width:820px}.study-hero h1{margin:3px 0 8px;font-size:clamp(27px,4vw,44px);letter-spacing:.015em}.study-hero p{margin:0 0 18px;max-width:730px;color:#e7f1f6}.study-kicker{font-size:11px;font-weight:900;letter-spacing:.18em;color:#f4d486}.study-hero-icon{position:relative;z-index:1;width:130px;height:130px;object-fit:contain;filter:drop-shadow(0 12px 20px rgba(0,0,0,.25))}
.study-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:18px}.study-stats article{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid #d5e2e9;background:rgba(255,255,255,.88);border-radius:13px}.study-stats strong{font-size:25px;color:#0b4a6f}.study-stats span{font-size:12px;color:var(--muted);font-weight:750}
.legacy-game-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-bottom:18px}.legacy-game{display:grid;grid-template-columns:45px 1fr;grid-template-rows:auto auto;gap:1px 11px;align-items:center;padding:14px 16px;border-radius:15px;color:#fff;box-shadow:0 8px 20px rgba(0,0,0,.11);transition:transform .17s ease,box-shadow .17s ease}.legacy-game:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(0,0,0,.17)}.legacy-game>span{grid-row:1/3;width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.94);color:#17202a;font-size:22px}.legacy-game strong{font-size:15px}.legacy-game small{opacity:.82}.legacy-game.dominio{background:#b91c1c;border:2px solid #141414}.legacy-game.fuego{background:linear-gradient(135deg,#d35400,#8f1f11)}.legacy-game.gold-card{background:linear-gradient(135deg,#c8942f,#8e6517)}.legacy-game.street-game{background:linear-gradient(135deg,#0b4a6f,#174f74)}
.study-catalog{display:flex;flex-direction:column;gap:18px}.study-section{--section:#0b4a6f;--section-soft:#eaf4fa;border:1px solid color-mix(in srgb,var(--section) 25%,#dfe4e8);border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(18,27,35,.05);scroll-margin-top:82px}.study-section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 20px;background:linear-gradient(90deg,var(--section-soft),#fff);border-bottom:1px solid color-mix(in srgb,var(--section) 20%,#e4e8eb)}.study-section-title{display:flex;align-items:center;gap:12px}.study-section-title h2{margin:0;color:var(--section);font-size:19px}.study-section-title p{margin:3px 0 0;color:#5e6971;font-size:13px}.study-section-icon{width:42px;height:42px;border-radius:12px;background:var(--section);color:#fff;display:grid;place-items:center;font-size:21px;box-shadow:0 6px 15px color-mix(in srgb,var(--section) 24%,transparent)}
.tone-red{--section:#b91c1c;--section-soft:#fff0ef}.tone-blue{--section:#155e94;--section-soft:#edf7ff}.tone-green{--section:#177245;--section-soft:#edf9f2}.tone-purple{--section:#6d4aa2;--section-soft:#f5effc}.tone-lavender{--section:#5967a9;--section-soft:#f0f2ff}.tone-neutral{--section:#6d5a32;--section-soft:#fbf7ed;margin-top:18px}
.legacy-bank-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:12px;padding:16px}.legacy-bank-card{display:flex;flex-direction:column;justify-content:space-between;gap:13px;min-height:152px;padding:15px;border:1px solid #dce3e7;border-radius:14px;background:#fff;box-shadow:0 2px 5px rgba(18,27,35,.025);transition:border-color .16s ease,transform .16s ease}.legacy-bank-card:hover{border-color:color-mix(in srgb,var(--section) 45%,#dce3e7);transform:translateY(-1px)}.legacy-bank-card.unavailable{background:#f7f8f9;opacity:.76}.legacy-bank-main h3{margin:5px 0 4px;font-size:16px}.legacy-bank-main p{margin:0;color:var(--muted);font-size:12px}.legacy-bank-count{display:inline-flex;font-size:11px;font-weight:800;color:var(--section);text-transform:uppercase;letter-spacing:.035em}.legacy-bank-form{display:grid;grid-template-columns:minmax(0,1fr) 72px auto;gap:6px;align-items:center}.legacy-bank-form .button{background:var(--section)}
.material-shortcuts{display:flex;flex-wrap:wrap;gap:10px;padding:17px}.material-chip{padding:12px 16px;border-radius:11px;background:#f6ecd2;border:1px solid #dec786;color:#684a13;font-weight:800}.material-chip:hover{background:#efe0ba}.material-chip.warning{background:#fff1db;color:#8b4c00}.personal-test-card{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:18px}.personal-test-card h2{margin-bottom:2px}.personal-test-card form{flex:1;justify-content:flex-end}.personal-test-card .select{max-width:250px}

@media(max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{width:280px;left:-300px}.study-hero{padding:24px}.study-hero-icon{width:105px;height:105px}.study-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.study-hero{padding:21px 17px}.study-hero-icon{position:absolute;right:-9px;bottom:-17px;width:105px;height:105px;opacity:.25}.study-hero-copy{max-width:100%}.study-hero .actions{padding-right:0}.study-stats{grid-template-columns:1fr 1fr}.study-stats article{display:block}.study-stats strong,.study-stats span{display:block}.study-section-head{align-items:flex-start;flex-direction:column}.section-mix-form{width:100%}.section-mix-form .button{width:100%}.legacy-bank-grid{grid-template-columns:1fr;padding:12px}.legacy-bank-form{grid-template-columns:1fr 1fr}.legacy-bank-form .button{grid-column:1/-1}.personal-test-card{align-items:stretch;flex-direction:column}.personal-test-card form{justify-content:stretch}.personal-test-card .select,.personal-test-card .button{max-width:none;width:100%}}


/* Activación directa de los bancos heredados */
.study-bulk-import{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px 20px;border:1px solid rgba(202,138,4,.32);background:linear-gradient(135deg,rgba(254,249,195,.96),rgba(255,255,255,.96));}
.study-bulk-copy{display:grid;gap:7px;min-width:0;flex:1;}
.study-bulk-copy>strong{font-size:1.04rem;color:#713f12;}
.study-bulk-copy>span,.study-bulk-copy>small{color:#854d0e;}
.study-bulk-copy .progress{max-width:620px;height:9px;background:rgba(161,98,7,.16);border-radius:999px;overflow:hidden;}
.study-bulk-copy .progress>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0284c7,#0f766e);transition:width .25s ease;}
.bulk-import-card{display:flex;align-items:center;justify-content:space-between;gap:24px;}
.bulk-import-card>div{flex:1;min-width:0;}
.pill.pending_import{background:#fef3c7;color:#92400e;}
@media (max-width:760px){.study-bulk-import,.bulk-import-card{align-items:stretch;flex-direction:column}.study-bulk-import .button,.bulk-import-card .button{width:100%;}}

/* === v1.2.0 · planificación, test configurables, juegos y Red Zero === */
.study-kicker.dark{color:var(--legacy-gold-dark)}
.academy-page-head{align-items:center}
.academy-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr);gap:18px;align-items:start;margin-bottom:18px}
.academy-calendar-card{padding:0;overflow:hidden;border-color:#cedde5;box-shadow:0 12px 32px rgba(11,74,111,.08)}
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 19px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#eef7fb,#fff)}
.calendar-toolbar h2{margin:0;text-align:center;color:#0b4a6f}.calendar-toolbar p{margin:3px 0 0;text-align:center;color:var(--muted);font-size:13px}
.calendar-arrow{width:42px;height:42px;border:1px solid #bdd0dc;border-radius:12px;display:grid;place-items:center;background:#fff;color:#0b4a6f;font-size:28px;font-weight:700;line-height:1;box-shadow:0 3px 8px rgba(11,74,111,.06)}
.calendar-arrow:hover{background:#eaf4fa;border-color:#8bb3c9}
.calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);padding:10px 12px 7px;background:#f9fbfc;border-bottom:1px solid var(--line)}
.calendar-weekdays span{text-align:center;color:#667681;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:10px;gap:5px;background:#fff}
.calendar-day{position:relative;min-height:94px;padding:8px;border:1px solid transparent;border-radius:12px;background:#f9fbfc;transition:background .15s,border-color .15s,transform .15s;overflow:hidden}
.calendar-day:hover{background:#eef7fb;border-color:#bdd5e2;transform:translateY(-1px)}
.calendar-day.outside{opacity:.42;background:#f3f5f6}.calendar-day.today{border-color:#c8942f;box-shadow:inset 0 0 0 1px #c8942f}.calendar-day.selected{background:#e4f2f8;border-color:#0b4a6f}
.calendar-number{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;font-weight:850;font-size:13px;color:#33444f}.calendar-day.today .calendar-number{background:#c8942f;color:#241b09}.calendar-day.selected .calendar-number{background:#0b4a6f;color:#fff}
.calendar-markers{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:12px}.event-dot{width:8px;height:8px;border-radius:50%;background:#0b4a6f}.event-dot.type-exam{background:#b91c1c}.event-dot.type-class{background:#177245}.event-dot.type-deadline{background:#c8942f}.event-dot.type-reminder{background:#6d4aa2}
.study-time-chip{display:inline-flex;padding:2px 6px;border-radius:999px;background:#dff2e8;color:#12623b;font-size:10px;line-height:1.5}
.academy-day-column{min-width:0}.selected-day-card h2{margin:2px 0 0}.calendar-date-badge{min-width:58px;height:58px;border-radius:16px;background:linear-gradient(145deg,#0b4a6f,#0d6f93);color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 8px 18px rgba(11,74,111,.2)}
.empty.compact{padding:22px 10px}.day-event-list{display:grid;gap:10px;margin-top:16px}.day-event{padding:12px 13px;border-left:4px solid #0b4a6f;border-radius:10px;background:#f5f9fb}.day-event.type-exam{border-color:#b91c1c;background:#fff2f2}.day-event.type-class{border-color:#177245;background:#eff9f3}.day-event.type-deadline{border-color:#c8942f;background:#fff9e9}.day-event p{margin:8px 0 0;font-size:13px}
.study-log-card h2{margin-bottom:3px}.study-duration-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.weekly-study-card{padding:0;overflow:hidden}.weekly-toolbar{background:linear-gradient(135deg,#fff7e5,#fff)}.weekly-chart{height:280px;display:grid;grid-template-columns:repeat(7,1fr);gap:10px;align-items:end;padding:26px 22px 20px}.weekly-column{height:100%;display:grid;grid-template-rows:25px 1fr auto auto;gap:6px;justify-items:center;min-width:0}.weekly-value{font-size:11px;font-weight:800;color:#0b4a6f;white-space:nowrap}.weekly-track{width:min(42px,72%);height:100%;border-radius:12px 12px 5px 5px;background:#e8eef2;display:flex;align-items:flex-end;overflow:hidden}.weekly-track span{display:block;width:100%;min-height:3px;border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,#0d7097,#0b4a6f)}.weekly-column strong{font-size:12px}.weekly-column small{color:var(--muted);font-size:10px}

.review-mixed-grid{display:grid;grid-template-columns:minmax(260px,.55fr) minmax(0,1.45fr);gap:16px;margin-bottom:18px}.review-card{display:flex;flex-direction:column;justify-content:space-between;gap:18px;border-color:#e6c0c0;background:linear-gradient(145deg,#fff6f6,#fff)}.review-card .review-count{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:#b91c1c;color:#fff;font-size:26px;font-weight:900;box-shadow:0 9px 20px rgba(185,28,28,.18)}
.mixed-test-card{border:1px solid #cadce6;border-radius:17px;background:#fff;box-shadow:0 4px 15px rgba(11,74,111,.05);overflow:hidden}.mixed-test-card>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;cursor:pointer;background:linear-gradient(135deg,#edf7fb,#fff)}.mixed-test-card>summary::-webkit-details-marker{display:none}.mixed-test-card>summary span:first-child{display:grid;gap:2px}.mixed-test-card>summary small{color:#0b4a6f;font-weight:900;letter-spacing:.12em}.mixed-test-card>summary strong{font-size:17px}.mixed-chevron{font-size:25px;transition:transform .2s}.mixed-test-card[open] .mixed-chevron{transform:rotate(180deg)}.mixed-test-form{padding:18px 20px}.mixed-actions{padding-bottom:12px;border-bottom:1px solid var(--line)}.mixed-topic-groups{display:grid;gap:14px;margin:15px 0}.mixed-topic-groups fieldset{min-width:0;border:1px solid #d9e3e8;border-radius:13px;padding:13px}.mixed-topic-groups legend{padding:0 8px;color:#0b4a6f;font-weight:850}.mixed-topic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:8px}.mixed-topic-option{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #e1e6e9;border-radius:10px;background:#fafcfd;cursor:pointer}.mixed-topic-option:hover{border-color:#8fb7ca;background:#f0f8fb}.mixed-topic-option:has(input:checked){border-color:#0b4a6f;background:#eaf4fa}.mixed-topic-option input{margin-top:4px;accent-color:#0b4a6f}.mixed-topic-option span{display:grid;min-width:0}.mixed-topic-option strong{font-size:13px}.mixed-topic-option small{font-size:11px;color:var(--muted)}.mixed-footer{display:flex;align-items:end;justify-content:flex-end;gap:12px;padding-top:14px;border-top:1px solid var(--line)}.mixed-footer .field{width:180px}.disabled-link{opacity:.52;pointer-events:none}.legacy-bank-form.simplified{grid-template-columns:minmax(105px,1fr) auto}.bank-count-field{display:grid;gap:3px}.bank-count-field span{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800}.input.compact{min-height:35px;padding:6px 9px}.study-stats{display:none}

.game-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:22px;padding:28px 31px;margin-bottom:18px;border-radius:23px;color:#fff;box-shadow:0 16px 36px rgba(20,25,31,.18)}.game-hero:after{content:"";position:absolute;width:310px;height:310px;border-radius:50%;right:-90px;top:-140px;background:rgba(255,255,255,.08)}.game-hero>div{position:relative;z-index:1}.game-hero h1{margin:3px 0 8px;font-size:clamp(30px,4vw,48px)}.game-hero p{max-width:740px;margin:0;color:rgba(255,255,255,.86)}.game-hero.dominio{background:linear-gradient(135deg,#8d1014,#c32b2f 62%,#581016)}.game-hero.fuego{background:linear-gradient(135deg,#7d1d0b,#df5b0c 56%,#f1a019)}.game-hero.street-game{background:linear-gradient(135deg,#073653,#0d7197)}.hero-medal{position:relative;z-index:1;min-width:116px;height:116px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 25%,#fff1a6,#c8942f 55%,#7d5610);border:7px solid rgba(255,255,255,.45);font-size:55px;box-shadow:0 14px 28px rgba(0,0,0,.22)}
.dominio-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:18px}.dominio-summary .card{text-align:center}.dominio-summary strong{display:block;font-size:30px;color:#a1171b}.dominio-summary span{font-size:12px;color:var(--muted)}.dominio-builder{display:grid;gap:15px}.dominio-topic-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:14px}.dominio-topic-card{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px;border:1px solid #decaca;border-radius:17px;background:linear-gradient(145deg,#fff,#fff7f7);box-shadow:0 4px 13px rgba(85,10,14,.05)}.dominio-topic-card.active-medal{border-color:#c8942f;background:linear-gradient(145deg,#fffdf3,#fff)}.dominio-topic-select{position:absolute;top:12px;right:12px;accent-color:#b91c1c}.topic-icon{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;background:#fbe7e7;font-size:27px}.topic-copy{min-width:0;padding-right:15px}.topic-copy h3{margin:0 0 3px;font-size:15px}.topic-copy p{margin:0;color:var(--muted);font-size:11px}.topic-medal{font-size:29px;filter:grayscale(1);opacity:.26}.topic-medal.earned{filter:none;opacity:1}.dominio-percentage-row{grid-column:1/-1;display:flex;align-items:center;gap:10px}.dominio-percentage-row strong{min-width:45px;color:#a1171b}.dominio-progress{flex:1;height:11px;background:#eadfe0;border-radius:999px;overflow:hidden}.dominio-progress span{display:block;height:100%;background:linear-gradient(90deg,#b91c1c,#e45336);border-radius:inherit}.dominio-card-actions{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:9px}.dominio-start-bar{position:sticky;bottom:14px;z-index:4;display:flex;justify-content:space-between;align-items:end;gap:16px;padding:16px 18px;border:1px solid #ddb8b9;border-radius:16px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);box-shadow:0 13px 30px rgba(75,12,15,.15)}.dominio-start-bar .field{width:190px}
.fire-medal-shelf{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.fire-medals{display:flex;flex-wrap:wrap;gap:8px}.fire-medal{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#e7e8e9;filter:grayscale(1);opacity:.45}.fire-medal.earned{background:radial-gradient(circle at 35% 25%,#fff0a0,#c8942f 60%,#805411);filter:none;opacity:1;box-shadow:0 5px 12px rgba(200,148,47,.3)}.fire-topic-list{display:grid;gap:15px}.fire-topic-card{overflow:hidden;padding:0}.fire-topic-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:17px 19px;background:linear-gradient(135deg,#fff6ec,#fff)}.fire-topic-summary .topic-icon{background:#ffead9}.fire-topic-summary h2{margin:0 0 3px}.fire-topic-summary p{margin:0;color:var(--muted);font-size:12px}.fire-topic-body{padding:17px 19px;border-top:1px solid #f0dfd2}.fire-progress{height:10px;border-radius:999px;background:#ede2db;overflow:hidden;margin-bottom:14px}.fire-progress span{height:100%;display:block;background:linear-gradient(90deg,#d4490c,#ed921b)}.fire-block-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.fire-block{padding:13px;border:1px solid #e4d8cf;border-radius:13px;background:#fff}.fire-block strong{display:block}.fire-block small{display:block;color:var(--muted);margin:3px 0 10px}.fire-block.passed{border-color:#a9d4b8;background:#eff9f3}.fire-block.locked{background:#f4f5f6;opacity:.64}.fire-block.boss{border-color:#d9ad51;background:#fff9e9}.fire-boss-medal{font-size:38px}

.social-shell{max-width:780px;margin:0 auto}.social-topbar{position:sticky;top:82px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:11px 14px;border:1px solid #d8e2e8;border-radius:16px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);box-shadow:0 7px 18px rgba(11,74,111,.07)}.social-title{display:flex;align-items:center;gap:9px;white-space:nowrap}.social-logo{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#0c79a0,#0b4a6f);color:#fff;font-weight:950}.social-tabs{display:flex;gap:3px;overflow:auto}.social-tabs a{padding:8px 10px;border-radius:9px;color:#65737c;font-size:12px;font-weight:750;white-space:nowrap}.social-tabs a:hover,.social-tabs a.active{background:#eaf4fa;color:#0b4a6f}.social-feed-column{display:grid;gap:14px}.social-composer{padding:0;overflow:hidden}.social-composer>summary{list-style:none;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:13px 15px;cursor:pointer}.social-composer>summary::-webkit-details-marker{display:none}.social-composer>summary>span:nth-child(2){padding:10px 13px;border-radius:999px;background:#f0f3f5;color:#71808a}.social-composer>summary>b{font-size:23px;color:#0b4a6f}.social-composer[open]>summary{border-bottom:1px solid var(--line)}.social-composer>form{padding:16px}.social-post{padding:0;overflow:hidden}.social-post-head{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;padding:14px 15px}.social-post-menu{justify-self:end}.social-post-text{margin:0;padding:4px 16px 15px;font-size:15px;white-space:pre-wrap}.social-post-image{width:100%;max-height:720px;object-fit:contain;background:#111}.social-post-actions{display:flex;align-items:center;gap:15px;padding:11px 15px;border-top:1px solid #edf0f2}.social-action{border:0;background:transparent;padding:3px 0;font-size:17px;font-weight:800;color:#53616a}.social-action.active{color:#b91c1c}.social-action.passive{cursor:default}.social-visibility{margin-left:auto;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.social-comments{padding:0 15px 8px}.social-comments p{margin:7px 0;font-size:13px}.social-comment-form{display:flex;align-items:center;border-top:1px solid #edf0f2;padding:8px 12px}.social-comment-form .input{border:0;background:transparent;padding-left:3px}.social-comment-form .input:focus{outline:0}.social-comment-form button{border:0;background:transparent;color:#0b4a6f;font-weight:850}.social-more{justify-self:center}

.chat-page-grid{grid-template-columns:minmax(0,1.7fr) minmax(280px,.7fr)}.chat-main-card{padding:0;overflow:hidden}.chat-main-card .messages{max-height:68vh}.message-body{white-space:pre-wrap;overflow-wrap:anywhere}.chat-composer{border-top:1px solid var(--line);background:#fff}.chat-composer .chat-form{border:0}.chat-attachments{padding:0 12px 12px}.chat-attachments>summary{cursor:pointer;color:#0b4a6f;font-size:12px;font-weight:800}.chat-attachments .form-grid{margin-top:10px}.shared-question{margin-top:10px;padding:13px;border:1px solid #d5dfe5;border-radius:12px;background:#f8fbfc}.shared-question.restricted{color:#7a4b00;background:#fff8df;border-color:#ead08c}.shared-question p{font-weight:750}.shared-question .option{padding:9px 10px;margin:5px 0}.shared-results{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.group-member-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line)}.group-member-row:last-child{border:0}.group-member-row>span{display:grid}.group-member-row .actions{justify-content:flex-end}

.update-card{text-align:center;max-width:720px;margin:35px auto}.update-status{width:90px;height:90px;margin:0 auto 17px;border-radius:50%;display:grid;place-items:center;background:#eaf4fa;color:#0b4a6f;font-size:29px;font-weight:950;border:6px solid #d3e7f1}.update-status.success-mark{background:#e8f7ee;color:#177245;border-color:#c6e9d3}.update-list{display:inline-grid;gap:8px;text-align:left;margin:12px auto 22px;padding-left:23px}

@media(max-width:1050px){.academy-layout{grid-template-columns:1fr}.academy-day-column{display:grid;grid-template-columns:1fr 1fr}.review-mixed-grid{grid-template-columns:1fr}.dominio-topic-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}.chat-page-grid{grid-template-columns:1fr}.chat-page-grid>aside{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}}
@media(max-width:760px){.calendar-day{min-height:68px;padding:5px}.calendar-number{width:23px;height:23px;font-size:11px}.calendar-markers{margin-top:5px}.event-dot{width:6px;height:6px}.study-time-chip{font-size:8px;padding:1px 4px}.academy-day-column{grid-template-columns:1fr}.weekly-chart{height:235px;padding:20px 8px 14px;gap:4px}.weekly-track{width:60%}.weekly-value{font-size:9px}.mixed-footer,.dominio-start-bar,.fire-medal-shelf{align-items:stretch;flex-direction:column}.mixed-footer .field,.dominio-start-bar .field{width:100%}.dominio-start-bar .button{width:100%}.game-hero{padding:23px 18px}.hero-medal{position:absolute;right:-14px;bottom:-20px;min-width:105px;width:105px;height:105px;opacity:.33}.dominio-summary{grid-template-columns:1fr 1fr}.social-topbar{top:76px;align-items:flex-start;flex-direction:column}.social-tabs{width:100%}.chat-form{align-items:stretch}.chat-form .button{padding-left:11px;padding-right:11px}}
@media(max-width:520px){.calendar-grid{gap:2px;padding:5px}.calendar-weekdays{padding-left:5px;padding-right:5px}.calendar-day{min-height:56px;border-radius:8px}.calendar-markers .event-dot:nth-of-type(n+2){display:none}.study-time-chip{max-width:38px;overflow:hidden}.study-duration-grid{grid-template-columns:1fr}.weekly-column small{display:none}.mixed-topic-grid{grid-template-columns:1fr}.legacy-bank-form.simplified{grid-template-columns:1fr}.dominio-summary{grid-template-columns:1fr}.dominio-topic-card{grid-template-columns:auto minmax(0,1fr)}.topic-medal{display:none}.social-post-head{grid-template-columns:auto 1fr}.social-post-menu{grid-column:2}.group-member-row{flex-direction:column}.group-member-row .actions{width:100%;justify-content:flex-start}}
/* Ajustes de composición de los juegos v1.2 */
.dominio-topic-card{display:block}.dominio-topic-choice{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;cursor:pointer}.dominio-topic-checkbox{position:absolute;top:-4px;right:-4px;width:19px;height:19px;accent-color:#b91c1c}.dominio-topic-card.mastered{border-color:#c8942f;background:linear-gradient(145deg,#fffdf3,#fff)}.dominio-topic-card.medal-earned:not(.mastered){border-color:#e1c98e}.topic-medal.active{filter:none;opacity:1;filter:drop-shadow(0 3px 4px rgba(200,148,47,.35))}.dominio-percentage-row{margin-top:14px}.dominio-progress{margin-top:8px}.topic-review-form{margin-top:12px}
.fire-medal-shelf>div:first-child{display:grid}.fire-medal-shelf>div:first-child strong{font-size:30px;color:#c04a0b}.fire-medal-shelf>div:first-child span{font-size:12px;color:var(--muted)}.fire-medal.won{background:radial-gradient(circle at 35% 25%,#fff0a0,#c8942f 60%,#805411);filter:none;opacity:1;box-shadow:0 5px 12px rgba(200,148,47,.3)}.fire-topic-card>summary{list-style:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:17px 19px;background:linear-gradient(135deg,#fff6ec,#fff);cursor:pointer}.fire-topic-card>summary::-webkit-details-marker{display:none}.fire-topic-copy{display:grid}.fire-topic-copy strong{font-size:16px}.fire-topic-copy small{color:var(--muted)}.fire-topic-medal{font-size:28px;filter:grayscale(1);opacity:.3}.fire-topic-medal.won{filter:none;opacity:1}.fire-block-grid form{display:flex}.fire-block{width:100%;text-align:left}.fire-block span{font-size:20px}
.review-icon{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:#b91c1c;color:#fff;font-size:28px;font-weight:900;box-shadow:0 8px 18px rgba(185,28,28,.18)}.review-card>div:nth-child(2){display:grid;gap:4px}.review-card>div:nth-child(2)>strong{font-size:23px;color:#95171b}.review-card p{margin:0;color:var(--muted);font-size:13px}

/* === v1.2.1 · navegación y catálogo compactos === */
.sidebar{padding:14px 10px}.brand{padding:2px 7px 10px}.sidebar-emblem{width:112px;max-height:45px;margin:0 auto 8px}.nav-label{margin:11px 9px 4px;font-size:10px}.nav-link{padding:8px 10px;margin:1px 0;font-size:13px}.nav-sublinks{display:none}.content{padding:21px}.footer{padding:18px}

.study-compact-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:11px;padding:15px 17px;border:1px solid #c9dbe5;border-radius:17px;background:linear-gradient(135deg,#f7fbfd,#fff);box-shadow:0 5px 17px rgba(11,74,111,.055)}
.study-compact-head.theory{border-left:5px solid var(--legacy-red)}.study-compact-head.street{border-left:5px solid var(--legacy-gold)}
.study-compact-identity{display:flex;align-items:center;gap:13px;min-width:0}.study-compact-identity img{width:54px;height:54px;flex:none;object-fit:contain;filter:drop-shadow(0 5px 8px rgba(0,0,0,.14))}.study-compact-identity h1{margin:1px 0 2px;font-size:clamp(21px,3vw,29px);line-height:1.08}.study-compact-identity p{margin:0;color:var(--muted);font-size:12px}.study-compact-head .study-kicker{color:var(--legacy-gold-dark);font-size:9px}.study-compact-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.study-compact-actions form{display:flex}.review-button{background:var(--legacy-red)}.review-button:hover{background:#8e1518}.review-button b{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#fff;color:var(--legacy-red);font-size:11px}
.study-bulk-import.compact{margin-bottom:10px;padding:11px 13px}.study-bulk-import.compact .study-bulk-copy{gap:4px}.study-bulk-import.compact .progress{height:6px}

.study-category-strip{display:flex;gap:7px;margin:0 -2px 10px;padding:2px 2px 5px;overflow-x:auto;scrollbar-width:thin;scroll-snap-type:x proximity}.study-category-chip{--section:#0b4a6f;display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;align-items:center;gap:0 7px;min-width:max-content;padding:8px 11px;border:1px solid color-mix(in srgb,var(--section) 26%,#dfe4e8);border-radius:11px;background:#fff;box-shadow:0 2px 7px rgba(18,27,35,.035);scroll-snap-align:start}.study-category-chip>span{grid-row:1/3;font-size:18px}.study-category-chip strong{font-size:11px;color:var(--section);letter-spacing:.025em}.study-category-chip small{font-size:9px;color:var(--muted)}.study-category-chip:hover{background:var(--section-soft,#f4f8fa);border-color:color-mix(in srgb,var(--section) 48%,#dfe4e8)}

.study-tool-details{margin-bottom:10px;border-radius:13px}.study-tool-details>summary{min-height:54px;padding:10px 13px}.study-tool-details>summary>span:nth-child(2){flex:1}.study-tool-details>summary small{font-size:9px}.study-tool-details>summary strong{font-size:13px}.tool-summary-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#eaf4fa;font-size:17px}.study-tool-details .mixed-test-form{padding:13px}.study-tool-details .mixed-topic-groups{margin:10px 0}.study-tool-details .mixed-topic-groups fieldset{padding:10px}.study-tool-details .mixed-topic-option{padding:7px 8px}

.study-compact-catalog{display:grid;gap:8px}.study-compact-section{--section:#0b4a6f;--section-soft:#eaf4fa;margin:0;overflow:hidden;border:1px solid color-mix(in srgb,var(--section) 23%,#dfe4e8);border-radius:14px;background:#fff;box-shadow:0 3px 11px rgba(18,27,35,.035);scroll-margin-top:78px}.study-compact-section.tone-neutral{margin-top:0}.study-compact-section>summary{list-style:none;display:grid;grid-template-columns:38px minmax(0,1fr) auto 22px;align-items:center;gap:10px;min-height:62px;padding:9px 13px;cursor:pointer;background:linear-gradient(90deg,var(--section-soft),#fff)}.study-compact-section>summary::-webkit-details-marker{display:none}.study-compact-section>summary:hover{filter:brightness(.99)}.study-compact-section .study-section-icon{width:36px;height:36px;border-radius:10px;font-size:18px;box-shadow:none}.study-compact-section-copy{display:grid;min-width:0}.study-compact-section-copy strong{font-size:14px;color:var(--section);letter-spacing:.02em}.study-compact-section-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--muted)}.study-compact-section-stats{display:grid;justify-items:end;min-width:65px}.study-compact-section-stats b{font-size:14px;color:var(--section)}.study-compact-section-stats small{font-size:9px;color:var(--muted)}.study-section-chevron{font-size:20px;color:var(--section);transition:transform .18s}.study-compact-section[open] .study-section-chevron{transform:rotate(180deg)}.study-compact-section[open]>summary{border-bottom:1px solid color-mix(in srgb,var(--section) 18%,#e4e8eb)}.study-compact-section-body{padding:11px}

.study-mode-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:11px}.study-mode-option{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:0 8px;min-height:58px;padding:8px 10px;border:1px solid #dce3e7;border-radius:11px;background:#fff}.study-mode-option>span{grid-row:1/3;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#edf2f5;font-size:17px}.study-mode-option strong{font-size:12px}.study-mode-option small{font-size:9px;color:var(--muted)}.study-mode-option:hover{transform:translateY(-1px);box-shadow:0 5px 13px rgba(18,27,35,.075)}.study-mode-option.active{border-color:#7fa8bc;background:#eff8fb}.study-mode-option.dominio{border-color:#d7999b;background:#fff2f2}.study-mode-option.dominio>span{background:#b91c1c;color:#fff}.study-mode-option.fuego{border-color:#e5b18d;background:#fff5ed}.study-mode-option.fuego>span{background:#d35400;color:#fff}.study-mode-option.street{border-color:#91b5c8;background:#f0f8fb}.study-mode-option.street>span{background:#0b4a6f;color:#fff}.study-mode-option.mastodonte{border-color:#dec78f;background:#fff9ec}.study-mode-option.mastodonte>span{background:#c8942f;color:#fff}.study-compact-subhead{display:flex;align-items:baseline;gap:7px;margin:2px 1px 8px;padding-top:2px}.study-compact-subhead strong{font-size:12px;color:var(--section)}.study-compact-subhead span{font-size:10px;color:var(--muted)}

.study-compact-bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.study-compact-bank{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:62px;padding:8px 9px;border:1px solid #e0e5e8;border-radius:10px;background:#fff}.study-compact-bank:hover{border-color:color-mix(in srgb,var(--section) 43%,#dfe4e8)}.study-compact-bank.unavailable{background:#f7f8f9;opacity:.74}.study-compact-bank-copy{min-width:0}.study-compact-bank-copy h3{margin:0;font-size:12px;line-height:1.2}.study-compact-bank-copy>span{display:block;margin-top:2px;color:var(--section);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.025em}.study-compact-bank-copy p{margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:9px}.study-compact-bank-form{display:grid;grid-template-columns:62px auto;align-items:center;gap:5px}.study-compact-bank-form .input{min-height:32px;height:32px;padding:4px 6px;text-align:center}.study-compact-bank-form .button{min-height:32px;padding:5px 9px;background:var(--section)}
.material-shortcuts.compact{padding:2px;gap:7px}.material-shortcuts.compact .material-chip{padding:8px 11px;font-size:11px}.study-personal-form{display:grid;grid-template-columns:minmax(180px,1fr) 80px auto;gap:7px}.study-personal-form .input,.study-personal-form .select{min-height:36px;padding:6px 9px}.study-personal-form .button{min-height:36px;padding:6px 11px}.empty.compact{padding:14px}

@media(max-width:980px){.sidebar{left:-280px;width:260px}.sidebar-emblem{display:none}.brand{padding-bottom:7px}.brand-sub{display:none}.content{padding:16px}.study-compact-bank-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.topbar{height:58px}.study-compact-head{align-items:flex-start;padding:11px 12px}.study-compact-identity img{width:42px;height:42px}.study-compact-identity h1{font-size:20px}.study-compact-identity p{display:none}.study-compact-head .study-kicker{font-size:8px}.study-compact-actions{max-width:150px}.study-compact-actions .button{min-height:32px;padding:5px 8px;font-size:11px}.study-category-strip{margin-bottom:8px}.study-mode-picker{grid-template-columns:1fr}.study-compact-bank-grid{grid-template-columns:1fr}.study-personal-form{grid-template-columns:1fr 70px}.study-personal-form .button{grid-column:1/-1}.study-compact-section-copy small{max-width:47vw}.mixed-footer{align-items:stretch}.mixed-footer .field{width:100%}}
@media(max-width:500px){.content{padding:10px 8px}.study-compact-head{gap:8px;border-radius:13px}.study-compact-identity{gap:8px}.study-compact-identity img{width:34px;height:34px}.study-compact-identity h1{font-size:17px}.study-compact-actions{gap:4px}.study-compact-actions .button.secondary:first-child{display:none}.study-category-chip{padding:7px 9px}.study-category-chip strong{font-size:10px}.study-category-chip small{font-size:8px}.study-tool-details>summary{padding:8px 10px}.study-compact-section>summary{grid-template-columns:34px minmax(0,1fr) auto 17px;min-height:55px;padding:7px 9px;gap:7px}.study-compact-section .study-section-icon{width:32px;height:32px;font-size:16px}.study-compact-section-copy strong{font-size:12px}.study-compact-section-copy small{display:none}.study-compact-section-stats{min-width:51px}.study-compact-section-stats b{font-size:12px}.study-compact-section-stats small{font-size:8px}.study-compact-section-body{padding:7px}.study-mode-picker{gap:5px;margin-bottom:7px}.study-mode-option{min-height:50px;padding:6px 8px}.study-compact-bank{min-height:55px;padding:6px 7px}.study-compact-bank-copy h3{font-size:11px}.study-compact-bank-copy p{display:none}.study-compact-bank-form{grid-template-columns:55px auto}.study-compact-bank-form .button{padding-left:7px;padding-right:7px}.mixed-topic-grid{grid-template-columns:1fr}}

/* === v1.2.2 · portada de estudio y sidebar compacto === */
.app-shell{grid-template-columns:250px minmax(0,1fr)}
.sidebar.compact-sidebar{
  width:250px;
  padding:20px 14px 18px;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  background-color:#710b10;
  background-image:linear-gradient(180deg,rgba(36,0,3,.22),rgba(114,7,13,.38)),url("../img/legacy/sidebar-bomberos.png");
  background-size:cover;
  background-position:center;
  box-shadow:9px 0 28px rgba(44,0,4,.2)
}
.compact-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:118px;
  padding:10px 8px 18px
}
.compact-brand img{
  width:min(184px,88%);
  max-height:76px;
  object-fit:contain;
  filter:drop-shadow(0 6px 11px rgba(0,0,0,.44))
}
.compact-main-nav{display:flex;flex-direction:column;gap:11px;min-height:0}
.compact-nav-link{
  display:grid;
  grid-template-columns:35px minmax(0,1fr) 23px;
  align-items:center;
  gap:9px;
  min-height:58px;
  margin:0;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.39);
  border-radius:15px;
  color:#fff;
  background:rgba(255,255,255,.075);
  box-shadow:0 7px 16px rgba(35,0,3,.13);
  font-size:13px;
  font-weight:850;
  letter-spacing:.01em;
  backdrop-filter:blur(5px);
  transition:transform .15s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease
}
.compact-nav-link:hover{
  transform:translateY(-1px);
  color:#fff;
  background:rgba(255,255,255,.15);
  border-color:rgba(255,255,255,.62)
}
.compact-nav-link.active{
  color:#18222d;
  background:linear-gradient(135deg,#fff,#edf7fb);
  border-color:#d7b44d;
  box-shadow:0 0 0 2px rgba(215,180,77,.46),0 10px 22px rgba(42,0,3,.22)
}
.compact-nav-icon{
  width:33px;
  height:33px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#fff;
  background:rgba(255,255,255,.14);
  font-size:17px;
  font-weight:950
}
.compact-nav-link.active .compact-nav-icon{color:#7c1116;background:#f3e2e2}
.compact-nav-arrow{display:grid;place-items:center;width:23px;height:29px;border-radius:9px;background:rgba(255,255,255,.11);font-size:21px;line-height:1}
.compact-nav-link.active .compact-nav-arrow{color:#7c1116;background:#efe4e4}
.compact-nav-link.nav-kind-admin{margin-top:10px;background:rgba(74,0,5,.28)}
.compact-nav-link.nav-kind-admin.active{background:linear-gradient(135deg,#fff,#fff4f4)}

.topbar{
  height:58px;
  padding:0 20px;
  color:#fff;
  border-bottom:0;
  background:linear-gradient(90deg,#6b090e,#a61e23 54%,#8b1117);
  box-shadow:0 4px 16px rgba(79,4,8,.2)
}
.topbar .icon-button{color:#fff;border-color:rgba(255,255,255,.42);background:rgba(255,255,255,.12)}
.topbar .icon-button:hover{background:rgba(255,255,255,.22)}
.topbar .user-chip{color:#17202a;background:rgba(255,255,255,.97);box-shadow:0 4px 12px rgba(56,0,4,.18)}
.topbar .user-chip .muted{color:#65717b}
.topbar .badge{background:#0b4a6f}

body.study-home-screen{background:#f4f8fb}
body.study-home-screen .content{
  width:100%;
  max-width:none;
  min-height:calc(100vh - 58px);
  margin:0;
  padding:0;
  display:grid;
  align-items:center
}
body.study-home-screen .footer{display:none}
body.study-home-screen .alert{margin:14px 24px 0}
.study-gateway{
  width:100%;
  min-height:calc(100vh - 58px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:42px clamp(24px,4vw,68px);
  background:
    radial-gradient(700px 340px at 50% 20%,rgba(83,205,220,.08),transparent 72%),
    linear-gradient(180deg,#f8fbfd,#f3f7fa)
}
.study-gateway-grid{
  width:min(100%,1200px);
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:30px
}
.study-gateway-grid.single{max-width:590px;grid-template-columns:1fr}
.study-gateway-card{
  position:relative;
  overflow:hidden;
  min-height:clamp(410px,58vh,570px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:30px 28px 34px;
  border:2px solid #c6dce8;
  border-radius:21px;
  color:#073653;
  background:linear-gradient(160deg,rgba(255,255,255,.98),rgba(233,246,252,.88));
  box-shadow:0 18px 34px rgba(34,62,78,.11);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease
}
.study-gateway-card:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,.4),transparent 45%)
}
.study-gateway-card:hover{
  transform:translateY(-5px);
  border-color:#72c6d2;
  box-shadow:0 25px 44px rgba(28,69,88,.17)
}
.study-gateway-card:focus-visible{outline:4px solid rgba(11,74,111,.25);outline-offset:4px}
.study-gateway-art{
  position:relative;
  z-index:1;
  width:100%;
  min-height:285px;
  display:grid;
  place-items:center
}
.study-gateway-art img{width:auto;max-width:82%;max-height:330px;object-fit:contain;filter:drop-shadow(0 12px 15px rgba(20,45,58,.12))}
.study-gateway-card.street .study-gateway-art img{max-height:300px;max-width:77%}
.study-gateway-card>strong{
  position:relative;
  z-index:1;
  text-align:center;
  font-size:clamp(22px,2.2vw,32px);
  font-weight:950;
  letter-spacing:.012em
}
.study-gateway-empty{width:min(100%,650px)}

@media(max-width:980px){
  .app-shell{grid-template-columns:1fr}
  .sidebar.compact-sidebar{left:-270px;width:250px}
  .sidebar.compact-sidebar.open{left:0}
  .compact-brand{min-height:88px;padding:5px 8px 12px}
  .compact-brand img{max-height:56px;width:158px}
  .compact-main-nav{gap:8px}
  .compact-nav-link{min-height:51px;padding:8px 10px}
}

@media(max-width:720px){
  .topbar{height:54px;padding:0 10px}
  body.study-home-screen .content{min-height:calc(100vh - 54px)}
  .study-gateway{
    min-height:calc(100vh - 54px);
    justify-content:flex-start;
    gap:10px;
    padding:12px 10px 16px
  }
  .study-gateway-grid{grid-template-columns:1fr;gap:10px}
  .study-gateway-grid.single{max-width:none}
  .study-gateway-card{
    min-height:154px;
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
    gap:10px;
    padding:10px 14px;
    border-radius:16px
  }
  .study-gateway-art{min-height:132px;height:132px}
  .study-gateway-art img{max-width:106px;max-height:128px}
  .study-gateway-card.street .study-gateway-art img{max-width:101px;max-height:124px}
  .study-gateway-card>strong{text-align:left;font-size:clamp(18px,6vw,24px);line-height:1.18}
  .study-gateway-card:hover{transform:none}
}

@media(max-width:430px){
  .user-chip{padding:5px 7px}
  .topbar .icon-button{min-width:37px;height:37px}
  .study-gateway-card{grid-template-columns:96px minmax(0,1fr);min-height:137px;padding:8px 10px}
  .study-gateway-art{height:119px;min-height:119px}
  .study-gateway-art img{max-width:90px;max-height:115px}
  .study-gateway-card.street .study-gateway-art img{max-width:86px;max-height:110px}
  .study-gateway-card>strong{font-size:17px}
}
@media(max-width:650px){
  .topbar .user-chip>.avatar{display:grid}
  .topbar .user-chip>span:not(.avatar){display:none}
}

/* === v1.2.3 · navegación única de estudio y planificación compacta === */
.study-tabs-strip{
  position:sticky;
  top:66px;
  z-index:8;
  margin-bottom:8px;
  padding:4px 2px 7px;
  background:linear-gradient(180deg,rgba(242,244,246,.98) 72%,rgba(242,244,246,0));
  scrollbar-width:thin
}
.study-tabs-strip .study-category-chip{
  appearance:none;
  font:inherit;
  text-align:left;
  cursor:pointer;
  color:var(--text);
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease
}
.study-tabs-strip .study-category-chip.tone-neutral{margin-top:0}
.study-tabs-strip .study-category-chip:hover{transform:translateY(-1px)}
.study-tabs-strip .study-category-chip.active{
  background:var(--section-soft,#eef7fb);
  border-color:var(--section,#0b4a6f);
  box-shadow:inset 0 -3px var(--section,#0b4a6f),0 5px 13px rgba(18,27,35,.08)
}
.study-tabs-strip .study-category-chip.active strong{font-weight:950}
.study-tab-stage{min-height:190px}
.study-tab-panel{
  --section:#0b4a6f;
  --section-soft:#eaf4fa;
  margin:0;
  padding:11px;
  border:1px solid color-mix(in srgb,var(--section) 25%,#dfe4e8);
  border-radius:14px;
  background:linear-gradient(155deg,var(--section-soft),#fff 150px);
  box-shadow:0 5px 17px rgba(18,27,35,.055)
}
.study-tab-panel.tone-neutral{margin-top:0}
.study-tab-panel[hidden]{display:none!important}
.study-tab-panel.active{animation:study-panel-in .16s ease-out}
@keyframes study-panel-in{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:none}}
.study-tab-panel .study-mode-picker{margin-bottom:9px}
.study-tab-panel .study-compact-bank-grid{margin-top:0}
.study-tab-panel .compact-panel-form{padding:0}
.study-tab-panel .mixed-topic-groups{max-height:min(52vh,520px);overflow:auto;padding-right:3px}
.study-own-question-link{display:flex;justify-content:flex-end;margin-top:9px}

/* Planificación: escritorio sin scroll y móvil por pestañas. */
body.academy-screen{height:100vh;height:100dvh;overflow:hidden}
body.academy-screen .app-shell,body.academy-screen .main{height:100%;min-height:0;overflow:hidden}
body.academy-screen .content{
  width:100%;
  max-width:none;
  height:calc(100vh - 68px);
  height:calc(100dvh - 68px);
  min-height:0;
  margin:0;
  padding:12px 16px;
  overflow:hidden
}
body.academy-screen .footer{display:none}
.academy-compact-page{
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:8px
}
.academy-page-head.compact{
  flex:none;
  min-height:44px;
  align-items:center;
  margin:0
}
.academy-page-head.compact h1{font-size:clamp(21px,2.4vw,30px);line-height:1.05}
.academy-page-head.compact p{margin-top:2px;font-size:12px}
.academy-update-alert{flex:none;margin:0;padding:8px 11px;font-size:12px}
.academy-view-tabs{display:none}
.academy-compact-layout{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1.48fr) minmax(320px,.72fr);
  gap:10px;
  align-items:stretch
}
.compact-calendar-card{
  min-height:0;
  height:100%;
  display:flex;
  flex-direction:column;
  padding:0;
  overflow:hidden
}
.compact-calendar-toolbar{flex:none;padding:8px 12px}
.compact-calendar-toolbar h2{font-size:17px;line-height:1.1}
.compact-calendar-toolbar p,.compact-calendar-toolbar a.small{font-size:10px}
.compact-calendar-toolbar .calendar-arrow{width:34px;height:34px;border-radius:10px;font-size:23px}
.compact-calendar-card .calendar-weekdays{flex:none;padding:5px 8px 3px}
.compact-calendar-card .calendar-weekdays span{font-size:9px}
.compact-calendar-grid{
  flex:1;
  min-height:0;
  grid-template-rows:repeat(6,minmax(0,1fr));
  padding:6px;
  gap:3px
}
.compact-calendar-grid .calendar-day{min-height:0;padding:4px;border-radius:8px}
.compact-calendar-grid .calendar-number{width:24px;height:24px;border-radius:7px;font-size:11px}
.compact-calendar-grid .calendar-markers{gap:3px;margin-top:5px}
.compact-calendar-grid .event-dot{width:6px;height:6px}
.compact-calendar-grid .study-time-chip{padding:1px 4px;font-size:8px}
.academy-compact-side{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:minmax(155px,.4fr) minmax(0,.6fr);
  gap:10px
}
.compact-weekly-card{
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:0;
  overflow:hidden
}
.weekly-compact-toolbar{
  flex:none;
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 32px;
  align-items:center;
  gap:6px;
  padding:8px 9px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg,#fff7e5,#fff)
}
.weekly-compact-toolbar h2{margin:0;text-align:center;font-size:14px;color:#0b4a6f}
.weekly-compact-toolbar p{margin:1px 0 0;text-align:center;font-size:9px;color:var(--muted)}
.calendar-arrow.small-arrow{width:30px;height:30px;border-radius:9px;font-size:21px}
.compact-weekly-chart{
  flex:1;
  min-height:0;
  height:auto;
  gap:5px;
  padding:10px 9px 8px
}
.compact-weekly-chart .weekly-column{grid-template-rows:17px 1fr auto;gap:3px}
.compact-weekly-chart .weekly-column small{display:none}
.compact-weekly-chart .weekly-value{font-size:8px}
.compact-weekly-chart .weekly-track{width:min(28px,76%);border-radius:8px 8px 3px 3px}
.compact-weekly-chart .weekly-column strong{font-size:9px}
.academy-selected-card{
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:11px 12px;
  overflow:hidden
}
.academy-selected-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px}
.academy-selected-head h2{margin:0;font-size:17px;color:#0b4a6f}
.compact-date-badge{min-width:44px;width:44px;height:44px;border-radius:12px;font-size:12px}
.academy-selected-events{min-height:0;flex:1;overflow:auto;display:grid;gap:5px;align-content:start}
.academy-empty-line{margin:2px 0 4px;padding:8px;border-radius:9px;background:#f7f9fa;color:var(--muted);font-size:10px;text-align:center}
.day-event.compact-event{padding:7px 8px;border-left-width:3px;border-radius:8px}
.day-event.compact-event strong{font-size:11px}
.day-event.compact-event p{margin:3px 0 0;font-size:9px;line-height:1.3;color:#52606a}
.study-log-details{flex:none;border:1px solid #cadce6;border-radius:10px;background:#fff;overflow:hidden}
.study-log-details>summary{
  list-style:none;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 16px;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:7px 9px;
  cursor:pointer;
  background:linear-gradient(135deg,#edf7fb,#fff)
}
.study-log-details>summary::-webkit-details-marker{display:none}
.study-log-details>summary span{font-size:11px;font-weight:850;color:#0b4a6f}
.study-log-details>summary strong{font-size:9px;color:var(--muted)}
.study-log-details>summary i{font-style:normal;transition:transform .18s}
.study-log-details[open]>summary i{transform:rotate(180deg)}
.compact-study-log-form{display:grid;gap:7px;padding:8px;border-top:1px solid #dbe5ea}
.compact-study-log-form .study-duration-grid{gap:7px}
.compact-study-log-form .field{gap:3px}
.compact-study-log-form label{font-size:10px}
.compact-study-log-form .input{min-height:32px;padding:5px 7px}
.compact-study-log-form .compact-note{min-height:52px;height:52px;padding:6px 7px;resize:vertical}
.compact-study-log-form .button{justify-self:end}

@media(max-width:980px){
  .study-tabs-strip{top:62px}
  body.academy-screen .content{height:calc(100dvh - 68px);padding:10px}
  .academy-compact-layout{grid-template-columns:minmax(0,1.35fr) minmax(285px,.65fr)}
  .academy-compact-side{grid-template-rows:minmax(145px,.38fr) minmax(0,.62fr)}
}

@media(max-width:820px){
  body.academy-screen .content{padding:7px 8px}
  .academy-compact-page{gap:5px}
  .academy-page-head.compact{min-height:38px}
  .academy-page-head.compact .study-kicker,.academy-page-head.compact p{display:none}
  .academy-page-head.compact h1{font-size:19px}
  .academy-page-head.compact .button{min-height:30px;padding:4px 7px;font-size:10px}
  .academy-update-alert{padding:6px 8px;font-size:10px}
  .academy-view-tabs{
    flex:none;
    display:flex;
    gap:4px;
    padding:3px;
    border:1px solid #cbdce5;
    border-radius:11px;
    background:#edf5f9
  }
  .academy-view-tab{
    flex:1;
    min-width:0;
    padding:6px 5px;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#52636d;
    text-align:center;
    font-size:10px;
    font-weight:850;
    white-space:nowrap
  }
  .academy-view-tab.active{color:#fff;background:#0b4a6f;box-shadow:0 3px 8px rgba(11,74,111,.18)}
  .academy-compact-layout{display:block;flex:1;min-height:0}
  .academy-compact-side{display:contents}
  [data-planning-panel]{height:100%;min-height:0}
  [data-planning-panel]:not(.active),[data-planning-panel][hidden]{display:none!important}
  .compact-calendar-card,.compact-weekly-card,.academy-selected-card{height:100%}
  .compact-calendar-toolbar,.weekly-compact-toolbar{min-height:43px;padding:5px 8px}
  .compact-calendar-toolbar h2,.weekly-compact-toolbar h2{font-size:14px}
  .compact-calendar-toolbar .calendar-arrow,.weekly-compact-toolbar .calendar-arrow{width:29px;height:29px}
  .compact-calendar-grid{padding:4px;gap:2px}
  .compact-calendar-grid .calendar-day{padding:3px}
  .compact-calendar-grid .calendar-number{width:21px;height:21px;font-size:10px}
  .compact-calendar-grid .calendar-markers{margin-top:2px}
  .compact-weekly-chart{padding:14px 8px 10px}
  .academy-selected-card{padding:9px}
}

@media(max-width:720px){
  .study-tabs-strip{top:54px;margin-left:-2px;margin-right:-2px}
  body.academy-screen .content{height:calc(100dvh - 58px)}
  .study-tab-panel{padding:8px}
  .study-tab-panel .mixed-topic-groups{max-height:48vh}
}

@media(max-width:500px){
  .study-tabs-strip .study-category-chip{padding:6px 8px}
  .study-tabs-strip .study-category-chip>span{font-size:16px}
  .study-tabs-strip .study-category-chip strong{font-size:9px}
  .study-tabs-strip .study-category-chip small{font-size:7px}
  .study-tab-panel .study-mode-picker{grid-template-columns:1fr 1fr}
  .study-tab-panel .study-mode-option:first-child:last-child{grid-column:1/-1}
  body.academy-screen .content{padding:6px}
  .academy-page-head.compact{min-height:35px}
  .academy-page-head.compact h1{font-size:17px}
  .academy-view-tab{padding:5px 3px;font-size:9px}
  .compact-calendar-card .calendar-weekdays{padding:3px 4px 2px}
  .compact-calendar-grid .calendar-day.outside{opacity:.28}
  .compact-calendar-grid .calendar-markers .event-dot:nth-of-type(n+2){display:none}
  .compact-calendar-grid .study-time-chip{max-width:34px;overflow:hidden;white-space:nowrap}
  .weekly-compact-toolbar p{font-size:8px}
}

/* v1.3.0 · selección completa de preguntas de Callejero */
.study-compact-bank-form.street-count-form{
  grid-template-columns:minmax(92px,1fr) minmax(74px,.72fr) auto;
}
.street-count-mode-label,.street-custom-count-label{min-width:0}
.street-count-mode-label .select,.street-custom-count-label .input{min-height:34px;height:34px;padding:5px 7px;font-size:11px}
.street-mixed-footer{grid-template-columns:minmax(160px,.75fr) minmax(140px,.55fr) auto}
.study-checkpoint{
  display:grid;place-items:center;gap:7px;min-height:230px;padding:24px;border:1px solid #9cc4d7;border-radius:13px;
  background:radial-gradient(circle at 50% 20%,#e8f7fc,#fff 70%);text-align:center
}
.study-checkpoint h2{margin:0;color:#0b4a6f;font-size:24px}
.study-checkpoint p{max-width:520px;margin:0;color:#60707a}
@media(max-width:720px){
  .study-compact-bank-form.street-count-form{grid-template-columns:minmax(84px,1fr) minmax(66px,.65fr) auto}
  .street-mixed-footer{grid-template-columns:1fr 1fr}
  .street-mixed-footer .button{grid-column:1/-1}
}
@media(max-width:500px){
  .study-compact-bank-form.street-count-form{grid-template-columns:minmax(75px,1fr) minmax(60px,.62fr) auto}
  .street-count-mode-label .select,.street-custom-count-label .input{font-size:9px;padding:4px 5px}
}

/* === v1.3.1 · flujo por pasos y cantidad después de elegir el tema === */
.study-decision-placeholder{
  min-height:180px;display:flex;align-items:center;justify-content:center;gap:14px;padding:24px;
  border:1px dashed #a8bdc8;border-radius:14px;background:linear-gradient(145deg,#f8fbfc,#eef5f8);
  color:#314955;text-align:left
}
.study-decision-placeholder[hidden]{display:none!important}
.study-decision-number,.study-step-heading>span{
  flex:0 0 auto;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;
  background:#0b4a6f;color:#fff;font-weight:950;box-shadow:0 4px 11px rgba(11,74,111,.18)
}
.study-decision-placeholder>div,.study-step-heading>div{display:grid;gap:2px;min-width:0}
.study-decision-placeholder strong{font-size:16px}
.study-decision-placeholder small,.study-step-heading small{color:var(--muted);font-size:11px}
.study-step-heading{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.study-step-heading.compact{margin:2px 0 9px}
.study-step-heading.compact>span{width:27px;height:27px;font-size:12px}
.study-step-heading strong{font-size:13px;color:var(--section,#0b4a6f)}
.study-mode-picker{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.study-mode-option:is(button){appearance:none;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer}
.study-mode-option:is(button):focus-visible{outline:3px solid rgba(11,74,111,.25);outline-offset:2px}
.study-mode-option.normal.active{border-color:#0b4a6f;background:#eaf4fa;box-shadow:inset 0 -3px #0b4a6f,0 5px 13px rgba(18,27,35,.075)}
.study-normal-mode-content{padding-top:2px}
.study-normal-mode-content[hidden]{display:none!important}
.study-test-launch{white-space:nowrap;background:var(--section,#0b4a6f)}
.count-later-footer{align-items:center;justify-content:space-between;gap:14px}
.mixed-next-copy{display:grid;gap:2px;min-width:0}
.mixed-next-copy strong{font-size:12px;color:#0b4a6f}
.mixed-next-copy small{font-size:10px;color:var(--muted)}
.study-personal-form.count-later-personal{grid-template-columns:minmax(180px,1fr) auto;align-items:end}
.study-personal-form.count-later-personal .field{margin:0}

body.test-count-picker-open{overflow:hidden}
.test-count-picker[hidden]{display:none!important}
.test-count-picker{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:16px}
.test-count-picker-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(5,15,24,.72);backdrop-filter:blur(5px);cursor:default}
.test-count-picker-panel{
  position:relative;z-index:1;width:min(650px,100%);max-height:min(720px,calc(100dvh - 24px));overflow:auto;
  border:1px solid #92b1c1;border-radius:20px;background:linear-gradient(160deg,#f7fbfd,#fff 48%,#eef6f9);
  box-shadow:0 28px 90px rgba(0,0,0,.38)
}
.test-count-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px 13px;border-bottom:1px solid #d7e2e7}
.test-count-picker-head>div{display:grid;gap:2px}
.test-count-picker-head span{color:#0b4a6f;font-size:10px;font-weight:950;letter-spacing:.14em}
.test-count-picker-head h2{margin:0;font-size:24px;line-height:1.1}
.test-count-picker-head p{margin:3px 0 0;color:var(--muted);font-size:12px}
.test-count-picker-close{width:38px;height:38px;display:grid;place-items:center;border:1px solid #ccdbe2;border-radius:12px;background:#fff;color:#263b46;font-size:25px;line-height:1;cursor:pointer}
.test-count-picker-close:hover{background:#eef6f9}
.test-count-picker-form,.test-count-picker-panel form{padding:16px 20px 20px}
.test-count-picker-fieldset{min-width:0;margin:0;padding:0;border:0}
.test-count-picker-fieldset legend{margin-bottom:11px;font-size:13px;font-weight:900;color:#243a45}
.test-count-picker-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.test-count-choice{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:9px;min-height:76px;padding:8px;border:1px solid #d6e1e6;border-radius:14px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s,transform .15s}
.test-count-choice:hover{transform:translateY(-1px);border-color:#7ea8bc;box-shadow:0 6px 15px rgba(18,27,35,.08)}
.test-count-choice.selected{border-color:#0b4a6f;background:#eaf5fa;box-shadow:inset 0 -3px #0b4a6f,0 5px 13px rgba(18,27,35,.07)}
.test-count-choice:focus-within{outline:3px solid rgba(11,74,111,.22);outline-offset:2px}
.test-count-choice input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.test-count-choice-disc{width:54px;height:54px;display:grid;place-items:center;border:2px solid #9eb7c4;border-radius:50%;background:linear-gradient(145deg,#fff,#e8f0f4);color:#0b4a6f;font-size:18px;font-weight:950;box-shadow:inset 0 0 0 4px #f7fafb}
.test-count-choice.selected .test-count-choice-disc{border-color:#0b4a6f;background:linear-gradient(145deg,#0e608d,#083c5a);color:#fff}
.test-count-choice-copy{display:grid;gap:2px;min-width:0}
.test-count-choice-copy strong{font-size:12px;line-height:1.15}
.test-count-choice-copy small{color:var(--muted);font-size:9px;line-height:1.25}
.test-count-custom{display:grid;gap:5px;margin-top:12px;padding:12px;border:1px solid #bad0db;border-radius:13px;background:#f2f8fb}
.test-count-custom[hidden]{display:none!important}
.test-count-custom>span{font-size:12px;font-weight:900;color:#0b4a6f}
.test-count-custom small{color:var(--muted);font-size:10px}
.test-count-picker-error{margin:12px 0 0}
.test-count-picker-error[hidden]{display:none!important}
.test-count-picker-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px;padding-top:14px;border-top:1px solid #dbe4e8}

@media(max-width:720px){
  .study-decision-placeholder{min-height:135px;padding:17px}
  .study-mode-picker{grid-template-columns:1fr 1fr}
  .study-mode-picker .study-mode-option:first-child:nth-last-child(3){grid-column:1/-1}
  .test-count-picker{padding:8px}
  .test-count-picker-panel{max-height:calc(100dvh - 16px);border-radius:16px}
  .test-count-picker-head{padding:14px 14px 11px}
  .test-count-picker-head h2{font-size:20px}
  .test-count-picker-panel form{padding:13px 14px 15px}
  .test-count-picker-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .test-count-choice{grid-template-columns:47px minmax(0,1fr);min-height:64px;padding:7px}
  .test-count-choice-disc{width:44px;height:44px;font-size:15px}
  .count-later-footer{align-items:stretch;flex-direction:column}
  .count-later-footer .button{width:100%}
}

@media(max-width:500px){
  .study-decision-placeholder{justify-content:flex-start;min-height:105px;padding:13px;gap:9px}
  .study-decision-number,.study-step-heading>span{width:29px;height:29px;font-size:12px}
  .study-decision-placeholder strong{font-size:13px}
  .study-decision-placeholder small,.study-step-heading small{font-size:9px}
  .study-step-heading{gap:7px;margin-bottom:7px}
  .study-mode-picker{grid-template-columns:1fr}
  .study-mode-picker .study-mode-option:first-child:nth-last-child(3){grid-column:auto}
  .study-compact-bank{grid-template-columns:minmax(0,1fr) auto}
  .study-test-launch{min-height:31px;padding:5px 8px;font-size:10px}
  .study-personal-form.count-later-personal{grid-template-columns:1fr}
  .test-count-picker-options{grid-template-columns:1fr 1fr}
  .test-count-choice{grid-template-columns:42px minmax(0,1fr);min-height:57px}
  .test-count-choice-disc{width:39px;height:39px;font-size:13px}
  .test-count-choice-copy strong{font-size:11px}
  .test-count-choice-copy small{font-size:8px}
  .test-count-picker-actions{display:grid;grid-template-columns:1fr 1fr}
  .test-count-picker-actions .button{min-width:0;padding-left:7px;padding-right:7px}
}
