#board-dialog { width: min(72rem, calc(100vw - 1rem)); box-sizing: border-box; }
#tasks-destination { margin: 0 0 var(--space-3); }
/* QA5R-UI-1: the sidebar Board entry is a nav row like the channel rows, not a
   browser-default grey button. M-02: the Squads entry in the same Tasks nav
   gets the same treatment (44px touch floor on phones). */
#tasks-board-open { display: block; width: 100%; min-height: 44px; padding: .45rem .6rem; border: 0; border-radius: .5rem; background: transparent; color: var(--text); font-size: var(--text-sm); font-weight: 600; text-align: left; cursor: pointer; }
#tasks-board-open:hover { background: rgb(255 255 255 / 4%); }
:root[data-theme="light"] #tasks-board-open:hover { background: rgb(0 0 0 / 5%); }
/* The owner-only "Save cap" submit has no .button class (markup in board-ui.js);
   give it the secondary button look instead of the browser default. */
[data-claim-cap] button { padding: .58rem .85rem; border: 1px solid var(--line); border-radius: .42rem; background: var(--panel-raised); color: var(--text); font-size: var(--text-xs); font-weight: 600; }
[data-claim-cap] button:hover { background: var(--panel-hover); }
.board-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.live-chip { margin: 0; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 99px; color: var(--text); font-size: var(--text-sm); }
.board-empty { margin: 0; max-width: 36rem; }
.board-new { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); max-width: 28rem; }
.board-new h3 { margin: 0; font-size: var(--text-sm); }
.board-new label { display: grid; gap: var(--space-1); }
.board-older { margin: 0 0 var(--space-3); }
/* Board search + "mine only" filter bar. Renders above the columns; the input
   and checkbox clear hit the 44px coarse-pointer floor like every board
   control. */
.board-filter { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-2); margin: 0 0 var(--space-3); }
.board-filter-q { display: grid; gap: var(--space-1); font-size: var(--text-sm); font-weight: 600; flex: 1 1 16rem; max-width: 28rem; }
.board-filter-q input { min-height: 44px; padding: .45rem .6rem; border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--panel); color: var(--text); font-size: var(--text-sm); }
.board-filter-mine { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; font-size: var(--text-sm); }
.board-filter-mine input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }
.board-filter-empty { margin: 0 0 var(--space-3); }
.board-columns { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.board-columns section { min-width: 0; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel-raised); }
.board-columns h3 { margin: 0 0 var(--space-2); font-size: var(--text-sm); }
.claim-card { margin: 0 0 var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.claim-card h4 { margin: 0 0 var(--space-2); font-size: var(--text-md); overflow-wrap: anywhere; }
.claim-owner, .claim-lease, .claim-pr { margin: 0 0 var(--space-2); }
/* M-02 mobile: long PR URLs and repo@branch strings (~440-500px at body size)
   overflow the claim card on 375px viewports (~280px content). Wrap anywhere,
   like the card's other free-text rows. */
.claim-pr, .claim-repo { overflow-wrap: anywhere; }
.overlap-chip { margin: 0 0 var(--space-2); color: var(--muted); font-size: var(--text-xs); }
.overlap-chip summary { min-height: 1.5rem; cursor: pointer; color: var(--amber); }
.overlap-chip p { margin: var(--space-2) 0 0; overflow-wrap: anywhere; }
/* M-02 mobile: the per-card file list disclosure had no touch sizing
   (~20px tall) — below the 44px coarse-pointer floor from PR 2034. */
.claim-files summary { min-height: 44px; padding-block: .65rem; cursor: pointer; }
.claim-thread summary { min-height: 44px; padding-block: .65rem; cursor: pointer; }
.claim-thread-entries { margin: 0; padding-inline-start: 1.1rem; font-size: var(--text-sm); }
.claim-owner { display: flex; align-items: center; gap: var(--space-2); }
.claim-deps, .claim-chain { overflow-wrap: anywhere; }
.claim-files, .claim-reviews, .claim-deps { margin: 0 0 var(--space-2); }
/* #3795: the claim record disclosure gets the same touch sizing as the file
   list; its labelled sections read as a compact record, not a second card. */
.claim-record { margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
.claim-record summary { min-height: 44px; padding-block: .65rem; cursor: pointer; }
.claim-record ul { margin: 0 0 var(--space-2); }
.claim-record p { margin: 0 0 var(--space-2); }
.claim-record-label { font-weight: 600; }
.claim-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.claim-actions button, .claim-actions select { min-height: 44px; }
/* Acceptance links are standalone actions too, so match the button hit area. */
.claim-actions > a { display: inline-flex; align-items: center; min-height: 44px; }
.ci-badge { display: inline-block; padding: 0 .4rem; border: 1px solid var(--line); border-radius: 99px; font-size: var(--text-xs); text-transform: uppercase; }
.ci-success { color: var(--green); }
.ci-failure { color: var(--red); }
.ci-pending, .ci-neutral { color: var(--muted); }
.claim-update { margin: .35rem 0; padding: .35rem .6rem; border-left: 2px solid var(--violet); color: var(--muted); font-size: var(--text-sm); list-style: none; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .board-columns { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Board "What needs me": at most three urgent rows, one action each; the rest behind More. */
.needs-me { margin: 0 0 var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel-raised); }
.needs-me h3 { margin: 0 0 var(--space-2); font-size: var(--text-md); font-weight: 650; }
.needs-me-list, .needs-me-more ul { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.needs-me-row { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.needs-me-open { display: flex; flex: 1; flex-direction: column; gap: .1rem; min-width: 0; min-height: 44px; justify-content: center; padding: .3rem .4rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.needs-me-open:hover { background: var(--panel-hover); }
.needs-me-title { display: -webkit-box; overflow: hidden; font-size: var(--text-sm); overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.needs-me-note { color: var(--muted); font-size: var(--text-xs); }
.needs-me-act { flex: none; min-height: 44px; }
.needs-me-more { margin-top: var(--space-1); }
.needs-me-more summary { min-height: 44px; color: var(--muted); font-size: var(--text-sm); cursor: pointer; }

/* Loading states (BU-02): skeleton columns mirror .board-columns so the board
   holds its shape while claims load instead of flashing the empty-board copy.
   Shimmer is a background-position gradient only; it never runs under
   prefers-reduced-motion. */
.board-skeleton { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.board-skeleton section { min-width: 0; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel-raised); }
.board-skeleton h3 { margin: 0 0 var(--space-2); font-size: var(--text-sm); color: var(--muted); }
.sk-card { margin: 0 0 var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); background: var(--card); }
.sk-line { display: block; height: .8rem; margin: 0 0 .5rem; border-radius: 4px; background: linear-gradient(90deg, var(--line) 25%, var(--panel-raised) 50%, var(--line) 75%); background-size: 200% 100%; }
.sk-line.short { width: 70%; }
.sk-line.shorter { width: 45%; margin-bottom: 0; }
.board-error { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); max-width: 36rem; }
@media (prefers-reduced-motion: no-preference) {
  .sk-line { animation: board-sk-shimmer 1.4s linear infinite; }
}
@keyframes board-sk-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (min-width: 900px) {
  .board-skeleton { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .sk-line { animation: none; }
}
