/* =========================================================================
 * Boards. The board is the feature's own layout: columns side by side, cards
 * that move between them. Panels, summary, filters, badges, the record page,
 * fields and comments come from Stoneware; this file owns only the board,
 * the card face, the card page's own parts and the board settings.
 * ========================================================================= */

/* A glyph drawn in the colour of its text; the icon set has hard-coded strokes, so it is masked. */
.boards-glyph {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentcolor;
  mask: var(--boards-glyph) center / 14px 14px no-repeat;
  -webkit-mask: var(--boards-glyph) center / 14px 14px no-repeat;
}

.boards-muted {
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-sm);
}

/* ---------------------------------------------------------------- board header */

/*
 * The board's summary stands in its header as quiet chips: how much work is open and, only when there is any,
 * what is overdue or has nobody responsible. The split by column is the columns themselves, so the header does
 * not draw it a second time. The chips are one button — the detail figures open from it as a note.
 */
.boards-head-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  padding: 3px;
  background: transparent;
  border: 0;
  border-radius: var(--fs-radius-pill);
  font: inherit;
  cursor: pointer;
}

.boards-head-summary:focus-visible {
  outline: 0;
  box-shadow: var(--fs-focus-ring);
}

.boards-head-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 26px;
  padding: 3px 10px;
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-surface-subtle);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-pill);
  font-size: var(--fs-text-xs);
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.14s ease;
}

.boards-head-chip strong {
  color: var(--fs-color-text);
  font-size: var(--fs-text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.boards-head-chip[data-tone="danger"] {
  color: var(--fs-color-danger-text);
  background: var(--fs-color-danger-subtle);
  border-color: var(--fs-color-danger-line);
}

.boards-head-chip[data-tone="danger"] strong {
  color: var(--fs-color-danger-text);
}

.boards-head-chip[data-tone="warning"] {
  color: var(--fs-color-warning-text);
  background: var(--fs-color-warning-subtle);
  border-color: var(--fs-color-warning-line);
}

.boards-head-chip[data-tone="warning"] strong {
  color: var(--fs-color-warning-text);
}

.boards-head-chip[hidden] {
  display: none;
}

@media (hover: hover) {
  .boards-head-summary:hover .boards-head-chip {
    border-color: var(--fs-color-primary-line);
  }
}

/*
 * A process action of the board — launch a survey, export it — is a tool, not a navigation pill: a white
 * surface, a firm primary edge and the glyph in the colour of the action. On a phone only the glyph stays.
 */
.fs-page-heading-actions .boards-head-action.action-button {
  gap: 7px;
  padding-inline: 12px 14px;
  color: var(--fs-color-primary-text);
  background: var(--fs-color-surface);
  border: 1.5px solid var(--fs-color-primary-line);
  border-radius: var(--fs-radius-control);
  font-weight: 600;
}

.fs-page-heading-actions .boards-head-action.action-button .action-button__icon {
  width: 18px;
  height: 18px;
  background: var(--fs-color-primary);
}

@media (hover: hover) {
  .fs-page-heading-actions .boards-head-action.action-button:hover {
    background: var(--fs-color-primary-subtle);
    border-color: var(--fs-color-primary);
  }
}

/* The filters button carries the count of active conditions on its shoulder, so a narrowed board says so. */
.boards-head-filters {
  position: relative;
  display: inline-flex;
}

.boards-head-filters__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  padding: 0 5px;
  color: var(--fs-color-surface);
  background: var(--fs-color-primary);
  border-radius: var(--fs-radius-pill);
  font-size: var(--fs-text-xs);
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

.boards-head-filters__count[hidden] {
  display: none;
}

.boards-summary-note {
  display: grid;
  gap: var(--fs-space-3);
}

.boards-summary-note__meta {
  margin: 0;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
}

.boards-summary-note__figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--fs-space-2) var(--fs-space-4);
  margin: 0;
  padding-top: var(--fs-space-3);
  border-top: 1px solid var(--fs-color-border-subtle);
}

.boards-summary-note__figures > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--fs-space-2);
}

.boards-summary-note__figures dt {
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
}

.boards-summary-note__figures dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.boards-summary-note__figures [data-tone="warning"] dd {
  color: var(--fs-color-warning-text);
}

.boards-summary-note__figures [data-tone="danger"] dd {
  color: var(--fs-color-danger-text);
}

/* ---------------------------------------------------------------- board */

/*
 * Columns stand side by side and the board scrolls on its own when they do not fit — the one place a page
 * scrolls sideways, because the order of columns is the content. Each column is a white panel; its lane is the
 * warm nested surface, so white cards read as lifted work and an empty lane still reads as a place to drop one.
 */
.boards-board {
  cursor: grab;
  display: grid;
  grid-auto-columns: minmax(276px, 1fr);
  grid-auto-flow: column;
  gap: var(--fs-space-2);
  align-items: stretch;
  min-width: 0;
  /* The script sets the height to what is left of the screen under the board, so lanes scroll, not the page. */
  height: var(--boards-height, auto);
  min-height: 360px;
  padding-bottom: var(--fs-space-1);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--fs-color-scrollbar) transparent;
}

/* While the board is carried, nothing snaps or selects and the hand is closed. */
.boards-board.is-panning {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.boards-board.is-panning * {
  cursor: grabbing;
}

.boards-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

/*
 * A compact head: the column is named by a structural label, its kind by a dot, its load by a count. It is one
 * control-height line, so the cards — what the board is opened for — start right under it.
 */
.boards-column__head {
  display: flex;
  align-items: center;
  gap: var(--fs-space-2);
  min-height: 40px;
  padding: 6px 8px 6px 12px;
  border-bottom: 1px solid var(--fs-color-border-subtle);
}

.boards-column__kind {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--fs-color-text-muted);
  border-radius: var(--fs-radius-pill);
}

.boards-column__kind[data-tone="primary"] {
  background: var(--fs-color-primary);
}

.boards-column__kind[data-tone="success"] {
  background: var(--fs-color-success);
}

.boards-column__kind[data-tone="warning"] {
  background: var(--fs-color-warning);
}

/*
 * A coloured column keeps its kind dot — the kind says what the column means — and takes the colour as a
 * rail along the top of its head and a faint wash of the head itself, the way a board of several closed
 * outcomes tells them apart at a glance. The positions are the categorical scale; the lane stays warm and
 * neutral so cards of every column read the same.
 */
.boards-column[data-color="1"] { --boards-column-color: var(--fs-category-1); }
.boards-column[data-color="2"] { --boards-column-color: var(--fs-category-2); }
.boards-column[data-color="3"] { --boards-column-color: var(--fs-category-3); }
.boards-column[data-color="4"] { --boards-column-color: var(--fs-category-4); }
.boards-column[data-color="5"] { --boards-column-color: var(--fs-category-5); }
.boards-column[data-color="6"] { --boards-column-color: var(--fs-category-6); }
.boards-column[data-color="7"] { --boards-column-color: var(--fs-category-7); }

/*
 * The whole column takes its colour, as the brand book states (рішення 2026-10-16, повернуто 2026-10-22: 2026-10-19
 * left it to the head alone): the head denser, the lane lighter, the frame and the lane's scrollbar in the same hue.
 * White cards read the same on every tinted lane; the kind dot stays, because the kind says what the column means.
 */
/* The frame is the lane's own tint one step down: a dark hue — primary, terracotta — at a strong share drew an outline. */
.boards-column:not([data-color="0"]) {
  border-color: color-mix(in srgb, var(--boards-column-color) 22%, var(--fs-color-surface));
}

.boards-column:not([data-color="0"]) .boards-column__head {
  background: color-mix(in srgb, var(--boards-column-color) 22%, var(--fs-color-surface));
  border-bottom-color: color-mix(in srgb, var(--boards-column-color) 40%, var(--fs-color-surface));
}

.boards-column:not([data-color="0"]) .boards-column__lane {
  background: color-mix(in srgb, var(--boards-column-color) 12%, var(--fs-color-surface));
  scrollbar-color: color-mix(in srgb, var(--boards-column-color) 35%, var(--fs-color-surface)) transparent;
}

.boards-column:not([data-color="0"]) .boards-column__lane.is-drop-target {
  background: color-mix(in srgb, var(--boards-column-color) 24%, var(--fs-color-surface));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--boards-column-color) 70%, black);
}

.boards-column:not([data-color="0"]) .boards-column__title {
  color: color-mix(in srgb, var(--boards-column-color) 70%, black);
}

.boards-column:not([data-color="0"]) .boards-column__count {
  color: color-mix(in srgb, var(--boards-column-color) 72%, black);
  background: color-mix(in srgb, var(--boards-column-color) 16%, var(--fs-color-surface));
  border-color: color-mix(in srgb, var(--boards-column-color) 48%, var(--fs-color-surface));
}

.boards-column__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.boards-column__count {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 1px 7px;
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-surface-subtle);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-pill);
  font-size: var(--fs-text-xs);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.boards-column[data-kind="DONE"] .boards-column__count {
  color: var(--fs-color-success-text);
  background: var(--fs-color-success-subtle);
  border-color: var(--fs-color-success-line);
}

.boards-column__rules {
  display: inline-flex;
  color: var(--fs-color-text-muted);
  cursor: help;
}

.boards-column__add {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  color: var(--fs-color-primary-text);
  border: 1px solid transparent;
  border-radius: var(--fs-radius-control);
  text-decoration: none;
}

.boards-column__add .boards-glyph {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  mask-size: 16px 16px;
  -webkit-mask-size: 16px 16px;
}

