.callout[data-callout="ai"],
.callout[data-callout="claude"] {
  --callout-color: 217, 119, 87;
  --callout-icon: lucide-sparkles;
}

/* ---------- Дашборд LifeOS (lifeos-dashboard, lifeos-finance, lifeos-server) ----------
   Язык: бумага и чернила, один синий акцент, моно-подписи капсом, тонкие линии, без теней.
   Цвет несёт смысл: акцент — «сейчас» и выбранное, кирпичный — минус и просрочка. Больше цветов нет. */

.lifeos-home { --file-line-width: 1120px; }
/* заголовок и «Свойства» не нужны: в режиме редактирования Obsidian показывает их своим правилом — отсюда !important */
.lifeos-home .inline-title,
.lifeos-home .metadata-container,
.lifeos-home .frontmatter-container { display: none !important; }

.lifeos-dash {
  --lod-surface: #ffffff;
  --lod-sunk: #f4f3f0;
  --lod-ink: #14161a;
  --lod-ink-2: #3b3f46;
  --lod-muted: #6b6f76;
  --lod-faint: #a4a7ad;
  --lod-line: #e4e3df;
  --lod-line-2: #d6d5d0;
  --lod-accent: #3b5bdb;
  --lod-accent-soft: rgba(59, 91, 219, 0.12);
  --lod-neg: #c0502a;
  --lod-font: 'Golos Text', var(--font-interface, system-ui), -apple-system, 'Segoe UI', sans-serif;
  --lod-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, var(--font-monospace, monospace), monospace;
  --lod-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  font-family: var(--lod-font);
  color: var(--lod-ink);
  font-size: 14px;
  line-height: 1.45;
  margin: 4px 0 24px;
}
.theme-dark .lifeos-dash {
  --lod-surface: #1a1b1f;
  --lod-sunk: #141518;
  --lod-ink: #ecebe8;
  --lod-ink-2: #c9c9c6;
  --lod-muted: #8e939b;
  --lod-faint: #5d6168;
  --lod-line: #2a2c31;
  --lod-line-2: #373a40;
  --lod-accent: #7b93ff;
  --lod-accent-soft: rgba(123, 147, 255, 0.16);
  --lod-neg: #e07a55;
}
.lifeos-dash * { box-sizing: border-box; }
.lifeos-dash a { color: inherit; text-decoration: none; }
.lifeos-dash button { font: inherit; color: inherit; cursor: pointer; box-shadow: none; }

.lod-num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; white-space: nowrap; }
.lod-kicker { font-family: var(--lod-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lod-muted); }
.lod-sub { color: var(--lod-muted); font-size: 12.5px; }
.lod-late { color: var(--lod-neg); }
.lod-empty { color: var(--lod-muted); font-size: 13px; padding: 6px 0; list-style: none; }

/* шапка */
.lod-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 4px 0 18px; border-bottom: 1px solid var(--lod-line); margin-bottom: 16px; }
.lod-title { font-size: 34px; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 0; color: var(--lod-ink); }
.lod-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lod-btn { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--lod-line-2) !important;
  background: var(--lod-surface) !important; font-size: 13px !important; transition: border-color .15s var(--lod-ease); }
.lod-btn:hover { border-color: var(--lod-ink) !important; }
.lod-btn-main { background: var(--lod-ink) !important; color: var(--lod-surface) !important; border-color: var(--lod-ink) !important; }
.lod-btn-quiet { height: 26px; padding: 0 10px; font-size: 12px !important; }
.lod-btn:disabled { opacity: .5; }
/* «↻ обновить» в карточках: идёт — спиннер и этап, готово — «обновлено 14:32», ошибка — красным, нажатие повторяет */
.lod-refresh { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--lod-ink-2); }
.lod-refresh.is-busy:disabled { opacity: 1; cursor: progress; }
.lod-refresh.is-done { color: var(--lod-accent); }
.lod-refresh.is-error { color: var(--lod-neg); border-color: var(--lod-neg) !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.lod-spin { flex: none; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent;
  animation: lod-spin .8s linear infinite; }
@keyframes lod-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lod-spin { animation-duration: 2.4s; } }

/* пульт: три колонки — сервер и календарь / задачи / приложения и деньги; узкий экран — одна под другой */
.lod-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.lod-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lod-col > .lod-card { margin: 0; }
@media (max-width: 900px) { .lod-cols { grid-template-columns: 1fr; } }

/* календарь сворачивается (на телефоне свёрнут сразу) */
.lod-fold { transition: transform .18s var(--lod-ease); }
.lod-card.is-folded .lod-fold { transform: rotate(-90deg); }
.lod-card.is-folded .lod-cal-body,
.lod-card.is-folded .lod-cal-nav,
.lod-card.is-folded .lod-cal-title { display: none; }
.lod-card.is-folded .lod-card-head { margin-bottom: 0; }
.lod-card.is-folded .lod-card-head .lod-kicker { cursor: pointer; }

