:root {
  --nav: #171a21;
  --bg: #1b2838;
  --bg2: #16202d;
  --panel: #1e2b3b;
  --panel2: #233447;
  --hi: #2a475e;
  --ink: #ffffff;
  --text: #c7d5e0;
  --muted: #8f98a0;
  --dim: #56707f;
  --blue: #66c0f4;
  --blue2: #1a9fff;
  --sale-bg: #4c6b22;
  --sale-ink: #beee11;
  --price-bg: #344654;
  --price-ink: #beee11;
  --strike: #738895;
  --c1: #66c0f4;
  --c2: #c58cf0;
  --c3: #3d7ea6;
  --c4: #e8b64a;
  --c5: #9fd3e8;
  --c6: #6b7a88;
  --rule: rgba(102,192,244,.12);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html {
  scroll-padding-top: env(safe-area-inset-top,0px);
  background: var(--nav);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Albert Sans","Motiva Sans",Arial,Helvetica,sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  background: radial-gradient(1200px 520px at 70% -120px,rgba(102,192,244,.22),transparent 70%),linear-gradient(180deg,#1f3448 0,#1b2838 520px,#1b2838 100%);
  min-height: 100%;
}

a {
  color: var(--blue);
}

.nav {
  background: var(--nav);
  border-bottom: 1px solid #000;
}

.nav .in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px clamp(16px,4vw,32px);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* back to the main site, at the right end of the nav (next to "Use different files" when that's shown) */
.nav .home {
  margin-left: auto;
  color: var(--muted);
  font-size: .92rem;
  text-decoration: none;
}

.nav .reset:not([hidden]) + .home {
  margin-left: 0;
}

.nav .home:hover {
  color: var(--blue);
}

.nav .home:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* on phones the nav wraps, so the link moves up next to the logo */
@media (max-width: 600px) {
  .nav .home,
  .nav .reset:not([hidden]) + .home {
    order: 1;
    margin-left: auto;
  }

  .nav .crumbs {
    order: 2;
  }

  .nav .reset {
    order: 3;
  }
}

/* the logo reloads the page */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dcdedf;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 1.05rem;
  text-decoration: none;
}

.logo:hover {
  color: #fff;
}

.logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.logo svg {
  width: 28px;
  height: 28px;
}

.nav .crumbs {
  color: var(--muted);
  font-size: .92rem;
}

.nav .crumbs b {
  color: var(--blue);
  font-weight: 600;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(22px,4vw,44px) clamp(16px,4vw,32px) 72px;
}

/* hero */
.hero {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(120deg,#2a475e 0%,#1d3347 45%,#152232 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  border: 1px solid rgba(102,192,244,.18);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg,transparent 0 22px,rgba(255,255,255,.018) 22px 44px);
  pointer-events: none;
}

.hero .in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  padding: clamp(22px,4vw,44px);
}

@media (max-width:820px) {
  .hero .in {
    grid-template-columns: 1fr;
  }
}

.kicker {
  color: var(--blue);
  font-weight: 600;
  font-size: .95rem;
}

.big {
  font-size: clamp(3.4rem,10vw,6.4rem);
  font-weight: 900;
  color: var(--ink);
  line-height: .95;
  letter-spacing: -.03em;
  margin: .12em 0 .15em;
  text-shadow: 0 4px 30px rgba(102,192,244,.25);
}

.big small {
  font-size: .38em;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
  display: block;
  margin-top: .45em;
  line-height: 1.3;
}

.hero p {
  margin: .4em 0 0;
  max-width: 46ch;
  color: var(--text);
  font-size: 1.02rem;
}

.receipt {
  align-self: center;
  background: rgba(0,0,0,.28);
  border-radius: 4px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(255,255,255,.06);
}

.receipt h3 {
  margin: 0 0 12px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
}

.receipt .line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(143,152,160,.25);
  font-size: .95rem;
}

.dblock {
  display: inline-flex;
  align-items: stretch;
  height: 44px;
  margin-top: 14px;
  font-weight: 700;
}

.dblock .pct {
  background: var(--sale-bg);
  color: var(--sale-ink);
  font-size: 1.6rem;
  padding: 0 12px;
  display: flex;
  align-items: center;
  letter-spacing: -.02em;
}

.dblock .prices {
  background: var(--price-bg);
  padding: 3px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  line-height: 1.05;
}

.dblock .orig {
  color: var(--strike);
  text-decoration: line-through;
  font-size: .82rem;
  font-weight: 500;
}

.dblock .final {
  color: var(--price-ink);
  font-size: 1.12rem;
}

.dblock.sm {
  height: 34px;
}

.dblock.sm .pct {
  font-size: 1.05rem;
  padding: 0 8px;
}

.dblock.sm .final {
  font-size: .95rem;
}

