:root, :root[data-theme="dark"] {
  --bg: #0b0b0a; --bg-glow: rgba(245,165,36,.07);
  --card: rgba(29,28,27,.82); --card-solid: #1b1a19; --card-border: rgba(255,255,255,.06);
  --text: #f4f2ef; --muted: #9b9792; --faint: #5f5b57;
  --pill: #191817; --pill-hover: #222120; --pill-active-a: #353331; --pill-active-b: #1e1d1c;
  --tile: rgba(255,255,255,.045); --track: #2b2927; --tick: #4a4744;
  --amber: #f5a524; --amber-2: #ffc35a; --amber-deep: #e08700; --on-amber: #1a1203;
  --bar-top: rgba(255,255,255,.13); --bar-bot: rgba(255,255,255,.015); --grid: rgba(255,255,255,.05);
  --s-cpu: #f5a524; --s-gpu: #f3e6cf; --s-mem: #ff7849;
  --ok: #7bd88f; --bad: #ff6b5a; --net-up: #6cc4ff;
  --shadow: 0 24px 60px rgba(0,0,0,.45);
  --header: rgba(11,11,10,.78);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eeebe6; --bg-glow: rgba(245,165,36,.10);
  --card: rgba(255,255,255,.86); --card-solid: #ffffff; --card-border: rgba(0,0,0,.06);
  --text: #1b1a19; --muted: #6f6a64; --faint: #aaa49c;
  --pill: #ffffff; --pill-hover: #f6f3ef; --pill-active-a: #2a2826; --pill-active-b: #1b1a19;
  --tile: rgba(0,0,0,.035); --track: #e5e0d9; --tick: #cfc8bf;
  --amber: #ea960f; --amber-2: #f7b53c; --amber-deep: #c97800; --on-amber: #1a1203;
  --bar-top: rgba(0,0,0,.10); --bar-bot: rgba(0,0,0,.015); --grid: rgba(0,0,0,.06);
  --s-cpu: #e8930c; --s-gpu: #6b5a45; --s-mem: #e4572e;
  --ok: #1d7f46; --bad: #c0392b; --net-up: #1f8fd6;
  --shadow: 0 18px 50px rgba(60,40,10,.12);
  --header: rgba(238,235,230,.82);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 20% -10%, var(--bg-glow), transparent 60%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 "Outfit", "Urbanist", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
button, select, input { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 14px 24px; background: var(--header);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.brand { font-size: 24px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; margin-right: 8px; }
.brand b { color: var(--amber); font-weight: 700; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span {
  display: block; padding: 10px 22px; border-radius: 999px; background: var(--pill); color: var(--muted);
  border: 1px solid var(--card-border); transition: background .2s, color .2s; white-space: nowrap; cursor: pointer;
}
.pill input:hover + span { background: var(--pill-hover); }
.pill input:checked + span {
  color: #fff; background: radial-gradient(120% 140% at 30% 0%, var(--pill-active-a), var(--pill-active-b));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.pill input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.pill input:disabled + span { opacity: .5; cursor: not-allowed; }
.top .status {
  display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px;
  flex: 1 1 160px; min-width: 0; justify-content: flex-end;
}
.top .status #statusText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; gap: 10px; align-items: center; }
.iconbtn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--pill); border: 1px solid var(--card-border); color: var(--text); padding: 0;
}
.iconbtn:hover { background: var(--pill-hover); }
.btn {
  border: 1px solid var(--card-border); background: var(--pill); color: var(--text); cursor: pointer;
  padding: 11px 22px; border-radius: 999px; font-weight: 500; white-space: nowrap;
}
.btn:hover { background: var(--pill-hover); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.amber { background: linear-gradient(180deg, var(--amber-2), var(--amber)); color: var(--on-amber); border-color: transparent; font-weight: 600; }
.btn.amber:hover { filter: brightness(1.06); }
.btn.stop:not(:disabled) { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }

/* ---------- Layout ---------- */
.dash { max-width: 1480px; margin: 0 auto; padding: 8px 24px 32px; display: grid; gap: 20px; }
.layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.main-col { min-width: 0; display: grid; }
.side { display: grid; gap: 20px; min-width: 0; }
.lower { display: grid; gap: 20px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); position: relative; z-index: 2; margin-top: -170px; padding: 0 20px; }

.card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 28px; padding: 22px 24px;
  box-shadow: var(--shadow); min-width: 0;
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
}
.card-head { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-bottom: 6px; }
.card-head .t { display: flex; align-items: center; gap: 14px; min-width: 0; }
.card-title { font-size: 22px; font-weight: 400; margin: 0; letter-spacing: -.01em; }
.card-sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.badge {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--tile); border: 1px solid var(--card-border); color: var(--text);
}

