/* ================= tokens ================= */
:root {
  --paper: #EAE4D5;
  --paper2: #F4EFE3;
  --paper3: #DDD4BF;
  --line: #D2C8B0;
  --line2: #BFB49A;
  --ink: #241F15;
  --mut: #7E7460;
  --dim: #A29878;
  --pop: #00A45C;
  --pop-ink: #067A45;
  --disp: "Baloo 2", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  font-family: var(--body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--ink);
  color: var(--paper2)
}

a {
  color: var(--ink)
}

img {
  max-width: 100%
}

kbd {
  font-family: var(--mono);
  font-size: .8em;
  border: 1.5px solid var(--line2);
  border-bottom-width: 3px;
  border-radius: 5px;
  padding: 1px 5px;
  background: var(--paper2)
}

code {
  font-family: var(--mono);
  font-size: .85em;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px
}

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px
}

/* ================= header ================= */
.top {
  display: flex;
  align-items: baseline;
  gap: 26px;
  flex-wrap: wrap;
  padding: 18px 30px 8px;
  max-width: 1180px;
  margin: 0 auto
}

.wordmark {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-block;
  margin-left: 3px;
  transition: transform .3s cubic-bezier(.34, 1.8, .5, 1)
}

.wordmark:hover .dot {
  transform: scale(1.5, .6)
}

.top nav {
  display: flex;
  gap: 20px
}

.top nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--mut);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2.5px solid transparent;
  transition: .15s
}

.top nav a:hover {
  color: var(--ink)
}

.top nav a.on {
  color: var(--ink);
  border-bottom-color: var(--ink)
}

.enc {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--mut)
}

.enc .no {
  opacity: .45
}

/* ================= layout ================= */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 30px 70px
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  grid-template-areas: "copy deck" "press deck" "results deck";
  column-gap: 44px;
  align-items: start;
  padding-top: 28px;
}

.stage-copy {
  grid-area: copy;
  max-width: 640px
}

.press-zone {
  grid-area: press
}

.deck {
  grid-area: deck
}

.results {
  grid-area: results;
  margin-top: 34px;
  min-width: 0
}

.stage-copy h1 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -.01em
}

.lede {
  margin-top: 12px;
  font-size: .95rem;
  color: var(--mut);
  max-width: 52ch
}

.lede b,
.lede strong {
  color: var(--ink)
}

/* ================= press / blob ================= */
.press-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 8px
}

.press {
  position: relative;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .28s cubic-bezier(.34, 1.56, .5, 1);
  transform-origin: 50% 85%
}

.press:hover {
  transform: scale(1.015, .988)
}

.blob-wrap {
  display: inline-block;
  transform-origin: 50% 100%
}

.blob {
  position: relative;
  width: min(360px, 76vw);
  aspect-ratio: 360/260;
  color: var(--pop);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 100%;
  will-change: transform
}

.blob svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible
}

.blob-label {
  position: relative;
  z-index: 1;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  color: #0E2A1C;
  padding: 0 40px;
  line-height: 1.25;
  text-align: center
}

.press.hot {
  transform: translateY(10px) scale(1.16, .8)
}

.press.busy {
  transform: translateY(6px) scale(1.1, .86)
}

.press.busy .blob svg {
  animation: tremble .55s ease-in-out infinite
}

@keyframes tremble {

  0%,
  100% {
    transform: scale(1, 1)
  }

  25% {
    transform: scale(1.015, .982)
  }

  75% {
    transform: scale(.985, 1.015)
  }
}

.blob-shadow {
  width: 62%;
  height: 20px;
  margin: 14px auto 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 50, 25, .28), transparent 72%);
  transform-origin: center;
  will-change: transform
}

.press-hint {
  margin-top: 16px;
  font-size: .78rem;
  color: var(--dim)
}

/* ================= settings deck ================= */
.deck {
  align-self: start;
  position: sticky;
  top: 16px;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-height: calc(100vh - 32px);
  overflow: auto
}

.deck summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: sticky;
  top: 0;
  background: var(--paper2);
  z-index: 1
}

.deck summary::-webkit-details-marker {
  display: none
}

.deck summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--ink)
}

.deck[open] summary::after {
  content: "–"
}

.deck-body {
  padding: 2px 20px 20px
}

.ctl {
  margin-bottom: 20px
}

.ctl:last-child {
  margin-bottom: 0
}

.lbl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 8px
}

.lbl output {
  font-family: var(--mono);
  color: var(--ink);
  font-size: .82rem
}

.hint {
  font-size: .76rem;
  color: var(--dim);
  margin-top: 7px;
  line-height: 1.45
}

.hint-inline {
  font-size: .74rem;
  color: var(--dim)
}

