/* ============================================================================
   TOM SHAW — In-shell component library
   Tabs, accordions, settings rows, status pills, banners, toolbars, empty
   states, promo bands, feature grids. Requires ts-tokens.css + ts-app-shell.css.
   ========================================================================= */

/* ============================================================================
   1. ANNOUNCEMENT BAR — full-bleed, dismissible, above the page header
   ========================================================================= */
.ts-announce {
  display: flex;
  align-items: center;
  gap: calc(var(--ts-space) * 1.5);
  /* 12px vertical held the 40px band; 8px multiples hold the rhythm and the
     row is still 40px because the actions inside it are. */
  padding: var(--ts-space) calc(var(--ts-space) * 2);
  /* The band had no bottom margin, so on settings.html the page title sat
     directly against it and the "Documentation" button overlapped the gap
     entirely. Anything that stacks above the page header owns its own space. */
  margin-bottom: calc(var(--ts-space) * 3);
  font-size: var(--ts-fs-ui);
  background: var(--ts-violet-50);
  border-bottom: 1px solid var(--ts-violet-100);
  color: var(--ts-ink);
}
.ts-announce[hidden] { display: none; }   /* rule 5 — this block sets display */
.ts-announce__body { flex: 1 1 auto; min-width: 0; }
.ts-announce__actions { display: flex; align-items: center; gap: var(--ts-space); flex: 0 0 auto; }

/* Declared height, like .ts-chip and .ts-badge. .ts-tag and .ts-pill are the
   same 10px mono label in solid and outline, so they must be the same height
   wherever they appear together. */
.ts-tag {
  display: inline-flex;
  align-items: center;
  height: calc(var(--ts-space) * 3);      /* 24px — matches .ts-chip and .ts-pill */
  font-family: var(--ts-mono);
  font-size: 10px;
  line-height: 1;
  font-weight: var(--ts-fw-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 8px;
  border-radius: var(--ts-radius-pill);
  background: var(--ts-violet);
  color: var(--ts-white);
}
.ts-tag--quiet { background: var(--ts-grey-card); color: var(--ts-grey-text); }
.ts-tag--beta  { background: var(--ts-ink); color: var(--ts-white); }

/* ============================================================================
   2. TABS — underline. Active is bold ink over a violet rule.
   ========================================================================= */
.ts-tabs {
  display: flex;
  gap: calc(var(--ts-space) * 3);
  border-bottom: 1px solid var(--ts-grey-light);
  margin-bottom: calc(var(--ts-space) * 3);
  overflow-x: auto;
  scrollbar-width: none;
}
.ts-tabs::-webkit-scrollbar { display: none; }
.ts-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--ts-space);
  padding: calc(var(--ts-space) * 1.5) 2px;
  font-size: var(--ts-fs-ui);
  color: var(--ts-grey-text);
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--ts-dur-fast) var(--ts-ease), border-color var(--ts-dur-fast) var(--ts-ease);
}
.ts-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.ts-tab:hover { color: var(--ts-ink); border-bottom-color: var(--ts-grey-light); }
/**
 * FOCUS INSIDE A CLIPPING CONTAINER.
 *
 * .ts-tabs is overflow-x: auto, which makes it a scroll container on BOTH
 * axes — so the global ring at +3px offset was clipped away above and below
 * every tab. The ring is not removed, it is moved inside: same 2px, same
 * violet, drawn where it can actually be seen. Rule 4 allows restyling a ring;
 * it does not allow one you cannot see.
 */
.ts-tab:focus-visible { outline-offset: -2px; }
.ts-tab[aria-selected="true"] {
  color: var(--ts-ink);
  font-weight: var(--ts-fw-bold);
  border-bottom-color: var(--ts-violet);
}

