.board-wrap { height: 100%; display: flex; flex-direction: column; }

.board-table-scroll {
  flex: 1;
  overflow: auto;
  padding: 0 0 2.5rem;
  padding-inline-end: 2.5rem;
  background: #f6f7fb;
}

.board-hint-columns {
  margin: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ستون‌ها — sticky */
.board-columns-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 1.25rem;
  padding: 0.5rem 0 0.35rem;
  background: #f6f7fb;
}

.board-groups {
  padding: 0.5rem 0 1.5rem;
}

.board-group-block {
  margin: 0 1.25rem 2rem;
  position: relative;
}

.board-group-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  padding: 0.1rem 0;
  min-height: 2rem;
}

.board-group-top__chevron {
  border: none;
  background: none;
  font-size: 0.6rem;
  color: var(--group-color, #579bfc);
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
  transition: transform 0.15s;
}

.board-group-top__chevron--collapsed {
  transform: rotate(-90deg);
}

.board-group-top__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.board-group-top__count {
  font-size: 0.8125rem;
  color: #676879;
  font-weight: 400;
}

.board-group-top__archives {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-inline-start: 0.15rem;
}

.board-group-top__archive {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #d0d4e4;
  background: #fff;
  color: #676879;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.board-group-top__archive:hover {
  border-color: #c5c7d0;
  background: #f6f7fb;
}

.board-group-top__archive--done.is-active {
  background: #e7f8ef;
  border-color: #00c875;
  color: #037f4c;
}

.board-group-top__archive--cancelled.is-active {
  background: #fdecee;
  border-color: #e2445c;
  color: #bb3354;
}

.board-group-top__archive-count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.board-group-sheet--archive-done {
  outline: 1px solid rgba(0, 200, 117, 0.25);
  border-radius: 8px;
}

.board-group-sheet--archive-cancelled {
  outline: 1px solid rgba(226, 68, 92, 0.25);
  border-radius: 8px;
}

.board-group-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  color: #676879;
}

.board-group-empty-row td {
  background: #fff;
}

.board-group-top__menu {
  border: none;
  background: none;
  color: #676879;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-inline-start: 0.35rem;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;
}

.board-group-top:hover .board-group-top__menu,
.board-group-top__menu:focus-visible {
  opacity: 1;
}

.board-group-top__menu:hover {
  background: #e6e9ef;
}

