/* MDKM HUB — Design Tokens v4.0 «Модульная сетка» (брендбук МДКМ)
   Миграция этапа 0: ВСЕ имена переменных и классы сохранены из v3.0,
   обновлены только значения. Откат: tokens.css.bak-v4-<дата>.
   Шрифты — локальные @font-face (без @import: он ломал iOS/Safari). */

/* ═══════════════════════════════════════════════════════
   ШРИФТЫ БРЕНДА (локально, font-display: swap)
   ═══════════════════════════════════════════════════════ */
@font-face {
  font-family: 'Grandis Extended';
  src: url('/fonts/grandis/GrandisExtended-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Grandis Extended';
  src: url('/fonts/grandis/GrandisExtended-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Grandis Extended';
  src: url('/fonts/grandis/GrandisExtended-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Grandis Extended';
  src: url('/fonts/grandis/GrandisExtended-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat/Montserrat-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat/Montserrat-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat/Montserrat-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat/Montserrat-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat/Montserrat-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ═══════════════════════════════════════════════════════
   ОСНОВНЫЕ ЦВЕТА БРЕНДА
   ═══════════════════════════════════════════════════════ */
:root {
  /* Бренд */
  --brand:        #5D6EFE;   /* фиолетовый — главный акцент (только интерактив) */
  --brand-hover:  #4859e8;
  --brand-soft:   #e7eaff;   /* светлый фон акцента (для блоков) */
  --brand-glow:   rgba(93,110,254,0.28);
  --brand-deep:   #101D72;   /* тёмно-синий — несущие поверхности */
  --brand-sky:    #BAF2FF;   /* голубой — текст-подсветки на navy */
  --brand-sky-soft: #e3f9ff;

  /* Алиасы для обратной совместимости со старым CSS */
  --accent:       var(--brand);
  --accent-hover: var(--brand-hover);
  --accent-glow:  var(--brand-glow);

  /* Нейтральная шкала — холодная, тонирована в оттенок бренда */
  --black:    #202035;
  --gray-100: #f4f5fb;
  --gray-200: #e9eaf4;
  --gray-300: #d6d8e8;
  --gray-400: #aeb0c8;
  --gray-500: #6c6c8e;
  --gray-600: #565678;
  --gray-700: #3c3c5c;
  --gray-800: #26263e;

  /* Surfaces (светлая тема) */
  --bg:        #f4f5fb;
  --surface:   #ffffff;
  --surface2:  #eff1f8;
  --surface3:  #e6e8f3;
  --text:      #202035;
  --text-sub:  #565678;
  --text-mute: #6c6c8e;
  --border:    rgba(32,32,64,0.10);
  --border-strong: rgba(32,32,64,0.16);
  --bdr-sub:   rgba(32,32,64,0.06);

  /* Тени — мягкие, тонированы в чернильный */
  --card-shadow:    0 1px 2px rgba(34,34,68,0.05), 0 3px 10px rgba(34,34,68,0.05);
  --card-shadow-md: 0 2px 6px rgba(34,34,68,0.07), 0 12px 28px rgba(34,34,68,0.09);
  --card-shadow-lg: 0 4px 10px rgba(34,34,68,0.08), 0 18px 40px rgba(34,34,68,0.14);
  --shadow-brand-sm: 0 4px 14px var(--brand-glow);
  --shadow-brand-md: 0 8px 24px rgba(93,110,254,0.34);
  --shadow-brand-lg: 0 12px 40px rgba(93,110,254,0.42);
  --shadow-modal:    0 24px 80px rgba(20,20,48,0.20);

  /* Статусы (текстовые значения держат ≥4.5:1 на белом — аудит 12.06.2026) */
  --status-green:      #0a7f4c;
  --status-green-bg:   rgba(14,158,96,0.11);
  --status-green-bdr:  rgba(14,158,96,0.24);
  --status-yellow:     #9a6300;
  --status-yellow-bg:  rgba(184,117,0,0.12);
  --status-yellow-bdr: rgba(184,117,0,0.26);
  --status-red:        #d23737;
  --status-red-bg:     rgba(210,55,55,0.09);
  --status-red-bdr:    rgba(210,55,55,0.22);
  --status-blue:       #2274c9;
  --status-blue-bg:    rgba(34,116,201,0.10);
  --status-gold:       #c79a14;
  --status-silver:     #8e96ab;
  --status-bronze:     #b07338;

  /* Цвета ролей */
  --role-res-color:  #5D6EFE;  --role-res-bg:  rgba(93,110,254,0.12);
  --role-cand-color: #b87500;  --role-cand-bg: rgba(184,117,0,0.12);
  --role-vol-color:  #0e9e60;  --role-vol-bg:  rgba(14,158,96,0.11);
  --role-tr-color:   #2274c9;  --role-tr-bg:   rgba(34,116,201,0.10);

  /* Палитра проектов / направлений (брендбук, дополнительные цвета) */
  --proj-1: #5D6EFE; --proj-1-bg: rgba(93,110,254,0.12);
  --proj-2: #d23737; --proj-2-bg: rgba(210,55,55,0.10);
  --proj-3: #d4548f; --proj-3-bg: rgba(212,84,143,0.12);
  --proj-4: #2274c9; --proj-4-bg: rgba(34,116,201,0.12);
  --proj-5: #d97a2e; --proj-5-bg: rgba(217,122,46,0.12);
  --proj-6: #b3915c; --proj-6-bg: rgba(179,145,92,0.14);
  --proj-7: #0e9e60; --proj-7-bg: rgba(14,158,96,0.12);
  --proj-8: #c2a82a; --proj-8-bg: rgba(194,168,42,0.16);

  /* Шрифты по брендбуку: Montserrat — текст, Grandis Extended — заголовки */
  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Grandis Extended', 'Montserrat', -apple-system, sans-serif;
  --font-mono:    'SF Mono', 'JetBrains Mono', Consolas, monospace;

  /* Радиусы — геометрия v4, собраннее */
  --r-xs: 6px; --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px; --r-2xl: 24px;
  --r-pill: 999px;
  --r-avatar-sm: 8px; --r-avatar-md: 10px; --r-avatar-lg: 14px;

  /* Анимации */
  --t-fast: 150ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-base: 200ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-slow: 300ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --sidebar-w: 240px;
  --header-h:  64px;
}

/* Тёмная тема — navy-ночь, тонирована в оттенок бренда; класс на <html> и/или <body> */
html.theme-dark,
body.theme-dark {
  color-scheme: dark;
  --brand:        #7280ff;
  --brand-hover:  #8a96ff;
  --brand-soft:   rgba(114, 128, 255, 0.16);
  --brand-glow:   rgba(114, 128, 255, 0.28);
  --brand-deep:   #1c2150;
  --accent:       var(--brand);
  --accent-hover: var(--brand-hover);
  --accent-glow:  var(--brand-glow);
  --bg:       #15152b;
  --surface:  #1d1d36;
  --surface2: #232342;
  --surface3: #2b2b4f;
  --text:     #e9e9f5;
  --text-sub: #b3b3cf;
  --text-mute:#9b9bbd;
  --border:    rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --bdr-sub:   rgba(255, 255, 255, 0.06);
  --card-shadow:    0 1px 2px rgba(0, 0, 0, 0.30), 0 4px 14px rgba(0, 0, 0, 0.25);
  --card-shadow-md: 0 2px 6px rgba(0, 0, 0, 0.32), 0 14px 32px rgba(0, 0, 0, 0.35);
  --card-shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.38), 0 20px 44px rgba(0, 0, 0, 0.45);
  --shadow-brand-sm: 0 4px 16px rgba(114, 128, 255, 0.22);
  --shadow-brand-md: 0 8px 28px rgba(114, 128, 255, 0.28);
  --shadow-brand-lg: 0 12px 36px rgba(114, 128, 255, 0.35);
  --shadow-modal:    0 24px 80px rgba(0, 0, 0, 0.55);

  /* Статусы в тёмной — светлее для контраста */
  --status-green:      #34c98a;
  --status-green-bg:   rgba(52,201,138,0.14);
  --status-green-bdr:  rgba(52,201,138,0.28);
  --status-yellow:     #e8a83d;
  --status-yellow-bg:  rgba(232,168,61,0.14);
  --status-yellow-bdr: rgba(232,168,61,0.28);
  --status-red:        #ef6b6b;
  --status-red-bg:     rgba(239,107,107,0.13);
  --status-red-bdr:    rgba(239,107,107,0.26);
  --status-blue:       #58a4ec;
  --status-blue-bg:    rgba(88,164,236,0.14);

  --role-res-color:  #7280ff;  --role-res-bg:  rgba(114,128,255,0.16);
  --role-cand-color: #e8a83d;  --role-cand-bg: rgba(232,168,61,0.14);
  --role-vol-color:  #34c98a;  --role-vol-bg:  rgba(52,201,138,0.14);
  --role-tr-color:   #58a4ec;  --role-tr-bg:   rgba(88,164,236,0.14);
}

/* ═══════════════════════════════════════════════════════
   БАЗОВЫЙ СБРОС
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Меньше горизонтального «rubber-band» и системного «назад» по краю в мобильных браузерах (полный контроль — только кнопка Назад в UI). */
@media (max-width: 900px) {
  html,
  body {
    overscroll-behavior-x: none;
  }
  /* iOS: input < 16px вызывает автозум при фокусе */
  input, select, textarea { font-size: 16px; }
}

body {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-hover); }

::selection { background: var(--brand-soft); color: var(--brand-deep); }
html.theme-dark ::selection, body.theme-dark ::selection { color: #fff; }

/* Заголовки — Grandis Extended, вес 700 (без 900-крика) */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
h1 { font-size: 27px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }

/* Watermark — крупный глиф (мотив знака) */
.watermark {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--brand-soft);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════
   ЗАГРУЗЧИК
   ═══════════════════════════════════════════════════════ */
.loader-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 18px;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: mdkm-spin 0.9s linear infinite;
}
.loader-logo {
  font-family: var(--font-display);
  color: var(--brand); font-weight: 700;
  font-size: 14px; letter-spacing: 0.12em;
}
@keyframes mdkm-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════
   КАРТОЧКИ
   ═══════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--bdr-sub);
  box-shadow: var(--card-shadow);
  padding: 16px;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background var(--t-base), border-color var(--t-base);
}
.card-sm  { border-radius: var(--r-sm); padding: 10px 12px; }
.card-md  { border-radius: var(--r-md); }
.card-xl  { border-radius: var(--r-xl); padding: 24px; }
@media (hover: hover) and (pointer: fine) {
  .card-hover:hover { transform: translateY(-1px); box-shadow: var(--card-shadow-md); }
}

/* ═══════════════════════════════════════════════════════
   КНОПКИ
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: none; border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  cursor: pointer; text-decoration: none;
  transition: transform var(--t-base), background var(--t-base),
              border-color var(--t-base), box-shadow var(--t-base), color var(--t-base);
  white-space: nowrap;
  user-select: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn-accent {
  background: var(--brand); color: #fff;
  box-shadow: var(--shadow-brand-sm);
}
.btn-accent:hover { background: var(--brand-hover); box-shadow: var(--shadow-brand-md); }

.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface2); border-color: var(--border-strong); }

.btn-outline {
  background: transparent; color: var(--brand);
  border: 1px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-soft); }

.btn-danger { background: var(--status-red-bg); color: var(--status-red); border: 1px solid var(--status-red-bdr); }
.btn-danger:hover { background: var(--status-red); color: #fff; }

.btn-full  { width: 100%; }
.btn-sm    { padding: 7px 13px; font-size: 12px; border-radius: var(--r-sm); }
.btn-lg    { padding: 14px 22px; font-size: 14px; border-radius: var(--r-lg); }
.btn-icon  { padding: 10px; aspect-ratio: 1; }

/* ═══════════════════════════════════════════════════════
   БЕЙДЖИ — спокойнее: без капса, 11px
   ═══════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: var(--r-pill);
  text-transform: none; letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
}
.badge-res    { color: var(--role-res-color);  background: var(--role-res-bg); }
.badge-cand   { color: var(--role-cand-color); background: var(--role-cand-bg); }
.badge-vol    { color: var(--role-vol-color);  background: var(--role-vol-bg); }
.badge-tr     { color: var(--role-tr-color);   background: var(--role-tr-bg); }
.badge-green  { color: var(--status-green);    background: var(--status-green-bg); }
.badge-yellow { color: var(--status-yellow);   background: var(--status-yellow-bg); }
.badge-red    { color: var(--status-red);      background: var(--status-red-bg); }
.badge-blue   { color: var(--status-blue);     background: var(--status-blue-bg); }
.badge-accent { color: var(--brand);           background: var(--brand-soft); }

/* ═══════════════════════════════════════════════════════
   ИНПУТЫ
   ═══════════════════════════════════════════════════════ */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 11px 13px; width: 100%;
  transition: var(--t-fast);
  -webkit-appearance: none;
}
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-mute); }

