/* ═══════════════════════════════════════════════
   ZetroSave — design system
   "Кассовый чек": paper + ink + thermal-print mint
   Mono digits, perforated edges, stamp accents
   ═══════════════════════════════════════════════ */

:root {
  --paper: #F4F5F3;
  --paper-2: #ECEDE9;
  --ink: #10181F;
  --ink-2: #1B2630;
  --mint: #00C896;
  --mint-deep: #007A5C;
  --mint-hi: #00E5AE;
  --smoke: #5A6B76;
  --smoke-2: #8DA0AA;
  --stamp: #D6492B;
  --line: rgba(16, 24, 31, 0.09);
  --line-soft: rgba(16, 24, 31, 0.05);
  --card: #FFFFFF;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --r-card: 16px;
  --r-input: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  line-height: 1.5;
  font-size: 15px;
}

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select { font: inherit; }

.mono { font-family: var(--mono); }

/* ── Halftone print shader (чековый растр) ── */
#aurora {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  background: var(--paper);
}

/* ── Views ── */
.view { min-height: 100dvh; position: relative; }
[hidden] { display: none !important; }

/* ═══════════ LANDING ═══════════ */
#view-landing { color: var(--ink); display: flex; flex-direction: column; }

.nav {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px; max-width: 560px; width: 100%;
  margin: 0 auto;
}
.logo-mark { display: flex; }
.logo-word { font-weight: 800; letter-spacing: 0.03em; font-size: 15px; }
.nav-cta { margin-left: auto; }

.hero {
  max-width: 560px; width: 100%; margin: 0 auto;
  padding: 48px 24px 40px;
}
.hero h1 {
  font-size: clamp(34px, 9vw, 50px);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.04;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--mint-deep); }
.hero-sub {
  margin-top: 16px; color: var(--smoke);
  font-size: 16px; max-width: 42ch; text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ── ticker tape ── */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
  padding: 10px 0; margin: 8px 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-inner {
  display: inline-flex; gap: 34px; padding-right: 34px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  color: var(--smoke); letter-spacing: 0.02em;
  animation: tape 34s linear infinite;
}
.ticker-inner b { color: var(--ink); font-weight: 600; }
.ticker-inner .up { color: var(--mint-deep); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ── receipt card (product preview) ── */
.receipt-wrap {
  max-width: 560px; width: 100%; margin: 0 auto;
  padding: 36px 24px 0;
}
.receipt {
  background: var(--card);
  border-radius: 6px 6px 0 0;
  padding: 26px 24px 20px;
  font-family: var(--mono);
  font-size: 13px;
  box-shadow:
    0 0 0 1px rgba(16,24,31,0.05),
    0 14px 40px -18px rgba(16,24,31,0.25);
  position: relative;
}
.receipt-head {
  text-align: center; letter-spacing: 0.24em; font-weight: 600;
  font-size: 12px; margin-bottom: 4px;
}
.receipt-sub { text-align: center; color: var(--smoke-2); font-size: 11px; }
.rc-line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.rc-line span:first-child { color: var(--smoke); }
.rc-line.neg b { color: var(--stamp); font-weight: 600; }
.rc-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 6px;
}
.rc-total span { font-size: 12px; letter-spacing: 0.18em; color: var(--smoke); }
.rc-total b {
  font-size: 34px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--mint-deep); font-variant-numeric: tabular-nums;
}
.rc-barcode {
  margin-top: 14px; height: 34px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 6px, transparent 6px 11px,
    var(--ink) 11px 14px, transparent 14px 17px,
    var(--ink) 17px 18px, transparent 18px 23px);
  opacity: 0.85;
}
.rc-foot { text-align: center; color: var(--smoke-2); font-size: 10.5px; margin-top: 8px; letter-spacing: 0.1em; }
/* perforated zigzag bottom edge */
.zigzag {
  height: 12px;
  background:
    linear-gradient(135deg, var(--card) 8px, transparent 0) 0 0 / 16px 16px repeat-x,
    linear-gradient(225deg, var(--card) 8px, transparent 0) 8px 0 / 16px 16px repeat-x;
  filter: drop-shadow(0 4px 5px rgba(16,24,31,0.08));
}
/* print-in animation */
@keyframes printIn {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0% 0); }
}
.receipt { animation: printIn 1.4s var(--ease) both 0.3s; }

/* ── features strip ── */
.strip {
  max-width: 560px; width: 100%; margin: 0 auto;
  padding: 28px 24px 0; display: flex; flex-direction: column; gap: 4px;
}
.strip-item { padding: 26px 0; border-top: 1px dashed var(--line); }
.strip-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--mint-deep); margin-bottom: 10px;
}
.strip-item h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.strip-item p { margin-top: 8px; color: var(--smoke); font-size: 14.5px; text-wrap: pretty; }

