/* T49. Solo se carga en sesión 2; comparte tokens, tarjetas e iconos v2. */
.ctx-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); flex:1; min-height:0; gap:1rem; }
.ctx-art { display:flex; flex-direction:column; border:1px solid var(--color-line); }
.ctx-art > img { flex:1; min-height:0; object-fit:contain; width:100%; }
.ctx-art > figcaption { padding:.7rem .9rem; background:var(--color-paper); display:grid; gap:.5rem; }
.ctx-art > figcaption p { font-size:1.05rem; line-height:1.3; }
.ctx-tools { display:grid; gap:.65rem; min-width:0; min-height:0; }
.ctx-tools-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ctx-tools-3 { grid-template-rows:repeat(3,minmax(0,1fr)); }
.ctx-tool { position:relative; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; min-width:0; gap:.35rem; padding:.7rem; }
.ctx-tool > a:first-child { display:flex; align-items:center; gap:.6rem; text-decoration:none; }
.ctx-tool .v2-logo { width:48px; height:48px; padding:0; object-fit:contain; flex:none; }
.ctx-tool .v2-tool-name { font-size:1.05rem; line-height:1.15; }
.ctx-tool .v2-tool-note { font-size:1rem; line-height:1.25; max-width:none; }
.ctx-tool .v2-plan,.ctx-tool .v2-tool-url { font-size:.9rem; line-height:1.25; }
.v2-course .ctx-note,.v2-course .ctx-next { display:flex; align-items:center; gap:.65rem; padding:.55rem .8rem; border-radius:var(--radius-card); background:var(--color-lilac); font-size:1.05rem; line-height:1.3; max-width:none; }
.ctx-note .v2-icon,.ctx-next .v2-icon { width:1.6em; height:1.6em; flex:none; }
.v2-course .ctx-sources { font-size:.85rem; line-height:1.3; color:var(--color-muted); max-width:none; }
.ctx-sources a { color:var(--color-brand-dark); }
.ctx-bridge .v2-icon { width:1.4em; height:1.4em; }
#s2-02 .v2-scene-labels { grid-template-columns:repeat(5,minmax(0,1fr)); gap:.6rem; }
#s2-06 .ctx-coherence { font-size:1rem; line-height:1.3; }
@media screen and (min-width:761px) {
 .projection-mode .ctx-layout { gap:clamp(.75rem,1.1vw,1.4rem); }
 .projection-mode .ctx-tool { padding:clamp(.65rem,.8vw,1rem); gap:.3em; }
 .projection-mode .ctx-tool .v2-logo { width:clamp(40px,3.5vw,68px); height:clamp(40px,3.5vw,68px); }
 .projection-mode .ctx-tool .v2-tool-name { font-size:clamp(18px,1.5vw,28px); }
 .projection-mode .ctx-tool .v2-tool-note,.projection-mode .ctx-art > figcaption p,.projection-mode .ctx-note,.projection-mode .ctx-next { font-size:clamp(18px,1.45vw,28px); }
 .projection-mode .ctx-tool .v2-tool-url,.projection-mode .ctx-tool .v2-plan,.projection-mode .ctx-sources,.projection-mode #s2-06 .ctx-coherence { font-size:clamp(15px,1.15vw,22px); }
 .projection-mode .ctx-tools-4 .ctx-tool > a:first-child { gap:.4rem; }
 .projection-mode .ctx-tools-4 .v2-tool-name { font-size:clamp(18px,1.3vw,25px); }
 .projection-mode #s2-02 .v2-scene-labels h3 { font-size:clamp(19px,1.65vw,32px); }
 .projection-mode #s2-02 .v2-scene-labels p { font-size:clamp(17px,1.25vw,24px); }
 .projection-mode .ctx-bridge .v2-scene-labels { padding:.7rem 1rem; gap:1rem; }
 .projection-mode .ctx-bridge .v2-scene-labels h3 { font-size:clamp(19px,1.6vw,31px); }
 .projection-mode .ctx-bridge .v2-scene-labels p { font-size:clamp(18px,1.25vw,24px); }
 .projection-mode #s2-ctx-4 .v2-visual,.projection-mode #s2-06 .v2-visual { position:relative; }
 .projection-mode #s2-ctx-4 .ctx-next { position:absolute; bottom:0; left:0; right:0; z-index:1; }
 .projection-mode .ctx-bridge .v2-scene-labels { bottom:3.5rem; }
 .projection-mode #s2-06 .ctx-coherence { position:absolute; left:0; right:0; bottom:0; z-index:1; background:rgba(255,255,255,.96); padding:.4rem .6rem; max-width:none; }
 .projection-mode #s2-06 .v2-scene-labels { bottom:3rem; }
}
@media screen and (max-width:760px) {
 .ctx-layout { display:flex; flex-direction:column; flex:none; }
 .ctx-art { flex:none; }
 .ctx-art > img { flex:none; height:auto; }
 .ctx-tools-4,.ctx-tools-3 { grid-template-columns:1fr; grid-template-rows:none; }
 .ctx-tool { padding:1rem; }
 .ctx-tool > a:first-child { flex-direction:row; align-items:center; }
 .ctx-tool .v2-logo { width:48px; height:48px; }
 .ctx-tool .v2-tool-name { font-size:1.1rem; }
 .ctx-tool .v2-plan,.ctx-tool .v2-tool-url { font-size:.95rem; }
 #s2-02 .v2-scene-labels { grid-template-columns:1fr; }
 .ctx-bridge .v2-scene-labels { grid-template-columns:1fr; }
 .ctx-note,.ctx-next { align-items:flex-start; }
}
@media print {
 .ctx-layout { gap:3mm; }
 .ctx-tools { gap:2mm; }
 .ctx-tool { padding:2mm; gap:1mm; }
 .ctx-tool .v2-logo { width:9mm; height:9mm; }
 .ctx-tool .v2-tool-name,.ctx-tool .v2-tool-note,.ctx-art > figcaption p,.ctx-note,.ctx-next { font-size:10pt; }
 .ctx-tool .v2-tool-url,.ctx-tool .v2-plan,.ctx-sources,#s2-06 .ctx-coherence { font-size:8pt; }
 .ctx-art > figcaption { padding:2mm; gap:2mm; }
 #s2-02 .v2-scene-labels h3,.ctx-bridge .v2-scene-labels h3 { font-size:11pt; }
 #s2-02 .v2-scene-labels p,.ctx-bridge .v2-scene-labels p { font-size:9pt; }
 .ctx-note,.ctx-next { padding:2mm; }
}