/* toggle switch */
.switch { position: relative; display: inline-block; width: 60px; height: 34px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--track); transition: background .2s; }
.switch span::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .2s;
}
.switch input:checked + span { background: linear-gradient(180deg, var(--amber-2), var(--amber)); }
.switch input:checked + span::after { transform: translateX(26px); }
.switch input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.switch input:disabled + span { opacity: .4; }
.switch input:disabled { cursor: not-allowed; }

/* ---------- Hero (GPU scene) ---------- */
.hero {
  position: relative; height: 540px; border-radius: 32px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 35%, #2a1d0c 0%, #120d07 45%, #070605 100%);
  box-shadow: var(--shadow);
}
.hero canvas { position: absolute; left: 0; right: 0; top: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 22%, transparent 55%, rgba(0,0,0,.55) 100%); }
.hero .placeholder {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #e9dcc6;
}
.hero .placeholder .orb {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 18px;
  background: radial-gradient(circle at 40% 35%, #fff4dc 0%, #ffcf7a 22%, #f5a524 45%, rgba(245,165,36,.15) 70%, transparent 72%);
  box-shadow: 0 0 120px 30px rgba(245,165,36,.25);
}
.hero .placeholder h2 { margin: 0 0 6px; font-weight: 400; font-size: 26px; color: #fff; }
.hero .placeholder p { margin: 0; color: #b9ab95; font-size: 14px; }
.hero-top { position: absolute; z-index: 3; left: 20px; right: 20px; top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.hero-top > * { pointer-events: auto; }
.glass {
  background: rgba(20,18,16,.55); border: 1px solid rgba(255,255,255,.08); color: #f4efe7;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 999px;
}
.gpu-chip { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; max-width: 100%; }
.gpu-chip .name { min-width: 0; }
.gpu-chip .name div:first-child { font-size: 15px; }
.gpu-chip .name div:last-child { font-size: 12px; color: #b5aa9a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.gpu-chip select { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: #f4efe7; border-radius: 999px; padding: 6px 10px; }
.gpu-chip select option { color: #111; }
.hud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.hud .glass { padding: 8px 14px; font-size: 13px; }
.hud .glass b { font-weight: 600; margin-left: 4px; }
.hud-wrap { display: flex; gap: 8px; align-items: flex-start; }
.hero .fs { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; }
.hero-error { position: absolute; z-index: 3; left: 20px; top: 84px; max-width: calc(100% - 40px); padding: 8px 14px; border-radius: 14px; font-size: 13px; color: #ffd2cb; background: rgba(120,20,10,.55); }
.hero-error:empty { display: none; }
.hero:fullscreen, .hero:-webkit-full-screen { height: 100%; width: 100%; border-radius: 0; }
.hero:fullscreen canvas, .hero:-webkit-full-screen canvas, .hero.pseudo-fs canvas { bottom: 0; height: 100%; object-fit: contain; }
.hero:fullscreen .placeholder, .hero.pseudo-fs .placeholder { bottom: 0; }
.hero.pseudo-fs { position: fixed; inset: 0; z-index: 1000; height: auto; border-radius: 0; }

/* ---------- CPU dial card ---------- */
.dial { position: relative; width: min(100%, 330px); margin: 8px auto 0; aspect-ratio: 1 / .92; }
.dial svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dial line { stroke: var(--tick); stroke-width: 2; stroke-linecap: round; transition: stroke .3s; }
.dial line.major { stroke-width: 2.6; }
.dial line.on { stroke: var(--amber); }
.dial .marker { fill: var(--amber); transition: transform .4s ease; }
.dial .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding-bottom: 6%; }
.dial .center .lbl { color: var(--muted); font-size: 15px; }
.dial .center .big { font-size: clamp(38px, 5vw, 52px); font-weight: 400; line-height: 1.1; margin: 4px 0; }
.dial .center .sub { color: var(--muted); font-size: 14px; }
.dial-foot { display: flex; align-items: center; gap: 12px; margin-top: -8px; }
.dial-foot .end { color: var(--muted); font-size: 15px; min-width: 34px; }
.dial-foot .end:last-child { text-align: right; }
.cores { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(8px, 1fr)); gap: 3px; height: 34px; align-items: end; }
.core { height: 100%; background: var(--track); border-radius: 3px; position: relative; overflow: hidden; }
.core i { position: absolute; left: 0; right: 0; bottom: 0; height: 0%; background: linear-gradient(180deg, var(--amber-2), var(--amber-deep)); transition: height .4s ease; }

/* ---------- Chart card ---------- */
.chart-total { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.chart-total .big { font-size: 26px; font-weight: 600; }
.chart-total span:last-child { color: var(--muted); font-size: 14px; }
.select-pill { position: relative; flex: none; }
.select-pill select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 1.5px solid var(--faint); border-radius: 999px;
  padding: 10px 44px 10px 22px; font-size: 17px; cursor: pointer; color: var(--text);
}
.select-pill select option { color: #111; }
.select-pill .ic { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 18px; height: 18px; }
.chart-wrap { position: relative; height: 300px; margin-top: 10px; }
#chart, #netChart { display: block; width: 100%; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* ---------- Score card ---------- */
.score-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 22px; padding: 0 6px; }
.score-hero .big { font-size: clamp(54px, 7vw, 76px); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.score-hero .cap { color: var(--muted); font-size: 14px; margin-top: 8px; }
.flame { width: 76px; height: 76px; flex: none; filter: drop-shadow(0 6px 24px rgba(245,165,36,.45)); }
.tile { background: var(--tile); border: 1px solid var(--card-border); border-radius: 20px; padding: 14px 16px; position: relative; min-width: 0; }
.tile .k { color: var(--muted); font-size: 14px; }
.tile .v { font-size: 28px; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .ic { position: absolute; right: 14px; top: 14px; color: var(--amber); width: 22px; height: 22px; }

/* ---------- Progress card ---------- */
.np { display: flex; align-items: center; gap: 16px; margin: 18px 0 22px; }
.np .thumb {
  width: 66px; height: 66px; border-radius: 16px; flex: none; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, #ffd27a, #f5a524 45%, #6a3d06 100%);
}
.np .thumb .ic { width: 28px; height: 28px; stroke-width: 2; }
.np .meta { min-width: 0; }
.np .meta div:first-child { font-size: 19px; letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np .meta div:last-child { color: var(--muted); font-size: 14px; }
.prog { position: relative; height: 8px; border-radius: 999px; background: var(--track); margin: 8px 12px 0 0; }
.prog .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--amber-deep), var(--amber)); transition: width .45s linear; }
.prog .knob {
  position: absolute; top: 50%; left: 0%; width: 26px; height: 26px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--card-solid); border: 5px solid var(--amber); transition: left .45s linear;
}
.times { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 12px; }
.controls { display: flex; align-items: center; justify-content: center; gap: 34px; margin-top: 18px; }
.controls .ctl { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--text); display: grid; place-items: center; border-radius: 50%; }
.controls .ctl .ic { width: 28px; height: 28px; }
.controls .ctl:disabled { opacity: .35; cursor: not-allowed; }
.play {
  width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--amber-2), var(--amber)); box-shadow: 0 10px 30px rgba(245,165,36,.35);
}
.play .ic { width: 30px; height: 30px; fill: currentColor; stroke: none; }

/* ---------- Memory card ---------- */
.mem-bw { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 14px; font-size: 22px; }
.mem-bw::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text); align-self: center; }
.mem-bar { height: 46px; border-radius: 16px; background: var(--track); overflow: hidden; }
.mem-bar i { display: block; height: 100%; width: 0%; border-radius: 16px; background: linear-gradient(90deg, #fff6e4 0%, var(--amber-2) 55%, var(--amber) 100%); transition: width .45s ease; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
#memBars { height: 26px; margin-top: 14px; }
#memBars .core i { background: linear-gradient(180deg, #ff9a6c, var(--s-mem)); }

.note { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }
.error { color: var(--bad); font-size: 13px; margin-top: 8px; }
.error:empty { display: none; }

/* ---------- Results ---------- */
.results { border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); background:
  radial-gradient(600px 220px at 0% 0%, rgba(245,165,36,.16), transparent 70%), var(--card); }
.results .row1 { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; justify-content: space-between; }
.results .combined { display: flex; align-items: center; gap: 14px; }
.results .combined .big { font-size: clamp(48px, 8vw, 84px); line-height: 1; letter-spacing: -.03em; }
.results .combined .flame { width: 60px; height: 60px; }
.results .scores { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 10px; flex: 1 1 420px; }
.results .scores .meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.flag { font-weight: 500; margin: 16px 0 14px; }
.flag.bad { color: var(--bad); }
.flag.ok { color: var(--ok); }
.copyrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.copytext { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Banner ---------- */
.banner {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-radius: 22px; color: var(--text);
  background: color-mix(in srgb, var(--amber) 14%, var(--card-solid)); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal .box { background: var(--card-solid); color: var(--text); border-radius: 28px; padding: 26px; max-width: 460px; width: 100%; border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; }
.modal ul { margin: 0 0 20px; padding-left: 20px; color: var(--muted); }
.modal li { margin: 6px 0; }
.modal li b { color: var(--text); font-weight: 600; }
.modal .btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Pages ---------- */
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--pill); color: var(--muted); border: 1px solid var(--card-border); transition: background .2s, color .2s;
}
.pill-btn .ic { width: 18px; height: 18px; }
.pill-btn:hover:not(:disabled) { background: var(--pill-hover); }
.pill-btn[aria-current="page"] {
  color: #fff; background: radial-gradient(120% 140% at 30% 0%, var(--pill-active-a), var(--pill-active-b));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.pill-btn[aria-current="page"] .ic { color: var(--amber); }
.pill-btn:disabled:not([aria-current="page"]) { opacity: .4; cursor: not-allowed; }
.pill-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.main-col { gap: 20px; }
.feature { min-height: 540px; }
.cpu-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 10px; }
.dial.big { width: min(100%, 340px); }
.cores.tall { height: 150px; flex: none; gap: 5px; grid-template-columns: repeat(auto-fill, minmax(16px, 1fr)); }
.cores.tall .core { border-radius: 6px; }
.section-label { color: var(--muted); font-size: 14px; margin: 18px 0 10px; }
.durs { display: flex; gap: 8px; }
.durs .pill { flex: 1; }
.durs .pill span { text-align: center; padding: 8px 10px; }
.mem-bw.big { font-size: clamp(36px, 5vw, 52px); margin: 0 0 18px; }
.mem-bar.big { height: 70px; border-radius: 22px; }
.mem-bar.big i { border-radius: 22px; }
#memBars { height: 90px; margin-top: 0; }
.mini .tile .v { font-size: 26px; }
.results .overall { flex: 0 1 340px; }
.results .overall .v { font-size: 34px; }

/* ---------- CPU pressure badge ---------- */
#cpuCard .card-head { flex-wrap: wrap; }
.pressure {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--tile); border: 1px solid var(--card-border); font-size: 13px;
}
.pressure .lbl { color: var(--muted); }
.pressure b { font-weight: 600; }
.pressure .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); transition: background .3s, box-shadow .3s; }
.pressure[data-state="nominal"] .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.pressure[data-state="fair"] .dot { background: var(--amber-2); box-shadow: 0 0 10px var(--amber-2); }
.pressure[data-state="serious"] .dot { background: #ff8a3d; box-shadow: 0 0 10px #ff8a3d; }
.pressure[data-state="serious"] b { color: #ff8a3d; }
.pressure[data-state="critical"] .dot { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.pressure[data-state="critical"] b { color: var(--bad); }
.pressure[data-state="off"] b { color: var(--muted); font-weight: 400; }
.flag.pressure-flag { margin-top: -6px; }
.flag.warn { color: #ff8a3d; }

/* ---------- Thread steppers ---------- */
.stepper { display: flex; align-items: center; gap: 12px; }
.round {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--tile); border: 1px solid var(--card-border); color: var(--text); font-size: 24px; line-height: 1;
}
.round:hover:not(:disabled) { border-color: color-mix(in srgb, var(--amber) 60%, transparent); color: var(--amber); }
.round:disabled { opacity: .35; cursor: not-allowed; }
.round:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.tcount { text-align: center; line-height: 1.15; min-width: 0; }
.tcount b { display: block; font-size: 24px; font-weight: 500; }
.tcount span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.foot-mid { flex: 1; display: flex; justify-content: center; min-width: 0; }
.stepper.box {
  gap: 4px; padding: 5px; border-radius: 999px;
  background: var(--tile); border: 1px solid var(--card-border);
}
.stepper.box .round { width: 40px; height: 40px; font-size: 22px; background: var(--card-solid); }
.stepper.box .tcount { min-width: 92px; padding: 0 4px; }
.stepper.box .tcount b { font-size: 20px; }
.stepper.box .tcount span { font-size: 12px; }
.stepper-row .stepper.box .tcount { min-width: 44px; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 12px 14px 12px 18px; border-radius: 20px; background: var(--tile); border: 1px solid var(--card-border); }
.stepper-row .k { font-size: 15px; }
.stepper-row .card-sub { font-size: 13px; margin-top: 2px; }

/* ---------- Guide page ---------- */
.guide { display: grid; gap: 20px; }
.guide-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; }
.guide .lead { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.guide .lead b, .steps b { color: var(--text); font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; counter-reset: step; color: var(--muted); }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li::before {
  counter-increment: step; content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--on-amber);
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
}
.guide-side { background: var(--tile); border: 1px solid var(--card-border); border-radius: 22px; padding: 20px; align-self: start; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; color: var(--muted); font-size: 14px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.example { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.example div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-border); }
.example span { color: var(--muted); font-size: 13px; }
.example b { font-weight: 600; font-size: 17px; }
.example .all { background: linear-gradient(160deg, color-mix(in srgb, var(--amber) 18%, transparent), var(--card)); }
.guide-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.defs { margin: 18px 0 0; display: grid; gap: 10px; }
.defs.cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.defs div { padding: 12px 16px; background: var(--tile); border: 1px solid var(--card-border); border-radius: 16px; }
.defs dt { font-weight: 600; font-size: 15px; }
.defs dt .unit { color: var(--amber); font-weight: 500; font-size: 12.5px; margin-left: 8px; white-space: nowrap; }
.defs dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
}
@media (max-width: 860px) {
  .guide-intro { grid-template-columns: minmax(0, 1fr); }
  .cpu-body { grid-template-columns: minmax(0, 1fr); }
  .feature { min-height: 0; }
  .lower { grid-template-columns: minmax(0, 1fr); margin-top: 20px; padding: 0; }
  .hero { height: auto; aspect-ratio: 4 / 3; }
  .hero canvas, .hero .placeholder { bottom: 0; height: 100%; }
  .results .scores { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
}
@media (max-width: 560px) {
  .top { padding: 12px 16px; }
  .dash { padding: 4px 16px 24px; gap: 16px; }
  .layout, .side, .lower { gap: 16px; }
  .card { border-radius: 24px; padding: 18px; }
  .hero { aspect-ratio: 3 / 4; border-radius: 24px; }
  .brand { font-size: 20px; }
  .pill span { padding: 8px 16px; }
  .iconbtn { width: 40px; height: 40px; }
  /* two compact header rows: brand + buttons, then duration pills (timer lives in the progress card) */
  .top { gap: 10px; }
  .brand { margin-right: 0; }
  .actions { margin-left: auto; gap: 8px; }
  .actions .btn { padding: 9px 16px; }
  .pills { order: 3; flex-basis: 100%; }
  .pill { flex: 1; }
  .pill span { text-align: center; padding: 8px 10px; }
  .pills { flex-wrap: nowrap; gap: 6px; }
  .pill-btn { flex: 1; min-width: 0; justify-content: center; padding: 8px 2px; font-size: 13px; }
  .pill-btn .ic { display: none; }
  .top .status { display: none; }
  .hero-top { left: 12px; right: 12px; top: 12px; flex-wrap: nowrap; }
  .gpu-chip { flex: 1; min-width: 0; padding: 6px 6px 6px 14px; gap: 8px; }
  .gpu-chip > .ic { display: none; }
  .gpu-chip .name { flex: 1; }
  .gpu-chip .name div:first-child { display: none; }
  .gpu-chip .name div:last-child { max-width: none; font-size: 13px; color: #f4efe7; }
  .hud { display: none; }
  .hero-error { left: 12px; top: 70px; max-width: calc(100% - 24px); }
  .chart-wrap { height: 240px; }
  .controls { gap: 24px; }
}

/* ---------- Multi-page additions ---------- */
a.pill-btn { text-decoration: none; }
a.pill-btn.locked:not([aria-current="page"]) { opacity: .4; cursor: not-allowed; }
a.btn { text-decoration: none; display: inline-block; }
.page-intro { padding: 6px 4px 0; }
.page-intro h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.15; }
.page-intro p { margin: 0; color: var(--muted); max-width: 860px; font-size: 15.5px; }
.foot { max-width: 1480px; margin: 0 auto; padding: 8px 24px 40px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot p { margin: 0; }
@media (max-width: 560px) { .page-intro p { font-size: 14.5px; } .foot { padding: 4px 16px 32px; } }


/* ---------- Extreme test ---------- */
#xCard .card-head { flex-wrap: wrap; }
.xgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.xtile { background: var(--tile); border: 1px solid var(--card-border); border-radius: 20px; padding: 16px; min-width: 0; }
.xk { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.xk .ic { width: 18px; height: 18px; color: var(--amber); }
.xtile .v { font-size: clamp(26px, 3vw, 34px); margin-top: 8px; }
.xsub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.xbar { height: 10px; border-radius: 999px; background: var(--track); margin-top: 14px; overflow: hidden; }
.xbar i { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--amber-deep), var(--amber-2)); transition: width .45s ease; }
.xtile[data-c="gpu"] .xbar i { background: linear-gradient(90deg, #b9a587, var(--s-gpu)); }
.xtile[data-c="mem"] .xbar i { background: linear-gradient(90deg, #d4552f, var(--s-mem)); }
.xdrop { font-size: 13px; margin-top: 8px; color: var(--muted); }
.xdrop.ok { color: var(--ok); }
.xdrop.warn { color: #ff8a3d; }
.xdrop.bad { color: var(--bad); }
.score-hero .big.xlive { font-size: clamp(34px, 4vw, 50px); letter-spacing: -.02em; }
.xlive[data-v="ok"] { color: var(--ok); }
.xlive[data-v="warn"] { color: #ff8a3d; }
.verdict { font-size: clamp(44px, 7vw, 76px); line-height: 1.05; letter-spacing: -.03em; margin: 2px 0 6px; }
.verdict.ok { color: var(--ok); }
.verdict.warn { color: #ff8a3d; }
.verdict.bad { color: var(--bad); }
@media (max-width: 700px) {
  .xgrid { gap: 8px; }
  .xtile { padding: 12px 10px; border-radius: 16px; }
  .xk { font-size: 12px; gap: 5px; }
  .xk .ic { width: 15px; height: 15px; }
  .xtile .v { font-size: 20px; margin-top: 6px; }
  .xsub, .xdrop { font-size: 11px; }
  .xbar { height: 7px; margin-top: 10px; }
}

/* ---------- Brand ---------- */
.top .brand { display: inline-flex; align-items: center; gap: 14px; font-size: 36px; letter-spacing: -.025em; margin-right: 44px; }
.brand-ic { width: 56px; height: 56px; border-radius: 16px; flex: none; }
@media (max-width: 1180px) { .top .brand { margin-right: 28px; } }
@media (max-width: 860px) { .top .brand { font-size: 30px; margin-right: 20px; } .brand-ic { width: 48px; height: 48px; border-radius: 14px; } }
@media (max-width: 560px) {
  .top .brand { font-size: 25px; gap: 10px; margin-right: 0; }
  .brand-ic { width: 40px; height: 40px; border-radius: 11px; }
  .top .pills { margin-top: 6px; }
  .top .actions { gap: 6px; }
  .top .actions .btn { padding: 8px 13px; }
  .top .iconbtn { width: 38px; height: 38px; }
}
@media (max-width: 400px) {
  .top .brand { font-size: 22px; gap: 8px; }
  .brand-ic { width: 35px; height: 35px; border-radius: 10px; }
  .top .actions .btn { padding: 8px 10px; font-size: 14px; }
  .top .iconbtn { width: 35px; height: 35px; }
}

/* ---------- Comparison with other users ---------- */
.compare { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--card-border); }
.cmp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.cmp-head .section-label { margin: 0; }
.cmp-grid { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 12px; }
.cmp-pct .big { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; margin: 2px 0; color: var(--amber); }
.cmp-chart canvas { display: block; width: 100%; height: 110px; }
.cmp-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; margin-top: 4px; }
.cmp-similar { color: var(--muted); font-size: 14px; margin: 12px 0 14px; }
.share-opt { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--muted); cursor: pointer; }
.share-opt input { margin-top: 1px; accent-color: var(--amber); width: 16px; height: 16px; flex: none; }
@media (max-width: 640px) { .cmp-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---------- Rankings ---------- */
.rk-head { flex-wrap: wrap; }
.rk-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rk-tabs .pill-btn[aria-pressed="true"] { color: #fff; background: radial-gradient(120% 140% at 30% 0%, var(--pill-active-a), var(--pill-active-b)); }
.rk-tabs .pill-btn[aria-pressed="true"] .ic { color: var(--amber); }
.rk-body { margin-top: 14px; display: grid; gap: 8px; }
.rk-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--tile); border: 1px solid var(--card-border); }
.rk-rank { font-size: 18px; color: var(--muted); }
.rk-row:nth-child(1) .rk-rank, .rk-row:nth-child(2) .rk-rank, .rk-row:nth-child(3) .rk-rank { color: var(--amber); font-weight: 600; }
.rk-name { min-width: 0; overflow-wrap: anywhere; }
.rk-name small { display: block; color: var(--muted); font-size: 12.5px; }
.rk-score { text-align: right; font-size: 20px; }
.rk-score small { display: block; color: var(--muted); font-size: 12px; }
.rk-bar { grid-column: 2 / 4; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.rk-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--amber-deep), var(--amber-2)); }

/* ---------- Text pages ---------- */
.prose h2 { font-size: 20px; font-weight: 500; margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose b { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 20px; margin: 8px 0; }
.prose li { margin: 6px 0; }
.prose a, .defs a { color: var(--amber); }

/* ---------- Rank metrics ---------- */
.cmp-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cmp-metrics .tile { padding: 12px 14px; }
.cmp-metrics .v { font-size: 24px; margin-top: 6px; }
.cmp-metrics .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.cmp-metrics .v.up { color: var(--ok); }
.cmp-metrics .v.down { color: var(--bad); }
#cmpTier[data-tier="inferno"] { color: #ff5a1f; }
#cmpTier[data-tier="blaze"] { color: #ff8a3d; }
#cmpTier[data-tier="flame"] { color: var(--amber); }
#cmpTier[data-tier="ember"] { color: var(--amber-2); }
#cmpTier[data-tier="spark"] { color: var(--muted); }
#cmpTier[data-tier]::before { content: "🔥 "; font-size: .8em; }
#cmpTier[data-tier="spark"]::before { content: "✦ "; }
@media (max-width: 760px) { .cmp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Benchmark page ---------- */
.lbl-short { display: none; }
@media (max-width: 560px) {
  .top .pills .pill-btn { font-size: 12.5px; padding: 8px 2px; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
}
.bm-run .card-head { flex-wrap: wrap; }
.bm-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 16px; }
.bm-step { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--tile); border: 1px solid var(--card-border); min-width: 0; }
.bm-step b { display: block; font-weight: 600; }
.bm-step small { display: block; color: var(--muted); font-size: 12.5px; }
.bm-step > div { flex: 1; min-width: 0; }
.bm-step .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--track); flex: none; }
.bm-step.active .dot { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.bm-step.done .dot { background: var(--ok); }
.bm-val { font-size: 22px; }
.bm-prog { margin-right: 0; }
.bm-prog .fill { transition: width .25s linear; }
.bm-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 32px; margin-top: 14px; align-items: end; }
.bm-single { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
.bm-info { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 18px 0 16px; }
.bm-info .tile { padding: 12px 14px; }
.bm-info .v { font-size: 16px; margin-top: 4px; overflow-wrap: anywhere; }
.bm-table { margin-top: 14px; }
.bm-tr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--card-border); }
.bm-th { color: var(--muted); font-size: 13px; padding-top: 4px; }
.bm-th button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.bm-th button[aria-sort] { color: var(--text); }
.bm-th i { font-style: normal; color: var(--amber); font-size: 11px; margin-left: 4px; }
.bm-cpu { min-width: 0; overflow-wrap: anywhere; }
.bm-cpu small { display: block; color: var(--muted); font-size: 12px; }
.bm-num { font-size: 17px; }
.bm-num small { font-size: 12.5px; margin-left: 6px; }
.bm-num small.up { color: var(--ok); }
.bm-num small.down { color: var(--bad); }
.bm-tr.you { background: color-mix(in srgb, var(--amber) 13%, transparent); border-radius: 14px; border-bottom-color: transparent; }
.bm-tr.you .bm-cpu { color: var(--amber); font-weight: 600; }
.bm-empty { color: var(--muted); padding: 16px 14px; font-size: 14px; }
@media (max-width: 860px) { .bm-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bm-info .tile:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .bm-steps { grid-template-columns: minmax(0, 1fr); } .bm-tr { gap: 6px; padding: 10px 8px; } .bm-num { font-size: 15px; } .bm-num small { display: block; margin: 0; } }

/* ---------- Benchmark CPU | GPU switch ---------- */
.bm-switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--pill); border: 1px solid var(--card-border); justify-self: start; }
.bm-switch .pill-btn { border-color: transparent; background: transparent; }
.bm-switch .pill-btn[aria-selected="true"] { color: #fff; background: radial-gradient(120% 140% at 30% 0%, var(--pill-active-a), var(--pill-active-b)); }
.bm-switch .pill-btn[aria-selected="true"] .ic { color: var(--amber); }
.hero.bm-stage { height: 400px; margin-top: 16px; }
.bm-tr2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 860px) { .hero.bm-stage { height: auto; aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .hero.bm-stage { aspect-ratio: 4 / 3; } .bm-switch { justify-self: stretch; } .bm-switch .pill-btn { flex: 1; justify-content: center; } }

/* ---------- Header: always two tidy rows (logo + actions, then the page pills) ---------- */
.top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand status actions" "pills pills pills"; align-items: center; column-gap: 16px; row-gap: 12px; }
.top .brand { grid-area: brand; margin-right: 0; }
.top .status { grid-area: status; display: none; }
.top .actions { grid-area: actions; margin-left: 0; }
.top .pills { grid-area: pills; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 0; padding: 2px; }
.top .pills::-webkit-scrollbar { display: none; }
.top .pills .pill-btn { flex: none; }
@media (max-width: 560px) {
  .top { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 10px; column-gap: 8px; }
  .top .pills .pill-btn { flex: 1 0 auto; }
}
@media (min-width: 561px) and (max-width: 900px) { .top .pills .pill-btn { padding: 9px 16px; } .top .pills .pill-btn .ic { display: none; } }

/* ---------- Theme switch: sun (light) on the left, moon (dark) on the right ---------- */
.theme-switch {
  position: relative; flex: none; width: 66px; height: 34px; padding: 0 9px; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--pill); border: 1px solid var(--card-border); color: var(--muted);
}
.theme-switch:hover { background: var(--pill-hover); }
.theme-switch .ic { width: 15px; height: 15px; position: relative; z-index: 1; transition: color .25s; }
.theme-switch .knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: transform .25s ease;
}
:root[data-theme="dark"] .theme-switch .knob { transform: translateX(32px); }
:root[data-theme="dark"] .theme-switch .moon, :root[data-theme="light"] .theme-switch .sun { color: var(--on-amber); }
.theme-switch:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .theme-switch .knob { transition: none; } }