.foot {
  max-width: 560px; width: 100%; margin: auto auto 0;
  padding: 44px 24px calc(28px + var(--safe-bottom));
  display: flex; justify-content: space-between; align-items: center;
  color: var(--smoke-2); font-size: 13px;
}
.foot .linklike { color: var(--mint-deep); }

/* ═══════════ SHARED CONTROLS ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 140ms var(--ease), background 140ms, border-color 140ms;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--mint); color: #06231B; }
.btn-primary:hover { background: var(--mint-hi); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-block { width: 100%; }

.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; color: var(--ink);
  transition: transform 140ms var(--ease);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn .dot {
  position: absolute; top: 9px; right: 10px; width: 8px; height: 8px;
  border-radius: 999px; background: var(--stamp);
}

.linklike {
  color: var(--mint-deep); font-weight: 700; font-size: 14px;
  padding: 6px 0; text-decoration: none; display: inline-block;
}
.linklike:active { opacity: 0.6; }
.danger-text { color: var(--stamp); }

/* ═══════════ SHEETS / MODALS ═══════════ */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(16,24,31,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 180ms var(--ease);
}
.sheet-card {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 560px;
  background: var(--paper); color: var(--ink);
  border-radius: 24px 24px 0 0;
  padding: 12px 24px calc(28px + var(--safe-bottom));
  animation: sheetUp 320ms var(--ease);
  max-height: 88dvh; overflow-y: auto;
}
.sheet-grip {
  width: 40px; height: 4px; border-radius: 999px;
  background: var(--line); margin: 6px auto 18px;
}
.sheet-title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.sheet-sub { color: var(--smoke); margin-top: 6px; font-size: 14px; }
.sheet-fine { margin-top: 14px; text-align: center; color: var(--smoke-2); font-size: 13px; }

@keyframes sheetUp { from { transform: translateX(-50%) translateY(60px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { transform: scale(0.96); opacity: 0; } }

.field { display: block; margin-top: 16px; }
.field-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--smoke); margin-bottom: 6px; font-family: var(--mono); }
.input {
  width: 100%; height: 50px; padding: 0 16px;
  background: var(--paper-2); border: 1.5px solid transparent;
  border-radius: var(--r-input); font-size: 16px; color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: border-color 140ms, background 140ms;
}
.input:focus { outline: none; border-color: var(--mint); background: #fff; }
.field-error { color: var(--stamp); font-size: 13px; font-weight: 600; margin-top: 10px; }
form .btn-block { margin-top: 20px; }

/* ═══════════ APP SHELL ═══════════ */
.app {
  background: var(--paper); color: var(--ink);
  max-width: 560px; margin: 0 auto;
  padding-bottom: calc(96px + var(--safe-bottom));
}

.app-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(244,245,243,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px dashed var(--line);
}
.app-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: 0.14em; font-size: 13px; }

.tab { padding: 20px; animation: popIn 240ms var(--ease); }

/* ── Gauge: чек дня ── */
.gauge-card {
  background: var(--card);
  border-radius: 6px 6px 0 0;
  padding: 26px 22px 18px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(16,24,31,0.05),
    0 14px 40px -20px rgba(16,24,31,0.25);
}
.gauge-card .rc-brand {
  text-align: center; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.26em; font-weight: 600; color: var(--smoke);
  margin-bottom: 6px;
}
.gauge-wrap { position: relative; display: grid; place-items: center; margin-top: 4px; }
.gauge { width: 240px; max-width: 100%; }
.gauge-track { stroke: rgba(16,24,31,0.08); stroke-width: 14; stroke-linecap: round; }
.gauge-fill { stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 500ms var(--ease); }
.gauge-dot { fill: var(--mint); }
.gauge-center { position: absolute; text-align: center; top: 52%; }
.gauge-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--smoke);
}
.gauge-num {
  font-family: var(--mono);
  font-size: 40px; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 2px;
}
.gauge-sub { font-family: var(--mono); font-size: 12px; color: var(--smoke); font-variant-numeric: tabular-nums; }
.gauge-foot {
  position: relative; display: flex; gap: 8px; margin-top: 16px;
  border-top: 1px dashed var(--line); padding-top: 14px;
}
.gf-item { flex: 1; }
.gf-item span {
  display: block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--smoke-2); font-weight: 600;
}
.gf-item b { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Quick actions ── */
.quick { display: flex; gap: 10px; margin-top: 14px; }
.quick-btn { flex: 1; height: 54px; font-size: 16px; }

/* ── Blocks & lists ── */
.block { margin-top: 30px; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.block-head h3 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }

.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); padding: 14px 16px;
  transition: transform 140ms var(--ease);
}
.row:active { transform: scale(0.99); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 700; font-size: 14.5px; }
.row-sub { font-family: var(--mono); font-size: 11.5px; color: var(--smoke); }
.row-amt { font-family: var(--mono); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-amt.pos { color: var(--mint-deep); }
.row-x {
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--smoke-2);
}
.row-x:active { color: var(--stamp); }

