/* Цели и план — дополнения к app.css из b24-focus. Переменные, карточки, плитки, таблицы, метки .pill — оттуда. */

/* разделы приложения — ссылки, выглядят как кнопки .seg */
.seg a { display: inline-block; color: var(--ink-2); padding: 7px 14px; border-radius: 8px; white-space: nowrap; font-size: 14px; text-decoration: none; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current="page"] { background: var(--accent); color: #fff; }
.tile .v small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.tile.accent { background: var(--info-bg); box-shadow: none; }
.tile.accent .k { color: var(--info-ink); }
.tile.warn { background: var(--warn-bg); box-shadow: none; }
.tile.warn .k, .tile.warn .v { color: var(--warn-ink); }
.ava { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--info-bg); color: var(--info-ink); font-size: 11px; font-weight: 600;
  display: inline-grid; place-items: center; }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: #2b333d; color: #fff; border-radius: 10px;
  padding: 10px 16px; font-size: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); max-width: 92vw; }

/* ---------- мой план: пул задач + неделя ---------- */
.plan-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.pool { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; padding: 14px; max-height: calc(100vh - 24px); overflow: auto; }
.pool .card-head { margin-bottom: 0; }
.pool .seg { box-shadow: none; background: var(--chip-bg); }
.pool .seg button { padding: 5px 10px; font-size: 13px; }
.pcard { border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; background: #fff;
  cursor: grab; display: flex; flex-direction: column; gap: 4px; user-select: none; }