label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-sub);
  text-transform: none; letter-spacing: 0;
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════
   АВАТАРЫ И ЛОГО — квадратный модуль, мотив знака
   ═══════════════════════════════════════════════════════ */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  font-family: var(--font-body); font-weight: 700;
  border-radius: var(--r-avatar-md);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; border-radius: var(--r-avatar-sm); }
.avatar-md { width: 48px; height: 48px; font-size: 16px; }
.avatar-lg { width: 72px; height: 72px; font-size: 22px; border-radius: var(--r-avatar-lg); }

.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff;
  font-family: var(--font-display); font-weight: 900;
  border-radius: var(--r-md);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════
   КАЛЕНДАРЬ
   ═══════════════════════════════════════════════════════ */
.cal-day {
  border: 1px solid var(--bdr-sub);
  border-radius: var(--r-sm);
  min-height: 80px;
  padding: 6px;
  background: var(--surface);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: var(--t-fast);
}
.cal-day.today { border-color: var(--brand); background: var(--brand-soft); }
.cal-day.other-month { opacity: 0.4; }
.cal-day.holiday .cal-date { color: var(--status-red); }
.cal-date {
  font-weight: 700; font-size: 13px;
  width: 24px; height: 24px; line-height: 24px;
  text-align: center; border-radius: var(--r-sm);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════
   ЗОНЫ АКТИВНОСТИ — квадратный модуль
   ═══════════════════════════════════════════════════════ */
.zone-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  margin-right: 6px;
}
.zone-green  { background: var(--status-green); }
.zone-yellow { background: var(--status-yellow); }
.zone-red    { background: var(--status-red); }

