/* Цвета из бренда Расула: /root/projects/brand/brand-tokens.css («тёмный орех»).
   Цвета плиток (графики) проверены валидатором dataviz, лежат в базе. */
:root {
  --bg: #513C2C;
  --bg-deep: #45301F;
  --surface: #634A38;
  --line: rgba(255, 247, 222, .08);
  --line-strong: rgba(255, 247, 222, .3);
  --text: #FFF7DE;
  --text-2: #E7D8C4;
  --muted: #B4B2BF;
  --accent: #40BCD8;
  --accent-ink: #0C3D48;
  --accent-text: #5FD0E8;
  --rose-text: #E4B9C2;
  --danger: #EB9DAD;
  --warn: #E7B84F;
  --font-display: 'Rubik', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-accent: 'Courier Prime', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg-deep);
  color: var(--text);
  font: 14px/1.35 var(--font-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--accent); color: var(--accent-ink); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
[hidden] { display: none !important; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- раскладка ---------- */
.side { display: none; }
/* сверху отступ от часов и заряда телефона, когда приложение стоит на экране «Домой» */
.main { padding: calc(14px + env(safe-area-inset-top)) 12px 104px; max-width: 520px; margin: 0 auto; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around; align-items: center;
  background: var(--bg); padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
}
.nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; min-width: 0;
  color: var(--muted); text-decoration: none; font-size: 11px; white-space: nowrap; }
.nav a.on { color: var(--accent-text); }
.nav .ic { width: 22px; height: 22px; }
.nav .plus { position: fixed; right: 16px; bottom: calc(74px + env(safe-area-inset-bottom)); width: 56px; height: 56px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center;
  justify-content: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); z-index: 11; }
body.has-save .nav .plus, body.has-toast .nav .plus, body.no-plus .nav .plus { display: none; }
.nav .plus .ic { width: 28px; height: 28px; stroke-width: 2.4; }

@media (min-width: 900px) {
  body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
  .side { display: flex; flex-direction: column; gap: 6px; background: var(--bg);
    padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
  .logo { font: 700 24px var(--font-display); padding: 0 10px 14px; }
  .side .write { display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 11px;
    font-weight: 600; text-decoration: none; margin-bottom: 12px; }
  .side .item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px;
    color: var(--text-2); text-decoration: none; }
  .side .item.on { background: var(--surface); color: var(--accent-text); }
  .side .grow { flex: 1; }
  .main { max-width: 1180px; padding: 22px 26px 40px; margin: 0; }
  .nav { display: none; }
}

