/* RysUpTwin web build: layout for an auto-sized iframe (no viewport-height rules), the step rail,
   the live plugin stage beside the orb, and the desktop-only card. Loaded after the app's own styles. */
html,body{min-height:0}
body{background-attachment:scroll}
.app{min-height:760px;padding-block:70px 130px}
body[data-step=stC] .app{height:auto;min-height:760px;overflow:visible;padding-block:70px 36px}
body[data-step=stC] #orbBtn{width:320px}
.rack{max-height:none}
.backbtn{top:58px}

/* status line: errors only */
.say{min-height:28px;margin-top:16px}
.say.err{color:#ff7a7a;font-size:14px}
#stC .note,#tuningStopHint,.savehint:empty{display:none!important}
#stR .selhead{display:none}

/* step rail: the top bar spans the frame, steps centred */
.top{align-items:center;left:50%;right:auto;width:min(1260px,calc(100vw - 48px));transform:translateX(-50%)}
.steps{position:absolute;left:50%;transform:translateX(-50%)}
/* drop slots: an arrow instead of a caption */
.slot{position:relative;padding-right:48px}
.slot::after{content:'';position:absolute;right:16px;top:50%;width:18px;height:18px;margin-top:-9px;opacity:.55;transition:opacity .3s,transform .35s var(--ease);
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6d6d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0L7.5 8.5M12 4l4.5 4.5M5 20h14'/%3E%3C/svg%3E")}
.slot:hover::after,.slot.over::after{opacity:1;transform:translateY(-2px)}
.slot.ok::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a6a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");opacity:1}
.slot span:empty{display:none}
.slot b{line-height:20px}
.steps{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:0;font:600 10.5px var(--mono);letter-spacing:.18em;text-transform:uppercase;color:#7c7c7c}
.steps li{display:flex;align-items:center;gap:9px;transition:color .5s var(--ease)}
.steps li+li::before{content:'';width:46px;height:1px;margin:0 14px;background:linear-gradient(90deg,rgba(255,255,255,.14),rgba(255,255,255,.14));transition:background .6s var(--ease)}
.steps li i{width:9px;height:9px;border-radius:50%;border:1.5px solid rgba(255,255,255,.28);flex:none;transition:all .5s var(--ease);position:relative}
.steps li.done{color:#b9b9b9}
.steps li.done i{background:#e8e8e8;border-color:#e8e8e8}
.steps li.done+li::before{background:linear-gradient(90deg,#e8e8e8,rgba(255,85,85,.9))}
.steps li.on{color:#f1f1f1}
.steps li.on i{background:#ff5555;border-color:#ff5555;box-shadow:0 0 0 4px rgba(255,85,85,.16),0 0 14px rgba(255,85,85,.7)}
.steps li.on i::after{content:'';position:absolute;inset:-6px;border-radius:50%;border:1px solid rgba(255,85,85,.55);animation:stepPulse 1.8s var(--ease) infinite}
@keyframes stepPulse{from{transform:scale(.6);opacity:1}to{transform:scale(1.7);opacity:0}}

/* the live plugin stage */
.twinstage{width:100%;display:none;--ts-view-h:470px}
body[data-step=stB] .twinstage,body[data-step=stC] .twinstage.has{display:block}
body[data-step=stB] .app{max-width:1320px;display:grid;grid-template-columns:300px minmax(0,1fr);grid-template-areas:"orb stage" "say stage" "tune stage";column-gap:34px;align-items:center;align-content:center;justify-content:stretch;padding-block:70px 40px}
body[data-step=stB] #orbBox{grid-area:orb;justify-self:center;align-self:end}
body[data-step=stB] #orbBtn{width:300px}
body[data-step=stB] #say{grid-area:say;align-self:start}
body[data-step=stB] #stB{grid-area:tune;align-self:start;max-width:300px;justify-self:center}
body[data-step=stB] .twinstage{grid-area:stage;min-width:0}
#stB .plog,#stB .pnote,#stB .buildlist{display:none}
#stB{width:300px}
#stB .pl{display:flex;justify-content:space-between;gap:12px;font:700 12px var(--display);letter-spacing:.08em;text-transform:uppercase;color:var(--ink)}
#stB .pl #pPct{font-variant-numeric:tabular-nums;color:var(--label)}
#stB .pbar{margin-top:10px}
.twphases{list-style:none;margin:20px 0 6px;padding:0;display:grid;gap:9px}
.twphases li{display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:10px;font:600 13px var(--display);color:var(--label);opacity:.55;transition:opacity .35s,color .35s}
.twphases li i{width:10px;height:10px;border-radius:50%;border:1.5px solid currentColor;justify-self:center;box-sizing:border-box;transition:background .35s,border-color .35s,transform .35s}
.twphases li b{font:500 12px var(--mono);font-variant-numeric:tabular-nums;color:var(--label)}
.twphases li.now{opacity:1;color:var(--ink)}
.twphases li.now i{border-color:#e5484d;background:#e5484d;box-shadow:0 0 0 0 rgba(229,72,77,.55);animation:twpulse 1.4s ease-out infinite}
.twphases li.done{opacity:.85}
.twphases li.done i{border-color:transparent;background:var(--ink);transform:scale(.8)}
@keyframes twpulse{0%{box-shadow:0 0 0 0 rgba(229,72,77,.55)}100%{box-shadow:0 0 0 10px rgba(229,72,77,0)}}
@media(prefers-reduced-motion:reduce){.twphases li.now i{animation:none}}
#stB .tuningstop{margin-top:4px}
#stB .tuningstop .link{margin-top:0;border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:8px 16px;color:var(--ink);font:600 12px var(--display);letter-spacing:.04em}
#stB .tuningstop .link:hover{border-color:rgba(255,255,255,.6)}
@media(max-width:1180px){
  body[data-step=stB] .app{grid-template-columns:minmax(0,1fr);grid-template-areas:"orb" "say" "tune" "stage";max-width:1000px}
  body[data-step=stB] #orbBtn{width:220px}
  body[data-step=stB] .twinstage{margin-top:10px}
}
/* result: the stage tours the final settings under the score and rack */
body[data-step=stC] .app{grid-template-areas:"orb chain" "say chain" "left chain" "rstage rstage" "tray tray";grid-template-rows:auto auto auto auto auto;max-width:1120px}
body[data-step=stC] .twinstage{grid-area:rstage;margin-top:30px;--ts-view-h:430px}
@media(max-width:860px){body[data-step=stC] .app{grid-template-areas:"orb" "say" "left" "chain" "rstage" "tray"}}

/* web result actions */
#hubLink{text-decoration:none}
#hubLink[hidden]{display:none}
.subbig{text-decoration:none;display:flex;align-items:center;justify-content:center}

/* search results: a thin loading bar instead of narration */
.ylist.loading::before{content:'';display:block;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#ff5555,transparent);background-size:40% 100%;background-repeat:no-repeat;animation:yload 1.1s linear infinite}
@keyframes yload{from{background-position:-40% 0}to{background-position:140% 0}}
.yrow img{width:40px;height:40px}

/* desktop only */
.mob[hidden]{display:none}
body.mobile .stage,body.mobile .tray,body.mobile #say,body.mobile .steps,body.mobile .backbtn,body.mobile .twinstage{display:none!important}
body.mobile .app{min-height:0;padding-block:56px 40px}
body.mobile #orbBtn{width:min(240px,70vw);pointer-events:none}
.mob{order:9;margin-top:22px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.mob b{font:600 13px var(--mono);letter-spacing:.18em;text-transform:uppercase;color:var(--label)}
.mob a{display:inline-block;padding:13px 22px;border-radius:12px;background:#f2f2f2;color:#171717;font:600 15px var(--display);text-decoration:none}

/* reference kind question: the app's full-frame split, without the caption row */
.ask{grid-template-rows:1fr}
body.asking .top{position:absolute;z-index:40}
/* result: spare height goes below the actions, not between the orb and them */
body[data-step=stC] .app{grid-template-rows:auto auto 1fr auto auto}
body[data-step=stC] .resleft{align-self:start}

.twwait{margin:16px 0 0;font:500 12px/1.5 var(--display);color:var(--label);max-width:300px}
.twtune{display:block;position:relative;margin:7px auto 2px;padding:6px 10px;border-radius:10px;background:rgba(229,72,77,.14);border:1px solid rgba(229,72,77,.45);color:var(--ink);font:500 11px/1.35 var(--display);max-width:220px;text-align:center}
.twtune::before{content:"";position:absolute;top:-6px;left:50%;margin-left:-6px;border:6px solid transparent;border-top:0;border-bottom-color:rgba(229,72,77,.45)}
.twtune b{color:#e5484d;font-weight:700;margin-right:4px;text-transform:uppercase;letter-spacing:.06em;font-size:10px}
/* RysUpTune ships powered off: grey status dot, no dot inside the reminder */
.twtune b::before,.twtune b::after{content:none!important;display:none!important}
.rt:has(.twtune)>b::before{background:#6d6d6d!important;box-shadow:none!important}
