.boards-workspace { min-width:0; }
.boards-top-scroll {
  height:20px; margin:6px 0; max-width:100%; overflow-x:scroll; overflow-y:hidden;
  border-radius:8px; background:var(--surface-2,#f4f6fa);
  scrollbar-width:auto; scrollbar-color:var(--primary,#2563eb) var(--surface-2,#f4f6fa);
}
.boards-top-scroll[hidden] { display:none; }
.boards-top-scroll>div { height:1px; pointer-events:none; }
.boards-top-scroll::-webkit-scrollbar { height:14px; }
.boards-top-scroll::-webkit-scrollbar-track { background:var(--surface-2,#f4f6fa); border-radius:8px; }
.boards-top-scroll::-webkit-scrollbar-thumb { background:var(--primary,#2563eb); border:3px solid var(--surface-2,#f4f6fa); border-radius:8px; }
/* Use a persistent thumb on WebKit/Chromium instead of an auto-hidden overlay. */
@supports selector(::-webkit-scrollbar) { .boards-top-scroll { scrollbar-color:auto; } }
/* Both scrollbars must be able to stop at exactly the same position. */
.boards-workspace .boards-lanes { scroll-snap-type:none; }
.boards-workspace :is(.boards-lanes,.boards-top-scroll) { scroll-behavior:auto; }
@media(max-width:700px) { .boards-top-scroll { height:28px; } }
.boards-directory-toolbar,.boards-dialog-actions { display:flex; gap:12px; align-items:end; justify-content:space-between; margin:16px 0; }
.boards-directory { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; }
.boards-tile { padding:22px; display:flex; flex-direction:column; align-items:start; gap:12px; }
.boards-tile-title { font-size:1.15rem; font-weight:700; text-align:left; white-space:normal; }
.boards-field { display:flex; flex-direction:column; gap:6px; font-size:.8rem; min-width:0; }
.boards-field input,.boards-field select { min-height:38px; width:100%; border:1px solid var(--line,#dce2ec); border-radius:8px; padding:8px 10px; background:var(--surface,#fff); color:var(--text,#17233b); }
.boards-filters { display:flex; flex-wrap:wrap; gap:10px; align-items:end; padding:16px; border:1px solid var(--line,#dce2ec); border-radius:14px; background:var(--surface,#fff); }
.boards-filters .boards-field { flex:1 1 125px; }
.boards-help,.boards-status { color:var(--muted,#64748b); font-size:.8rem; }
.boards-lanes { display:flex; overflow-x:auto; gap:16px; padding:8px 2px 24px; align-items:flex-start; scroll-snap-type:x proximity; }
.boards-lane { flex:0 0 290px; border:1px solid var(--line,#dce2ec); border-top:4px solid var(--board-colour); border-radius:14px; background:var(--surface-2,#f4f6fa); padding:14px; scroll-snap-align:start; }
.boards-lane header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.boards-lane h2 { font-size:1rem; margin:0 0 6px; overflow-wrap:anywhere; }
.boards-status { display:block; margin-bottom:16px; }
.boards-cards { min-height:80px; display:grid; gap:12px; margin-bottom:14px; }
.boards-card { margin:0; padding:16px; background:var(--surface,#fff); border:1px solid var(--line,#dce2ec); border-radius:10px; display:grid; gap:12px; }
.boards-card-title { text-align:left; font:inherit; font-weight:650; color:inherit; background:none; border:0; padding:0; cursor:pointer; overflow-wrap:anywhere; }
.boards-card .card-meta { flex-wrap:wrap; gap:8px; }
.boards-tag { padding:3px 7px; background:var(--surface-2,#edf2f7); border-radius:5px; font-size:.7rem; overflow-wrap:anywhere; }
.boards-empty { padding:24px 8px; color:var(--muted,#64748b); font-size:.85rem; text-align:center; }
.boards-message { padding:16px; border:1px solid #d97706; border-radius:10px; margin:12px 0; }
.boards-announcement { min-height:1em; font-size:.8rem; }
.boards-drop { outline:3px solid var(--board-colour); outline-offset:2px; }
.boards-dialog { width:min(740px,calc(100vw - 24px)); max-height:85vh; overflow:auto; border:1px solid var(--line,#dce2ec); border-radius:16px; padding:24px; color:var(--text,#17233b); background:var(--surface,#fff); }
.boards-dialog::backdrop { background:rgb(15 23 42 / .45); }
.boards-dialog form { display:grid; gap:16px; }
.boards-dialog input[type=checkbox] { width:20px; }
.boards-dialog-error { color:#dc2626; }
.boards-column-row { display:grid; grid-template-columns:1fr 1fr 70px auto auto auto; gap:8px; align-items:end; border-bottom:1px solid var(--line,#dce2ec); padding:12px 0; }
.boards-workspace :focus-visible,.boards-dialog :focus-visible { outline:3px solid var(--primary,#2563eb); outline-offset:3px; }
@media(max-width:700px) {
  .boards-lane { flex-basis:min(300px,82vw); }
  .boards-column-row { grid-template-columns:1fr 1fr 65px; }
  .boards-filters { padding:12px; }
  .boards-filters .btn,.boards-card .btn { min-height:44px; }
  .boards-directory-toolbar { flex-wrap:wrap; }
  .boards-dialog { padding:16px; }
}
@media(max-width:700px) {
  .layout.os-layout-v10 .boards-workspace .page-header { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
  .layout.os-layout-v10 .boards-workspace .page-header .page-actions { display:flex; flex-wrap:wrap; width:100%; }
  .layout.os-layout-v10 .boards-workspace .page-header .page-actions .btn:not(.btn-primary) { display:inline-flex; min-height:44px; }
}
.boards-filter-panel > summary { display:none; }
@media(max-width:700px) {
  .layout.os-layout-v10 .boards-workspace .page-header .page-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .layout.os-layout-v10 .boards-workspace .page-header .page-actions .btn { width:auto; white-space:normal; justify-content:center; }
  .boards-filter-panel > summary { display:list-item; cursor:pointer; padding:14px 18px; border:1px solid var(--line); border-radius:10px; background:var(--surface); font-weight:600; }
  .boards-filter-panel[open] > summary { margin-bottom:10px; }
}
.boards-card-actions,.boards-active-filters { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.boards-cards[hidden] { display:none; }
.boards-preview { max-height:320px; overflow:auto; overflow-wrap:anywhere; }
.boards-preview dt { font-weight:600; margin-top:8px; }
.boards-preview dd { margin-left:0; white-space:pre-wrap; }
.boards-lane header .btn { min-width:36px; }
.boards-dialog select { max-width:100%; }
@media(max-width:700px) { .boards-card-actions .btn,.boards-lane header .btn { min-height:44px; } }
.boards-column-editor[data-mode="lists"] .boards-column-row { grid-template-columns:minmax(120px,1fr) 70px auto auto auto; }
@media(max-width:700px) {
  .boards-column-editor[data-mode="lists"] .boards-column-row { grid-template-columns:1fr 70px; }
  .boards-column-row .btn { min-height:44px; }
}

/* Boards presentation: scoped to Boards; canonical Tasks styles are unchanged. */
.layout.os-layout-v10 .boards-workspace .boards-card span { font-size:inherit; }
.layout.os-layout-v10 .boards-workspace .boards-card .boards-person { font-size:9px; }
.layout.os-layout-v10 .boards-workspace .boards-card .boards-person { color:#315ba2; }
.layout.os-layout-v10 .boards-workspace .boards-card .boards-unassigned { color:var(--muted); }
.layout.os-layout-v10 .boards-workspace .boards-card .badge { font-size:11px; color:var(--text); background:var(--surface-2); }
.layout.os-layout-v10 .boards-workspace .boards-card .badge.violet { color:#6042a5; background:#eee8ff; }
.layout.os-layout-v10 .boards-workspace .boards-card .badge.red { color:#b42318; background:#fee4e2; }
.layout.os-layout-v10 .boards-workspace .boards-card .boards-due.is-overdue { color:#b54738; }
.layout.os-layout-v10 .boards-workspace .boards-card .boards-task-ref { font-size:10px; }
.layout.os-layout-v10 .boards-workspace .boards-card .boards-tag { font-size:11px; }
.layout.os-layout-v10 .boards-workspace .btn { font-size:12px; min-height:36px; }
.layout.os-layout-v10 .boards-workspace .boards-lane header .btn { min-height:28px; }
.boards-workspace { --boards-radius:14px; }
.boards-workspace .page-header { padding:22px 24px; margin-bottom:20px; gap:20px; }
.boards-workspace .page-header h1 { font-size:28px; letter-spacing:-.8px; line-height:1.2; }
.boards-workspace .page-header .page-actions { gap:8px; align-items:center; }
.boards-workspace .btn { min-height:36px; padding:8px 12px; font-size:12px; border-radius:9px; gap:7px; }
.boards-workspace .btn svg { width:15px; height:15px; }
.boards-workspace .boards-announcement:empty { display:none; }
.boards-toolbar { display:flex; gap:16px; align-items:center; justify-content:space-between; padding:12px 14px; border:1px solid var(--line); background:var(--surface); border-radius:12px; }
.boards-search { display:flex; align-items:center; gap:10px; flex:1; max-width:470px; color:var(--muted); }
.boards-search>svg { width:18px; height:18px; flex:none; margin-left:4px; }
.boards-search input { min-width:0; width:100%; min-height:38px; padding:8px 0; border:0; border-radius:4px; background:transparent; color:var(--text); font:inherit; font-size:14px; }
.boards-quick-filters { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.boards-workspace .boards-quick-filters .is-active { color:var(--primary,#0662dd); border-color:var(--primary,#0662dd); background:var(--surface-2); }
.boards-filter-count { padding:1px 5px; border-radius:5px; background:var(--surface-2); color:var(--primary); }
.boards-filter-panel[hidden] { display:none; }
.boards-filters { margin-top:10px; display:grid; grid-template-columns:repeat(4,minmax(130px,1fr)); padding:18px; gap:16px; }
.boards-field { font-size:12px; color:var(--muted); font-weight:600; gap:7px; }
.boards-field input,.boards-field select { font-weight:400; font-size:13px; min-height:40px; }
.boards-board-meta { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px 2px 10px; font-size:12px; color:var(--muted); }
.boards-board-meta strong { font-size:14px; color:var(--text); }
.boards-workflow-note { font-size:11px; }
.boards-active-filters:empty { display:none; }
.boards-active-filters { margin:0 0 10px; }
.boards-lanes { gap:16px; align-items:stretch; padding:4px 2px 22px; }
.boards-lane { display:flex; flex-direction:column; flex:1 0 260px; max-width:360px; min-height:410px; padding:0 12px 12px; border-radius:14px; border-top-width:3px; background:var(--surface-2,#f3f6fb); }
.boards-lane header { min-height:66px; padding:14px 3px; gap:8px; }
.boards-lane h2 { flex:1; margin:0; font-size:14px; font-weight:700; line-height:1.4; letter-spacing:-.15px; }
.boards-lane-count { display:grid; place-items:center; min-width:24px; height:24px; padding:0 6px; border-radius:7px; background:var(--surface); font-size:12px; font-weight:650; color:var(--muted); }
.boards-workspace .boards-lane header .btn { min-width:28px; min-height:28px; width:28px; padding:5px; background:transparent; border-color:transparent; color:var(--muted); }
.boards-status { margin:0 3px 12px; font-size:11px; line-height:1.5; }
.boards-cards { display:flex; flex-direction:column; gap:12px; min-height:0; margin-bottom:12px; flex:1; }
.boards-workspace .boards-card { position:relative; display:flex; flex-direction:column; gap:12px; padding:15px; margin:0; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 2px 4px rgb(20 40 70 / .04); }
.boards-card:focus-within { z-index:3; }
.boards-card-top { display:flex; justify-content:space-between; align-items:center; min-height:22px; }
.boards-task-ref { font-size:10px; letter-spacing:.5px; color:var(--muted); font-weight:600; }
.boards-workspace .boards-card-title { width:100%; min-height:0; font-size:15px; line-height:1.5; letter-spacing:-.1px; font-weight:650; text-align:left; border:0; background:transparent; padding:0; }
.boards-card .badge-row { display:flex; gap:5px; flex-wrap:wrap; margin:0; }
.boards-card .badge-row .badge,.boards-card .boards-tag { font-size:11px; line-height:1.4; border-radius:5px; padding:3px 6px; }
.boards-card-owner { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.boards-people { display:flex; padding-left:3px; flex:none; }
.boards-person { display:grid; place-items:center; width:25px; height:25px; margin-left:-3px; border:2px solid var(--surface); border-radius:50%; background:#e9efff; color:#315ba2; font-size:9px; font-weight:700; }
.boards-unassigned { background:var(--surface-2); color:var(--muted); }
.boards-card-footer { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:8px; padding-top:11px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.boards-due,.boards-card-signals,.boards-card-signals>span { display:inline-flex; align-items:center; gap:5px; }
.boards-card-signals { gap:9px; }
.boards-card-footer svg { width:13px; height:13px; flex:none; }
.boards-due.is-overdue { color:#b54738; background:#fff0ec; border-radius:5px; padding:3px 5px; }
.boards-read-only { font-size:11px; color:var(--muted); }
.boards-card-menu { position:relative; flex:none; }
.boards-card-menu>summary { display:grid; place-items:center; width:28px; height:28px; margin:-4px -5px -4px 0; cursor:pointer; border-radius:7px; list-style:none; color:var(--muted); }
.boards-card-menu>summary::-webkit-details-marker { display:none; }
.boards-card-menu>summary svg { width:18px; height:18px; }
.boards-card-menu[open]>summary,.boards-card-menu>summary:hover { background:var(--surface-2); color:var(--primary); }
.boards-card-menu .boards-card-actions { position:absolute; top:30px; right:-5px; z-index:10; min-width:190px; display:flex; flex-direction:column; gap:3px; margin:0; padding:6px; background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:0 10px 28px rgb(10 25 50 / .16); }
.boards-workspace .boards-card-actions .btn { border-color:transparent; justify-content:flex-start; text-align:left; font-size:12px; white-space:nowrap; }
.boards-workspace .boards-card-actions .btn:hover { background:var(--surface-2); }
.boards-workspace .boards-card-actions [data-board-action="remove"] { color:#b54738; }
.boards-workspace .boards-lane>[data-board-action="quick"] { width:100%; justify-content:center; background:transparent; border:1px dashed var(--line); min-height:38px; color:var(--muted); }
.boards-lane>.boards-cards>.boards-empty { display:flex; flex:1; min-height:220px; flex-direction:column; justify-content:center; align-items:center; gap:10px; font-size:12px; }
.boards-empty>svg { width:25px; height:25px; opacity:.45; }
.boards-lane.is-collapsed { min-height:0; align-self:flex-start; }
.boards-lane.is-collapsed .boards-status { display:none; }
.boards-workspace .boards-tile { border-radius:14px; gap:10px; box-shadow:0 2px 5px rgb(20 40 70 / .03); }
@media(hover:hover){.boards-workspace .boards-card:hover{border-color:var(--primary,#1268e4);box-shadow:0 5px 14px rgb(20 40 70 / .07)}}
@media(max-width:1000px){.boards-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.boards-toolbar{align-items:stretch;flex-direction:column;gap:8px}.boards-search{max-width:none}}
@media(max-width:700px){
 .layout.os-layout-v10 .boards-workspace .btn,.layout.os-layout-v10 .boards-workspace .boards-lane header .btn{min-height:44px}
 .boards-workspace .page-header{padding:18px;margin-bottom:14px}.boards-workspace .page-header h1{font-size:23px}
 .boards-workspace .btn{min-height:44px}.boards-toolbar{padding:10px 12px}.boards-search input{font-size:16px;min-height:44px}
 .boards-quick-filters{gap:6px}.boards-quick-filters>.btn{flex:1;padding:8px 10px}
 .boards-filters{padding:14px;gap:12px}.boards-field input,.boards-field select{font-size:16px;min-height:44px}
 .boards-board-meta{align-items:flex-start;flex-direction:column;gap:4px;padding:14px 2px 10px}
 .boards-lane{flex:0 0 min(310px,84vw);min-height:390px}.boards-lane header{min-height:64px}.boards-workspace .boards-lane header .btn{width:44px;min-height:44px}
 .boards-card-menu>summary{width:44px;height:44px}.boards-card-menu .boards-card-actions{top:44px}.boards-workspace .boards-card-title{font-size:16px}.boards-card-owner{font-size:13px}
 .boards-workspace .boards-lane>[data-board-action="quick"]{min-height:44px}.boards-card-menu .boards-card-actions{min-width:200px}
}


/* Direct access to the canonical task editor, including empty task sections. */
.boards-task-controls { display:grid; gap:7px; border-top:1px solid var(--line); padding-top:11px; }
.boards-task-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.layout.os-layout-v10 .boards-workspace .boards-task-controls .btn { justify-content:center; white-space:normal; min-width:0; font-size:12px; line-height:1.4; }
.boards-task-controls .boards-open-task { color:var(--primary); font-weight:650; }
.boards-task-controls .boards-task-shortcut { padding:6px; background:var(--surface-2); }
@media(max-width:700px) {
  .layout.os-layout-v10 .boards-workspace .boards-task-controls .btn { min-height:44px; }
}

/* Compact cards and naturally sized subboards across licensed workspaces. */
/* Short and empty subboards must accept drops at every visible height of the
   board, including when their headers have scrolled above the viewport. */
.boards-compact .boards-lanes { align-items:stretch; gap:12px; }
.boards-card[draggable="true"] { cursor:grab; }
.is-native-board-dragging .boards-card[draggable="true"] { cursor:grabbing; }
.is-native-board-dragging .boards-compact .boards-lane.is-collapsed { align-self:stretch; }
.boards-compact .boards-lane { flex:0 0 280px; max-width:280px; min-height:0; padding:0 8px 8px; border-top-width:1px; border-radius:10px; }
.boards-compact .boards-lane header { min-height:52px; padding:12px 6px; }
.boards-compact .boards-lane h2 { font-size:13px; }
.boards-compact .boards-cards { gap:8px; margin-bottom:8px; }
.boards-workspace.boards-compact .boards-card { gap:7px; padding:10px; border-radius:7px; cursor:pointer; box-shadow:0 1px 1px rgb(20 40 70 / .14); }
.boards-compact .boards-card>.boards-card-menu { position:absolute; right:8px; top:8px; z-index:2; }
.boards-compact .boards-card>.boards-card-menu>summary { background:var(--surface); }
.boards-compact .boards-card-title { padding-right:25px; font-size:14px; font-weight:500; }
.boards-compact .boards-card .badge-row { padding-right:22px; }
.boards-compact .boards-card-footer { padding:0; border:0; min-height:22px; }
.boards-compact .boards-lane>.boards-cards>.boards-empty { padding:8px 4px; min-height:0; flex:none; }
.boards-compact .boards-empty>svg { display:none; }
.boards-compact .boards-card-menu .boards-card-actions { max-height:55vh; overflow:auto; }
@media(max-width:700px){.boards-compact .boards-lane { flex-basis:min(280px,82vw); }.boards-compact .boards-card-title { min-height:44px; }.boards-compact .boards-card-menu>summary { width:36px;height:36px; }}

/* Card identity comes from canonical priority, labels, people and progress. */
.boards-workspace.boards-compact .boards-rich-card {
  --card-ink:var(--card-accent); --priority-ink:color-mix(in srgb,var(--priority-colour) 85%,#0f172a);
  gap:10px; padding:13px 12px 12px; border-radius:12px;
  border-color:color-mix(in srgb,var(--card-accent) 20%,var(--line));
  background:linear-gradient(135deg,color-mix(in srgb,var(--card-accent) 6%,var(--surface)),var(--surface) 64%);
  box-shadow:0 2px 3px rgb(15 23 42 / .05),0 5px 12px rgb(15 23 42 / .025);
  transition:transform 140ms ease,border-color 140ms ease,box-shadow 140ms ease;
}
.boards-rich-card::before { content:""; position:absolute; inset:0 12px auto; height:3px; border-radius:0 0 5px 5px; background:linear-gradient(90deg,var(--card-accent),color-mix(in srgb,var(--card-accent) 22%,transparent)); pointer-events:none; }
.boards-card-heading { display:flex; align-items:center; gap:7px; min-width:0; }
.boards-card-heading .boards-card-menu { margin-left:auto; }
.boards-card-heading .boards-card-menu>summary { margin:-3px -4px -3px 0; }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-priority { display:inline-flex; align-items:center; gap:5px; flex:none; padding:3px 7px; border-radius:6px; color:var(--priority-ink); background:color-mix(in srgb,var(--priority-colour) 10%,var(--surface)); font-size:10px; line-height:1.4; font-weight:700; }
.boards-priority>i { width:5px; height:5px; flex:none; border-radius:50%; background:var(--priority-colour); }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-card-state { display:inline-flex; align-items:center; gap:3px; min-width:0; margin-left:auto; color:var(--muted); font-size:10px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.boards-card-state svg { width:12px; height:12px; flex:none; }
.boards-workspace .boards-rich-card.is-complete .boards-card-state { color:var(--card-ink); }
.boards-workspace.boards-compact .boards-rich-card .boards-card-title { padding:0; font-size:14px; line-height:1.55; font-weight:650; letter-spacing:-.1px; }
.boards-compact .boards-rich-card .boards-card-labels { padding:0; gap:5px; }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-card-labels .boards-tag { color:color-mix(in srgb,var(--label-colour) 85%,#0f172a); background:color-mix(in srgb,var(--label-colour) 11%,var(--surface)); padding:3px 7px; border-radius:5px; font-size:10px; line-height:1.4; font-weight:650; border:1px solid color-mix(in srgb,var(--label-colour) 18%,transparent); }
.boards-rich-card .boards-card-footer { padding-top:8px; border-top:1px solid color-mix(in srgb,var(--card-accent) 10%,var(--line)); flex-wrap:wrap; gap:8px; min-width:0; }
.boards-rich-card .boards-card-signals { gap:7px; flex-wrap:wrap; min-width:0; }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-due { padding:4px 6px; border-radius:6px; font-size:10px; font-weight:600; background:var(--surface-2); color:var(--muted); line-height:1.4; }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-due.is-overdue { background:color-mix(in srgb,#e11d48 11%,var(--surface)); color:#be123c; }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-due.is-today { background:color-mix(in srgb,#d97706 13%,var(--surface)); color:#92400e; }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-due.is-complete { background:color-mix(in srgb,#0f766e 11%,var(--surface)); color:#0f766e; }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-signal { color:var(--muted); font-size:10px; }
.boards-rich-card .boards-people { margin-left:auto; align-items:center; min-height:27px; }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-person { width:28px; height:28px; background:var(--person-colour,#475569); color:#fff; font-size:9px; letter-spacing:.15px; box-shadow:0 1px 3px rgb(15 23 42 / .1); }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-person-more { background:var(--surface-2); color:var(--muted); }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-owner-placeholder { padding:4px 7px; border-radius:6px; color:var(--muted); background:var(--surface-2); font-size:10px; }
.boards-progress { display:grid; gap:5px; margin-top:1px; }
.boards-progress-caption { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-progress-caption>span { display:inline-flex; align-items:center; gap:4px; font-size:10px; font-weight:500; color:var(--muted); }
.boards-progress-caption svg { width:12px; height:12px; }
.boards-progress-track { height:4px; overflow:hidden; border-radius:99px; background:color-mix(in srgb,var(--card-accent) 12%,var(--surface-2)); }
.boards-progress-track>span { display:block; height:100%; border-radius:inherit; background:var(--card-accent); }
.boards-progress.is-complete .boards-progress-track>span { background:#0f766e; }
.layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-progress.is-complete .boards-progress-caption>span { color:var(--card-ink); }
html[data-theme="dark"] .boards-workspace .boards-rich-card { --card-ink:color-mix(in srgb,var(--card-accent) 55%,white); --priority-ink:color-mix(in srgb,var(--priority-colour) 55%,white); }
html[data-theme="dark"] .layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-card-labels .boards-tag { color:color-mix(in srgb,var(--label-colour) 50%,white); }
html[data-theme="dark"] .layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-due.is-overdue { color:#fda4af; }
html[data-theme="dark"] .layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-due.is-today { color:#fcd34d; }
html[data-theme="dark"] .layout.os-layout-v10 .boards-workspace .boards-rich-card .boards-due.is-complete { color:#5eead4; }
@media(hover:hover) { .boards-workspace.boards-compact .boards-rich-card:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--card-accent) 60%,var(--line)); box-shadow:0 5px 14px rgb(15 23 42 / .10); } }
@media(max-width:700px) {
  .boards-rich-card .boards-card-menu>summary { width:44px; height:44px; }
  .boards-workspace.boards-compact .boards-rich-card .boards-card-title { min-height:44px; font-size:15px; }
  .boards-card-heading .boards-card-menu>summary { margin:-6px -5px -6px 0; }
}
@media(prefers-reduced-motion:reduce) { .boards-workspace.boards-compact .boards-rich-card { transition:none; } .boards-workspace.boards-compact .boards-rich-card:hover { transform:none; } }

/* Native, keyboard-operable board audience editor. */
.boards-access-badge { display:inline-flex; align-items:center; width:fit-content; gap:6px; border:1px solid var(--border); border-radius:999px; padding:4px 9px; font-size:11px; font-weight:600; color:var(--muted); background:var(--surface); }
.boards-lane > .boards-access-badge { margin:0 12px 8px; }
.boards-access-groups { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px; }
.boards-access-groups fieldset { min-width:0; border:1px solid var(--border); border-radius:10px; padding:10px; }
.boards-access-groups legend { font-weight:600; padding:0 5px; }
.boards-access-choices { max-height:230px; overflow:auto; }
.boards-access-choices label { display:flex; align-items:center; gap:9px; min-height:44px; padding:6px; border-radius:6px; cursor:pointer; }
.boards-access-choices label:hover { background:var(--surface-2); }
.boards-access-choices label[hidden], .boards-access-editor [hidden] { display:none; }
.boards-access-choices input { width:18px; height:18px; flex-shrink:0; }
.boards-access-help { color:var(--muted); font-size:12px; }
/* Board-only treatment, including sparse real-world boards. High specificity
   keeps native global surface rules from flattening card and subboard colours. */
#app .layout.os-layout-v10 .boards-workspace.boards-compact .boards-lanes {
  background:radial-gradient(ellipse at 8% 5%,color-mix(in srgb,#7c3aed 9%,transparent),transparent 52%),radial-gradient(ellipse at 90% 90%,color-mix(in srgb,#0d9488 9%,transparent),transparent 55%),var(--surface-2);
  border:1px solid var(--line); border-radius:18px; padding:18px; gap:16px; min-height:55vh;
}
#app .layout.os-layout-v10 .boards-workspace.boards-compact .boards-lane {
  background:linear-gradient(180deg,color-mix(in srgb,var(--board-colour) 9%,var(--surface)) 0, var(--surface-2) 160px);
  border:1px solid color-mix(in srgb,var(--board-colour) 22%,var(--line)); border-top:4px solid var(--board-colour);
  border-radius:14px; box-shadow:0 3px 12px rgb(15 23 42 / .04); min-height:188px;
}
#app .layout.os-layout-v10 .boards-workspace.boards-compact .boards-lane>header { padding:15px 12px 12px; align-items:flex-start; }
#app .layout.os-layout-v10 .boards-workspace.boards-compact .boards-lane>header h2 { font-size:14px; font-weight:700; line-height:1.5; }
#app .layout.os-layout-v10 .boards-workspace.boards-compact .boards-lane-count { background:color-mix(in srgb,var(--board-colour) 14%,var(--surface)); color:var(--text); border:1px solid color-mix(in srgb,var(--board-colour) 20%,var(--line)); min-width:25px; padding:3px 7px; border-radius:8px; }
#app .layout.os-layout-v10 .boards-workspace.boards-compact .boards-rich-card {
  background:linear-gradient(145deg,color-mix(in srgb,var(--card-accent) 8%,var(--surface)),var(--surface) 68%);
  border:1px solid color-mix(in srgb,var(--card-accent) 24%,var(--line)); border-left:4px solid var(--card-accent);
  border-radius:12px; padding:13px; box-shadow:0 3px 7px rgb(15 23 42 / .07);
}
#app .layout.os-layout-v10 .boards-workspace.boards-compact .boards-rich-card .boards-card-title { font-size:16px; line-height:1.5; padding:9px 0 13px; min-height:48px; font-weight:700; letter-spacing:-.15px; }
.boards-card-identity { display:flex; justify-content:space-between; margin-bottom:10px; font-size:10px; font-weight:700; letter-spacing:.7px; color:var(--muted); text-transform:uppercase; }
.boards-owner-name { max-width:110px; overflow:hidden; text-overflow:ellipsis; font-size:11px; font-weight:600; }
#app .layout.os-layout-v10 .boards-workspace.boards-compact .boards-lane>.btn { margin:5px 8px 9px; width:calc(100% - 16px); color:var(--text); border-radius:8px; background:color-mix(in srgb,var(--board-colour) 6%,var(--surface)); min-height:40px; }
#app .layout.os-layout-v10 .boards-workspace.boards-compact .boards-empty { border:1px dashed color-mix(in srgb,var(--board-colour) 25%,var(--line)); border-radius:9px; margin:4px; min-height:74px; color:var(--muted); }
.card-record .card-identity { padding:12px 15px; border-radius:10px; background:color-mix(in srgb,var(--primary) 6%,var(--surface)); margin-bottom:18px; }
.card-record .card-identity>span { font-weight:700; letter-spacing:.6px; }
.card-record .card-identity p,.card-record .card-connections>p { font-size:12px; color:var(--muted); line-height:1.6; margin:7px 0 0; }
.card-record .card-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.card-record .card-fields textarea { resize:vertical; min-height:100px; }
.card-record .card-placements { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.card-check-row,.card-connection-row { display:flex; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }
.card-check-row>label { flex:1; display:flex; align-items:center; gap:10px; overflow-wrap:anywhere; }
.card-check-row input { width:20px; height:20px; flex:none; }
.card-check-row input:checked+span { text-decoration:line-through; color:var(--muted); }
.card-connection-row>small { color:var(--muted); font-size:10px; margin-left:auto; }
.card-link-picker,.card-checklist>form { display:grid; gap:12px; margin-top:20px; }
.card-command-error { color:var(--danger,#b91c1c); font-size:13px; }
.card-archive { margin-top:24px; color:var(--muted); font-size:12px; }
.card-archive>summary { cursor:pointer; min-height:32px; }
@media(max-width:700px) {
  #app .layout.os-layout-v10 .boards-workspace.boards-compact .boards-lanes { padding:10px; gap:12px; border-radius:12px; }
  .card-record .card-fields { grid-template-columns:1fr; }
  .card-record .card-fields .span-2 { grid-column:auto; }
  .card-connection-row { flex-wrap:wrap; }
  .card-record .tab { min-height:44px; }
}
@media (max-width:600px) { .boards-access-groups { grid-template-columns:1fr; } .boards-access-choices { max-height:180px; } }

/* Native CRM column editor and editable duplication forms. */
.crm-stage-head .column-title .lead-column-edit{margin-left:auto;flex:none;min-width:36px;min-height:36px;padding:7px}
.crm-leads-compact .crm-stage-head .column-title>span:first-child{min-width:0;overflow-wrap:anywhere}
.boards-duplicate-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.boards-duplicate-fields .span-2{grid-column:1/-1}
.boards-duplicate-fields textarea{width:100%;border:1px solid var(--line,#dce2ec);border-radius:8px;padding:10px;background:var(--surface,#fff);color:var(--text,#17233b);font-family:inherit;font-weight:400;font-size:14px;line-height:1.5;resize:vertical}
.boards-duplicate-dialog .boards-dialog-actions{position:sticky;bottom:-24px;background:var(--surface,#fff);padding:16px 0;margin-bottom:0;border-top:1px solid var(--line,#dce2ec)}
@media(max-width:600px){.crm-stage-head .column-title .lead-column-edit{min-width:44px;min-height:44px}.boards-duplicate-fields{grid-template-columns:1fr}.boards-duplicate-fields .span-2{grid-column:auto}}
@media(max-width:600px){.boards-duplicate-fields textarea{font-size:16px}.boards-duplicate-dialog .boards-dialog-actions{bottom:-16px}}
#app .layout.os-layout-v10 .crm-leads-compact .crm-stage-head{background:color-mix(in srgb,var(--stage-tone) 8%,var(--surface))}
#app .layout.os-layout-v10 .crm-leads-compact .crm-stage-count{background:color-mix(in srgb,var(--stage-tone) 13%,var(--surface))}
