/* ===========================================================================
   Calls
   ---------------------------------------------------------------------------
   Outreach's stages, cards and table, carrying calls instead of emails. The
   rules here are only what a call adds: a dot per outcome on the rail, the
   number on the card, and names in the calendar cells.
   =========================================================================== */


.callcard__due { display: inline-flex; align-items: center; gap: 5px }
.callcard__due .ms { font-size: 16px }
.callcard__due--now { color: #8A5A00; font-weight: var(--weight-strong) }
/* Calls logged, calls that reached them, and days since the last: each an
   icon, its figure and a one-word label, on one line. */
.callcard__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px }
.callcard__stat {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 13px; font-variant-numeric: tabular-nums;
}
.callcard__stat .ms { font-size: 16px; color: var(--muted) }
.callcard__stat b { font-size: 18px; font-weight: var(--weight-strong) }
.callcard__stat .figcap { font-size: 12px }
/* The hour to ring, with its label; green while it is that hour now. */
.callcard__window .figcap { font-size: 12px }
.callcard__window--now .ms, .callcard__window--now .figcap { color: var(--good) }
/* A company's own icon, at the size of the glyph it stands in for. */
/* A face or a brand mark laid over the initials, so the initials hold the
   space while it loads and show again if it never does. Faces fill the round;
   logos sit on white with room around them, as a logo is drawn to be seen. */
.hasmark { position: relative; overflow: hidden }
.markimg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: inherit; object-fit: cover; opacity: 0; transition: opacity .18s ease-out;
}
.markimg.is-in { opacity: 1 }
.markimg--logo { object-fit: contain; background: #FFF; padding: 12%; box-shadow: inset 0 0 0 1px var(--line) }
@media (prefers-reduced-motion: reduce) { .markimg { transition: none } }
.callcard__yours { font-size: 12px; font-weight: 400; color: var(--muted) }
/* Why that stretch: a reason to act, so teal like the other "do this" marks. */
.callcard__why {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--text);
  font-size: 12.5px; font-weight: var(--weight-strong);
}
.callcard__why .ms { font-size: 16px; color: #04635C }

/* Employer, fit and number on one line of icon-led facts. */
.callcard__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px }
.callcard__fact {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 14.5px; font-weight: var(--weight-strong); font-variant-numeric: tabular-nums;
}
.callcard__fact .ms { font-size: 16px; color: var(--muted) }
.callcard__fact .muted { font-weight: 400 }

/* LinkedIn: who to add. The card is the link to their profile; once added it
   is a plain card, and only its Undo reacts to a cursor. */