.dblock.sm .orig {
  font-size: .78rem;
}

.dblock.full .prices {
  background: transparent;
  padding-right: 0;
}

.dblock.full .final {
  color: var(--ink);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 10px;
  margin-top: 14px;
}

@media (max-width:820px) {
  .tiles {
    grid-template-columns: repeat(2,1fr);
  }
}

.tile {
  background: linear-gradient(160deg,rgba(42,71,94,.8),rgba(22,32,45,.9));
  border-radius: 4px;
  padding: 14px 16px;
  border-top: 2px solid var(--tc,var(--blue));
}

.tile b {
  display: block;
  color: var(--ink);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.tile span {
  color: var(--muted);
  font-size: .92rem;
}

section {
  margin-top: clamp(46px,7vw,76px);
}

.sh {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(102,192,244,.25);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.25rem,2.6vw,1.6rem);
  letter-spacing: .01em;
}

.sh p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
  font-size: .96rem;
}

.panel {
  background: rgba(0,0,0,.2);
  border-radius: 4px;
  padding: 18px 18px 12px;
  border: 1px solid rgba(255,255,255,.04);
}

.panel h3 {
  margin: 0 0 12px;
  color: #dcdedf;
  font-size: .98rem;
  font-weight: 600;
}

.grid2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

@media (max-width:820px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

.ch {
  position: relative;
  height: 340px;
}

.ch.tall {
  height: 440px;
}

.ch.short {
  height: 270px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 12px;
  font-size: .92rem;
  color: var(--text);
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
}

.callout {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  background: linear-gradient(90deg,rgba(76,107,34,.35),rgba(76,107,34,0));
  border-left: 3px solid var(--sale-ink);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  color: #dcdedf;
}

.callout b {
  color: var(--sale-ink);
  font-size: 1.3rem;
  font-weight: 800;
}

.hw {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(102,192,244,.12);
  font-size: .92rem;
  color: var(--muted);
}

.hwgrid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

@media (max-width:820px) {
  .hwgrid {
    grid-template-columns: 1fr;
  }
}

.hwc {
  background: rgba(0,0,0,.22);
  border-radius: 3px;
  border-top: 3px solid #e6edf3;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
}

.hwc h3 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
}

.hwc .d {
  color: var(--blue);
  font-size: .9rem;
  font-weight: 600;
  margin: 2px 0 8px;
}

.hwc p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .92rem;
  flex: 1;
}

.hwc .ln {
  display: flex;
  justify-content: space-between;
  font-size: .95rem;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(143,152,160,.22);
}

.hwc .ln.tot {
  border-bottom: 0;
  padding-top: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.hwc .share {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 1px;
  margin-top: 10px;
}

.hwc .share div {
  height: 100%;
  background: #e6edf3;
  border-radius: 1px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.chip {
  font: inherit;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,.25);
  color: #dcdedf;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 2px;
  padding: 5px 10px;
  cursor: pointer;
}

.chip i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.chip[aria-pressed="false"] {
  opacity: .4;
}

.chip[aria-pressed="false"] i {
  background: transparent!important;
  outline: 1px solid #8f98a0;
}

.chip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.tbl {
  background: rgba(0,0,0,.2);
  border-radius: 3px;
  overflow-x: auto;
}

.tr {
  display: grid;
  grid-template-columns: 42px minmax(220px,1fr) 128px 210px;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  min-height: 34px;
  border-bottom: 1px solid rgba(255,255,255,.035);
  min-width: 600px;
}

.tr:not(.th):nth-child(even) {
  background: rgba(255,255,255,.018);
}

.tr:not(.th):hover {
  background: linear-gradient(90deg,rgba(102,192,244,.16),rgba(102,192,244,.03));
}

.tr.th {
  min-height: 32px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  background: rgba(0,0,0,.25);
}

.tr .rk {
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.tr.top .rk {
  color: var(--blue);
}

.tr .nm {
  color: #dcdedf;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .97rem;
}

.tr .dt {
  color: var(--muted);
  font-size: .92rem;
  white-space: nowrap;
}

.pb {
  display: inline-flex;
  align-items: stretch;
  height: 24px;
  font-weight: 700;
  font-size: .92rem;
}

.pb .p {
  background: var(--sale-bg);
  color: var(--sale-ink);
  padding: 0 6px;
  display: flex;
  align-items: center;
}

.pb .o {
  background: var(--price-bg);
  color: var(--strike);
  text-decoration: line-through;
  font-weight: 500;
  font-size: .8rem;
  padding: 0 6px;
  display: flex;
  align-items: center;
}

.pb .f {
  background: var(--price-bg);
  color: var(--price-ink);
  padding: 0 8px;
  display: flex;
  align-items: center;
  min-width: 62px;
  justify-content: flex-end;
}

.pb.full .f {
  background: transparent;
  color: #fff;
}

.gift {
  display: inline-block;
  background: rgba(197,140,240,.18);
  color: var(--c2);
  border-radius: 2px;
  padding: 0 6px;
  font-size: .8rem;
  font-weight: 700;
  margin-left: 6px;
}

.more {
  display: block;
  margin: 12px auto 0;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg,#06bfff,#2d73ff);
  border: 0;
  border-radius: 2px;
  padding: 9px 22px;
  cursor: pointer;
}

.more:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.bars {
  display: grid;
  gap: 9px;
}

.bar {
  display: grid;
  grid-template-columns: minmax(110px,1.1fr) 2fr auto;
  gap: 10px;
  align-items: center;
  font-size: .95rem;
  color: #dcdedf;
}

.bar .trk {
  height: 10px;
  border-radius: 1px;
  background: rgba(255,255,255,.05);
}

.bar .fl {
  height: 100%;
  border-radius: 1px;
}

.bar .v {
  min-width: 5.5em;
  color: var(--muted);
  text-align: right;
}

.saves {
  display: grid;
  gap: 6px;
}

.save {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,.2);
  padding: 8px 10px;
  border-radius: 2px;
}

.save .l b {
  display: block;
  color: #dcdedf;
  font-weight: 600;
  font-size: .95rem;
}

.save .l span {
  color: var(--muted);
  font-size: .88rem;
}

.notes {
  font-size: .92rem;
  color: var(--muted);
  max-width: 78ch;
  padding-left: 18px;
}

.notes li {
  margin: .35em 0;
}

footer {
  margin-top: 40px;
  color: var(--dim);
  font-size: .88rem;
}

/* product keys */
.ktop {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 10px;
  margin-bottom: 16px;
}

/* games and playtime: 5 or 6 tiles depending on the data, always one row on desktop */
#pTiles {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0,1fr);
}

