/* ===========================================================================
   Side drawers: one type scale
   ---------------------------------------------------------------------------
   Every drawer screen, company and contact, uses these five roles and no
   other sizes. Levels are told apart by size first, then weight, then
   colour, and never by colour alone. A section heading is always larger and
   heavier than any name inside it, so a heading never reads as one of its
   own rows.

     Section  17px / 600 / ink     one per section: "Deals in the pipeline",
                                   "Contact methods", "Company fit",
                                   "Buying signals", "How to reach them"
     Item     15px / 500 / ink     the name of one thing in a list: a deal, a
                                   pain point, a channel, a person, a signal
     Figure   20-30px / 600        numbers and money only, tabular
     Body     14px / 400 / ink     sentences: problems, quotes, notes
     Lead     15px / 400 / ink     the one summary of who a record is (a
                                   person's bio), at 1.65 line height
     Label    12.5px / 500 / muted what a figure counts, dates, sources;
                                   a part inside an opened row ("Problem")
                                   is a Label at 13px / 600 in ink

   Vertical space says what belongs together: the parts of a section sit
   closer to each other than to the next section, and the same relation
   always gets the same gap.

     between sections    28px, a hairline, 28px
     heading to content  16px, in every section and in the fit strip
     inside a section    10-12px (a deal's name to its track)
     list rows           14px above and below, split by hairlines; the first
                         row sits flush under its heading
   Add a new drawer heading or name to its role here rather than giving it a
   size of its own. Last but for the fades, so it wins over the rules above.
   =========================================================================== */
.drawer {
  --dr-section: 17px; --dr-item: 15px; --dr-body: 14px; --dr-label: 12.5px;
  --dr-space-section: 28px; --dr-space-head: 16px; --dr-space-row: 14px;
}
/* Between sections: the same space either side of the hairline. */
.drawer__body { gap: var(--dr-space-section) }
.drawer__body .card + .card { padding-top: var(--dr-space-section) }

/* Containers: the Overview's sections, and every drawer screen as it moves
   to the reference design. The body turns page grey under the tabs; each
   section is a white container with its own heading, a 16px radius, a
   faint edge and the softest shadow, 12px from the next, so the grey between
   them does the grouping a hairline did. Nothing inside a container is boxed
   again. The company and contact drawers (`.drawer--boxes`) are grey
   themselves, not a grey layer on a white sheet, so a tab switching in never
   shows white behind it for a frame; only the header and tabs are white. */
.drawer.drawer--boxes { background: var(--page) }
/* Research while its own reads land (company-drawer.js): a holder only. */
.rsch__hold { display: contents }
.drawer--boxes .drawer__body,
.drawer__body:has(> .ovbox, > .ovglance, > :is(.deals, .acttab, .sigs, .notestab, .ctpanel, .rsch__hold, .rsch__veil, .calltab, .seqtab, .threadtab, .mtgtab)) { background: var(--page); padding: 16px 16px 32px; gap: 12px }
/* Sub tabs on the grey head the body and scroll away with it (overlays.js
   puts them there). The body's own padding gives them their edges; the 4px
   all round keeps the chosen chip's edge clear of the row's sideways
   scroll, and the margins give it back, so the first chip lines up with
   the containers and sits 16px above the first of them. */
.drawer__body > :is(.dealsbar, .notesbar) { padding: 4px; margin: -4px -4px 0 }
/* Cold outreach's head (Why now, then the sequence bar) heads the body the
   same way (Rob, 9 Nov 2026): not pinned, it scrolls away with the steps.
   Its two parts are the body's own rows, 12px apart like the containers. */
.drawer__body > .seqhead { display: contents }
.drawer__body > .seqhead > .seqbar { padding: 0; background: none }
.drawer__body .card.ovbox,
.drawer__body .card.ovbox + .card.ovbox {
  background: var(--card); border: 1px solid rgba(16, 33, 31, .07); border-radius: var(--r-box);
  padding: var(--pad-box); box-shadow: 0 1px 2px rgba(16, 33, 31, .04);
}
@media (max-width: 479px) {
  .drawer--boxes .drawer__body,
  .drawer__body:has(> .ovbox, > .ovglance, > :is(.deals, .acttab, .sigs, .notestab, .ctpanel, .rsch__hold, .rsch__veil, .calltab, .seqtab, .threadtab, .mtgtab)) { padding: 12px 12px 28px; gap: 10px }
  .drawer__body .card.ovbox, .drawer__body .card.ovbox + .card.ovbox { --pad-box: 18px; padding: var(--pad-box); --r-inner: max(var(--r-min), calc(var(--r-box) - var(--pad-box))) }
}

/* Section */
.drawer__body :is(.ovhead, .ctov__liname, .seqturn__head, .sigempty__head, .dealitem__name, .ovsum__label, .drawer__kicker, .h3, .ctsec__head, .ready__head h4, .calllog__label, .calltab__scripthead) {
  font-size: var(--dr-section); font-weight: var(--weight-strong); line-height: 1.3;
  letter-spacing: -.015em; color: var(--text); text-transform: none;
}
/* A section's count sits beside its heading as a Label. */
.drawer__body :is(.ovhead span, .contacts__count, .rsch__count) {
  font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums;
}
/* Heading to content: 16px. The deal board and the fit strip are flex
   columns, so their gap does it there. */
.drawer__body :is(.ovhead, .ctsec__head) { margin-bottom: var(--dr-space-head) }
.drawer__body .dealboard { gap: 20px }
.drawer__body .dealboard .ovhead { margin-bottom: calc(var(--dr-space-head) - 20px) }
.drawer__body .ovsum__cell { gap: var(--dr-space-head) }
/* List rows: 14px each side; the first sits flush under its heading. */
.drawer__body .lever { padding: var(--dr-space-row) 0 }
.drawer__body .levers > .lever:first-child { padding-top: 4px }

/* Item */
.drawer__body :is(.seqstep__name, .seqturn__name, .dealrow__name, .dealbar .stagepick__btn, .dealband__lead, .dealhead__worth .stagepick__btn, .dealtrack__here.is-won > span, .dealstep__text, .lever__name, .chlist__name b, .dealfact__who, .ranked__name, .ctrow__name, .ctcom__name, .ready__top b, .feed__primary b, .actrow__what,
  .rsch__headline, .rsch__point, .ligroup__name, .story__title, .ovlead__angle, .rsch__statetext b, .rsch__road .warmup__words, .sigitem__what, .sigstep__ask, .sigart__node > b, .callring__state, .callscript__said, .callscript__say, .callscript__qtext, .callscript__ask, .callbest__time, .callbest__label,
  .ctov__what, .ctodo__name, .ctreach__name b, .mtgrow__name, .comtg__name, .mtgsay__kind, .mtgwho__name, .mtgagenda__item, .calgap__why, .notes__name, .noterow__name, .whynow__what) {
  font-size: var(--dr-item); font-weight: 500; letter-spacing: -.005em; color: var(--text);
}

