@font-face {
  font-family: "Material Symbols Rounded";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/material-symbols-rounded.woff2") format("woff2");
}

.material-symbols-rounded {
  display: inline-block;
  font-family: "Material Symbols Rounded";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  font-feature-settings: "liga";
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

html:not(.icons-ready) .material-symbols-rounded {
  opacity: 0 !important;
}

:root {
  --bg: #0b0d10;
  --panel: #111419;
  --panel-2: #171a20;
  --panel-3: #1c2027;
  --line: #252a33;
  --border: #252a33;
  --line-soft: #1c2026;
  --text: #f5f7fa;
  --muted: #8b93a1;
  --muted-2: #626a78;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --green: #35d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --blue: #60a5fa;
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

/* Focused card workspace — quick actions, one task at a time */
.modal.wide:has(.task-detail) {
  width: min(1180px, calc(100vw - 36px));
  height: min(900px, calc(100dvh - 36px));
  max-height: calc(100dvh - 36px);
  position: relative;
  overflow: hidden;
}
.task-detail-head {
  flex: 0 0 auto;
  min-height: 68px;
  padding: 10px 14px 10px 24px;
}
.task-detail-head .modal-titlebar h3 {
  font-size: 18px;
}
.task-detail-head > .header-icon-btn,
.task-detail-head > .modal-close,
.card-focus-panel > header button,
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-2);
  color: var(--text);
}
.task-detail-head > .header-icon-btn {
  margin-left: auto;
}
.task-detail-head > .header-icon-btn + .header-icon-btn,
.task-detail-head > .header-icon-btn + .modal-close,
.task-detail-head > .modal-close {
  margin-left: 7px;
}
.task-detail-head .material-symbols-rounded,
.icon-btn .material-symbols-rounded {
  font-size: 23px;
}
.task-detail-body {
  min-height: 0;
  padding: 0 !important;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.task-detail {
  width: min(100%, 1080px);
  min-height: 100%;
  margin: 0 auto;
  padding: 28px 30px 38px;
}
.task-hero {
  display: grid;
  gap: 18px;
  padding: 0 2px 26px;
}
.task-state-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.task-state-row > button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}
.task-state-row > button:hover:not(:disabled),
.task-info-row > button:hover,
.task-quick-actions > button:hover {
  border-color: var(--text);
}
.task-state-row > button:disabled {
  cursor: default;
  opacity: .78;
}
.task-state-row > button > i:first-child:not(.priority-dot) {
  width: 10px;
  height: 10px;
  border-radius: 99px;
}
.task-state-row > button .material-symbols-rounded {
  color: var(--muted);
  font-size: 18px;
}
.task-read-view h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.2;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.task-read-view p {
  max-width: 920px;
  margin: 13px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.auto-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.auto-link:hover {
  color: var(--text);
}
.task-read-view p.empty {
  color: var(--muted);
  font-style: italic;
}
.task-core-form {
  display: grid;
  gap: 15px;
  max-width: 920px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-2);
}
.task-core-form textarea {
  min-height: 220px;
  resize: vertical;
}
.task-info-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 9px;
}
.task-info-row > button,
.task-info-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
}
.task-info-row > button > span:last-child,
.task-info-chip {
  min-width: 0;
}
.task-info-row small,
.task-info-chip small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.task-info-row b,
.task-info-chip b {
  display: block;
  max-width: 280px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-info-row > button.overdue {
  border-color: #ef4444;
}
.task-info-row > button.overdue .material-symbols-rounded,
.task-info-row > button.overdue b {
  color: #ef4444;
}
.task-info-assignees {
  min-width: min(100%, 290px);
}
.assignee-stack {
  display: inline-flex;
  align-items: center;
  padding-left: 7px;
}
.assignee-stack .assignee-avatar {
  width: 34px;
  height: 34px;
  margin-left: -7px;
  border: 2px solid var(--panel);
  font-size: 10px;
}
.assignee-more {
  background: var(--panel-3);
}
.assignee-empty {
  color: var(--muted);
  font-size: 12px;
}
.task-tag-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.task-tag-preview > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--panel-2);
  font-size: 12px;
  font-weight: 700;
}
.task-tag-preview i {
  width: 9px;
  height: 9px;
  border-radius: 99px;
}
.task-blockers {
  display: grid;
  gap: 7px;
  max-width: 720px;
}
.task-blocker {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
}
.task-blocker > .material-symbols-rounded {
  font-size: 20px;
}
.task-blocker span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.task-blocker small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.task-blocker b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-blocker.done {
  opacity: .6;
}
.task-quick-actions {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  backdrop-filter: blur(14px);
}
.task-quick-actions > button {
  position: relative;
  display: grid;
  grid-template-columns: 28px auto;
  place-content: center;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
}
.task-quick-actions .material-symbols-rounded {
  font-size: 24px;
}
.task-quick-actions b {
  font-size: 13px;
}
.task-quick-actions small {
  position: absolute;
  top: 4px;
  right: 8px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--text);
  color: var(--panel);
  font-size: 9px;
  font-weight: 800;
}
.task-detail-content {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: start;
  gap: 18px;
  padding-top: 20px;
}
.task-section {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--panel);
}
.task-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.task-section > header small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.task-section > header h3 {
  margin: 4px 0 0;
  font-size: 18px;
}
.task-section > header em {
  margin-left: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.task-checklist {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}
.task-checklist .check-item {
  min-height: 48px;
  margin: 0;
  padding: 7px 8px;
  border: 0;
  border-radius: 12px;
  background: var(--panel-2);
}
.task-checklist .check-item input {
  width: 22px;
  height: 22px;
}
.task-checklist .check-item button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.checklist-quick-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  margin-top: 11px;
}
.checklist-quick-add > button {
  width: 48px;
  min-width: 48px;
  padding: 0;
}
.task-comments #comments {
  display: grid;
  gap: 12px;
  max-height: 420px;
  padding-right: 5px;
  overflow-y: auto;
}
.comment-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 14px;
}
.comment-composer .comment-media-selection {
  grid-column: 1 / -1;
}
.comment-composer .comment-media-picker {
  min-width: 48px;
}
.comment-composer .comment-media-picker em {
  display: none;
}
.card-focus-panel {
  position: absolute;
  z-index: 30;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(520px, 100%);
  border-left: 1px solid var(--border);
  background: var(--panel);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .2);
  transform: translateX(16px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.card-focus-panel.open {
  transform: translateX(0);
  opacity: 1;
}
.card-focus-panel > header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.card-focus-panel > header h3 {
  margin: 0;
  overflow: hidden;
  font-size: 19px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-focus-body {
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.focus-form {
  display: grid;
  gap: 16px;
}
.focus-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.focus-search {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel-2);
}
.focus-search .material-symbols-rounded {
  color: var(--muted);
  font-size: 21px;
}
.focus-search input {
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.focus-choice-list,
.member-choice-list {
  display: grid;
  gap: 7px;
}
.focus-choice-list > label,
.member-choice-list > label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel-2);
  cursor: pointer;
}
.member-choice-list > label {
  grid-template-columns: 24px 42px minmax(0, 1fr) 26px;
}
.focus-choice-list input,
.member-choice-list input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.focus-choice-list label > i:not(.priority-dot) {
  width: 16px;
  height: 16px;
  border-radius: 99px;
}
.focus-choice-list label > .material-symbols-rounded,
.member-choice-list label > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: transparent;
  font-size: 18px;
}
.focus-choice-list input:checked ~ .material-symbols-rounded,
.member-choice-list input:checked ~ .material-symbols-rounded {
  border-color: var(--text);
  background: var(--text);
  color: var(--panel);
}
.member-choice-list label > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.member-choice-list label > span b,
.member-choice-list label > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-choice-list small {
  color: var(--muted);
  font-size: 11px;
}
.select-all-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 4px;
  font-weight: 750;
}
.select-all-row input {
  width: 22px;
  height: 22px;
}
.new-tag-inline,
.focus-upload {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.mini-color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.mini-color-presets button {
  width: 30px;
  height: 30px;
  border: 3px solid transparent;
  border-radius: 10px;
  background: var(--swatch);
}
.mini-color-presets button.active {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.focus-file-list {
  display: grid;
  gap: 8px;
}
.focus-file-list .attachment {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
}
.focus-file-list .attachment > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.focus-file-list .attachment b,
.focus-file-list .attachment small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.focus-upload > label {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px;
  border: 1px dashed var(--muted);
  border-radius: 16px;
  cursor: pointer;
}
.focus-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.focus-upload label > span:last-child {
  display: grid;
  gap: 3px;
}
.focus-upload small {
  color: var(--muted);
}
.deadline-visual {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--panel-2);
}
.deadline-visual > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--text);
  color: var(--panel);
  font-size: 26px;
}
.deadline-visual span:last-child {
  display: grid;
  gap: 4px;
}
.deadline-visual small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.advanced-card-form > section,
.advanced-dependencies {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--panel-2);
}
.advanced-card-form h4,
.advanced-dependencies h4 {
  margin: 0;
  font-size: 15px;
}
.advanced-dependencies {
  margin-top: 18px;
}
.advanced-dependencies > div {
  display: grid;
  gap: 7px;
}
.advanced-dependencies > div > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 7px 8px 7px 12px;
  border-radius: 12px;
  background: var(--panel);
}
.advanced-dependencies > div > div span {
  display: grid;
  gap: 2px;
}
.advanced-dependencies small {
  color: var(--muted);
}
.advanced-dependencies > div > div button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.advanced-card-actions {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}
.advanced-card-actions .btn {
  justify-content: center;
  min-height: 48px;
}
.mini-assignee-picker {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 17px;
}
.mini-assignee-picker legend {
  padding: 0 7px;
  font-size: 13px;
  font-weight: 800;
}
.mini-assignee-picker legend small {
  color: var(--muted);
  font-weight: 500;
}
.mini-assignee-picker > label {
  display: grid;
  grid-template-columns: 24px 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 9px;
  border-radius: 13px;
  background: var(--panel-2);
}
.mini-assignee-picker > label > input {
  width: 21px;
  height: 21px;
}
.mini-assignee-picker > label > span {
  display: grid;
  min-width: 0;
}
.mini-assignee-picker > label small {
  color: var(--muted);
  font-size: 11px;
}
.mini-assignee-picker > label > i {
  color: transparent;
}
.mini-assignee-picker > label:has(input:checked) > i {
  color: var(--text);
}

@media (max-width: 720px) {
  .modal.wide:has(.task-detail) {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .task-detail-head {
    min-height: 60px;
    padding: 7px 8px 7px 14px;
  }
  .task-detail-head > .header-icon-btn,
  .task-detail-head > .modal-close,
  .card-focus-panel > header button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .task-detail {
    padding: 18px 14px calc(110px + env(safe-area-inset-bottom));
  }
  .task-hero {
    gap: 15px;
    padding-bottom: 18px;
  }
  .task-state-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .task-state-row::-webkit-scrollbar {
    display: none;
  }
  .task-state-row > button {
    flex: 0 0 auto;
    min-height: 44px;
  }
  .task-read-view h2 {
    font-size: 25px;
    line-height: 1.25;
  }
  .task-read-view p {
    font-size: 15px;
    line-height: 1.65;
  }
  .task-core-form {
    padding: 14px;
  }
  .task-core-form textarea {
    min-height: 200px;
  }
  .task-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .task-info-row > button,
  .task-info-chip {
    min-width: 0;
    min-height: 64px;
    padding: 9px 10px;
  }
  .task-info-assignees {
    min-width: 0;
  }
  .task-info-row b,
  .task-info-chip b {
    max-width: 125px;
  }
  .task-info-assignees > span:first-child {
    display: none;
  }
  .task-quick-actions {
    position: sticky;
    top: 0;
    grid-template-columns: repeat(5, minmax(62px, 1fr));
    gap: 3px;
    margin: 0 -7px;
    padding: 7px;
    border-radius: 17px;
  }
  .task-quick-actions > button {
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 58px;
    padding: 5px 2px;
  }
  .task-quick-actions .material-symbols-rounded {
    font-size: 25px;
  }
  .task-quick-actions b {
    font-size: 10px;
    font-weight: 700;
  }
  .task-quick-actions small {
    top: 2px;
    right: 4px;
  }
  .task-detail-content {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 14px;
  }
  .task-section {
    padding: 15px;
    border-radius: 17px;
  }
  .task-comments #comments {
    max-height: none;
  }
  .comment-composer {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 46px;
  }
  .comment-composer > .btn-primary {
    grid-column: 1 / -1;
    min-height: 46px;
  }
  .comment-composer .comment-media-picker {
    min-width: 46px;
  }
  .card-focus-panel {
    position: fixed;
    width: 100%;
    border-left: 0;
    transform: translateX(100%);
  }
  .card-focus-panel > header {
    min-height: 60px;
    padding: 7px 8px;
  }
  .card-focus-body {
    padding: 14px 14px calc(24px + env(safe-area-inset-bottom));
  }
  .focus-choice-list > label,
  .member-choice-list > label {
    min-height: 60px;
  }
  .focus-form > .btn-primary,
  .focus-form > .form-actions,
  .new-tag-inline > .btn,
  .focus-upload > .btn {
    position: sticky;
    bottom: 0;
    z-index: 3;
  }
  .deadline-form .form-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    padding-top: 8px;
    background: var(--panel);
  }
  .new-card-form .form-grid.two {
    grid-template-columns: 1fr;
  }
}

/* Discoverable cross-board card movement v44 */
.task-detail-head > .card-move-board-btn {
  display: inline-flex;
  width: auto;
  padding: 0 14px;
  gap: 8px;
  white-space: nowrap;
}
.card-move-board-btn b {
  font-size: 13px;
  font-weight: 750;
}
@media (max-width: 720px) {
  .task-detail-head > .card-move-board-btn {
    display: grid;
    width: 44px;
    padding: 0;
  }
  .card-move-board-btn b {
    display: none;
  }
}

/* Blocking-task link shown directly on dependent cards. */
.card-blockers {
  display: grid;
  gap: 6px;
  margin: 10px 0 3px;
}
.card-blockers button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(59, 130, 246, .4);
  border-radius: 11px;
  background: rgba(37, 99, 235, .13);
  color: #dbeafe;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.card-blockers button:hover {
  background: rgba(37, 99, 235, .23);
  border-color: rgba(96, 165, 250, .7);
  transform: translateY(-1px);
}
.card-blockers .material-symbols-rounded {
  color: #60a5fa;
  font-size: 21px;
}
.card-blockers button > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.card-blockers small {
  color: #93c5fd;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.card-blockers b {
  overflow: hidden;
  color: #eff6ff;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-blockers button.done {
  border-color: rgba(34, 197, 94, .35);
  background: rgba(22, 163, 74, .1);
}
.card-blockers button.done .material-symbols-rounded,
.card-blockers button.done small {
  color: #4ade80;
}