/* کارت گروه + نوار رنگی چپ */
.board-group-sheet {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #d0d4e4;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.board-group-rail {
  width: 8px;
  flex-shrink: 0;
  background: var(--group-color, #579bfc);
  border-radius: 8px 0 0 8px;
}

.board-group-table-wrap {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.board-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.board-table--group,
.subitems-table {
  --board-sticky-check: 36px;
  --board-sticky-name: 280px;
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}

.board-col-check { width: var(--board-sticky-check); }
.board-col-name { width: var(--board-sticky-name); }
.board-col-data { width: 130px; }
.board-col-data--date { width: 140px; }
.board-col-data--timer { width: 185px; }
.board-col-chat { width: 40px; }

.board-table th,
.board-table td {
  border-bottom: 1px solid #e6e9ef;
  border-left: 1px solid #e6e9ef;
  padding: 0;
  vertical-align: middle;
  background: #fff;
  box-sizing: border-box;
}

.board-table--columns thead th {
  background: #fff;
  font-weight: 600;
  color: #676879;
  padding: 0.45rem 0.65rem;
  text-align: right;
  font-size: 0.8125rem;
  border-bottom: 1px solid #d0d4e4;
}

.board-th-check,
.board-td-check {
  text-align: center;
  width: var(--board-sticky-check, 36px);
  min-width: var(--board-sticky-check, 36px);
  max-width: var(--board-sticky-check, 36px);
  padding: 0;
  overflow: visible;
  border-right: 1px solid #e6e9ef;
}

.board-table--group .board-th-check,
.board-table--group .board-td-check,
.subitems-table .board-th-check,
.subitems-table .board-td-check {
  position: sticky;
  right: 0;
  z-index: 4;
  background: #fff;
}

.board-th-name,
.board-td-name {
  width: var(--board-sticky-name, 280px);
  min-width: var(--board-sticky-name, 280px);
  max-width: var(--board-sticky-name, 280px);
}

.board-table--group .board-th-name,
.board-table--group .board-td-name,
.subitems-table .board-th-name,
.subitems-table .board-td-name {
  position: sticky;
  right: var(--board-sticky-check, 36px);
  z-index: 3;
  background: #fff;
  box-shadow: -5px 0 8px -3px rgba(0, 0, 0, 0.1);
}

.board-table--group thead .board-th-check,
.board-table--group thead .board-th-name,
.subitems-table thead .board-th-check,
.subitems-table thead .board-th-name {
  z-index: 6;
  background: #fbfbfd;
}

.board-th-data,
.board-td-data {
  min-width: 130px;
}

.board-th-data.board-col-data--date,
.board-td-data.board-col-data--date {
  min-width: 140px;
}

.board-th-data.board-col-data--timer,
.board-td-data.board-col-data--timer {
  min-width: 185px;
}

.board-table__chat-col,
.board-td-chat {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 0;
  overflow: hidden;
}

.board-row-check-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 40px;
  padding: 0.2rem 0;
}

.board-row-check {
  width: 1rem;
  height: 1rem;
  accent-color: var(--group-color, #5034ff);
  cursor: pointer;
  flex-shrink: 0;
}

.board-row-drag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  font-size: 0.75rem;
  line-height: 1;
  color: #c5c7d0;
  cursor: grab;
  user-select: none;
  border-radius: 3px;
}

.board-row-drag:hover {
  color: #676879;
  background: #eceef2;
}

.board-row-drag:active {
  cursor: grabbing;
}

.board-item-row--selected td,
.board-subitem-row--selected td {
  background: #e8f4fd !important;
}

.board-item-row--selected:hover td,
.board-subitem-row--selected:hover td {
  background: #d9ecfb !important;
}

.board-item-row--dragging td,
.board-subitem-row--dragging td {
  opacity: 0.45;
}

.board-item-row--drop-target td,
.board-subitem-row--drop-target td {
  box-shadow: inset 0 2px 0 var(--group-color, #5034ff);
}

.board-table-scroll--bulk {
  padding-bottom: calc(2.5rem + 3.25rem);
}

.board-bulk-bar {
  position: fixed;
  bottom: 0;
  inset-inline-end: 0;
  width: calc(100% - var(--sidebar-current-width));
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.65rem 1.25rem;
  background: #323338;
  color: #fff;
  border-radius: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
}

.board-bulk-bar__count {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.board-bulk-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.board-bulk-bar__btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.board-bulk-bar__btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.board-bulk-bar__btn--danger {
  background: #d83a52;
}

.board-bulk-bar__btn--danger:hover {
  background: #c12740;
}

.board-bulk-bar__btn--ghost {
  background: transparent;
  color: #c5c7d0;
}

.board-bulk-bar__btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.board-move-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.board-move-scope {
  border: none;
  margin: 0;
  padding: 0;
}

.board-move-scope__legend {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.board-move-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.board-move-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.board-td-name {
  position: relative;
  border-right: 1px solid #e6e9ef;
  padding: 0;
  vertical-align: middle;
}

.board-td-name-inner {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 40px;
  padding: 0 0.35rem;
}

.board-td-name-inner--has-subcount {
  padding-inline-start: 2rem;
}

.board-item-row:hover td,
.board-subitem-row:hover td {
  background: #f5f6f8;
}

.board-item-row--overdue td,
.board-subitem-row--overdue td {
  background: #fde8e8 !important;
}

.board-item-row--overdue:hover td,
.board-subitem-row--overdue:hover td {
  background: #fcd4d4 !important;
}

.board-subitem-row .board-td-check,
.board-subitem-row .board-td-name {
  background: #f8f9fb;
}

.board-subitem-row:hover .board-td-check,
.board-subitem-row:hover .board-td-name {
  background: #f5f6f8;
}

.board-subitem-row--overdue .board-td-check,
.board-subitem-row--overdue .board-td-name {
  background: #fde8e8 !important;
}

.board-subitem-row--overdue:hover .board-td-check,
.board-subitem-row--overdue:hover .board-td-name {
  background: #fcd4d4 !important;
}

.board-item-row--closed .item-name-input,
.board-subitem-row--closed .item-name-input {
  color: var(--color-text-muted, #676879);
}

.board-item-done-badge {
  flex-shrink: 0;
  margin-inline-start: 0.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #037f4c;
  background: #e1f5ea;
}

.board-td-cell {
  padding: 0;
  overflow: visible;
  position: relative;
}

/* منوی ⋯ بیرون کارت */
.board-row-menu {
  position: absolute;
  inset-inline-start: 0.35rem;
  inset-inline-end: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid #d0d4e4;
  border-radius: 4px;
  background: #fff;
  color: #676879;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s;
}

.board-item-row:hover .board-row-menu,
.board-subitem-row:hover .board-row-menu,
.board-row-menu:focus-visible {
  opacity: 1;
}

.board-item-row:has(.item-name-input:focus) .board-row-menu,
.board-subitem-row:has(.item-name-input:focus) .board-row-menu {
  opacity: 0;
  pointer-events: none;
}

.board-row-menu--sub {
  inset-inline-start: 0.35rem;
  inset-inline-end: auto;
}

.board-row-menu-popover {
  position: fixed;
  z-index: 10000;
  min-width: 10.5rem;
  background: #fff;
  border: 1px solid #d0d4e4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.board-row-menu-popover button {
  border: none;
  background: none;
  text-align: right;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  color: #323338;
}

.board-row-menu-popover button:hover {
  background: #f5f6f8;
}

.board-row-menu-popover__danger {
  color: #e2445c !important;
}

.board-item-subcount {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-inline-end: 0.15rem;
  padding: 0.1rem 0.35rem;
  border: none;
  border-radius: 10px;
  background: #e6e9ef;
  color: #676879;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.board-item-subcount:hover,
.board-item-row:hover .board-item-subcount {
  background: #d8dbe3;
  color: var(--group-color, #5034ff);
}

.board-item-subcount__num {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  transition: opacity 0.12s ease;
}

.board-item-subcount__chev {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  opacity: 0;
  transform: rotate(180deg);
  transition: opacity 0.12s ease, transform 0.2s ease;
}

.board-item-subcount--open .board-item-subcount__chev {
  transform: rotate(90deg);
}

.board-item-row:hover .board-item-subcount__num {
  opacity: 0;
}

.board-item-row:hover .board-item-subcount__chev {
  opacity: 1;
}

.item-name-field {
  flex: 1;
  min-width: 0;
  display: flex;
}

.item-name-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.45rem 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-name-input--readonly {
  cursor: default;
  color: var(--color-text);
}

.item-name-input:focus {
  outline: 2px solid var(--color-primary-soft);
  background: #fff;
  border-radius: 4px;
  text-overflow: clip;
  overflow: auto;
}

.item-name-tooltip {
  position: fixed;
  z-index: 10002;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.55rem 0.8rem;
  background: #323338;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  animation: item-name-tooltip-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.item-name-tooltip__text {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
  text-align: center;
}

.item-name-tooltip__arrow {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #323338;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

@keyframes item-name-tooltip-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-100% - 4px)) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 10px)) scale(1);
  }
}

.item-updates-btn {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-inline-start: 0.2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #c5c7d0;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}

.item-updates-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-updates-btn__icon svg {
  display: block;
}

.item-updates-btn__badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 8px;
  background: var(--group-color, #5034ff);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
}

.board-item-row:hover .item-updates-btn,
.item-updates-btn--active {
  color: #676879;
}

.item-updates-btn:hover,
.item-updates-btn--active {
  color: var(--group-color, #5034ff);
  background: color-mix(in srgb, var(--group-color, #5034ff) 10%, transparent);
}

.board-group-add-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.5rem;
}

.board-add-column-btn {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border: none;
  background: transparent;
  color: #676879;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.board-add-column-btn:hover {
  background: #f5f6f8;
  color: var(--group-color, #5034ff);
}

.board-table--group thead th {
  background: #f6f7fb;
  font-weight: 600;
  color: #676879;
  font-size: 0.8125rem;
  padding: 0.45rem 0.65rem;
  text-align: right;
  border-bottom: 1px solid #d0d4e4;
}

.board-add-item-btn,
.board-add-subitem-btn {
  display: block;
  width: 100%;
  text-align: right;
  padding: 0.55rem 0.85rem;
  border: none;
  background: transparent;
  color: #676879;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.board-add-item-btn:hover:not(:disabled),
.board-add-subitem-btn:hover:not(:disabled) {
  background: #f5f6f8;
  color: var(--group-color, #5034ff);
}

.board-add-item-btn:disabled,
.board-add-subitem-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.board-add-item-btn--loading,
.board-add-subitem-btn--loading {
  color: var(--group-color, #5034ff);
}

.board-group-add-row td {
  border-bottom: none !important;
}

.board-cell--number {
  padding: 0;
  min-height: 40px;
  cursor: text;
  align-items: stretch;
}

.number-cell-input {
  width: 100%;
  min-height: 40px;
  border: none;
  background: transparent;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: right;
  color: #323338;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.number-cell-input::placeholder {
  color: #c5c7d0;
}

.number-cell-input:focus {
  outline: 2px solid var(--color-primary-soft);
  background: #fff;
  border-radius: 0;
}

.board-group-summary-row td {
  border-bottom: none !important;
  background: #f6f7fb !important;
  padding: 0;
  vertical-align: top;
}

.board-td-summary {
  position: relative;
}

.board-col-summary {
  margin: 0 0.65rem 0.5rem;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid #d0d4e4;
  border-top: none;
  border-radius: 0 0 8px 8px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #323338;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.board-col-summary--timer {
  letter-spacing: 0.02em;
  direction: ltr;
}

/* ——— زیرآیتم‌ها (پنل تورفته) ——— */
.board-subitems-row > td.board-subitems-cell {
  padding: 0 !important;
  background: #f6f7fb !important;
  border-bottom: 1px solid #e6e9ef;
}

.subitems-panel {
  position: relative;
  /* تورفتگی به سمت داخل (جلوتر) از لبه‌ی شروع آیتم اصلی */
  padding-inline-start: 42px;
  padding-inline-end: 0;
  padding-block: 4px 10px;
}

/* ریل/خط درخت که اتصال زیرمجموعه به آیتم اصلی را نشان می‌دهد */
.subitems-panel__rail {
  position: absolute;
  inset-inline-start: 19px;
  top: 0;
  bottom: 18px;
  width: 2px;
  background: var(--group-color, #579bfc);
  border-radius: 1px;
  opacity: 0.55;
  pointer-events: none;
}

.subitems-panel__scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid #d7dbec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.subitems-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
}

.subitems-table th,
.subitems-table td {
  border-bottom: 1px solid #e6e9ef;
  border-left: 1px solid #e6e9ef;
  padding: 0;
  vertical-align: middle;
  background: #fff;
}

.subitems-table thead th {
  font-weight: 600;
  color: #676879;
  padding: 0.4rem 0.65rem;
  text-align: right;
  font-size: 0.78rem;
  background: #fbfbfd;
  border-bottom: 1px solid #d7dbec;
  white-space: nowrap;
}

.subitems-table tbody tr:last-child td {
  border-bottom: none;
}

.board-subitem-row:hover td {
  background: #f5f6f8;
}

.board-subitems-add-row td {
  background: #fff !important;
}

.board-add-subitem-btn {
  padding: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #676879;
}

/* سلول برچسب تمام‌عرض */
.board-cell {
  min-height: 40px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-width: 0;
}

.board-cell--status {
  min-height: 40px;
  padding: 0;
  width: 100%;
  justify-content: stretch;
  align-items: stretch;
}

.board-cell--status-filled {
  cursor: pointer;
}

.board-cell--status .status-pill--fill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin: 0;
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

.board-cell--empty {
  color: #c5c7d0;
  padding: 0.35rem 0.5rem;
}

.board-cell--timer {
  gap: 0.35rem;
  padding: 0.3rem 0.45rem;
  justify-content: space-between;
  min-height: 40px;
}

.timer-display {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #323338;
  min-width: 4.5rem;
}

.timer-display--running {
  color: var(--group-color, #5034ff);
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.timer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 1px solid #d0d4e4;
  border-radius: 4px;
  background: #fff;
  color: #676879;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.timer-btn:hover:not(:disabled) {
  background: #f5f6f8;
  color: #323338;
}

.timer-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.timer-btn--start:hover:not(:disabled) {
  color: #00c875;
  border-color: #00c875;
}

.timer-btn--stop:hover:not(:disabled) {
  color: #e2445c;
  border-color: #e2445c;
}

.board-cell:hover:not(.board-cell--status-filled):not(.board-cell--number):not(.board-cell--date) {
  background: rgba(80, 52, 255, 0.05);
}

.board-cell--date {
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  justify-content: flex-start;
}

.board-cell--date:hover {
  background: #f5f6f8;
}

.date-cell-display {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #323338;
  white-space: nowrap;
}

.date-picker-popover {
  position: fixed;
  z-index: 10000;
  min-width: 16rem;
  background: #fff;
  border: 1px solid #d0d4e4;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.date-picker-cal-toggle {
  display: flex;
  gap: 0.35rem;
  background: #f5f6f8;
  border-radius: 6px;
  padding: 0.2rem;
}

.date-picker-cal-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: #676879;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.date-picker-cal-btn--active {
  background: #fff;
  color: var(--group-color, #5034ff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.date-picker-gregorian-input {
  width: 100%;
  border: 1px solid #d0d4e4;
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.date-picker-jalali {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0.35rem;
  align-items: center;
}

.date-picker-select {
  border: 1px solid #d0d4e4;
  border-radius: 6px;
  padding: 0.4rem 0.45rem;
  font-size: 0.8125rem;
  background: #fff;
  color: #323338;
}

.date-picker-select--day {
  min-width: 3.5rem;
}

.date-picker-time {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.date-picker-time__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #676879;
  margin-inline-end: 0.15rem;
}

.date-picker-time__sep {
  font-weight: 700;
  color: #676879;
}

.date-picker-select--time {
  flex: 1;
  min-width: 3.5rem;
  text-align: center;
}

.date-picker-apply-btn {
  border: none;
  background: var(--group-color, #5034ff);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.date-picker-apply-btn--full {
  width: 100%;
}

.date-picker-clear-btn {
  border: none;
  background: transparent;
  color: #e2445c;
  font-size: 0.8125rem;
  padding: 0.25rem;
  cursor: pointer;
  text-align: right;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.status-picker {
  position: fixed;
  z-index: 10000;
  min-width: 11rem;
  max-width: 16rem;
  background: #fff;
  border: 1px solid #d0d4e4;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.status-picker__opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: right;
  padding: 0.45rem 0.55rem;
  border: none;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #323338;
  transition: background 0.12s;
}

.status-picker__opt:hover {
  background: #f5f6f8;
}

.status-picker__swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.status-picker__label {
  flex: 1;
  min-width: 0;
}

.status-picker__done {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #037f4c;
  background: #e1f5ea;
  border-radius: 999px;
  padding: 0.05rem 0.35rem;
}

.board-cell--person {
  justify-content: center;
  cursor: pointer;
}

.person-cell__avatars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 0.15rem;
}

.person-cell__avatar-wrap {
  display: inline-flex;
  flex-shrink: 0;
}

.person-picker {
  position: fixed;
  z-index: 10000;
  min-width: 14rem;
  max-width: min(18rem, calc(100vw - 1.5rem));
  max-height: min(16rem, calc(100vh - 2rem));
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d0d4e4;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.person-picker__empty {
  margin: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  color: #676879;
}

.person-picker__opt {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: right;
  padding: 0.45rem 0.55rem;
  border: none;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}

.person-picker__opt:hover {
  background: #f5f6f8;
}

.person-picker__opt--active {
  background: rgba(80, 52, 255, 0.08);
}

.person-picker__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.person-picker__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #323338;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.person-picker__username {
  font-size: 0.75rem;
  color: #676879;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.person-picker__check {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 700;
}

.person-tooltip {
  position: fixed;
  z-index: 10003;
  max-width: min(16rem, calc(100vw - 2rem));
  padding: 0.45rem 0.7rem;
  background: #323338;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 8px));
  animation: person-tooltip-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-align: center;
}

.person-tooltip__name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
}

.person-tooltip__username {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.15rem;
}

@keyframes person-tooltip-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-100% - 2px)) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 8px)) scale(1);
  }
}

.group-settings-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--preview-color) 12%, var(--color-bg-elevated));
  border: 1px solid color-mix(in srgb, var(--preview-color) 30%, var(--color-border));
}

.group-settings-preview__bar {
  width: 4px;
  height: 2rem;
  border-radius: 4px;
  background: var(--preview-color);
  flex-shrink: 0;
}

.group-settings-preview--danger {
  background: rgba(226, 68, 92, 0.08);
  border-color: rgba(226, 68, 92, 0.25);
}

.group-settings-preview__danger-text {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.bulk-delete-confirm {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(226, 68, 92, 0.08);
  border: 1px solid rgba(226, 68, 92, 0.25);
}

.bulk-delete-confirm__count {
  display: block;
  font-size: 1rem;
}

.bulk-delete-confirm__text {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (hover: none) {
  .board-group-top__menu,
  .board-row-menu {
    opacity: 1;
  }

  .board-item-row:has(.item-name-input:focus) .board-row-menu,
  .board-subitem-row:has(.item-name-input:focus) .board-row-menu {
    opacity: 0;
    pointer-events: none;
  }
}
