/* The launcher mockup, in the Builder's "Slate, frosted" look (tokens.css). The window is the 960x600 stage. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 var(--fs-base)/1.45 var(--font-ui);
  color: var(--Ink);
  /* a desktop behind the window, so the frosted glass has something to frost */
  background:
    radial-gradient(900px 520px at 18% 12%, #26325f 0, transparent 62%),
    radial-gradient(760px 520px at 86% 82%, #1c3a33 0, transparent 60%),
    radial-gradient(500px 400px at 60% 40%, #2a2140 0, transparent 70%),
    #0D0F12;
  background-attachment: fixed;
  font-feature-settings: "cv11", "ss01";
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
svg.ic { width: 18px; height: 18px; flex: none; }
.sr, .dump input, .chan input, .tick input, .seg-item input {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0;
}
:focus-visible { outline: 2px solid var(--BrandHover); outline-offset: 2px; }
h1[tabindex="-1"]:focus { outline: none; }

/* ------------------------------------------------------------ the bench around the window */

.bench { max-width: 992px; margin: 0 auto; padding: 18px 16px 6px; }
.bench-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.bench-title { margin: 0; font-size: 16px; font-weight: 700; }
.bench-sub { font-size: var(--fs-note); color: var(--InkSoft); margin-top: 2px; }
.bench-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-note); color: var(--InkSoft); cursor: pointer; }
.bench-toggle input { accent-color: var(--Bad); width: 16px; height: 16px; margin: 0; }
.switcher { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding: 10px 12px;
  background: var(--Glass); border: 1px solid var(--GlassLine); border-radius: var(--r-card); }
.sw-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sw-label { font-size: var(--fs-label); font-weight: 600; color: var(--InkFaintText); margin-right: 4px; }
.switcher button { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--chip-line); background: transparent;
  color: var(--InkSoft); font-size: 12px; font-weight: 600; }
.switcher button:hover { background: var(--GlassHover); color: var(--Ink); }
.switcher button.on { background: var(--BrandSoft); border-color: var(--Brand); color: var(--BrandInk); }

.desk { padding: 48px 16px 56px; overflow-x: auto; }
.caption { width: 960px; max-width: 100%; margin: 14px auto 0; font-size: var(--fs-note); color: var(--InkSoft); }
.caption strong { color: var(--BrandInk); font-weight: 600; margin-right: 6px; }

/* ------------------------------------------------------------ the window */

