/* The broker card (public/js/brief.js) and Admin, Broker card (brief-admin.js).
   Pete, 4 Nov 2026. Compact on purpose: agents said ReplyCoach ate the screen, so
   this is one card with small padding. The phone rules are at the end of
   css/phone.css, which loads after this file. */

.bc-mount { margin: 0 0 12px; }
.bc-mount[hidden], .bc-compose[hidden] { display: none; }
.bc-card {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--blue);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 12px; font-size: 13px;
  display: flex; flex-direction: column; gap: 5px;
}
.bc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-title { font-size: 13px; }
.bc-rung { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.bc-steps { display: inline-flex; gap: 3px; }
.bc-steps i { width: 14px; height: 6px; border-radius: 3px; background: var(--border); }
.bc-steps i.on { background: var(--blue); }
.bc-rung-t { font-weight: 600; font-size: 12.5px; }
.bc-spacer { flex: 1; }
.bc-fold {
  border: 0; background: none; color: var(--blue); font-size: 12px; font-weight: 600; padding: 2px 6px; cursor: pointer;
}
.bc-k {
  display: inline-block; min-width: 62px; margin-right: 8px; color: var(--muted); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .03em; vertical-align: top;
}
.bc-v { display: inline; }
.bc-goal { font-size: 14px; font-weight: 600; }
.bc-goal .bc-v { font-weight: 600; }
.bc-dim { color: var(--muted); font-weight: 400; }
.bc-sit { font-size: 11.5px; color: var(--muted); }
.bc-line { font-size: 13px; }
.bc-stop { background: #fee2e2; color: #b91c1c; border-radius: 7px; padding: 6px 9px; font-weight: 600; }
.bc-warn { color: var(--amber); font-weight: 600; }
.bc-alert { background: #fef3c7; color: #92400e; border-radius: 7px; padding: 6px 9px; }
.bc-bits span + span::before { content: "\00b7"; margin: 0 6px; color: var(--muted); }
.bc-hot { color: var(--red); font-weight: 600; }
.bc-ob {
  display: inline-block; background: #eef2f7; border-radius: 999px; padding: 2px 9px; margin: 0 5px 3px 0;
  font-weight: 600; font-size: 12px; cursor: default;
}
.bc-ob i { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.bc-maybe { background: #eff6ff; border-radius: 7px; padding: 5px 9px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bc-evid { font-size: 12px; color: var(--muted); }
.bc-evid .bc-v { color: var(--muted); }
.bc-next ul { display: inline-block; margin: 0; padding-left: 18px; vertical-align: top; max-width: calc(100% - 80px); }
.bc-next li { margin: 1px 0; }
.bc-note { font-size: 12px; margin-top: 3px; }
.bc-tools { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.bc-tools .bc-v { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.bc-tool { font-size: 12px; padding: 3px 10px; }
.bc-link { font-size: 12px; font-weight: 600; margin-right: 8px; }
/* A website an admin linked on the situation: sits with the tool chips, and the arrow
   says it leaves the CRM. */
.bc-weblink { font-size: 12px; padding: 3px 10px; text-decoration: none; }
.bc-weblink::after { content: "\2197"; margin-left: 5px; font-size: 11px; }
.bc-cat-name { margin: 6px 0 4px; }
.bc-back { display: inline-block; }
.bc-also { font-size: 12px; color: var(--muted); }
.bc-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.bc-inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; }
.bc-inline input[type=text] { flex: 1 1 200px; min-width: 0; }
.bc-gold { border-top: 1px dashed var(--border); padding-top: 5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bc-saved { color: var(--green); }

/* The line above the reply box. One line, no box of its own to draw the eye. */
.bc-compose {
  font-size: 12.5px; font-weight: 600; color: #92400e; background: #fef3c7; border-radius: 7px;
  padding: 5px 9px; margin-bottom: 6px;
}
.bc-mount.bc-in { margin: 0 0 6px; }
.bc-mount.bc-in .bc-card { box-shadow: none; padding: 6px 10px; }

/* I'm stuck, and the read-only playbook. */
.bc-stuck { display: flex; flex-direction: column; gap: 12px; }
.bc-q { font-weight: 700; font-size: 14px; }
.bc-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-catstep { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bc-catstep .bc-back { align-self: flex-start; }
.bc-catstep .bc-hit { width: 100%; }
.bc-big { padding: 9px 14px; font-weight: 600; }
.bc-find .bc-inline { margin-top: 5px; }
.bc-hits { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.bc-hit {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 1px;
  border: 1px solid var(--border); background: var(--card); border-radius: 8px; padding: 7px 10px; cursor: pointer;
}
.bc-hit:hover { background: #f0f6ff; }
.bc-kids { display: flex; flex-direction: column; gap: 4px; }
.bc-kids[hidden] { display: none; }
.bc-kid { margin-left: 18px; }
.bc-catstep .bc-kid { width: calc(100% - 18px); }
/* Says there is more under it. Opens downward when clicked. */
.bc-has-kids { position: relative; padding-right: 28px; width: 100%; }
.bc-has-kids::after { content: "\25B8"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.bc-has-kids[aria-expanded="true"]::after { content: "\25BE"; }
.bc-grp { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.bc-gap { background: #fef3c7; color: #92400e; border-radius: 8px; padding: 8px 11px; font-weight: 600; }
.bc-detail { border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.bc-step { border-left: 3px solid var(--border); padding: 4px 9px; margin-bottom: 6px; font-size: 13px; }
.bc-s-ok { border-color: var(--green); }
.bc-s-bad { border-color: var(--red); }
.bc-s-warn { border-color: var(--amber); }

/* Today > Stuck */
.bc-stuck-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.bc-stuck-list { overflow: hidden; }
.bc-sr {
  display: grid; grid-template-columns: 1.3fr 1.1fr .6fr 1.3fr 2fr 1.1fr .9fr .9fr; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 13px; align-items: start;
}
.bc-sr:last-child { border-bottom: 0; }
.bc-sh { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); background: var(--bg); }

/* Admin, Broker card */
.bca-tabs { margin: 8px 0 14px; }
.bca-card { margin-bottom: 14px; }
.bca-row, .bca-gap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.bca-row:last-child, .bca-gap:last-child { border-bottom: 0; }
.bca-kid { margin-left: 26px; }
.bca-off .bca-main b { color: var(--muted); text-decoration: line-through; }
.bca-main { flex: 1 1 260px; min-width: 0; }
/* The leads behind a gap count: a lead, then what the seller wrote last. */
.bca-leads { flex: 1 1 100%; margin-top: 6px; }
.bca-lead { padding: 7px 0; border-top: 1px dashed var(--border); }
.bca-msg { margin-top: 3px; padding-left: 10px; border-left: 3px solid var(--border); font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.bca-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bca-sw { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; cursor: pointer; }
.bca-confirm { flex: 1 1 100%; margin: 4px 0 0; }
.bca-ob { border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; }
.bca-ob summary { cursor: pointer; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bca-ob-body { padding-top: 8px; }
.bca-newob { display: flex; gap: 8px; margin-top: 10px; }
.bca-newob input { flex: 1; min-width: 0; }
.bca-savebar { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; }
.bca-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; max-height: 170px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.bca-chk[hidden] { display: none; }
.bca-chk input { width: auto; flex: none; min-height: 0; }
.bca-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; cursor: pointer; }
.bca-missing { color: var(--red); }
.bca-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bca-never td { color: var(--muted); }
.bce h4 { margin: 14px 0 6px; font-size: 13px; }
.bca-cat-h { margin: 12px 0 2px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.bca-row input[data-cat] { width: 100%; max-width: 360px; }
.bca-step-row { align-items: flex-start; border-bottom: 0; padding: 0 0 6px; }
.bca-step-row .bca-ob { flex: 1 1 260px; min-width: 0; margin-bottom: 0; }
/* Pick lists in the situation editor (17 Nov 2026): chosen chips, a find bar, folding headings. */
.bce-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bce-jump .chip { cursor: pointer; }
.bce h4[id] { scroll-margin-top: 8px; }
.bcp { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.bcp-chosen { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.bcp-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.bcp-chip { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 12.5px; }
.bcp-chip svg { width: 12px; height: 12px; }
.bcp-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.bcp-bar .bcp-q { flex: 1 1 200px; min-width: 0; }
.bcp-list { max-height: 260px; overflow-y: auto; border-top: 1px solid var(--border); padding-top: 4px; }
.bcp-group[hidden] { display: none; }
.bcp-gh { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; padding: 5px 0;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); cursor: pointer; text-align: left; }
.bcp-gn { font-weight: 400; text-transform: none; letter-spacing: 0; }
.bcp-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .1s; }
.bcp-folded .bcp-caret { transform: rotate(-90deg); }
.bcp-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 14px; padding: 0 0 6px 14px; }
.bcp-rows.bcp-tree { grid-template-columns: 1fr; }
.bcp-folded .bcp-rows { display: none; }
.bcp-searching .bcp-folded .bcp-rows { display: grid; }
.bcp-row { align-items: flex-start; padding: 2px 0; }
.bcp-row input { margin-top: 2px; }
.bcp-kid { padding-left: 18px; }
.bcp-full { opacity: .5; cursor: default; }
/* Next steps with buttons, the fit check, the Results note (17 Nov 2026). */
.bce-step { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.bce-step [data-st="text"] { flex: 1 1 260px; min-width: 0; }
.bce-step-do { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bce-step-do select { width: auto; max-width: 220px; }
.bce-step-do select[hidden] { display: none; }
.bce-guess { font-size: 11px; }
.bce-fits { margin-top: 8px; }
.bce-fits-r { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; color: var(--text); }
.bce-fits-r ul { margin: 0; padding-left: 18px; }
.bca-why { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-bottom: 10px; }
.bc-do { margin-left: 6px; padding: 1px 8px; font-size: 12px; vertical-align: baseline; }
.bce-link { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.bce-link input { flex: 1 1 0; min-width: 0; }

/* A situation picked by hand (Pete, 5 Nov 2026): the card says so and offers the way back. */
.bc-manual { background: #ede9fe; color: #5b21b6; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; margin-left: 4px; }

/* Choosing a situation in I'm stuck leaves only the result: goal, next steps, tools, and a
   Back link at the top of it. The footer is outside .bc-stuck and stays. */
.bc-stuck.bcs-solo > .bc-q,
.bc-stuck.bcs-solo #bcs-pick,
.bc-stuck.bcs-solo .bc-find,
.bc-stuck.bcs-solo .bc-browse { display: none; }
#bcs-result .bc-back { display: inline-block; margin-bottom: 8px; }

/* Dragging on the Playbook tab (6 Nov 2026). Up and Down are for touch: phone.css shows them. */
.bca-grip { cursor: grab; color: var(--muted); padding: 0 6px; user-select: none; flex: 0 0 auto; letter-spacing: -2px; }
.bca-over { outline: 2px dashed var(--primary, #2563eb); outline-offset: -2px; }
.bca-nudge { display: none; gap: 6px; }
.bca-droph { padding: 4px 0 8px; }
.bca-optrow .bca-main > input[data-opt="label"] { width: 100%; max-width: 360px; font-weight: 600; }
.bca-confirm select { margin: 0 6px; }

/* "I did this already" (14 Nov 2026): what did you find out, the linked cards. */
.bc-didit { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.bc-fu { display: flex; flex-direction: column; gap: 4px; }
.bc-fu .bc-hit { width: 100%; }
.bc-fu-rest { display: flex; flex-direction: column; gap: 4px; }
.bc-fu-rest[hidden] { display: none; }
.bc-fu-more { align-self: flex-start; }
.bc-heard { border-color: #2f7d4f; background: #f1faf4; }
.bc-heard-t { font-size: 12px; color: #2f7d4f; }
.bc-done { margin-top: 4px; }

/* The reviewed Asks on the card (14 Nov 2026). */
.bc-asks { display: flex; gap: 8px; margin-top: 6px; font-size: 13px; }
.bc-ask-seller { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 4px; }
.bc-ask i, .bc-ask-line i { color: var(--muted); font-style: normal; font-size: 12px; }
.bc-ask-got b { color: #2f7d4f; }
.bc-ask-step { color: var(--muted); font-size: 12px; }
.bc-ask-kind { margin-top: 3px; }
.bc-ask-line { color: var(--muted); font-style: italic; margin: 2px 0 0 10px; }

/* Check my card: what the seller wrote and our notes, under each row (27 Nov 2026). */
.bca-gq-recent { margin: 4px 0 6px; padding-left: 18px; max-width: 70ch; }
.bca-gq-recent li { margin: 2px 0; overflow-wrap: anywhere; }
.bc-reach:empty { display: none; }
.bc-reach { margin-top: 4px; }
