/* Only the course tool affordances and quick-reading details. Both study tabs remain native. */
.b-course-tools-button{display:inline-flex;align-items:center;gap:7px;min-height:44px!important;padding:8px 12px!important;font-size:14px!important;white-space:nowrap;border-radius:13px!important}.b-course-tools-button>.b-icon{width:23px;height:23px}.b-course-tools-mobile{display:none}.b-course-summary-links{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:6px}.b-course-summary-links>.b-link{min-height:44px;font-size:14px}.b-course-flash-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.b-course-flash-actions>button{min-height:44px}.b-course-tools-menu{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:640px}.b-course-tool-option{display:flex;align-items:center;gap:14px;text-align:left;width:100%;padding:15px!important;min-height:64px}.b-course-tool-option>.b-icon{width:33px;height:33px;flex:none}.b-course-tool-option>span{display:grid;gap:5px;min-width:0}.b-course-tool-option strong{font-size:15px;line-height:1.5}.b-course-tool-option small{font-size:12px;font-weight:400;line-height:1.6;color:var(--b-muted,#79563e);overflow-wrap:anywhere}.b-reading-preview-count{font-size:14px;font-weight:800;color:var(--b-ink,#4a281c);margin:18px 0 10px}.b-reading-preview-note,.b-reading-truncation{font-size:12px;line-height:1.75;color:var(--b-muted,#79563e)}.b-reading-truncation{border-left:2px solid var(--b-border,#dfbd98);padding-left:10px}.b-reading-cards{min-width:0}.b-reading-cards details{min-width:0;overflow-wrap:anywhere}.b-reading-cards summary{min-height:44px;line-height:1.6;padding:10px 0;cursor:pointer}.b-reading-cards details>p{line-height:1.8;overflow-wrap:anywhere}.b-reading-full-card{min-height:44px;font-size:12px;margin:8px 0 14px}.b-course-tools-button:focus-visible,.b-course-tool-option:focus-visible,.b-reading-full-card:focus-visible{outline:3px solid var(--b-focus,#28668c);outline-offset:3px}@media(max-width:600px){.b-course-tools-desktop{display:none}.b-course-tools-mobile{display:inline}.b-course-tools-button{padding:7px 9px!important;font-size:11px!important;gap:5px}.b-course-tools-button>.b-icon{width:22px;height:22px}.b-course-flash-actions{width:100%;justify-content:flex-start}.b-course-flash-actions>button{flex:1 1 130px;padding:10px 12px;font-size:12px}.b-course-tool-option{padding:12px!important;gap:11px}.b-course-tool-option strong{font-size:14px}.b-course-tool-option small{font-size:11px}.b-course-summary-links{gap:12px}.b-course-summary-links>.b-link{font-size:12px}}

#modal:has(.b-course-tools-menu) .dialog-head h2{font-size:clamp(22px,5.6vw,28px);word-break:normal;overflow-wrap:normal}.b-reading-cards details>p:not(.b-reading-truncation){font-size:14px;line-height:1.75}

/* Give the icon its own centered grid independently of generic header button padding. */
.b-head .b-actions>.b-header-settings{display:grid;place-content:center;place-items:center;box-sizing:border-box;flex:none;inline-size:46px;block-size:46px;min-width:46px;min-height:46px;padding:0;line-height:1}
.b-head .b-header-settings>.b-icon{display:block;margin:0;max-width:none;width:27px;height:27px;object-fit:contain}
.b-head .b-course-tools-button{align-items:center;justify-content:center}
.b-course-tools-button>.b-icon{display:block;margin:0;align-self:center}
@media(max-width:600px){.b-head .b-actions>.b-header-settings{inline-size:44px;block-size:44px;min-width:44px;min-height:44px}}

.b-course-dose{margin:18px 0 26px;padding:clamp(18px,3vw,32px);border:1px solid var(--b-border,#dfc9af);border-radius:22px;background:var(--b-surface,#fffbf5);color:var(--b-ink,#442a20)}
.b-course-dose-main,.b-course-dose-goal,.b-course-dose-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}
.b-course-dose-main>div,.b-course-dose-goal>div{min-width:0}
.b-course-dose-label{margin:0 0 4px;color:var(--b-muted,#79563e);font-weight:750;font-size:.86rem}
.b-course-dose h2{font-size:clamp(1.65rem,3.2vw,2.5rem);line-height:1.1;letter-spacing:-.025em;margin:0;color:inherit}
.b-course-dose-breakdown{margin:8px 0 0;color:var(--b-muted,#79563e);line-height:1.45}
.b-course-dose-art{width:clamp(62px,8vw,92px);height:auto;object-fit:contain;flex:none}
.b-course-dose-actions{justify-content:flex-start;flex-wrap:wrap;margin:16px 0 0}
.b-course-dose-actions>button,.b-course-dose-goal>button{min-height:44px}
.b-course-dose-actions .b-primary{padding:10px 21px}
.b-course-dose-goal{border-top:1px solid var(--b-border,#dfc9af);margin-top:16px;padding-top:12px;align-items:flex-start}
.b-course-dose-goal strong{font-size:.94rem;overflow-wrap:anywhere}
.b-course-dose-goal p,.b-course-dose-goal small{display:block;max-width:70ch;margin:4px 0 0;color:var(--b-muted,#79563e);font-size:.86rem;line-height:1.45}
.b-course-dose-goal>.b-link{white-space:nowrap}
.b-course-deck-title{margin:0 0 8px;font-size:1.16rem}
.b-course-top[data-tab="tarjetas"]>img{max-height:95px;object-fit:contain}
@media(max-width:600px){.b-course-dose{padding:16px;margin:12px 0 18px}.b-course-dose-main{gap:5px}.b-course-dose-art{width:54px}.b-course-dose-actions{gap:4px;margin-top:12px}.b-course-dose-actions .b-primary{flex:1 0 auto}.b-course-dose-actions>.b-link{font-size:.84rem}.b-course-dose-goal{display:grid;gap:2px;justify-content:stretch;padding-top:10px}.b-course-dose-goal>.b-link{justify-self:start;text-align:start;padding-inline:0}.b-course-top[data-tab="tarjetas"]>img{max-height:70px}}

.b-course-dose-progress{display:grid;gap:4px;margin:6px 0 8px;max-width:300px}.b-course-dose-progress span{font-size:.84rem;color:var(--b-muted,#79563e)}.b-course-dose-progress progress{display:block;width:100%;height:7px;accent-color:var(--b-accent,#a82943)}

.b-course-top[data-tab="tarjetas"]>div>progress,.b-course-top[data-tab="tarjetas"]>div>progress+small{display:none}

/* The original library tree is also the material picker for course creation. */
#beta-course-create .bca-material {
 min-inline-size:0;
 margin:16px 0;
 padding:12px;
 border:1px solid var(--b-border);
 border-radius:16px;
 background:var(--b-surface);
 color:var(--b-ink);
}
.bca-material legend {padding:0 6px;font-weight:800}
#modal .bca-material-search input::placeholder {color:var(--b-muted);opacity:1}
#modal .bca-material-search input:focus-visible {outline:2px solid var(--b-focus);outline-offset:1px}
.bca-material [hidden] {display:none!important}
.bca-material-search {display:block;margin:0 0 8px}
#modal .bca-material-search input {box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:9px 13px;border:1px solid var(--b-border);border-radius:12px;background:var(--b-raised);color:var(--b-ink);font:inherit;font-size:16px}
#modal .bca-material-tree {max-height:clamp(172px,34dvh,340px);padding:2px;margin:0}
#modal .bca-material-tree .dp-opcion {color:var(--b-ink)}
#modal .bca-material-tree .dp-opcion[aria-pressed=true] {background:var(--b-soft);border-color:var(--b-link)}
#modal .bca-material-tree .dp-marca {color:var(--b-link)}
#modal .bca-material-tree .dp-texto small {color:var(--b-muted)}
#modal .bca-material-tree .dp-abrir:not(.dp-sin-hijos) {width:44px;height:44px;min-width:44px}
#modal .bca-material-choice {margin:10px 2px 0;font-size:13px;line-height:1.5;color:var(--b-ink);overflow-wrap:anywhere}
@media(max-width:420px){
 #beta-course-create .bca-material {padding:8px}
 #modal .bca-material-tree .dp-opcion {column-gap:7px;padding:6px;grid-template-columns:30px minmax(0,1fr)}
 #modal .bca-material-tree .dp-opcion[aria-pressed=true] {grid-template-columns:30px minmax(0,1fr) 16px}
 #modal .bca-material-tree .dp-ic {width:30px;height:30px}
 #modal .bca-material-tree .dp-texto small {font-size:13px;line-height:18px}
 #modal .bca-material-tree>li.dp-fila {padding-left:calc(var(--dp-nivel,0) * 8px)}
}

.b-deck-list>div {background:var(--b-surface);border-color:var(--b-border);color:var(--b-ink)}
.b-deck-list>div>span {color:var(--b-muted)}
@media(max-width:600px){
 .b-deck-list>div {display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:center}
 .b-deck-list .b-link {grid-column:1;min-width:0;min-height:32px;padding:4px 0;overflow-wrap:anywhere}
 .b-deck-list>div>span {display:block;grid-column:1}
 .b-deck-list>div>.b-quiet {grid-column:2;grid-row:1 / 3;min-height:44px;white-space:normal}
}

/* Review prompts and actions follow the course palette, including modal dark mode. */
.bcr-panel {color:var(--b-ink)}
.bcr-panel>p {margin:10px 0;font-size:15px;line-height:1.55}
.bcr-panel>.bcr-due {padding:12px 14px;border-radius:12px;background:var(--b-soft);color:var(--b-ink);font-weight:700}
.bcr-actions {display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.bcr-actions>button,.bcr-secondary>button {min-height:44px;white-space:normal}
.bcr-secondary {display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:14px}
.bcr-frame {width:100%;height:clamp(155px,32dvh,330px);border:1px solid var(--b-border);border-radius:12px}
@media(max-width:520px){.bcr-actions {display:grid;grid-template-columns:1fr}.bcr-secondary{gap:4px 12px}}

.b-study-direction,.b-study-position{color:var(--b-muted);font-size:.88rem;line-height:1.5;margin:8px 0 0}
.b-study-browse .b-study-position{font-weight:750;margin-bottom:12px;color:var(--b-ink)}
.b-study-browse .card-frame{width:100%;height:clamp(150px,38dvh,420px)}
.b-course-deck-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 12px}
.b-course-deck-head .b-link{min-height:44px}
@media(max-width:600px){
 .b-main .b-study-tabs.library-view-switcher.segmented{display:grid;width:100%;max-width:100%;grid-template-columns:minmax(0,.72fr) minmax(0,1fr) minmax(0,1.14fr)}
 .b-main .b-study-tabs.library-view-switcher.segmented>button{width:100%;min-width:0;padding-inline:5px;gap:4px;white-space:normal;font-size:13px}
 .b-study-tabs.library-view-switcher.segmented button span{font-size:inherit}
}

/* Make the clinical pathway discoverable inside every lesson card. */
.bca-lesson-steps [data-cs-lesson-play] .b-icon{filter:saturate(1.15)}
.bca-lesson-steps [data-cs-lesson-play] small{color:var(--b-muted,#79563e);font-weight:500}
.bca-lesson-steps [data-cs-lesson-play]:hover{background:var(--b-soft,#f8e7de);border-color:var(--b-link,#9b1631)}
@media(max-width:600px){.bca-lesson-steps [data-cs-lesson-play] small{font-size:13px;line-height:1.3}}

/* Auditoría 2026-12-03 · Un solo arranque, franja de meta e indicador de ritmo (texto y color). */
.b-course-dose-actions .b-primary{min-width:min(100%,280px);min-height:48px;font-size:16px}
.b-study-steps{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0 0;padding:0;color:var(--b-muted,#79563e);font-size:14px;line-height:1.5}
.b-study-steps li{display:inline-flex;align-items:center;gap:6px}
.b-study-steps b{display:grid;place-content:center;width:22px;height:22px;border-radius:50%;background:var(--b-soft,#f4e2cc);color:var(--b-ink,#442a20);font-size:12px}
.b-course-dose-goal strong{font-size:15px}
.b-course-dose-goal p,.b-course-dose-goal small,.b-course-dose-progress span{font-size:14px}
.b-course-dose-label{font-size:14px}
.b-course-dose-goal-side{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px}
.b-course-dose-goal-side>.b-link{min-height:44px;white-space:nowrap}
.b-pace{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:4px 12px;border-radius:16px;border:1px solid var(--b-border,#dfc9af);background:var(--b-raised,#fffaf1);color:var(--b-ink,#442a20);font:800 14px/1.3 NunitoBeta,system-ui;white-space:nowrap}
button.b-pace{min-height:44px;cursor:pointer}
button.b-pace:focus-visible{outline:3px solid var(--b-focus,#28668c);outline-offset:2px}
.b-pace::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--b-muted,#79563e);flex:none}
.b-pace-ok{border-color:#526c34;background:color-mix(in srgb,#526c34 14%,var(--b-raised,#fffaf1))}
.b-pace-ok::before{background:#526c34}
.b-pace-tight{border-color:#b9770e;background:color-mix(in srgb,#e0a100 20%,var(--b-raised,#fffaf1))}
.b-pace-tight::before{background:#b9770e;border-radius:2px;transform:rotate(45deg)}
.b-pace-short{border-color:#a51c39;background:color-mix(in srgb,#a51c39 12%,var(--b-raised,#fffaf1))}
.b-pace-short::before{background:#a51c39;border-radius:2px}
.b-goal-card{margin:18px 0 22px;padding:clamp(18px,3vw,26px);border:1px solid var(--b-border,#dfc9af);border-radius:22px;background:var(--b-surface,#fffbf5);color:var(--b-ink,#442a20)}
.b-goal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.b-goal-head>div{min-width:0;flex:1 1 220px}
.b-goal-label{margin:0 0 4px;font-size:14px;font-weight:750;color:var(--b-muted,#79563e)}
.b-goal-card h2{margin:0;font-size:clamp(1.25rem,2.4vw,1.6rem);line-height:1.25;overflow-wrap:break-word}
.b-goal-head>button{min-height:44px}
.b-goal-pace{display:grid;gap:6px;margin:14px 0 0}
.b-goal-pace p{margin:0;font-size:15px;line-height:1.55;max-width:70ch}
.b-goal-pace .b-pace{justify-self:start}
.b-goal-card .b-course-dose-progress{margin:14px 0 0}
@media(max-width:600px){.b-course-dose-goal-side{justify-content:flex-start}.b-goal-head>button{width:100%}}
/* Segunda tanda 2026-12-03 · vistos en capturas de 390 y 1280 px: texto de 12 px o más y controles de 44 px. */
.b-unit-author-actions .b-link,.b-course-bottom>.b-link,.bsp-footer .b-link,.bsp-prediction .b-link,.b-course-deck-head .b-link{min-height:44px;font-size:14px}
.b-deck-list .b-link{min-height:44px}
@media(max-width:600px){
 .b-deck-list .b-link{min-height:44px}
 .b-course-tools-button{font-size:13px!important}
}
@media(max-width:480px){
 .b-course-top p{font-size:13px}
 .b-unit-title small{font-size:13px}
 .b-unit-node span{font-size:12px;min-width:22px;height:22px}
 .b-unit-author-actions .b-link,.b-course-bottom>.b-link{font-size:13px}
}
/* 2026-12-03 · Modo curso: cinco accesos (Ruta · Flashcards · Repaso · Casos · Progreso) en la barra del curso. */
.b-course-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 4px 0 0;font-size:14px}
.b-course-context{margin:0 0 4px;font:800 14px/1.35 NunitoBeta,system-ui;color:var(--b-muted,#79563e)}
.b-sidebar .b-course-exit{min-height:44px;margin:-22px 0 8px;font-size:14px;gap:8px}
.b-course-exit-arrow{display:inline-block;font-size:18px;line-height:1}
.b-course-nav-title{margin:0 6px 16px;font:800 14px/1.35 NunitoBeta,system-ui;color:var(--b-on-accent,#fffaf1);overflow-wrap:anywhere}
.b-sidebar .b-course-nav{display:grid;gap:12px}
.b-sidebar .b-course-nav button{position:relative}
.b-sidebar .b-course-nav button[aria-selected=true]{background:var(--b-surface,#fff9ee);color:var(--b-link,#9b1631);box-shadow:0 4px var(--b-accent-deep,#74192e)}
.b-sidebar .b-course-nav+.b-return{margin-top:auto;padding-top:20px}
.b-nav-badge,.b-course-badge{display:inline-grid;place-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#c8102e;color:#fff;font:800 12px/1 NunitoBeta,system-ui;box-shadow:0 0 0 2px var(--b-surface,#fff9ef)}
.b-sidebar .b-nav-badge{margin-left:auto}
.b-course-book>button{position:relative}
.b-course-badge{position:absolute;top:8px;right:14%}
@media(max-width:800px){
 .b-layout.is-course-mode>.b-sidebar{display:block;position:fixed;z-index:50;left:0;right:0;top:auto;bottom:0;height:auto;padding:0;background:none;overflow:visible}
 .b-layout.is-course-mode>.b-sidebar>:not(.b-course-nav){display:none}
 .b-sidebar .b-course-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));background:var(--b-surface,#fff8ed);border-top:1px solid var(--b-border,#e4c4a1);box-shadow:0 -4px 18px #70432312}
 .b-sidebar .b-course-nav button{display:grid;align-content:center;justify-items:center;gap:5px;min-height:60px;padding:5px 2px;border-radius:16px;color:var(--b-muted,#85634b);font:800 12px NunitoBeta,system-ui;text-align:center}
 .b-sidebar .b-course-nav button span{display:block}
 .b-sidebar .b-course-nav .b-icon{width:29px;height:29px}
 .b-sidebar .b-course-nav button[aria-selected=true]{background:var(--b-soft,#fbe4d5);color:var(--b-link,#a41636);box-shadow:none}
 .b-sidebar .b-course-nav .b-nav-badge{position:absolute;top:2px;left:calc(50% + 6px);margin:0}
 .b-sidebar .b-course-nav button:focus-visible{outline:3px solid var(--b-focus,#3a6d93);outline-offset:-3px}
 body.teclado-abierto .b-layout.is-course-mode>.b-sidebar{opacity:0;pointer-events:none}
}
/* Repaso y Casos del curso */
.b-review-list{margin:12px 0 0;border:1px solid var(--b-border,#dfbd98);border-radius:18px;background:var(--b-surface,#fff9ef);color:var(--b-ink,#4a281c)}
.b-review-list>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 18px;cursor:pointer;font:800 16px/1.3 NunitoBeta,system-ui;list-style:none}
.b-review-list>summary::-webkit-details-marker{display:none}
.b-review-list>summary::before{content:"›";font-size:20px;line-height:1;color:var(--b-muted,#79563e);transition:transform .15s ease}
.b-review-list[open]>summary::before{transform:rotate(90deg)}
.b-review-list>summary>span{flex:1}
.b-review-list>summary>b{min-width:30px;padding:3px 10px;border-radius:13px;background:var(--b-soft,#f4e2cc);color:var(--b-ink,#4a281c);font-size:14px;text-align:center}
.b-review-list>summary:focus-visible{outline:3px solid var(--b-focus,#28668c);outline-offset:2px;border-radius:18px}
.b-review-list>ul{list-style:none;margin:0;padding:0 18px 12px}
.b-review-list li{display:grid;gap:2px;padding:10px 0;border-top:1px solid var(--b-border,#dfbd98);font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.b-review-list li small{font-size:13px;color:var(--b-muted,#79563e)}
.b-review-list>p{margin:0;padding:0 18px 16px;font-size:14px;line-height:1.5;color:var(--b-muted,#79563e)}
.b-review-games{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0 0;padding:14px 18px;border-radius:18px;background:var(--b-soft,#f4e2cc);color:var(--b-ink,#4a281c)}
.b-review-games>div{display:grid;gap:3px;flex:1 1 220px}
.b-review-games span{font-size:14px;line-height:1.45;color:var(--b-muted,#79563e)}
.b-cases-head{display:flex;align-items:center;gap:16px;margin:0 0 16px}
.b-cases-art{width:84px;height:84px;object-fit:contain;flex:none}
.b-cases-head h2{margin:0 0 4px;font-size:22px;line-height:1.25}
.b-cases-head p{margin:0;font-size:15px;line-height:1.5;color:var(--b-muted,#79563e)}
.b-cases-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.b-cases-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border:1px solid var(--b-border,#dfbd98);border-radius:18px;background:var(--b-surface,#fff9ef);color:var(--b-ink,#4a281c)}
.b-cases-list li>div{display:grid;gap:3px;flex:1 1 180px;min-width:0}
.b-cases-list strong{font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.b-cases-list small,.b-cases-note{font-size:14px;color:var(--b-muted,#79563e)}
.b-cases-note{margin:14px 0 0}
@media(prefers-reduced-motion:reduce){.b-review-list>summary::before{transition:none}}
@media(min-width:801px){.b-main>.b-course-back,.b-main>.b-course-context{display:none}}
.bsp-main-summary .b-link{min-height:44px}
@media(max-width:800px){.b-course-book small{font-size:12px}.b-campus-label{font-size:12px}}