.empty { color: var(--smoke-2); font-size: 13.5px; text-align: center; padding: 18px 8px; }
.fine-print { color: var(--smoke-2); font-size: 12px; margin-top: 14px; text-align: center; }

/* ── Page heads ── */
.page-head { margin-bottom: 18px; }
.page-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.page-head p { color: var(--smoke); font-size: 13.5px; margin-top: 3px; }

/* ── Debt cards ── */
.debt-card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); padding: 16px;
  position: relative; overflow: hidden;
}
.debt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.debt-name { font-weight: 800; font-size: 15px; }
.debt-amt { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 16px; }
.debt-amt.owed { color: var(--mint-deep); }
.debt-amt.iowe { color: var(--stamp); }
.debt-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--smoke); }
/* штамп, как на документах */
.debt-status {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px; border: 1.5px solid var(--smoke-2); border-radius: 3px;
  color: var(--smoke); transform: rotate(-1.6deg);
}
.debt-status.late { border-color: var(--stamp); color: var(--stamp); }
.debt-status.soon, .debt-status.closed { border-color: var(--mint-deep); color: var(--mint-deep); }
.debt-actions { display: flex; gap: 8px; margin-top: 14px; }
.debt-actions .btn { height: 40px; padding: 0 16px; font-size: 13px; flex: 1; }
.debt-actions .icon-btn { border: 1.5px solid var(--line); }

/* ── Radar ── */
.radar-form { display: flex; gap: 10px; }
.radar-form .input { flex: 1; font-family: var(--mono); }
.radar-form .btn { height: 50px; }

.radar-card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); padding: 16px;
}
.radar-head { display: flex; justify-content: space-between; align-items: center; }
.radar-inn { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.radar-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 9px; border: 1.5px solid; border-radius: 3px;
  transform: rotate(1.4deg);
}
.radar-badge.ok { border-color: var(--mint-deep); color: var(--mint-deep); }
.radar-badge.warn { border-color: var(--stamp); color: var(--stamp); }
.radar-rows { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.radar-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--smoke); }
.radar-row b { color: var(--ink); font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Settings ── */
.set-card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--r-card); padding: 20px; margin-bottom: 14px;
}
.set-card h3 { font-size: 15px; font-weight: 800; }
.set-sub { color: var(--smoke); font-size: 13px; margin-top: 4px; margin-bottom: 6px; }
.set-card .btn-block { margin-top: 14px; }
.set-card .linklike { margin-top: 12px; }
.set-card.danger { border-color: rgba(214,73,43,0.25); }

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
  padding: 6px 8px calc(6px + var(--safe-bottom));
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; border-radius: 12px; color: var(--smoke-2);
  font-size: 11px; font-weight: 700;
  transition: color 140ms, transform 140ms var(--ease);
}
.bn-item:active { transform: scale(0.94); }
.bn-item.is-active { color: var(--ink); }
.bn-item.is-active svg { color: var(--mint); }

/* ── Modal inner ── */
.modal-title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.modal-sub { color: var(--smoke); font-size: 13.5px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

.debt-share {
  margin-top: 16px; background: var(--paper-2); border-radius: 6px;
  padding: 16px; text-align: center; font-family: var(--mono);
}
.debt-share .share-url {
  font-size: 12px; word-break: break-all; color: var(--smoke);
  margin: 10px 0;
}

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: var(--paper-2); color: var(--ink);
  border: 1.5px solid transparent;
  transition: border-color 120ms, transform 120ms var(--ease);
}
.chip:active { transform: scale(0.95); }
.chip.is-on { border-color: var(--mint); background: rgba(0,200,150,0.08); }

/* ── Voice recorder modal ── */
.voice-wrap { text-align: center; padding: 8px 0 4px; }
.voice-ring {
  width: 96px; height: 96px; margin: 18px auto 14px;
  border-radius: 999px; display: grid; place-items: center;
  background: var(--ink); color: var(--mint-hi);
  position: relative;
}
.voice-ring.listening::before {
  content: ""; position: absolute; inset: -10px;
  border-radius: 999px; border: 2px solid var(--mint);
  animation: voicePulse 1.4s var(--ease) infinite;
}
@keyframes voicePulse {
  from { transform: scale(0.8); opacity: 0.9; }
  to { transform: scale(1.25); opacity: 0; }
}
.voice-transcript {
  font-family: var(--mono); font-size: 15px; min-height: 44px;
  color: var(--ink); padding: 10px 14px;
  background: var(--paper-2); border-radius: var(--r-input);
}
.voice-hint { font-size: 12.5px; color: var(--smoke-2); margin-top: 10px; }

