/* TaskBlink Data, checks that grow the card (BUILD-PLAN-B package B10; DESIGN-BRIEF 1.6, 2.4, 2.5, 2.6, 2.12, 2.13;
   the Results, Table, Phone, AskAll, Filters and Onb4Enrich artboards). Loaded after tb.css; tokens only, so the dark
   scheme follows tb.css. Every control is a 44 px target. */

.tb-ck-mono { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.tb-ck-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* ------------------------------------------------------------------ *
 * The grown slots (2.6): one strip per check, fixed order, two lines at most (the Offer strip five)
 * ------------------------------------------------------------------ */
.tb-card__grown.is-growing { transition: height var(--t-height) var(--ease); }
.tb-ck-strip {
  border-radius: var(--r-md); background: var(--bg-soft); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.tb-ck-strip__head {
  display: flex; align-items: center; gap: 6px; margin: 0;
  font: 600 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.tb-ck-strip__head .tb-icon { width: 14px; height: 14px; flex: none; }
.tb-ck-strip__lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-ck-strip__lines--tight { gap: 4px; }
.tb-ck-strip__strong { font: 600 13px/18px var(--font); color: var(--ink); overflow-wrap: anywhere; }
.tb-ck-strip__soft { font: 400 12.5px/18px var(--font); color: var(--ink-2); overflow-wrap: anywhere; }
.tb-ck-strip__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tb-ck-strip__builder { text-align: right; }
.tb-ck-strip__fit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-ck-strip__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-ck-strip__email { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tb-ck-strip__mono { font: 500 12.5px/18px var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.tb-ck-score { white-space: nowrap; }
.tb-ck-score__n { font: 600 20px/1 var(--font-mono); }
.tb-ck-score__n--bad { color: var(--bad); }
.tb-ck-score__n--warn { color: var(--warn); }
.tb-ck-score__n--good { color: var(--good); }
.tb-ck-score__of { margin-left: 2px; font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.tb-ck-fits .tb-icon { color: var(--brand); }

/* Waiting and growing: one line, 40 tall, the shimmer band; a 14 px spinner in brand while it runs */
.tb-ck-strip--line {
  height: 40px; box-sizing: border-box; padding: 0 12px; flex-direction: row; align-items: center; gap: 8px;
  font: 400 12.5px/1.3 var(--font); color: var(--ink-2);
  background: linear-gradient(90deg, var(--bg-soft) 0%, var(--surface-3) 50%, var(--bg-soft) 100%);
  background-size: 200% 100%; animation: none;
}
.tb-ck-strip--line[data-state="growing"] { animation: tb-shimmer var(--t-shimmer) linear infinite; }
.tb-ck-strip__spin { flex: none; }
.tb-ck-strip__clock { display: inline-flex; flex: none; }
.tb-ck-strip__clock .tb-icon { width: 14px; height: 14px; color: var(--ink-4); }

/* Just landed: the block rises 8 px over 300 ms and flashes brand-tint, fading over 1.2 s */
.tb-ck-strip.is-landed { animation: tb-rise-in var(--t-block) var(--ease), tb-ck-land 1.2s var(--ease); }
@keyframes tb-ck-land { from { background-color: var(--brand-tint); } to { background-color: var(--bg-soft); } }
.tb-ck-flash { animation: tb-ck-flash 1.2s var(--ease); border-radius: var(--r-xs); }
@keyframes tb-ck-flash { from { background-color: var(--brand-tint); } to { background-color: transparent; } }

/* The Offer strip: white with 1 px brand-line, the only strip allowed five lines */
.tb-ck-strip--offer { background: var(--surface); border: 1px solid var(--brand-line); }
.tb-ck-strip--offer.is-landed { animation: tb-rise-in var(--t-block) var(--ease), tb-ck-land-offer 1.2s var(--ease); }
@keyframes tb-ck-land-offer { from { background-color: var(--brand-tint); } to { background-color: var(--surface); } }
.tb-ck-strip--offer .tb-ck-strip__head .tb-icon { color: var(--brand); }
.tb-ck-strip--offer.tb-ck-strip--line { border: 0; }
.tb-ck-offer__top { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; min-width: 0; }
.tb-ck-offer__name { font: 600 13px/18px var(--font); color: var(--ink); }
.tb-ck-offer__cta { font: 400 12.5px/18px var(--font); color: var(--ink-2); flex: 1 1 auto; min-width: 0; }
.tb-ck-offer__top .tb-pill { margin-left: auto; }
.tb-ck-offer__grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 8px; }
.tb-ck-offer__cell { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tb-ck-offer__label { font: 600 11px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tb-ck-offer__value { margin: 0; font: 500 13px/1.35 var(--font); color: var(--ink); overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 2px; }
.tb-ck-offer__found { font: 400 12px/1.3 var(--font); color: var(--brand-text); text-decoration: none; }
a.tb-ck-offer__found:hover { text-decoration: underline; }

/* The photo's issues badge (warn tint, top right of the photo) */
.tb-ck-badge {
  position: absolute; z-index: 1; top: 12px; right: 12px; height: 22px; padding: 0 9px; border-radius: var(--pill);
  background: var(--warn-tint); color: var(--warn); font: 600 11.5px/22px var(--font);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; pointer-events: none;
  animation: tb-fade-in var(--t-block) var(--ease);
}
.tb-ck-badge .tb-icon { width: 12px; height: 12px; }

/* ------------------------------------------------------------------ *
 * Row 3's chips (neutral, 32 tall inside a 44 hit area) and the context nudge (2.13)
 * ------------------------------------------------------------------ */
.tb-ck-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-width: 0; }
.tb-ck-chip {
  height: 44px; min-height: 44px; margin: -6px 0; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; font: inherit; color: inherit;
}
.tb-ck-chip__in {
  height: 32px; box-sizing: border-box; padding: 0 12px; border-radius: var(--pill); background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--ink-2); font: 500 13px/1 var(--font); white-space: nowrap;
  display: inline-flex; align-items: center; transition: background-color var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}
.tb-ck-chip:hover .tb-ck-chip__in { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.tb-ck-chip:focus-visible { outline: none; }
.tb-ck-chip:focus-visible .tb-ck-chip__in { box-shadow: var(--ring-brand); }
.tb-ck-chip[aria-expanded="true"] .tb-ck-chip__in { background: var(--brand-tint); border-color: var(--brand-line); color: var(--brand-ink); }

.tb-ck-nudge {
  min-height: 44px; box-sizing: border-box; padding: 0 6px 0 16px; border-radius: var(--r-md);
  background: var(--brand-tint); border: 1px solid var(--brand-line); display: flex; align-items: center; gap: 10px;
}
.tb-ck-nudge__dot { flex: none; width: 8px; height: 8px; border-radius: var(--pill); background: var(--brand); box-shadow: 0 0 0 4px rgba(239,6,192,.14); }
.tb-ck-nudge__text { flex: 1; margin: 0; padding: 10px 0; font: 400 13.5px/1.4 var(--font); color: var(--ink); }
.tb-ck-nudge__text strong { font-weight: 600; }
.tb-ck-nudge__link {
  height: 44px; box-sizing: border-box; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; flex: none;
  font: 500 13.5px/1 var(--font); color: var(--brand-text); text-decoration: none; white-space: nowrap;
}
.tb-ck-nudge__link:hover { text-decoration: underline; }
.tb-ck-nudge__link .tb-icon { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ *
 * The one estimate (a popover under its chip, or a modal)
 * ------------------------------------------------------------------ */
.tb-ck-pop { width: 360px; }
.tb-ck-modal { width: 440px; max-width: calc(100vw - 32px); }
.tb-ck-est { display: flex; flex-direction: column; gap: 12px; }
.tb-ck-est__words { margin: 0; font: 500 15px/1.45 var(--font); color: var(--ink); }
.tb-ck-est__words .tb-ck-mono { font-size: 14px; }
.tb-ck-est__loading { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 13.5px; color: var(--ink-3); }
.tb-ck-est__short { margin: 0; font: 400 13px/1.5 var(--font); color: var(--warn); }
.tb-ck-est__err { margin: 0; font: 400 13px/1.5 var(--font); color: var(--bad); }
.tb-ck-est__err[hidden] { display: none; }
.tb-ck-est__foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ *
 * Want to know more? (Onb4Enrich): beside the streaming cards, never over them
 * ------------------------------------------------------------------ */
.tb-ck-want {
  box-sizing: border-box; width: 100%; padding: 20px; border-radius: var(--r-xl); background: var(--surface);
  box-shadow: var(--sh-modal);
}
.tb-ck-want__title { margin: 0; font: 600 17px/1.25 var(--font); letter-spacing: -0.01em; color: var(--ink); }
.tb-ck-want__line { margin: 6px 0 0; font: 400 13px/1.5 var(--font); color: var(--ink-2); }
.tb-ck-want__set { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.tb-ck-want__row {
  display: flex; align-items: center; gap: 12px; min-height: 60px; box-sizing: border-box; padding: 8px 0;
  border-top: 1px solid var(--line); cursor: pointer;
}
.tb-ck-want__row:last-of-type { border-bottom: 1px solid var(--line); }
.tb-ck-want__box { position: relative; flex: none; width: 44px; height: 44px; margin: 0 -8px 0 -11px; display: flex; align-items: center; justify-content: center; }
.tb-ck-want__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tb-ck-want__tick {
  width: 22px; height: 22px; box-sizing: border-box; border-radius: var(--r-xs); background: var(--surface);
  border: 1.5px solid var(--ink-3); display: flex; align-items: center; justify-content: center; color: transparent;
  transition: background-color var(--t-chip) var(--ease), border-color var(--t-chip) var(--ease);
}
.tb-ck-want__tick .tb-icon { width: 14px; height: 14px; }
.tb-ck-want__input:checked + .tb-ck-want__tick { background: var(--brand-strong); border-color: var(--brand-strong); color: #FFFFFF; }
.tb-ck-want__input:focus-visible + .tb-ck-want__tick { box-shadow: var(--ring-brand); }
.tb-ck-want__icon {
  flex: none; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--bg-soft); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
}
.tb-ck-want__row.is-on .tb-ck-want__icon { background: var(--brand-tint); color: var(--brand-text); }
.tb-ck-want__words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-ck-want__name { font: 600 15px/1.3 var(--font); color: var(--ink); }
.tb-ck-want__sub { font: 400 13px/1.4 var(--font); color: var(--ink-2); }
.tb-ck-want__cost { margin: 16px 0 0; min-height: 20px; font: 400 13px/1.5 var(--font); color: var(--ink-2); }
.tb-ck-want__cost:empty { display: none; }
.tb-ck-want__cost .tb-ck-mono { font-size: 13px; }
.tb-ck-want__skip { margin: 10px 0 0; display: flex; align-items: flex-start; gap: 8px; font: 400 13px/1.5 var(--font); color: var(--ink-2); }
.tb-ck-want__skip .tb-icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ink-3); }
.tb-ck-want .tb-ck-est__err { margin-top: 10px; }
.tb-ck-want__foot { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ *
 * Filters (2.12): the coverage helper, the switch label, the score range
 * ------------------------------------------------------------------ */
.tb-ck-fsec { display: flex; flex-direction: column; gap: 12px; }
.tb-ck-fp__wrap { flex-wrap: wrap; }
.tb-ck-help { margin: 0; font: 400 12.5px/1.5 var(--font); color: var(--ink-3); }
.tb-ck-help[hidden] { display: none; }
.tb-ck-help__link {
  position: relative; min-height: 44px; margin: -12px 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 12.5px/1.5 var(--font); color: var(--brand-text); text-align: left;
}
.tb-ck-help__link:hover { text-decoration: underline; }
.tb-ck-help__link:focus-visible { outline: none; box-shadow: var(--ring-brand); border-radius: var(--r-xs); }
.tb-ck-switch { justify-content: space-between; min-height: 44px; }
.tb-ck-switch__text { font: 500 13px/1.3 var(--font); color: var(--ink); }
.tb-ck-range .tb-range__hit { width: 44px; height: 44px; }

/* ------------------------------------------------------------------ *
 * The drawer's check sections and the table's shimmer cell
 * ------------------------------------------------------------------ */
.tb-ck-drawer { display: flex; flex-direction: column; gap: 24px; }
.tb-ck-drawer:empty { display: none; }
.tb-ck-drawer__sec { min-width: 0; }
.tb-ck-drawer__line { margin: 0; display: flex; align-items: center; gap: 8px; font: 400 13px/1.45 var(--font); color: var(--ink-2); }
.tb-ck-drawer__line .tb-icon { width: 14px; height: 14px; color: var(--ink-4); }
.tb-ck-drawer__check { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tb-ck-drawer__sub { margin: 0; flex: 1 1 200px; font: 400 13px/1.45 var(--font); color: var(--ink-2); }
.tb-ck-cellshim {
  display: inline-block; width: 52px; height: 12px; border-radius: var(--pill); vertical-align: middle;
  background: linear-gradient(90deg, var(--bg-soft) 0%, var(--surface-3) 50%, var(--bg-soft) 100%);
  background-size: 200% 100%; animation: tb-shimmer var(--t-shimmer) linear infinite;
}

/* The phone: one 358 column, nothing wider than the card */
@media (max-width: 640px) {
  .tb-ck-pop { width: calc(100vw - 32px); }
  .tb-ck-nudge { align-items: flex-start; flex-wrap: wrap; padding: 6px 6px 6px 16px; }
  .tb-ck-nudge__dot { margin-top: 16px; }
  .tb-ck-chips { gap: 0 6px; }
}

/* Reduced motion: opacity only, no height animation */
@media (prefers-reduced-motion: reduce) {
  .tb-card__grown.is-growing { transition: none; }
  .tb-ck-strip.is-landed, .tb-ck-strip--offer.is-landed { animation: tb-fade-in var(--t-block) var(--ease); }
  .tb-ck-strip--line[data-state="growing"], .tb-ck-cellshim { animation: none; }
  .tb-ck-flash { animation: tb-fade-in var(--t-block) var(--ease); }
}