@media (hover: hover) {
  .boards-column__add:hover {
    background: var(--fs-color-primary-subtle);
    border-color: var(--fs-color-primary-line);
  }
}

.boards-column__add:focus-visible {
  outline: 0;
  box-shadow: var(--fs-focus-ring);
}

/* Without an add button the rules glyph and the count close the line on the right. */
.boards-column__head:not(:has(.boards-column__add)) .boards-column__count {
  margin-left: auto;
}

.boards-column__lane {
  display: grid;
  align-content: start;
  gap: var(--fs-space-2);
  min-height: 132px;
  margin: 0;
  padding: var(--fs-space-2);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  list-style: none;
  background: var(--fs-color-surface-subtle);
  scrollbar-width: thin;
  scrollbar-color: var(--fs-color-border) transparent;
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

/* The lane under a carried card says where it will land. */
.boards-column__lane.is-drop-target {
  background: var(--fs-color-selected-subtle);
  box-shadow: inset 0 0 0 2px var(--fs-color-primary-line);
}

/* The line between two cards where a carried card will be put. */
.boards-drop-marker {
  height: 3px;
  margin: -5px 2px;
  background: var(--fs-color-primary);
  border-radius: var(--fs-radius-pill);
  pointer-events: none;
}

.boards-column__empty {
  padding: var(--fs-space-4) var(--fs-space-2);
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-sm);
  text-align: center;
}

.boards-column__more {
  margin: 0;
  padding: 6px var(--fs-space-2) 8px;
  color: var(--fs-color-text-muted);
  background: var(--fs-color-surface-subtle);
  font-size: var(--fs-text-xs);
  text-align: center;
}

/* ---------------------------------------------------------------- card */

.boards-card {
  position: relative;
  min-width: 0;
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-card);
  box-shadow: var(--fs-shadow-sm);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
}

/* High priority is said in words inside the card; it no longer paints a rail on its edge (прибрано 2026-10-19). */
@media (hover: hover) {
  .boards-card:hover {
    border-color: var(--fs-color-primary-line);
    box-shadow: var(--fs-shadow-md);
  }
}

.boards-card[hidden] {
  display: none;
}

.boards-card.is-dragging {
  opacity: 0.35;
}

.boards-card.is-saving {
  opacity: 0.6;
  pointer-events: none;
}

/* The copy that follows the pointer while a card is carried. */
.boards-card--ghost {
  position: fixed;
  z-index: 60;
  margin: 0;
  pointer-events: none;
  border-color: var(--fs-color-primary-line);
  box-shadow: var(--fs-shadow-md);
  transform: rotate(1.5deg);
}

/*
 * Every card on a board is one height (рішення 2026-10-23): the title takes up to two lines, the fact under it and
 * the next step one each, and the line of facts stands at the foot whatever is above it — so a column reads as a
 * stack of equal cards and the eye finds the dates and faces on one line from card to card.
 */
.boards-card__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: var(--boards-card-height, 146px);
  overflow: hidden;
  padding: 10px 12px 10px;
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.boards-card__link:focus-visible {
  outline: 0;
  border-radius: var(--fs-radius-card);
  box-shadow: var(--fs-focus-ring);
}

/*
 * The card opens with its type as a glyph on a small tile of the type's tone — the list of boards shows types the
 * same way — then the title over the whole width; the priority, when not the usual one, opens the line of facts.
 */
.boards-card__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.boards-card__head .boards-card__title {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 1px;
}

.boards-card__kind,
.boards-card__priority {
  --boards-chip-text: var(--fs-color-text-secondary);
  --boards-chip-fill: var(--fs-color-surface-subtle);
  color: var(--boards-chip-text);
  background: var(--boards-chip-fill);
}

.boards-card__kind {
  display: inline-grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.boards-card__priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 1px 8px;
  border-radius: var(--fs-radius-pill);
  font-size: var(--fs-text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.boards-card__kind[data-tone="primary"] {
  --boards-chip-text: var(--fs-color-primary-text);
  --boards-chip-fill: var(--fs-color-primary-subtle);
}

.boards-card__kind[data-tone="success"] {
  --boards-chip-text: var(--fs-color-success-text);
  --boards-chip-fill: var(--fs-color-success-subtle);
}

.boards-card__kind[data-tone="warning"] {
  --boards-chip-text: var(--fs-color-warning-text);
  --boards-chip-fill: var(--fs-color-warning-subtle);
}

.boards-card__kind[data-tone="danger"],
.boards-card__priority {
  --boards-chip-text: var(--fs-color-danger-text);
  --boards-chip-fill: var(--fs-color-danger-subtle);
}

.boards-card__kind[data-tone="sage"] {
  --boards-chip-text: var(--fs-color-sage-text, var(--fs-color-success-text));
  --boards-chip-fill: var(--fs-color-sage-subtle, var(--fs-color-success-subtle));
}

.boards-card__kind[data-tone="sand"] {
  --boards-chip-text: var(--fs-color-sand-text, var(--fs-color-warning-text));
  --boards-chip-fill: var(--fs-color-sand-subtle, var(--fs-color-warning-subtle));
}

.boards-card__priority {
  flex: 0 0 auto;
}

.boards-card__priority::before {
  width: 6px;
  height: 6px;
  background: currentcolor;
  border-radius: var(--fs-radius-pill);
  content: "";
}

.boards-card__priority[data-tone="neutral"] {
  --boards-chip-text: var(--fs-color-text-muted);
  --boards-chip-fill: var(--fs-color-surface-subtle);
}

.boards-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  font-size: var(--fs-text-md);
  font-weight: 600;
  line-height: 1.3;
}

.boards-card__subtitle {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.boards-card__subtitle > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boards-card__subtitle .boards-glyph {
  margin-top: 2px;
  color: var(--fs-color-text-muted);
}

.boards-card__note {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-xs);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  flex: 0 0 auto;
}

.boards-card__meta {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  margin-top: auto;
  overflow: hidden;
  padding-top: 7px;
  border-top: 1px solid var(--fs-color-border-subtle);
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-xs);
  font-variant-numeric: tabular-nums;
}

.boards-card__fact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}

.boards-card__fact .boards-glyph {
  color: var(--fs-color-text-muted);
}

.boards-card__fact[data-state="overdue"],
.boards-card__fact[data-state="overdue"] .boards-glyph {
  color: var(--fs-color-danger-text);
  font-weight: 600;
}

.boards-card__board span:last-child {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* People close the line of facts, overlapping like a stack of faces. */
.boards-people {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding-left: 6px;
}

.boards-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--fs-color-primary-text);
  background: var(--fs-color-primary-subtle);
  border: 2px solid var(--fs-color-surface);
  border-radius: var(--fs-radius-pill);
  font-size: var(--fs-text-xs);
  font-weight: 600;
  letter-spacing: 0;
}

.boards-avatar + .boards-avatar {
  margin-left: -7px;
}

/*
 * Each person keeps one tint on every card and on the card page — a stable hash of their ID, not the alphabet
 * (`BoardPeople.hue`, repeated in `boards-card.js` for a face added on the page) — so a column is read by who
 * is in it before a name is read.
 */
.boards-avatar[data-hue="1"],
.boards-face__button[data-hue="1"] {
  color: var(--fs-color-success-text);
  background: var(--fs-color-success-subtle);
}

.boards-avatar[data-hue="2"],
.boards-face__button[data-hue="2"] {
  color: var(--fs-color-warning-text);
  background: var(--fs-color-warning-subtle);
}

.boards-avatar[data-hue="3"],
.boards-face__button[data-hue="3"] {
  color: var(--fs-color-sand-text, var(--fs-color-text));
  background: var(--fs-color-sand-subtle, var(--fs-color-surface-hover));
}

.boards-avatar[data-hue="4"],
.boards-face__button[data-hue="4"] {
  color: var(--fs-color-sage-text, var(--fs-color-text));
  background: var(--fs-color-sage-subtle, var(--fs-color-surface-hover));
}

.boards-avatar[data-hue="5"],
.boards-face__button[data-hue="5"] {
  color: var(--fs-color-danger-text);
  background: var(--fs-color-danger-subtle);
}

.boards-avatar--more {
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-surface-hover);
}

/* Nobody responsible is a gap in the work, shown as a dashed empty seat. */
.boards-avatar--empty {
  color: var(--fs-color-text-muted);
  background: var(--fs-color-surface);
  border: 1px dashed var(--fs-color-border);
}

/* ---------------------------------------------------------------- move dialog */

.boards-move {
  display: grid;
  gap: var(--fs-space-3);
}

.boards-move__lead {
  margin: 0;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
  line-height: 1.5;
}

.boards-move__problems {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 12px 10px 30px;
  color: var(--fs-color-warning-text);
  background: var(--fs-color-warning-subtle);
  border: 1px solid var(--fs-color-warning-line);
  border-radius: var(--fs-radius-control);
  font-size: var(--fs-text-sm);
  line-height: 1.45;
}

.boards-move__fields:not(:has(.fs-field:not([hidden]))) {
  display: none;
}

/* The card's autosave says what it does, quietly, beside the header's actions. */
.boards-autosave {
  min-width: 0;
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-xs);
  white-space: nowrap;
}

.boards-autosave[data-tone="done"] {
  color: var(--fs-color-success-text);
}

.boards-autosave[data-tone="error"] {
  color: var(--fs-color-danger-text);
}

/* ---------------------------------------------------------------- card overlay */

/*
 * The card over the board: a wide dialog that is the record itself. The record's header is the dialog's head —
 * no second frame, no margin of canvas around it — and the cross closes from the header's row of actions,
 * where the page has its way back to the board.
 */
