/**
 * sales-reps-rep.css — the sales rep's own screens in Sales Reps (js/sales-reps-rep.js):
 * Today with Take calls now, After the call, My deals, My earnings, Training and Team.
 *
 * ⚠️ ONLY WHAT THE REP'S SCREENS ALONE USE LIVES HERE, every class `srr-`.
 *   - The layout every Sales Reps screen shares (sr-split, sr-grid, sr-kpi, sr-list, sr-tbl,
 *     sr-why, sr-note, sr-ex …) is css/sales-reps.css, the area's own sheet.
 *   - .page-head, .card, .card-head, .card-body, .btn and .badge are the app shell's.
 * Copied from the approved artefact, docs/projects/sales-reps/playground-v0.2.html (its
 * "rep: today" block and the rep's call checklist), on the design tokens only.
 */

/* ── small utilities, scoped to the rep's screens ── */
.srr .srr-muted { color: var(--text-3); }
.srr .srr-small { font-size: 13px; }
.srr .srr-num { font-variant-numeric: tabular-nums; }
.srr .srr-mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }
.srr .srr-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.srr .srr-between { justify-content: space-between; }
.srr .srr-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.srr .srr-grow { flex: 1; min-width: 0; }
.srr .srr-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srr .srr-tick { color: var(--good); font-weight: 700; }
.srr .srr-cross { color: var(--text-4); font-weight: 700; }
.srr .srr-late { color: var(--danger); font-weight: 600; }
.srr .srr-empty { padding: 28px 20px; text-align: center; color: var(--text-3); font-size: 13.5px; }
.srr .srr-empty .btn { margin-top: 12px; }
.srr p { margin: 0; }
.srr h2.card-title { margin: 0; }
.srr h3 { font-size: 14px; margin: 0; font-weight: 600; }
.srr .page-head { flex-wrap: wrap; gap: 20px; }
.srr .page-head > div:first-child { flex: 1 1 320px; }   /* on a phone the right-hand control drops below, as in the playground */
/* The shell stacks cards with `.card + .card { margin-top: 14px }`; inside a grid the gap spaces
   them instead (as control-centre.css does for .cc-grid). */
.srr .sr-grid > .card + .card, .srr .sr-split > .card + .card, .srr .srr-stack > .card + .card { margin-top: 0; }
.srr .btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.srr .btn[disabled] { opacity: .45; cursor: not-allowed; }
.srr .btn-link { border: 0; background: transparent; padding: 0; color: var(--accent-deep); font-weight: 600; font-size: 13px; cursor: pointer; }
.srr .btn-link:hover { text-decoration: underline; }

/* ── presence: Ready / On a break (the playground's .state) ── */
.srr-state { display: inline-flex; gap: 4px; background: var(--surface-3); border-radius: 10px; padding: 3px; }
.srr-state button { border: 0; background: transparent; border-radius: 8px; padding: 6px 11px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; font-family: inherit; }
.srr-state button.on { background: var(--surface); color: var(--good); }
.srr-state button.on.brk { color: var(--warn); }