.fmtlist {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.fmt {
  display: grid;
  grid-template-columns: 16px auto 1fr;
  align-items: baseline;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s
}

.fmt:hover {
  background: var(--paper)
}

.fmt input {
  accent-color: var(--ink)
}

.fname {
  font-weight: 600;
  font-size: .92rem
}

.fnote {
  font-size: .72rem;
  color: var(--dim);
  text-align: right
}

.fmt:has(input:checked) {
  background: var(--paper3)
}

.qrow {
  display: flex;
  align-items: center;
  gap: 12px
}

.qrow input[type=range] {
  flex: 1;
  accent-color: var(--pop);
  cursor: pointer
}

.qblob {
  position: relative;
  width: 52px;
  height: 44px;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center
}

.qblob-b {
  display: block;
  width: 38px;
  height: 30px;
  background: var(--pop);
  border-radius: 47% 53% 50% 50%/58% 56% 44% 42%;
  transform-origin: 50% 100%;
  will-change: transform
}

.qblob-s {
  position: absolute;
  bottom: -5px;
  left: 15%;
  width: 70%;
  height: 6px;
  border-radius: 50%;
  background: rgba(60, 50, 25, .22)
}

input[type=range] {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer
}

input[type=range]:disabled {
  opacity: .35;
  cursor: not-allowed
}

select,
input[type=number] {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: .88rem;
  width: 100%
}

input[type=number] {
  width: 104px
}

select:hover,
input[type=number]:hover {
  border-color: var(--mut)
}

.subwrap {
  margin-top: 10px
}

.inline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .86rem;
  color: var(--mut)
}

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

.minis button {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--mut);
  background: transparent;
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 3px 9px;
  cursor: pointer;
  transition: .15s
}

.minis button:hover {
  color: var(--ink);
  border-color: var(--ink)
}

.chk {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .86rem;
  color: var(--mut);
  padding: 6px 0;
  cursor: pointer
}

.chk input {
  accent-color: var(--ink);
  width: 15px;
  height: 15px
}

.chk:hover {
  color: var(--ink)
}

input[type=color] {
  width: 32px;
  height: 24px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  background: none;
  padding: 1px;
  cursor: pointer
}

/* ================= buttons ================= */
.btn {
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line2);
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  will-change: transform
}

.btn:hover {
  border-color: var(--ink);
  background: var(--paper2)
}

.btn.prime {
  background: var(--pop);
  border-color: var(--pop);
  color: #0E2A1C
}

.btn.prime:hover {
  background: #00B767;
  border-color: #00B767
}

.btn.wide {
  width: 100%;
  margin-top: 8px
}

.btn.big {
  font-size: 1rem;
  padding: 13px 26px;
  display: inline-block
}

.ib {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  color: var(--mut);
  background: transparent;
  border: 1.5px solid var(--line2);
  border-radius: 8px;
  cursor: pointer;
  transition: .15s;
  will-change: transform
}

.ib:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--ink)
}

.ib:disabled {
  opacity: .3;
  cursor: default
}

/* ================= queue ================= */
.empty {
  color: var(--dim);
  font-size: .9rem;
  padding: 24px 4px
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px
}

.thumb {
  width: 58px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper3);
  border: 1px solid var(--line);
  transform-origin: 50% 100%;
  will-change: transform
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.name {
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.sub {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 3px;
  flex-wrap: wrap
}

.badge {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .09em;
  border: 1px solid var(--line2);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--mut)
}

.dims {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--dim)
}

.status {
  font-size: .74rem;
  color: var(--dim);
  font-style: italic
}

.nums {
  text-align: right;
  min-width: 175px
}

.sizes {
  font-family: var(--mono);
  font-size: .8rem
}

.sizes .from {
  color: var(--mut)
}

.sizes .arr {
  color: var(--dim);
  margin: 0 6px
}

.sizes .to {
  color: var(--ink);
  font-weight: 600
}

.save {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  margin-top: 2px;
  color: var(--dim)
}

.save.good {
  color: var(--ink)
}

.acts {
  display: flex;
  gap: 6px
}

.totals {
  position: sticky;
  bottom: 14px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--paper2);
  border: 1.5px solid var(--line2);
  border-radius: 12px;
  padding: 13px 18px;
  box-shadow: 0 10px 28px rgba(60, 50, 25, .14)
}

.tstats {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: var(--mut)
}

.tstats b {
  font-family: var(--mono);
  color: var(--ink);
  font-weight: 600
}

.tstats .arr {
  color: var(--dim)
}

.tacts {
  display: flex;
  gap: 9px
}

/* ================= footer ================= */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: .8rem;
  max-width: 1180px;
  margin: 0 auto
}

