/* overview.css · обзор панели «/» (дизайн-система 20.09.2026, макет
   утверждён владельцем). .card, .sdot, .ddot, .tg, .empty, [data-tip] — из
   styles.css; здесь — сетка обзора, плитки недели, лента «Сегодня»,
   столбики по направлениям, офис, «ждут решения», нити и подвал. Цвета
   только токенами; движение — transform и opacity, вход лесенкой, при
   prefers-reduced-motion — один fade. */

.content:has(#ov-root) { padding: 24px 32px 28px; }
.ov { max-width: 1280px; display: flex; flex-direction: column; gap: 12px; }
.ov-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 2px; flex-wrap: wrap; }
.ov-date { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; text-wrap: balance; }
.ov-date small { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--fg-label); margin-top: 3px; letter-spacing: 0; }
.ov-head .sp { flex: 1; }
.ov-next { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--fg-soft); }
.ov-next b { font-weight: 600; color: var(--fg); }
.ov-next[hidden] { display: none; }

.ov .card { border-radius: var(--radius-xl); }
.ov .card + .card { margin-top: 0; }
.ov-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.ov-c4 { grid-column: span 4; } .ov-c8 { grid-column: span 8; } .ov-c12 { grid-column: span 12; }
@media (max-width: 1100px) { .ov-c4 { grid-column: span 6; } .ov-c8 { grid-column: span 12; } }
@media (max-width: 640px) { .ov-c4 { grid-column: span 12; } }

/* шапка и тело карточки — как на обзоре встреч */
.ov .ch { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px 0; }
.ov .ch .t { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--fg-label); }
.ov .ch .m { font-size: var(--fs-xs); color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.ov .ch .sp { flex: 1; }
.ov .ch .more { font-size: var(--fs-xs); color: var(--fg-muted); border-bottom: 1px solid transparent;
                transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.ov .ch .more:hover { color: var(--fg); border-bottom-color: var(--fg-faint); }
.ov .cb { padding: 10px 16px 12px; }
.ov .empty { padding: 22px 16px; }
.ov .empty b { display: block; color: var(--fg-soft); font-weight: 500; margin-bottom: 3px; }
.ov .lnk { border: none; background: transparent; padding: 0; font: inherit; color: var(--accent); cursor: pointer;
           border-bottom: 1px solid var(--accent-line); text-decoration: none; }
.ov .lnk:hover { border-bottom-color: var(--accent); }

/* ── плитки недели: одна полоса из шести ── */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); }
.kpi { padding: 12px 16px 11px; display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit;
       transition: background var(--dur-fast) var(--ease-out); }
.kpi:hover { background: var(--row-hover); }
.kpi + .kpi { border-left: 1px solid var(--border-faint); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(4) { border-left: none; } .kpi:nth-child(n+4) { border-top: 1px solid var(--border-faint); } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(4) { border-left: 1px solid var(--border-faint); } .kpi:nth-child(odd) { border-left: none; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--border-faint); } }
.kpi .l { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--fg-label); white-space: nowrap; }
.kpi .row { display: flex; align-items: flex-end; gap: 10px; }
.kpi .v { font-size: 26px; font-weight: 300; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.kpi .v .u { font-size: var(--fs-h2); color: var(--fg-muted); }
.kpi .v.warn { color: var(--warn); }
.spark { margin-left: auto; width: 72px; height: 24px; flex: none; }
.spark path.a { fill: var(--paper-mute); stroke: none; }
.spark path.l { fill: none; stroke: var(--fg-soft); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--ink); stroke: var(--paper-card); stroke-width: 2; }
.kpi .f { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--fg-label); min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* разница — нейтральная пилюля: больше встреч не хорошо и не плохо */
.delta { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 7px; border-radius: var(--radius-pill);
         font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--paper-mute); color: var(--fg-soft); flex: none; }
.delta svg { width: 10px; height: 10px; }

/* ── сегодня — лента встреч ── */
.today { display: flex; flex-direction: column; }
.ov-sk { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.ov-sk .sk { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-mute) 25%, var(--border-faint) 50%, var(--paper-mute) 75%);
             background-size: 200% 100%; animation: ov-sk 1.2s linear infinite; }
@keyframes ov-sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.mt { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 0 14px; align-items: center; padding: 8px 10px; margin: 0 -4px;
      border-radius: var(--radius); position: relative; color: inherit; transition: background var(--dur-fast) var(--ease-out); }