/* Enterprise workflow additions */
.notification-btn { position: relative; }
.notification-btn .material-symbols-rounded { font-size: 25px; }
.notification-btn em { position: absolute; right: -5px; top: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; border: 2px solid var(--bg); font: 800 11px/16px Manrope; }
.notification-center-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; color:var(--muted); }
.notification-list { display:grid; gap:8px; max-height:65vh; overflow:auto; }
.notification-list > button { width:100%; display:grid; grid-template-columns:44px 1fr; gap:12px; text-align:left; border:1px solid var(--border); border-radius:16px; padding:15px; background:var(--panel); color:var(--text); }
.notification-list > button.unread { border-color:#2563eb; background:rgba(37,99,235,.10); }
.notification-list .material-symbols-rounded { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:rgba(37,99,235,.15); color:#60a5fa; }
.notification-list p { margin:5px 0; white-space:pre-line; color:var(--muted); }
.notification-list small { color:var(--muted-2); }
.view-tabs { flex-wrap:wrap; }
.toolbar-btn.active, .view-tabs button.active { color:#fff; border-color:#2563eb; background:rgba(37,99,235,.18); }
.task-card.selected { outline:2px solid #3b82f6; background:rgba(37,99,235,.13); }
.card-select,.row-check { display:grid; place-items:center; width:24px; height:24px; border:2px solid #3b82f6; border-radius:8px; color:#fff; background:transparent; font-weight:900; }
.row-check.checked,.card-select:not(:empty) { background:#2563eb; }
.task-card.sla-breach { border-color:#f43f5e; box-shadow:0 0 0 1px rgba(244,63,94,.45),0 0 22px rgba(244,63,94,.12); }
.sla { padding:3px 7px; border-radius:8px; background:rgba(59,130,246,.12); color:#93c5fd; font-size:11px; font-weight:700; }
.sla.burn { background:rgba(244,63,94,.18); color:#fda4af; }
.pvz-chip { display:inline-flex; margin-top:8px; padding:4px 8px; border-radius:8px; background:rgba(37,99,235,.13); color:#93c5fd; font-weight:700; }
.board-data-view { width:100%; min-width:950px; border:1px solid var(--border); border-radius:18px; overflow:hidden; background:var(--panel); }
.board-data-head,.board-data-row { display:grid; grid-template-columns:minmax(320px,2.2fr) 1fr .8fr 1fr .8fr; gap:14px; align-items:center; padding:15px 18px; }
.table-mode .board-data-head,.table-mode .board-data-row { grid-template-columns:minmax(300px,2fr) 1fr .8fr 1fr .8fr 1fr; }
.board-data-head { background:var(--panel-2); color:var(--muted); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.board-data-row { width:100%; text-align:left; border:0; border-top:1px solid var(--border); background:transparent; color:var(--text); }
.board-data-row:hover { background:rgba(37,99,235,.08); }
.board-data-row > span:first-child { display:grid; grid-template-columns:auto 1fr; gap:3px 10px; }
.board-data-row > span:first-child b,.board-data-row > span:first-child small { grid-column:2; }
.board-data-row small { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.calendar-view { width:100%; min-width:880px; border:1px solid var(--border); border-radius:18px; background:var(--panel); overflow:hidden; }
.calendar-view > header { display:flex; align-items:center; justify-content:space-between; padding:20px; text-transform:capitalize; }
.calendar-week,.calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); }
.calendar-week span { padding:10px; text-align:center; color:var(--muted); background:var(--panel-2); font-size:12px; font-weight:800; }
.calendar-day { min-height:130px; padding:10px; border-top:1px solid var(--border); border-right:1px solid var(--border); }
.calendar-day.today > b { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#2563eb; }
.calendar-day > button { display:block; width:100%; margin-top:7px; padding:7px; text-align:left; border:0; border-radius:8px; background:rgba(37,99,235,.14); color:#bfdbfe; font-size:11px; }
.calendar-day.muted { opacity:.25; }
.bulk-action-bar { position:fixed; z-index:70; left:50%; bottom:25px; transform:translateX(-50%); display:flex; align-items:center; gap:10px; min-width:650px; padding:12px 14px; border:1px solid #334155; border-radius:18px; background:#111827; box-shadow:0 20px 60px #000a; }
.bulk-action-bar select { min-width:160px; }
.custom-values { padding:18px; border:1px solid var(--border); border-radius:16px; background:rgba(37,99,235,.045); }
.section-caption { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:14px; }
.section-caption span { font-weight:800; }
.section-caption small { color:var(--muted); }
.custom-checkbox { align-self:end; min-height:50px; }
.dependency-box > label { display:flex; justify-content:space-between; }
.dependency-box > label small { color:var(--muted); text-transform:none; }
#dependencies { display:grid; gap:7px; margin-bottom:8px; }
#dependencies > div { display:flex; justify-content:space-between; gap:8px; padding:9px 10px; border-radius:10px; background:var(--panel-2); }
#dependencies .done { text-decoration:line-through; color:var(--muted); }
#dependencies button { border:0; background:transparent; color:#fb7185; }
.custom-field-list { display:grid; gap:8px; }
.custom-field-list > div { display:grid; grid-template-columns:1fr auto 38px; align-items:center; gap:12px; padding:14px; border:1px solid var(--border); border-radius:14px; }
.custom-field-list span { display:flex; flex-direction:column; }
.custom-field-list small { color:var(--muted); }
.custom-field-list > div > button { width:34px; height:34px; border:0; border-radius:10px; background:rgba(244,63,94,.1); color:#fb7185; }
.recurrence-panel { margin-top:18px; padding:16px; border:1px solid rgba(59,130,246,.35); border-radius:16px; background:rgba(37,99,235,.06); }
.recurrence-panel .toggle-row { margin:0; }
.recurrence-panel #recurrenceFields { margin-top:16px; }
.template-variable-hints { display:flex; flex-wrap:wrap; align-items:center; gap:7px; color:var(--muted); font-size:12px; }
.template-variable-hints code { padding:5px 8px; border:1px solid var(--border); border-radius:8px; background:var(--panel); color:var(--text); font:inherit; }
.template-variables-panel { margin:18px 0 0; padding:16px; border:1px solid var(--border); border-radius:16px; background:var(--panel-2); }
.template-variables-panel .section-caption { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:10px; }
.template-variables-panel .section-caption span { font-weight:700; color:var(--text); }
.template-variables-panel .section-caption small { color:var(--muted); }
.template-variables-panel textarea { min-height:78px; resize:vertical; }
.template-reminder-settings {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-2);
}
.template-reminder-settings .section-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.template-reminder-settings .section-caption span { font-weight: 800; }
.template-reminder-settings .section-caption small { color: var(--muted); }
.template-reminder-settings textarea { min-height: 88px; resize: vertical; }
.template-default-assignees { max-height: 356px; overflow-y: auto; overscroll-behavior: contain; }
.template-default-assignees legend { position: sticky; top: -1px; z-index: 1; background: var(--panel-2); padding-bottom: 10px; }
.recurring-badge { margin-left:auto; padding:4px 8px; border-radius:999px; background:rgba(37,99,235,.14); color:#93c5fd; font-size:11px; font-weight:800; }
.saved-filters { margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.saved-filters > div { display:flex; gap:8px; margin-top:8px; }
.saved-filters button { flex:1; padding:11px; border:1px solid var(--border); border-radius:11px; background:var(--panel); color:var(--text); text-align:left; }
.saved-filters button:last-child { flex:0 0 40px; text-align:center; color:#fb7185; }
.trash-list { display:grid; gap:9px; }
.trash-list > div { display:flex; align-items:center; gap:10px; padding:14px; border:1px solid var(--border); border-radius:14px; }
.trash-list > div > span { display:flex; flex-direction:column; margin-right:auto; }
.trash-list small { color:var(--muted); }
.admin-ops-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:18px; }
.admin-ops-grid .span-2 { grid-column:1/-1; }
.ops-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.ops-metrics span { display:flex; flex-direction:column; padding:14px; border-radius:13px; background:var(--panel-2); color:var(--muted); }
.ops-metrics b { color:var(--text); font-size:19px; }
.security-score { color:#60a5fa; font-size:20px; font-weight:900; }
.security-findings { display:grid; gap:8px; }
.security-findings > div { display:flex; align-items:center; gap:9px; }
.security-findings i { width:10px; height:10px; border-radius:50%; background:#22c55e; }
.security-findings .warning i { background:#f59e0b; }
.security-findings .critical i { background:#f43f5e; }
.backup-list { display:flex; flex-wrap:wrap; gap:9px; }
.backup-list > div { display:flex; align-items:center; gap:8px; padding:11px 13px; border-radius:12px; background:var(--panel-2); }
.backup-list small { color:var(--muted); }
.profile-preferences { display:grid; gap:12px; margin:16px 0; padding:15px; border:1px solid var(--border); border-radius:15px; }

@media (max-width: 780px) {
  .view-tabs { display:flex; overflow-x:auto; flex-wrap:nowrap; width:100%; }
  .view-tabs button { flex:0 0 auto; }
  .toolbar-right { overflow-x:auto; width:100%; padding-bottom:4px; }
  .board-toolbar { align-items:flex-start; flex-direction:column; gap:10px; }
  .board-data-view,.calendar-view { min-width:760px; }
  .bulk-action-bar { left:10px; right:10px; bottom:82px; transform:none; min-width:0; overflow-x:auto; }
  .notification-btn { position:fixed; top:16px; right:66px; z-index:15; }
  .admin-ops-grid { grid-template-columns:1fr; }
  .admin-ops-grid .span-2 { grid-column:auto; }
  .ops-metrics { grid-template-columns:1fr 1fr; }
  .custom-field-list > div { grid-template-columns:1fr 38px; }
  .custom-field-list .permission { grid-column:1/-1; }
  .trash-list > div { flex-wrap:wrap; }
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family: Manrope, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
}
.hidden {
  display: none !important;
}
.login-view {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8vw;
  padding: 48px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, #18132a 0, transparent 33%), #080a0d;
}
.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.17;
}
.glow-a {
  width: 420px;
  height: 420px;
  background: #7c3aed;
  left: -180px;
  top: -100px;
}
.glow-b {
  width: 360px;
  height: 360px;
  background: #2563eb;
  right: -130px;
  bottom: -170px;
}
.login-card {
  width: min(440px, 100%);
  z-index: 2;
}
.brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-login {
  font-size: 24px;
  margin-bottom: 44px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, #a78bfa, #6d28d9);
  box-shadow: 0 8px 24px #6d28d944;
  color: white;
  font-weight: 800;
}
.brand-login .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--violet-2);
  font-weight: 800;
}
.login-card h1 {
  font-size: 46px;
  line-height: 1.13;
  letter-spacing: -2.3px;
  margin: 14px 0 18px;
}
.login-card h1 span {
  color: #9ca3af;
}
.login-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 390px;
}
.login-form {
  display: grid;
  gap: 15px;
  margin-top: 32px;
}
.login-form label,
.form-label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #c6cbd4;
  font-weight: 650;
}
.login-form input,
.field,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #101318;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 13px;
  outline: none;
  transition: 0.2s;
}
.login-form input {
  height: 48px;
}
.login-form input:focus,
.field:focus,
textarea:focus,
select:focus {
  border-color: #7c5ce0;
  box-shadow: 0 0 0 3px #7c3aed20;
}
.btn {
  height: 39px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.18s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(145deg, #8b5cf6, #7046d8);
  box-shadow: 0 7px 24px #7c3aed26;
}
.btn-soft {
  border-color: var(--line);
  background: #171a20;
}
.btn-telegram {
  background: #239ed8;
  margin-top: 10px;
}
.btn-wide {
  width: 100%;
  height: 48px;
  margin-top: 6px;
}
.btn-small {
  height: 32px;
  padding: 0 11px;
}
.login-note {
  text-align: center;
  color: var(--muted-2);
  font-size: 10px;
  margin-top: 20px;
}
.login-preview {
  width: 600px;
  height: 410px;
  z-index: 1;
  padding: 22px;
  background: linear-gradient(145deg, #161a20, #101216);
  border: 1px solid #272c35;
  border-radius: 18px;
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg);
  box-shadow: var(--shadow);
  opacity: 0.88;
}
.preview-top {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
}
.preview-top span {
  width: 10px;
  height: 10px;
  background: var(--violet);
  border-radius: 3px;
}
.preview-top small {
  margin-left: auto;
  color: var(--muted);
}
.preview-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 20px;
}
.preview-cols > div > p {
  font-size: 9px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 1.2px;
}
.preview-cols article {
  display: grid;
  gap: 10px;
  background: #1a1e24;
  border: 1px solid #262b34;
  border-radius: 10px;
  padding: 14px;
  margin: 10px 0;
  font-size: 11px;
}
.preview-cols article small {
  color: var(--muted);
  font-size: 8px;
}
.preview-cols .active {
  border-color: #6944be;
  box-shadow: 0 8px 25px #0005;
}
.preview-cols .done {
  opacity: 0.55;
}
.tag {
  width: 33px;
  height: 4px;
  border-radius: 5px;
}
.violet {
  background: var(--violet);
}
.blue {
  background: var(--blue);
}
.amber {
  background: var(--amber);
}
.green {
  background: var(--green);
}
.app {
  height: 100%;
  display: grid;
  grid-template-columns: 238px 1fr;
}
.sidebar {
  background: #0d0f13;
  border-right: 1px solid var(--line-soft);
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.workspace-switch {
  height: 59px;
  border: 1px solid var(--line);
  background: #13161b;
  border-radius: 10px;
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr 16px;
  align-items: center;
  text-align: left;
  gap: 9px;
  padding: 0 9px;
  cursor: pointer;
}
.workspace-switch > span:nth-child(2) {
  display: grid;
  gap: 2px;
}
.workspace-switch b {
  font-size: 11px;
}
.workspace-switch small {
  font-size: 8px;
  color: var(--muted);
}
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #22262f;
  font-size: 11px;
  font-weight: 800;
}
.main-nav {
  display: grid;
  gap: 3px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.main-nav button,
.board-list button,
.admin-link {
  height: 36px;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aa2af;
  font-size: 11px;
  padding: 0 10px;
  cursor: pointer;
  text-align: left;
}
.main-nav button:hover,
.board-list button:hover,
.admin-link:hover,
.main-nav button.active {
  background: #181b21;
  color: #fff;
}
.main-nav button span {
  width: 16px;
  text-align: center;
  font-size: 15px;
}
.main-nav em {
  margin-left: auto;
  background: #22262d;
  border-radius: 5px;
  padding: 2px 6px;
  font-style: normal;
  font-size: 8px;
}
.sidebar-section {
  padding-top: 17px;
  min-height: 0;
  overflow: auto;
}
.section-title {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  color: #606978;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.section-title button {
  border: 0;
  background: none;
  color: #7f8793;
  font-size: 16px;
  cursor: pointer;
}
.board-list {
  display: grid;
  gap: 3px;
}
.board-list button.active {
  background: #1a1e24;
  color: #fff;
}
.board-list i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex: 0 0 auto;
}
.board-list b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-list em {
  margin-left: auto;
  font-style: normal;
  font-size: 8px;
  color: var(--muted);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 12px 0;
}
.admin-link {
  border-bottom: 1px solid var(--line-soft);
  border-radius: 8px 8px 0 0;
}
.profile {
  margin-top: 9px;
  width: 100%;
  height: 51px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 32px 1fr 14px;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 0 8px;
  cursor: pointer;
  border-radius: 9px;
}
.profile:hover {
  background: #15181d;
}
.profile > span:nth-child(2) {
  display: grid;
  gap: 2px;
}
.profile b {
  font-size: 10px;
}
.profile small {
  font-size: 8px;
  color: var(--muted);
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #403162;
  color: #d9cbff;
  width: 31px;
  height: 31px;
  font-size: 10px;
  font-weight: 800;
}
.main {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0c0e12;
}
.topbar {
  height: 75px;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
  background: #0e1014;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.board-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--violet);
}
.crumb {
  font-size: 8px;
  color: #626a78;
  margin-bottom: 2px;
}
.topbar h2 {
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}
.star {
  background: none;
  border: 0;
  color: #737b88;
  cursor: pointer;
  font-size: 19px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.search {
  height: 36px;
  width: 210px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  background: #111419;
  color: var(--muted);
}
.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: none;
  color: white;
  outline: none;
  font-size: 10px;
}
.search kbd {
  font: 8px Manrope;
  background: #20242b;
  padding: 3px 5px;
  border-radius: 4px;
  color: #747d89;
}
.avatar-stack {
  display: flex;
  flex-direction: row-reverse;
  padding-left: 8px;
}
.avatar-stack .avatar {
  width: 27px;
  height: 27px;
  border: 2px solid #0e1014;
  margin-left: -8px;
  font-size: 8px;
}
.icon-btn {
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  background: #14171c;
  border-radius: 9px;
  cursor: pointer;
}
.mobile-only {
  display: none;
}
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.empty-icon {
  width: 70px;
  height: 70px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: #17131f;
  border: 1px solid #302647;
  color: var(--violet-2);
  font-size: 28px;
  box-shadow: 0 16px 60px #7c3aed18;
}
.empty-state h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
  margin: 22px 0 7px;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 22px;
}
.board-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.board-toolbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-soft);
}
.view-tabs {
  height: 100%;
  display: flex;
  gap: 20px;
}
.view-tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}
.view-tabs button.active {
  color: white;
}
.view-tabs button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--violet);
}
.toolbar-right {
  display: flex;
  gap: 7px;
}
.toolbar-btn {
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #13161b;
  color: #9da5b1;
  padding: 0 11px;
  font-size: 9px;
  cursor: pointer;
}
.kanban {
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 24px 30px;
  overflow: auto;
}
.column {
  width: 283px;
  flex: 0 0 283px;
  border-radius: 11px;
  background: #101318;
  border: 1px solid #1c2027;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}
.column-head {
  height: 47px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  gap: 8px;
  border-bottom: 1px solid #1b1f25;
}
.column-color {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.column-title {
  font-size: 10px;
  font-weight: 750;
}
.column-count {
  font-size: 8px;
  color: #7c8490;
  background: #1b1f25;
  padding: 2px 6px;
  border-radius: 5px;
}
.column-menu {
  margin-left: auto;
  background: none;
  border: 0;
  color: #6e7682;
  cursor: pointer;
}
.card-list {
  min-height: 50px;
  padding: 8px;
  overflow: auto;
}
.task-card {
  background: #181b21;
  border: 1px solid #242932;
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px #0002;
  transition: 0.15s;
}
.task-card:hover {
  border-color: #3a414e;
  transform: translateY(-1px);
}
.task-card.dragging {
  opacity: 0.35;
}
.task-card.drop-before {
  border-top-color: var(--violet);
}
.card-labels {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.card-label {
  height: 4px;
  width: 29px;
  border-radius: 4px;
}
.task-card h4 {
  font-size: 11px;
  line-height: 1.45;
  margin: 9px 0 11px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #79818e;
  font-size: 8px;
}
.card-meta .due.overdue {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #be123c);
  border-radius: 7px;
  padding: 4px 7px;
  font-weight: 800;
  box-shadow: 0 0 14px #ef444466;
}
.card-meta .avatar {
  margin-left: auto;
  width: 22px;
  height: 22px;
  font-size: 7px;
}
.priority-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.priority-urgent {
  background: var(--red);
}
.priority-high {
  background: var(--amber);
}
.priority-medium {
  background: var(--blue);
}
.priority-low {
  background: var(--green);
}
.add-card {
  height: 36px;
  margin: 0 8px 8px;
  border: 1px dashed #2a2f38;
  border-radius: 8px;
  background: transparent;
  color: #69727e;
  font-size: 9px;
  cursor: pointer;
}
.add-card:hover {
  border-color: #6c4fba;
  color: #b8a7e8;
}
.column-add {
  width: 260px;
  flex: 0 0 260px;
  height: 44px;
  border: 1px dashed #292e37;
  border-radius: 10px;
  background: #101318;
  color: #737b88;
  font-size: 10px;
  cursor: pointer;
}
.drop-zone {
  outline: 1px dashed #7957cc;
  outline-offset: -4px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #030405b8;
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 20px;
}
.modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #12151a;
  border: 1px solid #2a2f38;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.modal.wide {
  width: min(820px, 100%);
}
.modal-head {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 {
  font-size: 15px;
  margin: 0;
}
.modal-close {
  border: 0;
  background: #1b1f25;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  color: #8e96a3;
  cursor: pointer;
}
.modal-body {
  padding: 20px;
}
.form-grid {
  display: grid;
  gap: 15px;
}
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}
.form-actions .danger {
  margin-right: auto;
}
.danger {
  color: #ff8da0;
  border-color: #4a2931;
}
.modal textarea {
  min-height: 90px;
  resize: vertical;
}
.modal select {
  appearance: none;
}
.permissions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.permission {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 8px;
  font-size: 10px;
  color: #b3bac5;
}
.permission input {
  accent-color: var(--violet);
}
.member-row {
  display: grid;
  grid-template-columns: 35px 1fr 100px 58px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.member-row .avatar {
  width: 33px;
  height: 33px;
}
.member-row b {
  font-size: 10px;
}
.member-row small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin-top: 3px;
}
.member-row select {
  padding: 8px;
  font-size: 9px;
}
.member-row button {
  border: 0;
  background: none;
  color: #707886;
  cursor: pointer;
}
.member-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.member-actions button {
  width: 27px;
  height: 27px;
}
.invite-box {
  border: 1px solid #3d2d64;
  background: #171320;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.invite-code {
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 800;
  color: #c4b5fd;
}
.invite-box button {
  margin-left: auto;
}
.card-editor {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 22px;
}
.card-main h3 {
  font-size: 19px;
  margin: 0 0 18px;
}
.card-side {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  display: grid;
  align-content: start;
  gap: 13px;
}
.detail-row label {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 6px;
}
.detail-row select,
.detail-row input {
  font-size: 10px;
  padding: 9px;
}
.checklist-progress {
  height: 5px;
  background: #252a31;
  border-radius: 9px;
  overflow: hidden;
  margin: 8px 0 12px;
}
.checklist-progress i {
  height: 100%;
  display: block;
  background: var(--green);
}
.check-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 10px;
  padding: 5px 0;
}
.check-item input {
  accent-color: var(--green);
}
.check-item span {
  flex: 1;
}
.check-item button {
  border: 0;
  background: none;
  color: #6c7480;
  cursor: pointer;
}
.inline-form {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}
.inline-form input {
  flex: 1;
  padding: 8px 10px;
  font-size: 10px;
}
.inline-form button {
  height: 34px;
}
.comment {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  margin: 11px 0;
}
.comment .avatar {
  width: 28px;
  height: 28px;
}
.comment p {
  background: #1a1e24;
  border-radius: 8px;
  padding: 9px;
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.5;
}
.comment b {
  font-size: 9px;
}
.comment time {
  color: var(--muted);
  font-size: 7px;
  margin-left: 6px;
}
.attachment {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  margin-top: 7px;
  font-size: 9px;
}
.attachment span {
  flex: 1;
}
.activity-list {
  display: grid;
}
.activity-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.activity-item .avatar {
  width: 29px;
  height: 29px;
}
.activity-item p {
  font-size: 10px;
  margin: 0 0 4px;
}
.activity-item small {
  color: var(--muted);
  font-size: 8px;
}
.admin-view {
  padding: 38px;
  overflow: auto;
  flex: 1;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.admin-head h1 {
  font-size: 30px;
  letter-spacing: -1.2px;
  margin: 8px 0;
}
.admin-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #12151a;
  padding: 18px;
}
.stat span {
  font-size: 9px;
  color: var(--muted);
}
.stat b {
  display: block;
  font-size: 26px;
  margin-top: 8px;
}
.stat i {
  float: right;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 14px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111419;
  overflow: hidden;
}
.panel-head {
  height: 58px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 {
  font-size: 12px;
}
.panel-head input {
  height: 31px;
  width: 160px;
  border: 1px solid var(--line);
  background: #171a20;
  border-radius: 7px;
  color: white;
  padding: 0 9px;
  font-size: 9px;
}
.table-wrap {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 12px 15px;
  font-size: 8px;
  color: #6e7682;
  letter-spacing: 0.6px;
}
.data-table td {
  padding: 13px 15px;
  border-top: 1px solid var(--line-soft);
  font-size: 9px;
}
.data-table td:first-child {
  font-weight: 700;
}
.data-table small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.status-pill {
  padding: 4px 7px;
  border-radius: 5px;
  background: #153228;
  color: #66d7ad;
}
.user-list {
  padding: 3px 15px;
  max-height: 430px;
  overflow: auto;
}
.user-item {
  display: grid;
  grid-template-columns: 33px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.user-item .avatar {
  width: 32px;
  height: 32px;
}
.user-item b {
  font-size: 9px;
}
.user-item small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 3px;
}
.user-item em {
  font-size: 8px;
  font-style: normal;
  color: #8f98a6;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  max-width: 360px;
  background: #20242b;
  border: 1px solid #373e49;
  border-radius: 10px;
  padding: 12px 15px;
  box-shadow: var(--shadow);
  font-size: 11px;
  color: #f8fafc;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.22s;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast.error {
  border-color: #6d2c39;
  color: #ffabb8;
}
.toast.move {
  border-color: #60a5fa;
  background: #2563eb;
  color: #fff;
}
@media (max-width: 1050px) {
  .login-preview {
    display: none;
  }
  .search {
    display: none;
  }
  .app {
    grid-template-columns: 210px 1fr;
  }
  .topbar-actions .btn-soft {
    display: none;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  body {
    overflow: auto;
  }
  .app {
    display: block;
    height: auto;
    min-height: 100%;
  }
  .sidebar {
    position: fixed;
    z-index: 15;
    left: -250px;
    top: 0;
    bottom: 0;
    width: 238px;
    transition: 0.22s;
    box-shadow: var(--shadow);
  }
  .sidebar.open {
    left: 0;
  }
  .main {
    min-height: 100vh;
  }
  .mobile-only {
    display: block;
  }
  .topbar {
    padding: 0 12px;
  }
  .topbar-actions .avatar-stack,
  .topbar-actions .btn-soft,
  .board-menu-btn {
    display: none;
  }
  .topbar h2 {
    max-width: 130px;
  }
  .board-toolbar {
    padding: 0 12px;
  }
  .toolbar-right button:not(#addColumnBtn) {
    display: none;
  }
  .kanban {
    padding: 14px 12px;
    scroll-snap-type: x proximity;
  }
  .column {
    width: 85vw;
    flex-basis: 85vw;
    scroll-snap-align: start;
  }
  .login-view {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 36px;
  }
  .admin-view {
    padding: 24px 14px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-head {
    align-items: flex-start;
    gap: 20px;
  }
  .admin-head h1 {
    font-size: 24px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .form-grid.two,
  .form-grid.three,
  .permissions,
  .card-editor {
    grid-template-columns: 1fr;
  }
  .card-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
  }
  .modal-backdrop {
    padding: 8px;
    align-items: end;
  }
  .modal {
    border-radius: 16px 16px 0 0;
    max-height: 94vh;
  }
}

/* Крупный комфортный интерфейс */
body {
  font-size: 16px;
}
.app {
  grid-template-columns: 282px 1fr;
}
.sidebar {
  padding: 0 18px;
}
.brand {
  height: 76px;
  font-size: 25px;
  gap: 13px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 20px;
}
.workspace-switch {
  height: 70px;
  grid-template-columns: 39px 1fr 18px;
  padding: 0 12px;
  gap: 11px;
}
.workspace-avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}
.workspace-switch b {
  font-size: 14px;
}
.workspace-switch small {
  font-size: 11px;
}
.main-nav {
  gap: 5px;
  padding: 22px 0;
}
.main-nav button,
.board-list button,
.admin-link {
  height: 46px;
  font-size: 14px;
  padding: 0 12px;
  gap: 12px;
}
.main-nav button span {
  width: 20px;
  font-size: 19px;
}
.main-nav em,
.board-list em {
  font-size: 11px;
  padding: 3px 7px;
}
.sidebar-section {
  padding-top: 20px;
}
.section-title {
  height: 40px;
  font-size: 11px;
  padding: 0 11px;
}
.section-title button {
  font-size: 21px;
}
.board-list {
  gap: 5px;
}
.board-list i {
  width: 10px;
  height: 10px;
}
.board-list b {
  font-size: 14px;
}
.profile {
  height: 64px;
  grid-template-columns: 42px 1fr 18px;
  gap: 11px;
}
.profile .avatar {
  width: 40px;
  height: 40px;
  font-size: 13px;
}
.profile b {
  font-size: 13px;
}
.profile small {
  font-size: 11px;
}
.topbar {
  height: 92px;
  padding: 0 30px;
}
.topbar-left {
  gap: 15px;
}
.board-dot {
  width: 14px;
  height: 14px;
}
.crumb {
  font-size: 11px;
  margin-bottom: 4px;
}
.topbar h2 {
  font-size: 20px;
  max-width: 420px;
}
.star {
  font-size: 24px;
}
.topbar-actions {
  gap: 11px;
}
.search {
  height: 44px;
  width: 260px;
  padding: 0 12px;
}
.search input {
  font-size: 13px;
}
.search kbd {
  font-size: 10px;
}
.btn {
  height: 46px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 10px;
}
.btn-small {
  height: 38px;
  font-size: 12px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  font-size: 15px;
}
.avatar-stack .avatar {
  width: 34px;
  height: 34px;
  font-size: 10px;
}
.avatar {
  font-size: 12px;
}
.empty-icon {
  width: 84px;
  height: 84px;
  font-size: 34px;
}
.empty-state h2 {
  font-size: 28px;
}
.empty-state p {
  font-size: 15px;
}
.board-toolbar {
  height: 64px;
  padding: 0 30px;
}
.view-tabs {
  gap: 26px;
}
.view-tabs button {
  font-size: 13px;
}
.toolbar-right {
  gap: 9px;
}
.toolbar-btn {
  height: 39px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 9px;
}
.kanban {
  gap: 18px;
  padding: 24px 30px 38px;
}
.column {
  width: 340px;
  flex-basis: 340px;
  border-radius: 13px;
}
.column-head {
  height: 60px;
  padding: 0 15px;
  gap: 10px;
}
.column-color {
  width: 9px;
  height: 9px;
}
.column-title {
  font-size: 14px;
}
.column-count {
  font-size: 11px;
  padding: 3px 8px;
}
.column-menu {
  font-size: 15px;
}
.card-list {
  padding: 11px;
}
.task-card {
  padding: 16px;
  margin-bottom: 11px;
  border-radius: 11px;
}
.task-card h4 {
  font-size: 15px;
  line-height: 1.5;
  margin: 12px 0 15px;
}
.card-label {
  height: 5px;
  width: 38px;
}
.card-meta {
  gap: 12px;
  font-size: 11px;
}
.priority-dot {
  width: 7px;
  height: 7px;
}
.card-meta .avatar {
  width: 29px;
  height: 29px;
  font-size: 9px;
}
.add-card {
  height: 46px;
  margin: 0 11px 11px;
  font-size: 12px;
}
.column-add {
  width: 310px;
  flex-basis: 310px;
  height: 56px;
  font-size: 13px;
}
.modal {
  width: min(620px, 100%);
  border-radius: 18px;
}
.modal.wide {
  width: min(980px, 100%);
}
.modal-head {
  height: 74px;
  padding: 0 25px;
}
.modal-head h3 {
  font-size: 19px;
}
.modal-close {
  width: 38px;
  height: 38px;
  font-size: 20px;
}
.modal-body {
  padding: 25px;
}
.form-grid {
  gap: 19px;
}
.form-label,
.login-form label {
  font-size: 14px;
  gap: 10px;
}
.field,
textarea,
select {
  padding: 14px 15px;
  font-size: 14px;
}
.modal textarea {
  min-height: 115px;
}
.permissions {
  gap: 10px;
  margin-top: 15px;
}
.permission {
  padding: 13px;
  font-size: 13px;
}
.member-row {
  grid-template-columns: 43px 1fr 130px 68px;
  gap: 13px;
  padding: 13px 0;
}
.member-row .avatar {
  width: 41px;
  height: 41px;
  font-size: 12px;
}
.member-row b {
  font-size: 13px;
}
.member-row small {
  font-size: 11px;
  margin-top: 4px;
}
.member-row select {
  padding: 10px;
  font-size: 12px;
}
.member-actions button {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.card-editor {
  grid-template-columns: 1fr 300px;
  gap: 28px;
}
.card-main h3 {
  font-size: 23px;
}
.card-side {
  padding-left: 25px;
  gap: 17px;
}
.detail-row label {
  font-size: 11px;
  margin-bottom: 8px;
}
.detail-row select,
.detail-row input {
  font-size: 13px;
  padding: 12px;
}
.check-item {
  font-size: 13px;
  padding: 7px 0;
}
.inline-form input {
  font-size: 13px;
  padding: 11px 12px;
}
.inline-form button {
  height: 41px;
}
.comment {
  grid-template-columns: 36px 1fr;
  gap: 11px;
  margin: 14px 0;
}
.comment .avatar {
  width: 36px;
  height: 36px;
}
.comment b {
  font-size: 12px;
}
.comment time {
  font-size: 10px;
}
.comment p {
  font-size: 13px;
  padding: 12px;
}
.attachment {
  font-size: 12px;
  padding: 12px;
}
.activity-item {
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 15px 0;
}
.activity-item .avatar {
  width: 37px;
  height: 37px;
}
.activity-item p {
  font-size: 13px;
}
.activity-item small {
  font-size: 11px;
}
.admin-view {
  padding: 44px;
}
.admin-head h1 {
  font-size: 36px;
}
.admin-head p {
  font-size: 14px;
}
.stats-grid {
  gap: 16px;
  margin: 34px 0;
}
.stat {
  padding: 22px;
}
.stat span {
  font-size: 12px;
}
.stat b {
  font-size: 32px;
}
.panel-head {
  height: 70px;
  padding: 0 21px;
}
.panel-head h3 {
  font-size: 16px;
}
.panel-head input {
  height: 39px;
  width: 200px;
  font-size: 12px;
}
.data-table th {
  padding: 15px 18px;
  font-size: 11px;
}
.data-table td {
  padding: 17px 18px;
  font-size: 12px;
}
.user-list {
  padding: 4px 19px;
}
.user-item {
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  padding: 14px 0;
}
.user-item .avatar {
  width: 40px;
  height: 40px;
}
.user-item b {
  font-size: 12px;
}
.user-item small,
.user-item em {
  font-size: 11px;
}
.user-item {
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) auto 36px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, opacity 0.16s ease;
}
.user-item:hover {
  background: var(--panel-2);
}
.user-item.inactive {
  opacity: 0.56;
}
.user-item > span:nth-child(2) {
  min-width: 0;
}
.user-item b {
  display: flex;
  align-items: center;
  gap: 7px;
}
.user-admin-badge {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--text);
  color: var(--panel);
  font-size: 8px;
  font-style: normal;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.user-edit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 19px;
}
.user-item:hover .user-edit-icon {
  color: var(--text);
  border-color: var(--muted);
}
.user-account-form {
  gap: 18px;
}
.user-account-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-2);
}
.user-account-card .avatar {
  width: 52px;
  height: 52px;
}
.user-account-card span {
  min-width: 0;
}
.user-account-card b,
.user-account-card small {
  display: block;
}
.user-account-card small,
.user-account-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.account-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  cursor: pointer;
}
.account-toggle.compact {
  min-height: 70px;
}
.account-toggle input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  accent-color: var(--text);
}
.account-toggle span,
.account-toggle b,
.account-toggle small {
  display: block;
}
.account-toggle b {
  font-size: 14px;
}
.account-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.credential-editor {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-2);
}
.password-editor {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.password-editor > input {
  min-width: 0;
  flex: 1;
}
.password-editor > span {
  display: flex;
  gap: 7px;
}
.password-editor > span.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.password-editor .icon-btn,
.password-editor .btn {
  min-height: 48px;
}
[data-login-hint] {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.account-security-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.account-security-note > .material-symbols-rounded {
  margin-top: 1px;
  font-size: 24px;
}
.account-security-note p,
.account-security-note b,
.account-security-note small {
  display: block;
  margin: 0;
}
.account-security-note small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
.toast {
  font-size: 14px;
  padding: 15px 18px;
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 250px 1fr;
  }
  .sidebar {
    padding: 0 14px;
  }
  .search {
    display: none;
  }
  .column {
    width: 320px;
    flex-basis: 320px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    left: -290px;
    width: 282px;
  }
  .topbar {
    height: 78px;
    padding: 0 14px;
  }
  .topbar h2 {
    font-size: 17px;
    max-width: 150px;
  }
  .board-toolbar {
    height: 58px;
    padding: 0 14px;
  }
  .kanban {
    padding: 17px 14px;
  }
  .column {
    width: 88vw;
    flex-basis: 88vw;
  }
  .task-card h4 {
    font-size: 16px;
  }
  .card-meta {
    font-size: 12px;
  }
  .modal-body {
    padding: 20px;
  }
  .member-row {
    grid-template-columns: 42px 1fr 110px 58px;
  }
  .admin-view {
    padding: 28px 16px;
  }
}

/* Настройки, интеграции, отчёты и автоматизация */
.modal-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.settings-name {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-2);
  padding: 14px 17px;
  margin-bottom: 14px;
}
.settings-name > label {
  display: block;
  font-size: 10px;
  color: var(--violet-2);
  margin-bottom: 9px;
}
.settings-name > div {
  display: grid;
  grid-template-columns: 12px 1fr 42px 42px;
  gap: 10px;
  align-items: center;
}
.settings-name i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.settings-name input[type="text"],
.settings-name input:not([type]) {
  height: 42px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #4b5563;
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
  outline: none;
}
.settings-name input[type="color"] {
  width: 40px;
  height: 40px;
  padding: 3px;
  background: transparent;
  border: 0;
}
.settings-menu {
  display: grid;
  gap: 10px;
}
.settings-menu button {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  display: grid;
  grid-template-columns: 34px 1fr auto 18px;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  text-align: left;
  cursor: pointer;
}
.settings-menu button:hover {
  border-color: #6d4bc1;
  background: var(--panel-3);
}
.settings-menu button > span {
  color: #5ca9ff;
  font-size: 21px;
}
.settings-menu b {
  font-size: 15px;
}
.settings-menu small {
  color: var(--muted);
  font-size: 12px;
}
.settings-menu em {
  font-style: normal;
  color: var(--muted);
  font-size: 25px;
}
.settings-subtitle {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 24px 0 10px;
}
.status-settings {
  display: grid;
  gap: 10px;
}
.status-setting {
  display: grid;
  grid-template-columns: 48px 1fr 110px 130px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
}
.status-setting input[type="color"] {
  width: 44px;
  height: 42px;
  border: 0;
  background: transparent;
}
.status-setting .compact {
  min-width: 0;
}
.switch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.switch-label input {
  accent-color: var(--violet);
}
.toggle-row {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.toggle-row > span {
  display: grid;
  gap: 4px;
}
.toggle-row b {
  font-size: 14px;
}
.toggle-row small {
  font-size: 11px;
  color: var(--muted);
}
.toggle-row > input,
.automation-switch input {
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 20px;
  background: #3b414c;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
}
.toggle-row > input:after,
.automation-switch input:after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  left: 3px;
  top: 3px;
  transition: 0.2s;
  box-shadow: 0 2px 5px #0004;
}
.toggle-row > input:checked,
.automation-switch input:checked {
  background: var(--green);
}
.toggle-row > input:checked:after,
.automation-switch input:checked:after {
  left: 23px;
}
.archive-list,
.integration-list {
  display: grid;
  gap: 9px;
}
.archive-item,
.integration-item {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
  padding: 11px 14px;
}
.archive-item > span,
.integration-item > span:nth-child(2) {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.archive-item b,
.integration-item b {
  font-size: 14px;
}
.archive-item small,
.integration-item small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.integration-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.integration-head > div {
  display: flex;
  gap: 8px;
}
.integration-icon {
  width: 39px;
  height: 39px;
  display: grid !important;
  place-items: center;
  border: 1px solid #4e7aac;
  border-radius: 8px;
  color: #63b3ff;
  font-size: 9px !important;
  font-weight: 800;
  flex: 0 0 auto;
}
.secret-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid #3e3261;
  border-radius: 12px;
  background: #171421;
  padding: 14px;
}
.secret-result label {
  grid-column: 1/-1;
  font-size: 10px;
  color: var(--muted);
}
.secret-result code {
  min-width: 0;
  background: #252a33;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  color: #d8dee9;
  font-size: 12px;
}
.secret-result small {
  grid-column: 1/-1;
  color: var(--amber);
  font-size: 11px;
}
.empty-mini {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.feature-view {
  flex: 1;
  overflow: auto;
  padding: 40px;
}
.feature-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.feature-head h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 8px 0 5px;
}
.feature-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.period-select {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.period-select select {
  min-width: 140px;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.report-panel {
  min-height: 280px;
}
.report-panel.span-2 {
  grid-column: 1/-1;
  min-height: 230px;
}
.bars {
  padding: 22px;
  display: grid;
  gap: 17px;
}
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 35px;
  gap: 13px;
  align-items: center;
  font-size: 12px;
}
.bar-row > div {
  height: 12px;
  border-radius: 9px;
  background: var(--panel-3);
  overflow: hidden;
}
.bar-row i {
  display: block;
  height: 100%;
  border-radius: 9px;
  min-width: 2px;
}
.bar-row b {
  text-align: right;
}
.donut-wrap {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
}
.donut {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.donut:after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: var(--panel);
}
.donut > span {
  z-index: 1;
  font-size: 26px;
  font-weight: 800;
  display: grid;
  text-align: center;
}
.donut > span small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.donut-legend {
  display: grid;
  gap: 10px;
}
.donut-legend span {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.report-table {
  padding: 8px 20px;
}
.report-row {
  min-height: 50px;
  display: grid;
  grid-template-columns: 1fr 100px 100px;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}
.report-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.report-row .avatar {
  width: 29px;
  height: 29px;
  font-size: 9px;
}
.report-row.head {
  min-height: 38px;
  color: var(--muted);
  font-size: 10px;
}
.report-row .bad {
  color: var(--red);
}
.timeline-chart {
  height: 170px;
  padding: 20px 22px 30px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.timeline-day {
  height: 100%;
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.timeline-day i {
  width: 100%;
  min-height: 3px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(#a78bfa, #7c3aed);
}
.timeline-day small {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  font-size: 8px;
  color: var(--muted);
  white-space: nowrap;
}
.automation-explainer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 8px 0 28px;
}
.automation-node {
  padding: 12px 22px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.automation-node.accent {
  border-color: #6e50bc;
  background: #211a34;
  color: #c4b5fd;
}
.automation-explainer > b {
  color: var(--muted);
}
.automation-list {
  display: grid;
  gap: 12px;
  max-width: 1050px;
}
.automation-card {
  min-height: 94px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 13px;
  padding: 17px;
  display: grid;
  grid-template-columns: 48px 1fr 42px;
  gap: 15px;
  align-items: center;
}
.automation-card.disabled {
  opacity: 0.55;
}
.automation-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.automation-card p {
  margin: 0 0 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.automation-card p span {
  background: var(--panel-3);
  border-radius: 7px;
  padding: 6px 9px;
}
.automation-card small {
  color: var(--muted);
  font-size: 10px;
}
.automation-switch input {
  margin: 0;
}
.empty-feature {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
.empty-feature > span {
  font-size: 34px;
}
.empty-feature h3 {
  color: var(--text);
  margin: 14px 0 5px;
}
.empty-feature p {
  font-size: 13px;
}
.rule-builder {
  display: grid;
  grid-template-columns: 1fr 30px 1fr 30px 1fr;
  gap: 12px;
  align-items: start;
}
.rule-builder > div {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
  padding: 13px;
  display: grid;
  gap: 10px;
}
.rule-builder > div > span {
  font-size: 10px;
  color: var(--violet-2);
  font-weight: 800;
}
.rule-builder > b {
  align-self: center;
  text-align: center;
  color: var(--muted);
}
.rule-builder select,
.rule-builder input {
  font-size: 12px;
}

/* Светлая тема */
html[data-theme="light"] {
  --bg: #eef1f6;
  --panel: #ffffff;
  --panel-2: #f6f7fa;
  --panel-3: #e9edf3;
  --line: #d8dde7;
  --line-soft: #e7eaf0;
  --text: #18202d;
  --muted: #657083;
  --muted-2: #8a93a2;
  --shadow: 0 24px 70px rgba(49, 58, 75, 0.18);
}
html[data-theme="light"] body,
html[data-theme="light"] .main {
  background: var(--bg);
  color: var(--text);
}
html[data-theme="light"] .sidebar,
html[data-theme="light"] .topbar {
  background: #fff;
  border-color: var(--line);
}
html[data-theme="light"] .workspace-switch,
html[data-theme="light"] .main-nav button:hover,
html[data-theme="light"] .board-list button:hover,
html[data-theme="light"] .main-nav button.active,
html[data-theme="light"] .board-list button.active,
html[data-theme="light"] .admin-link:hover,
html[data-theme="light"] .profile:hover {
  background: #eef1f6;
  color: #18202d;
}
html[data-theme="light"] .workspace-avatar,
html[data-theme="light"] .main-nav em {
  background: #e2e7ef;
}
html[data-theme="light"] .search,
html[data-theme="light"] .icon-btn,
html[data-theme="light"] .btn-soft,
html[data-theme="light"] .toolbar-btn,
html[data-theme="light"] .column,
html[data-theme="light"] .panel,
html[data-theme="light"] .stat,
html[data-theme="light"] .modal {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}
html[data-theme="light"] .search input,
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  color: var(--text);
}
html[data-theme="light"] .field,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .login-form input {
  background: #fff;
  border-color: #ccd3df;
}
html[data-theme="light"] .task-card {
  background: #fff !important;
  color: #18202d !important;
  border-color: #d9dee8;
  box-shadow: 0 3px 12px rgba(31, 41, 55, 0.08);
}
html[data-theme="light"] .task-card h4 {
  color: #18202d !important;
}
html[data-theme="light"] .card-list,
html[data-theme="light"] .column {
  background: #f5f7fa;
}
html[data-theme="light"] .column-head {
  background: #fff;
}
html[data-theme="light"] .modal-backdrop {
  background: #33415566;
}
html[data-theme="light"] .login-view {
  background:
    radial-gradient(circle at 15% 15%, #ede9fe 0, transparent 34%), #f5f7fb;
}
html[data-theme="light"] .login-card h1 span {
  color: #697386;
}
html[data-theme="light"] .login-preview {
  background: linear-gradient(145deg, #fff, #eef1f6);
  border-color: #d8dde7;
}
html[data-theme="light"] .preview-cols article {
  background: #fff;
  border-color: #d8dde7;
}
html[data-theme="light"] .settings-name,
html[data-theme="light"] .settings-menu button,
html[data-theme="light"] .status-setting,
html[data-theme="light"] .toggle-row,
html[data-theme="light"] .archive-item,
html[data-theme="light"] .integration-item,
html[data-theme="light"] .automation-card,
html[data-theme="light"] .rule-builder > div {
  background: #fff;
}
html[data-theme="light"] .secret-result {
  background: #f3f0ff;
}
html[data-theme="light"] .secret-result code {
  background: #e7eaf0;
  color: #263244;
}
html[data-theme="light"] .automation-node.accent {
  background: #ede9fe;
  color: #5b3eab;
}
html[data-theme="light"] .donut:after {
  background: #fff;
}
html[data-theme="light"] .view-tabs button.active {
  color: var(--text);
}
@media (max-width: 900px) {
  .feature-view {
    padding: 26px 16px;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .report-panel.span-2 {
    grid-column: auto;
  }
  .rule-builder {
    grid-template-columns: 1fr;
  }
  .rule-builder > b {
    transform: rotate(90deg);
  }
  .status-setting {
    grid-template-columns: 44px 1fr;
  }
  .status-setting .compact,
  .status-setting .switch-label {
    grid-column: 2;
  }
  .integration-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .bar-row {
    grid-template-columns: 100px 1fr 28px;
  }
}

/* Аватары, плотная рабочая карточка и мобильная навигация приложения */
.avatar,
.activity-page-avatar {
  overflow: hidden;
  flex: 0 0 auto;
}
.avatar img,
.activity-page-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.member-row .avatar {
  width: 46px;
  height: 46px;
}
.member-row b {
  font-size: 14px;
}
.member-row small {
  font-size: 12px;
}
.card-editor {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}
.detail-row select,
.detail-row input {
  min-height: 52px;
  font-size: 15px;
  border-radius: 14px;
}
.checklist-title,
.comments-title {
  font-size: 15px;
  font-weight: 800;
}
.checklist-add,
.comment-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 9px;
}
.checklist-add input,
.comment-add input {
  min-width: 0;
  min-height: 48px;
}
.checklist-add button {
  width: 50px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 23px;
  border-radius: 13px;
}
.comment-add button {
  min-height: 48px;
  height: 48px;
  padding-inline: 20px;
}
.comment p {
  font-size: 14px;
  line-height: 1.55;
  padding: 12px 14px;
}
.comment b {
  font-size: 13px;
}
.comment time {
  font-size: 11px;
}
.mobile-profile {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #294064;
  cursor: pointer;
}

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }
  .app {
    min-height: 100dvh;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .sidebar,
  .sidebar.open {
    position: fixed;
    z-index: 60;
    inset: auto 0 0 0;
    width: 100%;
    height: calc(76px + env(safe-area-inset-bottom));
    padding: 7px 8px env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid var(--line);
    background: #0c1119f7;
    box-shadow: 0 -12px 35px #00000042;
    backdrop-filter: blur(18px);
    transform: none;
  }
  .sidebar .brand,
  .sidebar .sidebar-bottom {
    display: none;
  }
  .sidebar .main-nav {
    width: 100%;
    height: 62px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
  }
  .sidebar .main-nav button {
    min-width: 0;
    height: 62px;
    padding: 5px 2px;
    border: 0;
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    font-size: 0;
    white-space: nowrap;
    position: relative;
  }
  .sidebar .main-nav button::after {
    font-size: 10px;
    line-height: 1;
  }
  .sidebar .main-nav [data-nav="boards"]::after {
    content: "Доски";
  }
  .sidebar .main-nav [data-nav="my"]::after {
    content: "Мои";
  }
  .sidebar .main-nav [data-nav="templates"]::after {
    content: "Шаблоны";
    font-size: 9px;
  }
  .sidebar .main-nav [data-nav="activity"]::after {
    content: "Лента";
  }
  .sidebar .main-nav [data-nav="reports"]::after {
    content: "Отчёты";
  }
  .sidebar .main-nav [data-nav="automations"]::after {
    content: "Авто";
  }
  .sidebar .main-nav button > span {
    width: auto;
    height: 25px;
  }
  .sidebar .main-nav button > span::before {
    font-size: 24px;
  }
  .sidebar .main-nav button.active {
    color: #fff;
    background: #172a4a;
  }
  .sidebar .main-nav em {
    position: absolute;
    top: 5px;
    right: 12px;
    padding: 1px 5px;
    font-size: 8px;
  }
  #mobileMenu {
    display: none !important;
  }
  .mobile-profile {
    display: grid !important;
    place-items: center;
  }
  .main {
    min-height: calc(100dvh - 76px);
    height: calc(100dvh - 76px - env(safe-area-inset-bottom));
    overflow: hidden;
  }
  .topbar {
    position: sticky;
    z-index: 25;
    top: 0;
    height: 70px;
    padding: 0 12px;
    background: #0a0f17f2;
    backdrop-filter: blur(16px);
  }
  .topbar-left {
    min-width: 0;
    gap: 8px;
  }
  .topbar-left .crumb,
  .topbar-left .star,
  .topbar-actions #membersBtn,
  .topbar-actions #shareBtn,
  .topbar-actions .avatar-stack {
    display: none;
  }
  .topbar h2 {
    max-width: 42vw;
    font-size: 16px;
  }
  .topbar-actions {
    gap: 7px;
  }
  #boardMenuBtn,
  .board-back {
    width: 42px;
    height: 42px;
  }
  .board-view {
    height: calc(100dvh - 146px - env(safe-area-inset-bottom));
  }
  .board-toolbar {
    height: 54px;
    padding: 0 12px;
  }
  .view-tabs button {
    height: 54px;
    font-size: 13px;
  }
  .kanban {
    height: calc(100dvh - 200px - env(safe-area-inset-bottom));
    padding: 14px 12px 22px;
  }
  .column {
    width: 86vw;
    flex-basis: 86vw;
    max-height: 100%;
  }
  .boards-overview,
  .feature-view,
  .admin-view {
    height: calc(100dvh - 146px - env(safe-area-inset-bottom));
    overflow: auto;
    padding-bottom: 32px;
  }
  .modal-backdrop {
    z-index: 100;
    padding: 0;
    align-items: flex-end;
  }
  .modal,
  .modal.wide {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - env(safe-area-inset-top));
    border-radius: 20px 20px 0 0;
  }
  .modal-head {
    position: sticky;
    z-index: 4;
    top: 0;
    height: 68px;
    padding: 0 18px;
    background: var(--panel);
  }
  .modal-body {
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
  }
  .card-editor {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .card-side {
    padding: 22px 0 0;
  }
  .checklist-add,
  .comment-add {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .comment-add button {
    padding-inline: 14px;
  }
  .member-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }
  .member-row > select,
  .member-row > .member-actions {
    grid-column: 2;
    width: 100%;
  }
  .profile-summary {
    grid-template-columns: 48px 1fr;
  }
}

/* Двухуровневая навигация по доскам */
.main.boards-mode .topbar {
  display: none;
}
.boards-overview {
  flex: 1;
  overflow: auto;
  padding: 52px clamp(28px, 7vw, 110px);
}
.boards-overview-head {
  max-width: 1080px;
  margin: 0 auto 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.boards-overview-head h1 {
  margin: 8px 0 6px;
  font-size: 38px;
  letter-spacing: -1.3px;
}
.boards-overview-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.boards-overview-list {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.board-overview-row {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel-2);
  color: var(--text);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 7px 24px #00000012;
  transition: 0.18s ease;
}
.board-overview-row:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  background: #182337;
  box-shadow: 0 12px 30px #2563eb16;
}
.board-overview-main,
.board-overview-side {
  display: flex;
  align-items: center;
}
.board-overview-main {
  min-width: 0;
  gap: 14px;
}
.board-overview-main > i {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #ffffff0a;
}
.board-overview-main > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.board-overview-main b {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-overview-main small {
  color: var(--muted);
  font-size: 11px;
}
.board-overview-side {
  gap: 16px;
}
.board-overview-side > strong {
  color: #60a5fa;
  font-size: 28px;
  font-weight: 400;
}
.board-overview-avatars {
  display: flex;
  flex-direction: row-reverse;
  padding-left: 12px;
}
.board-overview-avatars img,
.board-overview-avatars > span,
.board-overview-avatars > em {
  width: 36px;
  height: 36px;
  margin-left: -10px;
  border: 3px solid var(--panel-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: #1e3a8a;
  color: #dbeafe;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.board-overview-avatars > em {
  background: #eff6ff;
  color: #1d4ed8;
}
.boards-overview-empty {
  min-height: 360px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}
.boards-overview-empty > span {
  color: #60a5fa;
  font-size: 48px;
}
.boards-overview-empty h2 {
  margin: 16px 0 5px;
  color: var(--text);
}
.boards-overview-empty p {
  margin: 0 0 20px;
}
.board-back {
  flex: 0 0 auto;
  font-family: "Material Symbols Rounded";
  font-size: 0;
}
.board-back::before {
  content: "arrow_back";
  color: #60a5fa;
  font-size: 26px;
}
html[data-theme="light"] .board-overview-row {
  background: #fff;
  box-shadow: 0 8px 24px #47556912;
}
html[data-theme="light"] .board-overview-row:hover {
  background: #eff6ff;
}
html[data-theme="light"] .board-overview-avatars img,
html[data-theme="light"] .board-overview-avatars > span,
html[data-theme="light"] .board-overview-avatars > em {
  border-color: #fff;
}
@media (max-width: 720px) {
  .boards-overview {
    padding: 28px 14px;
  }
  .boards-overview-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }
  .boards-overview-head h1 {
    font-size: 30px;
  }
  .boards-overview-head .btn {
    width: 100%;
  }
  .board-overview-row {
    min-height: 74px;
    padding: 12px 14px;
  }
  .board-overview-main small {
    display: none;
  }
  .board-overview-avatars img,
  .board-overview-avatars > span,
  .board-overview-avatars > em {
    width: 32px;
    height: 32px;
  }
}

/* Синяя дизайн-система и обновлённые контролы */
:root {
  --violet: #2563eb;
  --violet-2: #60a5fa;
  --blue: #3b82f6;
}
.brand-mark,
.btn-primary {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  box-shadow: 0 9px 26px #2563eb35;
}
.avatar {
  background: #172554;
  color: #bfdbfe;
}
.login-view {
  background:
    radial-gradient(circle at 15% 15%, #0c2a5c 0, transparent 36%), #080b11;
}
.glow-a {
  background: #2563eb;
}
.preview-cols .active,
.settings-menu button:hover {
  border-color: #3b82f6;
}
.empty-icon,
.automation-node.accent {
  color: #93c5fd;
  border-color: #1e40af;
  background: #0b1f42;
}
.timeline-day i {
  background: linear-gradient(#60a5fa, #2563eb);
}
.login-form input,
.field,
textarea,
select,
.panel-head input {
  min-height: 50px;
  border-radius: 14px;
  border-color: #2d3748;
  background: #0e131c;
  padding: 13px 16px;
}
.login-form input:focus,
.field:focus,
textarea:focus,
select:focus,
.panel-head input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px #2563eb24;
}
.permission,
.toggle-row,
.status-setting,
.settings-menu button,
.archive-item,
.integration-item,
.automation-card,
.rule-builder > div {
  border-radius: 16px;
}
.permission input[type="checkbox"],
.switch-label input[type="checkbox"],
.check-item input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 1px solid #526075;
  border-radius: 7px;
  background: #0e131c;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.18s ease;
}
.permission input[type="checkbox"]::after,
.switch-label input[type="checkbox"]::after,
.check-item input[type="checkbox"]::after {
  content: "✓";
  color: white;
  font-size: 14px;
  font-weight: 900;
  transform: scale(0);
  transition: 0.16s ease;
}
.permission input[type="checkbox"]:checked,
.switch-label input[type="checkbox"]:checked,
.check-item input[type="checkbox"]:checked {
  border-color: #3b82f6;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  box-shadow: 0 0 0 4px #2563eb20;
}
.permission input[type="checkbox"]:checked::after,
.switch-label input[type="checkbox"]:checked::after,
.check-item input[type="checkbox"]:checked::after {
  transform: scale(1);
}
.toggle-row > input:checked,
.automation-switch input:checked {
  background: #2563eb;
}
.native-color-input {
  display: none;
}
.color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 214px;
}
.color-presets button {
  width: 30px;
  height: 30px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px #ffffff24;
  cursor: pointer;
  position: relative;
  transition: 0.16s ease;
}
.color-presets button:hover {
  transform: translateY(-2px) scale(1.04);
}
.color-presets button.active {
  border-color: white;
  box-shadow: 0 0 0 3px #3b82f6;
}
.color-presets button.active::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  text-shadow: 0 1px 3px #0008;
}
.status-setting {
  grid-template-columns: minmax(214px, auto) minmax(180px, 1fr) 120px 150px;
  padding: 16px;
  gap: 14px;
}
.modal-titlebar {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-back {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: #93c5fd;
  font-size: 22px;
  cursor: pointer;
  transition: 0.18s ease;
}
.modal-back:hover {
  border-color: #3b82f6;
  background: #10254a;
}
.main-nav button,
.board-list button,
.admin-link {
  min-height: 50px;
  border-radius: 12px;
}
.main-nav button > span,
.settings-menu button > span {
  font-family: "Material Symbols Rounded";
  font-size: 0;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}
.main-nav button > span::before {
  font-size: 25px;
  color: #60a5fa;
}
.main-nav [data-nav="boards"] > span::before {
  content: "dashboard";
}
.main-nav [data-nav="my"] > span::before {
  content: "task_alt";
}
.main-nav [data-nav="templates"] > span::before {
  content: "library_add";
}
.main-nav [data-nav="activity"] > span::before {
  content: "history";
}
.main-nav [data-nav="reports"] > span::before {
  content: "analytics";
}
.main-nav [data-nav="automations"] > span::before {
  content: "bolt";
}
.settings-menu button > span::before {
  font-size: 28px;
  color: #60a5fa;
}
.settings-menu [data-settings="statuses"] > span::before {
  content: "view_kanban";
}
.settings-menu [data-settings="notifications"] > span::before {
  content: "notifications";
}
.settings-menu [data-settings="tasks"] > span::before {
  content: "tune";
}
.settings-menu [data-settings="users"] > span::before {
  content: "group";
}
.settings-menu [data-settings="archive"] > span::before {
  content: "archive";
}
.settings-menu [data-settings="integrations"] > span::before {
  content: "hub";
}
.settings-menu [data-settings="automations"] > span::before {
  content: "bolt";
}
.settings-menu [data-settings="actions"] > span::before {
  content: "history";
}
.settings-menu [data-settings="share"] > span::before {
  content: "share";
}
.settings-menu button {
  min-height: 70px;
  grid-template-columns: 40px 1fr auto 20px;
}
.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 18px;
}
.board-back {
  font-size: 0 !important;
}
.settings-name > div {
  grid-template-columns: 12px minmax(180px, 1fr) minmax(214px, auto) 48px;
}
.settings-name .color-presets {
  justify-content: flex-end;
}
.color-presets button:disabled {
  cursor: default;
  opacity: 0.55;
  transform: none;
}
.activity-view {
  padding: 46px 54px 70px;
  overflow: auto;
}
.activity-page-head,
.activity-page-list {
  width: min(1080px, 100%);
  margin-inline: auto;
}
.activity-page-list {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: 0 18px 48px #00000020;
}
.activity-page-item {
  min-height: 116px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  position: relative;
}
.activity-page-item + .activity-page-item {
  border-top: 1px solid var(--line);
}
.activity-page-avatar {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #dbeafe;
  background: linear-gradient(145deg, #2563eb, #1e3a8a);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 20px #2563eb30;
}
.activity-page-content header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.activity-page-content header b {
  font-size: 14px;
}
.activity-page-content time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.activity-page-content h3 {
  margin: 8px 0 0;
  color: #93c5fd;
  font-size: 16px;
}
.activity-page-content p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.activity-page-empty {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
}
.activity-page-empty > span {
  color: #60a5fa;
  font-size: 46px;
}
.activity-page-empty h2 {
  margin: 14px 0 6px;
  color: var(--text);
}
.activity-page-empty p {
  margin: 0;
}
.report-tools {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.export-actions {
  display: flex;
  gap: 8px;
}
.export-actions .btn {
  min-width: 78px;
}
html[data-theme="light"] .permission input[type="checkbox"],
html[data-theme="light"] .switch-label input[type="checkbox"],
html[data-theme="light"] .check-item input[type="checkbox"] {
  background: #fff;
  border-color: #b8c2d1;
}
html[data-theme="light"] .permission input[type="checkbox"]:checked,
html[data-theme="light"] .switch-label input[type="checkbox"]:checked,
html[data-theme="light"] .check-item input[type="checkbox"]:checked {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  border-color: #2563eb;
}
html[data-theme="light"] .automation-node.accent,
html[data-theme="light"] .secret-result {
  background: #eff6ff;
  color: #1d4ed8;
}
html[data-theme="light"] .login-view {
  background:
    radial-gradient(circle at 15% 15%, #dbeafe 0, transparent 36%), #f5f8fc;
}
@media (max-width: 900px) {
  .status-setting {
    grid-template-columns: 1fr;
  }
  .status-setting .compact,
  .status-setting .switch-label {
    grid-column: auto;
  }
  .report-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .settings-name > div {
    grid-template-columns: 12px 1fr 48px;
  }
  .settings-name .color-presets {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .activity-view {
    padding: 28px 16px 48px;
  }
  .activity-page-item {
    padding: 20px;
  }
}

/* Библиотека шаблонов задач */
.templates-view {
  overflow: auto;
  padding-bottom: 70px;
}
.templates-toolbar {
  max-width: 1280px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.template-search {
  width: min(460px, 100%);
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  gap: 11px;
  color: #60a5fa;
}
.template-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
}
.template-summary {
  display: flex;
  gap: 9px;
}
.template-summary span {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  background: var(--panel-2);
}
.template-summary b {
  color: #93c5fd;
  font-size: 15px;
}
.template-list {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 18px;
}
.template-card {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--template-color) 10%, transparent), transparent 105px),
    var(--panel-2);
  box-shadow: 0 12px 34px #0000001f;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: 0.18s ease;
}
.template-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--template-color);
}
.template-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--template-color) 70%, var(--line));
  box-shadow: 0 18px 44px #00000030;
}
.template-card header,
.template-card footer,
.template-card footer > div,
.template-facts,
.template-tags {
  display: flex;
  align-items: center;
}
.template-card header {
  justify-content: space-between;
  margin-bottom: 18px;
}
.template-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--template-color);
  box-shadow: 0 9px 24px color-mix(in srgb, var(--template-color) 35%, transparent);
  font-size: 20px;
}
.template-visibility {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #0b1018aa;
  font-size: 10px;
}
.template-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.template-card h4 {
  margin: 0 0 10px;
  color: #bfdbfe;
  font-size: 14px;
  line-height: 1.45;
}
.template-card > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.template-tags,
.template-facts {
  flex-wrap: wrap;
  gap: 7px;
}
.template-tags {
  margin-bottom: 12px;
}
.template-tags span,
.template-import-preview em {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--tag-color) 55%, transparent);
  border-radius: 8px;
  color: color-mix(in srgb, var(--tag-color) 60%, white);
  background: color-mix(in srgb, var(--tag-color) 12%, transparent);
  font-size: 10px;
  font-style: normal;
}
.template-facts span {
  padding: 6px 8px;
  border-radius: 8px;
  color: #9aa9bd;
  background: #0d131d;
  font-size: 10px;
}
.template-card footer {
  margin-top: auto;
  padding-top: 18px;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
}
.template-card footer small {
  color: var(--muted);
  line-height: 1.4;
}
.template-card footer > div {
  gap: 7px;
}
.templates-empty {
  grid-column: 1 / -1;
  min-height: 390px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}
.templates-empty > span {
  font-size: 50px;
  color: #60a5fa;
}
.templates-empty h2 {
  margin: 14px 0 5px;
  color: var(--text);
}
.templates-empty p {
  margin: 0 0 18px;
}
.template-editor-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
}
.template-editor-main,
.template-editor-side {
  display: grid;
  align-content: start;
  gap: 18px;
}
.template-editor-side {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.template-checklist-input {
  min-height: 150px;
}
.template-builder-head {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#templateTagRows {
  display: grid;
  gap: 9px;
}
.template-tag-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 140px 18px 38px;
  align-items: center;
  gap: 8px;
}
.template-tag-row select {
  min-height: 48px;
}
.template-tag-row > i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #ffffff0a;
}
.template-tag-row > button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #fb7185;
  background: transparent;
  cursor: pointer;
}
.template-self-assign {
  margin-top: 0;
}
.template-preview-note {
  padding: 15px;
  border: 1px solid #1d4ed866;
  border-radius: 14px;
  background: #10234a66;
  display: grid;
  gap: 6px;
}
.template-preview-note b {
  color: #bfdbfe;
  font-size: 12px;
}
.template-preview-note span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.template-editor-actions {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}
.template-import-form {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
}
.template-import-preview {
  min-height: 330px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--template-color) 55%, var(--line));
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 5%, color-mix(in srgb, var(--template-color) 22%, transparent), transparent 55%),
    #0b111a;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.template-import-preview > span {
  color: var(--template-color);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}
