:root {
  --bg: #f4f2ec;
  --card: #ffffff;
  --ink: #17181c;
  --soft: #7d7f88;
  --line: #ebe9e2;
  --accent: #f0731f;
}

*, *::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 {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 16px;
}

.card {
  width: min(324px, 100%);
  padding: 18px 18px 10px;
  border-radius: 24px;
  background: var(--card);
  box-shadow:
    0 0 0 1px rgba(23, 24, 28, 0.05),
    0 1px 2px rgba(23, 24, 28, 0.05),
    0 18px 36px -18px rgba(23, 24, 28, 0.22),
    0 44px 70px -44px rgba(23, 24, 28, 0.28);
}

.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.head__eyebrow { height: 18px; overflow: hidden; font-size: 12.5px; line-height: 18px; font-weight: 560; color: var(--soft); white-space: nowrap; }
.head__eyebrow span, .head__total span { display: block; }
.head__total { height: 40px; overflow: hidden; margin-top: 2px; font-size: 34px; line-height: 40px; font-weight: 680; font-stretch: 96%; letter-spacing: -0.03em; white-space: nowrap; }
.head__chip { flex: none; display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 7px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); font-size: 12px; font-weight: 640; white-space: nowrap; }
.head__chip svg { width: 14px; height: 14px; fill: var(--accent); }

.bar { display: block; width: 100%; height: 16px; margin-top: 14px; overflow: visible; }
.bar rect { cursor: pointer; }

.rows { list-style: none; margin-top: 10px; }
.row { position: relative; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px; margin: 0 -8px; border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color 0.25s ease, opacity 0.3s ease; }
.row + .row::before { content: ""; position: absolute; left: 8px; right: 8px; top: 0; height: 1px; background: var(--line); transition: opacity 0.25s ease; }
.row.is-on { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.row.is-on::before, .row.is-on + .row::before { opacity: 0; }
.rows.is-picking .row:not(.is-on) { opacity: 0.45; }
.row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.row__key { flex: none; width: 10px; height: 10px; border-radius: 3.5px; background: var(--accent); }
.row__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__share { font-size: 12px; font-weight: 520; color: var(--soft); }
.row__amount { min-width: 54px; font-size: 14px; font-weight: 640; text-align: right; }

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

@media (min-width: 900px) and (min-height: 680px) {
  .card { zoom: 1.3; }
}
@media (max-height: 420px) {
  .card { padding: 14px 16px 6px; }
  .row { height: 36px; }
}