/* Figure: a value that stands on its own is at least 20px, so it never
   reads as the heading over it; a number inside a list row takes the row's
   size, in semibold. */
.drawer__body :is(.dealrow__value, .dealitem__value, .dealfact__fig, .rsch__fig, .sigitem__left b, .ctov__fig b, .callring__phone, .callfig__value, .mtgprep__aim, .whynow__top > .whynow__fig b, :where(.wheel--lg) .wheel__inner) { font-size: 20px; font-weight: var(--weight-strong); letter-spacing: -.02em }
.drawer__body .dealitem__value { font-size: 24px }
.drawer__body :is(.ctov__photo, .ctov__liface) { font-size: 30px; font-weight: var(--weight-strong); letter-spacing: -.02em }
.drawer__body :is(.lever__score, .lever__rank, .ranked__rank, .ctrow__rank, :where(.chlist__fig) .ring__mid) {
  font-size: var(--dr-item); font-weight: var(--weight-strong); font-variant-numeric: tabular-nums;
}

/* Body */
.drawer__body :is(.seqwhy__text, .ctov__liline, .dealabout, .dealband__tail, .dealmoved__what, .dealmoved__why, .dealhist__why, .dealitem__movedwhy, .dealnote__add > span, .noterow__body, .richtext, .ppline__text, .ppline__proof, .ppsrc__said q, .feed__note, .callscript__text, .dealfact__none,
  .rsch__digest, .rsch__line, .story__line, .ovlead__pts li, .lipost__words, .lipost__signal, .rvw__quote, .rsch__summary, .notes__words, .rsch__what, .rsch__row dd, .sigsrc__quote, .sigstep__why, .sigwhy__why, .sigempty__lede, .callring__said, .callring__reason, .callai__summary, .callcoach__try, .ctov__sub,
  .ctreach__value, .ready__quote, .ctodo__autowhat, .dsrc__value, .mtgrow__said, .mtgstep__title, .mtgcol__list span, .mbrief__pts li, .mtgsay__body) {
  font-size: var(--dr-body); font-weight: 400; line-height: 1.6;
}

/* Lead: the one summary that says who a record is (a person's bio at the
   top of their Overview), read before anything else (Rob, 16 Nov 2026).
   The Item's size in the Body's weight, with more air between its lines,
   so it reads larger and clearer than the sentences under it and still
   sits under the name it describes. */
.drawer__body :is(.ctov__bio) {
  font-size: var(--dr-item); font-weight: 400; line-height: 1.65; color: var(--text);
}

/* Label */
.drawer__body :is(.seqstep__meta, .seqturn__title, .seqturn__order, .seqstep__saved, .seqstep__count, .seqstep__edited, .seqstep__tier, .seqstep__subjcap, .seqstep__send > span, .seqstep__go, .seqbar__state > span, .seqbar__warn, .seqdnc__why, .seqnone__detail,
  .noterow__head, .chlist__fig > span, .chlist__when, .chlist__none, .ppsrc__meta, .ppline__count, .ppline__when, .who__fitlabel, .sigstep__none, .rsch__path, .actrow__sub, .actrow__when, .actrow__who, .actquiet__said,
  .feed__sub, .tile__label, .factbox__label, .callscript__label, .ovsum__value span, .ranked__fitlabel, .rsch__fresh, .lever__key, .whynow__fig span,
  .thread__day span, .thread__dealbtn > span, .dealsaid__go time, .dealitem__kind, .dealfact__label, .dealfact__note, .dealitem__hist, .dealitem__says, .dealstep__when, .dealhist__meta, .dealbar__label, .dealstrip__at, .dealdays__wd, .dealdays__ev, .dealmoved__when,
  .rsch__when, .rsch__meta, .rsch__figsub, .ligroup__sub, .ligroup__count, .lipost__meta, .story__when, .story__by, .story__count, .srcs__state, .rsch__byline, .rsch__story .rsch__bears, .rsch__row dt, .rsch__statetext span, .rsch__read, .rsch__said, .rsch__toldmeta, .rsch__noemail, .rsch__thin, .srcbtn, .heardline__fact .figcap,
  .sigsrc__line > span:not(.ms), .sigitem__out, .sigitem__out > span:not(.ms), .sigitem__left span, .sigitem__why, .sigwhy__label, .sigwhy__place > span, .sigart__when,
  .ctrow__title, .ctrow__last, .ctcom__none, .ctcom__means, .ctfind__busy,
  .callring__label, .callring__clock, .callring__why, .callring__err, .callbest__now, .callday__hours span, .callfig__sub, .callscript__when,
  .ctov__licount, .ctov__when, .ctodo__when, .ctodo__count, .ctodo__day, .ctodo__free, .ctodo__blktime, .ctov__headline, .ctreach__state, .ctreach__foot, .dsrc__label, .ready__meta, .mtgrow__when, .comtg__time span, .mtgrow__state, .mtgrow__bot, .mtgrow__out, .mtgstep__when, .mtgtalk__ends, .mtgnone, .tabempty > span:not(.ms), .boxnone > span:not(.ms),
  .mtgsay__src, .mtgsay__state, .mtgsay__answer, .mtgwho__title) {
  font-size: var(--dr-label); font-weight: 500; letter-spacing: 0; color: var(--muted); text-transform: none;
}
/* A name or figure inside a Label line, and a part's heading inside an
   opened row, is a Label in ink and semibold. */
.drawer__body :is(.seqstep__state, .ctov__lisubhead, .dealstep__label, .thread__dealbtn b, .dealsaid__go b, .dealmeta__item .dealfact__fig, .dealmeta__item .dealfact__who, .dealmeta__item .dealfact__none, .dealsaid__who b, .dealitem__says b, .dealstrip__name, .noterow__about, .notes__group, .ppline__head h4, .ppsrc__meta b, .msg__who, .chlist__when b, .dealhist__body > b, .actrow__sub b,
  .rsch__byline b, .rsch__toldmeta > b, .sigsrc__line > b, .sigitem__out > b, .ctcom__head b, .ctrow__last b, .ctfind__busy b, .callring__clock b, .callring__keeper, .callbest__title, .callday__now b, .callday__day, .ctreach__foot b, .ctodo__head, .mtgpart__head, .mbrief__head, .mtgtalk__ends b, .mtgsay__src b,
  .ovsum__state, .sigstep__dnc, .story__yearhead, .srcs__name, :where(.who__fit) .wheel__inner, :where(.actrow) .statemark) {
  font-size: 13px; font-weight: var(--weight-strong); color: var(--text);
}
/* Tones the roles above would otherwise set back to ink or muted: late in
   red, lost in red, a figure with nothing in it muted. */