/* ---------- общие детали ---------- */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 4px 12px; }
.title { font: 700 24px var(--font-display); margin: 0; }
.title.back { display: flex; align-items: center; gap: 6px; font-size: 22px; }
.title.back a { color: var(--text-2); display: flex; }
.days { font: 12px var(--font-accent); color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.arrow { background: none; border: 0; padding: 4px; color: var(--text-2); display: flex; }
.card { background: var(--bg); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.label a, .label button { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--text-2);
  background: none; border: 0; padding: 0; text-decoration: none; display: flex; align-items: center; gap: 2px; }
.label .ic { width: 14px; height: 14px; }
.muted { color: var(--muted); font-size: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; padding-top: 0; }
.inc { color: var(--accent-text); }
.btn-line { font: 500 12px var(--font-body); background: none; border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 6px 10px; white-space: nowrap; }

/* ---------- сводка месяца ---------- */
.sum3 { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sum3 .num { font: 500 17px var(--font-display); }
.sum3 .num.spent { color: var(--rose-text); }
.sum3 .num.diff { font-weight: 700; font-size: 21px; color: var(--accent-text); }
.sum3 .num.diff.neg { color: var(--danger); }
.sum3 .sub { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.sum3 > div:last-child { text-align: right; }
.goal { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 247, 222, .12); position: relative; margin: 6px 0; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--text-2); }
.bar .fc { position: absolute; top: 0; bottom: 0; border: 1px dashed var(--text-2); border-left: 0;
  border-radius: 0 3px 3px 0; }

/* ---------- плитки и поля ---------- */
.search { display: flex; align-items: center; gap: 8px; background: var(--bg-deep); border-radius: 10px;
  padding: 0 12px; margin-bottom: 10px; color: var(--muted); }
.search input { flex: 1; background: none; border: 0; padding: 11px 0; outline: none; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.found { margin: -4px 0 10px; }
.found a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 4px;
  border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tile { background: var(--surface); border-radius: 12px; padding: 10px 9px; min-height: 64px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; line-height: 1.2;
  overflow-wrap: break-word; hyphens: auto; }
.tile small { color: var(--muted); font-size: 11px; font-weight: 400; hyphens: manual; }
.tile.ghost { background: transparent; border: 1px dashed var(--line-strong); color: var(--text-2); font-weight: 400; }
.sub-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 4px 8px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.field-row:first-child { border-top: 0; }
.field-row label { flex: 1; min-width: 0; }
.field-row small { display: block; color: var(--muted); font-size: 11px; }
.amount { width: 116px; height: 40px; border-radius: 10px; background: var(--bg-deep); border: 0;
  text-align: right; padding: 0 12px; font: 500 16px var(--font-display); outline: none; }
.amount::placeholder { color: var(--muted); font: 400 14px var(--font-body); }
.amount:focus, .amount.filled { box-shadow: inset 0 0 0 1.5px var(--accent); }
.add-line { display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 4px;
  color: var(--muted); font-size: 13px; }
.add-line .ic { width: 16px; height: 16px; }
.new-line { display: flex; gap: 6px; padding: 6px 0; }
.new-line input { flex: 1; min-width: 0; background: var(--bg-deep); border: 0; border-radius: 10px; padding: 10px 12px; outline: none; }
.save-bar { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9;
  max-width: 496px; margin: 0 auto; }
.save { width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--accent);
  color: var(--accent-ink); font: 600 16px var(--font-body); }
.toggle { display: flex; background: var(--bg); border-radius: 10px; padding: 3px; margin-bottom: 12px; font-size: 13px; }
.toggle a { flex: 1; text-align: center; padding: 7px 0; border-radius: 8px; color: var(--muted); text-decoration: none; }
.toggle a.on { background: var(--surface); color: var(--text); font-weight: 500; }

/* ---------- главная: две колонки на компьютере ---------- */
.cols { display: flex; flex-direction: column; }
.col { display: contents; }
.o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; }
@media (min-width: 900px) {
  .cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .col { display: flex; flex-direction: column; gap: 14px; }
  .col .card { margin: 0; }
  .tiles.home { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .tiles.home .tile { min-height: 76px; padding: 12px; font-size: 14px; }
  .save-bar { left: 246px; right: 26px; bottom: 20px; max-width: 520px; margin: 0; }
  .summary-wide { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr; gap: 24px; align-items: start; }
  .summary-wide .goal { border: 0; margin: 0; padding: 0; }
  .summary-wide .sum3 { display: contents; }
  .summary-wide .sum3 > div:last-child { text-align: left; }
  .summary-wide .num { font-size: 24px; }
  .summary-wide .num.diff { font-size: 28px; }
}

/* ---------- подсказка «Записано» ---------- */
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 20;
  max-width: 496px; margin: 0 auto; background: var(--text); color: var(--bg-deep); border-radius: 12px;
  padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500; }
