/* Task Helper — BOARD VIEW (job-intake.md §29; BRIEF-976). Copyright Rapid Surveys Pty Ltd. App tokens only; namespace bd-. */
.bd-switch { flex: none; align-self: stretch; display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--card); }
.bd-switch[hidden] { display: none !important; }
.bd-sw { display: inline-flex; align-items: center; gap: 6px; width: auto; margin: 0; padding: 9px 10px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; }
.bd-sw + .bd-sw { border-left: 1px solid var(--line); }
.bd-sw[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.bd-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* the board takes the page's width (the list keeps its reading width) */
@media (min-width: 768px) { body.bd-on #app, body.bd-on main { max-width: none; } }
.bd-msg { margin: 0 0 8px; }
.bd-cols { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; overscroll-behavior-x: contain; }
.bd-col { flex: 0 0 272px; display: flex; flex-direction: column; max-height: calc(100vh - 210px); min-height: 120px; background: var(--hover); border: 1px solid var(--line); border-radius: 10px; }
.bd-col.bd-over { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bd-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 10px 8px; font-size: 14px; }
.bd-n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
.bd-body { flex: 1 1 auto; overflow-y: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 8px; }
.bd-empty { margin: 4px 2px; font-size: 13px; color: var(--muted); }
.bd-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgba(20, 28, 40, .06); }
.bd-card.bd-dragging { opacity: .5; }
.bd-card.bd-saving { opacity: .7; }
.bd-open { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; margin: 0; padding: 8px 10px 4px; border: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; border-radius: 8px 8px 0 0; }
.bd-open:hover { background: var(--hover); }
.bd-k { font-size: 12px; color: var(--accent); font-family: ui-monospace, Menlo, monospace; }
.bd-t { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.bd-cl { font-size: 12px; color: var(--muted); }
.bd-cl * { margin: 0 !important; font-size: inherit !important; }
.bd-foot { display: flex; align-items: center; gap: 6px; padding: 0 6px 6px 10px; min-height: 30px; }
.bd-foot .avs { margin-left: 0; }
.bd-mv { width: 30px; height: 30px; margin: 0 0 0 auto; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.bd-mv:hover, .bd-mv[aria-expanded="true"] { background: var(--hover); color: var(--ink); }
.bd-menu { position: absolute; z-index: 20; right: 6px; top: calc(100% - 6px); min-width: 180px; max-height: 260px; overflow-y: auto; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20, 28, 40, .18); }
.bd-mh { margin: 2px 6px 6px; font-size: 12px; color: var(--muted); }
.bd-mi { display: flex; width: 100%; margin: 0; padding: 6px; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.bd-mi:hover, .bd-mi:focus-visible { background: var(--hover); }
.bd-more { align-self: center; width: auto; margin: 2px 0; font-size: 13px; }
.bd-cols :focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bd-add { flex: none; width: auto; margin: 0 8px 8px; min-height: 36px; padding: 6px 10px; font-size: 14px; background: transparent; color: var(--accent); border: 1px dashed var(--line); border-radius: 8px; text-align: left; }
.bd-add:hover { background: var(--card); }
body.th-nowrite .bd-add { display: none !important; }
.bd-note { margin: 0 0 10px; }
/* the toolbar stays ONE row with the switch in it (the list's column is 640px): the search gives up a little width */
@media (min-width: 768px) { .tool-row:has(.bd-switch:not([hidden])) input[type="search"] { flex-basis: 120px; min-width: 120px; } }
/* a tight row (a narrow computer, or the task panel open beside the list): icons only — the words stay for screen readers + the tooltip */
@media (max-width: 1099px) { .bd-swl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
body.panel-open .bd-swl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bd-tools { display: flex; justify-content: flex-end; margin: 0 0 8px; } .bd-tools .chip { width: auto; }