.drawer__body :is(.dealfact__fig.is-late, .is-late .dealfact__note, .dealstep.is-late .dealstep__when) { color: var(--bad) }
/* A company that may not be cold emailed says so in amber; a legal form
   not yet settled is muted, like a figure with nothing in it. */
.drawer__body .rsch__noemail { color: #8A5A00 }
.drawer__body .rsch__pick.is-none { color: var(--muted) }
/* A buying signal with something to do: what was seen and where is grey, so
   the step under it, in ink, reads first. A source still turns coral on hover. */
.drawer__body .sigitem:has(> .sigstep) :is(.sigitem__what, .sigsrc__line, .sigsrc__line > b, .sigsrc__quote) { color: var(--muted) }
.drawer__body .sigitem :is(a, button).sigsrc__line:hover > b { color: var(--coral) }
/* A sequence step with no words to send says so in red. */
.drawer__body .seqstep .seqstep__state.is-bad { color: var(--bad) }
/* Where a step stands, in the tone of its mark: sent green, approved teal
   ink, waiting on a yes amber, not going muted. */
.drawer__body .seqstep .seqstep__state.is-good { color: #1F7A4A }
.drawer__body .seqstep .seqstep__state.is-go { color: color-mix(in srgb, var(--teal) 62%, var(--ink)) }
.drawer__body .seqstep .seqstep__state.is-wait { color: #8A5A00 }
.drawer__body .seqstep .seqstep__state.is-off { color: var(--muted) }
/* The step carrying the link a held draft is held for, in the warn tone. */
.drawer__body .seqstep .seqstep__state.seqstep__held { color: #8A5A00 }
.drawer__body .seqbar .seqbar__warn { color: #8A5A00 }
/* A state keeps its tone over the ink: the fit's "Above 60" in green, an
   activity row's state and a signal's Do not contact in their own colours. */
.drawer__body .ovsum__state.is-good { color: #1E7A4A }
.drawer__body .ovsum__state.is-low, .drawer__body .actrow .statemark--warn { color: #8A5A00 }
.drawer__body .ovsum__state.is-none, .drawer__body .actrow .statemark--muted { color: var(--muted) }
.drawer__body .actrow .statemark--good { color: #23794C }
.drawer__body .actrow .statemark--teal { color: color-mix(in srgb, var(--teal) 62%, var(--ink)) }
.drawer__body .actrow .statemark--bad { color: var(--bad) }
/* A research step not reached yet keeps the road's muted name under the Item's ink. */
.drawer__body .rsch__road .warmup__stop--next .warmup__words { color: var(--muted) }
.drawer__body .sigstep .sigstep__dnc { color: #B23A22 }
/* A fit ring by a "Fit" label holds its 13px figure: one size in every row. */
.drawer__body .who__fit .wheel { width: 34px; height: 34px; flex-basis: 34px }
.drawer__body .who__fit .wheel__inner { width: 26px; height: 26px }
/* A signal's outcome keeps its tone over the Label's grey: acted on in green,
   not acted on in red. Who sent it stays ink and the date grey. */
.drawer__body .sigitem .sigitem__out.is-good { color: #1F7A4A }
.drawer__body .sigitem .sigitem__out.is-bad { color: #B23A22 }
/* A meeting keeps its tones over the Label grey: held in green, a no-show
   and a late step in red, a step done in green, the notetaker in its own. */
.drawer__body .mtgrow .mtgrow__out.is-good, .drawer__body .mtgsteps .mtgstep.is-done .mtgstep__when { color: #1F7A4A }
.drawer__body .mtgrow .mtgrow__out.is-bad, .drawer__body .mtgsteps .mtgstep.is-late .mtgstep__when { color: #B23A22 }
.drawer__body .mtgrow .mtgrow__when .mtgrow__flag { color: #8A5A00 }
.drawer__body .mtgrow .mtgrow__bot:is(.is-on, .is-live) { color: color-mix(in srgb, var(--teal) 62%, var(--ink)) }
.drawer__body .mtgrow .mtgrow__bot:is(.is-rec, .is-off) { color: #B23A22 }
.drawer__body .mtgrow .mtgrow__bot.is-done { color: #1F7A4A }
.drawer__body :is(.dealfact__none, .dealitem__value.is-none, .dealitem__name.is-none, .dealstep__text.is-none, .dealitem.is-lost .dealitem__name, .dealitem.is-lost .dealitem__value) { color: var(--muted) }
/* A fact not set yet recedes: its prompt is lighter than a value that is there. */
.drawer__body .dealmeta__item .dealfact__none { font-weight: 400 }
.drawer__body .dealitem__hist:is(:hover, [aria-expanded="true"]), .drawer__body .dealitem__sum button.dealitem__more { color: var(--text) }

/* Nothing scrolls into a hard edge. Content passing under a pinned heading,
   or out of the top or bottom of a scrolling list, fades out instead of being
   cut off mid-line. An edge that is a drawn line (the topbar's hairline, a
   bordered box) is a deliberate edge and keeps it.

   Pinned headings: a fading strip under them, shown only while pinned, so
   at rest it never washes over the first row: Pipeline's stage heads.
   Companies' column heads and Conversations' top row have none (Rob,
   12 Nov 2026): Companies' heads end in a hairline instead. */
/* A stage head's strip is the lane's own tint (the head's background, faded
   by a mask), so it follows the lane as a dragged card deepens it. */
.board__colhead::after, .board__share::after {
  position: absolute; left: 0; right: 0; top: 100%; height: 24px;
  background: inherit; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent);
  pointer-events: none; opacity: 0; transition: opacity .16s ease;
}
.board__colhead::after { content: "" }
.pipe.is-stuck .board__colhead::after { opacity: 1 }
/* On a phone the stages stack, so only the head actually pinned fades; one
   resting at the top of a later lane keeps its first card clear. A head can't
   query its own pinned state, so its bar row (static, so the strip still
   hangs from the head) draws the strip there. */
@media (max-width: 767px) {
  .pipe.is-stuck .board__colhead::after { opacity: 0 }
  @supports (container-type: scroll-state) {
    .board__colhead { container-type: scroll-state }
    .board__colhead::after { content: none }
    .board__share { background: inherit }
    .board__share::after { content: "" }
    @container scroll-state(stuck: top) { .board__share::after { opacity: 1 } }
  }
}

/* Scrolling lists: the ends fade only while there is more to scroll that way,
   so a list at rest at the top shows its first row whole. A list too short to
   scroll has no timeline, so it never fades. Browsers without scroll-driven
   animations keep the plain edge. The side drawer is left out on purpose: its
   body is a whole page, not a list, and a fade there reads as washed-out
   content. */
@property --fade-top    { syntax: '<length>'; inherits: false; initial-value: 0px }
@property --fade-bottom { syntax: '<length>'; inherits: false; initial-value: 0px }
@keyframes fade-edges {
  0%       { --fade-top: 0px;  --fade-bottom: 24px }
  6%, 94%  { --fade-top: 24px; --fade-bottom: 24px }
  100%     { --fade-top: 24px; --fade-bottom: 0px }
}
@supports (animation-timeline: scroll()) {
  .picklist, .fontpick__list, .mtgrec__script, .impsum__errors, .prof--live .prof__sections, .bellpanel__list {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent);
    animation: fade-edges linear both; animation-timeline: scroll(self);
  }
}

/* The same for strips that scroll sideways: the drawer's tabs on a phone,
   where the last few run off the right edge, and the Companies table on a
   phone, whose names would otherwise be cut mid-word on the left and its
   stage track mid-segment on the right. The table only scrolls below 900px;
   wider, a mask would just clip row outlines, so it's left off there. */
@property --fade-left  { syntax: '<length>'; inherits: false; initial-value: 0px }
@property --fade-right { syntax: '<length>'; inherits: false; initial-value: 0px }
/* Pipeline's board slides rather than scrolls, so no timeline: its frame fades
   a side only while the board has more that way (has-left / has-right). */
.board__view {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent);
          mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent);
  transition: --fade-left .2s ease, --fade-right .2s ease;
}
.board__wrap.has-left > .board__view { --fade-left: 64px }
.board__wrap.has-right > .board__view { --fade-right: 64px }
@keyframes fade-edges-x {
  0%       { --fade-left: 0px;  --fade-right: 24px }
  6%, 94%  { --fade-left: 24px; --fade-right: 24px }
  100%     { --fade-left: 24px; --fade-right: 0px }
}
@supports (animation-timeline: scroll()) {
  .drawer__tabs, .dealsbar, .notesbar, .table__scroll, .dealdays {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent);
            mask-image: linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent);
    animation: fade-edges-x linear both; animation-timeline: scroll(self inline);
  }
  @media (min-width: 901px) { .table__scroll { -webkit-mask-image: none; mask-image: none; animation: none } }
  /* The fade says "there is more" now, so the edge shadow that did goes. */
  @media (max-width: 900px) { .table__scroll { background: none } }
}

/* ---- Today: the day calendar, calmer ----
   One language for every block, after Mindtrip, Square and Notion Calendar:
   no stripe down the side. Each block is a soft wash of what it is, edged all
   round by a hairline in the same colour (--bar), with the icon in it too, so
   a block reads as one shape rather than a tile, a bar and a fill competing.
   Client meetings carry the strongest wash; their prep the same colour,
   lighter, so it reads as part of them; the rep's own diary is fine hairline
   hatching on white; lunch is barely there. A 2px gap keeps neighbours apart. */
.daycal__item { box-sizing: border-box; padding-block: 2px }
.daycal__block {
  border: 1px solid color-mix(in srgb, var(--bar, var(--line)) 30%, var(--card));
  background: var(--card); color: var(--text); box-shadow: none;
}

/* Candid's work: the section's colour on the bar and the icon. */
.daycal__block--work { --bar: var(--tone); --wash: color-mix(in srgb, var(--tone) 10%, var(--card)); background: var(--wash) }
.daycal__block--work:hover { background: color-mix(in srgb, var(--tone) 17%, var(--card)); box-shadow: none }
.daycal__block--work .daycal__face,
.daycal__block--work .daycal__botdot { box-shadow: 0 0 0 2px var(--wash) }
.daycal__item.is-past .daycal__block--work { --bar: color-mix(in srgb, var(--tone) 45%, var(--card)) }

/* Client meetings: the fixed points of the day, so the strongest mark. */
.daycal__block--meeting { --bar: var(--teal); background: color-mix(in srgb, var(--teal) 20%, var(--card)); color: var(--text) }
a.daycal__block--meeting:hover { background: color-mix(in srgb, var(--teal) 28%, var(--card)); color: var(--text) }
.daycal__block--meeting .daycal__top .ms { color: color-mix(in srgb, var(--teal) 55%, var(--ink-fixed)) }
.daycal__block--meeting .daycal__title { font-weight: var(--weight-strong) }
.daycal__block--meeting .daycal__when,
.daycal__block--meeting .daycal__kind,
.daycal__block--meeting .daycal__open { color: var(--muted) }
a.daycal__block--meeting:hover .daycal__open { color: var(--text) }
.daycal__block--meeting .daycal__client { color: var(--text) }
.daycal__block--meeting .daycal__flag { color: var(--bad) }
.daycal__block--meeting .daycal__notes { color: var(--text) }
/* Auto notes, the same marker on a meeting and on a block of calls:
   Candid's sound wave, four bars, beside the words. On: teal bars. Taking
   notes: coral bars rising and falling. Taken: green bars. Off: the bars
   flat to grey dots and the words grey. Failed: flat coral dots. */
:is(.daycal__block--meeting, .daycal__block--work) .daycal__bot { --wave: color-mix(in srgb, var(--teal) 80%, var(--ink-fixed)); color: var(--text) }
.daycal__wave { display: inline-flex; align-items: center; gap: 2px; height: 16px; flex: 0 0 auto }
.daycal__wave i { width: 3px; height: 16px; border-radius: 2px; background: var(--wave) }
.daycal__wave i:nth-child(1) { height: 7px }
.daycal__wave i:nth-child(2) { height: 14px }
.daycal__wave i:nth-child(3) { height: 10px }
.daycal__wave i:nth-child(4) { height: 5px }
.daycal__block .daycal__bot--rec { --wave: var(--coral) }
.daycal__block .daycal__bot--done { --wave: var(--good) }
.daycal__block .daycal__bot--off { --wave: var(--coral) }
.daycal__block .daycal__bot--none { --wave: color-mix(in srgb, var(--muted) 55%, var(--card)); color: var(--muted); font-weight: 500 }
.daycal__block :is(.daycal__bot--off, .daycal__bot--none) .daycal__wave i { height: 3px }
@media (prefers-reduced-motion: no-preference) {
  .daycal__bot--rec .daycal__wave i { animation: cdWave 1s ease-in-out infinite; transform-origin: center }
  .daycal__bot--rec .daycal__wave i:nth-child(2) { animation-delay: -.25s }
  .daycal__bot--rec .daycal__wave i:nth-child(3) { animation-delay: -.5s }
  .daycal__bot--rec .daycal__wave i:nth-child(4) { animation-delay: -.75s }
}
@keyframes cdWave { 50% { transform: scaleY(.35) } }
.daycal__block--meeting .daycal__face,
.daycal__block--meeting .daycal__botdot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 20%, var(--card)) }
.daycal__item.is-past .daycal__block--meeting { --bar: color-mix(in srgb, var(--teal) 45%, var(--card)); background: var(--page) }
.daycal__item.is-past .daycal__client { color: var(--muted) }
.daycal__item.is-now .daycal__block--meeting { box-shadow: 0 0 0 2px var(--teal) }

/* Prep: the meeting's bar, lighter, so it reads as part of the meeting. */
.daycal__block--prep { --bar: color-mix(in srgb, var(--teal) 50%, var(--card)); background: color-mix(in srgb, var(--teal) 8%, var(--card)) }
.daycal__block--prep:hover { background: color-mix(in srgb, var(--teal) 14%, var(--card)) }
.daycal__block--prep .daycal__top .ms { color: var(--muted) }
.daycal__block--prep .daycal__title { font-weight: 500 }
.daycal__item.is-past .daycal__block--prep { background: var(--page) }

/* Candid's questions, first thing (app/today-facts.js): Candid's own ink on
   the bar, apart from the sections' colours, with how many wait on the right. */
.daycal__block--questions { --tone: var(--text); --bar: var(--text); background: color-mix(in srgb, var(--text) 5%, var(--card)); border-color: color-mix(in srgb, var(--text) 16%, var(--card)) }
.daycal__block--questions:hover { background: color-mix(in srgb, var(--text) 10%, var(--card)) }
.daycal__item.is-past .daycal__block--questions { --bar: color-mix(in srgb, var(--text) 45%, var(--card)) }

/* The rep's own diary: fine hairline hatching on white, a neutral edge,
   Clockwise-style, so it reads as time taken without shouting. */
.daycal__block--busy {
  background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--line) 75%, transparent) 7px 8px), var(--card);
  border-color: color-mix(in srgb, var(--line) 80%, var(--card)); color: var(--muted);
}
.daycal__block--busy .daycal__title { color: var(--text) }
.daycal__item.is-past .daycal__block--busy { background: var(--page) }

/* Lunch: hatched like the rest of the diary, as time Candid leaves alone. */
.daycal__block--lunch {
  background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--line) 75%, transparent) 7px 8px), var(--card);
  border: 1px solid color-mix(in srgb, var(--line) 80%, var(--card)); color: var(--muted);
}
.daycal__block--lunch .daycal__title { color: var(--text) }
.daycal__item.is-past .daycal__block--lunch { background: var(--page) }

/* A section finished today: green on the edge, as the others carry theirs. */
.daycal__block--done { --bar: #64748B; background: color-mix(in srgb, #64748B 9%, var(--card)) }
.daycal__block--done:hover { background: color-mix(in srgb, #64748B 15%, var(--card)) }

/* The past, read at a glance, as Motion marks its finished tasks: done is a
   filled green tick (finished work, and meetings and prep that have ended);
   not finished is a hollow ring on a dashed, faded block, with when the rest
   now happens in amber. */
.daycal__block--done { --bar: var(--good); background: var(--page) }
.daycal__block--done:hover { background: color-mix(in srgb, var(--good) 8%, var(--page)) }
.daycal__item.is-past :is(.daycal__block--meeting, .daycal__block--prep) .daycal__top .ms {
  color: var(--good); font-variation-settings: 'FILL' 1;
}
.daycal__block--missed {
  --bar: color-mix(in srgb, var(--tone) 40%, var(--card));
  background: var(--page); border-style: dashed; color: var(--muted);
}
.daycal__block--missed:hover { background: color-mix(in srgb, var(--tone) 8%, var(--page)) }
.daycal__block--missed .daycal__top .ms { color: var(--muted) }
.daycal__block--missed .daycal__title { color: var(--muted) }
.weekcal__block.daycal__block--missed .weekcal__when { display: flex; align-items: center; gap: 2px; color: #A15C07; font-weight: 600 }
.weekcal__block.daycal__block--missed .weekcal__when .ms { font-size: 13px }

/* Everything behind now is see-through, so the past recedes and the rest of
   the day stands out. The tick, the ring and the done and moved-to figures
   stay solid, so whether it was done still reads at a glance. Hover brings a
   block back in full. */
.daycal__item.is-past .daycal__block { border-color: color-mix(in srgb, var(--line) 45%, transparent) }
.daycal__item.is-past :is(.daycal__title, .daycal__when, .daycal__kind, .daycal__source, .daycal__faces,
  .daycal__open, .daycal__bot, .daycal__notes, .daycal__ready, .daycal__meterwords, .weekcal__title) {
  opacity: .5; transition: opacity .15s ease;
}
.daycal__item.is-past .daycal__block:is(:hover, :focus-visible) :is(.daycal__title, .daycal__when, .daycal__kind,
  .daycal__source, .daycal__faces, .daycal__open, .daycal__bot, .daycal__notes, .daycal__ready, .daycal__meterwords, .weekcal__title) {
  opacity: 1;
}
.daycal__item.is-past .daycal__block--busy .daycal__top .ms,
.daycal__item.is-past .daycal__block--lunch .daycal__top .ms { opacity: .5 }
@media (prefers-reduced-motion: reduce) {
  .daycal__item.is-past :is(.daycal__title, .daycal__when, .daycal__open) { transition: none }
}

/* "Open" on every block repeated what the block already is (a link), and
   kept hidden it still held a gap at the right of every block; with a mouse
   it goes, the block's hover wash saying it opens. Touch screens keep it. */
@media (hover: hover) {
  .daycal__item .daycal__block .daycal__open { display: none }
}

/* What is on now: ringed in the red of the now line, the edge included. */
.daycal__item.is-now .daycal__block,
.daycal__item.is-now .daycal__block--work,
.daycal__item.is-now .daycal__block--meeting { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad) }

/* What is on now, after Clockwise, Rise and ClickUp: its time reads "Now
   until 09:15", "Now" in the now line's red; and the block lifted off the
   day by a soft red glow on its ring, so the eye lands on it first. The now
   line running across it says how far through it is; the part gone is not
   shaded as well, which read as a second colour on one block. */
.daycal__nowis { font-weight: var(--weight-strong); color: var(--bad) }
.daycal__item.is-now .daycal__block {
  box-shadow: 0 0 0 1px var(--bad), var(--shadow-low);
}

/* A meeting's prep, joined to it: no gap between them, the inner corners
   square, one edge in the meeting's colour round both and a dashed seam
   where prep ends, so the two read as one card in two parts. */
.daycal__item.is-joined { padding-bottom: 0 }
.daycal__item.is-prepped { padding-top: 0 }
.daycal__item.is-joined .daycal__block {
  border-bottom: 1px dashed color-mix(in srgb, var(--teal) 55%, var(--card));
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.daycal__item.is-prepped .daycal__block { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0 }
.daycal__item.is-joined .daycal__block--prep { --bar: var(--teal) }

/* Candid in Claude: the consent page (renderConsent) and Settings, Claude
   (claudeTab). The consent page sits in the sign-in layout; its list is rows
   split by hairlines, the marks are logos rather than tiles. */
.consent__loading { display: grid; place-items: center; min-height: 240px }
.modal.consent { width: min(440px, calc(var(--vw) * .92)) }
.modal.consent > .modal__head { margin-bottom: 8px }
.modal.consent .consent__marks, .modal.cconnect .consent__marks { margin: 0; gap: 8px; flex: 0 0 auto }
.modal.consent .consent__loading { min-height: 160px }
.consent__marks .consent__claude { width: 24px; height: 24px }
.consent__marks { display: flex; align-items: center; gap: 14px; margin-bottom: 22px }
.consent__marks img { height: 24px; width: auto; max-width: 120px; object-fit: contain }
.consent__marks .consent__link { font-size: 20px; color: var(--muted) }
.consent__marks .consent__app { font-size: 40px; color: var(--ink) }
.consent__list { list-style: none; margin: 16px 0 20px; padding: 0 }
.consent__list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 14px }
.consent__list li:first-child { padding-top: 0 }
.consent__list li:last-child { border-bottom: 0 }
.consent__list .ms { font-size: 20px; color: var(--good); flex: 0 0 auto }
.consent__off { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 500; color: var(--bad) }
.consent__off > .ms { font-size: 22px }
.consent__off > span:first-of-type { flex: 1 }
.consent__ask { font-size: 12.5px; color: var(--muted); font-weight: 500 }
.consent__who { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--muted) }
.consent__who > .ms { font-size: 20px }
.consent__who b { color: var(--ink); font-weight: 600 }
.consent__who .linkbtn { margin-left: auto }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.consent__actions:has(> :only-child) { grid-template-columns: 1fr }
.consent__list--no .ms { color: var(--bad) }
.consent__return { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--muted) }
.consent__return .ms { font-size: 15px }

.chip__mark { width: 16px; height: 16px; flex: 0 0 auto }
.mcpconn { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px }
.mcpconn + .mcpconn { border-top: 1px solid var(--hair); padding-top: 14px; margin-top: 14px }
.mcpconn__mark { width: 20px; height: 20px; flex: 0 0 auto }
.mcpconn__name { font-size: 15px; font-weight: 500 }
.mcpconn__on, .mcpconn__off { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500 }
.mcpconn__on { color: var(--good) }
.mcpconn__off { color: var(--muted) }
.mcpconn__on .ms, .mcpconn__off .ms { font-size: 18px }
.mcpconn__since { flex: 1; font-size: 12.5px; color: var(--muted) }
.mcpconn--none .mcpconn__off { flex: 1 }
.connsteps { list-style: none; margin: 0; padding: 0 }
.connstep { display: grid; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair) }
.connstep:first-child { padding-top: 0 }
.connstep:last-child { border-bottom: 0; padding-bottom: 0 }
.connstep__head { display: flex; align-items: baseline; gap: 10px }
.connstep__n { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 14px }
.connstep__label { font-size: 15px; font-weight: 500 }
.connstep__shot { display: block; width: 100%; height: auto; border: 1px solid var(--hair); border-radius: 10px }
/* Connect Claude (openClaudeConnect, app/claude-connect.js): the four steps
   listed together, and Claude's own screen for the chosen one beside them.
   The pictures are four different shapes, so they sit on one stage of the
   page grey at a fixed height, never stretched past their own size, and the
   dialog holds still as the step changes. The chosen step is the sub tabs'
   grey wash. Under 720px the picture goes between the steps and the address. */
.modal.cconnect { width: min(820px, calc(var(--vw) * .92)) }
.modal.cconnect > .modal__head { margin-bottom: 8px }
.cconnect__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start }
.cconnect__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px }
.cconnect__step {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: baseline; gap: 10px;
  width: 100%; min-height: 44px; padding: 11px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; line-height: 1.35;
  text-align: left; text-wrap: pretty; cursor: pointer;
}
.cconnect__step:hover { background: color-mix(in srgb, var(--text) 5%, transparent) }
.cconnect__step[aria-current="step"] { background: color-mix(in srgb, var(--text) 9%, transparent) }
.cconnect__n { font-weight: 600; font-variant-numeric: tabular-nums }
.cconnect__addr { margin-top: 14px; padding: 14px 0 0 12px; border-top: 1px solid var(--hair) }
.cconnect__view {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
  height: 300px; margin: 0; padding: 16px; border-radius: 12px; background: var(--page);
}
.cconnect__shot { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border: 1px solid var(--hair); border-radius: 8px }
.cconnect__state { display: flex; align-items: center; gap: 10px; min-width: 0 }
@media (max-width: 720px) {
  .cconnect__body { grid-template-columns: minmax(0, 1fr); gap: 14px }
  .cconnect__how { display: contents }
  .cconnect__view { order: 1; height: 220px; padding: 12px }
  .cconnect__addr { order: 2; margin-top: 0; padding: 0 }
  .modal.cconnect > .row:last-child { flex-wrap: wrap }
  .modal.cconnect > .row:last-child > .cconnect__state { flex: 1 0 100% }
}
.mcpurl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.mcpurl__value { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; color: var(--ink) }
.mcpcalls__row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 14px }
.mcpcalls__row:first-child { padding-top: 0 }
.mcpcalls__row:last-child { border-bottom: 0 }
.mcpcalls__icon { font-size: 20px; color: var(--muted) }
.mcpcalls__bad { font-size: 20px; color: var(--bad) }
.mcpcalls__tool { font-weight: 500 }
.mcpcalls__who, .mcpcalls__when { font-size: 12.5px; color: var(--muted); white-space: nowrap }
.mcpcalls__none { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted) }
@media (max-width: 640px) {
  .mcpcalls__row { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .mcpcalls__who { display: none }
}

/* Getting started: set up, nothing landed yet (warmupState in app.js). The
   page's own heading and sentence with a picture of the page once its work
   has landed (beside them in a card, over them where the page's list would
   be), then the four steps side by side with their bars, then the latest
   finds in two columns. Compact: one screen, no scrolling on a laptop. It is
   a map of what will happen, not a wait: nothing in it spins or pulses. */
.card.warmup {
  display: grid; gap: 24px; padding: 28px;
  border: 1px solid rgba(16, 33, 31, .07); border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 33, 31, .04);
}
.card.warmup .warmup__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 32px }
.warmup__copy { display: flex; flex-direction: column; min-width: 0 }
.warmup__head { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--text); text-wrap: balance }
.warmup__lede { margin: 8px 0 0; max-width: 46ch; font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty }
.warmup__actions { margin-top: 18px }

