/* ── styles.css — Budget Bot Telegram Mini App ──────────────────────
   Светлая система «Капитал». Безопасные отступы Telegram и браузера.
   ──────────────────────────────────────────────────────────────────── */

:root {
  --bg:     #f4f6fa;
  --sec:    #ffffff;
  --text:   #192435;
  --hint:   #596579;
  --link:   #214eb6;
  --btn:    #244fc1;
  --danger: #b42b35;
  --ok:     #21674b;
  --warn:   #875810;

  --radius-card: 12px;
  --radius-btn:  9px;
  --font: 'Golos Text', -apple-system, system-ui, sans-serif;
  --nav-h: 64px;
  /* Запас остаётся и в WebView, который не сообщает системные отступы. */
  --safe-bottom: max(24px, env(safe-area-inset-bottom, 0px), calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px)));
  --safe-left: max(12px, env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px));
  --safe-right: max(12px, env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px));
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ──────────────────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.screen {
  display: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px max(16px, var(--safe-right)) calc(var(--nav-h) + var(--safe-bottom) + 16px) max(16px, var(--safe-left));
  -webkit-overflow-scrolling: touch;
}
.screen.active { display: block; }

/* ── Bottom Navigation ───────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
  background: var(--sec);
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 100;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  color: var(--hint);
  font-size: 11px;
  min-height: 44px;
  transition: color 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-item.active { color: var(--link); }
.nav-item svg { width: 22px; height: 22px; }

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--sec);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--hint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.card.danger { border: 1px solid var(--danger); }

/* ── Progress bar ────────────────────────────────────────────────── */
.progress-wrap {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-bar {
  height: 100%;
  border-radius: 3px;
}
.progress-bar.ok     { background: var(--ok); }
.progress-bar.warn   { background: var(--warn); }
.progress-bar.danger { background: var(--danger); }
.progress-bar.semi   { background: var(--hint); }

/* ── Amount display ──────────────────────────────────────────────── */
.amount-big {
  font-size: 36px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.amount-big.negative { color: var(--danger); }
.amount-big.positive { color: var(--ok); }

.amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sub-line {
  font-size: 13px;
  color: var(--hint);
  margin-top: 4px;
}

/* ── Chips ───────────────────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip.filter {
  background: rgba(255,255,255,0.07);
  color: var(--hint);
}
.chip.filter.active {
  background: var(--btn);
  color: #fff;
}
.chip.category-chip {
  background: rgba(255,255,255,0.07);
  color: var(--text);
  font-size: 12px;
}
.chip.transfer { background: rgba(106,179,243,0.15); color: var(--link); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 44px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn:active { opacity: 0.75; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-full    { width: 100%; }
.btn-cat {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 2px solid transparent;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  flex: 1 0 calc(50% - 6px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-cat.suggested { border-color: var(--btn); color: var(--link); }
.btn-cat:active { opacity: 0.75; }

/* ── Category rows (Траты экран) ─────────────────────────────────── */
.cat-row {
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  -webkit-tap-highlight-color: transparent;
}
.cat-row:last-child { border-bottom: none; }
.cat-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.cat-name {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}
.cat-pct { font-size: 12px; color: var(--hint); }

/* ── Operations list ─────────────────────────────────────────────── */
.ops-list { padding-top: 4px; }
.op-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 8px;
}
.op-item:last-child { border-bottom: none; }
.op-merchant {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.op-date { font-size: 12px; color: var(--hint); flex-shrink: 0; }
.op-amount { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.cat-ops-expand {
  overflow: hidden;
  max-height: 0;
}
.cat-ops-expand.open { max-height: 600px; }
.cat-ops-expand .op-item { padding-left: 12px; }

/* ── Debt screen / Slider ────────────────────────────────────────── */
.slider-wrap { margin: 16px 0; }
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--hint);
  margin-bottom: 6px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--btn);
  border: 3px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--btn);
  border: 3px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.projection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.proj-cell {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px 12px;
}
.proj-label { font-size: 11px; color: var(--hint); margin-bottom: 2px; }
.proj-value { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Label screen (Разметка) ─────────────────────────────────────── */
#screen-label {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  padding: 16px max(16px, var(--safe-right)) calc(24px + var(--safe-bottom)) max(16px, var(--safe-left));
}
#screen-label.active { display: block; }