/* Segmented entity filters — "Findings (12)". Counts are part of the label. */
.ts-segment { display: flex; gap: var(--ts-space); flex-wrap: wrap; margin-bottom: calc(var(--ts-space) * 2); }
.ts-segment__item {
  display: inline-flex;
  align-items: center;
  gap: var(--ts-space);
  height: 32px;
  padding: 0 calc(var(--ts-space) * 1.5);
  font-size: var(--ts-fs-ui-sm);
  color: var(--ts-grey-text);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ts-radius-pill);
  cursor: pointer;
  transition: background var(--ts-dur-fast) var(--ts-ease), color var(--ts-dur-fast) var(--ts-ease);
}
.ts-segment__item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.ts-segment__item:hover { background: var(--ts-grey-card); color: var(--ts-ink); }
.ts-segment__item[aria-pressed="true"] {
  background: var(--ts-violet-50);
  border-color: var(--ts-violet-200);
  color: var(--ts-violet-900);
  font-weight: var(--ts-fw-bold);
}
.ts-segment__count { font-family: var(--ts-mono); font-variant-numeric: tabular-nums; opacity: .75; }

/* ============================================================================
   3. TOOLBAR — filters left, result count right
   ========================================================================= */
.ts-toolbar {
  display: flex;
  align-items: center;
  gap: var(--ts-space);
  flex-wrap: wrap;
  margin-bottom: calc(var(--ts-space) * 2);
}

/**
 * ONE HEIGHT PER TOOLBAR ROW.
 *
 * The row mixed 34px (.ts-viewswitch, .ts-control) with 40px (.ts-btn,
 * .ts-split__more inside .ts-shell), so the primary action sat 6px proud of
 * everything beside it and the row read as two rows that failed to line up.
 * A toolbar is a single band of controls; it gets a single height.
 *
 * 34px is the toolbar height, not 40px — the 40px button is for a page's
 * primary action in the content column, where it has room to be the loudest
 * thing. In a toolbar it is one control among several.
 */
.ts-toolbar .ts-btn,
.ts-toolbar .ts-split__more,
/* The overflow "…" button was still 36px — the last 2px of the mismatch this
   comment was written about. A 34px icon button in a toolbar keeps a 34px
   band; the 36px default belongs to the topbar, where nothing sits beside it. */
.ts-toolbar .ts-iconbtn { height: 34px; }
.ts-toolbar .ts-iconbtn { width: 34px; }
.ts-toolbar .ts-btn { padding: 0 calc(var(--ts-space) * 2); }
.ts-toolbar__end { margin-left: auto; font-size: var(--ts-fs-ui-sm); color: var(--ts-grey-text); font-variant-numeric: tabular-nums; }
.ts-control {
  display: inline-flex;
  align-items: center;
  gap: var(--ts-space);
  height: 34px;
  padding: 0 calc(var(--ts-space) * 1.5);
  font-family: inherit;
  font-size: var(--ts-fs-ui-sm);
  color: var(--ts-ink);
  background: var(--ts-white);
  border: 1px solid var(--ts-border-control);   /* 4.29:1 — 1.4.11 */
  border-radius: var(--ts-radius-ui);
  cursor: pointer;
  transition: border-color var(--ts-dur-fast) var(--ts-ease), background var(--ts-dur-fast) var(--ts-ease);
}
.ts-control:hover { border-color: var(--ts-ink); background: var(--ts-grey-card); }
.ts-control svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.ts-control.is-applied { border-color: var(--ts-violet); background: var(--ts-violet-50); color: var(--ts-violet-900); font-weight: var(--ts-fw-bold); }

/* ============================================================================
   4. ACCORDION / SETTINGS ROWS
   A bordered stack. One row = one thing you can turn on, read about, or open.
   ========================================================================= */
.ts-stack {
  border: 1px solid var(--ts-grey-light);
  border-radius: var(--ts-radius-card);
  background: var(--ts-white);
  overflow: hidden;
}
.ts-stack__item + .ts-stack__item { border-top: 1px solid var(--ts-grey-light); }