.boards-overlay {
  width: min(1180px, calc(100vw - (2 * var(--fs-space-4))));
}

/* The dialog takes focus when it opens; the ring belongs to the controls inside, not to the dialog's edge. */
.boards-overlay:focus,
.boards-overlay:focus-visible {
  outline: 0;
}

/*
 * Every card is the same height, whatever it holds: the header stays put, the work column and the side column
 * each scroll on their own. A short card leaves room below; a long survey or a long discussion gets a scrollbar
 * instead of a taller window, so the board behind never shifts between cards.
 */
.boards-overlay__card {
  grid-template-rows: minmax(0, 1fr);
  height: min(860px, calc(100vh - (2 * var(--fs-space-5))));
  background: var(--fs-color-surface);
}

/* The choice of a kind is a short list, not a card: the popup is as tall as the list. */
.boards-overlay__card:has(.boards-record--choosing) {
  height: auto;
  max-height: min(860px, calc(100vh - (2 * var(--fs-space-5))));
}

.boards-overlay__body {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

/* Header, the phone-only tab strip, then the card that takes the rest. */
.boards-overlay__body > .fs-record {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
}

.boards-overlay__body .fs-record__card {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}

.boards-overlay__body .fs-record__layout {
  min-height: 0;
}

.boards-overlay__body .fs-record__main,
.boards-overlay__body .fs-record__aside {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--fs-color-border) transparent;
}

/* The side column's tabs stay at its top while its content scrolls under them. */
.boards-overlay__body .fs-record-aside-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--fs-color-surface-subtle);
}

.boards-overlay__body .fs-page-heading-card {
  top: 0;
  border: 0;
  border-bottom: 1px solid var(--fs-color-border-subtle);
  border-radius: 0;
  box-shadow: none;
}

.boards-overlay__body .fs-record__card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.boards-overlay__body .fs-record__aside {
  border-radius: 0;
}

.boards-overlay [data-boards-back] {
  display: none;
}

.boards-overlay__close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--fs-color-primary-text);
  background: transparent;
  border: 0;
  border-radius: var(--fs-radius-pill);
  cursor: pointer;
}

.boards-overlay__close .boards-glyph {
  --boards-glyph: url("/stoneware/icons/close.svg");
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  mask-size: 22px 22px;
  -webkit-mask-size: 22px 22px;
}

@media (hover: hover) {
  .boards-overlay__close:hover {
    background: var(--fs-color-primary-subtle);
  }
}

.boards-overlay__close:focus-visible {
  outline: 0;
  box-shadow: var(--fs-focus-ring);
}

/* Картка ще їде: спільний `fs-loader`, лише вищий, щоб накладка не стрибала, коли картка прийде. */
.boards-overlay__loading {
  min-height: 240px;
  padding: var(--fs-space-5);
}

/* A card that is one section shows the section itself; the body starts with the panel's own inset. */
.boards-record__only > .fs-record-panel__body {
  padding-top: 18px;
}

/* ---------------------------------------------------------------- side column */

/*
 * The side column of every card. «Основне» opens with where the card stands — type, column, partner — as rows of
 * a label and a value; the column is a choice that moves the card, tinted like the column on the board. The work
 * follows as ordinary fields with the field-label glyphs of the product, so the column reads as one form.
 */
.boards-aside .fs-record-panel__body {
  gap: var(--fs-space-3);
}

.boards-aside__count {
  min-width: 18px;
  padding: 0 5px;
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-surface-hover);
  border-radius: var(--fs-radius-pill);
  font-size: var(--fs-text-xs);
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.boards-facts {
  display: grid;
  gap: 10px;
}

.boards-facts > .fs-field {
  margin: 0;
}

.boards-facts__value {
  min-width: 0;
  padding: 2px 0;
  font-size: var(--fs-text-sm);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.boards-facts__value a {
  color: var(--fs-color-primary-text);
}

.boards-facts__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/*
 * The side column reads as a list of facts: each glyph stands out at the left edge and the value sits under
 * the words of its label, so the eye runs down the glyphs and then right to the values (рішення 2026-10-18).
 * The kind of the card is short and fixed, so it stands on its label's line, at the right.
 */
.boards-aside .fs-field > :not(.fs-field__label) {
  width: calc(100% - 22px);
  margin-left: 22px;
}

.boards-aside .fs-field > .fs-field__label {
  margin-bottom: 4px;
}

.boards-aside .boards-facts__value {
  padding: 0;
}

.boards-aside .boards-facts__kind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.boards-aside .boards-facts__kind > .boards-facts__type {
  width: auto;
  margin-left: 0;
  padding: 0;
}

.boards-facts__type .boards-glyph {
  color: var(--fs-color-primary);
}

.boards-facts__value .boards-muted {
  display: block;
  font-size: var(--fs-text-xs);
}

.boards-work {
  display: grid;
  gap: var(--fs-space-3);
}

/* A panel without a head — the form of a new card — starts its fields with the panel's own top inset. */
.boards-record .fs-record-panel:not(:has(> .fs-record-panel__head)) > .fs-record-panel__body {
  padding-top: 18px;
}

.boards-facts__column {
  width: 100%;
}

/* The responsible is ringed among the participants: one of them, the one who answers for the card. */
.boards-avatar--lead {
  box-shadow: 0 0 0 2px var(--fs-color-primary);
}

/* ---------------------------------------------------------------- activity */

/*
 * The discussion and the history as one feed, the way a card's activity reads in Trello: the composer on top;
 * then each entry an avatar, the name in bold and what happened, the time small under it. A comment is a person's
 * own words and stands in a bubble; a change is a line of the journal in the secondary colour.
 */
.boards-activity {
  display: grid;
  gap: var(--fs-space-3);
}

.boards-activity__composer {
  display: grid;
  gap: var(--fs-space-2);
}

.boards-activity__composer textarea {
  min-height: 40px;
  resize: none;
  font-size: var(--fs-text-sm);
  line-height: 1.45;
}

.boards-activity__composer-actions {
  display: flex;
  justify-content: flex-end;
}

.boards-activity__composer-actions[hidden] {
  display: none;
}

.boards-activity__feed {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boards-activity__entry {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.boards-activity__entry .boards-avatar {
  width: 28px;
  height: 28px;
  border: 0;
  font-size: 11px;
}

.boards-avatar--image {
  object-fit: cover;
}

/* A thread: the entry, under it the answers indented past the face, joined by a hairline on the left. */
.boards-activity__thread {
  display: grid;
  gap: 8px;
}

.boards-activity__replies {
  display: grid;
  gap: 10px;
  margin: 0 0 0 14px;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--fs-color-border-subtle);
  list-style: none;
}

.boards-activity__replies[hidden] {
  display: none;
}

.boards-activity__entry--reply {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
}

.boards-activity__entry--reply .boards-avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.boards-activity__actions {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.boards-activity__reply {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 4px;
  color: var(--fs-color-text-secondary);
  background: transparent;
  border: 0;
  border-radius: var(--fs-radius-sm);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.boards-activity__reply .boards-glyph {
  width: 14px;
  height: 14px;
}

.boards-activity__reply:hover {
  color: var(--fs-color-primary-text);
  background: var(--fs-color-surface-hover);
}

.boards-activity__reply-form {
  display: grid;
  gap: 6px;
  margin-left: 32px;
}

.boards-activity__reply-form textarea {
  min-height: 38px;
  resize: none;
  font-size: var(--fs-text-sm);
  line-height: 1.45;
}

.boards-activity__reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.boards-activity__reply-cancel,
.boards-activity__reply-send {
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--fs-radius-control);
  font: inherit;
  font-size: var(--fs-text-sm);
  font-weight: 600;
  cursor: pointer;
}

.boards-activity__reply-cancel {
  color: var(--fs-color-text-secondary);
  background: transparent;
  border: 0;
}

.boards-activity__reply-cancel:hover {
  background: var(--fs-color-surface-hover);
}

.boards-activity__reply-send {
  color: #fff;
  background: var(--fs-color-primary);
  border: 0;
}

.boards-activity__reply-send:disabled {
  opacity: 0.6;
  cursor: default;
}

.boards-activity__entry:not(.boards-activity__entry--comment) .boards-avatar {
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-surface-hover);
}

.boards-activity__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.boards-activity__line {
  margin: 0;
  color: var(--fs-color-text-secondary);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.boards-activity__line strong {
  margin-right: 4px;
  color: var(--fs-color-text);
  font-weight: 600;
}

.boards-activity__line .boards-activity__time {
  margin-right: 6px;
}

.boards-activity__text {
  white-space: pre-line;
}

.boards-activity__bubble {
  margin: 2px 0 0;
  padding: 8px 11px;
  color: var(--fs-color-text);
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: 4px var(--fs-radius-control) var(--fs-radius-control) var(--fs-radius-control);
  box-shadow: var(--fs-shadow-sm);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.boards-activity__time {
  color: var(--fs-color-text-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.boards-activity__empty {
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-sm);
}

/* ---------------------------------------------------------------- attachments */

/*
 * Files of the card in the side column: a picture is its thumbnail with the name under it, a document a row
 * with the file glyph, the name and the size. The cross appears under the pointer; a drop onto the field
 * tints it while the file hangs over it.
 */
.boards-attachments {
  position: relative;
  border-radius: var(--fs-radius-control);
}

.boards-attachments.is-dropping::after {
  position: absolute;
  inset: -6px;
  border: 2px dashed var(--fs-color-primary-line);
  border-radius: var(--fs-radius-control);
  background: color-mix(in srgb, var(--fs-color-primary) 6%, transparent);
  content: "";
  pointer-events: none;
}

.boards-attachments__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boards-attachment {
  position: relative;
  display: grid;
}

.boards-attachment__link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 32px 4px 4px;
  color: inherit;
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-control);
  text-decoration: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.boards-attachment__link:hover {
  border-color: var(--fs-color-primary-line);
  box-shadow: var(--fs-shadow-sm);
}

.boards-attachment__thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--fs-radius-sm);
  object-fit: cover;
}

.boards-attachment__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--fs-color-surface-subtle);
  border-radius: var(--fs-radius-sm);
}