/* The steps: four equal columns, each its mark and name on one line, its
   bar over an empty track, and its figures. Columns split by space only. */
.warmup__road { list-style: none; margin: 0; padding: 20px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--hair) }
.warmup__stop { position: relative; display: grid; justify-items: start; gap: 4px; min-width: 0; text-align: left }
/* The line from each mark to the next, green out of a finished step. */
.warmup__stop:not(:last-child)::after {
  content: ""; position: absolute; top: 14px; left: 38px; right: -6px; height: 2px; border-radius: 1px; background: var(--line);
}
.warmup__stop--done:not(:last-child)::after { background: var(--good) }
.warmup__node {
  width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--card); color: #9A9A9A;
}
.warmup__node .ms { font-size: 16px }
.warmup__words { min-width: 0; max-width: 100%; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.warmup__status { min-width: 0; max-width: 100%; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums }
.warmup__stop--done .warmup__node { border-color: var(--good); background: var(--good); color: #FFF }
.warmup__stop--done .warmup__words, .warmup__stop--now .warmup__words, .warmup__stop--stuck .warmup__words { color: var(--text) }
.warmup__stop--now .warmup__node { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, var(--card)); color: color-mix(in srgb, var(--teal) 70%, var(--ink)) }
.warmup__stop--now .warmup__status { color: color-mix(in srgb, var(--teal) 62%, var(--ink)) }
.warmup__stop--stuck .warmup__node { border-color: var(--bad); color: var(--bad) }
.warmup__stuck { color: var(--bad) }

/* The Dashboard's panel: its heading with what Candid is doing under it,
   and when the figures were read on the right. */
.dashwarm__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px }
.dashwarm__head h3 { margin: 0 }
.dashwarm__doing { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty }
.dashwarm__when { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap }
.dashwarm__when .ms { font-size: 15px }

