/* Атлант — «складская книга»: тёплая бумага, тёмно-зелёная панель из ящичных реек,
   широкий Unbounded для цифр и заголовков, Golos Text для всего остального.
   Мандарин — переплата и оплаты, горчица — «нет цены», зелень — долг. */

:root {
  --paper: #f1ebdf;
  --paper-2: #f7f2e8;
  --card: #fffcf6;
  --ink: #1b241e;
  --ink-2: #3b463e;
  --muted: #8a8170;
  --line: #e2d8c5;
  --line-2: #ece4d5;

  --forest: #1d3a29;
  --forest-2: #24482f;
  --leaf: #3f7d4e;
  --leaf-soft: #e1ecd9;
  --tangerine: #dc6327;
  --tangerine-2: #f19a5a;
  --tangerine-soft: #fbe8da;
  --mustard: #d9a21f;
  --mustard-soft: #f9edc6;
  --beet: #9a2b48;

  --display: "Unbounded", "Golos Text", sans-serif;
  --text: "Golos Text", "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(27, 36, 30, .04), 0 10px 30px -18px rgba(27, 36, 30, .35);
  --side: 236px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--text);
  color: var(--ink);
  background-color: var(--paper);
  /* бумажное зерно */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .16 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font-variant-numeric: tabular-nums;
}
a { color: var(--ink); text-decoration-color: rgba(63, 125, 78, .35); text-underline-offset: 3px; }
a:hover { color: var(--leaf); text-decoration-color: currentColor; }
::selection { background: var(--mustard-soft); }