/* ---------- Compact desktop: everything slightly smaller on larger screens ---------- */
@media (min-width: 700px) and (max-width: 899px) { body { zoom: .92; } }
@media (min-width: 900px) { body { zoom: .85; } }

/* ---------- Network page: internet speed test ---------- */
.net-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--tile); border: 1px solid var(--card-border); font-size: 13px; white-space: nowrap; }
.net-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.net-chip[data-phase="latency"] .dot, .net-chip[data-phase="download"] .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.net-chip[data-phase="upload"] .dot { background: var(--net-up); box-shadow: 0 0 10px var(--net-up); }
.net-chip[data-phase="done"] .dot { background: var(--ok); }
.net-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 6px; }
.net-dial { width: min(100%, 360px); }
.net-dial text { fill: var(--muted); font-size: 11px; text-anchor: middle; font-variant-numeric: tabular-nums; }
.net-dial.up line.on { stroke: var(--net-up); }
.net-dial.up .marker { fill: var(--net-up); }
.net-dial .center { pointer-events: none; }
.net-go {
  position: absolute; left: 50%; top: 54.35%; transform: translate(-50%, -50%); width: 128px; height: 128px; border-radius: 50%;
  border: 2px solid var(--amber); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--amber) 22%, transparent), transparent 70%), var(--card-solid);
  color: var(--text); font-size: 30px; font-weight: 600; letter-spacing: .06em; cursor: pointer;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--amber) 10%, transparent), 0 0 40px color-mix(in srgb, var(--amber) 30%, transparent);
  transition: transform .15s, box-shadow .2s;
}
.net-go:hover { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 0 0 12px color-mix(in srgb, var(--amber) 14%, transparent), 0 0 56px color-mix(in srgb, var(--amber) 42%, transparent); }
.net-go:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.net-go:disabled { opacity: .4; cursor: not-allowed; }
.net-dial:has(.net-go:not([hidden])) .center { visibility: hidden; }
.net-again { display: flex; justify-content: center; margin-top: 4px; }
.net-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.net-tile .k { display: flex; align-items: center; gap: 6px; }
.net-tile .k .ic { width: 15px; height: 15px; }
.net-tile[data-k="up"] .k .ic { color: var(--net-up); }
.net-tile[data-k="down"] .k .ic { color: var(--amber); }
.net-tile .v small { font-size: 13px; color: var(--muted); margin-left: 5px; }
.net-tile .meta { color: var(--muted); font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-tile.active { border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.net-tile.active[data-k="up"] { border-color: color-mix(in srgb, var(--net-up) 55%, transparent); }
.net-info { margin: 12px 0 0; display: grid; gap: 8px; }
.net-info div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--tile); border: 1px solid var(--card-border); }
.net-info dt { color: var(--muted); }
.net-info dd { margin: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 860px) { .net-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .net-go { width: 108px; height: 108px; font-size: 26px; } }
@media (max-width: 560px) {
  .actions { gap: 6px; }
  .theme-switch { width: 52px; height: 30px; padding: 0 7px; }
  .theme-switch .ic { width: 13px; height: 13px; }
  .theme-switch .knob { width: 22px; height: 22px; }
  :root[data-theme="dark"] .theme-switch .knob { transform: translateX(22px); }
}
@media (max-width: 400px) {
  .theme-switch { width: 48px; padding: 0 6px; }
  :root[data-theme="dark"] .theme-switch .knob { transform: translateX(18px); }
}