.licard { text-decoration: none }
.licard--go:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px }
.licard--done { cursor: default }
.seqcard.licard--done:hover { border-color: #F0DFAE; box-shadow: none; transform: none }
/* The card is a link, but its words keep their colours: a link's coral hover
   would turn the whole card at once. The lift says it is clickable. */
a.seqcard:hover { color: var(--text) }
/* Words that carry a state, dark enough to read: the ring colours are not. */
.tone--good { color: #1F7A4A }
.tone--warn { color: #8A5A00 }
.tone--bad { color: #B23A22 }
.tone--plain { color: var(--text) }
.licard__foot { gap: 10px; flex-wrap: wrap }
.licard__done { display: inline-flex; align-items: center; gap: 6px; color: var(--text) }
.licard__done .ms { font-size: 18px; color: var(--good) }
.licard--done { opacity: .7 }

/* The Reason column, drawn (liWhy in app/calls.js): the warmth meter, then
   each reason as its picture over a word or two, side by side, no boxes. */
.liwhy { display: flex; align-items: center; gap: 20px; min-width: 0 }
.liwarm { flex: none; display: grid; justify-items: center; gap: 4px; width: 40px }
.liwarm__bars { display: flex; align-items: flex-end; gap: 3px; height: 20px }
.liwarm__bars i { width: 6px; border-radius: 2px; background: rgb(16 33 31 / .12) }
.liwarm__bars i:nth-child(1) { height: 8px }
.liwarm__bars i:nth-child(2) { height: 14px }
.liwarm__bars i:nth-child(3) { height: 20px }
.liwarm.is-1 .liwarm__bars i:nth-child(-n+1) { background: var(--muted) }
.liwarm.is-2 .liwarm__bars i:nth-child(-n+2) { background: var(--amber) }
.liwarm.is-3 .liwarm__bars i { background: var(--good) }
.liwarm__word { font-size: 12.5px; font-weight: 700; line-height: 1 }
.lireasons { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0 0 0 20px; list-style: none; border-left: 1px solid var(--hair); min-width: 0 }
.lireason { display: grid; justify-items: start; grid-template-rows: 22px auto auto; row-gap: 3px; min-width: 0 }
.lireason__mark { display: inline-flex; align-items: center; height: 22px }
/* The state is the icon's colour: replied or booked green, top contact amber. */
.lireason__mark.tone--good { color: var(--good) }
.lireason__mark.tone--warn { color: #C98A00 }
.lireason__mark.tone--li { color: var(--linkedin) }
.lireason__mark .ms { font-size: 22px }
.lireason__word { font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--text); white-space: nowrap }
.lireason__age { font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap }
.sigcard { cursor: pointer }
.sigcard:hover { border-color: var(--ink) }

/* Their day, seven till eight: each column as tall as the chance they answer
   in that hour, the hour they are in now solid. Height carries the reading,
   so it holds without the colour. */
.callwin { display: inline-flex; align-items: flex-end; gap: 1px; height: 14px; color: var(--muted) }
.callwin i { display: block; width: 3px; border-radius: 1px; background: currentColor; opacity: .35 }
/* A tick under the hour they are in, so "now" still shows in a dead hour. */
.callwin i.now { opacity: 1; width: 4px; box-shadow: 0 3px 0 -1px currentColor }
.callwin--good i.now { color: var(--good) }
.callwin--fair i.now { color: var(--amber) }
.callwin--poor i.now { color: var(--text) }

/* One dot per call, coloured by how it went. Written with the card class so
   they outrank the toned card's own dot colour. */
.callcard .rail__dot--none { background: #CFC6A8 }
.callcard .rail__dot--wait { background: var(--amber) }
.callcard .rail__dot--warm { background: var(--teal) }
.callcard .rail__dot--good { background: #2E9E63 }
.callcard .rail__dot--bad  { background: #C0362C }
.callcard .rail__dot--next { background: transparent; box-shadow: inset 0 0 0 2px var(--muted) }

.callscript { min-width: 0 }

.callscript__card { border-color: var(--teal) }
/* The script, read mid-call: a numbered mark on each step's heading, the
   line to say in ink a step up from the why under it, the questions as rows
   that tick and fade once asked, the ask heaviest. */
.drawer__body .callscript__card .callscript__head { display: flex; align-items: center; justify-content: flex-start; gap: 10px }
.callscript__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums }
.drawer__body .callscript__card .callscript__n { color: #fff }
.drawer__body .callscript__card .callscript__head > .ms { font-size: 22px; width: 24px; text-align: center }
.callscript__say { line-height: 1.5; text-wrap: pretty }
.callscript__qs { list-style: none; margin: 0; padding: 0 }
.callscript__qs li + li { border-top: 1px solid var(--hair) }
.callscript__q { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer }
.callscript__qs li:first-child .callscript__q { padding-top: 0 }
.callscript__qs li:last-child .callscript__q { padding-bottom: 0 }
.callscript__tick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.5px solid #C9D1CE; color: transparent; transition: background-color .15s ease, border-color .15s ease }
.callscript__tick .ms { font-size: 16px }
.callscript__qtext { line-height: 1.5; text-wrap: pretty; transition: opacity .15s ease }
.callscript__q:hover .callscript__tick { border-color: var(--text) }
.callscript__q[aria-pressed="true"] .callscript__tick { background: #1F7A4A; border-color: #1F7A4A; color: #fff }
.callscript__q[aria-pressed="true"] .callscript__qtext { opacity: .45 }
.callscript__q:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px }
.drawer__body .callscript__ask { font-weight: 600; line-height: 1.5; text-wrap: pretty }
@media (prefers-reduced-motion: reduce) { .callscript__tick, .callscript__qtext { transition: none } }
.callscript__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px }
.callscript__block { padding: 14px 0; border-top: 1px solid var(--hair) }
.callscript__block:first-of-type { border-top: none }
.callscript__label {
  font-size: 11px; font-weight: var(--weight-strong); letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.callscript__text { font-size: 15px; line-height: 1.65; white-space: pre-line }
.callscript__list { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.65 }
.callscript__list li + li { margin-top: 6px }
/* Objections, every one open, as a chat: what they say in a grey bubble on
   the left, what to say back in a teal-washed one indented to the right, a
   gap between pairs. The bubbles are the picture, not boxes round text. */
.callscript__objections { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px }
.callscript__obj { display: flex; flex-direction: column; gap: 6px }
.callscript__they { align-self: flex-start; max-width: 85%; display: flex; flex-direction: column; gap: 4px }
.callscript__said { padding: 10px 14px; border-radius: var(--r-inner) var(--r-inner) var(--r-inner) 4px; background: #EEF1F0; line-height: 1.45; text-wrap: pretty }
.drawer__body .callscript__when { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 0 4px }
.callscript__when .ms { font-size: 14px }
.callscript__back { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: var(--r-inner) var(--r-inner) 4px var(--r-inner); background: color-mix(in srgb, var(--teal) 14%, #fff); color: var(--text) }
.callscript__back .callscript__text { line-height: 1.5; text-wrap: pretty; color: var(--text) }
/* The opener: Greet and Why I'm calling, a small label over each line, the
   lines the same size and ink so both read as easily. */
.callscript__line + .callscript__line { margin-top: 14px }
.callscript__line .callscript__label { display: block; margin: 0 0 4px; text-transform: none; letter-spacing: 0 }


/* A contact's email and number, with Email and Call beside them. */
.reachbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 14px; margin-bottom: 18px; border-bottom: 1px solid var(--hair) }
.reachbar__ways { display: flex; flex-wrap: wrap; gap: 8px 20px; min-width: 0 }
.reachbar__way { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); overflow-wrap: anywhere }
.reachbar__way .ms { font-size: 17px; color: var(--muted) }

/* ---- Contact drawer, Overview ---- */
/* Its sections head as the drawer's other tabs do, an icon and a few words. */
.drawer .ctsec__head { margin-bottom: 12px }
/* Pain point, Company fit and Person fit stay three across on a phone. */
.drawer .grid--3.ctfits { grid-template-columns: repeat(3, minmax(0, 1fr)) }
/* How to reach them: the label column narrows on a phone so an address
   is not broken mid-word. */
.reach__label { flex: 0 0 130px }
/* Research: sources as rows under rules, then when each part was looked into. */
.ctsrc__none { font-size: 13px }
.ctsrc { list-style: none; margin: 0; padding: 0 }
.ctsrc__row { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--hair) }
.ctsrc__row:first-child { border-top: 0; padding-top: 0 }
.ctsrc__note { font-size: 13.5px; line-height: 1.6 }
.ctsrc__link { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 12px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere }
.ctsrc__link:hover { color: var(--coral) }
.ctsrc__link .ms { font-size: 14px }
.ctfresh { display: flex; flex-direction: column; gap: 14px }
.ctsrc + .ctfresh, .ctsrc__none + .ctfresh { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair) }
.ctfresh__sum {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: 4px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: inherit; font-size: 11.5px; line-height: 1.5; color: var(--muted);
}
.ctfresh__sum[aria-expanded="true"] { display: block; -webkit-line-clamp: none }
.ctfresh__sum:hover { color: var(--text) }
.ready[hidden] { display: none }
/* Waiting on is ruled off from its neighbours as the cards round it are. */
.drawer .card + .ready:not([hidden]), .drawer .ready:not([hidden]) + .card { border-top: 1px solid var(--line); padding-top: 22px }
@media (max-width: 560px) {
  .drawer .grid--3.ctfits { gap: 8px }
  .drawer .ctfits .tile { padding: 12px }
  .drawer .ctfits .tile__big { font-size: 14px }
  .reach__label { flex-basis: 96px }
}

.calllog { display: flex; flex-direction: column; gap: 12px }
.calllog__label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: var(--weight-strong) }
.calllog__outcomes { display: flex; flex-wrap: wrap; gap: 8px }
.calllog__outcomes .chip { font-size: 12.5px }
.calllog__date { display: flex; align-items: center; gap: 10px; font-size: 13px }

.callhist { display: flex; flex-direction: column; gap: 10px }
.callhist__item { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--card) }
.callhist__notes { font-size: 13.5px; line-height: 1.6; margin-top: 8px; white-space: pre-line }

/* Recorded calls: what Candid made of one, under its row in the history. */
.callrec {
  display: inline-flex; align-items: center; margin-left: 6px;
  font-size: 11.5px; font-weight: var(--weight-strong); color: var(--muted);
}
.btn .callrec { color: inherit; opacity: .8 }
.callai { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; line-height: 1.6 }
.callai--working, .callai--muted { flex-direction: row; align-items: center; gap: 8px; color: var(--muted) }
.callai__spin {
  width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--teal); animation: callspin .9s linear infinite;
}
@keyframes callspin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .callai__spin { animation: none } }
.callai__summary { margin: 0 }
.callai__review {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: 12px; background: var(--page); border: 1px dashed var(--line);
}
.callai__review > span:first-child { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 220px }
.callai__select { max-width: 190px; padding-top: 6px; padding-bottom: 6px; font-size: 13px }
.callai__meeting {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--teal); background: var(--card);
}
.callai__meeting--done { border-color: var(--line); color: var(--muted) }
.callai__steps ul { margin: 0; padding-left: 18px }
.callai__audio { width: 100%; max-width: 420px; height: 36px }

.callcoach { border-top: 1px solid var(--hair); padding-top: 12px; display: flex; flex-direction: column; gap: 12px }
.callcoach__head { display: flex; align-items: center; gap: 12px }
.callcoach__head .ring__mid { font-size: 15px }
.callcoach__headline { font-weight: var(--weight-strong); font-size: 14px }
/* The talk split takes the full row; the three figures share the next. */
.callcoach__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.callcoach__metric {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--card);
}
.callcoach__metric .ms { font-size: 18px; color: var(--muted) }
.callcoach__metric--flag { border-color: var(--amber) }
.callcoach__metric--flag .ms { color: #8A5A00 }
.callcoach__mval { font-size: 15px; font-weight: var(--weight-strong); font-variant-numeric: tabular-nums }

.talksplit { grid-column: 1 / -1 }
.talksplit__ends { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; margin-bottom: 6px }
.talksplit__ends span { display: inline-flex; align-items: center; gap: 4px }
.talksplit__ends .ms { font-size: 16px; color: var(--muted) }
.talksplit__bar { position: relative; display: flex; gap: 2px; height: 10px }
.talksplit__bar i { display: block; height: 100% }
.talksplit__you { background: var(--teal); border-radius: 99px 0 0 99px }
.talksplit__them { background: #CFCFCF; border-radius: 0 99px 99px 0 }
.talksplit--high .talksplit__you { background: var(--amber) }
/* 60%: past this line the rep is doing most of the talking. */
.talksplit__line { position: absolute; left: 60%; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .5; border-radius: 1px }
.callcoach__list { display: flex; flex-direction: column; gap: 8px }
.callcoach__sub { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: var(--weight-strong) }
.callcoach__list--good .callcoach__sub .ms { color: var(--good) }
.callcoach__list--fix .callcoach__sub .ms { color: var(--amber) }
.callcoach__point { padding-left: 22px }
.callcoach__quote { display: block; margin-top: 2px; font-style: italic; color: var(--muted) }
.callcoach__try { margin-top: 4px }
.callcoach__ok { color: var(--good); font-weight: var(--weight-strong) }
.callcoach__obj summary { cursor: pointer; font-weight: var(--weight-strong); font-size: 12.5px; margin-bottom: 6px }
.callcoach__obj .callcoach__point { margin-top: 6px }

.calltranscript {
  width: 100%; max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--page);
}
.calltranscript__line { max-width: 85% }
.calltranscript__line--rep { align-self: flex-end; text-align: right }
.calltranscript__who { display: block; font-size: 11px; color: var(--muted) }

/* The bar pinned to the bottom of the screen for the length of a call. Above
   the drawer and its scrim, because the drawer is where calls are started. */
.callbar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px;
  width: min(560px, calc(100vw - 32px)); border-radius: 20px;
  background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-top);
}
.callbar .avatar { width: 36px; height: 36px; flex: 0 0 36px; font-size: 12px }
.callbar__who { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 13px }
.callbar__who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.callbar__status { opacity: .8 }
.callbar__clock { font-variant-numeric: tabular-nums }
.callbar__actions { display: flex; gap: 8px; flex: 0 0 auto }
.callbar .btn--ghost { color: var(--on-ink); border-color: rgba(255, 255, 255, .35); background: transparent }
.callbar__end { background: var(--bad); border-color: var(--bad); color: #FFF }