/* ── Guide details ── */
.guide { margin-top: 14px; }
.guide summary {
  cursor: pointer; font-weight: 700; font-size: 13.5px;
  color: var(--mint-deep); padding: 6px 0;
}
.guide p { font-size: 13px; color: var(--smoke); margin-top: 10px; }
.guide code {
  display: block; margin-top: 6px; padding: 10px 12px;
  background: var(--ink); color: var(--mint-hi);
  font-family: var(--mono); font-size: 12px; border-radius: 8px;
  word-break: break-all;
}

/* ── Sub row meta ── */
.row-sub .sub-next { color: var(--mint-deep); }
.row-sub .sub-due { color: var(--stamp); font-weight: 600; }

/* ── Morning report / streak / vault ── */
.streak-stamp {
  display: inline-block; margin-left: 12px; vertical-align: 2px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; padding: 3px 8px;
  border: 1.5px solid var(--mint-deep); color: var(--mint-deep);
  border-radius: 3px; transform: rotate(-1.6deg);
}
.report { font-family: var(--mono); }
.report-brand { text-align: center; letter-spacing: 0.24em; font-size: 12px; font-weight: 600; }
.report-date { text-align: center; color: var(--smoke-2); font-size: 12px; margin-bottom: 14px; }
.report .rc-line b.pos { color: var(--mint-deep); }
.report-streak {
  margin-top: 16px; text-align: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  padding: 10px; border: 2px solid var(--mint-deep); color: var(--mint-deep);
  border-radius: 4px; transform: rotate(-1deg);
}
.report-streak.lost { border-color: var(--stamp); color: var(--stamp); }
.cal-strip {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  margin-top: 18px;
}
.cal-day {
  aspect-ratio: 1; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: var(--smoke-2);
  background: var(--paper-2);
}
.cal-day i { font-style: normal; font-size: 13px; font-weight: 700; }
.cal-day.won { background: rgba(0,200,150,0.14); color: var(--mint-deep); }
.cal-day.lost { background: rgba(214,73,43,0.12); color: var(--stamp); }
.cal-day.today { background: transparent; border: 1.5px dashed var(--smoke-2); }

/* ── Сейф: прогресс к цели ── */
.vault-bar {
  display: block; width: 100%; height: 4px; margin-top: 6px;
  background: var(--paper-2); border-radius: 2px; overflow: hidden;
}
.vault-bar u { display: block; height: 100%; width: 0; background: var(--mint-deep); transition: width 0.4s; }
.waste-mark { color: var(--stamp); }

/* ── Вечернее закрытие кассы ── */
.cashier { text-align: center; }
.cashier-count { font-family: var(--mono); font-size: 11px; color: var(--smoke-2); letter-spacing: 0.15em; margin-bottom: 14px; }
.swipe-card {
  font-family: var(--mono); padding: 28px 20px; margin: 0 auto 10px; max-width: 300px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 8px;
  box-shadow: 0 4px 0 var(--paper-2);
  touch-action: pan-y; user-select: none; cursor: grab;
  transition: transform 0.15s;
}
.swipe-card b { display: block; font-size: 32px; }
.swipe-card span { font-size: 14px; color: var(--smoke); }
.swipe-card.go-waste { border-color: var(--stamp); }
.swipe-card.go-need { border-color: var(--mint-deep); }
.swipe-hint {
  display: flex; justify-content: space-between; max-width: 300px; margin: 0 auto 6px;
  font-family: var(--mono); font-size: 11px; color: var(--smoke-2);
}

/* ── Совместная касса ── */
.hh-pot { font-family: var(--mono); font-size: 34px; font-weight: 700; margin: 8px 0 2px; }
.hh-tx { margin: 12px 0; }


/* ── Расписка-режим ── */
.doc-frame {
  border: 2px solid var(--ink); border-radius: 4px;
  padding: 16px; margin-top: 14px; position: relative;
  font-family: var(--mono); font-size: 12.5px;
}
.doc-frame::before {
  content: "ДОКУМЕНТ"; position: absolute; top: -9px; left: 12px;
  background: var(--paper); padding: 0 8px;
  font-size: 10px; letter-spacing: 0.2em; font-weight: 700; color: var(--smoke);
}
.doc-frame .doc-num { font-size: 11px; color: var(--smoke-2); }
.doc-frame b { display: block; margin: 6px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