#pTiles .tile {
  padding: 12px 12px;
}

#pTiles .tile b {
  font-size: clamp(1.2rem,2.2vw,1.9rem);
  white-space: nowrap;
}

@media (max-width:820px) {
  .ktop,
  #pTiles {
    grid-auto-flow: row;
    grid-template-columns: repeat(2,1fr);
  }
}

.sprees {
  display: grid;
  gap: 6px;
}

.spree {
  background: rgba(0,0,0,.2);
  border-radius: 2px;
  padding: 8px 10px;
  border-left: 3px solid #e8b64a;
}

.spree summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.spree summary::-webkit-details-marker {
  display: none;
}

.spree summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.spree b {
  color: #dcdedf;
  font-weight: 600;
  font-size: .95rem;
}

.spree .n {
  color: #e8b64a;
  font-weight: 800;
  white-space: nowrap;
}

.spree .s {
  color: var(--muted);
  font-size: .88rem;
  display: block;
  margin-top: 2px;
}

.spree[open] .s {
  display: none;
}

.spree ul {
  margin: 8px 0 2px;
  padding-left: 18px;
  columns: 2 14em;
  column-gap: 18px;
  font-size: .9rem;
  color: var(--text);
}

.kctl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.kctl input, .kctl select {
  font: inherit;
  font-size: .95rem;
  background: rgba(0,0,0,.3);
  color: #dcdedf;
  border: 1px solid rgba(102,192,244,.25);
  border-radius: 2px;
  padding: 7px 10px;
}

.kctl input {
  flex: 1 1 220px;
  min-width: 0;
}

.kctl input:focus-visible, .kctl select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.kctl .cnt {
  color: var(--muted);
  font-size: .92rem;
  margin-left: auto;
}

.tr.k {
  grid-template-columns: 118px minmax(0,1fr) 170px 128px;
  min-width: 0;
  position: relative;
}

.tr.k .pz {
  color: var(--muted);
}

/* a license missing a value it should have: its date, or the price of something paid for */
.tr.k.miss {
  background: rgba(255,111,111,.08);
  box-shadow: inset 3px 0 0 #ff8f8f;
}

/* a key with no purchase behind it: not in the purchase history and not linked to a 3rd-party purchase */
.tr.k.unacc {
  background: rgba(232,182,74,.07);
  box-shadow: inset 3px 0 0 #e8b64a;
}

.tp.na {
  color: var(--muted);
  border-style: dashed;
  border-color: rgba(143,152,160,.55);
  font-weight: 400;
}

.tr.k .pr {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #dcdedf;
  padding: 4px 0;
}

.src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--text);
  white-space: nowrap;
}

.src i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}

