.cb2-controls{margin-bottom:18px;min-width:0}.cb2-main{display:grid;grid-template-columns:minmax(160px,1fr) minmax(200px,3fr) auto;gap:16px;align-items:end}.cb2-filter,.cb2-search{display:grid;gap:6px;font-size:12px;font-weight:600;color:var(--muted);min-width:0}.cb2-filter select,.cb2-search input,.cb2-move select{width:100%;min-width:0;max-width:100%;padding:10px 12px;background:#fff;border:1px solid var(--line2);border-radius:9px;color:var(--ink);font:inherit}.cb2-quick,.cb2-layout,.cb2-sort-row,.cb2-filter-summary,.cb2-ticket-nav{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.cb2-quick{margin:14px 0}.cb2-layout .active,.cb2-quick .active,.cb2-stage-options .active{background:var(--soft);border-color:var(--deep);color:var(--deep)}.cb2-stage-options{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.cb2-refine-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.cb2-tick{display:flex;gap:8px;align-items:center;font-size:12px}.cb2-sort-row{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.cb2-sort-row .cb2-filter{min-width:160px}.cb2-filter-summary{justify-content:space-between;font-size:12px;line-height:1.6;padding-top:12px;color:var(--muted)}.cb2-filter-summary span{overflow-wrap:anywhere;flex:1;min-width:180px}.cb2-card-signals{display:grid;gap:4px;color:var(--muted);font-size:11px}.cb2-card-signals small{color:#7a5d12}.cb2-move{padding-top:10px;margin-top:8px;border-top:1px solid var(--line)}.cb2-move label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.cb2-move select{padding:5px;font-size:11px}.cb2-table-wrap{overflow:auto;max-width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;background:#fff}.cb2-list th button{padding:0;text-align:left;font-weight:600;white-space:nowrap}.cb2-list td{overflow-wrap:anywhere}.cb2-list td small{display:block;color:#7a5d12;font-size:11px}.cb2-list-title{text-align:left;font-weight:600}.cb2-ticket-nav{justify-content:space-between;margin-bottom:16px}.cb2-round{margin:12px 0;border:1px solid var(--line);padding:12px;border-radius:9px}.cb2-round summary{font-weight:650;cursor:pointer}.cb2-round textarea{width:100%;max-width:100%;font:inherit}.cb2-history{padding:12px 0;border-bottom:1px solid var(--line);font-size:11px}.cb2-history pre,.cb2-jobs pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font-size:11px}.cb2-feedback{padding:18px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.cb2-feedback textarea,.cb2-feedback select{width:100%;max-width:100%}.cb2-feedback small{display:block;color:var(--muted);margin-bottom:12px}.cb2-extra p{font-size:12px;color:var(--muted)}.cb2-jobs{margin-top:18px}.cb2-jobs details{padding:12px 0;border-top:1px solid var(--line)}.cb2-list{width:100%;border-collapse:collapse}.cb-board{max-width:100%;min-width:0;overflow-x:auto}.cb2-ticket-nav button{font-size:12px}.cb-panel input[type=file]{max-width:100%;font-size:12px}.cb-files a{overflow-wrap:anywhere}

/* Dev board typography and compact action menu. */
.cb2-main { grid-template-columns:minmax(0,1fr) auto; }
.cb2-owner-filter { border:0; padding:0; margin:0 0 12px; min-width:0; }
.cb2-owner-filter legend { padding:0; margin-bottom:6px; font-size:12px; font-weight:600; color:var(--muted); }
.cb2-owner-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.cb2-owner { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:130px; min-width:0; min-height:64px; padding:8px; font-size:12px; }
.cb2-owner img { display:block; width:100px; max-width:100%; height:28px; object-fit:contain; }
.cb2-owner[data-owner="frylabs"] img { width:28px; }
.cb2-owner img[hidden] { display:none; }
.cb2-owner[aria-pressed="true"] { background:var(--soft); border-color:var(--deep); box-shadow:inset 0 0 0 1px var(--deep); color:var(--deep); }
.cb2-page .heading { align-items:flex-start; margin-bottom:20px; }
.cb2-page .heading h1 { font-size:28px; line-height:1.25; letter-spacing:-.6px; }
.cb2-page h2 { font-size:18px; line-height:1.35; }
.cb2-page h3 { font-size:16px; line-height:1.35; }
.cb2-actions { position:relative; }
.cb2-actions > summary { list-style:none; cursor:pointer; min-height:42px; display:flex; align-items:center; gap:12px; }
.cb2-actions > summary::-webkit-details-marker { display:none; }
.cb2-actions > summary::after { content:'▾'; }
.cb2-action-menu { position:absolute; right:0; top:calc(100% + 8px); width:240px; max-width:calc(100vw - 32px); z-index:4; padding:8px; background:#fff; border:1px solid var(--line2); border-radius:10px; box-shadow:0 8px 24px #0b14171a; }
.cb2-action-menu button { display:block; width:100%; text-align:left; border:0; min-height:44px; }
.cb2-controls > details > summary { padding:10px 0; cursor:pointer; font-size:13px; font-weight:600; color:var(--ink); }
.cb2-controls > details { border-top:1px solid var(--line); }
.cb2-controls .cb2-quick { margin-bottom:8px; }
.cb2-list-title { font-weight:600; color:var(--ink); text-decoration:none; }
.cb2-list .cb2-list-title { font-size:14px; line-height:1.4; color:var(--ink); }
.cb2-list a { font-family:ui-monospace,"SF Mono",Menlo,monospace; font-size:12px; }
.cb2-list .cb2-cell-title { min-width:220px; }
.cb2-list .cb2-cell-title small:empty { display:none; }
.cb2-row-owner,.cb2-card-only { display:none; }
.cb2-status,.cb2-priority { display:inline-block; padding:3px 7px; border:1px solid transparent; border-radius:6px; font-size:11px; line-height:1.4; font-weight:600; white-space:nowrap; color:#485a64; background:#eef2f4; }
.cb2-status[data-status="CLARIFYING"] { color:#795408; background:#fff4d7; }
.cb2-status[data-status="READY_TO_BUILD"] { color:#205e7a; background:#e4f3fb; }
.cb2-status[data-status="BUILDING"] { color:#0b6f66; background:#e5f5f2; }
.cb2-status[data-status="VERIFYING"] { color:#295b9c; background:#e9f0ff; }
.cb2-status[data-status="TESTING"] { color:#684294; background:#f2eafd; }
.cb2-status[data-status="DONE"] { color:#36621a; background:#ebf5df; }
.cb2-status[data-status="WONT_DO"] { color:#923b31; background:#fdece8; }
.cb2-priority[data-priority="HIGH"],.cb2-priority[data-priority="VERY_HIGH"] { color:#963f20; background:#fff0e7; }
.cb2-priority[data-priority="MEDIUM"] { color:#795408; background:#fff7df; }
.cb2-card-stage { margin:5px 0; }
.cb2-mobile-head { display:none; }
.cb-panel .cb-section h3,.cb-panel .modal-feed-pane h3 { font-size:16px; line-height:1.4; font-weight:650; }
.cb-panel .form-scroll .cb-title-row h2 { font-size:22px; line-height:1.35; font-weight:650; letter-spacing:-.3px; }
.cb-panel .form-scroll { scroll-behavior:auto; }
.cb2-page :focus-visible,.cb2-mobile-head :focus-visible { outline:2px solid var(--brand); outline-offset:3px; }

@media(max-width:1000px) {
  .cb2-main { grid-template-columns:minmax(0,1fr) auto; }
  .cb2-refine-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:900px) {
  body:has(.cb2-controls) .side,body:has(#afPage) .side { transform:translateX(-100%); transition:transform .15s; }
  body:has(.cb2-controls) .side.open,body:has(#afPage) .side.open { transform:translateX(0); }
}
@media(max-width:720px) {
  .cb2-page .heading { gap:12px; margin-bottom:16px; }
  .cb2-page .heading h1 { font-size:24px; }
  .cb2-page .heading p { font-size:13px; margin-top:5px; }
  .cb2-page .heading-actions { width:100%; justify-content:space-between; }
  .cb2-page .heading-actions > button,.cb2-actions > summary { min-height:44px; }
  .cb2-controls { padding:12px; margin-bottom:12px; }
  .cb2-main { grid-template-columns:minmax(0,1fr); gap:10px; }
  .cb2-owner { flex:1 1 80px; width:auto; padding:8px 6px; }
  .cb2-owner img { width:86px; }
  .cb2-filter,.cb2-search { gap:4px; font-size:12px; }
  .cb2-layout { display:none; }
  .cb2-refine-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 8px; }
  .cb2-controls input,.cb2-controls select { font-size:16px; min-height:44px; }
  .cb2-controls input[type=checkbox] { min-height:20px; width:20px; flex-shrink:0; }
  .cb2-search input { font-weight:400; }
  .cb2-quick { gap:6px; margin:10px 0 4px; }
  .cb2-quick button { font-size:12px; min-height:44px; padding:8px; }
  .cb2-quick .count { padding:0 4px; }
  .cb2-stage-options { gap:6px; }
  .cb2-stage-options button { min-height:44px; }
  .cb2-tick { min-height:44px; font-size:12px; }
  .cb2-sort-row .cb2-filter { min-width:0; flex:1 1 120px; }
  .cb2-sort-row button { min-height:44px; }
  .cb2-filter-summary { padding-top:4px; gap:4px 8px; font-size:12px; align-items:baseline; }
  .cb2-filter-summary span { min-width:0; flex:1 1 180px; }
  .cb2-filter-summary button { min-height:44px; padding:4px 0; }

  /* The same table cells form SVW's compact ticket tiles. Reset the shared
     desktop table minimum: otherwise status sits outside the phone viewport. */
  .cb2-table-wrap { border:0; background:transparent; overflow:visible; }
  .cb2-list.table,.cb2-list tbody { display:block; width:100%; min-width:0; max-width:100%; }
  .cb2-list thead { display:none; }
  .cb2-list tbody tr { display:flex; flex-wrap:wrap; align-items:baseline; width:100%; min-width:0; gap:3px 6px; padding:10px 12px; margin-bottom:8px; background:#fff; border:1px solid var(--line); border-radius:10px; }
  .cb2-list tbody tr.cb2-needs-review { border-left:3px solid #d9a441; }
  .cb2-list.table tbody td { display:block; min-width:0; max-width:100%; padding:0; border:0; font-size:12px; text-align:left; }
  .cb2-list.table tbody .cb2-cell-type,.cb2-list.table tbody .cb2-cell-category,.cb2-list.table tbody .cb2-cell-raised { display:none; }
  .cb2-list .cb2-cell-ref { order:1; flex:1 1 auto; }
  .cb2-list .cb2-cell-status { order:2; }
  .cb2-list .cb2-cell-priority { order:3; }
  .cb2-list.table .cb2-cell-title { order:4; flex:1 1 100%; min-width:0; margin-top:2px; }
  .cb2-list .cb2-list-title { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; width:100%; min-height:44px; padding:3px 0; font-size:15px; line-height:1.35; text-align:left; }
  .cb2-list .cb2-cell-title small { margin-top:3px; font-size:12px; }
  .cb2-list.table .cb2-cell-holder { order:5; }
  .cb2-list.table .cb2-cell-comments { order:6; }
  .cb2-list.table .cb2-cell-updated { order:7; }
  .cb2-list .cb2-cell-holder,.cb2-list .cb2-cell-comments,.cb2-list .cb2-cell-updated { color:var(--muted); margin-top:4px; }
  .cb2-list .cb2-cell-comments::before,.cb2-list .cb2-cell-updated::before { content:'·'; margin-right:6px; }
  .cb2-row-owner,.cb2-card-only { display:inline; }
  .cb2-table-only { display:none; }
  .cb2-ticket-nav { gap:6px; margin-bottom:12px; }
  .cb2-ticket-nav button { min-height:44px; }
  .cb2-round { padding:10px; }
  .cb2-round textarea { font-size:16px; }

  /* A single scrolling ticket with status and an exit always within reach. */
  .modal-backdrop:has(> .cb-panel) { padding:0; align-items:stretch; }
  .modal-wide.cb-panel { display:block; width:100%; height:100dvh; max-height:100dvh; margin:0; border-radius:0; overflow:auto; position:relative; overscroll-behavior:contain; }
  .cb2-mobile-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; position:sticky; top:0; z-index:3; background:#fff; border-bottom:1px solid var(--line); padding:8px 12px; }
  .cb2-mobile-ticket { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .cb2-mobile-head > button { min-height:44px; }
  .cb2-mobile-head nav { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:2px 8px; }
  .cb2-mobile-head nav button { border:0; background:transparent; color:var(--deep); font-size:12px; padding:7px 2px; min-height:44px; }
  .cb-panel .modal-form-pane { display:block; overflow:visible; border:0; }
  .cb-panel .form-scroll { overflow:visible; padding:12px 16px 20px; }
  .cb-panel .modal-feed-pane { display:block; max-width:none; min-width:0; padding:20px 16px; }
  .cb-panel .feed-list { overflow:visible; }
  .cb-panel .modal-form-pane .modal-actions { position:static; padding:12px 16px; box-shadow:none; background:#fff; }
  .cb-panel:has(.cb2-mobile-head) .modal-actions [data-close] { display:none; }
  .cb-panel .form-scroll .cb-title-row h2 { font-size:20px; }
  .cb-panel .cb-title-row { flex-wrap:wrap; gap:8px; }
  .cb-panel .cb-title-row h2 { flex:1 1 100%; }
  .cb-panel .cb-meta { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:12px; margin-bottom:16px; }
  .cb-panel .cb-manage { grid-template-columns:minmax(0,1fr); margin-top:0; padding:12px; }
  .cb-panel .cb-control-row select { max-width:none; }
  .cb-panel input:not([type=checkbox]),.cb-panel select,.cb-panel textarea { font-size:16px; }
  .cb-panel button,.cb-panel .cb-open-link { min-height:44px; }
  .cb-panel .cb-title-row,.cb-panel .cb-section,.cb-panel .modal-feed-pane { scroll-margin-top:125px; }
  .cb-panel .cb2-quick { gap:8px; }
  .cb-panel .cb-panel-head { gap:6px; }
  .cb-panel .feed-hint { display:block; }
  body:has(.cb-panel) { overflow:hidden; }
}

/* Pre-build approval stays separate from workflow stage and review warnings. */
.cb2-approval { display: inline-block; max-width: 100%; font-size: .78rem; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.cb2-approval.is-approved { color: var(--deep); font-weight: 700; }
.cb2-approval.is-changed { color: var(--amber); font-weight: 700; }
.cb2-cell-title .cb2-approval { display: block; margin-top: .3rem; }
.cb2-extra > [data-approval] { margin-block: .5rem; }

/* Where the newest build round has got to (FL-DEV-0787): a small label, never a stage. */
.cb2-release { display: inline-block; justify-self: start; max-width: 100%; padding: 0 .4rem; border: 1px solid var(--line); border-radius: 4px; font-size: .78rem; line-height: 1.5; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
.cb2-release.is-live { color: var(--deep); border-color: var(--deep); background: var(--soft); }
.cb2-cell-title .cb2-release { display: block; width: fit-content; margin-top: .3rem; }

/* References are the primary way tickets are identified while scanning. */
.cb-card .cb-card-id { flex:1 1 100%; }
.cb-card .cb-card-id .task-ref { color:var(--ink); font-size:18px; line-height:1.4; font-weight:800; letter-spacing:.02em; }
.cb2-list .cb2-cell-ref a { color:var(--ink); font-size:16px; line-height:1.4; font-weight:800; letter-spacing:.02em; }

@media(max-width:720px) {
  .cb2-controls > .cb2-quick { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:8px 0 0; }
  .cb2-controls > .cb2-quick button { white-space:normal; line-height:1.35; }
}
.cb2-updated { white-space:nowrap; font-size:12px; color:var(--muted); align-self:center; }
.cb2-page .heading-actions { flex-wrap:wrap; align-items:center; gap:10px; }
@media(max-width:720px) {
  .cb2-page .heading-actions { gap:8px; }
  .cb2-page .heading-actions > .cb2-updated { order:3; flex-basis:100%; }
  .cb2-page .heading-actions > #cbRefresh,.cb2-page .heading-actions > #cbRaise { flex:1 1 0; }
}
