/* board.css — the Projects board. Fix pass 2 (2026-10-15) gave it
 * Pipedrive's headers and cards; fix pass 8 (2026-10-16) gave it
 * a first frame; fix pass 11 (2026-10-16) bounds that frame to
 * exactly the screen, drops the Completed lane (six lanes), and
 * adds the bottom drag zones; fix pass 15 (2026-10-16) restores
 * the per-column grey panels inside that frame (below); fix
 * pass 17 (2026-10-16) takes the frame off entirely — the view
 * bleeds to the window's edges (below). Loaded after styles.css
 * and design-system.css, so its rules win their ties.
 * The board is one light sheet in BOTH skins — that is the
 * Pipedrive read — so the card text colours are pinned here
 * rather than inherited from the frame's theme. */

/* THE FULL-BLEED CHAIN (fix pass 17). Pass 11 bounded the view
 * to the viewport INSIDE #app's padded, max-width column, and
 * pass 15 framed the board as a rounded box inside that bound —
 * so on screen the board still had an END: box corners, a
 * bottom edge, the page's ground around it, dead space beside
 * the 1500px cap. Micheal, against his own Pipedrive board
 * (2026-10-16 ~08:46): "this whole thing needs to be full
 * screen… the column just goes to the bottom of the screen you
 * never see the end." So while the Kanban shows, the view
 * breaks out of #app entirely: it starts at the sidebar's edge
 * (236px — styles.css's own margin for #app), runs to the
 * window's right edge, and from the window's top to its bottom
 * (height, never min-height; overflow hidden — the page cannot
 * scroll because of the board). The negative top/bottom
 * margins cancel #app's padding exactly; the left margin
 * cancels the padding alone — the fluid-width pass (2026-10-16)
 * took the 1500px cap off #app, so the centring offset this
 * margin used to mirror is gone from styles.css and from here. The view's chrome (title, stage tabs, the List |
 * Kanban | Map switch, search) keeps its natural height at the
 * top of the flex column, padded back in below; the board
 * takes every pixel under it, frameless, and the only vertical
 * scroll in the whole view lives inside the lanes — whose
 * panels now run to the bottom EDGE of the screen, their
 * bottom borders and corners dropped, so no lane shows an end.
 * The chain still exists only while #projects-kanban is
 * actually shown (the :has() hook), so List and Map keep the
 * plain page flow, untouched. */
#view-projects:has(> #projects-kanban:not(.hidden)) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  width: calc(100vw - var(--rail-w, 236px));
  margin: -28px 0 -60px -24px;
}
/* wave603-raildrag: the base rule above now follows --rail-w,
 * so the board spans the remaining viewport in expanded, custom
 * and folded rail states through the one shell variable. */
/* ≤900px the sidebar becomes a 58px sticky bar sitting in the
 * flow above #app: the view starts under it and spans the full
 * width (#app is full-width there too, its centring gone). */
@media (max-width: 900px) {
  #view-projects:has(> #projects-kanban:not(.hidden)) {
    width: 100vw;
    height: calc(100vh - 58px);
    margin: -28px 0 -60px -24px;
  }
}
/* ≤640px #app's padding slims to 18px over / 14px beside / 50px under. */
@media (max-width: 640px) {
  #view-projects:has(> #projects-kanban:not(.hidden)) {
    margin: -18px 0 -50px -14px;
  }
}
/* The header strip, padded back in over the bleed: the title,
 * tabs, switch and search keep the portal's usual inset while
 * the board below them runs edge to edge. */
#view-projects:has(> #projects-kanban:not(.hidden)) > .page-head,
#view-projects:has(> #projects-kanban:not(.hidden)) > .proj-controls,
#view-projects:has(> #projects-kanban:not(.hidden)) > .proj-search,
#view-projects:has(> #projects-kanban:not(.hidden)) > #project-form-slot {
  padding-left: 24px;
  padding-right: 24px;
}
#view-projects:has(> #projects-kanban:not(.hidden)) > .page-head { padding-top: 18px; }
@media (max-width: 640px) {
  #view-projects:has(> #projects-kanban:not(.hidden)) > .page-head,
  #view-projects:has(> #projects-kanban:not(.hidden)) > .proj-controls,
  #view-projects:has(> #projects-kanban:not(.hidden)) > .proj-search,
  #view-projects:has(> #projects-kanban:not(.hidden)) > #project-form-slot {
    padding-left: 14px;
    padding-right: 14px;
  }
}
/* The board itself, frameless in the bleed: no border, no
 * radius, no padding, no ground of its own — the view's ground
 * shows in the gutters and the lanes carry the read. */