/* ═══════════════════════════════════════════════════════
   BOTTOM-NAV (мобильный профиль)
   ═══════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 72px; z-index: 1000;
  display: flex; align-items: stretch;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--bdr-sub);
  padding: 8px 4px env(safe-area-inset-bottom);
}
.bottom-nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--text-mute);
  font-size: 10px; font-weight: 600;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: var(--t-fast);
  text-decoration: none;
}
.bottom-nav-item svg { width: 22px; height: 22px; stroke-width: 2; }
.bottom-nav-item.active { color: var(--brand); background: var(--brand-soft); }
.bottom-nav-item:hover { color: var(--text); }

html.theme-dark .bottom-nav {
  background: rgba(29, 29, 54, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ═══════════════════════════════════════════════════════
   УТИЛИТЫ
   ═══════════════════════════════════════════════════════ */
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.text-sub  { color: var(--text-sub); }
.text-mute { color: var(--text-mute); }
.text-brand { color: var(--brand); }
.font-display { font-family: var(--font-display); font-weight: 700; }
.text-xs   { font-size: 11px; }
.text-sm   { font-size: 12px; }
.text-md   { font-size: 14px; }
.text-lg   { font-size: 16px; }
.text-xl   { font-size: 18px; font-weight: 700; }
.text-2xl  { font-size: 24px; font-weight: 700; }
.fw-7      { font-weight: 700; }
.fw-8      { font-weight: 800; }
.opacity-50 { opacity: 0.5; }
.scrollbar-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }

