/* Шаг 2: паспорт стиля. */
:root {
  --font-display: "Unbounded", sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --radius-card: 16px;
  --radius-sheet: 28px;
  --radius-pill: 999px;
  --track: #24272B;
  --info: #8EC5FF;
  --size-1: 0px;
  --font-1: "Golos Text";
  --size-2: 15px;
  --color-1: transparent;
  --size-3: 4px;
  --size-4: 14px;
  --size-5: -0.01em;
  --size-6: 17px;
  --weight-1: 600;
  --size-7: 10px;
  --size-8: 6px;
  --size-9: 8px;
  --size-10: 13px;
  --size-11: 12px;
  --size-12: 720px;
  --size-13: 16px;
  --size-14: 20px;
  --size-15: 26px;
  --size-16: 40px;
  --color-2: var(--text);
  --size-17: 32px;
  --font-2: inherit;
  --size-18: 44px;
  --weight-2: 600;
  --size-19: 1px;
  --size-20: 80px;
  --size-21: 2px;
  --size-22: 22px;
  --size-23: 34px;
  --weight-3: 700;
  --size-24: 68px;
  --size-25: 3px;
  --size-26: 11px;
  --shadow-1: var(--shadow);
  --size-27: 999px;
  --size-28: 84px;
  --size-29: 48px;
  --size-30: 240px;
  --size-31: 56px;
  --size-32: 9px;
  --size-33: 99px;
  --size-34: 110px;
  --size-35: 170px;
  --size-36: 18px;
  --size-37: 5px;
  --size-38: 52px;
  --size-39: 62px;
  --size-40: -26px;
  --shadow-2: rgba(15, 94, 87, 0.35) 0px 6px 18px;
  --shadow-3: rgba(198, 40, 40, 0.18) 0px 0px 0px 8px;
  --color-3: rgba(0, 0, 0, 0.35);
  --size-41: 100dvh;
  --size-42: 24px;
  --shadow-4: rgba(0, 0, 0, 0.12) 0px -8px 24px;
  --size-43: 36px;
  --size-44: 60px;
  --size-45: 96px;
  --size-46: -32px;
  --size-47: 100vw;
  --size-48: 70dvh;
  --size-49: 64px;
  --size-50: 76px;
  --size-51: 74px;
  --size-52: 456px;
  --size-53: 30px;
  --shadow-5: none;
  --shadow-6: 0 0 0 3px var(--card), 0 0 0 6px var(--text);
  --size-54: -4px;
  --shadow-7: rgba(0, 0, 0, 0.15) 0px 4px 16px;
  --shadow-8: 0 0 0 3px var(--card), 0 0 0 5px var(--text);
  --size-55: 360px;
  --size-56: 28px;
  --shadow-9: rgba(0, 0, 0, 0.12) 0px 4px 16px;
  --shadow-10: inset 0 0 0 2px var(--danger);
  --size-57: 90px;
  --size-58: -45px;
  --font-3: "Golos Text", system-ui, sans-serif;
  --font-4: "Golos Text", system-ui, sans-serif;
  --size-59: 0.12em;
  --size-60: 38px;
  --size-61: -0.04em;
  --weight-4: 500;
  --size-62: 7px;
  --shadow-11: inset 0 0 0 1px var(--border);
  --size-63: 72px;
  --color-4: #24272B;
  --size-64: 46px;
  --weight-5: 400;
  --size-65: 0.08em;
  --color-5: var(--card);
  --color-6: var(--text);
  --font-5: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --size-66: 145px;
  --font-6: "Golos Text";
  --color-7: var(--gold);
  --color-8: var(--text);
  --color-9: var(--muted);
  --color-10: var(--card);
  --color-11: #8EC5FF;
  --size-67: 70px;
  --color-12: var(--border);
  --color-13: var(--bg);
  --color-14: var(--line);
  --size-68: 520px;
  --color-15: rgba(0, 0, 0, 0.65);
  --size-69: 19px;
  --size-70: 220px;
  --size-71: -240px;
  --size-72: 50vw;
  --size-73: -35px;
  --size-74: -1px;
  --size-75: 86px;
  --size-76: 460px;
  --shadow-12: rgba(0, 0, 0, 0.533) 0px 4px 20px;
  --size-77: 160px;
  --size-78: -12px;
  --size-79: -8px;
  --size-80: 35px;
  --size-81: 47px;
  --color-16: var(--text);
  --color-17: var(--warn-soft);
  --size-82: 50px;
  --size-83: 610px;
  --size-84: 88px;
  --size-85: 42px;
  color-scheme: dark;
  --bg: #0E0F11;
  --card: #17191C;
  --button: #17191C;
  --border: #1E2024;
  --text: #F2EFE8;
  --muted: #A29E97;
  --line: #1E2024;
  --primary: #FFB547;
  --primary-soft: #1E1A12;
  --on-primary: #0E0F11;
  --warn: #FFB547;
  --gold: #FFB547;
  --warn-soft: #1E1A12;
  --danger: #FF6B5B;
  --danger-border: #FF6B5B;
  --wait-bg: #1E1A12;
  --wait-text: #A29E97;
  --income: #7FD69B;
  --limit-warn: #FFB547;
  --radius: 16px;
  --shadow: none;
}