.template-import-preview h3 {
  margin: 20px 0 10px;
  font-size: 21px;
  line-height: 1.35;
}
.template-import-preview p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.template-import-preview > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.template-import-preview small {
  margin-top: auto;
  color: #9fb2cc;
}

@media (max-width: 1120px) {
  .template-list {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }
}
@media (max-width: 720px) {
  .templates-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .templates-head .btn,
  .template-search {
    width: 100%;
  }
  .templates-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .template-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .template-list {
    grid-template-columns: 1fr;
  }
  .template-card {
    min-height: 310px;
  }
  .template-card footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .template-card footer > div,
  .template-card footer .btn {
    width: 100%;
  }
  .template-editor-form,
  .template-import-form {
    grid-template-columns: 1fr;
  }
  .template-editor-side {
    padding: 22px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .template-tag-row {
    grid-template-columns: minmax(0, 1fr) 112px 14px 38px;
  }
  .template-editor-actions {
    grid-template-columns: 1fr 1fr;
  }
  .template-editor-actions > span {
    display: none;
  }
  .template-editor-actions .danger {
    grid-column: 1 / -1;
  }
  .template-import-preview {
    min-height: 250px;
  }
}

/* Final typography and responsive polish */
body {
  font-size: 16px;
  line-height: 1.45;
}
button,
input,
textarea,
select {
  font-size: 15px;
}
.btn,
.toolbar-btn,
.main-nav button {
  font-size: 15px;
}
.form-label,
.detail-row > label,
.section-caption small {
  font-size: 13px;
}
.form-label small,
.login-note,
.modal-copy,
.task-card small,
.card-meta,
.comment time {
  font-size: 12px;
}
.task-card h4,
.column-title {
  font-size: 15px;
  line-height: 1.42;
}
.modal-head h3 {
  font-size: 20px;
}
.topbar h2 {
  font-size: 20px;
}
.field,
textarea,
select {
  min-height: 50px;
  padding: 12px 15px;
}
.btn {
  min-height: 46px;
  padding: 11px 17px;
}
.dependency-box .inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}
.dependency-box .inline-form .btn {
  min-width: 118px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  html,
  body,
  .app,
  .main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  body {
    font-size: 16px;
  }
  .app {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .main {
    height: calc(100dvh - 78px - env(safe-area-inset-bottom));
    min-height: 0;
  }
  .topbar {
    position: relative;
    width: 100%;
    height: 68px;
    min-height: 68px;
    padding: 0 10px;
    gap: 8px;
    overflow: hidden;
  }
  .topbar-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .topbar h2 {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
  }
  .topbar-actions {
    flex: 0 0 auto;
    min-width: 0;
    gap: 6px;
  }
  .topbar .search,
  .topbar #membersBtn,
  .topbar #shareBtn,
  .topbar #boardMenuBtn,
  .topbar .avatar-stack,
  .topbar .crumb,
  .topbar .star {
    display: none !important;
  }
  .notification-btn {
    position: relative !important;
    inset: auto !important;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .mobile-profile,
  .board-back {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .board-dot {
    flex: 0 0 12px;
  }
  .board-view {
    width: 100%;
    height: calc(100% - 68px);
    min-height: 0;
    overflow: hidden;
  }
  .board-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 96px;
    padding: 0 10px;
    gap: 0;
    overflow: hidden;
  }
  .view-tabs,
  .toolbar-right {
    display: flex;
    flex: 0 0 48px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .view-tabs::-webkit-scrollbar,
  .toolbar-right::-webkit-scrollbar,
  .kanban::-webkit-scrollbar {
    display: none;
  }
  .view-tabs button,
  .toolbar-right button {
    flex: 0 0 auto;
    height: 48px;
    min-height: 48px;
    padding: 0 15px;
    font-size: 13px;
    scroll-snap-align: start;
  }
  .toolbar-right #bulkBtn,
  .toolbar-right #trashBtn,
  .toolbar-right #addColumnBtn {
    display: none;
  }
  .kanban {
    display: flex;
    width: 100%;
    max-width: 100vw;
    height: calc(100% - 96px);
    padding: 12px 10px 20px;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .column {
    width: calc(100vw - 20px);
    min-width: calc(100vw - 20px);
    flex: 0 0 calc(100vw - 20px);
    max-height: 100%;
    scroll-snap-align: start;
  }
  .column-head {
    min-height: 62px;
    padding: 0 16px;
  }
  .task-card {
    padding: 16px;
  }
  .sidebar,
  .sidebar.open {
    height: calc(78px + env(safe-area-inset-bottom));
    padding: 7px 6px env(safe-area-inset-bottom);
  }
  .sidebar .main-nav,
  .sidebar .main-nav button {
    height: 64px;
  }
  .sidebar .main-nav button::after {
    font-size: 11px;
  }
  .sidebar .main-nav [data-nav="templates"]::after {
    font-size: 10px;
  }
  .modal,
  .modal.wide {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .modal-body {
    padding: 18px 14px calc(28px + env(safe-area-inset-bottom));
  }
  .form-grid.two,
  .template-editor-form,
  .card-editor {
    grid-template-columns: 1fr;
  }
  .dependency-box .inline-form {
    grid-template-columns: 1fr;
  }
  .dependency-box .inline-form .btn {
    width: 100%;
  }
  .board-data-view,
  .calendar-view {
    min-width: 720px;
  }
}

/* Monochrome interface */
:root {
  --violet: #262626;
  --violet-2: #525252;
  --blue: #404040;
  --radius: 12px;
}
.brand-mark,
.btn-primary {
  background: #1f1f1f;
  color: #fff;
  box-shadow: none;
}
.btn:hover {
  transform: none;
}
.eyebrow,
.link-btn,
.view-tabs button.active,
.toolbar-btn.active {
  color: #262626;
}
.view-tabs button.active::after,
.checklist-progress i,
.toggle-row > input:checked,
.automation-switch input:checked {
  background: #262626;
}
.main-nav button > span,
.settings-menu button > span,
.admin-link > span,
.toolbar-btn .material-symbols-rounded,
.icon-btn .material-symbols-rounded {
  color: #737373;
}
.main-nav button:hover > span,
.main-nav button.active > span,
.settings-menu button:hover > span,
.admin-link:hover > span,
.icon-btn:hover .material-symbols-rounded {
  color: #171717;
}
.theme-btn .material-symbols-rounded,
.notification-btn .material-symbols-rounded {
  font-size: 23px;
}
.login-form input:focus,
.field:focus,
textarea:focus,
select:focus,
.panel-head input:focus {
  border-color: #737373;
  box-shadow: 0 0 0 3px rgba(38, 38, 38, .1);
}
.permission input[type="checkbox"]:checked,
.switch-label input[type="checkbox"]:checked,
.check-item input[type="checkbox"]:checked {
  border-color: #262626;
  background: #262626;
  box-shadow: 0 0 0 3px rgba(38, 38, 38, .1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f7;
  --panel: #ffffff;
  --panel-2: #f5f5f5;
  --panel-3: #ededed;
  --line: #dedede;
  --border: #dedede;
  --line-soft: #e9e9e9;
  --text: #171717;
  --muted: #666666;
  --muted-2: #949494;
  --shadow: 0 18px 50px rgba(0, 0, 0, .1);
}
html[data-theme="light"] body,
html[data-theme="light"] .main,
html[data-theme="light"] .kanban {
  background: #f7f7f7;
  color: #171717;
}
html[data-theme="light"] .sidebar,
html[data-theme="light"] .topbar,
html[data-theme="light"] .board-toolbar {
  background: #fff;
  border-color: #e5e5e5;
}
html[data-theme="light"] .sidebar {
  box-shadow: 1px 0 0 #e5e5e5;
}
html[data-theme="light"] .main-nav,
html[data-theme="light"] .admin-link,
html[data-theme="light"] .modal-head,
html[data-theme="light"] .card-side {
  border-color: #e5e5e5;
}
html[data-theme="light"] .main-nav button,
html[data-theme="light"] .board-list button,
html[data-theme="light"] .admin-link,
html[data-theme="light"] .profile {
  color: #5f5f5f;
}
html[data-theme="light"] .main-nav button:hover,
html[data-theme="light"] .main-nav button.active,
html[data-theme="light"] .board-list button:hover,
html[data-theme="light"] .board-list button.active,
html[data-theme="light"] .admin-link:hover,
html[data-theme="light"] .profile:hover {
  background: #f1f1f1;
  color: #171717;
}
html[data-theme="light"] .main-nav em,
html[data-theme="light"] .workspace-avatar,
html[data-theme="light"] .column-count {
  background: #ededed;
  color: #595959;
}
html[data-theme="light"] .avatar {
  background: #e7e7e7;
  color: #262626;
}
html[data-theme="light"] .search,
html[data-theme="light"] .icon-btn,
html[data-theme="light"] .btn-soft,
html[data-theme="light"] .toolbar-btn {
  background: #fff;
  border-color: #dcdcdc;
  color: #404040;
  box-shadow: none;
}
html[data-theme="light"] .search:focus-within,
html[data-theme="light"] .icon-btn:hover,
html[data-theme="light"] .btn-soft:hover,
html[data-theme="light"] .toolbar-btn:hover {
  border-color: #8a8a8a;
  background: #f5f5f5;
}
html[data-theme="light"] .search input {
  color: #171717;
}
html[data-theme="light"] .search kbd {
  background: #ededed;
  color: #666;
}
html[data-theme="light"] .avatar-stack .avatar {
  border-color: #fff;
}
html[data-theme="light"] .view-tabs button {
  color: #737373;
}
html[data-theme="light"] .view-tabs button.active,
html[data-theme="light"] .toolbar-btn.active {
  color: #171717;
  background: transparent;
  border-color: transparent;
}
html[data-theme="light"] .column {
  background: #f5f5f5;
  border-color: #dedede;
  box-shadow: none;
}
html[data-theme="light"] .column-head,
html[data-theme="light"] .card-list {
  background: transparent;
  border-color: #e1e1e1;
}
html[data-theme="light"] .task-card {
  background: #fff !important;
  border-color: #dedede;
  color: #171717 !important;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .04);
}
html[data-theme="light"] .task-card:hover {
  border-color: #9c9c9c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .07);
}
html[data-theme="light"] .task-card h4 {
  color: #171717 !important;
}
html[data-theme="light"] .card-blockers button {
  border-color: #d5d5d5;
  background: #f3f3f3;
  color: #343434;
}
html[data-theme="light"] .card-blockers .material-symbols-rounded,
html[data-theme="light"] .card-blockers small,
html[data-theme="light"] .card-blockers b {
  color: #343434;
}
html[data-theme="light"] .modal-backdrop {
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(3px);
}
html[data-theme="light"] .modal,
html[data-theme="light"] .panel,
html[data-theme="light"] .stat,
html[data-theme="light"] .settings-name,
html[data-theme="light"] .settings-menu button,
html[data-theme="light"] .status-setting,
html[data-theme="light"] .toggle-row,
html[data-theme="light"] .archive-item,
html[data-theme="light"] .integration-item,
html[data-theme="light"] .automation-card,
html[data-theme="light"] .rule-builder > div,
html[data-theme="light"] .board-data-view,
html[data-theme="light"] .calendar-view {
  background: #fff;
  border-color: #dedede;
  color: #171717;
  box-shadow: none;
}
html[data-theme="light"] .settings-menu button:hover {
  background: #f3f3f3;
  border-color: #bdbdbd;
}
html[data-theme="light"] .modal-close {
  background: #ededed;
  color: #595959;
}
html[data-theme="light"] .form-label,
html[data-theme="light"] .detail-row > label,
html[data-theme="light"] .section-caption {
  color: #525252;
}
html[data-theme="light"] .field,
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .login-form input,
html[data-theme="light"] .panel-head input {
  background: #fff;
  border-color: #cecece;
  color: #171717;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #929292;
}
html[data-theme="light"] .comment,
html[data-theme="light"] .check-item,
html[data-theme="light"] .dependency-item,
html[data-theme="light"] .member-row {
  border-color: #e7e7e7;
}
html[data-theme="light"] .comment p {
  background: #f3f3f3;
  color: #333;
}
html[data-theme="light"] .auto-link {
  color: #1d4ed8;
}
html[data-theme="light"] .notification-list > button {
  background: #fff;
  border-color: #dedede;
  color: #171717;
}
html[data-theme="light"] .notification-list > button.unread {
  background: #f0f0f0;
  border-color: #737373;
}
html[data-theme="light"] .notification-list .material-symbols-rounded {
  background: #e8e8e8;
  color: #262626;
}
html[data-theme="light"] .login-view {
  background: #f7f7f7;
}
html[data-theme="light"] .login-card h1 span {
  color: #595959;
}
html[data-theme="light"] .login-preview,
html[data-theme="light"] .preview-cols article {
  background: #fff;
  border-color: #dedede;
  color: #171717;
  box-shadow: none;
}
html[data-theme="light"] .login-glow {
  opacity: .08;
  background: #000;
}

html[data-theme="dark"] {
  --bg: #101010;
  --panel: #151515;
  --panel-2: #1c1c1c;
  --panel-3: #242424;
  --line: #303030;
  --border: #303030;
  --line-soft: #252525;
  --text: #f4f4f4;
  --muted: #a3a3a3;
  --muted-2: #737373;
}
html[data-theme="dark"] .btn-primary {
  background: #f2f2f2;
  color: #171717;
}
html[data-theme="dark"] .main-nav button.active > span,
html[data-theme="dark"] .icon-btn:hover .material-symbols-rounded {
  color: #f5f5f5;
}

.column,
.task-card,
.panel,
.stat,
.modal,
.settings-menu button,
.automation-card,
.integration-item {
  box-shadow: none;
}
.settings-menu {
  gap: 8px;
}
.settings-menu button {
  min-height: 62px;
}
.section-caption {
  justify-content: flex-start;
}

@media (max-width: 720px) {
  .theme-btn {
    display: none;
  }
  html[data-theme="light"] .sidebar,
  html[data-theme="light"] .sidebar.open {
    background: #fff;
    border-color: #dedede;
  }
}

/* Complete the monochrome pass for legacy accent selectors. */
.main-nav button > span::before,
.settings-menu button > span::before,
.board-back::before,
.modal-back,
.board-overview-side > strong,
.boards-overview-empty > span,
.activity-page-empty > span,
.template-search,
.template-summary b,
.templates-empty > span,
.security-score {
  color: #666 !important;
}
.main-nav button:hover > span::before,
.main-nav button.active > span::before,
.settings-menu button:hover > span::before,
.board-back:hover::before {
  color: #171717 !important;
}
.pvz-chip,
.sla,
.recurring-badge {
  background: #ededed !important;
  color: #4a4a4a !important;
}
.task-card.selected {
  outline-color: #525252;
  background: rgba(0, 0, 0, .04) !important;
}
.card-select,
.row-check {
  border-color: #525252;
}
.row-check.checked,
.card-select:not(:empty),
.calendar-day.today > b {
  background: #333;
}
.calendar-day > button,
.board-data-row:hover,
.custom-values,
.recurrence-panel {
  border-color: #d4d4d4;
  background: #f1f1f1;
  color: #404040;
}
.notification-list > button.unread {
  border-color: #737373;
  background: #f1f1f1;
}
.notification-list .material-symbols-rounded {
  background: #e7e7e7;
  color: #333;
}
.notification-btn em {
  background: #262626;
}
.board-overview-row:hover,
html[data-theme="light"] .board-overview-row:hover {
  border-color: #a3a3a3;
  background: #f3f3f3;
  box-shadow: none;
}
.modal-back:hover {
  border-color: #a3a3a3;
  background: #ededed;
}
.color-presets button.active {
  box-shadow: 0 0 0 3px #525252;
}
.activity-page-avatar {
  background: #333;
  color: #fff;
  box-shadow: none;
}
.activity-page-content h3,
.template-card h4,
.template-preview-note b {
  color: var(--text);
}
.template-preview-note {
  border-color: var(--line);
  background: var(--panel-2);
}
.board-dot,
.column-color,
.priority-dot,
.card-label,
.status-dot {
  filter: grayscale(1);
}

html[data-theme="dark"] .main-nav button > span::before,
html[data-theme="dark"] .settings-menu button > span::before,
html[data-theme="dark"] .board-back::before,
html[data-theme="dark"] .modal-back {
  color: #a3a3a3 !important;
}
html[data-theme="dark"] .main-nav button:hover > span::before,
html[data-theme="dark"] .main-nav button.active > span::before,
html[data-theme="dark"] .settings-menu button:hover > span::before {
  color: #f5f5f5 !important;
}
html[data-theme="dark"] .pvz-chip,
html[data-theme="dark"] .sla,
html[data-theme="dark"] .recurring-badge,
html[data-theme="dark"] .calendar-day > button,
html[data-theme="dark"] .custom-values,
html[data-theme="dark"] .recurrence-panel {
  border-color: #3a3a3a;
  background: #252525 !important;
  color: #d4d4d4 !important;
}

.settings-menu .settings-delete-board {
  margin-top: 12px;
  border-color: #7f1d1d;
  color: #dc2626;
}
.settings-menu .settings-delete-board:hover {
  border-color: #dc2626;
  background: #dc262610;
  color: #dc2626;
}
.settings-menu .settings-delete-board > span,
.settings-menu .settings-delete-board > b,
.settings-menu .settings-delete-board > em {
  color: inherit !important;
}
.board-delete-warning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px;
  border: 1px solid #dc2626;
  border-radius: 14px;
  background: #dc26260b;
}
.board-delete-warning > span {
  color: #dc2626;
  font-size: 28px;
}
.board-delete-warning b {
  display: block;
  margin-bottom: 5px;
}
.board-delete-warning p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
#deleteBoardForm .form-label strong {
  color: var(--text);
}
#confirmBoardDelete:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Collapsed card settings and restored desktop scrolling */
.card-editor {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.card-editor-toolbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-bottom: -2px;
}
.card-settings-toggle {
  min-width: 210px;
  gap: 9px;
}
.card-settings-toggle .material-symbols-rounded {
  font-size: 22px;
}
.card-modal-head {
  justify-content: flex-start;
  gap: 10px;
}
.card-modal-head .modal-titlebar {
  margin-right: auto;
}
.card-modal-head .card-settings-toggle {
  flex: 0 0 auto;
  height: 42px;
}
.card-modal-head .modal-close {
  flex: 0 0 auto;
}
.card-description-field {
  min-height: 360px !important;
  resize: none;
}
.card-editor.settings-open .card-description-field:not(:disabled) {
  resize: vertical;
}
.card-editor:not(.settings-open) .card-side {
  display: none;
}
.card-editor.settings-open {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}
.card-editor.settings-open .card-side {
  display: grid;
}

@media (max-width: 720px) {
  .card-modal-head .card-settings-toggle {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }
  .card-modal-head .card-settings-toggle > span:last-child {
    display: none;
  }
  .card-description-field {
    min-height: 260px !important;
  }
  .card-editor.settings-open {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .card-editor-toolbar {
    position: sticky;
    top: 0;
    z-index: 3;
    padding-bottom: 8px;
    background: var(--panel);
  }
  .card-settings-toggle {
    width: 100%;
  }
  .card-editor.settings-open .card-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }
}

@media (min-width: 721px) {
  .app,
  .main {
    min-height: 0;
  }
  .main {
    overflow: hidden;
  }
  .board-view {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }
  .board-toolbar {
    flex: 0 0 auto;
  }
  .main.boards-mode .boards-overview {
    flex: 1 1 0;
    height: 100%;
    min-height: 0;
    overflow-y: scroll;
    overscroll-behavior: contain;
  }
  .sidebar-section {
    flex: 1 1 auto;
  }
  .boards-overview,
  .feature-view,
  .admin-view,
  .kanban,
  .card-list,
  .sidebar-section,
  .modal {
    scrollbar-width: auto;
    scrollbar-color: #777 #ededed;
    scrollbar-gutter: stable;
  }
  .boards-overview,
  .feature-view,
  .admin-view {
    overflow-y: scroll;
  }
  .kanban {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    overflow-x: scroll;
    overflow-y: hidden;
    overscroll-behavior: contain;
  }
  .column {
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }
  .sidebar-section {
    overflow-y: auto;
  }
  .card-list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .boards-overview::-webkit-scrollbar,
  .feature-view::-webkit-scrollbar,
  .admin-view::-webkit-scrollbar,
  .kanban::-webkit-scrollbar,
  .card-list::-webkit-scrollbar,
  .sidebar-section::-webkit-scrollbar,
  .modal::-webkit-scrollbar {
    display: block !important;
    width: 12px;
    height: 12px;
  }
  .boards-overview::-webkit-scrollbar-track,
  .feature-view::-webkit-scrollbar-track,
  .admin-view::-webkit-scrollbar-track,
  .kanban::-webkit-scrollbar-track,
  .card-list::-webkit-scrollbar-track,
  .sidebar-section::-webkit-scrollbar-track,
  .modal::-webkit-scrollbar-track {
    background: #ededed;
  }
  .boards-overview::-webkit-scrollbar-thumb,
  .feature-view::-webkit-scrollbar-thumb,
  .admin-view::-webkit-scrollbar-thumb,
  .kanban::-webkit-scrollbar-thumb,
  .card-list::-webkit-scrollbar-thumb,
  .sidebar-section::-webkit-scrollbar-thumb,
  .modal::-webkit-scrollbar-thumb {
    min-height: 36px;
    border: 3px solid #ededed;
    border-radius: 999px;
    background: #777;
  }
  .boards-overview::-webkit-scrollbar-thumb:hover,
  .feature-view::-webkit-scrollbar-thumb:hover,
  .admin-view::-webkit-scrollbar-thumb:hover,
  .kanban::-webkit-scrollbar-thumb:hover,
  .card-list::-webkit-scrollbar-thumb:hover,
  .sidebar-section::-webkit-scrollbar-thumb:hover,
  .modal::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  .boards-overview::-webkit-scrollbar-corner,
  .feature-view::-webkit-scrollbar-corner,
  .admin-view::-webkit-scrollbar-corner,
  .kanban::-webkit-scrollbar-corner,
  .card-list::-webkit-scrollbar-corner,
  .sidebar-section::-webkit-scrollbar-corner,
  .modal::-webkit-scrollbar-corner {
    background: #ededed;
  }
  html[data-theme="dark"] .boards-overview,
  html[data-theme="dark"] .feature-view,
  html[data-theme="dark"] .admin-view,
  html[data-theme="dark"] .kanban,
  html[data-theme="dark"] .card-list,
  html[data-theme="dark"] .sidebar-section,
  html[data-theme="dark"] .modal {
    scrollbar-color: #666 #1c1c1c;
  }
  html[data-theme="dark"] .boards-overview::-webkit-scrollbar-track,
  html[data-theme="dark"] .feature-view::-webkit-scrollbar-track,
  html[data-theme="dark"] .admin-view::-webkit-scrollbar-track,
  html[data-theme="dark"] .kanban::-webkit-scrollbar-track,
  html[data-theme="dark"] .card-list::-webkit-scrollbar-track,
  html[data-theme="dark"] .sidebar-section::-webkit-scrollbar-track,
  html[data-theme="dark"] .modal::-webkit-scrollbar-track,
  html[data-theme="dark"] .boards-overview::-webkit-scrollbar-corner,
  html[data-theme="dark"] .feature-view::-webkit-scrollbar-corner,
  html[data-theme="dark"] .admin-view::-webkit-scrollbar-corner,
  html[data-theme="dark"] .kanban::-webkit-scrollbar-corner,
  html[data-theme="dark"] .card-list::-webkit-scrollbar-corner,
  html[data-theme="dark"] .sidebar-section::-webkit-scrollbar-corner,
  html[data-theme="dark"] .modal::-webkit-scrollbar-corner {
    background: #1c1c1c;
  }
  html[data-theme="dark"] .boards-overview::-webkit-scrollbar-thumb,
  html[data-theme="dark"] .feature-view::-webkit-scrollbar-thumb,
  html[data-theme="dark"] .admin-view::-webkit-scrollbar-thumb,
  html[data-theme="dark"] .kanban::-webkit-scrollbar-thumb,
  html[data-theme="dark"] .card-list::-webkit-scrollbar-thumb,
  html[data-theme="dark"] .sidebar-section::-webkit-scrollbar-thumb,
  html[data-theme="dark"] .modal::-webkit-scrollbar-thumb {
    border-color: #1c1c1c;
    background: #666;
  }
}

/* Photo and video attachments in card comments */
.comment-add {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.comment-media-picker {
  position: relative;
  height: 48px;
  min-width: 132px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}
.comment-media-picker:hover {
  border-color: var(--muted);
}
.comment-media-picker input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.comment-media-picker .material-symbols-rounded {
  font-size: 21px;
}
.comment-media-picker em {
  font-size: 13px;
  font-style: normal;
}
.comment-media-selection {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}
.comment-media-selection > span {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  font-size: 12px;
}
.comment-media-selection .material-symbols-rounded {
  font-size: 18px;
}
.comment-media-selection small {
  color: var(--muted);
}
.comment-media-selection > span > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.comment-media-selection button {
  width: 24px;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}
.comment-media-selection button:hover {
  background: var(--line);
  color: var(--text);
}
.comment-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 9px;
  margin-top: 8px;
}
.comment-media-image,
.comment-media-video {
  width: 100%;
  min-width: 0;
  max-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #090909;
}
.comment-media-image {
  display: block;
}
.comment-media-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}
.comment-media-video {
  display: block;
  object-fit: contain;
}

@media (max-width: 720px) {
  .comment-add {
    grid-template-columns: minmax(0, 1fr) 48px auto;
  }
  .comment-media-picker {
    width: 48px;
    min-width: 48px;
    padding: 0;
  }
  .comment-media-picker em {
    display: none;
  }
  .comment-media-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive board views and dependable quick card movement */
.card-quick-move {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
}
.card-quick-move button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}
.card-quick-move button:hover:not(:disabled) {
  border-color: var(--text);
  background: var(--panel);
}
.card-quick-move button:disabled {
  opacity: .25;
  cursor: default;
}
.card-quick-move .material-symbols-rounded {
  font-size: 18px;
}
.move-card-dialog {
  gap: 18px;
}
.move-card-dialog .modal-copy {
  margin: 0;
}
.move-card-options {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 440px);
  overflow-y: auto;
}
.move-card-options label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}
.move-card-options label:hover,
.move-card-options label.selected {
  border-color: var(--text);
  background: var(--panel);
}
.move-card-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.move-card-options label > i {
  width: 14px;
  height: 14px;
  border-radius: 5px;
}
.move-card-options label > span:nth-of-type(1) {
  font-weight: 750;
}
.move-card-options .material-symbols-rounded {
  opacity: 0;
  font-size: 21px;
}
.move-card-options label.selected .material-symbols-rounded {
  opacity: 1;
}
.mobile-calendar-agenda {
  display: none;
}