/* кладка карточек (обзор денег): колонки, а не сетка — короткая карточка не оставляет дыры под собой */
.lod-grid { column-width: 320px; column-gap: 14px; }
.lod-card { background: var(--lod-surface); border: 1px solid var(--lod-line); border-radius: 12px; padding: 14px 16px 16px;
  min-width: 0; break-inside: avoid; margin-bottom: 14px; display: block; width: 100%; }
.lod-wide { column-span: all; }
.lod-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 26px; }
.lod-kicker-link { cursor: pointer; }
.lod-kicker-link:hover { color: var(--lod-accent) !important; }
.lod-kicker-link::after { content: " →"; opacity: .5; }
.lod-more { font-size: 12px; color: var(--lod-muted) !important; }
.lod-more:hover { color: var(--lod-accent) !important; }
.lod-link:hover { color: var(--lod-accent); }

/* вкладки */
.lod-tabs { display: flex; gap: 2px; padding: 2px; background: var(--lod-sunk); border-radius: 8px; margin-bottom: 8px; }
.lod-tab { flex: 1; height: 28px; border: 0 !important; border-radius: 6px; background: transparent !important;
  font-size: 12.5px !important; color: var(--lod-muted) !important; }
.lod-tab[aria-selected="true"] { background: var(--lod-surface) !important; color: var(--lod-ink) !important;
  box-shadow: 0 0 0 1px var(--lod-line) !important; }

/* задачи и тумблер */
.lod-tasks { list-style: none; margin: 0; padding: 0; }
.lod-task { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--lod-line); }
.lod-task:first-child { border-top: 0; }
.lod-task-body { min-width: 0; flex: 1; }
.lod-task-text { display: block; font-size: 13.5px; line-height: 1.4; }
.lod-task.is-done .lod-task-text { color: var(--lod-faint); text-decoration: line-through; text-decoration-color: var(--lod-faint); }
.lod-task-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.lod-due, .lod-tag { font-family: var(--lod-mono); font-size: 10.5px; color: var(--lod-muted); }
.lod-tag::before { content: "#"; opacity: .6; }
.lod-switch { flex: none; position: relative; width: 34px; height: 20px; margin-top: 1px; padding: 0 !important;
  border-radius: 999px; border: 1px solid var(--lod-line-2) !important; background: var(--lod-sunk) !important;
  transition: background .18s var(--lod-ease), border-color .18s var(--lod-ease); }
.lod-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--lod-faint);
  transition: transform .18s var(--lod-ease), background .18s var(--lod-ease); }
.lod-switch[aria-checked="true"] { background: var(--lod-accent) !important; border-color: var(--lod-accent) !important; }
.lod-switch[aria-checked="true"] .lod-knob { transform: translateX(14px); background: #fff; }

/* ползунок — свой элемент (slider() в main.js), тема Obsidian его не трогает */
.lod-slider { display: block; margin-top: 12px; }
.lod-slider-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.lod-slider output { font-size: 12px; }
.lod-track { position: relative; display: block; height: 20px; margin: 0 8px; cursor: pointer; touch-action: none;
  outline: none; -webkit-user-select: none; user-select: none; }
.lod-track-line { position: absolute; left: -8px; right: -8px; top: 9px; height: 2px; border-radius: 2px; background: var(--lod-line-2); }
.lod-track-fill { position: absolute; left: 0; top: 9px; height: 2px; background: var(--lod-ink-2); }
.lod-thumb { position: absolute; top: 2px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; box-sizing: border-box;
  background: var(--lod-surface); border: 2px solid var(--lod-ink); transition: box-shadow .15s var(--lod-ease), transform .15s var(--lod-ease); }
.lod-track:focus-visible .lod-thumb, .lod-track.is-drag .lod-thumb { box-shadow: 0 0 0 4px var(--lod-accent-soft); }
.lod-track.is-drag .lod-thumb { transform: scale(1.1); cursor: grabbing; }

/* графики */
.lod-chart { display: block; width: 100%; height: 56px; overflow: visible; }
.lod-bar { fill: var(--lod-line-2); }
.lod-hi { fill: var(--lod-accent); }
.lod-neg { fill: var(--lod-neg); background: var(--lod-neg); }
.lod-axis { stroke: var(--lod-muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lod-chart rect { transition: height .2s var(--lod-ease), y .2s var(--lod-ease); }
.lod-chart-labels { display: flex; justify-content: space-between; font-family: var(--lod-mono); font-size: 10.5px; color: var(--lod-muted); margin-top: 4px; }
.lod-big { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.lod-big .lod-num { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; }
.lod-unit { color: var(--lod-muted); }
.lod-big-sub { font-size: 13.5px; margin: 10px 0 8px; }
.lod-big-sub b { font-weight: 600; }
.lod-note { margin-top: 10px; line-height: 1.5; }
.lod-series { display: grid; gap: 12px; }
.lod-serie-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.lod-serie .lod-chart { height: 34px; }

/* календарь */
.lod-cal-head { display: flex; align-items: center; gap: 6px; }
.lod-cal-title { font-size: 13px; font-weight: 500; }
.lod-cal-nav { display: flex; }
.lod-icon { width: 26px; height: 26px; padding: 0 !important; border-radius: 6px; border: 0 !important; background: transparent !important;
  color: var(--lod-muted) !important; font-size: 16px !important; line-height: 1; }
.lod-icon:hover { background: var(--lod-sunk) !important; color: var(--lod-ink) !important; }
.lod-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.lod-cal-wd { font-family: var(--lod-mono); font-size: 10px; text-transform: uppercase; color: var(--lod-faint); text-align: center; padding-bottom: 4px; }
.lod-cal-cell { height: 40px; padding: 4px 0 0 !important; border: 0 !important; border-radius: 8px; background: transparent !important;
  display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lod-cal-cell:hover { background: var(--lod-sunk) !important; }
.lod-cal-n { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lod-cal-cell.is-past .lod-cal-n { color: var(--lod-muted); }
.lod-cal-cell.is-today .lod-cal-n { color: var(--lod-accent); font-weight: 600; }
.lod-cal-dots { display: flex; gap: 2px; height: 5px; }
.lod-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; flex: none; }
.lod-d-journal { background: var(--lod-ink); }
.lod-d-task { background: var(--lod-accent); }
.lod-d-task.is-done { background: var(--lod-faint); }
.lod-d-chat { box-shadow: inset 0 0 0 1px var(--lod-muted); }
.lod-d-money { background: var(--lod-neg); }
.lod-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--lod-muted); margin: 8px 0 0; }
.lod-legend > span { display: inline-flex; align-items: center; gap: 5px; }

/* сервер */
.lod-status { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.lod-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lod-accent); box-shadow: 0 0 0 3px var(--lod-accent-soft); }
.lod-status.is-bad .lod-status-dot { background: var(--lod-neg); box-shadow: 0 0 0 3px rgba(192, 80, 42, .15); }
.lod-alerts { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--lod-neg); }
.lod-meters { display: grid; gap: 6px; margin: 12px 0 10px; }
.lod-meter { display: grid; grid-template-columns: 56px 1fr 40px; align-items: center; gap: 8px; font-size: 12px; }
.lod-meter .lod-num { text-align: right; font-size: 12px; }
.lod-meter-bar { height: 4px; border-radius: 4px; background: var(--lod-sunk); overflow: hidden; }
.lod-meter-bar > span { display: block; height: 100%; background: var(--lod-ink); border-radius: 4px; }
.lod-meter-bar > span.lod-neg { background: var(--lod-neg); }
.lod-units { display: flex; gap: 4px; margin: 4px 0 6px; }
.lod-unit-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--lod-ink); }
.lod-unit-dot.is-quiet { background: var(--lod-line-2); }
.lod-unit-dot.is-bad { background: var(--lod-neg); }