.ts-stack__head {
  display: flex;
  align-items: center;
  gap: calc(var(--ts-space) * 1.5);
  width: 100%;
  padding: calc(var(--ts-space) * 2);
  font-family: inherit;
  font-size: var(--ts-fs-ui);
  font-weight: var(--ts-fw-bold);
  color: var(--ts-ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background var(--ts-dur-fast) var(--ts-ease);
}
/* 56px, not the 53px the padding happened to produce. A settings row is the
   unit this page is scanned in, so it sits on the 8px grid like everything
   else; the padding still governs anything that wraps past one line. */
.ts-stack__head { min-height: calc(var(--ts-space) * 7); }
.ts-stack__head:hover { background: var(--ts-violet-50); }
/* .ts-stack is overflow: hidden — see the note on .ts-tab:focus-visible. */
.ts-stack__head:focus-visible { outline-offset: -2px; }
.ts-stack__chevron {
  flex: 0 0 16px; width: 16px; height: 16px;
  fill: none; stroke: var(--ts-grey-mid); stroke-width: 2; vector-effect: non-scaling-stroke;
  transition: transform var(--ts-dur-base) var(--ts-ease);
}
.ts-stack__head[aria-expanded="true"] .ts-stack__chevron { transform: rotate(180deg); stroke: var(--ts-purple); }
.ts-stack__head[aria-expanded="true"] .ts-stack__title { color: var(--ts-purple); }
.ts-stack__icon { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--ts-purple); stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.ts-stack__title { flex: 1 1 auto; min-width: 0; }
.ts-stack__meta { flex: 0 0 auto; }

/**
 * The panel's text starts under the ROW TITLE, not near it.
 *
 * 6.5 units (52px) was a guess and it landed 22px short: the head's own
 * geometry puts the title at 16 (padding) + 16 (chevron) + 12 (gap) + 18
 * (icon) + 12 (gap) = 74px. Written as that sum rather than as a magic number,
 * so it stays true if the chevron or the icon is resized. Off the 8px grid on
 * purpose — this is an optical alignment against a real column, and the row it
 * has to line up with is what decides it.
 */
.ts-stack__panel {
  padding: 0 calc(var(--ts-space) * 2) calc(var(--ts-space) * 2)
           calc(var(--ts-space) * 2 + 16px + var(--ts-space) * 1.5 + 18px + var(--ts-space) * 1.5);
  font-size: var(--ts-fs-ui);
  color: var(--ts-grey-text);
}
.ts-stack__panel[hidden] { display: none; }
.ts-stack__panel p { margin: 0 0 calc(var(--ts-space) * 1.5); max-width: 76ch; }
.ts-stack__panel > :last-child { margin-bottom: 0; }

/**
 * Status pill — outline, so it reads as state rather than an action.
 *
 * Rendered 25px inside a card and 21px in a settings row before the height was
 * declared: the same block at two sizes on two screens.
 *
 * 24px is the shared height of the three label blocks — .ts-chip, .ts-pill and
 * .ts-tag. They appear together on a record header ("ACCESS ACTIVE" pill next
 * to a "Privileged" chip) and a 4px step between two things doing the same
 * job in the same row is exactly the mismatch that got flagged in the toolbar.
 * .ts-badge stays 20px: it is a count glued to a control, not a label in a row.
 */
.ts-pill {
  display: inline-flex;
  align-items: center;
  height: calc(var(--ts-space) * 3);      /* 24px */
  font-family: var(--ts-mono);
  font-size: 10px;
  line-height: 1;
  font-weight: var(--ts-fw-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 10px;
  border-radius: var(--ts-radius-pill);
  border: 1px solid var(--ts-grey-light);
  color: var(--ts-grey-text);
  background: var(--ts-white);
  white-space: nowrap;
}
.ts-pill--on       { color: var(--ts-success-ink); border-color: var(--ts-success-200); background: var(--ts-success-50); }
.ts-pill--off      { color: var(--ts-grey-text); border-color: var(--ts-grey-light); }
.ts-pill--attention{ color: var(--ts-warning-ink); border-color: var(--ts-warning-200); background: var(--ts-warning-50); }
.ts-pill--locked   { color: var(--ts-violet-900); border-color: var(--ts-violet-200); background: var(--ts-violet-50); }

/* ============================================================================
   5. BANNERS — inline notice inside content
   ========================================================================= */
.ts-notice {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--ts-space) * 1.5);
  padding: calc(var(--ts-space) * 1.5) calc(var(--ts-space) * 2);
  margin-bottom: calc(var(--ts-space) * 3);
  font-size: var(--ts-fs-ui);
  border: 1px solid var(--ts-violet-100);
  border-radius: var(--ts-radius-ui);
  background: var(--ts-violet-50);
  color: var(--ts-ink);
}
.ts-notice svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--ts-purple); stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.ts-notice a { color: var(--ts-purple); font-weight: var(--ts-fw-bold); }

