/* Original S-center update layout. Device/session ownership stays in upgrade-ui.js. */
body.scyrox-upgrade-mode #welcome,body.scyrox-upgrade-mode #workbench{display:none!important}
#upgrade-view[hidden]{display:none!important}
.scyrox-upgrade{--fw-lime:#daff00;position:relative;width:100%;height:100%;min-height:0;overflow:auto;color:#fff;background:#050505 url('/system/bg-s.webp') center/100% 100% no-repeat;font:16px/1.5 "DM Sans",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;box-sizing:border-box;padding:0 0 20px}
.scyrox-upgrade *{box-sizing:border-box}.scyrox-upgrade button,.scyrox-upgrade input{font:inherit}.scyrox-upgrade button{cursor:pointer}.scyrox-upgrade button:disabled{cursor:not-allowed;opacity:.45}.scyrox-upgrade button:focus-visible,.scyrox-upgrade input:focus-visible,.scyrox-upgrade summary:focus-visible{outline:2px solid var(--fw-lime);outline-offset:4px}
.scyrox-upgrade .fw-heading{position:absolute;inset:0 0 auto;height:100px;display:block;border:0;padding:0;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;pointer-events:none;z-index:2}
.fw-heading .fw-logo{position:absolute;left:30px;top:30px;width:auto;height:45px;object-fit:contain;pointer-events:auto}.fw-heading .fw-close{position:absolute;right:50px;top:40px;width:40px;height:40px;display:grid;place-items:center;border:0;background:none;color:#fff;opacity:.3;font-size:52px;font-weight:200;line-height:32px;padding:0;pointer-events:auto}.fw-heading .fw-close:hover:enabled{opacity:1}
.fw-reference-main{position:relative;width:65%;max-width:none;min-width:0;margin:0 auto;padding-top:40px}.fw-reference-main>h1{margin:0 0 20px;text-align:center;font-size:24px;font-weight:400;line-height:32px}.fw-reference-main>h1 button{padding:0;background:none;border:0;font:inherit;color:inherit}.fw-reference-main>h1 button:disabled{opacity:1}.fw-release-description{font-size:20px;line-height:28px;min-height:28px;margin:0 0 20px;text-align:center;white-space:pre-line;overflow-wrap:anywhere}.fw-notice{min-height:80px;display:flex;align-items:flex-end;justify-content:center;margin:0 0 80px;padding-top:30px}.fw-order{font-size:16px;text-align:center;color:#f00;line-height:28px;margin:0}
.fw-columns{display:flex;justify-content:space-between;gap:24px;align-items:start}.fw-card{position:relative;width:597px;max-width:calc((100% - 24px)/2);height:620px;min-height:620px;border:1px solid #ffffff40;border-radius:20px;padding:30px 20px 20px;background:transparent;text-align:center}.fw-number{position:absolute;top:25px;left:20px;width:35px;height:35px;background:var(--fw-lime);color:#232323;border-radius:50%;font-size:26px;line-height:35px;text-align:center}.fw-card-current{position:absolute;right:15px;top:25px;font-size:16px;font-weight:400}.fw-card-current strong{font:inherit}.fw-card h2{margin:0 0 20px;font-size:16px;line-height:24px;font-weight:400}.fw-read{display:flex;align-items:center;justify-content:center;width:max-content;height:32px;min-height:32px;margin:0 auto;padding:8px 15px;border:1px solid #409eff;border-radius:20px;background:#409eff;color:#fff;font-size:14px!important;line-height:14px;white-space:nowrap;transition:background-color .1s,border-color .1s}.fw-read img{display:block;width:auto;height:auto;max-height:17px;margin-right:10px}.fw-read:hover:enabled{background:var(--el-color-primary-light-3,#3375b9);border-color:var(--el-color-primary-light-3,#3375b9)}.fw-read:active:enabled{background:#337ecc;border-color:#337ecc}
.fw-instruction{display:flex;align-items:center;justify-content:center;gap:0;margin:20px 0;font-size:18px;line-height:27px;min-height:27px}.fw-instruction i{display:block;flex:0 0 20px;min-width:20px;width:20px;height:20px;margin-right:10px;border-radius:50%;background:var(--fw-lime);color:#232323;font-size:14px;line-height:20px;font-style:normal;text-align:center}.fw-instruction>span{min-width:0}.fw-connection-image{display:block;width:auto;height:auto;max-width:100%;margin:0 auto}.fw-inline-progress{width:90%;height:10px;border-radius:100px;overflow:hidden;background:#363637;margin:20px auto 10px}.fw-inline-progress i{display:block;width:0;height:100%;background:#409eff}.fw-caution{width:90%;margin:0 auto;text-align:left;font-size:14px;line-height:21px;color:#fff}.fw-trust-step{margin-top:60px}.fw-trust-step .fw-instruction{align-items:baseline}.fw-trust-step>img{display:block;margin:0 auto;max-width:100%;width:auto;height:auto}.fw-blue{color:#0090ff}
/* Validated online update actions and progress stay below the reference guide. */
.fw-operation{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;row-gap:4px;align-items:center;margin:18px 0 0;padding:0;background:none;border:0}.fw-progress-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;min-width:0}.fw-progress-heading strong{font-size:12px;line-height:20px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ced3b7}.fw-progress-heading b{font-size:18px;line-height:24px;font-weight:400;color:var(--fw-lime);font-variant-numeric:tabular-nums}.fw-operation progress{appearance:none;width:100%;height:10px;background:#363637;border:0;border-radius:100px;overflow:hidden;grid-column:1;grid-row:2}.fw-operation progress::-webkit-progress-bar{background:#363637;border-radius:100px}.fw-operation progress::-webkit-progress-value{background:#409eff;border-radius:100px;transition:width .15s linear}.fw-operation progress::-moz-progress-bar{background:#409eff;border-radius:100px}.fw-actions{grid-column:2;grid-row:1/3;display:flex;align-items:center;gap:10px}.fw-actions button{min-height:32px;padding:8px 18px;line-height:14px;font-size:14px;border-radius:20px;border:1px solid #67c23a;background:#67c23a;color:#fff;white-space:nowrap}.fw-actions #fw-start{min-width:150px}.fw-actions button:hover:enabled{background:#95d475;border-color:#95d475}.fw-actions #fw-stop{min-width:0;padding:8px 12px;color:#ccc;background:transparent;border-color:#ffffff40}.fw-actions #fw-stop:hover:enabled{color:#fff;border-color:#fff}.fw-actions #fw-mouse-only{background:var(--fw-lime);border-color:var(--fw-lime);color:#232323}#fw-action-reason{grid-column:1/-1;font-size:12px;line-height:18px;color:#a9ae95;margin:4px 0 0}.fw-failed #fw-stage,.fw-failed #fw-action-reason{color:#ff9270}.fw-complete #fw-stage{color:var(--fw-lime)}
.fw-log{margin-top:10px;color:#a1a68c;font-size:12px;line-height:18px}.fw-log>summary{cursor:pointer;width:max-content;color:#b1b69c;user-select:none}.fw-log>summary:hover{color:var(--fw-lime)}.fw-log textarea{display:block;margin-top:10px;width:100%;height:150px;resize:vertical;background:#0a0d05;color:#ccd3b2;border:1px solid #485034;border-radius:8px;padding:12px;font:11px/1.6 Consolas,"Microsoft YaHei",monospace}
/* Keep the original relative positions on compact windows without changing image ratios. */
#scyrox-stage.settings-compact .fw-reference-main{width:78%}#scyrox-stage.settings-compact .fw-card{height:620px}#scyrox-stage.settings-compact .fw-instruction{font-size:16px}#scyrox-stage.settings-compact .fw-trust-step{margin-top:52px}
.scyrox-upgrade:has(#fw-progress:not([value="0"])) .fw-inline-progress i{width:30%;animation:fw-reference-progress 1.5s linear infinite}.fw-complete .fw-inline-progress i{width:100%!important;background:#67c23a;animation:none!important}.fw-failed .fw-inline-progress i{width:0;animation:none}@keyframes fw-reference-progress{from{transform:translateX(-100%)}to{transform:translateX(335%)}}

/* Wireless uses one shared operation; the original two-column guide stays wired-only. */
#fw-wireless-summary[hidden],#fw-wired-guide[hidden]{display:none!important}
.fw-wireless-summary{padding:38px 46px;border:1px solid #ffffff40;border-radius:20px;background:#ffffff04;text-align:center}
.fw-wireless-summary h2{margin:0 0 10px;font-size:24px;line-height:32px;font-weight:500;color:#fff}.fw-wireless-order{margin:0 0 30px;font-size:16px;line-height:24px;color:var(--fw-lime)}
.fw-wireless-versions{max-width:720px;margin:0 auto 26px;text-align:left}.fw-wireless-versions>div{display:grid;grid-template-columns:1.1fr 1fr 1fr;align-items:center;gap:24px;min-height:66px;padding:14px 20px;border-bottom:1px solid #ffffff20}.fw-wireless-versions .fw-wireless-version-head{min-height:40px;padding-top:0;padding-bottom:10px;font-size:13px;color:#b7bea0}.fw-wireless-versions strong{font-weight:400}.fw-wireless-versions span[id]{font-size:22px;line-height:30px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.fw-wireless-versions span[id$="-target"]{color:var(--fw-lime)}
.fw-wireless-link{min-height:24px;font-size:14px;line-height:24px;color:#ffb789;margin:0 0 16px}.fw-wireless-link.connected{color:#b4d99b}.fw-wireless-read{margin-bottom:18px}.fw-wireless-hint{font-size:12px;line-height:20px;color:#b1b79f;margin:0}.fw-wireless-mode .fw-notice{min-height:48px;margin-bottom:34px;padding-top:10px}.fw-wireless-mode .fw-reference-main{max-width:1248px}.fw-wireless-mode .fw-actions #fw-start{background:var(--fw-lime);border-color:var(--fw-lime);color:#1b2000;font-weight:500;min-width:170px;min-height:40px}.fw-wireless-mode .fw-actions #fw-start:hover:enabled{background:#e5ff4d;border-color:#e5ff4d}.fw-wireless-mode .fw-operation{margin-top:24px;min-height:66px}
#scyrox-stage.settings-compact .fw-wireless-summary{padding:32px 24px}#scyrox-stage.settings-compact .fw-wireless-versions>div{gap:16px}

/* The home toolbar owns the only inline progress surface. Keep the shared form
   mounted for the upgrade state machine, but never add a second card-sized panel. */
[data-home-upgrade-host]:empty{display:none}
.scyrox-upgrade.fw-inline{display:none!important}
body.scyrox-inline-upgrade #welcome-connect,body.scyrox-inline-upgrade [data-enter-home-device],body.scyrox-inline-upgrade [data-remove-home-card],body.scyrox-inline-upgrade [data-home-upgrade]{cursor:wait}
.fw-operation [data-upgrade-followup]{grid-column:1/-1;margin:6px 0 0;color:var(--fw-lime);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