/* чипы-ссылки */
.lod-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lod-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--lod-line);
  font-size: 12.5px; transition: border-color .15s var(--lod-ease); }
.lod-chip:hover { border-color: var(--lod-ink); }
.lod-chip.is-ext::after { content: "↗"; margin-left: 4px; color: var(--lod-muted); font-size: 11px; }

/* списки денег */
.lod-list { list-style: none; margin: 10px 0 0; padding: 0; }
.lod-list li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--lod-line); font-size: 13px; }
.lod-list li:first-child { border-top: 0; }
.lod-list li.is-total { font-weight: 600; border-top-color: var(--lod-line-2); }
.lod-list li.is-past { color: var(--lod-faint); }
.lod-cats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.lod-cats li { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 70px; gap: 10px; align-items: center; font-size: 13px; }
.lod-cats .lod-num { text-align: right; }
.lod-cat-bar { height: 6px; background: var(--lod-sunk); border-radius: 6px; overflow: hidden; }
.lod-cat-bar > span { display: block; height: 100%; background: var(--lod-ink-2); border-radius: 6px; }
.lod-cats li:first-child .lod-cat-bar > span { background: var(--lod-accent); }

/* узкий экран: телефон */
@media (max-width: 560px) {
  .lod-title { font-size: 28px; }
  .lod-actions { width: 100%; }
  .lod-actions .lod-btn { flex: 1; padding: 0 8px; }
  .lod-cats li { grid-template-columns: 100px 1fr 62px; }
}

/* кнопка в заметках server/ */
.block-language-lifeos-server button { font-size: 13px; }

/* карточка «Сайт»: главные цифры сеткой, прирост — акцентом, спад — кирпичным */
.lod-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 12px 10px; margin-bottom: 14px; }
.lod-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lod-stat-val { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 5px; }
.lod-delta { font-size: 11.5px; font-weight: 500; color: var(--lod-accent); letter-spacing: 0; }
.lod-delta.is-down { color: var(--lod-neg); }
.lod-head-extra { display: inline-flex; align-items: center; gap: 8px; }
.lod-head-extra > .lod-sub { font-size: 11.5px; white-space: nowrap; }

/* задачи на неделю — по дням */
.lod-day-head { list-style: none; font-family: var(--lod-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--lod-muted); padding: 12px 0 2px; border-top: 1px solid var(--lod-line); }
.lod-day-head:first-child { border-top: 0; padding-top: 2px; }
.lod-day-head.is-today { color: var(--lod-accent); }
.lod-day-head + .lod-task { border-top: 0; }