@media (max-width:600px) {
  .tr.k {
    grid-template-columns: auto minmax(0,1fr) auto;
    grid-template-areas: "nm nm nm" "dt sc pr";
    row-gap: 2px;
    column-gap: 10px;
    padding: 7px 10px;
  }
  .tr.k .nm {
    grid-area: nm;
    white-space: normal;
  }
  .tr.k .dt {
    grid-area: dt;
    font-size: .88rem;
  }
  .tr.k .sc {
    grid-area: sc;
  }
  .tr.k .pr {
    grid-area: pr;
    padding: 0;
  }
  .tr.th.k {
    display: none;
  }
  .tr.k .src span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

.tr.k .nm {
  font-weight: 500;
}

.kempty {
  padding: 14px 10px;
  color: var(--muted);
}

.kpct {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: .92rem;
  max-width: 80ch;
}

.kpct b {
  font-weight: 700;
}

.kscroll {
  overflow-x: auto;
}

.kch {
  min-width: 680px;
}

/* section rail */
html {
  scroll-padding-top: calc(env(safe-area-inset-top,0px) + 16px);
}

@media (prefers-reduced-motion:no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.toc {
  position: fixed;
  z-index: 30;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding-left: max(14px,env(safe-area-inset-left,0px));
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 2px 12px 2px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
}

.toc a::before {
  content: "";
  flex: none;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: .55;
  transition: width .15s,opacity .15s;
}

.toc a:hover {
  color: #dcdedf;
}

.toc a:hover::before {
  opacity: 1;
}

.toc a[aria-current="true"] {
  color: var(--blue);
  font-weight: 700;
}

.toc a[aria-current="true"]::before {
  width: 24px;
  opacity: 1;
}

.toc a:focus-visible, .toc-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.toc-btn {
  display: none;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  align-items: center;
  gap: 8px;
  background: var(--nav);
  color: #dcdedf;
  border: 1px solid rgba(102,192,244,.3);
  border-radius: 2px;
  padding: 7px 10px;
  cursor: pointer;
  margin-bottom: 8px;
}

.toc-btn svg {
  width: 16px;
  height: 16px;
}

/* not enough room beside the content: ticks only, labels on hover, focus or tap */
@media (max-width:1479px) {
  .toc-btn {
    display: inline-flex;
  }
  .toc-btn span {
    display: none;
  }
  .toc a span {
    display: none;
  }
  .toc a {
    padding-right: 6px;
  }
  .toc:hover ul, .toc:focus-within ul, .toc.open ul {
    background: #171a21;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
    border: 1px solid rgba(102,192,244,.18);
    border-radius: 3px;
    margin-left: -8px;
    padding: 6px 4px 6px 8px;
  }
  .toc:hover a span, .toc:focus-within a span, .toc.open a span {
    display: inline;
  }
  .toc:hover a, .toc:focus-within a, .toc.open a {
    padding-right: 12px;
  }
}

@media (min-width:761px) and (max-width:1199px) {
  .wrap {
    padding-left: 68px;
  }
}

/* phones: a single button in the corner opens the list */
@media (max-width:760px) {
  .toc {
    top: auto;
    bottom: max(14px,env(safe-area-inset-bottom,0px));
    transform: none;
  }
  .toc-btn {
    margin: 0;
    box-shadow: 0 6px 24px rgba(0,0,0,.5);
  }
  .toc-btn span {
    display: inline;
  }
  .toc ul {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: max(14px,env(safe-area-inset-left,0px));
  }
  .toc.open ul {
    display: grid;
    margin-left: 0;
    padding: 6px 10px;
  }
  .toc a {
    min-height: 36px;
  }
  .wrap {
    padding-bottom: 96px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .toc a::before, .toc a span {
    transition: none;
  }
}

/* upload screen */
[hidden] {
  display: none!important;
}

.intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width:860px) {
  .intro {
    grid-template-columns: 1fr;
  }
}

.intro h1 {
  margin: 0 0 .3em;
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(2.2rem,5.4vw,3.6rem);
  line-height: 1;
  letter-spacing: -.025em;
}

.intro .lead {
  color: var(--text);
  font-size: 1.08rem;
  max-width: 44ch;
  margin: 0 0 22px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: st;
}

.steps li {
  counter-increment: st;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  background: rgba(0,0,0,.22);
  border-radius: 3px;
  padding: 14px 16px 14px 12px;
  border: 1px solid rgba(255,255,255,.04);
}

.steps li::before {
  content: counter(st);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hi);
  color: var(--ink);
  font-weight: 800;
}

.steps b {
  color: #dcdedf;
}

.steps p {
  margin: .25em 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.steps .opt {
  color: var(--muted);
  font-weight: 500;
  font-size: .92rem;
}

.steps a {
  font-weight: 600;
}

kbd {
  font: inherit;
  font-size: .9rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 0 5px;
  color: #dcdedf;
}

.drop {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 10px;
  min-height: 260px;
  padding: 28px 20px;
  border: 2px dashed rgba(102,192,244,.4);
  border-radius: 6px;
  background: linear-gradient(160deg,rgba(42,71,94,.55),rgba(22,32,45,.75));
  cursor: pointer;
  transition: border-color .15s,background .15s;
}

.drop:hover, .drop.over {
  border-color: var(--blue);
  background: linear-gradient(160deg,rgba(42,71,94,.8),rgba(22,32,45,.85));
}

.drop:focus-within {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop svg {
  width: 46px;
  height: 46px;
  color: var(--blue);
}

.drop b {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
}

.drop span {
  color: var(--muted);
  font-size: .95rem;
}

.privacy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .92rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.privacy svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--sale-ink);
}

.flist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.flist li {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 10px;
  align-items: center;
  background: rgba(0,0,0,.25);
  border-radius: 2px;
  padding: 6px 8px 6px 10px;
  font-size: .94rem;
}

.flist .fn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #dcdedf;
}