@media (max-width: 720px) {
  .board-toolbar {
    position: relative;
    display: block;
    flex: 0 0 54px;
    width: 100%;
    height: 54px;
    min-height: 54px;
    padding: 0 8px;
    overflow: hidden;
  }
  .view-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    height: 54px;
    overflow: visible;
    gap: 0;
  }
  .view-tabs button {
    min-width: 0;
    height: 54px;
    min-height: 54px;
    padding: 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }
  .view-tabs #activityTab,
  .toolbar-right {
    display: none !important;
  }
  .kanban {
    height: calc(100% - 54px);
    padding: 10px 8px calc(18px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .column {
    width: calc(100vw - 16px);
    min-width: calc(100vw - 16px);
    flex-basis: calc(100vw - 16px);
    border-radius: 16px;
  }
  .column-head {
    min-height: 54px;
    padding: 0 14px;
  }
  .card-list {
    padding: 10px;
  }
  .task-card {
    padding: 14px;
    border-radius: 14px;
  }
  .task-card h4 {
    font-size: 16px;
    line-height: 1.4;
  }
  .card-quick-move {
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 11px;
  }
  .card-quick-move button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    touch-action: manipulation;
  }
  .card-quick-move .material-symbols-rounded {
    font-size: 20px;
  }
  .move-card-options label {
    min-height: 58px;
    font-size: 15px;
  }

  #kanban[data-view="list"],
  #kanban[data-view="table"],
  #kanban[data-view="calendar"] {
    display: block;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: none;
  }
  .board-data-view,
  .table-mode.board-data-view {
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }
  .board-data-head {
    display: none;
  }
  .board-data-row,
  .table-mode .board-data-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    width: 100%;
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--panel);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .04);
  }
  .board-data-row > span {
    min-width: 0;
    display: grid;
    gap: 3px;
    color: var(--text);
    font-size: 14px;
  }
  .board-data-row > span:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line-soft);
  }
  .board-data-row > span:first-child b,
  .board-data-row > span:first-child small {
    grid-column: 2;
  }
  .board-data-row > span:first-child b {
    font-size: 16px;
    line-height: 1.35;
  }
  .board-data-row small {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .board-data-row > span:nth-child(n + 2)::before {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
  }
  .board-data-row > span:nth-child(2)::before { content: "СТАТУС"; }
  .board-data-row > span:nth-child(3)::before { content: "ПРИОРИТЕТ"; }
  .board-data-row > span:nth-child(4)::before { content: "ОТВЕТСТВЕННЫЙ"; }
  .board-data-row > span:nth-child(5)::before { content: "СРОК"; }
  .board-data-row > span:nth-child(6)::before { content: "ТЕГИ"; }

  .calendar-view {
    display: none;
  }
  .mobile-calendar-agenda {
    display: block;
    width: 100%;
  }
  .mobile-calendar-agenda > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px 16px;
  }
  .mobile-calendar-agenda h3 {
    margin: 3px 0 0;
    font-size: 22px;
  }
  .mobile-calendar-agenda header small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
  }
  .mobile-calendar-agenda > header > b {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 11px;
    background: var(--panel-2);
  }
  .mobile-calendar-agenda > div {
    display: grid;
    gap: 8px;
  }
  .mobile-agenda-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 74px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--panel);
    color: var(--text);
    text-align: left;
  }
  .mobile-agenda-card time {
    display: grid;
    place-items: center;
    align-content: center;
    height: 50px;
    border-radius: 12px;
    background: var(--panel-2);
    text-transform: uppercase;
  }
  .mobile-agenda-card time b {
    font-size: 19px;
    line-height: 1;
  }
  .mobile-agenda-card time span,
  .mobile-agenda-card small {
    color: var(--muted);
    font-size: 11px;
  }
  .mobile-agenda-card > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 5px;
  }
  .mobile-agenda-card > span:nth-child(2) b,
  .mobile-agenda-card > span:nth-child(2) small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-agenda-card.overdue time {
    outline: 2px solid #ef4444;
  }
}

