/* TaskBlink Data, the Offers place (BUILD-PLAN-B 4 B12): the gallery and its angles (OfferAngles, OfferGallery),
   the chosen offer (OfferDetail), home's Saved offers (Search, SearchFirstDay), Results' offers banner and the
   "Which offer?" list (OfferPickForList). DESIGN-BRIEF 2.3, 2.4, 2.7, 2.8, 2.15, 2.19, 2.22, 2.25. Tokens only
   (tb.css), so dark mode follows; every control a 44 px target. */

/* ------------------------------------------------------------------ *
 * The gallery
 * ------------------------------------------------------------------ */
.tb-off { padding-top: 22px; padding-bottom: 56px; }
.tb-off__head { display: flex; flex-direction: column; }
.tb-off__title { overflow-wrap: anywhere; }
.tb-off__angles:empty, .tb-off__state:empty { display: none; }
.tb-off__sub { margin: 6px 0 0; font: 400 15px/1.5 var(--font); color: var(--ink-2); }
.tb-off__you { margin-top: 16px; }
.tb-off__you[hidden] { display: none; }
.tb-off__bar { margin-top: 16px; }
.tb-off__grid { margin-top: 8px; display: flex; align-items: flex-start; gap: 24px; }
.tb-off__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* The angles strip, open (OfferAngles) and folded to one line (OfferGallery) */
.tb-off-angles { margin-top: 28px; }
.tb-off-angles__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tb-off-angles__title { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 17px/22px var(--font); letter-spacing: -0.01em; color: var(--ink); }
.tb-off-angles__title .tb-icon { color: var(--brand); width: 18px; height: 18px; }
.tb-off-angles__sub { margin: 4px 0 0; font: 400 13px/1.45 var(--font); color: var(--ink-2); }
.tb-off-angles__hide { flex: none; margin-right: -12px; padding: 0 12px; }
.tb-off-angles__row { margin-top: 16px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.tb-off-angles__row > .tb-ocard { flex: 0 1 400px; min-width: 0; }
.tb-off-fold {
  margin-top: 12px; min-height: 44px; box-sizing: border-box; padding: 0 4px 0 14px; border-radius: var(--r-md);
  background: var(--bg-soft); display: flex; align-items: center; gap: 10px;
}
.tb-off-fold > .tb-icon { color: var(--brand); }
.tb-off-fold__line { flex: 1; min-width: 0; margin: 0; padding: 12px 0; font: 400 13.5px/1.4 var(--font); color: var(--ink); }
.tb-off-fold__show {
  flex: none; height: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-md); background: transparent;
  display: inline-flex; align-items: center; gap: 4px; font: 600 14px/1 var(--font); color: var(--brand-text); cursor: pointer;
}
.tb-off-fold__show:hover { color: var(--brand-ink); background: var(--brand-tint); }
.tb-off-fold__show:focus-visible { outline: none; box-shadow: var(--ring-brand); }