footer a {
  color: var(--mut)
}

/* ================= compare modal ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(48, 40, 22, .55)
}

.modal[hidden] {
  display: none
}

.mbox {
  max-width: min(960px, 94vw);
  width: 100%
}

.mhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px
}

.mtitle {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.05rem
}

.mtitle .hint-inline {
  font-family: var(--body);
  font-weight: 400
}

.cmp {
  position: relative;
  border: 1.5px solid var(--line2);
  border-radius: 12px;
  overflow: hidden;
  background: #141210;
  cursor: ew-resize;
  touch-action: none;
  line-height: 0
}

.cmp img {
  display: block;
  width: 100%;
  object-fit: contain
}

.cmp>img {
  max-height: 66vh
}

.cmp-top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0)
}

.cmp-top img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.cmp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--paper2)
}

.knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  will-change: transform
}

.cmp-tag {
  position: absolute;
  font-family: var(--mono);
  font-size: .66rem;
  background: rgba(20, 18, 14, .78);
  border-radius: 6px;
  padding: 4px 9px;
  color: var(--paper3);
  line-height: 1.4;
  pointer-events: none;
  max-width: 70%
}

.cmp-tag.tl {
  top: 10px;
  left: 10px
}

.cmp-tag.br {
  bottom: 10px;
  right: 10px;
  color: #7CE3A8
}

/* ================= guide ================= */
.gmain {
  max-width: 920px
}

.intro {
  padding: 26px 0 8px
}

.kicker {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 12px
}

.gmain .intro h1 {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em
}

.gmain .lede {
  margin-top: 16px;
  font-size: 1.02rem;
  color: var(--mut);
  max-width: 62ch
}

.gsec {
  margin: 56px 0
}

.gsec h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.55rem;
  margin-bottom: 14px
}

.gsec p {
  color: var(--mut)
}

.gsec p b {
  color: var(--ink)
}

.gsec p+p {
  margin-top: 12px
}

/* weigh-in */
.weighin {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  height: 220px;
  border-bottom: 2px solid var(--ink);
  padding: 0 8px;
  margin-top: 40px
}

.wblock {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center
}

.wblock i {
  display: block;
  width: min(74px, 100%);
  height: 0;
  background: var(--ink);
  border-radius: 9px 9px 0 0;
  position: relative;
  transform-origin: 50% 100%
}

.wblock i span {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--mut);
  white-space: nowrap
}

.wblock i b {
  font-weight: 600;
  color: var(--ink)
}

/* format cards */
.tldr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 14px;
  margin-top: 16px
}

.tldr-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px
}

.tl-body b {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--ink)
}

.tl-what {
  display: block;
  font-size: .86rem;
  color: var(--mut);
  line-height: 1.5;
  margin-top: 3px
}

.tl-meta {
  display: block;
  font-family: var(--mono);
  font-size: .64rem;
  color: var(--dim);
  margin-top: 8px;
  line-height: 1.7
}

.tl-meta b {
  color: var(--ink);
  font-weight: 600;
  font-size: .64rem;
  letter-spacing: .05em
}

.glyph {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  position: relative;
  margin-top: 2px
}

.g-photo {
  position: absolute;
  inset: 5px 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, #C9BEA4, #DDD4BF);
  overflow: hidden
}

.g-sun {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink)
}

.g-mt {
  position: absolute;
  bottom: -2px;
  left: 2px;
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 13px solid var(--ink);
  opacity: .72
}

.g-blur {
  filter: blur(2px);
  opacity: 0
}

.g-checker {
  position: absolute;
  inset: 5px 10px;
  border-radius: 6px;
  background: repeating-conic-gradient(#DDD4BF 0% 25%, #F4EFE3 0% 50%) 0 0/10px 10px
}

.g-drop {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 19px;
  height: 16px;
  background: var(--ink);
  border-radius: 47% 53% 50% 50%/58% 56% 44% 42%;
  transform: translate(-50%, -50%)
}

.g-ghost {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 11px;
  transform: translateY(-50%);
  border: 1.5px dashed var(--line2);
  border-radius: 6px
}

.g-bar {
  position: absolute;
  left: 10px;
  top: 50%;
  height: 11px;
  transform: translateY(-50%);
  width: 44px;
  background: var(--ink);
  border-radius: 6px
}

.g-frame {
  position: absolute;
  inset: 7px 15px;
  border-radius: 6px;
  background: var(--ink)
}

.g-tri {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid var(--ink);
  transform: translate(-50%, -58%)
}

/* pixel demo */
.pixdemo {
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
  align-items: center
}

.pix-toggle {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.ptab {
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  color: var(--mut);
  background: transparent;
  border: 1.5px solid var(--line2);
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  text-align: left;
  transition: .15s;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px
}

.ptab small {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim)
}

.ptab:hover {
  color: var(--ink);
  border-color: var(--ink)
}

.ptab.on {
  color: var(--paper2);
  background: var(--ink);
  border-color: var(--ink)
}

.ptab.on small {
  color: var(--paper3)
}

.pix-meter {
  height: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  margin: 16px 0 10px
}

.pix-meter i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--ink);
  border-radius: 6px
}

