/* @ds-v23 (затвор: только токены) — Minta DS v3 · полоса H: экраны телефона (public/screens/m/*).
 * Разметка собрана на компонентах DS (ds-btn, ds-card, ds-alert, ds-empty, ds-check, skeleton, moneyHero); здесь только раскладка
 * телефонных страниц, строк списков и листа снизу — того, чего в DS нет. Экраны живут в островке .ds22.
 */

/* ───────── страница ───────── */
html .ds22 .mx-page{padding-left:var(--space-6);padding-right:var(--space-6)}
html .ds22 .mx-head{display:flex;align-items:center;gap:var(--space-4);margin:0 0 var(--space-6)}
html .ds22 .mx-title{margin:0;font:var(--type-page-title);color:var(--text-primary)}
html .ds22 .mx-h2{margin:0 0 var(--space-4);font:var(--type-section-title);color:var(--text-primary)}
html .ds22 .mx-h2--tight{margin:var(--space-2) 0 0}
html .ds22 .mx-section{margin-bottom:var(--space-8)}
html .ds22 .mx-section__head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:var(--space-4)}
html .ds22 .mx-section__head .mx-h2{margin:0}
html .ds22 .mx-link{display:inline-flex;align-items:center;min-height:var(--control-touch)}
html .ds22 .mx-tabs{margin-bottom:var(--space-6)}

/* ───────── текст и числа ───────── */
html .ds22 .mx-label{font:var(--type-label);color:var(--text-muted);margin-bottom:var(--space-2)}
html .ds22 .mx-caption{font:var(--type-caption);color:var(--text-muted)}
html .ds22 .mx-caption--gap{margin-bottom:var(--space-4)}
html .ds22 .mx-muted{color:var(--text-muted)}
html .ds22 .mx-lead{margin:0 0 var(--space-5);color:var(--text-secondary)}
html .ds22 .mx-name{font-weight:600}
html .ds22 .mx-value{font:var(--type-body);color:var(--text-primary)}
html .ds22 .mx-num{display:block;font-variant-numeric:tabular-nums;white-space:nowrap}
html .ds22 .mx-num--strong{display:inline;color:var(--text-primary)}
html .ds22 .mx-amount{font:var(--type-money);font-variant-numeric:tabular-nums;white-space:nowrap;margin-bottom:var(--space-2)}
html .ds22 .mx-amount--lg{font:var(--type-money-large);letter-spacing:var(--type-money-large-tracking);margin-bottom:var(--space-3)}
html .ds22 .mx-amount--hero{font:var(--type-money-hero);letter-spacing:var(--type-money-hero-tracking);margin-bottom:0}
html .ds22 .mx-ellipsis{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html .ds22 .mx-hero{margin-bottom:var(--space-7)}
html .ds22 .mx-hero .mx-caption{margin-top:var(--space-2)}
html .ds22 .mx-hero .ds-kpi__value{display:block}
html .ds22 .mx-gap{margin-bottom:var(--space-3)}
html .ds22 .mx-gap-lg{margin-bottom:var(--space-6)}
html .ds22 .mx-gap-top{margin-top:var(--space-6)}

/* ───────── раскладка ───────── */
html .ds22 .mx-grow{flex:1;min-width:0}
html .ds22 .mx-stack{display:flex;flex-direction:column;gap:var(--space-4)}
html .ds22 .mx-actions{display:flex;gap:var(--space-4)}
html .ds22 .mx-list{list-style:none;margin:0;padding:0}
html .ds22 .mx-item{border-bottom:var(--border-width) solid var(--border)}

/* ───────── строки списков ───────── */
html .ds22 .mx-row{display:flex;gap:var(--space-4);padding:var(--space-4) 0;border-bottom:var(--border-width) solid var(--border);align-items:baseline}
html .ds22 .mx-row .mx-row{padding:0;border-bottom:0}
html .ds22 .mx-row--between{justify-content:space-between}
html .ds22 .mx-row--top{align-items:flex-start;padding:var(--space-5) 0}
html .ds22 .mx-row--tight{margin-bottom:var(--space-2)}
html .ds22 .mx-row--col{flex-direction:column;gap:var(--space-1)}
html .ds22 .mx-row--pick{align-items:center;padding:var(--space-5) 0}
html .ds22 .mx-row__end{flex:none;text-align:right}
html .ds22 .mx-row__end .mx-caption{display:block}
html .ds22 .mx-row__badge{margin-top:var(--space-1)}
html .ds22 .mx-pick{display:flex;align-items:center;justify-content:center;flex:none;width:var(--control-touch);min-height:var(--control-touch)}
html .ds22 .mx-pick--off{visibility:hidden}

/* строка-кнопка: без рамки и фона, читается как строка списка */
html .ds22 .mx-rowbtn{box-sizing:border-box;border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;text-align:left;cursor:pointer;min-width:0}
html .ds22 .mx-rowbtn--block{display:block;width:100%;padding:var(--space-5) 0;min-height:var(--control-touch)}
html .ds22 .mx-rowbtn:focus-visible{outline:var(--border-width) solid var(--accent-mint-strong);outline-offset:var(--space-1)}
html .ds22 .mx-linkrow{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:var(--control-touch);padding:0 var(--space-2)}
html .ds22 .mx-links{margin-top:var(--space-6);display:flex;flex-direction:column;gap:var(--space-1)}

/* ───────── решения (карточка и строка внимания) ───────── */
html .ds22 .mx-decision{padding:var(--space-6);margin-bottom:var(--space-5)}
html .ds22 .mx-decision__head{display:flex;gap:var(--space-3);align-items:flex-start;margin-bottom:var(--space-3)}
html .ds22 .mx-decision__title{flex:1;min-width:0;font:var(--type-body);text-align:left;color:var(--text-primary)}
html .ds22 .mx-meta{display:flex;flex-wrap:wrap;gap:var(--space-3);font:var(--type-caption);color:var(--text-muted);padding-left:calc(var(--icon-md) + var(--space-3))}

/* ───────── операция ───────── */
html .ds22 .mx-field{padding:var(--space-5) 0;border-bottom:var(--border-width) solid var(--border)}
html .ds22 .mx-budget{padding:var(--space-4);margin-bottom:var(--space-6)}
html .ds22 .mx-upload{display:flex;align-items:center;justify-content:center;gap:var(--space-3);min-height:var(--control-touch);border:var(--border-width) dashed var(--border-strong);border-radius:var(--radius-md);cursor:pointer;color:var(--accent-mint-strong);font-weight:600}

/* ───────── панель пачки ───────── */
html .ds22 .mx-batchbar{position:sticky;bottom:0;padding:var(--space-5) 0 calc(var(--space-5) + env(safe-area-inset-bottom));background:var(--surface);border-top:var(--border-width) solid var(--border);margin-top:var(--space-6)}

/* ───────── лист снизу ───────── */
html .ds22 .mx-sheet{position:fixed;left:0;right:0;bottom:0;z-index:var(--z-modal);background:var(--surface);border-top:var(--border-width) solid var(--border);border-radius:var(--radius-xl) var(--radius-xl) 0 0;box-shadow:var(--shadow-overlay);padding:var(--space-7) var(--space-6) calc(var(--space-8) + env(safe-area-inset-bottom));max-height:80vh;overflow:auto}
html .ds22 .mx-sheet__grip{width:var(--space-10);height:var(--space-2);border-radius:var(--radius-pill);background:var(--border-strong);margin:0 auto var(--space-6)}
html .ds22 .mx-sheet__title{margin:0 0 var(--space-5);font:var(--type-section-title);color:var(--text-primary)}