/* The latest finds: two columns of rows, each a company's mark, its name,
   where and when it was found, and its fit. */
.warmfinds { text-align: left }
.warmfinds__head { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--text) }
.warmfinds__head .ms { font-size: 16px; color: var(--muted) }
.warmfinds__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px }
.warmfinds__row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); min-width: 0 }
.warmfinds__row:nth-last-child(-n + 2):nth-child(odd), .warmfinds__row:last-child { border-bottom: 0 }
.warmfinds__mark { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 600; background: color-mix(in srgb, var(--ink) 7%, var(--card)) }
.warmfinds__mark img { width: 100%; height: 100%; object-fit: contain }
.warmfinds__id { display: grid; gap: 1px; flex: 1; min-width: 0 }
.warmfinds__name { font-size: 13.5px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.warmfinds__from { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.warmfinds__next { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap }
.warmfinds__next .ms { font-size: 14px }
.warmfinds__row > :last-child { flex: 0 0 auto }
.warmfinds__row .ring { transform: scale(.82); margin: -4px }

.warmup__art {
  position: relative; display: grid; place-items: center; min-height: 0; padding: 22px; overflow: hidden;
  border-radius: 12px; background: color-mix(in srgb, var(--teal) 7%, var(--page));
}
.wart { width: 100%; max-width: 360px }
.wart__mark {
  width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: var(--hue); background: color-mix(in srgb, var(--hue) 16%, var(--card));
}
.wart__lines { display: grid; gap: 6px; flex: 1; min-width: 0 }
.wart__bar { display: block; height: 8px; width: 78%; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 12%, var(--card)) }
.wart__bar--short { width: 46%; background: color-mix(in srgb, var(--ink) 7%, var(--card)) }

/* Companies: the list's own head, filled, each row with its fit. */
.wart--list { background: var(--card); border-radius: 12px; border: 1px solid rgba(16, 33, 31, .07); box-shadow: var(--shadow-low); padding: 6px 16px }
.wart__head { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 12px; font-weight: 500; color: var(--muted) }
.wart__row { display: flex; align-items: center; gap: 12px; padding: 11px 0 }
.wart__row + .wart__row { border-top: 1px solid var(--hair) }
.wart__row > :last-child { flex: 0 0 auto }

/* Pipeline: the business's own first stages, a deal in the first, and
   dashed places where the next ones will go. */
.wart--board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 420px }
.wart__col { display: grid; align-content: start; gap: 8px; min-height: 150px; padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--card) 70%, transparent) }
.wart__colhead { padding: 2px 2px 4px; font-size: 12px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.wart__deal {
  display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; background: var(--card);
  border: 1px solid rgba(16, 33, 31, .08); box-shadow: var(--shadow-low);
}
.wart__deal .wart__mark { width: 22px; height: 22px; flex-basis: 22px; border-radius: 6px; font-size: 10.5px }
.wart__slot { display: block; height: 44px; border-radius: 8px; border: 1.5px dashed color-mix(in srgb, var(--teal) 45%, transparent) }
.wart__slot--faint { opacity: .45 }

/* Conversations: the first email out, and their reply back. */
.wart--thread { display: grid; gap: 8px; max-width: 360px }
.wart__out, .wart__reply {
  display: grid; gap: 7px; padding: 12px 14px; background: var(--card); border: 1px solid rgba(16, 33, 31, .07);
}
.wart__out { justify-self: end; width: 86%; border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow-low) }
.wart__reply { flex: 1; border-radius: 14px 14px 14px 4px; border-color: color-mix(in srgb, var(--teal) 35%, transparent) }
.wart__to { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text) }
.wart__to > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.wart__to > .ms { font-size: 17px; color: var(--teal) }
.wart__co { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; display: grid; place-items: center; font-size: 9px; font-weight: 600; background: color-mix(in srgb, var(--ink) 8%, var(--card)) }
.wart__co img { width: 100%; height: 100%; object-fit: contain }
.wart__sent { justify-self: end; display: inline-flex; align-items: center; gap: 4px; margin-top: -4px; font-size: 11.5px; font-weight: 500; color: var(--muted) }
.wart__sent .ms { font-size: 15px; color: var(--teal) }
.wart__in { display: flex; align-items: flex-end; gap: 8px; width: 86% }
.wart__face { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #4C8DF6 16%, var(--card)); color: #4C8DF6 }
.wart__face .ms { font-size: 17px }

.wart__grid { stroke: var(--hair); stroke-width: 1; vector-effect: non-scaling-stroke }
.wart__area { fill: color-mix(in srgb, var(--teal) 12%, transparent) }
.wart__line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke }

/* The Dashboard while getting started: every section where it always is.
   One with nothing in it yet is drawn as itself, in its own colours over
   sample figures, and the whole section, heading and figures too, is faded
   right back, with a card dead centre over it saying what it will show and
   when it fills (veil in app.js). Above them, where Candid has got to. */
.is-veiled { position: relative; pointer-events: none; user-select: none }
.is-veiled > :not(.dashveil) { opacity: .14 }
/* On a light section the sample is drawn a shade darker, so its shapes read
   through the fade rather than washing out to the page. The dark top panel
   keeps its own colours. */
.is-veiled:not(.hero) > :not(.dashveil) { filter: brightness(.4) saturate(1.5) }
/* Controls over sample data (Activity's kind chips): faded with the rest, no card. */
.is-faded { opacity: .14; pointer-events: none; user-select: none }
.dashveil { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 12px; opacity: 1 }
.dashveil__card {
  display: grid; justify-items: center; gap: 6px; max-width: 320px; padding: 16px 22px; text-align: center;
  background: var(--card); border: 1px solid rgba(16, 33, 31, .08); border-radius: 14px;
  box-shadow: var(--shadow-low);
}
.dashveil__icon { font-size: 24px; color: color-mix(in srgb, var(--teal) 72%, var(--ink)) }
.dashveil__what { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text); text-wrap: balance }
.dashveil__when { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted) }
.dashveil__when .ms { font-size: 15px }
/* Over a white section the card is the dark one, so it stands off the page;
   over the dark top panel it stays white. */