/* ── SVG Icons (sprite) ────────────────────────────────── */
.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  color: currentColor;
  flex-shrink: 0;
}
.icon-sm { width: 14px; height: 14px; vertical-align: -0.15em; }
.icon-md { width: 18px; height: 18px; vertical-align: -0.16em; }
.icon-lg { width: 24px; height: 24px; vertical-align: -0.2em; }
.icon-xl { width: 32px; height: 32px; vertical-align: -0.25em; }

/* ═══════════════════════════════════════════════════════
   Статусы задач (список / карточки; классы из handoff v2)
   ═══════════════════════════════════════════════════════ */
.badge.task-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  margin-left: 0;
}
.task-status--pending {
  color: var(--status-yellow);
  background: var(--status-yellow-bg);
  border-color: var(--status-yellow-bdr);
}
.task-status--inwork {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: rgba(93, 110, 254, 0.22);
}
.task-status--review {
  color: var(--status-blue);
  background: var(--status-blue-bg);
  border-color: rgba(34, 116, 201, 0.22);
}
.task-status--done {
  color: var(--status-green);
  background: var(--status-green-bg);
  border-color: var(--status-green-bdr);
}
.task-status--negative {
  color: var(--status-red);
  background: var(--status-red-bg);
  border-color: var(--status-red-bdr);
}

/* Общие поверхности для таблиц и блоков панели */
.mdkm-panel-surface {
  background: var(--surface);
  border: 1px solid var(--bdr-sub);
  border-radius: var(--r-xl);
  box-shadow: var(--card-shadow);
}

/* ═══════════════════════════════════════════════════════
   v4: доступность и motion (добавлено, ничего не ломает)
   ═══════════════════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