.boards-attachment__icon::before {
  width: 18px;
  height: 18px;
  background: var(--fs-color-text-secondary);
  mask: url("/stoneware/icons/task/file.svg") center / 18px 18px no-repeat;
  -webkit-mask: url("/stoneware/icons/task/file.svg") center / 18px 18px no-repeat;
  content: "";
}

.boards-attachment__text {
  display: grid;
  min-width: 0;
}

.boards-attachment__name {
  overflow: hidden;
  font-size: var(--fs-text-sm);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boards-attachment__meta {
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-xs);
}

.boards-attachment__remove {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--fs-color-text-secondary);
  background: transparent;
  border: 0;
  border-radius: var(--fs-radius-pill);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.12s ease;
}

.boards-attachment:hover .boards-attachment__remove,
.boards-attachment__remove:focus-visible {
  opacity: 1;
}

.boards-attachment__remove:hover {
  color: var(--fs-color-danger-text);
  background: var(--fs-color-danger-subtle);
}

@media (hover: none) {
  .boards-attachment__remove {
    opacity: 1;
  }
}

.boards-attachments__empty {
  margin: 0;
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-sm);
}

.boards-attachments__add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px 0 8px;
  color: var(--fs-color-text-secondary);
  border: 1px dashed var(--fs-color-border);
  border-radius: var(--fs-radius-control);
  font-size: var(--fs-text-sm);
  font-weight: 500;
  cursor: pointer;
  justify-self: start;
}

.boards-attachments__add:hover,
.boards-attachments__add:has(input:focus-visible) {
  color: var(--fs-color-primary-text);
  border-color: var(--fs-color-primary-line);
  border-style: solid;
  background: var(--fs-color-primary-subtle);
}

/* ---------------------------------------------------------------- card page */

/*
 * The card's own text — a long text field such as the description — is a writing area, not a four-line slot:
 * on desktop it takes the height of the panel, so the open card does not stand half empty (рішення 2026-10-19).
 */
@media (min-width: 901px) {
  .boards-record .fs-record__main .fs-field textarea {
    min-height: 260px;
    resize: vertical;
  }
}


/*
 * On desktop the card's own fields follow the type's leading section — the partner of a prospect — and stand
 * above the longer sections such as sources; on a phone each of them is its own tab anyway.
 */
@media (min-width: 901px) {
  .boards-record .fs-record__main > .fs-record-panel {
    order: 3;
  }

  .boards-record .fs-record__main > .boards-record__lead {
    order: 1;
  }

  .boards-record .fs-record__main > .boards-record__details {
    order: 2;
  }
}

/* Type choice of a new card: each kind of work as one selectable row with what it is for. */
/*
 * Which kind of work: a short list of rows, one per type — its glyph on a plate in the type's own colour, the
 * same colour its chip carries on the boards, the name and one line of what it is. Rows, not cards: a choice of
 * three reads at a glance and the list can grow without the popup growing with it.
 */
.boards-types {
  display: grid;
  gap: 2px;
}

.boards-types__option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 10px;
  color: inherit;
  border-radius: var(--fs-radius-control);
  text-decoration: none;
}

@media (hover: hover) {
  .boards-types__option:hover {
    background: var(--fs-color-surface-hover);
  }
}

.boards-types__option:focus-visible {
  outline: 0;
  box-shadow: var(--fs-focus-ring);
}

.boards-types__icon {
  --fs-category: var(--fs-color-primary);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: color-mix(in srgb, var(--fs-category) 14%, var(--fs-color-surface));
  border-radius: 12px;
}

.boards-types__icon::before {
  width: 22px;
  height: 22px;
  background: color-mix(in srgb, var(--fs-category) 80%, var(--fs-color-text));
  mask: var(--boards-glyph) center / 22px 22px no-repeat;
  -webkit-mask: var(--boards-glyph) center / 22px 22px no-repeat;
  content: "";
}

.boards-types__icon[data-category="1"] { --fs-category: var(--fs-category-1); }
.boards-types__icon[data-category="2"] { --fs-category: var(--fs-category-2); }
.boards-types__icon[data-category="3"] { --fs-category: var(--fs-category-3); }
.boards-types__icon[data-category="4"] { --fs-category: var(--fs-category-4); }
.boards-types__icon[data-category="5"] { --fs-category: var(--fs-category-5); }
.boards-types__icon[data-category="6"] { --fs-category: var(--fs-category-6); }
.boards-types__icon[data-category="7"] { --fs-category: var(--fs-category-7); }

.boards-types__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.boards-types__text strong {
  font-size: var(--fs-text-sm);
  font-weight: 600;
}

.boards-types__text span {
  overflow: hidden;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-xs);
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Partner of a new card: the chosen partner as a line, or a search with suggestions under it. */
.boards-partner {
  display: grid;
  gap: 6px;
}

.boards-partner > .label {
  color: var(--fs-color-text);
  font-size: 12px;
  font-weight: 700;
}

.boards-partner__chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: var(--fs-control-height);
  padding: 6px 12px;
  background: var(--fs-color-selected-subtle);
  border: 1px solid var(--fs-color-primary-line);
  border-radius: var(--fs-radius-control);
}

.boards-partner__chosen[hidden],
.boards-partner__search[hidden] {
  display: none;
}

.boards-partner__name {
  font-weight: 600;
}

.boards-partner__meta {
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
}

.boards-partner__change,
.boards-partner__new {
  margin-left: auto;
  padding: 0;
  color: var(--fs-color-primary-text);
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--fs-text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.boards-partner__new {
  justify-self: start;
  margin-left: 0;
}

.boards-partner__change:hover,
.boards-partner__new:hover {
  text-decoration: underline;
}

.boards-partner__search {
  position: relative;
  display: grid;
  gap: 6px;
}

.boards-partner__input {
  width: 100%;
}

.boards-partner__options {
  position: absolute;
  z-index: 30;
  top: calc(var(--fs-control-height) + 4px);
  right: 0;
  left: 0;
  max-height: 280px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border);
  border-radius: var(--fs-radius-control);
  box-shadow: var(--fs-shadow-md);
}

.boards-partner__option {
  display: grid;
  gap: 1px;
  width: 100%;
  padding: 8px 10px;
  color: inherit;
  background: none;
  border: 0;
  border-radius: calc(var(--fs-radius-control) - 2px);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.boards-partner__option span {
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-xs);
}

.boards-partner__option:hover,
.boards-partner__option[aria-selected="true"] {
  background: var(--fs-color-selected);
}

.boards-partner__empty {
  padding: 8px 10px;
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-sm);
}

/* Priority as three chips: the choice and its consequence are seen at once. */
.boards-priority {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* The legend names the field exactly as a field label does. */
.boards-priority > legend {
  margin-bottom: 6px;
  padding: 0;
  color: var(--fs-color-text);
  font-size: 12px;
  font-weight: 700;
}

.boards-priority__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.boards-priority__option {
  position: relative;
  display: inline-flex;
}

.boards-priority__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.boards-priority__option span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-field);
  border: 1px solid var(--fs-color-border);
  border-radius: var(--fs-radius-pill);
  font-size: var(--fs-text-sm);
  font-weight: 500;
  cursor: pointer;
}

.boards-priority__option[data-tone="danger"] span::before,
.boards-priority__option[data-tone="neutral"] span::before {
  width: 8px;
  height: 8px;
  background: var(--fs-color-danger);
  border-radius: var(--fs-radius-pill);
  content: "";
}

.boards-priority__option[data-tone="neutral"] span::before {
  background: var(--fs-color-text-muted);
}

.boards-priority__option input:checked + span {
  color: var(--fs-color-primary-text);
  background: var(--fs-color-primary-subtle);
  border-color: var(--fs-color-primary-line);
  font-weight: 600;
}

.boards-priority__option input:focus-visible + span {
  box-shadow: var(--fs-focus-ring);
}

.boards-priority__option input:disabled + span {
  cursor: default;
}

/* The executors dropdown sits in the narrow side column, so its list takes the column's width. */
.boards-people-picker .fs-user-picker__panel {
  width: 100%;
  min-width: 240px;
}

.boards-people-picker .fs-user-picker__dropdown > summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- list of boards */

/*
 * Boards are tiles, not rows: a board is a place one goes to, and a shelf of tiles is read the way a wall of
 * boards is — by colour first, then by name. The strip along the top is the board's own columns in their
 * colours, so the questionnaire board and the prospects board are told apart before either name is read.
 */
.boards-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--fs-space-3);
}

