/* ADS Вектор — совет разработки платформы (22.10.2026; первая версия —
   «Рабочая группа»). Главная — плитки метрик и карточки встреч, встреча —
   повестка и решения слева, участники и материалы справа. Полоса
   управления — из общего шаблона раздела (page.css). Влезать в 1366×768:
   прокручивается только тело. */
.wg-pg [hidden], .wg-wrap [hidden], .wg-pop [hidden] { display: none !important; }
.wg-pg svg, .wg-wrap svg, .wg-pop svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
.msg-nav-badge.late { background: var(--bad); }
/* Знак у названия раздела в верхней полосе (SECTIONS.wg.ico в app.js). */
.top h1:has(.sec-ico) { white-space: nowrap; flex: none; }
.top h1 .sec-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 9px;
  border-radius: 8px; background: var(--brand); color: #fff; vertical-align: -6px; }
.top h1 .sec-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* ── полоса ─────────────────────────────────────────────── */
.wg-head { gap: 10px; }
.wg-h-l { flex: 0 1 auto; display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.wg-h-t { font-size: 13.5px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-h-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wg-h-row .wg-st { flex: none; }
.wg-h-s { font-size: 11.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-back { width: 30px; height: 30px; flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 8px; color: var(--ink2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.wg-back:hover { color: var(--ink); border-color: var(--ink4); }
.wg-head .btn-brand.sm, .wg-head .btn-ghost.sm { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wg-saved { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ok); opacity: 0; transition: opacity .3s var(--ease); }
.wg-saved svg { width: 13px; height: 13px; stroke-width: 2.2; }
.wg-saved.on { opacity: 1; }
.wg-crew { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 11.5px;
  color: var(--ink2); cursor: pointer; padding: 3px 6px; border-radius: 8px; white-space: nowrap; }
.wg-crew:hover { background: var(--raise); color: var(--ink); }
.wg-stack { display: inline-flex; }
.wg-stack .wg-av { width: 24px; height: 24px; font-size: 9px; border: 2px solid var(--card); margin-left: -7px; }
.wg-stack .wg-av:first-child { margin-left: 0; }
@media (max-width: 1280px) { .wg-crew > span:last-child { display: none; } }
@media (max-width: 1100px) { .wg-head .btn-ghost.sm span { display: none; } }

/* ── аватар ─────────────────────────────────────────────── */
.wg-av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--brand-tint); color: var(--brand-deep); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.wg-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg-av.sm { width: 24px; height: 24px; font-size: 9px; }
.wg-av.xs { width: 19px; height: 19px; font-size: 8px; }

/* ── тело ───────────────────────────────────────────────── */
.wg-body { flex: 1; min-height: 0; overflow: auto; background: var(--bg); }
.wg-home, .wg-meet { padding: 18px var(--gut) 30px; max-width: 1560px; margin: 0 auto; box-sizing: border-box; }
.wg-sec { margin-bottom: 24px; }
.wg-sec-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; flex-wrap: wrap; }
.wg-sec-h h3 { margin: 0; font-size: 14px; font-weight: 650; color: var(--ink); }
.wg-hint { font-size: 11px; color: var(--ink3); }
.wg-none { margin: 0; font-size: 12px; color: var(--ink3); }
.wg-n { font-style: normal; font-size: 10.5px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 6px; box-sizing: border-box;
  border-radius: 999px; background: var(--raise); color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; }
.wg-empty { margin: auto; max-width: 480px; text-align: center; color: var(--ink2); font-size: 12.5px; line-height: 1.6; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wg-empty b { color: var(--ink); font-size: 14px; }
.wg-empty .btn-brand { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }
.wg-empty.sm { padding: 28px 16px; background: var(--card); border: 1px dashed var(--line); border-radius: 14px; max-width: none; }

/* ── метрики: плитка — значение, изменение, график за 30 дней ── */
.vx-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1480px) { .vx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .vx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 560px) { .vx-grid { grid-template-columns: minmax(0, 1fr); } }
.vx-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; background: var(--card); border: 1px solid var(--line2);
  border-radius: 14px; padding: 13px 14px 10px; cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.vx-card:hover { border-color: var(--line); box-shadow: var(--shadow); }
.vx-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.vx-h { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.vx-t { font-size: 12px; font-weight: 500; color: var(--ink2); line-height: 1.3; min-width: 0; }
.vx-w { margin-left: auto; flex: none; font-size: 10.5px; color: var(--ink3); white-space: nowrap; }
.vx-v { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.vx-v b { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.vx-v small { font-size: 13px; color: var(--ink2); font-weight: 500; }
.vx-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 20px; font-size: 11px; }
.vx-d { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px 2px 5px; border-radius: 999px; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.vx-d svg { width: 12px; height: 12px; stroke-width: 2.6; }
.vx-d.good { background: var(--ok-soft); color: var(--ok); }
.vx-d.bad { background: var(--bad-soft); color: var(--bad); }
.vx-d.flat { background: var(--raise); color: var(--ink2); padding-left: 7px; }
.vx-p { color: var(--ink3); line-height: 1.35; }
/* График: линия — приглушённым цветом, сегодняшняя точка — акцентом. */
.vx-spark { position: relative; height: 38px; margin-top: auto; }
.vx-spark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vx-line { fill: none; stroke: var(--ink2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vx-area { fill: var(--ink2); opacity: .08; stroke: none; }
.vx-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--card);
  transform: translate(-50%, -50%); pointer-events: none; }
.vx-dot.hover { background: var(--ink); }
.vx-cross { position: absolute; top: -2px; bottom: 0; width: 1px; background: var(--line); transform: translateX(-.5px); pointer-events: none; }
.vx-tip { position: absolute; bottom: calc(100% + 4px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center;
  padding: 4px 8px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-float);
  pointer-events: none; white-space: nowrap; z-index: 2; }
.vx-tip b { font-size: 12px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.vx-tip span { font-size: 10.5px; color: var(--ink3); }
.vx-spark.empty { display: flex; align-items: flex-end; border-bottom: 1px solid var(--line2); padding-bottom: 3px; box-sizing: border-box; }
.vx-spark.empty span { font-size: 10.5px; color: var(--ink4); }
.vx-how { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink); }
.vx-tbl-wrap { max-height: 300px; overflow: auto; border: 1px solid var(--line2); border-radius: 10px; }
.vx-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.vx-tbl th { position: sticky; top: 0; background: var(--raise); text-align: left; font-weight: 600; color: var(--ink2); padding: 7px 10px; }
.vx-tbl td { padding: 6px 10px; border-top: 1px solid var(--line2); font-variant-numeric: tabular-nums; }
.vx-tbl td:last-child, .vx-tbl th:last-child { text-align: right; }

/* ── встречи карточками ─────────────────────────────────── */
.wg-meets { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.wg-mcard { display: flex; gap: 14px; text-align: left; min-width: 0; border: 1px solid var(--line2); background: var(--card); border-radius: 14px;
  padding: 13px 14px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.wg-mcard:hover { border-color: var(--line); box-shadow: var(--shadow); }
.wg-mcard.next { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: 0 0 0 3px var(--brand-tint); }
.wg-mc-cal { flex: none; width: 54px; padding: 7px 0 6px; border-radius: 11px; background: var(--raise); display: flex; flex-direction: column;
  align-items: center; line-height: 1.1; }
.wg-mc-cal b { font-size: 22px; font-weight: 700; color: var(--ink); }
.wg-mc-cal small { font-size: 11px; color: var(--ink2); text-transform: lowercase; }
.wg-mc-cal em { font-style: normal; font-size: 10px; color: var(--ink3); margin-top: 2px; }
.wg-mcard.plan .wg-mc-cal { background: var(--brand-tint); }
.wg-mcard.plan .wg-mc-cal b { color: var(--brand-deep); }
.wg-mc-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wg-mc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wg-mc-top b { font-size: 13.5px; font-weight: 650; margin-right: auto; }
.wg-mc-when { font-size: 12px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-mc-when em { font-style: normal; font-weight: 600; color: var(--brand-deep); }
.wg-mc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--ink3); margin-top: 2px; }
.wg-mc-meta .wg-mine { color: var(--brand-deep); font-weight: 600; }
.wg-mc-meta .late { color: var(--bad); font-weight: 600; }
.wg-mc-f { display: inline-flex; align-items: center; gap: 3px; }
.wg-pg .wg-mc-f svg { width: 12px; height: 12px; }
.wg-st { font-style: normal; font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 3px 9px; display: inline-flex; align-items: center;
  gap: 4px; white-space: nowrap; background: var(--info-soft); color: var(--info); }
.wg-st.held { background: var(--ok-soft); color: var(--ok); }
.wg-st.next { background: var(--brand-tint); color: var(--brand-deep); }
.wg-no { font-size: 11px; font-weight: 700; color: var(--brand-deep); background: var(--brand-tint); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }

/* Главная члена совета: встречи слева, справа — решения в работе по всем
   встречам и самые поддержанные идеи из чата (22.10.2026). */
.wg-home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .wg-home-cols { grid-template-columns: minmax(0, 1fr); } }
.wg-home-cols .wg-meets { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.wg-home-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wg-home-side .wg-sec { margin: 0; }
.wg-side-card { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 13px 14px 12px; }
.wg-side-card .wg-sec-h { margin-bottom: 8px; }
.wg-side-card .wg-sec-h h3 { font-size: 13.5px; }
.wg-df-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.wg-fchip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line2); background: none; border-radius: 999px;
  padding: 3px 10px; font: inherit; font-size: 11.5px; color: var(--ink2); cursor: pointer; }
.wg-fchip i { font-style: normal; font-size: 10px; font-weight: 600; color: var(--ink3); }
.wg-fchip:hover { border-color: var(--line); color: var(--ink); }
.wg-fchip.on { background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--brand-deep); font-weight: 600; }
.wg-fchip.on i { color: var(--brand-deep); }
.wg-fchip.late i { color: var(--bad); }
.wg-dlist { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }
.wg-drow { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; }
.wg-drow + .wg-drow { border-top: 1px solid var(--line2); }
.wg-chk { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--card);
  color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.wg-chk:hover { border-color: var(--ok); color: var(--ok); }
.wg-pg .wg-chk svg { width: 12px; height: 12px; stroke-width: 2.6; }
.wg-drow.late .wg-chk { border-color: color-mix(in srgb, var(--bad) 60%, var(--line)); }
.wg-drow-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; border: 0; background: none; padding: 0; text-align: left;
  font: inherit; color: var(--ink); cursor: pointer; }
.wg-drow-b:hover .wg-drow-t { color: var(--brand-deep); }
.wg-drow-t { font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wg-drow-m { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; font-size: 11px; color: var(--ink3); }
.wg-drow-m > span:first-of-type { margin-left: -4px; }
.wg-drow-m em { font-style: normal; }
.wg-drow-m em.late { color: var(--bad); font-weight: 600; }
.wg-ideas { list-style: none; margin: 0 0 4px; padding: 0; }
.wg-ideas li { display: flex; gap: 10px; padding: 8px 0; }
.wg-ideas li + li { border-top: 1px solid var(--line2); }
.wg-idea-v { flex: none; width: 46px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 1px; }
.wg-idea-v b { font-size: 12px; font-weight: 650; white-space: nowrap; }
.wg-idea-v small { font-size: 10.5px; color: var(--ink3); white-space: nowrap; }
.wg-idea-b { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.wg-idea-t { font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wg-idea-b small { font-size: 10.5px; color: var(--ink3); }
.wg-tag.meet { background: var(--info-soft); color: var(--info); }
/* Хвосты прошлых встреч на странице встречи — сворачиваются. */
.wg-tails > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.wg-tails > summary::-webkit-details-marker { display: none; }
.wg-tails[open] > summary { margin-bottom: 10px; }
.wg-n.late { background: var(--bad-soft); color: var(--bad); }
.wg-from { align-self: flex-start; border: 0; background: none; padding: 0; font: inherit; font-size: 10.5px; color: var(--ink3); cursor: pointer; }
.wg-from:hover { color: var(--brand-deep); text-decoration: underline; }

/* Не члену совета: ближайшая встреча, даты, обращение. */
.wg-next { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line2);
  border-radius: 14px; margin-bottom: 10px; max-width: 520px; }
.wg-next-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); display: inline-flex;
  align-items: center; justify-content: center; flex: none; }
.wg-pg .wg-next-ic svg { width: 20px; height: 20px; }
.wg-next small { display: block; font-size: 11px; color: var(--ink3); }
.wg-next b { font-size: 15px; font-weight: 650; }
.wg-dates { list-style: none; margin: 0; padding: 4px 14px; max-width: 520px; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; }
.wg-dates li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12.5px; }
.wg-dates li + li { border-top: 1px solid var(--line2); }
.wg-dates li > span:nth-child(2) { flex: 1; min-width: 0; }
.wg-appeal { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line2); border-radius: 16px; }
.wg-appeal-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--brand); color: #fff; display: inline-flex; align-items: center;
  justify-content: center; flex: none; }
