:root {
  --bg: #0E0F12;
  --text: #F2F4F8;
  --panel: #191B21;
  --line: #262A33;
  --muted: #8A93A3;
  --dim: #6E7787;
  --dimmer: #5D6675;
  --faint: #4A515E;
  --blue: #0166FF;
  --blue-light: #3D93FF;
  --green: #37C77F;
  --surface: #141720;
  --surface-line: #242832;
  --nav-bg: #111318;
  --nav-line: #1E222A;
  --skeleton: #20242C;
  --skeleton-dark: #1B1F27;
  --skeleton-light: #2A2F3A;
  --price-flat: #20242C;
  --price-flat-line: #2C313B;
  --price-flat-text: #A8B0BE;
  --pad: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  color: inherit;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

input {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  min-width: 0;
}

.ic {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-gram { fill: none; stroke: none; }
.ic-w22 { stroke-width: 2.2; }
.ic-w26 { stroke-width: 2.6; }
.ic-w3 { stroke-width: 3; }

.screen {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.glow {
  position: absolute;
  top: -190px;
  left: -90px;
  width: 420px;
  height: 360px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(1, 102, 255, .30), rgba(1, 102, 255, 0) 72%);
  pointer-events: none;
}

.dots {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  opacity: .5;
  background-image: radial-gradient(rgba(120, 175, 255, .22) 1px, transparent 1px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(100% 100% at 100% 0, #000, transparent 70%);
  mask-image: radial-gradient(100% 100% at 100% 0, #000, transparent 70%);
  pointer-events: none;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px var(--pad) 12px;
}

.topbar-split {
  justify-content: space-between;
  gap: 8px;
  padding: 14px var(--pad) 10px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.pill .ic { width: 13px; height: 13px; color: var(--green); }

.pill-wallet {
  gap: 8px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  min-width: 0;
}

.pill-wallet .ic { width: 15px; height: 15px; color: var(--muted); }

.pill-count {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
}

.head {
  position: relative;
  padding: 2px var(--pad) 16px;
}

.head-tight { padding-bottom: 14px; }

.title-progress {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.title-total {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 9px;
}

.progress-track {
  height: 7px;
  border-radius: 99px;
  background: var(--panel);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width .35s ease;
}

.progress-track.pending .progress-fill {
  width: 38%;
  animation: slide 1.4s ease-in-out infinite;
}

@keyframes slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(263%); }
}

.tabs {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 2px var(--pad) 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.022em;
}

.tabs button { color: var(--faint); padding: 0; }
.tabs button.on { color: var(--text); }

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 var(--pad) 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
}

.search .ic { width: 17px; height: 17px; color: var(--dimmer); }

.search input {
  flex-grow: 1;
  font-size: 15px;
  color: var(--text);
}

.search input::placeholder { color: var(--dimmer); }

.grid {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 var(--pad);
  flex-grow: 1;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.grid-fade {
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
}

.grid-fade-high {
  -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent);
  mask-image: linear-gradient(180deg, #000 76%, transparent);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 7px;
  position: relative;
  width: 100%;
  display: block;
  align-self: start;
}

.card.on {
  border: 1.5px solid var(--blue);
  padding: 6.5px;
}

.mark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: var(--blue);
  display: grid;
  place-items: center;
  z-index: 2;
  color: #fff;
}

.mark .ic { width: 13px; height: 13px; }

.tile {
  border-radius: 12px;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-letter {
  position: relative;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 7px 15px rgba(0, 0, 0, .5);
}

.tile-small { border-radius: 9px; }
.tile-small .tile-letter { font-size: 16px; }

.card-name {
  font-size: 13.5px;
  font-weight: 600;
  margin: 8px 3px 2px;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-sub {
  font-size: 11px;
  color: var(--dim);
  margin: 0 3px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price {
  background: linear-gradient(160deg, var(--blue-light), var(--blue));
  border-radius: 10px;
  padding: 8px 9px;
  color: #fff;
  text-align: center;
}

.price-rub {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.15;
}

.price-ton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: rgba(255, 255, 255, .72);
  margin-top: 1px;
}

.price-ton .ic { width: 10px; height: 10px; }

.price-flat {
  background: var(--price-flat);
  border: 1px solid var(--price-flat-line);
  color: var(--price-flat-text);
}

.price-flat .price-ton { color: var(--dim); }

.skeleton {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 7px;
}

.skeleton-tile {
  border-radius: 12px;
  aspect-ratio: 1;
  background: linear-gradient(100deg, var(--skeleton) 30%, var(--skeleton-light) 50%, var(--skeleton) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.skeleton-line {
  height: 11px;
  width: 72%;
  border-radius: 5px;
  background: var(--skeleton);
  margin: 9px 3px 6px;
}

.skeleton-line-thin {
  height: 9px;
  width: 46%;
  border-radius: 5px;
  background: var(--skeleton-dark);
  margin: 0 3px 9px;
}

.skeleton-price {
  height: 32px;
  border-radius: 10px;
  background: var(--skeleton);
}

.footer {
  position: relative;
  padding: 13px var(--pad) 16px;
  background: linear-gradient(0deg, var(--bg) 72%, rgba(14, 15, 18, 0));
}

.footer-total { padding-top: 14px; }
.footer-plain { background: none; }

.footer-hint {
  text-align: center;
  font-size: 13px;
  color: var(--dim);
  padding: 6px;
}

.total-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.total-label {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 3px;
}

.total-rub {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}

.total-ton {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  color: var(--muted);
  padding-bottom: 4px;
  white-space: nowrap;
}

.total-ton .ic { width: 12px; height: 12px; }

.cta {
  width: 100%;
  background: linear-gradient(160deg, var(--blue-light), var(--blue));
  border-radius: 13px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  box-shadow: 0 8px 24px rgba(1, 102, 255, .35);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
  text-align: center;
}

.cta[disabled] {
  background: var(--price-flat);
  border: 1px solid var(--price-flat-line);
  color: var(--dimmer);
  box-shadow: none;
  cursor: default;
}

.nav {
  display: flex;
  border-top: 1px solid var(--nav-line);
  background: var(--nav-bg);
  padding: 9px 6px 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  position: relative;
}

.nav button {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--dimmer);
  font-size: 10.5px;
  font-weight: 500;
  padding: 0;
}

.nav button.on { color: var(--blue); }
.nav .ic { width: 21px; height: 21px; }

.back-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px var(--pad) 12px;
}

.back-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.back-head button { padding: 0; display: flex; color: var(--text); }
.back-head .ic { width: 20px; height: 20px; }

.back-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.022em;
}

.step-mark {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.body {
  padding: 0 var(--pad);
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

.steps {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 20px;
  padding: 18px 17px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  flex: 0 0 auto;
}

.step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.step-bullet {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
}

.step-bullet.done { background: var(--green); color: var(--bg); }
.step-bullet.done .ic { width: 15px; height: 15px; }
.step-bullet.now { background: var(--blue); box-shadow: 0 0 0 5px rgba(1, 102, 255, .18); color: #fff; }
.step-bullet.next { border: 1.5px solid #303643; color: var(--faint); }

.step-text { padding-top: 2px; }

.step-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.step.done .step-name { color: var(--muted); }
.step.now .step-name { color: var(--text); }
.step.next .step-name { color: var(--dimmer); }

.step-note {
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 3px;
  line-height: 1.45;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px 8px 8px;
  min-width: 0;
}

.row-thumb { width: 34px; height: 34px; flex: 0 0 auto; }

.row-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-spacer { flex-grow: 1; }

.row-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
}

.note {
  display: flex;
  gap: 10px;
  background: rgba(1, 102, 255, .07);
  border: 1px solid rgba(1, 102, 255, .20);
  border-radius: 15px;
  padding: 13px 15px;
  flex: 0 0 auto;
}

.note .ic { width: 16px; height: 16px; color: var(--blue-light); }

.note div {
  font-size: 12.5px;
  color: #9FC4FF;
  line-height: 1.45;
}

.blank {
  position: relative;
  flex-grow: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px var(--pad) 40px;
  text-align: center;
}

.blank-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.022em;
}

.blank-note {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.45;
  max-width: 300px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.page-head {
  position: relative;
  padding: 18px var(--pad) 6px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.pane {
  position: relative;
  padding: 0 var(--pad);
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.pane-profile { gap: 13px; }
.pane-methods { gap: 10px; }
.pane-details { gap: 14px; }
.pane-card { gap: 12px; }

.pane-center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mark-eye {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  flex: 0 0 auto;
}

.mark-eye .ic { width: 34px; height: 34px; color: var(--faint); }

.hero-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 8px;
}

.hero-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 30ch;
}

.howto {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 18px;
  padding: 17px 16px;
  margin-top: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 0 0 auto;
}

.howto-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.howto-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(1, 102, 255, .16);
  color: #9FC4FF;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  flex: 0 0 auto;
}

.howto-text {
  font-size: 14px;
  line-height: 1.45;
  color: #C4CBD6;
  padding-top: 2px;
}

.balance {
  background: linear-gradient(158deg, rgba(1, 102, 255, .20), rgba(1, 102, 255, .05));
  border: 1px solid rgba(1, 102, 255, .28);
  border-radius: 20px;
  padding: 18px;
  flex: 0 0 auto;
}

.balance-label {
  font-size: 12.5px;
  color: #9FC4FF;
  margin-bottom: 5px;
}

.balance-rub {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1;
}

.balance-ton {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #9FC4FF;
  margin-top: 6px;
}

.balance-ton .ic { width: 11px; height: 11px; }
.balance .cta { margin-top: 15px; }

.stats {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.stat {
  flex-grow: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  padding: 14px;
}

.stat-label {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 18px;
  padding: 2px var(--pad);
  flex: 0 0 auto;
}

.menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--nav-line);
}

.menu button:last-child { border-bottom: 0; }

.menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--panel);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.menu-icon .ic { width: 17px; height: 17px; color: var(--muted); }

.menu-name {
  flex-grow: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-side {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--dim);
  flex: 0 0 auto;
}

.menu-side .ic { width: 15px; height: 15px; color: var(--faint); }

.chips {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 0 var(--pad) 12px;
  flex: 0 0 auto;
}

.chips button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.chips button.on {
  background: rgba(1, 102, 255, .14);
  border-color: var(--blue);
  font-weight: 600;
  color: #9FC4FF;
}

.list {
  position: relative;
  padding: 0 var(--pad);
  flex-grow: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent);
  mask-image: linear-gradient(180deg, #000 88%, transparent);
}

.day {
  font-size: 11.5px;
  color: var(--dim);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 14px 0 2px;
}

.list > .day:first-child { padding-top: 4px; }

.entry {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--nav-line);
  min-width: 0;
}

.entry-thumb { width: 40px; height: 40px; flex: 0 0 auto; }
.entry-thumb .tile { border-radius: 11px; }
.entry-thumb .tile-letter { font-size: 17px; }

.entry-main { flex-grow: 1; min-width: 0; }

.entry-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-sub {
  font-size: 11px;
  color: var(--dim);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-sum {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}

.entry-sum.plus { color: var(--green); }
.entry-sum.minus { color: var(--muted); }

.amount {
  text-align: center;
  padding: 26px 0 4px;
  flex: 0 0 auto;
}

.amount-label {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 10px;
}

.amount-field {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.amount-field input {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
  width: 1ch;
  max-width: 100%;
  padding: 0;
}

.amount-field span {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}

.amount-ton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 9px;
}

.amount-ton .ic { width: 12px; height: 12px; }

.amount-warn {
  font-size: 12.5px;
  color: #FF8A8A;
  margin-top: 9px;
}

.quick {
  display: flex;
  gap: 8px;
  margin: 20px 0 16px;
  flex: 0 0 auto;
}

.quick button {
  flex-grow: 1;
  min-width: 0;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.quick button.on {
  background: rgba(1, 102, 255, .14);
  border-color: var(--blue);
  color: #9FC4FF;
}

.pickrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 16px;
  padding: 13px 15px;
  flex: 0 0 auto;
  min-width: 0;
}

.pickrow-main { flex-grow: 1; min-width: 0; }

.pickrow-label {
  display: block;
  font-size: 11.5px;
  color: var(--dim);
  margin-bottom: 2px;
}

.pickrow-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pickrow-side {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--dim);
  flex: 0 0 auto;
}

.pickrow-side .ic { width: 15px; height: 15px; color: var(--faint); }

.brand-img,
.brand {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: 0 0 auto;
  object-fit: cover;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-gram { background: #0E0F12; }
.brand-gram .brand-glyph { width: 30px; height: 30px; }
.brand-sbp { background: #fff; }
.brand-svg { width: 23px; height: 23px; flex: 0 0 auto; }
.brand-stars { background: #F5C518; font-size: 21px; line-height: 1; }
.brand-blank { background: var(--panel); }

.summary {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 18px;
  padding: 14px 16px;
  flex: 0 0 auto;
}

.summary-gap { margin-top: 12px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13.5px;
}

.summary-row span:first-child { color: var(--dim); }
.summary-row span:last-child { font-weight: 600; text-align: right; }
.summary-row .free { color: var(--green); }

.summary-line {
  height: 1px;
  background: var(--surface-line);
  margin: 8px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.summary-total span:first-child { font-size: 13.5px; color: var(--dim); }

.summary-total span:last-child {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: right;
}

.summary-note {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.45;
  margin-top: 8px;
}

.method {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  flex: 0 0 auto;
  min-width: 0;
}

.method.on {
  border: 1.5px solid var(--blue);
  padding: 12.5px 13.5px;
}

.method-main { flex-grow: 1; min-width: 0; }

.method-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-note {
  display: block;
  font-size: 11.5px;
  color: var(--dim);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid #303643;
  flex: 0 0 auto;
}

.radio.on {
  border: 0;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: #fff;
}

.radio .ic { width: 13px; height: 13px; }

.field-label {
  font-size: 11.5px;
  color: var(--dim);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.field {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px 16px;
  min-width: 0;
}

.field:focus-within { border: 1.5px solid var(--blue); padding: 14.5px 15.5px; }

.field input {
  flex-grow: 1;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
  width: 100%;
}

.field input::placeholder { color: var(--faint); font-weight: 500; }

.field-hint {
  font-size: 12px;
  color: var(--dim);
  margin-top: 8px;
  padding: 0 2px;
  line-height: 1.45;
}

.field-bad { color: #FF8A8A; }

.banks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.banks button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 10px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banks button.on {
  background: rgba(1, 102, 255, .12);
  border: 1.5px solid var(--blue);
  padding: 11.5px 9.5px;
}

.done-mark {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(55, 199, 127, .13);
  border: 1px solid rgba(55, 199, 127, .3);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  flex: 0 0 auto;
}

.done-mark .ic { width: 40px; height: 40px; color: var(--green); stroke-width: 2.4; }

.done-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.028em;
  margin-bottom: 9px;
}

.done-note {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 27ch;
}

.done .summary {
  width: 100%;
  margin-top: 26px;
  padding: 15px 16px;
  text-align: left;
}

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

.link-cta {
  width: 100%;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
  padding: 11px;
}

.cta-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
  margin-top: 2px;
}

.big-tile {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  height: 250px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.big-anim {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
}

.big-anim.ready { opacity: 1; }

.big-anim svg { width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .big-anim { display: none; }
}

.big-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.big-tile .tile-letter { font-size: 84px; }

.facts {
  display: flex;
  gap: 9px;
  flex: 0 0 auto;
}

.fact {
  flex-grow: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 12px;
}

.fact-label {
  font-size: 10.5px;
  color: var(--dim);
  margin-bottom: 3px;
}

.fact-value {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fact-value.accent { color: var(--blue-light); }

.pricebox {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 18px;
  padding: 16px;
  flex: 0 0 auto;
}

.pricebox-label {
  font-size: 12.5px;
  color: var(--dim);
  margin-bottom: 4px;
}

.pricebox-rub {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}

.pricebox-ton {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 5px;
}

.pricebox-ton .ic { width: 10px; height: 10px; }

.filters {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 0 var(--pad) 11px;
  flex: 0 0 auto;
}

.filter {
  position: relative;
  flex-grow: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}

.filter-label {
  font-size: 10px;
  color: var(--dim);
  margin-bottom: 1px;
}

.filter-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 500;
  min-width: 0;
}

.filter-value span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-value .ic { width: 13px; height: 13px; color: var(--dimmer); stroke-width: 2.4; }

.filter select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.filter:focus-within {
  border-color: var(--blue-light);
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}
