/* The closers card (Team page) and the revenue forecast tile (Dashboard), 2026-10-26. */

/* closers: show rate (teal) + close rate (lilac) per closer */
.cl-card { margin-bottom: var(--gap); }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.cl { display: grid; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(160deg, var(--lilac-soft), var(--paper) 55%); box-shadow: 0 0 0 1px var(--line); }
.cl__who { display: flex; align-items: center; gap: 10px; }
.cl__who b { display: block; font-size: 15px; }
.cl__who small { color: var(--muted); font-size: 12.5px; }
.cl .avatar--lg { width: 44px; height: 44px; font-size: 15px; }
.cl-rate { display: grid; gap: 5px; }
.cl-rate__top { display: flex; align-items: baseline; justify-content: space-between; }
.cl-rate__label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cl-rate__v { font-size: 20px; font-weight: 700; }
.cl-rate__track { position: relative; height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.cl-rate__fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; transition: width 0.6s var(--ease); }
.cl-rate--show .cl-rate__fill { background: linear-gradient(90deg, var(--teal), #34d399); }
.cl-rate--show .cl-rate__v { color: var(--teal-ink); }
.cl-rate--close .cl-rate__fill { background: linear-gradient(90deg, var(--lilac), #c084fc); }
.cl-rate--close .cl-rate__v { color: var(--lilac-ink); }
.cl-rate__sub { font-size: 12px; color: var(--muted); }

/* forecast: one bar, collected (solid red) + expected (striped coral), the target as a tick */
.tile--forecast { background: linear-gradient(160deg, var(--amber-soft), var(--paper) 50%); }
.fc__big { margin: 6px 0 0; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.fc__lead { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.fc__bar { position: relative; display: flex; height: 14px; margin: 14px 0 10px; border-radius: 99px; background: var(--track); overflow: visible; }
.fc__done { display: block; height: 100%; border-radius: 99px 0 0 99px; background: linear-gradient(90deg, var(--red), var(--coral)); }
.fc__exp { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--coral) 0 5px, color-mix(in srgb, var(--coral) 45%, transparent) 5px 10px); }
.fc__exp:last-child, .fc__done + .fc__exp:last-of-type { border-radius: 0 99px 99px 0; }
.fc__target { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.fc__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.fc__key { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 3px; vertical-align: -1px; }
.fc__key--done { background: var(--red); }
.fc__key--exp { background: repeating-linear-gradient(45deg, var(--coral) 0 3px, color-mix(in srgb, var(--coral) 45%, transparent) 3px 6px); }
.fc__how { margin-top: 10px; }

/* Clients page: tracking (js/views/followthrough.js renderClients, js/clients.js) */
.ct-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ct-stat { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--paper); box-shadow: var(--card-shadow), inset 0 3px 0 var(--st, var(--slate)); }
.ct-stat b { font-size: 26px; line-height: 1.1; color: var(--st-ink, var(--ink)); }
.ct-stat span { font-size: 12.5px; color: var(--muted); }
.ct-stat--active { --st: var(--green); --st-ink: var(--green-ink); }
.ct-stat--due { --st: var(--red); --st-ink: var(--red-ink); }
.ct-stat--renew { --st: var(--amber); --st-ink: var(--amber-ink); }
.ct-stat--finished { --st: var(--blue); --st-ink: var(--blue-ink); }
.ct-stat--refunded { --st: var(--slate); --st-ink: var(--slate-ink); }
.ct-filters { margin-bottom: 12px; }
.ct { display: grid; gap: 10px; box-shadow: var(--card-shadow), inset 4px 0 0 var(--green); }
.ct--paused { box-shadow: var(--card-shadow), inset 4px 0 0 var(--amber); }
.ct--finished { box-shadow: var(--card-shadow), inset 4px 0 0 var(--blue); }
.ct--refunded { box-shadow: var(--card-shadow), inset 4px 0 0 var(--slate); opacity: 0.8; }
.ct--overdue { box-shadow: var(--card-shadow), inset 4px 0 0 var(--red); }
.ct__head { align-items: center; }
.ct-state { width: auto; padding: 4px 26px 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.ct-state--active { background-color: var(--green-soft); color: var(--green-ink); }
.ct-state--paused { background-color: var(--amber-soft); color: var(--amber-ink); }
.ct-state--finished { background-color: var(--blue-soft); color: var(--blue-ink); }
.ct-state--refunded { background-color: var(--slate-soft); color: var(--slate-ink); }
.ct-bar { display: grid; gap: 5px; }
.ct-bar__top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); }
.ct-bar__track { position: relative; height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.ct-bar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.ct-bar--program .ct-bar__fill { background: linear-gradient(90deg, var(--blue), #60a5fa); }
.ct-bar--sessions .ct-bar__fill { background: linear-gradient(90deg, var(--green), #4ade80); }
.ct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ct-chip .icon { width: 13px; height: 13px; }
.ct-chip--ok { background: var(--paper-2); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.ct-chip--overdue { background: var(--red-soft); color: var(--red-ink); }
.ct-chip--today, .ct-chip--soon { background: var(--amber-soft); color: var(--amber-ink); }
.ct-chip--renew { background: var(--amber-soft); color: var(--amber-ink); }
.ct-notes-view { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--paper-2); font-size: 13px; color: var(--ink-2); white-space: pre-wrap; }
.ct-edit { display: grid; gap: 10px; }
.ct-edit__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ct-notes { width: 100%; min-height: 70px; font: inherit; }
.ct-onboard summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ct-late { color: var(--red-ink); }
@media (max-width: 760px) { .ct-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Settings: the phone app card + uptime */
.app-card__row { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.app-card__icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 18px -10px rgba(225, 29, 46, 0.7); flex: none; }
.app-card__steps { margin-top: 10px; }
.uptime { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.uptime__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }
.uptime__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.uptime__row.is-down .uptime__dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.uptime__at { margin-left: auto; font-size: 12px; }

.app-push { display: grid; gap: 8px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); }
.app-push__line { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.app-push__dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--slate); }
.app-push__dot--on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.app-push__dot--off, .app-push__dot--install-first { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.app-push__dot--blocked { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