.boards-tile {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

@media (hover: hover) {
  .boards-tile:hover {
    border-color: var(--fs-color-primary-line);
    box-shadow: var(--fs-shadow-md);
  }
}

.boards-tile__link {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.boards-tile__link:focus-visible {
  outline: 0;
  box-shadow: var(--fs-focus-ring);
}

.boards-tile__columns {
  display: flex;
  height: 8px;
  overflow: hidden;
}

.boards-tile__column {
  flex: 1 1 0;
  background: var(--fs-color-border);
}

.boards-tile__column + .boards-tile__column {
  border-left: 1px solid var(--fs-color-surface);
}

.boards-tile__column[data-tone="primary"] { background: var(--fs-color-primary); }
.boards-tile__column[data-tone="success"] { background: var(--fs-color-success); }
.boards-tile__column[data-tone="warning"] { background: var(--fs-color-warning); }
.boards-tile__column[data-color="1"] { background: var(--fs-category-1); }
.boards-tile__column[data-color="2"] { background: var(--fs-category-2); }
.boards-tile__column[data-color="3"] { background: var(--fs-category-3); }
.boards-tile__column[data-color="4"] { background: var(--fs-category-4); }
.boards-tile__column[data-color="5"] { background: var(--fs-category-5); }
.boards-tile__column[data-color="6"] { background: var(--fs-category-6); }
.boards-tile__column[data-color="7"] { background: var(--fs-category-7); }

.boards-tile__body {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px 12px;
}

.boards-tile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

/* The board's icon: a grey glyph before the name, without a tile of its own, the height of its first line. */
.boards-tile__icon {
  display: inline-grid;
  flex: 0 0 20px;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--fs-color-text-secondary);
}

.boards-tile__icon .boards-glyph {
  width: 20px;
  height: 20px;
  mask-size: 20px 20px;
  -webkit-mask-size: 20px 20px;
}

.boards-tile__head:has(.boards-tile__icon) .boards-tile__title {
  flex: 1 1 auto;
}

.boards-tile__title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--fs-text-lg);
  font-weight: 600;
  line-height: 1.25;
}

.boards-tile__lock {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  padding-top: 3px;
  color: var(--fs-color-text-muted);
}

.boards-tile__description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* How much is open and how much is late, said with a figure each; a quiet line when nothing is open. */
.boards-tile__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 2px;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
  font-variant-numeric: tabular-nums;
}

.boards-tile__fact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.boards-tile__fact strong {
  color: var(--fs-color-text);
  font-weight: 600;
}

.boards-tile__fact[data-state="overdue"],
.boards-tile__fact[data-state="overdue"] strong {
  color: var(--fs-color-danger-text);
}

.boards-tile__fact--quiet {
  color: var(--fs-color-text-muted);
}

/* The kinds of work the board takes, as the same tiles the cards on it wear. */
.boards-tile__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 14px;
}

.boards-tiles__empty {
  grid-column: 1 / -1;
}

/* A template column on the new-board page, in its colour when it has one. */
.boards-column-badge:not([data-color="0"]) {
  --boards-column-color: var(--fs-color-border);
  color: color-mix(in srgb, var(--boards-column-color) 72%, black);
  background: color-mix(in srgb, var(--boards-column-color) 16%, var(--fs-color-surface));
  border-color: color-mix(in srgb, var(--boards-column-color) 48%, var(--fs-color-surface));
}

.boards-column-badge[data-color="1"] { --boards-column-color: var(--fs-category-1); }
.boards-column-badge[data-color="2"] { --boards-column-color: var(--fs-category-2); }
.boards-column-badge[data-color="3"] { --boards-column-color: var(--fs-category-3); }
.boards-column-badge[data-color="4"] { --boards-column-color: var(--fs-category-4); }
.boards-column-badge[data-color="5"] { --boards-column-color: var(--fs-category-5); }
.boards-column-badge[data-color="6"] { --boards-column-color: var(--fs-category-6); }
.boards-column-badge[data-color="7"] { --boards-column-color: var(--fs-category-7); }

/* ---------------------------------------------------------------- board settings */

/*
 * One column: the name over the description, then the kinds of cards and the audience as rows of chips — a type
 * or a role is a chip with its glyph, a person a wider chip with their face, name and role — and the columns
 * one under another in their own card. A ticked chip is the selected tone with a ring, as the chips of a form.
 */
.boards-settings__card {
  display: grid;
  gap: var(--fs-space-5);
  padding: var(--fs-space-4) var(--fs-space-5) var(--fs-space-5);
}

.boards-settings__about {
  display: grid;
  gap: var(--fs-space-3);
}

.boards-settings__about textarea {
  min-height: 0;
  resize: vertical;
}

.boards-settings__group {
  display: grid;
  gap: var(--fs-space-3);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.boards-settings__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  float: left;
  width: 100%;
  margin-bottom: var(--fs-space-3);
  padding: 0;
  color: var(--fs-color-text);
  font-size: var(--fs-text-sm);
  font-weight: 600;
}

.boards-settings__legend + * {
  clear: both;
}

.boards-settings__legend .boards-muted {
  font-size: var(--fs-text-xs);
  font-weight: 400;
}

.boards-settings__head {
  display: grid;
  gap: 2px;
}

.boards-settings__title {
  margin: 0;
  font-size: var(--fs-text-md);
  font-weight: 600;
}

.boards-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.boards-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.boards-chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.boards-chip > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 14px 4px 10px;
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border);
  border-radius: var(--fs-radius-pill);
  font-size: var(--fs-text-sm);
  font-weight: 500;
}

.boards-chip > span .boards-glyph {
  color: var(--fs-color-text-muted);
}

.boards-chip input:checked + span {
  color: var(--fs-color-selected-text);
  background: var(--fs-color-selected);
  border-color: var(--fs-color-primary);
}

.boards-chip input:checked + span .boards-glyph {
  color: currentcolor;
}

.boards-chip input:focus-visible + span {
  box-shadow: var(--fs-focus-ring);
}

.boards-settings__author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
}

/* The people of the audience, folded under one row: the roles above say who sees the board. */
.boards-viewers-fold {
  display: grid;
  gap: 10px;
}

.boards-viewers-fold__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-control);
  font-size: var(--fs-text-sm);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.boards-viewers-fold__head::-webkit-details-marker {
  display: none;
}

.boards-viewers-fold__head .boards-muted {
  font-weight: 400;
}

.boards-viewers-fold__head .boards-column-item__chevron {
  margin-left: auto;
}

.boards-viewers-fold[open] > .boards-viewers-fold__head .boards-column-item__chevron {
  transform: rotate(180deg);
}

.boards-viewers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
}

.boards-viewer {
  position: relative;
  display: grid;
  cursor: pointer;
}

.boards-viewer input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.boards-viewer__body {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-control);
}

.boards-viewer__image,
.boards-viewer__initials {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--fs-color-primary-text);
  background: var(--fs-color-primary-subtle);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  object-fit: cover;
}

.boards-viewer__text {
  display: grid;
  min-width: 0;
}

.boards-viewer__name {
  overflow: hidden;
  font-size: var(--fs-text-sm);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boards-viewer__role {
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-xs);
}

.boards-viewer__check {
  width: 18px;
  height: 18px;
  background: var(--fs-color-primary);
  mask: url("/stoneware/icons/task/check-circle.svg") center / 18px 18px no-repeat;
  -webkit-mask: url("/stoneware/icons/task/check-circle.svg") center / 18px 18px no-repeat;
  opacity: 0;
}

.boards-viewer input:checked + .boards-viewer__body {
  background: var(--fs-color-selected-subtle);
  border-color: var(--fs-color-primary-line);
}

.boards-viewer input:checked + .boards-viewer__body .boards-viewer__check {
  opacity: 1;
}

.boards-viewer input:focus-visible + .boards-viewer__body {
  box-shadow: var(--fs-focus-ring);
}

/*
 * A channel of automatic cards is a person's row grown up: the glyph of the cards it brings in a soft tile, its
 * name, one line of what it brings, and — when it matters — where it goes now or what the board lacks to take it.
 */
.boards-channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 8px;
}

.boards-channel .boards-viewer__body {
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 12px;
  padding: 12px 12px 12px 10px;
}

.boards-channel__glyph {
  width: 36px;
  height: 36px;
  background: var(--fs-color-primary-subtle);
  border-radius: 10px;
}

.boards-channel__glyph::before {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--fs-color-primary);
  mask: var(--boards-glyph, none) center / 18px 18px no-repeat;
  -webkit-mask: var(--boards-glyph, none) center / 18px 18px no-repeat;
  content: "";
}

.boards-channel .boards-viewer__name {
  font-weight: 600;
}

.boards-channel__description {
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-xs);
  line-height: 1.45;
}

.boards-channel__note {
  margin-top: 4px;
  color: var(--fs-color-warning-text);
  font-size: var(--fs-text-xs);
  font-weight: 500;
}

.boards-channel:has(input:disabled) {
  cursor: default;
}

.boards-channel input:disabled + .boards-viewer__body {
  opacity: 0.72;
}

.boards-channel .boards-viewer__check {
  margin-top: 2px;
}

@media (hover: hover) {
  .boards-chip:hover > span,
  .boards-viewer:hover .boards-viewer__body {
    border-color: var(--fs-color-primary-line);
  }
}

/*
 * The columns of the board as a list: one row per column — its colour, its name, its kind, its conditions as
 * chips — and the row opens into the column's own form. «Нова колонка» is the last row, dashed, that opens the
 * same form empty. One column at a time is open, so the edited one stands apart from the rest.
 */
.boards-columns {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boards-column-item {
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-card);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.boards-column-item[open] {
  border-color: var(--fs-color-primary-line);
  box-shadow: var(--fs-shadow-sm);
}

.boards-column-item__row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px 8px 16px;
  border-radius: var(--fs-radius-card);
  cursor: pointer;
  list-style: none;
}

.boards-column-item__row::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .boards-column-item__row:hover {
    background: var(--fs-color-surface-hover);
  }
}