/* ============================================================================
   6. PROMO BAND — feature announcement / upgrade prompt.
   Black with a corner glow. This is where the brand's 12% glow allocation is
   spent inside the app; a pale tint band would waste it and read as generic.
   ========================================================================= */
.ts-promo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: calc(var(--ts-space) * 5);
  flex-wrap: wrap;
  padding: calc(var(--ts-space) * 5) calc(var(--ts-space) * 5);
  margin-bottom: calc(var(--ts-space) * 4);
  border-radius: var(--ts-radius-card);
  background: var(--ts-black);
  color: var(--ts-white);
}
.ts-promo::before { content: ""; position: absolute; inset: 0; background: var(--ts-glow-panel); pointer-events: none; }
.ts-promo > * { position: relative; z-index: 2; }
.ts-promo__body { flex: 1 1 340px; min-width: 0; max-width: 52ch; }
.ts-promo__art  { flex: 0 1 260px; }
.ts-promo h2 {
  margin: calc(var(--ts-space) * 1.5) 0 var(--ts-space);
  font-size: var(--ts-fs-h3);
  line-height: var(--ts-lh-h3);
  font-weight: var(--ts-fw-bold);
  text-wrap: balance;
}
.ts-promo p { margin: 0 0 calc(var(--ts-space) * 2.5); font-size: var(--ts-fs-ui); color: var(--ts-on-dark-2); }
.ts-promo__actions { display: flex; gap: var(--ts-space); flex-wrap: wrap; align-items: center; }
.ts-promo__foot {
  margin: calc(var(--ts-space) * 2) 0 0;
  font-family: var(--ts-mono);
  font-size: var(--ts-fs-ui-sm);
  color: var(--ts-on-dark-3);
}

/* ============================================================================
   7. FEATURE GRID — three-up value row under a promo band
   ========================================================================= */
.ts-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: calc(var(--ts-space) * 4);
  padding: calc(var(--ts-space) * 2) 0 calc(var(--ts-space) * 4);
}
.ts-feature__icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  margin-bottom: calc(var(--ts-space) * 1.5);
  border-radius: var(--ts-radius-ui);
  background: var(--ts-violet-50);
}
.ts-feature__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ts-purple); stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.ts-feature h3 { margin: 0 0 4px; font-size: var(--ts-fs-section); font-weight: var(--ts-fw-bold); }
.ts-feature p  { margin: 0; font-size: var(--ts-fs-ui); color: var(--ts-grey-text); }

/* ============================================================================
   8. EMPTY STATE
   ========================================================================= */
.ts-empty__art {
  width: 92px; height: 92px;
  margin: 0 auto calc(var(--ts-space) * 2);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ts-violet-50);
}
.ts-empty__art svg { width: 40px; height: 40px; fill: none; stroke: var(--ts-purple); stroke-width: 1.4; vector-effect: non-scaling-stroke; }

/* ============================================================================
   9. TABLE EXTRAS — select column, sortable headers
   ========================================================================= */
.ts-table th.ts-table__select,
.ts-table td.ts-table__select { width: 44px; padding-right: 0; }
.ts-table__sort {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
  cursor: pointer;
}
.ts-table__sort svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .4; }
.ts-table__sort:hover svg { opacity: 1; }
/* Header band is --ts-ink, so the active-sort accent is the ON-DARK violet.
   --ts-purple would be 1.9:1 against it. */
.ts-table__sort[aria-sort]:not([aria-sort="none"]) { color: var(--ts-violet-300); }
.ts-table__sort[aria-sort]:not([aria-sort="none"]) svg { opacity: 1; }
.ts-table th svg.ts-table__colicon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; vector-effect: non-scaling-stroke; vertical-align: -2px; margin-right: 6px; opacity: .7; }

/* ============================================================================
   10. NAV CTA — primary action pinned at the top of the section nav
   ========================================================================= */