.wg-pg .wg-appeal-ic svg { width: 24px; height: 24px; stroke-width: 2.1; }
.wg-appeal > div { flex: 1; min-width: 0; }
.wg-appeal h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 650; }
.wg-appeal p { margin: 0; font-size: 12.5px; color: var(--ink2); line-height: 1.55; }
.wg-appeal .btn-brand { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

/* ── встреча ────────────────────────────────────────────── */
.wg-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.wg-fact { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line2); border-radius: 9px;
  padding: 0 10px; height: 34px; color: var(--ink3); font-size: 12px; transition: border-color .15s var(--ease); }
.wg-fact:focus-within { border-color: var(--brand); }
.wg-fact.grow { flex: 1 1 260px; min-width: 220px; }
.wg-fact input { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--ink); padding: 0; min-width: 0; outline: none; }
.wg-fact.grow input { flex: 1; }
.wg-fact input[type=date], .wg-fact input[type=time], .wg-due input, .wg-fld input[type=date], .wg-fld input[type=time] { color-scheme: light; }
:root[data-theme="dark"] .wg-fact input[type=date], :root[data-theme="dark"] .wg-fact input[type=time],
:root[data-theme="dark"] .wg-due input, :root[data-theme="dark"] .wg-fld input[type=date],
:root[data-theme="dark"] .wg-fld input[type=time] { color-scheme: dark; }
.wg-old-t { margin: -6px 0 12px; font-size: 12.5px; color: var(--ink2); }
.wg-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .wg-cols { grid-template-columns: minmax(0, 1fr); } }
.wg-card { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 13px 16px 14px; margin-bottom: 14px; }
.wg-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.wg-card-h h4 { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--ink); }
.wg-card-h .wg-hint { margin-left: 4px; }
.wg-ib { border: 0; background: none; color: var(--ink3); padding: 5px; border-radius: 7px; display: inline-flex; cursor: pointer; flex: none; }
.wg-ib:hover { background: var(--raise); color: var(--ink); }
.wg-ib.xs { padding: 3px; }
.wg-pg .wg-ib.xs svg, .wg-wrap .wg-ib.xs svg { width: 12px; height: 12px; }
.wg-ib.has { color: var(--brand); }
.wg-add { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--line); background: none; border-radius: 9px;
  padding: 7px 13px; font: inherit; font-size: 12px; color: var(--ink2); cursor: pointer; }
