:root {
  --bg: #000000;
  --card: #0f1311;
  --ink: #eef3ef;
  --soft: rgba(238, 243, 239, 0.52);
  --line: rgba(238, 243, 239, 0.09);
  --accent: #6ee7a8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 16px;
}

.ps {
  width: min(336px, 100%);
  padding: 14px 15px 8px;
  border-radius: 28px;
  background: linear-gradient(180deg, #161c18 0%, var(--card) 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 30px 60px -30px color-mix(in srgb, var(--accent) 34%, transparent);
}
.ps__head { display: flex; align-items: center; gap: 8px; height: 26px; }
.ps__title { font-size: 15px; font-weight: 680; font-stretch: 108%; letter-spacing: -0.008em; }
.ps__month { margin-right: auto; height: 22px; padding: 0 9px; border-radius: 11px; background: rgba(238, 243, 239, 0.07); font-size: 11.5px; line-height: 22px; font-weight: 620; color: var(--soft); }
.ps__eye { display: grid; place-items: center; width: 30px; height: 30px; margin-right: -4px; border: 0; border-radius: 15px; background: none; color: var(--soft); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: color 0.25s ease, background-color 0.25s ease; }
.ps__eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; }
.ps__strike { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ps__eye[aria-pressed="true"] { color: var(--ink); }
.ps__eye:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }

.ps__read { margin-top: 4px; }
.ps__label { display: block; height: 16px; overflow: hidden; font-size: 11.5px; line-height: 16px; font-weight: 600; color: var(--soft); }
.ps__label span { display: block; }
.ps__num { display: block; height: clamp(40px, 12vh, 48px); font-size: clamp(34px, 10.500vh, 42px); line-height: clamp(40px, 12vh, 48px); font-weight: 400; letter-spacing: -0.03em; font-variation-settings: "wght" var(--w, 620), "wdth" 96; white-space: nowrap; }
/* hidden amounts: the figures blur into soft bars, they are not replaced by symbols */
.amt { transition: filter 0.35s ease, opacity 0.35s ease; }
.ps.is-hidden .amt { filter: blur(9px); opacity: 0.6; }

/* the bar is the gross pay: the first piece is what stays, the others are what goes */
.ps__bar { display: flex; height: 12px; margin-top: clamp(6px, 2vh, 10px); }
.ps__bar i { display: block; height: 100%; min-width: 0; background: var(--accent); transition: opacity 0.25s ease; transform-origin: 50% 50%; }
.ps__bar i:first-child { border-radius: 6px 0 0 6px; }
.ps__bar i:last-child { border-radius: 0 6px 6px 0; }
.ps.has-pick .ps__bar i:not(.is-pick) { opacity: 0.28; }

.ps__rows { margin-top: clamp(6px, 2vh, 10px); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 9px;
  width: 100%;
  height: clamp(27px, 7.600vh, 32px);
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.row__name { font-size: 12.5px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.25s ease; }
.row__amt { font-size: 12.5px; font-weight: 660; white-space: nowrap; }
.row.is-net .row__name, .row.is-net .row__amt { font-weight: 700; }
.ps.has-pick .row:not(.is-pick) .row__name { opacity: 0.45; }
.row:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 8px; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #eef3ef;
  stroke: #000000;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (hover: hover) {
  .ps__eye:hover { color: var(--ink); background: rgba(238, 243, 239, 0.07); }
}