.pcard:hover { border-color: var(--accent); }
.pcard.goal { border-left-color: #8b6fd6; }
.pcard.overdue { border-left-color: var(--danger); }
.pcard.dragging { opacity: .45; }
.pcard-title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--muted); align-items: center; }
.pcard .bar { height: 4px; }
.pcard .bar i { background: var(--accent); }
.pcard .bar i.full { background: var(--cta); }
.gchip { font-size: 11px; background: #f1edfb; color: #6a4fc0; border-radius: 4px; padding: 1px 6px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.week { padding: 0; overflow: hidden; }
.week-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.week-bar .title { font-size: 16px; font-weight: 600; }
.week-bar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tb { display: grid; grid-template-columns: 52px repeat(var(--days), minmax(0, 1fr)); }
.tb-dh { padding: 8px 8px 6px; font-size: 13px; color: var(--ink-2); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.tb-dh b { display: block; font-size: 18px; color: var(--ink); font-weight: 600; }
.tb-dh.today b { color: var(--accent); }
.tb-dh .load { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.tb-corner { border-bottom: 1px solid var(--line); }
.tb-hours { position: relative; }
.tb-hours span { position: absolute; right: 8px; font-size: 11px; color: var(--muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.tb-col { position: relative; border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 48px);
  background-color: #fff; }
.tb-col.past { background-color: #fafbfc; }
.tb-col .off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(130, 139, 149, .07) 6px 12px); pointer-events: none; }
.tb-col.drop-on { background-color: #f4fbfe; }
.tb-now { position: absolute; left: -1px; right: 0; border-top: 2px solid var(--danger); z-index: 4; pointer-events: none; }
.tb-now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.tb-ev, .tb-blk, .tb-ghost { position: absolute; left: 3px; right: 3px; border-radius: 6px; padding: 3px 6px; font-size: 12px; line-height: 1.25; overflow: hidden; }
.tb-ev { background: #eef1f4; color: var(--ink-2); border-left: 3px solid #a8b1bb; z-index: 1; }
.tb-ev .t { font-weight: 500; color: var(--ink); }
.tb-blk { background: var(--info-bg); border-left: 3px solid var(--accent); color: var(--ink); z-index: 2; cursor: grab; box-shadow: 0 1px 2px rgba(20, 24, 30, .08); }
.tb-blk.goal { background: #f1edfb; border-left-color: #8b6fd6; }
.tb-blk.clash { box-shadow: inset 0 0 0 1.5px var(--danger); }
.tb-blk.past { cursor: default; opacity: .9; }
.tb-blk.moving { opacity: .8; z-index: 5; box-shadow: 0 6px 18px rgba(20, 24, 30, .2); }
.tb-blk .t { font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tb-blk .tm { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tb-blk .x-s { position: absolute; top: 2px; right: 2px; border: 0; background: transparent; color: var(--muted); width: 18px; height: 18px; border-radius: 50%;
  font-size: 13px; line-height: 1; padding: 0; display: none; }
.tb-blk:hover .x-s { display: block; }
.tb-blk .x-s:hover { background: rgba(0, 0, 0, .08); color: var(--ink); }
.tb-blk .rs { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.tb-blk .ask { margin-top: 4px; display: flex; gap: 3px; flex-wrap: wrap; }
.tb-blk .ask button { border: 1px solid #c9b9f0; background: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; }
.tb-blk .ask button:hover { border-color: #8b6fd6; }
.tb-blk .logged { color: var(--ok-ink); font-size: 11px; margin-top: 2px; }
.tb-ghost { background: var(--info-bg); border: 1.5px dashed var(--accent); border-left: 3px solid var(--accent); z-index: 3; pointer-events: none; color: var(--ink);
  box-shadow: 0 6px 18px rgba(20, 24, 30, .16); }
.tb-ghost .tm { font-variant-numeric: tabular-nums; color: var(--info-ink); font-weight: 600; }
.tb-ghost .t { font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tb-ghost.goal { background: #f1edfb; border-color: #8b6fd6; }
.tb-ghost.goal .tm { color: #6a4fc0; }
.tb-ghost.tiny { display: flex; gap: 6px; align-items: center; padding-top: 0; padding-bottom: 0; }
.tb-ghost.tiny .t { -webkit-line-clamp: 1; }
.tb-ghost.bad { background: var(--err-bg); border-color: var(--danger); }
.tb-ghost.bad .tm { color: var(--err-ink); }
.week-foot { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.week-foot .sw { height: 10px; }

/* ---------- дерево целей ---------- */
.lvl { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.lvl-1 { background: #2b333d; color: #fff; }
.lvl-2 { background: #f1edfb; color: #6a4fc0; }
.lvl-3 { background: var(--chip-bg); color: var(--ink-2); }
table.tree { min-width: 640px; }
.tree td { vertical-align: middle; }
.tree tr.sel td { background: var(--info-bg); }
.tree tr.l1 td { background: #fbfcfd; }
.tree tr.l1 .nm { font-weight: 600; font-size: 15px; }
.tree tr.l2 .nm { font-weight: 500; }
.tree tr.l3 .nm { color: var(--ink-2); }
.tree tr.l3.done .nm { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.nmcell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chev { flex: none; width: 22px; height: 22px; border: 0; background: none; border-radius: 6px; color: var(--muted); padding: 0; font-size: 12px; }
.chev:hover { background: var(--chip-bg); color: var(--ink); }
.chev.sp { visibility: hidden; }
.prog { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.prog .bar { flex: 1; height: 8px; }
.prog b { font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; font-weight: 600; font-size: 14px; }
.bar i.p-ok { background: var(--cta); }
.bar i.p-warn { background: #f0a24a; }
.bar i.p-err { background: var(--danger); }
.bar i.p-task { background: var(--accent); }
.bar .exp { position: relative; }
.prog .bar { position: relative; overflow: visible; }
.prog .bar i { border-radius: 4px; }
.prog .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-2); border-radius: 1px; }
.side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 12px; }
.side h2 { font-size: 17px; line-height: 1.3; }
.chain { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.chain a { color: var(--ink-2); text-decoration: none; }
.chain a:hover { color: var(--link); }
.metric { background: var(--chip-bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.metric .vals { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.metric .vals b { color: var(--ink); font-size: 16px; }
.metric .bar i { background: #8b6fd6; }
.actions-col { display: flex; flex-direction: column; gap: 8px; }

/* схема: дерево слева направо */
.scheme-wrap { overflow-x: auto; padding: 18px 20px; }
.scheme, .scheme ul { list-style: none; margin: 0; padding: 0; }
.scheme > li + li { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.scheme li { display: flex; align-items: center; position: relative; }
.scheme ul { position: relative; padding-left: 28px; }
.scheme ul::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; border-top: 1.5px solid var(--line-strong); }
.scheme ul > li { padding: 4px 0 4px 14px; }
.scheme ul > li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; border-top: 1.5px solid var(--line-strong); }
.scheme ul > li::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1.5px solid var(--line-strong); }
.scheme ul > li:first-child::after { top: 50%; }
.scheme ul > li:last-child::after { bottom: 50%; }
.scheme ul > li:only-child::after { display: none; }
.node { flex: none; width: 230px; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; }
.node:hover { border-color: var(--accent); }
.node.n1 { width: 250px; border-top: 3px solid #2b333d; }
.node.n2 { border-top: 3px solid #8b6fd6; }
.node.n3 { width: 210px; padding: 6px 9px; gap: 3px; }
.node.n3.done { opacity: .6; }
.node .nt { font-size: 13px; font-weight: 600; line-height: 1.3; }
.node.n3 .nt { font-weight: 500; }
.node .nm2 { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); align-items: center; }
.node .bar { height: 5px; }

/* ---------- дашборд ---------- */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.gcard { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; cursor: pointer;
  border: 2px solid transparent; }
.gcard:hover { border-color: var(--line-strong); }
.gcard.sel { border-color: var(--accent); }
.gcard-top { display: flex; gap: 12px; align-items: flex-start; }
.gcard-top .grow { min-width: 0; }
.gcard-name { font-size: 17px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gcard-pct { font-size: 40px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; flex: none; }
.gcard-pct sup { font-size: 16px; margin-left: 2px; vertical-align: top; position: relative; top: 4px; }
.gcard .bar { height: 10px; border-radius: 5px; position: relative; overflow: visible; }
.gcard .bar i { border-radius: 5px; }
.gcard .bar .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink-2); }
.gnums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gnums .v { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.gnums .v.rest { color: #d98a3d; }
.gnums .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pace { background: var(--chip-bg); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.pace-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--ink); font-size: 15px; }
.pace .small { font-size: 13px; color: var(--muted); }
.pill.big { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: 4px 10px; border-radius: 12px; }

.chart-card svg { display: block; width: 100%; height: auto; }
.chart-card .axis { font-size: 11px; fill: var(--muted); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }

table.rate { min-width: 560px; }
.rate td { vertical-align: middle; }
.rbar { display: inline-block; width: 110px; height: 8px; border-radius: 4px; background: var(--chip-bg); vertical-align: middle; overflow: hidden; }
.rbar i { display: block; height: 100%; border-radius: 4px; background: #8b6fd6; }
.rbar.share i { background: var(--accent); }
.rate td.pctc { font-weight: 600; color: #6a4fc0; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rate tr.me td { background: #f7f5fd; }

/* ---------- отчёт ---------- */
table.rep2 { min-width: 980px; }
.rep2 td { vertical-align: middle; }
.rep2 th.grp { text-align: center; border-left: 1px solid var(--line-strong); }
.rep2 .gs { border-left: 1px solid var(--line-strong); }
.rep2 .big-n { font-weight: 600; font-size: 15px; }
.rep2 .sub { font-size: 12px; color: var(--muted); }
.split { display: flex; width: 180px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--chip-bg); }
.split i { height: 100%; }
.c-meet { background: #a8b1bb; }
.c-task { background: var(--accent); }
.c-goal { background: #8b6fd6; }
.c-free { background: var(--chip-bg); }
.rep2 tr.open td { background: #f7fbfd; }
.rep2 tr.det td { background: #fbfcfd; padding: 14px 16px 18px; }
.det-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.det-grid h3 { margin: 0 0 6px; font-size: 14px; }
.det-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.det-list li { display: flex; gap: 10px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 3px 0; }
.det-list li span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.src-note { font-size: 12px; color: var(--warn-ink); }

@media (max-width: 1080px) {
  .plan-layout { grid-template-columns: minmax(0, 1fr); }
  .pool { position: static; max-height: none; }
  .cols2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) { .det-grid { grid-template-columns: minmax(0, 1fr); } }
.tree .nm { display: block; }
.tree .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.tree td:last-child { white-space: nowrap; }
table.rate { min-width: 0; }
.rate .rbar { width: 72px; }
.rate th, .rate td { padding-left: 10px; padding-right: 10px; }

/* ---------- мой план: фильтры, длительность, окна, встречи ---------- */
.pool-f { gap: 6px; }
.pool-f .dd > summary { padding: 4px 26px 4px 9px; max-width: 268px; }
.pool-f .dd-label, .pool-f .dd-value { font-size: 12px; }
.pool-f .dd-pop { width: 268px; }
.week-filters { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.cal-f .dd > summary { padding: 5px 28px 5px 10px; }
.cal-f .dd-label, .cal-f .dd-value { font-size: 13px; }
.pcard-plan { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; }
.pcard-plan label { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); white-space: nowrap; }
.dsel { font: inherit; font-size: 12px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 2px; background: #fff; color: var(--ink); cursor: pointer; }
.drag-blank { position: fixed; top: -10px; left: -10px; width: 1px; height: 1px; opacity: 0; }
.drag-float { position: fixed; z-index: 70; pointer-events: none; background: var(--info-bg); border: 1px solid #b7e6f6; border-left: 3px solid var(--accent); border-radius: 6px;
  padding: 4px 7px; font-size: 12px; line-height: 1.25; box-shadow: 0 8px 22px rgba(20, 24, 30, .2); }
.drag-float.goal { background: #f1edfb; border-color: #d9cff4; border-left-color: #8b6fd6; }
.drag-float .tm { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.drag-float .t { font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pool-drop { display: none; border: 2px dashed var(--line-strong); border-radius: 10px; padding: 14px 10px; text-align: center; font-size: 13px; color: var(--ink-2); }
.pool.drop-target .pool-drop { display: block; }
.pool.drop-remove { box-shadow: inset 0 0 0 2px var(--danger); }
.pool.drop-remove .pool-drop { border-color: var(--danger); color: var(--err-ink); background: var(--err-bg); }
.tb-blk.removing { opacity: .35; }
.tb-blk.tiny { padding-top: 1px; padding-bottom: 1px; }
.tb-blk.tiny .t { -webkit-line-clamp: 1; }
.tb-blk.tiny .tm { display: none; }
.tb-blk { cursor: pointer; }
.tb-ev { cursor: pointer; }
.tb-ev .tm { color: var(--muted); }
.tb-ev.mine { border-left-color: #6b7785; background: #e6eaee; }
.tb-ev.movable { cursor: grab; }
.tb-ev.movable:hover { box-shadow: inset 0 0 0 1px #a8b1bb; }
.tb-ev.moving { opacity: .85; z-index: 5; box-shadow: 0 6px 18px rgba(20, 24, 30, .2); }
.tb-ev.ask { background: #fff; border: 1px dashed #a8b1bb; border-left: 3px solid #f0a24a; }
.tb-ev.declined { background: repeating-linear-gradient(135deg, #f5f7f8 0 6px, #fff 6px 12px); border-left-color: var(--line-strong); }
.tb-ev.declined .t { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.tb-ev.company { background: var(--warn-bg); border-left-color: #f5b400; cursor: default; }
.tb-ev .rs { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.q-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f0a24a; margin-right: 5px; vertical-align: 1px; }
.pop { position: fixed; z-index: 40; width: 340px; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; box-shadow: 0 12px 36px rgba(20, 24, 30, .22); }
.pop-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pop-title { font-size: 15px; font-weight: 600; line-height: 1.3; margin-top: 2px; }
.pop .tp-quick { border-bottom: 0; padding-bottom: 0; }
.pop .tp-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pop .row label { display: flex; flex-direction: column; gap: 3px; }
/* блок поверх встречи сдвигается вправо, чтобы встречу было видно */
.tb-blk.clash { left: 38%; }

/* фильтры списка задач: поиск + кнопка «Фильтры», срок — строкой чипов, остальное — в раскрывающейся панели */
.pf { display: flex; flex-direction: column; gap: 8px; }
.pf-search { display: flex; gap: 6px; }
.pf-search .input { flex: 1; min-width: 0; }
.pf-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2);
  border-radius: 8px; padding: 0 10px; font-size: 13px; }
.pf-btn::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); }
.pf-btn.open::after { transform: translateY(1px) rotate(-135deg); }
.pf-btn:hover, .pf-btn.open { border-color: var(--accent); }
.pf-btn.on { background: var(--info-bg); border-color: var(--accent); color: var(--info-ink); }
.pf-n { background: var(--accent); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; padding: 0 5px; }
.pf-due, .pf-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip.chip-s { padding: 2px 9px; font-size: 12px; border-radius: 12px; gap: 4px; }
.chip.chip-s .n { font-size: 11px; }
.pf-panel { background: var(--chip-bg); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.pf-row { display: flex; flex-direction: column; gap: 4px; }
.pf-label { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pf-panel select.input { width: 100%; background: #fff; }
.pool .ftags { align-items: center; }
.pool .ftag { font-size: 12px; }

/* шапка дня: встречи и задачи отдельными строками, полоса загрузки рабочего дня */
.tb-dh { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px; }
.dh-top { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); }
.dh-top b { display: inline; font-size: 20px; color: var(--ink); font-weight: 600; }
.tb-dh.today .dh-top b, .tb-dh.today .dh-top { color: var(--accent); }
.dh-bar { display: flex; height: 6px; border-radius: 3px; background: var(--chip-bg); overflow: hidden; }
.dh-bar i { height: 100%; }
.dh-sum { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 12px; }
.dh-sum dt { color: var(--ink-2); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.dh-sum dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dh-sum .free { color: var(--muted); font-weight: 400; }
.dh-sum dt.free { padding-left: 13px; }
.dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: none; }
.dh-off { font-size: 12px; color: var(--muted); }

/* ---------- приложение: окна, заметки, вкладка в задаче ---------- */
.note { border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.note.err { background: var(--err-bg); color: var(--err-ink); }
.note.warn { background: var(--warn-bg); color: var(--warn-ink); }
.toast.bad { background: #b3261e; }
.modal-wrap { position: fixed; inset: 0; z-index: 45; background: rgba(23, 32, 43, .45); display: flex; justify-content: center; align-items: flex-start;
  padding: 40px 16px; overflow-y: auto; width: auto; box-shadow: none; flex-direction: row; }
.modal { width: min(620px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.modal .field { margin-bottom: 0; }
.modal .row { align-items: flex-end; }
.metric-box { background: var(--chip-bg); border-radius: 10px; padding: 10px 12px; }
.metric-box summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.metric-box[open] summary { margin-bottom: 8px; }
.link-results { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow: auto; }
.link-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.chain-big { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.dh-allday { font-size: 11px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 4px; padding: 1px 6px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; cursor: pointer; }
.pad { padding: 24px; }
.seg button .n { margin-left: 4px; }