.wg-add:hover { border-color: var(--brand); color: var(--brand-deep); }
.wg-add.sm { margin-top: 6px; padding: 5px 10px; align-self: flex-start; }
.wg-seg { display: inline-flex; background: var(--raise); border-radius: 9px; padding: 3px; gap: 2px; flex: none; }
.wg-seg button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; font-size: 11.5px; color: var(--ink2);
  padding: 5px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.wg-seg.sm button { font-size: 11px; padding: 4px 8px; }
.wg-pg .wg-seg svg { width: 12px; height: 12px; stroke-width: 2.4; }
.wg-seg button:hover { color: var(--ink); }
.wg-seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.wg-seg button.on.done { color: var(--ok); }
.wg-seg button.on.later { color: var(--warn); }
.wg-seg button.on.work { color: var(--info); }

/* Повестка: номер (цвет — отметка), вопрос, «обсудили / отложили», заметка. */
.wg-agenda { list-style: none; margin: 0; padding: 0; }
.wg-pt { display: flex; gap: 10px; padding: 7px 0; }
.wg-pt + .wg-pt { border-top: 1px solid var(--line2); }
.wg-pt-n { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--raise); color: var(--ink2); font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 3px; }
.wg-pt.done .wg-pt-n { background: var(--ok-soft); color: var(--ok); }
.wg-pt.later .wg-pt-n { background: var(--warn-soft); color: var(--warn); }
.wg-pt-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wg-pt-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wg-pt-t, .wg-t-text { min-width: 0; border: 1px solid transparent; background: none; font: inherit; color: var(--ink);
  border-radius: 8px; padding: 5px 8px; margin-left: -8px; }