.label-op-num {
  font-size: 12px;
  color: var(--hint);
  text-align: center;
  margin-bottom: 16px;
}
.label-merchant {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
  overflow-wrap: break-word;
}
.label-date {
  font-size: 13px;
  color: var(--hint);
  text-align: center;
  margin-bottom: 8px;
}
.label-amount-row {
  text-align: center;
  margin-bottom: 20px;
}
.label-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.label-custom {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.label-custom input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 14px;
  padding: 0 12px;
  height: 44px;
  outline: none;
}
.label-custom input::placeholder { color: var(--hint); }
.label-custom input:focus { border-color: var(--btn); }

/* ── Plan screen ─────────────────────────────────────────────────── */
.plan-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.plan-input-wrap input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  padding: 0 12px;
  height: 48px;
  outline: none;
}
.plan-input-wrap input:focus { border-color: var(--btn); }
.plan-result { margin-top: 8px; }
.plan-result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  gap: 8px;
}
.plan-result-row:last-child { border-bottom: none; }
.plan-result-label { color: var(--hint); flex-shrink: 0; }
.plan-result-value { font-weight: 600; text-align: right; }
.plan-impossible {
  text-align: center;
  color: var(--danger);
  font-size: 16px;
  font-weight: 600;
  padding: 24px 0 8px;
}

/* ── Skeleton loading ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-line { height: 14px; margin-bottom: 8px; }
.skel-big  { height: 44px; margin-bottom: 12px; width: 60%; }
.skel-bar  { height: 6px; border-radius: 3px; margin: 8px 0; }

/* ── Error / notice banners ──────────────────────────────────────── */
.banner {
  padding: 14px 16px;
  border-radius: var(--radius-card);
  font-size: 14px;
  margin-bottom: 12px;
  text-align: center;
}
.banner.error   { background: rgba(236,57,66,0.15); color: var(--danger); border: 1px solid rgba(236,57,66,0.3); }
.banner.warning { background: rgba(229,163,61,0.12); color: var(--warn); border: 1px solid rgba(229,163,61,0.25); }

/* ── Pull-to-refresh hint ────────────────────────────────────────── */
.ptr-hint {
  text-align: center;
  font-size: 12px;
  color: var(--hint);
  padding: 8px 0 4px;
}

/* ── Section header ──────────────────────────────────────────────── */
.section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--hint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 8px;
}
.section-title:first-child { margin-top: 0; }