/* Compact mobile navigation and bottom sheets */
.mobile-nav-only {
  display: none !important;
}
.mobile-sheet-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(4px);
}
.mobile-sheet {
  width: min(100%, 520px);
  max-height: min(82dvh, 720px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}
.mobile-sheet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-sheet > header h3 {
  margin: 0;
  font-size: 20px;
}
.mobile-sheet > header button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 24px;
}
.mobile-sheet-body {
  max-height: calc(min(82dvh, 720px) - 62px);
  padding: 12px;
  overflow-y: auto;
}
.mobile-sheet-menu {
  display: grid;
  gap: 7px;
}
.mobile-sheet-menu > button,
.mobile-settings-profile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.mobile-sheet-menu > button:hover,
.mobile-settings-profile:hover {
  border-color: var(--border);
  background: var(--panel-2);
}
.mobile-sheet-menu > button:disabled {
  opacity: .38;
}
.mobile-sheet-menu > button > .material-symbols-rounded {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 23px;
}
.mobile-sheet-menu button > span:nth-child(2),
.mobile-settings-profile > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.mobile-sheet-menu small,
.mobile-settings-profile small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-sheet-menu i,
.mobile-settings-profile > i {
  color: var(--muted);
  font-size: 22px;
  font-style: normal;
}
.mobile-settings-profile {
  margin-bottom: 10px;
  border-color: var(--border);
  background: var(--panel-2);
}
.mobile-settings-profile .avatar {
  width: 42px;
  height: 42px;
}
.mobile-settings-menu {
  padding-top: 4px;
}

