:root {
  --topbar: #0f172a;
  --topbar-2: #111827;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --surface-3: #f8fafc;
  --border: #dbe3ef;
  --border-soft: #e7edf5;
  --text: #111827;
  --muted: #64748b;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #c8ff4d;
  --green-strong: #16a34a;
  --red: #dc2626;
  --orange: #f59e0b;
  --violet: #7c3aed;
  --shadow: 0 8px 24px rgba(15, 23, 42, .06);
  --sidebar-open: 260px;
  --sidebar-closed: 64px;
  --drawer: 340px;
  --topbar-height: 56px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

button, input, select, textarea { font: inherit; }
button {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  transition: .14s ease;
}
button:hover { filter: brightness(.98); transform: translateY(-1px); }
button:active { transform: translateY(0); }
button.light, .secondary-btn, .ghost-btn { background: #e2e8f0; color: var(--text); }
button.green { background: var(--green-strong); }
button.red, button.danger { background: var(--red); }
button.warning { background: var(--orange); color: #fff; }
button.primary, .primary-btn { background: var(--blue); color: #fff; }
button.violet { background: var(--violet); }

input, select, textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
textarea { min-height: 110px; resize: vertical; }
label { display: block; margin: 10px 0 5px; font-size: 13px; color: var(--muted); font-weight: 700; }
h1 { margin: 0; font-size: 24px; line-height: 1.15; }
h3 { margin: 0 0 12px; font-size: 16px; }

.app-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-open) minmax(0, 1fr) 0;
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  grid-template-areas:
    "topbar topbar topbar"
    "sidebar workspace drawer";
  transition: grid-template-columns .18s ease;
}
.app-shell.sidebar-collapsed { grid-template-columns: var(--sidebar-closed) minmax(0, 1fr) 0; }
.app-shell.drawer-open { grid-template-columns: var(--sidebar-open) minmax(0, 1fr) var(--drawer); }
.app-shell.sidebar-collapsed.drawer-open { grid-template-columns: var(--sidebar-closed) minmax(0, 1fr) var(--drawer); }

.topbar {
  grid-area: topbar;
  height: var(--topbar-height);
  background: linear-gradient(90deg, var(--topbar), var(--topbar-2));
  color: white;
  display: grid;
  grid-template-columns: 320px minmax(260px, 760px) auto;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(200, 255, 77, .18);
  z-index: 10;
}
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-actions { justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--green); color: #111; display: grid; place-items: center;
  font-weight: 900;
}
.brand-title { font-size: 15px; font-weight: 900; white-space: nowrap; }
.brand-subtitle { font-size: 11px; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center;
  border-radius: 10px; background: rgba(255,255,255,.09); color: #fff;
}
.online-chip {
  height: 34px; padding: 0 11px; background: rgba(200,255,77,.12); color: var(--green); border: 1px solid rgba(200,255,77,.2);
}
.current-user { width: 210px; background: #111827; color: #fff; border-color: rgba(255,255,255,.16); }
.auth-badge { font-size: 13px; white-space: nowrap; color: #fff; display: flex; gap: 8px; align-items: center; }

.global-search { position: relative; min-width: 0; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.global-search input {
  height: 36px; border-radius: 999px; padding-left: 34px;
  background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.15);
}
.global-search input::placeholder { color: #94a3b8; }
.search-results {
  display: none; position: absolute; top: 43px; left: 0; right: 0; max-height: 420px; overflow: auto;
  background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 70px rgba(0,0,0,.25); z-index: 50; padding: 8px;
}
.search-result { padding: 10px; border-radius: 10px; cursor: pointer; border-bottom: 1px solid #edf2f7; }
.search-result:hover { background: #f1f5f9; }

.sidebar {
  grid-area: sidebar;
  min-width: 0;
  background: #fff;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-top { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--border-soft); }
.create-btn { flex: 1; background: var(--blue); }
.collapse-btn { width: 38px; background: #eef2f7; color: var(--text); }
.sidebar-scroll { padding: 10px; overflow: auto; }
.nav-section { margin-bottom: 18px; }
.nav-section-title { font-size: 11px; font-weight: 900; text-transform: uppercase; color: var(--muted); margin: 8px 8px; letter-spacing: .04em; }
.nav-link, .tree-board, .tree-space {
  width: 100%; display: flex; align-items: center; gap: 9px; text-align: left;
  background: transparent; color: var(--text); padding: 9px 10px; border-radius: 10px; margin-bottom: 3px;
}
.nav-link:hover, .tree-board:hover, .tree-space:hover { background: #f1f5f9; transform: none; }
.nav-link.active, .tree-board.active { background: #eaf1ff; color: var(--blue-dark); }
.tree-space { font-weight: 900; justify-content: space-between; }
.tree-boards { margin: 2px 0 10px 12px; padding-left: 8px; border-left: 1px solid var(--border); }
.tree-loading { color: var(--muted); font-size: 13px; padding: 10px; }
.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .create-btn,
.app-shell.sidebar-collapsed .nav-section-title,
.app-shell.sidebar-collapsed .nav-link span,
.app-shell.sidebar-collapsed .tree-space span,
.app-shell.sidebar-collapsed .tree-board span { display: none; }
.app-shell.sidebar-collapsed .sidebar-top { justify-content: center; padding: 12px 8px; }
.app-shell.sidebar-collapsed .collapse-btn { width: 42px; }
.app-shell.sidebar-collapsed .nav-link,
.app-shell.sidebar-collapsed .tree-board,
.app-shell.sidebar-collapsed .tree-space { justify-content: center; padding: 10px 0; }
.app-shell.sidebar-collapsed .tree-boards { margin-left: 0; padding-left: 0; border-left: 0; }

.workspace {
  grid-area: workspace;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 16px 0;
}
.board-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 10px;
}
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.board-head-actions { display: flex; gap: 8px; }

.sprint-tabs {
  display: flex; align-items: center; gap: 8px; overflow-x: auto;
  padding: 4px 0 10px; flex: 0 0 auto;
}
.sprint-tab {
  white-space: nowrap; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 13px;
}
.sprint-tab.active { background: var(--green); color: #111; border-color: var(--green); }
.sprint-tab.muted { color: var(--muted); }
.sprint-tab.add { min-width: 38px; background: var(--blue); color: #fff; border-color: var(--blue); }

.filters-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(140px, 190px) minmax(120px, 170px) minmax(140px, 190px) auto auto;
  gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--border-soft); border-radius: 14px; padding: 9px;
  box-shadow: 0 2px 10px rgba(15,23,42,.03);
  flex: 0 0 auto;
}
.check-filter {
  margin: 0; display: flex; align-items: center; gap: 7px;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
  white-space: nowrap; color: var(--text); font-size: 13px;
}
.check-filter input { width: auto; }

.kanban-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 0 16px; }
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 100%;
}
.column {
  background: var(--surface-2);
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  min-height: calc(100vh - 208px);
  max-height: calc(100vh - 208px);
  display: flex;
  flex-direction: column;
  padding: 8px;
}
.column.drag-over { background: #dbeafe; outline: 2px dashed var(--blue); outline-offset: -5px; }
.column-header {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff; border-radius: 12px; padding: 10px 11px; margin-bottom: 8px;
  border-left: 4px solid #94a3b8;
}
.column:nth-child(2) .column-header { border-left-color: var(--blue); }
.column:nth-child(3) .column-header { border-left-color: var(--orange); }
.column:nth-child(4) .column-header { border-left-color: #22c55e; }
.column:nth-child(5) .column-header { border-left-color: #10b981; }
.column-title { font-weight: 900; font-size: 14px; }
.column-count {
  min-width: 25px; height: 25px; border-radius: 999px; display: grid; place-items: center;
  background: var(--green); color: #111; font-weight: 900; font-size: 12px;
}
.column-cards { overflow-y: auto; padding-right: 2px; flex: 1 1 auto; min-height: 0; }
.add-card-inline {
  width: 100%; margin-top: 8px; background: rgba(255,255,255,.72); color: var(--muted);
  border: 1px dashed #b7c2d1; box-shadow: none;
}
.add-card-inline:hover { color: var(--blue-dark); background: #fff; }

.card {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 11px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  cursor: grab;
  transition: .14s ease;
}
.card:hover { border-color: #b7cffc; box-shadow: 0 10px 24px rgba(15,23,42,.08); }
.card:active { cursor: grabbing; }
.card.dragging { opacity: .45; }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 7px; }
.card-id { font-size: 11px; color: var(--muted); font-weight: 900; }
.card-title { font-size: 14px; line-height: 1.3; font-weight: 900; margin-bottom: 8px; color: var(--text); }
.card-desc { font-size: 12px; color: var(--muted); margin-bottom: 9px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags, .card-stats { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.card-stats { justify-content: space-between; border-top: 1px solid #edf2f7; padding-top: 8px; margin-top: 9px; color: var(--muted); font-size: 12px; }
.pill, .mini-tag {
  border-radius: 999px; padding: 4px 7px; font-size: 11px; font-weight: 800;
  background: #eef2f7; color: #334155;
}
.priority-high { background: #fee2e2; color: #991b1b; }
.priority-normal { background: #dbeafe; color: #1d4ed8; }
.priority-low { background: #dcfce7; color: #166534; }
.deadline.overdue { color: var(--red); font-weight: 900; }
.live-card-time { color: var(--text); font-weight: 900; }
.empty { color: var(--muted); font-size: 13px; text-align: center; padding: 18px 8px; border: 1px dashed #cbd5e1; border-radius: 12px; background: rgba(255,255,255,.55); }
.empty.small { padding: 12px 8px; }

.right-drawer {
  grid-area: drawer;
  min-width: 0;
  background: #fff;
  border-left: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.drawer-head { padding: 14px; border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; gap: 8px; }
.drawer-title { font-size: 16px; font-weight: 900; }
.drawer-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.drawer-section { padding: 14px; border-bottom: 1px solid var(--border-soft); }
.drawer-section-title { font-size: 12px; font-weight: 900; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.drawer-list { display: flex; flex-direction: column; gap: 8px; }
.drawer-item { border: 1px solid var(--border-soft); background: var(--surface-3); border-radius: 12px; padding: 9px; font-size: 13px; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .62);
  display: none; align-items: center; justify-content: center; padding: 18px; z-index: 100;
}
.modal {
  width: min(1320px, 96vw); max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.3);
}
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft); margin-bottom: 16px; }
.modal-title { font-size: 22px; font-weight: 900; }
.meta { font-size: 12px; color: var(--muted); line-height: 1.5; }
.modal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.panel { border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: #fff; box-shadow: 0 2px 10px rgba(15,23,42,.035); }
.sticky-panel { position: sticky; top: 8px; }
.upload-row { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.comments, .activity { display: flex; flex-direction: column; gap: 8px; }
.comment, .activity-item, .attachment-row { background: var(--surface-3); border: 1px solid var(--border-soft); border-radius: 12px; padding: 9px; font-size: 13px; }
.comment-head, .activity-head, .attachment-meta { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.attachment-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 8px; }
.attachment-name { font-weight: 800; color: var(--text); text-decoration: none; }
.attachment-delete { background: #fee2e2; color: #991b1b; padding: 6px 9px; }
.attachment-download { border-radius: 8px; padding: 6px 9px; background: #dbeafe; color: #1d4ed8; text-decoration: none; font-weight: 800; }
.timer-panel { text-align: center; }
.timer { font-size: 30px; font-weight: 900; padding: 8px 0 12px; }
.timer-actions { display: grid; gap: 8px; }
.timer-actions button { width: 100%; }

.error {
  display: none; position: fixed; right: 18px; bottom: 18px; max-width: 420px;
  background: #fee2e2; color: #991b1b; border: 1px solid #fecaca;
  padding: 12px 14px; border-radius: 14px; z-index: 200; box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 9px; border-bottom: 1px solid #edf2f7; text-align: left; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.report-card { background: var(--surface-3); border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@media (min-width: 1800px) {
  .board { grid-auto-columns: minmax(330px, 1fr); }
}
@media (min-width: 2500px) {
  .workspace { padding-left: 20px; padding-right: 20px; }
  .board { grid-auto-columns: minmax(360px, 1fr); }
}
@media (max-width: 1180px) {
  .topbar { grid-template-columns: 250px 1fr auto; }
  .filters-row { grid-template-columns: 1fr 1fr 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .app-shell, .app-shell.sidebar-collapsed, .app-shell.drawer-open { display: block; height: auto; }
  .topbar { position: sticky; top: 0; grid-template-columns: 1fr; height: auto; padding: 10px; }
  .sidebar, .right-drawer { display: none; }
  .workspace { min-height: calc(100vh - 100px); }
  .board-head { flex-direction: column; }
  .filters-row { grid-template-columns: 1fr; }
  .board { grid-auto-columns: 290px; }
  .column { min-height: 70vh; max-height: 70vh; }
}

/* =====================================================
   PROEKTOR TASKS UI TUNE 01
   Более плотный рабочий интерфейс после Kaiten-редизайна
   ===================================================== */

:root {
  --topbar-h: 56px;
  --sidebar-w: 260px;
  --sidebar-collapsed-w: 64px;
  --right-panel-w: 340px;
  --proektor-blue: #101827;
  --proektor-blue-2: #0b1220;
  --proektor-accent: #b9ff3b;
  --page-bg: #f4f7fb;
  --column-bg: #eef2f7;
  --line: #dbe4ef;
  --muted: #64748b;
}

body {
  background: var(--page-bg) !important;
  overflow: hidden;
}

.app-topbar,
.topbar,
header {
  height: var(--topbar-h) !important;
  min-height: var(--topbar-h) !important;
}

.app-shell,
.workspace-shell {
  height: calc(100vh - var(--topbar-h)) !important;
  overflow: hidden !important;
}

.main-area,
.board-main,
.content-area {
  height: calc(100vh - var(--topbar-h)) !important;
  overflow: hidden !important;
  padding: 12px 14px 10px !important;
}

.page-title,
.board-title {
  font-size: 24px !important;
  line-height: 1.15 !important;
  margin: 4px 0 10px !important;
}

.breadcrumbs,
.board-breadcrumbs {
  font-size: 13px !important;
  margin-bottom: 4px !important;
}

.sprint-tabs,
.sprints-row,
#sprintsPanelPatch {
  margin: 8px 0 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.sprint-tab,
.sprint-chip,
.sprint-item {
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.filters,
.filter-bar,
.board-filters {
  min-height: 48px !important;
  padding: 8px !important;
  margin-bottom: 10px !important;
  border-radius: 14px !important;
  display: grid !important;
  grid-template-columns: 220px 220px 1fr 1fr 1fr 220px !important;
  gap: 8px !important;
  align-items: center !important;
}

.filters input,
.filters select,
.filter-bar input,
.filter-bar select,
.board-filters input,
.board-filters select {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

.board,
.kanban-board {
  height: calc(100vh - var(--topbar-h) - 154px) !important;
  min-height: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 10px !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.column,
.kanban-column {
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 16px !important;
  padding: 8px !important;
  background: var(--column-bg) !important;
  border: 1px solid #e0e7f1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.column-header {
  flex: 0 0 auto !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
}

.column-title {
  font-size: 15px !important;
  font-weight: 900 !important;
}

.column-count {
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  font-size: 13px !important;
  background: var(--proektor-accent) !important;
}

.column-cards,
.cards-list,
.column-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-right: 2px !important;
}

.card,
.modern-card {
  border-radius: 12px !important;
  padding: 12px !important;
  margin-bottom: 8px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06) !important;
  border: 1px solid #edf2f7 !important;
}

.card:hover,
.modern-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .10) !important;
}

.card::before,
.modern-card::before {
  display: none !important;
}

.modern-card-header {
  margin-bottom: 8px !important;
}

.modern-card-title,
.card-title {
  font-size: 15px !important;
  line-height: 1.25 !important;
  margin-bottom: 7px !important;
}

.card-desc,
.modern-card-desc {
  font-size: 12px !important;
  line-height: 1.35 !important;
  margin-bottom: 8px !important;
  max-height: 36px !important;
  overflow: hidden !important;
}

.modern-card-tags,
.card-tags {
  gap: 5px !important;
  margin-bottom: 8px !important;
}

.mini-tag,
.pill {
  font-size: 11px !important;
  padding: 3px 7px !important;
}

.modern-card-footer,
.card-footer {
  padding-top: 8px !important;
  gap: 8px !important;
  font-size: 12px !important;
}

.modern-time,
.live-card-time {
  font-size: 12px !important;
  font-weight: 900 !important;
}

.empty {
  padding: 16px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
}

.add-card-btn,
.column-add,
.column button.light {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: 36px !important;
  margin-top: 8px !important;
  background: transparent !important;
  color: #334155 !important;
  border: 1px dashed #b9c5d6 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.add-card-btn:hover,
.column-add:hover,
.column button.light:hover {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: var(--proektor-accent) !important;
}

.left-sidebar {
  border-right: 1px solid #dbe4ef !important;
}

.sidebar-title {
  font-size: 11px !important;
  letter-spacing: .08em !important;
  color: #64748b !important;
}

.side-link,
.sidebar-link {
  min-height: 38px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
}

button,
.btn {
  box-shadow: none !important;
}

@media (min-width: 1900px) {
  .board,
  .kanban-board {
    grid-template-columns: repeat(4, minmax(360px, 1fr)) !important;
  }
}

@media (min-width: 2500px) {
  .board,
  .kanban-board {
    grid-template-columns: repeat(4, minmax(440px, 1fr)) !important;
  }
}

@media (min-width: 3300px) {
  .board,
  .kanban-board {
    grid-template-columns: repeat(4, minmax(560px, 1fr)) !important;
  }
}

@media (max-width: 1400px) {
  .filters,
  .filter-bar,
  .board-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .board,
  .kanban-board {
    grid-template-columns: repeat(4, 320px) !important;
  }
}


/* =====================================================
   PROEKTOR TASKS UX IMPROVEMENTS v2
   ===================================================== */

/* Уменьшаем скругления */

button,
.btn,
input,
select,
.card,
.modern-card,
.column,
.kanban-column,
.filters,
.filter-bar,
.board-filters {
  border-radius: 8px !important;
}

/* Более строгие колонки */

.column,
.kanban-column {
  background: #f7f9fc !important;
  border: 1px solid #e3e8f0 !important;
}

.column-header {
  background: #fff !important;
  border-bottom: 1px solid #eef2f7 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

/* Карточки */

.card,
.modern-card {
  background: #fff !important;
  border: 1px solid #e7edf4 !important;
  box-shadow: none !important;
  transition: all .15s ease !important;
}

.card:hover,
.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,.10) !important;
  border-color: #c9d6e5 !important;
  cursor: pointer;
}

/* Заголовок карточки */

.card-title,
.modern-card-title {
  font-size: 16px !important;
  font-weight: 800 !important;
}

/* Теги */

.card-tags span,
.modern-card-tags span {
  border-radius: 6px !important;
  font-size: 11px !important;
}

/* Верхняя панель компактнее */

.topbar,
.app-topbar,
header {
  height: 48px !important;
  min-height: 48px !important;
}

/* Поиск меньше */

.topbar input[type="search"],
.search-input {
  max-width: 420px !important;
}

/* Кнопки */

button {
  transition: all .15s ease !important;
}

button:hover {
  transform: translateY(-1px);
}

/* Primary */

.btn-primary,
.primary-btn {
  background: #2f67ea !important;
  color: #fff !important;
}

/* Secondary */

.btn-secondary,
.secondary-btn {
  background: #eef2f7 !important;
  color: #1e293b !important;
}

/* Ghost */

.btn-ghost,
.ghost-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
}

/* Счётчики колонок */

.column-count {
  font-weight: 800 !important;
  box-shadow: none !important;
}

/* Левая навигация */

.sidebar-link,
.side-link {
  min-height: 36px !important;
  border-radius: 6px !important;
}

.sidebar-link.active,
.side-link.active {
  background: rgba(185,255,59,.18) !important;
  border-left: 3px solid #b9ff3b !important;
}

/* Скрываем лишние границы */

.filters,
.filter-bar,
.board-filters {
  border: none !important;
  box-shadow: none !important;
}

/* Анимации */

.column,
.card,
button,
.sidebar-link {
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