/* ── Comparison row (Долг) ───────────────────────────────────────── */
.compare-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.compare-cell {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
}
.compare-label { font-size: 11px; color: var(--hint); margin-bottom: 4px; }
.compare-value { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.compare-sub   { font-size: 11px; color: var(--hint); margin-top: 2px; }

/* ── Utility ─────────────────────────────────────────────────────── */
.text-danger { color: var(--danger); }
.text-ok     { color: var(--ok); }
.text-warn   { color: var(--warn); }
.text-hint   { color: var(--hint); }
.text-right  { text-align: right; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-0  { margin-bottom: 0; }
/* Календарь: явные подписи и удобные поля на узком экране. */

/* Общая система интерфейса советника. */
@font-face {font-family:'Golos Text';font-style:normal;font-weight:400;font-display:swap;src:url('golos-regular.ttf') format('truetype');}
@font-face {font-family:'Golos Text';font-style:normal;font-weight:500 750;font-display:swap;src:url('golos-semibold.ttf') format('truetype');}
:root { --line: #dce2eb; --soft-blue: #e9efff; }
html, body { font-size: 16px; }
::selection { background: #cfdbff; color: #152a54; }
input, textarea { caret-color: var(--btn); }
* { scrollbar-width: thin; scrollbar-color: #c4cddd transparent; }
:focus-visible { outline: 3px solid #7396ee; outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .55; }
button:hover:not(:disabled) { filter: brightness(.97); }
a { text-underline-offset: .2em; }
#app { max-width: 720px; }
.screen { padding: 20px max(24px, var(--safe-right)) calc(var(--nav-h) + var(--safe-bottom) + 20px) max(24px, var(--safe-left)); }
.bottom-nav { max-width: 720px; margin: auto; border-top: 1px solid var(--line); background: var(--sec); }
.nav-item { appearance: none; background: transparent; border: 0; font-size: 11px; font-weight: 550; gap: 5px; }
.nav-item.active { color: var(--link); }
.nav-item.active svg { stroke-width: 2.4; }
.nav-item svg { height: 23px; width: 23px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.page-header h1 { font-size: 28px; letter-spacing: -.025em; font-weight: 650; }
.wordmark { font-size: 23px; font-weight: 750; letter-spacing: -.025em; display:flex; align-items:center; gap:5px; }
.brand-dot { width:7px; height:7px; background:var(--btn); border-radius:50%; margin-top:12px; }
.date-label { font-size: 13px; color:var(--hint); }
.home-opening { margin-bottom: 26px; }
.home-opening h1 { font-size: clamp(29px, 5.2vw, 38px); line-height: 1.14; letter-spacing: -.025em; font-weight: 630; margin-bottom: 14px; }
.home-opening p { color:var(--hint); max-width: 46ch; line-height:1.6; }
.money-ledger { padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.ledger-main { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ledger-main>span { color:var(--hint); font-size:14px; line-height:1.4; }
.ledger-main strong { font-size:32px; font-weight:600; letter-spacing:-.025em; font-variant-numeric:tabular-nums; white-space:nowrap; }
.money-ledger summary { display:flex; justify-content:space-between; list-style:none; color:var(--link); font-size:13px; cursor:pointer; min-height:44px; align-items:center; }
summary::-webkit-details-marker { display:none; }
.ledger-row { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); font-size:14px; }
.ledger-row small, .review-link small { display:block; color:var(--hint); font-size:12px; font-weight:400; margin-top:4px; }
.ledger-row strong { font-weight:550; white-space:nowrap; }
.data-note { color:var(--hint); font-size:12px; line-height:1.5; margin-top:8px; }
.advisor-invitation { background:var(--soft-blue); color:#203963; margin-top:24px; padding:22px; border-radius:16px; }
.invitation-title { display:flex; align-items:center; justify-content:space-between; font-size:18px; font-weight:650; }
.invitation-title svg { width:25px; height:25px; }
.advisor-invitation p { font-size:14px; line-height:1.6; margin:12px 0 18px; }
.advisor-invitation .btn { width:100%; justify-content:space-between; display:flex; align-items:center; }
.btn { min-height:44px; border-radius:12px; padding:10px 16px; font-size:14px; font-weight:550; transition:background .16s ease; }
.btn-primary { background:var(--btn); color:white; }
.home-next { margin-top:26px; }
h2 { font-size:18px; letter-spacing:-.015em; font-weight:650; margin-bottom:10px; }
.review-link { display:flex; align-items:center; justify-content:space-between; width:100%; background:none; border:0; border-bottom:1px solid var(--line); text-align:left; padding:18px 0; color:var(--text); font-size:14px; }
.card { background:var(--sec); padding:20px; border-radius:16px; margin-top:16px; margin-bottom:16px; }
.card-title, .section-title { text-transform:none; letter-spacing:0; color:var(--text); font-size:17px; font-weight:600; }
.card.danger { border:1px solid var(--line); }
.progress-wrap { background:#e2e7ef; height:4px; }
.progress-bar.danger { background:#5477c5; }
.amount-big { color:var(--text); font-size:38px; font-weight:600; }
.chip { background:#e8edf4; color:var(--text); border-radius:8px; }
.chip.filter { min-height:44px; padding:10px 12px; }
.cat-row summary { display:block; list-style:none; cursor:pointer; min-height:44px; }
.category-chevron { width:16px; height:16px; flex-shrink:0; }
.cat-row[open] .category-chevron { transform:rotate(180deg); }
.btn-secondary { background:#e9eef6; color:var(--text); }
.label-cat { background:#edf1f7; color:var(--text); }
.btn-cat { background:#edf1f7; border-color:#c5cfdd; }
.label-custom input { min-width:0; background:white; border-color:#bac7dc; font-size:16px; }
#screen-label { background:var(--bg); }
.debt-overview { border-bottom:1px solid var(--line); padding:0 0 28px; }
.debt-overview strong { display:block; font-size:42px; letter-spacing:-.03em; font-weight:600; margin:6px 0; }
.debt-overview p { font-size:14px; color:var(--hint); }
.payment-editor { padding-top:26px; }
#payment-form { margin-top:22px; }
#payment-form label { font-size:13px; color:var(--hint); }
.payment-control { display:flex; align-items:center; gap:10px; margin:8px 0 14px; }
.payment-control input { flex:1; min-width:0; width:100%; border:1px solid #bcc8da; border-radius:12px; padding:13px; font-size:23px; background:white; color:var(--text); text-align:center; font-variant-numeric:tabular-nums; }
.payment-control .btn { width:48px; height:52px; font-size:24px; background:white; color:var(--link); border:1px solid var(--line); }
.payment-presets { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.payment-presets .btn { background:#e7edf8; color:#244477; font-size:12px; }
.projection-grid { gap:0; margin-top:24px; border-top:1px solid var(--line); }
.proj-cell { background:transparent; border-radius:0; padding:16px 8px 16px 0; border-bottom:1px solid var(--line); }
.proj-label { color:var(--hint); }
.proj-value { font-size:22px; font-weight:550; }
#screen-plans.active { display:flex; padding-bottom:calc(var(--nav-h) + var(--safe-bottom) + 10px); }
.advisor-layout { min-height:0; width:100%; display:flex; flex-direction:column; }
.advisor-layout .page-header { margin-bottom:10px; }
.advisor-emblem { display:flex; width:42px; height:42px; padding:10px; background:var(--soft-blue); color:var(--link); border-radius:12px; }
.advisor-emblem svg { width:100%; height:100%; }
.chat-transcript { flex:1; min-height:0; overflow-y:auto; padding:12px 0 20px; }
.chat-message { margin:0 0 22px; max-width:94%; overflow-wrap:anywhere; }
.message-author { font-size:12px; color:var(--hint); display:block; margin-bottom:8px; }
.chat-message p { line-height:1.65; font-size:15px; }
.from-user { background:var(--soft-blue); color:#19335d; padding:12px 16px; border-radius:14px; margin-left:auto; }
.from-user .message-author { display:none; }
.chat-action { color:var(--link); background:#e8eefb; margin:12px 8px 0 0; border:1px solid #c4d1ed; }
.question-starters { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.question-starters .btn { border:1px solid var(--line); color:var(--hint); background:white; font-size:12px; }
.chat-composer { display:flex; align-items:flex-end; gap:10px; background:white; border:1px solid #bac7dc; border-radius:16px; padding:8px; margin-top:8px; }
.chat-composer textarea { flex:1; min-width:0; max-height:130px; border:0; background:none; color:var(--text); padding:12px 6px; font-size:16px; resize:vertical; line-height:1.4; }
.chat-composer textarea::placeholder { color:var(--hint); }
.chat-composer .send-button { display:flex; align-items:center; justify-content:center; background:var(--btn); color:white; width:44px; padding:10px; flex-shrink:0; }
.send-button svg { width:23px; height:23px; }
.composer-note { font-size:10px; text-align:center; color:var(--hint); margin-top:8px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.demo-notice { background:#e7edf8; color:#475c7c; text-align:center; font-size:11px; padding:5px 12px; letter-spacing:.01em; }
@media (max-width:380px) { .screen { padding-left:18px; padding-right:18px; } .home-opening h1 {font-size:28px;} .ledger-main strong {font-size:28px;} .advisor-invitation {padding:18px;} }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
/* Component display rules must preserve the native hidden attribute. */
[hidden] { display: none !important; }
.home-section { padding: 24px 0; border-top: 1px solid var(--line); }
.section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.text-action { border:0; background:none; color:var(--link); padding:10px 0; min-height:44px; cursor:pointer; font:inherit; font-size:13px; text-align:left; }
.goal-summary { padding:8px 0 18px; }
.goal-summary progress { width:100%; height:5px; accent-color:var(--btn); border:0; }
.goal-summary strong small { display:block; color:var(--hint); font-weight:normal; }
.home-section>summary { cursor:pointer; font-weight:600; min-height:44px; }
.ledger-row { gap:14px; overflow-wrap:anywhere; }
@media(max-width:380px) { .ledger-main { flex-wrap:wrap; } .ledger-main strong { white-space:normal; overflow-wrap:anywhere; } }