.flist .ft {
  font-size: .82rem;
  font-weight: 700;
  border-radius: 2px;
  padding: 1px 6px;
  white-space: nowrap;
}

.ft.history {
  background: rgba(102,192,244,.16);
  color: var(--blue);
}

.ft.licenses {
  background: rgba(232,182,74,.16);
  color: #e8b64a;
}

.ft.unknown {
  background: rgba(255,111,111,.14);
  color: #ff8f8f;
}

.flist button {
  font: inherit;
  font-size: .88rem;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
}

.flist button:hover {
  color: #fff;
}

.flist button:focus-visible {
  outline: 2px solid #fff;
}

.msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: .95rem;
}

.msg.warn {
  background: rgba(232,182,74,.12);
  border-left: 3px solid #e8b64a;
  color: #f0d9a8;
}

.msg.err {
  background: rgba(255,111,111,.12);
  border-left: 3px solid #ff8f8f;
  color: #ffc9c9;
}

.go {
  margin-top: 14px;
  width: 100%;
}

.nav .reset {
  margin-left: auto;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: #dcdedf;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
  padding: 6px 12px;
  cursor: pointer;
}

.nav .reset:hover {
  background: rgba(255,255,255,.12);
}

.nav .reset:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.warnbar {
  margin: 0 0 16px;
}

.linkbtn {
  font: inherit;
  font-weight: 700;
  color: var(--blue);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.linkbtn:hover {
  color: #fff;
}

.linkbtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.exline {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .96rem;
}

.rtools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 14px;
}

.rtools .saved {
  margin-right: auto;
  color: var(--muted);
  font-size: .92rem;
}

.tbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: .94rem;
  font-weight: 600;
  color: #dcdedf;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
  padding: 7px 12px;
  cursor: pointer;
}

.tbtn:hover {
  background: rgba(255,255,255,.12);
}

.tbtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.tbtn svg {
  width: 16px;
  height: 16px;
}

.tog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .94rem;
  font-weight: 600;
  color: #dcdedf;
  cursor: pointer;
  padding: 6px 4px;
}

.tog input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.tog .sw {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: #3a4b5c;
  transition: background .15s;
}

.tog .sw::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dcdedf;
  transition: transform .15s;
}

.tog input:checked+.sw {
  background: var(--blue);
}

.tog input:checked+.sw::after {
  transform: translateX(16px);
}

.tog input:focus-visible+.sw {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#shareDlg {
  background: #1b2838;
  color: var(--text);
  border: 1px solid rgba(102,192,244,.25);
  border-radius: 4px;
  padding: 18px;
  width: min(760px,calc(100vw - 32px));
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

#shareDlg::backdrop {
  background: rgba(0,0,0,.7);
}

#shareDlg h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--ink);
}

#shareDlg img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200/630;
  background: #171a21;
  border-radius: 2px;
}

.dlgbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.dlgbtns .more {
  margin: 0;
  width: auto;
}

@media (prefers-reduced-motion:reduce) {
  .tog .sw, .tog .sw::after {
    transition: none;
  }
}

.ft.games {
  background: rgba(190,238,17,.14);
  color: var(--sale-ink);
}

.subh {
  margin: 18px 0 8px;
  font-size: .95rem;
  font-weight: 700;
}

.stdot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: 1px;
}

.vlist {
  display: grid;
  gap: 2px;
}

.vrow {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 14px;
  align-items: baseline;
  padding: 7px 8px;
  border-radius: 2px;
  background: rgba(0,0,0,.18);
}

.vrow:nth-child(odd) {
  background: rgba(0,0,0,.28);
}

.vrow .n {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #dcdedf;
  font-weight: 500;
}