#view-projects:has(> #projects-kanban:not(.hidden)) > #projects-kanban {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
/* The lanes inset a breath from the window's sides and run to
 * its bottom edge: the panels' bottom border and bottom
 * corners are gone, so a lane's end is the screen's end. */
#view-projects:has(> #projects-kanban:not(.hidden)) .kb-lanes { padding: 2px 14px 0; }
#view-projects:has(> #projects-kanban:not(.hidden)) .kb-col {
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
#view-projects:has(> #projects-kanban:not(.hidden)) .kb-zones { left: 14px; right: 14px; }
body.skin-billdr #view-projects:has(> #projects-kanban:not(.hidden)) { background: #fbfcfd; }

/* The board: a plain light backdrop (the page role in his
 * screenshot); the COLUMNS carry the grey (below). Pass 8 made
 * the whole board one grey sheet with transparent lanes, and
 * pass 15 undoes that — the owner's "lines" are the lanes' own
 * edges, with the board's ground showing in the gutters. It
 * takes the flex column's leftover height and never scrolls
 * itself — the lanes row inside it scrolls SIDEWAYS only when
 * the lanes hit their floor, and the vertical scroll lives
 * inside each lane, never on the board or the page. The board
 * is the positioning parent for the drag zones strip along its
 * bottom edge (below). The lanes row sizes by flex alone (fix
 * pass 15 dropped its height:100% — the chain is flex all the
 * way down, no percentage link left to break).
 * LANE WIDTH (fluid-width pass, 2026-10-16): the lanes' own
 * flex was never the problem — styles.css's legacy .kanban
 * rule sets align-items:flex-start, board.css never reset it,
 * and in this column-direction flex that shrink-wraps the
 * lanes ROW crosswise to its content: six lanes at their 180px
 * floors plus gaps (~1,180px), on any monitor, with the dead
 * space the owner screenshotted sitting to the row's right.
 * align-items:stretch below lets the row take the board's full
 * width, so the lanes' flex 1 1 0 finally distributes it —
 * equal growth across the whole board, the 180px floor (and
 * the row's sideways scroll under it) unchanged. */
.kanban {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
}
.kb-lanes {
  display: flex;
  gap: 14px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
/* A lane: a full-height flex column — the header block, then the
 * card stack — and its OWN grey panel (fix pass 15): the grey,
 * the border and the radius are the "lines" of his screenshot,
 * the board's light ground showing in the gutters between one
 * lane and the next. It stretches to the lanes row's height and
 * never scrolls as a whole. The six lanes share the width evenly
 * (flex 1 1 0 over styles.css's fixed basis) down to a sane 180px
 * floor; only below that floor does the row scroll sideways. */
.kb-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 180px;
  min-height: 0;
  background: #eceff4;
  border: 1px solid #d9dfe9;
  border-radius: 10px;
  box-shadow: none;
  padding: 10px 10px 12px;
}

/* Column header: the stage name, then the sub-line in Pipedrive's
 * shape — total value · count ("CA$280,507.62 · 18 deals"; ours
 * reads projects). flex:none and a SIBLING of the scroll area
 * (board.js emits it before .kb-cards), so it stays fixed at the
 * top of the lane no matter how far the cards scroll. Fix pass 15
 * removes the chevron wedge pass 2 hung between headers: it
 * belonged to the one-sheet look and would hang in what is now a
 * real gutter — the panels' own edges are the separators. */