/* ---------- Round start buttons: rings ripple out from the centre on hover ---------- */
.play { position: relative; transition: transform .15s; }
.play:hover:not(:disabled) { transform: scale(1.05); }
.play::before, .play::after, .net-go::before, .net-go::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--amber); opacity: 0;
}
.play:hover::before, .play:focus-visible::before, .net-go:hover::before, .net-go:focus-visible::before { animation: bb-ripple 1.6s ease-out infinite; }
.play:hover::after, .play:focus-visible::after, .net-go:hover::after, .net-go:focus-visible::after { animation: bb-ripple 1.6s ease-out .8s infinite; }
.net-go::before, .net-go::after { inset: -2px; }
@keyframes bb-ripple {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.75); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .play::before, .play::after, .net-go::before, .net-go::after { animation: none !important; }
}

/* ---------- Benchmark results list ---------- */
.bm-rank { display: inline-block; flex: none; min-width: 38px; line-height: 1.45; color: var(--muted); font-weight: 400; font-size: 13px; }
.bm-rank:empty { display: none; }
.bm-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; vertical-align: 2px;
  color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); }
.bm-badge.you { color: var(--on-amber); background: var(--amber); border-color: var(--amber); }
.bm-cpu:has(.bm-name) { display: flex; align-items: flex-start; }
.bm-name { flex: 1; min-width: 0; }
.bm-tr.extra { margin-top: 8px; }
.bm-more { display: block; margin: 14px auto 4px; }
@media (max-width: 560px) { .bm-rank { min-width: 30px; } }

/* ---------- Ad spots: invisible until Google fills them, then shown as a card like the rest of the page ---------- */
.ad-wrap { display: block; min-width: 0; }
.ad-wrap .ad-label { display: none; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px 2px; }
.ad-wrap:has(ins[data-ad-status="filled"]) { background: var(--card); border: 1px solid var(--card-border); border-radius: 28px; padding: 14px 18px 18px; }
.ad-wrap:has(ins[data-ad-status="filled"]) .ad-label { display: block; }
.ad-wrap:has(ins[data-ad-status="unfilled"]) { display: none; }
body.testing .ad-wrap { display: none !important; }
@media (max-width: 1180px) { .ad-side { display: none !important; } }
@media (max-width: 560px) { .ad-wrap:has(ins[data-ad-status="filled"]) { border-radius: 24px; padding: 12px 12px 14px; } }