.mt:hover { background: var(--paper-mute); }
.mt .tm { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt .tt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mt .nm { font-size: var(--fs-sm); font-weight: 500; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt .who { font-size: var(--fs-xs); color: var(--fg-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt .dur { font-size: var(--fs-xs); color: var(--fg-label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt.done { opacity: .55; }
.mt.done .nm { font-weight: 400; }
.mt.next { background: var(--ink-soft); }
.mt.next::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--ink); }
.mt.next .tm { color: var(--ink); font-weight: 600; }
.mt .in { font-size: var(--fs-xs); font-weight: 600; color: var(--ink); white-space: nowrap; }
.mt .tg.still { cursor: default; }
.mt-sep { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--fg-faint); font-weight: 600; }
.mt-sep::after { content: ""; flex: 1; height: 1px; background: var(--border-faint); }
.brief { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 12px; border-radius: var(--radius); background: var(--paper-mute); font-size: var(--fs-xs); color: var(--fg-soft); }
.brief svg { width: 14px; height: 14px; color: var(--fg-label); flex: none; }
.brief .sp { flex: 1; }
.today .row-note { margin: 6px 0 0; }

/* ── неделя по направлениям: столбики ── */
.wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 108px; padding: 6px 0 0; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.wd .bar { width: 100%; max-width: 26px; display: flex; flex-direction: column-reverse; gap: 2px; flex: 1; justify-content: flex-start; }
.wd .bar i { display: block; width: 100%; background: var(--c); border-radius: 2px; cursor: default; min-height: 3px;
             transition: opacity var(--dur-fast) var(--ease-out); }
.wd .bar i.light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.wd .bar:hover i:not(:hover) { opacity: .45; }
.wd .bar i:first-child { border-radius: 0 0 4px 4px; }
.wd .bar i:last-child { border-radius: 4px 4px 0 0; }
.wd .bar i:only-child { border-radius: 4px; }
.wd .d { font-size: 10px; color: var(--fg-faint); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.wd.today .d { color: var(--ink); font-weight: 600; }
.wd .h { font-size: 10px; color: var(--fg-label); font-variant-numeric: tabular-nums; min-height: 12px; }
.lg { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; border-top: 1px solid var(--border-faint); padding-top: 8px; }
.lgr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 3px 6px; margin: 0 -6px;
       border-radius: var(--radius-sm); font-size: var(--fs-sm); color: inherit; transition: background var(--dur-fast) var(--ease-out); }
a.lgr:hover { background: var(--paper-mute); }
.lgr .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lgr .n.mut { color: var(--fg-muted); font-style: italic; }
.lgr .h { font-variant-numeric: tabular-nums; text-align: right; }
.lgr .pc { font-size: var(--fs-xs); color: var(--fg-label); font-variant-numeric: tabular-nums; width: 30px; text-align: right; }
.ddot.light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* ── офис ── */
.ag { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; margin: 0 -4px;
      border-radius: var(--radius-sm); color: inherit; transition: background var(--dur-fast) var(--ease-out); }
.ag:hover { background: var(--paper-mute); }
.ag .tt { display: flex; flex-direction: column; min-width: 0; }
.ag .nm { font-size: var(--fs-sm); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag .do { font-size: var(--fs-xs); color: var(--fg-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ag .cnt { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ag .cnt.new { color: var(--ink); font-weight: 600; }

/* ── ждут решения ── */
.dec { display: flex; flex-direction: column; gap: 2px; }
.dr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; margin: 0 -4px;
      border-radius: var(--radius-sm); color: inherit; transition: background var(--dur-fast) var(--ease-out); }
.dr:hover { background: var(--paper-mute); }
.dr .ic { width: 26px; height: 26px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center;
          background: var(--paper-mute); color: var(--fg-muted); flex: none; }
.dr .ic.warn { background: var(--warn-bg); color: var(--warn); }
.dr .ic.info { background: var(--accent-bg); color: var(--accent); }
.dr .tx { display: flex; flex-direction: column; min-width: 0; }
.dr .t1 { font-size: var(--fs-sm); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr .t2 { font-size: var(--fs-xs); color: var(--fg-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr .go { color: var(--fg-faint); display: inline-flex; }

/* ── нити ── */
.th { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; margin: 0 -4px;
      border-radius: var(--radius-sm); color: inherit; transition: background var(--dur-fast) var(--ease-out); }
.th:hover { background: var(--paper-mute); }
.th .tx { display: flex; flex-direction: column; min-width: 0; }
.th .t1 { font-size: var(--fs-sm); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th .t2 { font-size: var(--fs-xs); color: var(--fg-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th .ago { font-size: var(--fs-xs); color: var(--fg-label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.th .ago.q { color: var(--warn); }

/* ── подвал: здоровье системы ── */
.ov-foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: var(--fs-xs); color: var(--fg-label); padding: 2px 4px 0; font-variant-numeric: tabular-nums; }
.ov-foot span { display: inline-flex; align-items: center; gap: 6px; }
.ov-foot b { font-weight: 500; color: var(--fg-soft); }
.ov-foot .mono { margin-left: auto; font-family: var(--font-mono); color: var(--fg-faint); }

/* ── движение: вход лесенкой ── */
.ov.enter .card, .ov.enter .ov-head, .ov.enter .ov-foot { animation: ov-in 320ms cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes ov-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.today .mt { animation: ov-in 240ms cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(var(--j, 0) * 40ms); }

@media (max-width: 900px) {
  .content:has(#ov-root) { padding: 16px 16px 24px; }
  .mt { grid-template-columns: auto minmax(0, 1fr); }
  .mt .dur, .mt .in, .mt .tg { display: none; }
  .kpi .f { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .ov.enter .card, .ov.enter .ov-head, .ov.enter .ov-foot, .today .mt { animation: ov-fade 200ms ease both; }
  @keyframes ov-fade { from { opacity: 0; } to { opacity: 1; } }
  .ov-sk .sk { animation: none; }
}
