@font-face {
  font-family: JetBrains;
  src: url(fonts/JetBrainsMono-Regular.ttf) format("truetype");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: JetBrains;
  src: url(fonts/JetBrainsMono-Bold.ttf) format("truetype");
  font-display: swap;
  font-weight: 700;
}
:root {
  --ink: #242724;
  --muted: #747a73;
  --line: #e4e7e0;
  --paper: #fff;
  --canvas: #f7f8f4;
  --accent: #f05b12;
  --accent-dark: #be3e00;
  --green: #3c775b;
  --sidebar: 216px;
  --radius: 7px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1.1px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.mono,
.eyebrow {
  font-family: JetBrains, monospace;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 230px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #20231f;
  color: #b7bcb2;
  display: flex;
  flex-direction: column;
  padding: 28px 14px 0;
  z-index: 20;
}
.brand {
  font-size: 43px;
  font-weight: 800;
  letter-spacing: -3.4px;
  line-height: 1;
  color: #fff;
  display: block;
  margin: 0 14px 33px;
}
.brand span {
  color: #ff681e;
}
.studio-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #3c4039;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 32px;
  font-size: 12px;
  color: #f1f3ee;
}
.studio-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 31px;
  background: #3c4137;
  color: #e0e5d6;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -2px;
  border-radius: 4px;
}
.studio-switch small {
  display: block;
  color: #858d7e;
  font-size: 10px;
  margin-top: 5px;
}
.studio-caret {
  margin-left: auto;
  color: #929a88;
}
.nav-label {
  display: block;
  font-family: JetBrains, monospace;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #7d8775;
  margin: 0 15px 11px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  margin: 3px 0;
  font-size: 12px;
  border-radius: 5px;
  transition:
    background 0.16s,
    color 0.16s;
}
nav a:hover {
  background: #30352c;
  color: #fff;
}
nav a.active {
  background: #363e2f;
  color: #f4f6ed;
}
nav a.active > span:first-child {
  color: #d7e3b7;
}
nav a svg {
  width: 17px;
  height: 17px;
}
nav .nav-label {
  margin-top: 32px;
}
.nav-count {
  font-family: JetBrains, monospace;
  font-size: 10px;
  min-width: 22px;
  padding: 3px 5px;
  text-align: center;
  background: #454e3c;
  color: #dce7ca;
  margin-left: auto;
  border-radius: 3px;
}
.nav-count:empty {
  display: none;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  gap: 9px;
  font-size: 11px;
  padding: 22px 13px;
  line-height: 1.5;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
  color: #818c77;
  margin-top: 3px;
}
.connection-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a4b681;
  margin-top: 5px;
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  gap: 10px;
  align-items: center;
  width: calc(100% + 28px);
  margin-left: -14px;
  padding: 18px 19px;
  border: 0;
  border-top: 1px solid #373e32;
  background: transparent;
  text-align: left;
  font-size: 12px;
  color: #e9ede3;
}
.sidebar-user > span:last-child {
  margin-left: auto;
  color: #7f8a74;
}
.avatar {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  color: #4b5842;
  background: #e8eddc;
  flex-shrink: 0;
}
.sidebar-user .avatar {
  background: #566342;
  color: #e3eccf;
}
.app-shell {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  color: #8b9187;
}
.breadcrumb span {
  color: #b7beb1;
}
.breadcrumb strong {
  color: #434a3d;
  font-weight: 500;
}
.topbar-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.today {
  font-size: 11px;
  color: #8a9084;
  letter-spacing: 0.1px;
}
.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  width: 31px;
  height: 31px;
  border-radius: 5px;
  color: #747c6b;
}
.icon-button:hover {
  background: #edf0e7;
  color: var(--ink);
}
.notification-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  background: var(--accent);
  border: 2px solid white;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.mobile-menu {
  display: none;
}
main#workspace {
  padding: 34px 34px 0;
  flex: 1;
  min-width: 0;
  outline: none;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 29px;
  gap: 20px;
}
.page-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 9px;
  line-height: 1.5;
}
.page-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.heading-tag {
  font-family: JetBrains, monospace;
  font-size: 10px;
  color: #7f8d6a;
  background: #e9efdf;
  border: 1px solid #dce5cd;
  padding: 4px 6px;
  border-radius: 4px;
}
.head-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.14s,
    transform 0.14s;
}
.button:hover {
  background: #f0f2ea;
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 1px 2px #a43f1117;
}
.button.primary:hover {
  background: #dd4e08;
}
.button.subtle {
  background: transparent;
  color: var(--muted);
}
.button.small {
  min-height: 29px;
  padding: 6px 10px;
  font-size: 11px;
}
.button.danger {
  color: #b64030;
}
.button svg {
  width: 15px;
  height: 15px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 27px;
  gap: 0;
}
.stat {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  padding-left: 0;
  border-left: 0;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.stat-label svg {
  width: 13px;
  height: 13px;
}
.stat-value {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 550;
}
.stat-value .unit {
  font-size: 17px;
  color: #858e79;
  margin-left: 3px;
}
.stat-note {
  font-size: 10px;
  color: #8d9783;
  margin-top: 7px;
}
.stat-warning .stat-value {
  color: #ba5125;
}
.stat-value-link {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.toolbar-left,
.toolbar-right {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.segmented {
  display: inline-flex;
  gap: 3px;
  background: #e9ede2;
  padding: 3px;
  border-radius: 6px;
}
.segmented button {
  border: 0;
  padding: 7px 11px;
  background: transparent;
  border-radius: 4px;
  color: #7b8570;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
}
.segmented button svg {
  width: 13px;
  height: 13px;
}
.segmented button.active {
  background: #fff;
  color: #353d2d;
  box-shadow: 0 1px 3px #242e1512;
}
.filter-select,
.search-input {
  border: 1px solid #dfe4d7;
  border-radius: 5px;
  background: #fff;
  color: #626d55;
  font-size: 11px;
  height: 35px;
  padding: 0 10px;
  max-width: 180px;
}
.filter-select {
  padding-right: 23px;
}
.search-wrap {
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 14px;
  height: 14px;
  color: #969f8a;
}
.search-input {
  width: 205px;
  max-width: 100%;
  padding-left: 31px;
}
.search-input::placeholder {
  color: #939d86;
}
.filter-count {
  font-size: 10px;
  color: #8c9581;
}
.board-wrap {
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: thin;
}
.board {
  display: grid;
  grid-template-columns: repeat(6, minmax(211px, 1fr));
  gap: 13px;
  min-height: 440px;
}
.board-column {
  min-width: 0;
  background: #edf0e7;
  border-radius: 6px;
  padding: 0 9px 10px;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.board-column.drag-over {
  border-color: var(--accent);
  background: #faeee3;
}
.column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 49px;
  padding: 0 3px;
  gap: 8px;
}
.column-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 550;
}
.stage-dot {
  height: 6px;
  width: 6px;
  background: #9ca98b;
  border-radius: 50%;
  flex-shrink: 0;
}
.stage-dot.new {
  background: #e07b48;
}
.stage-dot.contacted {
  background: #c0a265;
}
.stage-dot.qualified {
  background: #8b9e6e;
}
.stage-dot.proposal {
  background: #738d96;
}
.stage-dot.won {
  background: #527f5f;
}
.stage-dot.lost {
  background: #939c8a;
}
.column-count {
  color: #8f9a82;
  font-size: 10px;
  font-family: JetBrains, monospace;
  background: #e2e7d9;
  padding: 2px 5px;
  border-radius: 3px;
}
.column-total {
  padding: 0 4px 11px;
  font-size: 10px;
  color: #8d9880;
  font-family: JetBrains, monospace;
  min-height: 25px;
}
.lead-card {
  position: relative;
  background: #fff;
  border: 1px solid #e0e6d7;
  border-radius: 5px;
  margin-bottom: 9px;
  padding: 14px 13px 11px;
  box-shadow: 0 2px 2px #2e3b1e03;
  cursor: pointer;
  transition:
    border-color 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
  min-height: 176px;
}
.lead-card:hover {
  border-color: #bac8a8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px #2e3b1e08;
}
.lead-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.lead-card.dragging {
  opacity: 0.45;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.source-tag {
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 3px;
  background: #f0f3eb;
  color: #71805e;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.source-tag svg {
  width: 10px;
  height: 10px;
}
.source-tag.avito {
  background: #eef2e5;
  color: #788150;
}
.source-tag.vk {
  background: #edf1f6;
  color: #6c8198;
}
.source-tag.website {
  background: #f5eee7;
  color: #ab805a;
}
.lead-id {
  font-family: JetBrains, monospace;
  color: #a6b099;
  font-size: 8px;
}
.lead-card h3 {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.15px;
  min-height: 36px;
}
.card-company {
  font-size: 10px;
  color: #8b9580;
  margin-top: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card-service {
  display: inline-block;
  font-size: 9px;
  color: #87927b;
  margin: 10px 0 12px;
}
.card-amount {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f3eb;
  padding-top: 10px;
  gap: 5px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-meta .avatar {
  width: 22px;
  height: 22px;
  font-size: 8px;
}
.card-date {
  font-size: 9px;
  color: #8c9880;
  display: flex;
  gap: 4px;
  align-items: center;
}
.card-date.overdue {
  color: #bb6745;
}
.card-date svg {
  width: 11px;
  height: 11px;
}
.column-add {
  width: 100%;
  border: 0;
  background: transparent;
  color: #94a083;
  padding: 9px 0;
  font-size: 10px;
  text-align: left;
  display: flex;
  gap: 6px;
  align-items: center;
}
.column-add:hover {
  color: var(--accent);
}
.column-add svg {
  width: 12px;
  height: 12px;
}
.empty-column {
  padding: 25px 5px;
  color: #a1ab94;
  font-size: 10px;
  text-align: center;
  border: 1px dashed #d9e1ce;
  border-radius: 5px;
  margin-bottom: 8px;
}
.board-note {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  color: #98a28b;
  margin: 1px 0 22px;
}
.board-note svg {
  width: 12px;
  height: 12px;
}
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 34px;
  border-top: 1px solid var(--line);
  color: #9aa28f;
  font-family: JetBrains, monospace;
  font-size: 8px;
  letter-spacing: 0.5px;
  margin-top: 25px;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
.data-table th {
  font-size: 10px;
  font-weight: 500;
  color: #89957b;
  background: #f6f8f2;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  font-size: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1e6;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fafbf6;
}
.clickable-row {
  cursor: pointer;
}
.table-title {
  font-weight: 550;
  color: #3a4530;
}
.table-subtitle {
  display: block;
  font-size: 10px;
  color: #97a08c;
  margin-top: 5px;
}
.table-user {
  display: flex;
  gap: 8px;
  align-items: center;
}
.table-user .avatar {
  width: 24px;
  height: 24px;
  font-size: 8px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 4px 7px;
  background: #eef2e6;
  color: #798a62;
  border-radius: 4px;
}
.status-pill.new,
.status-pill.urgent {
  background: #fff0e6;
  color: #b2643a;
}
.status-pill.done,
.status-pill.won {
  background: #e9f3e9;
  color: #55875a;
}
.status-pill.lost,
.status-pill.inactive {
  background: #f0f1ed;
  color: #939a89;
}
.status-pill.high {
  background: #fff0e9;
  color: #bd7048;
}
.status-select {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 6px;
  background: #fff;
  border-radius: 4px;
  max-width: 135px;
}
.check-button {
  width: 19px;
  height: 19px;
  border: 1px solid #cad3bd;
  border-radius: 4px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #6e8951;
}
.check-button svg {
  width: 13px;
  height: 13px;
}
.check-button.checked {
  background: #edf4e5;
  border-color: #bdd0a6;
}
.empty-state {
  padding: 75px 20px;
  text-align: center;
}
.empty-state > svg {
  width: 32px;
  height: 32px;
  color: #a6b394;
  margin-bottom: 17px;
}
.empty-state h3 {
  margin-bottom: 9px;
  font-size: 16px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.loading-state {
  color: #96a484;
  padding: 100px 10px;
  text-align: center;
  font-size: 12px;
}
.task-summary {
  color: #7c896e;
  font-size: 11px;
}
.task-summary strong {
  color: #35452b;
}
.overdue-text {
  color: #b85b35 !important;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: #1c241f46;
  backdrop-filter: blur(2px);
  z-index: 30;
  animation: fade-in 0.15s;
}
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 31;
  width: min(550px, 100%);
  background: #fff;
  overflow: auto;
  box-shadow: -5px 0 30px #16200616;
  animation: slide-in 0.2s;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
}
.drawer-header .eyebrow {
  color: #839272;
}
.drawer-content {
  padding: 24px;
}
.drawer-title {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.drawer-subtitle {
  font-size: 12px;
  color: #909c82;
  margin-bottom: 20px;
}
.drawer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 20px;
  margin: 24px 0;
}
.detail-label {
  font-size: 10px;
  color: #96a087;
  margin-bottom: 7px;
}
.detail-value {
  font-size: 12px;
  line-height: 1.6;
  word-break: break-word;
}
.detail-value a {
  color: var(--accent-dark);
}
.section-divider {
  margin: 26px 0 18px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-divider h3 {
  font-size: 12px;
}
.description {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  color: #6f7d62;
}
.related-task {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #edf1e8;
  cursor: pointer;
}
.related-task > div {
  flex: 1;
}
.related-task h4 {
  font-size: 11px;
  font-weight: 500;
  margin: 0;
}
.related-task small {
  font-size: 9px;
  color: #94a284;
  display: block;
  margin-top: 5px;
}
.timeline-item {
  position: relative;
  padding: 0 0 20px 21px;
  border-left: 1px solid #e6ebde;
  margin-left: 4px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  top: 4px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ced8bf;
  border: 2px solid #fff;
}
.timeline-item p {
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.timeline-item small {
  font-size: 9px;
  color: #a1ac93;
  display: block;
  margin-top: 5px;
}
.comment-form {
  display: flex;
  gap: 7px;
  margin-bottom: 23px;
}
.comment-form input {
  flex: 1;
  min-width: 0;
}
input,
select,
textarea {
  color: #3c4833;
}
label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #7c8a6c;
  gap: 7px;
}
label input,
label select,
label textarea,
.comment-form input {
  border: 1px solid #dce3d4;
  border-radius: 5px;
  padding: 10px 11px;
  background: #fff;
  font-size: 12px;
  min-width: 0;
  width: 100%;
  line-height: 1.5;
}
label textarea {
  resize: vertical;
  min-height: 86px;
}
label input::placeholder,
label textarea::placeholder {
  color: #b1b9a8;
}
label .field-help {
  font-size: 9px;
  color: #9ca88f;
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.full-width {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 23px;
}
.form-error {
  padding: 10px 12px;
  margin: 15px 0;
  font-size: 11px;
  border: 1px solid #eac9b5;
  border-radius: 4px;
  color: #ae4d23;
  background: #fff4ed;
  line-height: 1.6;
}
.form-hint {
  font-size: 10px;
  color: #8c9b7b;
  line-height: 1.7;
  margin-bottom: 18px;
}
.checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.checkbox-label input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}
dialog {
  width: min(600px, calc(100vw - 30px));
  border: 1px solid #dce4d0;
  border-radius: 9px;
  padding: 0;
  box-shadow: 0 20px 90px #17250a22;
  max-height: 90vh;
  background: #fff;
  color: var(--ink);
}
dialog::backdrop {
  background: #1e281e66;
  backdrop-filter: blur(2px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 19px 23px;
}
.modal-head h2 {
  font-size: 18px;
}
.modal-body {
  padding: 23px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 108px);
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(600px, 90vw);
  background: #303b28;
  color: #f5f9ee;
  font-size: 12px;
  padding: 13px 19px;
  border-radius: 6px;
  box-shadow: 0 4px 20px #23381422;
  animation: fade-in 0.2s;
}
.toast.error {
  background: #934426;
}
.helper-note {
  padding: 13px 15px;
  background: #edf2e5;
  border: 1px solid #e0e8d5;
  border-radius: 5px;
  color: #7e8c6c;
  font-size: 10px;
  line-height: 1.75;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.helper-note svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.gantt-toolbar {
  margin-bottom: 18px;
}
.date-range {
  font-size: 12px;
  font-weight: 550;
  min-width: 170px;
  text-align: center;
}
.gantt-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: auto;
  background: #fff;
  max-height: 65vh;
}
.gantt-grid {
  display: grid;
  min-width: 950px;
  grid-template-columns: 210px repeat(var(--days), minmax(38px, 1fr));
  position: relative;
}
.gantt-person-head {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 8;
  background: #f6f8f2;
  padding: 20px 17px;
  font-size: 10px;
  color: #8e9c7c;
  border-bottom: 1px solid var(--line);
}
.gantt-day {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #f6f8f2;
  text-align: center;
  padding: 12px 2px 9px;
  border-left: 1px solid #e9efdf;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.gantt-day small {
  display: block;
  font-size: 8px;
  margin-top: 5px;
  color: #a2ae93;
}
.gantt-day.weekend {
  background: #edf0e8;
  color: #a7b397;
}
.gantt-day.is-today {
  color: var(--accent);
  background: #fff0e5;
}
.gantt-person {
  grid-column: 1;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 5;
  padding: 17px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.gantt-person .avatar {
  width: 28px;
  height: 28px;
}
.gantt-person-name {
  font-size: 11px;
  font-weight: 550;
  margin-top: 1px;
}
.capacity-label {
  font-family: JetBrains, monospace;
  font-size: 8px;
  color: #99a987;
  margin-top: 7px;
}
.capacity-label.over {
  color: #c36f3c;
}
.capacity-track {
  height: 3px;
  background: #edf1e7;
  border-radius: 2px;
  margin-top: 7px;
  overflow: hidden;
  width: 105px;
}
.capacity-track span {
  display: block;
  background: #9cac83;
  height: 100%;
  max-width: 100%;
}
.capacity-track.over span {
  background: #db8b57;
}
.gantt-background {
  grid-column: 2/-1;
  display: grid;
  grid-template-columns: repeat(var(--days), 1fr);
  border-bottom: 1px solid var(--line);
}
.gantt-cell {
  border-left: 1px solid #edf1e7;
}
.gantt-cell.weekend {
  background: #f7f9f3;
}
.gantt-cell.is-today {
  background: #fff8f0;
  box-shadow: inset 1px 0 #f3b18d;
}
.gantt-bar {
  align-self: center;
  height: 29px;
  background: #e5eddc;
  color: #617950;
  border: 1px solid #d2dfc2;
  border-radius: 4px;
  z-index: 3;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
  font-size: 9px;
  margin: 0 3px;
  cursor: pointer;
  transition: filter 0.15s;
}
.gantt-bar:hover {
  filter: brightness(0.96);
}
.gantt-bar.doing {
  background: #f8e3ce;
  border-color: #ebc7a2;
  color: #a07043;
}
.gantt-bar.review {
  background: #e0e9ed;
  border-color: #c7d6de;
  color: #6a818d;
}
.gantt-bar.overdue {
  background: #f9e6db;
  border-color: #ebbeaa;
  color: #b16d4e;
}
.gantt-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 16px 0;
  font-size: 10px;
  color: #9aa58c;
}
.legend-square {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #dce9cc;
  border-radius: 2px;
  margin-right: 5px;
}
.legend-square.doing {
  background: #edcda8;
}
.legend-square.review {
  background: #c7d9e2;
}
.integration-list {
  border-top: 1px solid var(--line);
}
.integration-row {
  display: flex;
  gap: 19px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.integration-logo {
  background: #e8eddf;
  border: 1px solid #dce4d0;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #7d9162;
  font-size: 14px;
  flex-shrink: 0;
}
.integration-logo.website {
  background: #fae9d8;
  border-color: #f3d8bc;
  color: #c88144;
}
.integration-logo.telegram {
  background: #e4edf3;
  border-color: #d0e0eb;
  color: #789aad;
}
.integration-info {
  flex: 1;
}
.integration-info h3 {
  font-size: 13px;
  margin-bottom: 6px;
}
.integration-info p {
  font-size: 11px;
  line-height: 1.6;
  color: #96a18a;
  max-width: 550px;
}
.integration-state {
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  color: #96a38a;
}
.integration-state.ready {
  color: #7d9661;
}
.integration-state .connection-dot {
  margin: 0;
  background: currentColor;
}
.settings-section {
  margin: 30px 0 18px;
  font-size: 12px;
}
.code-block {
  background: #edf2e6;
  border: 1px solid #e0e8d4;
  padding: 14px;
  border-radius: 5px;
  line-height: 1.8;
  font-family: JetBrains, monospace;
  font-size: 10px;
  color: #73815e;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.import-summary {
  font-size: 12px;
  line-height: 1.8;
  margin: 16px 0;
}
.import-errors {
  font-size: 11px;
  color: #bb7350;
  line-height: 1.7;
  padding-left: 18px;
  max-height: 150px;
  overflow: auto;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.profile-card .avatar {
  width: 46px;
  height: 46px;
  font-size: 15px;
}
.profile-card h3 {
  font-size: 17px;
  margin-bottom: 5px;
}
.profile-card p {
  font-size: 11px;
  color: var(--muted);
}
.profile-section {
  border-top: 1px solid var(--line);
  padding: 21px 0;
}
.profile-section h3 {
  font-size: 12px;
  margin-bottom: 10px;
}
.profile-section p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
  line-height: 1.6;
}
.activity-list {
  max-width: 800px;
}
.activity-item {
  display: flex;
  gap: 13px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.activity-item > span {
  background: #eaf0e1;
  border-radius: 5px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #879b6e;
}
.activity-item p {
  font-size: 12px;
  line-height: 1.65;
}
.activity-item small {
  font-size: 10px;
  color: #9aa88b;
  display: block;
  margin-top: 6px;
}
.error-state {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  border: 1px solid #e4ceb7;
  background: #fff9f0;
  border-radius: 6px;
}
.error-state p {
  font-size: 12px;
  line-height: 1.8;
  color: #a07b53;
  margin: 15px 0;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-art {
  background: #242921;
  color: #f5f6ed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 43px 48px;
}
.login-art .brand {
  margin: 0;
}
.login-message {
  margin: auto 0;
}
.login-message .eyebrow {
  color: #9eae8c;
}
.login-message h1 {
  font-size: clamp(32px, 3.5vw, 58px);
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 23px 0;
}
.login-message p {
  font-size: 13px;
  color: #9faa91;
  line-height: 1.7;
}
.flow-art {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 55px;
  font-family: JetBrains, monospace;
  font-size: 9px;
  letter-spacing: 0.4px;
  color: #a9b49c;
}
.flow-art span {
  padding: 12px 10px;
  border: 1px solid #4a5740;
  border-radius: 3px;
}
.flow-art span:first-child {
  color: #ecac7c;
  border-color: #9e663e;
}
.flow-art i {
  display: block;
  width: 18px;
  height: 1px;
  background: #59684b;
}
.login-footnote {
  font-family: JetBrains, monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #7e8d70;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form-inner {
  width: 100%;
  max-width: 340px;
}
.login-form-inner h2 {
  font-size: 28px;
  font-weight: 550;
  margin: 14px 0 10px;
}
.login-form-inner > .muted {
  font-size: 12px;
  margin-bottom: 30px;
}
.login-form-inner label {
  margin-bottom: 20px;
}
.login-form-inner input {
  height: 45px;
}
.login-form-inner .button {
  width: 100%;
  justify-content: space-between;
  height: 44px;
  margin-top: 6px;
}
.login-help {
  font-size: 10px;
  color: #a1ac96;
  line-height: 1.9;
  margin-top: 28px;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slide-in {
  from {
    transform: translateX(25px);
    opacity: 0.3;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.view-enter {
  animation: fade-in 0.18s ease-out;
}
@media (min-width: 1700px) {
  .board {
    grid-template-columns: repeat(6, minmax(215px, 1fr));
  }
  .lead-card {
    padding: 16px;
    min-height: 190px;
  }
  .lead-card h3 {
    font-size: 13px;
  }
  .card-company {
    font-size: 11px;
  }
  main#workspace {
    padding: 40px 42px 0;
  }
  .topbar {
    padding: 0 42px;
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar: 188px;
  }
  .sidebar {
    padding-top: 24px;
  }
  .brand {
    font-size: 38px;
  }
  .studio-switch {
    font-size: 11px;
  }
  .studio-switch small {
    font-size: 9px;
  }
  main#workspace {
    padding: 25px 23px 0;
  }
  .topbar {
    padding: 0 23px;
  }
  .today {
    display: none;
  }
  .stat {
    padding-left: 20px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-label {
    font-size: 10px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar-right {
    margin-left: auto;
  }
  .board {
    grid-template-columns: repeat(6, 225px);
  }
  .toast {
    left: calc(50% + 94px);
  }
}
@media (max-width: 760px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    width: 216px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 10px 0 50px #1b2d1633;
  }
  .app-shell {
    margin: 0;
  }
  .topbar {
    height: 57px;
    padding: 0 16px;
  }
  .mobile-menu {
    display: flex;
    margin-right: 7px;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 10px;
    gap: 8px;
  }
  .breadcrumb > span,
  .breadcrumb {
    color: #9ba98d;
  }
  .breadcrumb strong {
    font-size: 11px;
  }
  .topbar-actions {
    gap: 5px;
  }
  .topbar-actions .today {
    display: none;
  }
  main#workspace {
    padding: 24px 16px 0;
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 23px;
    gap: 12px;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .page-head p {
    font-size: 11px;
    max-width: 250px;
    line-height: 1.6;
  }
  .heading-tag {
    display: none;
  }
  .head-actions {
    gap: 5px;
  }
  .head-actions .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .head-actions .secondary-action {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    padding: 19px 0;
  }
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(2),
  .stat:nth-child(4) {
    padding-left: 18px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-label {
    margin-bottom: 8px;
    font-size: 10px;
  }
  .stat-note {
    font-size: 9px;
  }
  .toolbar {
    align-items: flex-start;
    margin-bottom: 17px;
  }
  .toolbar-left,
  .toolbar-right {
    width: 100%;
    gap: 7px;
  }
  .toolbar-right {
    margin-left: 0;
  }
  .search-wrap {
    flex: 1;
  }
  .search-input {
    width: 100%;
  }
  .filter-select {
    max-width: 145px;
    font-size: 10px;
  }
  .board {
    grid-template-columns: repeat(6, 255px);
    gap: 12px;
    min-height: 420px;
  }
  .lead-card {
    min-height: 184px;
    padding: 15px;
  }
  .lead-card h3 {
    font-size: 13px;
  }
  .card-company {
    font-size: 11px;
  }
  .card-service {
    font-size: 10px;
  }
  .column-name {
    font-size: 12px;
  }
  .board-note {
    font-size: 9px;
    line-height: 1.5;
  }
  .app-footer {
    padding: 18px 16px;
  }
  .toast {
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 30px);
  }
  .drawer-header {
    padding: 15px 18px;
  }
  .drawer-content {
    padding: 22px 18px;
  }
  .drawer-title {
    font-size: 23px;
  }
  .form-grid {
    gap: 14px;
  }
  .modal-body {
    padding: 20px;
  }
  .integration-row {
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0;
  }
  .integration-info {
    min-width: calc(100% - 65px);
  }
  .integration-row .integration-state {
    margin-left: 57px;
  }
  .integration-row > .button {
    margin-left: auto;
  }
  .integration-info p {
    font-size: 10px;
  }
  .integration-logo {
    width: 40px;
    height: 40px;
  }
  .gantt-toolbar .toolbar-left {
    justify-content: center;
  }
  .gantt-toolbar .toolbar-right {
    justify-content: center;
  }
  .date-range {
    font-size: 11px;
    min-width: 150px;
  }
  .gantt-legend {
    font-size: 9px;
    gap: 12px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 0;
    padding: 25px 25px 27px;
  }
  .login-art .brand {
    font-size: 34px;
  }
  .login-message {
    margin-top: 30px;
  }
  .login-message h1 {
    font-size: 31px;
    letter-spacing: -1px;
    margin: 13px 0;
  }
  .login-message p {
    font-size: 11px;
  }
  .login-message .eyebrow {
    font-size: 8px;
  }
  .flow-art,
  .login-footnote {
    display: none;
  }
  .login-form-wrap {
    padding: 33px 26px;
  }
  .login-form-inner {
    max-width: 400px;
  }
  .login-form-inner h2 {
    font-size: 24px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .form-actions .button {
    flex: 1;
  }
  .gantt-grid {
    grid-template-columns: 170px repeat(var(--days), minmax(38px, 1fr));
  }
  .gantt-person {
    padding: 15px 10px;
    gap: 8px;
  }
  .gantt-person-name {
    font-size: 10px;
  }
  .data-table td,
  .data-table th {
    padding: 13px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.breadcrumb,
.stat-label,
.stat-note,
.filter-count,
.card-company,
.card-service,
.card-date,
.table-subtitle,
.detail-label,
.drawer-subtitle,
.form-hint,
.board-note,
.app-footer,
.integration-info p,
.integration-state,
.capacity-label,
.gantt-legend,
.timeline-item small {
  color: #6f7b63;
}
.status-pill {
  color: #5d714b;
}
.column-total,
.column-add,
.empty-column {
  color: #788669;
}
.overdue-text,
.card-date.overdue,
.capacity-label.over {
  color: #a84925 !important;
}
.nav-label {
  color: #939d88;
}
.sidebar-bottom small {
  color: #949e88;
}
.avito-integration {
  flex-wrap: wrap;
}
.avito-tools,
.avito-details {
  width: 100%;
  margin-left: 64px;
}
.avito-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.avito-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 10px;
  line-height: 1.7;
  color: #6f7b63;
}
@media (max-width: 760px) {
  .avito-tools,
  .avito-details {
    margin-left: 52px;
  }
  .avito-tools .button {
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
  }
  .sidebar.is-open {
    visibility: visible;
  }
}