@font-face {font-family:"Unbounded";font-style:normal;font-weight:600 700;font-display:swap;src:url("/static/fonts/unbounded-variable.ttf") format("truetype");}
@font-face {font-family:"Golos Text";font-style:normal;font-weight:400;font-display:swap;src:url("/static/fonts/golos-text-400.ttf") format("truetype");}
@font-face {font-family:"Golos Text";font-style:normal;font-weight:500;font-display:swap;src:url("/static/fonts/golos-text-500.ttf") format("truetype");}
@font-face {font-family:"Golos Text";font-style:normal;font-weight:600;font-display:swap;src:url("/static/fonts/golos-text-600.ttf") format("truetype");}
* { box-sizing: border-box; }
html { text-size-adjust: 100%; }
body { margin: var(--size-1); background: var(--bg); color: var(--text); font: var(--size-2) / 1.45 var(--font-1), system-ui, sans-serif; -webkit-tap-highlight-color: var(--color-1); }
a { color: var(--primary); text-decoration: none; }
::placeholder { color: var(--muted); opacity: 1; }
h1 { margin: var(--size-3) var(--size-1) var(--size-4); letter-spacing: var(--size-5); }
h2 { font-size: var(--size-6); font-weight: var(--weight-1); margin: var(--size-1) var(--size-1) var(--size-7); }
h3 { font-size: var(--size-2); font-weight: var(--weight-1); margin: var(--size-1) var(--size-1) var(--size-8); }
p { margin: var(--size-1) var(--size-1) var(--size-9); }
.muted { color: var(--muted); }
.small { font-size: var(--size-10); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: var(--size-7); }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 0%; min-width: var(--size-1); }
.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: var(--size-11); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app { max-width: var(--size-12); margin: var(--size-1) auto; }
.card { background: var(--card); }
.card.flat { padding: var(--size-3) var(--size-13); }
.card-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--size-9); }
.card-title h2 { margin: var(--size-1); }
.mid { font-size: var(--size-14); font-weight: var(--weight-1); }
.income { color: var(--income); }
.expense { color: var(--text); }
.warn { color: var(--warn); }
.danger { color: var(--danger); }
.ic { display: inline-block; width: var(--size-14); height: var(--size-14); flex: 0 0 auto; background: currentcolor; mask: var(--i) center / contain no-repeat; }
.ic.sm { width: var(--size-13); height: var(--size-13); }
.ic.lg { width: var(--size-15); height: var(--size-15); }
.badge-ic { width: var(--size-16); height: var(--size-16); border-radius: var(--size-11); display: grid; place-items: center; color: var(--color-2); flex: 0 0 auto; }
.badge-ic.sm { width: var(--size-17); height: var(--size-17); border-radius: var(--size-7); }
.btn, button { font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: var(--font-2); font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; min-height: var(--size-18); padding: var(--size-7) var(--size-13); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--size-9); }
.btn.secondary, button.secondary { background: var(--primary-soft); color: var(--primary); }
.btn.ghost, button.ghost { background: var(--color-1); color: var(--primary); border-color: var(--line); }
.btn.danger, button.danger { background: var(--color-1); color: var(--danger); border-color: var(--line); }
.btn.block, button.block { width: 100%; }
.btn-row { display: flex; gap: var(--size-7); }
.btn-row > * { flex: 1 1 0%; }
.icon-btn { min-width: var(--size-18); min-height: var(--size-18); padding: var(--size-1); border-radius: var(--size-11); }
label { display: block; font-size: var(--size-10); font-weight: var(--weight-2); color: var(--muted); margin: var(--size-11) var(--size-1) var(--size-8); }
input, select, textarea { font: inherit; width: 100%; padding: var(--size-7) var(--size-4); border: var(--size-19) solid var(--line); color: var(--text); }
textarea { min-height: var(--size-20); resize: vertical; }
input:focus, select:focus, textarea:focus { outline: var(--size-21) solid var(--primary); outline-offset: var(--size-1); border-color: var(--color-1); }
input[type="checkbox"], input[type="radio"] { width: var(--size-22); height: var(--size-22); min-height: var(--size-1); accent-color: var(--primary); }
.amount-input { font-size: var(--size-23); font-weight: var(--weight-3); text-align: center; min-height: var(--size-24); }
.check { display: flex; align-items: center; gap: var(--size-7); min-height: var(--size-18); color: var(--text); font-size: var(--size-2); margin: var(--size-8) var(--size-1); }
.error-box { background: var(--warn-soft); color: var(--warn); border-radius: var(--size-4); padding: var(--size-11) var(--size-4); margin-bottom: var(--size-11); font-weight: var(--weight-2); }
.ok-box { background: var(--primary-soft); color: var(--primary); border-radius: var(--size-4); padding: var(--size-11) var(--size-4); margin-bottom: var(--size-11); font-weight: var(--weight-2); }
.seg { display: flex; padding: var(--size-25); gap: var(--size-25); overflow-x: auto; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label, .seg a { flex: 1 1 0%; margin: var(--size-1); min-height: var(--size-16); display: grid; place-items: center; padding: var(--size-1) var(--size-7); border-radius: var(--size-26); color: var(--text); font-size: var(--size-4); font-weight: var(--weight-1); cursor: pointer; white-space: nowrap; }
.seg input:checked + label, .seg a.on { background: var(--card); color: var(--primary); box-shadow: var(--shadow-1); }
.chips { display: flex; gap: var(--size-9); flex-wrap: wrap; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: var(--size-8); min-height: var(--size-16); padding: var(--size-1) var(--size-4); border-radius: var(--size-27); background: var(--card); border: var(--size-19) solid var(--line); color: var(--text); font-size: var(--size-4); font-weight: var(--weight-2); cursor: pointer; margin: var(--size-1); white-space: nowrap; }
.chips input:checked + .chip, .chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.scroll-x { overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--size-3); scrollbar-width: none; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--size-9); }
.cat-grid input { position: absolute; opacity: 0; pointer-events: none; }
.cat-tile { margin: var(--size-1); display: flex; flex-direction: column; align-items: center; gap: var(--size-8); padding: var(--size-7) var(--size-3); border-radius: var(--size-13); border: var(--size-21) solid var(--color-1); color: var(--text); font-size: var(--size-11); font-weight: var(--weight-2); text-align: center; line-height: 1.2; cursor: pointer; min-height: var(--size-28); }
.cat-grid input:checked + .cat-tile { border-color: var(--primary); background: var(--primary-soft); }
.palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: var(--size-9); }
.palette input { position: absolute; opacity: 0; pointer-events: none; }
.palette input:focus-visible + label { outline: var(--size-21) solid var(--primary); outline-offset: var(--size-21); }
.palette label { margin: var(--size-1); aspect-ratio: 1 / 1; border-radius: var(--size-11); cursor: pointer; border: var(--size-25) solid var(--color-1); }
.palette input:checked + label { border-color: var(--text); }
.icon-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--size-29), 1fr)); gap: var(--size-8); max-height: var(--size-30); overflow: auto; margin-top: var(--size-9); }
.icon-results button { background: var(--bg); color: var(--text); min-height: var(--size-29); padding: var(--size-1); }
.icon-results button.on { background: var(--primary); color: var(--on-primary); }
.list { list-style: none; margin: var(--size-1); padding: var(--size-1); }
.list > li, .list > a { display: flex; align-items: center; gap: var(--size-11); padding: var(--size-11) var(--size-1); border-bottom: var(--size-19) solid var(--line); color: var(--text); min-height: var(--size-31); }
.list > li:last-child, .list > a:last-child { border-bottom: var(--size-1); }
.list .title { font-weight: var(--weight-2); }
.day-head { font-size: var(--size-10); font-weight: var(--weight-1); color: var(--muted); margin: var(--size-13) var(--size-3) var(--size-8); display: flex; justify-content: space-between; }
.task-check { padding: var(--size-1); flex: 0 0 auto; color: var(--on-primary); }
.done-title { color: var(--muted); }
.pill { font-size: var(--size-11); font-weight: var(--weight-1); padding: var(--size-25) var(--size-32); border-radius: var(--size-27); background: var(--bg); color: var(--muted); white-space: nowrap; }
.pill.wait { background: var(--wait-bg); color: var(--wait-text); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.ok { background: var(--primary-soft); color: var(--primary); }
.progress { height: var(--size-9); border-radius: var(--size-33); background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--primary); border-radius: var(--size-33); }
.hbar { display: grid; grid-template-columns: minmax(var(--size-34), 40%) 1fr auto; line-height: 1.2; gap: var(--size-7); align-items: center; margin: var(--size-9) var(--size-1); font-size: var(--size-4); }
.hbar .track { height: var(--size-11); border-radius: var(--size-8); background: var(--bg); overflow: hidden; }
.hbar .track > i { display: block; height: 100%; border-radius: var(--size-8); }
.vbars { display: flex; align-items: flex-end; gap: var(--size-7); height: var(--size-35); padding-top: var(--size-7); }
.vbars .col { flex: 1 1 0%; display: flex; flex-direction: column; align-items: center; gap: var(--size-8); height: 100%; justify-content: flex-end; }
.vbars .pair { display: flex; gap: var(--size-25); align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.vbars .pair i { width: 40%; max-width: var(--size-36); border-radius: var(--size-37) var(--size-37) var(--size-21) var(--size-21); min-height: var(--size-21); }
.legend { display: flex; gap: var(--size-4); font-size: var(--size-10); color: var(--muted); margin-top: var(--size-9); }
.legend i { display: inline-block; width: var(--size-7); height: var(--size-7); border-radius: var(--size-25); margin-right: var(--size-37); }
.nav { position: fixed; left: var(--size-1); right: var(--size-1); bottom: var(--size-1); z-index: 40; border-top: var(--size-19) solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
@media (pointer: coarse) {
body:has(:is(input:not([type="radio"], [type="checkbox"], [type="range"], [type="color"], [type="date"], [type="time"], [type="month"], [type="file"]), textarea):focus) .nav { display: none; }
}
@media (pointer: coarse) {
body:has(:is(input:not([type="radio"], [type="checkbox"], [type="range"], [type="color"], [type="date"], [type="time"], [type="month"], [type="file"]), textarea):focus) :is(.sticky-save, .quick) { bottom: var(--size-9); }
}
@media (pointer: coarse) {
body:has(:is(input:not([type="radio"], [type="checkbox"], [type="range"], [type="color"], [type="date"], [type="time"], [type="month"], [type="file"]), textarea):focus) .sheet { --nav-h: var(--size-1); }
}
.nav-in { max-width: var(--size-12); margin: var(--size-1) auto; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: var(--size-25); color: var(--muted); min-height: var(--size-38); justify-content: center; }
.nav a.on { color: var(--primary); }
.mic { width: var(--size-39); height: var(--size-39); border-radius: 50%; margin: var(--size-40) auto var(--size-1); background: var(--primary); color: var(--on-primary); display: grid; place-items: center; box-shadow: var(--shadow-2); border: var(--size-3) solid var(--bg); padding: var(--size-1); }
.mic { touch-action: none; user-select: none; }
.mic.rec { background: var(--danger); animation: 1.2s ease 0s infinite normal none running pulse; box-shadow: var(--shadow-3); }
@keyframes pulse {
50% { transform: scale(1.06); }
}
.sheet-back { position: fixed; inset: var(--size-1); background: var(--color-3); z-index: 30; display: none; }
.sheet { position: fixed; left: var(--size-1); right: var(--size-1); bottom: var(--nav-h); z-index: 31; max-width: var(--size-12); margin: var(--size-1) auto; max-height: calc(var(--size-41) - var(--nav-h) - var(--size-42)); overflow: auto; background: var(--bg); border-radius: var(--size-42) var(--size-42) var(--size-1) var(--size-1); padding: var(--size-36) var(--size-13) var(--size-13); display: none; box-shadow: var(--shadow-4); overscroll-behavior: contain; }
body:has(.sheet.open, dialog[open]) { overflow: hidden; }
.rec-panel { background: var(--card); border-radius: var(--size-36); padding: var(--size-4); margin-bottom: var(--size-11); box-shadow: var(--shadow-1); }
.rec-top { display: flex; align-items: center; gap: var(--size-7); font-variant-numeric: tabular-nums; }
.rec-dot { width: var(--size-11); height: var(--size-11); border-radius: 50%; background: var(--danger); animation: 1s ease 0s infinite normal none running blink; flex: 0 0 auto; }
@keyframes blink {
50% { opacity: 0.25; }
}
.level { flex: 1 1 0%; height: var(--size-43); display: flex; align-items: center; gap: var(--size-25); }
.level i { flex: 1 1 0%; height: 100%; border-radius: var(--size-25); background: var(--danger); transform: scaleY(0.08); transition: transform 0.08s linear; }
.rec-panel p { margin: var(--size-9) var(--size-1) var(--size-7); }
.rec-free { display: none; }
.rec-panel.locked .rec-hold { display: none; }
.rec-panel.locked .rec-free { display: block; }
.rec-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--size-7); }
.rec-btns button { min-height: var(--size-29); }
.rec-done { background: var(--primary); }
.rec-panel.locked .rec-btns { grid-template-columns: 1fr 2fr; }
.rec-panel.locked .rec-done { background: var(--danger); color: var(--color-2); min-height: var(--size-44); font-size: var(--size-36); }
.mic-tip { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--size-45) + env(safe-area-inset-bottom)); z-index: 45; background: var(--text); color: var(--bg); padding: var(--size-7) var(--size-13); border-radius: var(--size-4); font-weight: var(--weight-1); font-size: var(--size-4); max-width: calc(var(--size-46) + var(--size-47)); text-align: center; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--size-45) + env(safe-area-inset-bottom)); z-index: 46; display: flex; align-items: center; gap: var(--size-4); background: var(--text); color: var(--bg); padding: var(--size-7) var(--size-13); border-radius: var(--size-4); font-weight: var(--weight-2); font-size: var(--size-4); width: max-content; max-width: calc(var(--size-46) + var(--size-47)); }
.toast button { min-height: var(--size-43); padding: var(--size-1) var(--size-11); background: var(--color-1); color: var(--bg); border: var(--size-19) solid; border-radius: var(--size-7); font-weight: var(--weight-1); }
.skel { height: var(--size-31); border-radius: var(--size-4); background: var(--line); margin: var(--size-1) var(--size-1) var(--size-7); animation: 1.2s ease-in-out 0s infinite normal none running skel-pulse; }
.skel.short { width: 60%; height: var(--size-14); }
@keyframes skel-pulse {
50% { opacity: 0.45; }
}
body.navigating .app > * { visibility: hidden; }
body.navigating .app { min-height: var(--size-48); animation: 1.2s ease-in-out 0s infinite normal none running skel-pulse; background: linear-gradient(var(--line), var(--line)) var(--size-13) var(--size-42) / 45% var(--size-15) no-repeat,
              repeating-linear-gradient(to bottom, var(--line) 0 var(--size-49), var(--color-1) var(--size-49) var(--size-50)) var(--size-13) var(--size-51) / calc(100% - var(--size-17)) var(--size-52) no-repeat; }
