/* Доска: три колонки строк-карточек. */

.app { display: flex; flex-direction: column; height: 100dvh; }

#search {
  width: 190px; height: 38px; padding: 0 12px;
  background: var(--field); border: 1px solid var(--field-border); border-radius: var(--radius);
  font-family: var(--mono); font-size: 12.5px;
}
#search::placeholder { color: var(--muted); }

.board {
  flex-grow: 1; min-height: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 64px;
  padding: 34px 44px 36px;
}

.col { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.col + .col::before { content: ""; position: absolute; inset: 0 auto 0 -32px; border-left: 1px solid var(--rule-col); }

.col-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 0 16px;
  border-top: 1px solid var(--rule-head);
}
.col--done .col-head { border-top-color: var(--rule-head-done); }

.col-head h2 {
  margin: 0;
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--label);
}
.col--done .col-head h2 { color: var(--muted); }

.count { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.col-body {
  flex-grow: 1; min-height: 40px;
  margin: 0 -10px; padding: 0; list-style: none;
  overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--field-border) transparent;
}
.col-body::-webkit-scrollbar { width: 6px; }
.col-body::-webkit-scrollbar-thumb { background: var(--field-border); border-radius: 3px; }

.card {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%;
  padding: 16px 10px;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  text-align: left; font-size: 14px; line-height: 1.55; color: var(--fg-row);
  cursor: pointer; border-radius: var(--radius);
}
.card:hover { background: var(--hover); }
.card:active { cursor: grabbing; }
.card.dragging { opacity: .35; }

.col--doing .card { color: var(--fg-doing); }
.col--done .card { color: var(--muted); border-bottom-color: var(--rule-soft); }

.tick { flex-shrink: 0; margin-top: 5px; color: var(--tick); }
.card-text { overflow-wrap: anywhere; }
.card-text--empty { color: var(--tick); font-style: italic; }

.drop-line { height: 0; border-top: 1px solid var(--solid); list-style: none; }

.add {
  width: calc(100% + 20px); margin-inline: -10px;
  padding: 17px 10px; flex-shrink: 0;
  background: none; border: 0; border-radius: var(--radius); text-align: left;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer;
}
.add:hover { background: var(--hover); color: var(--fg-row); }

.nothing {
  margin: 0; padding: 0 44px 36px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

.card-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex-grow: 1; }

.card-meta {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--mono); font-size: 10.5px; line-height: 1.4;
  color: var(--tick); letter-spacing: .02em;
}
.col--doing .card-meta, .col--done .card-meta { color: var(--tick); }

@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; grid-auto-rows: min-content; padding: 20px; gap: 28px; overflow-y: auto; }
  .col + .col::before { display: none; }
  .col-body { overflow: visible; }
}