@media (max-width: 720px) {
  .sidebar .main-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .sidebar .main-nav [data-nav="templates"],
  .sidebar .main-nav [data-nav="activity"],
  .sidebar .main-nav [data-nav="reports"],
  .sidebar .main-nav [data-nav="automations"] {
    display: none;
  }
  .sidebar .main-nav .mobile-nav-only {
    display: flex !important;
  }
  .sidebar .main-nav [data-nav="more"]::after {
    content: "Прочее";
  }
  .sidebar .main-nav [data-nav="settings"]::after {
    content: "Настройки";
  }
  .main-nav [data-nav="more"] > span::before {
    content: "more_horiz";
  }
  .main-nav [data-nav="settings"] > span::before {
    content: "settings";
  }
  .mobile-sheet-backdrop {
    padding: 0;
  }
  .mobile-sheet {
    width: 100%;
    max-height: min(78dvh, 680px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-sheet-body {
    max-height: calc(min(78dvh, 680px) - 62px - env(safe-area-inset-bottom));
  }
}

/* Interaction and theme polish v31 */
.modal.wide:has(.task-detail) {
  display: flex;
  flex-direction: column;
}
.task-detail-body {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.board-dot,
.priority-dot {
  filter: none !important;
}
.priority-low {
  background: #22c55e !important;
}
.priority-medium {
  background: #eab308 !important;
}
.priority-high {
  background: #f97316 !important;
}
.priority-urgent {
  background: #ef4444 !important;
}
.priority-choices .priority-dot {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 10%, transparent);
}
.priority-choices label:has(input[value="low"]:checked) {
  border-color: #22c55e;
  background: color-mix(in srgb, #22c55e 10%, var(--panel));
}
.priority-choices label:has(input[value="medium"]:checked) {
  border-color: #eab308;
  background: color-mix(in srgb, #eab308 10%, var(--panel));
}
.priority-choices label:has(input[value="high"]:checked) {
  border-color: #f97316;
  background: color-mix(in srgb, #f97316 10%, var(--panel));
}
.priority-choices label:has(input[value="urgent"]:checked) {
  border-color: #ef4444;
  background: color-mix(in srgb, #ef4444 10%, var(--panel));
}
.view-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.view-tabs button .material-symbols-rounded {
  color: inherit;
  font-size: 20px;
}
.view-tabs button.active,
html[data-theme="dark"] .view-tabs button.active,
html[data-theme="light"] .view-tabs button.active {
  border-color: transparent !important;
  background: transparent !important;
  color: var(--text) !important;
}
.view-tabs button.active::after,
html[data-theme="dark"] .view-tabs button.active::after,
html[data-theme="light"] .view-tabs button.active::after {
  background: var(--text) !important;
}
html[data-theme="dark"] .board-data-row:hover,
html[data-theme="dark"] .board-data-row:focus-visible {
  border-color: #3a3a3a;
  background: #202020;
  color: var(--text);
}
html[data-theme="dark"] .board-data-row:hover small,
html[data-theme="dark"] .board-data-row:focus-visible small {
  color: var(--muted);
}
.card-facts {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 28px;
  margin-top: 11px;
}
.card-facts .pvz-chip {
  flex: 0 0 auto;
  margin: 0;
  line-height: 20px;
}
.card-facts .card-meta {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.card-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.card-meta .material-symbols-rounded {
  color: currentColor;
  font-size: 15px;
}
.card-meta .meta-description {
  opacity: .8;
}
.card-meta .assignee-stack {
  margin-left: auto;
}
.card-dates {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.3;
}
.kanban.mouse-panning {
  cursor: grabbing !important;
  scroll-snap-type: none !important;
  user-select: none;
}

@media (max-width: 720px) {
  .kanban[data-view="kanban"] {
    cursor: grab;
  }
  .kanban[data-view="kanban"] .column {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }
  .kanban[data-view="kanban"] .column-head,
  .kanban[data-view="kanban"] .add-card {
    flex: 0 0 auto;
  }
  .kanban[data-view="kanban"] .card-list {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .view-tabs button {
    padding: 0 !important;
  }
  .view-tabs .view-tab-label {
    display: none;
  }
  .view-tabs button .material-symbols-rounded {
    font-size: 23px;
  }
  .task-detail-body {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
  .task-detail {
    min-height: auto;
  }
  .kanban[data-view="kanban"] .task-card {
    position: relative;
    padding: 13px 14px;
  }
  .kanban[data-view="kanban"] .task-card:has(.card-quick-move) {
    padding-right: 60px;
  }
  .kanban[data-view="kanban"] .task-card h4 {
    margin: 0 0 8px;
    line-height: 1.35;
  }
  .kanban[data-view="kanban"] .card-labels:empty {
    display: none;
  }
  .kanban[data-view="kanban"] .card-labels:not(:empty) {
    margin-bottom: 8px;
  }
  .kanban[data-view="kanban"] .card-facts {
    min-height: 24px;
    margin-top: 5px;
  }
  .kanban[data-view="kanban"] .card-quick-move {
    position: absolute;
    right: 10px;
    bottom: 10px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .kanban[data-view="kanban"] .card-quick-move button {
    width: 42px;
    height: 42px;
  }
}

/* Administrator board pinning */
.board-overview-row {
  font: inherit;
}
.board-overview-row.pinned {
  border-color: #737373;
  box-shadow: inset 3px 0 0 var(--text);
}
.board-overview-row:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.board-pin-toggle,
.board-pin-state {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
}
.board-pin-toggle {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}
.board-pin-toggle:hover {
  border-color: var(--text);
  color: var(--text);
}
.board-pin-toggle.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--panel);
}
.board-pin-toggle:disabled {
  opacity: .55;
  cursor: wait;
}
.board-pin-toggle .material-symbols-rounded,
.board-pin-state {
  font-size: 21px;
}
.board-pin-state {
  color: var(--muted);
}

@media (max-width: 720px) {
  .board-overview-side {
    gap: 8px;
  }
  .board-pin-toggle,
  .board-pin-state {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
}

/* Theme contrast and denser board columns v35 */
html[data-theme="light"] {
  --bg: #f1f2f3;
  --panel-2: #f3f4f5;
  --panel-3: #e8eaec;
  --line: #d0d3d6;
  --border: #cbd0d4;
  --line-soft: #e0e2e4;
  --muted: #535960;
  --muted-2: #6f767e;
}
html[data-theme="light"] body,
html[data-theme="light"] .main,
html[data-theme="light"] .kanban {
  background: #f1f2f3;
}
html[data-theme="light"] .permission {
  color: #4c535a !important;
  border-color: #cdd1d5;
  background: #fff;
}
html[data-theme="light"] .permission:hover {
  color: #17191c !important;
  border-color: #9da4ab;
  background: #f8f9fa;
}
html[data-theme="light"] .permission input[type="checkbox"] {
  border-color: #aab1b9;
  background: #fff;
}
html[data-theme="light"] .permission input[type="checkbox"]:checked {
  border-color: #262626;
  background: #262626;
  box-shadow: 0 0 0 3px rgba(38, 38, 38, .1);
}
html[data-theme="light"] .column {
  background: #e9ecef;
  border-color: #c9cdd2;
}
html[data-theme="light"] .column-head,
html[data-theme="light"] .card-list {
  border-color: #cfd3d7;
}
html[data-theme="light"] .task-card {
  background: #fff !important;
  border-color: #c2c7cd;
  color: #151719 !important;
  box-shadow: 0 3px 11px rgba(15, 23, 42, .11);
}
html[data-theme="light"] .task-card:hover {
  border-color: #858c94;
  box-shadow: 0 5px 15px rgba(15, 23, 42, .15);
}
html[data-theme="dark"] .permission {
  color: #d1d5da;
  border-color: #3a3e43;
  background: #1b1d20;
}
html[data-theme="dark"] .column {
  background: #141619;
  border-color: #34383e;
}
html[data-theme="dark"] .column-head,
html[data-theme="dark"] .card-list {
  border-color: #30343a;
}
html[data-theme="dark"] .task-card {
  background: #22252a !important;
  border-color: #3c4148;
  color: #f5f5f5 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .38);
}
html[data-theme="dark"] .task-card h4 {
  color: #fafafa !important;
}
html[data-theme="dark"] .task-card:hover {
  background: #282c31 !important;
  border-color: #5b626b;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .48);
}

@media (min-width: 721px) {
  .kanban[data-view="kanban"] .column {
    width: 300px;
    min-width: 300px;
    flex: 0 0 300px;
  }
  .kanban[data-view="kanban"] .column-add {
    width: 274px;
    min-width: 274px;
    flex: 0 0 274px;
  }
}

@media (max-width: 720px) {
  .kanban[data-view="kanban"] .column {
    width: 88vw;
    min-width: 88vw;
    flex-basis: 88vw;
  }
}

/* Notification contrast and isolated task views v38 */
html[data-theme="light"] .notification-list > button,
html[data-theme="light"] .notification-list > button.unread {
  color: #17191c;
}
html[data-theme="light"] .notification-list > button:hover {
  background: #e7e9eb;
  border-color: #8d949b;
}
html[data-theme="light"] .notification-list > button b {
  color: #17191c;
}
html[data-theme="light"] .notification-list p {
  color: #545a61;
}
html[data-theme="light"] .notification-list small {
  color: #747b83;
}
html[data-theme="dark"] .notification-list > button {
  background: #1d2024;
  border-color: #383d43;
  color: #f4f4f4;
}
html[data-theme="dark"] .notification-list > button:hover {
  background: #282c31;
  border-color: #606770;
}
html[data-theme="dark"] .notification-list > button.unread {
  background: #24282d;
  border-color: #666d76;
  color: #f7f7f7;
}
html[data-theme="dark"] .notification-list > button b {
  color: #fafafa;
}
html[data-theme="dark"] .notification-list p {
  color: #c2c7cd;
}
html[data-theme="dark"] .notification-list small {
  color: #9da4ac;
}
html[data-theme="dark"] .notification-list .material-symbols-rounded {
  background: #30353b;
  color: #f2f2f2;
}

/* Status colors, compact actions and cross-board movement v39 */
.column-head .status-color {
  width: 9px;
  height: 9px;
  filter: none !important;
}
.add-card {
  font-size: 14px !important;
  font-weight: 650;
}
.move-board-field select {
  margin-top: 7px;
}

/* Mobile board action menu v41 */
.view-tabs .mobile-board-actions {
  display: none !important;
}
.mobile-sort-menu > button.selected {
  border-color: var(--text);
  background: var(--panel-2);
}
.mobile-sort-menu > button.selected > i {
  color: var(--text);
}
@media (max-width: 720px) {
  .view-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .view-tabs .mobile-board-actions {
    position: relative;
    display: inline-flex !important;
  }
  .view-tabs .mobile-board-actions.has-active::before {
    position: absolute;
    top: 10px;
    right: calc(50% - 17px);
    width: 7px;
    height: 7px;
    border: 2px solid var(--panel);
    border-radius: 50%;
    background: var(--text);
    content: "";
  }
  .mobile-board-action-menu > button,
  .mobile-sort-menu > button {
    min-height: 62px;
  }
  .user-item {
    grid-template-columns: 40px minmax(0, 1fr) 32px;
    gap: 10px;
  }
  .user-item > em {
    display: none;
  }
  .user-account-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .user-account-card .avatar {
    width: 48px;
    height: 48px;
  }
  .user-account-card > em {
    grid-column: 2;
    margin-top: -8px;
  }
  .password-editor {
    flex-direction: column;
  }
  .password-editor > span {
    width: 100%;
  }
  .password-editor > span .btn {
    flex: 1;
  }
}

html[data-theme="light"] .user-item:hover,
html[data-theme="light"] .user-account-card,
html[data-theme="light"] .account-toggle,
html[data-theme="light"] .credential-editor,
html[data-theme="light"] .account-security-note {
  background: #f5f5f5;
  border-color: #d7d7d7;
  color: #171717;
}
html[data-theme="light"] .user-edit-icon {
  border-color: #d2d2d2;
  color: #555;
}

/* Tags keep their configured colors even though the rest of the UI is monochrome. */
.card-label,
.task-tag-preview i,
.tag-choice-list label > i:not(.material-symbols-rounded),
.detail-row .permissions .column-color,
.template-tag-row > i {
  filter: none !important;
}

/* One-off task reminders */
.scheduled-reminder-box {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
}
.scheduled-reminder-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scheduled-reminder-heading > .material-symbols-rounded {
  font-size: 25px;
}
.scheduled-reminder-heading > span:last-child {
  display: grid;
  gap: 2px;
}
.scheduled-reminder-heading small {
  color: var(--muted);
  font-size: 12px;
}
.scheduled-reminder-box textarea {
  min-height: 84px;
  resize: vertical;
}
.reminder-form-actions {
  flex-wrap: wrap;
}
.import-reminder-box {
  margin: 2px 0;
}
@media (max-width: 720px) {
  .scheduled-reminder-box {
    padding: 14px;
    border-radius: 14px;
  }
  .reminder-form-actions > .btn {
    flex: 1 1 calc(50% - 6px);
  }
  .reminder-form-actions > .btn-primary {
    flex-basis: 100%;
  }
}
