/* The Brokers screen (D2 Task 29), from Brokers.dc.html (approved 07/11). Every colour is a token: brokers are not a stage of the work,
   so their initials take the one neutral sky tone (the lead's ruling: brokers and people alike), and so does the Whole domain chip; an
   address chip is the hairline grey; "No senders yet" is the missing yellow (it needs a person); a refusal the declined ink. The cards,
   buttons, fields and segments are components.css; motion is the base sheet's to turn off. Listed in STYLESHEETS after inbox.css. */

.brRoot { padding: 28px 32px 64px; }
.brWrap { display: flex; flex-direction: column; gap: 16px; max-width: 1080px; margin: 0 auto; }

/* ---- The header ---- */
.brHead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.brTitle { flex: 1 1 320px; min-width: 0; }
.brTitle h1 { margin: 0; font: 600 26px var(--font-head); letter-spacing: -0.015em; }
.brSub { color: var(--ink-3); font-size: 13.5px; }
.brHead .btn.primary { padding: 0 18px; }

.brCols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }

/* ---- The list ---- */
.brList { display: flex; flex: 1 1 320px; flex-direction: column; gap: 4px; min-width: 0; padding: 12px; }
.brAdd { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; padding: 10px 8px 14px; border-bottom: 1px solid var(--hair); animation: rise .35s var(--ease-out) both; }
.brAdd label, .brField label { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.brAddActs { display: flex; gap: 8px; }
.brAddActs .btn.primary { padding: 0 18px; }
.brCancel { padding: 0 12px; color: var(--ink-3); font-weight: 500; }
.brow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px; border: 1px solid transparent; border-radius: var(--r-lg); background: transparent;
  color: var(--ink); font: 14px var(--font-body); text-align: left; cursor: pointer; transition: background var(--t-hover), box-shadow var(--t-ui), transform var(--t-ui) var(--ease-out); }
.brow:hover { background: var(--surface-2); transform: translateY(-1px); }
.browOn, .browOn:hover { background: var(--surface); box-shadow: var(--sh-card), 0 0 0 1.5px var(--brand-line); transform: none; }
.brIni { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r-md); background: var(--status-sky-bg);
  color: var(--status-sky-ink); font: 600 12.5px var(--font-head); }
.brIniLg { width: 40px; height: 40px; border-radius: var(--r-lg); font-size: 14px; }
.brRowText { flex: 1; min-width: 0; }
.brRowName { display: block; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.brRowMeta { display: block; color: var(--ink-3); font-size: 12.5px; }
.brRowMeta.brRowEmpty { color: var(--status-missing-ink); }

/* ---- The broker's card ---- */
.brDetail { display: flex; flex: 2 1 440px; flex-direction: column; min-width: 0; animation-delay: .05s; }
.brDetailHead { display: flex; align-items: center; gap: 12px; padding: 20px 20px 6px; }
.brDetailTitle { flex: 1; min-width: 0; }
.brDetailTitle h2 { margin: 0; font: 600 19px var(--font-head); letter-spacing: -0.01em; }
.brSenders { padding: 8px 0 0; }
.brNone { margin: 6px 20px 10px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--status-missing-bg); color: var(--status-missing-ink); font-size: 13.5px; }
.brSender { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--hair); transition: background var(--t-hover); }
.brSender:hover { background: var(--surface-2); }
.brSenderIcon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-md); background: var(--hair); color: var(--ink-2); }
.brSenderValue { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.brKind { padding: 2px 9px; border-radius: 8px; background: var(--hair); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.brKind.brKindDomain { background: var(--status-sky-bg); color: var(--status-sky-ink); }

/* ---- Add a sender ---- */
.brSenderForm { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--hair); }
.brSenderForm h3 { margin: 0; font: 600 15px var(--font-head); }
.brKinds { max-width: 320px; border-radius: var(--r-lg); }
.brKinds .seg { min-height: 38px; border: 0; background: transparent; color: var(--ink); font: 600 12.5px var(--font-body); }
.brKinds .segOn { background: var(--surface); }
.brSenderRow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.brField { display: flex; flex: 1 1 260px; flex-direction: column; gap: 6px; min-width: 0; }
.brSenderRow .btn { padding: 0 18px; }
.fld.brFldBad { border-color: var(--status-declined-mid); }
.brError { color: var(--status-declined-ink); font-size: 13px; }
.brHint { color: var(--ink-3); font-size: 12.5px; }

/* ---- No broker yet ---- */
.brEmpty { align-items: center; gap: 10px; padding: 40px 20px; text-align: center; }
.brEmptyTitle { font: 600 17px var(--font-head); }
