/* ---------------------------------------------------------------------------
 * board.css — page-specific styles for the Kanban Board view
 * ---------------------------------------------------------------------------
 * Extracted from the former inline <style> block in templates/board.ts
 * (App-Building Bible principle 5). Loaded via the layout headExtra <link>.
 * ------------------------------------------------------------------------- */

.brd-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 -28px; padding: 0 28px 16px;
}
.brd-board { display: flex; gap: 12px; min-width: max-content; }

/* Column */
.brd-col {
  width: 250px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-card); max-height: calc(100vh - 200px);
}
.brd-col-drop { outline: 2px dashed var(--primary); outline-offset: -2px; background: var(--primary-light) !important; }
.brd-col-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px 8px; position: sticky; top: 0; z-index: 2;
  background: var(--bg); border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.brd-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.brd-col-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.brd-add-btn {
  width: 26px; height: 26px; border-radius: var(--radius-chip);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: background .1s, color .1s;
}
.brd-add-btn:hover { background: var(--border-light); color: var(--ink); }
.brd-col-body {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 8px 12px; overflow-y: auto; flex: 1;
}

/* Card */
.brd-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-light);
  cursor: grab; transition: box-shadow .1s, border-color .1s, transform .1s;
  text-decoration: none; color: var(--ink);
}
.brd-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.brd-card:active { cursor: grabbing; transform: none; }
.brd-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.brd-card-top .chip { font-size: 10px; padding: 0 5px; line-height: 16px; }
.brd-card-title {
  font-size: 13px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.brd-card-kw { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brd-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.brd-card-footer .chip { font-size: 9px; padding: 1px 6px; }
.brd-card-due { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Inline add form */
.brd-inline-add {
  padding: 10px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  background: var(--surface); margin-bottom: 4px;
}

/* Scrollbar */
.brd-col-body::-webkit-scrollbar { width: 4px; }
.brd-col-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.brd-col-body::-webkit-scrollbar-track { background: transparent; }
.brd-scroll::-webkit-scrollbar { height: 6px; }
.brd-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.brd-scroll::-webkit-scrollbar-track { background: transparent; }

/* Toast */
.brd-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: #fff;
  box-shadow: var(--shadow-md); transition: opacity .3s, transform .3s;
  opacity: 0; transform: translateY(10px); pointer-events: none;
}
.brd-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.brd-toast-success { background: #059669; }
.brd-toast-error { background: #DC2626; }