.kb-head { flex: none; display: block; margin: 2px 2px 10px; }
.kb-stage { font-size: 14px; font-weight: 700; line-height: 1.3; color: #16283f; margin: 0; }
.kb-sub2 { font-size: 12px; font-weight: 500; color: #758092; margin: 2px 0 0; }

/* The lane's scroll area: the cards stack here and scroll up and
 * down INSIDE the lane, independently of every other lane. The
 * drop handlers stay on the lane itself (board.js), so a drop
 * lands anywhere on the lane's full height — header, cards, or
 * the empty stretch below them — scrolled or not. */
.kb-cards {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: #c3ccd9 transparent;
}
.kb-cards::-webkit-scrollbar { width: 8px; }
.kb-cards::-webkit-scrollbar-thumb { background: #c3ccd9; border-radius: 4px; }

/* Compact white cards: rounded, a soft shadow, the name bold on
 * top, the client beneath in smaller muted text, and a foot row —
 * the people on the job at the left, the project's value at the
 * right (only when the project carries one). flex:none so a card
 * never squashes to fit the lane; the lane scrolls instead. */
.kb-card {
  flex: none;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .10);
  padding: 11px 12px;
}
.kb-card:hover { border-color: #c3ccd9; }
.kb-ref { color: #8a94a6; }
.kb-name { color: #16283f; }
.kb-sub { color: #66738a; }
.kb-foot { display: flex; align-items: center; gap: 8px; min-height: 21px; }
.kb-val {
  margin-left: auto;
  font-size: 12.5px; font-weight: 700; color: #16283f;
  white-space: nowrap;
}
.kb-none { color: #7c8698; }

/* The bottom drag zones (pass 11): Pipedrive's strip — a band
 * along the bottom edge of the board that exists ONLY while a
 * card is being dragged (board.js puts .kb-dragging on the board
 * for the drag's life; the strip is an overlay, so the lanes
 * never shift under the hand mid-drag). Four equal zones —
 * Completed · Lost · Archive · Delete (fix pass 17: Delete is
 * the owner's, for spam and the jobs that went nowhere; it reads
 * red, and its drop opens Pipedrive's delete dialog rather than
 * a plain confirm — board.js). A zone under the dragged card
 * lights up solid; the drop itself asks one confirm (board.js)
 * before anything is written. */
.kb-zones {
  display: none;
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  gap: 10px;
  z-index: 6;
}
.kanban.kb-dragging .kb-zones { display: flex; }
.kb-zone {
  flex: 1 1 0;
  padding: 15px 10px;
  text-align: center;
  font-size: 13.5px; font-weight: 700; color: #16283f;
  background: rgba(255, 255, 255, .95);
  border: 1.5px dashed #8a94a6;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .14);
}
.kb-zone.dragover { border-style: solid; border-color: #16283f; background: #fdf6e0; }
.kb-zone-del { color: var(--danger); border-color: #d8a79c; }
.kb-zone-del.dragover { border-style: solid; border-color: var(--danger); background: #fbe7e1; }

/* The delete dialog's info box (fix pass 17): Pipedrive's light
 * blue note — the restore promise, stated in the dialog beside
 * the red Delete. The dialog itself is the portal's fxDialog
 * (files.js / styles.css); only the box is the board's. */
.kb-del-info {
  display: flex; gap: 8px; align-items: flex-start;
  background: #eef4fb; border: 1px solid #c9dcf2; border-radius: 10px;
  padding: 10px 12px; margin-top: 12px;
  font-size: 13.5px; line-height: 1.5; color: #16283f;
}

/* Settings → Deleted items (fix pass 17): the soft delete's
 * home — rows for the projects waiting out their 30 days, each
 * with its Restore and its Delete-permanently. The card is
 * settings.js's (.set-card); the rows are board.js's
 * (mountDeletedItems), so their dress lives here. */
.del-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.del-row:last-child { border-bottom: 0; }
.del-main { flex: 1 1 auto; min-width: 0; }
.del-name { font-weight: 700; margin: 0; color: #16283f; }
.del-sub { color: var(--muted); font-size: 12.5px; margin: 2px 0 0; }
.del-window { font-size: 12px; font-weight: 700; color: #758092; white-space: nowrap; }
.del-window.over { color: var(--danger); }
.del-actions { display: flex; gap: 8px; flex: none; }
.del-purge { color: var(--danger); }

/* The light ("Billdr") skin: the backdrop goes near-white and
 * the lanes sit a touch deeper than it (fix pass 15 — the same
 * panel-and-gutter read as the default skin), and the design
 * system's flat card chrome gives way to the pipeline's soft
 * shadow. */
body.skin-billdr #app .kanban { background: #fbfcfd; border-color: var(--ds-line); }
body.skin-billdr #app .kb-col { background: #e9edf3; border: 1px solid var(--ds-line); border-radius: var(--ds-r); padding: 10px 10px 12px; }
body.skin-billdr #app .kb-card {
  background: var(--ds-card);
  border: 1px solid var(--ds-line);
  box-shadow: 0 1px 3px rgba(16, 24, 40, .10);
}
body.skin-billdr #app .kb-stage { color: var(--ds-ink); }
body.skin-billdr #app .kb-sub2 { color: var(--ds-muted); }
body.skin-billdr #app .kb-val { color: var(--ds-ink); }

/* ======================================================================
 * DW2 P05 — Projects list, board, project shell, Summary (2026-10-18).
 * Structure in plain selectors (works in the Navy appearance too); the
 * light skin's look under body.skin-billdr.
 * ====================================================================== */

/* List: sortable headers (Contacts' .con-sort look + the gold arrow). */
.ptable th[aria-sort] { white-space: nowrap; }
.pt-sort .pt-arrow { margin-left: 2px; }
.pt-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pt-empty p { margin: 0; }

/* List: the Start date cell's in-cell picker (Billdr's "Pick a date"). */
.pt-pick {
  background: none; border: 1px solid transparent; border-radius: 6px;
  padding: 3px 6px; margin: -3px -6px; font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.pt-pick:hover { border-color: var(--line); background: #f8f9fb; }
.pt-pick.empty { color: var(--gold, #a8853f); font-weight: 600; }
.pt-pick:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(11, 34, 53, .14); }

/* The small popover (tag editor + date picker). */
.p05-pop {
  position: absolute; z-index: 1250; min-width: 240px; max-width: 300px;
  background: var(--card, #fff); border: 1px solid var(--line); padding: 10px;
}
.p05-pop-h { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; }
.p05-pop input[type="text"], .p05-pop input[type="date"] { width: 100%; box-sizing: border-box; }
.p05-pop-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.p05-pop .rk-err { margin: 8px 0 0; font-size: 12.5px; color: var(--danger, #b42318); }
.ptag-opts { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-height: 240px; overflow-y: auto; }
.ptag-opt {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer;
}
.ptag-opt:hover, .ptag-opt:focus-visible { outline: none; }
.ptag-opt .ptag-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ptag-opt.on { font-weight: 600; }
.ptag-opt-k { margin-left: auto; font-size: 11.5px; font-weight: 500; }
.ptag-new { font-weight: 600; }
.ptag-none { margin: 6px 2px 2px; font-size: 12.5px; }

/* Board: lane header + Add, the card ⋯, the Archived & Lost note. */
.kb-head-row { display: flex; align-items: center; gap: 8px; }
.kb-head-row .kb-stage { flex: 1 1 auto; min-width: 0; }
.kb-add {
  flex: none; background: none; border: 0; padding: 2px 4px; border-radius: 6px;
  font: inherit; font-size: 12px; font-weight: 600; color: #6b5420; cursor: pointer;
}
.kb-add:hover, .kb-add:focus-visible { background: rgba(255, 255, 255, .7); outline: none; }
.kb-card { position: relative; }
.kb-card .kb-name { padding-right: 22px; }
.kb-card-menu {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; line-height: 1;
  background: none; border: 1px solid transparent; border-radius: 6px; padding: 0;
  font-size: 16px; color: #66738a; cursor: pointer; opacity: .65;
}
.kb-card:hover .kb-card-menu, .kb-card-menu:focus-visible { opacity: 1; }
.kb-card-menu:hover, .kb-card-menu:focus-visible { background: #f1f3f7; border-color: #e3e7ee; outline: none; }
.kb-closed-note { padding: 28px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: #4a5568; }
.kb-closed-note p { margin: 0; }

/* Project header: the stage chip as a picker button. */
button.stage-pick { border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
button.stage-pick:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(11, 34, 53, .16); }
.stage-caret { font-size: 10px; opacity: .7; }

/* The one project form: the present client + Remove client line. */
.pf-clientnow { margin: 0 0 8px; font-size: 13.5px; }
.p05-formdlg { max-width: 720px; }
.p05-formdlg .qm-form { margin: 0; border: 0; box-shadow: none; padding: 0; }
/* wave317-doors (2026-10-31) — "when you go to add projects you cant
 * scroll up and down". Two doors, one form, one rule each; no field,
 * label, order or button changes.
 * (1) The dialog (the board's + Add and card ⋯, Edit project): the frame
 * is held inside the window and the form body scrolls within it, so a
 * form taller than the window never loses its top or its Save button.
 * Only .p05-formdlg dialogs; every other fxDialog is untouched. */
.fx-overlay .fx-dialog.p05-formdlg {
  display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
}
.fx-overlay .p05-formdlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* (2) "+ Add a new project" on the Projects page mounts the form inline
 * in #project-form-slot. In Kanban view that slot sits inside the
 * 100vh / overflow:hidden flex column above, which clipped it. While the
 * form is open the slot scrolls on its own and the board takes what is
 * left; List and Map keep the plain page flow (the chain is not on). */
#view-projects:has(> #projects-kanban:not(.hidden)) > #project-form-slot:not(:empty) {
  flex: 0 1 auto; min-height: 0; max-height: 70vh; overflow-y: auto; overscroll-behavior: contain;
}
#view-projects:has(> #projects-kanban:not(.hidden)):has(> #project-form-slot:not(:empty)) > #projects-kanban { flex-basis: 0; }
.p05-dup-note { font-size: 12.5px; margin: 8px 0 0; }

/* The Undo toast (its own element; #soon-toast stays plain text). */
.p05-undo {
  position: fixed; left: 50%; bottom: 26px; z-index: 1400;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  display: flex; align-items: center; gap: 14px; color: #e8edf4; font-size: 13.5px;
  padding: 10px 12px 10px 18px; border-radius: 12px; border-bottom: 2px solid var(--gold, #c0a060);
  box-shadow: 0 12px 28px -10px rgba(15, 34, 51, .45); max-width: min(560px, 92vw);
}
.p05-undo.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.p05-undo-btn {
  background: none; border: 1px solid rgba(232, 237, 244, .35); border-radius: 8px;
  color: #f3dfae; font: inherit; font-weight: 700; padding: 5px 12px; cursor: pointer;
}
.p05-undo-btn:hover, .p05-undo-btn:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }

/* Light skin. */
body.skin-billdr #app .pt-pick:hover { border-color: var(--ds-line); background: var(--ds-tint); }
body.skin-billdr #app .pt-pick.empty { color: var(--ds-gold-ink); }
body.skin-billdr #app th[aria-sort] .pt-sort.on { color: var(--ds-navy); }
body.skin-billdr #app th[aria-sort] .pt-arrow { color: var(--ds-gold-strong); }
body.skin-billdr .p05-pop { border-color: var(--ds-line); border-radius: var(--ds-r-sm); box-shadow: var(--ds-shadow-pop); }
body.skin-billdr .p05-pop-h { color: var(--ds-navy); }
body.skin-billdr .p05-pop :is(input[type="text"], input[type="date"]) {
  min-height: 36px; padding: 0 10px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-sm); font: inherit; font-size: 14px; color: var(--ds-ink); background: var(--ds-card);
}
body.skin-billdr .p05-pop :is(input[type="text"], input[type="date"]):focus { outline: none; border-color: var(--ds-gold); box-shadow: var(--ds-focus); }
body.skin-billdr .ptag-opt:hover, body.skin-billdr .ptag-opt:focus-visible { background: var(--ds-tint); }
body.skin-billdr .ptag-new { color: var(--ds-gold-ink); }
body.skin-billdr .ptag-opt-k { color: var(--ds-muted); }
body.skin-billdr #app .kb-add { color: var(--ds-gold-ink); }
body.skin-billdr #app .kb-card-menu { color: var(--ds-gold-ink); }
body.skin-billdr #app .kb-card-menu:hover { background: var(--ds-bg); border-color: var(--ds-line); }
body.skin-billdr #app .kb-closed-note { color: var(--ds-muted); }
body.skin-billdr .pf-clientnow { color: var(--ds-muted); }
body.skin-billdr .pf-clientnow b { color: var(--ds-ink); }
body.skin-billdr .pc-remove { color: var(--ds-danger); }
body.skin-billdr .p05-undo { background: var(--ds-navy); border-bottom-color: var(--ds-gold); }
.qm-form .pf-state:not(:empty), .qm-form .pf-descslot:not(:empty) { margin-top: 12px; }
/* Seven lanes (Completed is back) share the width: a narrower floor
 * and gutter so the board still fits a 1440px screen without the
 * sideways scroll the owner rejected in pass 11. */
.kb-lanes { gap: 10px; }
.kb-col { min-width: 148px; padding-left: 8px; padding-right: 8px; }
body.skin-billdr #app .kb-col { padding: 10px 8px 12px; }
.kb-foot { flex-wrap: wrap; row-gap: 4px; }

/* Rookery brand pass (2026-10-19): the card's lead photo — the
 * project's hero photo, or the violet bird tile until it has one.
 * Negative margins bleed it to the card's top and side edges (the
 * card padding is 11px 12px); the top corners follow the card's. */
.kb-top { display: flex; gap: 10px; align-items: flex-start; }
.kb-thumb { width: 64px; height: 64px; flex: none; border-radius: 8px; overflow: hidden; background: #2A095E; }
.kb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kb-head-text { min-width: 0; padding-top: 2px; }
.kb-head-text .kb-name { margin: 0 0 3px; }
.kb-head-text .kb-sub { margin: 0; }
.kb-card .kb-foot { margin-top: 10px; }

/* Board-picture chooser section heads (2026-10-19). */
.kb-pic-sec { font-weight: 700; font-size: 13px; margin: 14px 0 8px; }
.kb-pic-filter { margin: 0 0 10px; font-size: 13px; color: var(--muted, #667); }
.kb-pic-filter select { font: inherit; margin-left: 6px; padding: 5px 8px; border: 1px solid var(--line, #ccd); border-radius: 8px; background: var(--card, #fff); color: inherit; }
.kb-pic-sec:first-child { margin-top: 0; }

/* ---------- wave63-kanban (2026-10-22): one scroll for the whole board ----------
 * Micheal: "dont make it each one like lead meeting ect to have a
 * scroll bar up and down but when you scroll it does all of them …
 * make it like pipedrive". The card stacks stop scrolling inside
 * their lanes; each lane sizes to its own content with a
 * full-height floor (min-height:100% of the lanes row); the lanes
 * row carries the ONE vertical scroll, so the wheel over any lane
 * moves every lane together. The drag zones strip is unaffected —
 * it anchors to the board (.kanban), which does not scroll. */
.kb-lanes { align-items: flex-start; overflow-y: auto; }
.kb-col { height: max-content; min-height: 100%; }
.kb-cards { overflow: visible; }

/* ---------- wave65-lanegrey (2026-10-23): the grey runs the full scroll ----------
 * Micheal's screenshot after wave63: the lanes WITH cards showed
 * grey running on, but the empty lanes' grey stopped after one
 * screenful — wave63 stretched lanes only to the board's visible
 * height, not to the tallest lane's height. The lanes row is a
 * grid now: ONE row whose height is the tallest lane's content
 * (never less than the board's full height), and every lane
 * stretches to that row — the grey continues the whole scroll on
 * every column, like the Lead column that has the cards. These
 * rules override the wave63 lane sizing earlier in this file. */
.kb-lanes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 1fr); grid-template-rows: minmax(100%, max-content); align-items: stretch; }
.kb-col { height: auto; min-height: 0; }

/* ---------- wave66-lanefix (2026-10-23): equal lanes, measured ----------
 * wave65's grid row under-measured the tallest lane (its card
 * stack can shrink in flex layout), so the grey still cut short
 * and the Dashboard board lost its scroll. Back to the wave63
 * flex row; the equal height is now MEASURED in board.js
 * (kbEqualizeLanes) and handed over as --kb-lane-h: every lane's
 * floor is the tallest lane's true height, so the grey runs the
 * full scroll on every column. Overrides the wave65 block above. */
.kb-lanes { display: flex; align-items: flex-start; }
.kb-col { height: max-content; min-height: var(--kb-lane-h, 100%); }

/* ---------- wave359-mobile (2026-11-03): phone lanes ----------
 * The 148px lane floor put ~2.4 cramped lanes on a phone and
 * squeezed the card's photo+text row into a ~50px ribbon — names
 * poked past the card edge in Micheal's screenshot. ≤640: one lane
 * at a time at 84vw with snap (the next lane peeks, so the sideways
 * scroll reads as intentional), a smaller card photo, and card text
 * that may break anywhere rather than spill. Desktop untouched. */
.kb-name, .kb-sub { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .kb-lanes { scroll-snap-type: x proximity; }
  .kb-col { min-width: min(272px, 84vw); scroll-snap-align: start; }
  .kb-thumb { width: 52px; height: 52px; }
}
