
/* SpeedPage v1.117 — visores independientes y movibles, sin cambiar las sesiones ni el temporizador. */
body.normal-page .sp-floating-reference {
 position:fixed!important;inset:auto!important;box-sizing:border-box!important;
 max-width:none!important;max-height:none!important;min-width:190px!important;min-height:155px!important;
 margin:0!important;padding:11px!important;isolation:isolate;
 border:1px solid var(--border)!important;border-radius:16px!important;
 background:color-mix(in srgb,var(--panel) 95%,transparent)!important;
 box-shadow:0 16px 50px #000a!important;backdrop-filter:blur(15px)!important;
 overflow:hidden!important;touch-action:auto;
}
body.normal-page .sp-floating-reference[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.normal-page #normal-manual-scramble-card.sp-floating-reference:not([hidden]){
 display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;
 align-self:auto!important;justify-self:auto!important;height:auto;
}
body.normal-page #normal-smart-viewer.sp-floating-reference:not([hidden]){
 display:block!important;min-height:155px!important;
}
body.normal-page #normal-smart-viewer.sp-floating-reference .normal-smart-cube,
body.normal-page #normal-smart-viewer.sp-floating-reference .normal-smart-cube.cube3d-view{
 width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;
}
body.normal-page #normal-smart-viewer.sp-floating-reference .normal-smart-viewer-controls {z-index:35!important}
body.normal-page .sp-floating-reference .sp-floating-grip {
 cursor:grab;user-select:none;touch-action:none;pointer-events:auto!important;
 padding:3px 8px 3px 0!important;max-width:calc(100% - 16px);
}
body.normal-page .sp-floating-reference .sp-floating-grip:active{cursor:grabbing}
body.normal-page .sp-floating-reference .sp-floating-grip button{cursor:pointer;touch-action:auto}
body.normal-page .sp-floating-reference .sp-floating-grip-hint{
 display:inline-flex!important;align-items:center;gap:2px;color:var(--muted);margin-left:auto;
 font-weight:600;font-size:.62rem;letter-spacing:.02em;white-space:nowrap;
}
body.normal-page #normal-smart-viewer.sp-floating-reference .normal-smart-viewer-label{
 top:6px!important;left:10px!important;right:10px!important;min-height:31px!important;
}
body.normal-page #normal-smart-viewer.sp-floating-reference .normal-smart-viewer-label .normal-smart-viewer-help{display:none!important}
body.normal-page #normal-manual-scramble-card.sp-floating-reference .normal-manual-scramble-head{
 min-height:31px!important;
}
body.normal-page .sp-floating-reference .sp-floating-resize {position:absolute!important;z-index:90!important;
 border:0!important;background:transparent!important;touch-action:none!important;pointer-events:auto!important}
