
/* V180: dedicated custom algorithm entry and centered compact sequence. */
body.rubik-hub-page .rubik-studio-custom-panel{
 display:flex;flex-direction:column;gap:7px;
 border:1px solid #b6d5ed;background:#f3f9ff;border-radius:13px;
 padding:13px 14px;margin-top:14px;box-sizing:border-box;
 min-width:0;max-width:100%;
}
body.rubik-hub-page .rubik-studio-custom-panel h3{
 margin:0;font-size:15px;line-height:1.35;color:#184870;
}
body.rubik-hub-page .rubik-studio-custom-description{
 font-size:12px;line-height:1.65;margin:0;color:#516e87;
}
body.rubik-hub-page .rubik-studio-custom-label{
 display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:700;
}
body.rubik-hub-page #rubikStudioCustomMoves{
 display:block!important;box-sizing:border-box!important;width:100%!important;
 min-width:0!important;max-width:100%!important;min-height:72px;
 resize:vertical;border:1px solid #9cbfe0;border-radius:9px;
 padding:10px 11px;font:600 13px/1.6 ui-monospace,monospace;
 direction:ltr!important;text-align:left!important;
 overflow-wrap:anywhere;white-space:pre-wrap;
 background:#fff;color:#163c5f;
}
body.rubik-hub-page #rubikStudioCustomApply{
 display:block!important;width:100%;min-height:39px;border-radius:8px;
 background:#1873be;color:#fff;font-size:13px;font-weight:760;
 border:0;cursor:pointer;
}
body.rubik-hub-page #rubikStudioCustomApply:disabled{
 opacity:.5;cursor:not-allowed;
}
body.rubik-hub-page .rubik-studio-custom-feedback{
 font-size:12px;min-height:16px;line-height:1.5;margin:0;color:#2c5b7c;
}
body.rubik-hub-page #rubikStudioMoves:disabled,
body.rubik-hub-page #rubikStudioCustomMoves:disabled{opacity:.78}
body.rubik-hub-page .rubik-studio-form .rubik-studio-custom-panel[hidden],
body.rubik-hub-page .rubik-studio-form > label[hidden]{display:none!important}
/* One always-centered viewport. For a short row, auto margins distribute unused width
   equally; when content overflows, auto margins resolve to zero, keeping FIRST token
   reachable via horizontal scrolling instead of clipping it off the left. */
body.rubik-hub-page .rubik-studio-view .rubik-overlay-cube-view > .rubik-studio-move-strip:not([hidden]){
 display:block!important;position:relative!important;box-sizing:border-box!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 height:auto!important;min-height:0!important;max-height:49px!important;
 padding:3px 7px!important;margin:0 auto 8px!important;
 background:var(--studio-algorithm-background,#fff)!important;
 text-align:center!important;overflow:hidden!important;
}
body.rubik-hub-page .rubik-overlay-cube-view .rubik-studio-move-strip .rubik-studio-sequence-zone{
 width:100%!important;max-width:100%!important;display:block!important;
 min-width:0!important;margin:0 auto!important;padding:0!important;
}
body.rubik-hub-page .rubik-overlay-cube-view .rubik-studio-move-strip .rubik-studio-timeline{
 display:flex!important;flex-flow:row nowrap!important;
 justify-content:flex-start!important;align-items:center!important;
 gap:6px!important;direction:ltr!important;
 overflow-x:auto!important;overflow-y:hidden!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 min-height:37px!important;max-height:40px!important;
 padding:1px 4px 4px!important;margin:0 auto!important;
 scrollbar-width:thin!important;scroll-behavior:auto!important;
}
body.rubik-hub-page .rubik-overlay-cube-view .rubik-studio-move-strip .rubik-studio-token{
 flex:0 0 37px!important;width:37px!important;min-width:37px!important;
 max-width:37px!important;min-height:30px!important;max-height:30px!important;
 font:800 var(--studio-sequence-size,18px)/1.1 ui-monospace,monospace!important;
 margin:0!important;padding:3px 1px!important;box-sizing:border-box!important;
 transform:none!important;white-space:nowrap!important;
}
/* Different rule specificity intentionally overrides the generic margin:0 !important. */
body.rubik-hub-page .rubik-overlay-cube-view .rubik-studio-move-strip .rubik-studio-timeline > .rubik-studio-token:first-child{
 margin-left:auto!important;
}
body.rubik-hub-page .rubik-overlay-cube-view .rubik-studio-move-strip .rubik-studio-timeline > .rubik-studio-token:last-child{
 margin-right:auto!important;
}
@media(max-width:740px){
 body.rubik-hub-page .rubik-overlay-cube-view .rubik-studio-move-strip .rubik-studio-token{
  flex-basis:32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;
  font-size:clamp(12px,3vw,16px)!important;
 }
 body.rubik-hub-page .rubik-studio-custom-panel{padding:11px 12px}
}