.window {
  position: relative; width: 960px; height: 600px; margin: 0 auto; flex: none;
  border-radius: var(--r-window); overflow: hidden;
  /* App.xaml's window gradient over a stand-in for the acrylic (Slate where there is none) */
  background:
    linear-gradient(180deg, var(--window-top), var(--window-bottom)),
    linear-gradient(180deg, #181B20EB, #121418F0);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid var(--GlassLine);
  box-shadow: 0 30px 80px #00000080, 0 2px 0 #FFFFFF08 inset;
}
.titlebar { position: absolute; inset: 0 0 auto 0; height: var(--h-caption); display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; padding-left: 28px; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { filter: drop-shadow(0 2px 3px #00000080); }
.brand-name { font-size: 15px; font-weight: 700; }
.brand .chip { margin-left: 2px; }
.brand { grid-column: 1; }
.steps { grid-column: 2; }
/* the window's own buttons, flush in the top-right corner (the corner's radius clips the close button's hover) */
.captions { grid-column: 3; justify-self: end; align-self: start; display: flex; margin: 0; }
.caption-btn { width: 46px; height: 40px; border: 0; border-radius: 0; background: transparent; color: var(--caption-ink);
  display: grid; place-items: center; }
.caption-btn:hover { background: var(--GlassHover); color: var(--Ink); }
.caption-btn:focus-visible { outline-offset: -3px; }
.caption-btn[data-act="close"]:hover { background: var(--Bad); color: var(--Page); }
.caption-btn svg.ic { width: 20px; height: 20px; }
.caption-btn[data-act="open-settings"] svg.ic { width: 17px; height: 17px; }

/* the steps pill (MainWindow.xaml's StepPill) */
.steps { display: flex; gap: 2px; margin: 0; padding: 4px; list-style: none; height: 40px; border-radius: 20px;
  background: #FFFFFF0B; border: 1px solid var(--GlassLine); }
.steps li { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 4px; border-radius: 15px;
  font-size: var(--fs-note); font-weight: 600; color: var(--InkSoft); }
.step-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  background: #FFFFFF0F; color: var(--InkSoft); }
.step-num svg.ic { width: 13px; height: 13px; }
.steps li.now { background: var(--BrandSoft); color: var(--BrandInk); }
.steps li.now .step-num { background: var(--Brand); color: #fff; }
.steps li.done { color: var(--Ink); }
.steps li.done .step-num { background: var(--GoSoft); color: var(--Go); }

.screen { position: absolute; inset: var(--h-caption) 0 0 0; padding: 16px 64px 34px; display: flex; flex-direction: column; }

/* ------------------------------------------------------------ type and the shared pieces (App.xaml's styles) */

.heading { margin: 0; font-size: var(--fs-heading); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.sub { color: var(--InkSoft); margin-top: 6px; }
.center { text-align: center; }
.note { font-size: var(--fs-note); color: var(--InkSoft); }
.note.small, .small { font-size: 12px; }
.faint { font-size: var(--fs-faint); color: var(--InkFaintText); }
.hint { font-size: 12px; color: var(--InkFaintText); margin-top: 6px; }
.label { margin: 24px 0 10px; font-size: var(--fs-label); font-weight: 600; color: var(--InkSoft); letter-spacing: 0.04em; }
.card { background: var(--Glass); border: 1px solid var(--GlassLine); border-radius: var(--r-card); }
.grow { flex: 1; }
.sep { width: 3px; height: 3px; border-radius: 50%; background: var(--InkFaint); margin: 0 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h-button); padding: 0 18px;
  border-radius: var(--r-button); border: 1px solid transparent; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color .12s, border-color .12s; }
.btn svg.ic { width: 16px; height: 16px; }
.btn-quiet { background: var(--quiet-fill); border-color: var(--quiet-line); color: var(--Ink); }
.btn-quiet:hover { background: var(--GlassHover); border-color: var(--GlassLineStrong); }
.btn-quiet:focus-visible { border-color: var(--BrandHover); }
.btn-primary { background: var(--Brand); border-color: var(--primary-line); color: #fff; padding: 0 20px;
  box-shadow: 0 6px 22px #3D63E68C; }
.btn-primary:hover { background: var(--BrandHover); }
.btn-primary:focus-visible { border-color: var(--primary-focus); }
.btn-primary:disabled { background: var(--disabled-fill); color: var(--InkFaint); box-shadow: none; cursor: default; }
.btn-go { height: var(--h-go); padding: 0 34px; border-radius: 10px; background: var(--Go); border-color: var(--go-line);
  color: var(--GoInk); font-size: 16px; font-weight: 700; box-shadow: 0 8px 30px #5FB08A80; }
.btn-go:hover { background: var(--GoHover); }
.btn-go svg.ic { width: 18px; height: 18px; }
.btn-tall { height: var(--h-go); padding: 0 26px; }
.btn-small { height: 32px; padding: 0 12px; font-size: var(--fs-note); border-radius: 7px; }
.btn-small svg.ic { width: 14px; height: 14px; }
.btn-primary.btn-small { padding: 0 12px; box-shadow: 0 4px 14px #3D63E666; }
.btn-icon { width: 32px; height: 32px; padding: 0; background: transparent; color: var(--InkSoft); border-radius: 7px; }
.btn-icon:hover { background: var(--GlassHover); color: var(--Ink); }
.btn-icon-bad:hover { background: var(--BadSoft); color: var(--Bad); }
.btn-bad { background: var(--Bad); border-color: var(--primary-line); color: var(--Page); }
.btn-bad:hover { background: #EC8B80; }

.link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--BrandInk);
  font-size: var(--fs-note); font-weight: 600; border-radius: 3px; }
.link:hover { color: #fff; }
.link svg.ic { width: 14px; height: 14px; }
.link-soft { color: var(--InkSoft); }
.link-soft:hover { color: var(--Ink); }
.link.small { font-size: 12px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: var(--h-chip); padding: 0 10px; border-radius: 13px;
  background: var(--chip-fill); border: 1px solid var(--chip-line); font-size: 12px; font-weight: 600; color: var(--InkSoft);
  white-space: nowrap; flex: none; }
.chip svg.ic-chip { width: 13px; height: 13px; }
.chip-go { color: var(--Go); background: var(--GoSoft); border-color: #5FB08A40; }
.chip-warn { color: var(--Warn); background: var(--WarnSoft); border-color: #E2B86B38; }
.chip-bad { color: var(--Bad); background: var(--BadSoft); border-color: #E2776B40; }
.chip-quiet { height: 22px; padding: 0 8px; border-radius: 11px; font-weight: 500; }

/* a build's channel: release (green), rc (amber), nightly (blue) */
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 12px;
  font-weight: 600; letter-spacing: 0.01em; flex: none; }
.tag-release { color: var(--Go); background: var(--GoSoft); }
.tag-rc { color: var(--Warn); background: var(--WarnSoft); }
.tag-nightly { color: var(--BrandInk); background: var(--BrandSoft); }

.bar { height: 6px; border-radius: 3px; background: var(--bar-track); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: var(--Brand); transition: width .1s linear; }
.bar-go > span { background: var(--Go); }

.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #FFFFFF26;
  border-top-color: var(--BrandHover); animation: spin .8s linear infinite; flex: none; }
.chip .spin { width: 12px; height: 12px; }
.ring { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--InkFaint); }
@keyframes spin { to { transform: rotate(360deg); } }

.halo { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.halo::before { content: ""; position: absolute; inset: 8px; border-radius: 50%;
  background: radial-gradient(circle, #3D63E666 0, #3D63E600 68%); }
.halo img { position: relative; filter: drop-shadow(0 12px 14px #00000099); }
.halo-small { width: 140px; height: 140px; }

/* the page layout of the wizard, settings and problem: the body scrolls, the buttons stay */
.page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.page-body { flex: 1; min-height: 0; overflow: auto; margin: 0 -8px; padding: 0 8px 4px; }
.page-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 14px; }
.foot-left { display: flex; align-items: center; min-width: 0; }
.foot-buttons { display: flex; gap: 10px; flex: none; }
.ok-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--Go); }
.ok-hint svg.ic { width: 14px; height: 14px; }

.page-body::-webkit-scrollbar, .log::-webkit-scrollbar, .vlist::-webkit-scrollbar, .licence::-webkit-scrollbar { width: 8px; height: 8px; }
.page-body::-webkit-scrollbar-thumb, .log::-webkit-scrollbar-thumb, .vlist::-webkit-scrollbar-thumb, .licence::-webkit-scrollbar-thumb {
  background: #FFFFFF1F; border-radius: 4px; }
* { scrollbar-color: #FFFFFF26 transparent; scrollbar-width: thin; }

/* ------------------------------------------------------------ home */

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty .heading { margin-top: 2px; }
.empty .sub { max-width: 470px; }
.empty .btn-primary { margin-top: 26px; min-width: 190px; font-size: 16px; }
.empty-channel { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: var(--fs-note); color: var(--InkSoft); }
.empty-channel strong { color: var(--Ink); font-weight: 600; }
.empty-channel .link { margin-left: 4px; }
.empty .faint { margin-top: 8px; }

.notice { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; margin-bottom: 6px; border-radius: var(--r-card);
  border: 1px solid #5FB08A4D; background: linear-gradient(180deg, #5FB08A1F, #5FB08A0A); flex: none; }
.notice-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--GoSoft); color: var(--Go); flex: none; }
.notice-icon svg.ic { width: 16px; height: 16px; }
.notice-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notice-text strong { font-weight: 600; }
.notice-text span { font-size: var(--fs-note); color: var(--InkSoft); }

.home { flex: 1; min-height: 0; display: grid; grid-template-columns: 300px 1fr; gap: 44px; }
.hero { align-self: center; padding-bottom: 12px; }
.hero .label { margin: 0 0 4px; }
.title { margin: 0; font-size: var(--fs-title); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }
.hero-version { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.hero-v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero .note { margin-top: 4px; }
.hero-update { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: var(--fs-note); color: var(--BrandInk); }
.hero-update svg.ic { width: 15px; height: 15px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; }

.versions { min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.versions-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.versions-head .label { margin: 0; }
.vlist { overflow: auto; max-height: 370px; flex: none; }
.versions > .faint { margin-top: 10px; }

.vrow { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.vrow + .vrow { border-top: 1px solid var(--GlassLine); }
.vrow-main { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 13px 16px;
  border: 0; background: transparent; text-align: left; border-radius: 0; }
.vrow:hover { background: var(--row-hover); }
.vrow-main:focus-visible { outline-offset: -2px; border-radius: 8px; }
.vrow.selected { background: #3D63E614; }
.vrow.selected::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 2px 2px 0; background: var(--Brand); }
.vrow-mark { display: grid; place-items: center; color: var(--Warn); }
.vrow-mark svg.ic { width: 17px; height: 17px; }
.vrow-text { display: flex; flex-direction: column; min-width: 0; }
.vrow-version { font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow-meta { font-size: 12px; color: var(--InkFaintText); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow-up { display: inline-flex; align-items: center; gap: 4px; color: var(--BrandInk); font-weight: 500; }
.vrow-up svg.ic { width: 12px; height: 12px; }
.vrow-tags { display: flex; align-items: center; gap: 6px; }
.vrow-update { margin-right: 14px; }
.vrow-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 12px 12px 50px; }
.vrow-defnote { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.vrow-defnote svg.ic { width: 13px; height: 13px; color: var(--Warn); }

/* ------------------------------------------------------------ wizard 1: game files */

.tools { display: grid; grid-template-columns: 34px 1fr 190px; align-items: center; gap: 14px; padding: 10px 16px; margin-top: 16px; }
.screen[data-screen="wizard1"] .label { margin-top: 18px; }
.tools-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--BrandSoft); color: var(--info-ink); }
.tools-icon.ok { background: var(--GoSoft); color: var(--Go); }
.tools-icon svg.ic { width: 17px; height: 17px; }
.tools-text { display: flex; flex-direction: column; min-width: 0; }
.tools-text strong { font-weight: 600; }
.tools-text .note { font-size: 12px; font-variant-numeric: tabular-nums; }

.dumps { overflow: hidden; }
.dump { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 14px; padding: 8px 16px; cursor: pointer; }
.dump + .dump { border-top: 1px solid var(--GlassLine); }
.dump:hover { background: var(--row-hover); }
.dump.dim { cursor: default; }
.dump.dim:hover { background: transparent; }
.dump.dim .dump-name { color: var(--InkSoft); font-weight: 500; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--InkFaint); display: grid; place-items: center; }
.radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--Brand); transform: scale(0); transition: transform .12s; }
input:checked + .radio { border-color: var(--Brand); }
input:checked + .radio::after { transform: scale(1); }
input:focus-visible + .radio { outline: 2px solid var(--BrandHover); outline-offset: 3px; }
input:disabled + .radio { opacity: .45; }
.dump-text { display: flex; flex-direction: column; min-width: 0; }
.dump-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dump-where { font-size: 12px; color: var(--InkFaintText); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.other-ways { margin-top: 10px; }
.other-ways .link { display: inline; }

/* ------------------------------------------------------------ wizard 2: settings */

.form { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 0 20px; align-items: start; }
.form .label { margin-top: 12px; }
.f-up { margin-top: 16px; }
.f-up { grid-column: 1 / -1; }
.f-install { grid-column: 1 / 3; }
.f-prep { padding-top: 50px; }
.f-lang .select select, .f-mem .select select, .f-cpu .select select { text-overflow: ellipsis; }

/* the upscalers: the most visible choice of step 2 */
.upscalers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upscaler { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 11px 16px 10px; cursor: pointer;
  border-radius: var(--r-card); background: var(--Glass); border: 1px solid var(--GlassLine); transition: background-color .12s, border-color .12s; }
.upscaler input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upscaler:hover { background: var(--GlassHover); border-color: var(--GlassLineStrong); }
.upscaler.on { background: linear-gradient(180deg, #3D63E62E, #3D63E612); border-color: var(--Brand); }
.upscaler:has(input:focus-visible) { outline: 2px solid var(--BrandHover); outline-offset: 2px; }
.up-top { display: flex; align-items: center; gap: 10px; }
.up-name { font-size: 16px; font-weight: 700; }
.up-match { color: var(--Ink); }
.switch { display: block; position: relative; margin-left: auto; width: 38px; height: 22px; border-radius: 11px; background: #FFFFFF1F;
  border: 1px solid var(--GlassLineStrong); flex: none; transition: background-color .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--InkSoft);
  transition: transform .15s, background-color .15s; }
.upscaler.on .switch { background: var(--Brand); border-color: var(--BrandHover); }
.upscaler.on .switch::after { transform: translateX(16px); background: #fff; }
.up-about { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; font-size: var(--fs-note); color: var(--InkSoft); }
.up-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--InkFaintText); }
.up-status.ok { color: var(--Go); }
.up-status svg.ic { width: 13px; height: 13px; }
.path-row { display: flex; gap: 10px; }
.path { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--Glass); border: 1px solid var(--GlassLine);
  font-family: var(--font-mono); font-size: 12px; color: var(--InkSoft); }
.path:focus { outline: none; border-color: var(--Brand); box-shadow: 0 0 0 1px var(--Brand); color: var(--Ink); }
.work-note { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.work-note .note { font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.select { position: relative; display: block; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 1.4px solid var(--InkSoft); border-bottom: 1.4px solid var(--InkSoft); transform: rotate(45deg); pointer-events: none; }
.select select { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; padding: 0 32px 0 12px; border-radius: 8px;
  background: var(--quiet-fill); border: 1px solid var(--quiet-line); font-size: 13px; color: var(--Ink); cursor: pointer; }
.select select:hover { background-color: var(--GlassHover); }
.select select:focus-visible { border-color: var(--Brand); }
.select option { background: var(--Raised); color: var(--Ink); }

.tick { position: relative; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.tick-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--tick-line); flex: none; display: grid; place-items: center; margin-top: 1px; }
.tick-box svg.ic { width: 14px; height: 14px; color: #fff; opacity: 0; }
.tick input:checked + .tick-box { background: var(--Brand); border-color: var(--Brand); }
.tick input:checked + .tick-box svg.ic { opacity: 1; }
.tick input:focus-visible + .tick-box { outline: 2px solid var(--BrandHover); outline-offset: 2px; }
.tick-text { display: flex; flex-direction: column; gap: 2px; }
.tick-label { font-size: var(--fs-note); color: var(--Ink); font-weight: 500; }
.tick-note { font-size: 12px; color: var(--InkFaintText); }

.space { display: flex; align-items: center; gap: 10px; }
.space .bar { width: 140px; flex: none; }
.space .faint { margin-left: 8px; }

/* ------------------------------------------------------------ wizard 3: build */

.build-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.build-figure { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.pct { font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.build-figure .left { font-size: var(--fs-note); color: var(--InkSoft); margin-top: 6px; font-variant-numeric: tabular-nums; }
.overall { position: relative; height: 10px; margin: 18px 0 16px; border-radius: 5px; background: var(--bar-track); overflow: hidden; flex: none; }
.overall-fill { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: linear-gradient(90deg, var(--Brand), var(--BrandHover));
  transition: width .1s linear; overflow: hidden; }
.overall-fill::after { content: ""; position: absolute; inset: 0; width: 80px;
  background: linear-gradient(90deg, #7F9BFF00, #7F9BFF99, #7F9BFF00); animation: sweep 1.6s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-80px); } to { transform: translateX(900px); } }
.overall i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #14161ACC; }
.build-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.stages { list-style: none; margin: 0; padding: 4px 18px; }
.stage { display: grid; grid-template-columns: 22px 170px 1fr auto; align-items: center; gap: 12px; height: 41px; }
.stage + .stage { border-top: 1px solid var(--GlassLine); }
.stage-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.stage-ic svg.ic { width: 13px; height: 13px; }
.st-done .stage-ic { background: var(--GoSoft); color: var(--Go); }
.st-fail .stage-ic { background: var(--BadSoft); color: var(--Bad); }
.st-skip .stage-ic { color: var(--InkFaint); }
.stage-name { color: var(--InkSoft); }
.st-run .stage-name, .st-done .stage-name { color: var(--Ink); }
.st-run .stage-name { font-weight: 600; }
.st-wait .stage-name { color: var(--InkFaintText); }
.stage-detail { font-size: var(--fs-note); color: var(--InkSoft); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-time { font-size: var(--fs-note); font-variant-numeric: tabular-nums; color: var(--Ink); text-align: right; }
.stage-time .of { color: var(--InkFaintText); }
.log { flex: 1; min-height: 0; margin: 0; padding: 10px 12px; overflow: auto; border-radius: var(--r-card); border: 1px solid var(--GlassLine);
  background: #00000033; color: var(--InkSoft); font: 11px/1.6 var(--font-mono); white-space: pre; }
.log-small { flex: none; max-height: 110px; margin-top: 14px; }

/* ------------------------------------------------------------ ready, problem */

.ready { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ready-mark { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--GoSoft); color: var(--Go);
  box-shadow: 0 0 60px #5FB08A8C, 0 0 0 10px #5FB08A12; }
.ready-mark svg.ic { width: 36px; height: 36px; }
.ready .heading { margin-top: 26px; }
.ready-actions { display: flex; gap: 12px; margin-top: 28px; }
.ready-ticks { display: flex; gap: 22px; margin-top: 24px; }
.ready > .link { margin-top: 22px; }

.problem-card { margin: 22px 0 0; padding: 22px 24px; border-radius: var(--r-card); border: 1px solid #E2776B55;
  background: linear-gradient(180deg, #E2776B14, #E2776B00 70%); }
.problem-head { display: flex; align-items: center; gap: 12px; }
.problem-head strong { font-size: 16px; font-weight: 600; }
.problem-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--BadSoft); color: var(--Bad); }
.problem-icon svg.ic { width: 16px; height: 16px; }
.problem-card > p { margin-top: 12px; color: var(--InkSoft); max-width: 680px; }
.problem-steps { margin: 10px 0 0; padding-left: 20px; color: var(--InkSoft); }
.problem-steps li + li { margin-top: 4px; }
.problem-steps strong { color: var(--Ink); font-weight: 600; }

/* ------------------------------------------------------------ settings, the 2.x upgrade screen */

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg-item { position: relative; cursor: pointer; }
.seg-face { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 8px; background: var(--quiet-fill); border: 1px solid var(--quiet-line); }
.seg-item:hover .seg-face { background: var(--GlassHover); }
.seg-name { font-weight: 600; }
.seg-v { font-size: 12px; color: var(--InkFaintText); font-variant-numeric: tabular-nums; }
.seg-item input:checked + .seg-face { background: var(--BrandSoft); border-color: var(--Brand); }
.seg-item input:checked + .seg-face .seg-v { color: var(--BrandInk); }
.seg-item input:focus-visible + .seg-face { outline: 2px solid var(--BrandHover); outline-offset: 2px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-bottom: 22px; }

.upgrade { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-top: -14px; }
.upgrade .heading { margin-top: 0; }
.up-list { list-style: none; margin: 20px 0 22px; padding: 6px 18px; width: 540px; text-align: left; }
.up-list li { display: flex; gap: 10px; padding: 8px 0; font-size: var(--fs-note); color: var(--InkSoft); }
.up-list li + li { border-top: 1px solid var(--GlassLine); }
.up-list li strong { color: var(--Ink); font-weight: 600; }
.up-list svg.ic { width: 16px; height: 16px; color: var(--Go); margin-top: 1px; }
.up-actions { display: flex; gap: 10px; }
.upgrade > .link { margin-top: 16px; }
.up-progress { width: 360px; }
.up-progress .note { margin-top: 10px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ modals, toast, drop */

.overlay { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: #0A0B0E8C;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.overlay[hidden] { display: none; }
.modal { width: 440px; padding: 24px; border-radius: 12px; background: var(--Raised); border: 1px solid var(--LineStrong);
  box-shadow: 0 24px 60px #00000080; }
.modal.wide { width: 580px; }
.modal-title { margin: 0; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.modal .sub { font-size: 13px; overflow-wrap: anywhere; }
.modal .hint { margin-top: 12px; }
.modal-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.chans { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.chan { position: relative; display: grid; grid-template-columns: 18px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px;
  border-radius: 8px; border: 1px solid var(--GlassLine); background: var(--Glass); cursor: pointer; }
.chan:hover { background: var(--GlassHover); }
.chan:has(input:checked) { border-color: var(--Brand); background: #3D63E61F; }
.chan-text { display: flex; flex-direction: column; gap: 2px; }
.chan-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.chan-about { font-size: 12px; color: var(--InkSoft); }
.chan-v { display: flex; flex-direction: column; align-items: flex-end; }
.chan-version { font-size: 13px; font-variant-numeric: tabular-nums; }
.chan-has { font-size: 12px; color: var(--Go); }
.warn-box { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 10px 12px; border-radius: 8px;
  background: var(--WarnSoft); border: 1px solid #E2B86B33; font-size: 13px; }
.warn-box svg.ic { width: 18px; height: 18px; border-radius: 50%; background: #E2B86B33; color: var(--Warn); margin-top: 1px; }
.licence { margin-top: 14px; max-height: 170px; overflow: auto; padding: 12px 14px; border-radius: 8px; background: #00000026;
  border: 1px solid var(--GlassLine); font-size: 13px; color: var(--InkSoft); }
.licence p + p { margin-top: 8px; }
.licence strong { color: var(--Ink); }

.toast { position: absolute; left: 50%; bottom: 18px; z-index: 30; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 8px; background: var(--Raised); border: 1px solid var(--LineStrong); font-size: 13px;
  box-shadow: 0 12px 30px #00000066; transition: opacity .18s, transform .18s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.drop { position: absolute; inset: 10px; z-index: 25; display: grid; place-items: center; border-radius: 14px;
  border: 2px dashed var(--Brand); background: #3D63E61F; }
.drop[hidden] { display: none; }
.drop-box { font-size: 16px; font-weight: 600; color: var(--BrandInk); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ------------------------------------------------------------ the bench's platform switch */

.bench-tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.platform { display: inline-flex; padding: 3px; border-radius: 16px; border: 1px solid var(--chip-line); background: var(--Glass); }
.platform label { position: relative; cursor: pointer; }
.platform input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.platform span { display: block; height: 24px; line-height: 24px; padding: 0 12px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--InkSoft); }
.platform input:checked + span { background: var(--BrandSoft); color: var(--BrandInk); }
.platform input:focus-visible + span { outline: 2px solid var(--BrandHover); outline-offset: 1px; }

/* ------------------------------------------------------------ saves: the home, step 2 */

.hero-saves { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; white-space: nowrap; margin-top: 10px; font-size: var(--fs-note); color: var(--InkSoft); }
.hero-saves svg.ic { width: 15px; height: 15px; color: var(--InkFaintText); }
.hero-saves .link { margin-left: 2px; }
.ready-saves { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--fs-note); color: var(--Go); }
.ready-saves svg.ic { width: 15px; height: 15px; }

.f-saves { grid-column: 1 / -1; margin-top: 14px; }
.saves-move { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-radius: var(--r-card); background: var(--Glass); border: 1px solid var(--GlassLine); }
.saves-move.on { border-color: #5FB08A59; background: linear-gradient(180deg, #5FB08A14, #5FB08A05); }
.saves-move.shared { font-size: var(--fs-note); color: var(--InkSoft); align-items: flex-start; }
.saves-move.shared strong { color: var(--Ink); font-weight: 600; }
.saves-move.shared svg.ic { width: 17px; height: 17px; color: var(--Go); margin-top: 1px; }
.sm-switch { position: relative; display: block; cursor: pointer; flex: none; }
.sm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sm-switch .switch { margin: 0; }
.sm-switch input:checked + .switch { background: var(--Go); border-color: var(--GoHover); }
.sm-switch input:checked + .switch::after { transform: translateX(16px); background: #fff; }
.sm-switch input:focus-visible + .switch { outline: 2px solid var(--BrandHover); outline-offset: 2px; }
.sm-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-line { display: flex; align-items: center; gap: 8px; font-size: var(--fs-note); font-weight: 500; flex-wrap: wrap; }
.sm-line .select { display: inline-block; width: 250px; }
.sm-line .select select { height: 32px; }
.sm-text .hint { margin-top: 0; }

/* ------------------------------------------------------------ saves: the page */

.saves-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.saves-for { display: flex; align-items: center; gap: 10px; }
.saves-for .select { width: 230px; }
.saves-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 290px; gap: 24px; }
.saves-found, .saves-this { min-height: 0; display: flex; flex-direction: column; }
.saves-grid .label { margin: 18px 0 8px; }
.slist { list-style: none; margin: 0; padding: 0; overflow: auto; min-height: 0; }
.sgroup { padding: 8px 16px 4px; font-size: 12px; font-weight: 600; color: var(--InkFaintText); }
.sgroup + .srow { border-top: 0; }
.srow { display: flex; align-items: center; gap: 12px; padding: 5px 16px; border-top: 1px solid var(--GlassLine); }
.srow.this { background: #3D63E614; }
.srow.dim .srow-name { color: var(--InkFaintText); }
.srow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srow-name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-note); white-space: nowrap; }
.srow-where { font-size: 12px; color: var(--InkFaintText); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow-sum { font-size: 12px; color: var(--InkSoft); text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.chip-small { height: 20px; padding: 0 7px; font-size: 11px; border-radius: 10px; }
.this-card { padding: 6px 14px; }
.slots { list-style: none; margin: 0; padding: 0; }
.slots li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; font-size: var(--fs-note); }
.slots li + li { border-top: 1px solid var(--GlassLine); }
.slot-n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF0F; font-size: 11px; font-weight: 600; color: var(--InkSoft); }
.slot-place { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-saved { font-size: 12px; color: var(--InkFaintText); }
.slots-empty { padding: 8px 0; font-size: var(--fs-note); color: var(--InkSoft); }
.saves-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.saves-actions .btn { justify-content: flex-start; }
.btn-quiet:disabled { color: var(--InkFaint); cursor: default; background: transparent; }

/* the pick dialog */
.modal.pick { max-height: 560px; overflow: auto; }
.modal.pick .chans { gap: 6px; margin-top: 14px; }
.modal.pick .chan { padding: 7px 14px; }
.modal.pick .chan-about { font-size: 11.5px; }
.modal.pick .modal-buttons { margin-top: 16px; }
.chan.dim { cursor: default; }
.chan.dim .chan-name, .chan.dim .chan-about { color: var(--InkFaintText); }
.pick-label { margin: 16px 0 0; }
.pick-hint { margin-top: 2px; }

/* confirm and result */
.flow { display: grid; grid-template-columns: 1fr 32px 1fr; align-items: stretch; gap: 8px; margin-top: 18px; }
.flow-arrow { display: grid; place-items: center; color: var(--InkFaintText); }
.side { display: flex; flex-direction: column; padding: 12px 16px 8px; min-width: 0; }
.side.replaced { border-color: #E2776B40; }
.side-label { font-size: 12px; font-weight: 600; color: var(--InkFaintText); letter-spacing: 0.04em; }
.side-name { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-weight: 600; }
.side-where { font-size: 12px; color: var(--InkFaintText); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.page-body > .warn-box { margin-top: 14px; }
.confirm-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 14px; }
.backup-line { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--InkSoft); max-width: 380px; overflow-wrap: anywhere; }
.backup-line svg.ic { width: 15px; height: 15px; flex: none; color: var(--InkFaintText); }
.center-line { justify-content: center; margin-top: 12px; max-width: 640px; }
.ready-mark.warn { background: var(--WarnSoft); color: var(--Warn); box-shadow: 0 0 60px #E2B86B4D, 0 0 0 10px #E2B86B12; }
.sub.narrow { max-width: 560px; }
.ready > .faint { margin-top: 8px; }