/* ---------- боковая панель ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 10;
  display: flex; flex-direction: column; padding: 26px 18px 20px;
  color: #e9e2d2;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 46px, rgba(0,0,0,.16) 46px 48px, transparent 48px 50px),
    linear-gradient(160deg, var(--forest-2), var(--forest) 60%);
  box-shadow: inset -1px 0 0 rgba(0,0,0,.25);
}
.stamp { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 4px 6px 22px; }
.stamp:hover { color: inherit; }
.stamp-mark {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 21px/1 var(--display); color: var(--forest);
  background: radial-gradient(circle at 50% 50%, #ffd29a 0 52%, var(--tangerine-2) 53% 64%, var(--tangerine) 65%);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 6px 14px -6px rgba(0,0,0,.6);
  transform: rotate(-8deg);
}
.stamp-text b { display: block; font: 700 17px/1.1 var(--display); letter-spacing: .02em; color: #fff7ea; }
.stamp-text small { display: block; white-space: nowrap; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a9b9a6; margin-top: 4px; }

.menu { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: #d9e2d3; text-decoration: none; font-weight: 500;
  transition: background .18s, color .18s, transform .18s;
}
.menu a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.menu a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.menu a.on { background: var(--paper-2); color: var(--forest); box-shadow: 0 8px 18px -10px rgba(0,0,0,.7); }
.menu a.on svg { opacity: 1; stroke: var(--tangerine); }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #b8c6b4; }
.side-foot form { margin: 0; }
.side-foot .who { display: flex; flex-direction: column; gap: 2px; }
.side-foot .pw { font-size: 12px; color: #a9b9a6; text-decoration: none; }
.side-foot .pw:hover { color: #fff; text-decoration: underline; }
/* смена пароля */
.narrow { max-width: 460px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px; animation: rise .5s .1s both; }
.form-card label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form-card label:first-of-type { margin-top: 0; }
.form-card input[type=password] { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.form-card input:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-soft); }
.form-card .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-card .field-errors { margin: 6px 0 0; padding: 0; list-style: none; color: var(--beet); font-size: 13px; }
.done { display: flex; gap: 16px; align-items: center; }
.done .tick { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--leaf-soft); color: var(--leaf); font: 800 22px var(--display); }
button.link { font: inherit; background: none; border: 0; color: #f2c99d; cursor: pointer; padding: 2px 4px; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { color: #fff; }

/* ---------- страница ---------- */
.page { margin-left: var(--side); padding: 38px 48px 60px; max-width: calc(1500px + var(--side)); }
.login-page .page { margin: 0; padding: 0; max-width: none; }

.head { margin-bottom: 26px; animation: rise .5s both; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tangerine); }
.eyebrow.light { color: #f2c99d; }
h1 { font: 700 clamp(26px, 3vw, 38px)/1.1 var(--display); letter-spacing: -.01em; margin: 8px 0 0; }
.back { display: block; width: fit-content; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 14px; }
.back:hover { color: var(--leaf); }
.muted { color: var(--muted); }
.dim { color: var(--muted); }

/* ---------- сводная: главный блок ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr);
  border-radius: 20px; overflow: hidden; margin-bottom: 26px;
  background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line);
  animation: rise .55s .05s both;
}
.hero > div { padding: 26px 30px; display: flex; flex-direction: column; gap: 6px; }
.hero-main {
  color: #f4efe3;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(241,154,90,.22), transparent 55%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0 46px, rgba(0,0,0,.14) 46px 48px),
    var(--forest);
}
.hero-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.hero-num { font: 800 clamp(30px, 3.6vw, 52px)/1.05 var(--display); letter-spacing: -.02em; white-space: nowrap; margin-top: 4px; }
.hero-num i { font-style: normal; font-weight: 500; font-size: .5em; margin-left: .25em; opacity: .7; }
.hero-num.small { font-size: clamp(22px, 2.3vw, 32px); color: var(--tangerine); }
.hero-note { font-size: 13.5px; opacity: .8; }
.hero-side { border-right: 1px dashed var(--line); justify-content: space-between; }
.hero-over { display: flex; flex-direction: column; gap: 6px; }
.hero-over .hero-label { color: var(--muted); opacity: 1; }
.hero-over .hero-note { color: var(--muted); opacity: 1; }
.hero-net { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding-top: 14px; margin-top: 12px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.hero-net b { font: 700 16px var(--display); color: var(--ink); }
.hero-todo { background: var(--paper-2); }
.hero-todo .hero-label { color: var(--muted); opacity: 1; margin-bottom: 4px; }
.todo { display: block; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink-2); font-size: 13.5px; line-height: 1.35; transition: border-color .15s, transform .15s; }
.todo b { font: 700 18px var(--display); color: var(--ink); margin-right: 4px; }
a.todo:hover { border-color: var(--mustard); transform: translateY(-1px); color: var(--ink); }

/* ---------- фильтры ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; animation: rise .5s .1s both; }
.search { flex: 1 1 340px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-soft); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; border: 0; background: none; outline: none; font: inherit; padding: 11px 0; color: var(--ink); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: baseline; gap: 3px; padding: 7px 13px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.seg span small { font-size: 10.5px; color: var(--muted); }
.seg label:hover span { background: rgba(255,255,255,.7); }
.seg input:checked + span { background: var(--forest); color: #fff7ea; box-shadow: 0 6px 14px -8px rgba(29,58,41,.9); }
.seg input:checked + span small { color: #b9c9b5; }
.seg input:focus-visible + span { outline: 2px solid var(--tangerine); outline-offset: 1px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--forest); width: 16px; height: 16px; }

.btn, button.btn {
  font: 600 14.5px var(--text); padding: 11px 20px; border-radius: 12px; border: 0; cursor: pointer;
  color: #fff7ea; background: var(--forest); box-shadow: 0 8px 16px -10px rgba(29,58,41,.9);
  transition: transform .15s, background .15s;
}
.btn:hover { background: var(--forest-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.big { width: 100%; padding: 14px; font-size: 16px; margin-top: 22px; }

/* ---------- таблицы-книги ---------- */
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: auto; max-height: calc(100vh - 140px); animation: rise .5s .15s both; }
.sheet.tall { max-height: calc(100vh - 120px); }
table.ledger { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14.5px; }
.ledger thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--card); text-align: left; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: 14px 14px 10px; border-bottom: 2px solid var(--ink);
}
.ledger td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ledger tbody tr { transition: background .12s; }
.ledger tbody tr:hover td { background: #fbf4df; }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger .n { text-align: right; white-space: nowrap; }
.ledger td.name a { font-weight: 600; text-decoration: none; }
.ledger td.name a:hover { text-decoration: underline; }
.ledger td.empty { text-align: center; padding: 48px; color: var(--muted); }
.ledger small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; white-space: normal; }

