/* The Boardroom (company-boardroom.js): two people, six slots each, the
   table between them. Building is ice blue, To test green, Waiting grey;
   amber stays for warnings. */
.br {
  --br-bg: #060b14;
  --br-room: #0a1322;
  --br-card: #0e1727;
  --br-line: #16233a;
  --br-line-2: #263753;
  --br-ink: #e6eef8;
  --br-soft: #c5d2e2;
  --br-dim: #9fb2c8;
  --br-mute: #8fa3bc;
  --br-ice: #5ac8fa;
  --br-ice-hi: #7fdbff;
  --br-ok: #3dffb8;
  --br-red: #ff8a8a;
  --br-grey: #9fb2c8;
  position: relative; color: var(--br-ink); background: var(--br-bg); border: 1px solid var(--br-line); border-radius: 20px; padding: 18px 22px 22px;
  font-size: 14px;
}
.br button { font: inherit; }
.br :focus-visible { outline: 2px solid var(--br-ice-hi); outline-offset: 2px; }

/* top */
/* The bug workflow (#132): a six-step tracker and the Bugs list. */
.br-track { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.br-track-steps { display: inline-flex; gap: 4px; }
.br-track-s { width: 22px; height: 6px; border-radius: 3px; background: #22314e; }
.br-track-s.is-done { background: #4c8fbf; }
.br-track-s.is-now { background: #72c6f0; box-shadow: 0 0 0 2px rgba(114, 198, 240, 0.25); }
.br-track-w { font-size: 12px; font-weight: 600; color: #8a9bb5; }
.br-track.is-small { margin-top: 0; }
.br-track.is-small .br-track-s { width: 16px; height: 5px; }
.br-bugs { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #22314e; border-radius: 14px; }
.br-bugs-h, #detail .br-bugs-h { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.br-bugs-n { font-size: 12px; font-weight: 700; color: #0b1220; background: #8a9bb5; border-radius: 999px; padding: 1px 8px; }
.br-bugs-you { font-size: 12px; font-weight: 700; color: #1a1300; background: #ffc24d; border-radius: 999px; padding: 1px 8px; }
.br-brows { display: grid; gap: 6px; margin-top: 12px; }
.br-brow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1.4fr) 220px; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid #1a2741; background: rgba(10, 16, 28, 0.45); }
.br-brow.is-head { padding-block: 0; border: 0; background: none; }
.br-brow.is-open { border-color: #72c6f0; }
.br-brow.is-done { opacity: 0.6; }
.br-brow-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; }
button.br-brow-who { cursor: pointer; }
button.br-brow-who:hover .br-brow-t, button.br-brow-who:focus-visible .br-brow-t { text-decoration: underline; }
.br-brow-t { font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-brow-s { font-size: 12px; color: #8a9bb5; }
.br-brow-line { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; position: relative; }
.br-bstep { height: 6px; margin-right: 3px; border-radius: 3px; background: #22314e; }
.br-bstep.is-done { background: #4c8fbf; }
.br-bstep.is-now { background: #72c6f0; box-shadow: 0 0 0 2px rgba(114, 198, 240, 0.25); }
.br-bstep-n { font-size: 11px; font-weight: 600; color: #8a9bb5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-brow-next { justify-self: end; font-size: 13px; color: #8a9bb5; text-align: right; }
.br-brow-next.is-agent { color: #72c6f0; }
.br-brow.is-head .br-brow-next { font-size: 11px; font-weight: 600; }
.br-bug-open { margin-top: 10px; }
@media (max-width: 760px) {
  .br-brow { grid-template-columns: 1fr; gap: 8px; }
  .br-brow.is-head { display: none; }
  .br-brow-next { justify-self: start; text-align: left; }
}
/* A card's Dropbox folder (#117): one quiet line above its chat. */
.br-folder { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 10px; margin-bottom: 8px; border: 1px dashed #2b3d60; border-radius: 8px; font-size: 12.5px; color: #8a9bb5; }
.br-folder-k { font-weight: 700; color: #b9c7da; }
.br-folder-p { color: #e7edf6; min-width: 0; overflow-wrap: anywhere; }
.br-folder-a { color: #72c6f0; text-decoration: none; margin-left: auto; }
.br-folder-a:hover { text-decoration: underline; }
.br-folder-err { color: #ff9d7a; }
.br-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.br-top h1 { margin: 0; font-size: 24px; font-weight: 700; }
.br-back { color: var(--br-dim); font-size: 13px; text-decoration: none; border: 1px solid #1e2d45; border-radius: 8px; padding: 5px 10px; }
.br-back:hover { color: var(--br-ink); border-color: var(--br-ice); }
.br-date { color: var(--br-mute); font-size: 13px; }
.br-keys { margin-left: auto; color: var(--br-dim); background: none; border: 1px solid #1e2d45; border-radius: 8px; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.br-keys:hover { color: var(--br-ink); border-color: var(--br-ice); }
.br-err { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255, 138, 138, 0.4); background: rgba(255, 138, 138, 0.08); color: #ffc4c4; font-size: 13px; }

/* each side's tabs, over its slots: plain words, centred; the one you're on is brighter and a little larger */
.br-tabs { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; margin: 0 0 10px; }
.br-tab { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 1px; font-size: 13px; font-weight: 500; color: var(--br-mute); background: none; border: 0; cursor: pointer; }
.br-tab:hover { color: var(--br-soft); }
.br-tab.is-on { font-size: 15px; font-weight: 700; color: var(--br-ink); }
.br-tab-n { font-size: 11.5px; font-weight: 500; color: var(--br-mute); }
.br-tab.is-on .br-tab-n { color: var(--br-dim); }

/* a side's Messages, Previous tasks, Previous messages: a list in the slots' place */
.br-list { display: flex; flex-direction: column; gap: 8px; }
.br-list-foot { margin: 2px 0 0; font-size: 12.5px; color: var(--br-dim); text-decoration: none; }
a.br-list-foot:hover { color: var(--br-ice-hi); }
.br-rows { display: flex; flex-direction: column; gap: 6px; }
.br-row { display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; border-radius: 11px; background: var(--br-card); border: 1px solid var(--br-line-2); color: inherit; text-decoration: none; min-width: 0; }
a.br-row:hover { border-color: var(--br-ice); }
.br-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 13.5px; }
/* the name stays readable: the chips and the time wrap under it instead */
.br-row-top b { flex: 0 1 auto; min-width: 4em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.br-row-at { margin-left: auto; flex: none; font-size: 12px; color: var(--br-mute); }
.br-row-txt { font-size: 12.5px; line-height: 1.4; color: var(--br-dim); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
button.br-row { width: 100%; font: inherit; text-align: left; cursor: pointer; }
button.br-row:hover { border-color: #34486a; }
.br-row.is-open { position: relative; padding-right: 48px; border-color: var(--br-ice); border-bottom-color: transparent; border-radius: 11px 11px 0 0; }
.br-row.is-open .br-row-txt { -webkit-line-clamp: unset; }
.br-row.is-open + .br-msgbox { margin-top: -7px; }
/* her case waits for a yes: yellow, as a slot that needs you */
.br-row.is-att { border-color: rgba(255, 194, 77, 0.55); background: rgba(255, 194, 77, 0.06); }
.br-row.is-att.is-open, .br-msgbox.is-att { border-color: #ffc24d; }
.br-row.is-open.is-att { border-bottom-color: transparent; }
.br-kindchip { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.br-kindchip.is-licence_request { color: #ffd9a8; background: #3a2a14; }
.br-kindchip.is-more_time { color: #a8f0e0; background: #123a33; }
.br-kindchip.is-bug_report { color: #ffc4c4; background: #3a1a20; }
.br-ready { flex: none; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #1a1204; background: #ffc24d; }
.br-case { display: flex; flex-direction: column; gap: 8px; }
.br-case-sec { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--br-line-2); border-radius: 12px; background: var(--br-room); }
.br-case-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--br-dim); }
.br-case-sec h4 .of-face { width: 18px; height: 18px; }
.br-case-sec ul, .br-case-sec ol { display: flex; flex-direction: column; gap: 3px; margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--br-soft); }
.br-case-sec.is-yes { border-color: rgba(61, 255, 184, 0.35); }
.br-case-sec.is-yes h4 { color: var(--br-ok); }
.br-case-rec { margin: 0; font-size: 13px; font-weight: 700; color: var(--br-soft); }
.br-case-rec.is-yes { color: var(--br-ok); }
.br-case-rec.is-no { color: #ffc4c4; }
/* a message, opened: the post, the conversation, her reply */
.br-post { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--br-line-2); border-radius: 12px; background: var(--br-room); }
.br-post-pic { flex: none; width: 72px; height: 128px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: #16233a; font-size: 11px; color: var(--br-mute); }
.br-post-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-post-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.br-post-k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #f0b7d8; }
.br-post-c { font-size: 13px; line-height: 1.45; color: var(--br-soft); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.br-post-m { font-size: 12px; color: var(--br-mute); }
.br-post-l { font-size: 12px; color: var(--br-dim); }
.br-msg-sub { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--br-dim); }
/* a picture, GIF or sticker in a DM */
.br-msg-pic { display: block; margin-top: 6px; font-size: 12px; color: var(--br-mute); }
.br-msg-pic img { display: block; max-width: 240px; max-height: 240px; border-radius: 10px; }
/* the post's comment section, as on Instagram */
.br-cs { border: 1px solid var(--br-line-2); border-radius: 12px; background: var(--br-room); overflow: hidden; }
.br-cs-h { display: flex; justify-content: space-between; padding: 9px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--br-dim); border-bottom: 1px solid var(--br-line); }
.br-cs-list { max-height: 420px; overflow-y: auto; }
.br-c { display: flex; gap: 10px; padding: 8px 12px; }
.br-c.is-rep { padding-left: 52px; }
.br-c.is-hl { background: rgba(255, 194, 77, 0.08); box-shadow: inset 3px 0 0 #ffc24d; }
.br-c-av { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: #5a6fbf; }
.br-c.is-rep .br-c-av { width: 24px; height: 24px; font-size: 10.5px; }
.br-c.is-ours .br-c-av { color: #04121d; background: var(--br-ice); }
.br-c-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; line-height: 1.4; color: var(--br-ink); }
.br-c-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.br-c-us { padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #04121d; background: var(--br-ice); }
.br-c-t { white-space: pre-wrap; overflow-wrap: anywhere; }
.br-c-gif { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px; padding: 5px 10px; border: 1px dashed #34486a; border-radius: 10px; font-size: 12px; color: var(--br-dim); }
.br-c-gif b { padding: 1px 6px; border-radius: 5px; font-size: 11px; color: var(--br-ink); background: #1f2a3d; }
.br-c-gif-l { color: var(--br-dim); }
.br-c-m { font-size: 11.5px; color: var(--br-mute); }
.br-cs-more { width: 100%; padding: 8px 12px; font: inherit; font-size: 12.5px; text-align: left; color: var(--br-dim); background: none; border: 0; border-top: 1px solid var(--br-line); cursor: pointer; }
.br-cs-more:hover:not(:disabled) { color: var(--br-ink); }
.br-msg-list { max-height: 340px; overflow-y: auto; }
.br-msg.is-failed { border-color: rgba(255, 138, 138, 0.5); }
.br-msg-q { display: block; margin-top: 4px; font-size: 11.5px; color: var(--br-mute); }
.br-msg.is-failed .br-msg-q { color: #ffc4c4; }
.br-reply { display: flex; flex-direction: column; gap: 8px; }
.br-reply-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; color: var(--br-dim); }
.br-reply-h .of-face { width: 22px; height: 22px; flex: none; }
.br-reply-l { flex: 1 1 12em; min-width: 0; }   /* beside her face; Ask moves under when there's no room */
.br-reply-ask { flex: none; white-space: nowrap; margin-left: auto; padding: 3px 10px; font: inherit; font-size: 12px; color: var(--br-dim); background: none; border: 1px solid #34486a; border-radius: 8px; cursor: pointer; }
.br-reply-ask:hover:not(:disabled) { color: var(--br-ink); border-color: var(--br-ice); }
.br-reply-ask:disabled { opacity: 0.5; cursor: default; }
.br-reply .br-reply-in { flex: none; width: 100%; box-sizing: border-box; min-height: 72px; max-height: 280px; }
.br-reply .br-reply-in.is-draft { border-color: rgba(255, 159, 203, 0.45); }
.br-chat-note.is-err { color: #ffc4c4; }
.br-chan { flex: none; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--br-soft); background: #16233a; }
.br-chan.is-email { color: #c5d2e2; }
.br-chan.is-instagram_dm, .br-chan.is-instagram_comment { color: #f0b7d8; background: #2a1a2a; }
.br-pill { flex: none; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--br-soft); border: 1px solid #34486a; }
.br-pill.is-ok { color: var(--br-ok); border-color: rgba(61, 255, 184, 0.45); }
.br-pill.is-ice { color: var(--br-ice-hi); border-color: #2f4a66; }
.br-empty { margin: 4px 0; font-size: 13px; color: var(--br-mute); }

/* the room */
.br-room {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr) 150px; grid-template-rows: auto auto; gap: 20px 22px; align-items: start;
  padding: 26px 24px 22px; border-radius: 20px; border: 1px solid var(--br-line);
  background: radial-gradient(1200px 500px at 50% 0%, #0f1c33 0%, var(--br-room) 60%, #08101c 100%);
}
.br-who { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 6px 4px 10px; border-radius: 16px; }
/* the face and name: a button, focus on this person's side */
.br-who-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px; color: inherit; text-align: inherit; background: none; border: 0; border-radius: 16px; cursor: pointer; }
.br-who-btn:hover .br-av { border-color: var(--br-ice); }
.br-who-btn:hover .br-name { color: var(--br-ice-hi); }
.br-who.is-on .br-av { border-color: var(--br-ice); box-shadow: 0 0 0 3px rgba(90, 200, 250, 0.22); }
.br-av { width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; background: var(--br-card); border: 2px solid #2a3b5c; overflow: hidden; }
.br-av-i { font-size: 44px; font-weight: 700; color: var(--br-dim); }
.br .of-face svg { width: 100%; height: 100%; }
.br-av .of-face { width: 100% !important; height: 100% !important; }
/* a face fills its frame, whatever size it was drawn at (its rim stays whole) */
.br-av-s .of-face, .br-doer-av .of-face, .br-choice-f .of-face, .br-chat-face .of-face { width: 100% !important; height: 100% !important; }
.br-name { font-size: 19px; margin-top: 6px; }

.br-side { display: flex; flex-direction: column; align-self: stretch; min-width: 0; border-radius: 16px; margin-bottom: 16px; }   /* stretch: both frames as tall; the margin: room above the table */
/* The slots' home: a framed tray. The room stays the height of the screen and
   the slots scroll inside the frame; where one is cut off it fades into the
   frame (is-above / is-below, set by trayEdges) instead of into thin air. */
.br-tray { --tray: #0a1322; position: relative; flex: 1 1 auto; border-radius: 16px; background: var(--tray); border: 1px solid #22314e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 10px 26px -14px rgba(0, 0, 0, 0.7); }
.br-tray::before, .br-tray::after { content: ''; position: absolute; left: 1px; right: 1px; z-index: 2; height: 38px; pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.br-tray::before { top: 0; border-radius: 15px 15px 0 0; background: linear-gradient(var(--tray) 10%, rgba(10, 19, 34, 0)); }
.br-tray::after { bottom: 0; border-radius: 0 0 15px 15px; background: linear-gradient(rgba(10, 19, 34, 0), var(--tray) 90%); }
.br-tray.is-above::before, .br-tray.is-below::after { opacity: 1; }
/* The slots are rows now: the frame is as long as they are (an open
   slot's chat makes it longer), so nothing scrolls inside it. */
.br-scroll {
  box-sizing: border-box; padding: 12px; border-radius: 15px; scrollbar-width: thin; scrollbar-color: #2a3b5c transparent;
}
.br-who.is-left { grid-column: 1; grid-row: 1; }
.br-side.is-left { grid-column: 2; grid-row: 1; }
.br-side.is-right { grid-column: 3; grid-row: 1; }
.br-who.is-right { grid-column: 4; grid-row: 1; }
.br-table { grid-column: 1 / -1; grid-row: 2; }
.br-slots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

/* a slot */
.br-slot { position: relative; border-radius: 14px; background: rgba(90, 200, 250, 0.045); border: 1px solid rgba(90, 200, 250, 0.26); overflow: hidden; --c: var(--br-ice); }
.br-slot::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
/* the agents' blue; yellow: it needs you; grey: waiting on someone outside */
.br-slot.is-att { --c: #ffc24d; background: rgba(255, 194, 77, 0.1); border-color: rgba(255, 194, 77, 0.6); box-shadow: 0 0 18px -6px rgba(255, 194, 77, 0.55); }
.br-slot.is-wait { --c: #6d7d96; background: transparent; border-color: #22314e; }
.br-av-s { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #16233a; }
.br-av-s .of-face, .br-av-s .br-ag-i { width: 28px; height: 28px; border: 0; }
.br-slot.is-work .br-av-s { box-shadow: 0 0 0 2px var(--br-ice); }
.br-an { flex: none; width: 112px; font-size: 12px; font-weight: 600; color: #7f93b3; }
.br-h { flex: none; font-size: 12px; font-weight: 700; color: var(--c); }
.br-slot.is-wait .br-h, .br-slot.is-work .br-h, .br-slot:not(.is-att) .br-h { font-weight: 600; color: #8a9bb5; }
.br-slot:hover, .br-slot:focus-within, .br-slot.is-open { border-color: var(--c); }
.br-slot.is-busy { opacity: 0.55; }
.br-slot.is-dragging { opacity: 0.4; }
.br-open {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; box-sizing: border-box; padding: 9px 14px 9px 16px; text-align: left; cursor: pointer;
  color: inherit; background: none; border: 0; border-radius: 14px;
}
.br-open:disabled { cursor: default; }
.br-open:focus-visible { outline-offset: -3px; }
.br-s { flex: none; width: 168px; display: flex; align-items: center; gap: 6px; line-height: 1.2; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); }
.br-s::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.br-slot.is-wait .br-s { color: var(--br-soft); }
.br-new { width: 7px; height: 7px; border-radius: 50%; background: var(--br-ice-hi); box-shadow: 0 0 0 3px rgba(127, 219, 255, 0.18); margin-left: auto; }
.br-t { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 650; line-height: 1.3; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* renaming a card in its row */
.br-open.is-rename { cursor: default; flex-wrap: wrap; row-gap: 4px; }
.br-rename { flex: 1; min-width: 0; box-sizing: border-box; padding: 5px 8px; font: inherit; font-size: 14.5px; font-weight: 650; color: var(--br-ink); background: var(--br-bg); border: 1px solid var(--br-ice); border-radius: 8px; }
.br-rename:focus { outline: none; }
.br-rename-h { flex-basis: 100%; padding-left: 164px; font-size: 11px; color: var(--br-mute); }
/* Save and Cancel, for a phone (no Enter or Esc to hand); hidden with a mouse */
.br-rename-b { display: none; gap: 8px; flex-basis: 100%; }
/* the open slot and its chat, one piece: the row's colour goes on round the chat */
.br-slot.is-open { border-color: var(--c); border-bottom-color: transparent; border-radius: 14px 14px 0 0; z-index: 1; }
.br-open.is-on { cursor: default; padding-right: 48px; }
.br-who-s { flex: none; display: flex; align-items: center; gap: 12px; padding: 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; border-radius: 999px; cursor: pointer; }
.br-who-s:hover .br-an, .br-who-s[aria-expanded="true"] .br-an { color: var(--br-ink); text-decoration: underline; text-underline-offset: 3px; }
.br-who-s:disabled { cursor: default; }
.br-row-x { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; color: var(--br-dim); background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.br-row-x:hover { color: var(--br-ink); border-color: var(--br-line-2); }
.br-slot.is-open .br-t { -webkit-line-clamp: unset; }
.br-inline { --c: var(--br-ice); display: flex; flex-direction: column; gap: 10px; margin-top: -9px; padding: 12px; border: 1px solid var(--c); border-top: 0; border-radius: 0 0 14px 14px; background: var(--br-bg); }
.br-inline.is-att { --c: #ffc24d; }
.br-inline.is-wait { --c: #6d7d96; }
.br-inline .br-doers { margin: 2px 0 0; }
.br-inline .br-doer-av, .br-inline .br-doer-av .of-face, .br-inline .br-doer-av .br-ag-i { width: 34px; height: 34px; }
.br-inline .br-doer-s:empty { display: none; }
.br-inline .br-chat { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; background: none; }
.br-chat-top { display: flex; align-items: center; gap: 8px; }
.br-chat-x { margin-left: auto; width: 28px; height: 28px; color: var(--br-dim); background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.br-chat-x:hover { color: var(--br-ink); border-color: var(--br-line-2); }
.br-inline .br-chat-list { max-height: min(420px, 55vh); overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 2px 4px; }
.br-inline .br-msg.is-steps .br-p-steps { margin: 2px 0 0; font-size: 13.5px; }
.br-inline .br-chat-work { padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.br-inline .br-chat-work-t { flex: 1 1 200px; }
.br-inline .br-chat-work-h { display: none; }
.br-inline .br-chat-row { position: relative; display: block; }
.br-inline .br-chat-in { display: block; width: 100%; min-height: 44px; max-height: 240px; resize: none; padding: 11px 76px 11px 12px; background: var(--br-bg); border-color: #2a3b5c; }
.br-inline .br-chat-send { position: absolute; right: 6px; bottom: 6px; padding: 7px 14px; font-size: 13.5px; }
/* a message's reply box is no card chat: its buttons sit under it, not inside */
.br-inline .br-reply-in { padding-right: 12px; max-height: 280px; }
.br-inline .br-p-acts.is-card { flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.br-inline .br-p-acts.is-card .br-btn { width: auto; padding: 8px 14px; font-size: 14px; }
.br-ag-i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--br-card); background: #16233a; overflow: hidden; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--br-soft); }

/* a free slot */
.br-free { height: 44px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 14px; border: 1.5px dashed #2a3b5c; color: #5d7090; font-size: 12.5px; background: transparent; }
.br-free.is-btn { cursor: pointer; width: 100%; }
.br-free:disabled { cursor: default; opacity: 0.6; }
.br-free.is-btn:hover { color: var(--br-ice); border-color: var(--br-ice); }

.br-more { align-self: flex-start; margin-top: 8px; padding: 4px 9px; font-size: 12px; color: var(--br-soft); background: none; border: 1px solid #263753; border-radius: 8px; cursor: pointer; }
.br-more:hover { border-color: var(--br-ice); }

/* the table */
.br-table { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 18px; background: #0c1626; border: 1px solid #22314e; }
.br-table h2 { flex-basis: 100%; margin: 0; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--br-dim); }
/* the table as a sorting desk: a head, category filters, lanes of items */
.br-desk-h { flex-basis: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.br-desk-h h2 { flex-basis: auto; margin: 0; }
.br-desk-n { font-size: 12.5px; color: var(--br-dim); }
.br-desk-sorter { margin-left: auto; font-size: 12px; color: var(--br-mute); }
.br-desk-ceo { flex-basis: 100%; margin: 4px 0 0; font-size: 12.5px; color: var(--br-dim); }
.br-desk-link { padding: 0; font: inherit; color: var(--br-soft); background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.br-desk-link:hover { color: var(--br-ice-hi); }

/* drag and drop: where a card can go lights up */
.br-dragging .br-who, .br-dragging .br-side, .br-dragging .br-table, .br-dragging .br-agent.is-drop { transition: box-shadow 0.12s, background 0.12s; }
.br .is-over { box-shadow: 0 0 0 2px var(--br-ice); background: rgba(90, 200, 250, 0.06); }
.br [draggable="true"] { cursor: grab; }

/* the table: each one's next under their side, Needs an owner at the bottom
   (things come in there and move up into the slots) */
.br-next { flex-basis: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.br-next-col, .br-needs { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.br-next h3, .br-needs h3 { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--br-dim); }
.br-next h3 span, .br-needs h3 span { font-weight: 600; letter-spacing: 0; color: var(--br-mute); }
.br-needs { flex-basis: 100%; box-sizing: border-box; margin-top: 8px; padding: 12px 12px 8px; border-radius: 14px; border: 1px solid rgba(255, 194, 77, 0.35); background: rgba(255, 194, 77, 0.04); }
.br-needs h3 { color: #ffc24d; }
.br-next-empty { margin: 0; padding: 8px 2px; font-size: 12.5px; color: var(--br-mute); }
.br-trow { --c: var(--br-ice); position: relative; border-radius: 12px; background: rgba(255, 255, 255, 0.015); border: 1px solid #1e2d45; }
.br-trow:hover { border-color: #34486a; }
.br-trow.is-att { --c: #ffc24d; background: rgba(255, 194, 77, 0.08); border-color: rgba(255, 194, 77, 0.5); }
.br-trow.is-att:hover { border-color: #ffc24d; }
.br-trow.is-busy { opacity: 0.55; }
.br-trow.is-dragging { opacity: 0.4; }
.br-trow-open { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; box-sizing: border-box; padding: 7px 14px; text-align: left; font: inherit; color: inherit; text-decoration: none; background: none; border: 0; border-radius: 12px; cursor: pointer; }
div.br-trow-open { cursor: default; padding-right: 48px; }
.br-trow .br-t { font-size: 14px; font-weight: 600; color: #dfe7f3; }
.br-kind { flex: none; width: 92px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--t, #7f93b3); }
.br-kind.is-bug { --t: #ff8a8a; } .br-kind.is-website { --t: #5ac8fa; } .br-kind.is-plugin { --t: #e0a070; } .br-kind.is-marketing { --t: #ff9fcb; }
.br-kind.is-customers { --t: #3ddc97; } .br-kind.is-decision { --t: #ffc24d; } .br-kind.is-money { --t: #7fd8c9; } .br-kind.is-idea { --t: #cdbeff; } .br-kind.is-waiting { --t: #8a9bb5; }
.br-urg { flex: none; font-size: 11.5px; font-weight: 700; color: #ff9d7a; }
.br-age { flex: none; width: 56px; text-align: right; font-size: 11.5px; color: var(--br-mute); }
.br-trow.is-open { z-index: 1; border-color: var(--c); border-bottom-color: transparent; border-radius: 12px 12px 0 0; }
.br-trow.is-open .br-t { -webkit-line-clamp: unset; }
.br-trow.is-open + .br-inline { margin-top: -7px; }
/* who takes it */
.br-choose-q { margin: 0; font-size: 13px; color: #c9d6ea; }
.br-choose-row { display: flex; flex-wrap: wrap; gap: 8px; }
.br-choice { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; font: inherit; font-size: 13px; font-weight: 600; color: var(--br-ink); background: none; border: 1px solid #2a3b5c; border-radius: 999px; cursor: pointer; }
.br-choice:hover:not(:disabled) { border-color: var(--br-ice); }
.br-choice:disabled { opacity: 0.5; cursor: default; }
.br-choice.is-sug { border-color: #ffc24d; box-shadow: 0 0 0 1px rgba(255, 194, 77, 0.3); }
.br-choice.is-on { border-color: var(--br-ice); background: rgba(90, 200, 250, 0.1); }
.br-choice.is-ghost { padding: 6px 14px; border-style: dashed; color: var(--br-dim); }
.br-choice-f { width: 24px; height: 24px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #16233a; }
.br-choose-h { margin: 0; font-size: 11.5px; color: var(--br-mute); }

/* the hint under the room */
.br-key { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--br-dim); }

/* the strip */
.br-strip { margin-top: 16px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; }
.br-pc { padding: 12px 16px; border-radius: 14px; background: #0b1424; border: 1px solid #1c2b44; min-width: 0; }
.br-pc h3 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--br-mute); }
.br-pc-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.br-agent { display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 2px 6px 2px 2px; border-radius: 999px; }
.br-agent .of-face { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex: none; }
.br-agent b { font-weight: 650; }
.br-agent em { font-style: normal; color: var(--br-dim); }
.br-big { font-size: 20px; font-weight: 700; }
.br-big small { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--br-dim); }
.br-big.is-dim { font-size: 14px; font-weight: 500; color: var(--br-mute); }

/* the card's panel: a drawer on the right */
.br-panel {
  position: fixed; top: calc(var(--topbar-h, 0px) + 12px); right: 12px; bottom: 12px; z-index: 40; width: min(420px, calc(100vw - 24px)); overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 18px; border-radius: 16px; background: #0b1424; border: 1px solid #2a3b5c; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.br-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; color: var(--br-dim); background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.br-x:hover { color: var(--br-ink); border-color: var(--br-line-2); }
.br-p-k { margin: 0 40px 4px 0; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--br-ice); }
.br-p-k.is-doing { color: #cdbeff; }
.br-p-k.is-test { color: #ffc24d; }
.br-p-k.is-agent { color: var(--br-ice); }
.br-p-pick { margin-top: 4px; }
.br-p-pr { margin-top: 14px; text-decoration: none; }
.br-p-k.is-wait { color: var(--br-soft); }
.br-p-k.is-next { color: var(--br-dim); }
.br-p-t { margin: 0 0 4px; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.br-p-t:focus { outline: none; }
.br-p-lab { display: block; margin: 14px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--br-ice); }
.br-p-txt { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.br-p-txt.is-dim { margin-top: 10px; color: var(--br-dim); }
.br-p-steps { margin: 2px 0 0; padding-left: 22px; font-size: 14px; line-height: 1.6; }
.br-p-steps li { overflow-wrap: anywhere; }
.br-p-steps li::marker { color: var(--br-ice); font-weight: 700; }
/* what it's about, Done when */
.br-p-pts { margin: 6px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.br-p-pts li { overflow-wrap: anywhere; margin-top: 3px; }
.br-p-pts li::marker { color: var(--br-dim); }
.br-p-done { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--br-soft); overflow-wrap: anywhere; }
.br-p-done b { color: var(--br-ink); font-weight: 650; }
/* a section that folds: the label, a hint at the right, a chevron */
.br-fold {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 11px 0; font: inherit; text-align: left; cursor: pointer;
  color: var(--br-ink); background: none; border: 0; border-top: 1px solid #1c2b44;
}
.br-fold-l { flex: 1; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--br-ice); }
.br-fold-h { font-size: 12.5px; color: var(--br-mute); }
.br-fold::after { content: ''; width: 7px; height: 7px; margin: 0 4px 3px 2px; border-right: 2px solid var(--br-dim); border-bottom: 2px solid var(--br-dim); transform: rotate(45deg); transition: transform 0.15s; }
.br-fold.is-on::after { transform: rotate(-135deg); margin-bottom: -3px; }
.br-fold:hover .br-fold-l { color: var(--br-ice-hi); }
.br-fold-in { padding: 0 0 6px; }
.br-p-lab.is-sec { margin-top: 10px; padding-top: 11px; border-top: 1px solid #1c2b44; }
/* a card's chat: the agent's face, the messages, the box */
.br-chat { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #1c2b44; }
/* The card's panel: the top stays put (it scrolls on its own only when it is
   very tall); the chat is one tall box under it, the messages scrolling
   inside it and the writing field at its foot. */
/* only as tall as it needs to be, up to the screen's height */
.br-panel.is-card { overflow: hidden; gap: 0; padding-bottom: 14px; bottom: auto; max-height: calc(100vh - var(--topbar-h, 0px) - 24px); }
.br-panel.is-card .br-p-top { flex: 0 0 auto; min-height: 0; max-height: 40vh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; padding: 0 6px 2px; }
.br-panel.is-card .br-p-t { font-size: 18px; }
.br-panel.is-card .br-doers { margin: 6px -6px 0; }
.br-panel.is-card .br-doer { padding: 4px 0 3px; gap: 3px; }
.br-panel.is-card .br-doer-av, .br-panel.is-card .br-doer-av .of-face, .br-panel.is-card .br-doer-av .br-ag-i { width: 34px; height: 34px; }
.br-panel.is-card .br-doer-s:empty { display: none; }
.br-panel.is-card .br-fold { margin-top: 4px; padding: 8px 0; }
.br-panel.is-card .br-p-acts.is-card { flex: none; flex-direction: row; flex-wrap: wrap; margin-top: 10px; padding-top: 0; border-top: 0; }
.br-panel.is-card .br-p-acts.is-card .br-btn { width: auto; padding: 8px 14px; font-size: 14px; }
.br-panel.is-card .br-p-pr { align-self: flex-start; width: auto; padding: 8px 14px; font-size: 14px; }
/* the chat: one box, at least half the panel; the messages scroll in it */
/* the chat: one box in the writing field's colour; it grows with the talk, then its messages scroll */
.br-panel.is-card .br-chat { flex: 0 1 auto; min-height: 0; margin-top: 12px; padding: 10px; gap: 8px; border: 1px solid #22314e; border-radius: 14px; background: var(--br-bg); overflow: hidden; }
.br-panel.is-card .br-chat-h { font-size: 13.5px; }
.br-chat-who { font-size: 12.5px; font-weight: 600; color: var(--br-dim); }
.br-chat-h.is-btn { align-self: flex-start; padding: 2px 8px 2px 2px; font: inherit; color: inherit; background: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer; }
.br-chat-h.is-btn:hover { border-color: var(--br-line-2); }
.br-chat-h.is-btn:hover .br-chat-who, .br-chat-h.is-btn[aria-expanded="true"] .br-chat-who { color: var(--br-ink); }
.br-panel.is-card .br-chat-list { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 2px 4px; }
.br-panel.is-card .br-chat-work { padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.br-panel.is-card .br-chat-work-t { flex: 1 1 200px; }
.br-panel.is-card .br-chat-work-h { display: none; }
/* the writing field: one line that grows as you write, Send at its right end */
.br-panel.is-card .br-chat-row { position: relative; display: block; flex: none; }
.br-panel.is-card .br-chat-in { display: block; width: 100%; min-height: 44px; max-height: 240px; resize: none; padding: 11px 76px 11px 12px; background: var(--br-bg); border-color: #2a3b5c; }
.br-panel.is-card .br-chat-send { position: absolute; right: 6px; bottom: 6px; padding: 7px 14px; font-size: 13.5px; }
.br-chat-h { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.br-chat-face { width: 30px; height: 30px; flex: none; border-radius: 50%; overflow: hidden; background: #16233a; display: grid; place-items: center; }
.br-chat-face .of-face { width: 30px; height: 30px; }
.br-chat-list { display: flex; flex-direction: column; gap: 8px; }
.br-chat-empty { margin: 0; font-size: 13px; color: var(--br-dim); }
.br-msg { align-self: flex-start; max-width: 88%; padding: 8px 11px 9px; border-radius: 12px 12px 12px 4px; background: #111d31; border: 1px solid #1e2d47; }
.br-msg.is-mine { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: #15304b; border-color: #24496d; }
.br-msg-w { display: block; margin-bottom: 3px; font-size: 11px; color: var(--br-mute); }
.br-msg-t { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.br-msg-t.is-rich { white-space: normal; }
.br-msg-tool { display: block; margin-top: 4px; font-size: 11.5px; color: var(--br-ice); }
.br-msg-tool:empty { display: none; }
.br-msg.is-live .br-msg-t::after { content: '▍'; margin-left: 1px; color: var(--br-ice); animation: br-caret 1s steps(2) infinite; }
@keyframes br-caret { 50% { opacity: 0; } }
.br-chat-err { margin: 0; font-size: 12.5px; line-height: 1.4; color: #ffc4c4; }
.br-chat-note { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--br-dim); }
/* the Engineer's changes on the card, waiting to be sent for review */
.br-chat-work { padding: 10px 12px; border-radius: 12px; background: rgba(255, 194, 77, 0.07); border: 1px solid rgba(255, 194, 77, 0.35); }
.br-chat-work.is-sent { font-size: 13px; background: rgba(61, 220, 151, 0.07); border-color: rgba(61, 220, 151, 0.35); }
.br-chat-work-t { margin: 0; font-size: 13.5px; font-weight: 650; overflow-wrap: anywhere; }
.br-chat-work-h { margin: 3px 0 8px; font-size: 12px; color: var(--br-dim); }
.br-chat-work-b { display: flex; flex-wrap: wrap; gap: 8px; }
/* the Archivist's plan for the shared Dropbox, under his message */
.br-plan { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 194, 77, 0.07); border: 1px solid rgba(255, 194, 77, 0.35); }
.br-plan.is-done { background: rgba(61, 220, 151, 0.07); border-color: rgba(61, 220, 151, 0.35); }
.br-plan-t { margin: 0 0 6px; font-size: 13.5px; font-weight: 650; }
.br-plan-l { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; }
.br-plan-i { display: grid; gap: 1px; min-width: 0; }
.br-plan-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 13px; overflow-wrap: anywhere; cursor: pointer; }
.br-plan-cb { margin: 0 2px 0 0; align-self: center; }
.br-plan-to { color: var(--br-dim); }
.br-plan-why, .br-plan-h { margin: 0; font-size: 12px; color: var(--br-dim); overflow-wrap: anywhere; }
.br-plan-i .br-plan-why { padding-left: 22px; }
.br-plan-h { margin-top: 6px; }
.br-plan-done { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.br-btn.is-sure { color: #ffc4c4; border-color: var(--br-red); }
.br-chat-row { display: flex; align-items: flex-end; gap: 8px; }
.br-chat-in {
  flex: 1; box-sizing: border-box; min-height: 46px; max-height: 180px; resize: vertical; padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.4;
  color: var(--br-ink); background: var(--br-bg); border: 1px solid #2f4366; border-radius: 10px;
}
.br-chat-in:focus { outline: none; border-color: var(--br-ice); }
.br-chat-in:disabled { opacity: 0.5; }
.br-chat-send { padding: 11px 15px; font: inherit; font-size: 14px; font-weight: 700; color: #06231a; background: var(--br-ok); border: 0; border-radius: 10px; cursor: pointer; }
.br-chat-send:disabled { opacity: 0.4; cursor: default; }
/* who does it: every agent's face; the doer lit, the suggestion outlined */
.br-doers { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; margin: 12px -6px 2px; }
.br-doer { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 7px 0 6px; font: inherit; color: var(--br-soft); background: none; border: 1px solid transparent; border-radius: 12px; cursor: pointer; }
.br-doer:hover:not(:disabled) { border-color: var(--br-line-2); color: var(--br-ink); }
.br-doer:disabled { cursor: default; }
.br-doer-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #16233a; border: 2px solid transparent; }
.br-doer-av .of-face { width: 40px; height: 40px; }
.br-doer-av .br-ag-i { width: 40px; height: 40px; font-size: 15px; border: 0; }
.br-doer-n { max-width: 100%; font-size: 10.5px; font-weight: 600; line-height: 1.2; text-align: center; }
.br-doer-s { min-height: 13px; font-size: 10px; color: var(--br-mute); white-space: nowrap; }
.br-doer.is-on { color: var(--br-ink); background: rgba(90, 200, 250, 0.08); border-color: var(--br-ice); }
.br-doer.is-on .br-doer-av { border-color: var(--br-ice); }
.br-doer.is-on .br-doer-s { color: var(--br-ice); font-weight: 600; }
.br-doer.is-sug .br-doer-av { border-style: dashed; border-color: var(--br-ice); }
.br-doer.is-later .br-doer-av { opacity: 0.5; }
.br-link { color: var(--br-ice-hi); text-decoration: underline; text-underline-offset: 2px; }
.br-p-gh { align-self: flex-start; margin-top: 14px; font-size: 12.5px; }
.br-p-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.br-p-acts.is-card { margin-top: 20px; padding-top: 16px; border-top: 1px solid #1c2b44; }
.br-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 14px; font-size: 15px; font-weight: 700; cursor: pointer;
  color: var(--br-ink); background: transparent; border: 1px solid #34486a; border-radius: 10px;
}
.br-btn:hover:not(:disabled) { border-color: var(--br-ice); }
.br-btn:disabled { opacity: 0.5; cursor: default; }
.br-btn.is-yes { color: #06231a; background: var(--br-ok); border-color: var(--br-ok); }
.br-btn.is-no { color: #ffc4c4; background: rgba(255, 138, 138, 0.1); border-color: var(--br-red); }
.br-btn.is-wait { color: var(--br-ink); background: #1a2539; border-color: var(--br-grey); }
.br-btn.is-ghost { color: var(--br-soft); font-weight: 600; }
.br-btn.is-small { width: auto; padding: 7px 12px; font-size: 13.5px; }
.br-in { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--br-ink); background: var(--br-bg); border: 1px solid #2f4366; border-radius: 10px; }
.br-in.is-area { min-height: 96px; resize: vertical; }
.br-p-hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--br-dim); }
.br-p-hint.is-warn { color: #ffc4c4; }

/* a new card: who's on it, then a row of choices per question */
.br-tag { padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--br-soft); background: none; border: 1px solid #34486a; border-radius: 9px; cursor: pointer; }
.br-tag:hover { border-color: var(--br-ice); }
.br-tag.is-on { color: #04121d; background: var(--br-ice); border-color: var(--br-ice); }
.br-tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* a new card, where "+ Add slot" was (like a slot's chat) */
.br-add { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border: 1px solid var(--br-ice); border-radius: 14px; background: var(--br-bg); }
.br-add-h { display: flex; align-items: center; justify-content: space-between; min-height: 24px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--br-ice); }
.br-add-h .br-row-x { position: static; }
.br-add .br-p-lab { margin: 4px 0 -2px; }
.br-add .br-p-hint { margin: -4px 0 0; }
.br-add-t { font-size: 15px; font-weight: 600; }
.br-add-d { min-height: 84px; line-height: 1.45; }
.br-add .br-doers { margin: 0; }
.br-add-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.br-add-acts .br-btn { width: auto; padding: 9px 20px; font-size: 14px; white-space: nowrap; }
.br-add .br-doer-av, .br-add .br-doer-av .br-ag-i { width: 34px; height: 34px; }
.br-when { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.br-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; font: inherit; text-align: left; color: var(--br-soft); background: none; border: 1px solid #34486a; border-radius: 10px; cursor: pointer; }
.br-opt b { font-size: 13.5px; font-weight: 700; }
.br-opt span { font-size: 11.5px; color: var(--br-mute); }
.br-opt:hover { border-color: var(--br-ice); }
.br-opt.is-on { color: var(--br-ink); border-color: var(--br-ice); background: rgba(90, 200, 250, 0.1); }
.br-opt.is-on span { color: #a9dcf5; }

/* the toast, with Undo */
.br-toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--tabbar-h, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 50; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box;
  padding: 10px 12px 10px 16px; border-radius: 12px; background: #13213a; border: 1px solid #2f4a66; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); font-size: 14px;
}
.br-toast.is-warn { border-color: var(--br-red); }
.br-undo { flex: none; padding: 5px 10px; font-size: 13px; font-weight: 700; color: var(--br-ice); background: none; border: 1px solid #2f4a66; border-radius: 8px; cursor: pointer; }

/* shortcuts */
.br-help {
  position: fixed; left: 50%; top: 50%; z-index: 60; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 32px));
  padding: 18px 20px; border-radius: 16px; background: #0b1424; border: 1px solid #2a3b5c; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}
.br-help h3 { margin: 0 0 10px; font-size: 16px; }
.br-help dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.br-help dt { font-weight: 700; color: var(--br-ice); white-space: nowrap; }
.br-help dd { margin: 0; color: var(--br-soft); }

/* The layout follows the Boardroom's own width, not the window's: in the
   admin the sidebar takes a few hundred pixels, so a wide window can still
   leave a narrow page. */
.br { container: br / inline-size; }

/* Under ~1400px the five columns squeeze the slots unreadable: each avatar
   moves on top of its person's slots (name, count and done beside it, Next
   up under it) and the table stays between them. */
@container br (max-width: 1400px) {
  .br-room { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 14px 20px; padding: 18px 16px; }
  .br-who.is-left { grid-column: 1; grid-row: 1; }
  .br-side.is-left { grid-column: 1; grid-row: 2; }
  .br-who.is-right { grid-column: 2; grid-row: 1; }
  .br-side.is-right { grid-column: 2; grid-row: 2; }
  .br-table { grid-column: 1 / -1; grid-row: 3; }
  .br-t { font-size: 14px; }
  .br-who { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 12px; text-align: left; padding: 0; }
  .br-who-btn { flex-direction: row; gap: 12px; padding: 2px 8px 2px 2px; }
  .br-who.is-right { flex-direction: row-reverse; text-align: right; }
  .br-who.is-right .br-who-btn { flex-direction: row-reverse; padding: 2px 2px 2px 8px; }
  .br-av { width: 60px; height: 60px; }
  .br-name { margin: 0; font-size: 17px; }
}
/* Focus on one person: their side takes nearly the whole room (slots four
   or more a row, a little taller), the table lies under their slots as a
   band, and the other person is only their face at the edge. More
   specific than the rules above, so it wins at any width but a phone's. */
@container br (min-width: 761px) {
  .br .br-room.is-focus { grid-template-rows: auto auto auto; }
  .br .br-room.is-focus-left { grid-template-columns: minmax(0, 1fr) 92px; }
  .br .br-room.is-focus-right { grid-template-columns: 92px minmax(0, 1fr); }
  .br .br-room.is-focus .br-who:not(.is-slim) { grid-row: 1; }
  .br .br-room.is-focus .br-side { grid-row: 2; }
  .br .br-room.is-focus .br-table { grid-row: 3; }
  .br .br-room.is-focus-left .br-who:not(.is-slim), .br .br-room.is-focus-left .br-side, .br .br-room.is-focus-left .br-table { grid-column: 1; }
  .br .br-room.is-focus-right .br-who:not(.is-slim), .br .br-room.is-focus-right .br-side, .br .br-room.is-focus-right .br-table { grid-column: 2; }
  .br .br-room.is-focus-left .br-who.is-slim { grid-column: 2; grid-row: 1 / -1; }
  .br .br-room.is-focus-right .br-who.is-slim { grid-column: 1; grid-row: 1 / -1; }
  .br .br-room.is-focus .br-who:not(.is-slim) { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 12px; text-align: left; padding: 0; }
  .br .br-room.is-focus .br-who:not(.is-slim) .br-who-btn { flex-direction: row; gap: 12px; padding: 2px 8px 2px 2px; }
  .br .br-room.is-focus-right .br-who:not(.is-slim), .br .br-room.is-focus-right .br-who:not(.is-slim) .br-who-btn { flex-direction: row-reverse; text-align: right; }
  .br .br-room.is-focus .br-who:not(.is-slim) .br-av { width: 60px; height: 60px; }
  .br .br-room.is-focus .br-who:not(.is-slim) .br-name { margin: 0; font-size: 17px; }
  .br .br-room.is-focus .br-who.is-slim { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 4px 0; }
  .br .br-room.is-focus .br-who.is-slim .br-who-btn { flex-direction: column; gap: 6px; padding: 4px; }
  .br .br-room.is-focus .br-who.is-slim .br-av { width: 68px; height: 68px; opacity: 0.85; }
  .br .br-room.is-focus .br-who.is-slim .br-name { margin: 0; font-size: 13px; }
  .br .br-room.is-focus .br-t { font-size: 15px; }
}
.br-both { padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--br-ice); background: none; border: 1px solid #2f4a66; border-radius: 8px; cursor: pointer; }
.br-both:hover { border-color: var(--br-ice); }
/* A phone, or a very narrow page: everything in one column. */
@container br (max-width: 760px) {
  .br-room { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: 14px 10px; }
  .br-who.is-left, .br-side.is-left, .br-table, .br-who.is-right, .br-side.is-right { grid-column: 1; grid-row: auto; }
  .br-who.is-left { order: 1; } .br-side.is-left { order: 2; } .br-who.is-right { order: 3; } .br-side.is-right { order: 4; } .br-table { order: 5; }
  .br-av { width: 52px; height: 52px; }
  .br-who.is-right, .br-who.is-right .br-who-btn { flex-direction: row; text-align: left; }
  .br-strip { grid-template-columns: minmax(0, 1fr); }
  .br-an { display: none; }
  .br-next { grid-template-columns: minmax(0, 1fr); }
  .br-kind { width: auto; }
  .br-age { display: none; }
  .br-t { display: block; -webkit-line-clamp: unset; }
  .br-rename-h { padding-left: 0; }
  .br-scroll { height: auto; overflow: visible; padding: 0; }
  .br-side { margin-bottom: 8px; }
  /* one frame, not six: the room and the slots' tray lose theirs */
  .br-room { padding: 0; border: 0; background: none; }
  .br-tray { border: 0; background: none; box-shadow: none; }
  .br-tray::before, .br-tray::after { display: none; }
  .br-table { padding: 10px; }
  .br-needs { padding: 10px 8px 6px; }
  /* a table row: the kind and when on top, the title under them, full width */
  .br-trow-open { flex-wrap: wrap; column-gap: 8px; row-gap: 2px; padding: 8px 12px; }
  div.br-trow-open { padding-right: 48px; }
  .br-trow .br-t { order: 3; flex: 1 0 100%; overflow: visible; overflow-wrap: anywhere; }
  .br-urg { margin-left: auto; }
  /* a slot: what it needs goes under the title instead of squeezing it */
  .br-s { width: auto; }
  .br-open { flex-wrap: wrap; row-gap: 2px; }
  .br-open .br-t { overflow: visible; overflow-wrap: anywhere; }
  .br-h { flex-basis: 100%; padding-left: 40px; }
  .br-open.is-on .br-h { padding-left: 52px; }   /* an open card's face is a 40px button */
}
@media (max-width: 720px) {
  .br { padding: 12px 8px 16px; border-radius: 14px; }
  .br-doers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .br-doer-n { overflow-wrap: anywhere; }
  .br-when { grid-template-columns: minmax(0, 1fr); }
  /* under 16px, iOS zooms the page in on every tap into a field */
  .br-chat-in, .br-in, .br-add-t, .br-rename { font-size: 16px; }
  /* a finger needs 44px */
  .br-tab, .br-choice, .br-tag, .br-back, .br-both, .br-undo, .br-more, .br-reply-ask, .br-cs-more { min-height: 44px; }
  .br-tab { min-width: 44px; justify-content: center; }
  .br-who-s { min-width: 40px; min-height: 40px; }
  .br-inline .br-chat-in, .br-panel.is-card .br-chat-in { min-height: 54px; }
  .br-inline .br-chat-send, .br-panel.is-card .br-chat-send { min-height: 42px; }
  .br-row-x, .br-x { width: 40px; height: 40px; }
  .br-row-x { top: 4px; right: 4px; }
  .br-list-foot, .br-post-l, .br-c-gif-l, .br-p-gh { display: inline-block; padding-block: 12px; }
  .br-add-acts .br-btn { flex: 1 1 auto; }
  /* a long thread is read with the page, not in a box of its own */
  .br-cs-list, .br-msg-list { max-height: none; }
  .br-inline .br-chat-list { overscroll-behavior: auto; }
}
/* no mouse: no dragging, no keyboard shortcuts */
@media (hover: none) {
  .br-choose-h, .br-keys, .br-rename-h { display: none; }
  .br-rename-b { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .br-dragging .br-who, .br-dragging .br-side, .br-dragging .br-table, .br-fold::after { transition: none; }
  .br-msg.is-live .br-msg-t::after { animation: none; }
}

/* One person across comments, DMs and email (personStrip): who else they are,
   her guesses to confirm, and "Same person as…". Small, under the title. */
.br-person { display: flex; flex-direction: column; gap: 6px; }
.br-person-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; }
.br-person-k { font-weight: 700; color: var(--br-dim); }
.br-person-l { color: var(--br-ice-hi); text-decoration: none; }
.br-person-l:hover { text-decoration: underline; text-underline-offset: 2px; }
.br-person-sug { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; font-size: 12.5px; color: var(--br-ink); background: rgba(90, 200, 250, 0.06); border: 1px dashed #34486a; border-radius: 10px; }
.br-person-st { flex: 1 1 220px; }
.br-person-b { flex: none; white-space: nowrap; align-self: flex-start; padding: 3px 10px; font: inherit; font-size: 12px; color: var(--br-dim); background: none; border: 1px solid #34486a; border-radius: 8px; cursor: pointer; }
.br-person-row .br-person-b, .br-person-sug .br-person-b, .br-person-hit .br-person-b { align-self: center; }
.br-person-b:hover:not(:disabled) { color: var(--br-ink); border-color: var(--br-ice); }
.br-person-b:disabled { opacity: 0.5; cursor: default; }
.br-person-b.is-yes { color: #06231a; font-weight: 700; background: var(--br-ok); border-color: var(--br-ok); }
.br-person-find { display: flex; flex-direction: column; gap: 6px; }
.br-person-in { flex: 1 1 200px; min-width: 0; box-sizing: border-box; padding: 6px 10px; font: inherit; font-size: 13px; color: var(--br-ink); background: var(--br-bg); border: 1px solid #2f4366; border-radius: 8px; }
.br-person-in:focus { outline: none; border-color: var(--br-ice); }
.br-person-hit { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #1c2b44; }
.br-person-ht { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.br-person-hl { font-size: 13px; font-weight: 600; color: var(--br-ink); overflow-wrap: anywhere; }
.br-person-hp { font-size: 12px; color: var(--br-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* lessons waiting for our Keep or Drop (#158): a way down to the Basement, yellow as anything that needs us */
.br-tab-lessons { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #1a1300; background: #ffc24d; text-decoration: none; }
.br-tab-lessons:hover { background: #ffd37a; }
@media (max-width: 760px) { .br-tab-lessons { min-height: 44px; display: inline-flex; align-items: center; } }

/* An agent's box over the Office (#168 part 4): her chat's shape in Messages (the
   name bar, then the messages, the writing box at the bottom), a little smaller and
   in smaller type, floating over the floor. company.js holds it (.co-agent-box). */
.co-agent-box { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(400px, calc(100vw - 40px)); height: min(600px, calc(100vh - 120px)); transition: opacity 0.18s ease; }
/* beside their figure (company.js places it): a pointer from the box to them, at their height */
.co-agent-box.is-moving { opacity: 0; pointer-events: none; }
.co-agent-box.is-beside::before { content: ''; position: absolute; z-index: 1; top: calc(var(--tail-y, 90px) - 11px); left: -10px; width: 20px; height: 20px; box-sizing: border-box;
  background: #060b14; border: 1px solid #263753; border-width: 0 0 1px 1px; transform: rotate(45deg); border-bottom-left-radius: 3px; }
.co-agent-box.is-beside.is-left::before { left: auto; right: -10px; border-width: 1px 1px 0 0; border-radius: 0 3px 0 0; }
.co-agent-box.is-far::before { display: none; }
@media (prefers-reduced-motion: reduce) { .co-agent-box { transition: none; } }
.br.br-box { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 0; border-radius: 16px; border-color: var(--br-line-2); overflow: hidden; font-size: 13.5px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.75); }
.br-box-h { flex: none; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 14px; background: var(--br-room); border-bottom: 1px solid var(--br-line); }
.br-box-who { font-size: 15px; }
.br-box-x { margin-left: auto; width: 40px; height: 40px; flex: none; color: var(--br-dim); background: none; border: 0; border-radius: 10px; font-size: 15px; cursor: pointer; }
.br-box-x:hover { color: var(--br-ink); background: var(--br-card); }
.br-box-tabs { flex: none; display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--br-line); }
.br-box-tab { flex: 1; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--br-dim); font: inherit; font-weight: 600; cursor: pointer; }
.br-box-tab:hover { color: var(--br-ink); }
.br-box-tab.is-on { color: var(--br-ink); background: var(--br-card); box-shadow: inset 0 -2px 0 var(--br-ice); }
.br-box-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.br-box-row { --c: var(--br-ice); position: relative; flex: none; display: flex; flex-direction: column; gap: 3px; width: 100%; box-sizing: border-box; padding: 10px 12px 10px 15px; text-align: left;
  color: var(--br-ink); background: var(--br-card); border: 1px solid var(--br-line); border-radius: 12px; font: inherit; cursor: pointer; }
.br-box-row::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.br-box-row.is-att { --c: #ffc24d; background: rgba(255, 194, 77, 0.1); border-color: rgba(255, 194, 77, 0.5); }
.br-box-row.is-wait { --c: #6d7d96; }
.br-box-row:hover { border-color: var(--c); }
.br-box-row:disabled { opacity: 0.55; cursor: default; }
.br-box-row-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-box-row-s { font-size: 12px; color: var(--br-dim); }
.br-box-empty, .br-box-hint { margin: 0; color: var(--br-dim); font-size: 13px; line-height: 1.45; }
.br-box-empty { padding: 6px 4px; }
/* The Plugin engineer's Orchestrating (Hans, 2026-11-07; the hand-off's section 5): Now, Up next, Done today. Its colours
   are its own variables, dark here; light under [data-theme="light"] for when the box gets a light mode. Copper is the plugin team's. */
.br-pl { --pl-card: #171d29; --pl-text: #e8edf5; --pl-dim: #a3afc2; --pl-line: #252d3c; --pl-left: #3a4558; --pl-copper: #e0955c; --pl-copper-text: #f0b386;
  --pl-ok: #5fc48a; --pl-red: #f07a72; --pl-grey: #8a95a6; gap: 0; padding: 4px 14px 16px; }
.br-pl[data-theme="light"], [data-theme="light"] .br-pl { --pl-card: #f4f6f9; --pl-text: #142030; --pl-dim: #5b6b7d; --pl-line: #e1e6ee; --pl-left: #c7ced9;
  --pl-copper-text: #9a5a26; --pl-ok: #2f7d4f; --pl-red: #b8443c; --pl-grey: #7a8494; }
.br-pl-h { flex: none; margin: 14px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--pl-dim); }
.br-pl-now { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: var(--pl-card); color: var(--pl-text); }
.br-pl-now.is-idle { gap: 4px; }
.br-pl-now-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.br-pl-num { padding: 0; border: 0; background: none; color: var(--pl-copper-text); font: inherit; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; }
.br-pl-num:disabled { cursor: default; }
.br-pl-chip { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--pl-text);
  box-shadow: inset 0 0 0 1px var(--pl-line); white-space: nowrap; }
.br-pl-now-t { font-size: 16px; font-weight: 700; line-height: 1.3; }
.br-pl-step { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.br-pl-step b { color: var(--pl-copper-text); }
.br-pl-step.is-held b { color: #f2c661; }
.br-pl-ring { flex: none; position: relative; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--pl-copper); }
.br-pl-ring::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--pl-copper); }
.br-pl-step.is-held .br-pl-ring { box-shadow: inset 0 0 0 2.5px #f2c661; }
.br-pl-step.is-held .br-pl-ring::after { background: #f2c661; }
.br-pl-doing, .br-pl-dim { font-size: 13.5px; font-weight: 600; color: var(--pl-dim); }
.br-pl-bar { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 4px; }
.br-pl-bar i { height: 8px; border-radius: 4px; background: var(--pl-left); }
.br-pl-bar i.is-done { background: var(--pl-copper); }
.br-pl-bar i.is-now { background: transparent; box-shadow: inset 0 0 0 2px var(--pl-copper); }
.br-pl-legend { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--pl-dim); }
.br-pl-steps { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 4px 12px; font-size: 13px; }
.br-pl-steps li { display: flex; align-items: center; gap: 6px; color: var(--pl-dim); }
.br-pl-steps li::before { content: ''; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--pl-left); }
.br-pl-steps li.is-done::before { background: var(--pl-copper); box-shadow: none; }
.br-pl-steps li.is-now { color: var(--pl-text); font-weight: 700; }
.br-pl-steps li.is-now::before { box-shadow: inset 0 0 0 2px var(--pl-copper); }
.br-pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.br-pl-times { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--pl-line); font-size: 13px; color: var(--pl-dim); }
.br-pl-times b { color: var(--pl-text); }
.br-pl-also { font-size: 12.5px; color: var(--pl-dim); }
.br-pl-row { flex: none; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; min-height: 44px; width: 100%; box-sizing: border-box; padding: 6px 0;
  border: 0; border-bottom: 1px solid var(--pl-line); background: none; color: var(--pl-text); font: inherit; text-align: left; cursor: pointer; }
.br-pl-row:disabled { cursor: default; }
.br-pl-row:not(:disabled):hover .br-pl-row-t { color: #fff; }
.br-pl-row-t { min-width: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.br-pl-row-t b { margin-right: 2px; color: var(--pl-copper-text); }
.br-pl-row-t em { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: var(--pl-dim); }
.br-pl-n, .br-pl-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--pl-card); color: var(--pl-dim); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.br-pl-row.is-green .br-pl-mark { color: var(--pl-ok); }
.br-pl-row.is-red .br-pl-mark { color: var(--pl-red); }
.br-pl-pips { display: inline-flex; gap: 3px; }
.br-pl-pips i { width: 6px; height: 6px; border-radius: 50%; background: var(--pl-left); opacity: 0.6; }
.br-pl-pips i.is-done { background: var(--pl-copper); opacity: 1; }
.br-pl .br-box-hint { margin: 8px 0 0; font-size: 12px; }
/* the agent's Notebook (#176): its notes and casebook */
.br-brain-score { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(120, 200, 255, 0.08); color: var(--br-ink); font-size: 13px; font-weight: 600; }
.br-brain-h { margin: 10px 4px 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--br-dim); }
.br-brain-note { flex: none; display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; border-radius: 10px; background: var(--br-card); }
.br-brain-t { line-height: 1.4; overflow-wrap: anywhere; }
.br-brain-note .br-box-row-s { overflow-wrap: anywhere; }
.br-brain-case .br-box-row-t { white-space: normal; }
.br-brain-body { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--br-ink); }
.br-brain-line { margin: 0 0 4px; overflow-wrap: anywhere; }
.br-box-ask { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 12px; }
.br-box-ask .br-chat-row { position: relative; display: block; }
.br-box-ask .br-chat-in { display: block; width: 100%; box-sizing: border-box; min-height: 64px; max-height: 200px; resize: none; padding: 11px 76px 11px 12px; background: var(--br-bg); border-color: #2a3b5c; }
.br-box-ask .br-chat-send { position: absolute; right: 6px; bottom: 6px; padding: 7px 14px; font-size: 13.5px; }
/* the Receptionist's Chat tab: her own chat from Messages (company-messages.js herChat), in the box's colours */
.br-box-her { flex: 1 1 auto; min-height: 0; display: flex; }
.br-box-her > .mm.is-solo { flex: 1 1 auto; height: auto; margin: 0; border-radius: 0; font-size: 13.5px;
  --bg: var(--br-bg); --surface: var(--br-bg); --sec-her: var(--br-bg); --head-her: var(--br-room); --input-active: var(--br-bg);
  --text: var(--br-ink); --dim: var(--br-dim); --line: #2a3b5c; --line-soft: var(--br-line); --chip: var(--br-card);
  --her-bubble: #13233a; --mine: rgba(90, 200, 250, 0.16); --accent: var(--br-ice); --accent-ink: #04111d; --accent-text: var(--br-ice);
  --confirm-public: var(--br-red); --focus-ring: rgba(90, 200, 250, 0.22);
  --scroll-track: transparent; --scroll-thumb: #2a3b5c; --scroll-thumb-hover: #3d5580; }
.br-box-her .mm-her { flex: 1 1 auto; }
.br-box-her .mm-her-list { padding: 12px; gap: 8px; overscroll-behavior: contain; }
.br-box-her .mm-her-b { max-width: 88%; font-size: 13.5px; }
.br-box-her .mm-her-write { gap: 8px; padding: 10px 12px 12px; background: none; }
.br-box-her .mm-her-in { min-height: 64px; max-height: 200px; overflow-y: auto; padding: 11px 12px; font-size: 13.5px; }
.br-box-her .mm-her-go { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; }
.br-box-bar { flex: none; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border-bottom: 1px solid var(--br-line); }
.br-box-back { flex: none; padding: 6px 10px; color: var(--br-dim); background: none; border: 1px solid var(--br-line-2); border-radius: 9px; font: inherit; font-size: 12.5px; cursor: pointer; }
.br-box-back:hover { color: var(--br-ink); border-color: var(--br-ice); }
.br-box-task { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
/* a task's chat fills the rest of the box, its writing box at the bottom */
.br-box .br-inline { flex: 1 1 auto; min-height: 0; margin: 0; padding: 10px; border: 0; border-radius: 0; }
.br-box .br-inline .br-chat { flex: 1 1 auto; min-height: 0; }
.br-box .br-inline .br-chat-list { flex: 1 1 auto; min-height: 0; max-height: none; }
.br-box .br-msg-t { font-size: 13px; }
/* an agent's own chat: "Make it a task" under its writing box */
.br-box-mk { flex: none; align-self: flex-end; }
.br-box .br-toast { position: absolute; left: 10px; right: 10px; bottom: 10px; transform: none; width: auto; max-width: none; font-size: 13px; }
/* a phone: a sheet from the bottom, under the tabs */
@media (max-width: 600px) {
  .co-agent-box { left: 0; right: 0; bottom: calc(var(--tabbar-h, 0px) + env(safe-area-inset-bottom, 0px)); top: 56px; width: auto; height: auto; }   /* above the phone's tab bar */
  .br.br-box { border-radius: 16px 16px 0 0; }
}
