/* Classical Bibliotheca reading symmetry, based on Concordancia/Scriptorium.
   Layout only: preserves textual data, loci, the translator and highlights. */
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader{
 --cl-study-height:760px;
 min-height:0;
 align-items:stretch;
 border:1px solid #b7ac99;
 border-radius:5px;
 background:#efe9df;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader>.cl-source-column,
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader>.cl-translation-column{
 height:var(--cl-study-height,760px)!important;
 max-height:none!important;
 min-height:340px;
 overflow-y:auto;
 overscroll-behavior:contain;
 scrollbar-gutter:stable;
 padding:14px 18px 22px;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader .cl-pane-title{
 min-height:43px;
 display:flex;
 align-items:center;
 padding:9px 12px;
 margin:-14px -18px 14px;
 background:#e5e4e0;
 color:#232b31;
 border-bottom:1px solid #cbbfae;
 font:650 13px/1.35 system-ui,sans-serif;
 letter-spacing:.065em;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader .cl-translation-tools{
 display:flex;
 flex-wrap:wrap;
 gap:6px;
 align-items:center;
 padding:8px;
 background:#efe8db;
 border:1px solid #cfc3ae;
 border-radius:4px;
 margin-bottom:10px;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader .cl-pane-options{
 display:flex;align-items:center;flex-wrap:wrap;gap:9px;
 margin:0 0 8px;
 font:12px/1.4 system-ui,sans-serif;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader .cl-translation-tools :is(button,select),
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader .cl-pane-options select{
 min-height:34px;
 background:#fff;
 color:#263642;
 border:1px solid #ad9f8a;
 border-radius:5px;
 padding:6px 9px;
 font:600 12px/1.35 system-ui,sans-serif;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader .cl-translation-label{
 margin:8px 0;
 padding:2px 0;
 font:650 12px/1.45 system-ui,sans-serif;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader #passages,
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader .cl-translation-output{
 scroll-margin-top:20px;
 transition:none;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader .cl-translation-output{
 font-size:var(--cl-translation-size,20px);
 line-height:1.8;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-edition-layout{
 display:flex;align-items:center;flex-wrap:wrap;gap:9px;
 padding:8px 0 12px;
}
.cl-reading-height-control{
 display:flex;align-items:center;gap:9px;flex-wrap:wrap;flex:1 1 100%;
 background:#f0e9dc;color:#283b49;
 padding:9px 12px;border:1px solid #b4a48c;border-radius:6px;
 font:600 12px/1.4 system-ui,sans-serif;
}
.cl-reading-height-control label{white-space:nowrap}
.cl-reading-height-control input[type="range"]{flex:1 1 170px;min-width:100px;accent-color:#315872}
.cl-reading-height-control output{min-width:51px;font-variant-numeric:tabular-nums}
.cl-reading-height-control button{background:#fff!important;color:#243746!important;border:1px solid #a9a096!important;border-radius:5px;padding:6px 9px;cursor:pointer;font:600 12px system-ui}
html[data-theme="dark"] .cl-reading-height-control{background:#232d35;color:#f0e5d4}
@media(max-width:900px){
 html:not([data-parallel-view="true"]) .cl-dual-reader>.cl-source-column,
 html:not([data-parallel-view="true"]) .cl-dual-reader>.cl-translation-column{height:auto!important;max-height:620px!important}
 html:not([data-parallel-view="true"]) .cl-dual-reader .cl-translation-output{margin-top:0!important}
}
@media print{
 .cl-reading-height-control{display:none!important}
 .cl-dual-reader>.cl-source-column,.cl-dual-reader>.cl-translation-column{height:auto!important;max-height:none!important;overflow:visible!important}
 .cl-dual-reader #passages,.cl-dual-reader .cl-translation-output{margin-top:0!important}
}

/* Shared top toolbar: all study controls stay ABOVE the two reading surfaces.
   The original, translation and their individual reading annotations remain below. */
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-edition-layout .cl-unified-reading-actions{
 display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;
 width:100%;min-width:0;
 padding:10px 12px;border:1px solid #b9ae9d;border-radius:6px;
 background:#eee8dd;color:#253746;
 font:12px/1.4 system-ui,sans-serif;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-unified-reading-actions>.cl-pane-options{
 display:inline-flex;align-items:center;flex-wrap:wrap;gap:7px;
 margin:0;padding:0;white-space:nowrap;
 font:600 12px/1.4 system-ui,sans-serif;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-unified-reading-actions>.cl-translation-tools{
 display:flex;align-items:center;flex-wrap:wrap;gap:6px;
 padding:0;margin:0;border:0;border-radius:0;background:transparent;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-unified-reading-actions :is(button,a,select){
 display:inline-flex;align-items:center;justify-content:center;
 min-height:36px;padding:7px 10px;border-radius:5px;
 background:#fff!important;color:#223645!important;
 border:1px solid #aea392!important;
 box-sizing:border-box;
 font:600 12px/1.35 system-ui,sans-serif!important;
 text-decoration:none;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-unified-reading-actions button:disabled{
 opacity:.55;cursor:not-allowed
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-unified-reading-actions select{max-width:220px}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-unified-reading-actions :is(button,a,select):focus-visible{
 outline:2px solid #be9455;outline-offset:2px
}
html[data-theme="dark"] .cl-unified-reading-actions{
 background:#24282d!important;color:#f1eee7!important;border-color:#666!important
}
html[data-theme="dark"] .cl-unified-reading-actions :is(button,a,select){
 background:#30343a!important;color:#f7f2e7!important;border-color:#78736a!important
}
@media(max-width:900px){
 html:not([data-parallel-view="true"]) .cl-unified-reading-actions>*{flex:0 1 auto}
 html:not([data-parallel-view="true"]) .cl-unified-reading-actions>.cl-translation-tools{flex:1 1 100%}
}
@media print{.cl-unified-reading-actions{display:none!important}}

/* Shared reader palette, independently of the site-wide dark UI skin. */
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader:not(.cl-pdf-mode)>.cl-source-column,
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader:not(.cl-pdf-mode)>.cl-translation-column{
 background:var(--cl-shared-bg,#fffdf7)!important;
 color:var(--cl-shared-fg,#202b35)!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader .cl-translation-output,
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader .cl-translation-output>p:not(.cl-caution),
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader .cl-translation-label,
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader .cl-translation-meta{
 background:transparent!important;
 color:var(--cl-shared-fg,#202b35)!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader .cl-pane-title{
 background:#e5e4e0!important;color:#263440!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader{
 background:var(--cl-shared-bg,#fffdf7)!important;
}
/* True viewport-filling study mode without losing navigation, copy or controls. */
html.cl-biblio-expanded:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .reader-grid{
 position:fixed!important;inset:0!important;z-index:99990!important;
 display:block!important;margin:0!important;padding:0!important;
 width:100vw!important;height:100dvh!important;max-width:none!important;
 background:#18202a!important;overflow:hidden!important;
}
html.cl-biblio-expanded:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .reader-grid>aside{
 display:none!important;
}
html.cl-biblio-expanded:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .reader-grid>.reader{
 display:flex!important;flex-direction:column!important;
 width:100%!important;height:100%!important;max-width:none!important;
 min-height:0!important;box-sizing:border-box!important;
 padding:8px 12px!important;overflow:hidden!important;
 background:#20262e!important;
}
html.cl-biblio-expanded:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .reader-grid>.reader>.reader-toolbar{
 flex:0 0 auto!important;padding:7px 9px!important;
 margin:0 0 5px!important;
}
html.cl-biblio-expanded:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .reader-grid>.reader>#reading-reference{
 flex:0 0 auto!important;margin:3px 0 5px!important;max-height:36px;overflow:auto;
}
html.cl-biblio-expanded:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .reader-grid>.reader>.cl-edition-layout{
 flex:0 0 auto!important;padding:3px 0 7px!important;gap:5px!important;
}
html.cl-biblio-expanded:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .reader-grid>.reader>.cl-dual-reader{
 flex:1 1 auto!important;height:auto!important;min-height:0!important;max-height:none!important;
 overflow:hidden!important;
}
html.cl-biblio-expanded:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader>.cl-source-column,
html.cl-biblio-expanded:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader>.cl-translation-column{
 height:100%!important;max-height:none!important;min-height:0!important;
}
html.cl-biblio-expanded:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .reader-grid>.reader>#lexicon{
 max-height:18vh;overflow:auto
}
.cl-reading-height-control button[aria-pressed=true]{
 border-color:#b68f4e!important;box-shadow:inset 0 -2px 0 #b68f4e;
}
@media(max-width:900px){
 html.cl-biblio-expanded:not([data-parallel-view="true"]) body .cl-dual-reader>.cl-source-column,
 html.cl-biblio-expanded:not([data-parallel-view="true"]) body .cl-dual-reader>.cl-translation-column{
  height:100%!important;max-height:none!important;min-height:0!important
 }
}
@media print{
 html.cl-biblio-expanded .reader-grid{position:static!important;height:auto!important;overflow:visible!important}
}

/* Keep source and translation opening lines level. Original-only annotation
   controls are available in a single fold ABOVE the two reading columns. */
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-edition-layout>.cl-annotation-tools-fold{
 flex:1 1 100%;width:100%;
 border:1px solid #a9a398;border-radius:5px;
 background:#282f37;color:#f0eee8;
 font:600 12px/1.45 system-ui,sans-serif;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-annotation-tools-fold>summary{
 padding:9px 12px;cursor:pointer;list-style:revert;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-annotation-tools-content{
 border-top:1px solid #7d7971;padding:8px 10px;
 display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-annotation-tools-content .vdl-annotation-bar,
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-annotation-tools-content .cl-translation-annotations{
 flex:1 1 260px;margin:0!important;max-width:100%;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-annotation-tools-content #hit-nav{
 flex:0 1 auto;margin:0;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) #passages .locus{
 display:none!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-translation-label{
 display:none!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader #passages,
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader .cl-translation-output{
 margin-top:0!important;padding-top:0!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader #passages>p,
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader .cl-translation-output>p:first-child{
 margin-top:0!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) .cl-dual-reader .cl-pane-title{
 display:flex;align-items:center;min-height:45px;
}
@media print{.cl-annotation-tools-fold{display:none!important}}

/* Lexicon neutral dark colors: retained controls, no cream surfaces. */
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader,
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader:not(.cl-pdf-mode)>.cl-source-column,
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader:not(.cl-pdf-mode)>.cl-translation-column{background:var(--cl-shared-bg,#18191b)!important;color:var(--cl-shared-fg,#e5e5e5)!important;border-color:#444448!important}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader :is(.cl-pane-title,.cl-translation-tools,.cl-pane-options,.cl-reading-height-control,.cl-unified-reading-actions,.cl-annotation-tools-fold){background:#202123!important;color:#e5e5e5!important;border-color:#45454a!important}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-dual-reader :is(.cl-translation-output,.cl-translation-output>p:not(.cl-caution),.cl-translation-label,.cl-translation-meta){background:transparent!important;color:var(--cl-shared-fg,#e5e5e5)!important}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body :is(.cl-unified-reading-actions,.cl-reading-height-control,.cl-translation-tools,.cl-pane-options,.cl-annotation-tools-fold) :is(button,a,select,input:not([type=range])){background:#2a2a2e!important;color:#e8e8ea!important;border:1px solid #59595f!important;border-radius:8px!important;box-shadow:none!important}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-reading-height-control{background:#202123!important;color:#e5e5e5!important;border-color:#45454a!important}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body .cl-reading-height-control button[aria-pressed=true]{border-color:#929298!important;box-shadow:inset 0 -2px 0 #929298!important}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body :is(.cl-unified-reading-actions,.cl-reading-height-control) :is(button,a,select):focus-visible{outline:2px solid #b0b0b5!important}
@media print{html body .cl-dual-reader,html body .cl-dual-reader :is(.cl-source-column,.cl-translation-column){background:#fff!important;color:#111!important}}

/* Paleta del lector general: muestras en una sola línea, sin aumentar botonera. */
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-translation-tools>.cl-compact-palette{
  display:flex!important;flex:0 0 auto!important;align-items:center;flex-wrap:nowrap!important;
  justify-content:flex-start!important;gap:4px;margin:0 0 0 8px!important;padding:0 2px!important;
  height:32px!important;min-height:32px!important;
  width:max-content!important;max-width:none!important;white-space:nowrap;
  overflow:visible!important;scrollbar-width:none!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-compact-palette .cl-compact-palette-label{
  display:inline-block;flex:0 0 auto;color:inherit!important;opacity:.9;
  font:600 12px/1.3 system-ui,sans-serif;margin:0 2px 0 6px;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-compact-palette button.cl-compact-palette-dot{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 23px!important;width:23px!important;height:23px!important;
  min-width:23px!important;min-height:23px!important;max-height:23px!important;
  padding:0!important;border:2px solid #777!important;border-radius:50%!important;
  background:var(--cl-palette-sample)!important;background-image:none!important;color:transparent!important;
  -webkit-text-fill-color:transparent!important;box-shadow:none!important;
  cursor:pointer;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-compact-palette button.cl-compact-palette-dot[aria-pressed="true"]{
  outline:2px solid #d7d7d7!important;outline-offset:2px;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-compact-palette button.cl-compact-palette-dot:focus-visible{
  outline:3px solid #e8c784!important;outline-offset:3px;
}
@media(max-width:1200px){
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-unified-reading-actions .cl-translation-tools>.cl-compact-palette{gap:3px}
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-unified-reading-actions .cl-compact-palette button.cl-compact-palette-dot{
  flex-basis:20px!important;width:20px!important;height:20px!important;
  min-width:20px!important;min-height:20px!important;max-height:20px!important;
 }
}
@media print{.cl-compact-palette{display:none!important}}


/* Dos acabados editoriales en el hueco de la paleta: sin segunda fila. */
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-compact-paper-buttons{
 display:inline-flex;flex:0 0 auto;align-items:center;gap:5px;
 height:30px;max-height:30px;white-space:nowrap;
 border-left:1px solid #656569;margin-left:9px;padding-left:10px;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-compact-paper-buttons button.cl-paper-style-button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:auto!important;min-width:0!important;height:29px!important;min-height:29px!important;
 max-height:29px!important;flex:0 0 auto!important;
 padding:4px 9px!important;border:1px solid #777!important;
 border-radius:7px!important;background:#343436!important;color:#ecebed!important;
 -webkit-text-fill-color:#ecebed!important;box-shadow:none!important;
 font:500 12px/1.2 system-ui,sans-serif!important;cursor:pointer;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-compact-paper-buttons button.cl-paper-style-button[aria-pressed="true"]{
 background:#e7dfd1!important;color:#2a2926!important;
 -webkit-text-fill-color:#2a2926!important;border-color:#d6b77e!important;
 box-shadow:inset 0 0 0 1px #bba67e!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-compact-paper-buttons button.cl-paper-style-button:focus-visible{
 outline:2px solid #e7ca8e!important;outline-offset:2px!important;
}



/* Muestras reales de cada papel: el botón anticipa el acabado del visor.
   Solo afecta a Papel crema / Papel Canson, sin cambiar tamaño ni distribución. */
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-compact-paper-buttons button.cl-paper-style-button[data-paper-kind="cream"]{
 background-color:#d6c7ad!important;
 background-image:radial-gradient(ellipse at 20% 17%,rgba(255,255,255,.24),transparent 68%),linear-gradient(115deg,rgba(255,255,255,.09),rgba(121,92,54,.035)),repeating-linear-gradient(0deg,rgba(110,84,53,.012) 0px,rgba(110,84,53,.012) 1px,transparent 1px,transparent 8px)!important;
 color:#302a21!important;-webkit-text-fill-color:#302a21!important;
 border-color:#b8a586!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-compact-paper-buttons button.cl-paper-style-button[data-paper-kind="canson"]{
 background-color:#c3c7c1!important;
 background-image:radial-gradient(circle at 3px 4px,rgba(65,77,72,.065) .4px,transparent 1px),radial-gradient(circle at 9px 7px,rgba(255,255,255,.2) .4px,transparent 1px),linear-gradient(115deg,rgba(255,255,255,.08),rgba(79,91,87,.028))!important;
 background-size:11px 13px,17px 19px,100% 100%!important;
 color:#29312d!important;-webkit-text-fill-color:#29312d!important;
 border-color:#a5aaa3!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-compact-paper-buttons button.cl-paper-style-button[data-paper-kind="cream"][aria-pressed="true"]{
 background-color:#f2e8d6!important;color:#302a21!important;-webkit-text-fill-color:#302a21!important;
 border-color:#d6b77e!important;box-shadow:inset 0 0 0 1px #bba67e!important;
}
html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
.cl-unified-reading-actions .cl-compact-paper-buttons button.cl-paper-style-button[data-paper-kind="canson"][aria-pressed="true"]{
 background-color:#e5e9e3!important;color:#29312d!important;-webkit-text-fill-color:#29312d!important;
 border-color:#d6b77e!important;box-shadow:inset 0 0 0 1px #bba67e!important;
}

/* 2026-11-18 · Fusión: botones de color a continuación de A+ (segunda fila).
   Sin barra de desplazamiento, sin duplicar filas ni tocar pasajes o traducciones. */
@media (min-width:1251px){
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-edition-layout .cl-unified-reading-actions{
  display:grid!important;
  grid-template-columns:max-content max-content minmax(0,1fr)!important;
  grid-template-rows:minmax(36px,auto) minmax(36px,auto)!important;
  align-items:center!important;column-gap:8px!important;row-gap:6px!important;
  padding:8px 11px!important;
 }
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-unified-reading-actions>button:first-child{grid-column:1;grid-row:1}
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-unified-reading-actions>a:first-of-type{grid-column:2;grid-row:1}
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-unified-reading-actions>.cl-pane-options{
  grid-column:3;grid-row:1;min-width:0;flex-wrap:nowrap!important;
 }
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-unified-reading-actions>.cl-translation-tools{
  grid-column:1 / -1;grid-row:2;justify-self:stretch!important;
  justify-content:flex-start!important;flex-wrap:nowrap!important;
  min-width:0!important;width:100%!important;max-width:100%!important;
 }
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-unified-reading-actions .cl-translation-tools>.cl-compact-palette{
  flex:0 0 auto!important;justify-content:flex-start!important;
  width:max-content!important;max-width:none!important;
  min-width:0!important;margin:0 0 0 8px!important;padding:0!important;
  height:32px!important;min-height:32px!important;gap:4px!important;
  flex-wrap:nowrap!important;overflow:visible!important;scrollbar-width:none!important;
 }
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-compact-palette .cl-compact-palette-label{
  font:600 11px/1.2 system-ui,sans-serif!important;
  margin:0 1px!important;white-space:nowrap!important;
 }
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-unified-reading-actions .cl-compact-palette button.cl-compact-palette-dot{
  flex:0 0 18px!important;width:18px!important;height:18px!important;
  min-width:18px!important;min-height:18px!important;max-height:18px!important;
  border-width:2px!important;
 }
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-unified-reading-actions .cl-compact-paper-buttons{
  margin-left:4px!important;padding-left:6px!important;gap:3px!important;
  flex-shrink:0!important;height:28px!important;
 }
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-unified-reading-actions .cl-compact-paper-buttons button.cl-paper-style-button{
  height:27px!important;min-height:27px!important;max-height:27px!important;
  padding:3px 6px!important;font:500 11px/1.1 system-ui,sans-serif!important;
  border-radius:6px!important;
 }
}
/* Sin scroll horizontal en ninguna anchura: en pantallas estrechas,
   la distribución puede adaptarse sin barras internas. */
html:not([data-parallel-view="true"]) body.academic-reader
.cl-translation-tools>.cl-compact-palette::-webkit-scrollbar{display:none!important}
@media (max-width:1250px){
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-unified-reading-actions>.cl-translation-tools{flex-wrap:wrap!important}
 html:not([data-parallel-view="true"]):not([data-reading-mode="simple"]) body.academic-reader
 .cl-translation-tools>.cl-compact-palette{margin-left:4px!important}
}