.gone { display: none !important; }
.limits { display: grid; gap: var(--size-4); }
.limit { display: grid; gap: var(--size-8); color: var(--text); }
.limit-bar { display: block; border-radius: var(--size-8); background: var(--line); overflow: hidden; }
.limit-bar i { display: block; height: 100%; border-radius: var(--size-8); background: var(--primary); }
.limit.warn .limit-bar i { background: var(--limit-warn); }
.limit.over .limit-bar i { background: var(--danger); }
.limit-note { color: var(--muted); }
.limit.warn .limit-note { color: var(--warn); }
.limit.over .limit-note { color: var(--danger); font-weight: var(--weight-1); }
.payoff.best { outline: var(--size-21) solid var(--primary); }
.payoff-order { margin: var(--size-9) var(--size-1) var(--size-1); padding: var(--size-1); list-style: none; }
.payoff-order li { display: flex; gap: var(--size-7); align-items: flex-start; padding: var(--size-9) var(--size-1); border-bottom: var(--size-19) solid var(--line); }
.payoff-order .n { font-weight: var(--weight-3); color: var(--muted); min-width: var(--size-36); }
.payoff-order .right { flex: 0 0 auto; }
.note-card .row { gap: var(--size-9); }
.note-card input[name="text"] { min-width: var(--size-1); }
.note-chips { margin-top: var(--size-7); gap: var(--size-8); }
.note-chips input { position: absolute; opacity: 0; pointer-events: none; }
.note-chips label { margin: var(--size-1); min-height: var(--size-43); display: inline-flex; align-items: center; padding: var(--size-1) var(--size-11); border-radius: var(--size-36); border: var(--size-21) solid var(--lc); color: var(--text); font-size: var(--size-4); font-weight: var(--weight-1); cursor: pointer; }
.note-chips input:checked + label { background: var(--lc); color: var(--color-2); }
.note-chips input:focus-visible + label { outline: var(--size-21) solid var(--primary); outline-offset: var(--size-21); }
.note-list { margin-top: var(--size-9); }
.note-row { display: flex; align-items: center; min-height: var(--size-38); border-bottom: var(--size-19) solid var(--line); background: var(--card); transition: transform 0.15s ease-out; touch-action: pan-y; }
.note-row:last-child { border-bottom: var(--size-1); }
.note-row.pending { opacity: 0.6; }
.note-labels { display: flex; flex-wrap: wrap; gap: var(--size-3); }
.nl { background: var(--lc); color: var(--color-2); padding: var(--size-19) var(--size-9); font-size: var(--size-11); font-weight: var(--weight-1); }
.said { color: var(--muted); font-size: var(--size-4); margin: var(--size-1) var(--size-1) var(--size-7); }
.wait-dots::after { content: "…"; animation: 1s ease 0s infinite normal none running blink; }
.steps { margin: var(--size-8) var(--size-1); padding-left: var(--size-14); }
.steps li { margin: var(--size-3) var(--size-1); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: var(--size-3) var(--size-11); margin: var(--size-9) var(--size-1) var(--size-1); font-size: var(--size-4); }
.kv dt { color: var(--muted); }
.kv dd { margin: var(--size-1); font-weight: var(--weight-1); word-break: break-all; }
.voice-log p { margin: var(--size-8) var(--size-1); }
.draft .btn-row { flex-wrap: wrap; }
.draft [data-say-again] { flex-basis: 100%; }
.fields { display: grid; gap: var(--size-21); margin: var(--size-9) var(--size-1) var(--size-8); }
.fld { display: grid; grid-template-columns: var(--size-45) 1fr; align-items: center; gap: var(--size-9); margin: var(--size-1); font-size: var(--size-4); color: var(--muted); font-weight: var(--weight-2); }
.fld > b { color: var(--text); padding: var(--size-9) var(--size-1); }
.fld input, .fld select { min-height: var(--size-16); padding: var(--size-8) var(--size-9); border-top: var(--size-1); border-right: var(--size-1); border-left: var(--size-1); border-image: none; border-bottom: var(--size-19) dashed var(--line); border-radius: var(--size-9); background: var(--color-1); color: var(--text); font-weight: var(--weight-1); font-size: var(--size-2); width: 100%; }
.fld input:focus, .fld select:focus { background: var(--card); outline: var(--size-21) solid var(--primary); }
.sheet.open, .sheet.open + .sheet-back { display: block; }
.draft { border-left: var(--size-3) solid var(--primary); }
.draft dl { display: grid; grid-template-columns: auto 1fr; gap: var(--size-3) var(--size-11); margin: var(--size-9) var(--size-1) var(--size-11); font-size: var(--size-4); }
.draft dt { color: var(--muted); }
.draft dd { margin: var(--size-1); font-weight: var(--weight-2); }
.offline-banner { background: var(--warn); color: var(--color-2); text-align: center; padding: var(--size-9); font-weight: var(--weight-1); font-size: var(--size-4); border-radius: var(--size-11); margin-bottom: var(--size-7); }
.tabs { margin-bottom: var(--size-4); }
.empty { color: var(--muted); text-align: center; padding: var(--size-36) var(--size-1); }
.fab-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--size-7); margin-top: var(--size-4); }
details summary { cursor: pointer; min-height: var(--size-18); display: flex; align-items: center; font-weight: var(--weight-1); color: var(--primary); }
.sym { width: var(--size-16); height: var(--size-16); border-radius: 50%; display: grid; place-items: center; color: var(--color-2); flex: 0 0 auto; }
.sym.sm { width: var(--size-17); height: var(--size-17); }
.sym.lg { width: var(--size-49); height: var(--size-49); }
.sym.lg .ic { width: var(--size-53); height: var(--size-53); }
.sym .emo { font-size: var(--size-14); line-height: 1; }
.sym.sm .emo { font-size: var(--size-13); }
.sym.lg .emo { font-size: var(--size-17); }
.cat-grid4 { display: grid; grid-template-columns: repeat(4, minmax(var(--size-1), 1fr)); gap: var(--size-8); justify-items: center; }
.cat-grid4 input { position: absolute; opacity: 0; pointer-events: none; }
.cat-grid4 .cat-tile { width: 100%; min-height: var(--size-28); margin: var(--size-1); padding: var(--size-8) var(--size-21); border: var(--size-1); background: none; box-shadow: var(--shadow-5); display: flex; flex-direction: column; align-items: center; gap: var(--size-8); color: var(--text); cursor: pointer; transition: opacity 0.15s; }
.cat-grid4 .cat-tile .sym { width: var(--size-38); height: var(--size-38); position: relative; }
.cat-grid4 .cat-tile .sym .emo { font-size: var(--size-42); }
.cat-grid4 .cat-tile.extra { display: none; }
.cat-name { display: block; max-width: 100%; font-weight: var(--weight-2); text-overflow: ellipsis; text-align: center; }
.cat-grid4.has-pick .cat-tile { opacity: 0.6; }
.cat-grid4 input:checked + .cat-tile { opacity: 1; }
.cat-grid4 input:checked + .cat-tile .sym { box-shadow: var(--shadow-6); }
.cat-grid4 input:checked + .cat-tile .sym::after { content: "✓"; position: absolute; right: var(--size-54); bottom: var(--size-54); width: var(--size-14); height: var(--size-14); border-radius: 50%; background: var(--text); color: var(--card); font-size: var(--size-11); font-weight: var(--weight-3); display: grid; place-items: center; }
.cat-grid4 input:focus-visible + .cat-tile { outline: var(--size-21) solid var(--primary); outline-offset: var(--size-21); border-radius: var(--size-11); }
.cat-grid4 .cat-more { order: 99; }
.more-sym { background: var(--line); color: var(--text); }
.cat-sheet { border: var(--size-1); padding: var(--size-36) var(--size-13) calc(var(--size-13) + env(safe-area-inset-bottom)); margin: auto auto var(--size-1); width: 100%; max-width: var(--size-12); overscroll-behavior: contain; border-radius: var(--size-42) var(--size-42) var(--size-1) var(--size-1); background: var(--bg); color: var(--text); }
.cat-sheet::backdrop { background: var(--color-3); }
.cat-list { margin: var(--size-9) var(--size-1) var(--size-11); }
.cat-row { display: flex; align-items: center; gap: var(--size-11); min-height: var(--size-38); margin: var(--size-1); padding: var(--size-8) var(--size-3); border-bottom: var(--size-19) solid var(--line); cursor: pointer; font-weight: var(--weight-2); color: var(--text); }
.has-sticky { padding-bottom: var(--size-9); }
.sticky-save { bottom: calc(var(--size-50) + env(safe-area-inset-bottom)); z-index: 5; margin-top: var(--size-13); box-shadow: var(--shadow-7); }
.sym-preview { display: flex; flex-direction: column; align-items: center; gap: var(--size-9); padding: var(--size-9) var(--size-1) var(--size-3); }
.sym-name { font-weight: var(--weight-1); font-size: var(--size-4); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette12 { display: grid; grid-template-columns: repeat(6, var(--size-43)); gap: var(--size-7) var(--size-11); justify-content: space-between; }
.palette12 input { position: absolute; opacity: 0; pointer-events: none; }
.palette12 label { width: var(--size-43); height: var(--size-43); margin: var(--size-1); border-radius: 50%; cursor: pointer; }
.palette12 input:checked + label { box-shadow: var(--shadow-8); }
.palette12 input:focus-visible + label { outline: var(--size-21) solid var(--primary); outline-offset: var(--size-3); }
.sym-grid { display: grid; grid-template-columns: repeat(6, minmax(var(--size-1), 1fr)); gap: var(--size-8); }
.sym-grid button { min-height: var(--size-29); height: var(--size-29); padding: var(--size-1); background: var(--bg); color: var(--text); border: var(--size-1); border-radius: var(--size-11); display: grid; place-items: center; }
.sym-grid button .ic { width: var(--size-22); height: var(--size-22); }
.sym-grid button .emo { font-size: var(--size-42); line-height: 1; }
.sym-grid button.on { background: var(--primary); color: var(--on-primary); }
.sym-tabs button { flex: 1 1 0%; min-height: var(--size-16); background: none; color: var(--muted); border: var(--size-1); }
.sym-tabs button.on { background: var(--card); color: var(--primary); box-shadow: var(--shadow-1); }
.sym-groups { max-height: var(--size-55); overflow: auto; margin-top: var(--size-9); }
.sym-groups h4 { margin: var(--size-11) var(--size-1) var(--size-8); font-size: var(--size-10); color: var(--muted); }
.plan-list { flex-direction: column; }
.plan-row { display: flex; align-items: center; padding: var(--size-9) var(--size-1) var(--size-9) var(--size-11); border-bottom: var(--size-19) solid var(--line); position: relative; }
.plan-row::before { content: ""; position: absolute; left: var(--size-1); top: var(--size-7); bottom: var(--size-7); width: var(--size-3); border-radius: var(--size-3); background: var(--fc); }
.plan-row:last-child { border-bottom: var(--size-1); }
.plan-row.is-done { opacity: 0.6; }
.plan-main { display: flex; flex-direction: column; gap: var(--size-21); color: var(--text); text-decoration: none; justify-content: center; }
.done-title { text-decoration: line-through; }
.row-ic { width: var(--size-56); height: var(--size-56); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.quick { z-index: 6; display: flex; gap: var(--size-8); padding: var(--size-8); background: var(--card); border-radius: var(--size-36); box-shadow: var(--shadow-9); }
.quick input { flex: 1 1 0%; min-width: var(--size-1); border: var(--size-1); background: var(--bg); }
.quick button { min-width: var(--size-18); padding: var(--size-1) var(--size-11); }
.quick-mic { touch-action: none; user-select: none; }
.quick-mic.rec { background: var(--danger); }
.small-btn { min-height: var(--size-43); padding: var(--size-8) var(--size-11); font-size: var(--size-10); }
.streak { display: grid; grid-template-columns: repeat(7, minmax(var(--size-1), 1fr)); gap: var(--size-8); }
.streak .day { aspect-ratio: 1 / 1; border-radius: var(--size-7); background: var(--bg); display: grid; place-items: center; font-weight: var(--weight-3); font-size: var(--size-4); position: relative; }
.streak .day small { position: absolute; bottom: var(--size-21); right: var(--size-3); font-size: var(--size-32); font-weight: var(--weight-2); color: var(--muted); }
.streak .day.ok { background: var(--primary); color: var(--on-primary); }
.streak .day.ok small { color: var(--on-primary); opacity: 0.8; }
.streak .day.miss { background: var(--warn-soft); box-shadow: var(--shadow-10); }
.streak .day.off { opacity: 0.45; }
#ai-wait:not(.htmx-request) { display: none; }
.finance-tabs a { min-height: var(--size-18); }
progress { width: 100%; height: var(--size-32); accent-color: var(--primary); border: var(--size-1); border-radius: var(--size-32); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--primary); }
.xp-stats { display: grid; }
.xp-stats p { margin: var(--size-21) var(--size-1) var(--size-1); }
.xp-calendar { display: grid; grid-auto-flow: column; overflow-x: auto; }
.heat { border-radius: var(--size-21); background: var(--line); }
.heat-1 { background: var(--primary); opacity: 0.35; }
.heat-2 { background: var(--primary); opacity: 0.65; }
.heat-3 { background: var(--primary); }
.xp-chart { display: flex; align-items: flex-end; overflow-x: auto; padding-bottom: var(--size-8); }
.xp-column { flex: 1 1 0%; text-align: center; display: grid; gap: var(--size-37); }
.xp-column .num { font-size: var(--size-7); }
.xp-track { height: var(--size-57); display: flex; align-items: flex-end; background: var(--bg); border-radius: var(--size-3); }
.xp-track i { background: var(--primary); width: 100%; border-radius: var(--size-3); }
.xp-milestones { display: grid; gap: var(--size-4); }
.xp-milestones > div { display: flex; justify-content: space-between; }
.xp-milestones .earned { color: var(--primary); }
.xp-burst { position: fixed; top: 25%; left: 50%; z-index: 100; font-weight: var(--weight-3); color: var(--primary); pointer-events: none; animation: 1.1s ease 0s 1 normal forwards running xp-rise; }
@keyframes xp-rise {
100% { transform: translateY(var(--size-58)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.xp-burst { animation: auto ease 0s 1 normal none running none; }
}
body { font-family: var(--font-3); font-size: var(--size-2); line-height: 1.45; }
.num, .big, .amount-input, input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], .kv dd, .xp-stats .small, .xp-column, .streak, .rec-top, .hud-chips, .hud-level, .xp-number, .hud-reward { font-family: var(--font-4); font-variant-numeric: tabular-nums; }
.app { padding: calc(var(--size-14) + env(safe-area-inset-top)) max(var(--size-36),env(safe-area-inset-right)) calc(var(--size-57) + env(safe-area-inset-bottom)) max(var(--size-36),env(safe-area-inset-left)); }
h1 { font-size: var(--size-42); font-weight: var(--weight-1); margin-bottom: var(--size-36); }
h2, .hud-label { font-size: var(--size-26); font-weight: var(--weight-2); text-transform: uppercase; letter-spacing: var(--size-59); color: var(--muted); }
h2 { margin-bottom: var(--size-9); }
.big { font-size: var(--size-60); line-height: 1.1; font-weight: var(--weight-1); letter-spacing: var(--size-61); }
.card { border-radius: var(--size-11); padding: var(--size-11); margin-bottom: var(--size-36); box-shadow: var(--shadow-5); }
section.card { padding: var(--size-1); background: var(--color-1); border: var(--size-1); border-radius: var(--size-1); margin-bottom: var(--size-42); }
section.card.flat { padding: var(--size-1); }
.card .card { box-shadow: var(--shadow-5); }
.list { display: grid; grid-template-columns: minmax(var(--size-1), 1fr); gap: var(--size-9); min-width: var(--size-1); }
.list > a { min-height: var(--size-29); }
.plan-list { display: flex; gap: var(--size-9); }
.plan-row { width: 100%; min-height: var(--size-29); gap: var(--size-11); }
.plan-row::before { display: none; }
.plan-main { min-height: var(--size-42); }
.title { font-weight: var(--weight-4); }
.task-check { width: var(--size-14); height: var(--size-14); min-width: var(--size-14); min-height: var(--size-14); border: var(--size-19) solid var(--muted); border-radius: var(--size-3); background: var(--button); }
.task-check.on { background: var(--primary); border-color: var(--primary); }
.btn, button { background: var(--button); color: var(--text); border: var(--size-19) solid var(--border); border-radius: var(--size-7); font-weight: var(--weight-2); }
button[type="submit"]:not(.secondary, .ghost, .danger, .icon-btn), form > button:not([type], .ghost, .secondary, .danger, .icon-btn), .btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.secondary, button.secondary, .btn.ghost, button.ghost { background: var(--button); color: var(--text); border-color: var(--border); }
.icon-btn { border: var(--size-1); background: var(--color-1); color: var(--muted); }
input, select, textarea { border-radius: var(--size-7); border-color: var(--border); background: var(--card); min-height: var(--size-18); }
.seg { background: var(--button); border: var(--size-19) solid var(--border); border-radius: var(--size-7); overflow: visible; }
.seg a, .seg label { border-radius: var(--size-8); font-weight: var(--weight-4); padding: var(--size-1) var(--size-62); min-width: var(--size-1); }
.seg a.on, .seg input:checked + label { background: var(--card); color: var(--primary); box-shadow: var(--shadow-11); }
.chip, .pill, .ai-pill, .note-chips label { border-radius: var(--size-8); background: var(--button); }
.nl { border-radius: var(--size-8); }
.chips input:checked + .chip { background: var(--button); color: var(--primary); border-color: var(--primary); }
.cat-sheet, .sheet { border: var(--size-19) solid var(--border); border-radius: var(--size-11) var(--size-11) var(--size-1) var(--size-1); padding: var(--size-36); background: var(--bg); }
.cat-sheet { margin-bottom: calc(var(--size-63) + env(safe-area-inset-bottom)); max-height: calc(var(--size-41) - var(--size-45) - env(safe-area-inset-bottom)); }
.sheet { --nav-h: calc(var(--size-63) + env(safe-area-inset-bottom)); }
.nav { background: var(--bg); }
.nav-in { height: var(--size-63); }
.nav a { font-size: var(--size-26); font-weight: var(--weight-2); }
.nav a .ic { display: none; }
.nav .mic { width: var(--size-29); height: var(--size-29); min-height: var(--size-29); margin: var(--size-1) auto; border: var(--size-1); border-radius: var(--size-4); box-shadow: var(--shadow-5); background: var(--primary); color: var(--on-primary); }
.nav .mic .ic { width: var(--size-14); height: var(--size-14); }
.nav .mic.rec { background: var(--danger); }
.sticky-save, .quick { bottom: calc(var(--size-28) + env(safe-area-inset-bottom)); border-radius: var(--size-7); }
.quick-mic { background: var(--button); color: var(--primary); }
.xp-segments { display: grid; grid-template-columns: repeat(10, minmax(var(--size-1), 1fr)); gap: var(--size-25); width: 100%; }
.xp-segments i { height: var(--size-8); border-radius: var(--size-21); background: var(--color-4); }
.xp-segments i.filled { background: var(--primary); }
.xp-stats > div, .xp-milestones > div, .limit { padding: var(--size-11); background: var(--card); border-radius: var(--size-11); }
.xp-stats .xp-segments { margin: var(--size-9) var(--size-1) var(--size-8); }
.xp-calendar { grid-template-rows: repeat(7, minmax(var(--size-1), 1fr)); grid-auto-columns: minmax(var(--size-1), 1fr); width: 100%; gap: var(--size-25); overflow: visible; padding: var(--size-3) var(--size-1) var(--size-7); }
.heat { aspect-ratio: 1 / 1; min-width: var(--size-1); }
.xp-chart { overflow: visible; gap: var(--size-37); }
.xp-column { min-width: var(--size-1); }
.xp-column .num { white-space: normal; overflow-wrap: anywhere; }
.xp-milestones > div { flex-wrap: wrap; gap: var(--size-3) var(--size-7); }
.hud-head { display: flex; gap: var(--size-11); align-items: center; }
.hud-level { width: var(--size-64); height: var(--size-64); flex: 0 0 auto; border-radius: var(--size-11); background: var(--button); border: var(--size-19) solid var(--border); display: grid; place-items: center; color: var(--primary); font-size: var(--size-36); font-weight: var(--weight-1); }
.hud-identity { flex: 1 1 0%; min-width: var(--size-1); display: grid; gap: var(--size-8); }
.hud-identity .row { gap: var(--size-8); font-size: var(--size-11); }
.hud-identity b { font-weight: var(--weight-2); }
.hud-chips { display: flex; gap: var(--size-9); margin-top: var(--size-7); font-size: var(--size-11); font-weight: var(--weight-1); }
.hud-chips span { padding: var(--size-3) var(--size-9); border-radius: var(--size-8); background: var(--button); }
.hud-chips .fire { color: var(--warn); }
.hud-chips .gold { color: var(--gold); }
.hud-money { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--size-9); margin-top: var(--size-22); }
.hud-money > div { display: grid; gap: var(--size-3); min-width: var(--size-1); }
.hud-money .big { line-height: 1; letter-spacing: var(--size-1); }
.hud-currency { font-size: var(--size-22); color: var(--muted); letter-spacing: var(--size-1); }
.hud-spent { font-size: var(--size-11); color: var(--muted); padding-bottom: var(--size-3); }
.hud-actions { display: grid; grid-template-columns: repeat(3, minmax(var(--size-1), 1fr)); gap: var(--size-9); margin-top: var(--size-13); }
.hud-actions .btn { height: var(--size-18); padding: var(--size-1) var(--size-8); font-size: var(--size-4); }
.hud-actions .primary { font-weight: var(--weight-1); }
.hud-missions { margin-top: var(--size-42); }
.hud-missions .card-title { margin-bottom: var(--size-9); }
.hud-missions h2 { margin: var(--size-1); }
.hud-missions .plan-row { min-height: var(--size-18); }
.hud-missions .plan-main { min-height: var(--size-14); }
.hud-missions .title { font-weight: var(--weight-5); line-height: var(--size-14); }
.hud-reward { font-size: var(--size-11); color: var(--primary); flex: 0 0 auto; }
.hud-cards { display: grid; grid-template-columns: repeat(2, minmax(var(--size-1), 1fr)); gap: var(--size-9); margin-top: var(--size-36); }
.hud-summary { display: flex; flex-direction: column; gap: var(--size-3); padding: var(--size-11); border: var(--size-19) solid var(--border); border-radius: var(--size-11); color: var(--text); min-width: var(--size-1); font-size: var(--size-4); }
.hud-summary .hud-label { font-size: var(--size-26); letter-spacing: var(--size-65); }
.hud-summary .num { white-space: normal; overflow-wrap: anywhere; font-size: var(--size-2); font-weight: var(--weight-1); }
.hud-summary.urgent { border-color: var(--danger-border); }
.hud-summary.urgent .hud-label { color: var(--danger); }
.hud-extras { margin-top: var(--size-22); }
.hud-extras summary { color: var(--muted); font-size: var(--size-11); }
.hud-extras .note-card { margin-top: var(--size-11); }
.hud-extras > form button { width: 100%; }
.hud-more summary { font-size: var(--size-11); color: var(--muted); min-height: var(--size-53); font-weight: var(--weight-4); }
.hud-more .hud-cards { margin: var(--size-1) var(--size-1) var(--size-11); }
.hud-more .plan-list { margin-bottom: var(--size-11); }
.block { display: block; }
.app form .card { background: var(--color-1); padding: var(--size-1); border: var(--size-1); box-shadow: var(--shadow-5); }
.app form .card > h3 { font-size: var(--size-26); font-weight: var(--weight-2); text-transform: uppercase; letter-spacing: var(--size-59); color: var(--muted); }
.hud-missions .plan-main .small { font-size: var(--size-11); }
.xp-column .num, .streak .day small { font-size: var(--size-11); }
.list > * { min-width: var(--size-1); }
.list > li { background: var(--card); border: var(--size-1); border-radius: var(--size-11); padding: var(--size-11); }
.card:has(> .list), .app > form.card { background: var(--color-1); padding: var(--size-1); box-shadow: var(--shadow-5); }
@media (max-width: 374px) {
.hud-money .big { font-size: var(--size-23); }
.hud-spent { font-size: var(--size-26); }
.finance-tabs a { font-size: var(--size-11); padding: var(--size-1) var(--size-25); }
}
.hud-extra-row { display: flex; justify-content: space-between; gap: var(--size-11); padding: var(--size-11); margin: var(--size-9) var(--size-1); background: var(--color-5); border-radius: var(--size-11); color: var(--color-6); font-size: var(--size-10); }
.hud-extra-row .num { color: var(--primary); text-align: right; white-space: normal; overflow-wrap: anywhere; }
.note-chips label, .note-chips input:checked + label, .nl { background: var(--color-1); border: var(--size-19) solid var(--lc); color: var(--color-6); font-size: var(--size-26); }
.plan-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-stats { gap: var(--size-1); }
.xp-stats > div { background: var(--color-1); border-radius: var(--size-1); padding: var(--size-9) var(--size-1); border-bottom: var(--size-19) solid var(--line); }
.xp-stat-progress { display: flex; align-items: center; gap: var(--size-7); }
.xp-stat-progress .xp-segments { flex: 1 1 0%; margin: var(--size-37) var(--size-1); }
.xp-stat-progress .num { font-size: var(--size-26); }
.quick { position: relative; bottom: auto; margin-top: var(--size-36); }
.finance-tabs { gap: var(--size-25); }
.finance-tabs a { font-size: var(--size-11); padding: var(--size-1) var(--size-25); }
.limit-bar { height: var(--size-8); }
.cat-name { font-size: var(--size-26); white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.2; }
.cat-grid4 .cat-tile { height: auto; }
.wallet-transfer { display: none; }
.hud-currency.danger { color: var(--danger); }
#txform:has(#t-transfer:checked) .wallet-transfer { display: inline; }
#txform:has(#t-transfer:checked) .wallet-normal { display: none; }
.emo { font-family: var(--font-5); font-weight: var(--weight-5); }
.sym-grid > .small { grid-column: 1 / -1; }
.sticky-save { position: static; }
.debt-actions { display: grid; grid-template-columns: repeat(2, minmax(var(--size-1), 1fr)); gap: var(--size-8); padding: var(--size-8); }
.debt-actions label { white-space: normal; text-align: center; min-height: var(--size-18); }
.field-error { color: var(--danger); font-size: var(--size-10); margin: var(--size-8) var(--size-1) var(--size-1); }
[aria-invalid="true"] { border-color: var(--danger); }
.deadline-chips { margin-top: var(--size-9); gap: var(--size-9); }
.deadline-chips button { min-height: var(--size-43); padding: var(--size-8) var(--size-11); }
.goal-appearance { margin-top: var(--size-13); }
.goal-appearance summary { display: flex; align-items: center; justify-content: space-between; gap: var(--size-11); min-height: var(--size-49); }
.goal-appearance summary > span::after { content: " ▾"; color: var(--muted); }
.goal-appearance .sym-preview { flex-direction: row; padding: var(--size-1); min-width: var(--size-1); }
.goal-appearance .sym.lg { width: var(--size-16); height: var(--size-16); }
.goal-appearance .sym.lg .emo { font-size: var(--size-42); }
.goal-appearance .sym-name { max-width: var(--size-66); }
.quiet-delete.ghost { font-size: var(--size-10); color: var(--muted); border: var(--size-1); background: var(--color-1); padding: var(--size-9) var(--size-1); }
#txform.empty-debt .debt-form-field, #txform.empty-debt [data-new-debt], #txform.empty-debt [data-debt-currency] { display: none !important; }
#txform [data-new-debt]:not([hidden]) { display: block; }
#txform [data-new-debt][hidden], [data-debt-currency][hidden], [data-debt-choice][hidden] { display: none; }
#txform.empty-debt .no-suitable-debt { margin-top: var(--size-11); }
[hidden] { display: none !important; }
.shop-header { display: flex; justify-content: space-between; align-items: baseline; gap: var(--size-11); margin-top: var(--size-8); }
.shop-header h1 { margin: var(--size-1); }
.shop-balance { font: var(--weight-1) var(--size-53) var(--font-6), monospace; color: var(--color-7); white-space: nowrap; }
.shop-multiplier { text-align: right; font-size: var(--size-11); color: var(--color-8); margin: var(--size-8) var(--size-1) var(--size-1); }
.shop-multiplier.costly { color: var(--color-7); }
.shop-section { margin-top: var(--size-22); }
.shop-section h2 { font-size: var(--size-26); text-transform: uppercase; letter-spacing: var(--size-59); color: var(--color-9); margin: var(--size-1) var(--size-1) var(--size-9); }
.shop-add { font-size: var(--size-10); font-weight: var(--weight-2); padding: var(--size-8) var(--size-1); }
.shop-active { padding: var(--size-11); border-radius: var(--size-11); background: var(--color-5); display: grid; gap: var(--size-9); margin-bottom: var(--size-9); }
.shop-active > .row { font-size: var(--size-4); flex-wrap: wrap; }
.shop-chips { display: flex; flex-wrap: wrap; gap: var(--size-9); }
.shop-chips:empty { display: none; }
.shop-chips > span { padding: var(--size-37) var(--size-32); border-radius: var(--size-8); background: var(--color-10); font: var(--weight-1) var(--size-11) var(--font-6), monospace; }
.shop-chips .shop-freeze { color: var(--color-11); }
.shop-products { display: grid; gap: var(--size-9); }
.shop-product { display: flex; align-items: center; gap: var(--size-7); padding: var(--size-11); border-radius: var(--size-11); background: var(--color-5); touch-action: pan-y; }
.shop-emoji { font-size: var(--size-22); width: var(--size-56); flex-shrink: 0; text-align: center; }
.shop-product-copy { flex: 1 1 0%; min-width: var(--size-1); display: grid; gap: var(--size-21); color: var(--color-6); font-size: var(--size-2); overflow-wrap: anywhere; }
.shop-product-copy:hover { color: var(--color-6); }
.shop-product-copy small { font-size: var(--size-11); color: var(--color-9); line-height: 1.4; }
.shop-price { font: var(--weight-1) var(--size-10) var(--font-6), monospace; color: var(--color-7); flex-shrink: 0; }
.shop-buy { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: var(--size-43); min-width: var(--size-67); padding: var(--size-1) var(--size-7); border: var(--size-19) solid var(--color-12); border-radius: var(--size-7); background: var(--color-10); color: var(--color-6); font: var(--weight-2) var(--size-10) var(--font-1), sans-serif; text-decoration: none; }
.shop-buy.primary { background: var(--color-8); color: var(--color-13); border-color: var(--color-8); }
.shop-buy:disabled { background: var(--color-1); border-color: var(--color-14); color: var(--color-9); opacity: 1; cursor: default; font-size: var(--size-11); }
.shop-footer { display: flex; justify-content: space-between; gap: var(--size-11); margin-top: var(--size-13); font-size: var(--size-10); }
.shop-footer a { color: var(--color-9); }
.shop-entry { margin-left: auto; color: var(--color-8); font-size: var(--size-11); padding: var(--size-3) var(--size-1); white-space: nowrap; }
.shop-dialog { position: fixed; inset: auto var(--size-1) var(--size-1); width: 100%; max-width: var(--size-68); max-height: calc(var(--size-41) - var(--size-42)); margin: var(--size-1) auto; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; padding: var(--size-36) var(--size-36) calc(var(--size-14) + env(safe-area-inset-bottom)); border: var(--size-19) solid var(--color-12); border-radius: var(--size-36) var(--size-36) var(--size-1) var(--size-1); background: var(--color-13); color: var(--color-6); }
.shop-dialog::backdrop { background: var(--color-15); }
.shop-dialog button:disabled { background: var(--button); color: var(--muted); border-color: var(--border); cursor: default; opacity: 1; }
.shop-dialog > .row h2 { font-size: var(--size-69); margin: var(--size-1); text-transform: none; letter-spacing: normal; color: var(--text); line-height: 1.35; }
.shop-dialog form > button.block { margin-top: var(--size-13); }
.shop-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--size-11); }
.shop-fields > div { min-width: var(--size-1); }
.shop-dialog [hidden] { display: none !important; }
.shop-quote { padding: var(--size-11); margin-top: var(--size-4); border-radius: var(--size-11); background: var(--color-5); }
.shop-quote b { color: var(--color-7); }
.shop-quote small { display: block; margin-top: var(--size-3); color: var(--color-9); }
.shop-confirm-title { font-size: var(--size-69); line-height: 1.5; overflow-wrap: anywhere; }
.shop-cancel { display: block; text-align: center; padding: var(--size-4); font-size: var(--size-4); }
.shop-history > div { display: flex; justify-content: space-between; align-items: center; gap: var(--size-11); padding: var(--size-11) var(--size-1); border-bottom: var(--size-19) solid var(--color-14); }
.shop-history small { display: block; color: var(--color-9); margin-top: var(--size-3); font-size: var(--size-11); }
.shop-history b { white-space: nowrap; color: var(--color-7); font-size: var(--size-10); }
.shop-archive-form { margin-top: var(--size-11); }
.permission-offer { padding: var(--size-11); margin: var(--size-11) var(--size-1); border-radius: var(--size-11); background: var(--card); }
.permission-offer p { margin: var(--size-8) var(--size-1) var(--size-11); }
.shop-dialog [data-emoji-only] .sym-groups { max-height: var(--size-70); overflow-y: auto; overscroll-behavior: contain; }
.shop-dialog [data-emoji-only] summary { font-family: var(--font-2); }
.shop-restore { display: flex; align-items: center; justify-content: space-between; gap: var(--size-11); margin-top: var(--size-11); }
.shop-spent { position: fixed; z-index: 25; top: var(--size-67); right: max(var(--size-36), var(--size-71) + var(--size-72)); font: var(--weight-1) var(--size-42) var(--font-6), monospace; color: var(--color-7); pointer-events: none; animation: 1.5s ease 0s 1 normal forwards running shop-spent; }
@keyframes shop-spent {
0% { opacity: 1; transform: translateY(var(--size-1)); }
100% { opacity: 0; transform: translateY(var(--size-73)); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
.shop-spent { animation: auto ease 0s 1 normal none running none; position: static; font-size: var(--size-13); margin-top: var(--size-9); }
}
.minimal-ui .list { gap: var(--size-1); }
.minimal-ui .list > :is(li, a, div), .minimal-ui .plan-row, .minimal-ui .note-row { background: var(--color-1); border-radius: var(--size-1); border-width: var(--size-1) var(--size-1) var(--size-19); border-style: none none solid; border-color: currentcolor currentcolor var(--color-14); border-image: none; padding: var(--size-26) var(--size-1); }
.minimal-ui .card:has(> .list) { padding: var(--size-1); }
.minimal-ui .plan-row { align-items: flex-start; }
.minimal-ui .plan-main { min-height: var(--size-42); }
.minimal-ui .task-check { margin-top: var(--size-19); }
.minimal-ui .plan-main .small { white-space: normal; overflow: visible; text-overflow: clip; font-size: var(--size-11); }
.minimal-ui .plan-main .title, .minimal-ui .note-row .title { -webkit-line-clamp: unset; overflow: visible; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.35; display: block !important; }
.minimal-ui .hud-missions .plan-main .title { -webkit-line-clamp: 2; overflow: hidden; white-space: normal; display: -webkit-box !important; }
.minimal-ui .hud-extra-row { background: var(--color-1); border-radius: var(--size-1); border-bottom: var(--size-19) solid var(--color-14); padding: var(--size-26) var(--size-1); }
.minimal-ui .hud-summary, .minimal-ui .shop-active { background: var(--color-5); }
.minimal-ui .xp-milestones > div { background: var(--color-1); border-radius: var(--size-1); border-bottom: var(--size-19) solid var(--color-14); padding: var(--size-26) var(--size-1); }
.minimal-ui .hud-actions { grid-template-columns: repeat(2, minmax(var(--size-1), 1fr)); }
.minimal-ui .min-section { margin-top: var(--size-14); }
.minimal-ui .min-head { min-height: var(--size-18); margin-bottom: var(--size-3); }
.minimal-ui .min-head h1 { margin: var(--size-1); }
.plans-ui .app { padding-left: max(var(--size-36),env(safe-area-inset-left)); padding-right: max(var(--size-36),env(safe-area-inset-right)); }
.plans-ui h1 { font-weight: var(--weight-1); overflow-wrap: anywhere; }
.min-full { white-space: pre-wrap; overflow-wrap: anywhere; }
.min-menu { position: relative; flex: 0 0 auto; }
.min-menu > summary { list-style: none; cursor: pointer; font-size: var(--size-42); color: var(--color-9); }
.min-menu > summary::-webkit-details-marker { display: none; }
.sr-only { position: absolute; width: var(--size-19); height: var(--size-19); padding: var(--size-1); margin: var(--size-74); overflow: hidden; clip: rect(var(--size-1), var(--size-1), var(--size-1), var(--size-1)); white-space: nowrap; border: var(--size-1); }
.min-detail { position: fixed; inset: auto var(--size-1) var(--size-1); margin: var(--size-1) auto; width: 100%; max-width: var(--size-68); max-height: calc(var(--size-41) - var(--size-42)); overflow-y: auto; overscroll-behavior: contain; padding: var(--size-13) var(--size-36) calc(var(--size-42) + env(safe-area-inset-bottom)); border: var(--size-19) solid var(--color-12); border-radius: var(--size-36) var(--size-36) var(--size-1) var(--size-1); background: var(--color-13); color: var(--color-6); }
.min-detail::backdrop { background: var(--color-15); }
.min-detail > header h2 { font-size: var(--size-69); margin: var(--size-1); }
.min-detail .sticky-save { position: static; width: 100%; margin-top: var(--size-13); }
.min-detail textarea[name="title"] { white-space: pre-wrap; resize: vertical; min-height: var(--size-20); }
.min-detail .card { background: var(--color-1); padding: var(--size-11) var(--size-1); }
.min-detail .min-full { white-space: pre-wrap; }
.min-detail .seg { margin-top: var(--size-11); }
.min-onboarding { position: fixed; z-index: 30; bottom: calc(var(--size-75) + env(safe-area-inset-bottom)); left: var(--size-36); right: var(--size-36); max-width: var(--size-76); margin: auto; padding: var(--size-7) var(--size-11); background: var(--color-10); border: var(--size-19) solid var(--color-12); border-radius: var(--size-11); display: flex; align-items: center; gap: var(--size-9); font-size: var(--size-11); box-shadow: var(--shadow-12); }
.min-onboarding button { background: var(--color-1); color: var(--primary); font-size: var(--size-11); flex: 0 0 auto; padding: var(--size-9); }
.minimal-ui .plan-main .title { font-weight: var(--weight-5); }
.min-detail > header h2 { text-transform: none; letter-spacing: normal; color: var(--text); }
.minimal-ui .voice-log { background: var(--color-1); border-radius: var(--size-1); border-bottom: var(--size-19) solid var(--color-14); padding: var(--size-11) var(--size-1); }
.minimal-ui:has(> .toast:not(.hidden)) .app { padding-bottom: calc(var(--size-77) + env(safe-area-inset-bottom)); }
.plans-ui h1 { font-size: var(--size-15); }
.minimal-ui .shop-products { gap: var(--size-1); }
.minimal-ui .shop-product { background: var(--color-1); border-radius: var(--size-1); border-bottom: var(--size-19) solid var(--color-14); padding: var(--size-11) var(--size-1); }
.simple-head { display: flex; justify-content: space-between; align-items: center; margin: var(--size-3) var(--size-1) var(--size-11); }
.simple-head h1 { margin: var(--size-1); font-size: var(--size-15); }
.simple-plus { display: grid; place-items: center; width: var(--size-18); height: var(--size-18); border-radius: var(--size-11); background: var(--color-8); color: var(--color-13); font-size: var(--size-15); text-decoration: none; }
.area-filter { grid-template-columns: repeat(3, minmax(var(--size-1), 1fr)); padding: var(--size-3); border-radius: var(--size-11); background: var(--color-10); }
.area-filter button { min-height: var(--size-43); padding: var(--size-1); border-radius: var(--size-32); background: var(--color-1); color: var(--color-9); font-size: var(--size-4); }
.area-filter .selected { background: var(--color-13); color: var(--color-8); }
.simple-section { margin-top: var(--size-36); }
.simple-section h2, .simple-label { display: flex; justify-content: space-between; font-size: var(--size-26); font-weight: var(--weight-2); color: var(--color-9); letter-spacing: var(--size-59); margin: var(--size-1) var(--size-1) var(--size-3); }
.simple-section h2 span { font-family: var(--font-4); }
.minimal-ui .simple-task { display: block; min-height: var(--size-1); padding: var(--size-26) var(--size-1); border-bottom: var(--size-19) solid var(--color-14); }
.simple-task::before { display: none; }
.simple-task-line { display: flex; gap: var(--size-11); align-items: center; }
.simple-task .task-check { width: var(--size-14); height: var(--size-14); min-width: var(--size-14); min-height: var(--size-14); padding: var(--size-1); border-radius: var(--size-3); margin: var(--size-1); position: relative; }
.simple-task .task-check::after { content: ""; position: absolute; inset: var(--size-78) var(--size-79); }
.area-stripe { width: var(--size-25); align-self: stretch; border-radius: var(--size-21); flex: 0 0 auto; background: var(--fc); }
.simple-task .plan-main { min-height: var(--size-80); }
.simple-task .title { font-size: var(--size-2); }
.simple-task .small { font-size: var(--size-11); }
.sub-count { background: var(--color-1); color: var(--color-9); padding: var(--size-1); min-width: var(--size-18); min-height: var(--size-18); font: var(--weight-4) var(--size-11) var(--font-6), monospace; }
.subtasks { padding: var(--size-8) var(--size-1) var(--size-1) var(--size-81); }
.sub-line { display: flex; align-items: flex-start; gap: var(--size-7); margin: var(--size-1); padding: var(--size-62) var(--size-1); font-size: var(--size-4); font-weight: var(--weight-5); color: var(--color-16); overflow-wrap: anywhere; }
.sub-line input { width: var(--size-13); height: var(--size-13); min-height: var(--size-13); flex: 0 0 auto; padding: var(--size-1); margin: var(--size-21) var(--size-1) var(--size-1); accent-color: var(--color-8); }
.sub-add input { background: var(--color-1); border: var(--size-1); padding: var(--size-62) var(--size-1) var(--size-1) var(--size-15); font-size: var(--size-10); }
.simple-fold { margin-top: var(--size-3); }
.simple-fold > summary { padding: var(--size-7) var(--size-1); list-style: none; cursor: pointer; font-size: var(--size-10); color: var(--color-9); }
.simple-fold > summary::-webkit-details-marker { display: none; }
.simple-entry { display: flex; flex-direction: column; gap: var(--size-13); }
.simple-entry .simple-title { font-size: var(--size-14); font-weight: var(--weight-2); border: var(--size-1); background: var(--color-1); padding: var(--size-3) var(--size-1); min-height: var(--size-23); resize: none; }
.area-choice { grid-template-columns: 1fr 1fr; gap: var(--size-8); }
.area-choice label, .repeat-grid label { margin: var(--size-1); position: relative; }
.area-choice input, .repeat-grid input { position: absolute; opacity: 0; width: var(--size-19); height: var(--size-19); }
.area-choice span, .repeat-grid span, .date-chips button { display: grid; place-items: center; min-height: var(--size-43); border: var(--size-19) solid var(--color-12); border-radius: var(--size-7); background: var(--color-1); color: var(--color-6); font-size: var(--size-10); font-weight: var(--weight-2); }
.area-choice input:checked + span, .repeat-grid input:checked + span, .date-chips .selected { border-color: var(--color-8); background: var(--color-17); }
.area-choice input:focus-visible + span, .repeat-grid input:focus-visible + span { outline: var(--color-8) solid var(--size-21); }
.date-chips { display: flex; gap: var(--size-8); flex-wrap: wrap; }
.date-chips button { padding: var(--size-1) var(--size-11); }
.simple-entry section input[type="date"] { margin-top: var(--size-9); }
.simple-entry .simple-label { margin-bottom: var(--size-9); }
.task-time { display: flex; align-items: center; gap: var(--size-9); border-block: var(--size-19) solid var(--color-14); padding: var(--size-8) var(--size-1); }
.task-time label { position: relative; margin: var(--size-1); flex: 1 1 0%; color: var(--color-9); min-height: var(--size-43); display: flex; align-items: center; }
.task-time input { position: absolute; inset: var(--size-1); opacity: 0; cursor: pointer; width: 100%; }
.task-time button { min-height: var(--size-43); padding: var(--size-1) var(--size-7); }
.repeat-picker summary { list-style: none; cursor: pointer; color: var(--color-9); font-size: var(--size-4); }
.repeat-picker select { margin: var(--size-9) var(--size-1); }
.repeat-grid { display: grid; grid-template-columns: repeat(7, minmax(var(--size-1), 1fr)); gap: var(--size-3); }
.repeat-grid span { min-height: var(--size-16); }
.sub-field { display: flex; gap: var(--size-3); align-items: center; border-bottom: var(--size-19) solid var(--color-14); }
.sub-field input:not([type="hidden"]) { flex: 1 1 0%; min-width: var(--size-1); border: var(--size-1); background: var(--color-1); padding: var(--size-9) var(--size-1); }
.sub-field button { padding: var(--size-8); min-width: var(--size-43); }
.quiet-add { background: var(--color-1); color: var(--color-9); padding: var(--size-32) var(--size-1); min-height: var(--size-43); font-size: var(--size-4); font-weight: var(--weight-5); }
.simple-save { margin-top: auto; min-height: var(--size-82); border-radius: var(--size-11); }
.quiet-delete { text-align: center; margin-top: var(--size-9); }
.min-detail:has(.simple-entry) { background: var(--color-5); border-radius: var(--size-14) var(--size-14) var(--size-1) var(--size-1); max-height: calc(var(--size-41) - var(--size-44)); }
.min-detail:has(.simple-entry)::before { content: ""; display: block; width: var(--size-16); height: var(--size-3); border-radius: var(--size-21); background: var(--color-12); margin: var(--size-1) auto var(--size-9); }
.min-detail:has(.simple-entry) header h2 { font-size: var(--size-4); color: var(--color-9); }
.min-detail:has(.simple-entry) .simple-entry { min-height: min(var(--size-83), var(--size-41) - var(--size-77)); }
.min-detail:has(.simple-entry) textarea.simple-title { min-height: var(--size-23); }
.repeat-history { display: flex; gap: var(--size-8); flex-wrap: wrap; margin-top: var(--size-9); }
.hidden { display: none !important; }
.capture-input { display: flex; gap: var(--size-9); align-items: center; border-bottom: var(--size-19) solid var(--color-12); margin: var(--size-13) var(--size-1); }
.capture-input input { flex: 1 1 0%; min-width: var(--size-1); border: var(--size-1); background: var(--color-1); padding: var(--size-11) var(--size-1); }
.capture-input button { min-width: var(--size-43); padding: var(--size-8); }
.task-time.has-time label { justify-content: space-between; }
.task-time.has-time label::before { content: "Время"; }
.task-time.has-time [data-time-label] { margin-left: auto; padding: var(--size-8) var(--size-7); border-radius: var(--size-9); background: var(--color-17); border: var(--size-19) solid var(--color-8); font-family: var(--font-4); color: var(--color-6); }
.area-filter button { border: var(--size-1); }
.simple-task .title { line-height: 1.25; }
.simple-task .small { line-height: 1.25; }
.sub-count, .simple-entry button.quiet-add, .simple-entry .sub-field button { border: var(--size-1); background: var(--color-1); }
.min-detail textarea.simple-title { resize: none; }
.simple-fold > summary { font-weight: var(--weight-5); }
.repeat-picker summary { display: block; font-weight: var(--weight-5); }
.settings-add { display: block; margin: var(--size-11) var(--size-1); padding: var(--size-26) var(--size-4); border: var(--size-19) solid var(--color-12); border-radius: var(--size-11); background: var(--color-10); color: var(--text); }
.area-filter { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; align-items: center; gap: var(--size-8); }
.area-filter::-webkit-scrollbar { display: none; }
.area-filter > button, .area-filter > .area-add { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; white-space: nowrap; box-sizing: border-box; height: var(--size-43); min-height: var(--size-43); padding: var(--size-1) var(--size-4); border: var(--size-1); border-radius: var(--size-32); background: var(--color-1); color: var(--color-9); font-size: var(--size-4); }
.area-filter > .selected { background: var(--color-13); color: var(--color-8); }
.area-filter [data-area-edit] { touch-action: pan-x; }
.area-filter [data-area-edit]::before { content: ""; width: var(--size-9); height: var(--size-9); flex: 0 0 auto; margin-right: var(--size-9); border-radius: 50%; background: var(--area-color); }
.area-choice { display: flex; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.area-choice label { flex: 0 0 auto; }
.area-choice span { min-width: var(--size-84); padding: var(--size-1) var(--size-4); }
.task-label-choice { display: flex; gap: var(--size-9); flex-wrap: wrap; align-items: center; }
.task-label-choice .nl { display: inline-flex; align-items: center; gap: var(--size-37); cursor: pointer; margin: var(--size-1); }
.task-label-choice .nl input { width: var(--size-2); height: var(--size-2); margin: var(--size-1); accent-color: var(--lc); }
.task-row-labels { display: flex; gap: var(--size-37); flex-wrap: wrap; margin: var(--size-1) var(--size-1) var(--size-8) var(--size-85); }
.task-row-labels .nl { font-size: var(--size-7); line-height: 1.5; padding: var(--size-19) var(--size-8); max-width: 100%; overflow-wrap: anywhere; }
.size-picker { margin: var(--size-13) var(--size-1); }
.size-picker summary { cursor: pointer; font-size: var(--size-10); color: var(--muted); }
.size-picker summary { display: flex; gap: var(--size-37); align-items: center; }
.label-quick { padding: var(--size-42); }
.label-quick input[type="color"] { height: var(--size-18); }
.unparsed-line { display: flex; align-items: center; gap: var(--size-9); flex-wrap: wrap; margin-left: var(--size-85); }
.unparsed-line form { margin: var(--size-1); }
.unparsed-line button { padding: var(--size-3) var(--size-9); min-height: var(--size-43); }
.capture-original { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--size-10); color: var(--muted); }
[data-capture-status]:empty { display: none; }
.rules-table { margin: var(--size-11) var(--size-1) var(--size-14); }
.rules-table > div { display: flex; justify-content: space-between; align-items: start; gap: var(--size-11); padding: var(--size-7) var(--size-1); border-bottom: var(--size-19) solid var(--border); font-size: var(--size-10); }
.rules-table > div > span { min-width: var(--size-1); }
.rules-table b { white-space: nowrap; flex-shrink: 0; font-size: var(--size-11); }

/* Семантические правила паспорта стиля, без перестройки экранов. */
body {font-family:var(--font-body);font-synthesis:none;}
h1,h2,h3,.big,.amount-input {font-family:var(--font-display);font-weight:600;}
h1,h3 {font-weight:700;}
.card,section.card,.shop-active,.shop-product,.minimal-ui .shop-product,.hud-summary,.permission-offer {background:var(--card);border:0;border-radius:var(--radius-card);box-shadow:none;}
section.card {padding:var(--size-11);}
.sheet,.cat-sheet,.min-detail,.shop-dialog,.min-detail:has(.simple-entry) {border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;border:0;}
.btn,button,.shop-buy,.simple-plus,.area-filter>button,.area-filter>.area-add,.seg,.seg a,.seg label,.chip,.pill,.hud-chips span,.capture-input,.capture-input input,.quick,.quick input {border-radius:var(--radius-pill);}
button[type="submit"]:not(.secondary,.ghost,.danger,.icon-btn),form>button:not([type],.ghost,.secondary,.danger,.icon-btn),.btn.primary {background:var(--button);color:var(--text);border-color:var(--border);}
.mic,.quick-mic {background:var(--primary);color:var(--on-primary);}
.nav a {color:var(--muted);}
.nav a.on,.seg a.on,.area-filter>.selected {color:var(--primary);}
.area-filter>.selected {background:var(--bg);}
.hud-money .big {color:var(--text);}
.income {color:var(--income);}
.xp-segments>i,.xp-track {background:var(--track);}
.xp-segments>i.filled,.xp-track>i {background:var(--primary);}
.hud-reward,.shop-price,.gold {color:var(--primary);}
.ic {vertical-align:middle;}
.shop-emoji .ic {width:var(--size-15);height:var(--size-15);}
.sym-tabs,[data-sym-emoji] {display:none!important;}
.nav .mic {border-radius:50%;}
.capture-input {background:var(--card);border:0;padding:var(--size-8) var(--size-11);}
.capture-input input {background:transparent;border:0;}
a {color:var(--text);}
.nav a.on,.seg a.on,.area-filter>.selected,.shop-entry {color:var(--primary);}
.warn {color:var(--danger);}

/* Уточнение шага 2: акцидентный шрифт только для заголовков и крупных сумм. */
.btn,button,.nav a,.title,.hud-identity b,.hud-chips,.hud-level,.xp-number,.hud-reward,.shop-price,.shop-balance,.shop-spent,.xp-stats .small,.sub-count,.task-time.has-time [data-time-label],.simple-section h2 span {font-family:var(--font-body);font-weight:600;}
.list .title,.plan-main,.plan-title {font-family:var(--font-body);font-weight:500;}
a.small,.small a {font-family:var(--font-body);font-weight:500;}
.money-negative,.big.danger,.hud-money .big.danger {color:var(--danger);}
.hud-currency,.hud-currency.danger {color:inherit;}

/* Шаг 3: четыре раздела и общий ввод над меню. */
.nav-in {grid-template-columns:repeat(4,minmax(0,1fr));}
.nav a .ic {display:inline-block;}
.has-composer .app {padding-bottom:calc(var(--size-63) + var(--size-49) + var(--size-42) * 2 + env(safe-area-inset-bottom));}
.unified-entry {position:fixed;z-index:40;left:50%;transform:translateX(-50%);bottom:calc(var(--size-63) + var(--size-11) + env(safe-area-inset-bottom));width:calc(100% - var(--size-36) * 2);max-width:calc(var(--size-12) - var(--size-36) * 2);}
.unified-entry .capture-input {margin:0;gap:var(--size-9);}
.unified-entry input {min-width:0;flex:1;}
.unified-entry .mic {flex:none;width:var(--size-29);height:var(--size-29);min-height:var(--size-29);margin:0;padding:0;border:0;border-radius:50%;box-shadow:none;}
.unified-entry .mic.rec {background:var(--danger);}
.unified-entry [data-capture-status] {margin:var(--size-3) 0 0;background:var(--bg);}
.has-composer .sheet {--nav-h:calc(var(--size-63) + var(--size-49) + var(--size-42) + env(safe-area-inset-bottom));}
.has-composer .toast,.has-composer .mic-tip,.has-composer .min-onboarding {bottom:calc(var(--size-63) + var(--size-49) + var(--size-42) + env(safe-area-inset-bottom));}
@media(pointer:coarse) {
 .has-composer:has(input:focus,textarea:focus) .unified-entry {bottom:var(--size-9);}
 .has-composer:has(input:focus,textarea:focus) .sheet {--nav-h:var(--size-20);}
}
