/* SpeedPage v1.114 — Cubo normal: controles junto al scramble,
   Datos con cierre X y pantalla completa REAL bajo demanda. */
body.normal-page .normal-center > .section-line .sp-manual-view-actions {
 display:flex!important;align-items:center;justify-content:flex-end;gap:clamp(4px,.5vw,9px);
 flex-wrap:wrap;min-width:0;max-width:100%;
}
body.normal-page .sp-manual-view-actions [hidden],
body.normal-page #sp-manual-fullscreen[hidden],
body.normal-page #sp-manual-data[hidden] {display:none!important}
body.normal-page .sp-manual-view-actions > button {
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
 min-height:34px;padding:6px 10px!important;
 border:1px solid color-mix(in srgb,var(--border) 55%,transparent);
 border-radius:9px;white-space:nowrap;color:var(--text);font-size:.78rem;
 font-weight:700;background:color-mix(in srgb,var(--panel2) 83%,transparent);cursor:pointer;
}
body.normal-page .sp-manual-view-actions > button:hover,
body.normal-page .sp-manual-view-actions > button[aria-pressed="true"] {
 background:color-mix(in srgb,var(--accent) 17%,var(--panel2));color:var(--text);
}
body.normal-page .sp-manual-view-actions > button:focus-visible,
body.normal-page .sp-sidebar-close:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
/* Los controles inferiores heredados no duplican estos tres botones en Cubo normal. */
body.normal-page.normal-manual-focused > .normal-workbench > .sp-practice-immersive-tools {display:none!important}
/* La X solamente corresponde al panel de Datos de Cubo normal. */
body.normal-page #practice-focus-sidebar {position:relative!important}
body.normal-page .sp-sidebar-close {display:none}
body.normal-page.normal-manual-focused #practice-focus-sidebar .sp-sidebar-close {
 display:grid!important;place-items:center;position:absolute;top:10px;right:10px;
 width:32px;height:32px;min-width:32px;border:1px solid color-mix(in srgb,var(--border) 75%,transparent);
 border-radius:9px;background:var(--panel2);color:var(--text);font-size:17px;
 line-height:1;cursor:pointer;z-index:9;
}
body.normal-page.normal-manual-focused #practice-focus-sidebar > .sp-sidebar-tabs {padding-right:38px!important}
/* Solo el Cubo normal en pantalla completa oculta la barra del logo. Fuera de
   este modo, sigue siempre visible para los demás modos y páginas. */
html:fullscreen body.v35-body.normal-page.normal-manual-focused.sp-manual-fullscreen > header.topbar,
html body.v35-body.normal-page.normal-manual-focused.sp-manual-fullscreen > header.topbar {
 display:none!important;position:static!important;visibility:hidden!important;
 height:0!important;min-height:0!important;max-height:0!important;
 padding:0!important;margin:0!important;border:0!important;
}
html:fullscreen body.v35-body.normal-page.normal-manual-focused.sp-manual-fullscreen > main.normal-workbench,
html body.v35-body.normal-page.normal-manual-focused.sp-manual-fullscreen > main.normal-workbench {
 display:flex!important;position:fixed!important;inset:0!important;top:0!important;
 height:100dvh!important;min-height:0!important;max-height:100dvh!important;
 width:100vw!important;margin:0!important;padding:clamp(8px,1vw,16px)!important;
 box-sizing:border-box!important;z-index:25!important;
}
body.normal-manual-focused.sp-manual-fullscreen .normal-layout {height:100%!important;max-height:100%!important;min-height:0!important}
body.normal-manual-focused.sp-manual-fullscreen.normal-session-collapsed .normal-layout,
body.normal-manual-focused.sp-manual-fullscreen.normal-session-collapsed .normal-layout.ui-desktop-canvas {
 grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;
}
body.normal-manual-focused.sp-manual-fullscreen.normal-session-collapsed .normal-layout>.normal-center {
 grid-column:1!important;grid-row:1!important;width:100%!important;
}
body.normal-manual-focused.sp-manual-fullscreen.normal-session-collapsed .normal-layout>#practice-focus-sidebar{display:none!important}
/* Si Datos está cerrado, el reloj ocupa el espacio recuperado. */
body.normal-manual-focused.normal-session-collapsed .normal-center > .normal-timer {font-size:clamp(5rem,min(20vw,29dvh),20rem)!important}
/* Responsive: controles en una fila cuando sea posible, sin desbordarse. */
@media(max-width:700px){
 body.normal-page .normal-center > .section-line {flex-wrap:wrap;gap:6px!important}
 body.normal-page .normal-center > .section-line .sp-manual-view-actions {justify-content:center;width:100%;}
 body.normal-page .sp-manual-view-actions > button{font-size:.70rem;padding:6px 7px!important}
 body.normal-page.normal-manual-focused #practice-focus-sidebar .sp-sidebar-close {top:5px;right:5px;width:29px;height:29px;min-width:29px}
 body.normal-page.normal-manual-focused #practice-focus-sidebar > .sp-sidebar-tabs{padding-right:33px!important}
}
@media(max-width:390px){
 body.normal-page .sp-manual-view-actions > button {font-size:.65rem;min-height:31px;padding:5px 6px!important}
}