.toast button { background: none; border: 0; color: #11758C; font-weight: 600; padding: 0; }
@media (min-width: 900px) { .toast { left: auto; right: 26px; bottom: 20px; width: 420px; } }

.soon { text-align: center; color: var(--muted); padding: 40px 10px; }
.center { text-align: center; padding: 10px; }
.hint { margin-top: 6px; }
.stack { display: flex; flex-direction: column; min-width: 0; }
.struck { text-decoration: line-through; color: var(--muted); }

/* ---------- Лента ---------- */
.chips { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
select.chip { appearance: none; -webkit-appearance: none; background: var(--bg); border: 0; border-radius: 9px;
  padding: 7px 26px 7px 10px; font-size: 12px; color: var(--text-2); max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7D8C4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center; background-size: 14px; }
.row.entry { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; padding: 9px 0; }
.label + .row.entry { border-top: 0; padding-top: 0; }
.editor { background: var(--surface); border-radius: 12px; padding: 6px 12px 12px; margin: 4px 0 8px; }
.editor .field-row { border: 0; }
.editor-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.editor-right { display: flex; gap: 14px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 9px; padding: 9px 14px; font-weight: 600; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text-2); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.muted .link-btn { color: var(--accent-text); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.link-btn.danger { color: var(--danger); }
.link-btn .ic { width: 15px; height: 15px; }
.line-select { background: var(--bg-deep); border: 0; border-radius: 9px; padding: 8px 10px; color: var(--text); max-width: 100%; font-size: 13px; }
.text-in { width: 100%; background: var(--bg-deep); border: 0; border-radius: 9px; padding: 10px 12px; margin-top: 8px; outline: none; }
.text-in:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.day-banner { display: flex; align-items: center; gap: 8px; background: rgba(64, 188, 216, .14); color: var(--accent-text);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; font-size: 13px; }
.day-banner .ic { width: 16px; height: 16px; }
a.day-banner { text-decoration: none; }

/* ---------- Календарь ---------- */
.month-switch { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: var(--bg);
  border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; }
.month-switch b { font: 500 16px var(--font-display); }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 0; border-radius: 9px;
  padding: 7px 10px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.chip .ic { width: 15px; height: 15px; }
.card.cal { padding: 10px 8px; }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.grid7.muted { margin-bottom: 6px; font-size: 11px; }
.dy { height: 44px; border-radius: 9px; border: 0; background: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; font-size: 13px; color: var(--text); }
.dy.future { color: var(--muted); }
.dy.today { box-shadow: inset 0 0 0 1.5px var(--text-2); }
.dy.sel { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.dots { display: flex; gap: 3px; height: 6px; }
.dots b, .legend b { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.d-ev { background: var(--accent); }
.d-rec { background: var(--text-2); }
.dy.sel .d-ev, .dy.sel .d-rec { background: var(--accent-ink); }
.legend { display: flex; gap: 14px; padding: 0 6px 10px; font-size: 11px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.day-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.day-buttons .chip { justify-content: center; color: var(--text); padding: 9px 4px; font-size: 12.5px; white-space: nowrap; }
.search.on-page { background: var(--bg); }
@media (min-width: 900px) {
  .main.narrow { max-width: 760px; }
}
.inline-in { display: flex; gap: 6px; margin-top: 8px; }
.inline-in input { flex: 1; min-width: 0; height: 36px; border-radius: 9px; background: var(--bg-deep); border: 0;
  padding: 0 10px; text-align: right; outline: none; }

/* ---------- вход ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-box { width: 100%; max-width: 340px; background: var(--bg); border-radius: 16px; padding: 28px; display: grid; gap: 12px; }
.login-box h1 { font: 800 28px var(--font-display); margin: 0; }
.login-box p { margin: 0; color: var(--text-2); }
.login-box input { background: var(--bg-deep); border: 0; border-radius: 10px; padding: 14px; text-align: center;
  font: 500 24px var(--font-display); letter-spacing: .2em; outline: none; }
.login-box input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.login-box button { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 13px; font-weight: 600; }
.login-error { color: var(--danger); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Итоги ---------- */
.toggle.small { margin: 0; padding: 3px; font-size: 12px; }
.toggle button { flex: 1; border: 0; background: none; padding: 6px 14px; border-radius: 8px; color: var(--muted); }
.toggle button.on { background: var(--surface); color: var(--text); font-weight: 500; }
.sub .ic { width: 12px; height: 12px; vertical-align: -2px; }
.hbar { height: 8px; border-radius: 4px; background: rgba(255, 247, 222, .1); margin: 4px 0 10px; position: relative; }
.hbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.lg-item { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2);
  background: none; border: 0; padding: 3px 4px; border-radius: 6px; }
.lg-item.on { background: var(--surface); color: var(--text); }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; margin-right: 2px; }
.sw.line { height: 3px; width: 14px; border-radius: 2px; }
.bar-hit { cursor: pointer; }
.tip:not(:empty) { background: var(--surface); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.tip-title { font-weight: 600; margin-bottom: 6px; }
.tip-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 13px; }
.tip-row span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.radar { display: block; max-width: 380px; margin: 0 auto; }
.tip-row.sum { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 7px; }
.tip-row b.neg, .neg { color: var(--danger); }
.sub-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
.label + .sub-h { margin-top: 0; }
.tip .sub-h { margin-top: 10px; }
.rk { display: block; width: 100%; background: none; border: 0; padding: 7px 0 0; text-align: left; }
.rk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.rk .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk .nm small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.rk .nm .ic { width: 14px; height: 14px; vertical-align: -2px; margin-left: 2px; color: var(--muted); }
.rk .am { white-space: nowrap; font-weight: 600; }
.rk .am small { font-weight: 400; color: var(--muted); font-size: 12px; margin-right: 6px; }
.rk .hbar { display: block; margin: 6px 0 4px; height: 6px; }
.rk .hbar.thin { height: 4px; }
.rk.d1 { padding-left: 14px; }
.rk.d2 { padding-left: 28px; }
.rk.d1 .nm, .rk.d2 .nm { color: var(--text-2); }
.drill { background: var(--bg-deep); border-radius: 10px; padding: 10px 12px; margin: 8px 0 6px; }
.drill-head { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); font-size: 12px; margin-bottom: 4px; }
.more-lines { margin-top: 10px; }
/* экран раздела: сколько уже внесено за месяц, и режим «Изменить» (12.11.2026) */
.head-right { display: flex; align-items: center; gap: 6px; }
.done-sum { color: var(--text-2); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rename-in { flex: 1; min-width: 0; height: 40px; background: var(--bg-deep); border: 0; border-radius: 10px;
  padding: 0 12px; color: var(--text); outline: none; }
.rename-in:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
a.ib { text-decoration: none; }

/* ---------- голосовой ввод: кнопка над «+» на телефоне, «Голосом» в левом меню на компьютере ---------- */
.mic { position: fixed; z-index: 11; right: 18px; bottom: calc(142px + env(safe-area-inset-bottom)); width: 52px; height: 52px;
  border-radius: 50%; border: 0; background: var(--surface); color: var(--accent-text); display: flex; align-items: center;
  justify-content: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.mic .ic { width: 24px; height: 24px; }
.mic:disabled { opacity: .6; cursor: wait; }
.mic.on, .voice-side.on { background: var(--danger); color: #4A1A24; }
.mic.on { animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 10px rgba(235, 157, 173, .25), 0 6px 16px rgba(0, 0, 0, .35); } }
body.has-save .mic, body.has-toast .mic:not(.on), body.no-plus .mic, body.has-sheet .mic, body.has-sheet .nav .plus { display: none; }
.voice-sheet { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 21;
  max-width: 496px; margin: 0 auto; background: var(--surface); border-radius: 14px; padding: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.voice-sheet p { margin: 0 0 10px; }
.voice-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.voice-buttons .chip { background: var(--bg); color: var(--text); font-size: 13px; padding: 9px 12px; }
.voice-sheet .link-btn { margin-top: 12px; }
@media (min-width: 900px) {
  .mic { display: none; }
  .side .voice-side { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface);
    color: var(--text); border: 0; border-radius: 10px; padding: 10px; font-weight: 500; margin: -6px 0 12px; }
  .side .voice-side .ic { color: var(--accent-text); }
  .side .voice-side.on .ic { color: inherit; }
  .side .voice-side:disabled { opacity: .6; cursor: wait; }
  .voice-sheet { left: auto; right: 26px; bottom: 20px; width: 420px; }
}
@media (prefers-reduced-motion: reduce) { .mic.on { animation: none; } }
.debts-open { display: contents; }

/* ---------- Цели ---------- */
.goal-card .big { font: 500 17px var(--font-display); }
.goal-card .big b { color: var(--accent-text); font-weight: 700; }
.goal-buttons { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.goal-buttons .chip { color: var(--text); padding: 8px 12px; font-size: 13px; }
.goal-buttons .chip.ghost { background: none; color: var(--text-2); }
.done-mark { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 500; }
.text-in[type='month'] { color-scheme: dark; color: var(--text); }

/* ---------- Разделы и настройки ---------- */
.set-row { display: flex; align-items: center; gap: 2px; padding: 4px 0; border-top: 1px solid var(--line); }
.set-row:first-child { border-top: 0; }
.set-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 6px; }
.set-row .nm small { color: var(--muted); font-size: 11px; margin-left: 6px; }
.set-row.k-tile .nm { font-weight: 600; }
.set-row.k-window .nm { font-weight: 500; }
.set-row.d1 { margin-left: 14px; }
.set-row.d2 { margin-left: 28px; }
.ib { width: 32px; height: 32px; flex: none; border-radius: 8px; background: none; border: 0; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; }
.ib .ic { width: 18px; height: 18px; }
.ib.on { color: var(--accent-text); background: rgba(64, 188, 216, .14); }
.rename { display: flex; gap: 6px; flex: 1; min-width: 0; }
.rename input { flex: 1; min-width: 0; background: var(--bg-deep); border: 0; border-radius: 8px; padding: 6px 10px; outline: none; }
.rename input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.set-adds { display: flex; gap: 12px; flex-wrap: wrap; }
.set-adds .add-line { padding: 8px 4px; }
.set-note { color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.add-goal { width: 100%; height: 50px; border: 1px dashed var(--line-strong); border-radius: 14px; background: none;
  color: var(--text-2); font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.btn-delete { width: 100%; margin-top: 12px; height: 44px; border: 1px solid var(--danger); border-radius: 10px; background: none;
  color: var(--danger); font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-delete .ic { width: 17px; height: 17px; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link .label span:last-child { display: inline-flex; align-items: center; gap: 2px; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--text-2); }
