@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-cyrillic-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-cyrillic-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-cyrillic-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('/static/fonts/manrope-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-cyrillic-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-cyrillic-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-cyrillic-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --font-display: 'Manrope', 'Roboto', 'Segoe UI', -apple-system, Arial, sans-serif;
  --font-body: 'Roboto', 'Segoe UI', -apple-system, Arial, sans-serif;
  --body-bg: #ecf0fa;
  --primary: #0162e8;
  --primary-dark: #014fc0;
  --primary-soft: rgba(1, 98, 232, 0.1);
  --text: #031b4e;
  --muted: #7987a1;
  --border: #eae8f1;
  --card: #ffffff;
  --soft: #f8fafd;
  --success: #22c03c;
  --warning: #fbbc0b;
  --danger: #ee335e;
  --info: #00b9ff;
  --dark: #3b4863;
  --radius: 6px;
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--body-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.4px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-name,
.brand-mark,
.header-title,
.card-header,
.kpi .value,
.auth-title,
.board-head,
.page-head h4,
.kpi .label {
  font-family: var(--font-display);
}
h4 { font-size: 22px; }
h5 { font-size: 18.5px; }
h6 { font-size: 15.8px; }
p { margin: 0 0 0.75rem; }

.app { min-height: 100vh; }

/* ---------- сайдбар ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0162e8, #4a9bff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.5px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(3, 27, 78, 0.10);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-logo-lg {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin: 0 auto 18px;
}

.brand-name { font-size: 16.5px; font-weight: 600; line-height: 1.2; }
.brand-sub { font-size: 12.1px; color: var(--muted); }

.nav { padding: 14px 12px; flex: 1; overflow-y: auto; }
.nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 10px 10px 6px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: #5b6e88;
  font-size: 14.9px;
  font-weight: 500;
  margin-bottom: 2px;
}

.nav-item:hover { background: var(--soft); color: var(--primary); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: 0.85; }
.nav-item.active svg { opacity: 1; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 11.6px;
  padding: 1px 6px;
  border-radius: 20px;
  font-weight: 600;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  font-size: 12.7px;
  color: var(--muted);
}

/* ---------- основная область ---------- */
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; }

.app-header {
  height: 62px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-title { font-size: 16.5px; font-weight: 600; }
.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--muted);
  min-width: 240px;
}
.header-search input {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14.3px;
  color: var(--text);
  width: 100%;
  font-family: inherit;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: 24px;
}
.header-user:hover { background: var(--soft); }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13.8px;
  flex: none;
}
.avatar.sm { width: 28px; height: 28px; font-size: 12.1px; }
.avatar.lg { width: 46px; height: 46px; font-size: 16.5px; }

.user-meta { line-height: 1.2; }
.user-meta .name { font-size: 14.3px; font-weight: 600; }
.user-meta .role { font-size: 12.1px; color: var(--muted); }

