/* Task Helper — road blocks on screen (job-intake.md §32; BRIEF-958). Copyright Rapid Surveys Pty Ltd. App tokens only. */
.rb-mark { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 9px; font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 1px; white-space: nowrap; }
.rb-blocked { background: #fdecec; color: #a32121; border: 1px solid #f2b8b8; }
.rb-needs { background: #fff4e0; color: #8a4b00; border: 1px solid #f4cf8f; }
.rb-cleared { min-width: 18px; padding: 0; text-align: center; background: #1f7a3a; color: #fff; border: 1px solid #1f7a3a; }   /* MK-1: all clear = green ✓ */
.rb-field .rb-body { display: flex; flex-direction: column; gap: 8px; }
.rb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rb-list[hidden] { display: none; }
.rb-item { padding: 10px; border: 1px solid var(--line); border-left: 4px solid #d23f3f; border-radius: 10px; background: var(--card); }
.rb-item.rb-resolved { border-left-color: var(--ok); }
.rb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rb-label { font-weight: 700; }
.rb-state { font-size: 12px; font-weight: 600; color: var(--ok); }
.rb-desc, .rb-res { margin: 4px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rb-who { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.rb-acts, .rb-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.rb-acts .chip, .rb-btns button, .rb-add, .rb-fadd { width: auto; }
.rb-resbox, .rb-addbox { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 0; }
.rb-resbox[hidden], .rb-addbox[hidden], .rb-acts[hidden], .rb-add[hidden] { display: none; }
.rb-sub { font-size: 13px; color: var(--muted); }
.rb-btns button:disabled { opacity: .5; cursor: not-allowed; }   /* rbreason: Resolve waits for the note */
.rb-addbox { padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.rb-hint { margin: 0; padding: 8px 10px; border-radius: 9px; font-size: 14px; }
.rb-hint-needs { background: #fff4e0; color: #6b3a00; border: 1px solid #f4cf8f; }
.rb-hint-cleared { background: #f6f1e7; color: #5c3a00; border: 1px solid #e3d3b3; }
.rb-none { margin: 0; font-size: 14px; }
.rb-toggle { align-self: flex-start; padding: 4px 0; background: none; border: 0; color: var(--accent); font-size: 14px; cursor: pointer; width: auto; }
/* Fields → Status: Blocking / Done ticks; Fields → Road block: its labels */
.rb-flagbox { margin-top: 10px; }
.rb-flaghelp { margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
.rb-flags { display: flex; flex-direction: column; gap: 2px; }
.rb-frow { display: grid; grid-template-columns: 1fr 76px 56px; align-items: center; gap: 8px; font-size: 14px; }
.rb-flags-done .rb-frow { grid-template-columns: 1fr 56px; }   /* 1317-D: a moved project — Done only */
.rb-frow > span:not(:first-child) { text-align: center; }
.rb-fhead { font-size: 12px; font-weight: 600; color: var(--muted); }
.rb-frow input[type="checkbox"] { width: 20px; height: 20px; margin: 0; }
.rb-labs { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rb-labs li { display: flex; gap: 6px; align-items: center; }
.rb-labs input { flex: 1 1 auto; min-width: 0; margin: 0; }
@media (pointer: coarse) { .rb-acts .chip, .rb-btns button, .rb-add, .rb-fadd, .rb-labs .fl-mini { min-height: 44px; } .rb-frow { min-height: 44px; } .rb-toggle { min-height: 44px; } }
/* RB-2 (BRIEF-960): waiting on another task, what a task clears, action required */
.rb-action { background: #a32121; color: #fff; border: 1px solid #a32121; }
.rb-item.rb-flagged { border-left-color: #a32121; background: #fff7f7; }
.rb-flag { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: #a32121; }
.rb-wait { margin: 4px 0 0; font-size: 14px; }
.rb-wstatus { font-size: 12px; color: var(--muted); }
.rb-field .linkish { padding: 0; background: none; border: 0; color: var(--accent); font: inherit; text-align: left; cursor: pointer; width: auto; text-decoration: underline; }
.rb-how { margin: 2px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 4px; }
.rb-how legend { padding: 0; margin: 0 0 2px; }
.rb-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rb-radio input { width: 18px; height: 18px; margin: 0; }
.rb-taskpick { display: flex; flex-direction: column; gap: 6px; }
.rb-taskpick[hidden] { display: none; }
/* RBP1: a task issue's one-line summary (+ Change) and the picker behind it; the issue's Copy list */
.rb-pickbox { display: flex; flex-direction: column; gap: 6px; }
.rb-pickbox[hidden], .rb-tasksum[hidden], .rb-ncc[hidden] { display: none; }
.rb-tasksum { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rb-results { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; }
.rb-results:empty { display: none; }
.rb-results li + li { border-top: 1px solid var(--line); }
.rb-pick { display: block; width: 100%; padding: 8px 10px; background: transparent; border: 0; text-align: left; font-size: 14px; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.rb-pick:hover:not(:disabled) { background: var(--hover); }
.rb-pick:disabled { color: var(--muted); cursor: default; }
.rb-pk { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--accent); }
.rb-noresult { padding: 8px 10px; font-size: 14px; }
.rb-chosen { margin: 0; font-size: 14px; }
.rb-chosen:empty { display: none; }
.rb-newtask { align-self: flex-start; }
.rb-clears { padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; }
.rb-clears .rb-sub { margin: 0 0 4px; display: block; }
.rb-clist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.rb-clabel { color: var(--muted); }
.rb-lpath { color: var(--muted); }
.rb-labs li { flex-direction: column; align-items: stretch; }
.rb-labrow { display: flex; gap: 6px; align-items: center; }
.rb-listrow { padding-left: 2px; }
.rb-lpick { width: auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
@media (pointer: coarse) { .rb-pick, .rb-newtask, .rb-lpick, .rb-radio { min-height: 44px; } .rb-field .linkish { min-height: 44px; } }
/* NOTE-960a: a changed Blocking / Done tick isn't saved until the Status field's Save */
.rb-unsaved { margin: 6px 0 0; font-size: 13px; color: #8a4b00; }
/* BRIEF-992: "Resolve the road blocks too?" on completing — a modal anchored to the TOP */
.rb-dlg-back { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px 16px; background: rgba(20, 28, 40, .45); overflow-y: auto; }
.rb-dlg { width: 100%; max-width: 440px; padding: 16px; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 10px 30px rgba(20, 28, 40, .25); display: flex; flex-direction: column; gap: 8px; }
.rb-dlg h3 { margin: 0; font-size: 18px; }
.rb-dlg { --th-dpad: 16px; }   /* BRIEF-1315: the sticky head / button row reach the dialog's edges */
.rb-dlg > .th-dhead { margin-top: -16px; padding-top: 10px; padding-bottom: 6px; border-radius: 14px 14px 0 0; }
.rb-dlg > .th-dfoot { margin-bottom: -16px; border-radius: 0 0 14px 14px; }
.rb-dlg p { margin: 0; font-size: 14px; }
.rb-dlg-list { margin: 0; padding-left: 18px; font-size: 14px; overflow-wrap: anywhere; }
.rb-dlg textarea { width: 100%; margin: 0; }
@media (pointer: coarse) { .rb-dlg .rb-btns button { min-height: 44px; } }
/* RB-3a (BRIEF-962): the Communications tab — read-only timeline */
.rb-comms { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.rb-cfilt { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-cf { width: auto; }
.rb-cf[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.rb-copenbox { padding: 8px 10px; border: 1px solid #f2b8b8; border-left: 4px solid #c62828; border-radius: 10px; background: #fff7f7; font-size: 14px; }
.rb-copenbox ul { margin: 4px 0 0; padding-left: 18px; overflow-wrap: anywhere; }
.rb-copenbox .rb-flag { display: inline; margin: 0; font-size: 13px; }
.rb-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rb-ti { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rb-tico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: var(--hover); color: var(--ink); }
.rb-ti-email .rb-tico { background: #e8f0fe; color: #1d4ed8; }
.rb-ti-flag .rb-tico { background: #a32121; color: #fff; font-weight: 700; }
.rb-tbody { min-width: 0; flex: 1 1 auto; }
.rb-tsum { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.rb-tx { margin: 2px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rb-twho { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.rb-cmsg { margin: 0; font-size: 14px; }
.rb-cmsg:empty { display: none; }
.rb-more { align-self: flex-start; width: auto; }
.rb-more[hidden] { display: none; }
@media (pointer: coarse) { .rb-cf, .rb-more { min-height: 44px; } }
/* §35 AC-4 (BRIEF-1025): a task outside the person's part — named, never linked */
.rb-hidden { color: var(--muted); font-style: italic; }
/* RB-3b (BRIEF-1036): email from a task + the company's email settings */
.rb-dlg-wide { max-width: 520px; }
.rb-dlg input:not([type="checkbox"]):not([type="radio"]), .rb-dlg textarea { width: 100%; margin: 0; }
.rb-to, .rb-ncc { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.rb-ncopy { display: flex; flex-direction: column; gap: 6px; }
.rb-people { display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow-y: auto; padding: 4px 8px; border: 1px solid var(--line); border-radius: 9px; }
.rb-cmail { align-self: flex-start; width: auto; }
.rb-tfail { color: #a32121; }
.rb-tmsg { margin: 4px 0 0; font-size: 13px; }
.rb-tmsg summary { cursor: pointer; color: var(--accent); }
@media (pointer: coarse) { .rb-cmail, .rb-tmsg summary { min-height: 44px; } }
/* EM-3 (EMAIL, BRIEF-1047): replies on the Communications tab, "Reply received" on a block, the compose Preview */
.rb-replied { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: #1d6b3a; }
.rb-copenbox .rb-replied { display: inline; margin: 0; }
.rb-reply { font-size: 14px; }
.rb-quoted { color: var(--muted); border-left: 3px solid #d5dbe1; padding-left: 8px; }
.rb-tdiff { color: #8a5a00; font-style: italic; }
.rb-mform { display: contents; }
.rb-prev { margin: 8px 0 0; padding: 8px; border: 1px solid #e2e7ec; border-radius: 8px; background: #f7f9fb; }
.rb-pv { margin: 4px 0 0; font-size: 13px; }
.rb-pv summary { cursor: pointer; color: var(--accent); }
.rb-pvtx { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.45 system-ui, sans-serif; max-height: 40vh; overflow: auto; }
@media (pointer: coarse) { .rb-pv summary, .rb-mprev { min-height: 44px; } }
/* RB-3c-2 (BRIEF-1055): a label's email texts */
.rb-tplset { margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.rb-tplset legend { padding: 0 4px; }
.rb-ltpl { width: auto; font-size: 13px; }
@media (pointer: coarse) { .rb-ltpl { min-height: 44px; } }
/* RB-3c-1 (BRIEF-1058): Let them know */
.rb-ltk { margin-top: 4px; }
.rb-ltk-who { margin: 0; }
.rb-ltk-who[hidden] { display: none; }
.rb-letknow { width: auto; }
.rb-lpv { display: flex; flex-direction: column; gap: 4px; }
.rb-lpv[hidden] { display: none; }
.rb-pvtext { margin: 0; padding: 8px; max-height: 200px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--hover); border-radius: 8px; }
@media (pointer: coarse) { .rb-letknow, .rb-ltk { min-height: 44px; } }
/* CC-1 (EMAIL, BRIEF-1066): the compose "Copy to" section */
.rb-copy { margin: 6px 0 0; }
.rb-copy > summary { cursor: pointer; color: var(--accent); }
@media (pointer: coarse) { .rb-copy > summary { min-height: 44px; display: flex; align-items: center; } }
/* AT-1 (EMAIL, BRIEF-1067): keep a reply's attachment */
.rb-keeps { margin: 4px 0 0; font-size: 13px; }
.rb-klist { margin: 0; padding-left: 18px; }
.rb-klist li { margin: 2px 0; }
.rb-kept { color: #1d6b3a; font-weight: 700; }
@media (pointer: coarse) { .rb-keep, .rb-dokeep { min-height: 44px; } }
/* RB-5a (BRIEF-1073): the road-block labels each blocking status allows */
.rb-flabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0 8px 12px; }
.rb-flab { width: auto; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; cursor: pointer; }
.rb-flab[aria-pressed="true"] { background: #fdecec; color: #a32121; border-color: #f2b8b8; font-weight: 600; }
@media (pointer: coarse) { .rb-flab { min-height: 44px; } }
/* RB-5d (BRIEF-1081): email texts where the work happens */
.rb-labrow { display: flex; gap: 6px; align-items: center; }
.rb-labrow .rb-lab { flex: 1 1 auto; min-width: 0; }
.rb-labtext { flex: none; width: auto; font-size: 13px; }
.rb-ltlist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rb-ltlist li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.rb-ltpl2, .rb-nsave, .rb-lsave, .rb-msave { width: auto; font-size: 13px; }
@media (pointer: coarse) { .rb-labtext, .rb-ltpl2, .rb-nsave, .rb-lsave, .rb-msave { min-height: 44px; } }
/* BRIEF-1085 (Gary Q3): clearing "Needs a resolution" without a road block */
.rb-hint .linkish { display: inline; padding: 0; background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; width: auto; }
.rb-hint-fcleared { background: #eef7ee; color: #1f5f2a; border: 1px solid #cfe6cf; }
.rb-fclearbox { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.rb-fclearbox[hidden] { display: none; }
@media (pointer: coarse) { .rb-hint .linkish { min-height: 44px; display: inline-flex; align-items: center; } }
/* BRIEF-1092: parked road blocks (Details) + the save-time questions */
.rb-pstate { color: var(--muted, #6b7280); }
.rb-parked { margin-top: 6px; }
.rb-parked > summary { cursor: pointer; padding: 4px 0; }
.rb-item.rb-parked { border-left-color: #9aa3ad; }   /* asleep: not the open red */
.rb-pnote { margin: 2px 0 6px; font-size: 13px; }
.rb-dlg-hint { font-size: 13px; }
.rb-dlg-picks { display: flex; flex-direction: column; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.rb-dlg-picks .rb-radio { display: flex; gap: 8px; align-items: flex-start; }
@media (pointer: coarse) { .rb-parked > summary, .rb-dlg-picks .rb-radio { min-height: 44px; display: flex; align-items: center; } }
/* BRIEF-1127: a road block raised by another feature (SAFETY's Take 5 "Safety stop") */
.rb-src { color: #8a1c1c; }
.rb-srcnote { font-style: italic; }
/* RB-6d-1 (BRIEF-1251): the ROAD BLOCK section in the task's Comms group */
.rb-sec { display: flex; flex-direction: column; gap: 10px; }
.rb-schips { display: flex; flex-wrap: wrap; gap: 6px; }
.rb-schip { min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; width: auto; }
.rb-schip[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rb-schip-resolved { opacity: .7; }
.rb-sref { font-weight: 700; letter-spacing: .02em; }
.rb-sflag { color: var(--accent); }
.rb-shead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.rb-shead h4 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.rb-stage { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef1f5; color: #34404d; }
.rb-stage-reply { background: #e7f4ea; color: #1f5f2a; }
.rb-stage-closed { background: #f1f1f1; color: #555; }
.rb-sthread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rb-sline { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow-wrap: anywhere; }
.rb-sline-reply { border-left: 4px solid #2e7d32; }
.rb-sline-sent { border-left: 4px solid #5b7ea6; }
.rb-shd { margin: 0 0 4px; font-size: 13px; color: var(--muted, #667085); }
.rb-stag { font-weight: 700; font-size: 11px; letter-spacing: .06em; color: var(--ink); }
.rb-sact > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.rb-smarkbox, .rb-sresbox { display: flex; flex-direction: column; gap: 6px; }
.rb-receipts { margin: 4px 0 0; font-size: 13px; color: var(--muted, #667085); overflow-wrap: anywhere; }
/* RB-6d-2 (BRIEF-1251): the road-block SETUP screen (Fields → Road blocks; public/road-blocks/rb-setup.js) */
.rbs { display: flex; flex-direction: column; gap: 16px; }
.rbs section { display: flex; flex-direction: column; gap: 8px; }
.rbs h4 { margin: 0; font-size: 16px; }
.rbs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rbs-issue { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.rbs-retired { opacity: .6; }
.rbs-acts { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 6px; }
.rbs-delwhy { flex-basis: 100%; font-size: .85em; opacity: .85; }
.rbs-del[disabled] { cursor: not-allowed; }
.rbs-edit { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.rbs-edit input, .rbs-edit textarea, .rbs-edit select { max-width: 100%; }
.rbs-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.rbs-step { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rbs-step select { max-width: 100%; }   /* rbe1: the Built-in names are longer — the step's choice never makes the page scroll sideways */
.rbs-lad { min-width: 0; }
.rbs-days { width: 64px; }
.rbs-stages { display: flex; flex-wrap: wrap; gap: 8px; }
.rbs-ph { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0; font-size: 13px; }
/* RB-6d-3 (BRIEF-1251): the REPLY BOARD (public/road-blocks/rb-board.js) */
.rbb { display: flex; flex-direction: column; gap: 10px; }
.rbb-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.rbb-sw { display: flex; flex-wrap: wrap; gap: 4px; }
.rbb-sw button { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; width: auto; }
.rbb-sw button[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rbb-n { font-size: 12px; color: var(--muted, #667085); }
.rbb-cols { display: flex; flex-direction: column; gap: 12px; }
.rbb-cols.rbb-wide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.rbb-col h4 { margin: 0 0 6px; font-size: 15px; }
.rbb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rbb-card { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow-wrap: anywhere; }
.rbb-card p { margin: 0 0 4px; }
.rbb-reply { border-left: 4px solid #2e7d32; }
.rbb-head { font-weight: 600; }
.rbb-meta { font-size: 13px; color: var(--muted, #667085); }
.rbb-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.rbb-card .linkish, .rb-sec .linkish { display: inline; padding: 0; background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; width: auto; min-height: 0; text-align: left; }
@media (pointer: coarse) { .rbb-card .linkish, .rb-sec .linkish { min-height: 44px; display: inline-flex; align-items: center; } }
/* 1317-C (Gary t-1317a): the road-blocking FIELD dropdown at the top of Fields → Road blocks — full width, touch-sized */
.rbs-field { display: block; width: 100%; max-width: 520px; min-height: 44px; font-size: 15px; margin: 4px 0 6px; }
/* 1317-D (Gary t-1317c): the blocking values as chips (× = stop road-blocking with it) and the "+ New road block" panel */
.rbs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.rbs-chip { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; }
.rbs-unblock { min-width: 32px; min-height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.rbs-unblock:hover { background: var(--hover, #f1f3f5); color: var(--ink); }
.rbs-new { padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; }
/* 1317-F (Gary t-1317d): statuses as the task list's own pills — the chips keep the pill as is; the New-road-block picker = tappable pills */
.rbs-chip-pill { padding: 0 0 0 0; border: 0; background: transparent; gap: 0; }
.rbs-chip-pill .spill { font-size: 13px; padding: 4px 10px; }
.rbs-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.rbs-picks .rbs-vpick { width: auto; flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 4px; border: 2px solid transparent; border-radius: 999px; background: transparent; cursor: pointer; }   /* the page's button { width: 100% } must not stretch a pill */
.rbs-vpick .spill { font-size: 13px; padding: 6px 12px; }
.rbs-picks .rbs-vpick[aria-pressed="true"] { border-color: var(--accent, #2f6df6); }
.rbs-vpick:focus-visible { outline: 2px solid var(--accent, #2f6df6); outline-offset: 2px; }
.rbs-pv { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--card); color: var(--ink); }   /* 1317-G: the page's button colour (--accent-ink, white) must not reach a plain value chip */
.rbs-fhint { margin: 2px 0 6px; }
.rbs-set .rbs-donel { display: block; margin-top: 8px; }
.rbs-set .rbs-done { width: auto; max-width: 100%; }
.rbs-set .rbs-donehint { margin: 2px 0 0; font-size: 13px; }
@media (pointer: coarse) { .rbs-set .rbs-done { min-height: 44px; } }
/* LK-4: the made task's rules (the issue editor) */
.rbs-xrules { display: flex; flex-direction: column; gap: 8px; }
.rbs-xrule { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.rbs-xrule select, .rbs-xrule input { width: auto; max-width: 100%; }
.rbs-xcps, .rbs-xsets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rbs-xcp, .rbs-xset { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rbs-xrule .rbs-xaddcp, .rbs-xrule .rbs-xaddset, .rbs-xrules .rbs-xaddrule { align-self: flex-start; }
@media (pointer: coarse) { .rbs-xrule select, .rbs-xrule input, .rbs-xrule button, .rbs-xaddrule { min-height: 44px; } }
/* EMTHREAD: an email thread as ONE item (its messages drawn by THEmails — emails.css .eml-th-*) */
.rb-ti-conv .rb-cchips { margin: 4px 0 2px; }
.rb-ti-conv .rb-clast { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rb-ti-conv .rb-cconv { margin: 6px 0 2px; }
.rb-ti-conv .rb-cthread { margin: 4px 0 6px; }
.rb-ti-conv .rb-cthl { margin-top: 4px; }
@media (pointer: coarse) { .rb-ti-conv .rb-cconv { min-height: 44px; } }
.rb-ti.rb-ti-found { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }   /* LK-6a: the email THOpen opened */
/* COMMS1 (Gary 2026-10-21, option 1): ONE Comms list — the open road block pinned as a card, ONE write box (Message / Email), ONE filter row */
.rb-pin { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.rb-pin.rb-pin-on { border-color: #f2b8b8; border-left: 4px solid var(--rb-red, #c62828); background: var(--rb-red-tint, #fdf1f1); }
.rb-pfold { display: block; }
.rb-pfold > .rb-schips, .rb-pfold > .rb-sbody, .rb-pfold > .rb-smsg { margin-top: 8px; }
.rb-psum { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.rb-pcap { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rb-red, #c62828); }
.rb-pin .rb-shead h4 { font-size: 16px; }
.rb-pin .rb-desc { margin: 4px 0 0; overflow-wrap: anywhere; }
.rb-pin .rb-wait, .rb-pin .rb-flag { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.rb-pin .rb-flag { color: #a32121; font-weight: 600; }
.rb-sconv { margin: 8px 0 0; }
.rb-sconv > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--accent); font-size: 14px; }
.rb-sconv .rb-sthread { margin-top: 4px; }
.rb-write { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.rb-write .tm-comp { margin: 0; }
.rb-write[hidden], .rb-wslot[hidden], .rb-wq[hidden], .rb-new[hidden], .rb-newmenu[hidden] { display: none; }
.rb-wclose { align-self: flex-start; width: auto; }
/* CMNEW (Gary cm1 = 1): ONE "+ New ▾" button + its menu, above the ONE filter row; phone: the button is full width, the filter row scrolls sideways inside itself */
.rb-newbar { position: relative; align-self: flex-start; }
.rb-new { width: auto; min-height: 40px; padding: 6px 16px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.rb-newmenu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 240px; display: flex; flex-direction: column; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
.rb-ni { width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.rb-ni:hover, .rb-ni:focus-visible { background: var(--hover); }
@media (max-width: 600px) {
  .rb-newbar { align-self: stretch; }
  .rb-new { width: 100%; min-height: 44px; }
  .rb-newmenu { left: 0; right: 0; min-width: 0; }
  .rb-cfilt { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .rb-cfilt > * { flex: none; white-space: nowrap; }
}
.rb-wq .tq-wbox { display: grid; gap: 8px; }
.rb-tq { margin: 0 0 2px; font-size: 12px; font-weight: 600; color: #7a4a00; }
.rb-ti-q .rb-tico { background: #fff3dc; color: #7a4a00; }
/* REPLY: "↳ reply to…" line, the Reply button, and replies nested under their question */
.rb-trep { margin: 0 0 2px; font-size: 12px; color: var(--muted, #666); overflow-wrap: anywhere; }
.rb-qr { margin-top: 6px; }
.rb-qreply { min-height: 44px; }
.rb-qrslot:empty { display: none; }
.rb-qreplies > li { padding: 4px 0; border: 0; background: none; }
.rb-qreplies > li > .rb-tico { display: none; }
.rb-qreplies > li .rb-tbody { padding-left: 0; }
.rb-qreplies > li .rb-twho { margin-top: 2px; }
.rb-qreplies { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid #f0d9a8; display: grid; gap: 8px; }
.rb-wq .tq-note { margin: 0; font-size: 13px; color: var(--muted); }
/* RB-BI (Gary 2026-10-27): each task rule says itself in one sentence; "…put the new task in" is the card's main choice; the lists no rule
   covers say they get the fallback; a refused save's words sit beside the field it names */
.rbs-xsum { margin: 0 0 4px; padding: 6px 8px; border-radius: 8px; background: var(--hover, #f1f3f5); font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rbs-xtol { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.rbs-xrule .rbs-xto { min-height: 44px; font-size: 15px; font-weight: 600; border: 2px solid var(--accent, #2f6df6); border-radius: 8px; }
.rbs-xfall { margin: 0; padding: 6px 8px; border-left: 3px solid #d9a400; background: rgba(217, 164, 0, .08); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.rbs-xfall-row { display: block; margin-top: 4px; }
.rbs-xppl { display: flex; flex-wrap: wrap; gap: 2px 12px; max-height: 160px; overflow-y: auto; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; }
.rbs-xph, .rbs-pnote { margin: 0; font-size: 13px; }
.rbs-edit [aria-invalid="true"] { outline: 2px solid #d23f3f; outline-offset: 2px; }
.rbs-ferr { margin: 2px 0 4px; }
/* FOLD: a question's thread header row; folded = the header only */
.rb-qhead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; width: 100%; min-height: 44px; padding: 4px 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.rb-qcar { flex: none; width: 16px; color: var(--muted, #666); }
.rb-qtxt { font-weight: 600; overflow-wrap: anywhere; }
.rb-qmeta { font-size: 12px; color: var(--muted, #666); display: inline-flex; align-items: center; gap: 4px; }
.rb-qdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--err); }
.rb-ti-q:not(.rb-qfold) .rb-qtxt { display: none; }
.rb-qfold > .rb-tbody > :not(.rb-qhead) { display: none; }
/* UIFIX2 (Gary cm2): "+ New" greyed when the chosen filter's type can't be started now — still focusable, a tap says why */
.rb-new.rb-new-off { background: var(--card); color: var(--muted); border: 1px solid var(--line); box-shadow: none; cursor: default; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
/* rbraise: photos / files on the raise form + listed on the road block */
.rb-files { margin: 8px 0 0; }
.rb-flist { display: flex; flex-direction: column; gap: 4px; }
.rb-flist:empty { display: none; }
.rb-fitem { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 2px 4px 2px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; }
.rb-fname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-fitem .muted { flex: none; white-space: nowrap; }
.rb-fx { width: auto; flex: none; min-width: 28px; min-height: 28px; padding: 0 6px; border: 0; background: none; color: inherit; cursor: pointer; }
.rb-fhelp { margin: 6px 0 0; font-size: 12px; }
.rb-fhelp.err { color: var(--danger, #c0392b); }
.rb-bfile { margin-right: 4px; }
@media (pointer: coarse) { .rb-fx { min-width: 44px; min-height: 44px; } }
/* rr1: the RAISE PAGE — the form's box (.rb-addbox) made full screen when opened (chrome: rb-raise-page.js). Steps: What's blocking it? · Anything to add? · Who's told · Email. */
html.rbr-lock, html.rbr-lock body { overflow: hidden; }
.rbr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rb-addbox:not(.rbr-open) .rbr-dots, .rb-addbox:not(.rbr-open) .rbr-msg { display: none; }
.rb-addbox:not(.rbr-open) .rbr-head { display: flex; justify-content: space-between; align-items: center; }
.rb-addbox:not(.rbr-open) .rbr-foot { display: flex; gap: 8px; }
.rb-addbox:not(.rbr-open) .rbr-foot .rbr-back, .rb-addbox:not(.rbr-open) .rbr-foot .rbr-next { display: none; }
.rb-addbox:not(.rbr-open) .rbr-step { display: block; }
.rb-addbox.rbr-open { position: fixed; inset: 0; margin: 0; width: auto; max-width: none; border: 0; border-radius: 0; z-index: 200; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.rb-addbox.rbr-open[hidden] { display: none; }
.rb-addbox.rbr-open .rbr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.rbr-title { margin: 0; font-size: 18px; text-transform: none; letter-spacing: 0; }
.rbr-x { width: auto; min-width: 44px; min-height: 44px; font-size: 18px; }
.rb-addbox.rbr-open .rbr-dots { display: flex; gap: 6px; list-style: none; margin: 0; padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line); overflow-x: auto; }
.rb-addbox.rbr-open .rbr-dots[hidden] { display: none; }
.rbr-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.rbr-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-weight: 700; font-size: 12px; }
.rbr-dot.rbr-on { color: var(--ink); font-weight: 600; }
.rbr-dot.rbr-on .rbr-n { background: var(--accent); border-color: var(--accent); color: #fff; }
.rbr-dot.rbr-done .rbr-n { background: var(--card); }
.rbr-body { flex: 1 1 auto; overflow-y: auto; padding: 16px; }
.rbr-col { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.rb-addbox.rbr-open .rbr-step { display: none; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.rb-addbox.rbr-open .rbr-step.rbr-cur { display: block; }
.rb-addbox.rbr-open .rbr-step[hidden] { display: none; }
.rbr-step h4 { margin: 0 0 10px; font-size: 17px; text-transform: none; letter-spacing: 0; }
.rbr-step h4:focus { outline: none; }
.rbr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 12px; }
.rbr-card { position: relative; display: flex; align-items: center; min-height: 56px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--ink); }
.rbr-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rbr-card:has(input:checked) { border-color: var(--accent); background: #eef4ff; box-shadow: 0 0 0 1px var(--accent) inset; }
.rbr-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.rb-addbox .rbr-cam { display: none; }
@media (pointer: coarse) { .rb-addbox .rbr-cam { display: inline-flex; } }
.rbr-who { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.rbr-wl { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rbr-who-chip { display: inline-block; padding: 4px 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.rbr-who-chip.rbr-to { background: #eef4ff; }
.rbr-fold { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px 10px; background: #fff; }
.rbr-fold > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.rb-addbox.rbr-open .rbr-msg { display: block; margin: 0; padding: 8px 16px; }
.rb-addbox.rbr-open .rbr-msg[hidden] { display: none; }
.rb-addbox.rbr-open .rbr-foot { display: flex; justify-content: center; gap: 10px; padding: 10px 16px; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(20, 28, 40, .08); }
.rbr-foot button { width: auto; min-width: 120px; min-height: 48px; font-size: 16px; }
.rbr-foot .rb-doadd, .rbr-foot .rbr-next { flex: 1 1 auto; max-width: 420px; }
.rbr-foot [hidden] { display: none; }
.rbr-sheet { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: center; padding: 16px; background: rgba(20, 28, 40, .45); overflow-y: auto; }
.rbr-sheetcard { width: min(720px, 100%); background: var(--card); border-radius: 12px; padding: 14px; }
.rbr-sheetcard h4 { margin: 0 0 10px; }
@media (max-width: 520px) {
  .rbr-body { padding: 12px; }
  .rbr-cards { grid-template-columns: 1fr; }
  .rbr-dot .rbr-l { display: none; }
  .rbr-dot.rbr-on .rbr-l { display: inline; }
}
.rbr-fold > summary { list-style: none; }
.rbr-fold > summary::-webkit-details-marker { display: none; }
.rbr-fold > summary::before { content: "▸"; display: inline-block; width: 18px; }
.rbr-fold[open] > summary::before { content: "▾"; }

/* rbcolour (Gary: "the option to colour the button"): an issue's colour is a key of a fixed palette (lib/rb_colours.js); --rbc is its hex. The NAME is
   always shown, so the colour is a tint + an edge, never the only signal; text stays var(--ink) on a light tint of it (reads in light and dark). */
.rb-dot { display: inline-block; flex: none; width: 12px; height: 12px; margin: 0 6px 0 0; border-radius: 50%; background: var(--rbc); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 35%, transparent); vertical-align: -1px; }
.rbr-card.rbr-tint { border-color: color-mix(in srgb, var(--rbc) 55%, var(--line)); border-left: 10px solid var(--rbc); background: color-mix(in srgb, var(--rbc) 13%, var(--card, #fff)); color: var(--ink); }
.rbr-card.rbr-tint:hover { background: color-mix(in srgb, var(--rbc) 20%, var(--card, #fff)); }
/* selected = the accent frame + a stronger tint + a tick, so it never depends on the colour */
.rbr-card.rbr-tint:has(input:checked) { border-color: var(--accent); border-left-color: var(--rbc); background: color-mix(in srgb, var(--rbc) 26%, var(--card, #fff)); box-shadow: 0 0 0 2px var(--accent); }
.rbr-card.rbr-tint:has(input:checked) .rbr-ct::after { content: " \2713"; color: var(--accent); font-weight: 800; }
.rbs-pal { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; padding: 0; border: 0; }
.rbs-pal legend { padding: 0; }
.rbs-sw { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px 4px 8px; border: 2px solid var(--line); border-radius: 10px; background: var(--card, #fff); color: var(--ink); font-size: 14px; cursor: pointer; }
.rbs-sw input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rbs-sw .rb-dot { width: 18px; height: 18px; margin: 0; }
.rbs-sw .rbs-none { width: 18px; height: 18px; border-radius: 50%; border: 2px dashed var(--line); }
.rbs-sw:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; font-weight: 700; }
.rbs-sw:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
/* BOARDREAD: a card's conversation — a side panel on a computer, a full-screen sheet on a phone (messages drawn by emails.css .eml-th-*) */
.rbb-card { cursor: pointer; }
.rbb-card button, .rbb-card a { cursor: pointer; }
.rbb-pback { position: fixed; inset: 0; z-index: 1500; background: rgba(20, 28, 40, .35); }
.rbb-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); padding-top: calc(12px + env(safe-area-inset-top)); background: var(--bg, #fff); color: var(--ink); overflow-y: auto; overflow-x: hidden; box-sizing: border-box; }
@media (min-width: 900px) { .rbb-panel { width: min(480px, 100vw); border-left: 1px solid var(--line); box-shadow: -6px 0 24px rgba(0, 0, 0, .18); } }
.rbb-phead { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.rbb-ptitle { margin: 0; font-size: 17px; overflow-wrap: anywhere; min-width: 0; }
.rbb-pclosex { flex: 0 0 auto; width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 18px; cursor: pointer; }
.rbb-pmeta { margin: 0; overflow-wrap: anywhere; }
.rbb-pmeta .linkish { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; width: auto; text-align: left; }
.rbb-pacts { display: flex; flex-wrap: wrap; gap: 6px; }
.rbb-pacts:empty { display: none; }
.rbb-pbody { padding: 0; }
.rbb-read { min-height: 44px; }

/* RBBUBBLE (Gary 2026-11-12): the task's Road blocks section is its own BUBBLE — the same look as a Details box (form-layout.css .fl-box: outline, faint tint,
   heading bar) — and it moves like any field in Edit details layout (item "Road blocks", b:road_block). App tokens only. */
.field.rb-field { border: 1px solid var(--branch, #8a94a2); border-radius: 12px; background: rgba(47,109,246,.035); overflow: hidden; margin: 4px 0 12px; padding: 0; }
.field.rb-field > label { display: block; margin: 0; padding: 10px 12px; min-height: 44px; box-sizing: border-box; background: rgba(47,109,246,.085); border-bottom: 1px solid var(--branch, #8a94a2); color: var(--ink); font-size: 15px; font-weight: 600; }
.field.rb-field > .rb-body { padding: 12px 14px; }
.field.rb-field > .rb-msg { margin: 0; padding: 0 14px 12px; }
@media (max-width: 480px) { .field.rb-field > label { padding: 8px 10px; } .field.rb-field > .rb-body { padding: 10px; } .field.rb-field > .rb-msg { padding: 0 10px 10px; } }