.vrow .h {
  color: var(--blue);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vrow .c {
  color: var(--muted);
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 6.5em;
  text-align: right;
}

.vrow .c b {
  color: var(--sale-ink);
  font-weight: 700;
}

.vempty {
  color: var(--muted);
  margin: 0;
}

.tr.hrs {
  grid-template-columns: 42px minmax(200px,1fr) 118px 84px 210px;
  min-width: 700px;
}

.tr.hrs .hc.z {
  color: var(--muted);
  font-weight: 400;
}

.gmix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lnote {
  margin: -4px 0 16px;
}

.sh p .ln {
  display: block;
}

.kch.wide {
  min-width: 900px;
}

.kch.narrow {
  min-width: 460px;
}

.ch.tall.kch {
  height: 500px;
}

.grid2>* {
  min-width: 0;
}

.tp {
  display: inline-block;
  margin-left: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: #e8b64a;
  border: 1px solid rgba(232,182,74,.45);
  border-radius: 2px;
  padding: 0 5px;
  vertical-align: 1px;
}

.tr.kpr {
  grid-template-columns: 118px minmax(0,1fr) 150px 170px;
  min-width: 0;
}

.tr.kpr .pr {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tr.kpr .st {
  color: var(--muted);
}

.tr.kpr .st.ok {
  color: #9fd3e8;
}

.tr.kpr .st.warn {
  color: #e8b64a;
}

.tr.kpr.ord {
  background: rgba(0,0,0,.28);
  font-size: .9rem;
  color: var(--muted);
}

@media (max-width:600px) {
  .tr.kpr {
    grid-template-columns: auto minmax(0,1fr) auto;
    grid-template-areas: "nm nm nm" "dt st pr";
    row-gap: 2px;
    column-gap: 10px;
    padding: 7px 10px;
  }
  .tr.kpr .nm {
    grid-area: nm;
    white-space: normal;
  }
  .tr.kpr .dt {
    grid-area: dt;
  }
  .tr.kpr .st {
    grid-area: st;
  }
  .tr.kpr .pr {
    grid-area: pr;
  }
  .tr.th.kpr {
    display: none;
  }
}

.sh p .kg {
  color: #e8b64a;
  font-weight: 700;
}

.kpsum {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 14px;
}

.kpsum .ks {
  flex: 1 1 170px;
  background: rgba(0,0,0,.25);
  border-radius: 2px;
  padding: 10px 14px;
  border-top: 3px solid var(--kc,#66c0f4);
}

.kpsum .ks b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.kpsum .ks span {
  color: var(--muted);
  font-size: .9rem;
}

.kpsum .op {
  align-self: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--muted);
}

.kpsum .ks.tot {
  background: rgba(102,192,244,.12);
}

.kpsum .hw {
  flex-basis: 100%;
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

@media (max-width:600px) {
  .kpsum .op {
    display: none;
  }
}

.estm {
  color: var(--muted);
  font-weight: 700;
  margin-right: 6px;
}

.tr .r {
  text-align: right;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tp.gr {
  color: #ff6fa8;
  border-color: rgba(255,111,168,.45);
}

.htot {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  max-width: 560px;
}

.ht {
  display: grid;
  grid-template-columns: 130px auto 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 6px 10px;
  background: rgba(0,0,0,.22);
  border-left: 3px solid var(--hc,#66c0f4);
}

.ht .l {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.ht b {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ht .d {
  color: var(--muted);
  font-size: .84rem;
}

.ht.s {
  --hc: #66c0f4;
}

.ht.k {
  --hc: #e8b64a;
}

.ht.t {
  --hc: #beee11;
  background: rgba(190,238,17,.08);
}

.ht.t b {
  color: #d6f56b;
}

.ht.h {
  --hc: #e6edf3;
  margin-top: 8px;
}

.ht.n {
  --hc: #e8b64a;
}

@media (max-width:600px) {
  .ht {
    grid-template-columns: 1fr auto;
  }
  .ht .d {
    grid-column: 1/-1;
  }
}

.kphead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.kpbtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.msg.ok {
  background: rgba(190,238,17,.1);
  border-left: 3px solid var(--sale-ink);
  color: #e4f7a8;
  margin: 0 0 12px;
}

.kpsug {
  background: rgba(0,0,0,.2);
  border: 1px dashed rgba(232,182,74,.35);
  border-radius: 3px;
  padding: 12px 14px;
  margin: 0 0 14px;
}

.kpsug h4 {
  margin: 0 0 4px;
  color: #e8b64a;
  font-size: .98rem;
}

.sgl {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.sg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,.2);
  padding: 8px 10px;
  border-radius: 2px;
}

.sg b {
  color: #dcdedf;
}

.sg .s {
  display: block;
  color: var(--muted);
  font-size: .86rem;
}

.oedit {
  font: inherit;
  font-size: .8rem;
  color: var(--blue);
  background: none;
  border: 0;
  padding: 0 0 0 8px;
  cursor: pointer;
  text-decoration: underline;
}

.oedit:focus-visible {
  outline: 2px solid #fff;
}

.fdlg {
  background: #1b2838;
  color: var(--text);
  border: 1px solid rgba(102,192,244,.25);
  border-radius: 4px;
  padding: 18px 20px;
  width: min(720px,calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.fdlg::backdrop {
  background: rgba(0,0,0,.7);
}

.fh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.fh h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}

.fh .x {
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 8px;
}

.fh .x:hover {
  color: #fff;
}

.fh .x:focus-visible {
  outline: 2px solid #fff;
}

.fg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fg label, .fgrow label {
  display: grid;
  gap: 4px;
  font-size: .9rem;
  font-weight: 600;
  color: #dcdedf;
}

.fg .w, .fgrow {
  grid-column: 1/-1;
}

.fgrow {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 12px;
}

@media (max-width:600px) {
  .fg, .fgrow {
    grid-template-columns: 1fr;
  }
}

.fdlg input, .fdlg select {
  font: inherit;
  font-size: .95rem;
  font-weight: 400;
  background: rgba(0,0,0,.3);
  color: #dcdedf;
  border: 1px solid rgba(102,192,244,.25);
  border-radius: 2px;
  padding: 7px 9px;
  min-width: 0;
}

.fdlg input:focus-visible, .fdlg select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.kpfs {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 3px;
  margin: 14px 0 0;
  padding: 10px 12px;
}

.kpfs legend {
  font-weight: 700;
  color: #dcdedf;
  padding: 0 6px;
}

.kplist {
  display: grid;
  gap: 2px;
  max-height: 260px;
  overflow: auto;
  margin: 6px 0 10px;
}

.kpick {
  display: grid;
  grid-template-columns: auto 96px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 5px 8px;
  background: rgba(0,0,0,.2);
  border-radius: 2px;
  font-size: .92rem;
  cursor: pointer;
}

.kpick .d {
  color: var(--muted);
  font-size: .85rem;
}

.kpick .n {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #dcdedf;
}

.kpick .s {
  color: var(--muted);
  font-size: .8rem;
}

.kpick.taken {
  opacity: .55;
  cursor: default;
}

#buySearch {
  width: 100%;
}

.kfound {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.kadd {
  font: inherit;
  font-size: .85rem;
  background: rgba(102,192,244,.12);
  color: #dcdedf;
  border: 1px solid rgba(102,192,244,.3);
  border-radius: 2px;
  padding: 4px 8px;
  cursor: pointer;
}

.kadd span {
  color: var(--muted);
}

.kadd:disabled {
  opacity: .45;
  cursor: default;
}

.ferr {
  color: #ffb0b0;
  font-size: .9rem;
  margin-top: 10px;
  min-height: 1em;
}

#impFile {
  margin: 6px 0 12px;
}

.tr.imp {
  grid-template-columns: 110px minmax(0,1fr) 140px 100px;
  min-width: 0;
}

.impbad {
  margin: 8px 0;
  color: var(--muted);
  font-size: .88rem;
}

.impbad summary {
  cursor: pointer;
  color: #e8b64a;
}

/* layout helpers */
.gap-top {
  margin-top: 16px;
}

.gap-bottom {
  margin-bottom: 16px;
}

.note {
  margin: 12px 0 0;
}

.legend.spaced {
  margin-bottom: 10px;
}

.bundle-games {
  display: block;
  font-size: .85rem;
}

/* games list breakdown */
.gmix-wrap {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width:760px) {
  .gmix-wrap {
    grid-template-columns: 1fr;
  }
}

.gmix-wrap .kpct {
  margin: 0;
}

ul.gmix {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

ul.gmix li {
  display: grid;
  grid-template-columns: minmax(0,1fr) 56px 64px;
  gap: 12px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

ul.gmix li .gl {
  color: #dcdedf;
  display: flex;
  align-items: center;
  gap: 10px;
}

ul.gmix li .gl::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--gc);
}

ul.gmix li b {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 700;
}

ul.gmix li.main .gl {
  font-weight: 700;
}

ul.gmix li.main b {
  font-size: 1.25rem;
  color: var(--blue);
}

ul.gmix li.total {
  border-bottom: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 2px;
}

ul.gmix li.total .gl {
  color: var(--muted);
}

ul.gmix li.total .gl::before {
  background: transparent;
}

ul.gmix li.total b {
  color: var(--muted);
}

/* most-gifted bars: thin gaps between colours */
.gbar {
  height: 10px;
  display: flex;
  gap: 2px;
}

.gbar>div {
  border-radius: 1px;
}

.gbar .rest {
  flex: 1;
  background: rgba(255,255,255,.05);
}

/* 3rd-party purchases explanation */
.kpnote .kpct {
  margin: 0 0 6px;
}

.kpmore {
  margin: 0 0 12px;
}

.kpmore summary {
  cursor: pointer;
  color: var(--blue);
  font-size: .9rem;
  font-weight: 600;
}

.kpmore summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.kpmore[open] summary {
  margin-bottom: 6px;
}

ul.gmix li .gp {
  text-align: right;
  color: var(--muted);
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}

/* section titles inside panels stand out from their contents */
.panel h3, .kphead h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.005em;
  margin: 0 0 14px;
}

.kphead h3 {
  margin: 0;
}

.saved {
  color: var(--sale-ink);
  font-weight: 600;
}

.save .l .saved {
  color: var(--sale-ink);
  font-weight: 700;
  font-size: inherit;
  display: inline;
}

/* never played, by source */
.np {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.np-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.np-name {
  color: #dcdedf;
  font-weight: 600;
}

.np-head b {
  color: var(--c);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.np-bar {
  position: relative;
  height: 10px;
  margin: 6px 0 4px;
  border-radius: 2px;
  background: color-mix(in srgb,var(--c) 22%,transparent);
  overflow: visible;
}

.np-bar .never {
  display: block;
  height: 100%;
  border-radius: 2px 0 0 2px;
  background: var(--c);
}

.np-sub {
  color: var(--muted);
  font-size: .85rem;
}

/* hardware cards: column count follows the number of orders */
.hwgrid.cols-1 {
  grid-template-columns: minmax(0,420px);
}

.hwgrid.cols-2 {
  grid-template-columns: repeat(2,1fr);
}

.hwgrid.cols-3 {
  grid-template-columns: repeat(3,1fr);
}

@media (max-width:820px) {
  .hwgrid.cols-2, .hwgrid.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* games list: divider between the list and its explanation */
.gmix-wrap {
  column-gap: 0;
}

.gmix-wrap>.kpct {
  border-left: 1px solid rgba(255,255,255,.12);
  padding-left: 24px;
  margin-left: 24px;
}

@media (max-width:760px) {
  .gmix-wrap>.kpct {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 14px;
    margin-top: 10px;
  }
}

.gmix-wrap {
  align-items: stretch;
}

/* methodology: collapsed by default, + / − toggle */
details.method>summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(102,192,244,.25);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

details.method>summary::-webkit-details-marker {
  display: none;
}

details.method>summary h2 {
  margin: 0;
}

details.method>summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

details.method .plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(102,192,244,.35);
  border-radius: 3px;
}

details.method .plus::before, details.method .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--blue);
  transform: translate(-50%,-50%);
}

details.method .plus::after {
  transform: translate(-50%,-50%) rotate(90deg);
  transition: transform .15s;
}

details.method[open] .plus::after {
  transform: translate(-50%,-50%) rotate(0deg);
}

details.method>summary:hover .plus {
  background: rgba(102,192,244,.1);
}

@media (prefers-reduced-motion:reduce) {
  details.method .plus::after {
    transition: none;
  }
}

.tr.hrs .hc {
  color: var(--blue);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  line-height: 1.15;
}

.hc-sub {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 400;
}

.bars.scrolls {
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(102,192,244,.35) transparent;
}

.savedline {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

/* best/worst value lists line up even when their subtext wraps differently */
.vpanel {
  display: flex;
  flex-direction: column;
}

.vpanel .vlist {
  margin-top: auto;
}

.vpanel .kpct {
  margin-bottom: 12px;
}


/* reports saved in this browser, on the upload screen */
.rlist {
  margin-top: 16px;
}

.rlist h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.rlist .kpct {
  margin: 2px 0 8px;
}

.ritem {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  padding: 9px 12px;
  border-left: 3px solid transparent;
  border-radius: 3px;
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-size: .95rem;
  cursor: pointer;
}

.ritem:hover {
  background: rgba(0,0,0,.35);
}

.ritem.on {
  background: rgba(190,238,17,.1);
  border-left-color: var(--sale-ink);
  color: #e4f7a8;
}

.ritem input {
  margin: 0;
  accent-color: var(--sale-ink);
}

.ritem .rtxt {
  min-width: 0;
}

.ritem .rtxt b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

.ritem .rtxt span {
  font-size: .86rem;
  color: var(--muted);
}

.ritem.on .rtxt span {
  color: #cfe3a0;
}

.ritem .ract {
  white-space: nowrap;
  font-size: .9rem;
}

.ft.report {
  background: rgba(182,156,255,.16);
  color: #b69cff;
}

footer a {
  color: var(--muted);
  text-underline-offset: 3px;
}

footer a:hover {
  color: #fff;
}