.is-veiled:not(.hero) .dashveil__card { background: var(--ink); border-color: transparent; box-shadow: var(--shadow-top) }
.is-veiled:not(.hero) .dashveil__what { color: var(--on-ink) }
.is-veiled:not(.hero) .dashveil__when { color: color-mix(in srgb, var(--on-ink) 70%, transparent) }
.is-veiled:not(.hero) .dashveil__icon { color: var(--teal) }

/* The flow over sample deals reads through a lighter fade on the dark. */
.hero.is-veiled > :not(.dashveil) { opacity: .22 }
.hero.is-veiled svg.heroflow__svg { animation: none; clip-path: none }


.dashwarm .warmup__road { margin-top: 20px }

/* Centred, in the place the page's list would take (Companies' table,
   Conversations' rows): the picture over the words, then the steps and the
   finds, in one column held to a readable width, filling the height.

   Filling, not sized: the page fills the scrolling area, its card fills the
   page and this takes what the card's toolbar leaves, so it ends at the foot
   of the window whatever stands above it. It used to be 100dvh less a
   guessed 240px for the header and toolbar, which was short of what they
   take and ignores the display scale, so the page scrolled with nothing
   below. Content taller than the window still scrolls. */
.main > .screen:has(.warmup--centre) { min-height: 100%; display: flex; flex-direction: column }
.main > .screen:has(.warmup--centre) > :is(.table, .convo):has(> .warmup--centre) { flex: 1 0 auto; display: flex; flex-direction: column }
.warmup--centre {
  flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 24px;
}
.warmup--centre .warmup__top { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center }
.warmup--centre .warmup__copy { align-items: center }
.warmup--centre .warmup__lede { max-width: 54ch }
.warmup--centre .warmup__art { width: 100%; max-width: 440px }