/* ── Today: the day's calls (the playground's .tl) ── */
.srr-tl { display: flex; flex-direction: column; }
.srr-tl-item { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--border-soft); }
.srr-tl-item:first-child { border-top: 0; }
.srr-tl-item.now { background: var(--accent-softer); }
.srr-tl-time { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.srr-tl-item.done .srr-tl-time, .srr-tl-item.done .srr-tl-who { color: var(--text-3); }
.srr-tl-who { font-weight: 600; }
.srr-tl-what { font-size: 13px; color: var(--text-3); }
.srr-asst { font-size: 13px; color: var(--accent-deep); margin-top: 2px; }

/* ── the next call: countdown and brief ── */
.srr-countdown { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 40px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.srr-brief dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 13.5px; }
.srr-brief dt { color: var(--text-3); font-size: 13px; }
.srr-brief dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ── "<Name> is on the line. Take the call?" (the assistant's free-now hand-over) ── */
.srr-offer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 16px; border: 1px solid var(--accent); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); background: var(--accent-softer); animation: srr-pop .3s ease-out; }
.srr-offer h2 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.01em; margin: 0; }
.srr-offer .srr-offer-notes { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.srr-ring { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: 0 0 12px; box-shadow: 0 0 0 0 var(--accent-soft); animation: srr-ring 1.4s ease-out infinite; }
@keyframes srr-ring { 0% { box-shadow: 0 0 0 0 var(--accent-2); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes srr-pop { from { transform: translateY(6px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ── Take calls now (playground v0.3 .lv-*) ── */
.srr-take { margin-bottom: 16px; }
.srr-take .card-body { display: flex; flex-direction: column; gap: 16px; }
.srr-take .card-body.srr-live-grid { display: grid; }
.srr-take .card-body.srr-row { flex-direction: row; }
.srr-intro { color: var(--text-2); max-width: 72ch; }
/* "Today against the shift's targets", the quiet line above the figures (v0.4). */
.srr-caption { margin: 0 0 8px; }
/* Who sees the banner: one select, half the panel's width on a wide screen (v0.4 lvwho). */
.srr-who { max-width: calc(50% - 11px); }
.srr-who select { width: 100%; }
.srr-take-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.srr-choice { display: flex; flex-wrap: wrap; gap: 6px; }
.srr-choice button { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--text); font-family: inherit; cursor: pointer; }
.srr-choice button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.srr-lines { display: flex; flex-direction: column; gap: 6px; }
.srr-line { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); font-size: 14px; cursor: pointer; text-align: left; font-family: inherit; color: var(--text); width: 100%; }
.srr-line:hover { background: var(--surface-2); }
.srr-line .srr-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: 0 0 16px; margin-top: 2px; position: relative; }
.srr-line.on { border-color: var(--accent); background: var(--accent-softer); }
.srr-line.on .srr-dot { border-color: var(--accent); }
.srr-line.on .srr-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.srr-line.wait { cursor: default; color: var(--text-3); background: var(--surface-2); justify-content: space-between; flex-wrap: wrap; }
/* What people see: the live bar, drawn as P7's community bar draws it, in the accent. */
.srr-bar { display: flex; align-items: center; gap: 14px; background: var(--accent); color: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 12px 26px -14px rgba(21, 23, 43, .55); }
.srr-bar-face { position: relative; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #fff; box-shadow: 0 0 0 3px #fff; background-size: cover; background-position: center; }
.srr-bar-face::after { content: ""; position: absolute; right: -2px; bottom: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--good); border: 2px solid #fff; }
.srr-bar-meta { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .92; }
.srr-bar-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: 0 0 8px; }
.srr-bar-title { font-weight: 800; font-size: 17px; line-height: 1.3; margin-top: 2px; }
.srr-bar-sub { font-size: 13px; opacity: .92; margin-top: 2px; }
.srr-bar-btn { flex: 0 0 auto; border-radius: 10px; background: #fff; color: var(--accent-deep); font-weight: 700; font-size: 14.5px; padding: 11px 16px; white-space: nowrap; }
/* Live: the card goes green, the time left counts down. */
.srr-live { border-color: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.srr-live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--good); flex: 0 0 9px; margin-right: 9px; animation: srr-live 1.8s infinite; }
@keyframes srr-live { 0% { box-shadow: 0 0 0 0 var(--good-soft); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.srr-live-grid { grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.srr-said { font-size: 17px; font-weight: 600; line-height: 1.35; }
.srr-live-count { text-align: right; }
.srr .btn-danger { background: var(--danger); color: #fff; border: 1px solid var(--danger); }
.srr .btn-danger:hover { filter: brightness(.94); }
.srr-tl-item.live { background: var(--good-soft); background: color-mix(in srgb, var(--good-soft) 50%, var(--surface)); }

/* ── After the call ── */
.srr-pay { pointer-events: none; }
.srr-warnbox { background: var(--warn-soft); border: 1px solid var(--warn-soft); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--text); }
.srr-warnbox ul { margin: 6px 0 0; padding-left: 18px; }

/* ── Training: the promises quiz ── */
.srr-quiz { display: flex; flex-direction: column; gap: 14px; }
.srr-quiz fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.srr-quiz legend { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; padding: 0; }
.srr-quiz label { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.srr-quiz input { margin-top: 3px; accent-color: var(--accent); }

/* ── My deals: Needs you ── */
.srr-need { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border-soft); }
.srr-need:first-child { border-top: 0; }
.srr-reply { margin: 0; padding: 8px 12px; border-left: 3px solid var(--accent-soft); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: 13.5px; color: var(--text-2); }
.srr-decide { gap: 8px; }
.srr-line-why { display: block; font-size: 13px; color: var(--warn); margin-top: 2px; }
@media (max-width: 520px) { .srr-decide .btn { flex: 1 1 auto; justify-content: center; } }

/* ── Team: the scoreboard ── */
.srr-bell { font-size: 18px; line-height: 1; flex: 0 0 auto; }
.srr-av-sm { width: 28px; height: 28px; flex: 0 0 28px; font-size: 10px; }
.srr-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.srr .sr-li.srr-me { background: var(--accent-softer); }
.srr .sr-li .badge { vertical-align: 1px; margin-left: 4px; }
.srr-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; flex: 0 0 34px; background-size: cover; background-position: center; }

@media (max-width: 860px) {
  .srr-take-grid, .srr-live-grid { grid-template-columns: minmax(0, 1fr); }
  .srr-who { max-width: none; }
  .srr-live-count { text-align: left; }
}
@media (max-width: 520px) {
  .srr-tl-item { grid-template-columns: 66px minmax(0, 1fr); gap: 10px; padding: 12px 16px; }
  .srr-tl-item > :last-child { grid-column: 2; justify-content: center; }
  .srr-brief dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .srr-brief dd { margin-bottom: 8px; }
  .srr-offer .btn { flex: 1 1 100%; justify-content: center; }
  .srr-bar { flex-wrap: wrap; }
  .srr-bar-btn { flex: 1 1 100%; text-align: center; }
  .srr-countdown { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .srr-offer, .srr-ring, .srr-live-dot { animation: none; }
}
.srr-av-lg { width: 52px; height: 52px; flex: 0 0 52px; font-size: 16px; }
.srr-number { font-size: 18px; margin-top: 4px; }
.srr-number .srr-mono { font-variant-numeric: tabular-nums; }

/* ── Follow-up (playground v0.5 repFollow5) ── */
.srr-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent-deep); text-decoration: underline; cursor: pointer; }
.srr-link:hover, .srr-link:focus-visible { color: var(--accent); }
.srr-follow { display: flex; flex-direction: column; gap: 12px; }
.srr-follow .srr-intro { max-width: none; }
.srr-to { background: var(--surface-2); overflow-wrap: anywhere; }
/* The email as it will go: the words as written, with what the last redraft changed marked. */
.srr-draft { border: 1px solid var(--border-strong); border-radius: 12px; padding: 14px 16px; background: var(--surface); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.srr-draft mark { background: var(--good-soft); color: inherit; border-radius: 4px; padding: 0 2px; }
.srr-editbody { width: 100%; min-height: 300px; font-size: 14px; line-height: 1.55; }
.srr-ver { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); margin-top: 6px; }
.srr-drafts { margin-top: 6px; border: 1px solid var(--border-soft); border-radius: 10px; }
.srr-drafts > summary { cursor: pointer; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.srr-drafts .sr-li { padding: 8px 12px; }
.srr .sr-li.srr-wrap { flex-wrap: wrap; }
/* Tell the assistant what to change: the box and its Redraft button; the Speak row (voice-input.js) sits under it. */
.srr-comp { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--border-strong); border-radius: 14px; padding: 8px 8px 8px 12px; background: var(--surface); }
.srr-comp:focus-within { border-color: var(--accent); }
.srr-comp textarea { flex: 1; min-width: 0; border: 0; resize: none; min-height: 44px; max-height: 140px; outline: none; background: transparent; padding: 4px 0; font: inherit; font-size: 14px; color: var(--text); }
.srr-send { border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; padding: 9px 13px; white-space: nowrap; cursor: pointer; }
.srr-send[disabled] { opacity: .6; cursor: progress; }
/* Every email with them. */
.srr-mail { align-items: flex-start; color: inherit; text-decoration: none; }
a.srr-mail:hover .srr-tlt { color: var(--accent-deep); }
.srr-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-family: "JetBrains Mono", monospace; background: var(--accent-softer); color: var(--accent-deep); flex: 0 0 28px; }
.srr-tlt { display: block; font-weight: 600; font-size: 13.5px; }
.srr-tlm { display: block; font-size: 13px; color: var(--text-3); }
.srr-tlx { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--text-2); margin-top: 2px; }
/* The chasers. */
.srr-chase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 20px; border-top: 1px solid var(--border-soft); }
.srr-chase:first-child { border-top: 0; }
.srr-chase h3 { font-size: 14px; font-weight: 600; margin: 0; }
.srr-chase .srr-tlx { -webkit-line-clamp: 3; }
/* An email chaser before the follow-up is sent: on, and set to run, but nothing to change yet. */
.srr .srr-chase button.toggle.on[disabled] { opacity: 1; cursor: default; }
.srr .srr-warn { color: var(--warn); }
/* The transcript, in its sheet. */
.srr-transcript { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; font-size: 13.5px; }
.srr-tline { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
.srr-twho { font-size: 13px; font-weight: 600; color: var(--text-3); }
.srr-tline.rep .srr-twho { color: var(--accent-deep); }


/* ── The rep's day (playground v0.6): the banners, the to-do list, the sign-out sheet, the catch-up, My calls ── */
.srr-banner { margin-bottom: 16px; }
.srr-banner.warn { border-color: #f0c97a; background: #fffaf0; }
.srr-banner.bad { border-color: #efb1ab; background: #fff6f5; }
.srr-banner .card-title { font-size: 17px; }

.srr-td { display: flex; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border-soft); align-items: flex-start; min-width: 0; }
.srr-td:first-child { border-top: 0; }
.srr-td h3 { font-size: 14px; line-height: 1.3; margin: 0; }
.srr-td.done { opacity: .6; }
.srr-td.done h3 { text-decoration: line-through; text-decoration-color: var(--text-4, var(--text-3)); }
.srr-td-ic { width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; background: var(--surface-3, var(--surface-2)); color: var(--text-2); }
.srr-td-ic.k-followup_unsent, .srr-td-ic.k-reply, .srr-td-ic.k-package_renew, .srr-td-ic.k-followup_scheduled { background: var(--accent-soft); color: var(--accent-deep); }
.srr-td-ic.k-followup_held, .srr-td-ic.k-call_soon { background: var(--danger-soft); color: var(--danger); }
.srr-td-ic.k-deal_no_next_step, .srr-td-ic.k-decide { background: var(--warn-soft); color: var(--warn); }
.srr-td-ic.k-next_step_due { background: var(--good-soft); color: var(--good); }
.srr-td-must { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--danger); background: var(--danger-soft); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.srr-td-due { color: var(--text-2); font-weight: 600; }
.srr-td-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.srr-td-in { margin-top: 10px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.srr-td-in s { color: var(--danger); }
.srr-td-in .textarea { width: 100%; }
.srr-done-how { color: var(--good); font-weight: 600; }
.srr-td-prog { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border-soft); font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.srr-bar6 { flex: 1; min-width: 120px; height: 6px; border-radius: 999px; background: var(--surface-3, var(--border-soft)); overflow: hidden; }
.srr-bar6 i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* The sign-out sheet (inside CBSheet.panel, so these classes stand on their own). */
.srr-so { display: flex; flex-direction: column; gap: 12px; }
/* The sheet's body scrolls; its cards never squash to fit it (a card's overflow:hidden lets a flex item shrink below its
   rows, which cut the list of what is left down to one and a half rows). */
.srr-so > * { flex-shrink: 0; }
.srr-so .card + .card { margin-top: 0; }
.srr-tph { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 0; }
.srr-so-hold, .srr-so-ok { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
/* What is still open: a reminder, never a lock (Alex, 10 Nov 2026), so amber, not the red of something broken. */
.srr-so-hold { background: var(--warn-soft); color: var(--text); }
.srr-so-ok { background: var(--good-soft); color: #155f3d; }
.srr-so-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.srr-so-sum div { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 10px; padding: 8px 10px; }
.srr-so-sum b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 20px; }
.srr-so-sum span { font-size: 13px; color: var(--text-3); }
.srr-so .btn[disabled] { opacity: .5; cursor: not-allowed; }
.srr-so .sr-li { padding: 10px 16px; }
.srr-so-mv { flex-wrap: wrap; }
.srr-so-mv .t { flex: 0 0 70px; }
.srr-so-mv .srr-grow { min-width: 0; }
.srr-so-mv .to { flex: 0 1 auto; max-width: 55%; text-align: right; }

/* Start of shift: the note, the tiles, the lists. */
.srr-cu-note { background: #fffaf0; border: 1px solid #f0d9a8; border-radius: var(--radius-lg, 16px); padding: 14px 18px; margin-bottom: 16px; }
.srr-cu-note .k { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--warn); }
.srr-cu-note p { margin: 6px 0 0; font-size: 15px; }
.srr-cu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.srr-cu-t { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 76px; cursor: pointer; font: inherit; color: inherit; }
.srr-cu-t:hover { border-color: var(--border-strong); }
.srr-cu-t .k { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.srr-cu-t .v { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 24px; line-height: 1.1; }
.srr-cu-t.zero .v { color: var(--text-4, var(--text-3)); }
.srr-cu-t .s { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srr-cu-sec { border-top: 1px solid var(--border-soft); }
.srr-cu-sec:first-child { border-top: 0; }
.srr-cu-head { padding: 12px 20px; border-bottom: 1px solid var(--border-soft); }
.srr-cu-head h3 { font-size: 14px; margin: 0; }
.srr-cu-row { display: flex; gap: 12px; padding: 10px 20px; align-items: flex-start; min-width: 0; margin: 0; }
.srr-cu-row.open { cursor: pointer; }
.srr-cu-row.open:hover b { color: var(--accent-deep); }
.srr-cu-row p { margin: 2px 0 0; }
.srr-replies-top { margin-bottom: 16px; }

/* My calls. */
.srr-show { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 8px 12px; margin: 0 0 12px; }
.srr-show b { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.srr-show .srr-choice button { padding: 4px 10px; font-size: 13px; }
.srr-mc { overflow: hidden; }
.srr-mc-day { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 12px 18px 6px; background: var(--surface-2); border-top: 1px solid var(--border-soft); }
.srr-mc-day:first-child { border-top: 0; }
.srr-mc details { border-top: 1px solid var(--border-soft); }
.srr-mc-day + details { border-top: 0; }
.srr-mc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; }
.srr-mc summary::-webkit-details-marker { display: none; }
.srr-mc-t { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--text-2); }
.srr-mc-b { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.srr-mc-in { padding: 0 18px 14px 102px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.srr-mc-in p { margin: 0; }

@media (max-width: 860px) {
  .srr-cu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srr-so-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srr-so-mv .to { flex-basis: 100%; max-width: none; text-align: left; padding-left: 82px; }
  .srr-mc summary { grid-template-columns: 58px minmax(0, 1fr); }
  .srr-mc-b { grid-column: 2; justify-content: flex-start; }
  .srr-mc-in { padding: 0 18px 14px 18px; }
}
.srr-cu-head .card-title { font-size: 14px; }

/* ── The Dialer (playground-dialer-v0.1.html, round 8b) ──
   1 · the switch and live strip on Today; 2 · the hand-over, drawn as the free-now card (.srr-offer) with the
   playground's extras; 3 · a phone booking on the day, with Call; and the rep's own instructions in My settings.
   The figure tiles are the area's .sr-stat (css/sales-reps.css). */
.srr-dial-split { margin-bottom: 16px; }
.srr-dial .card-body, .srr-dial-nobody { display: flex; flex-direction: column; gap: 14px; }
.srr-dial-switch { display: flex; align-items: center; gap: 12px; min-width: 0; }   /* the switch stays beside its words */
.srr-dial-switch .toggle.on { background: var(--good); }   /* the playground's green: taking calls */
.srr .srr-dial-switch button.toggle { margin-top: 0; align-self: center; }
.srr-dial-until { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 14px; }
.srr .srr-dial-until .select { width: auto; min-height: 36px; padding: 6px 8px; font-weight: 500; }
.srr .srr-dial-until .select[disabled] { opacity: .55; cursor: not-allowed; }
.srr-dial-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.srr-dial-strip.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.srr-dial.off .sr-stat b { color: var(--text-4); }
.srr-dial-why { font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 10px 12px; }
/* The connect Dialer's warning about the rep's next booked call (10 minutes, then 5, or their customer waiting), with Stop
   the Dialer beside it (and Open the call for one due now or waiting): warm at 10, the danger edge at 5 and due. Never a
   stop (dialer/connect.js warningFor). */
.srr-cx-warn { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--border-soft);
  border-left: 4px solid var(--warn); border-radius: var(--radius-lg); background: var(--warn-soft); min-width: 0; }
.srr-cx-warn p { flex: 1 1 240px; margin: 0; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--text); }
.srr-cx-warn.s5, .srr-cx-warn.s0 { border-left-color: var(--danger); background: var(--danger-soft); }   /* s0: the call is due now */
.srr-cx-warn .btn { flex: 0 0 auto; }
.srr .srr-dial-err:empty { display: none; }
.srr-dial-lines { display: flex; flex-direction: column; gap: 8px; }
.srr-dial-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--border-soft); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.srr-dial-line .srr-grow b { display: block; font-size: 14px; }
.srr-dial-line .srr-grow > span { display: block; font-size: 13px; line-height: 1.45; color: var(--text-3); }   /* its own line only: a facts line inside (.sra-seen) keeps its own rules */
.srr-dial-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-4); }
.srr-dial-line.talk .srr-dial-dot { background: var(--good); animation: srr-blink 1.6s ease-in-out infinite; }
.srr-dial-st { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.srr-dial-st.talk { background: var(--good-soft); color: var(--good); }
.srr-dial-note { font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 10px; padding: 10px 12px; }
.srr-dial-note b { color: var(--text); }
@keyframes srr-blink { 50% { opacity: .35; } }

/* The hand-over: the free-now card, laid out in the playground's three bands (who, what was learned, the countdown). */
.srr-offer.srr-ho { display: block; padding: 0; overflow: hidden; }
.srr-ho-top { padding: 16px 20px 14px; }
.srr-ho-ring { display: flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 6px; }
.srr-ho-ring .srr-ring { width: 8px; height: 8px; flex: 0 0 8px; }
.srr-ho-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 20px; background: var(--surface); border-top: 1px solid var(--accent-soft); }
/* Who they are reads as label and value side by side at every width, as the playground's .facts does. */
.srr-ho .srr-brief dl { grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; }
.srr-ho .srr-brief dd { margin-bottom: 0; }
.srr-ho-learned { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.srr-ho-learned p { background: var(--surface-2); border-radius: 9px; padding: 8px 10px; }
.srr-ho-learned b { display: block; font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 2px; }
.srr-ho-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; background: var(--surface); border-top: 1px solid var(--border-soft); }
.srr-ho-timer { font-size: 13px; color: var(--text-2); flex: 1 1 260px; }
.srr-ho-timer b { color: var(--text); }
/* "Book them instead" beside "Take the call", and what shows once it is pressed (the playground's .taken, in warn). */
.srr .srr-ho-acts { gap: 10px; flex: 0 1 auto; }
.srr-ho-booking { flex: 1 1 100%; margin: 0; background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 13.5px; }

/* A phone booking on the day: the accent edge and the Phone tag (playground .slot.phone, .tag). */
.srr-tl-item.phone { box-shadow: inset 4px 0 0 var(--accent); }
/* The customer is already waiting (COPY.md, 20 Nov 2026): the row edged in warn beside its "{first} is waiting" badge, and
   on the Next call card the badge under the name and the warn box straight above Open the room. */
.srr-tl-item.waiting { box-shadow: inset 4px 0 0 var(--warn); }
.srr-next-waitbadge { margin: 6px 0 0; }
.srr-next-wait { margin-top: 14px; font-weight: 600; font-size: 14px; }
/* What the Dialer's call learned, one line under who booked it (package G); the whole line is in its title. */
.srr-tl-learned { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.srr-tag { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; background: var(--accent-softer); color: var(--accent-deep); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: 1px; }

/* My settings: the rep's own instructions to the Dialer. */
.srr-dial-own .card-body { display: flex; flex-direction: column; gap: 12px; }
.srr-dial-own .textarea { width: 100%; min-height: 96px; }
.srr-dial-own .field > label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }

@container sr-area (max-width: 620px) {
  .srr-dial-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* four as two by two; three stay in a row */
  .srr-ho-body { grid-template-columns: minmax(0, 1fr); }
}
@container sr-area (max-width: 480px) {
  .srr-ho-top, .srr-ho-body, .srr-ho-foot { padding-left: 16px; padding-right: 16px; }
  /* On a phone the Dialer's line may take two lines before it is cut, so what they want is still read. */
  .srr .srr-tl-learned { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .srr-ho-foot .btn { flex: 1 1 100%; justify-content: center; }
  .srr .srr-ho-acts { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .srr-dial-line.talk .srr-dial-dot { animation: none; }
}

/* Standby (docs/projects/sales-reps/STANDBY-BUILD.md): a released call, greyed under its time (`under`: straight after
   the call booked into that time, so no line between them); while its person has the join page open, the alert above
   the day (.srr-offer.srr-standby-alert) and a warn badge on the row. */
.srr-tl-item.srr-standby .srr-tl-who { font-weight: 500; color: var(--text-3); }
.srr-tl-item.srr-standby.under { border-top: 0; padding-top: 0; }
.srr-tl-item.srr-standby.waiting .srr-tl-who { color: var(--text-2); }
.srr-standby-line { font-size: 13px; color: var(--text-3); margin: 4px 0 0; }
.srr-mc-standby { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px;
  font-size: 13px; color: var(--text-3); border-top: 1px solid var(--border-soft); }
.srr-mc-day + .srr-mc-standby { border-top: 0; }
.srr-mc-standby.under { border-top: 0; padding-top: 0; }
.srr-mc-standby.waiting { color: var(--text-2); }
@media (max-width: 860px) {
  .srr-mc-standby { grid-template-columns: 58px minmax(0, 1fr); }
  .srr-mc-standby > :last-child { grid-column: 2; }
}

/* Standby, round 2 (STANDBY-BUILD.md R2.4): two people for one time. The pair panel sits straight under the two rows
   (the booked call, then the released one greyed under it) on Today's timeline (.srr-tl-pair) and My calls
   (.srr-mc-pair), in the Next call card (.srr-next-pair), and under the tile row on the new booker's call screen
   (.srr-pair-slot, js/sales-reps-call.js, with both rows drawn inside it). Warm, not alarming: nothing is wrong, and
   nothing needs the rep until the switch. Unscoped (srr-pair) so the call screen, outside .srr, draws it too. */
.srr-pair { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--border-soft);
  border-left: 4px solid var(--warn); border-radius: var(--radius-lg); background: var(--warn-soft); min-width: 0; }
.srr-pair p { margin: 0; }
.srr-pair-t { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: -.01em; color: var(--text); }
.srr-pair-b { font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.srr-pair-cd { font-size: 13.5px; font-weight: 600; color: var(--warn); font-variant-numeric: tabular-nums; }
.srr-pair.is-switching .srr-pair-cd { color: var(--accent-deep); }
.srr-pair-note { font-size: 13px; color: var(--text-2); }
.srr-pair-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.srr-pair-acts .btn { font-variant-numeric: tabular-nums; }
.srr-pair-acts .btn[disabled] { opacity: .6; cursor: not-allowed; }
.srr-pair-x { font-size: 13px; line-height: 1.4; color: var(--text-3); padding-top: 6px; border-top: 1px solid var(--border-soft); margin-top: 2px; }
.srr-pair.is-here, .srr-pair.is-late { border-left-color: var(--good); background: var(--good-soft); }
/* Both bookings side by side, on the call screen: the booked call, the released one greyed under it. */
.srr-pair-rows { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 10px; background: var(--surface); font-size: 13.5px; }
.srr-pair-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; min-width: 0; }
.srr-pair-time { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.srr-pair-sb { color: var(--text-3); }
.srr-pair-row .srr-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Where it sits: under the rows, lined up with the names. */
.srr-tl-pair { padding: 2px 20px 14px calc(20px + 74px + 14px); }
.srr-mc-pair { padding: 2px 18px 14px calc(18px + 72px + 12px); }
.srr-next-pair { margin-top: 12px; }
.srr-pair-slot:not(:empty) { margin-bottom: 16px; }
@media (max-width: 860px) {
  .srr-tl-pair { padding: 2px 16px 12px calc(16px + 66px + 10px); }
  .srr-mc-pair { padding: 2px 16px 12px calc(16px + 58px + 12px); }
}
@media (max-width: 520px) {
  .srr-tl-pair, .srr-mc-pair { padding: 2px 16px 12px; }
  .srr-pair-acts .btn { flex: 1 1 100%; justify-content: center; }
}