.wg-pt-t { flex: 1 1 240px; font-size: 13px; font-weight: 600; }
/* Строка решения — колонкой: текст во всю ширину, под ним кто, срок, статус. */
.wg-t-text { flex: none; width: calc(100% + 8px); box-sizing: border-box; }
.wg-pt-t:hover, .wg-t-text:hover { border-color: var(--line2); }
.wg-pt-t:focus, .wg-t-text:focus { outline: none; border-color: var(--brand); background: var(--card); }
.wg-pt.later .wg-pt-t { color: var(--ink2); }
.wg-pt-h .wg-ib { opacity: .55; }
.wg-pt:hover .wg-pt-h .wg-ib, .wg-pt-h .wg-ib:focus-visible, .wg-pt-h .wg-ib.has { opacity: 1; }
.wg-pt-note { width: 100%; box-sizing: border-box; border: 1px solid var(--line2); background: var(--raise); border-radius: 9px; padding: 6px 9px;
  font: inherit; font-size: 12.5px; line-height: 1.5; color: var(--ink); resize: none; min-height: 32px; overflow: hidden; }
.wg-pt-note:focus { outline: none; border-color: var(--brand); background: var(--card); }

/* Решение: текст, ответственный, срок, статус, «в правки». */
.wg-tasks { display: flex; flex-direction: column; gap: 8px; }
.wg-task { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line2); border-radius: 11px; padding: 7px 10px 8px 12px; }
.wg-task.late { border-left: 3px solid var(--bad); padding-left: 10px; }
.wg-task.done { background: color-mix(in srgb, var(--ok-soft) 45%, var(--card)); }
.wg-task.later { background: var(--raise); }
.wg-t-text { font-size: 13px; font-weight: 500; }
.wg-task.done .wg-t-text, .wg-task.later .wg-t-text { color: var(--ink2); }
.wg-t-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.wg-t-meta .wg-ib { margin-left: auto; opacity: .5; }
.wg-task:hover .wg-t-meta .wg-ib, .wg-t-meta .wg-ib:focus-visible { opacity: 1; }
.wg-who { flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 190px; border: 1px solid transparent; background: var(--raise);
  border-radius: 999px; padding: 2px 10px 2px 3px; font: inherit; font-size: 11.5px; color: var(--ink); cursor: pointer; height: 26px; box-sizing: border-box; }
