/* Cinco composiciones sobre los mismos datos y controles. Solo dashboard. */
body.db-dashboard {
 --db-cream:#fbf8ef;--db-bg:#f2ecdf;--db-ink:#193d36;--db-muted:#66786a;--db-accent:#176961;--db-line:#d9dfce;--db-tint:#e7edde;
 --rvn-ink:var(--db-ink);--rvn-paper:var(--db-cream);--rvn-accent:var(--db-accent);--text-primary:var(--db-ink);--text-secondary:var(--db-muted);--text-muted:var(--db-muted);--primary:var(--db-accent);--primary-light:var(--db-accent);--bg-dark:var(--db-cream);--bg-darker:var(--db-bg);--border:var(--db-line);
 margin:0;background:radial-gradient(ellipse at 20% 0%,#fffdf5,transparent 65%),var(--db-bg);color:var(--db-ink);font-family:'Poppins',system-ui,sans-serif;min-width:0;
}
body.db-dashboard *,body.db-dashboard *::before,body.db-dashboard *::after {box-sizing:border-box;}
body.db-dashboard [hidden] {display:none !important;}
body.db-dashboard a {text-decoration:none;}
body.db-dashboard :focus-visible {outline:3px solid #c78136;outline-offset:4px;}
body.db-dashboard :is(button,a,select,input) {touch-action:manipulation;}
body.db-dashboard .dash-nav {height:auto;background:var(--db-cream);border-bottom:1px solid var(--db-line);box-shadow:none;backdrop-filter:blur(15px);position:sticky;top:0;z-index:40;}
body.db-dashboard .dash-nav-inner {max-width:1600px;min-height:74px;height:auto;padding:14px 30px;gap:20px;}
body.db-dashboard .dash-logo {font-size:1rem;color:var(--db-ink);text-shadow:none;}
body.db-dashboard .dash-logo span {color:var(--db-accent);}
body.db-dashboard .nav-right {gap:10px;flex-wrap:wrap;}
body.db-dashboard :is(.user-chip,.btn-logout,#themeFabNavBtn,.cast-btn-nav) {background:var(--db-cream);border:1px solid var(--db-line);color:var(--db-ink);box-shadow:none;min-height:38px;}
body.db-dashboard .user-avatar {background:var(--db-accent);color:#fff;}
body.db-dashboard #userName {color:var(--db-ink);}
body.db-dashboard .welcome-title {text-shadow:none;}
body.db-dashboard :is(.theme-fab,.font-fab) {position:relative;inset:auto;z-index:70;}
body.db-dashboard .theme-fab-btn {display:none;}
body.db-dashboard .font-fab-btn {width:37px;height:37px;min-width:37px;border:1px solid var(--db-line);background:var(--db-cream);color:var(--db-ink);box-shadow:none;border-radius:10px;}
body.db-dashboard :is(.font-panel,.theme-panel) {position:absolute;top:calc(100% + 12px);bottom:auto;right:0;left:auto;max-height:70dvh;overflow:auto;background:var(--db-cream);color:var(--db-ink);border-color:var(--db-line);box-shadow:0 12px 40px #193d3520;}
body.db-dashboard .db-shell {display:grid;grid-template-columns:210px minmax(0,1fr);max-width:1600px;margin:auto;align-items:start;}
body.db-dashboard .db-sidebar {position:sticky;top:100px;min-height:calc(100vh - 100px);padding:26px 16px;display:flex;flex-direction:column;gap:22px;}
body.db-dashboard .db-sidebar-caption {font-size:.58rem;letter-spacing:.17em;font-weight:800;padding-left:14px;color:var(--db-muted);}
body.db-dashboard #dbSideLinks {display:grid;gap:7px;}
body.db-dashboard #dbSideLinks a {display:flex;align-items:center;gap:12px;padding:13px;border-radius:12px;color:var(--db-ink);font-size:.77rem;font-weight:500;}
body.db-dashboard #dbSideLinks i {width:22px;font-size:1rem;text-align:center;}
body.db-dashboard #dbSideLinks a:hover {background:var(--db-tint);}
body.db-dashboard #dbSideLinks .is-current {background:var(--db-accent);color:#fff;}
body.db-dashboard .db-sidebar-note {margin:auto 14px 25px;padding-top:60px;font:italic 1.25rem/1.5 Georgia,serif;color:var(--db-muted);}
body.db-dashboard .dash-main {width:100%;max-width:none;min-width:0;margin:0;padding:28px 30px 75px 18px;}
body.db-dashboard .db-toolbar {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;}
body.db-dashboard .db-eyebrow {display:block;color:var(--db-accent);font-size:.59rem;font-weight:800;letter-spacing:.16em;}
body.db-dashboard .db-toolbar p {margin:5px 0 0;color:var(--db-muted);font-size:.75rem;}
body.db-dashboard .db-toolbar-actions {display:flex;align-items:center;justify-content:flex-end;gap:12px;}
body.db-dashboard .db-current-style {font-size:.66rem;color:var(--db-muted);}
body.db-dashboard .db-customize {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:11px 16px;border:1px solid var(--db-line);border-radius:12px;background:var(--db-cream);color:var(--db-ink);font:600 .73rem 'Poppins',sans-serif;cursor:pointer;}
body.db-dashboard .db-customize:hover {border-color:var(--db-accent);background:var(--db-tint);}
body.db-dashboard .db-overview {display:grid;gap:26px;}
body.db-dashboard .streaming-hero {display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:16px;margin:0;}
body.db-dashboard .streaming-hero .welcome-bar {display:flex;align-items:center;position:relative;isolation:isolate;min-height:255px;padding:30px 36% 30px 30px;background:radial-gradient(ellipse at 10% 0,#2a5c50,transparent 75%),#143f38;border:7px solid #ba8c59;border-radius:16px;box-shadow:inset 0 0 0 2px #6e5435;color:#fffce9;overflow:hidden;}
body.db-dashboard .welcome-bar::before,body.db-dashboard .welcome-bar::after {display:none;}
body.db-dashboard .welcome-content {position:relative;z-index:2;max-width:none;}
body.db-dashboard .welcome-kicker {color:#bfd4bd;font-size:.54rem;letter-spacing:.16em;}
body.db-dashboard .streaming-hero .welcome-title {font-size:clamp(1.6rem,2.55vw,2.65rem);font-weight:800;line-height:1.2;margin:12px 0;color:#fffce9;letter-spacing:-.04em;}
body.db-dashboard .welcome-title span {color:inherit;}
body.db-dashboard .streaming-hero .welcome-sub {color:#c7d9c4;max-width:370px;font-size:.77rem;line-height:1.6;}
body.db-dashboard .welcome-cta {display:inline-flex;gap:9px;align-items:center;justify-content:center;margin-top:20px;padding:11px 17px;background:#f6f3dd;color:#194c40;border:0;border-radius:11px;font-size:.72rem;font-weight:700;box-shadow:none;}
body.db-dashboard .db-teacher {position:absolute;z-index:1;right:1%;bottom:0;width:35%;height:100%;margin:0;display:flex;align-items:flex-end;}
body.db-dashboard .db-teacher img {display:block;width:100%;height:95%;object-fit:contain;object-position:bottom;}
body.db-dashboard .streaming-hero .plan-card {position:relative;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:23px;background:var(--db-cream);border:1px solid var(--db-line);border-radius:16px;color:var(--db-ink);box-shadow:none;}
body.db-dashboard .plan-card::before,body.db-dashboard .plan-card::after {display:none;}
body.db-dashboard .streaming-hero .plan-icon {position:static;font-size:1.6rem;line-height:1;width:auto;height:auto;background:none;border:0;transform:none;}
body.db-dashboard .plan-info {margin:0;}
body.db-dashboard .plan-badge {color:#86591c;background:#fff0cc;border:1px solid #ead1a0;font-size:.52rem;}
body.db-dashboard .streaming-hero .plan-info h2 {font-size:1rem;color:var(--db-ink);margin:9px 0 5px;}
body.db-dashboard .plan-info p {font-size:.66rem;color:var(--db-muted);line-height:1.55;}
body.db-dashboard .streaming-hero .btn-upgrade {background:var(--db-accent);color:#fff;box-shadow:none;border:0;padding:10px;border-radius:10px;font-size:.68rem;}
body.db-dashboard .stats-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 20px;}
body.db-dashboard .stat-card {display:flex;align-items:center;gap:10px;min-height:54px;padding:11px 14px;background:var(--db-cream);border:1px solid var(--db-line);border-radius:12px;box-shadow:none;}
body.db-dashboard .stat-card::before,body.db-dashboard .stat-card::after {display:none;}
body.db-dashboard .stat-icon {position:static;display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;margin:0;background:var(--db-tint);border:0;border-radius:9px;font-size:.95rem;}
body.db-dashboard .stat-value {font-size:.85rem;color:var(--db-accent);margin:0;align-self:auto;}
body.db-dashboard .stat-label {font-size:.59rem;color:var(--db-muted);line-height:1.4;}
body.db-dashboard .section-header {display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px;}
body.db-dashboard .section-title {font-size:1.1rem;font-weight:750;color:var(--db-ink);}
body.db-dashboard .section-sub {color:var(--db-muted);font-size:.68rem;}
body.db-dashboard .db-stage-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
body.db-dashboard .db-stage {position:relative;display:flex;align-items:stretch;min-width:0;min-height:195px;margin:0;padding:21px;background:var(--db-cream);border:1px solid var(--db-line);border-radius:16px;overflow:hidden;box-shadow:0 4px 15px #1c382208;transition:transform .15s,border-color .15s;}
body.db-dashboard .db-stage:hover {transform:translateY(-3px);border-color:var(--db-accent);}
body.db-dashboard .db-stage > img {position:absolute;inset:auto 0 0 auto;display:block;width:42%;height:110px;object-fit:cover;object-position:center;border-radius:55px 0 0 0;filter:none;opacity:.85;}
body.db-dashboard .db-stage > .education-primary-shade {position:absolute;inset:auto 0 0 auto;width:45%;height:120px;background:linear-gradient(135deg,var(--db-cream),transparent 75%);pointer-events:none;}
body.db-dashboard .db-stage .education-primary-copy {position:relative;inset:auto;display:flex;flex-direction:column;align-items:flex-start;gap:8px;max-width:100%;width:100%;padding:0;z-index:1;}
body.db-dashboard .db-stage .education-primary-copy > small {color:var(--db-accent);font-size:.46rem;font-weight:700;letter-spacing:.06em;line-height:1.5;}
body.db-dashboard .db-stage .education-primary-copy > strong {color:var(--db-ink);font-size:1.3rem;line-height:1.2;max-width:100%;letter-spacing:-.03em;text-shadow:none;}
body.db-dashboard .db-stage .education-primary-copy > span:not([class]) {color:var(--db-muted);font-size:.68rem;line-height:1.55;max-width:65%;}
body.db-dashboard .db-stage .education-primary-side,body.db-dashboard .db-stage .education-primary-pills {display:none;}
body.db-dashboard .db-stage .education-primary-button {margin-top:auto;padding:7px 10px;min-height:30px;display:inline-flex;align-items:center;gap:6px;background:var(--db-accent);border:0;border-radius:9px;color:#fff;font-size:.58rem;box-shadow:none;}
body.db-dashboard .db-stage.education-library-entry {grid-column:1 / -1;min-height:100px;}
body.db-dashboard .db-stage.education-library-entry .education-primary-copy {display:grid;grid-template-columns:1fr auto;gap:6px 20px;align-items:center;}
body.db-dashboard .db-stage.education-library-entry .education-primary-copy > small {display:none;}
body.db-dashboard .db-stage.education-library-entry .education-primary-copy > strong {font-size:1.1rem;}
body.db-dashboard .db-stage.education-library-entry .education-primary-copy > span:not([class]) {grid-column:1;max-width:70%;}
body.db-dashboard .db-stage.education-library-entry .education-primary-button {grid-row:1 / span 2;grid-column:2;align-self:center;margin:0 100px 0 0;}
body.db-dashboard .db-stage.education-library-entry > img {width:120px;height:100%;border-radius:0;}
body.db-dashboard .db-global {margin-top:28px;display:grid;gap:26px;}
body.db-dashboard :is(.db-resources,.db-practice) {margin:0;padding:0;border:0;background:none;box-shadow:none;}
body.db-dashboard :is(.db-resources,.db-practice) > h2 {font-size:1.12rem;letter-spacing:-.03em;margin:0 0 5px;color:var(--db-ink);}
body.db-dashboard .db-section-description {font-size:.7rem;color:var(--db-muted);margin:0 0 14px;}
body.db-dashboard .db-resource-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px;}
body.db-dashboard .db-resource-card {position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:7px;min-width:0;min-height:155px;height:auto;margin:0;padding:20px;border:1px solid var(--db-line);border-radius:14px;background:var(--db-cream);color:var(--db-ink);box-shadow:none;overflow:hidden;}
body.db-dashboard .db-resource-card::before,body.db-dashboard .db-resource-card::after {display:none;}
body.db-dashboard .db-resource-card > i {display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:var(--db-tint);color:var(--db-accent);font-size:1.05rem;}
body.db-dashboard .db-resource-card h3 {font-size:.88rem;line-height:1.35;margin:1px 0 0;color:var(--db-ink);}
body.db-dashboard .db-resource-card p {font-size:.65rem;line-height:1.6;margin:0 0 5px;color:var(--db-muted);max-width:100%;}
body.db-dashboard .db-resource-card .db-resource-action {display:inline-flex;align-items:center;margin-top:auto;font-size:.65rem;font-weight:700;color:var(--db-accent);padding:4px 0;}
body.db-dashboard .db-resource-card a::after {content:'';position:absolute;inset:0;}
body.db-dashboard .db-practice .db-resource-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
body.db-dashboard .tutorial-feature-wrap {margin:22px 0 0;}
body.db-dashboard .tutorial-feature {position:relative;display:flex;align-items:center;gap:16px;min-height:85px;padding:18px 24px;border:1px solid var(--db-line);border-radius:15px;background:var(--db-tint);box-shadow:none;}
body.db-dashboard .tutorial-feature > img,body.db-dashboard .tutorial-feature-shade {display:none;}
body.db-dashboard .tutorial-play {position:static;display:grid;place-items:center;flex-shrink:0;transform:none;width:42px;height:42px;background:var(--db-accent);color:#fff;border:0;border-radius:50%;font-size:.9rem;}
body.db-dashboard .tutorial-content {position:static;padding:0;}
body.db-dashboard .tutorial-kicker {font-size:.5rem;color:var(--db-muted);}
body.db-dashboard .tutorial-title {color:var(--db-ink);font-size:.9rem;}
body.db-dashboard .tutorial-desc {color:var(--db-muted);font-size:.65rem;}
body.db-dashboard .tutorial-arrow {position:static;margin-left:auto;color:var(--db-accent);}
body.db-dashboard .modules-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;overflow:visible;margin:12px 0 0;}
body.db-dashboard .mod-card {min-width:0;width:auto;height:auto;min-height:230px;background:var(--db-cream);border:1px solid var(--db-line);border-radius:15px;box-shadow:none;}
body.db-dashboard .mod-cover {height:95px;position:static;object-fit:cover;opacity:1;}
body.db-dashboard .mod-cover-shade {display:none;}
body.db-dashboard .mod-info {position:relative;padding:16px;inset:auto;}
body.db-dashboard .mod-info :is(h3,.mod-name) {color:var(--db-ink);}
body.db-dashboard .mod-info p {color:var(--db-muted);}
body.db-dashboard .exam-sim-hero {margin:0;padding:24px;background:var(--db-cream);border:1px solid var(--db-line);border-radius:18px;box-shadow:none;}
body.db-dashboard :is(.exam-sim-particle,.exam-sim-header::before,.exam-sim-hero::before,.exam-sim-hero::after) {display:none;}
body.db-dashboard :is(.exam-sim-title,.exam-sim-title-accent,.exam-sim-name,.exam-sim-card-name) {color:var(--db-ink);background:none;-webkit-text-fill-color:var(--db-ink);text-shadow:none;}
body.db-dashboard .exam-sim-desc {color:var(--db-muted);font-size:.75rem;}
body.db-dashboard .exam-sim-cta {margin:14px 0;}
body.db-dashboard .exam-sim-btn {background:var(--db-accent);color:white;box-shadow:none;}
body.db-dashboard .exam-sim-cards-row {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;overflow:visible;}
body.db-dashboard .exam-sim-card {min-width:0;width:auto;background:var(--db-cream);border:1px solid var(--db-line);box-shadow:none;}
body.db-dashboard .exam-sim-card-meta {color:var(--db-muted);}
body.db-dashboard #examSimHero :is(#examGridCambridge,#examGridToefl) {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
body.db-dashboard #examSimHero .exam-sim-card {position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;min-height:125px;height:auto;width:auto;padding:18px;background:var(--db-cream);}
body.db-dashboard #examSimHero .exam-sim-card::before,body.db-dashboard #examSimHero .exam-sim-card::after {display:none;}
body.db-dashboard #examSimHero .exam-sim-card-name {position:relative;inset:auto;margin:0;font-size:1.05rem;}
body.db-dashboard #examSimHero .exam-sim-card-meta {position:relative;inset:auto;font-size:.6rem;}
body.db-dashboard #examSimHero .exam-sim-card-level {position:relative;inset:auto;color:var(--db-ink) !important;font-size:.6rem;}
body.db-dashboard .cefr-section {margin:0;padding:0;}
body.db-dashboard .cefr-card {box-shadow:none;border-radius:12px;}
body.db-dashboard .cefr-name {color:var(--db-ink);}
/* Conservar la visibilidad de paquetes gestionada por el motor original. */
body.db-dashboard .primary-package-hero {box-shadow:none;border-color:var(--db-line);background:var(--db-cream);color:var(--db-ink);}
body.db-dashboard .primary-package-copy :is(h1,strong,p) {color:var(--db-ink);background:none;-webkit-text-fill-color:var(--db-ink);}
body.db-dashboard.package-primary-active .db-stage-grid {display:none;}
body.db-dashboard .legacy-duplicate-section {display:none !important;}
/* 02: páginas de un cuaderno abierto; encuadernación y jerarquía editorial. */
html[data-dashboard-style="cuaderno"] body.db-dashboard {--db-bg:#e9ddc6;--db-cream:#fff9e9;--db-accent:#3c654b;--db-tint:#e7ead6;background:repeating-linear-gradient(0deg,#88693f08 0 1px,transparent 1px 7px),#e9ddc6;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-shell {grid-template-columns:minmax(0,1fr);max-width:1380px;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-sidebar {display:none;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .dash-main {margin:25px auto;padding:30px 38px 60px;width:calc(100% - 52px);background:var(--db-cream);border:1px solid #cdbc96;border-radius:14px 24px 24px 14px;box-shadow:-8px 0 #4b7156,0 12px 40px #614a2518;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-overview {grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:42px;position:relative;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-overview::before {content:'';position:absolute;left:calc(45% - 6px);top:0;bottom:0;width:18px;background:repeating-linear-gradient(0deg,transparent 0 40px,#9d895e 41px,#e9d8a8 46px,#907c53 50px,transparent 51px 93px);pointer-events:none;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .streaming-hero {grid-template-columns:minmax(0,1fr);align-content:start;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .streaming-hero .welcome-bar {background:transparent;border:0;box-shadow:none;padding:15px 40% 15px 0;min-height:300px;color:var(--db-ink);overflow:visible;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .welcome-title {font-family:Georgia,serif;color:var(--db-ink);font-size:2.6rem;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .welcome-sub {color:var(--db-muted);}
html[data-dashboard-style="cuaderno"] body.db-dashboard .welcome-kicker {color:var(--db-accent);}
html[data-dashboard-style="cuaderno"] body.db-dashboard .welcome-cta {background:var(--db-accent);color:#fff;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .streaming-hero .plan-card {border-radius:10px;background:#f4eedb;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-stage-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-stage {min-height:215px;background:#edf0df;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-stage:nth-child(2) {background:#f5e4d1;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-stage:nth-child(3) {background:#e4ebed;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-stage.education-library-entry {grid-column:auto;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-stage.education-library-entry .education-primary-copy {display:flex;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-stage.education-library-entry .education-primary-button {margin-top:auto;}
html[data-dashboard-style="cuaderno"] body.db-dashboard .db-stage.education-library-entry > img {width:42%;height:110px;border-radius:55px 0 0 0;}
html[data-dashboard-style="cuaderno"] body.db-dashboard :is(h2,.section-title,.db-stage strong) {font-family:Georgia,serif;}
/* 03: campus blanco y azul, bienvenida vertical y tarjetas fotográficas. */
html[data-dashboard-style="campus"] body.db-dashboard {--db-bg:#f2f7ff;--db-cream:#fff;--db-ink:#193558;--db-accent:#2362d7;--db-tint:#e9f1ff;--db-line:#d7e3f4;background:radial-gradient(ellipse at 5% 0,#e5f0ff,transparent 65%),#f5f8fd;}
html[data-dashboard-style="campus"] body.db-dashboard .db-shell {display:block;max-width:1420px;}
html[data-dashboard-style="campus"] body.db-dashboard .db-sidebar {position:static;min-height:0;padding:12px 30px 0;}
html[data-dashboard-style="campus"] body.db-dashboard .db-sidebar-caption,html[data-dashboard-style="campus"] body.db-dashboard .db-sidebar-note {display:none;}
html[data-dashboard-style="campus"] body.db-dashboard #dbSideLinks {display:flex;flex-wrap:wrap;gap:8px;}
html[data-dashboard-style="campus"] body.db-dashboard #dbSideLinks a {padding:8px 13px;font-size:.7rem;}
html[data-dashboard-style="campus"] body.db-dashboard .dash-main {padding:20px 30px 70px;}
html[data-dashboard-style="campus"] body.db-dashboard .db-overview {grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr);gap:22px;}
html[data-dashboard-style="campus"] body.db-dashboard .streaming-hero {grid-template-columns:1fr;align-content:start;}
html[data-dashboard-style="campus"] body.db-dashboard .streaming-hero .welcome-bar {min-height:360px;background:radial-gradient(ellipse at 5% 0,#fff4df,transparent 65%),#ead6bc;border:1px solid #e7d1b4;box-shadow:none;padding:28px 25px 190px;align-items:flex-start;}
html[data-dashboard-style="campus"] body.db-dashboard .welcome-title {color:var(--db-ink);font-size:2.2rem;}
html[data-dashboard-style="campus"] body.db-dashboard .welcome-kicker,html[data-dashboard-style="campus"] body.db-dashboard .welcome-sub {color:#705d48;}
html[data-dashboard-style="campus"] body.db-dashboard .welcome-cta {background:var(--db-accent);color:#fff;}
html[data-dashboard-style="campus"] body.db-dashboard .db-teacher {width:55%;height:195px;right:0;}
html[data-dashboard-style="campus"] body.db-dashboard .streaming-hero .plan-card {padding:18px;}
html[data-dashboard-style="campus"] body.db-dashboard .db-stage-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
html[data-dashboard-style="campus"] body.db-dashboard .db-stage {padding:125px 18px 18px;min-height:250px;}
html[data-dashboard-style="campus"] body.db-dashboard .db-stage > img {inset:0 0 auto;width:100%;height:110px;border-radius:0;opacity:1;}
html[data-dashboard-style="campus"] body.db-dashboard .db-stage .education-primary-shade {display:none;}
html[data-dashboard-style="campus"] body.db-dashboard .db-stage.education-library-entry {grid-column:auto;}
html[data-dashboard-style="campus"] body.db-dashboard .db-stage.education-library-entry .education-primary-copy {display:flex;}
html[data-dashboard-style="campus"] body.db-dashboard .db-stage.education-library-entry .education-primary-button {margin-top:auto;}
html[data-dashboard-style="campus"] body.db-dashboard .db-stage .education-primary-copy > span:not([class]) {max-width:100%;}
/* 04: revista editorial sin menú lateral ni marcos pesados. */
html[data-dashboard-style="editorial"] body.db-dashboard {--db-accent:#a4482c;--db-tint:#f3e5d6;background:#f7f4eb;}
html[data-dashboard-style="editorial"] body.db-dashboard .db-shell {display:block;max-width:1400px;}
html[data-dashboard-style="editorial"] body.db-dashboard .db-sidebar {display:none;}
html[data-dashboard-style="editorial"] body.db-dashboard .dash-main {padding:28px 40px 75px;}
html[data-dashboard-style="editorial"] body.db-dashboard .streaming-hero .welcome-bar {background:none;border:0;border-bottom:1px solid #c5ccbd;box-shadow:none;border-radius:0;padding:25px 38% 25px 0;min-height:300px;}
html[data-dashboard-style="editorial"] body.db-dashboard .welcome-title {color:var(--db-ink);font-family:Georgia,serif;font-size:3.7rem;font-weight:500;letter-spacing:-.055em;}
html[data-dashboard-style="editorial"] body.db-dashboard .welcome-kicker,html[data-dashboard-style="editorial"] body.db-dashboard .welcome-sub {color:var(--db-muted);}
html[data-dashboard-style="editorial"] body.db-dashboard .welcome-cta {background:var(--db-accent);color:#fff;border-radius:7px;}
html[data-dashboard-style="editorial"] body.db-dashboard :is(.db-stage strong,.section-title,.db-global h2) {font-family:Georgia,serif;font-weight:500;}
html[data-dashboard-style="editorial"] body.db-dashboard .db-stage {border:0;border-radius:6px;background:#e8eadf;min-height:190px;}
html[data-dashboard-style="editorial"] body.db-dashboard .db-stage:nth-child(2) {background:#e3e9ed;}
html[data-dashboard-style="editorial"] body.db-dashboard .db-stage:nth-child(3) {background:#f2e2d2;}
html[data-dashboard-style="editorial"] body.db-dashboard .db-stage .education-primary-button {background:none;color:var(--db-ink);padding:4px 0;}
html[data-dashboard-style="editorial"] body.db-dashboard .db-stage .education-primary-copy > strong {font-size:1.65rem;}
html[data-dashboard-style="editorial"] body.db-dashboard .db-resource-card {border:0;border-radius:0;border-bottom:1px solid #c5ccbd;background:none;}
/* 05: biblioteca con carpetas y navegación verde bosque. */
html[data-dashboard-style="biblioteca"] body.db-dashboard {--db-accent:#245b49;--db-tint:#e8eddf;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-sidebar {top:74px;min-height:calc(100vh - 74px);background:linear-gradient(150deg,#234d40,#12372f);color:#fff7de;border-radius:0 0 0 18px;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-sidebar-caption,html[data-dashboard-style="biblioteca"] body.db-dashboard .db-sidebar-note {color:#d8dfc6;}
html[data-dashboard-style="biblioteca"] body.db-dashboard #dbSideLinks a {color:#f8f2df;}
html[data-dashboard-style="biblioteca"] body.db-dashboard #dbSideLinks .is-current {background:#ffffff18;border-left:3px solid #dac586;}
html[data-dashboard-style="biblioteca"] body.db-dashboard #dbSideLinks a:hover {background:#ffffff18;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .streaming-hero .welcome-bar {background:linear-gradient(115deg,#f8efdc,#e8ddc7);border:1px solid #d9d9c1;box-shadow:none;min-height:220px;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .welcome-title {font-family:Georgia,serif;color:var(--db-ink);font-size:2.7rem;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .welcome-sub,html[data-dashboard-style="biblioteca"] body.db-dashboard .welcome-kicker {color:var(--db-muted);}
html[data-dashboard-style="biblioteca"] body.db-dashboard .welcome-cta {background:var(--db-accent);color:#fff;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-stage {overflow:visible;border-top:9px solid #c87854;min-height:180px;border-radius:0 13px 13px 13px;margin-top:11px;background:#f8eedc;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-stage:nth-child(2) {border-top-color:#829b78;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-stage:nth-child(3) {border-top-color:#6c98b9;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-stage::before {content:'';position:absolute;left:-1px;top:-20px;width:42%;height:20px;border-radius:10px 12px 0 0;background:#c87854;z-index:0;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-stage:nth-child(2)::before {background:#829b78;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-stage:nth-child(3)::before {background:#6c98b9;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-stage.education-library-entry {border-top-color:#b49e60;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-stage.education-library-entry::before {background:#b49e60;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-stage img {border-radius:30px 0 12px 0;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-resource-card:nth-child(3n+1) {background:#e9eee2;}
html[data-dashboard-style="biblioteca"] body.db-dashboard .db-resource-card:nth-child(3n+2) {background:#f3e7d5;}
/* Personalizador: previsualizaciones del código real, no páginas duplicadas. */
body.db-dashboard .db-style-dialog {width:min(1020px,calc(100% - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:28px;border:1px solid var(--db-line);border-radius:22px;background:var(--db-cream);color:var(--db-ink);box-shadow:0 25px 100px #102b3555;overflow:auto;overscroll-behavior:contain;}
body.db-dashboard .db-style-dialog::backdrop {background:#0d2828a6;backdrop-filter:blur(5px);}
body.db-dashboard .db-dialog-head {display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:20px;}
body.db-dashboard .db-dialog-head h2 {font-size:1.45rem;line-height:1.3;margin:6px 0;}
body.db-dashboard .db-dialog-head p {font-size:.75rem;color:var(--db-muted);margin:0;}
body.db-dashboard .db-dialog-close {flex-shrink:0;width:38px;height:38px;border:1px solid var(--db-line);border-radius:50%;background:var(--db-tint);color:var(--db-ink);font-size:1.5rem;cursor:pointer;}
body.db-dashboard .db-design-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
body.db-dashboard .db-design-option {position:relative;display:flex;flex-direction:column;gap:7px;padding:10px;text-align:left;border:2px solid var(--db-line);border-radius:15px;background:var(--db-cream);color:var(--db-ink);font-family:inherit;cursor:pointer;min-width:0;}
body.db-dashboard .db-design-option[aria-pressed="true"] {border-color:var(--db-accent);box-shadow:0 0 0 2px var(--db-tint);}
body.db-dashboard .db-design-option img {width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:top;border-radius:8px;background:var(--db-tint);}
body.db-dashboard .db-design-number {font-size:.58rem;font-weight:800;letter-spacing:.12em;color:var(--db-muted);}
body.db-dashboard .db-design-option strong {font-size:.78rem;}
body.db-dashboard .db-design-description {font-size:.65rem;line-height:1.55;color:var(--db-muted);}
body.db-dashboard .db-design-selected {font-size:.62rem;font-weight:700;color:var(--db-accent);margin-top:auto;visibility:hidden;}
body.db-dashboard .db-design-option[aria-pressed="true"] .db-design-selected {visibility:visible;}
body.db-dashboard .db-preview-fallback::before {content:'TU ACADEMIA';display:grid;place-items:center;width:100%;aspect-ratio:3/2;border-radius:8px;background:var(--db-tint);color:var(--db-accent);font-weight:700;font-size:.85rem;}
body.db-dashboard .db-dialog-footer {display:flex;gap:18px;align-items:center;justify-content:space-between;border-top:1px solid var(--db-line);padding-top:16px;margin-top:20px;}
body.db-dashboard #dbStyleStatus {color:var(--db-muted);font-size:.68rem;}
body.db-dashboard .db-dialog-done {background:var(--db-accent);color:#fff;border:0;border-radius:11px;padding:12px 25px;min-height:44px;font-family:inherit;font-weight:700;cursor:pointer;}
@media(max-width:1200px) {
 body.db-dashboard .db-shell {grid-template-columns:170px minmax(0,1fr);}
 body.db-dashboard .db-sidebar {padding-inline:10px;}
 body.db-dashboard #dbSideLinks a {font-size:.68rem;padding:11px;gap:8px;}
 body.db-dashboard .dash-main {padding:24px 22px 65px 12px;}
 body.db-dashboard .streaming-hero {grid-template-columns:minmax(0,1fr) 190px;}
 body.db-dashboard .streaming-hero .plan-card {padding:17px;}
 body.db-dashboard .db-stage {padding:16px;}
 body.db-dashboard .db-stage .education-primary-copy > strong {font-size:1.15rem;}
 body.db-dashboard .db-practice .db-resource-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 html[data-dashboard-style="cuaderno"] body.db-dashboard .db-overview {gap:30px;}
 html[data-dashboard-style="campus"] body.db-dashboard .db-overview {grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);}
}
@media(max-width:900px) {
 body.db-dashboard .db-shell {display:block;}
 body.db-dashboard .db-sidebar {display:none;}
 body.db-dashboard .dash-main {padding:22px 20px 70px;}
 body.db-dashboard .dash-nav-inner {padding:12px 20px;}
 body.db-dashboard .db-current-style {display:none;}
 body.db-dashboard .streaming-hero {grid-template-columns:minmax(0,1fr) 190px;}
 html[data-dashboard-style="cuaderno"] body.db-dashboard .db-overview {grid-template-columns:minmax(0,1fr);}
 html[data-dashboard-style="cuaderno"] body.db-dashboard .db-overview::before {display:none;}
 html[data-dashboard-style="cuaderno"] body.db-dashboard .streaming-hero {grid-template-columns:minmax(0,1fr) 200px;}
 html[data-dashboard-style="campus"] body.db-dashboard .db-sidebar {display:none;}
 html[data-dashboard-style="campus"] body.db-dashboard .db-overview {grid-template-columns:minmax(0,1fr);}
 html[data-dashboard-style="campus"] body.db-dashboard .streaming-hero {grid-template-columns:minmax(0,1fr) 200px;}
 html[data-dashboard-style="campus"] body.db-dashboard .streaming-hero .welcome-bar {min-height:250px;padding:25px 45% 25px 25px;}
 html[data-dashboard-style="campus"] body.db-dashboard .db-teacher {width:43%;height:220px;}
 html[data-dashboard-style="campus"] body.db-dashboard .db-stage-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
 html[data-dashboard-style="campus"] body.db-dashboard .db-stage.education-library-entry {grid-column:1 / -1;min-height:140px;}
 body.db-dashboard .exam-sim-cards-row {grid-template-columns:repeat(3,minmax(0,1fr));}
 body.db-dashboard #examSimHero :is(#examGridCambridge,#examGridToefl) {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:600px) {
 body.db-dashboard .dash-nav-inner {flex-wrap:wrap;justify-content:space-between;gap:10px;padding:12px 16px;}
 body.db-dashboard .dash-logo {font-size:.87rem;}
 body.db-dashboard .nav-right {gap:7px;}
 body.db-dashboard .user-chip #userName {display:none;}
 body.db-dashboard .btn-logout {font-size:.65rem;padding:7px 10px;}
 body.db-dashboard .dash-main,html[data-dashboard-style="campus"] body.db-dashboard .dash-main,html[data-dashboard-style="editorial"] body.db-dashboard .dash-main {padding:18px 14px 75px;}
 body.db-dashboard .db-toolbar {gap:12px;align-items:center;}
 body.db-dashboard .db-toolbar > div:first-child {display:none;}
 body.db-dashboard .db-toolbar-actions {width:100%;}
 body.db-dashboard .db-customize {width:100%;font-size:.72rem;}
 body.db-dashboard .stats-grid {gap:7px;margin-bottom:16px;grid-template-columns:repeat(2,minmax(0,1fr));}
 body.db-dashboard .stat-card {padding:9px;gap:8px;min-height:50px;}
 body.db-dashboard .stat-icon {width:27px;height:27px;font-size:.8rem;}
 body.db-dashboard .stat-label {font-size:.53rem;}
 body.db-dashboard .streaming-hero,html[data-dashboard-style="cuaderno"] body.db-dashboard .streaming-hero,html[data-dashboard-style="campus"] body.db-dashboard .streaming-hero {grid-template-columns:minmax(0,1fr);gap:10px;}
 body.db-dashboard .streaming-hero .welcome-bar {min-height:225px;padding:23px 40% 23px 19px;border-width:5px;}
 body.db-dashboard .streaming-hero .welcome-title {font-size:1.75rem;}
 body.db-dashboard .streaming-hero .welcome-sub {font-size:.66rem;}
 body.db-dashboard .welcome-kicker {font-size:.42rem;}
 body.db-dashboard .welcome-cta {font-size:.62rem;padding:9px 11px;margin-top:14px;}
 body.db-dashboard .db-teacher {width:41%;right:0;height:85%;}
 body.db-dashboard .streaming-hero .plan-card {display:grid;grid-template-columns:35px minmax(0,1fr);align-items:center;padding:14px;gap:12px;}
 body.db-dashboard .plan-icon {grid-column:1;}
 body.db-dashboard .plan-info {grid-column:2;}
 body.db-dashboard .streaming-hero .plan-info h2 {font-size:.82rem;margin:4px 0;}
 body.db-dashboard .plan-info p {font-size:.6rem;}
 body.db-dashboard .streaming-hero .btn-upgrade {grid-column:1 / -1;}
 body.db-dashboard .db-overview {gap:22px;}
 body.db-dashboard .section-title {font-size:1rem;}
 body.db-dashboard .db-stage-grid,html[data-dashboard-style="campus"] body.db-dashboard .db-stage-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 body.db-dashboard .db-stage {min-height:200px;padding:14px;}
 body.db-dashboard .db-stage .education-primary-copy {gap:7px;}
 body.db-dashboard .db-stage .education-primary-copy > strong {font-size:1.07rem;}
 body.db-dashboard .db-stage .education-primary-copy > small {font-size:.4rem;}
 body.db-dashboard .db-stage .education-primary-copy > span:not([class]) {font-size:.62rem;max-width:100%;padding-bottom:55px;}
 body.db-dashboard .db-stage > img {width:65%;height:80px;opacity:.7;}
 body.db-dashboard .db-stage .education-primary-button {font-size:.51rem;padding:6px;max-width:100%;}
 body.db-dashboard .db-stage.education-library-entry {grid-column:auto;min-height:200px;}
 body.db-dashboard .db-stage.education-library-entry .education-primary-copy {display:flex;}
 body.db-dashboard .db-stage.education-library-entry .education-primary-copy > strong {font-size:1.07rem;}
 body.db-dashboard .db-stage.education-library-entry .education-primary-copy > span:not([class]) {max-width:100%;}
 body.db-dashboard .db-stage.education-library-entry .education-primary-button {margin-top:auto;margin-right:0;}
 body.db-dashboard .db-stage.education-library-entry > img {width:65%;height:80px;border-radius:35px 0 0;}
 body.db-dashboard .db-resource-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 body.db-dashboard .db-resource-card {min-height:170px;padding:15px;gap:7px;}
 body.db-dashboard .db-resource-card h3 {font-size:.8rem;}
 body.db-dashboard .db-resource-card p {font-size:.61rem;}
 body.db-dashboard .tutorial-feature {padding:14px;gap:12px;}
 body.db-dashboard .tutorial-desc {font-size:.6rem;}
 body.db-dashboard .modules-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 body.db-dashboard .mod-card {min-height:225px;}
 body.db-dashboard .mod-info {padding:12px;}
 body.db-dashboard .exam-sim-hero {padding:18px 14px;}
 body.db-dashboard .exam-sim-title {font-size:1.5rem;}
 body.db-dashboard .exam-sim-cards-row {grid-template-columns:repeat(2,minmax(0,1fr));}
 body.db-dashboard #examSimHero :is(#examGridCambridge,#examGridToefl) {grid-template-columns:repeat(2,minmax(0,1fr));}
 body.db-dashboard #examSimHero .exam-sim-card {padding:12px;min-height:115px;}
 body.db-dashboard .cefr-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
 html[data-dashboard-style="cuaderno"] body.db-dashboard .dash-main {width:calc(100% - 28px);margin:18px auto;padding:18px 16px 60px;}
 html[data-dashboard-style="cuaderno"] body.db-dashboard .streaming-hero .welcome-bar {min-height:230px;padding:15px 42% 15px 0;}
 html[data-dashboard-style="cuaderno"] body.db-dashboard .db-stage {min-height:210px;}
 html[data-dashboard-style="campus"] body.db-dashboard .streaming-hero .welcome-bar {min-height:225px;padding:20px 43% 20px 20px;}
 html[data-dashboard-style="campus"] body.db-dashboard .db-teacher {width:43%;height:190px;}
 html[data-dashboard-style="campus"] body.db-dashboard .db-stage {padding:105px 14px 14px;min-height:250px;}
 html[data-dashboard-style="campus"] body.db-dashboard .db-stage > img {height:92px;width:100%;opacity:1;}
 html[data-dashboard-style="campus"] body.db-dashboard .db-stage .education-primary-copy > span:not([class]) {padding-bottom:0;}
 html[data-dashboard-style="campus"] body.db-dashboard .db-stage.education-library-entry {grid-column:auto;min-height:250px;}
 html[data-dashboard-style="campus"] body.db-dashboard .db-stage.education-library-entry > img {width:100%;height:92px;border-radius:0;}
 html[data-dashboard-style="editorial"] body.db-dashboard .streaming-hero .welcome-bar {padding:20px 42% 20px 0;min-height:240px;}
 html[data-dashboard-style="editorial"] body.db-dashboard .welcome-title {font-size:2.15rem;}
 html[data-dashboard-style="editorial"] body.db-dashboard .db-stage .education-primary-copy > strong {font-size:1.4rem;}
 html[data-dashboard-style="biblioteca"] body.db-dashboard .streaming-hero .welcome-bar {min-height:225px;}
 html[data-dashboard-style="biblioteca"] body.db-dashboard .welcome-title {font-size:1.9rem;}
 body.db-dashboard .db-style-dialog {width:calc(100% - 20px);max-height:calc(100dvh - 24px);padding:18px;border-radius:18px;}
 body.db-dashboard .db-dialog-head h2 {font-size:1.2rem;}
 body.db-dashboard .db-dialog-head p {font-size:.68rem;}
 body.db-dashboard .db-design-options {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
 body.db-dashboard .db-design-option {padding:8px;}
 body.db-dashboard .db-design-option strong {font-size:.69rem;}
 body.db-dashboard .db-design-description {font-size:.59rem;}
 body.db-dashboard .db-dialog-footer {align-items:center;gap:12px;}
 body.db-dashboard #dbStyleStatus {font-size:.6rem;}
}
@media(prefers-reduced-motion:reduce) {body.db-dashboard *,body.db-dashboard *::before,body.db-dashboard *::after {animation:none !important;transition:none !important;scroll-behavior:auto !important;}}
/* Las preferencias de color existentes matizan los paneles sin cambiar el diseño elegido. */
html[data-theme="verde-esmeralda"] body.db-dashboard {--db-tint:#dcebdc;--db-line:#c2d6c1;}
html[data-theme="acero-metalico"] body.db-dashboard {--db-tint:#e0eaed;--db-line:#c5d3d6;}
html[data-theme="naranja-volcan"] body.db-dashboard {--db-tint:#f4e1cf;--db-line:#dfcbb7;}
html[data-theme="claro-profesional"] body.db-dashboard {--db-tint:#edf0eb;--db-line:#d1d8cf;}
html[data-theme="oro-negro"] body.db-dashboard {--db-tint:#f1e6bc;--db-line:#d9cda7;}
html[data-theme="lima-acido"] body.db-dashboard {--db-tint:#e7edc9;--db-line:#d0d9b2;}
html[data-theme="purpura-oscuro"] body.db-dashboard {--db-tint:#ece0ef;--db-line:#d5c8da;}
html[data-theme="rojo-carbon"] body.db-dashboard {--db-tint:#f0ded9;--db-line:#ddc6bf;}
html[data-theme="cian-profundo"] body.db-dashboard {--db-tint:#dcebed;--db-line:#bfd5d8;}

/* Accesos principales disponibles también en cuaderno, editorial y móvil. */
html:is([data-dashboard-style="cuaderno"],[data-dashboard-style="editorial"]) body.db-dashboard .db-sidebar {display:block;position:static;min-height:0;padding:16px 30px 0;}
html:is([data-dashboard-style="cuaderno"],[data-dashboard-style="editorial"]) body.db-dashboard .db-sidebar-caption,
html:is([data-dashboard-style="cuaderno"],[data-dashboard-style="editorial"]) body.db-dashboard .db-sidebar-note {display:none;}
html:is([data-dashboard-style="cuaderno"],[data-dashboard-style="editorial"]) body.db-dashboard #dbSideLinks {display:flex;flex-wrap:wrap;gap:6px;}
html:is([data-dashboard-style="cuaderno"],[data-dashboard-style="editorial"]) body.db-dashboard #dbSideLinks a {padding:9px 12px;font-size:.72rem;}
@media(max-width:900px){
 html[data-dashboard-style] body.db-dashboard .db-sidebar {display:block;position:static;min-height:0;padding:12px 16px;border-radius:0;}
 html[data-dashboard-style] body.db-dashboard :is(.db-sidebar-caption,.db-sidebar-note){display:none;}
 html[data-dashboard-style] body.db-dashboard #dbSideLinks {display:flex;flex-wrap:wrap;gap:6px;}
 html[data-dashboard-style] body.db-dashboard #dbSideLinks a {padding:8px 10px;font-size:.7rem;gap:7px;}
}