.boards-column-item__row:focus-visible {
  outline: 0;
  box-shadow: var(--fs-focus-ring);
}

.boards-column-item[open] > .boards-column-item__row {
  border-bottom: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-card) var(--fs-radius-card) 0 0;
}

.boards-column-item__dot {
  --boards-column-color: var(--fs-color-border);
  width: 14px;
  height: 14px;
  background: var(--boards-column-color);
  border-radius: 50%;
}

.boards-column-item__dot[data-color="0"] {
  background: transparent;
  border: 1px dashed var(--fs-color-border);
}

.boards-column-item__dot[data-color="1"] { --boards-column-color: var(--fs-category-1); }
.boards-column-item__dot[data-color="2"] { --boards-column-color: var(--fs-category-2); }
.boards-column-item__dot[data-color="3"] { --boards-column-color: var(--fs-category-3); }
.boards-column-item__dot[data-color="4"] { --boards-column-color: var(--fs-category-4); }
.boards-column-item__dot[data-color="5"] { --boards-column-color: var(--fs-category-5); }
.boards-column-item__dot[data-color="6"] { --boards-column-color: var(--fs-category-6); }
.boards-column-item__dot[data-color="7"] { --boards-column-color: var(--fs-category-7); }

.boards-column-item__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
}

.boards-column-item__name {
  font-size: var(--fs-text-md);
  font-weight: 600;
}

.boards-column-item__kind {
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
}

.boards-column-item__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.boards-column-item__fact {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-surface-subtle);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-pill);
  font-size: var(--fs-text-xs);
  font-weight: 500;
  white-space: nowrap;
}

.boards-column-item__chevron {
  width: 16px;
  height: 16px;
  background: var(--fs-color-text-muted);
  mask: url("/stoneware/icons/chevron.svg") center / 16px 16px no-repeat;
  -webkit-mask: url("/stoneware/icons/chevron.svg") center / 16px 16px no-repeat;
  transition: transform 0.16s ease;
}

.boards-column-item[open] > .boards-column-item__row .boards-column-item__chevron {
  transform: rotate(180deg);
}

.boards-column-item--new {
  background: transparent;
  border-style: dashed;
}

.boards-column-item--new > .boards-column-item__row {
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  color: var(--fs-color-primary-text);
  font-weight: 600;
}

.boards-column-item--new .boards-glyph {
  width: 20px;
  height: 20px;
}

/* The column's form: the name, then its kind, order and limit, its colour, its conditions and the actions. */
.boards-column-form {
  display: grid;
  gap: var(--fs-space-3);
  padding: var(--fs-space-3) 16px var(--fs-space-4);
}

.boards-column-form__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 96px;
  align-items: end;
  gap: var(--fs-space-3);
}

.boards-column-form__name {
  grid-column: 1 / -1;
}

/*
 * The conditions of entering: the chosen ones stand as chips with a cross, and «Додати умову» is a list of
 * the rest. A row of eight boxes said everything at once; the chips say only what the column asks for.
 */
.boards-column-form__rules {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.boards-column-form__rules > legend {
  padding: 0;
  margin-bottom: 8px;
  color: var(--fs-color-text);
  font-size: 12px;
  font-weight: 700;
}

.boards-rules {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.boards-rule {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 6px 0 12px;
  color: var(--fs-color-selected-text);
  background: var(--fs-color-selected-subtle);
  border: 1px solid var(--fs-color-primary-line);
  border-radius: var(--fs-radius-pill);
  font-size: var(--fs-text-sm);
  font-weight: 500;
}

.boards-rule:has(input:checked) {
  display: inline-flex;
}

.boards-rule input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.boards-rule__off {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.boards-rule__off:hover {
  background: color-mix(in srgb, var(--fs-color-primary) 14%, transparent);
}

.boards-rules__add {
  min-height: 30px;
  padding: 0 28px 0 10px;
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-surface);
  border: 1px dashed var(--fs-color-border);
  border-radius: var(--fs-radius-pill);
  font: inherit;
  font-size: var(--fs-text-sm);
  cursor: pointer;
}

.boards-rules__add:hover {
  color: var(--fs-color-primary-text);
  border-color: var(--fs-color-primary-line);
}

.boards-rules__add:disabled {
  display: none;
}

.boards-rules__none {
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-sm);
}

.boards-rules:has(.boards-rule input:checked) .boards-rules__none {
  display: none;
}

/* The colour of a column: a row of dots, the chosen one ringed; «без кольору» is the hollow first dot. */
.boards-column-form__colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.boards-column-form__colors > legend {
  float: left;
  margin-right: 4px;
  padding: 0;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
}

.boards-swatch {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--fs-radius-pill);
  cursor: pointer;
}

.boards-swatch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.boards-swatch__dot {
  --boards-swatch: var(--fs-color-surface);
  width: 18px;
  height: 18px;
  background: var(--boards-swatch);
  border: 1px solid color-mix(in srgb, var(--boards-swatch) 60%, var(--fs-color-border));
  border-radius: var(--fs-radius-pill);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.boards-swatch[data-color="0"] .boards-swatch__dot {
  border-style: dashed;
  border-color: var(--fs-color-border);
}

.boards-swatch[data-color="1"] .boards-swatch__dot { --boards-swatch: var(--fs-category-1); }
.boards-swatch[data-color="2"] .boards-swatch__dot { --boards-swatch: var(--fs-category-2); }
.boards-swatch[data-color="3"] .boards-swatch__dot { --boards-swatch: var(--fs-category-3); }
.boards-swatch[data-color="4"] .boards-swatch__dot { --boards-swatch: var(--fs-category-4); }
.boards-swatch[data-color="5"] .boards-swatch__dot { --boards-swatch: var(--fs-category-5); }
.boards-swatch[data-color="6"] .boards-swatch__dot { --boards-swatch: var(--fs-category-6); }
.boards-swatch[data-color="7"] .boards-swatch__dot { --boards-swatch: var(--fs-category-7); }

.boards-swatch:has(input:checked) .boards-swatch__dot {
  box-shadow: 0 0 0 2px var(--fs-color-surface), 0 0 0 4px var(--fs-color-primary);
  transform: scale(1.08);
}

.boards-swatch:has(input:focus-visible) {
  box-shadow: var(--fs-focus-ring);
}

.boards-column-form__actions {
  display: flex;
  align-items: center;
  gap: var(--fs-space-3);
}

.boards-column-form__delete {
  padding: 0;
  color: var(--fs-color-text-secondary);
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--fs-text-sm);
  cursor: pointer;
}

.boards-column-form__delete:hover {
  color: var(--fs-color-danger-text);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- phone */

@media (max-width: 900px) {
  /* The card's header on a phone: the name with its kind under it, the actions beside — two lines at most. */
  .boards-record__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
  }

  .boards-record__title {
    gap: 2px 8px;
  }

  .boards-record__type {
    min-height: 20px;
    padding: 1px 8px 1px 6px;
    font-size: 11px;
  }

  .boards-record__head .fs-page-heading-actions {
    flex-wrap: nowrap;
    gap: 4px;
  }
}

@media (max-width: 760px) {
  /* One column per screen, the next one peeking in from the edge. */
  .boards-board {
    grid-auto-columns: minmax(84%, 1fr);
    scroll-snap-type: x mandatory;
  }

  .boards-tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .boards-head-summary {
    display: none;
  }

  .boards-column-form__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boards-column-item__row {
    grid-template-columns: 14px minmax(0, 1fr) 16px;
  }

  .boards-column-item__facts {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boards-card,
  .boards-column__lane {
    transition: none;
  }

  .boards-card--ghost {
    transform: none;
  }
}


/* ---------------------------------------------------------------- card header */

.boards-record__head {
  gap: var(--fs-space-3);
}

.boards-record__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
}

/* The kind of the card, said once beside its name: a quiet chip, not a field. */
.boards-record__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 10px 2px 8px;
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-surface-subtle);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-pill);
  font-size: var(--fs-text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.boards-record__back {
  display: contents;
}

/* ---------------------------------------------------------------- participants */

/*
 * Participants are faces in a row, as Trello shows them: a photo where the person has one, initials otherwise,
 * the responsible ringed in the colour of the action. A face opens a small card — who, make responsible, take
 * off — and «+» the list of everyone, with the chosen checked. Buttons with hidden cards, opened by the card
 * script: a native details open inside the card's dialog brought the renderer down.
 */
.boards-faces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}

.boards-face {
  position: relative;
}

.boards-face__button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  color: var(--fs-color-primary-text);
  background: var(--fs-color-primary-subtle);
  border: 2px solid var(--fs-color-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--fs-color-border-subtle);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.boards-face__button.is-lead {
  box-shadow: 0 0 0 2px var(--fs-color-primary);
}

@media (hover: hover) {
  .boards-face__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px var(--fs-color-primary-line), var(--fs-shadow-sm);
  }

  .boards-face__button.is-lead:hover {
    box-shadow: 0 0 0 2px var(--fs-color-primary), var(--fs-shadow-sm);
  }
}

.boards-face__button:focus-visible {
  outline: 0;
  box-shadow: var(--fs-focus-ring);
}

.boards-face__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boards-face__button--add {
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-surface);
  border: 1px dashed var(--fs-color-border);
  box-shadow: none;
  font-size: 18px;
  font-weight: 400;
}

.boards-face.is-open > .boards-face__button--add,
.boards-face__button--add:hover {
  color: var(--fs-color-primary-text);
  border-color: var(--fs-color-primary-line);
  border-style: solid;
  background: var(--fs-color-primary-subtle);
}

