/* SpeedPage v1.115 — Modo Cubo inteligente: tres controles junto al scramble. */
body.normal-page .sp-smart-action[hidden],
body.normal-page #sp-smart-data-reopen[hidden]{display:none!important}
/* El mismo encabezado y estilos que Cubo normal; no duplicar botones flotantes. */
html body.normal-page.normal-smart-focused .normal-center > .section-line {
 display:flex!important;grid-row:1!important;grid-column:1/-1!important;
 order:0!important;align-items:center!important;justify-content:space-between!important;
 width:100%!important;min-height:0!important;gap:8px!important;
 flex-wrap:wrap!important;overflow:visible!important;z-index:25!important;
}
html body.normal-page.normal-smart-focused .normal-center > .section-line .sp-manual-view-actions {
 display:flex!important;align-items:center!important;justify-content:flex-end!important;
 flex:1 1 auto;flex-wrap:wrap!important;gap:clamp(4px,.6vw,9px)!important;
 width:auto!important;min-width:0!important;
}
html body.normal-page .sp-manual-view-actions > .sp-smart-action {
 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;
}
html body.normal-page .sp-manual-view-actions > .sp-smart-action:hover,
html body.normal-page .sp-manual-view-actions > .sp-smart-action[aria-pressed="true"] {
 background:color-mix(in srgb,var(--accent) 17%,var(--panel2));
 color:var(--text);
}
html body.normal-page .sp-manual-view-actions > .sp-smart-action:focus-visible {
 outline:2px solid var(--accent);outline-offset:3px;
}
/* Mantener el flujo de la cuadrícula del smart y evitar la barra duplicada de pantalla completa. */
body.normal-page.normal-smart-focused #sp-immersive-fullscreen {display:none!important}
body.normal-page.normal-smart-focused .normal-center > .practice-smart-action-strip {display:none!important}
/* El cubo 3D puede ocultarse sin desconectar el dispositivo ni alterar el reloj. */
body.normal-page.normal-smart-focused #normal-smart-viewer[hidden] {display:none!important}
/* La X funciona también en el panel Datos de cubo inteligente. */
body.normal-page.normal-smart-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-smart-focused #practice-focus-sidebar > .sp-sidebar-tabs {padding-right:38px!important}
body.normal-page .sp-manual-view-actions > #sp-smart-data-reopen:not([hidden]) {
 display:inline-flex!important;align-items:center;justify-content:center;
 min-height:34px;padding:6px 10px!important;
 border-radius:9px;font-size:.78rem;font-weight:700;
}
body.normal-page #sp-smart-data-reopen:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
/* Solo dentro del fullscreen de Cubo inteligente se oculta el encabezado del logo. */
html body.v35-body.normal-page.normal-smart-focused.sp-smart-fullscreen > header.topbar,
html:fullscreen body.v35-body.normal-page.normal-smart-focused.sp-smart-fullscreen > header.topbar {
 display:none!important;visibility:hidden!important;position:static!important;
 height:0!important;min-height:0!important;max-height:0!important;
 margin:0!important;padding:0!important;border:0!important;
}
html body.v35-body.normal-page.normal-smart-focused.sp-smart-fullscreen > main.normal-workbench,
html:fullscreen body.v35-body.normal-page.normal-smart-focused.sp-smart-fullscreen > main.normal-workbench {
 display:block!important;position:fixed!important;inset:0!important;top:0!important;
 width:100vw!important;height:100dvh!important;min-height:0!important;
 max-height:100dvh!important;max-width:none!important;
 margin:0!important;padding:clamp(8px,1vw,16px)!important;
 overflow:auto!important;box-sizing:border-box!important;z-index:25!important;
}
body.normal-page.normal-smart-focused.sp-smart-fullscreen .normal-layout {
 height:100%!important;max-height:100%!important;min-height:0!important;
}
body.normal-page.normal-smart-focused.sp-smart-fullscreen.normal-session-collapsed .normal-layout {
 grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;
}
body.normal-page.normal-smart-focused.sp-smart-fullscreen.normal-session-collapsed .normal-layout > .normal-center {
 grid-column:1!important;width:100%!important;
}
body.normal-page.normal-smart-focused.sp-smart-fullscreen.normal-session-collapsed .normal-layout > #practice-focus-sidebar {
 display:none!important;
}
@media(max-width:700px){
 html body.normal-page.normal-smart-focused .normal-center > .section-line .sp-manual-view-actions{
  justify-content:center!important;width:100%!important;
 }
 html body.normal-page .sp-manual-view-actions > .sp-smart-action {
  font-size:.7rem;padding:6px 7px!important;
 }
 body.normal-page.normal-smart-focused #practice-focus-sidebar .sp-sidebar-close{top:5px;right:5px;width:29px;height:29px;min-width:29px}
 body.normal-page.normal-smart-focused #practice-focus-sidebar > .sp-sidebar-tabs{padding-right:33px!important}
}
@media(max-width:390px){
 html body.normal-page .sp-manual-view-actions > .sp-smart-action {
  font-size:.64rem;min-height:31px;padding:5px 6px!important;
 }
}

/* El botón Mostrar cubo virtual solo aparece después de cerrar con la X existente. */
body.normal-page #normal-cube-show{display:none!important}
body.normal-page.normal-smart-focused #sp-smart-cube[hidden],
body.normal-page.normal-smart-focused #sp-smart-data-reopen[hidden]{display:none!important}
/* Cuando se cierra Datos, el área del cronómetro recupera toda la anchura. */
body.normal-page.normal-smart-focused.normal-session-collapsed .normal-layout,
body.normal-page.normal-smart-focused.normal-session-collapsed .normal-layout.ui-desktop-canvas {
 grid-template-columns:minmax(0,1fr)!important;
}
body.normal-page.normal-smart-focused.normal-session-collapsed .normal-layout>.normal-center {
 grid-column:1!important;max-width:100%!important;
}
body.normal-page.normal-smart-focused.normal-session-collapsed .normal-layout>#practice-focus-sidebar{display:none!important}