.ts-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ts-space);
  height: 40px;
  margin: 0 calc(var(--ts-space) * 1.5) calc(var(--ts-space) * 2);
  font-size: var(--ts-fs-ui);
  font-weight: var(--ts-fw-bold);
  color: var(--ts-white);
  text-decoration: none;
  background: var(--ts-purple);
  border: 0;
  border-radius: var(--ts-radius-ui);   /* matches .ts-btn — rectangle, not pill */
  cursor: pointer;
  transition: background var(--ts-dur-fast) var(--ts-ease);
}
.ts-nav__cta:hover { background: var(--ts-violet-600); }
.ts-nav__cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; vector-effect: non-scaling-stroke; }

/* ============================================================================
   11. SPLIT BUTTON — one dominant action plus its variants
   ========================================================================= */
.ts-split { display: inline-flex; }
.ts-split .ts-btn {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding-right: calc(var(--ts-space) * 2);
}
.ts-split__more {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 40px;
  padding: 0;
  background: var(--ts-purple);
  color: var(--ts-white);
  border: 2px solid var(--ts-purple);
  border-left: 1px solid var(--ts-hairline-dark-2);
  /* Follows .ts-btn — rectangle, not pill. See the note in ts-portal.css. */
  border-radius: 0 var(--ts-radius-ui) var(--ts-radius-ui) 0;
  cursor: pointer;
  transition: background var(--ts-dur-fast) var(--ts-ease);
}
.ts-split__more:hover { background: var(--ts-violet-600); }
.ts-split__more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; vector-effect: non-scaling-stroke; }

/* ============================================================================
   12. VIEW SWITCHER — same data, different shape (list / board / calendar)
   ========================================================================= */
.ts-viewswitch {
  display: inline-flex;
  padding: 2px;
  background: var(--ts-grey-card);
  border-radius: var(--ts-radius-ui);
}
.ts-viewswitch__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 30px;
  padding: 0;
  background: transparent; border: 0;
  border-radius: 6px;
  color: var(--ts-grey-text);
  cursor: pointer;
  transition: background var(--ts-dur-fast) var(--ts-ease), color var(--ts-dur-fast) var(--ts-ease);
}
.ts-viewswitch__btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.ts-viewswitch__btn:hover { color: var(--ts-ink); }
.ts-viewswitch__btn[aria-pressed="true"] { background: var(--ts-white); color: var(--ts-purple); box-shadow: var(--ts-shadow-1); }

/* ============================================================================
   13. ICON TOGGLE GROUP — pick one type. Icons carry labels, not tooltips alone.
   ========================================================================= */
.ts-toggles { display: flex; gap: 4px; flex-wrap: wrap; }
.ts-toggles__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px;
  padding: 0 calc(var(--ts-space) * 1.25);
  font-family: inherit;
  font-size: var(--ts-fs-ui-sm);
  color: var(--ts-grey-text);
  background: var(--ts-white);
  border: 1px solid var(--ts-border-control);   /* 4.29:1 — 1.4.11 */
  border-radius: var(--ts-radius-ui);
  cursor: pointer;
  transition: all var(--ts-dur-fast) var(--ts-ease);
}
.ts-toggles__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.ts-toggles__btn:hover { border-color: var(--ts-violet); color: var(--ts-ink); }
.ts-toggles__btn[aria-pressed="true"] {
  background: var(--ts-violet-50);
  border-color: var(--ts-violet);
  color: var(--ts-violet-900);
  font-weight: var(--ts-fw-bold);
}

/* ============================================================================
   14. FORM ROWS — icon gutter. Used in modals and dense record forms.
   The gutter names the field type at a glance; the label still exists for
   screen readers even when it is visually carried by the icon.
   ========================================================================= */
.ts-formrow {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--ts-space) * 2);
  margin-bottom: calc(var(--ts-space) * 2);
}
.ts-formrow__gutter {
  flex: 0 0 20px;
  width: 20px; height: 20px;
  margin-top: 9px;
  color: var(--ts-grey-mid);
}
.ts-formrow__gutter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.ts-formrow__body { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--ts-space); }
.ts-formrow__body > * { min-width: 0; }
.ts-formrow__sep { color: var(--ts-grey-mid); }

