/* ===========================================================================
   Team member drawer
   =========================================================================== */

/* A card whose whole subject is broken. The border carries it so the state is
   readable before any of the words are. */
.card--bad { border-color: #E9A9A2 }

.mbhead { display: flex; align-items: center; gap: 13px; margin-bottom: 18px }
/* A channel card that is only its head (No LinkedIn, No WhatsApp, the calendar) ends there. */
.mbhead:last-child { margin-bottom: 0 }
.mbchip {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px;
  background: var(--page); display: grid; place-items: center;
}
.mbchip .ms { font-size: 20px; color: var(--muted) }

.mbproblem {
  display: flex; gap: 11px; background: #FCEBE8; border: 1px solid #E9A9A2;
  border-radius: 14px; padding: 14px 16px; margin-bottom: 16px;
  font-size: 12.5px; line-height: 1.55; color: #8E1D15;
}
.mbproblem .ms { font-size: 18px; color: #C0362C; flex: 0 0 auto }

.mbbar { height: 8px; border-radius: var(--r-pill); background: var(--page); overflow: hidden; margin-bottom: 16px }
.mbbar > div { height: 100%; border-radius: var(--r-pill); background: var(--teal) }
.mbbar > div[data-bad="true"] { background: #C0362C }

.mbstats {
  display: flex; align-items: center; gap: 20px;
  padding-top: 16px; border-top: 1px solid var(--hair);
}
.mbstats b { display: block; font-size: 16px; font-weight: var(--weight-strong) }
.mbstats span { display: block; font-size: 11px; color: var(--muted) }

/* A line Candid wrote in their voice, quoted back. */
.voicesample {
  font-size: 13px; line-height: 1.65; color: var(--muted);
  background: var(--page); border-radius: 14px; padding: 14px 16px;
}

/* Connected accounts on Your profile: one row per account, split by hairlines
   rather than boxed, with whatever that account needs (a meter, a problem)
   under its own row. */
.accts { display: flex; flex-direction: column }
.acct { padding: 14px 0 }
.acct + .acct { border-top: 1px solid var(--hair) }
.acct:first-child { padding-top: 2px }
.acct:last-child { padding-bottom: 0 }
.acct__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap }
.acct__row > svg, .acct__row > .ms { flex: 0 0 auto }
.acct__who { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px }
.acct__name {
  font-size: 13.5px; font-weight: var(--weight-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.acct__acts { display: flex; gap: 8px; margin-left: auto }
.acct__meter { margin: 12px 0 0 34px; display: flex; flex-direction: column; gap: 6px; max-width: 360px }
.acct__meter b { font-size: 12.5px }
.acct__problem {
  display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0 34px;
  font-size: 12.5px; line-height: 1.45; color: var(--bad);
}
.acct__problem .ms { font-size: 16px; margin-top: 1px }
.acct__meter .acct__problem { margin-left: 0 }
/* On Your profile the rows share their columns (mark, name, state, buttons),
   so every state lines up down the panel whether or not its row has a button
   beside it, and the buttons' right edges sit on the panel's content edge. */
@media (min-width: 641px) {
  .accts--cols { display: grid; grid-template-columns: auto minmax(0, 1fr) max-content max-content; column-gap: 14px }
  .accts--cols > .acct { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid }
  .accts--cols > .acct > * { grid-column: 1 / -1 }
  .accts--cols > .acct > .acct__row { display: grid; grid-template-columns: subgrid; align-items: center }
  .accts--cols .acct__row > .statemark { justify-self: end }
  .accts--cols .acct__acts { justify-content: flex-end; margin-left: 0 }
}
@media (max-width: 640px) {
  .acct__row > .statemark { margin-left: 34px }
  .acct__acts { margin-left: 34px; width: 100% }
  .acct__meter, .acct__problem { margin-left: 0 }
}

/* Settings → HubSpot: the account as a connection row (above), its mark in
   HubSpot's orange; what has synced as two figures under a hairline; and what
   moves which way as rows split by hairlines. */
.hsmark { font-size: 20px; color: #E8603C }
.hsfigs { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hair) }
.hsfig { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.hsfig b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text) }
.hsflows { display: flex; flex-direction: column }
.hsflow { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-size: 14px; color: var(--text) }
.hsflow:first-child { padding-top: 0 }
.hsflow:last-child { padding-bottom: 0 }
.hsflow + .hsflow { border-top: 1px solid var(--hair) }
.hsflow .ms { font-size: 20px; color: var(--muted) }

.linkrow {
  display: flex; align-items: center; gap: 12px;
  background: var(--page); border-radius: 12px; padding: 11px 14px;
}
.linkrow .ms { font-size: 18px; color: var(--text); flex: 0 0 auto }
.linkrow > span:not(.ms):not(.pill) {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* The one destructive button in the drawer. */
.btn--bad { background-color: #C0362C; color: #FFF }
.btn--bad:hover:not(:disabled) { background-color: #A32C24; opacity: 1 }