.pix-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  width: min(290px, 100%);
  aspect-ratio: 1;
  margin: 0 auto
}

.pix-grid div {
  border-radius: 3px
}

/* widgets / tables */
.widget {
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-top: 16px
}

.wtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap
}

.wtab {
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: var(--mut);
  background: transparent;
  border: 1.5px solid var(--line2);
  border-radius: 99px;
  padding: 7px 16px;
  cursor: pointer;
  transition: .15s
}

.wtab:hover {
  color: var(--ink);
  border-color: var(--ink)
}

.wtab.on {
  color: var(--paper2);
  background: var(--ink);
  border-color: var(--ink)
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 11px
}

.brow {
  display: grid;
  grid-template-columns: 150px 1fr 90px;
  gap: 14px;
  align-items: center
}

.bl {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--mut)
}

.bl em {
  font-style: normal;
  color: var(--pop-ink);
  font-size: .66rem;
  margin-left: 6px
}

.btrack {
  display: block;
  height: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden
}

.btrack i {
  display: block;
  height: 100%;
  width: 0;
  background: rgba(36, 31, 21, .28)
}

.btrack i.win {
  background: var(--ink)
}

.bs {
  font-family: var(--mono);
  font-size: .78rem;
  text-align: right
}

.pg {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  align-items: start
}

.pg-controls .lbl {
  margin-top: 14px
}

.pg-controls .lbl:first-child {
  margin-top: 0
}

.pg-size {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 18px
}

.pg-view {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #141210;
  line-height: 0
}

.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper2)
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .89rem;
  min-width: 520px
}

th {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--line)
}

td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--mut)
}

tr:last-child td {
  border-bottom: 0
}

td:first-child {
  color: var(--ink);
  font-weight: 500
}

.cta {
  text-align: center;
  padding: 48px 20px;
  border: 1.5px dashed var(--line2);
  border-radius: 14px
}

.cta p {
  margin-bottom: 20px
}

/* ================= reveals & responsive & motion ================= */
.rev {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease
}

.rev.in {
  opacity: 1;
  transform: none
}

@media (max-width:980px) {
  .workbench {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px
  }

  .deck {
    position: static;
    max-height: none;
    overflow: visible
  }

  .press-zone {
    padding: 22px 0 4px
  }

  .results {
    margin-top: 26px
  }

  .pixdemo {
    grid-template-columns: 1fr
  }

  .pg {
    grid-template-columns: 1fr
  }

  .enc {
    margin-left: 0;
    width: 100%
  }
}

@media (max-width:680px) {
  .top {
    padding: 14px 16px 6px;
    gap: 10px 18px
  }

  main {
    padding: 0 16px 56px
  }

  footer {
    padding: 20px 16px
  }

  .top nav {
    gap: 16px
  }

  .row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 10px 12px
  }

  .thumb {
    width: 52px;
    height: 40px;
    grid-column: 1;
    grid-row: 1
  }

  .meta {
    grid-column: 2/4;
    grid-row: 1
  }

  .nums {
    grid-column: 1/3;
    grid-row: 2;
    min-width: 0;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap
  }

  .save {
    margin-top: 0
  }

  .acts {
    grid-column: 3;
    grid-row: 2;
    align-self: center
  }

  .totals {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px
  }

  .tacts {
    width: 100%
  }

  .tacts .btn {
    flex: 1
  }

  .brow {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 6px 10px
  }

  .bl {
    grid-column: 1/-1
  }

  .modal {
    padding: 14px
  }

  .mtitle {
    font-size: .95rem
  }

  .mtitle .hint-inline {
    display: none
  }

  .cmp-tag {
    font-size: .58rem;
    padding: 3px 7px
  }

  .weighin {
    height: 170px;
    gap: 12px;
    margin-top: 28px
  }

  .wblock i span {
    font-size: .58rem
  }

  .widget {
    padding: 16px
  }

  .deck summary {
    padding: 14px 16px
  }

  .deck-body {
    padding: 2px 16px 16px
  }

  .gsec {
    margin: 44px 0
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  ::before,
  ::after {
    animation: none !important;
    transition: none !important
  }

  .rev {
    opacity: 1;
    transform: none
  }

  html {
    scroll-behavior: auto
  }
}