.wg-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-who.none { padding: 3px 10px; color: var(--ink3); border: 1px dashed var(--line); background: none; }
.wg-who:hover { border-color: var(--brand); }
.wg-due { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--ink3); font-size: 11.5px; border-radius: 8px; padding: 3px 6px;
  background: var(--raise); height: 26px; box-sizing: border-box; }
.wg-pg .wg-due svg { width: 13px; height: 13px; }
.wg-due input { border: 0; background: none; font: inherit; font-size: 11.5px; color: var(--ink); width: 112px; padding: 0; outline: none; }
.wg-due.late { background: var(--bad-soft); color: var(--bad); }
.wg-due.late input { color: var(--bad); font-weight: 600; }
.wg-t-iss { flex: none; display: inline-flex; }
.wg-new { flex-direction: row; align-items: center; gap: 8px; border-style: dashed; margin-top: 8px; padding: 4px 6px 4px 10px; }
.wg-new-ic { color: var(--ink3); display: inline-flex; }
.wg-new input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--ink); padding: 6px 4px; outline: none; }
.wg-new:focus-within { border-color: var(--brand); border-style: solid; }

/* Метки правки (цвет — её статус). */
.wg-tag { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 10.5px; color: var(--ink2); background: var(--raise);
  border: 1px solid transparent; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
button.wg-tag { cursor: pointer; }
button.wg-tag:hover { border-color: var(--line); color: var(--ink); }
.wg-pg .wg-tag svg { width: 12px; height: 12px; }
.wg-tag.ghost { background: none; border: 1px dashed var(--line); color: var(--ink3); }
.wg-tag.ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.wg-tag.iss { background: var(--info-soft); color: var(--info); }
.wg-tag.iss.work, .wg-tag.iss.test { background: var(--warn-soft); color: var(--warn); }
.wg-tag.iss.done { background: var(--ok-soft); color: var(--ok); }
.wg-tag.iss.rejected, .wg-tag.off { background: var(--raise); color: var(--ink3); }

/* Участники: галочка «был», человек, убрать. */
.wg-ppl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wg-ppl li { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.wg-ppl li + li { border-top: 1px solid var(--line2); }
.wg-came { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); background: var(--card); color: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.wg-came:hover { border-color: var(--ok); color: var(--ok); }
.wg-pg .wg-came svg { width: 13px; height: 13px; stroke-width: 2.6; }
.wg-came.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.wg-ppl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.wg-ppl-t small { font-size: 10.5px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-ppl li:not(.on) .wg-ppl-t { color: var(--ink2); }
.wg-ppl .wg-ib { opacity: 0; }
.wg-ppl li:hover .wg-ib, .wg-ppl .wg-ib:focus-visible { opacity: 1; }
.wg-card > .wg-hint { margin: 8px 0 0; }

/* Материалы: фото плиткой, документы строками, загрузки с процентом. */
.wg-files.over { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.wg-pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.wg-pic { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--raise); }
.wg-pic a, .wg-pic img { display: block; width: 100%; height: 100%; }
.wg-pic img { object-fit: cover; }
.wg-pic-x { position: absolute; top: 4px; right: 4px; border: 0; border-radius: 6px; background: rgba(20, 16, 12, .6); color: #fff; padding: 3px;
  display: none; cursor: pointer; }
.wg-pic:hover .wg-pic-x, .wg-pic-x:focus-visible { display: inline-flex; }
.wg-pg .wg-pic-x svg { width: 12px; height: 12px; }
.wg-doc, .wg-up { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.wg-doc + .wg-doc, .wg-up { border-top: 1px solid var(--line2); }
.wg-doc-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.wg-doc-main:hover b { color: var(--brand-deep); }
.wg-doc-ic { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--raise); color: var(--ink2); font-size: 9.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: .03em; }
.wg-doc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wg-doc-t b { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-doc-t small { font-size: 10.5px; color: var(--ink3); }
.wg-up.bad small { color: var(--bad); }
.wg-drop { width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px dashed var(--line);
  background: none; border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 11.5px; color: var(--ink3); cursor: pointer; text-align: center; }
.wg-drop:hover { border-color: var(--brand); color: var(--brand-deep); }

/* ── всплывающие: люди, состав ──────────────────────────── */
.wg-pop { position: fixed; z-index: 1950; width: 300px; max-height: min(440px, calc(100vh - 16px)); display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float); overflow: hidden; }
.wg-pop-h { display: block; padding: 12px 14px 6px; font-size: 12.5px; }
.wg-pop-f { margin: 0; padding: 8px 14px 12px; font-size: 11px; color: var(--ink3); line-height: 1.45; }
.wg-pp-q { margin: 10px 10px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); padding: 7px 10px; font: inherit;
  font-size: 12px; color: var(--ink); }
.wg-pp-q:focus { outline: none; border-color: var(--brand); background: var(--card); }
.wg-pp-list { overflow: auto; padding: 4px 6px 8px; display: flex; flex-direction: column; }
.wg-pp-list h6 { margin: 8px 8px 4px; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.wg-pp { display: flex; align-items: center; gap: 9px; border: 0; background: none; border-radius: 8px; padding: 6px 8px; text-align: left; font: inherit;
  font-size: 12px; color: var(--ink); cursor: pointer; }
.wg-pp:hover { background: var(--raise); }
.wg-pp.static { cursor: default; }
.wg-pp.static:hover { background: none; }
.wg-pp > span:not(.wg-av) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wg-pp small { font-size: 10.5px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-pp i { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.wg-pop .wg-pp i svg { width: 12px; height: 12px; stroke-width: 2.6; }
.wg-pp.on i { background: var(--brand); border-color: var(--brand); color: #fff; }
.wg-pp.on:not(:has(i)) { background: var(--brand-tint); }
.wg-pp.none { color: var(--ink2); }
.wg-pp-empty { margin: 10px; font-size: 11.5px; color: var(--ink3); }
.wg-pop footer { padding: 7px 14px 9px; border-top: 1px solid var(--line2); font-size: 10.5px; color: var(--ink3); }

/* ── окна: назначить встречу, обращение, метрика ────────── */
.wg-wrap { position: fixed; inset: 0; z-index: 1900; background: rgba(20, 16, 12, .42); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wg-dlg { width: min(560px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--card); color: var(--ink);
  border-radius: 16px; box-shadow: var(--shadow-float); overflow: hidden; }
.wg-dlg.wide { width: min(660px, 100%); }
.wg-dh { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line2); }
.wg-dh > div { flex: 1; min-width: 0; }
.wg-dh h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; }
.wg-dh p { margin: 3px 0 0; font-size: 11.5px; color: var(--ink2); }
.wg-dh-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wg-wrap .wg-dh-ic svg { width: 19px; height: 19px; }
.wg-form { padding: 14px 18px; display: flex; flex-direction: column; gap: 13px; overflow: auto; }
.wg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wg-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wg-fld > span:first-child { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.wg-fld em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; }
.wg-fld input, .wg-fld textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); color: var(--ink);
  padding: 9px 11px; font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; }
.wg-fld input:focus, .wg-fld textarea:focus { outline: none; border-color: var(--brand); background: var(--card); }
.wg-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.wg-pchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 3px 9px 3px 3px; font: inherit; font-size: 12px; color: var(--ink2); cursor: pointer; }
.wg-pchip svg { width: 12px; height: 12px; stroke-width: 2.6; color: transparent; }
.wg-pchip.on { background: var(--brand-tint); border-color: color-mix(in srgb, var(--brand) 45%, transparent); color: var(--ink); }
.wg-pchip.on svg { color: var(--brand-deep); }
.wg-ag-edit { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 6px; }
.wg-ag-edit li { padding-left: 2px; color: var(--ink3); font-size: 12px; }
.wg-ag-edit li > * { vertical-align: middle; }
.wg-ag-edit input { width: calc(100% - 30px); box-sizing: border-box; border: 1px solid var(--line); border-radius: 9px; background: var(--raise);
  color: var(--ink); padding: 7px 10px; font: inherit; font-size: 13px; }
.wg-ag-edit input:focus { outline: none; border-color: var(--brand); background: var(--card); }
.wg-err { margin: 0; font-size: 12px; color: var(--bad); }
.wg-df { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line2); }
.wg-df > span { flex: 1; }
.wg-df .btn-brand { display: inline-flex; align-items: center; gap: 6px; }

/* ── узкий экран ────────────────────────────────────────── */
@media (max-width: 760px) {
  .wg-home, .wg-meet { padding: 12px 12px 24px; }
  .wg-meets { grid-template-columns: minmax(0, 1fr); }
  .wg-crew, .wg-saved { display: none; }
  /* Шапка встречи: дата и так в полях ниже — под номером встречи статус. */
  .wg-h-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .wg-h-row + .wg-h-s { display: none; }
  .wg-h-t { flex: none; }
  .wg-head .btn-brand.sm span, .wg-head .btn-ghost.sm span { display: none; }
  .wg-h-s { max-width: 46vw; }
  .vx-v b { font-size: 24px; }
  .wg-appeal { flex-direction: column; align-items: flex-start; }
  .wg-row2 { grid-template-columns: 1fr; }
  .wg-t-meta .wg-ib { opacity: 1; }
  .wg-ppl .wg-ib, .wg-pt-h .wg-ib { opacity: 1; }
}