.app-content { padding: 24px; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head h4 { margin-bottom: 2px; }
.page-head p { margin: 0; color: var(--muted); font-size: 14.3px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.breadcrumbs { font-size: 13.2px; color: var(--muted); margin-bottom: 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span + span::before { content: '/'; margin: 0 6px; color: #c3ccdd; }

/* ---------- сетка ---------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.row > [class*="col"] { padding: 0 10px; }
.col-12 { width: 100%; }
.col-8 { width: 66.66%; }
.col-7 { width: 58.33%; }
.col-6 { width: 50%; }
.col-5 { width: 41.66%; }
.col-4 { width: 33.33%; }
.col-3 { width: 25%; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.d-flex { display: flex; } .d-block { display: block; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1; }
.w-100 { width: 100%; } .text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.fw-semibold { font-weight: 600; }
.fs-11 { font-size: 12.1px; } .fs-12 { font-size: 13.2px; }
.fs-13 { font-size: 14.3px; } .fs-15 { font-size: 16.5px; }
.fs-18 { font-size: 19.8px; } .fs-22 { font-size: 24.2px; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: #c98a00; }
.text-primary { color: var(--primary); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- карточки ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(3, 27, 78, 0.04);
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 15.4px;
}
.card-body { padding: 18px; }
.card-body.p-0 { padding: 0; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--soft); }
.card + .card { margin-top: 20px; }

.kpi {
  border-radius: var(--radius);
  padding: 18px;
  color: #fff;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.kpi .label { font-size: 12.1px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.9; }
.kpi .value { font-size: 35.2px; font-weight: 700; line-height: 1.1; }
.kpi .hint { font-size: 12.7px; opacity: 0.85; }
.kpi.blue { background: linear-gradient(120deg, #0162e8, #4a9bff); }
.kpi.green { background: linear-gradient(120deg, #0f9d58, #34d07a); }
.kpi.amber { background: linear-gradient(120deg, #e09500, #fbbc0b); }
.kpi.red { background: linear-gradient(120deg, #c62828, #ee335e); }
.kpi .kpi-mark {
  position: absolute;
  right: -10px;
  bottom: -18px;
  font-size: 92.4px;
  font-weight: 800;
  opacity: 0.12;
  line-height: 1;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: 14.3px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  background: #fff;
  color: var(--text);
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-light { background: #fff; border-color: var(--border); color: var(--text); }
.btn-light:hover { background: var(--soft); border-color: #d9dfeb; }
.btn-soft { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.btn-soft:hover { background: rgba(1, 98, 232, 0.18); color: var(--primary); }
.btn-danger { background: #fff; border-color: #f7cdd6; color: var(--danger); }
.btn-danger:hover { background: #fdeef2; }
.btn-sm { padding: 4px 10px; font-size: 13.2px; }
.btn-icon { padding: 6px; width: 30px; height: 30px; justify-content: center; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- бейджи ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 12.7px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}
.badge.primary { background: var(--primary-soft); color: var(--primary); }
.badge.success { background: rgba(34, 192, 60, 0.12); color: #15943a; }
.badge.warning { background: rgba(251, 188, 11, 0.18); color: #a97a00; }
.badge.danger { background: rgba(238, 51, 94, 0.12); color: #cf2449; }
.badge.info { background: rgba(0, 185, 255, 0.14); color: #0b7fa8; }
.badge.secondary { background: #eef1f7; color: #6a7895; }
.badge.dark { background: rgba(59, 72, 99, 0.14); color: var(--dark); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14.3px; }
table.table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12.1px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  background: var(--soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: #fafcff; }
table.table td .sub { font-size: 12.7px; color: var(--muted); }

/* ---------- формы ---------- */
label { display: block; font-size: 13.8px; font-weight: 500; margin-bottom: 5px; color: #34415f; }
.form-control, .form-select, textarea.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e3e8f3;
  border-radius: var(--radius);
  background: #fff;
  font-size: 14.3px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus, .form-select:focus {
  border-color: #9dc4f8;
  box-shadow: 0 0 0 3px rgba(1, 98, 232, 0.08);
}
.form-select[multiple] { min-height: 140px; }
.form-hint { font-size: 12.7px; color: var(--muted); margin-top: 4px; }
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--danger); font-size: 13.2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 8px; margin-top: 20px; }

/* ---------- вкладки ---------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4px;
}
.tab {
  padding: 6px 16px;
  border-radius: 20px;
  color: var(--muted);
  font-size: 13.8px;
  font-weight: 500;
}
.tab:hover { color: var(--primary); }
.tab.active { background: var(--primary); color: #fff; }

/* ---------- доска ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 16px;
  align-items: start;
}
.board-col { background: #f4f7fd; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.board-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.2px; font-weight: 600; color: #5b6e88; padding: 2px 4px 10px;
}
.board-head .count { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0 7px; font-size: 12.1px; }
.task-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 8px;
  color: var(--text);
}
.task-card:hover { border-color: #bcd2f5; box-shadow: 0 2px 8px rgba(3, 27, 78, 0.07); color: var(--text); }
.task-card .title { font-size: 14.3px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.task-card .meta { display: flex; align-items: center; justify-content: space-between; font-size: 12.1px; color: var(--muted); }
.task-card.overdue .title { color: #cf2449; }

/* ---------- хранилище ---------- */
.tree { list-style: none; margin: 0; padding: 0; }
.tree ul { list-style: none; margin: 0; padding-left: 16px; }
.tree-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: var(--radius);
  color: #46557a; font-size: 14.3px;
}
.tree-link:hover { background: var(--soft); color: var(--primary); }
.tree-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tree-link svg { width: 15px; height: 15px; opacity: 0.7; flex: none; }

.file-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
}
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: #fafcff; }
.file-icon {
  width: 38px; height: 38px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  background: #eef3fd; color: #3f6fb5;
}
.file-icon.pdf { background: #fdeef2; color: #cf2449; }
.file-icon.img { background: #e9f7ee; color: #15943a; }
.file-icon.dwg { background: #fff4e5; color: #b26a00; }
.file-name { font-size: 14.3px; font-weight: 500; }
.file-sub { font-size: 12.7px; color: var(--muted); }
.file-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* ---------- лента ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 16px 18px; border-left: 1px solid var(--border); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -4.5px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #bcd2f5; border: 2px solid #fff;
}
.timeline li.on::before { background: var(--primary); }
.timeline .t-text { font-size: 13.8px; line-height: 1.45; }
.timeline .t-time { font-size: 12.1px; color: var(--muted); }

/* ---------- превью документа ---------- */
.preview-box {
  background: #f4f7fd;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.preview-box img { max-width: 100%; max-height: 560px; display: block; }
.preview-box iframe { width: 100%; height: 560px; border: 0; background: #fff; }
.preview-placeholder { text-align: center; color: var(--muted); padding: 40px; }

/* ---------- прочее ---------- */
.alert {
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 14.3px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-success { background: #eaf8ee; border-color: #c9ecd4; color: #14713a; }
.alert-error, .alert-danger { background: #fdeef2; border-color: #f7cdd6; color: #b31f40; }
.alert-warning { background: #fff8e5; border-color: #f7e3ac; color: #8a6100; }
.alert-info { background: #eaf6fd; border-color: #c7e8f7; color: #0b6484; }

.empty {
  text-align: center; padding: 46px 20px; color: var(--muted); font-size: 14.3px;
}
.empty svg { width: 42px; height: 42px; opacity: 0.35; margin-bottom: 10px; }

.meta-list { margin: 0; padding: 0; list-style: none; }
.meta-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13.8px; }
.meta-list li:last-child { border-bottom: 0; }
.meta-list .k { color: var(--muted); }

.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid #fff; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.progress { height: 6px; background: #eef1f7; border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); }

/* ---------- вход ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(1, 98, 232, 0.18), transparent 60%),
    radial-gradient(700px 460px at 85% 85%, rgba(0, 185, 255, 0.16), transparent 60%),
    #eef2fa;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px 32px;
  box-shadow: 0 18px 40px rgba(3, 27, 78, 0.08);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.auth-title { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.auth-sub { font-size: 13.8px; color: var(--muted); margin-bottom: 22px; }
.auth-hint {
  margin-top: 20px; padding: 12px 14px; background: var(--soft);
  border: 1px dashed #d7dfee; border-radius: var(--radius);
  font-size: 12.7px; color: var(--muted); line-height: 1.55;
}
.auth-hint code { color: #34415f; background: #fff; padding: 1px 5px; border-radius: 3px; border: 1px solid var(--border); }

/* ---------- мобильная версия ---------- */
.menu-toggle { display: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 9px; cursor: pointer; }
.overlay { display: none; }

@media (max-width: 1100px) {
  .col-8, .col-7, .col-6, .col-5, .col-4, .col-3 { width: 100%; }
  .board { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); box-shadow: 12px 0 30px rgba(3, 27, 78, 0.12); }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .menu-toggle { display: inline-flex; }
  .header-search { display: none; }
  .app-content { padding: 16px; }
  .user-meta { display: none; }
  .board { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .overlay.show { display: block; position: fixed; inset: 0; background: rgba(3, 27, 78, 0.35); z-index: 35; }
}

/* ---------- помощь ---------- */
.help-toc { position: sticky; top: 84px; }
.help-toc .card-body { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.help-toc a {
  display: block;
  padding: 6px 9px;
  border-radius: 4px;
  color: #46557a;
  font-size: 14.3px;
  line-height: 1.4;
}
.help-toc a:hover { background: var(--soft); color: var(--primary); }
.help-section { scroll-margin-top: 84px; }
.help-section .card-body p,
.help-section .card-body li {
  font-size: 15.4px;
  line-height: 1.65;
  color: #34415f;
}
.help-section .card-body p { margin: 0 0 0.75rem; }
.help-section .card-body ol,
.help-section .card-body ul { margin: 0 0 12px; padding-left: 22px; }
.help-section .card-body li { margin-bottom: 6px; }
.help-note {
  background: var(--soft);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 14.3px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 0;
}