/* Boxed input — modals and record forms only. Auth screens stay underlined:
   a dense form needs field edges, a focused sign-in form does not. */
.ts-input {
  height: 38px;
  padding: 0 calc(var(--ts-space) * 1.5);
  font-family: inherit;
  font-size: var(--ts-fs-ui);
  color: var(--ts-ink);
  background: var(--ts-white);
  border: 1px solid var(--ts-border-control);   /* 4.29:1 — 1.4.11 */
  border-radius: var(--ts-radius-ui);
  transition: border-color var(--ts-dur-fast) var(--ts-ease), box-shadow var(--ts-dur-fast) var(--ts-ease);
}
.ts-input::placeholder { color: var(--ts-grey-mid); }
.ts-input:hover { border-color: var(--ts-ink); }
.ts-input:focus { outline: none; border-color: var(--ts-violet); box-shadow: 0 0 0 3px var(--ts-violet-100); }
.ts-input--block { width: 100%; }
.ts-input--title { height: 46px; font-size: var(--ts-fs-section); font-weight: var(--ts-fw-bold); }
.ts-input--note {
  width: 100%;
  min-height: 96px;
  padding: calc(var(--ts-space) * 1.5);
  resize: vertical;
  line-height: var(--ts-lh-ui);
  background: var(--ts-violet-50);
  border-color: var(--ts-violet-100);
}
select.ts-input { padding-right: calc(var(--ts-space) * 4); cursor: pointer; }

.ts-formrow__link {
  color: var(--ts-purple);
  font-weight: var(--ts-fw-bold);
  text-decoration: none;
  font-size: var(--ts-fs-ui);
}
.ts-formrow__link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 620px) {
  .ts-promo { padding: calc(var(--ts-space) * 3); }
  .ts-promo__art { display: none; }
  .ts-stack__panel { padding-left: calc(var(--ts-space) * 2); }
  .ts-formrow__gutter { display: none; }
}

/* ============================================================================
   UTILITIES — added 15 Aug 2026 to retire dead inline styles.

   list-view.html carried 20 inline style attributes on a page whose own CSP
   has no unsafe-inline, so NONE of them applied: the page rendered wrong on
   every load and emitted 20 violations, which is the noise that hides a real
   one. These are the 13 declarations it needed, as real classes.

   Keep this list short. A utility that exists because a component is missing
   is a component that should exist — raise it rather than adding a fourteenth.
   ========================================================================= */
/* wrap + min-width:0 are not optional. The declaration this replaced was dead
   under the CSP, so the element had been laying out as a block and wrapping by
   accident; making it a real flex row overflowed the page by 125px at 320px. */
.ts-toolbar__end--inline {
  display: flex;
  align-items: center;
  gap: var(--ts-space);
  flex-wrap: wrap;
  min-width: 0;
}
.ts-check--indent        { padding-left: calc(var(--ts-space) * 2.5); }
.ts-nav__group--flush    { padding: 0 0 var(--ts-space); color: var(--ts-grey-text); }
.ts-rule                 { border: 0; border-top: 1px solid var(--ts-grey-light); margin: calc(var(--ts-space) * 1.75) 0; }
.ts-chip--start          { align-self: flex-start; }
.ts-stack--tight         { display: flex; flex-direction: column; gap: var(--ts-space); }
.ts-formrow__body--stack { flex-direction: column; align-items: stretch; }
.ts-gap-0                { margin-bottom: 0; }
.ts-gap-12               { margin-bottom: calc(var(--ts-space) * 1.5); }
.ts-gap-24               { margin-bottom: calc(var(--ts-space) * 3); }
.ts-ink                  { color: var(--ts-ink); }
.ts-muted                { color: var(--ts-grey-text); }

/* Context blurb beside a form control — 13px was the authored value; the UI
   scale's 12px meta is the nearest real step, so it uses that. */
.ts-card-ctx { font-size: var(--ts-fs-ui-sm); color: var(--ts-grey-text); line-height: 1.7; }
.ts-card-ctx b { color: var(--ts-ink); font-weight: var(--ts-fw-bold); }