body.normal-page .sp-floating-reference .sp-floating-resize:focus-visible{outline:2px solid var(--accent)!important;outline-offset:-2px}
body.normal-page .sp-floating-reference .sp-floating-resize-e {right:0;top:32px;bottom:18px;width:10px;cursor:ew-resize}
body.normal-page .sp-floating-reference .sp-floating-resize-s {bottom:0;left:16px;right:16px;height:10px;cursor:ns-resize}
body.normal-page .sp-floating-reference .sp-floating-resize-se {
 bottom:0;right:0;width:22px;height:22px;cursor:nwse-resize;
 background:linear-gradient(135deg,transparent 56%,var(--accent) 57% 63%,transparent 64% 74%,var(--accent) 75% 81%,transparent 82%)!important;
}
body.normal-page .sp-floating-reference.is-expanded {inset:12px!important;left:12px!important;top:12px!important;
 width:calc(100vw - 24px)!important;height:calc(100dvh - 24px)!important;z-index:15050!important;
}
body.normal-page .sp-floating-reference.is-expanded .sp-floating-resize{display:none!important}
/* Buttons to open the image/cube belong BELOW the solve controls, never in the scramble heading. */
body.normal-page .sp-floating-launchers{grid-column:1/-1!important;align-items:center;justify-content:center;
 gap:9px;min-height:35px;max-width:100%;flex-wrap:wrap;
}
body.normal-page .sp-floating-launchers{display:none!important}
body.normal-page.normal-manual-focused .normal-timer-controls>.sp-floating-launchers,
body.normal-page.normal-smart-focused .normal-timer-controls>.sp-floating-launchers{display:flex!important;grid-column:1/-1!important;grid-row:2!important;justify-self:stretch!important}
body.normal-page .sp-floating-launchers > button:not([hidden]){
 display:inline-flex!important;align-items:center;justify-content:center;min-height:34px;
 gap:6px;padding:7px 13px!important;border:1px solid var(--border);border-radius:10px;
 background:var(--panel2)!important;color:var(--text)!important;font-size:.78rem;font-weight:750;
}
body.normal-page .sp-floating-launchers > button[hidden]{display:none!important}
body.normal-page .sp-floating-launchers > button:hover{border-color:var(--accent);color:var(--accent)!important}
body.normal-page .sp-floating-launchers > button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* The timer gets its full width after the reference image moves to a free window. */
body.normal-page.normal-manual-focused .normal-layout>.normal-center{
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:auto auto minmax(0,1fr) auto auto auto!important;
}
body.normal-page.normal-manual-focused .normal-center>.normal-timer{grid-column:1!important;grid-row:3!important}
body.normal-page.normal-manual-focused .normal-center>#timer-message{grid-column:1!important;grid-row:4!important}
body.normal-page.normal-manual-focused .normal-center>.normal-timer-controls{grid-row:5!important}
/* The launcher is inside the timer controls, avoiding an extra clipped grid row. */
body.normal-page.normal-smart-focused .normal-center .normal-smart-visual:not(.virtual-hidden){
 grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;
}
body.normal-page.normal-smart-focused .normal-center .normal-smart-workflow:not([hidden]){
 grid-column:2!important;grid-row:4!important;
}
body.normal-page.normal-smart-focused .normal-center .normal-smart-info {max-height:100%!important;overflow:auto!important}
body.normal-page.normal-smart-focused.normal-cube-hidden .normal-center .normal-smart-workflow:not([hidden]){
 grid-column:1/-1!important;
}
body.normal-page.normal-manual-focused .normal-center>.section-line #view-scramble-image,
body.normal-page.normal-smart-focused .normal-center>.section-line #sp-smart-cube{display:none!important}
@media (max-width:760px){
 body.normal-page.normal-manual-focused .normal-layout>.normal-center{
  grid-template-rows:auto auto minmax(0,1fr) auto auto auto!important;
 }
 body.normal-page.normal-manual-focused .normal-center>#timer-message{grid-row:4!important}
 body.normal-page.normal-manual-focused .normal-center>.normal-timer-controls{grid-row:5!important}
 body.normal-page.normal-manual-focused .normal-timer-controls>.sp-floating-launchers{grid-row:2!important}
 body.normal-page .sp-floating-reference .sp-floating-grip-hint {font-size:.55rem}
}

/* Prioridad correcta del cubo decorativo delante del nombre SpeedPage. */
body.v35-body .topbar .brand.brand-updated {gap:0!important;}
body.v35-body .topbar .brand.brand-updated .brand-cube-scene {z-index:4!important;margin:0 -18px 0 0!important;position:relative!important;}
body.v35-body .topbar .brand.brand-updated img.brand-wordmark {z-index:1!important;position:relative!important;}

/* v1.121: el visor debe estar delante del temporizador desde su apertura. */
body.normal-page .sp-floating-reference:not([hidden]){z-index:70;visibility:visible;pointer-events:auto;}
body.normal-page.normal-smart-focused .sp-floating-launchers #sp-smart-cube:not([hidden]){display:inline-flex!important;visibility:visible!important;}
body.normal-page .sp-floating-reference.is-expanded{z-index:90!important;}

/* v1.125: hidden 3D viewer keeps status in its own row, below the timer. */
html body.normal-page.normal-smart-focused.normal-cube-hidden .normal-layout>.normal-center {
 grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto!important;
}
html body.normal-page.normal-smart-focused.normal-cube-hidden .normal-center>.normal-timer {
 grid-row:4!important;grid-column:1/-1!important;min-height:0!important;
}
html body.normal-page.normal-smart-focused.normal-cube-hidden .normal-center>.normal-smart-workflow:not([hidden]) {
 grid-row:5!important;grid-column:1/-1!important;position:relative!important;inset:auto!important;
 height:auto!important;max-height:14dvh!important;min-height:0!important;align-self:stretch!important;
 grid-template-rows:auto minmax(0,1fr)!important;overflow:auto!important;
}
html body.normal-page.normal-smart-focused.normal-cube-hidden .normal-center>#timer-message {grid-row:6!important;grid-column:1/-1!important;}
html body.normal-page.normal-smart-focused.normal-cube-hidden .normal-center>.normal-timer-controls {grid-row:7!important;grid-column:1/-1!important;}
html body.normal-page.normal-smart-focused.normal-cube-hidden #normal-smart-viewer {display:none!important;}