.boards-face__card[hidden] {
  display: none;
}

.boards-face__card {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  gap: var(--fs-space-2);
  width: 260px;
  padding: 12px;
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-card);
  box-shadow: var(--fs-shadow-md);
}

.boards-face__card--list {
  gap: 2px;
  max-height: 320px;
  padding: 6px;
  overflow: auto;
}

.boards-face__none {
  margin: 0;
  padding: 8px 10px;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
}

.boards-face__who {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
}

.boards-face__image--large,
.boards-face__initials--large {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--fs-color-primary-text);
  background: var(--fs-color-primary-subtle);
  border-radius: 50%;
  font-size: var(--fs-text-md);
  font-weight: 600;
}

.boards-face__name {
  font-size: var(--fs-text-sm);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.boards-face__role {
  color: var(--fs-color-primary-text);
  font-size: var(--fs-text-xs);
  font-weight: 600;
}

.boards-face__actions {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--fs-color-border-subtle);
}

.boards-face__action {
  min-height: 34px;
  padding: 6px 8px;
  color: var(--fs-color-text);
  background: transparent;
  border: 0;
  border-radius: var(--fs-radius-control);
  font: inherit;
  font-size: var(--fs-text-sm);
  text-align: left;
  cursor: pointer;
}

.boards-face__action:hover {
  background: var(--fs-color-surface-hover);
}

.boards-face__action--remove:hover {
  color: var(--fs-color-danger-text);
  background: var(--fs-color-danger-subtle);
}

/* The list of everyone: a face, the name and a check where the person is already on the card. */
.boards-face__option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 4px 8px;
  border-radius: var(--fs-radius-control);
  font-size: var(--fs-text-sm);
  cursor: pointer;
}

.boards-face__option:hover {
  background: var(--fs-color-surface-hover);
}

.boards-face__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.boards-face__option .boards-face__image,
.boards-face__option .boards-face__initials {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--fs-color-primary-text);
  background: var(--fs-color-primary-subtle);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}

.boards-face__option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boards-face__check {
  width: 18px;
  height: 18px;
  background: var(--fs-color-primary);
  mask: url("/stoneware/icons/task/check-circle.svg") center / 18px 18px no-repeat;
  -webkit-mask: url("/stoneware/icons/task/check-circle.svg") center / 18px 18px no-repeat;
  opacity: 0;
}

.boards-face__option:has(input:checked) .boards-face__check {
  opacity: 1;
}

.boards-face__option:has(input:checked) .boards-face__option-name {
  font-weight: 600;
}

.boards-face__option:has(input:focus-visible) {
  box-shadow: var(--fs-focus-ring);
}

.boards-participants__empty {
  margin: 0;
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-sm);
}

/* ---------------------------------------------------------------- board menu */

.boards-menu {
  position: relative;
}

.boards-menu__trigger {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--fs-color-primary-text);
  border-radius: var(--fs-radius-pill);
  list-style: none;
  cursor: pointer;
}

.boards-menu__trigger::-webkit-details-marker {
  display: none;
}

.boards-menu__trigger .boards-glyph {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  mask-size: 22px 22px;
  -webkit-mask-size: 22px 22px;
}

@media (hover: hover) {
  .boards-menu__trigger:hover {
    background: var(--fs-color-primary-subtle);
  }
}

.boards-menu[open] .boards-menu__trigger {
  background: var(--fs-color-primary-subtle);
}

.boards-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 230px;
  padding: 6px;
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-card);
  box-shadow: var(--fs-shadow-md);
}

.boards-menu__panel form {
  display: contents;
}

.boards-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 10px;
  color: var(--fs-color-text);
  background: transparent;
  border: 0;
  border-radius: var(--fs-radius-control);
  font: inherit;
  font-size: var(--fs-text-sm);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

/* Search, the capability's actions and help live in the header on a desktop and behind «⋯» on a phone. */
.boards-menu__item--phone,
.boards-menu--phone-only {
  display: none;
}

@media (max-width: 900px) {
  .boards-menu__item--phone {
    display: flex;
  }

  .boards-menu--phone-only {
    display: block;
  }

  .fs-page-heading-actions .boards-head-filters,
  .fs-page-heading-actions .boards-head-action,
  .fs-page-heading-actions .boards-mine,
  .boards-page .fs-page-heading-actions > .fs-page-help {
    display: none;
  }

  /* «Мої» діє — «⋯» каже це крапкою, бо сам перемикач на телефоні схований у меню. */
  .boards-menu__trigger {
    position: relative;
  }

  [data-boards-mine="mark"] .boards-menu__trigger::after,
  [data-boards-mine="only"] .boards-menu__trigger::after {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    background: var(--fs-color-primary);
    border: 2px solid var(--fs-color-surface);
    border-radius: 50%;
    content: "";
  }
}

.boards-menu__item .boards-glyph {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  color: var(--fs-color-primary);
  mask-size: 16px 16px;
  -webkit-mask-size: 16px 16px;
}

.boards-menu__item:hover {
  background: var(--fs-color-surface-hover);
}

/* ---------------------------------------------------------------- archive */

.boards-archive__delete {
  color: var(--fs-color-danger-text);
}

.boards-archive {
  padding: 0;
}

.boards-archive__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.boards-archive__head::-webkit-details-marker {
  display: none;
}

.boards-archive__count {
  min-width: 20px;
  padding: 0 6px;
  background: var(--fs-color-surface-hover);
  border-radius: var(--fs-radius-pill);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.boards-archive__list {
  display: grid;
  margin: 0;
  padding: 0 16px 8px;
  list-style: none;
}

.boards-archive__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--fs-space-3);
  min-height: 44px;
  border-top: 1px solid var(--fs-color-border-subtle);
}

.boards-archive__row a {
  color: var(--fs-color-text);
  font-weight: 600;
  text-decoration: none;
}

/* ---------------------------------------------------------------- new board */

/*
 * A new board in one compact panel: the name, under it a description of a few lines, then the template as tiles
 * drawn like the boards in the list.
 */
.boards-new__card {
  display: grid;
  gap: var(--fs-space-5);
  padding: var(--fs-space-4) var(--fs-space-5) var(--fs-space-5);
}

.boards-new__about {
  display: grid;
  gap: var(--fs-space-3);
}

.boards-new__about textarea {
  min-height: 0;
  resize: vertical;
}

.boards-new__start {
  display: grid;
  gap: var(--fs-space-3);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.boards-new__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  float: left;
  width: 100%;
  margin-bottom: var(--fs-space-3);
  padding: 0;
  color: var(--fs-color-text);
  font-size: var(--fs-text-sm);
  font-weight: 600;
}

.boards-new__legend + * {
  clear: both;
}

.boards-new__legend .boards-muted {
  font-size: var(--fs-text-xs);
  font-weight: 400;
}

.boards-templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--fs-space-3);
}

.boards-template {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border-subtle);
  border-radius: var(--fs-radius-card);
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.boards-template input {
  position: absolute;
  top: 18px;
  right: 14px;
  margin: 0;
}

.boards-template:has(input:checked) {
  border-color: var(--fs-color-primary);
  box-shadow: 0 0 0 1px var(--fs-color-primary), var(--fs-shadow-sm);
}

@media (hover: hover) {
  .boards-template:hover {
    border-color: var(--fs-color-primary-line);
  }
}

.boards-template__columns {
  display: flex;
  height: 6px;
}

.boards-template__columns > span {
  flex: 1 1 0;
  background: var(--fs-color-border);
}

.boards-template__columns > span + span {
  border-left: 1px solid var(--fs-color-surface);
}

.boards-template__columns > [data-tone="primary"] { background: var(--fs-color-primary); }
.boards-template__columns > [data-tone="success"] { background: var(--fs-color-success); }
.boards-template__columns > [data-tone="warning"] { background: var(--fs-color-warning); }
.boards-template__columns > [data-color="1"] { background: var(--fs-category-1); }
.boards-template__columns > [data-color="2"] { background: var(--fs-category-2); }
.boards-template__columns > [data-color="3"] { background: var(--fs-category-3); }
.boards-template__columns > [data-color="4"] { background: var(--fs-category-4); }
.boards-template__columns > [data-color="5"] { background: var(--fs-category-5); }
.boards-template__columns > [data-color="6"] { background: var(--fs-category-6); }
.boards-template__columns > [data-color="7"] { background: var(--fs-category-7); }

.boards-template__body {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 12px 40px 14px 14px;
}

.boards-template__body strong {
  font-size: var(--fs-text-md);
  font-weight: 600;
}

.boards-template__text {
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-sm);
  line-height: 1.4;
}

.boards-template__names {
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-xs);
}

.boards-template__types {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

@media (max-width: 760px) {
  .boards-new__card {
    padding: var(--fs-space-3);
  }

  .boards-archive__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .boards-archive__row .boards-muted {
    display: none;
  }
}

/* ------------------------------------------------------------------ groups of the list of boards */

/*
 * A group is a heading over its tiles — chevron, name, count and a hairline to the edge — folded by the heading
 * itself; its «⋯» stands at the end of the same line, outside the fold so it never folds the group.
 */
.boards-groups {
  display: grid;
  gap: var(--fs-space-4);
}

.boards-group {
  position: relative;
  min-width: 0;
}

.boards-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-bottom: var(--fs-space-3);
  padding-right: 44px;
  list-style: none;
  cursor: pointer;
}

.boards-group__head::-webkit-details-marker {
  display: none;
}