/* Conversations' search band while there is nothing to search: in place,
   greyed and out of reach. */
.convo__pin.is-asleep { opacity: .45; filter: grayscale(1); pointer-events: none; user-select: none }

/* Pipeline while getting started: each stage holds the card that will land
   there, dashed in the stage's colour, and what brings it. */
.board__empty--warm { gap: 10px; padding: 14px 12px; text-align: center }
.board__ghost {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 12px;
  background: var(--card); border: 1.5px dashed color-mix(in srgb, var(--hue) 45%, transparent);
}
.board__ghost .wart__mark { color: var(--hue); background: color-mix(in srgb, var(--hue) 14%, var(--card)) }
.board__ghost .wart__mark .ms { font-size: 16px }
.board__warmsaid { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--muted); text-wrap: balance }

/* Today's panel while getting started: under its heading, centred, the
   kinds of work it will hold as their marks, the two lines, then the same
   four steps as the other pages, on the dark. */
.todaywarm {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 2px; text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--on-ink) 11%, transparent);
}
.todaywarm__marks { display: flex; margin-bottom: 4px }
.todaywarm__mark {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 3px solid var(--ink); margin-left: -9px;
  background: color-mix(in srgb, var(--tone) 26%, var(--ink)); color: color-mix(in srgb, var(--tone) 55%, #FFF);
}
.todaywarm__mark:first-child { margin-left: 0 }
.todaywarm__mark .ms { font-size: 18px }
.todaywarm__said { margin: 0; max-width: 60ch; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--on-ink); text-wrap: balance }
.todaywarm__when { margin: 0; max-width: 60ch; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--on-ink) 70%, transparent); text-wrap: pretty }
.todaywarm .warmup__road { width: 100%; margin-top: 14px; padding-top: 0; border-top: 0 }
.todaywarm .warmup__node { background: transparent; border-color: color-mix(in srgb, var(--on-ink) 30%, transparent); color: color-mix(in srgb, var(--on-ink) 55%, transparent) }
.todaywarm .warmup__stop:not(:last-child)::after { background: color-mix(in srgb, var(--on-ink) 18%, transparent) }
.todaywarm .warmup__stop--done:not(:last-child)::after { background: var(--good) }
.todaywarm .warmup__words { color: color-mix(in srgb, var(--on-ink) 62%, transparent) }
.todaywarm .warmup__stop--done .warmup__words, .todaywarm .warmup__stop--now .warmup__words { color: var(--on-ink) }
.todaywarm .warmup__stop--done .warmup__node { border-color: var(--good); background: var(--good); color: #FFF }
.todaywarm .warmup__stop--now .warmup__node { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal) }
.todaywarm .warmup__status { color: color-mix(in srgb, var(--on-ink) 62%, transparent) }
.todaywarm .warmup__stop--now .warmup__status { color: var(--teal) }
.todaywarm .warmup__stuck { color: #F29A8A }

@media (max-width: 760px) {
  .card.warmup { padding: 20px 18px; gap: 20px }
  .card.warmup .warmup__top { grid-template-columns: minmax(0, 1fr); gap: 20px }
  .warmup--centre { padding: 24px 18px; min-height: 0 }
  .warmup__head { font-size: 19px }
  .warmup__art { min-height: 0; padding: 18px 14px }
  .warmup__road { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px }
  .warmfinds__list { grid-template-columns: minmax(0, 1fr) }
  .warmup__stop:nth-child(2n)::after { display: none }
  .dashwarm__head { flex-direction: column; gap: 6px }
  .warmfinds__row:nth-last-child(-n + 2):nth-child(odd) { border-bottom: 1px solid var(--hair) }
  .wart__col { min-height: 130px }
}

/* Research in the company drawer, drawn as the Dashboard draws Candid's own
   work. Under way: the road of steps (warmup__road), three of them, in a
   container of its own at the top of the tab, when it was last read by the
   heading. Nothing found yet: the tab as it will look, faded right back,
   with the Dashboard's dark card over it (is-veiled, dashveil) and the way
   to start it now on the card, the one thing in reach. */
.rsch__read { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums }
.rsch__read .ms { font-size: 15px }
.rsch__road { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; border-top: 0 }
.rsch__sample { display: grid; gap: 12px }
.rsch__veil .dashveil__card { pointer-events: auto; max-width: 280px; padding: 20px }
.rsch__veil .dashveil__card .btn { margin-top: 8px }
@media (max-width: 760px) {
  /* Three short steps still fit side by side in a phone's drawer. */
  .rsch__road { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
  .rsch__road .warmup__stop:not(:last-child)::after { display: block; right: -4px }
}
@media (max-width: 479px) { .rsch__sample { gap: 10px } }

}