/* долг с полоской-долей */
.ledger th.debt-h { min-width: 260px; }
.debt-in { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.ledger td.debt b { font: 700 15px var(--display); letter-spacing: -.01em; min-width: 9.5em; text-align: right; }
.track { flex: 1; max-width: 120px; height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; display: flex; justify-content: flex-end; }
.track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #79a97c, var(--leaf)); }
.ledger td.debt.over b { color: var(--tangerine); }
.ledger td.debt.over .track i { background: linear-gradient(90deg, var(--tangerine-2), var(--tangerine)); }

/* карточка поставщика */
.ledger.card { font-size: 14px; }
.ledger.card td { padding: 9px 12px; }
.ledger.card thead th { padding: 14px 12px 10px; }
.ledger td.date { white-space: nowrap; color: var(--ink-2); }
.ledger td.prod { min-width: 180px; }
.ledger td.cmt { color: var(--muted); font-size: 13px; max-width: 320px; }
.ledger td.bal { font-weight: 700; }
.ledger td.bal.over { color: var(--tangerine); }
.ledger tr.pay td { background: #fcefe4; }
.ledger tr.pay td:first-child { box-shadow: inset 4px 0 0 var(--tangerine); }
.ledger tr.pay:hover td { background: var(--tangerine-soft); }
.ledger tr.ded td { color: var(--ink-2); }
.ledger tr.ded td.cmt { font-style: italic; }
.ledger tr.info td { color: #a39a87; font-size: 13px; }
.ledger tr.info td.prod, .ledger tr.info td.n { text-decoration: line-through; text-decoration-color: rgba(163,154,135,.5); }
.arr { font-weight: 600; text-decoration: none; padding: 1px 7px; border-radius: 6px; background: var(--leaf-soft); color: var(--forest); white-space: nowrap; }
.arr:hover { background: var(--leaf); color: #fff; }
.kind { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.item { display: block; }
.item + .item { margin-top: 3px; }

.chip { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.5; padding: 1px 9px; border-radius: 99px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip.warn { background: var(--mustard-soft); border-color: #efd68a; color: #7a5800; }
.chip.pay { background: var(--tangerine); border-color: var(--tangerine); color: #fff; margin-right: 8px; }
.chip.ghost { background: none; border-style: dashed; color: var(--muted); font-weight: 500; }

/* переключатель видов карточки */
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 12px; }
.tabs a { padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2);
  border: 1px solid transparent; }
.tabs a:hover { background: var(--paper-2); }
.tabs a.on { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); color: var(--forest); }
.tabs-hint { margin-left: 10px; font-size: 12.5px; color: var(--muted); }

/* карточка «как в таблице»: сетка Excel, шрифт Calibri, цвета ячеек из листа */
.xl-wrap { overflow: auto; max-height: calc(100vh - 110px); background: #fff; border: 1px solid #c8c3b6;
  border-radius: 10px; box-shadow: var(--shadow); animation: rise .45s .1s both; }
table.xl { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: max-content;
  font: 14px/1.25 Calibri, Carlito, "Golos Text", sans-serif; color: #000; font-variant-numeric: tabular-nums; }
.xl col.rn-col { width: 44px; }
.xl td, .xl th { border-right: 1px solid #dadcdf; border-bottom: 1px solid #dadcdf; padding: 3px 6px; height: 21px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; vertical-align: bottom; }
.xl td.n { text-align: right; }
.xl td a { color: inherit; text-decoration: underline; text-decoration-color: rgba(0,0,0,.35); }
.xl td a:hover { color: #1d5c2e; }
.xl thead th { position: sticky; z-index: 3; background: #f3f3f1; font-weight: 400; color: #555; }
.xl .xl-letters th { top: 0; height: 22px; padding-top: 2px; padding-bottom: 2px; text-align: center; font-size: 12.5px; }
.xl .xl-titles th { top: 22px; background: #fbfaf7; color: #000; font-weight: 700; white-space: normal; vertical-align: middle;
  border-bottom: 2px solid #9a9486; line-height: 1.15; }
.xl th.rn { position: sticky; left: 0; z-index: 2; background: #f3f3f1; color: #777; font-weight: 400; text-align: center;
  font-size: 12.5px; border-right: 1px solid #c9c6bd; }
.xl thead th.rn { z-index: 4; }
.xl thead tr.xl-top th, .xl thead tr.xl-top td { position: static; background: #fff; font-weight: 400; }
.xl thead tr.xl-top th.rn { position: sticky; left: 0; background: #f3f3f1; }
.xl tbody tr:hover td { box-shadow: inset 0 0 0 9999px rgba(63,125,78,.07); }
.xl tbody tr:hover th.rn { background: #e3ecdd; color: #1d3a29; }
.xl td.nodebt { text-decoration: line-through; text-decoration-color: rgba(154,43,72,.6); color: #8a8170 !important; }
.xl tr.k-total td { border-top: 1px solid #9a9486; }
.xl tr.k-app th.rn { color: var(--tangerine); font-weight: 700; }
.xl td.empty { text-align: center; padding: 40px; color: var(--muted); }

/* плитки карточки */
.aliases { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; }
.aliases .edit { margin-left: 6px; font-size: 13px; color: var(--leaf); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; animation: rise .5s both; }
.tile:nth-child(2) { animation-delay: .05s; } .tile:nth-child(3) { animation-delay: .1s; } .tile:nth-child(4) { animation-delay: .15s; }
.tile span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tile b { font: 700 22px/1.15 var(--display); letter-spacing: -.01em; }
.tile.main { color: #f4efe3; border-color: transparent;
  background: radial-gradient(120% 160% at 100% 0%, rgba(241,154,90,.25), transparent 60%), var(--forest); }
.tile.main span { color: #b9c9b5; }
.tile.main.over b { color: var(--tangerine-2); }
.note { background: var(--mustard-soft); border: 1px solid #efd68a; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px;
  font-size: 13.5px; color: #5e4a12; animation: rise .5s .2s both; }
.note-title { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; color: #8a6a10; }
.note p { margin: 0; }
.how { font-size: 12.5px; color: var(--muted); margin: -6px 2px 16px; }

.foot-note { font-size: 13px; color: var(--muted); margin: 14px 4px 0; }

/* ---------- вход ---------- */
.login { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }
.login-art { position: relative; overflow: hidden; color: #fff7ea; padding: 9vh 7vw;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(241,154,90,.25), transparent 60%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 54px, rgba(0,0,0,.16) 54px 56px),
    var(--forest); }
.login-word { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; animation: rise .7s both; }
.login-word strong { font: 800 clamp(48px, 7vw, 104px)/.95 var(--display); letter-spacing: -.03em; }
.login-tag { font-size: 18px; line-height: 1.45; color: #c9d6c4; }
.slices { position: absolute; right: -6%; bottom: -8%; width: min(78%, 620px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.35));
  animation: drift 1.2s cubic-bezier(.2,.7,.2,1) both; }
.login-form { align-self: center; justify-self: center; width: min(400px, 88vw); padding: 40px 0; animation: rise .6s .15s both; }
.login-form h1 { margin-bottom: 8px; }
.login-form p { margin: 0 0 22px; }
.login-form label { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.login-form input[type=text], .login-form input[type=password] {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.login-form input:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-soft); }
.errors { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: #f6dde3; color: var(--beet); font-size: 14px; }

/* ---------- движение ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { opacity: 0; transform: translate(40px, 60px) rotate(-10deg); } to { opacity: 1; transform: none; } }
.ledger tbody tr { animation: rise .45s both; }
.ledger tbody tr:nth-child(1) { animation-delay: .18s; } .ledger tbody tr:nth-child(2) { animation-delay: .21s; }
.ledger tbody tr:nth-child(3) { animation-delay: .24s; } .ledger tbody tr:nth-child(4) { animation-delay: .27s; }
.ledger tbody tr:nth-child(5) { animation-delay: .3s; } .ledger tbody tr:nth-child(6) { animation-delay: .33s; }
.ledger tbody tr:nth-child(7) { animation-delay: .36s; } .ledger tbody tr:nth-child(8) { animation-delay: .39s; }
.ledger tbody tr:nth-child(9) { animation-delay: .42s; } .ledger tbody tr:nth-child(10) { animation-delay: .45s; }
.ledger tbody tr:nth-child(n+11) { animation-delay: .48s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- узкий экран ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-main { grid-column: 1 / -1; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .side { position: sticky; top: 0; width: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 14px; }
  .stamp { padding: 0; } .stamp-text small { display: none; }
  .menu { flex-direction: row; margin: 0 0 0 auto; }
  .menu a { padding: 8px 10px; font-size: 0; gap: 0; } .menu a svg { width: 21px; height: 21px; }
  .side-foot { display: none; }
  .page { margin-left: 0; padding: 22px 16px 40px; }
  .hero { grid-template-columns: 1fr; } .hero-side { border-right: 0; border-bottom: 1px dashed var(--line); }
  .login { grid-template-columns: 1fr; } .login-art { min-height: 42vh; }
  .ledger th.debt-h { min-width: 0; } .track { display: none; }
}