.boards-group__chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: var(--fs-color-text-secondary);
  mask: url("/stoneware/icons/chevron.svg") center / 16px 16px no-repeat;
  -webkit-mask: url("/stoneware/icons/chevron.svg") center / 16px 16px no-repeat;
  transition: transform 0.14s ease;
}

.boards-group__fold:not([open]) .boards-group__chevron {
  transform: rotate(-90deg);
}

.boards-group__fold:not([open]) .boards-group__head {
  margin-bottom: 0;
}

.boards-group__title {
  margin: 0;
  overflow: hidden;
  font-size: var(--fs-text-md);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boards-group__title--quiet {
  color: var(--fs-color-text-secondary);
}

.boards-group__count {
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-sm);
  font-variant-numeric: tabular-nums;
}

.boards-group__rule {
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  background: var(--fs-color-border-subtle);
}

.boards-group__menu {
  position: absolute;
  top: 0;
  right: 0;
}

.boards-group__menu .boards-menu__trigger {
  color: var(--fs-color-text-secondary);
}

.boards-group__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-sm);
  text-align: center;
  border: 1px dashed var(--fs-color-border);
  border-radius: var(--fs-radius-card);
}

.boards-menu__item--up .boards-glyph {
  transform: rotate(90deg);
}

.boards-menu__item--down .boards-glyph {
  transform: rotate(-90deg);
}

/* Choosing a group's boards: one row a board, the group it stands in now said quietly at the end. */
.boards-group-pick {
  display: grid;
  gap: 2px;
  max-height: min(60vh, 520px);
  overflow-y: auto;
}

.boards-group-pick__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: var(--fs-radius-control);
  cursor: pointer;
}

.boards-group-pick__row:hover {
  background: var(--fs-color-surface-hover);
}

.boards-group-pick__title {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

/* The chosen audience of a board: the author first, always in, then the roles and the people. */
.boards-audience-chosen {
  display: grid;
  gap: var(--fs-space-3);
  margin-top: var(--fs-space-3);
}

.boards-audience-chosen[hidden] {
  display: none;
}

.boards-viewer--author {
  cursor: default;
}

.boards-viewer--author .boards-viewer__role {
  color: var(--fs-color-primary-text);
}

/* «Моя робота» on the list of boards: one line — the heading, the person's chips, the boards' total at the end. */
.boards-mine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 16px;
}

.boards-mine__title {
  color: var(--fs-color-text-secondary);
  font-size: var(--fs-text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.boards-mine__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.boards-mine__total {
  margin-left: auto;
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-sm);
  font-variant-numeric: tabular-nums;
}

.boards-menu__item--danger,
.boards-menu__item--danger .boards-glyph {
  color: var(--fs-color-danger-text);
}

/*
 * The card's side tabs are a switch of two equal cells in one frame, the open one in the tint of the action
 * (рішення 2026-10-23, варіант C): the white pill of the record page left «Обговорення» a loose word beside it.
 */
@media (min-width: 901px) {
  .boards-aside .fs-record-aside-tabs {
    gap: 0;
    padding: 10px;
  }

  .boards-aside .fs-record-aside-tabs__tab {
    color: var(--fs-color-text-secondary);
    background: var(--fs-color-surface);
    border: 1px solid var(--fs-color-border);
    border-radius: 0;
    box-shadow: none;
  }

  .boards-aside .fs-record-aside-tabs__tab:first-child {
    border-radius: var(--fs-radius-control) 0 0 var(--fs-radius-control);
  }

  .boards-aside .fs-record-aside-tabs__tab:last-child {
    border-radius: 0 var(--fs-radius-control) var(--fs-radius-control) 0;
  }

  .boards-aside .fs-record-aside-tabs__tab + .fs-record-aside-tabs__tab {
    border-left: 0;
  }

  .boards-aside .fs-record-aside-tabs__tab:hover {
    color: var(--fs-color-text);
    background: var(--fs-color-surface-hover);
  }

  .boards-aside .fs-record-aside-tabs__tab[aria-selected="true"],
  .boards-aside .fs-record-aside-tabs__tab[aria-selected="true"]:hover {
    color: var(--fs-color-primary-text);
    background: var(--fs-color-primary-subtle);
    box-shadow: none;
  }

  .boards-aside .fs-record-aside-tabs__tab:focus-visible {
    position: relative;
    z-index: 1;
    box-shadow: var(--fs-focus-ring);
  }
}

/* The icon picker of the board's settings: a row of small tiles, the chosen one framed in the tone of the action. */
.boards-icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.boards-icon-picker__option {
  position: relative;
  cursor: pointer;
}

.boards-icon-picker__option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.boards-icon-picker__tile {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border);
  border-radius: var(--fs-radius-control);
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.boards-icon-picker__tile .boards-glyph {
  width: 20px;
  height: 20px;
  mask-size: 20px 20px;
  -webkit-mask-size: 20px 20px;
}

.boards-icon-picker__tile--none {
  border-style: dashed;
}

.boards-icon-picker__tile--none::before {
  width: 16px;
  height: 1.5px;
  background: var(--fs-color-text-muted);
  transform: rotate(-45deg);
  content: "";
}

.boards-icon-picker__option input:checked + .boards-icon-picker__tile {
  color: var(--fs-color-primary-text);
  background: var(--fs-color-primary-subtle);
  border-color: var(--fs-color-primary);
}

.boards-icon-picker__option input:focus-visible + .boards-icon-picker__tile {
  box-shadow: var(--fs-focus-ring);
}

@media (hover: hover) {
  .boards-icon-picker__option:hover .boards-icon-picker__tile {
    border-color: var(--fs-color-primary-line);
  }
}

/* The «Картка» chip of other lists: a board glyph and the column; a link, so it underlines nothing and lifts on hover. */
.boards-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
}

.boards-card-chip .boards-glyph {
  width: 13px;
  height: 13px;
  mask-size: 13px 13px;
  -webkit-mask-size: 13px 13px;
}

.boards-card-chip--none {
  color: var(--fs-color-text-muted);
  background: transparent;
  border-style: dashed;
}

@media (hover: hover) {
  a.boards-card-chip:hover {
    filter: brightness(0.96);
    text-decoration: none;
  }
}

/* «Мої»: a quiet button by «⋯»; outlined while my cards are marked, filled while only they are shown. */
.boards-mine {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--fs-color-text-secondary);
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border);
  border-radius: var(--fs-radius-pill);
  font: inherit;
  font-size: var(--fs-text-sm);
  font-weight: 500;
  cursor: pointer;
}

.boards-mine .boards-glyph {
  width: 16px;
  height: 16px;
}

.boards-mine[data-state="mark"] {
  color: var(--fs-color-primary-text);
  border-color: var(--fs-color-primary);
  box-shadow: inset 0 0 0 1px var(--fs-color-primary);
}

.boards-mine[data-state="only"] {
  color: var(--fs-color-primary-text);
  background: var(--fs-color-primary-subtle);
  border-color: var(--fs-color-primary);
}

@media (hover: hover) {
  .boards-mine:hover {
    color: var(--fs-color-text);
    border-color: var(--fs-color-primary-line);
  }
}

/* A card I take part in, outlined among the others while «Мої» marks them. */
.boards-card.is-mine {
  border-color: var(--fs-color-primary);
  box-shadow: 0 0 0 1px var(--fs-color-primary), var(--fs-shadow-sm);
}

/* A filter with several answers: a field like a select that opens a list of ticks under it. */
.boards-multiselect {
  position: relative;
  min-width: 0;
}

.boards-multiselect__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: var(--fs-control-height);
  padding: 0 12px;
  color: var(--fs-color-text);
  background: var(--fs-color-field);
  border: 1px solid var(--fs-color-field-line);
  border-radius: var(--fs-radius-sm);
  font-size: var(--fs-text-sm);
  list-style: none;
  cursor: pointer;
}

.boards-multiselect__button::-webkit-details-marker {
  display: none;
}

.boards-multiselect__button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boards-multiselect__button::after {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: -3px;
  border-right: 1.5px solid var(--fs-color-text-secondary);
  border-bottom: 1.5px solid var(--fs-color-text-secondary);
  transform: rotate(45deg);
  content: "";
}

.boards-multiselect[open] > .boards-multiselect__button {
  border-color: var(--fs-color-primary);
  box-shadow: var(--fs-focus-ring);
}

.boards-multiselect.is-chosen > .boards-multiselect__button {
  color: var(--fs-color-primary-text);
  font-weight: 600;
}

/*
 * The list opens in the flow under its field, not over the dialog: the dialog's body scrolls and clipped a list
 * laid over it (виправлено 2026-10-27); the body now grows and scrolls to it instead.
 */
.boards-multiselect__panel {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  display: grid;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  background: var(--fs-color-surface);
  border: 1px solid var(--fs-color-border);
  border-radius: var(--fs-radius-sm);
  box-shadow: var(--fs-shadow-md);
}

.boards-multiselect__option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: var(--fs-radius-sm);
  font-size: var(--fs-text-sm);
  cursor: pointer;
}

.boards-multiselect__option input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
}

.boards-multiselect__option > span:first-of-type {
  flex: 1 1 auto;
  min-width: 0;
}

@media (hover: hover) {
  .boards-multiselect__option:hover {
    background: var(--fs-color-surface-hover);
  }
}

.boards-multiselect__option--none {
  color: var(--fs-color-text-secondary);
  border-top: 1px solid var(--fs-color-border-subtle);
  border-radius: 0;
}

.boards-multiselect__count {
  color: var(--fs-color-text-muted);
  font-size: var(--fs-text-xs);
  font-variant-numeric: tabular-nums;
}

