/* Пилот EcoLife DS: токены из /shared-ui (Figma Версия 1.0). */
body,
body.b24-page {
  margin: 0;
  min-height: 100vh;
  background: var(--b24-bg, #fff);
  color: var(--b24-text, #19191c);
  font-family: var(--b24-font, Manrope, Inter, system-ui, "Segoe UI", sans-serif);
  font-size: var(--b24-font-size, 14px);
}

body.is-app-shell .crm-tasks {
  margin-left: var(--shell-w, 248px);
  min-height: 100vh;
  box-sizing: border-box;
}

.crm-tasks,
.crm-tasks .tk {
  background: var(--b24-surface, #fff);
}

main.crm-tasks.tk-has-board-theme {
  background-attachment: fixed;
  min-height: 100vh;
}

main.crm-tasks.tk-has-board-theme .tk {
  background: transparent;
}

main.crm-tasks.tk-has-board-theme.is-tone-dark {
  color: #f8fafc;
}

main.crm-tasks.tk-has-board-theme.is-tone-dark .tk-tool,
main.crm-tasks.tk-has-board-theme.is-tone-dark .tk-muted,
main.crm-tasks.tk-has-board-theme.is-tone-dark .tk-count,
main.crm-tasks.tk-has-board-theme.is-tone-dark .b24-meta {
  color: rgba(248, 250, 252, 0.82);
}

main.crm-tasks.tk-has-board-theme.is-tone-light {
  color: #0f172a;
}

main.crm-tasks.tk-has-board-theme .tk-top {
  background: color-mix(in srgb, var(--b24-surface, #fff) 86%, transparent);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 8px;
}

main.crm-tasks.tk-has-board-theme .tk-col {
  background: color-mix(in srgb, var(--b24-surface, #fff) 92%, transparent);
  backdrop-filter: blur(8px);
}

main.crm-tasks.tk-has-board-theme .tk-pop {
  color: #0f172a;
}

main.crm-tasks.tk-has-board-theme .tk-table-wrap {
  background: color-mix(in srgb, var(--b24-surface, #fff) 94%, transparent);
  border-radius: 12px;
}

.tk-board-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex: 0 0 auto;
  background: #e2e8f0 center/cover no-repeat;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.tk-board-avatar.has-photo {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.tk-pop_theme {
  width: min(320px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  overflow: auto;
}

.tk-theme-block {
  margin-top: 12px;
}

.tk-theme-label {
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 6px;
  opacity: 0.8;
}

.tk-theme-presets,
.tk-theme-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tk-theme-swatch,
.tk-theme-photo {
  width: 36px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  cursor: pointer;
  padding: 0;
  background: #cbd5e1 center/cover no-repeat;
}

.tk-theme-photo.is-on,
.tk-theme-swatch:focus-visible {
  outline: 2px solid var(--b24-brand, #22aa79);
  outline-offset: 1px;
}

.tk-theme-select {
  width: 100%;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--b24-border-soft, #e2e2de);
  background: var(--b24-surface, #fff);
  color: inherit;
  font: inherit;
}

.tk-theme-avatar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tk-sort-list > button {
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: left;
}

.crm-tasks,
.tk-overlay {
  /* legacy aliases → EcoLife tokens (brand green CTA, not purple) */
  --blue: var(--b24-brand, #22aa79);
  --line: var(--b24-border-soft, #e2e2de);
  --muted: var(--b24-muted, #64646d);
  --card: var(--b24-card, var(--b24-surface, #fff));
  --bg: var(--b24-bg, #fff);
}

.tk {
  padding: 20px 24px 32px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tk-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-height: 36px;
}

.tk-top {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -20px -24px 18px;
  padding: 16px 24px 14px;
  background: var(--b24-surface, #fff);
  border-bottom: 1px solid var(--line);
}

.tk-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tk-crumbs__root {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.tk-crumbs__sep {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.tk-crumbs__current,
.tk-head h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--b24-text, #19191c);
}

.tk-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--b24-surface-muted, #f0f0ed);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tk-head__spacer { flex: 1 1 auto; min-width: 8px; }

.tk-views {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: var(--b24-radius-btn, 6px);
  background: var(--b24-surface, #fff);
  border: 1px solid var(--b24-border-soft, #e2e2de);
  box-sizing: border-box;
  height: var(--b24-control-h, 36px);
  flex: 0 0 auto;
}

.tk-views_icons {
  margin-left: 0;
  padding-left: 2px;
  border-left: 0;
}

.tk-views button,
.tk-btn,
.tk-primary,
.tk-ghost,
.tk-tool {
  font: inherit;
  cursor: pointer;
}

/* Текстовый сегмент переключателя вида. */
.tk-views button,
.tk-views .tk-tool,
.tk-views__btn {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 0 12px;
  height: 32px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  box-shadow: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

/* Иконки (Задачи): квадратные кнопки 32×32. */
.tk-views_icons button,
.tk-views_icons .tk-tool,
.tk-views_icons .tk-views__btn {
  padding: 0;
  width: 32px;
  min-width: 32px;
  display: inline-grid;
  place-items: center;
}

.tk-views button.is-on,
.tk-views .tk-tool.is-on,
.tk-views__btn.is-on {
  background: var(--b24-surface-muted, #f0f0ed);
  color: var(--b24-text, #19191c);
  font-weight: 600;
  box-shadow: none;
}

.tk-primary {
  border: 0;
  border-radius: var(--b24-radius-btn, 6px);
  background: var(--b24-brand, var(--blue));
  color: var(--b24-on-brand, #fff);
  height: var(--b24-control-h, 36px);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  flex: 0 0 auto;
  white-space: nowrap;
}

.tk-primary_add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 12px;
  flex: 0 0 auto;
}

.tk-primary_add .tk-ico {
  display: inline-flex;
  color: inherit;
}

.tk-primary:hover {
  background: var(--b24-brand-hover, #1b8f66);
}

.tk-primary:disabled { opacity: 0.55; cursor: default; }

.tk-ghost,
.tk-tool {
  border: 1px solid var(--b24-border-soft, #e2e2de);
  background: var(--b24-surface, #fff);
  border-radius: var(--b24-radius-btn, 6px);
  height: var(--b24-control-h, 36px);
  padding: 0 12px;
  color: var(--b24-text, #19191c);
  font-size: 13px;
  font-weight: 500;
  box-sizing: border-box;
}

.tk-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tk-tool .tk-ico {
  display: inline-flex;
  color: var(--muted);
}

.tk-tool:hover,
.tk-ghost:hover {
  background: var(--b24-surface-muted, #f0f0ed);
  border-color: color-mix(in srgb, var(--b24-border-soft, #e2e2de) 65%, #19191c);
}

.tk-tool.is-on {
  background: var(--b24-surface-muted, #f0f0ed);
  border-color: color-mix(in srgb, var(--b24-border-soft, #e2e2de) 65%, #19191c);
}

.tk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.tk-toolbar__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tk-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 360px;
}

.tk-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.tk-ico svg {
  display: block;
}

.tk-search input,
.tk-field input,
.tk-field select,
.tk-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--b24-search-border, var(--line));
  border-radius: var(--b24-radius-input, 6px);
  background: var(--b24-surface, #fff);
  color: var(--b24-text, #19191c);
  font: inherit;
  font-size: 14px;
  padding: 8px 12px 8px 36px;
}

.tk-field input,
.tk-field textarea {
  padding-left: 12px;
  background: var(--b24-search-bg, #f4f5f7);
}

/* Вертикальный padding у select на Windows обрезает текст пунктов списка. */
.tk-field select {
  height: 40px;
  padding: 0 12px;
  line-height: 40px;
  background-color: var(--b24-search-bg, #f4f5f7);
  color: var(--b24-text, #1c2430);
}

.tk-field option {
  background-color: var(--card, #fff);
  color: #1c2430;
  line-height: normal;
}

.tk-search > .tk-ico,
.tk-search span[aria-hidden] {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.tk-menu {
  position: relative;
}

.tk-pop {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: min(420px, 80vw);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--b24-radius-panel, 8px);
  background: var(--b24-surface, #fff);
  box-shadow: var(--b24-shadow-dropdown, 0 12px 40px rgba(17, 24, 39, 0.12));
}

.tk-stage-actions { display: none; align-items: center; flex: 0 0 auto; }
.tk-col__head:hover .tk-stage-actions,
.tk-col__head:focus-within .tk-stage-actions,
.tk-col__name.is-edit .tk-stage-actions { display: inline-flex; }
@media (hover: none) {
  .tk-stage-actions { display: inline-flex; }
}
.tk-stage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.tk-stage-btn svg { width: 14px; height: 14px; }
.tk-stage-btn:hover { background: #f0f0ed; color: inherit; }
.tk-stage-btn.is-danger:hover { color: #b91c1c; }
.tk-stage-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 8em;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
}

.tk-pop h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.tk-pop label,
.tk-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tk-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.tk-checks button {
  border: 1px solid var(--line);
  background: var(--card, #fff);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.tk-checks button.is-on {
  border-color: var(--b24-brand, #22aa79);
  background: var(--b24-brand-soft, #e6f7f0);
  color: var(--b24-brand-hover, #1b8f66);
}

.tk-pop__actions,
.tk-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.tk-linkish {
  margin-right: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.tk-sort-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tk-sort-list button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 4px;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
}

.tk-sort-list button.is-on { background: #f3f4f6; font-weight: 650; }

.tk-chips {
  display: none;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.tk-chips button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card, #fff);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.tk-chips button.is-on {
  border-color: var(--blue);
  color: var(--blue);
}

.tk-board {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  align-items: flex-start;
  padding: 6px 4px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tk-board::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.tk-col {
  flex: 1 1 280px;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  box-sizing: border-box;
}

.tk-col.is-final {
  opacity: 0.96;
}

.tk-finals-gate {
  appearance: none;
  flex: 0 0 168px;
  min-width: 148px;
  max-width: 180px;
  min-height: 220px;
  margin: 0;
  padding: 18px 14px;
  border: 1px dashed var(--line, #e2e2de);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface, #fff) 70%, transparent);
  color: var(--muted, #64646d);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.tk-finals-gate:hover,
.tk-finals-gate.is-open {
  border-color: color-mix(in srgb, var(--blue, #0284c7) 45%, var(--line, #e2e2de));
  background: color-mix(in srgb, var(--blue, #0284c7) 7%, var(--surface, #fff));
  color: var(--text, #19191c);
}
.tk-finals-gate strong {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}
.tk-finals-gate span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted, #64646d);
}

.tk-chips__finals {
  border-style: dashed !important;
}

.tk-col.is-over {
  outline: 1px dashed color-mix(in srgb, var(--blue) 45%, transparent);
  outline-offset: 4px;
  background: color-mix(in srgb, var(--blue) 6%, transparent);
  border-radius: 10px;
}

.tk-col__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  cursor: grab;
}

.tk-col__head:active { cursor: grabbing; }

.tk-col.is-col-dragging { opacity: 0.45; }

.tk-col.is-col-over {
  outline: 2px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 4px;
  border-radius: 10px;
}

.tk-col__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.tk-col__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.tk-col__name > span:not(.tk-stage-actions) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-col__count {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f0f0ed;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tk-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c, #94a3b8) 70%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #94a3b8) 22%, white);
}

.tk-add {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--card, #fff);
  border-radius: 6px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #19191c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tk-add:hover { background: #f0f0ed; }

.tk-empty-col {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px dashed var(--line);
  border-radius: 10px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8a93;
  font-size: 12px;
  text-align: center;
  padding: 20px 12px;
}

.tk-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  border: 1px solid var(--b24-border-soft, var(--line));
  background: var(--b24-surface, #fff);
  border-radius: 10px;
  padding: 14px 14px 12px;
  font: inherit;
  cursor: pointer;
  color: inherit;
  box-shadow: 0 1px 2px rgba(25, 25, 28, 0.03);
  overflow: visible;
}

.tk-card:hover { box-shadow: 0 4px 12px -2px rgba(25, 25, 28, 0.08); }

.tk-card:focus-visible {
  outline: 2px solid var(--b24-accent, #2fc6f6);
  outline-offset: 2px;
}

.tk-card.is-dragging,
.tk-card:active {
  cursor: grabbing;
}

.tk-card.is-dragging { opacity: 0.5; }

.tk-card.is-overdue { background: color-mix(in srgb, #ef4444 8%, white); }

.tk-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding-right: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.tk-card__date,
.tk-card__id {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-card__id {
  flex: 0 1 auto;
  color: var(--b24-muted-2, #868d95);
}

.tk-card__title {
  /* width:100% обязателен: -webkit-box иначе схлопывается в ~1ch */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--b24-text, #19191c);
  text-align: left;
}

.tk-card__person {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tk-card__person.is-empty .tk-card__person-name {
  color: var(--muted);
}

.tk-card__title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tk-card__cover {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--b24-surface-muted, #f0f0ed);
}
.tk-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tk-modal__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  padding: 0;
  background: #e7e7e1;
  color: #3a3a38;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tk-modal__avatar.has-photo {
  background: transparent;
}
.tk-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tk-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #efe9ff;
  color: var(--b24-text, #19191c);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  overflow: hidden;
}

.tk-card__avatar_empty {
  background: var(--b24-surface-muted, #f0f0ed);
  color: var(--muted);
}

.tk-card__person-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--b24-text, #19191c);
}

.tk-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 2px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: var(--muted);
  font-size: 12px;
}

.tk-card .tk-row-menu {
  position: absolute;
  top: 8px;
  right: 6px;
  width: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.tk-card:hover .tk-row-menu,
.tk-card:focus-within .tk-row-menu,
.tk-card .tk-row-menu:has(.tk-drop) {
  opacity: 1;
  pointer-events: auto;
}

.tk-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: color-mix(in srgb, var(--c, #94a3b8) 16%, white);
  color: color-mix(in srgb, var(--c, #94a3b8) 72%, #1f2937);
}

.tk-table-wrap {
  border: 1px solid var(--b24-border-soft, var(--line));
  border-radius: var(--b24-radius-panel, 8px);
  background: var(--b24-surface, #fff);
  overflow: auto;
  box-shadow: var(--b24-shadow-table, none);
}

.tk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tk-table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--b24-muted, var(--muted));
  background: var(--b24-table-head, #f7f8fa);
  padding: 10px 12px;
  border-bottom: 1px solid var(--b24-border-soft, var(--line));
}

.tk-table td {
  padding: 12px;
  border-bottom: 1px solid var(--b24-border-row, var(--line));
  vertical-align: middle;
  color: var(--b24-text-strong, inherit);
}

.tk-table tr:last-child td { border-bottom: 0; }

.tk-table tbody tr { cursor: pointer; }

.tk-table tbody tr:hover { background: var(--b24-row-hover, #fafafa); }

.tk-title {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 650;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.tk-muted { color: var(--muted); }

.tk-row-menu { position: relative; width: 36px; }

.tk-icon {
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  color: #6b7280;
}

.tk-icon:hover { background: #f3f4f6; }

.tk-drop {
  position: absolute;
  right: 0;
  top: 28px;
  z-index: 15;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card, #fff);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
}

.tk-drop button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.tk-drop button:hover { background: #f3f4f6; }

.tk-drop button.is-danger { color: #b42318; }

.tk-bulk {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tk-banner,
.tk-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
}

.tk-note { background: #f8fafc; color: var(--muted); }

.tk-blank {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card, #fff);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  color: var(--muted);
}

.tk-blank h2 { margin: 0; color: #111827; font-size: 18px; }

.tk-back {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.tk-back button {
  border: 0;
  background: transparent;
  color: #19191c;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.tk-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tk-detail__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.tk-detail h1 {
  margin: 0;
  font-size: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tk-panel {
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.tk-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tk-params {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 12px;
  margin: 0;
}

.tk-params dt { color: var(--muted); }

.tk-params dd { margin: 0; }

.tk-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.tk-tabs button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}

.tk-tabs button.is-on {
  color: #111827;
  font-weight: 650;
  box-shadow: inset 0 -2px 0 var(--blue);
}

body.tk-modal-open { overflow: hidden; }

.tk-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.tk-modal {
  width: min(1144px, 100%);
  height: min(792px, calc(100vh - 48px));
  background: var(--card, #fff);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(25, 25, 28, 0.18);
}

.tk-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 57px;
  padding: 10px 16px 10px 26px;
  flex: 0 0 auto;
}

.tk-modal__bar h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.tk-modal__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.tk-modal__nav .tk-icon { font-size: 18px; }

.tk-modal__grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
}

.tk-modal__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 4px 28px 20px;
}

.tk-modal__title-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.crm-tasks :focus,
.crm-tasks :focus-visible,
.tk-overlay :focus,
.tk-overlay :focus-visible {
  outline: none;
}

.tk-modal__title {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  resize: none;
  margin: 0;
  padding: 4px 0;
  background: transparent;
  color: #19191c;
  font: inherit;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  box-shadow: none;
}

.tk-modal__title::placeholder { color: #b9b9b4; }

.tk-modal__props {
  background: #f6f6f3;
  padding: 28px 26px;
  overflow: auto;
}

.tk-modal__props .tk-section-label {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b24-text, #19191c);
}

.tk-prop {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  min-width: 0;
  font-size: 12px;
  color: var(--b24-text, #19191c);
  text-transform: none;
  letter-spacing: 0;
}

.tk-prop > span {
  color: var(--b24-text, #19191c);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.tk-prop-block {
  position: relative;
  margin-bottom: 0;
}

.tk-prop-block > .tk-prop,
.tk-prop-block > .tk-prop-row,
.tk-prop-block > .tk-prop-group {
  margin-bottom: 16px;
}

.tk-prop-block > .tk-prop-row .tk-prop {
  margin-bottom: 0;
}

.tk-prop-group .tk-prop:last-child {
  margin-bottom: 0;
}

.tk-prop-drag {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: grab;
}

.tk-prop-drag svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.tk-prop-block:hover > .tk-prop-drag,
.tk-prop-block:focus-within > .tk-prop-drag,
.tk-prop-block.is-dragging > .tk-prop-drag {
  display: inline-flex;
}

.tk-prop-drag:hover {
  background: #ecece8;
  color: inherit;
}

.tk-prop-drag:active {
  cursor: grabbing;
}

.tk-prop-block.is-dragging {
  opacity: 0.45;
}

.tk-prop-block.is-over {
  box-shadow: inset 0 2px 0 #2563eb;
}

@media (hover: none) {
  .tk-prop-drag { display: inline-flex; }
}

.tk-prop-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.tk-prop select {
  width: 100%;
  height: 39px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card, #fff);
  color: #19191c;
  font: inherit;
  font-size: 14px;
  padding: 0 10px;
  line-height: 39px;
}

.tk-prop option {
  background: var(--card, #fff);
  color: #19191c;
  line-height: normal;
}

.tk-prop__value {
  min-height: 32px;
  display: flex;
  align-items: center;
  color: #19191c;
  font-size: 14px;
}

.tk-date {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: #f0f0ed;
  color: #19191c;
  font-size: 14px;
  cursor: pointer;
  overflow: hidden;
}

.tk-date input {
  width: 100%;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
}

.tk-date input::-webkit-calendar-picker-indicator {
  margin: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.tk-modal__pane {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 14px;
}

.tk-modal__pane[hidden] { display: none; }

.tk-modal__desc-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tk-modal__desc {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 180px;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
  resize: none;
  border: 1px solid #e2e2de;
  outline: none;
  box-shadow: none;
  border-radius: 10px;
  padding: 16px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #19191c;
  background: var(--card, #fff);
}

.tk-modal__desc.is-drop {
  border-color: #22aa79;
  background: color-mix(in srgb, #22aa79 6%, white);
}

.tk-modal__desc.is-empty:before {
  content: attr(data-placeholder);
  color: #b9b9b4;
}

.tk-desc-photo {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 8px 0;
  vertical-align: top;
}

.tk-desc-img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #f7f7f4;
  cursor: zoom-in;
}

.tk-desc-photo__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(25, 25, 28, 0.72);
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.tk-desc-photo__remove:hover {
  background: rgba(25, 25, 28, 0.9);
}

.tk-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
  background: rgba(12, 14, 18, 0.82);
  cursor: zoom-out;
}

.tk-photo-lightbox__img {
  max-width: min(96vw, 1400px);
  max-height: calc(100vh - 56px);
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  cursor: default;
  background: #111;
}

.tk-photo-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.tk-photo-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.tk-mention {
  display: inline;
  padding: 0 4px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--blue) 14%, white);
  color: #0369a1;
  font-weight: 600;
}

.tk-mention--user {
  background: #f0f0ed;
  color: #19191c;
}

.tk-mention-pop {
  position: fixed;
  z-index: 80;
  width: min(360px, calc(100vw - 16px));
  max-height: 280px;
  overflow: auto;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(25, 25, 28, 0.12);
  padding: 6px;
}

.tk-mention-pop button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.tk-mention-pop button.is-on,
.tk-mention-pop button:hover { background: #f3f4f6; }

.tk-mention-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 4px 8px;
}

.tk-mention-kinds button {
  width: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.tk-mention-kinds button.is-on {
  border-color: var(--blue);
  color: #0369a1;
  background: color-mix(in srgb, var(--blue) 12%, white);
}

.tk-mention-pop .tk-muted { margin: 4px 8px 8px; font-size: 12px; }

.tk-modal__foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 28px;
  flex: 0 0 auto;
}

.tk-modal__foot .tk-ghost,
.tk-modal__foot .tk-primary { height: 32px; }

.tk-modal__error { margin: 0 28px 8px; }

.tk-modal__loading { margin: 8px 28px 24px; }

.tk-section-label {
  margin: 8px 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tk-card__side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.tk-card__side > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tk-link-add {
  display: flex;
  gap: 8px;
}

.tk-link-add select { width: 132px; flex: 0 0 auto; }

.tk-link-add input {
  flex: 1;
  min-width: 0;
  height: 39px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card, #fff);
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
}

.tk-links { display: flex; flex-wrap: wrap; gap: 6px; }

.tk-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  color: #19191c;
  font-size: 13px;
}

.tk-link button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.tk-link__open {
  color: #1a56a8 !important;
  text-align: left;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.12s ease, color 0.12s ease;
}

.tk-link__open:hover {
  text-decoration-color: currentColor;
  color: #0f3d7a !important;
}

.tk-link-results { margin-top: 6px; }

.tk-link-results button {
  display: block;
  width: 100%;
  border: 0;
  background: var(--card, #fff);
  border-radius: 6px;
  padding: 8px 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.tk-link-results button:hover { background: #f0f0ed; }

.tk-thread__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
}

.tk-thread__count {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f0f0ed;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tk-composer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card, #fff);
  padding: 10px;
  margin-bottom: 16px;
}

.tk-composer:focus-within { border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); }

.tk-composer textarea {
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  border: 0;
  resize: vertical;
  padding: 4px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--b24-text, #19191c);
}

.tk-composer textarea::placeholder { color: #b9b9b4; }

.tk-composer__bar {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-composer__bar .tk-primary {
  margin-left: auto;
  height: 32px;
  flex: 0 0 auto;
  background: #6c63f5;
  color: #fff;
}

.tk-comment {
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
}

.tk-comment__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #f0f0ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex: 0 0 auto;
}

.tk-comment__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.tk-comment__meta time { color: var(--muted); font-size: 12px; }

.tk-comment__body { margin-top: 4px; font-size: 14px; line-height: 1.45; }

@media (max-width: 900px) {
  .crm-tasks {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .tk-head {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .tk-toolbar {
    width: 100%;
  }

  .tk-search {
    flex: 1 1 100%;
    max-width: none;
  }

  .tk-toolbar__actions {
    margin-left: 0;
    width: 100%;
  }

  .tk-tool,
  .tk-ghost {
    min-height: 40px;
  }

  .tk-board {
    -webkit-overflow-scrolling: touch;
    padding: 0 12px 12px;
  }

  .tk-col {
    min-width: min(280px, 82vw);
  }

  .tk-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .tk-overlay {
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  }

  .tk-modal {
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .tk-modal__grid {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .tk-modal__props {
    padding-top: 8px;
  }
}

@media (max-width: 1100px) {
  .tk-chips { display: flex; }
  .tk-col { display: none; }
  .tk-col.is-current { display: flex; flex: 1 1 100%; max-width: none; }
  .tk-finals-gate { display: none; }
}

/* ---- Nocturne / Figma dark: канбан без белых карточек ---- */
html.is-theme-nocturne body,
html.is-theme-nocturne body.b24-page,
html.is-theme-nocturne .crm-tasks,
html.is-theme-nocturne .crm-tasks .tk,
html.is-theme-nocturne #crm-deals,
html.is-theme-nocturne #crm-tasks,
html.is-theme-nocturne .tk-overlay {
  --card: var(--noct-card, #1a1d24);
  --bg: var(--noct-bg, #0f1117);
  --line: var(--noct-divider, rgba(255, 255, 255, 0.08));
  --muted: var(--noct-neutral-400, #9ca3af);
  color: var(--noct-text, #e8eaed);
  background: var(--noct-bg, #0f1117);
}

html.is-theme-nocturne .tk-board,
html.is-theme-nocturne .tk-col,
html.is-theme-nocturne .tk-table-wrap,
html.is-theme-nocturne .tk-toolbar {
  background: transparent;
  color: inherit;
}

html.is-theme-nocturne .tk-col__name,
html.is-theme-nocturne .tk-col__title,
html.is-theme-nocturne .tk-muted,
html.is-theme-nocturne .tk-banner {
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-muted {
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .tk-chips button {
  background: var(--noct-header, #1c1f28);
  border-color: var(--noct-divider, rgba(255, 255, 255, 0.08));
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-chips button.is-on {
  border-color: var(--noct-brand, #22aa79);
  color: var(--noct-brand-bright, #2eb889);
}

html.is-theme-nocturne .tk-table {
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-table th,
html.is-theme-nocturne .tk-table td {
  border-color: var(--noct-divider, rgba(255, 255, 255, 0.08));
}

html.is-theme-nocturne .tk-table th {
  color: var(--noct-neutral-400, #9ca3af);
  background: var(--noct-header, #1c1f28);
}

html.is-theme-nocturne .tk-table tbody tr:hover {
  background: var(--noct-hover-solid, #22262f);
}

html.is-theme-nocturne .tk-primary {
  background: var(--noct-brand, #22aa79);
  border-color: var(--noct-brand, #22aa79);
  color: #fff;
}

html.is-theme-nocturne .tk-head h1 {
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-top {
  background: var(--noct-bg, #0f1117);
  border-bottom-color: var(--noct-divider, rgba(255, 255, 255, 0.08));
}

html.is-theme-nocturne .tk-views,
html.is-theme-nocturne .tk-tool,
html.is-theme-nocturne .tk-ghost {
  background: var(--noct-surface, #171a21);
  border-color: var(--noct-divider, rgba(255, 255, 255, 0.12));
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-views button,
html.is-theme-nocturne .tk-views__btn {
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .tk-views button.is-on,
html.is-theme-nocturne .tk-views__btn.is-on,
html.is-theme-nocturne .tk-tool.is-on,
html.is-theme-nocturne .tk-tool:hover,
html.is-theme-nocturne .tk-ghost:hover {
  background: var(--noct-header, #1c1f28);
  color: var(--noct-text, #e8eaed);
  box-shadow: none;
}

html.is-theme-nocturne .tk-crumbs__root,
html.is-theme-nocturne .tk-crumbs__sep {
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .tk-crumbs__current {
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-search,
html.is-theme-nocturne .tk-filter,
html.is-theme-nocturne .tk-select,
html.is-theme-nocturne .tk-menu,
html.is-theme-nocturne .tk-dropdown,
html.is-theme-nocturne .tk-checks button,
html.is-theme-nocturne .tk-pop,
html.is-theme-nocturne .tk-count {
  background: var(--noct-header, #1c1f28);
  border-color: var(--noct-divider, rgba(255, 255, 255, 0.08));
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-tool .tk-ico {
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .tk-search input {
  background: var(--noct-header, #1c1f28);
  border-color: var(--noct-divider, rgba(255, 255, 255, 0.08));
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-search input::placeholder {
  color: var(--noct-neutral-500, #6b7280);
}

html.is-theme-nocturne .tk-field option {
  background-color: var(--noct-surface, #171a21);
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-col__count {
  background: var(--noct-header, #1c1f28);
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .tk-dot {
  background: var(--c, #94a3b8);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #94a3b8) 22%, transparent);
}

html.is-theme-nocturne .tk-add {
  background: transparent;
  border-color: var(--noct-divider, rgba(255, 255, 255, 0.08));
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .tk-add:hover {
  background: var(--noct-hover-solid, #22262f);
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-empty-col {
  border-color: var(--noct-divider, rgba(255, 255, 255, 0.1));
  color: var(--noct-neutral-500, #6b7280);
  background: color-mix(in srgb, var(--noct-card, #1a1d24) 35%, transparent);
}

html.is-theme-nocturne .tk-card {
  background: var(--noct-card, #1a1d24);
  border-color: var(--noct-divider, rgba(255, 255, 255, 0.08));
  color: var(--noct-text, #e8eaed);
  box-shadow: none;
}

html.is-theme-nocturne .tk-card:hover {
  background: var(--noct-card-hover, #1f232c);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.12);
}

html.is-theme-nocturne .tk-card.is-overdue {
  background: color-mix(in srgb, #ef4444 12%, var(--noct-card, #1a1d24));
}

html.is-theme-nocturne .tk-card__title {
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-card__meta,
html.is-theme-nocturne .tk-card__id,
html.is-theme-nocturne .tk-card__foot,
html.is-theme-nocturne .tk-card__person.is-empty .tk-card__person-name {
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .tk-card__person-name {
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-card__avatar {
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-card__avatar_empty {
  background: var(--noct-header, #1c1f28);
  color: var(--noct-neutral-400, #9ca3af);
}

html.is-theme-nocturne .tk-pill {
  border-color: color-mix(in srgb, var(--c, #94a3b8) 35%, transparent);
  background: color-mix(in srgb, var(--c, #94a3b8) 14%, transparent);
  color: color-mix(in srgb, var(--c, #94a3b8) 70%, white);
}

html.is-theme-nocturne .tk-modal,
html.is-theme-nocturne .tk-modal__panel,
html.is-theme-nocturne .tk-modal__props,
html.is-theme-nocturne .tk-drawer,
html.is-theme-nocturne .tk-panel {
  background: var(--noct-surface, #171a21);
  color: var(--noct-text, #e8eaed);
  border-color: var(--noct-divider, rgba(255, 255, 255, 0.08));
}

html.is-theme-nocturne .tk-modal__head,
html.is-theme-nocturne .tk-modal__foot,
html.is-theme-nocturne .tk-modal__props {
  border-color: var(--noct-divider, rgba(255, 255, 255, 0.08));
}

html.is-theme-nocturne .tk-prop,
html.is-theme-nocturne .tk-prop > span,
html.is-theme-nocturne .tk-modal__props .tk-section-label {
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-date {
  background: var(--noct-header, #1c1f28);
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-prop input,
html.is-theme-nocturne .tk-prop textarea,
html.is-theme-nocturne .tk-prop select,
html.is-theme-nocturne .tk-field input,
html.is-theme-nocturne .tk-field textarea,
html.is-theme-nocturne .tk-field select,
html.is-theme-nocturne .tk-modal__desc {
  background: var(--noct-header, #1c1f28);
  border-color: var(--noct-divider, rgba(255, 255, 255, 0.08));
  color: var(--noct-text, #e8eaed);
}

html.is-theme-nocturne .tk-modal__desc.is-drop {
  border-color: #22aa79;
  background: color-mix(in srgb, #22aa79 12%, var(--noct-header, #1c1f28));
}

html.is-theme-nocturne .tk-desc-img {
  background: var(--noct-header, #1c1f28);
}

html.is-theme-nocturne .tk-desc-photo__remove {
  background: rgba(0, 0, 0, 0.7);
}

html.is-theme-nocturne .tk-desc-photo__remove:hover {
  background: rgba(0, 0, 0, 0.88);
}

html.is-theme-nocturne .tk-comment__avatar {
  background: var(--noct-header, #1c1f28);
  color: var(--noct-text, #e8eaed);
}