/* Best for you / All / Saved, and "On <business>" with Try another business */
.tb-off-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.tb-off-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; }
.tb-off-tab { padding: 0 14px; }
.tb-off-tab .tb-icon { width: 14px; height: 14px; }
.tb-off-tab__n { font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.tb-off-tab.is-on .tb-off-tab__n, .tb-off-tab[aria-pressed="true"] .tb-off-tab__n { font-weight: 600; color: var(--brand-ink); }
.tb-off-bar__end { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.tb-off-on { font: 400 13px/1.4 var(--font); color: var(--ink-3); }
.tb-off-on__name { font-weight: 500; color: var(--ink-2); }
.tb-off-another { padding: 0 16px; }

/* States: writing, paused, needs a website, nothing saved, a failure */
.tb-off-line { margin: 16px 0 0; display: flex; align-items: center; gap: 8px; font: 400 13.5px/1.45 var(--font); color: var(--ink-2); }
.tb-off-line .tb-icon { flex: none; }
.tb-off-line--ask { flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--bg-soft); color: var(--ink); }
.tb-off-line--warn { color: var(--warn); }
.tb-off-fail { padding: 32px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font: 400 14px/1.5 var(--font); color: var(--ink-2); }
.tb-off-fail p { margin: 0; }

/* ------------------------------------------------------------------ *
 * The offer card (2.8) and the unlock card
 * ------------------------------------------------------------------ */
.tb-ocard {
  box-sizing: border-box; width: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-card); display: flex; flex-direction: column; gap: 14px;
}
.tb-ocard--angle { border-color: var(--line); }
.tb-ocard--locked .tb-ocard__bubble { background: var(--bg-soft); }
.tb-ocard__top { display: flex; align-items: center; gap: 8px; }
.tb-ocard__name { flex: 1; min-width: 0; margin: 0; font: 600 17px/21px var(--font); letter-spacing: -0.01em; color: var(--ink); }
.tb-ocard__name a { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; color: var(--ink); text-decoration: none; }
.tb-ocard__name a:hover { color: var(--brand-ink); }
.tb-ocard__name a:focus-visible { outline: none; box-shadow: var(--ring-brand); border-radius: var(--r-xs); }
.tb-ocard__new, .tb-off-grade { flex: none; }
.tb-ocard__heart { flex: none; margin: -11px -12px -11px 0; color: var(--ink-3); }
.tb-ocard__heart .tb-icon { width: 20px; height: 20px; }
.tb-ocard__heart.is-on, .tb-ocard__heart.is-on:hover:not(:disabled) { color: var(--brand); }
.tb-ocard__ev { margin: 0; font: 400 12.5px/1.45 var(--font); color: var(--ink-3); }
.tb-ocard__bubble {
  display: block; margin: 0; padding: 14px 16px; background: var(--bg-soft); border-radius: 14px 14px 14px 4px;
  font: 400 15px/24px var(--font); color: var(--ink); text-decoration: none; overflow-wrap: anywhere;
}
a.tb-ocard__bubble:hover { color: var(--ink); background: var(--surface-2); }
a.tb-ocard__bubble:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.tb-ocard__bubble.is-faded { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-ocard__uses { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.tb-ocard__useslabel { font: 500 12px/1.4 var(--font); color: var(--ink-3); }
.tb-ocard__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
.tb-ocard__meta--col { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.tb-ocard__len { font: 500 12px/18px var(--font-mono); color: var(--ink-3); }
.tb-ocard__on, .tb-ocard__cond { font: 400 12px/18px var(--font); color: var(--ink-3); }
.tb-ocard__lines { display: flex; flex-direction: column; gap: 6px; }
.tb-ocard__ctas, .tb-ocard__check, .tb-ocard__note { margin: 0; display: flex; align-items: flex-start; gap: 8px; font: 400 12.5px/18px var(--font); color: var(--ink-2); }
.tb-ocard__check, .tb-ocard__note { color: var(--ink-3); }
.tb-ocard__ctas .tb-icon, .tb-ocard__check .tb-icon, .tb-ocard__note .tb-icon { flex: none; margin-top: 2px; color: var(--ink-3); }
.tb-ocard__vers { margin: 0; font: 400 12.5px/18px var(--font); color: var(--ink-3); }
.tb-ocard__ctas + .tb-ocard__vers { padding-left: 22px; }
.tb-ocard__foot { display: flex; align-items: center; gap: 8px; }
.tb-ocard__main { flex: 1; min-width: 0; }
.tb-ocard__main span { overflow: hidden; text-overflow: ellipsis; }
.tb-ocard__nope { flex: none; padding: 0 14px; }
/* The gallery never shows nine filled buttons: the first saved card's is the primary, the rest turn primary on hover */
.tb-ocard:hover .tb-ocard__gen.tb-btn--ai { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); box-shadow: var(--sh-primary); }
.tb-ocard:hover .tb-ocard__gen.tb-btn--ai .tb-icon { color: var(--on-brand); }
.tb-ocard--unlock { gap: 16px; }
.tb-ocard__unlockicon {
  width: 48px; height: 48px; border-radius: var(--pill); background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.tb-ocard--unlock .tb-ocard__name { flex: none; line-height: 1.3; }
.tb-ocard__waiting { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tb-ocard__unlockfoot { display: flex; flex-direction: column; gap: 8px; }
.tb-ocard__caption { margin: 0; text-align: center; font: 500 12px/1.4 var(--font); color: var(--ink-3); }
.tb-ocard--skel { gap: 14px; }
.tb-ocard__skelhead { height: 22px; width: 60%; }
.tb-ocard__skelbubble { height: 120px; border-radius: 14px 14px 14px 4px; }
.tb-ocard__skelline { height: 14px; width: 45%; }

/* Token chips (2.7): the value glows in the example, the label in the template, the merge tag in GoHighLevel */
.tb-tok {
  display: inline; padding: 1px 7px; border-radius: var(--r-xs); background: var(--brand-tint); border: 1px solid var(--brand-line);
  color: var(--brand-ink); font: 600 13px/22px var(--font); -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tb-tok--ghl { background: var(--bg-soft); border-color: var(--line-strong); color: var(--ink); font: 500 12.5px/22px var(--font-mono); }
.tb-tok--locked { background: var(--warn-tint); border-color: color-mix(in srgb, var(--warn) 28%, var(--warn-tint)); color: var(--warn); }
.tb-tok--shimmer {
  color: transparent; border-color: var(--line); background-color: var(--bg-soft);
  background-image: 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;
}

/* Fact chips (2.15) with their quote tooltip */
.tb-off-fact {
  position: relative; display: inline-flex; align-items: center; height: 28px; box-sizing: border-box; padding: 0 12px;
  border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font: 500 12.5px/26px var(--font);
  color: var(--ink); white-space: nowrap;
}
.tb-off-fact[tabindex] { cursor: default; }
.tb-off-fact[tabindex]::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; min-width: 44px; min-height: 44px;
  transform: translate(-50%, -50%);
}
.tb-off-fact[tabindex]:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.tb-off-fact__words { overflow: hidden; text-overflow: ellipsis; }
.tb-off-fact__page { color: var(--brand-text); }
.tb-off-fact--amber { background: var(--warn-tint); border-color: color-mix(in srgb, var(--warn) 28%, var(--warn-tint)); color: var(--warn); }
.tb-off-tip {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: 320px; max-width: calc(100vw - 48px);
  box-sizing: border-box; padding: 12px 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-pop);
  display: flex; flex-direction: column; gap: 6px; white-space: normal; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(4px);
  transition: opacity var(--t-chip) var(--ease), transform var(--t-chip) var(--ease), visibility var(--t-chip);
}
.tb-off-fact:hover > .tb-off-tip, .tb-off-fact:focus > .tb-off-tip, .tb-off-fact:focus-within > .tb-off-tip { opacity: 1; visibility: visible; transform: none; }
.tb-off-tip__quote { font: 400 13px/1.5 var(--font); color: var(--ink); }
.tb-off-tip__line { font: 400 12px/1.4 var(--font); color: var(--ink-3); }
.tb-off-found {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 24px; box-sizing: border-box; padding: 0 10px 0 8px;
  border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font: 500 12px/22px var(--font); color: var(--ink-2); white-space: nowrap;
}
.tb-off-found .tb-icon { color: var(--ink-3); }
.tb-off-found__page { color: var(--brand-text); }
.tb-off-okbtn {
  position: relative; flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0;
  background: transparent; cursor: pointer;
}
.tb-off-okbtn:focus-visible { outline: none; }
.tb-off-okbtn:focus-visible .tb-pill { box-shadow: var(--ring-brand); }

/* ------------------------------------------------------------------ *
 * The chosen offer (OfferDetail)
 * ------------------------------------------------------------------ */
.tb-od { padding-top: 20px; padding-bottom: 56px; }
.tb-od__crumb { min-height: 20px; display: flex; align-items: center; gap: 6px; font: 400 13px/20px var(--font); color: var(--ink-3); }
.tb-od__crumb a {
  min-height: 44px; min-width: 44px; margin: -12px 0; padding: 0 2px; display: inline-flex; align-items: center; justify-content: center;
  font: 500 13px/1 var(--font); color: var(--ink-2); text-decoration: none;
}
.tb-od__crumb a:hover { color: var(--ink); text-decoration: underline; }
.tb-od__head { margin-top: 4px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; }
.tb-od__titlebox { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.tb-od__h1 { overflow-wrap: anywhere; }
.tb-od__ev { font: 400 13px/1.4 var(--font); color: var(--ink-3); }
.tb-od__save { flex: none; padding: 0 16px; }
.tb-od__save.is-on, .tb-od__save.is-on:hover:not(:disabled) { color: var(--brand-text); }
.tb-od__save.is-on .tb-icon { color: var(--brand); }
.tb-od__skelh1 { display: block; width: 360px; max-width: 80%; height: 36px; margin-top: 4px; }
.tb-od__skelbox { display: block; height: 320px; border-radius: var(--r-lg); }
.tb-od__cols { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 760fr) minmax(0, 440fr); gap: 48px; align-items: start; }
.tb-od__left { display: flex; flex-direction: column; min-width: 0; }
.tb-od__right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Length, Voice and Lead with: segmented controls whose segments are 44 tall buttons in a 52 track (2.3) */
.tb-od-ctls { display: flex; flex-direction: column; gap: 8px; }
.tb-od-ctls__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; }
.tb-od-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.tb-od-ctl__label { font: 500 12px/1.4 var(--font); color: var(--ink-3); }
.tb-od-seg { max-width: 100%; }
.tb-od-seg .tb-seg__btn[aria-disabled="true"] { cursor: progress; opacity: .7; }
.tb-od-seg__dot { width: 8px; height: 8px; border-radius: var(--pill); background: var(--warn); box-shadow: 0 0 0 2px var(--warn-tint); }

/* Calls to action (2.22) */
.tb-od-ctas { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.tb-od-ctas__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tb-od-cta {
  height: 28px; box-sizing: border-box; padding: 0 10px; border-radius: var(--pill); background: var(--surface);
  border: 1px solid var(--line-strong); color: var(--ink); font: 600 12.5px/1 var(--font); display: inline-flex; align-items: center;
  gap: 6px; white-space: nowrap; max-width: 100%;
}
.tb-od-cta > span { overflow: hidden; text-overflow: ellipsis; }
.tb-od-cta > .tb-icon { color: var(--brand-text); }
.tb-od-cta:has(.tb-od-cta__x) { padding-right: 0; }
.tb-od-cta__x {
  position: relative; flex: none; width: 44px; height: 44px; margin: -8px -8px -8px -10px; padding: 0; border: 0; border-radius: var(--pill);
  background: transparent; color: var(--ink-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.tb-od-cta__x:hover { color: var(--ink); }
.tb-od-cta__x:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.tb-od-cta__add {
  min-height: 44px; padding: 0 8px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--brand-text);
  font: 500 13px/1 var(--font); display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.tb-od-cta__add:hover { background: var(--brand-tint); color: var(--brand-ink); }
.tb-od-cta__add:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.tb-od-ctas__line { margin: 0; font: 400 12.5px/1.45 var(--font); color: var(--ink-3); }
.tb-od-results { border-collapse: collapse; font: 500 12.5px/32px var(--font-mono); color: var(--ink-2); }
.tb-od-results th { text-align: left; font: 500 12px/32px var(--font); color: var(--ink-3); padding-right: 24px; }
.tb-od-results td { padding-right: 24px; border-top: 1px solid var(--line); }
.tb-od-results td:first-child { font-family: var(--font); color: var(--ink); }

/* Written for */
.tb-od-vers { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.tb-od-vers__row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 44px; }
.tb-od-vers__line { margin-left: 6px; font: 400 12.5px/1.45 var(--font); color: var(--ink-3); }

/* The message: Example / Template / GoHighLevel */
.tb-od-tabs { margin-top: 18px; height: 44px; display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.tb-od-tab {
  position: relative; height: 44px; padding: 0 2px; border: 0; background: transparent; font: 500 14px/1 var(--font);
  color: var(--ink-2); cursor: pointer;
}
.tb-od-tab:hover { color: var(--ink); }
.tb-od-tab[aria-selected="true"] { font-weight: 600; color: var(--brand-text); }
.tb-od-tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand);
}
.tb-od-tab:focus-visible { outline: none; box-shadow: var(--ring-brand); border-radius: var(--r-xs); }
.tb-od-panel {
  margin-top: 12px; box-sizing: border-box; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-card);
}
.tb-od-msg { margin: 0; font: 400 16px/26px var(--font); color: var(--ink); overflow-wrap: anywhere; }
.tb-od-note { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tb-od-note__line { margin: 0; display: flex; align-items: center; gap: 8px; font: 400 13px/1.45 var(--font); color: var(--ink-2); }
.tb-od-note__line .tb-icon { flex: none; color: var(--ink-3); }
.tb-od-insert { flex: none; margin-right: -12px; padding: 0 12px; }
.tb-od-edit { display: flex; flex-direction: column; gap: 10px; }
.tb-od-edit__ta { font: 400 15px/1.55 var(--font); }
.tb-od-edit__err { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font: 500 12.5px/1.45 var(--font); color: var(--bad); }
.tb-od-edit__acts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tb-od-edit__gap { flex: 1; }

/* If they do not reply (2.25) */
.tb-od-fu {
  margin-top: 16px; box-sizing: border-box; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-card); display: flex; flex-direction: column; gap: 8px;
}
.tb-od-fu__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tb-od-fu__title { margin: 0; font: 600 15px/20px var(--font); color: var(--ink); }
.tb-od-fu__sub { margin: 2px 0 0; font: 400 12.5px/18px var(--font); color: var(--ink-3); }
.tb-od-fu__edit { flex: none; margin: -6px -12px 0 0; padding: 0 12px; }
.tb-od-fu__text { margin: 0; font: 400 14px/24px var(--font); color: var(--ink); overflow-wrap: anywhere; }
.tb-od-fu__meta { margin: 0; font: 400 12px/18px var(--font); color: var(--ink-3); }

/* The right column: facts, fields, readiness */
.tb-od-card {
  box-sizing: border-box; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--sh-card);
}
.tb-od-card__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.tb-od-card__title { margin: 0; font: 600 15px/20px var(--font); color: var(--ink); }
.tb-od-card__scope { font: 400 12.5px/1.4 var(--font); color: var(--ink-3); }
.tb-od-facts { padding-bottom: 4px; }
.tb-od-facts__list { list-style: none; margin: 8px 0 0; padding: 0; }
.tb-od-facts__row { min-height: 44px; padding: 4px 0; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.tb-od-facts__label { display: block; font: 500 14px/20px var(--font); color: var(--ink); }
.tb-od-facts__two { min-width: 0; display: flex; align-items: center; gap: 8px; }
.tb-od-facts__two > .tb-icon { flex: none; color: var(--brand-text); }
.tb-od-facts__sub { display: block; font: 400 12px/16px var(--font); color: var(--ink-3); }
.tb-od-facts__foot { min-height: 36px; display: flex; align-items: center; border-top: 1px solid var(--line); }
.tb-od-link { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font: 500 13px/1 var(--font); color: var(--brand-text); text-decoration: none; }
.tb-od-link:hover { color: var(--brand-ink); text-decoration: underline; }
.tb-od-fields { padding-bottom: 16px; }
.tb-od-fields__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tb-od-fields__row { display: grid; grid-template-columns: minmax(0, 1fr) 88px 64px; gap: 12px; align-items: center; }
.tb-od-fields__label { font: 600 14px/18px var(--font); color: var(--ink); }
.tb-od-fields__def { font: 400 12.5px/18px var(--font); color: var(--ink-3); }
.tb-od-fields__bar { display: block; height: 4px; border-radius: var(--pill); background: var(--surface-3); overflow: hidden; }
.tb-od-fields__fill { display: block; height: 4px; border-radius: var(--pill); background: var(--brand); }
.tb-od-fields__n { text-align: right; font: 500 12.5px/1 var(--font-mono); color: var(--ink); }
.tb-od-ready { padding: 18px 20px; }
.tb-od-ready__h { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.tb-od-ready__n { font: 600 28px/34px var(--font-mono); letter-spacing: -0.02em; color: var(--ink); }
.tb-od-ready__of { font: 500 15px/1.3 var(--font); color: var(--ink); }
.tb-od-ready__line { margin: 4px 0 0; font: 400 13px/1.45 var(--font); color: var(--ink-2); }
.tb-od-ready__ex { margin-top: 12px; }
.tb-od-ready__exhead { display: flex; align-items: center; gap: 10px; font: 400 12.5px/1.4 var(--font); color: var(--ink-3); }
.tb-od-ready__extitle { display: block; font: 600 13px/18px var(--font); color: var(--ink); }
.tb-od-ready__exsub { display: block; }
.tb-od-ready__bubble {
  margin: 6px 0 0; padding: 12px 14px; background: var(--bg-soft); border-radius: 14px 14px 14px 4px; font: 400 13px/24px var(--font);
  color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-height: 96px;
  box-sizing: border-box;
}
.tb-od-ready__bubble .tb-tok { font-size: 12.5px; }
.tb-od-ready__btn { margin-top: 14px; }
.tb-od-ready__cap { margin: 8px 0 0; text-align: center; font: 500 12px/1.45 var(--font); color: var(--ink-3); }

/* The popovers: Insert a field, Add another to split test */
.tb-od-pop { display: flex; flex-direction: column; gap: 2px; }
.tb-od-pop__row {
  width: 100%; min-height: 44px; box-sizing: border-box; padding: 8px 10px; border: 0; border-radius: var(--r-md); background: transparent;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; text-align: left; cursor: pointer;
}
.tb-od-pop__row--cta { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
.tb-od-pop__row:hover:not(:disabled) { background: var(--surface-2); }
.tb-od-pop__row:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.tb-od-pop__row:disabled { cursor: not-allowed; }
.tb-od-pop__row:disabled .tb-od-pop__name { color: var(--ink-3); }
.tb-od-pop__icon { flex: none; color: var(--brand-text); display: inline-flex; }
.tb-od-pop__name { display: block; font: 500 14px/20px var(--font); color: var(--ink); }
.tb-od-pop__sub { display: block; font: 400 12.5px/18px var(--font); color: var(--ink-3); }
.tb-od-pop__add {
  margin-top: 4px; min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-top: 1px solid var(--line);
  font: 500 13px/1 var(--font); color: var(--brand-text); text-decoration: none;
}
.tb-od-pop__add:hover { color: var(--brand-ink); text-decoration: underline; }

/* ------------------------------------------------------------------ *
 * Home's Saved offers (2.19) and Results' banner
 * ------------------------------------------------------------------ */
.tb-off-sgrid { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tb-off-scard {
  position: relative; height: 196px; box-sizing: border-box; padding: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-card); display: flex; flex-direction: column;
  transition: box-shadow var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}
.tb-off-scard:hover { border-color: var(--brand-line); box-shadow: var(--sh-card-hover); }
.tb-off-scard__link { position: absolute; inset: 0; z-index: 0; border-radius: var(--r-lg); }
.tb-off-scard__link:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.tb-off-scard__top { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tb-off-scard__texts { font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.tb-off-scard__name { margin: 12px 0 0; font: 600 15px/1.33 var(--font); letter-spacing: -0.005em; color: var(--ink); }
.tb-off-scard__sent { margin: 6px 0 0; font: 400 12.5px/1.45 var(--font); color: var(--ink-2); }
.tb-off-scard__gen { position: relative; z-index: 1; margin: auto 0 0; align-self: flex-start; max-width: 100%; }
.tb-off-scard__gen span { overflow: hidden; text-overflow: ellipsis; }
.tb-off-banner {
  min-height: 48px; box-sizing: border-box; padding: 0 4px 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-off-banner > .tb-icon { flex: none; color: var(--brand); }
.tb-off-banner__text { flex: 1; min-width: 0; margin: 0; padding: 12px 0; font: 400 13.5px/1.4 var(--font); color: var(--ink); }
.tb-off-banner__text strong { font-weight: 600; }
.tb-off-banner__link {
  flex: none; min-height: 44px; box-sizing: border-box; padding: 0 8px 0 12px; display: inline-flex; align-items: center; gap: 4px;
  font: 600 14px/1 var(--font); color: var(--brand-ink); text-decoration: none; border-radius: var(--r-md);
}
.tb-off-banner__link:hover { color: var(--brand-ink); text-decoration: underline; }
.tb-off-banner__link:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.tb-off-banner__x, .tb-off-banner__x:hover:not(:disabled) { color: var(--brand-ink); }

/* ------------------------------------------------------------------ *
 * "Which offer?" (OfferPickForList, inside B13's sheet)
 * ------------------------------------------------------------------ */
.tb-off-pick { display: flex; flex-direction: column; }
.tb-off-pick__group { display: flex; flex-direction: column; }
.tb-off-pick__group + .tb-off-pick__group { margin-top: 16px; }
.tb-off-pick__label { font: 500 12px/16px var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.tb-off-pick__row {
  position: relative; margin-top: 6px; min-height: 64px; box-sizing: border-box; padding: 8px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: background-color var(--t-chip) var(--ease), border-color var(--t-chip) var(--ease), box-shadow var(--t-chip) var(--ease);
}
.tb-off-pick__label + .tb-off-pick__row { margin-top: 4px; }
.tb-off-pick__row:hover { background: var(--surface-2); }
.tb-off-pick__row.is-on { background: var(--brand-tint); border-color: var(--brand-line); box-shadow: var(--ring-brand); }
.tb-off-pick__row.is-off { cursor: not-allowed; }
.tb-off-pick__row.is-off .tb-off-pick__name, .tb-off-pick__row.is-off .tb-off-pick__ex { color: var(--ink-3); }
.tb-off-pick__row:focus-within { box-shadow: var(--ring-brand); }
.tb-off-pick__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tb-off-pick__input:disabled { cursor: not-allowed; }
.tb-off-pick__dot {
  flex: none; width: 20px; height: 20px; box-sizing: border-box; border-radius: var(--pill); border: 1.5px solid var(--ink-4); background: var(--surface);
}
.tb-off-pick__row.is-on .tb-off-pick__dot { border: 6px solid var(--brand-strong); }
.tb-off-pick__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tb-off-pick__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-off-pick__name { min-width: 0; font: 600 14px/20px var(--font); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-off-pick__ex { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px/18px var(--font); color: var(--ink-2); }
.tb-off-pick__more {
  margin-top: 8px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; align-self: flex-start;
  font: 500 14px/1 var(--font); color: var(--brand-text); cursor: pointer;
}
.tb-off-pick__more:hover { color: var(--brand-ink); text-decoration: underline; }
.tb-off-pick__more:focus-visible { outline: none; box-shadow: var(--ring-brand); border-radius: var(--r-xs); }
.tb-off-pick__skel { display: block; height: 64px; margin-top: 6px; border-radius: 12px; }

/* ------------------------------------------------------------------ *
 * Narrower screens: two columns, then one (the phone's 358 px column, no sideways scroll)
 * ------------------------------------------------------------------ */
@media (max-width: 1079px) {
  .tb-od__cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 859px) {
  .tb-off-angles__row > .tb-ocard { flex: 1 1 100%; }
  .tb-off-angles__head { align-items: flex-start; }
}
@media (max-width: 720px) {
  .tb-off-sgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tb-off-scard { height: auto; min-height: 150px; }
  .tb-off-scard__gen { margin-top: 12px; }
}
@media (max-width: 640px) {
  .tb-off { padding-top: 16px; }
  .tb-off-bar { align-items: flex-start; flex-direction: column; }
  .tb-od-seg { flex-wrap: wrap; height: auto; }
  .tb-od-tabs { gap: 20px; }
  .tb-od-fields__row { grid-template-columns: minmax(0, 1fr) 56px 60px; }
  .tb-od-note { align-items: flex-start; flex-direction: column; gap: 4px; }
  .tb-od-insert { margin: 0 0 0 -12px; }
  .tb-ocard { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tb-off-tip, .tb-off-scard, .tb-off-pick__row { transition: none; }
  .tb-off-tip { transform: none; }
  .tb-tok--shimmer { animation: none; }
}
